xmenu.c(x_menu_wait_for_event): Call XFlush before select.
[bpt/emacs.git] / src / ChangeLog
1 2009-11-16 Jan Djärv <jan.h.d@swipnet.se>
2
3 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
4
5 2009-11-14 Andreas Schwab <schwab@linux-m68k.org>
6
7 * Makefile.in: Ignore errors from mkdir when creating deps
8 directory.
9
10 2009-11-14 Jan Djärv <jan.h.d@swipnet.se>
11
12 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
13 has a parent.
14
15 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
16 dependency files in deps/. Include those files into Makefile.
17
18 * config.in: Generated (AUTO_DEPEND).
19
20 2009-11-13 Michael Albinus <michael.albinus@gmx.de>
21
22 * dbusbind.c (Vdbus_registered_objects_table): Renamed from
23 Vdbus_registered_functions_table, because it contains also
24 properties. Fix docstring.
25 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix
26 docstring.
27
28 2009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
29
30 * alloc.c (mark_object): Don't reprocess marked strings.
31 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
32 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
33
34 2009-11-13 Kenichi Handa <handa@m17n.org>
35
36 * category.c (word_boundary_p): Adjust for the change of the
37 semantics of Vword_combining_categories.
38 (Vword_combining_categories): Describe the slight change of the
39 semantics.
40
41 2009-11-13 Eli Zaretskii <eliz@gnu.org>
42
43 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
44
45 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
46
47 2009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
48
49 * xdisp.c (syms_of_xdisp): Fix typo in last change.
50
51 2009-11-12 Juanma Barranquero <lekktu@gmail.com>
52
53 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
54
55 2009-11-11 David Reitter <david.reitter@gmail.com>
56
57 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
58 variables to fix 2009-11-09 change.
59
60 2009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
61
62 * process.c (ifflag_def): Make flag_sym constant.
63 (Fnetwork_interface_info): Use a constant pointer.
64 (ifflag_table):
65 * xfns.c (cursor_bits):
66 * xdisp.c (power_letter):
67 * termcap.c (speeds, esctab):
68 * sysdep.c (baud_convert):
69 * keyboard.c (lispy_accent_codes, modifier_names):
70 * image.c (xbm_format, xpm_format, pbm_format, png_format)
71 (jpeg_format, tiff_format, gif_format, svg_format)
72 (interlace_start, interlace_increment, gs_format):
73 * gtkutil.c (separator_names):
74 * fringe.c (swap_nibble):
75 * fns.c (base64_value_to_char, base64_char_to_value):
76 * fileio.c (make_temp_name_tbl):
77 * coding.c (suffixes): Make constant.
78
79 * frame.c (make_initial_frame):
80 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
81 build_string.
82 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
83
84 * s/freebsd.h:
85 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
86
87 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
88 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
89
90 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
91 * xterm.c (syms_of_xterm):
92 * xfaces.c (syms_of_xfaces):
93 * xdisp.c (syms_of_xdisp):
94 * lread.c (syms_of_lread):
95 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
96 build_string.
97
98 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
99
100 2009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
101
102 * fns.c (Fplist_get): Merge the active and the uncommented code.
103
104 2009-11-10 Jan Djärv <jan.h.d@swipnet.se>
105
106 * keyboard.h: Declare timer_check.
107
108 * keyboard.c (timer_check_2): New function that does what the old
109 timer_check did.
110 (timer_check): Call timer_check_2 until -1 or a non-zero time is
111 returned, i.e. don't return -1 with timers pending.
112
113 * process.c: Remove extern declaration of timer_check.
114
115 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
116 even if timer_check returned -1.
117
118 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
119 xg_dialog_data.
120 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
121 the event loop.
122 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
123 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
124 Destroy the dialog after xg_dialog_run.
125
126 2009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
127
128 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
129
130 2009-11-10 Jan Djärv <jan.h.d@swipnet.se>
131
132 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
133
134 2009-11-09 Juanma Barranquero <lekktu@gmail.com>
135
136 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
137
138 2009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
139
140 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
141 w32menu.c, and nsmenu.m.
142 Simplify the obsolete case where position is nil.
143 (cleanup_popup_menu): New function, moved from nsmenu.m.
144 (struct skp): Remove slot `notreal'.
145 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
146 adjust callers.
147 (single_menu_item): Adjust call to parse_menu_item.
148 (syms_of_menu): Defsubr x-popup-menu.
149 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
150 (keymap_panes): Don't export any more.
151 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
152 (xmenu_show): Declare.
153 * keyboard.c (parse_menu_item): Remove arg `notreal'.
154 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
155 * keyboard.h (parse_menu_item): Update declaration.
156 * xmenu.c (Fx_popup_menu): Remove.
157 (syms_of_xmenu): Don't defsubr x-popup-menu.
158 * w32menu.c (Fx_popup_menu): Remove.
159 (syms_of_w32menu): Don't defsubr x-popup-menu.
160 * nsmenu.m (cleanup_popup_menu): Remove.
161 (ns_menu_show): Rename from ns_popup_menu and remove all the code
162 moved to menu.c's Fx_popup_menu.
163 (Fx_popup_menu): Remove.
164 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
165 menu_items (it's done in menu.c already).
166
167 2009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
168
169 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
170 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
171
172 2009-11-08 Chong Yidong <cyd@stupidchicken.com>
173
174 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
175 xmenu_show. Hide any tooltip before opening a menu.
176 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
177 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
178
179 2009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
180
181 Let integers use up 2 tags to give them one extra bit and thus double
182 their range.
183 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
184 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
185 New macros.
186 (enum Lisp_Type): Use them. Give explicit values.
187 (Lisp_Type_Limit): Remove.
188 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
189 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
190 Pay attention to USE_2_TAGS_FOR_INTS.
191 (INTEGERP): Use LISP_INT_TAG_P.
192 * fns.c (internal_equal): Simplify the default case.
193 (sxhash): Use case_Lisp_Int.
194 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
195 any more.
196 (Ftype_of): Use case_Lisp_Int.
197 (store_symval_forwarding): Take into account the fact that Ints can
198 now have more than one tag.
199 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
200 buffer_slot_type_mismatch):
201 * xfaces.c (face_attr_equal_p):
202 * print.c (print_object):
203 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
204 Use case_Lisp_Int.
205
206 2009-11-06 Eli Zaretskii <eliz@gnu.org>
207
208 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
209
210 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
211 warning.
212
213 2009-11-06 Jan Djärv <jan.h.d@swipnet.se>
214
215 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
216
217 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
218
219 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
220 ButtonPressRelease and MotionNotify (bug#4870).
221
222 2009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
223
224 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
225
226 * xterm.c (syms_of_xterm):
227 * xselect.c (syms_of_xselect):
228 * xmenu.c (syms_of_xmenu):
229 * xfns.c (syms_of_xfns):
230 * xfaces.c (syms_of_xfaces):
231 * xdisp.c (syms_of_xdisp):
232 * window.c (syms_of_window):
233 * w32fns.c (syms_of_w32fns):
234 * undo.c (syms_of_undo):
235 * textprop.c (syms_of_textprop):
236 * terminal.c (syms_of_terminal):
237 * syntax.c (syms_of_syntax):
238 * sound.c (syms_of_sound):
239 * search.c (syms_of_search):
240 * print.c (syms_of_print):
241 * minibuf.c (syms_of_minibuf):
242 * macros.c (syms_of_macros):
243 * keymap.c (syms_of_keymap, initial_define_key)
244 (initial_define_lispy_key):
245 * keyboard.c (syms_of_keyboard):
246 * insdel.c (syms_of_insdel):
247 * image.c (syms_of_image):
248 * fringe.c (syms_of_fringe):
249 * frame.c (syms_of_frame):
250 * fontset.c (syms_of_fontset):
251 * fns.c (syms_of_fns):
252 * fns.c (syms_of_fns):
253 * fileio.c (syms_of_fileio):
254 * fileio.c (syms_of_fileio):
255 * eval.c (syms_of_eval):
256 * doc.c (syms_of_doc):
257 * dispnew.c (syms_of_display):
258 * dired.c (syms_of_dired):
259 * dbusbind.c (syms_of_dbusbind):
260 * data.c (syms_of_data):
261 * composite.c (syms_of_composite):
262 * coding.c (syms_of_coding):
263 * cmds.c (syms_of_cmds):
264 * charset.c (define_charset_internal, syms_of_character):
265 * ccl.c (syms_of_ccl):
266 * category.c (syms_of_category, init_category_once):
267 * casetab.c (syms_of_casetab):
268 * casefiddle.c (syms_of_casefiddle):
269 * callint.c (syms_of_callint):
270 * bytecode.c (syms_of_bytecode):
271 * buffer.c (keys_of_buffer, syms_of_buffer):
272 * alloc.c (syms_of_alloc):
273 * process.c (syms_of_process, init_process):
274 * lread.c (syms_of_lread, init_obarray):
275 * font.c (build_style_table):
276 * emacs.c (syms_of_emacs, main): Replace calls to intern with
277 intern_c_string, calls to make_pure_string with
278 make_pure_c_string. Use pure_cons instead of Fcons.
279
280 * process.c (socket_options): Make it const.
281 (set_socket_option, init_process): Use a const pointer.
282
283 * lread.c (intern_c_string): New function.
284 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
285 (defvar_int): Uset it. Make the name const char*.
286
287 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
288 (defvar_int): Update prototypes.
289 (DEFUN, EXFUN): Support for prototypes is now required.
290 (intern_c_string): New prototype.
291 (struct Lisp_Subr): Make symbol_name constant.
292
293 * font.c (struct table_entry): Remove unused member. Make NAMES
294 constant.
295 (weight_table, slant_table, width_table): Make constant.
296
297 * emacs.c (struct standard_args): Make name and longname constant.
298
299 * character.h (DEFSYM): Use intern_c_string.
300
301 2009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
302
303 * alloc.c (make_pure_c_string): New function.
304
305 * eval.c (Fautoload): Purecopy all arguments.
306
307 2009-11-05 Kenichi Handa <handa@m17n.org>
308
309 * fileio.c (Finsert_file_contents): Be sure set coding-system of
310 the buffer in case of replace.
311
312 2009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
313
314 * puresize.h (BASE_PURESIZE): Increase to 1620000.
315
316 2009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
317
318 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
319 when applicable (bug#4851).
320
321 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
322 (P_): Support for prototypes is now required.
323
324 2009-10-31 Chong Yidong <cyd@stupidchicken.com>
325
326 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
327 (Bug#4827).
328
329 2009-10-30 Eli Zaretskii <eliz@gnu.org>
330
331 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
332
333 2009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
334
335 * puresize.h (BASE_PURESIZE): Increase to 1470000.
336
337 * lread.c (Fload): Purecopy the file name when building
338 Vpreloaded_file_list.
339
340 2009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
341
342 * w32fns.c (syms_of_w32fns): Change default value of
343 w32-scroll-lock-modifier to nil. (Bug#2827)
344
345 2009-10-26 Juanma Barranquero <lekktu@gmail.com>
346
347 * minibuf.c (Fall_completions): Fix typos in docstring.
348
349 2009-10-26 Andreas Schwab <schwab@redhat.com>
350
351 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
352
353 2009-10-26 Juanma Barranquero <lekktu@gmail.com>
354
355 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
356 For delta < 0, skip check that only makes sense when the mini-window
357 is going to be enlarged. (Bug#4534)
358
359 2009-10-25 Chong Yidong <cyd@stupidchicken.com>
360
361 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
362 string in menu maps (Bug#4471).
363
364 2009-10-24 Chong Yidong <cyd@stupidchicken.com>
365
366 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
367 FRAME_NS_VIEW on terminal frames (Bug#4765).
368
369 2009-10-24 Andreas Schwab <schwab@linux-m68k.org>
370
371 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
372 DBUS_TYPE_UINTnn separately to get proper sign extension.
373
374 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
375 can properly handle unsigned types.
376 (make_uid, make_gid): Remove.
377
378 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
379 types again.
380
381 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
382 (system_process_attributes): Likewise.
383
384 2009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
385
386 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
387
388 * eval.c (Fautoload): Purecopy the filename. Simplify.
389
390 * category.c (Fdefine_category): Purecopy docstring.
391
392 2009-10-23 Andreas Schwab <schwab@linux-m68k.org>
393
394 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
395
396 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
397
398 2009-10-23 Chong Yidong <cyd@stupidchicken.com>
399
400 * window.c (Fwindow_edges, Fwindow_pixel_edges)
401 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
402 (Bug#4775).
403
404 2009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
405
406 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
407 (init_fileio_once):
408 * lisp.h (init_fileio_once): Remove.
409 * emacs.c (main): Don't call init_fileio_once.
410
411 2009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
412
413 * puresize.h (BASE_PURESIZE): Increase to 1430000.
414
415 2009-10-21 Andreas Schwab <schwab@linux-m68k.org>
416
417 * doprnt.c (doprnt): Fix overflow check.
418
419 2009-10-21 Jan Djärv <jan.h.d@swipnet.se>
420
421 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
422
423 * xterm.h (x_wait_for_event): Declare it.
424
425 * xterm.c (pending_event_wait): New variable.
426 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
427 see pending_event_wait.eventtype.
428 (handle_one_xevent): Don't change gravity when parent changes.
429 (x_new_font): Call change_frame_size with new rows/columns before we
430 try to resize the frame.
431 (x_wait_for_event): New function.
432 (x_set_window_size_1): Don't change gravity unless change_gravity
433 is set.
434 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
435 don't change frame size, instead wait for the ConfigureNotify.
436 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
437 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
438 (x_initialize): Initialize pending_event_wait.
439
440 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
441 size.
442
443 * widget.c (EmacsFrameSetValues): Add comment.
444 (EmacsFrameSetCharSize): Just call x_set_window_size.
445
446 * gtkutil.c (xg_frame_set_char_size): Flush events and call
447 x_wait_for_event.
448 (flush_and_sync): Remove again.
449 (xg_get_font_name): Suggest monospace if no previous font is known.
450
451 2009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
452
453 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
454 8th bit, since that only made sense in the ASCII world (bug#4751).
455
456 2009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
457
458 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
459 processing pending events when event is filtered for input method.
460 (Bug#3681)
461
462 2009-10-20 Juanma Barranquero <lekktu@gmail.com>
463
464 * fns.c: Add #endif accidentally removed in previous change.
465
466 2009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
467
468 * fns.c: Remove code for unsupported system: MAC_OS.
469 * image.c: Likewise. Include setjmp.h.
470
471 2009-10-19 Jan Djärv <jan.h.d@swipnet.se>
472
473 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
474 pixel -1 (bug #4742).
475
476 2009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
477
478 * process.c (create_pty): Remove conditionals for no longer
479 supported systems: UNIPLUS and RTU.
480
481 * xterm.c:
482 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
483
484 * alloc.c: Do not define struct catchtag.
485 * eval.c: Move struct catchtag definition ...
486 * lisp.h: ... here.
487
488 * image.c: Move png.h #include earlier to avoid warnings.
489
490 * xterm.c:
491 * xsmfns.c:
492 * xselect.c:
493 * xrdb.c:
494 * xmenu.c:
495 * xftfont.c:
496 * xfont.c:
497 * xfns.c:
498 * xfaces.c:
499 * xdisp.c:
500 * window.c:
501 * widget.c:
502 * w32xfns.c:
503 * w32uniscribe.c:
504 * w32term.c:
505 * w32select.c:
506 * w32reg.c:
507 * w32proc.c:
508 * w32menu.c:
509 * w32inevt.c:
510 * w32heap.c:
511 * w32font.c:
512 * w32fns.c:
513 * w32console.c:
514 * w32.c:
515 * w16select.c:
516 * vm-limit.c:
517 * unexsol.c:
518 * unexec.c:
519 * unexcw.c:
520 * unexaix.c:
521 * undo.c:
522 * tparam.c:
523 * textprop.c:
524 * terminfo.c:
525 * terminal.c:
526 * termcap.c:
527 * term.c:
528 * syntax.c:
529 * sound.c:
530 * sheap.c:
531 * search.c:
532 * scroll.c:
533 * region-cache.c:
534 * regex.c:
535 * ralloc.c:
536 * process.c:
537 * print.c:
538 * nsterm.m:
539 * nsselect.m:
540 * nsmenu.m:
541 * nsimage.m:
542 * nsfont.m:
543 * nsfns.m:
544 * msdos.c:
545 * minibuf.c:
546 * menu.c:
547 * marker.c:
548 * macros.c:
549 * keymap.c:
550 * keyboard.c:
551 * intervals.c:
552 * insdel.c:
553 * indent.c:
554 * gtkutil.c:
555 * ftxfont.c:
556 * ftfont.c:
557 * fringe.c:
558 * frame.c:
559 * fontset.c:
560 * font.c:
561 * fns.c:
562 * floatfns.c:
563 * filelock.c:
564 * fileio.c:
565 * emacs.c:
566 * editfns.c:
567 * dosfns.c:
568 * doprnt.c:
569 * doc.c:
570 * dispnew.c:
571 * dired.c:
572 * dbusbind.c:
573 * data.c:
574 * composite.c:
575 * coding.c:
576 * cmds.c:
577 * cm.c:
578 * chartab.c:
579 * charset.c:
580 * character.c:
581 * ccl.c:
582 * category.c:
583 * casetab.c:
584 * casefiddle.c:
585 * callproc.c:
586 * callint.c:
587 * bytecode.c:
588 * buffer.c:
589 * atimer.c: Include setjmp.h. (Bug#4643)
590
591 2009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
592
593 Remove leftover table unibyte_to_multibyte_table.
594 * character.c (unibyte_to_multibyte_table): Remove.
595 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
596 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
597 * character.h (UNIBYTE_TO_CHAR): New macro.
598 (MAKE_CHAR_MULTIBYTE): Use it.
599 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
600 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
601 (message_dolog, set_message_1):
602 * search.c (Freplace_match):
603 * editfns.c (Fcompare_buffer_substrings):
604 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
605 (concat):
606 * insdel.c (copy_text, count_size_as_multibyte):
607 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
608 * term.c (produce_glyphs):
609 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
610 * regex.c (RE_CHAR_TO_MULTIBYTE):
611 * cmds.c (internal_self_insert):
612 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
613
614 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
615
616 2009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
617
618 * puresize.h (BASE_PURESIZE): Increase to 1310000.
619
620 2009-10-16 Juanma Barranquero <lekktu@gmail.com>
621
622 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
623
624 2009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
625
626 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
627 still needed under Tiger.
628
629 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
630
631 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
632 __Apple__.
633
634 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
635
636 2009-10-15 Kenichi Handa <handa@m17n.org>
637
638 * print.c (print_object): Escape a symbol like "2E10" too.
639
640 2009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
641
642 Cleanups and changes for 64-bit compile under Snow Leopard.
643 Based on suggestions by Erik Charlebois.
644
645 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
646
647 * nsfont.m (ns_char_width): Replace deprecated call.
648 (ns_findfonts, nsfont_list_family): Use long format in printf, and
649 cast argument.
650 (nsfont_open): Use ns_char_width() everywhere.
651 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
652
653 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
654
655 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
656 where appropriate.
657
658 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
659 where appropriate.
660 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
661 Use stringWithUTF8String.
662 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
663
664 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
665 Add formal protocol mention to inheritance.
666 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
667
668 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
669 Fix printf format.
670 (ns_query_color): Use CGFloat where appropriate.
671 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
672 (EmacsScroller-mouseDown:) Use long format in printf, and cast
673 argument.
674
675 * config.in (NS_HAVE_NSINTEGER): Drop.
676
677 * dbusbind.c (dbus-method-return-internal)
678 (dbus-method-error-internal): Use long format in printf, and cast
679 argument.
680
681 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
682 in printf, and cast argument.
683
684 * process.c (list_processes_1): Use long format in printf, and
685 cast argument.
686
687 2009-10-11 Glenn Morris <rgm@gnu.org>
688
689 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
690
691 2009-10-08 Jan Djärv <jan.h.d@swipnet.se>
692
693 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
694 menu bar with a small width so it doesn't enlarge the frame.
695
696 2009-10-08 Juanma Barranquero <lekktu@gmail.com>
697
698 * fontset.c (Fset_fontset_font): Fix typos in error messages.
699
700 2009-10-06 Glenn Morris <rgm@gnu.org>
701
702 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
703 SOME_MACHINE_LISP (this enters indirectly via DOC).
704
705 2009-10-05 Eli Zaretskii <eliz@gnu.org>
706
707 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
708
709 2009-10-04 Eli Zaretskii <eliz@gnu.org>
710
711 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
712 Doc fix.
713
714 2009-10-03 Martin Rudalics <rudalics@gmx.at>
715
716 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
717
718 2009-10-02 Michael Albinus <michael.albinus@gmx.de>
719
720 * lisp.h (Qdelete_directory_internal): Remove, because it is not
721 used anymore outside fileio.c.
722
723 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
724
725 2009-10-01 Juanma Barranquero <lekktu@gmail.com>
726
727 * lisp.h (Qdelete_directory_internal):
728 Declare, instead of Qdelete_directory.
729
730 * w32fns.c (Fsystem_move_file_to_trash): Use it.
731
732 2009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
733
734 * eval.c (Fcalled_interactively_p): Add `kind' argument.
735
736 2009-10-01 Michael Albinus <michael.albinus@gmx.de>
737
738 * fileio.c (Fdelete_directory_internal): Rename from
739 Fdelete_directory. It is not a command anymore. It has no file
740 name handler.
741
742 2009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
743
744 * xdisp.c (get_next_display_element): Use an enum in last change.
745
746 2009-09-28 Kenichi Handa <handa@m17n.org>
747
748 * xdisp.c (get_next_display_element): Pay attention to
749 unibyte_display_via_language_environment in handling
750 Vnobreak_char_display.
751
752 2009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
753
754 * nsterm.h (ns_app_name): New extern variable.
755
756 * nsterm.m (ns_app_name): New variable.
757 (ns_term_init): Set and use it.
758 (ns_term_shutdown): Use it.
759
760 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
761 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
762
763 * nsfns.m (ns_set_name_iconic, ns_set_name)
764 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
765 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
766
767 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
768 Remove double-casting in client_data comparison.
769
770 2009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
771
772 * keyboard.c (make_lispy_event): Remember last wheel direction.
773 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
774
775 2009-09-26 Glenn Morris <rgm@gnu.org>
776
777 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
778 internal.elc. Add term/pc-win.elc.
779 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
780 term/x-win.elc.
781 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
782 term/w32-win.elc.
783 (NS_SUPPORT): New.
784 (lisp): Add NS_SUPPORT.
785 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
786
787 2009-09-25 David Reitter <david.reitter@gmail.com>
788
789 * nsmenu.m (EmacsMenu-clear): Recognize application menu
790 on Mac OS X 10.6+ (bug#4513).
791
792 2009-09-24 Juanma Barranquero <lekktu@gmail.com>
793
794 * frame.c (xrdb_get_resource): Return nil for empty string resources;
795 some parts of Emacs code (like font selection) don't grok them.
796 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
797
798 2009-09-24 Andreas Schwab <schwab@redhat.com>
799
800 * coding.c (decode_coding_iso_2022): Fix operator precedence.
801
802 2009-09-24 Juanma Barranquero <lekktu@gmail.com>
803
804 * dired.c (Fdirectory_files): Fix typo in docstring.
805
806 2009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
807
808 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
809 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
810 (EmacsScroller-setPosition:portion:whole:): Remove -display call
811 under GNUstep.
812 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
813
814 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
815 glyph advancement.
816
817 2009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
818
819 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
820 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
821
822 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
823 deleted (bug #4492).
824
825 * nsfont.m (Vns_reg_to_script): New lisp variable.
826 (syms_of_nsfont): Declare it.
827 (ns_registry_to_script): New function.
828 (ns_get_req_script): Call it.
829 (ns_findfonts): Don't give up on non-unicode registry.
830
831 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
832
833 2009-09-20 Tom Tromey <tromey@redhat.com>
834
835 * eval.c (find_handler_clause): Make stack-trace-on-error work in
836 batch mode (bug#4228).
837
838 2009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
839
840 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
841 carefully. (Bug #4339)
842
843 2009-09-18 Chong Yidong <cyd@stupidchicken.com>
844
845 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
846
847 2009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
848
849 * emacs.c (inhibit_x_resources): Update doc string for NS.
850 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
851 legacy code for -NXHost. Fix error printf in daemon case.
852
853 * nsterm.h (ns_no_defaults): Remove.
854
855 * nsterm.m (ns_no_defaults): Remove.
856 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
857 (ns_use_qd_smoothing): Remove legacy variable.
858 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
859 don't update the NSWindow itself.
860 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
861 state detection and store user rect ourselves. (Bug #3581)
862
863 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
864 ns_use_qd_smoothing.
865
866 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
867 platform versions. Drop support for emacs-20-style face specs.
868 (x-close-connection): Drop PSFlush() under OS X.
869 (x-focus-frame): Activate the app first. (Bug #4180)
870
871 2009-09-17 Juanma Barranquero <lekktu@gmail.com>
872
873 * emacs.c (inhibit_x_resources): New variable.
874 (main) [HAVE_NS]: Don't process --quick command line option.
875 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
876
877 * lisp.h (inhibit_x_resources): Declare it extern.
878
879 * w32reg.c (x_get_string_resource):
880 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
881
882 2009-09-17 Eli Zaretskii <eliz@gnu.org>
883
884 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
885 Add lisp/term/internal.elc.
886
887 2009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
888
889 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
890 (bug#4461).
891
892 2009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
893
894 * puresize.h (BASE_PURESIZE): Increase to 1290000.
895
896 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
897 (OBJECTS_MACHINE): Remove, unused.
898
899 2009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
900
901 * frame.c (x_get_resource_string): Remove unused.
902
903 2009-09-15 Jan Djärv <jan.h.d@swipnet.se>
904
905 * xterm.c (x_new_font): Call change_frame_size before calling
906 x_set_window_size, in case frame size won't change.
907
908 * frame.c (x_set_font): Remove dead code.
909
910 2009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
911
912 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
913
914 2009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
915
916 * lread.c (Fload): Don't output a message after loading an obsolete
917 package any more (done in Lisp now).
918
919 2009-09-12 Chong Yidong <cyd@stupidchicken.com>
920
921 * fns.c (syms_of_fns): Doc fix (Bug#4227).
922
923 2009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
924
925 * keymap.c (Fwhere_is_internal): Use nconc2.
926
927 2009-09-11 Alan Mackenzie <acm@muc.de>
928
929 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
930 batch mode.
931
932 2009-09-11 Andreas Schwab <schwab@linux-m68k.org>
933
934 * xdisp.c (display_mode_element): Detect cycles.
935
936 2009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
937
938 * keymap.c (where_is_internal): Don't erroneously return nil right after
939 filling the cache.
940 (where_is_internal_1): Fix up typo.
941
942 2009-09-11 Glenn Morris <rgm@gnu.org>
943
944 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
945 share a common doc-string.
946
947 2009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
948
949 * keymap.c (get_keymap): Return the actual keymap symbol rather than
950 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
951
952 * keymap.c (QCadvertised_binding): New constant.
953 (syms_of_keymap): Initialize it.
954 (Fwhere_is_internal): Try and use bindings from :advertised-binding
955 if applicable.
956
957 2009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
958
959 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
960 (parse_menu_item): Streamline since bindings are recomputed all the
961 time anyway. Don't bother checking Vdefine_key_rebound_commands any
962 more and don't support lmenu's menu-alias any more either.
963
964 * keymap.c (where_is_internal_data): Make noindirect a boolean.
965 (where_is_internal): Strip it down to only traverse the keymaps.
966 Move the cache handling from Fwhere_is_internal to here.
967 (Fwhere_is_internal): Move the handling of remapping and the choice of
968 the best binding from where_is_internal to here.
969 Unify the cached/noncached paths, so remapping is also handled
970 correctly when the cache is used, and so the cache can be used to
971 speed up remap-handling when applicable.
972 Give preference to non-remapped bindings.
973 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
974 non-remapped bindings.
975 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
976 command remapping.
977
978 * xdisp.c (display_mode_element): Move list length limit from 50 to
979 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
980
981 2009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
982
983 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
984
985 2009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
986
987 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
988 (Bug#4334)
989
990 * keymap.c (where_is_internal): Filter out shadowed remappings.
991 Assume that where_is_internal returns unshadowed bindings to simplify
992 the code and get rid of the gotos. Use ASIZE.
993
994 2009-09-04 Jan Djärv <jan.h.d@swipnet.se>
995
996 * xterm.c (x_focus_changed): If we get a focusout and pointer
997 is invisible, make it visible.
998
999 * xterm.h: Remove condition for declaration of
1000 x_*_window_to_frame.
1001
1002 2009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
1003
1004 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
1005 initial terminal as well.
1006
1007 2009-09-02 Jan Djärv <jan.h.d@swipnet.se>
1008
1009 * xterm.h: Rename x_non_menubar_window_to_frame to
1010 x_menubar_window_to_frame.
1011
1012 * xterm.c: Remove declarations also in xterm.h
1013 (XTmouse_position): Do not return valid positions
1014 for clicks in the menubar and the toolbar for Gtk+.
1015
1016 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
1017 if the widget for the event has the same top level as a frame,
1018 return the frame.
1019 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
1020 internal windows, bug #4122.
1021 (x_non_menubar_window_to_frame): Remove.
1022
1023 2009-09-02 Glenn Morris <rgm@gnu.org>
1024
1025 * buffer.c (default-major-mode): Move most of the doc from here...
1026 (major-mode): ... to here.
1027
1028 2009-08-30 Nick Roberts <nickrob@snap.net.nz>
1029
1030 * process.c (wait_reading_process_output): Keep the descriptor
1031 when pty is used by a non-child process, e.g., in I/O buffer of
1032 GDB this allows inferior to be restarted.
1033
1034 2009-08-29 Eli Zaretskii <eliz@gnu.org>
1035
1036 * xdisp.c (redisplay_internal): Remove redundant test and collapse
1037 both branches into one.
1038
1039 2009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
1040
1041 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
1042 (main): Use enable-multibyte-characters rather than
1043 default-enable-multibyte-characters. Output a warning message when
1044 running a unibyte session.
1045
1046 2009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1047
1048 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
1049 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
1050 (copy_data_segment): Also copy __program_vars section.
1051 (copy_dyld_info) [LC_DYLD_INFO]: New function.
1052 (dump_it) [LC_DYLD_INFO]: Use it.
1053
1054 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
1055
1056 2009-08-28 Eli Zaretskii <eliz@gnu.org>
1057
1058 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
1059 $(SRC)/buildobj.h.
1060 (buildobj.h): Renamed from $(SRC)/buildobj.h.
1061 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
1062 $(SRC)/buildobj.h.
1063 (clean): Add buildobj.h.
1064
1065 2009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
1066
1067 * print.c (print_object): Set escapeflag to 1 when printing
1068 hashtable keys and values.
1069
1070 2009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
1071
1072 * lread.c (read_integer): Use doubles (and potentially return a float
1073 number) as we do in string-to-number.
1074 (read1): Use strtol to read integers, signal errors on strtol's
1075 overflow and use floats if strtol's output is too large for
1076 Elisp integers.
1077
1078 2009-08-27 Eli Zaretskii <eliz@gnu.org>
1079
1080 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
1081 (make-buildobj-SH): Fix last change.
1082 (SRC): Move to before where it's first used.
1083
1084 2009-08-27 Kenichi Handa <handa@m17n.org>
1085
1086 * process.c (send_process): Use encode_coding_object instead of
1087 encode_coding_string to perform eol-conversion even if the string
1088 is unibyte.
1089
1090 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
1091 character.
1092
1093 * cmds.c (Fself_insert_command): Avoid unnecessay
1094 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
1095
1096 2009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
1097
1098 * callproc.c (Fcall_process): Remove always true #if.
1099
1100 * lisp.h: Replace #if 0 code for checking with text pointing to
1101 the --enable-checking configure flag.
1102
1103 * emacs.c (main): Mention the --enable-profiling configure flag
1104 instead of using CFLAGS.
1105
1106 2009-08-26 Ken Raeburn <raeburn@raeburn.org>
1107
1108 * Makefile.in (buildobj.h): New target.
1109 (doc.o): Depend on it.
1110 (temacs${EXEEXT}): Don't generate buildobj.lst.
1111 (mostlyclean): Delete buildobj.h, not buildobj.lst.
1112 * makefile.w32-in ($(SRC)/buildobj.h): New target.
1113 ($(BLD)/doc.$(O)): Depend on it.
1114 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
1115 provided by Eli Zaretskii.)
1116 ($(TEMACS)): Don't generate buildobj.lst.
1117 * doc.c: Include buildobj.h.
1118 (buildobj): New static variable.
1119 (Fsnarf_documentation): Use it, instead of opening and reading
1120 buildobj.lst.
1121
1122 2009-08-25 Michael Albinus <michael.albinus@gmx.de>
1123
1124 * dbusbind.c (Fdbus_call_method)
1125 (Fdbus_call_method_asynchronously): Use English numeric format for
1126 timeout values in doc string.
1127
1128 2009-08-25 Kenichi Handa <handa@m17n.org>
1129
1130 * alloc.c (mark_char_table): New function.
1131 (mark_object): Use mark_char_table for a char-table.
1132
1133 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
1134 (CHAR_TABLE_REF): Use it.
1135
1136 2009-08-23 Ken Raeburn <raeburn@raeburn.org>
1137
1138 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
1139 before invoking the newly build emacs to check for load-path
1140 shadowing.
1141
1142 2009-08-22 Glenn Morris <rgm@gnu.org>
1143
1144 * Makefile.in (bootstrap_exe): New variable.
1145 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
1146 Use ${bootstrap_exe}.
1147
1148 2009-08-22 Eli Zaretskii <eliz@gnu.org>
1149
1150 * coding.h (encode_coding_string): Don't encode unibyte strings.
1151 (Bug#4047)
1152
1153 2009-08-22 Michael Albinus <michael.albinus@gmx.de>
1154
1155 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
1156
1157 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
1158 intended as hotfix only.
1159 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
1160
1161 2009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
1162
1163 * nsterm.m (ns_get_color): Update documentation properly for last
1164 change, and clean up loose ends in the code left by it. Fix
1165 longstanding bug with 16-bit hex parsing, and add support for
1166 yet another X11 format (rgb:r/g/b) for compatibility.
1167 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
1168 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
1169
1170 2009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
1171
1172 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
1173
1174 2009-08-20 Michael Albinus <michael.albinus@gmx.de>
1175
1176 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
1177 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
1178 (xd_initialize, xd_pending_messages): Check, whether
1179 $DBUS_SESSION_BUS_ADDRESS is set.
1180
1181 2009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1182
1183 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
1184
1185 * nsterm.m (ns_get_color): Remove incompatible color formats again.
1186
1187 2009-08-20 Glenn Morris <rgm@gnu.org>
1188
1189 * emacs.c (system-type): Doc fix.
1190
1191 2009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
1192
1193 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
1194 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
1195
1196 2009-08-18 Michael Albinus <michael.albinus@gmx.de>
1197
1198 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
1199 New functions.
1200 (xd_initialize): Revert change from 2009-08-16.
1201
1202 2009-08-18 Kenichi Handa <handa@m17n.org>
1203
1204 * fontset.c (Ffontset_font): If a nil element is found in a
1205 font-group vector, return nil.
1206
1207 2009-08-17 Chong Yidong <cyd@stupidchicken.com>
1208
1209 * process.c (status_notify): Don't perform redisplay.
1210 (Fdelete_process, list_processes_1, process_send_signal):
1211 Expliticly perform redisplay.
1212 (wait_reading_process_output): Always check process status, but
1213 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
1214
1215 2009-08-17 Ken Raeburn <raeburn@raeburn.org>
1216
1217 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
1218 (XFLOAT_INIT): New macro for storing a float value.
1219 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
1220 * fns.c (sxhash): Copy out the value of a float in order to
1221 examine its bytes.
1222 * dbusbind.c (xd_append_arg): Likewise.
1223
1224 * emacs.c (main): Don't call syms_of_data twice.
1225
1226 2009-08-16 Michael Albinus <michael.albinus@gmx.de>
1227
1228 * dbusbind.c (xd_initialize): Add connection file descriptor to
1229 input_wait_mask, in order to let select() detect, whether a new
1230 message has been arrived.
1231 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
1232
1233 2009-08-15 Michael Albinus <michael.albinus@gmx.de>
1234
1235 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
1236 New functions.
1237
1238 * lisp.h (xd_pending_messages): Declare.
1239
1240 * keyboard.c (readable_events): Call xd_pending_messages.
1241
1242 2009-08-15 Chong Yidong <cyd@stupidchicken.com>
1243
1244 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
1245
1246 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
1247
1248 * buffer.c (set_buffer_internal_1)
1249 (swap_out_buffer_local_variables): Check for unbound local
1250 variables (Bug#4138).
1251
1252 2009-08-14 Eli Zaretskii <eliz@gnu.org>
1253
1254 * process.c (create_pty): Fix last change.
1255
1256 2009-08-13 Chong Yidong <cyd@stupidchicken.com>
1257
1258 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
1259 (xbm_load_image): Caller changed.
1260 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
1261
1262 2009-08-13 Nick Roberts <nickrob@snap.net.nz>
1263
1264 * process.c (create_pty): New function.
1265 (Fstart_process): Use it to allow Emacs to just associate a pty
1266 with the buffer. See associated change in gdb-mi.el.
1267 (list_processes_1): Deal with no program name.
1268 (start_process_unwind): Use pid == -2 to mean no process.
1269
1270 2009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
1271
1272 * cmds.c (nonundocount): New global variable.
1273 (keys_of_cmds): Initialize it.
1274 (Fself_insert_command): Use it to combine upto 20 sequential chars
1275 into a single undo entry, just like the Qself_insert_command code in
1276 keyboard.c does.
1277 Call frame_make_pointer_invisible, also like the Qself_insert_command
1278 code in keyboard.c does.
1279 * keyboard.c (command_loop_1): Use the new global nonundocount rather
1280 than its own local replacement for it.
1281
1282 2009-08-10 Ken Raeburn <raeburn@raeburn.org>
1283
1284 * fns.c (concat): Don't re-set string length to its current value.
1285
1286 * coding.h (decode_coding_string, encode_coding_string):
1287 Use SBYTES macro.
1288
1289 * doprnt.c (doprnt_lisp): Delete unused function.
1290 (doprnt): Merge with doprnt1, discarding lispstrings code.
1291 * lisp.h (doprnt_lisp): Don't declare.
1292
1293 2009-08-07 Juri Linkov <juri@jurta.org>
1294
1295 * puresize.h (BASE_PURESIZE): Increase to 1270000.
1296
1297 2009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
1298
1299 * print.c (syms_of_print): Undo previous change.
1300
1301 2009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
1302
1303 * lread.c (read1, syms_of_lread): Read hashtables back from the
1304 readable format.
1305
1306 * print.c (print_preprocess, print_object): Print hashtables fully
1307 and readably.
1308 (syms_of_print): Provide 'hashtable-print-readable.
1309
1310 2009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
1311
1312 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
1313 no family set.
1314 (nsfont_open): Handle case when entity has no family.
1315
1316 2009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
1317
1318 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
1319 element, not a list, for match case.
1320
1321 2009-07-28 Kenichi Handa <handa@m17n.org>
1322
1323 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
1324 rigidly.
1325
1326 * xfont.c (xfont_list_pattern): Don't ignore the return value of
1327 font_parse_xlfd. Check font properties more rigidly.
1328
1329 2009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
1330
1331 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
1332 bsd-common.h.
1333
1334 2009-07-27 Kenichi Handa <handa@m17n.org>
1335
1336 * xfaces.c (face_with_height): Call font_clear_prop.
1337
1338 2009-07-26 Chong Yidong <cyd@stupidchicken.com>
1339
1340 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
1341
1342 * xterm.c (x_term_init): Use Qx.
1343
1344 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
1345
1346 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
1347 (ns_get_color): Revert 2009-07-16 change.
1348
1349 2009-07-25 Eli Zaretskii <eliz@gnu.org>
1350
1351 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1352 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
1353
1354 2009-07-25 Ken Raeburn <raeburn@raeburn.org>
1355
1356 * coding.h (decode_coding_string, encode_coding_string):
1357 Use SCHARS macro.
1358
1359 * lread.c: Rewrite 2009-07-21 changes.
1360 (load_depth): Delete.
1361 (Qload_in_progress): New variable.
1362 (load_unwind): Don't reference load_depth or load_in_progress.
1363 (Fload): Likewise; specbind Qload_in_progress instead.
1364 (init_lread): Don't initialize load_depth.
1365 (syms_of_lread): Initialize and protect Qload_in_progress.
1366
1367 2009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
1368
1369 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
1370
1371 2009-07-23 Yavor Doganov <yavor@gnu.org>
1372
1373 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
1374
1375 2009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
1376
1377 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
1378 Bugs 3792, 3720, 2402.
1379 (ns_lookup_indexed_color): Check for bad index.
1380 (ns_index_color): Init unused slot to 0.
1381 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
1382 Bug 3714, possibly 3082.
1383
1384 2009-07-22 Jason Rumney <jasonr@gnu.org>
1385
1386 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
1387 Position IME window at cursor (Bug#2570).
1388 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
1389 (globals_of_w32fns): Dynamically load functions required above.
1390
1391 * w32term.c (w32_draw_window_cursor): Send message to reposition
1392 any IME window.
1393
1394 2009-07-21 Chong Yidong <cyd@stupidchicken.com>
1395
1396 * fileio.c: Revert 2009-07-16 changes.
1397 (Vauto_save_include_big_deletions): New variable.
1398 (Fdo_auto_save): Disable auto-save only if
1399 auto-save-include-big-deletions is nil.
1400
1401 2009-07-21 Chong Yidong <cyd@stupidchicken.com>
1402
1403 * xdisp.c (move_it_to): For continued lines ending in a tab, take
1404 the overflowed pixels into account (Bug#3879).
1405
1406 2009-07-21 Ken Raeburn <raeburn@raeburn.org>
1407
1408 * lread.c (load_depth): New variable.
1409 (Fload, load_unwind, init_lread): Set it to the load recursion
1410 depth; set load_in_progress as a simple boolean based on the
1411 current load_depth. (Bug#3892)
1412
1413 2009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
1414
1415 * nsfont.m (ns_has_attribute): Remove.
1416 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
1417
1418 2009-07-18 Juri Linkov <juri@jurta.org>
1419
1420 * process.c (Fset_process_query_on_exit_flag): Mention killing
1421 a buffer in docstring.
1422
1423 2009-07-17 Kenichi Handa <handa@m17n.org>
1424
1425 * casetab.c (shuffle): Fix the logic of setting up the cycle.
1426
1427 2009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1428
1429 * nsfns.m (Fns_set_alpha): Remove function.
1430 (syms_of_nsfns): Don't defsubr it.
1431
1432 * nsterm.m (ns_get_color): Remove incompatible color formats.
1433 (ns_color_to_lisp): Generate #rrggbb color format string.
1434
1435 2009-07-16 Richard Stallman <rms@gnu.org>
1436
1437 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
1438 (Fset_buffer_auto_saved): Handle save_length = -2.
1439
1440 2009-07-16 Chong Yidong <cyd@stupidchicken.com>
1441
1442 * xterm.c (Qx_gtk_map_stock): New var.
1443
1444 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
1445 of calling intern each time.
1446
1447 2009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1448
1449 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
1450 does tiling.
1451
1452 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
1453
1454 2009-07-14 Kenichi Handa <handa@m17n.org>
1455
1456 * font.c (font_vconcat_entity_vectors): New function.
1457 (struct font_sort_data): New member font_driver_preference.
1458 (font_compare): Check font_driver_preference.
1459 (font_sort_entities): The format of the first argument changed.
1460 (font_delete_unmatched): Likewise.
1461 (font_list_entities): The return type changed.
1462 (font_select_entity): The format of the second argument changed.
1463 (font_find_for_lface): Adjuste for the above changes.
1464 Don't suppress the checking of C even if the repertory supports it.
1465 (Flist_fonts): Adjust for the above changes.
1466
1467 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
1468 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
1469 Reject a font who has adstyle property that is different from a
1470 langname derived from registry property.
1471 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
1472
1473 2009-07-13 Eli Zaretskii <eliz@gnu.org>
1474
1475 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
1476 local copy of dirfilename.
1477
1478 2009-07-13 Kenichi Handa <handa@m17n.org>
1479
1480 * chartab.c (sub_char_table_ref_and_range): Fix the range check
1481 against max_char.
1482
1483 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
1484 calling XSYMBOL (sym).
1485
1486 2009-07-11 Eli Zaretskii <eliz@gnu.org>
1487
1488 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
1489 New function.
1490 (directory_files_internal) [WINDOWSNT]:
1491 Bind w32-get-true-file-attributes to either t or nil, depending whether
1492 the filesystem of the directory is fast or slow.
1493
1494 * w32.c (logon_network_drive): Don't assume PATH is an absolute
1495 file name.
1496 (is_slow_fs): New function.
1497 (stat): Use it to determine whether to issue more system calls to
1498 get accurate file attributes, when w32-get-true-file-attributes is
1499 `local'.
1500
1501 2009-07-10 Jan Djärv <jan.h.d@swipnet.se>
1502
1503 * xfns.c (Fx_select_font): Remember last font selected in
1504 x_last_font_name and use that the next time. Also try the frame
1505 parameter font-parameter as default to the font dialog.
1506
1507 2009-07-10 Kenichi Handa <handa@m17n.org>
1508
1509 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
1510
1511 2009-07-09 Eli Zaretskii <eliz@gnu.org>
1512
1513 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
1514
1515 * w32.c (stat): Treat UNC file names as residing on remote
1516 drives. (Bug#3542)
1517
1518 2009-07-09 Kenichi Handa <handa@m17n.org>
1519
1520 * fontset.c (fontset_find_font): Fix previous change.
1521
1522 2009-07-08 Michael Albinus <michael.albinus@gmx.de>
1523
1524 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
1525 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
1526 error flag.
1527
1528 2009-07-08 Kenichi Handa <handa@m17n.org>
1529
1530 * fontset.c (fontset_find_font): Fix the logic of handling
1531 charset_matched.
1532 (font_for_char): Delete unused var.
1533 (generate_ascii_font_name): Delete it.
1534
1535 * coding.h (JIS_TO_SJIS2): Fix the code range check.
1536
1537 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
1538 (encode_coding_sjis): Fix the code range check.
1539
1540 2009-07-07 Chong Yidong <cyd@stupidchicken.com>
1541
1542 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
1543 (Fexpand_file_name): Copy string data properly (Bug#3772).
1544
1545 2009-07-07 Jan Djärv <jan.h.d@swipnet.se>
1546
1547 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
1548 first MapNotify.
1549
1550 2009-07-07 Kenichi Handa <handa@m17n.org>
1551
1552 * character.h (unibyte_has_multibyte_table): Delete extern.
1553 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
1554
1555 * charset.c (Fset_charset_priority): Update charset_unibyte.
1556 (syms_of_charset): Initialize charset_unibyte.
1557
1558 * character.c (unibyte_has_multibyte_table): Delete it.
1559 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
1560 charset_unibyte.
1561 (multibyte_char_to_unibyte_safe): Likewise.
1562 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
1563
1564 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
1565 (x_produce_glyphs): Likewise.
1566
1567 * .gdbinit (xcharset): Fix the treating $arg0.
1568
1569 2009-07-04 Eli Zaretskii <eliz@gnu.org>
1570
1571 Emulation of `getloadavg' on MS-Windows.
1572 * w32.c: Include float.h
1573 (g_b_init_get_native_system_info, g_b_init_get_system_times)
1574 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
1575 (get_native_system_info, get_system_times): New functions.
1576 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
1577 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
1578 (globals_of_w32): Initialize g_b_init_get_native_system_info,
1579 g_b_init_get_system_times, and num_of_processors.
1580
1581 2009-07-03 Jason Rumney <jasonr@gnu.org>
1582
1583 * w32term.c (w32_initialize): Use standard types.
1584
1585 2009-07-03 Eli Zaretskii <eliz@gnu.org>
1586
1587 * dired.c (Ffile_attributes): Decode user and group names by the
1588 locale's encoding. (Bug#3443)
1589
1590 2009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
1591
1592 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
1593 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
1594
1595 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
1596
1597 * term.c (init_tty): Remove spurious #ifdef.
1598
1599 * m/mips.h: Mention this file is also used for netbsd.
1600 * m/pmax.h: Remove file.
1601
1602 2009-07-03 Jan Djärv <jan.h.d@swipnet.se>
1603
1604 * xterm.h (struct x_display_info): Add invisible_cursor.
1605 (struct x_output): Add current_cursor.
1606
1607 * xterm.c (XTtoggle_invisible_pointer): New function.
1608 (x_define_frame_cursor): Don't define cursor if invisible or the
1609 same as before. Set current_cursor.
1610 (x_create_terminal): Set toggle_invisible_pointer_hook.
1611
1612 * xfns.c (make_invisible_cursor): New function.
1613 (x_set_mouse_color): Call make_invisible_cursor.
1614 Set current_cursor.
1615 (x_window): Set current_cursor.
1616
1617 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
1618
1619 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
1620 inserting a character.
1621 (read_avail_input): Call frame_make_pointer_visible.
1622
1623 * frame.c (Vmake_pointer_invisible): New variable.
1624 (frame_make_pointer_invisible, frame_make_pointer_visible):
1625 New functions.
1626 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
1627
1628 * frame.h: Declare frame_make_pointer_invisible and
1629 frame_make_pointer_visible.
1630 (struct frame): Add pointer_invisible.
1631
1632 2009-07-02 Jan Djärv <jan.h.d@swipnet.se>
1633
1634 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
1635 frame isn't visible.
1636 (xg_frame_resized): If width/height is -1, get size of window
1637 from X server.
1638
1639 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
1640 for MapNotify.
1641
1642 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
1643 here or call change_frame_size. Just call flush_and_sync.
1644 (flush_and_sync): Reintroduce.
1645
1646 2009-07-01 Jan Djärv <jan.h.d@swipnet.se>
1647
1648 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
1649
1650 * xterm.c (x_handle_net_wm_state): Also look for sticky.
1651 (x_term_init): Initialize Xatom_net_wm_state_sticky.
1652
1653 * frame.h: Declare Qsticky.
1654
1655 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
1656
1657 * nsfns.m (ns_frame_parm_handlers): Ditto.
1658
1659 * frame.c: Declare Qsticky.
1660 (frame_parms): Add sticky.
1661
1662 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
1663
1664 * xterm.h: Declare x_set_sticky.
1665
1666 * xterm.c (x_set_sticky): New function.
1667
1668 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
1669 (xg_tool_bar_menu_proxy): Attach enter/leave events to
1670 xg_tool_bar_proxy_help_callback.
1671
1672 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
1673
1674 * frame.c: Qmaximized is new.
1675 (x_set_frame_parameters): Do not handle fullscreen specially.
1676 Only set width and height if explicitly set.
1677 (x_set_fullscreen): Handle Qmaximized.
1678 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
1679 (syms_of_frame): Initialize Qmaximized.
1680
1681 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
1682 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
1683
1684 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
1685 for Expose event. Add call to x_check_fullscreen for MapNotify event.
1686 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
1687 set gravity to NorthWestGravity when USE_GTK.
1688 (set_wm_state): New function.
1689 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
1690 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
1691 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
1692 or the case when no window manager is running. That means remove calls
1693 to x_real_positions and x_fullscreen_adjust.
1694
1695 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
1696 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
1697 flush_and_sync.
1698 (xg_height_changed): New function.
1699 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1700 and gtk_window_set_policy. Set frame gravity after parsing the
1701 geometry string.
1702 (xg_update_frame_menubar, free_frame_menubar)
1703 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
1704 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
1705 Remove calls to xg_frame_set_char_size.
1706
1707 2009-07-01 Kenichi Handa <handa@m17n.org>
1708
1709 * keyboard.c (decode_keyboard_code): New function.
1710 (tty_read_avail_input): Decode the input bytes if necessary.
1711
1712 * coding.c (setup_coding_system):
1713 Initialize coding->carryover_bytes to 0.
1714 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
1715 use Qno_conversion.
1716
1717 2009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1718
1719 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
1720
1721 2009-06-30 Chong Yidong <cyd@stupidchicken.com>
1722
1723 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
1724
1725 2009-06-30 Jason Rumney <jasonr@gnu.org>
1726
1727 * w32term.c (w32_initialize): Use GetModuleHandle for library that
1728 is already loaded.
1729 Set user model ID if supported (bug#1849).
1730
1731 2009-06-29 Jim Meyering <meyering@redhat.com>
1732
1733 Remove useless if-before-xfree test.
1734 * nsfont.m (nsfont_close): Remove useless test.
1735 * term.c (delete_tty): Likewise.
1736 * w32.c (system_process_attributes): Likewise.
1737 * w32font.c (w32font_close): Likewise.
1738 * xfaces.c (x_free_gc): Likewise.
1739 * xselect.c (buffer): Likewise.
1740
1741 2009-06-28 Andreas Schwab <schwab@linux-m68k.org>
1742
1743 * process.c (send_process): Keep decoded string in a local
1744 variable and protect it from GC. (Bug#3521)
1745
1746 2009-06-28 Eli Zaretskii <eliz@gnu.org>
1747
1748 * term.c (create_tty_output) [MSDOS]: #ifdef away.
1749 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
1750
1751 2009-06-28 Chong Yidong <cyd@stupidchicken.com>
1752
1753 * xdisp.c (start_display, handle_face_prop)
1754 (move_it_vertically_backward, cursor_row_fully_visible_p)
1755 (redisplay_window, try_window_id, produce_image_glyph):
1756 Delete some #ifdef-ed out code chunks that are now obsolete.
1757
1758 * xterm.c (x_update_window_begin, x_new_focus_frame)
1759 (x_scroll_bar_handle_click, handle_one_xevent)
1760 (handle_one_xevent, XTread_socket, x_focus_on_frame)
1761 (x_make_frame_visible, x_make_frame_invisible)
1762 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
1763 code chunks that are now obsolete.
1764
1765 2009-06-28 Michael Albinus <michael.albinus@gmx.de>
1766
1767 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
1768 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
1769 for hours, when optimzation is enabled.
1770 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
1771 (xd_read_message): Make them static.
1772
1773 2009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
1774
1775 * term.c (turn_on_face): Allow simultaneously bold and dim
1776 terminal faces (Bug#3530).
1777
1778 2009-06-27 Chong Yidong <cyd@stupidchicken.com>
1779
1780 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
1781
1782 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
1783 truncation glyphs (Bug#3686).
1784
1785 2009-06-27 Glenn Morris <rgm@gnu.org>
1786
1787 * m/pmax.h: Restore file, with only netbsd portions.
1788
1789 2009-06-26 David Reitter <david.reitter@gmail.com>
1790
1791 * nsterm.m (keydown): Avoid infinite loop.
1792
1793 2009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
1794
1795 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
1796 the arg FORCE_SYMBOL.
1797
1798 2009-06-25 Kenichi Handa <handa@m17n.org>
1799
1800 * fontset.c (fontset_find_font): When a usable rfont_def is found
1801 in a fallback font-group, make it the first element of the group.
1802
1803 2009-06-24 Chong Yidong <cyd@stupidchicken.com>
1804
1805 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
1806
1807 2009-06-24 Kenichi Handa <handa@m17n.org>
1808
1809 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
1810 set for C.
1811 (fontset_font): Record the availability of a font for C both in
1812 the realized fontsets of the current one and the default one.
1813
1814 2009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
1815
1816 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
1817 conditional, it is always defined on AIX.
1818
1819 2009-06-23 Miles Bader <miles@gnu.org>
1820
1821 * window.c (Vrecenter_redisplay): New variable.
1822 (syms_of_window): Initialize it.
1823 (Qtty): New extern declaration.
1824 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
1825
1826 2009-06-23 Jim Meyering <meyering@redhat.com>
1827
1828 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
1829 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
1830 pointer dereferences are guaranteed to be valid.
1831
1832 2009-06-23 Kenichi Handa <handa@m17n.org>
1833
1834 * emacs.c (main): Call init_font ().
1835
1836 * font.h (Vfont_log): Extern it.
1837 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
1838
1839 * font.c (font_sort_entities, font_list_entities)
1840 (font_matching_entity, font_open_entity)
1841 (font_close_object): Change font_add_log to FONT_ADD_LOG.
1842 (Vfont_log): Delete static.
1843 (font_log_env_checked): Delete this variable.
1844 (font_add_log): Don't check font_log_env_checked.
1845 (font_deferred_log): Check Vfont_log.
1846 (init_font): New function.
1847
1848 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
1849
1850 * w32font.c: Change font_add_log to FONT_ADD_LOG.
1851
1852 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
1853
1854 * xfont.c: Change font_add_log to FONT_ADD_LOG.
1855
1856 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
1857 (face_for_char): Don't call font_deferred_log here.
1858 (font_for_char): Likewise.
1859
1860 2009-06-22 Chong Yidong <cyd@stupidchicken.com>
1861
1862 * w32term.c (x_draw_glyph_string): Use the glyph string's width
1863 rather than its background_width for drawing the overline and
1864 underline (Bug#489).
1865
1866 * xterm.c (x_draw_glyph_string): Use the glyph string's width
1867 rather than its background_width for drawing the overline and
1868 underline (Bug#489).
1869 (xg_default_icon_file): New variable.
1870 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
1871 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
1872
1873 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
1874 (load_overlay_strings): Remove externs.
1875 (fast_find_position): Function deleted.
1876 (mouse_face_from_buffer_pos): New function, based on
1877 fast_find_position. Correctly handle before-strings,
1878 display-strings, and after-strings (Bug#1220).
1879 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
1880
1881 2009-06-21 Chong Yidong <cyd@stupidchicken.com>
1882
1883 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
1884 (move_it_in_display_line_to, move_it_in_display_line_to)
1885 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
1886
1887 2009-06-21 Chong Yidong <cyd@stupidchicken.com>
1888
1889 * Branch for 23.1.
1890
1891 2009-06-21 Jason Rumney <jasonr@gnu.org>
1892
1893 * w32term.c (keyboard_codepage): New static variable.
1894 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
1895 (w32_read_socket) [WM_CHAR]: Use it to decode character
1896 input (bug#3237).
1897 (w32_initialize): Initialize it.
1898 (codepage_for_locale): New function.
1899
1900 2009-06-20 Ken Raeburn <raeburn@raeburn.org>
1901
1902 * process.c (status_message): Pass Faset index argument as a lisp
1903 object, so as to work with USE_LISP_UNION_TYPE.
1904
1905 2009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1906
1907 * coding.c (Ffind_coding_systems_region_internal):
1908 Cache checked characters.
1909
1910 2009-06-18 Kenichi Handa <handa@m17n.org>
1911
1912 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
1913
1914 2009-06-18 Andreas Schwab <aschwab@redhat.com>
1915
1916 * xdisp.c (redisplay_internal): Check that the frame is still
1917 live after redisplay of its windows.
1918 (redisplay_windows): Check that the window is still live.
1919
1920 2009-06-17 Andreas Schwab <schwab@linux-m68k.org>
1921
1922 * coding.c (detect_coding_utf_16): Fix previous change.
1923
1924 2009-06-16 Kenichi Handa <handa@m17n.org>
1925
1926 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
1927 UTF-16 by checking the dispersion of Eth and Oth bytes.
1928
1929 2009-06-15 Andreas Schwab <schwab@linux-m68k.org>
1930
1931 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
1932
1933 2009-06-15 Kenichi Handa <handa@m17n.org>
1934
1935 * process.c (status_message): Fix previous change. Be sure to
1936 decode a localized string.
1937
1938 2009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1939
1940 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
1941 add comment explaining why.
1942
1943 2009-06-14 Sidney Markowitz <sidney@sidney.com>
1944
1945 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
1946
1947 2009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
1948
1949 * nsfont.m (ns_attribute_value): Remove.
1950 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
1951 (ns_has_attribute): Shrink the normal range.
1952 (ns_findfonts): Don't worry about requested spec in determining
1953 need for synthItal.
1954 (ns_get_covering_families): Retain scriptToFamilies.
1955
1956 2009-06-14 Seiji Zenitani <zenitani@mac.com>
1957
1958 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
1959
1960 2009-06-11 Kenichi Handa <handa@m17n.org>
1961
1962 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
1963 overhang for the static composition case.
1964
1965 2009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1966
1967 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
1968 overhang for the automatic composition case.
1969
1970 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
1971 composition case.
1972
1973 2009-06-10 Chong Yidong <cyd@stupidchicken.com>
1974
1975 * xdisp.c (get_next_display_element): When handling wrap-prefix
1976 and line-prefix, treat \n as a control character (bug#3502).
1977
1978 2009-06-10 Kenichi Handa <handa@m17n.org>
1979
1980 * font.c (font_parse_family_registry): Fix for one-char foundry.
1981 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
1982
1983 2009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
1984
1985 * process.c (status_message): Fix handling of multibyte signal
1986 string (Bug#3499).
1987
1988 2009-06-09 Jim Meyering <meyering@redhat.com>
1989
1990 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
1991 color name is missing.
1992
1993 2009-06-09 Kenichi Handa <handa@m17n.org>
1994
1995 * charset.c (Fmap_charset_chars): In docstring, state clearly that
1996 FROM-CODE and TO-CODE are codepoints of CHARSET.
1997
1998 2009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
1999
2000 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
2001
2002 2009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
2003
2004 Changes to support :script/:lang/:otf in NS font driver.
2005 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
2006 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
2007 indicate not part of font driver interface, and change callers.
2008 (ns_get_family): Remove pointless null check.
2009 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
2010 ns_spec_to_descriptor, ns_descriptor_to_entity.
2011 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
2012 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
2013 (ns_spec_to_descriptor, ns_descriptor_to_entity)
2014 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
2015 (ns_get_req_script, ns_accumulate_script_ranges)
2016 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
2017 New functions.
2018 (nsfont_list, nsfont_match): Use ns_findfonts.
2019 (nsfont_open): Use font descriptor instead of traits.
2020 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
2021 (dump_glyphstring): Rename to ns_dump_glyphstring.
2022
2023 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
2024
2025 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
2026
2027 * fontset.c (fontset_from_font): Remove NS-specific code.
2028
2029 2009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
2030
2031 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
2032 nonactive windows.
2033
2034 2009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
2035
2036 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
2037
2038 2009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
2039
2040 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
2041
2042 2009-06-07 Chong Yidong <cyd@stupidchicken.com>
2043
2044 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
2045 account for the overflowing of newlines into the last glyph on the
2046 display line (Bug#3482).
2047
2048 2009-06-05 David Reitter <david.reitter@gmail.com>
2049
2050 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
2051 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
2052 Fns_selection_exists_p, Fns_selection_owner_p.
2053
2054 2009-06-03 Jason Rumney <jasonr@gnu.org>
2055
2056 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
2057 available. (Bug#3379)
2058
2059 2009-05-29 Kenichi Handa <handa@m17n.org>
2060
2061 * coding.c (get_translation_table):
2062 Check Venable_character_translation.
2063
2064 2009-05-26 David Reitter <david.reitter@gmail.com>
2065
2066 * nsterm.m (ns_raise_frame): Only raise frame if visible.
2067 (x_make_frame_visible): Move frame to front rather than calling
2068 ns_raise_frame().
2069 (keyDown:): Do not swallow events that aren't re-sent if frame
2070 isn't key window.
2071 (drawRect:): Do not set visibility/iconified flags because
2072 drawRect may be called by NSView even if the frame is hidden.
2073
2074 * nsfns.m (Fx_create_frame): Follow other ports in
2075 determining visibility; default to t. Ensure async_visible is set.
2076
2077 2009-05-23 Eli Zaretskii <eliz@gnu.org>
2078
2079 * dired.c (Ffile_attributes): Doc fix.
2080
2081 2009-05-22 Chong Yidong <cyd@stupidchicken.com>
2082
2083 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
2084
2085 2009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
2086
2087 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
2088 and xfont_scratch_props.
2089 (syms_of_xfont): Do it here instead.
2090 (xfont_find_ccl_program): Delete, unused.
2091 (xfont_open): Delete unused var `i'.
2092
2093 2009-05-21 Kenichi Handa <handa@m17n.org>
2094
2095 * fontset.c (Qlatin): Don't make it static.
2096
2097 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
2098 New functions.
2099 (xfont_scripts_cache, xfont_scratch_props): New variables.
2100 (Qlatin, Vscalable_fonts_allowed): Extern it.
2101 (xfont_list_pattern): Argument changed. Callers changed.
2102 Check Vscalable_fonts_allowed. Check the support of a script.
2103 (xfont_list): Don't reject a font spec with :script property.
2104 (xfont_has_char): Fix setting of encoding.
2105 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
2106 xfont_scratch_props.
2107
2108 2009-05-19 Kenichi Handa <handa@m17n.org>
2109
2110 * font.c (font_sort_entities): Rename from font_sort_entites.
2111 Callers changed.
2112
2113 2009-05-18 Kenichi Handa <handa@m17n.org>
2114
2115 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
2116
2117 2009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
2118
2119 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
2120 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
2121
2122 2009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2123
2124 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
2125 (x_delete_terminal): Dissociate resource database from display and
2126 then call XrmDestroyDatabase before closing display.
2127
2128 2009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
2129
2130 * nsterm.m (ns_read_socket): Remove unused variable.
2131 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
2132 whether selected frame is viable before raising it (based on patch
2133 by David Reitter), and improve commentary.
2134 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
2135
2136 2009-05-15 Kenichi Handa <handa@m17n.org>
2137
2138 * font.c (Ffont_spec): Check arguments.
2139
2140 2009-05-14 Chong Yidong <cyd@stupidchicken.com>
2141
2142 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
2143 weight when testing attributes (Bug#3282).
2144
2145 2009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2146
2147 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
2148 what we expect to get in the next ConfigureNotify event.
2149
2150 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
2151 before Xft one (Bug#1696).
2152
2153 2009-05-07 David Reitter <david.reitter@gmail.com>
2154
2155 * nsfns.m (Fx_display_planes): Compute bitplanes using
2156 NSBitsPerPixelFromDepth (Bug#3207).
2157
2158 2009-05-10 Chong Yidong <cyd@stupidchicken.com>
2159
2160 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
2161
2162 2009-05-10 Ulrich Mueller <ulm@gentoo.org>
2163
2164 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
2165
2166 2009-05-07 David Reitter <david.reitter@gmail.com>
2167
2168 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
2169 Respect mouse face background.
2170
2171 2009-05-07 David Reitter <david.reitter@gmail.com>
2172
2173 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
2174 Mouse movement/highlight: bracket drawing operations
2175 in ns_update_begin and ns_update_end.
2176
2177 2009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
2178
2179 * nsfns.m (ns_get_screen): Rewrite.
2180 Don't presume selected-frame is of type `ns'.
2181
2182 * font.c (font_update_drivers): Sanity fallback to avoid disabling
2183 all drivers.
2184
2185 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
2186
2187 2009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2188
2189 * keyboard.h (add_user_signal): Fix typo in extern.
2190
2191 * lisp.h (add_user_signal): Remove extern.
2192
2193 * unexelf.c (unexec): Consider a section to precede the .bss section
2194 if its addresses overlap that of .bss.
2195 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
2196 instead of dumping process.
2197
2198 2009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
2199
2200 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
2201
2202 2009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
2203
2204 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
2205
2206 2009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
2207
2208 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
2209 any statements.
2210
2211 2009-05-02 Andreas Schwab <schwab@linux-m68k.org>
2212
2213 * process.c (read_process_output): Make sure the current buffer is
2214 always restored.
2215
2216 * coding.c (record_conversion_result): Don't modify
2217 Vlast_code_conversion_error for successful result.
2218 (alloc_destination): Don't clobber conversion result. (Bug#1650)
2219
2220 2009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
2221
2222 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
2223 (load_charset_map): Remove unnecessary code.
2224
2225 2009-04-30 David Reitter <david.reitter@gmail.com>
2226
2227 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
2228 through f24.
2229
2230 2009-04-30 Chong Yidong <cyd@stupidchicken.com>
2231
2232 * xfaces.c (face_at_buffer_position): New arg base_face_id.
2233
2234 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
2235 face_at_buffer_position.
2236 (face_before_or_after_it_pos, get_next_display_element)
2237 (note_mouse_highlight): Update face_at_buffer_position call.
2238
2239 * term.c (term_mouse_highlight):
2240 * msdos.c (IT_note_mouse_highlight):
2241 * fontset.c (Finternal_char_font):
2242 * font.c (font_at, font_range): Update face_at_buffer_position call.
2243
2244 * dispextern.h (face_at_buffer_position): Update prototype.
2245
2246 2009-04-30 Kenichi Handa <handa@m17n.org>
2247
2248 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
2249
2250 2009-04-29 Andreas Schwab <schwab@linux-m68k.org>
2251
2252 * callproc.c (Fcall_process): Fix GC protection. Make sure
2253 current buffer is always restored.
2254
2255 2009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2256
2257 * atimer.c (init_atimer): Also clear stopped_atimers.
2258
2259 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
2260
2261 * process.c (create_process): Clean up merger residues of
2262 2008-07-17 change.
2263
2264 2009-04-29 Ulrich Mueller <ulm@gentoo.org>
2265
2266 * lread.c (Vread_circle): New variable.
2267 (read1): Disable recursive read if Vread_circle is nil.
2268
2269 2009-04-29 Kenichi Handa <handa@m17n.org>
2270
2271 * fontset.h (set_default_ascii_font): Delete extern.
2272
2273 * fontset.c (set_default_ascii_font): Delete this unused function.
2274
2275 * frame.c (x_set_font): When ARG is a font-object, check if the
2276 font-object matches with the ASCII font-spec of the frame's
2277 fontset. If not, create a new fontset for the frame. (Bug #3075)
2278
2279 2009-04-28 Andreas Schwab <schwab@linux-m68k.org>
2280
2281 * fns.c (Flocale_info): Protect vector from GC during decoding.
2282
2283 * process.c (Fstart_process): Protect argv strings from GC during
2284 encoding.
2285
2286 2009-04-27 Andreas Schwab <schwab@linux-m68k.org>
2287
2288 * sysdep.c: Include <ctype.h>.
2289
2290 2009-04-27 David Reitter <david.reitter@gmail.com>
2291
2292 * nsfont.m (nsfont_open): Remove unused variable shrink.
2293 Remove commented-out code.
2294
2295 2009-04-26 Johan Bockgård <bojohan@gnu.org>
2296
2297 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
2298
2299 2009-04-25 Jason Rumney <jasonr@gnu.org>
2300
2301 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
2302
2303 2009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2304
2305 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
2306 Swap bytes in short integer if fringe bitmap width > 8.
2307
2308 2009-04-23 Kenichi Handa <handa@m17n.org>
2309
2310 * xfaces.c (Fx_list_fonts): If a font size is specified in
2311 PATTERN, set it in returned scalable fonts.
2312
2313 2009-04-22 Chong Yidong <cyd@stupidchicken.com>
2314
2315 * keyboard.c (Fset_input_meta_mode): Doc fix.
2316
2317 * dispnew.c (Fsend_string_to_terminal): Doc fix.
2318
2319 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
2320
2321 * coding.c (Fterminal_coding_system): Doc fix.
2322
2323 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
2324 (Fx_display_pixel_height, Fx_display_planes)
2325 (Fx_display_color_cells, Fx_server_max_request_size)
2326 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
2327 (Fx_display_mm_height, Fx_display_mm_width)
2328 (Fx_display_backing_store, Fx_display_visual_class)
2329 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
2330 Doc fixes, replacing "terminal id" with "terminal object".
2331 (check_x_display_info): Handle terminal objects instead of
2332 terminal ids.
2333
2334 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
2335 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
2336 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
2337 Doc fixes, replacing "terminal id" with "terminal object".
2338
2339 2009-04-21 Kenichi Handa <handa@m17n.org>
2340
2341 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
2342 (font_score): Check AVGWIDTH too.
2343
2344 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
2345 worst case.
2346 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
2347 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
2348
2349 2009-04-19 Jason Rumney <jasonr@gnu.org>
2350
2351 The following changes fix Bug#3005 for wide glyphs on each platform,
2352 without reintroducing Bug#1258 for stretch glyphs.
2353
2354 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
2355 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
2356 get_phys_cursor_geometry.
2357
2358 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
2359 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
2360 using get_phys_cursor_geometry.
2361
2362 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
2363 correctly calculated.
2364
2365 2009-04-19 Jan Djärv <jan.h.d@swipnet.se>
2366
2367 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
2368 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
2369 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
2370 is deprecated.
2371
2372 2009-04-18 Andreas Schwab <schwab@linux-m68k.org>
2373
2374 * font.c (font_put_frame_data): Use xfree instead of free.
2375
2376 2009-04-17 Juanma Barranquero <lekktu@gmail.com>
2377
2378 * w32font.c (Qja, Qko): Remove declarations.
2379 (syms_of_w32font): Don't DEFSYM them.
2380
2381 2009-04-17 Chong Yidong <cyd@stupidchicken.com>
2382
2383 * font.c (Qja, Qko): Move definitions here from ftfont.c.
2384
2385 * font.h (Qja, Qko): Extern them.
2386
2387 * ftfont.c (Qja, Qko): Remove declarations.
2388
2389 * xfont.c (Qja, Qko): Remove declarations.
2390
2391 2009-04-17 Kenichi Handa <handa@m17n.org>
2392
2393 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
2394 string from a vector to handle Latin-1 characters correctly.
2395
2396 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
2397 entity even if the cache hits.
2398
2399 2009-04-16 Andreas Schwab <schwab@linux-m68k.org>
2400
2401 * search.c (boyer_moore): Use zero as marker value for a possible
2402 match instead of depending on overflow behavior. (Bug#2844)
2403
2404 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
2405 * lisp.h: Adjust prototypes.
2406
2407 2009-04-16 Chong Yidong <cyd@stupidchicken.com>
2408
2409 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
2410 change (Bug#3003).
2411
2412 2009-04-16 Kenichi Handa <handa@m17n.org>
2413
2414 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
2415
2416 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
2417 adstyle.
2418
2419 * ftfont.c (Qja, Qko): Don't make them static.
2420 (enum ftfont_cache_for): New enum.
2421 (fc_charset_table): Undo the previous change.
2422 (ftfont_get_latin1_charset): Delete it.
2423 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
2424 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
2425 non-scarable font, try to get AVERAGE_WIDTH.
2426 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
2427 Change ft_face_cache from a list of a hash-table. Don't check
2428 `ja' and `ko' adstyle here.
2429 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
2430 FTFONT_CACHE_FOR_CHARET.
2431 (ftfont_get_charset): Undo the previous change.
2432 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
2433 (ftfont_close): Likewise.
2434 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
2435
2436 * font.c (font_sort_entites): Change the meaning of the arg
2437 BEST-ONLY. Don't optimize for VEC of lenght 1.
2438 (font_select_entity): Just return the value of font_sort_entites.
2439
2440 * xfaces.c (merge_face_vectors): Reflect font properties in
2441 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
2442 font_clear_prop if a face attribute doesn't change.
2443
2444 * charset.h (charset_ksc5601): Extern it.
2445
2446 * charset.c (charset_ksc5601): New variable.
2447 (Fdefine_charset_internal): Set charset_ksc5601.
2448 (init_charset_once): Initialize charset_ksc5601 to -1.
2449
2450 2009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
2451
2452 * fileio.c (history_delete_duplicates): Remove unused declaration.
2453
2454 * callint.c (history_delete_duplicates): New declaration.
2455 (Fcall_interactively): Remove command history duplicates when
2456 history_delete_duplicates is true.
2457
2458 2009-04-14 Eli Zaretskii <eliz@gnu.org>
2459
2460 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
2461
2462 2009-04-14 Kenichi Handa <handa@m17n.org>
2463
2464 * font.c (Ffont_info): Fix docstring. Fix the second element of
2465 the returned value (bug#2949).
2466
2467 2009-04-14 Chong Yidong <cyd@stupidchicken.com>
2468
2469 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
2470
2471 2009-04-14 Kenichi Handa <handa@m17n.org>
2472
2473 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
2474 encoding charset is ascii_compatible.
2475
2476 * charset.c (Fdefine_charset_internal): Make charset
2477 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
2478 code_offset is 0, and covers all ASCII characters.
2479
2480 2009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
2481
2482 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
2483 (ns_string_to_pasteboard_internal):
2484 * nsmenu.m (process_dialog):
2485 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
2486 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
2487 * lisp.h (Fx_load_color_file): Declare.
2488
2489 2009-04-13 Kenichi Handa <handa@m17n.org>
2490
2491 * font.c (font_delete_unmatched): Preserve the order of list elements.
2492 (font_select_entity): Suppress the code to optimize for the same
2493 kind of fonts.
2494 (font_load_for_lface): Get a font that supports at least ASCII
2495 characters.
2496
2497 * ftfont.c (Qja, Qko): New variables.
2498 (fc_charset_table): Delete uniquifier data for iso8859-1.
2499 (ftfont_get_latin1_charset): New function.
2500 (get_adstyle_property): New function.
2501 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
2502 bitmap fonts.
2503 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
2504 Delete iso-8859-1 range from the charset of fonts whose adstyle is
2505 `ko' or `ja'.
2506 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
2507 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
2508 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
2509 property.
2510 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
2511 (syms_of_ftfont): DEFSYM Qja and Qko.
2512
2513 2009-04-09 Kenichi Handa <handa@m17n.org>
2514
2515 * charset.c (map_charset_chars): For a charset of `superset'
2516 method, fix calculation of code range.
2517
2518 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
2519 from the list of extra properties.
2520 (font_clear_prop): Be sure to delete `:name' font property.
2521
2522 2009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2523
2524 * dispnew.c (redraw_overlapping_rows): Fix detection of
2525 overlapping for topmost and bottommost rows.
2526
2527 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
2528
2529 2009-04-06 Jason Rumney <jasonr@gnu.org>
2530
2531 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
2532
2533 2009-04-06 Kenichi Handa <handa@m17n.org>
2534
2535 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
2536
2537 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
2538
2539 2009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2540
2541 * ftfont.c (ftfont_open): Fix checking of the return value of
2542 FT_Load_Char. Fix setting font->underline_thickness.
2543
2544 2009-04-04 Chong Yidong <cyd@stupidchicken.com>
2545
2546 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
2547 (Fterminal_parameters, Fterminal_parameter)
2548 (Fset_terminal_parameter): In doc string, refer to terminal
2549 objects rather than terminal ids.
2550
2551 2009-04-04 Eli Zaretskii <eliz@gnu.org>
2552
2553 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
2554 ret_lim_data. (Bug#2867)
2555
2556 2009-04-03 Chong Yidong <cyd@stupidchicken.com>
2557
2558 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
2559 so they don't get wider than the window, matching 2006-01-23
2560 change to the partner function in xdisp.c (Bug#2800).
2561
2562 2009-04-03 Kenichi Handa <handa@m17n.org>
2563
2564 * print.c (print_object): Make each lowest sub_char_table start a
2565 new line (Bug#2866).
2566
2567 2009-04-02 Kenichi Handa <handa@m17n.org>
2568
2569 * fontset.c (fontset_font): Record no-font when a fontset
2570 explicitly tells not to try another font-specs.
2571
2572 2009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
2573
2574 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
2575
2576 2009-03-30 Kenichi Handa <handa@m17n.org>
2577
2578 * fontset.c (fontset_from_font): Specify only registry in a
2579 font-spec for all characters supported by that registry.
2580
2581 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
2582 even if HAVE_M17N_FLT is not defined.
2583
2584 2009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
2585
2586 * ftfont.c: Conditionalize prototyping and use of
2587 ftfont_variation_glyphs.
2588
2589 2009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
2590
2591 * frame.c (delete_frame): Work around compiler bug.
2592
2593 * editfns.c (general_insert_function): Adjust to insdel.c changes.
2594 * insdel.c (prepare_to_modify_buffer, signal_before_change):
2595 Some more EMACS_INT.
2596 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
2597
2598 * xdisp.c (dump_glyph): Fix typo.
2599
2600 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
2601 (adjust_markers_gap_motion, adjust_markers_for_delete)
2602 (adjust_markers_for_insert, adjust_point)
2603 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
2604 (make_gap, copy_text, count_size_as_multibyte, insert)
2605 (insert_and_inherit, insert_before_markers)
2606 (insert_before_markers_and_inherit, insert_1)
2607 (count_combining_before, count_combining_after, insert_1_both)
2608 (insert_from_string, insert_from_string_before_markers)
2609 (insert_from_string_1, insert_from_gap, insert_from_buffer)
2610 (insert_from_buffer_1, adjust_after_replace)
2611 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
2612 (replace_range_2, del_range, del_range_1, del_range_byte)
2613 (del_range_both, del_range_2, modify_region)
2614 (prepare_to_modify_buffer, signal_before_change)
2615 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
2616 for buffer positions and sizes.
2617 * lisp.h: Adjust prototypes accordingly.
2618
2619 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
2620 (non_regular_inserted, non_regular_nbytes, read_non_regular)
2621 (Finsert_file_contents): Use EMACS_INT for buffer positions.
2622
2623 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
2624
2625 2009-03-27 Jan Djärv <jan.h.d@swipnet.se>
2626
2627 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
2628 lines and columns so we keep the same pixel height and width.
2629
2630 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
2631 the property _NET_WM_STATE has changed.
2632 (x_handle_net_wm_state): New function to update frame parameter
2633 fullscreen.
2634 (x_term_init): Initialize atoms for _NET_WM_STATE.
2635
2636 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
2637
2638 2009-03-27 Kevin Ryde <user42@zip.com.au>
2639
2640 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
2641 Gpm_GetEvent as an error that justifies closing the filedescriptor.
2642 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
2643 (Fgpm_mouse_stop): Pass that new parameter.
2644 * termhooks.h (close_gpm): Adjust prototype.
2645
2646 2009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
2647
2648 * lisp.h (Fx_focus_frame): Declare.
2649
2650 * callint.c (Fcall_interactively): For '^' just delegate the work to
2651 handle-shift-selection.
2652 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
2653
2654 2009-03-24 Chong Yidong <cyd@stupidchicken.com>
2655
2656 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
2657
2658 * data.c (Qinteractive_form): New variable.
2659 (Finteractive_form): Use it.
2660
2661 * eval.c (Fcommandp): Use Qinteractive_form.
2662
2663 2009-03-24 Jason Rumney <jasonr@gnu.org>
2664
2665 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
2666 Calculate total size precisely. Decode environment variables
2667 before substituting. (Bug#38)
2668
2669 2009-03-24 Kenichi Handa <handa@m17n.org>
2670
2671 * font.c (find_font_encoding): Return Qnil for unsupported
2672 encoding (Bug#2722).
2673
2674 2009-03-23 Jan Djärv <jan.h.d@swipnet.se>
2675
2676 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
2677 that gdpy is set.
2678
2679 2009-03-22 Alan Mackenzie <acm@muc.de>
2680
2681 * callint.c (Finteractive): Clarify the doc string - even
2682 promptless elements need \n separators.
2683
2684 2009-03-22 Jason Rumney <jasonr@gnu.org>
2685
2686 * w32term.c (syms_of_w32term): Doc fix for
2687 x-use-underline-position-properties.
2688
2689 2009-03-21 Eli Zaretskii <eliz@gnu.org>
2690
2691 * w32.c (getpwuid): Change argument type to unsigned.
2692 (struct w32_id): Change type of `rid' member to unsigned.
2693 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
2694 argument ID to unsigned. All callers changed.
2695 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
2696
2697 2009-03-20 Eli Zaretskii <eliz@gnu.org>
2698
2699 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
2700 negative, produce a float value.
2701
2702 * dired.c (make_uid, make_gid): New functions.
2703 (Ffile_attributes): Use them to avoid negative UID and GID.
2704
2705 2009-03-20 Juanma Barranquero <lekktu@gmail.com>
2706
2707 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
2708 (syms_of_keyboard) <command-hook-internal, input-method-function>:
2709 Fix typos in docstrings.
2710
2711 2009-03-19 Kenichi Handa <handa@m17n.org>
2712
2713 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
2714 changed, use font_load_for_lface to get a new font object.
2715 Call free_realized_fontset after handling ASCII font change.
2716
2717 * frame.c (x_set_font): Handle the case that ARG is a cons.
2718
2719 2009-03-19 Glenn Morris <rgm@gnu.org>
2720
2721 * fileio.c (Fsubstitute_in_file_name): Doc fix.
2722
2723 2009-03-19 Chong Yidong <cyd@stupidchicken.com>
2724
2725 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
2726
2727 2009-03-19 Kenichi Handa <handa@m17n.org>
2728
2729 * charset.c (load_charset_map_from_file): When a mapfile can't be
2730 loaded, signal an error.
2731
2732 2009-03-18 Eli Zaretskii <eliz@gnu.org>
2733
2734 * dired.c (Ffile_attributes): Make sure UID and GID are always
2735 positive, even if the value is too large for a positive EMACS_INT.
2736 Doc fix.
2737
2738 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
2739
2740 2009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2741
2742 * xmenu.c (xdialog_show): Move Fredisplay call ...
2743 (Fx_popup_dialog): ... here.
2744
2745 2009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
2746
2747 * dired.c (file_name_completion): Disable the first optimization just
2748 installed, since it is not implemented correctly.
2749
2750 2009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
2751
2752 * dired.c (file_name_completion): Check completion-ignored-extensions
2753 only if the entry can affect bestmatch.
2754 Stop the search early, as Ftry_completion already does.
2755
2756 2009-03-17 Chong Yidong <cyd@stupidchicken.com>
2757
2758 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
2759
2760 2009-03-15 Chong Yidong <cyd@stupidchicken.com>
2761
2762 * keyboard.c (parse_menu_item): Don't display remappings as menu
2763 equivalent bindings (Bug#788).
2764
2765 2009-03-15 Jason Rumney <jasonr@gnu.org>
2766
2767 * w32term.h (WM_EMACS_PAINT): New message.
2768 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
2769 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
2770 before passing to lisp thread. (Bug#950)
2771
2772 2009-03-14 David Reitter <david.reitter@gmail.com>
2773
2774 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
2775 variable as it was never reset.
2776 (ns_term_init): Remove initialization of Lisp-settable defaults
2777 and ns_expand_space.
2778 (-setPanelFromDefaultValues): Remove ns_expand_space.
2779 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
2780 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
2781 i.e. no additional spacing, similar to Carbon port.
2782
2783 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
2784 * nsfns.m (ns-popup-prefs-panel): Remove.
2785
2786 2009-03-14 Jan Djärv <jan.h.d@swipnet.se>
2787
2788 * sound.c (alsa_configure): Remove call to deprecated
2789 snd_pcm_sw_params_set_xfer_align.
2790
2791 2009-03-14 Stephen Berman <stephen.berman@gmx.net>
2792
2793 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
2794 after clicking in a detached tool bar.
2795 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
2796
2797 2009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
2798
2799 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
2800 int/Lisp_Object mixup).
2801
2802 2009-03-13 Kenichi Handa <handa@m17n.org>
2803
2804 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
2805 Handle NAME nil and t correctly. Callers changed.
2806 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
2807 (set_fontset_font): Change ARG to a vector. Handle range_list in
2808 ARG correctly.
2809 (Fset_fontset_font): Fix the case that TARGET is both a script
2810 name and charset name. Adjust the arg to set_fontset_font for
2811 the above change.
2812 (fontset_from_font): Fix previous change.
2813 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
2814 entry. If FONTSET is the default fontset, don't set the extra
2815 slot of the returning char-table.
2816
2817 2009-03-12 Juanma Barranquero <lekktu@gmail.com>
2818
2819 * nsfns.m (Fx_close_connection): Doc fix.
2820 (Fns_do_applescript): Reflow docstring.
2821 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
2822 (Fx_display_pixel_width, Fx_display_pixel_height)
2823 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
2824 Fix typos in docstrings.
2825 (Fns_set_alpha): Fix typos in error messages.
2826
2827 2009-03-12 David Reitter <david.reitter@gmail.com>
2828
2829 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
2830 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
2831 were used for such events.
2832
2833 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
2834 (toggleToolbar, performDragOperation, runHelp): Use it.
2835
2836 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
2837 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
2838
2839 2009-03-11 Kenichi Handa <handa@m17n.org>
2840
2841 * font.h (font_open_by_spec): Extern it.
2842
2843 * font.c (font_open_by_spec): New function.
2844 (font_open_by_name): Use font_open_by_spec.
2845
2846 * frame.c (x_set_font): When ARG is a font-object, don't alter the
2847 fontset of the frame.
2848
2849 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
2850 modify the default font of frames that use this fontset.
2851 (num_auto_fontsets): New variable.
2852 (fontset_from_font): Use num_auto_fontsets to decide a fontset
2853 name. Be sure to set FONTSET_ASCII to the correct font name.
2854 (update_auto_fontset_alist): New function.
2855
2856 2009-03-11 Juanma Barranquero <lekktu@gmail.com>
2857
2858 * makefile.w32-in: Update dependencies.
2859
2860 2009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
2861
2862 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
2863
2864 2009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
2865
2866 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
2867
2868 2009-03-10 Chong Yidong <cyd@stupidchicken.com>
2869
2870 * lread.c (Feval_buffer): Doc fix.
2871
2872 2009-03-09 Kenichi Handa <handa@m17n.org>
2873
2874 * charset.c (Qfile_name_handler_alist): Extern it.
2875 (load_charset_map_from_file): Temporarily bind
2876 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
2877
2878 2009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
2879
2880 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
2881 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
2882
2883 2009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
2884
2885 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
2886 (x_set_window_size): Change back to calculated method of setting
2887 toolbar height under Cocoa. (Bug#2546)
2888 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
2889 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
2890
2891 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
2892
2893 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
2894 accelerator in parens under GNUstep.
2895
2896 2009-03-06 Kenichi Handa <handa@m17n.org>
2897
2898 These changes are to detect incorrect composition sequence without
2899 looking ahead the source. (Bug#2370)
2900
2901 * coding.h: Include "composite.h".
2902 (enum compisition_state): New enum.
2903 (struct compisition_status): New struct.
2904 (struct iso_2022_spec): New member cmp_status.
2905 (struct emacs_mule_spec): New struct.
2906 (struct coding_system): New members ctext_extended_segment_len and
2907 embedded_utf_8. Change the union member
2908 spec.emacs_mule_full_support to spec.emacs_mule.
2909
2910 * coding.c (CODING_ISO_CMP_STATUS): New macro.
2911 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
2912 (MAX_ANNOTATION_LENGTH): Define to 5.
2913 (ADD_COMPOSITION_DATA): New arg nbytes.
2914 (emacs_mule_char): New arg cmp_status.
2915 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
2916 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
2917 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
2918 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
2919 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
2920 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
2921 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
2922 (EMACS_MULE_COMPOSITION_END): New macro.
2923 (emacs_mule_finish_composition): New function.
2924 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
2925 (decode_coding_emacs_mule): Avoid long looking ahead while
2926 handling composition.
2927 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
2928 (ENCODE_COMPOSITION_RULE): New macro.
2929 (finish_composition): New function.
2930 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
2931 (DECODE_COMPOSITION_START): New implementation.
2932 (DECODE_COMPOSITION_END): Likewise.
2933 (STORE_COMPOSITION_RULE): New macro.
2934 (decode_coding_iso_2022): Avoid long looking ahead while handling
2935 composition, CTEXT extended segment, and embedded UTF-8.
2936 (setup_coding_system): For a coding of type iso-2022, reset
2937 CODING_ISO_EXTSEGMENT_LEN (coding) and
2938 CODING_ISO_EMBEDDED_UTF_8 (coding).
2939 (get_translation): Delete arguments last_block, from_nchars,
2940 to_nchars. Callers changed.
2941 (produce_chars): Don't modify charbuf. Adjusted for the change of
2942 get_translation.
2943 (produce_composition): Adjust for the new annotation sequence.
2944 (handle_composition_annotation): Likewise.
2945 (consume_chars): Adjust for the change of get_translation.
2946
2947 2009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
2948
2949 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
2950
2951 2009-03-05 Kenichi Handa <handa@m17n.org>
2952
2953 * font.c (font_select_entity): New function.
2954 (font_find_for_lface): Use font_select_entity to select a font.
2955
2956 * fontset.c (fontset_find_font): If a font found without
2957 restricting to the characters C doesn't support C, try to find a
2958 font with C restriction.
2959
2960 2009-03-04 Nikolaj Schumacher <me@nschum.de>
2961
2962 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2963
2964 2009-03-04 Jason Rumney <jasonr@gnu.org>
2965
2966 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
2967 characters that have already been read. (Bug#2569)
2968
2969 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
2970 Log an error message if check_image_size failed.
2971 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
2972 (gs_load): Mention max-image-size in size error message. (Bug#2560)
2973
2974 2009-03-02 Eli Zaretskii <eliz@gnu.org>
2975
2976 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
2977 when decoding process output.
2978
2979 2009-03-01 Richard M Stallman <rms@gnu.org>
2980
2981 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
2982
2983 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
2984
2985 2009-02-28 Eli Zaretskii <eliz@gnu.org>
2986
2987 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
2988 (decode_coding_emacs_mule, decode_coding_iso_2022)
2989 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
2990 (decode_coding_raw_text, decode_coding_charset)
2991 (setup_coding_system, decode_eol, decode_coding, consume_chars):
2992 Honor inhibit-eol-conversion. (Bug #2186)
2993
2994 2009-02-28 Jason Rumney <jasonr@gnu.org>
2995
2996 * coding.c (detect_coding_charset): If not checking latin extra,
2997 fail on characters between 0x80 and 0xA0. (Bug#2354)
2998
2999 2009-02-28 Eli Zaretskii <eliz@gnu.org>
3000
3001 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
3002 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
3003
3004 2009-02-27 Glenn Morris <rgm@gnu.org>
3005
3006 * callint.c (Finteractive): Doc fix.
3007
3008 2009-02-27 Kenichi Handa <handa@m17n.org>
3009
3010 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
3011
3012 2009-02-27 Chong Yidong <cyd@stupidchicken.com>
3013
3014 * font.c (font_style_to_value): Set value for unknown symbols to
3015 100 instead of 255.
3016 (weight_table, slant_table, width_table): Treat "unspecified" as
3017 the default value.
3018
3019 2009-02-26 Juanma Barranquero <lekktu@gmail.com>
3020
3021 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
3022
3023 2009-02-25 Juanma Barranquero <lekktu@gmail.com>
3024
3025 * lread.c (Fload): Stop checking Vloads_in_progress and signal
3026 error as soon as a recursive load is detected.
3027
3028 2009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
3029
3030 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
3031 before caching.
3032
3033 2009-02-24 Kenichi Handa <handa@m17n.org>
3034
3035 * fontset.c (fontset_find_font): Fix the condition for checking
3036 unavailable font.
3037
3038 2009-02-24 Glenn Morris <rgm@gnu.org>
3039
3040 * xfaces.c (Finternal_set_font_selection_order): Remove leading
3041 whitespace that confuses documentation.
3042
3043 2009-02-23 Miles Bader <miles@gnu.org>
3044
3045 * process.c (Flist_system_processes, Fprocess_attributes)
3046 (syms_of_process): Rename `system-process-attributes' to
3047 `process-attributes'.
3048
3049 2009-02-22 Andreas Schwab <schwab@linux-m68k.org>
3050
3051 * coding.h (struct coding_system): Make safe_charsets a pointer to
3052 unsigned char.
3053 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
3054 being 255.
3055 (SAFE_CHARSET_P): Likewise.
3056 (setup_iso_safe_charsets): Properly setup safe_charsets.
3057 (Fdefine_coding_system_internal): Likewise.
3058 (setup_coding_system): Likewise. Remove unneeded casts.
3059 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
3060 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
3061 unneeded casts.
3062
3063 * insdel.c (del_range_2): Don't modify gap contents when called
3064 from decode_coding_object. (Bug#1809)
3065
3066 2009-02-21 Chong Yidong <cyd@stupidchicken.com>
3067
3068 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
3069 Qfont_object.
3070 (Ftype_of): Recognize font objects.
3071
3072 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
3073
3074 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
3075 moved to data.c.
3076
3077 2009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
3078
3079 * nsterm.m (x_make_frame_invisible): Unset async_visible,
3080 async_iconified. Based on a patch by Christian Lynbech
3081 <christian.lynbech@tieto.com>.
3082 (EmacsView-windowDidMiniaturize:): Unset async_visible.
3083
3084 2009-02-20 Glenn Morris <rgm@gnu.org>
3085
3086 * syntax.c (Fskip_chars_forward): Fix doc typo.
3087
3088 2009-02-20 Chong Yidong <cyd@stupidchicken.com>
3089
3090 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
3091
3092 2009-02-19 Chong Yidong <cyd@stupidchicken.com>
3093
3094 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
3095
3096 2009-02-19 Kenichi Handa <handa@m17n.org>
3097
3098 * coding.c (detect_coding): Preserve coding->mode.
3099 Don't overflow coding->carryover. (Bug#2370)
3100
3101 2009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
3102
3103 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
3104
3105 2009-02-18 Kenichi Handa <handa@m17n.org>
3106
3107 * font.c (font_check_otf_features): Fix handling of `nil' element.
3108 (Ffont_spec): Describe :lang and :otf in the docstring.
3109
3110 2009-02-16 Andreas Schwab <schwab@suse.de>
3111
3112 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
3113 string.
3114
3115 2009-02-16 Kenichi Handa <handa@m17n.org>
3116
3117 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
3118 (Bug#1723)
3119
3120 2009-02-14 Chong Yidong <cyd@stupidchicken.com>
3121
3122 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
3123
3124 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
3125 (handle_line_prefix): Suppress wrapping of wrap prefixes.
3126
3127 2009-02-14 Eli Zaretskii <eliz@gnu.org>
3128
3129 * msdos.c (MAX_SCREEN_BUF): New macro.
3130 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
3131 Encode the entire run of glyphs sharing the same face, instead of
3132 doing that one glyph at a time (fixes a bug with displaying
3133 double-size characters).
3134
3135 2009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
3136
3137 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
3138
3139 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
3140 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
3141 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
3142
3143 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
3144 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
3145
3146 2009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
3147
3148 * keyboard.c (adjust_point_for_property): Allow stopping betwen two
3149 invisible areas.
3150
3151 2009-02-12 Jason Rumney <jasonr@gnu.org>
3152
3153 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
3154 (add_font_entity_to_list): Call check_face_name even when family
3155 is unspecified.
3156
3157 * w32term.c (x_display_pixel_height, x_display_pixel_width):
3158 Release DC when finished. Use NULL window to refer to desktop.
3159 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
3160
3161 * w32font.c (add_font_entity_to_list): Fix check for substituted
3162 raster fonts. (Bug#2219)
3163
3164 2009-02-12 Kenichi Handa <handa@m17n.org>
3165
3166 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
3167 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
3168 (autocmp_chars): Use fast_looking_at. Don't compose more
3169 characters than MAX_COMPOSITION_COMPONENTS.
3170 (find_automatic_composition): While looking forward and backward,
3171 check static composition. Fix where to stop looking forward.
3172 (composition_adjust_point): Fix checking of static composition.
3173 (Fcomposition_get_gstring): Pay attention to
3174 MAX_COMPOSITION_COMPONENTS.
3175
3176 * lisp.h (fast_looking_at): Extern it.
3177
3178 * search.c (fast_looking_at): New function.
3179
3180 * term.c (encode_terminal_code): Adjust for the change of
3181 <struct glyph>.u.cmp.to.
3182 (append_composite_glyph): Likewise.
3183
3184 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
3185 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
3186 composition.
3187 (append_composite_glyph): Adjust for the change of
3188 <strcut glyph>.u.cmp.to.
3189
3190 2009-02-11 Juanma Barranquero <lekktu@gmail.com>
3191
3192 * casetab.c (init_casetab_once):
3193 * coding.c (ALLOC_CONVERSION_WORK_AREA):
3194 * font.c (font_update_lface):
3195 * fontset.c (Fnew_fontset):
3196 * ftfont.c (ftfont_drive_otf):
3197 * xfont.c (xfont_open):
3198 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
3199
3200 2009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
3201
3202 * fileio.c (Fwrite_region): !NILP -> CONSP.
3203
3204 2009-02-10 Andreas Schwab <schwab@suse.de>
3205
3206 * process.c (send_process): Properly relocate pointer into data
3207 when using encoded data. (Bug#2272)
3208
3209 2009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
3210
3211 * coding.c (detect_coding_charset): Fix previous change.
3212
3213 2009-02-08 Jason Rumney <jasonr@gnu.org>
3214
3215 * w32fns.c (w32_hide_hourglass): Handle case where frame
3216 disappeared while hourglass was displayed. (Bug #2193)
3217
3218 2009-02-07 Andreas Schwab <schwab@suse.de>
3219
3220 * unexelf.c (unexec): Fix error message.
3221
3222 2009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
3223
3224 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
3225 when modal window is active. (Bug #2152)
3226 (applicationShouldTerminate:): Remove now-unneeded while loop
3227 around NSRunAlertPanel.
3228
3229 * nsmenu.m (popupSession): New file-global variable.
3230 (pop_down_menu): End the popupSession before closing dialog.
3231 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
3232 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
3233 don't query NSApp for events (just sleep instead).
3234
3235 2009-02-07 Eli Zaretskii <eliz@gnu.org>
3236
3237 * coding.c (syms_of_coding) <translation-table-for-input>:
3238 Modify doc string to discourage use for character code unification.
3239
3240 2009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3241
3242 * atimer.c (run_timers): Update pending_atimers.
3243
3244 2009-02-06 Chong Yidong <cyd@stupidchicken.com>
3245
3246 * image.c (svg_load_image): Fix last change.
3247
3248 * xfns.c (Fx_create_frame): Signal an error if no font is
3249 found (Bug#2147).
3250
3251 2009-02-05 Juanma Barranquero <lekktu@gmail.com>
3252
3253 * character.c (syms_of_character) <script-representative-chars>:
3254 Fix typo in docstring.
3255
3256 2009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
3257
3258 * nsmenu.m (pop_down_menu): New function.
3259 (ns_popup_dialog): Call it on unwind.
3260 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
3261 call timer_check() (Bug#2154).
3262 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
3263 handling_signal is set.
3264 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
3265
3266 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
3267
3268 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
3269
3270 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
3271
3272 * keyboard.c (poll_for_input_1, handle_async_input):
3273 Set handling_signal under HAVE_NS.
3274
3275 2009-02-04 Glenn Morris <rgm@gnu.org>
3276
3277 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
3278
3279 2009-02-04 Kenichi Handa <handa@m17n.org>
3280
3281 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
3282
3283 * charset.c (Fchar_charset): New optional arg restriction.
3284
3285 * coding.h (coding_system_charset_list): Extern it.
3286
3287 * coding.c (coding_system_charset_list): New function.
3288
3289 * composite.c: Include coding.h and termhooks.h.
3290 (composition_gstring_p): Fix for the terminal case.
3291 (composition_gstring_width): Likewise.
3292 (fill_gstring_body): Likewise.
3293 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
3294 the frame.
3295 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
3296 is within a composition.
3297 (Fcomposition_get_gstring): Fix the terminal case.
3298
3299 * term.c (encode_terminal_code): Fix handling of composition.
3300 (produce_composite_glyph): For static composition, get pixel_width
3301 from struct composition.
3302
3303 2009-02-02 Andreas Schwab <schwab@suse.de>
3304
3305 * unexelf.c (unexec): Handle unaligned bss offset.
3306
3307 2009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
3308
3309 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
3310 XT,w32read_socket changes to ns_read_socket.
3311
3312 * keyboard.c (handle_interrupt): Don't call
3313 quit_throw_to_read_char() under NS.
3314
3315 * blockinput.h: Remove NS-specific code.
3316
3317 2009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
3318
3319 * dispnew.c (window_change_signal): Don't try to get the size of a
3320 suspended tty frame.
3321 * term.c (Fresume_tty): Resize if the size has changed while the
3322 tty was suspended.
3323
3324 * alloc.c (mark_stack): Properly conditionalize previous change.
3325
3326 2009-01-30 Juanma Barranquero <lekktu@gmail.com>
3327
3328 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
3329 * w32term.c (w32_read_socket) [SYNC_INPUT]:
3330 Remove; this code is not used on Windows.
3331
3332 2009-01-30 Eli Zaretskii <eliz@gnu.org>
3333
3334 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
3335 EOLs that also has stray ^M characters.
3336
3337 2009-01-30 Juanma Barranquero <lekktu@gmail.com>
3338
3339 * atimer.c (run_timers, alarm_signal_handler):
3340 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
3341 * w32inevt.c (w32_console_read_socket):
3342 * w32term.c (w32_read_socket):
3343 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
3344
3345 2009-01-30 Chong Yidong <cyd@stupidchicken.com>
3346
3347 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
3348 Initialize it as a relative filename pattern.
3349 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
3350 (Fcall_process_region): Simplify temp file creation using
3351 temporary-file-directory.
3352
3353 2009-01-29 Eli Zaretskii <eliz@gnu.org>
3354
3355 * msdos.c: Rename pending_signals to msdos_pending_signals.
3356 (sig_suspender, sigprocmask): Adjust.
3357
3358 2009-01-29 Chong Yidong <cyd@stupidchicken.com>
3359
3360 * keyboard.c (pending_signals): New var.
3361 (poll_for_input, input_available_signal, init_keyboard): Set it.
3362 (process_pending_signals): New function.
3363
3364 * lisp.h (QUIT): Check pending_signals instead of
3365 interrupt_input_pending. Use process_pending_signals.
3366
3367 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
3368
3369 * process.c (wait_reading_process_output): Use process_pending_signals.
3370
3371 * sysdep.c (emacs_write): Use process_pending_signals.
3372
3373 * xterm.c (XTread_socket): Update pending_signals.
3374
3375 * w32term.c (w32_read_socket): Update pending_signals.
3376
3377 * w32inevt.c (w32_console_read_socket): Update pending_signals.
3378
3379 2009-01-29 Kenichi Handa <handa@m17n.org>
3380
3381 * xftfont.c (xftfont_has_char): New function.
3382 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
3383
3384 2009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
3385
3386 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
3387 under GNUstep.
3388 (ns_query_color): New declaration.
3389
3390 * nsterm.m (ns_confirm_quit): New variable.
3391 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
3392 (EmacsApp-applicationShouldTerminate:): Use it.
3393 (EmacsPrefsController): Let user set it.
3394 (ns_query_color): New function.
3395 (ns_defined_color): Use it.
3396 (ns_initialize): Drop.
3397 (ns_term_init): Add two lines from ns_initialize(), and set
3398 input_interrupt_mode to nil.
3399
3400 * image.c (svg_load_image): Don't right-shift background RGB when
3401 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
3402
3403 2009-01-28 Kenichi Handa <handa@m17n.org>
3404
3405 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
3406 (fontset_get_font_group): Remember that no font-group is specified
3407 for C.
3408
3409 2009-01-27 Chong Yidong <cyd@stupidchicken.com>
3410
3411 * fns.c (concat): Check for string overflow (bug#1787).
3412
3413 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
3414 Quadruple undo limits (bug#1501).
3415
3416 2009-01-27 Kenichi Handa <handa@m17n.org>
3417
3418 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
3419 directly use GT_Get_Char_index.
3420
3421 * xftfont.c (struct xftfont_info): New member `index'.
3422
3423 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
3424 (Ffontset_font): Adjust for the change of fontset entry.
3425
3426 2009-01-26 Kenichi Handa <handa@m17n.org>
3427
3428 * fontset.c (fontset_find_font): Fix handling of non-cons return
3429 value of fontset_get_font_group.
3430 (fontset_font): Revert last change.
3431
3432 2009-01-26 Jason Rumney <jasonr@gnu.org>
3433
3434 * w32font.c (w32font_list_internal): Return quickly if registry is
3435 unknown. Simplify final return.
3436 (add_font_entity_to_list): Break complex logic down into more
3437 manageable chunks. Move unknown registry check to
3438 w32font_list_internal.
3439
3440 2009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
3441
3442 Changes to remove Feval calls from GUI under NS.
3443
3444 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
3445 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
3446 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
3447
3448 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
3449 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
3450 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
3451 instead of NON_ASCII_KEYSTROKE_EVENT.
3452 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
3453 (EmacsApp-applicationShouldTerminate:): Query user.
3454 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
3455 instead of Feval.
3456
3457 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
3458
3459 * keyboard.c (kbd_buffer_get_event): Check for it.
3460 (keys_of_keyboard): Define lispy keys for
3461 ns-put/unput-working-text.
3462
3463 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
3464 versions.
3465 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
3466
3467 2009-01-25 Chong Yidong <cyd@stupidchicken.com>
3468
3469 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
3470 setting current_buffer directly. (Bug#2044)
3471
3472 2009-01-24 Chong Yidong <cyd@stupidchicken.com>
3473
3474 * fontset.c (fontset_font): If we know there is no font, don't do
3475 any work. (Bug#1952, bug#1990).
3476
3477 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
3478
3479 2009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
3480
3481 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
3482 (ns_no_defaults): New declaration.
3483 (main): Use it.
3484
3485 * nsterm.h (ns_no_defaults): New declaration.
3486
3487 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
3488
3489 * nsterm.m (ns_no_defaults): New variable.
3490 (ns_initialize): Don't read defaults when ns_no_defaults.
3491 (EmacsView-readSelectionFromPasteboard:)
3492 (writeSelectionToPasteboard:types:): New stubbed-out methods for
3493 NSServicesRequests protocol. (Bug#1435)
3494 (ns_dumpglyphs_stretch): New function.
3495 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
3496 of 2008-11-15 to other terms. (Bug#615)
3497
3498 * nsimage.m (setPixmapData:): Set to ignore image DPI.
3499
3500 2009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
3501
3502 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
3503 call for Sparc64.
3504
3505 2009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
3506
3507 * nsfns.m:
3508 * nsgui.h:
3509 * nsmenu.m:
3510 * nsselect.m:
3511 * nsterm.h:
3512 * nsterm.m: Remove '23' comments that indicated code added during
3513 update from emacs-20 -> emacs-23.
3514
3515 2009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
3516
3517 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3518 ns_alternate_modifier. (Bug#1217)
3519
3520 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
3521 Display all shortcuts, including those w/o super modifier.
3522
3523 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
3524
3525 2009-01-22 Chong Yidong <cyd@stupidchicken.com>
3526
3527 * fileio.c (Vwrite_region_post_annotation_function)
3528 (Vwrite_region_annotation_buffers): New vars.
3529 (build_annotations_unwind): Just reset
3530 Vwrite_region_annotation_buffers.
3531 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
3532 Call write-region-post-annotation-function.
3533 (build_annotations): Add to Vwrite_region_annotation_buffers if
3534 buffer changes.
3535
3536 2009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
3537
3538 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
3539 Tiger.
3540 * nsfns.m (ns_do_applescript):
3541 Conditionalize typeUTF16ExternalRepresentation on Tiger.
3542
3543 2009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
3544
3545 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
3546
3547 2009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
3548
3549 * nsmenu.m (NSMENUPROFILE): Change #if style.
3550
3551 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
3552
3553 * nsterm.m (x_set_frame_alpha): Add prototype.
3554 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
3555 handle Ctrl-tab. (Bug#1841)
3556 (ns_get_color): Use unsigned long long for scanned hex string value.
3557 (ns_term_shutdown): Abort on non SIGTERM signals.
3558 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
3559 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3560 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
3561 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
3562 (ns_defined_color): Fix settings of the XColor variable fields:
3563 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
3564
3565 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3566 DPI. (Bug#1316)
3567 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
3568 values in onTiger section.
3569
3570 2009-01-19 Chong Yidong <cyd@stupidchicken.com>
3571
3572 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
3573 Check return value of font_spec_from_name.
3574 (Fx_list_fonts): Doc fix. (Bug#1951)
3575
3576 * font.c (font_spec_from_name): Return Qnil if font name could not
3577 be parsed.
3578 (font_parse_name): Treat a `?' character as part of an XLFD.
3579
3580 * fns.c (Fsubstring): Doc fix.
3581
3582 2009-01-19 Kenichi Handa <handa@m17n.org>
3583
3584 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
3585 (ftfont_list): Likewise.
3586
3587 2009-01-18 Juanma Barranquero <lekktu@gmail.com>
3588
3589 * dbusbind.c (Fdbus_register_signal):
3590 * process.c (conv_sockaddr_to_lisp):
3591 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
3592
3593 * callproc.c (Fgetenv_internal): Doc fix.
3594
3595 2009-01-16 Chong Yidong <cyd@stupidchicken.com>
3596
3597 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
3598 it is not even used.
3599
3600 2009-01-16 Glenn Morris <rgm@gnu.org>
3601
3602 * font.c (Ffont_variation_glyphs): Silence compiler.
3603
3604 2009-01-15 Juanma Barranquero <lekktu@gmail.com>
3605
3606 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
3607 Reported by David Robinow <drobinow@gmail.com>.
3608
3609 2009-01-15 Kenichi Handa <handa@m17n.org>
3610
3611 * coding.c (detect_coding_system): Fix handling of null_byte_found.
3612
3613 2009-01-14 Jason Rumney <jasonr@gnu.org>
3614
3615 * frame.c (x_set_font): Always store a font to the font parameter,
3616 never a fontset. (Bug#1562)
3617
3618 2009-01-14 Kenichi Handa <handa@m17n.org>
3619
3620 * coding.c (TWO_MORE_BYTES): New macro.
3621 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
3622
3623 2009-01-13 Chong Yidong <cyd@stupidchicken.com>
3624
3625 * font.c (font_clear_prop): If clearing the family, clear the font
3626 width index too.
3627
3628 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
3629
3630 2009-01-12 Juanma Barranquero <lekktu@gmail.com>
3631
3632 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
3633 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
3634 functions, use sizeof.
3635
3636 2009-01-12 Martin Rudalics <rudalics@gmx.at>
3637
3638 * keyboard.c (read_char): Fix case where last_nonmenu_event
3639 returned a bad value with submenus. (Bug#447)
3640
3641 2009-01-12 Chong Yidong <cyd@stupidchicken.com>
3642
3643 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
3644 family, clear the font width index too.
3645
3646 2009-01-11 Jason Rumney <jasonr@gnu.org>
3647
3648 * keyboard.c (cmd_error_internal): Exit when errors occur before
3649 frame creation and not in daemon mode. (Bug#1836)
3650
3651 2009-01-10 Chong Yidong <cyd@stupidchicken.com>
3652
3653 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
3654 of a display vector, backtrack.
3655 (try_window_reusing_current_matrix): Check glyph type before
3656 referencing charpos member.
3657
3658 2009-01-10 Eli Zaretskii <eliz@gnu.org>
3659
3660 Fix Bug #876:
3661
3662 * coding.c (inhibit_null_byte_detection): New variable.
3663 (detect_coding, detect_coding_system): Don't pay attention to null
3664 bytes if inhibit_null_byte_detection is non-zero.
3665 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
3666 <inhibit-iso-escape-detection>: Doc fix.
3667
3668 2009-01-09 Jason Rumney <jasonr@gnu.org>
3669
3670 * w32font.c (add_font_entity_to_list): Don't report unknown
3671 Windows charset as any unrecognized registry. (Bug#1548)
3672 Only report Unicode Plane 2 fonts as unicode-sip.
3673
3674 2009-01-09 Chong Yidong <cyd@stupidchicken.com>
3675
3676 * xfaces.c (Fx_font_family_list): Delete function.
3677 Move compatibility version to faces.el.
3678
3679 * font.c (Ffont_family_list): Return a list of strings, not symbols.
3680
3681 2009-01-09 Martin Rudalics <rudalics@gmx.at>
3682
3683 * frame.c (x_set_frame_parameters): Remember requested value for
3684 fullscreen before it's reset by the parameter handler.
3685
3686 2009-01-09 Glenn Morris <rgm@gnu.org>
3687
3688 * keyboard.c (last_command_char): For clarity, rename to...
3689 (last_command_event): ... and update all users.
3690 (last_input_char): For clarity, rename to...
3691 (last_input_event): ... and update all users.
3692 (last-command-char, last-input-char): Move to subr.el as aliases.
3693 * cmds.c, commands.h: Update for last_command_char rename.
3694
3695 2009-01-08 Chong Yidong <cyd@stupidchicken.com>
3696
3697 * font.c (font_open_for_lface): Handle unspecified height attribute.
3698
3699 2009-01-08 Jason Rumney <jasonr@gnu.org>
3700
3701 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
3702 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
3703 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
3704 Don't declare.
3705 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
3706 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
3707
3708 2009-01-07 Kenichi Handa <handa@m17n.org>
3709
3710 * fileio.c (Finsert_file_contents): In the case of replace,
3711 remember the coding system used for decoding in
3712 coding_system (Bug#1039).
3713
3714 * coding.c (decode_coding_utf_8): Check byte_after_cr before
3715 breaking the loop. (Bug#870)
3716 (decode_coding_utf_16, decode_coding_emacs_mule)
3717 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
3718 (decode_coding_charset): Likewise.
3719
3720 2009-01-05 Martin Rudalics <rudalics@gmx.at>
3721
3722 * frame.c (x_set_frame_parameters): Make sure height (width) get
3723 applied when fullwidth (fullheight) is set. (Bug#1522)
3724
3725 2009-01-04 Juanma Barranquero <lekktu@gmail.com>
3726
3727 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
3728 (utc_base): Declare as ULONGLONG, not long double.
3729 (convert_time_raw): Delete.
3730 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
3731 (initialize_utc_base): New function.
3732 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
3733 (convert_from_time_t): Use initialize_utc_base; compute result with
3734 64-bit arithmetic.
3735 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
3736
3737 2009-01-03 Eli Zaretskii <eliz@gnu.org>
3738
3739 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
3740 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
3741 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
3742 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
3743 [!subprocesses]: Define.
3744 (syms_of_process) [!subprocesses]: Intern and staticpro them.
3745 (Flist_system_processes, Fsystem_process_attributes)
3746 [!subprocesses]: Call list_system_processes and
3747 system_process_attributes instead of returning Qnil.
3748
3749 * dosfns.c (system_process_attributes, list_system_processes):
3750 New functions.
3751
3752 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
3753
3754 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
3755 Don't use the default (no-op) implementation.
3756
3757 2009-01-03 Jason Rumney <jasonr@gnu.org>
3758
3759 * keyboard.c (parse_modifiers_uncached): Wheel events are
3760 clicks (bug#687).
3761
3762 * w32term.c (x_query_colors, x_query_color): New functions.
3763
3764 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
3765 (svg_load_image): Cast returned pointers from dynamically loaded
3766 functions. Eliminate W32 specific code.
3767
3768 2009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
3769
3770 * nsfns.m (x_set_foreground_color, x_set_background_color)
3771 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
3772 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
3773 x_ prefix instead of ns_. Update references.
3774 (syms_of_nsfns): Add a FIXME comment.
3775
3776 * nsterm.m (x_set_cursor_type): New prototype.
3777 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
3778
3779 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
3780 for Solaris instead of incorrectly providing Qutime and Qcutime.
3781
3782 2009-01-02 Eli Zaretskii <eliz@gnu.org>
3783
3784 * w32.c (process_times): Compute sum of utime and stime.
3785 (system_process_attributes): Add Qtime to the alist.
3786
3787 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
3788 and add them to the alist.
3789
3790 * process.c (top level) <Qtime, Qctime>: New variables.
3791 (syms_of_process): staticpro them.
3792 (Fsystem_process_attributes): Add their documentation to the doc
3793 string.
3794
3795 * process.h: Declare Qtime and Qctime.
3796
3797 2009-01-02 Jason Rumney <jasonr@gnu.org>
3798
3799 * image.c (Qgobject): New symbol.
3800 (syms_of_image): Initialize it.
3801 (init_svg_functions): Load some functions from gobject library.
3802
3803 2009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
3804
3805 * frame.c (make_terminal_frame): Remove redundant code and useless
3806 block.
3807
3808 2009-01-01 Andreas Schwab <schwab@suse.de>
3809
3810 * process.c (conv_sockaddr_to_lisp): Add workaround for
3811 getsockname bug on BSD.
3812
3813 2009-01-01 Chong Yidong <cyd@stupidchicken.com>
3814
3815 * xfns.c (x_create_tip_frame): Set border width of the X window.
3816
3817 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
3818
3819 2009-01-01 Jason Rumney <jasonr@gnu.org>
3820
3821 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
3822 Don't block input, as per earlier xterm.c changes.
3823
3824 2008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
3825
3826 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
3827 (ns_appkit_version_int): New function.
3828 (x-server-version): Use ns_appkit_version_int and follow 21+
3829 convention of returning 3 integers.
3830
3831 2008-12-30 Kenichi Handa <handa@m17n.org>
3832
3833 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
3834 (CHAR_SURROGATE_PAIR_P): New macro.
3835
3836 * font.h (struct font_driver): New member get_variation_glyphs.
3837
3838 * font.c (font_range): Don't require a font for a variation selector.
3839 (Ffont_variation_glyphs): New function.
3840 (syms_of_font): Defsubr it.
3841
3842 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
3843 ftfont_variation_glyphs.
3844 (setup_otf_gstring): New function.
3845 (ftfont_drive_otf): Use it.
3846 (ftfont_shape_by_flt): Handle variation selector.
3847 (ftfont_variation_glyphs): New function.
3848
3849 2008-12-30 Martin Rudalics <rudalics@gmx.at>
3850
3851 * frame.c (Vemacs_iconified): Remove.
3852
3853 2008-12-30 Jason Rumney <jasonr@gnu.org>
3854
3855 * frame.c (store_frame_param, x_get_arg): Enable newer code on
3856 WINDOWSNT too, as related changes have already been synced. (Bug#117)
3857
3858 2008-12-30 Chong Yidong <cyd@stupidchicken.com>
3859
3860 * indent.c (Fvertical_motion): Don't advance iterator if we have
3861 reseated to the desired position.
3862
3863 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
3864 checking for pos match.
3865
3866 2008-12-30 Kenichi Handa <handa@m17n.org>
3867
3868 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
3869 just get the low 8-bit of the code.
3870
3871 * font.c (font_intern_prop): Validate str as multibyte.
3872
3873 2008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
3874
3875 * dispextern.h (struct face): Move lface and hash from the middle
3876 of bitfields.
3877
3878 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
3879
3880 2008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
3881
3882 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
3883 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
3884 instead of intervals.h.
3885
3886 2008-12-26 Andreas Schwab <schwab@suse.de>
3887
3888 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
3889 cons.
3890
3891 2008-12-26 Martin Rudalics <rudalics@gmx.at>
3892
3893 * textprop.c (Qminibuffer_prompt): New variable.
3894 (syms_of_textprop): Initialize it.
3895 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
3896 in minibuffer-prompt face. (Bug#1662)
3897
3898 2008-12-25 Jason Rumney <jasonr@gnu.org>
3899
3900 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
3901
3902 2008-12-24 Jason Rumney <jasonr@gnu.org>
3903
3904 * ralloc.c (r_alloc_reset_variable): New function.
3905
3906 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
3907 record of what points where. (Bug#716)
3908
3909 2008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
3910
3911 * minibuf.c (read_minibuf): Follow the non-interactive case when
3912 running as a daemon, before detaching.
3913
3914 2008-12-22 Andreas Schwab <schwab@suse.de>
3915
3916 * buffer.c (init_buffer): Use realloc instead of xrealloc.
3917 * gtkutil.c (free_widget_value): Use xfree instead of free.
3918
3919 2008-12-22 Martin Rudalics <rudalics@gmx.at>
3920
3921 * frame.c (delete_frame): New function derived from
3922 Fdelete_frame to handle Qnoelisp value for FORCE argument.
3923 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
3924 (Fdelete_frame): Call delete_frame. Remove line from doc-string
3925 saying that FORCE non-nil doesn't run `delete-frame-functions'.
3926 * frame.h: Extern delete_frame.
3927 * window.c (window_loop):
3928 * terminal.c (delete_terminal):
3929 * xterm.c (x_connection_closed):
3930 * xfns.c (Fx_hide_tip):
3931 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
3932
3933 2008-12-21 Jason Rumney <jasonr@gnu.org>
3934
3935 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
3936 when character maps to .notdef character.
3937
3938 2008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
3939
3940 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
3941
3942 2008-12-20 Jason Rumney <jasonr@gnu.org>
3943
3944 * frame.c (Fmake_terminal_frame): Raise an error when called from
3945 a graphical frame on Windows. (Bug#1325)
3946
3947 2008-12-20 Jan Djärv <jan.h.d@swipnet.se>
3948
3949 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
3950
3951 2008-12-20 Chong Yidong <cyd@stupidchicken.com>
3952
3953 * minibuf.c (Fread_buffer): Doc fix.
3954
3955 2008-12-20 Jason Rumney <jasonr@gnu.org>
3956
3957 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
3958 server name in UNC paths. (Bug#719)
3959
3960 * coding.c (decode_coding): Clear chars_at_source flag when using
3961 charbuf. (Bug#1035)
3962
3963 2008-12-19 Daniel Engeler <engeler@gmail.com>
3964
3965 * sysdep.c (serial_configure): Fix typo.
3966
3967 2008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
3968
3969 * sysdep.c: Include alloca.h.
3970 (system_process_attributes): Add implementation for Solaris.
3971
3972 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
3973
3974 2008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
3975
3976 Reorganize implementation of Flist_system_processes and
3977 Fsystem_process_attributes. No functional changes.
3978 * process.c: Don't #include pwd.h, grp.h and limits.h.
3979 (Flist_system_processes): Just call list_system_processes.
3980 (Fsystem_process_attributes): Just call system_process_attributes.
3981 (procfs_list_system_processes, time_from_jiffies)
3982 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
3983 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
3984
3985 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
3986 (list_system_processes): Rename from
3987 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
3988 Provide a do nothing implementation.
3989 (system_process_attributes): Rename from
3990 procfs_list_system_processes.
3991 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
3992 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
3993
3994 * w32.c (list_system_processes): Rename from
3995 w32_list_system_processes.
3996 (system_process_attributes): Rename from
3997 w32_system_process_attributes.
3998
3999 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
4000
4001 * process.h (w32_list_system_processes)
4002 (w32_system_process_attributes): Remove.
4003 (list_system_processes, system_process_attributes):
4004 New prototypes.
4005
4006 2008-12-19 Kenichi Handa <handa@m17n.org>
4007
4008 * xfont.c (xfont_decode_coding_xlfd): New function.
4009 (xfont_encode_coding_xlfd): New function.
4010 (xfont_list_pattern): Decode XLFD by iso-8859-1.
4011 (xfont_list): Decode and encode XLFD by iso-8859-1.
4012 (xfont_match): Likewise.
4013 (xfont_list_family): Likewise.
4014 (xfont_open): Likewise.
4015
4016 * ftfont.c (ftfont_open): Generate a multibyte string if given
4017 names are utf-8.
4018
4019 * xftfont.c (xftfont_open): Generate a multibyte string if given
4020 names are utf-8.
4021
4022 2008-12-18 Jan Djärv <jan.h.d@swipnet.se>
4023
4024 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
4025 changed.
4026 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
4027 clicked on a detached tool bar button.
4028
4029 2008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
4030
4031 * emacs.c (main): Print and error and exit when no data is read
4032 from the pipe.
4033
4034 2008-12-17 Jason Rumney <jasonr@gnu.org>
4035
4036 * w32font.c (w32font_has_char): Always return -1.
4037
4038 2008-12-16 Kenichi Handa <handa@m17n.org>
4039
4040 * font.c (font_open_entity): Fix previous change.
4041
4042 2008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
4043
4044 * process.c: Include <limits.h>.
4045
4046 2008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
4047
4048 * font.c (font_update_drivers): Fix mistake in reconstructing the
4049 driver list.
4050
4051 2008-12-16 Chong Yidong <cyd@stupidchicken.com>
4052
4053 * font.c (font_clear_cache): Fix format of font cache data.
4054
4055 2008-12-15 Chong Yidong <cyd@stupidchicken.com>
4056
4057 * xftfont.c (xftfont_open): Free Xft font pattern if
4058 XftFontOpenPattern fails.
4059
4060 * xterm.c (x_free_frame_resources): Remove extraneous call to
4061 free_frame_faces.
4062
4063 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
4064
4065 * xterm.c (x_delete_display): Move xim_close_dpy call to
4066 x_delete_terminal.
4067 (x_delete_terminal): Call xim_close_dpy.
4068
4069 2008-12-13 Jason Rumney <jasonr@gnu.org>
4070
4071 * w32font.c (intern_font_name): New function.
4072 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
4073 (w32font_open_internal, Fx_select_font): Decode font name.
4074 (fill_in_logfont, list_all_matching_fonts): Encode font name.
4075
4076 * w32font.h (intern_font_name): Declare new function.
4077
4078 * w32uniscribe.c (add_opentype_font_name_to_list):
4079 Use intern_font_name.
4080
4081 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
4082
4083 * frame.c (Fdelete_frame): Call free_font_driver_list.
4084
4085 * font.c (free_font_driver_list): Implement missing function.
4086
4087 * w32term.c (w32_term_init): Don't initialize the image cache
4088 here; it will be done in init_frame_faces.
4089
4090 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
4091 (struct x_display_info): Remove unused member null_pixel. New
4092 member xim_callback_data.
4093
4094 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
4095 (xim_initialize): Save pointer to callback function data.
4096 (xim_close_dpy): Free callback function data. Call XCloseIM,
4097 reverting 2008-11-04 change by David Smith.
4098 (x_term_init): Don't initialize the image cache here; it will be
4099 done in init_frame_faces. Remove ancient "null_pixel" cruft.
4100 (x_delete_display): Free x_dnd_atoms member.
4101
4102 2008-12-13 Kenichi Handa <handa@m17n.org>
4103
4104 * font.c (font_rescale_ratio): Moved from xfaces.c.
4105 Argument type changed. Handle a font-spec too.
4106 (font_score): Check Vface_font_rescale_alist.
4107 (font_open_entity): Likewise. (Bug#1547)
4108
4109 * xfaces.c (font_rescale_ratio): Moved to font.c.
4110
4111 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
4112
4113 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
4114
4115 2008-12-12 Jason Rumney <jasonr@gnu.org>
4116
4117 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
4118 Vwindow_system_version to the real w32 major version.
4119
4120 2008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
4121
4122 * term.c (init_tty): Move setting the terminal name before the
4123 potential user: maybe_fatal.
4124
4125 2008-12-11 Chong Yidong <cyd@stupidchicken.com>
4126
4127 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
4128 all callers changed. Call free_frame_faces to free the face cache.
4129
4130 2008-12-11 Jason Rumney <jasonr@gnu.org>
4131
4132 * w32font.c (fill_in_logfont): Don't assume symbol script means
4133 SYMBOL_CHARSET. (Bug#547)
4134
4135 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
4136 size for surrogates. (Bug#1096, bug#872)
4137
4138 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
4139
4140 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
4141
4142 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
4143
4144 * process.c (Fsystem_process_attributes, syms_of_process):
4145 Fix typo in name of Ssystem_process_attributes.
4146 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
4147
4148 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
4149
4150 * syntax.c (Fmodify_syntax_entry): Doc fix.
4151
4152 2008-12-10 Juanma Barranquero <lekktu@gmail.com>
4153
4154 * font.c (Ffont_spec): Move usage to end of docstring.
4155
4156 2008-12-10 Jason Rumney <jasonr@gnu.org>
4157
4158 * w32font.c (Qcham): New symbol.
4159 (font_supported_scripts): Add cham, and comments for other new
4160 scripts in bitfield from OpenType spec.
4161 (add_font_entity_to_list): Limit unicode-sip fonts to those that
4162 contain characters beyond the bmp.
4163
4164 2008-12-10 Kenichi Handa <handa@m17n.org>
4165
4166 * ftfont.c (fc_charset_table): Add "unicode-sip".
4167 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
4168 Qunicode_sip.
4169
4170 2008-12-10 Juanma Barranquero <lekktu@gmail.com>
4171
4172 * coding.c (QCdefault_char): Rename from QCdefalut_char.
4173 (Fcoding_system_put): Use QCdefault_char.
4174 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
4175
4176 2008-12-09 Chong Yidong <cyd@stupidchicken.com>
4177
4178 * xftfont.c (syms_of_xftfont): Fix typo.
4179
4180 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
4181
4182 2008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
4183
4184 * emacs.c (main): Close daemon_pipe on exec.
4185
4186 2008-12-08 Chong Yidong <cyd@stupidchicken.com>
4187
4188 * termchar.h (struct tty): New members termcap_term_buffer and
4189 termcap_strings_buffer.
4190
4191 * term.c (encode_terminal_code): Free any previous memory blocks
4192 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
4193 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
4194 All callers changed.
4195 (init_tty): Store termcap data and string buffers in new struct
4196 tty members termcap_term_buffer and termcap_strings_buffer.
4197 (delete_tty): Free them.
4198 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
4199
4200 2008-12-07 Seiji Zenitani <zenitani@mac.com>
4201
4202 * nsfns.m (ns_set_background_color): Remove code duplication.
4203 It was a substitute for face-transparency on OS X 10.3.
4204
4205 2008-12-06 Chong Yidong <cyd@stupidchicken.com>
4206
4207 * coding.c (make_conversion_work_buffer): Disable buffer
4208 modification hooks in the work buffer.
4209
4210 2008-12-05 Eli Zaretskii <eliz@gnu.org>
4211
4212 * process.c (procfs_system_process_attributes): If `nread' has a
4213 negative value, assign zero to it.
4214
4215 2008-12-05 Chong Yidong <cyd@stupidchicken.com>
4216
4217 * eval.c (Vdebug_on_error): Doc fix.
4218
4219 2008-12-05 Kenichi Handa <handa@m17n.org>
4220
4221 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
4222 second character is a combining character.
4223
4224 2008-12-05 Eli Zaretskii <eliz@gnu.org>
4225
4226 * process.c (procfs_system_process_attributes): Don't use cmd,
4227 cmdsize, and q without initializing them first.
4228
4229 2008-12-04 Jason Rumney <jasonr@gnu.org>
4230
4231 * w32font.c (w32font_draw): Initialize orig_clip before getting
4232 it, and delete it when finished.
4233
4234 2008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
4235
4236 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
4237 case when running as a daemon before detaching.
4238
4239 2008-12-03 Juanma Barranquero <lekktu@gmail.com>
4240
4241 * w32.c (init_environment): Don't unload library shell32.dll.
4242
4243 2008-12-03 Kenichi Handa <handa@m17n.org>
4244
4245 * font.c (font_at): Set `multibyte' at first.
4246
4247 * coding.c (decode_coding_charset): Check type of an element of
4248 vector VALIDS.
4249 (encode_coding_emacs_mule): Be sure to set `code'.
4250
4251 * fontset.c (face_for_char): Handle invalid charset property correctly.
4252 (font_for_char): Likewise.
4253
4254 2008-12-03 Chong Yidong <cyd@stupidchicken.com>
4255
4256 * font.c (Fopen_font): Compute pixel size correctly.
4257 (font_update_lface): Handle fonts with corrupted size specs,
4258 i.e. non-int and non-float.
4259
4260 * ftfont.c (ftfont_match): Initialize entity variable.
4261 (ftfont_resolve_generic_family): Avoid using uninitialized var.
4262 (ftfont_list_family): Initialize list var earlier.
4263
4264 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
4265
4266 * xterm.c (x_draw_glyph_string): Fall back on
4267 underline_minimum_offset for underline position.
4268
4269 2008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
4270
4271 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
4272
4273 * character.c (c_string_width): Specify the type for LEN.
4274
4275 2008-12-03 Kenichi Handa <handa@m17n.org>
4276
4277 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
4278 (decode_coding_utf_8): Likewise.
4279 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4280 (produce_chars): Initialize consumed_chars to 0.
4281
4282 2008-12-02 Chong Yidong <cyd@stupidchicken.com>
4283
4284 * keyboard.c (make_lispy_position): Only use PT if the selected
4285 window is current.
4286
4287 2008-12-02 Andreas Schwab <schwab@suse.de>
4288
4289 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
4290
4291 * doprnt.c (doprnt1): Fix size of charbuf.
4292
4293 2008-12-02 Chong Yidong <cyd@stupidchicken.com>
4294
4295 * keyboard.c (timer_check): Revert last change.
4296
4297 2008-12-02 Juanma Barranquero <lekktu@gmail.com>
4298
4299 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
4300
4301 2008-12-01 Juanma Barranquero <lekktu@gmail.com>
4302
4303 * makefile.w32-in: Update dependencies.
4304 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
4305
4306 2008-12-01 Andreas Schwab <schwab@suse.de>
4307
4308 * font.c (register_font_driver): Use xmalloc.
4309 (font_put_frame_data): Likewise.
4310
4311 2008-12-01 Chong Yidong <cyd@stupidchicken.com>
4312
4313 * xfaces.c (realize_x_face): Make abort condition clearer.
4314
4315 * gtkutil.c (update_frame_tool_bar): Initialize variable.
4316
4317 2008-11-30 Chong Yidong <cyd@stupidchicken.com>
4318
4319 * keyboard.c (timer_check): After a timer runs, ensure that the
4320 selected window's buffer is current.
4321
4322 2008-11-30 Juanma Barranquero <lekktu@gmail.com>
4323
4324 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
4325 It was accidentally restored by the Unicode merge.
4326
4327 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
4328
4329 2008-11-29 Juanma Barranquero <lekktu@gmail.com>
4330
4331 * w32proc.c: Include "coding.h".
4332 (Fw32_short_file_name): Encode filename passed to Windows API.
4333 (Fw32_long_file_name): Encode filename passed to Windows API and
4334 decode back the result. (Bug#1433)
4335
4336 2008-11-29 Kenichi Handa <handa@m17n.org>
4337
4338 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
4339 not before accessing it.
4340
4341 * charset.c (Fdefine_charset_internal): After calculating
4342 min_char, max_char, and fastmap, copy the charset structure again.
4343 (encode_char): Fix the previous change.
4344
4345 2008-11-28 Seiji Zenitani <zenitani@mac.com>
4346
4347 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
4348
4349 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
4350
4351 * nsterm.m (x_set_frame_alpha): New function.
4352
4353 2008-11-27 Eli Zaretskii <eliz@gnu.org>
4354
4355 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
4356
4357 2008-11-27 Juanma Barranquero <lekktu@gmail.com>
4358
4359 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
4360 pointer to check_face_name.
4361
4362 2008-11-27 Kenichi Handa <handa@m17n.org>
4363
4364 * category.h (SET_CATEGORY_SET): Call set_category_set.
4365 (set_category_set): Extern it.
4366
4367 * category.c (hash_get_category_set): New function.
4368 (Fmodify_category_entry): Adjusted for the change of
4369 char_table_ref_and_range. Call hash_get_category_set to get a
4370 category set to store in the table.
4371
4372 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
4373 Funify_charset.
4374
4375 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
4376 (DECODE_CHAR): Check if the decoder vector is ready.
4377 (ENCODE_CHAR): Check if the encoder char-table is ready.
4378 (maybe_unify_char): Extern it.
4379
4380 * charset.c (Vchar_unified_charset_table): Delete it.
4381 (inhibit_load_charset_map): New variable.
4382 (temp_charset_work): New variable.
4383 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
4384 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
4385 New macros.
4386 (load_charset_map): Meaning of control_flag changed. If
4387 inhibit_load_charset_map is nonzero, setup a table in
4388 temp_charset_work.
4389 (load_charset): New argument control_flag.
4390 (map_charset_for_dump): New function.
4391 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
4392 map_charset_for_dump.
4393 (Fdefine_charset_internal): If the charset method is MAP, load
4394 mapping tables by calling load_charset.
4395 (Funify_charset): Don't load a mapping table but directly set
4396 Vchar_unify_table.
4397 (maybe_unify_char): New function.
4398 (decode_char): Don't handle the deleted method MAP_DEFERRED.
4399 Handle the case of inhibit_load_charset_map being nonzero.
4400 (encode_char): Don't handle the deleted method MAP_DEFERRED.
4401 Handle the case of inhibit_load_charset_map being nonzero.
4402 (Fclear_charset_maps): Just free temp_charset_work.
4403 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
4404 variable.
4405
4406 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
4407 change of char_table_ref_and_range.
4408 (char_table_ref_and_range): Change the meaning of argument FROM
4409 and TO. Now the caller must provide initial values for *FROM
4410 and *TO.
4411
4412 * fontset.c (fontset_add): Adjusted for the change of
4413 char_table_ref_and_range.
4414 (fontset_get_font_group): Likewise.
4415 (Ffontset_info): Likewise.
4416
4417 * keymap.c (describe_vector): Adjusted for the change of
4418 char_table_ref_and_range. For char-table, put boundary between
4419 non-ASCII and 8-bit characters.
4420
4421 * print.c (print_object): For bool-vector, delete unnecessary
4422 check of ASCII_BYTE_P.
4423
4424 2008-11-26 Jason Rumney <jasonr@gnu.org>
4425
4426 * w32font.c (w32font_open_internal): Don't include external
4427 leading in font height. (Bug#879)
4428
4429 2008-11-26 Glenn Morris <rgm@gnu.org>
4430
4431 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
4432 redefinition with ifdef. (Bug#1383)
4433
4434 2008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
4435
4436 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
4437
4438 2008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
4439
4440 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
4441 New EmacsView methods.
4442 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
4443 Fixes bug #1048,1357,1414.
4444
4445 2008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
4446
4447 Fix bug #1362.
4448 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
4449 is not an indexed color.
4450 * nsterm.m (free_indexed_color): Add argument checking.
4451 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
4452
4453 2008-11-24 Chong Yidong <cyd@stupidchicken.com>
4454
4455 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
4456 Document confirm-after-completion value for
4457 minibuffer-completion-confirm.
4458
4459 2008-11-24 Jason Rumney <jasonr@gnu.org>
4460
4461 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
4462 warning.
4463
4464 2008-11-23 Jason Rumney <jasonr@gnu.org>
4465
4466 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
4467 restored before returning.
4468
4469 * w32font.c (check_face_name): New function.
4470 (add_font_entity_to_list): Use it to filter out common substituted
4471 fonts. (Bug#642)
4472
4473 2008-11-22 Martin Rudalics <rudalics@gmx.at>
4474
4475 * buffer.c (Fswitch_to_buffer): Reword and mention new option
4476 confirm-nonexistent-file-or-buffer in doc-string.
4477
4478 2008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
4479
4480 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
4481 Fix copy/paste typo. Add checks.
4482
4483 2008-11-21 Kenichi Handa <handa@m17n.org>
4484
4485 * coding.c (detect_coding_iso_2022): Reject invalid composition
4486 sequence.
4487 (DECODE_COMPOSITION_START): If the current source is the last
4488 block, and the current composition doesn't end, regard this
4489 sequence as invalid.
4490 (decode_coding_iso_2022): Handle invalid composition sequence.
4491
4492 2008-11-20 Martin Rudalics <rudalics@gmx.at>
4493
4494 * window.c (coordinates_in_window): Don't return
4495 ON_VERTICAL_BORDER for the rightmost position of a mode/header
4496 line when the window is not the rightmost one. (Bug#1372)
4497
4498 2008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
4499
4500 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
4501
4502 2008-11-15 Eli Zaretskii <eliz@gnu.org>
4503
4504 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
4505 and bright_bg if noninteractive is non-zero.
4506
4507 2008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4508
4509 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
4510 x_draw_glyph_string_background.
4511
4512 * w32term.c (x_draw_glyph_string): Likewise.
4513
4514 2008-11-15 Chong Yidong <cyd@stupidchicken.com>
4515
4516 * xterm.c (x_draw_glyph_string): Stop drawing the background of
4517 the next glyph string once past the overhang width.
4518
4519 * nsterm.m (ns_draw_glyph_string): Likewise.
4520
4521 * w32term.c (x_draw_glyph_string): Likewise.
4522
4523 2008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
4524
4525 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
4526 double file close.
4527
4528 2008-11-14 Martin Rudalics <rudalics@gmx.at>
4529
4530 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
4531 dedicated status of window before attempting to display another
4532 buffer in it.
4533
4534 2008-11-14 Juanma Barranquero <lekktu@gmail.com>
4535
4536 * msdos.c (Fmsdos_long_file_names):
4537 (syms_of_msdos) <dos-unsupported-char-glyph>:
4538 * dosfns.c (Fint86): Fix typos in docstrings.
4539
4540 2008-11-14 Eli Zaretskii <eliz@gnu.org>
4541
4542 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
4543
4544 2008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
4545
4546 * puresize.h (BASE_PURESIZE): Increase to 1260000.
4547
4548 2008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
4549
4550 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
4551
4552 * frame.h: Negative alpha means "don't touch".
4553
4554 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
4555
4556 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
4557
4558 2008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
4559
4560 * hftctl.c:
4561 * chpdef.h:
4562 * acldef.h: Remove files used only for systems no longer supported.
4563
4564 * Makefile.in: Fix .o alphabetical ordering.
4565 (hftctl.o): Remove dependency, file removed.
4566 (keymap.o, print.o): Depend on charset.h.
4567
4568 2008-11-10 Kenichi Handa <handa@m17n.org>
4569
4570 * character.c (Fget_byte): Fix and make it faster for unibyte target.
4571
4572 2008-11-08 Chong Yidong <cyd@stupidchicken.com>
4573
4574 * dired.c (file_name_completion): If completion_ignore_case is
4575 enabled, ignore case when checking completion-regexp-list.
4576
4577 2008-11-08 Eli Zaretskii <eliz@gnu.org>
4578
4579 * vm-limit.c (get_lim_data): Fix last change.
4580
4581 2008-11-08 Kenichi Handa <handa@m17n.org>
4582
4583 * character.c (Fget_byte): New function.
4584 (syms_of_character): Defsubr Fget_byte.
4585
4586 2008-11-07 Chong Yidong <cyd@stupidchicken.com>
4587
4588 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
4589 cursor position is valid after scrolling.
4590
4591 2008-11-06 Juanma Barranquero <lekktu@gmail.com>
4592
4593 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
4594
4595 2008-11-06 Glenn Morris <rgm@gnu.org>
4596
4597 * xterm.c (handle_one_xevent): Don't let popup menus cause
4598 mouse-autoselect-window related window switching. (Bug#1261)
4599
4600 2008-11-04 David Smith <davidsmith@acm.org> (tiny change)
4601
4602 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
4603
4604 2008-11-04 Andreas Schwab <schwab@suse.de>
4605
4606 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
4607
4608 2008-11-03 Chong Yidong <cyd@stupidchicken.com>
4609
4610 * xfns.c (Fx_wm_set_size_hint): New function.
4611
4612 2008-11-03 Martin Rudalics <rudalics@gmx.at>
4613
4614 * textprop.c (Fprevious_single_char_property_change): Return 0
4615 when there's no change in a string. (Bug#1301)
4616
4617 2008-11-02 Martin Rudalics <rudalics@gmx.at>
4618
4619 * frame.c (do_switch_frame): New argument NORECORD passed to
4620 Fselect_window.
4621 (Fselect_frame): New argument NORECORD passed to
4622 do_switch_frame.
4623 (Fset_frame_selected_window): New argument NORECORD passed to
4624 Fselect_frame.
4625 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
4626 in call of do_switch_frame.
4627 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
4628 Handle NORECORD argument in call of Fselect_frame.
4629 * lisp.h (do_switch_frame, Fselect_frame)
4630 (Fset_frame_selected_window): Adjust declarations.
4631 * window.c (select_frame_norecord): New function.
4632 (run_window_configuration_change_hook): Use it and call
4633 Fselect_frame with NORECORD set.
4634 (Fselect_window): Pass NORECORD to Fselect_frame.
4635 (Fset_window_configuration): Handle NORECORD argument in call of
4636 do_switch_frame.
4637 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
4638 Fset_frame_selected_window.
4639 * keyboard.c (command_loop_1): Handle NORECORD in call of
4640 Fselect_frame (currently ifdefd).
4641
4642 2008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
4643
4644 * emacs.c (USAGE2): Untabify.
4645
4646 2008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
4647
4648 * composite.c (fill_gstring_header): Fix copy/paste typo.
4649
4650 2008-10-31 Martin Rudalics <rudalics@gmx.at>
4651
4652 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
4653 (Fother_window): Rename argument and rewrite doc-string.
4654 (select_window_norecord): Fix return value. (Bug#1276)
4655
4656 2008-10-30 Juanma Barranquero <lekktu@gmail.com>
4657
4658 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
4659 new frames overriding foreground for tooltips. Based on similar patch
4660 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
4661
4662 2008-10-29 Chong Yidong <cyd@stupidchicken.com>
4663
4664 * emacs.c (Fdaemon_initialized): Initialize nfd.
4665
4666 2008-10-29 Martin Rudalics <rudalics@gmx.at>
4667
4668 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
4669 (Fwindow_text_height): Clarify doc-strings.
4670 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
4671 doc-string of window-scroll-functions.
4672
4673 2008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
4674
4675 * category.c (syms_of_category): Fix typo in docstring.
4676
4677 2008-10-28 Juanma Barranquero <lekktu@gmail.com>
4678
4679 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
4680 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
4681 Fix typos in docstrings.
4682
4683 2008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
4684
4685 * emacs.c (daemon_pipe): Make non-static.
4686 (IS_DAEMON): Move definition ...
4687 * lisp.h (IS_DAEMON): ... here.
4688 (daemon_pipe): Declare.
4689 (is_daemon): Remove.
4690 * dispnew.c (init_display): Use IS_DAEMON.
4691
4692 2008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
4693
4694 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
4695 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
4696
4697 * emacs.c (is_daemon): Remove.
4698 (main): Don't set is_daemon.
4699 (IS_DAEMON): New macro.
4700 (Fdaemonp, Fdaemon_initialized): Use it.
4701 (Fdaemon_initialized): Write a char into the pipe to make sure the
4702 parent exits.
4703 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
4704
4705 2008-10-27 Chong Yidong <cyd@stupidchicken.com>
4706
4707 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
4708 over-sized glyph, draw it with the default glyph width.
4709
4710 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
4711 glyph, draw it with the default glyph width.
4712
4713 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
4714 glyph, draw it with the default glyph width.
4715
4716 * xdisp.c (try_scrolling): When computing the distance from the
4717 scroll margin to PT, try moving some distance past the window
4718 bottom before giving up.
4719
4720 2008-10-27 Martin Rudalics <rudalics@gmx.at>
4721
4722 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
4723 (Fset_window_buffer): Explain in doc-string that a window can be
4724 "strongly" dedicated to its buffer.
4725
4726 2008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
4727
4728 * emacs.c (daemon_name): New variable.
4729 (main): Deal with --daemon=SERVER_NAME.
4730 (Fdaemonp): Return a name if one was passed to --daemon.
4731
4732 2008-10-26 Romain Francoise <romain@orebokech.com>
4733
4734 * emacs.c (daemon_pipe): New variable.
4735 (main): Create a pipe before forking, make the parent exit only after
4736 the child has closed its end of the pipe. Move closing the
4737 descriptors ...
4738 (Fdaemon_initialized): ... here. New function.
4739
4740 2008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
4741
4742 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
4743 the previous unoptimized table.
4744
4745 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
4746 the distinction between non-nil and non-t value of `dedicated'.
4747
4748 2008-10-25 Chong Yidong <cyd@stupidchicken.com>
4749
4750 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
4751 read_char_minibuf_menu_text is large enough to hold the menu string.
4752
4753 2008-10-25 Martin Rudalics <rudalics@gmx.at>
4754
4755 * window.c (Fget_buffer_window, Fdelete_windows_on)
4756 (Freplace_buffer_in_windows): Make buffer argument optional and
4757 rename to buffer_or_name.
4758
4759 2008-10-24 Chong Yidong <cyd@stupidchicken.com>
4760
4761 * xdisp.c (handle_single_display_spec, handle_display_prop):
4762 Undo 2005-05-16 change.
4763 (handle_stop): Pop iterator if it's loaded with an empty string.
4764 (get_overlay_strings_1): Don't save iterator if it's loaded with
4765 an empty string (bug#1201).
4766
4767 2008-10-24 Kenichi Handa <handa@m17n.org>
4768
4769 * ftfont.c (ftfont_otf_features): Fix previous change.
4770 (ftfont_otf_capability): Check FeatureList.FeatureCount before
4771 calling ftfont_otf_features.
4772
4773 2008-10-24 Kenichi Handa <handa@m17n.org>
4774
4775 * font.c (font_match_p): Fix for the case that a vector of
4776 characters is in script-representative-chars.
4777
4778 2008-10-24 Michael Albinus <michael.albinus@gmx.de>
4779
4780 * dbusbind.c (xd_in_read_queued_messages): New variable.
4781 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
4782 (xd_read_queued_messages): Catch Qdbus_error from the macros.
4783 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
4784 macro. (Bug#1186).
4785
4786 2008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
4787
4788 * s/sol2-10.h: New file.
4789
4790 2008-10-23 Juanma Barranquero <lekktu@gmail.com>
4791
4792 * xdisp.c (fill_glyph_string): Fix typo in source (though the
4793 poor beast has survived 9+ years and the jump from xterm.c!).
4794
4795 2008-10-23 Martin Rudalics <rudalics@gmx.at>
4796
4797 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
4798 Reword doc-string.
4799 (Fbury_buffer): In doc-string say what happens to the buffer's window.
4800
4801 2008-10-23 Juanma Barranquero <lekktu@gmail.com>
4802
4803 * character.c (syms_of_character) <script-representative-chars>:
4804 <unicode-category-table>: Doc fixes.
4805
4806 2008-10-23 Noah Friedman <friedman@splode.com>
4807
4808 * coding.c (make_conversion_work_buffer): Check that
4809 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
4810 Fget_buffer_create.
4811
4812 2008-10-23 Kenichi Handa <handa@m17n.org>
4813
4814 * font.c (font_add_log): Check the values of extra properties.
4815
4816 2008-10-22 Martin Rudalics <rudalics@gmx.at>
4817
4818 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
4819 Reword doc-string.
4820 (Fset_window_parameter): Use NILP.
4821 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
4822 (Frecenter): Use "selected" instead of "current" window in doc-strings.
4823
4824 2008-10-22 Juanma Barranquero <lekktu@gmail.com>
4825
4826 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
4827
4828 2008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
4829
4830 * nsfns.m (ns_appkit_version): New function.
4831 (x-server-version): Use it.
4832 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
4833 (x-server-vendor): Don't check_ns().
4834
4835 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
4836
4837 2008-10-22 Juanma Barranquero <lekktu@gmail.com>
4838
4839 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
4840 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
4841
4842 2008-10-22 Kenichi Handa <handa@m17n.org>
4843
4844 * syntax.c (scan_words): Call word_boundary_p instead of comparing
4845 scripts.
4846
4847 * category.c (word_boundary_p): Check scripts instead of charset.
4848 Handle nil value in word-separating-categories and
4849 word-combining-categories.
4850 (syms_of_category): Fix docstrings of word-separating-categories
4851 and word-combining-categories.
4852
4853 2008-10-21 Eli Zaretskii <eliz@gnu.org>
4854
4855 * coding.c (Fencode_coding_region, Fdecode_coding_region)
4856 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
4857
4858 2008-10-21 Martin Rudalics <rudalics@gmx.at>
4859
4860 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
4861 Rename arg "buffer" to "buffer_or_name".
4862 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
4863 it optional.
4864 (no_switch_window): Remove since the return value is not used.
4865 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
4866 Consider window as dedicated when Fwindow_dedicated_p returns a
4867 non-nil value.
4868 * lisp.h: Remove prototype for no_switch_window.
4869
4870 2008-10-21 Jan Djärv <jan.h.d@swipnet.se>
4871
4872 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
4873 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
4874
4875 2008-10-21 Kenichi Handa <handa@m17n.org>
4876
4877 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
4878 check Vlatin_extra_code_table.
4879
4880 2008-10-20 Eli Zaretskii <eliz@gnu.org>
4881
4882 * fileio.c (Fset_file_modes): Doc fix.
4883
4884 2008-10-19 Michael Albinus <michael.albinus@gmx.de>
4885
4886 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
4887 in arrays.
4888
4889 2008-10-19 Martin Rudalics <rudalics@gmx.at>
4890
4891 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
4892 Mention kill-buffer in doc-string.
4893 (Fset_window_buffer): Reinsert tem check removed in last commit.
4894 (Fenlarge_window, Fshrink_window): Have argument names and
4895 doc-string follow Elisp manual more closely.
4896
4897 2008-10-18 Eli Zaretskii <eliz@gnu.org>
4898
4899 * fileio.c (Fset_file_modes): Doc fix.
4900
4901 2008-10-18 Martin Rudalics <rudalics@gmx.at>
4902
4903 * window.c (Fwindow_width, Fset_window_start)
4904 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
4905 (Fdelete_windows_on, Freplace_buffer_in_windows):
4906 Make doc-strings follow code and Elisp manual more closely.
4907 (Fwindow_dedicated_p): Make window argument optional.
4908 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
4909 (Fset_window_buffer): Respect any non-nil dedicated value for
4910 window. Rename "buffer" argument to "buffer_or_name".
4911
4912 2008-10-18 Ulrich Mueller <ulm@gentoo.org>
4913
4914 * m/sh3.h: New file, machine description for SuperH.
4915
4916 2008-10-17 Martin Rudalics <rudalics@gmx.at>
4917
4918 * window.c (Fsplit_window): Rename arg horflag to horizontal.
4919
4920 2008-10-17 Kenichi Handa <handa@m17n.org>
4921
4922 * ftfont.c (ftfont_otf_features): Fix indexing
4923 gsub_gpos->FeatureList.Feature. Check the validity of indices.
4924
4925 2008-10-16 Magnus Henoch <mange@freemail.hu>
4926
4927 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
4928 (Fdbus_call_method_asynchronously): Ditto.
4929 This change makes C-h f display the argument list.
4930
4931 2008-10-16 Chong Yidong <cyd@stupidchicken.com>
4932
4933 * fileio.c (Fexpand_file_name): Doc fix.
4934
4935 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
4936 of :foreground and :background equivalent to unspecified (20.x
4937 compatibility).
4938
4939 2008-10-15 Eli Zaretskii <eliz@gnu.org>
4940
4941 * buffer.c (syms_of_buffer): Doc fix.
4942
4943 2008-10-14 Kenichi Handa <handa@m17n.org>
4944
4945 * font.c (font_clear_prop): When clearing font width, clear the
4946 average width field too.
4947
4948 2008-10-12 Andreas Schwab <schwab@suse.de>
4949
4950 * ftfont.c (ftfont_shape_by_flt): Make static.
4951 * ftfont.h (ftfont_shape_by_flt): Don't declare.
4952
4953 * font.c: Don't include <m17n-flt.h>.
4954
4955 2008-10-10 Eli Zaretskii <eliz@gnu.org>
4956
4957 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
4958
4959 2008-10-09 Eli Zaretskii <eliz@gnu.org>
4960
4961 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
4962 away code.
4963
4964 2008-10-09 Chong Yidong <cyd@stupidchicken.com>
4965
4966 * dispnew.c (update_text_area): Avoid looping due to large glyph
4967 overhangs (bug#1070).
4968
4969 2008-10-09 Kenichi Handa <handa@m17n.org>
4970
4971 * fontset.c (face_for_char): If face->fontset is negative, just
4972 return ascii_face.
4973
4974 * font.c (font_delete_unmatched): Fix previous change.
4975 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
4976
4977 2008-10-09 Martin Rudalics <rudalics@gmx.at>
4978
4979 * frame.c (Fraise_frame): On text-only terminals select frame in
4980 order to make it visible. (Bug#1061)
4981
4982 2008-10-08 Chong Yidong <cyd@stupidchicken.com>
4983
4984 * fontset.c (fontset_find_font): Check frame validity.
4985
4986 2008-10-07 Chong Yidong <cyd@stupidchicken.com>
4987
4988 * gtkutil.c (xg_display_open): Reset default display if none exists.
4989 (xg_display_close): Allow Emacs to close all displays (bug#985).
4990
4991 2008-10-06 Andreas Schwab <schwab@suse.de>
4992
4993 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
4994
4995 2008-10-06 Chong Yidong <cyd@stupidchicken.com>
4996
4997 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
4998
4999 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
5000
5001 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
5002 during initialization.
5003
5004 2008-10-04 Eli Zaretskii <eliz@gnu.org>
5005
5006 * xdisp.c (redisplay_internal): If frame switched, redisplay the
5007 whole thing on MSDOS frames as well as on a TTY.
5008
5009 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
5010 well as for TTY.
5011 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
5012 well as on a TTY.
5013
5014 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
5015 as well as for TTY.
5016
5017 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
5018
5019 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
5020 MSDOS frames as well.
5021
5022 2008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
5023
5024 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
5025 correct arguments.
5026 * menu.c (find_and_return_menu_selection): Add cast.
5027
5028 2008-10-03 Glenn Morris <rgm@gnu.org>
5029
5030 * emacs.c (USAGE1): Add --daemon.
5031
5032 2008-10-02 Eli Zaretskii <eliz@gnu.org>
5033
5034 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
5035 100, so it's in percents as advertised.
5036
5037 2008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
5038
5039 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
5040 (ns_output.current_cursor, ns_output.desired_cursor)
5041 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
5042 (FRAME_NEW_CURSOR_COLOR): Remove.
5043
5044 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
5045 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
5046 enumeration (HOLLOW_BOX_CURSOR, etc.).
5047
5048 * nsterm.m (ns_frame_rehighlight): Remove commented code.
5049 (draw_window_cursor): Simplify code.
5050 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
5051 Don't change cursor type. In latter, call rehighlight instead of doing
5052 updates manually.
5053 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
5054 Use core Emacs cursor types.
5055
5056 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
5057
5058 2008-10-02 Martin Rudalics <rudalics@gmx.at>
5059
5060 * process.c (Faccept_process_output): Fix doc-string.
5061
5062 2008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
5063
5064 * gmalloc.c (__sbrk): Also define for uClibc.
5065
5066 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
5067 for uClibc.
5068
5069 2008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
5070
5071 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
5072 styles.
5073 (nsfont_open): Reenable the cache.
5074
5075 2008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
5076
5077 * font.c (font_matching_entity): Reflect ATTRS in font selection.
5078 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
5079
5080 2008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
5081
5082 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
5083 a suspended terminal.
5084
5085 2008-09-30 Michael Albinus <michael.albinus@gmx.de>
5086
5087 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
5088
5089 2008-09-30 Eli Zaretskii <eliz@gnu.org>
5090
5091 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
5092
5093 2008-09-30 Chong Yidong <cyd@stupidchicken.com>
5094
5095 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
5096 in a continued line coincides with a line beginning.
5097
5098 2008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
5099
5100 * nsfont.m (nsfont_trait_distance): Fix bug.
5101 (nsfont_list): Return a list rather than a vector (syncs with Handa
5102 changes of 2008-05-14).
5103 (nsfont_open): Improve logging.
5104
5105 2008-09-29 Andreas Schwab <schwab@suse.de>
5106
5107 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
5108
5109 2008-09-28 Martin Rudalics <rudalics@gmx.at>
5110
5111 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
5112 name as char-resolve-modifiers.
5113 Reported by: Markus Triska <markus.triska@gmx.at>
5114
5115 2008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
5116
5117 * dispnew.c (init_display): Return earlier when running as a daemon.
5118
5119 2008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
5120
5121 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
5122
5123 2008-09-27 Eli Zaretskii <eliz@gnu.org>
5124
5125 * composite.c (Fcomposition_get_gstring)
5126 (Fcompose_region_internal, Fcompose_string_internal)
5127 (Ffind_composition_internal): Doc fix.
5128 (syms_of_composite) <compose-chars-after-function>: Doc fix.
5129 (syms_of_composite) <auto-composition-function>: Doc fix.
5130 (syms_of_composite) <composition-function-table>: Doc fix.
5131
5132 2008-09-25 Chong Yidong <cyd@stupidchicken.com>
5133
5134 * search.c (wordify): New argument for lax word-ends.
5135 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
5136
5137 2008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
5138
5139 * lisp.h (is_daemon): Declare.
5140 * dispnew.c (init_display): Do not try to initialize the terminal
5141 when running as a daemon.
5142
5143 2008-09-22 Chong Yidong <cyd@stupidchicken.com>
5144
5145 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
5146 x_display_pixel_height.
5147
5148 2008-09-22 Martin Rudalics <rudalics@gmx.at>
5149
5150 * undo.c (record_point): Don't call Fundo_boundary for first
5151 change. (Bug#731)
5152
5153 2008-09-22 Juanma Barranquero <lekktu@gmail.com>
5154
5155 * emacs.c (Fdaemonp): Doc fix.
5156
5157 2008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
5158
5159 * emacs.c (main): Place #ifdef in the proper place.
5160
5161 2008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
5162
5163 * emacs.c (standard_args): Add --daemon.
5164 (main): Disconnect from the terminal when --daemon is passed.
5165 (is_daemon): New variable.
5166 (Fdaemonp): New function.
5167 (syms_of_emacs): Defsubr it.
5168
5169 2008-09-20 Chong Yidong <cyd@stupidchicken.com>
5170
5171 * xdisp.c (get_next_display_element): Handle string display
5172 correctly when checking for the end of a box run.
5173
5174 2008-09-20 Glenn Morris <rgm@gnu.org>
5175
5176 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
5177 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
5178 (Frename_file): Avoid copying to trash if a rename involves
5179 a delete. (Bug#964).
5180
5181 2008-09-20 Eli Zaretskii <eliz@gnu.org>
5182
5183 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
5184 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
5185 frames as well as termcap frames.
5186 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
5187 get_named_tty.
5188
5189 2008-09-19 Eli Zaretskii <eliz@gnu.org>
5190
5191 * process.c (procfs_system_process_attributes): Fix cmdline in
5192 case /proc/PID/cmdline is empty.
5193
5194 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
5195 x_display_pixel_height.
5196
5197 2008-09-19 Juanma Barranquero <lekktu@gmail.com>
5198
5199 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
5200
5201 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
5202 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
5203
5204 2008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
5205
5206 * dispextern.h (struct it): Move line_wrap away from the middle of
5207 bitfields. Move voffset in struct iterator_stack_entry after the
5208 bitfields. Move tab_width near after another short.
5209
5210 2008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
5211
5212 * frame.h (struct frame): Move alpha from the middle of bitfields.
5213
5214 * window.h (struct window): Move frozen_window_start_p after the
5215 rest of the bitfields to reduce padding.
5216
5217 2008-09-18 Chong Yidong <cyd@stupidchicken.com>
5218
5219 * xterm.h (x_display_info): Remove `height' and `width' members.
5220
5221 * nsterm.h (ns_display_info): Remove `height' and `width' members.
5222
5223 * w32term.h (w32_display_info): Remove `height', `width',
5224 `height_in', and `width_in' members.
5225
5226 * xterm.c (x_display_pixel_height, x_display_pixel_width):
5227 New functions.
5228 (x_calc_absolute_position): Use them.
5229 (x_term_init): Omit removed `height' and `width' members.
5230
5231 * w32term.c (x_display_pixel_height, x_display_pixel_width):
5232 New functions.
5233 (w32_read_socket, x_calc_absolute_position): Use them.
5234 (w32_initialize_display_info, w32_term_init): Omit removed members
5235 of w32_display_info.
5236
5237 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
5238 New functions.
5239 (ns_initialize_display_info): Omit removed members of ns_display_info.
5240
5241 * xterm.c (x_display_pixel_height, x_display_pixel_width):
5242 New functions.
5243 (x_calc_absolute_position): Use them.
5244 (x_term_init): Omit removed `height' and `width' members.
5245
5246 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
5247 (compute_tip_xy):
5248 * frame.c (x_fullscreen_adjust):
5249 * xmenu.c (menu_position_func): Use x_display_pixel_height and
5250 x_display_pixel_width.
5251
5252 2008-09-18 Kenichi Handa <handa@m17n.org>
5253
5254 * composite.c (fill_gstring_header): Don't check FROM and TO here.
5255 (composition_compute_stop_pos): Fix handling of static composition.
5256 (Fcomposition_get_gstring): Check FROM and TO at first.
5257
5258 2008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
5259
5260 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
5261 mixup (YAILOM).
5262
5263 2008-09-17 Chong Yidong <cyd@stupidchicken.com>
5264
5265 * indent.c (Fvertical_motion): Use position reported by iterator
5266 instead of PT for determining screen motion (bug#943).
5267
5268 2008-09-17 Romain Francoise <romain@orebokech.com>
5269
5270 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
5271
5272 2008-09-17 Kenichi Handa <handa@m17n.org>
5273
5274 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
5275
5276 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
5277 if necessary.
5278
5279 2008-09-16 Kenichi Handa <handa@m17n.org>
5280
5281 * coding.c (make_conversion_work_buffer): Avoid calling
5282 Fget_buffer_create if it is not necessary.
5283
5284 2008-09-15 Martin Rudalics <rudalics@gmx.at>
5285
5286 * window.c (Fselect_window): Don't update window_select_count and
5287 use_time when norecord is not nil.
5288
5289 2008-09-14 Kenichi Handa <handa@m17n.org>
5290
5291 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
5292 specpdl_ptr.
5293
5294 2008-09-12 Kenichi Handa <handa@m17n.org>
5295
5296 * indent.c (scan_for_column): Don't handle automatic composition
5297 if the current buffer is not associated with a window.
5298
5299 * composite.c (composition_reseat_it): If the current buffer is
5300 not associated with a window, ignore the automatic composition.
5301 (find_automatic_composition): Likewise.
5302
5303 2008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
5304
5305 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
5306 (Fgpm_mouse_stop): Use it.
5307 * termhooks.h (close_gpm): Declare.
5308 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
5309 connection if Gpm_GetEvent fails.
5310
5311 * window.c (set_window_buffer): Always preserve current-buffer.
5312
5313 2008-09-12 Glenn Morris <rgm@gnu.org>
5314
5315 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
5316
5317 2008-09-11 Glenn Morris <rgm@gnu.org>
5318
5319 * charset.c (charset-map-path): Doc fix.
5320
5321 2008-09-10 Kenichi Handa <handa@m17n.org>
5322
5323 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
5324
5325 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
5326 compose a grapheme cluster with the preceding base glyph.
5327
5328 * composite.c (composition_compute_stop_pos): Fix previous change.
5329 Reset cmp_it->id to -1 at first.
5330
5331 2008-09-10 Glenn Morris <rgm@gnu.org>
5332
5333 * Makefile.in (character.o, chartab.o): Fix config.h typo.
5334
5335 2008-09-09 Chong Yidong <cyd@stupidchicken.com>
5336
5337 * keyboard.c (read_key_sequence): Reapply translation maps when
5338 switching keyboards.
5339
5340 2008-09-09 Kenichi Handa <handa@m17n.org>
5341
5342 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
5343 characters.
5344
5345 * composite.c (FORWARD_CHAR): Fix calculation
5346 of (POSITION).pos_byte.
5347 (composition_compute_stop_pos): Limit the search of composition to
5348 at most 500 characters ahead. If we reach the limit or find a
5349 newline, set cmp_it->ch to -2 and return 0.
5350 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
5351
5352 2008-09-08 Kenichi Handa <handa@m17n.org>
5353
5354 * indent.c (Fvertical_motion): Be sure to set
5355 it_overshoot_expected if it.cmp_it.id is non-negative.
5356
5357 2008-09-07 Andreas Schwab <schwab@suse.de>
5358
5359 * callproc.c (Fcall_process): Don't hold references to string data
5360 across garbage collection. Move initialisation of new_argv down
5361 to avoid compiler bug.
5362
5363 2008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
5364
5365 * process.c (Fsystem_process_attributes): Doc fix.
5366
5367 2008-09-07 Chong Yidong <cyd@stupidchicken.com>
5368
5369 * callproc.c (Fcall_process): Canonicalize current directory name.
5370
5371 * xdisp.c (move_it_to): When moving by vpos, ensure that the
5372 iterator advances to the next line if the current line ends in a
5373 continued tab.
5374
5375 2008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
5376
5377 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
5378 member to point to cmp_from.
5379
5380 * xdisp.c: Doc fix for references to gidx data member.
5381
5382 2008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
5383
5384 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
5385
5386 2008-09-07 Kenichi Handa <handa@m17n.org>
5387
5388 * composite.c (FORWARD_CHAR): Check STOP after
5389 incrementing (POSITION).pos.
5390
5391 2008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
5392
5393 * process.c (Fsystem_process_attributes): Doc fix.
5394
5395 2008-09-06 Chong Yidong <cyd@stupidchicken.com>
5396
5397 * keyboard.c (Ftop_level): Doc fix.
5398
5399 2008-09-06 Eli Zaretskii <eliz@gnu.org>
5400
5401 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
5402 minibuffer, don't let lower part of menu invade the echo area.
5403
5404 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
5405 "char *q" to access menu text and advance through it. Revert the
5406 change that displayed ">" instead of ASCII character 0x10.
5407
5408 2008-09-05 Eli Zaretskii <eliz@gnu.org>
5409
5410 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
5411 toggle boxes and radio buttons on MS-DOS as well.
5412
5413 2008-09-05 Kenichi Handa <handa@m17n.org>
5414
5415 * composite.c (autocmp_chars): Check lookback count.
5416 (composition_compute_stop_pos): Set cmp_it->lookback.
5417 (composition_reseat_it): Check lookback count.
5418 (struct position_record): New struct.
5419 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
5420 (find_automatic_composition): New function.
5421 (composition_adjust_point): Use find_automatic_composition.
5422
5423 * dispextern.h (struct composition_it): New member lookback.
5424
5425 2008-09-02 Chong Yidong <cyd@stupidchicken.com>
5426
5427 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
5428 if moving by a single line.
5429
5430 2008-09-02 Andreas Schwab <schwab@suse.de>
5431
5432 * xterm.c (x_delete_display): Fix merge error.
5433
5434 * fileio.c (Fexpand_file_name): Remove unused variables.
5435
5436 2008-09-02 Eli Zaretskii <eliz@gnu.org>
5437
5438 * fileio.c (Fexpand_file_name): Copy argument `name' into local
5439 storage on all platforms, not just on DOS_NT.
5440
5441 2008-09-02 Jason Rumney <jasonr@gnu.org>
5442
5443 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
5444 Ensure mouse is not grabbed after menu is finished.
5445
5446 2008-09-01 Chong Yidong <cyd@stupidchicken.com>
5447
5448 * xfaces.c (Finternal_set_alternative_font_family_alist)
5449 (Finternal_set_alternative_font_registry_alist): Properly copy
5450 entire alist structure.
5451
5452 2008-09-01 Kenichi Handa <handa@m17n.org>
5453
5454 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
5455 representative chars of the script is a vector.
5456 (ftfont_list): Handle the case where the representative chars of
5457 the script is a vector.
5458
5459 * character.c (syms_of_character): Docstring of
5460 script-representative-chars fixed.
5461
5462 2008-08-31 Eli Zaretskii <eliz@gnu.org>
5463
5464 * msdos.c (BUILD_CHAR_GLYPH): New macro.
5465 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
5466 the menu. Allocate larger buffer for `text', to account for
5467 possible ^C characters.
5468
5469 2008-08-31 Martin Rudalics <rudalics@gmx.at>
5470
5471 * xdisp.c (prepare_menu_bars): Don't call
5472 Vwindow_size_change_functions with arg Qt.
5473
5474 2008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
5475
5476 * font.h (font_range):
5477 * fileio.c (report_file_error):
5478 * composite.c (composition_update_it): Yet another int/Lisp_Object
5479 mixup (YAILOM).
5480
5481 2008-08-30 Glenn Morris <rgm@gnu.org>
5482
5483 * data.c (Fmake_variable_frame_local): Doc fix.
5484
5485 * frame.c (Fmodify_frame_parameters): Doc fix.
5486
5487 2008-08-30 Eli Zaretskii <eliz@gnu.org>
5488
5489 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
5490 needed by GetTokenInformation.
5491 (w32_system_process_attributes): Check return values of all system
5492 APIs.
5493
5494 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
5495 only when the state changes.
5496 (IT_update_begin, IT_update_end): Add termscript trace.
5497
5498 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
5499 clipboard is unavailable. Set dst to NULL if it doesn't point to
5500 malloc'ed data.
5501 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
5502 passing random values to xfree.
5503
5504 * dispnew.c (init_display): Set `tty's association in frame's
5505 parameters alist to the name of the terminal device, if that is known.
5506
5507 2008-08-29 Jason Rumney <jasonr@gnu.org>
5508
5509 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
5510
5511 2008-08-29 Eli Zaretskii <eliz@gnu.org>
5512
5513 * composite.c (fill_gstring_body): Avoid compiler warnings.
5514
5515 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
5516 LGLYPH_SET_CODE to avoid compiler warnings.
5517
5518 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
5519
5520 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
5521
5522 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
5523 LGLYPH_SET_CODE.
5524
5525 2008-08-29 Kenichi Handa <handa@m17n.org>
5526
5527 * fileio.c (report_file_error): Don't downcase the first character
5528 of errstring if it is still unibyte.
5529
5530 2008-08-29 Kenichi Handa <handa@m17n.org>
5531
5532 These changes are to re-implement the automatic composition so
5533 that it doesn't use text properties.
5534
5535 * Makefile.in (ftfont.o): Depend on composite.h.
5536 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
5537
5538 * character.h (Vunicode_category_table): Extern it.
5539
5540 * character.c (Vunicode_category_table): New variable.
5541 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
5542
5543 * chartab.c (optimize_sub_char_table): Perform more greedy
5544 optimization.
5545
5546 * composite.h (enum composition_method):
5547 Delete COMPOSITION_WITH_GLYPH_STRING.
5548 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
5549 (Vcomposition_function_table): Extern it.
5550 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
5551 (composition_gstring_put_cache, composition_gstring_from_id)
5552 (composition_gstring_p, composition_gstring_width)
5553 (composition_compute_stop_pos, composition_reseat_it)
5554 (composition_update_it, composition_adjust_point): Extern them.
5555 (Fcomposition_get_gstring): EXFUN it.
5556
5557 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
5558 (Vcomposition_function_table)
5559 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
5560 (gstring_hash_table, gstring_work, gstring_work_headers):
5561 New variables.
5562 (gstring_lookup_cache, composition_gstring_put_cache)
5563 (composition_gstring_from_id, composition_gstring_p)
5564 (composition_gstring_width, fill_gstring_header)
5565 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
5566 (composition_reseat_it, composition_update_it)
5567 (composition_adjust_point, Fcomposition_get_gstring): New functions.
5568 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
5569 and gstring_work_headers. DEFVAR_LISP composition-function-table.
5570 Defsubr compostion_get_gstring.
5571
5572 * dispextern.h (struct glyph): New union u.cmp. Delete the member
5573 cmp_id.
5574 (struct glyph_string): Delete the member gidx. New members
5575 cmp_id, cmp_from, and cmp_to.
5576 (enum it_method): Delete GET_FROM_COMPOSITION.
5577 (struct composition_it): New struct.
5578 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
5579 Delete c, len, cmp_id, cmp_len in u.comp.
5580
5581 * font.h (enum lgstring_indices): Delete it.
5582 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
5583 (enum lglyph_indices): Likewise.
5584 (font_range): Adjust extern.
5585 (font_fill_lglyph_metrics): Extern it.
5586
5587 * font.c (QCf): New variable.
5588 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
5589 (font_prepare_composition): Delete this function.
5590 (font_range): Type and arguments changed.
5591 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
5592 (font_fill_lglyph_metrics): New function.
5593 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
5594 (syms_of_font): DEFSYM QCf. Delete defsubr for
5595 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
5596 Defsubr Sfont_shape_gstring.
5597
5598 * fontset.h (font_for_char): Extern it.
5599
5600 * fontset.c (font_for_char): New function.
5601
5602 * ftfont.c: Include composite.h.
5603 (ftfont_resolve_generic_family): Add langset "en" to pattern.
5604 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
5605
5606 * indent.c: Include composite.h and dispextern.h.
5607 (check_composition): Delete this function.
5608 (scan_for_column): Handle composition by
5609 composition_compute_stop_pos, composition_reseat_it, and
5610 composition_update_it.
5611 (compute_motion): Likewise.
5612 (Fvertical_motion): Fix checking of composition.
5613
5614 * keyboard.c (adjust_point_for_property): Check composition by
5615 composition_adjust_point.
5616
5617 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
5618 struct glyph_string.
5619
5620 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
5621 (append_composite_glyph): Adjust for the change of struct it and
5622 struct glyph.
5623 (produce_composite_glyph): Likewise.
5624
5625 * w32term.c (x_draw_composite_glyph_string_foreground):
5626 Adjust for the change of struct glyph_string.
5627 (x_draw_glyph_string): Likewise.
5628
5629 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
5630 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
5631
5632 * xdisp.c: Include font.h.
5633 (it_props): Delete the entry for Qauto_composed.
5634 (init_iterator): Initialize it->cmp_it.id to -1.
5635 (compute_stop_pos): Call composition_compute_stop_pos.
5636 (face_before_or_after_it_pos): Adjust for the change of struct it.
5637 (handle_auto_composed_prop): Delete it.
5638 (handle_composition_prop): Handle only static composition.
5639 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
5640 from xassert. Initialize it->cmp_it.stop_pos.
5641 (push_it): Adjust for the change of struct it.
5642 (pop_it): Likewise.
5643 (get_next_element): Delete next_element_from_composition.
5644 (CHAR_COMPOSED_P): New macro.
5645 (get_next_display_element): For automatic composition, get a face
5646 from the font in the glyph-string.
5647 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
5648 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
5649 (next_element_from_string): Check if the character at the current
5650 position is composed by CHAR_COMPOSED_P.
5651 (next_element_from_buffer): Likewise.
5652 (next_element_from_composition): Adjust for the change of struct it.
5653 Update it->cmp_it.
5654 (dump_glyph): Adjust for the change of struct glyph.
5655 (fill_composite_glyph_string): Adjust for the change of struct
5656 it and struct glyph. Don't handle automatic composition here.
5657 (fill_gstring_glyph_string): New function.
5658 (x_get_glyph_overhangs): Handle automatic composition.
5659 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
5660 (BUILD_GSTRING_GLYPH_STRING): New macro.
5661 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
5662 automatic composition.
5663 (append_composite_glyph): Adjust for the change of struct it and
5664 struct glyph.
5665 (x_produce_glyphs): Adjust for the change of struct it.
5666
5667 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
5668 the change of struct glyph_string.
5669 (x_draw_glyph_string): Likewise.
5670
5671 2008-08-29 Glenn Morris <rgm@gnu.org>
5672
5673 * buffer.c (word-wrap): Doc fix.
5674 * xdisp.c (truncate-partial-width-windows): Doc fix.
5675 Increase default to 50.
5676
5677 2008-08-29 Chong Yidong <cyd@stupidchicken.com>
5678
5679 * xdisp.c (update_tool_bar_unwind): New function.
5680 (update_tool_bar): Temporarily set selected frame before building
5681 tool-bar items.
5682
5683 2008-08-28 Michael Albinus <michael.albinus@gmx.de>
5684
5685 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
5686 snprintf, respectively.
5687 (xd_append_arg): Convert strings with Fstring_make_unibyte.
5688
5689 2008-08-28 Chong Yidong <cyd@stupidchicken.com>
5690
5691 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
5692 LDFLAGS to GNUstep CC invocation.
5693
5694 2008-08-27 Chong Yidong <cyd@stupidchicken.com>
5695
5696 * indent.c (Fvertical_motion): Revert last change. Handle the
5697 general case where we are moving forward, and PT spans multiple
5698 screen lines.
5699
5700 * eval.c (find_handler_clause): Temporarily increase
5701 max-lisp-eval-depth while printing the backtrace buffer, to
5702 guarantee that help-mode code can run.
5703
5704 2008-08-27 Eli Zaretskii <eliz@gnu.org>
5705
5706 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
5707 colors under -rv.
5708 (IT_set_frame_parameters): Don't swap foreground and background
5709 colors if `(reverse . t)' is present in the frame properties.
5710 (internal_terminal_init): Call init_frame_faces only for the
5711 initial frame.
5712
5713 2008-08-27 Andreas Schwab <schwab@suse.de>
5714
5715 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
5716
5717 2008-08-27 Andreas Schwab <schwab@suse.de>
5718
5719 * search.c (search_buffer): Set char_base to zero only at the end.
5720
5721 2008-08-27 Kenichi Handa <handa@m17n.org>
5722
5723 * fileio.c (report_file_error): Fix handling of multibyte error string.
5724
5725 2008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
5726
5727 * xterm.c (x_term_init): Temporarily hide the partially
5728 initialized terminal while calling vendor-specific-keysyms.
5729
5730 2008-08-26 Eli Zaretskii <eliz@gnu.org>
5731
5732 * msdos.c (internal_terminal_init): Most initializations done only
5733 once, especially initial_screen_colors[] and termscript open.
5734
5735 2008-08-26 Chong Yidong <cyd@stupidchicken.com>
5736
5737 * eval.c (Fcondition_case): Doc fix.
5738
5739 * widgetprv.h (EmacsFramePart): Change font member to the new font
5740 struct.
5741
5742 * widget.c: Include character.h and font.h for XSETFONT.
5743 (setup_frame_gcs): Compute X font id from font struct, just once.
5744
5745 2008-08-26 Eli Zaretskii <eliz@gnu.org>
5746
5747 * term.c (get_named_tty): Fix last change.
5748
5749 2008-08-26 Chong Yidong <cyd@stupidchicken.com>
5750
5751 * indent.c (Fvertical_motion): If moving forward starting from a
5752 multi-line string, move the iterator to the last line of that string.
5753
5754 2008-08-25 Eli Zaretskii <eliz@gnu.org>
5755
5756 * frame.c (do_switch_frame): Mark previously displayed frame as
5757 obscured for FRAME_MSDOS_P frames as well.
5758
5759 2008-08-24 Eli Zaretskii <eliz@gnu.org>
5760
5761 * frame.c (make_terminal_frame): Initialize f->terminal,
5762 f->terminal->reference_count, and scroll bars on MS-DOS as well.
5763 Set the top frame to newly created frame.
5764 (Fmake_terminal_frame): Reuse the_only_display_info.
5765
5766 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
5767 estimating available memory.
5768
5769 2008-08-23 David Reitter <david.reitter@gmail.com>
5770
5771 * nsterm.m (ns_draw_window_cursor): Don't call
5772 NSDisableScreenUpdates and NSEnableScreenUpdates on
5773 non-NS_IMPL_COCOA systems.
5774
5775 2008-08-23 Andreas Schwab <schwab@suse.de>
5776
5777 * process.c (procfs_system_process_attributes): Fix use of
5778 uninitialized variables.
5779
5780 2008-08-23 Eli Zaretskii <eliz@gnu.org>
5781
5782 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
5783
5784 * dispnew.c (init_display): Remove MS-DOS specific conditions for
5785 calling tty-set-up-initial-frame-faces.
5786
5787 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
5788 Allow MSDOS frames along with X frames.
5789
5790 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
5791 addition to output_termcap.
5792
5793 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
5794
5795 * termchar.h (FRAME_TTY): Support output_msdos_raw.
5796 (struct tty_display_info) [MSDOS]: Add fields related to mouse
5797 highlight.
5798
5799 * process.c [!subprocesses]: Define QCname.
5800 (syms_of_process): Intern and staticpro it.
5801
5802 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
5803 Adjust for changes in encoding/decoding routines.
5804 Use encode_coding_object and decode_coding_object instead of
5805 encode_coding and decode_coding.
5806
5807 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
5808
5809 * dosfns.c: Include frame.h before termhooks.h.
5810 (dos_cleanup): Use CURTTY ()->termscript instead of a global
5811 variable termscript.
5812
5813 * s/msdos.h (USER_FULL_NAME): Define.
5814 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
5815
5816 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
5817 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
5818 pw->pw_gecos.
5819
5820 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
5821 SELECTED_FRAME as additional (1st) argument.
5822 (tty_read_avail_input): Handle output_msdos_raw in
5823 addition to output_termcap.
5824
5825 * msdos.c: Include frame.h before termhooks.h.
5826 (mouse_on, mouse_off, mouse_moveto, mouse_init)
5827 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
5828 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
5829 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
5830 (IT_set_terminal_modes, IT_reset_terminal_modes)
5831 (IT_set_frame_parameters): Use tty->termscript instead of a global
5832 variable termscript.
5833 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
5834 global variable terminal_coding. Don't refer to
5835 Vnonascii_translation_table.
5836 (internal_terminal_init): Set Vwindow_system in current_kboard.
5837 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
5838 Announce date and time of session start, if termscript is open.
5839 Don't zero out the_only_display_info (it is done in
5840 term.c:init_tty). Open termscript only of not already open.
5841 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
5842 here instead of dos_ttraw. Don't initialize display if this is an
5843 initial tty. Don't set FRAME_FONT.
5844 (Vwindow_system_version): Bump to 23.
5845 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
5846 is available, set up mouse_position_hook.
5847 (dos_ttraw, IT_set_terminal_modes): If called with initial
5848 terminal, do nothing.
5849 (IT_set_frame_parameters): Handle the Qtty_type frame
5850 parameter by calling internal_terminal_init.
5851 (dos_set_window_size, show_mouse_face)
5852 (clear_mouse_face, IT_note_mode_line_highlight)
5853 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
5854 (dos_rawgetc): Use tty_display_info instead of x_display_info.
5855 (initialize_msdos_display): New function.
5856 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
5857 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
5858 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
5859 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
5860 Accept additional argument: a pointer to a frame. Update all callers.
5861 (request_sigio, unrequest_sigio): Don't define, now defined on
5862 sysdep.c.
5863 (IT_write_glyphs): Rewrite to use encode_terminal_code.
5864
5865 * term.c [MSDOS]: Include msdos.h.
5866 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
5867 conditional to DOS_NT. Allow only one call to this function in a
5868 session. Don't allocate a new struct tty_display_info; instead,
5869 reuse the_only_display_info. Call get_tty_size to get screen
5870 dimensions. Call init_baud_rate to set bad_rate.
5871 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
5872 (Fsuspend_tty) [MSDOS]: Don't close input and output.
5873 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
5874 (get_tty_terminal, get_named_tty, Ftty_type)
5875 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
5876 output_termcap.
5877 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
5878 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
5879 only when subprocesses are supported.
5880
5881 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
5882 f->output_data.x.
5883 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
5884 terminal devices.
5885
5886 * msdos.h: Remove definition of struct x_display_info and struct
5887 x_output.
5888 (FRAME_FONT): Use output_data.tty.
5889 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
5890 (struct x_display_info): Rename from display_info. Update all users in
5891 msdos.c.
5892 (struct x_output): Remove background_pixel and foreground_pixel.
5893 (the_only_display_info): Rename from the_only_x_display.
5894 (dos_ttraw): Update prototype.
5895
5896 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
5897 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
5898
5899 2008-08-23 Jason Rumney <jasonr@gnu.org>
5900
5901 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
5902 (fn_TIFFSetDirectory): New library function used.
5903 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
5904 (tiff_load): Use :index to select among multiple images. Set count
5905 property when multiple images exist.
5906 (gif_format): Use :index, not :image.
5907
5908 2008-08-23 Chong Yidong <cyd@stupidchicken.com>
5909
5910 * xdisp.c (try_scrolling): Check INT_MAX instead of
5911 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
5912 to obtain INT_MAX.
5913
5914 2008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
5915
5916 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
5917
5918 2008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
5919
5920 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
5921 GNUstep library location.
5922
5923 2008-08-21 Chong Yidong <cyd@stupidchicken.com>
5924
5925 * xfaces.c (x_update_menu_appearance): Check validity of menu font
5926 before using it.
5927
5928 * puresize.h (BASE_PURESIZE): Increase to 1250000.
5929
5930 2008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
5931
5932 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
5933 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
5934 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
5935 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
5936 (EmacsApp-cursor_blink_handler): Remove declaration.
5937 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
5938 match 01 Feb 2008 changes in xterm.c.
5939 (ns_read_socket): Add cast to avoid warning.
5940 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
5941 GNUstep.
5942
5943 2008-08-20 Chong Yidong <cyd@stupidchicken.com>
5944
5945 * xselect.c (x_get_foreign_selection): Return nil if desired
5946 selection could not be obtained, instead of signalling an error.
5947
5948 2008-08-20 David Reitter <david.reitter@gmail.com>
5949
5950 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
5951 * nsterm.m: Remove ns-specific code for cursor blinking.
5952 (ns_draw_window_cursor): Clear cursor properly rather than
5953 redrawing the area. Respect width of bar cursors.
5954 These changes enable the use of generic blink-cursor-mode and
5955 generic cursor types in NS and support smooth cursor movements (do
5956 not blink off after command).
5957 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
5958 Nextstep, too.
5959
5960 2008-08-19 Kenichi Handa <handa@m17n.org>
5961
5962 * font.c (Vfont_log_deferred): New variable.
5963 (font_add_log): Check Vfont_log_deferred.
5964 (font_deferred_log): New function.
5965
5966 * font.h (font_deferred_log): Extern it.
5967
5968 * fontset.c (reorder_font_vector): Use encoding charset of fonts
5969 for sorting.
5970 (face_for_char): Use deferred log.
5971
5972 2008-08-18 Kenichi Handa <handa@m17n.org>
5973
5974 * fontset.c (face_for_char): Add font log.
5975
5976 * font.c (font_add_log): Add the font properties :script, :lang,
5977 and :otf in the log.
5978
5979 2008-08-17 Chong Yidong <cyd@stupidchicken.com>
5980
5981 * xdisp.c: Remove dead code.
5982 (handle_invisible_prop, next_overlay_string): Defer call to
5983 setup_for_ellipsis.
5984 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
5985
5986 2008-08-15 Chong Yidong <cyd@stupidchicken.com>
5987
5988 * xfaces.c (lookup_derived_face): Properly handle possible zero
5989 return value of get_lface_attributes.
5990 (merge_faces): Don't tell lookup_derived_face to signal an error
5991 if face is not found.
5992
5993 * dired.c (Fdirectory_files): Doc fix.
5994
5995 * process.c (make_process): Initialize kill_without_query struct
5996 member.
5997
5998 2008-08-15 Eli Zaretskii <eliz@gnu.org>
5999
6000 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
6001 Alternative calculation of totphys for Visual Studio 6.
6002
6003 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
6004
6005 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
6006 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
6007 All users changed.
6008 (stat): Only root directory passed to GetDriveType. Allow RAM
6009 disk as well as local fixed disk when w32-get-true-file-attributes
6010 is set to `local'.
6011 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
6012 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
6013 (w32_cached_id, w32_add_to_cache): New functions.
6014 (get_name_and_id): Look account names in the cache before calling
6015 lookup_account_sid.
6016 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
6017 New initialization flags.
6018 (globals_of_w32): Initialize them to zero.
6019 (w32_system_process_attributes): Use w32_cached_id and
6020 w32_add_to_cache.
6021
6022 2008-08-14 Lawrence Mitchell <wence@gmx.li>
6023
6024 * lread.c (Fread_char, Fread_char_exclusive): If no character
6025 event is read before timeout is reached, return nil, rather than
6026 converting to a number.
6027
6028 2008-08-14 Chong Yidong <cyd@stupidchicken.com>
6029
6030 * fns.c (use_dialog_box): Doc fix.
6031
6032 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
6033 on OS X.
6034
6035 2008-08-13 Chong Yidong <cyd@stupidchicken.com>
6036
6037 * frame.c (Qns_parse_geometry): New var.
6038 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
6039
6040 2008-08-11 Chong Yidong <cyd@stupidchicken.com>
6041
6042 * xdisp.c (x_produce_glyphs): Handle the case when font has no
6043 space character in calculating tabs.
6044
6045 2008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
6046
6047 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
6048
6049 2008-08-10 Glenn Morris <rgm@gnu.org>
6050
6051 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
6052 silence gcc "limited range of data type" warnings in some
6053 make_fixnum_or_float calls.
6054
6055 2008-08-09 Eli Zaretskii <eliz@gnu.org>
6056
6057 * w32.c (w32_system_process_attributes): If the process does not
6058 exist, return nil.
6059
6060 * w32.c: Include thelp32.h, psapi.h and coding.h.
6061 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
6062 declarations.
6063 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
6064 (Process32Next_Proc): New typedefs.
6065 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
6066 (g_b_init_process32_next, g_b_init_open_thread_token)
6067 (g_b_init_impersonate_self, g_b_init_revert_to_self)
6068 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
6069 (g_b_init_get_process_working_set_size)
6070 (g_b_init_global_memory_status_ex): New static variables.
6071 (globals_of_w32): Initialize them.
6072 (create_toolhelp32_snapshot, process32_first, process32_next)
6073 (open_thread_token, impersonate_self, revert_to_self)
6074 (get_process_memory_info, get_process_working_set_size)
6075 (global_memory_status, global_memory_status_ex): New wrapper
6076 functions.
6077 (w32_list_system_processes, w32_system_process_attributes)
6078 (enable_privilege, restore_privilege, ltime, process_times):
6079 New functions.
6080 (convert_time_raw): New function.
6081 (convert_time): Remove conversion of FILETIME into time in 100
6082 nsec units, call convert_time_raw instead.
6083
6084 * process.h (w32_list_system_processes, w32_system_process_attributes):
6085 Add prototypes.
6086 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
6087 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
6088 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
6089 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
6090
6091 * process.c (Fsystem_process_attributes): Doc fix.
6092
6093 2008-08-08 Chong Yidong <cyd@stupidchicken.com>
6094
6095 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
6096 a continued multi-char glyph; if so, advance to the actual glyph.
6097
6098 2008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
6099
6100 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
6101
6102 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
6103 (.m.o): Use it.
6104 * config.in: Regenerate.
6105
6106 2008-08-07 Chong Yidong <cyd@stupidchicken.com>
6107
6108 * xdisp.c (redisplay_window): Revert last change.
6109 (try_window): Check bottom scroll margin too.
6110
6111 2008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
6112
6113 * config.in: Regenerate.
6114
6115 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
6116 -list-load-path-shadows'.
6117 (nsgui.h): Reduce number of things depending on it.
6118
6119 2008-08-06 Chong Yidong <cyd@stupidchicken.com>
6120
6121 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
6122 instead of window-end which does the wrong thing at eob.
6123 (try_cursor_movement): Minor optimization.
6124 (redisplay_window): If scroll margin is defined, don't assume
6125 window doesn't need scrolling.
6126
6127 2008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
6128
6129 * config.in: Regenerate.
6130
6131 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
6132 (mostlyclean): Don't delete *.d under NS.
6133
6134 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
6135
6136 2008-08-06 Kenichi Handa <handa@m17n.org>
6137
6138 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
6139
6140 2008-08-06 Andreas Schwab <schwab@suse.de>
6141
6142 * config.in: Regenerate.
6143
6144 2008-08-05 Chong Yidong <cyd@stupidchicken.com>
6145
6146 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
6147 forcing a window start.
6148
6149 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
6150 (auto_save_1): Update modtime when auto-save-list-file-name is on.
6151
6152 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
6153
6154 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
6155 argument.
6156
6157 2008-08-05 Juanma Barranquero <lekktu@gmail.com>
6158
6159 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
6160 <scroll-down-aggressively, before-change-functions>:
6161 <after-change-functions>: Reflow docstrings.
6162
6163 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
6164 Ken Raeburn <raeburn@gnu.org>
6165
6166 Dock menu customization, based on a patch by Ken Raeburn, plus some
6167 other fixes.
6168 * nsmenu.m (dockMenu): New variable.
6169 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
6170
6171 * nsterm.h (dockMenu): Declare.
6172
6173 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
6174 (ns_term_init): Initialize dockMenu.
6175 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
6176 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
6177 left.
6178
6179 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
6180
6181 2008-08-04 Chong Yidong <cyd@stupidchicken.com>
6182
6183 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
6184
6185 * config.in: Regenerate.
6186
6187 2008-08-04 Seiji Zenitani <zenitani@mac.com>
6188
6189 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
6190
6191 2008-08-04 Chong Yidong <cyd@stupidchicken.com>
6192
6193 * nsterm.h (find_and_call_menu_selection): Fix prototype.
6194
6195 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
6196
6197 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
6198
6199 * keyboard.h: Comment an #endif.
6200
6201 * lisp.h (have_menus_p): Adjust comment.
6202
6203 * menu.c (find_and_return_menu_selection): Fix comparison with
6204 client_data.
6205
6206 * nsmenu.m (popup_activated_flag): New variable.
6207 (popup_activated): New function.
6208 (menu-or-popup-active-p): New exported lisp definition.
6209 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
6210 when popup done.
6211 (ns_popup_dialog): Set popup_activated_flag.
6212
6213 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
6214 version for GNUstep (handled by conditional typedef in nsterm.m).
6215 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
6216 in rgb.txt).
6217
6218 * process.c (init_process): Use DARWIN_OS, not DARWIN.
6219
6220 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
6221
6222 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
6223
6224 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
6225 shortcircuit if popup_activated like GTK and X toolkit.
6226
6227 * m/inter386.h: Change DARWIN to DARWIN_OS.
6228
6229 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
6230 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
6231 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
6232 comment on NO_SOCK_SIGIO.
6233
6234 2008-08-03 Chong Yidong <cyd@stupidchicken.com>
6235
6236 * nsterm.m (windowDidResize): Remove stopModal call.
6237
6238 2008-08-03 Andreas Schwab <schwab@suse.de>
6239
6240 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
6241 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
6242
6243 2008-08-02 Chong Yidong <cyd@stupidchicken.com>
6244
6245 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
6246 Don't use uninitialized pointer variable when using getrlimit.
6247
6248 2008-08-02 Jason Rumney <jasonr@gnu.org>
6249
6250 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
6251
6252 2008-08-02 Eli Zaretskii <eliz@gnu.org>
6253
6254 * alloc.c (NSTATICS): Bump to 0x640.
6255
6256 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
6257
6258 * lisp.h: Add prototype for directory_files_internal.
6259
6260 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
6261 New functions.
6262 (syms_of_process): Defsubr them. Add initializations for various
6263 Q* symbols used in procfs_system_process_attributes.
6264 (procfs_list_system_processes, procfs_system_process_attributes)
6265 [HAVE_PROCFS]: New functions.
6266 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
6267 (procfs_get_total_memory): New functions.
6268
6269 2008-08-01 Juanma Barranquero <lekktu@gmail.com>
6270
6271 * xfaces.c (Fx_load_color_file): Fix previous change;
6272 it is #ifdef WINDOWSNT, not WINDOWS_NT.
6273
6274 2008-08-01 Michael Albinus <michael.albinus@gmx.de>
6275
6276 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
6277
6278 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
6279
6280 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
6281
6282 2008-08-01 Chong Yidong <cyd@stupidchicken.com>
6283
6284 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
6285
6286 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
6287 define NSApplicationDelegateReplySuccess.
6288 (EmacsView -converstationIdentifier): Use long instead of
6289 NSInteger for GNUstep, since it doesn't have NSInteger.
6290
6291 * xmenu.c: Revert last change.
6292
6293 * keyboard.h: Fix last change.
6294
6295 2008-08-01 Juanma Barranquero <lekktu@gmail.com>
6296
6297 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
6298 on Windows.
6299
6300 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
6301
6302 Warning clearing and clean-up in NS port.
6303 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
6304 Add prototypes.
6305 * nsgui.h (FACE_DEFAULT): Remove, unused.
6306 (XGCValues): Change colors to unsigned long.
6307 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
6308 nsterm.m.
6309 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
6310 (ns_list_fonts): Remove, unused.
6311 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
6312 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
6313 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
6314 (nsfont_draw): Compare face colors to 0, not nil.
6315 * nsmenu.m (struct widget_value): Drop unneeded declaration.
6316 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
6317 (-addSubmenuWithTitle:): Use NSMenuItem class.
6318 (ns_popup_menu): Use NO, not NULL, for enabled setting.
6319 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
6320 (ns_clip_to_row): Make gc arg a BOOL.
6321 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
6322 ns_clip_to_row() call.
6323 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
6324 used). Cast FRAME_FONT assignments.
6325 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
6326 (ns_string_to_lispmod): Change arg to const char.
6327 (ns_term_init): Use NSMenuItem class.
6328 (EmacsApp -openFile:): Move to different section of file.
6329 (EmacsApp -application:openFiles:): Don't return a value, call
6330 -replyToOpenOrPrint:.
6331 (EmacsView -keyDown:): Fix up cast.
6332 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
6333 (EmacsView -menuDown:): Cast tag in call to
6334 find_and_call_menu_selection().
6335 (ns_list_fonts): Remove, unused.
6336 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
6337 (ns_fontname_to_xlfd): Make static.
6338 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
6339 Remove prototypes (now in keyboard.h).
6340 (next_menubar_widget_id): Remove, unused.
6341 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
6342 Remove prototypes (now in keyboard.h).
6343 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
6344
6345 2008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
6346
6347 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
6348 (floatfns.o): Depend on syssignal.h.
6349 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
6350
6351 * systty.h: Fix previous change that removed BSD_TERMIOS.
6352 Add comments to #ifdefs.
6353
6354 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
6355
6356 * w32fns.c (w32-load-color-file): Remove.
6357 (x-open-connection): Use renamed Fx_load_color_file.
6358 * xfaces.c (x-load-color-file): Add.
6359 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
6360 Emacs.clr.
6361 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
6362
6363 2008-07-31 Michael Albinus <michael.albinus@gmx.de>
6364
6365 * dbusbind.c (Fdbus_call_method_asynchronously)
6366 (Fdbus_method_error_internal): New defuns.
6367 (xd_read_message): Handle also reply messages.
6368 (Vdbus_registered_functions_table): Extend docstring.
6369
6370 2008-07-31 Juanma Barranquero <lekktu@gmail.com>
6371
6372 * keyboard.c (gobble_input): Fix previous change.
6373
6374 2008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
6375
6376 * bitmaps/README:
6377 * xfns.c:
6378 * termcap.c:
6379 * term.c:
6380 * syswait.h:
6381 * systty.h:
6382 * systime.h:
6383 * syssignal.h:
6384 * sysdep.c:
6385 * process.h:
6386 * process.c:
6387 * print.c:
6388 * ndir.h:
6389 * lread.c:
6390 * keyboard.c:
6391 * getpagesize.h:
6392 * floatfns.c:
6393 * fileio.c:
6394 * emacs.c:
6395 * doc.c:
6396 * dispnew.c:
6397 * dired.c:
6398 * data.c:
6399 * callproc.c:
6400 * buffer.c:
6401 * README:
6402 * Makefile.in:
6403 * s/template.h:
6404 * s/msdos.h:
6405 * m/vax.h: Remove VMS support.
6406 * s/vms.h:
6407 * vlimit.h:
6408 * uaf.h:
6409 * temacs.opt:
6410 * param.h:
6411 * ioctl.h: Remove file.
6412
6413 2008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
6414
6415 * s/ms-w32.h (MULTI_KBOARD): Remove.
6416 * xterm.c:
6417 * xselect.c:
6418 * xfns.c:
6419 * window.c:
6420 * w32term.c:
6421 * w32fns.c:
6422 * terminal.c:
6423 * termhooks.h:
6424 * term.c:
6425 * sysdep.c:
6426 * keyboard.h:
6427 * keyboard.c:
6428 * frame.h:
6429 * frame.c:
6430 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
6431 * config.in: Regenerate.
6432
6433 2008-07-30 Jason Rumney <jasonr@gnu.org>
6434
6435 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
6436
6437 * w32font.c (w32font_encode_char): Leave as unicode if in range.
6438 (w32font_open_internal): Get unicode version of textmetrics.
6439 Don't enable or disable glyph indices here.
6440 (w32font_open): Disable use of glyph indices.
6441
6442 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
6443
6444 2008-07-30 Chong Yidong <cyd@stupidchicken.com>
6445
6446 * minibuf.c (Vread_buffer_function): Doc fix.
6447
6448 2008-07-30 John Paul Wallington <jpw@pobox.com>
6449
6450 * minibuf.c (read_buffer_completion_ignore_case): New var.
6451 (Fread_buffer): Use it.
6452
6453 2008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
6454
6455 * systty.h (sensemode): Remove empty #if. Remove reference to
6456 BSD_TERMIOS, unused.
6457
6458 * sysdep.c: Remove reference to DGUX.
6459 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
6460
6461 * config.in: Regenerate.
6462
6463 2008-07-30 Jason Rumney <jasonr@gnu.org>
6464
6465 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
6466
6467 2008-07-29 Jason Rumney <jasonr@gnu.org>
6468
6469 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
6470 is populated.
6471 (uniscribe_encode_char): Always use uniscribe.
6472 Avoid using context if cache is populated.
6473
6474 2008-07-29 Jan Djärv <jan.h.d@swipnet.se>
6475
6476 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
6477 open menu.
6478
6479 * gtkutil.c (menu_nav_ended): Remove.
6480 (create_menus): Remove signal connect for menu_nav_ended.
6481
6482 2008-07-28 Chong Yidong <cyd@stupidchicken.com>
6483
6484 * xdisp.c (redisplay_window): Check return value of
6485 compute_window_start_on_continuation_line before forcing a window
6486 start.
6487
6488 2008-07-28 Jason Rumney <jasonr@gnu.org>
6489
6490 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
6491
6492 * w32term.c (w32_enable_unicode_output, cleartype_active):
6493 Remove obsolete display options.
6494 (x_draw_glyph_string_background): Don't use old cleartype_active
6495 workaround.
6496 (w32_initialize): Remove cleartype_active initialization.
6497 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
6498
6499 2008-07-28 Andreas Schwab <schwab@suse.de>
6500
6501 * lisp.h (init_weak_hash_tables, syms_of_font)
6502 (xd_read_queued_messages, syms_of_dbusbind): Declare.
6503 (remove_hash_entry): Don't declare.
6504 * eval.c (maybe_call_debugger): Make static and move before use.
6505 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
6506 * xdisp.c: Include "gtkutil.h" if USE_GTK.
6507 * xterm.h (x_set_frame_alpha): Declare.
6508
6509 2008-07-28 Jan Djärv <jan.h.d@swipnet.se>
6510
6511 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
6512 (create_menus): Connect selection-done to menu_nav_ended.
6513
6514 2008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
6515
6516 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
6517 Set Vx_resource_name to a fallback. Replace read of 'buffered'
6518 parameter with read of 'alpha' one.
6519 (Qns_frame_parameter): Remove.
6520 * nsselect.m (selection-coding-system)
6521 (next-selection-coding-system, Vselection_coding_system)
6522 (Vnext_selection_coding_system): Drop.
6523
6524 2008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
6525
6526 * nsfns.m (do-applescript, do_applescript): Rename to
6527 ns-do-applescript, ns_do_applescript, and move within file.
6528
6529 2008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
6530
6531 Remove support for Mac Carbon.
6532 * mactoolbox.c:
6533 * macterm.h:
6534 * macterm.c:
6535 * macselect.c:
6536 * macmenu.c:
6537 * macgui.h:
6538 * macfns.c:
6539 * mac.c: Remove file.
6540 * s/darwin.h:
6541 * m/intel386.h:
6542 * xfaces.c:
6543 * xdisp.c:
6544 * window.c:
6545 * tparam.c:
6546 * termhooks.h:
6547 * termcap.c:
6548 * term.c:
6549 * syssignal.h:
6550 * sysselect.h:
6551 * sysdep.c:
6552 * process.c:
6553 * lread.c:
6554 * lisp.h:
6555 * keyboard.c:
6556 * image.c:
6557 * fringe.c:
6558 * frame.h:
6559 * frame.c:
6560 * fontset.c:
6561 * font.h:
6562 * font.c:
6563 * fns.c:
6564 * fileio.c:
6565 * emacs.c:
6566 * dispnew.c:
6567 * dispextern.h:
6568 * config.in:
6569 * atimer.c:
6570 * Makefile.in: Remove code for Carbon.
6571
6572 2008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6573
6574 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
6575
6576 2008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6577
6578 * macterm.h (kCGBitmapByteOrder32Host): New define for
6579 non-universal SDKs.
6580
6581 * image.c (mac_create_cg_image_from_image, image_load_image_io)
6582 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
6583
6584 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
6585 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
6586
6587 2008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
6588
6589 * w32inevt.c: Include dispextern.h.
6590
6591 2008-07-26 Andreas Schwab <schwab@suse.de>
6592
6593 * print.c (print_object): Fix off-by-one in last change.
6594
6595 2008-07-25 Juanma Barranquero <lekktu@gmail.com>
6596
6597 * term.c (syms_of_term): Don't initialize default_orig_pair,
6598 default_set_foreground and default_set_background on Windows.
6599
6600 2008-07-25 Jason Rumney <jasonr@gnu.org>
6601
6602 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
6603 ScriptItemize. Clean up return value checking. Remove unused
6604 variables.
6605 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
6606 shaping engine.
6607
6608 * w32font.c (w32font_has_char): Handle the case where we can't
6609 determine the script for a character.
6610
6611 2008-07-25 Chong Yidong <cyd@stupidchicken.com>
6612
6613 * term.c (syms_of_term): Initialize default_orig_pair,
6614 default_set_foreground, and default_set_background.
6615
6616 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
6617 clash (bug#86).
6618 (getloadavg): Callers changed.
6619
6620 * image.c (svg_load_image): Fix last change.
6621 (svg_load_image): Use rsvg_handle_get_dimensions to check that
6622 image size is valid. Use g_object_unref instead of deprecated
6623 rsvg_handle_free to free rsvg handle.
6624 (x_from_xcolors): Don't initialize pixmap (silence compiler).
6625
6626 2008-07-25 Jason Rumney <jasonr@gnu.org>
6627
6628 * w32font.c (w32font_encode_char): Encode characters outside BMP as
6629 surrogates before looking up glyph index.
6630 (w32font_text_extents): Encode as surrogates if falling back to
6631 functions that need UTF-16 wide chars.
6632
6633 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
6634 BMP as surrogates before looking up glyph index.
6635
6636 2008-07-25 Chong Yidong <cyd@stupidchicken.com>
6637
6638 * image.c (svg_load_image): Check for failure in return value of
6639 rsvg_handle_get_pixbuf. Free rsvg handle when done.
6640
6641 2008-07-25 Jason Rumney <jasonr@gnu.org>
6642
6643 * w32font.c (Fx_select_font): Reverse sense of second arg.
6644
6645 2008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
6646
6647 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
6648 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
6649
6650 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
6651 (PURESIZE): Use it.
6652
6653 2008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
6654
6655 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
6656 * m/alpha.h (TEXT_END):
6657 * m/ibmrs6000.h (TEXT_END):
6658 * m/macppc.h (TEXT_END):
6659 * s/darwin.h (TEXT_END):
6660 * s/msdos.h (TEXT_END): Remove, unused.
6661 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
6662 * s/cygwin.h: Remove comment.
6663
6664 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
6665 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
6666 * m/intel386.h (DOT_GLOBAL_START):
6667 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
6668 (USG): Remove, file not used on USG platforms.
6669
6670 * Makefile.in (HAVE_X11): Remove empty #else.
6671
6672 2008-07-24 Andreas Schwab <schwab@suse.de>
6673
6674 * fileio.c (Finsert_file_contents): Properly adjust undo list
6675 after format conversion.
6676
6677 2008-07-24 Jan Djärv <jan.h.d@swipnet.se>
6678
6679 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
6680 (menu_nav_ended): Remove.
6681 (create_menus): Remove signal connect for menu_nav_ended.
6682 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
6683 create_menus.
6684 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
6685
6686 2008-07-23 Jason Rumney <jasonr@gnu.org>
6687
6688 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
6689 with opened font.
6690 (w32font_open): Set font type to gdi.
6691
6692 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
6693
6694 2008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
6695
6696 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
6697 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
6698 defines it.
6699 * unexec.c (ADDR_CORRECT): Define unconditionally.
6700
6701 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
6702
6703 * unexec.c: Remove code depending on !COFF and USG, the file is
6704 not used for such systems.
6705
6706 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
6707 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
6708 (LD_SWITCH_SYSTEM_1): Remove, update users.
6709
6710 * s/darwin.h (DATA_END):
6711 * m/intel386.h (DATA_END):
6712 * m/ibmrs6000.h (DATA_END):
6713 * m/alpha.h (DATA_END): Remove, unused.
6714
6715 * config.in: Regenerate.
6716 * s/ms-w32.h (subprocesses): Define unconditionally.
6717 * s/template.h (subprocesses): Update comment.
6718 * s/vms.h (subprocesses):
6719 * s/usg5-4.h (subprocesses):
6720 * s/hpux10-20.h (subprocesses):
6721 * s/gnu-linux.h (subprocesses):
6722 * s/cygwin.h (subprocesses):
6723 * s/bsd-common.h (subprocesses):
6724 * s/aix4-2.h (subprocesses):
6725 * s/darwin.h (subprocesses): Do not define, defined by default now.
6726
6727 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
6728 Remove all references.
6729 (temacs): Add GNUstep specific ld flags.
6730
6731 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
6732 similarly to what X does.
6733
6734 2008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
6735
6736 * nsfns.m (x-list-fonts): Remove.
6737 (syms_of_nsfns): Drop the x-list-fonts declaration.
6738 * nsterm.m: Get rid of remaining "//" comments.
6739
6740 2008-07-22 Chong Yidong <cyd@stupidchicken.com>
6741
6742 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
6743
6744 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
6745 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
6746 (Fns_own_selection_internal, Fx_disown_selection_internal)
6747 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
6748
6749 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
6750 ... */' style of docstrings. Doc fixes.
6751
6752 2008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
6753
6754 * terminfo.c (UP, BC, PC): Undo previous change.
6755
6756 * nsfns.m: Rename ns prefixed functions/variables to the
6757 corresponding x versions. Update references.
6758
6759 2008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
6760
6761 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
6762
6763 2008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
6764
6765 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
6766 Remove forwarding functions.
6767 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
6768 non-static.
6769 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
6770 non-static.
6771 (ns_frame_parm_handlers): Use the new names.
6772 (syms_of_nsfns): Move to the end of file.
6773
6774 * nsterm.m (syms_of_nsterm): Move to the end of file.
6775
6776 * dispnew.c (init_display): Remove code for X10.
6777
6778 2008-07-22 Jason Rumney <jasonr@gnu.org>
6779
6780 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
6781 bare drive.
6782
6783 2008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
6784
6785 * nsterm.m (syms_of_nsterm): Remove debugging println.
6786
6787 2008-07-22 David Reitter <david.reitter@gmail.com>
6788
6789 * nsfns.m (do_applescript, F_do_applescript): NS version of the
6790 Carbon implementation of the same functionality: execute arbitrary
6791 AppleScript code.
6792
6793 2008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
6794
6795 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
6796 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
6797 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
6798 (Fx_display_mm_height, Fx_display_mm_width)
6799 (Fx_display_backing_store, Fx_display_visual_class)
6800 (Fx_display_save_under, Fx_open_connection)
6801 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
6802 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
6803 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
6804 (Fx_display_pixel_width, Fx_display_pixel_height)
6805 (Fx_display_usable_bounds, Fx_display_planes)
6806 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
6807 ... */' style of docstrings.
6808
6809 2008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
6810
6811 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
6812 on this platform.
6813 (mips):
6814 * m/iris4d.h (mips): Do not define.
6815 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
6816
6817 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
6818
6819 * image.c:
6820 * nsfns.m:
6821 * nsselect.m:
6822 * nsterm.h:
6823 * nsterm.m: Rename ns prefixed functions/variables to the
6824 corresponding x versions. Update references.
6825
6826 * m/ibms390x.h (NO_REMAP): Do not undefine.
6827
6828 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
6829
6830 2008-07-21 Chong Yidong <cyd@stupidchicken.com>
6831
6832 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
6833 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
6834 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
6835 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
6836 (Fns_display_mm_height, Fns_display_mm_width)
6837 (Fns_display_backing_store, Fns_display_visual_class)
6838 (Fns_display_save_under, Fns_open_connection)
6839 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
6840 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
6841 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
6842 (Fns_display_pixel_width, Fns_display_pixel_height)
6843 (Fns_display_usable_bounds, Fx_display_planes)
6844 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
6845
6846 2008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
6847
6848 * print.c (print_object): Check print_depth before searching for
6849 circularities.
6850
6851 2008-07-21 Michael Albinus <michael.albinus@gmx.de>
6852
6853 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
6854 only sprintf.
6855
6856 2008-07-21 Kenichi Handa <handa@m17n.org>
6857
6858 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
6859
6860 2008-07-20 Andreas Schwab <schwab@suse.de>
6861
6862 * syntax.c (find_start_pos, find_start_value)
6863 (find_start_value_byte, find_start_begv, find_defun_start)
6864 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
6865
6866 2008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
6867
6868 * s/sol2-3.h: Insert contents of s/sol2.h.
6869 (LD_SWITCH_SYSTEM): Remove redundant definition.
6870 * s/sol2.h: Remove, unused.
6871
6872 2008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
6873
6874 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
6875
6876 2008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
6877
6878 * Makefile.in (ns_appdir): Fix typo in find command.
6879
6880 2008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
6881
6882 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
6883
6884 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
6885 added not supported anymore.
6886
6887 * s/usg5-4-2.h (LIBS_SYSTEM):
6888 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
6889
6890 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
6891 * s/lynxos.h (GETPGRP_NO_ARG):
6892 * s/hpux10-20.h (NO_SIOCTL_H):
6893 * s/gnu.h (GETPGRP_NO_ARG):
6894 * s/gnu-linux.h (NO_SIOCTL_H):
6895 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
6896 * s/cygwin.h (GETPGRP_NO_ARG):
6897 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
6898 (C_DEBUG_SWITCH): Remove duplicate definition.
6899
6900 * m/ibms390.h: Remove boilerplate comments.
6901
6902 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
6903
6904 * process.c (HAVE_SERIAL): Consolidate ifdefs.
6905 (wait_reading_process_output): Remove code for SunOS, platform not
6906 supported anymore. Use SOLARIS2 instead of sun.
6907
6908 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
6909
6910 * font.c (font_open_by_name): Under NS, default lface height to zero.
6911 (font_open_for_lface): Under NS, set size based on frame fontsize.
6912 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
6913 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
6914
6915 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
6916
6917 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
6918 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
6919 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
6920 YES/NO.
6921 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
6922 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
6923 * Makefile.in (clean): Clear out build destination dir.
6924
6925 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
6926
6927 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
6928 xterm, xselect.
6929 * lisp.h: Remove declaration of hash_remove.
6930 * nsgui.h: Remove redefinitions of hash_remove.
6931 * fns.c (hash_remove): Rename to hash_remove_from_table.
6932
6933 2008-07-19 Seiji Zenitani <zenitani@mac.com>
6934
6935 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
6936 strdup() the family UTF8String before modifying it.
6937
6938 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
6939
6940 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
6941 NS_FACE_BACKGROUND with 0 instead of nil.
6942 * nsfont.m (nsfont_draw): Same.
6943
6944 2008-07-19 Chong Yidong <cyd@stupidchicken.com>
6945
6946 * nsfns.m (ns_set_background_color): Fix crash.
6947
6948 2008-07-18 Chong Yidong <cyd@stupidchicken.com>
6949
6950 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
6951
6952 2008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
6953
6954 * puresize.h (BASE_PURESIZE): Increase to 1240000.
6955
6956 2008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6957
6958 * gtkutil.c: Include <config.h> instead of "config.h".
6959
6960 * lisp.h (Foverlay_buffer): Add EXFUN.
6961
6962 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
6963 child process to complete child_setup. Undo 2005-09-21 change.
6964
6965 * s/darwin.h: Mention setsid after vfork.
6966
6967 2008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6968
6969 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
6970 Depend on macgui.h.
6971
6972 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
6973 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
6974
6975 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
6976 and f19.
6977 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
6978
6979 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
6980 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
6981 Remove enumerators.
6982
6983 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
6984 Check if FACE_FROM_ID returns NULL.
6985
6986 2008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
6987
6988 * w32inevt.c (change_frame_size): Remove extern declaration.
6989 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
6990 change_frame_size.
6991
6992 2008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
6993
6994 * getloadavg.c: Revert last change (2008-07-15).
6995
6996 2008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
6997
6998 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
6999 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
7000 from configure.
7001
7002 2008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
7003
7004 * s/sol2.h:
7005 * s/sol2-4.h: Reorganize conditionals.
7006
7007 * ecrt0.c: Remove code depending on m68000, not used anymore.
7008
7009 * fns.c (hash_remove): Make static.
7010 * lisp.h (hash_remove): Don't prototype.
7011
7012 * m/ibmrs6000.h:
7013 * m/ibms390x.h:
7014 * m/macppc.h: Remove boilerplate comments.
7015
7016 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
7017 Solaris, which does not need them.
7018
7019 * m/vax.h: Remove comments about unsupported systems.
7020
7021 * s/darwin.h: Reorganize ifdefs.
7022
7023 2008-07-17 Andreas Schwab <schwab@suse.de>
7024
7025 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
7026
7027 2008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
7028
7029 Use SDATA. Follow coding convention of placing operators at
7030 beginning of next line rather than end of previous line, and placing
7031 spaces around infix operators.
7032
7033 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
7034 in case it was defined already.
7035 USE @GNUSTEP_MAKEFILES@ rather than envvars.
7036 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
7037 ns_default.
7038 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
7039 Lisp_Objects.
7040 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
7041 (ns_defined_color, ns_color_to_lisp): Declare.
7042 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
7043 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
7044 it's accepted even with USE_LISP_UNION_TYPE.
7045 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
7046 (update_frame_tool_bar): Remove apparently obsolete tests for
7047 non-integerness of f->tool_bar_lines.
7048 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
7049 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
7050 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
7051 (nsfont_open): Don't confuse NULL for Qnil.
7052 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
7053 * menu.h (find_and_call_menu_selection):
7054 * menu.c (find_and_call_menu_selection): Use just int for vector size.
7055 (find_and_return_menu_selection): Always return something.
7056 * frame.h: Include dispextern.h for Display_Info.
7057 (display_x_get_resource): Declare.
7058
7059 2008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
7060
7061 * syntax.c: Remove stdio.h include accidentally introduced in
7062 Emacs.app commit.
7063 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
7064 NS_IMPL_COCOA.
7065 * keyboard.c (handle_async_input, input_available_signal): Remove
7066 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
7067
7068 2008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
7069
7070 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
7071 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
7072 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
7073 Use SDATA.
7074
7075 * keymap.c: Remove all NS-specific code.
7076 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
7077 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
7078 where_is_preferred_modifier, return a different value depending on how
7079 preferred is the binding.
7080 (where_is_internal): Adjust accordingly.
7081 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
7082 Adjust to new preferred_sequence_p.
7083 (syms_of_keymap): Declare `where-is-preferred-modifier'.
7084 * keyboard.c (parse_solitary_modifier): Not static any more.
7085 * keyboard.h (parse_solitary_modifier): Declare.
7086
7087 2008-07-16 Andreas Schwab <schwab@suse.de>
7088
7089 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
7090 of easymenu.
7091
7092 2008-07-16 Chong Yidong <cyd@stupidchicken.com>
7093
7094 * xdisp.c (move_it_in_display_line): Account for word wrap, so
7095 that we don't move off the line.
7096
7097 2008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
7098
7099 * keyboard.c (Qsuper): Remove.
7100 (parse_menu_item): Don't call where_is_internal specially for NS.
7101
7102 2008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
7103
7104 * s/gnu-linux.h: Remove boilerplate comments.
7105
7106 * m/alpha.h (__ELF__): Consolidate conditions.
7107
7108 * m/m68k.h (linux): Use GNU_LINUX instead.
7109 Remove boilerplate comments.
7110
7111 * m/intel386.h: Undo refactoring from previous change.
7112 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
7113 too, remove dead code.
7114 (linux): Use GNU_LINUX instead.
7115
7116 2008-07-16 Jason Rumney <jasonr@gnu.org>
7117
7118 * w32gui.h: Repeat 26 June changes lost by last change.
7119
7120 2008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
7121
7122 * systty.h: Remove code for Aix on 386, unsupported platform.
7123
7124 * s/ms-w32.h: Remove boilerplate comments.
7125 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
7126
7127 * s/gnu-linux.h (TERM): Remove support.
7128 (HAVE_SYSVIPC): Remove, unused.
7129 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
7130 for this system.
7131
7132 * process.c: Remove support for IRIS, unused.
7133 Remove support for TERM, not relevant anymore.
7134
7135 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
7136 used with the definition.
7137
7138 * s/aix4-2.h (static): Do not undef.
7139
7140 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
7141 only used on Aix.
7142 (HAVE_SYSVIPC): Remove, unused.
7143
7144 * m/hp800.h (CANNOT_DUMP): Do not undef.
7145
7146 * m/alpha.h: Fix comment.
7147
7148 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
7149 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
7150 used by this configuration.
7151 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
7152 * unexec.c: Remove code depending on HPUX and
7153 USG_SHARED_LIBRARIES, not used with this file. Remove code
7154 depending on IRIS, unused. Remove if 0-ed code.
7155
7156 * s/template.h: Remove comments about static.
7157
7158 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
7159 Remove if 0-ed code.
7160 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
7161 were the same as the default.
7162 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
7163 Remove boilerplate comments.
7164 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
7165 (HAVE_SYSVIPC): Remove, unused.
7166 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
7167
7168 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
7169 Remove boilerplate comments.
7170 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
7171 Remove boilerplate comments.
7172 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
7173 Remove boilerplate comments.
7174 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
7175
7176 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
7177 USG systems which do not use DATA_SEG_BITS.
7178 Refactor code. Remove boilerplate comments.
7179
7180 * m/ibms390.h:
7181 * m/m68k.h:
7182 * s/bsd-common.h:
7183 * s/cygwin.h:
7184 * s/darwin.h:
7185 * s/freebsd.h:
7186 * s/gnu.h:
7187 * s/msdos.h: Remove boilerplate comments.
7188
7189 * m/iris4d.h: Remove boilerplate comments and code for systems that
7190 do not use this file.
7191 (IRIS_4D): Remove, unused.
7192
7193 * m/mips.h: Remove boilerplate comments and code for systems that
7194 do not use this file.
7195 (SIGN_EXTEND_CHAR):
7196 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
7197 * unexmips.c: Remove file, unused.
7198
7199 * editfns.c (Fuser_full_name): Replace the only use of
7200 USER_FULL_NAME with its value.
7201 * config.in: Regenerate.
7202
7203 2008-07-16 David Reitter <david.reitter@gmail.com>
7204
7205 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
7206 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
7207
7208 2008-07-16 Glenn Morris <rgm@gnu.org>
7209
7210 * emacs.c (system-type): Doc fix.
7211
7212 2008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
7213
7214 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
7215 If the cache doesn't work, let's fix it, rather than work around it.
7216
7217 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
7218
7219 * Makefile.in: Correct additions for nsfont.o in last commit.
7220 * nsfont.m: New file (forgot last commit).
7221
7222 2008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
7223
7224 * callproc.c (set_initial_environment): Initialize
7225 Vprocess_environment under CANNOT_DUMP (fixes crash when
7226 batch-compiling for bootstrap).
7227
7228 2008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
7229 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7230
7231 (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
7232 fix crash due to different init order.
7233
7234 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
7235
7236 Changes and additions for NeXTstep windowing system (Cocoa and
7237 GNUstep) support.
7238
7239 * Makefile.in:
7240 * config.in: Support defines and build commands for NS port.
7241 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
7242 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
7243 * dispextern.h: Include nsgui.h and add needed typedefs under NS
7244 windowing.
7245 (struct face): Add synth_ital field.
7246 * dispnew.c: Include nsterm.h when compiling under NS windowing.
7247 (init_display): Initialize Vinitial_window_system to "ns" when so
7248 compiled.
7249 * emacs.c: Include GSConfig.h when compiling under GNUstep.
7250 (display_arg): Use under NS.
7251 (main): Under NS, allocate autorelease pool and handle command line
7252 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
7253 (standard_args): Add NS-specific args.
7254 (shut_down_emacs): Shut down NS terminal if compiled under NS.
7255 * font.c (DEFAULT_ENCODING): New variable.
7256 (font_find_for_lface): Use it.
7257 (syms_of_font): Load syms_of_nsfont under NS.
7258 * font.h: Declare nsfont_driver when compiled under NS.
7259 * fontset.c: When compiling under NS, include nsterm.h.
7260 (fontset_from_font): Autoconstruct fontset under NS.
7261 * frame.c (various): Under NS, include nsterm.h, add Qns window system
7262 symbol, document and use it.
7263 (do_switch_frame): When for_deletion under Cocoa, add
7264 Fraise_frame(Qnil).
7265 (x_set_frame_parameters): Ensure font attribute changes are picked up.
7266 (x_get_arg): Allow "yes" and "no" as boolean values.
7267 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
7268 Qright under Cocoa.
7269 (focus-follows-mouse): Default to 0 under NS.
7270 * frame.h (enum output_method): Add output_ns.
7271 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
7272 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
7273 (FRAME_WINDOW_P): NS-specific definition.
7274 * fringe.c (max_used_fringe_bitmap): Make public.
7275 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
7276 (getloadavg): Use NeXT code under descendant OS's.
7277 * image.c (includes and header section, x_create_bitmap_from_data)
7278 (x_create_bitmap_from_file, free_bitmap_record, image_background)
7279 (image_background_transparent, x_clear_image_1)
7280 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
7281 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
7282 (x_to_xcolors, x_from_xcolors, x_disable_image)
7283 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
7284 other GUIs, including XPM support using code originally written for
7285 Carbon GUI.
7286 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
7287 using NS API.
7288 (image_ascent): Use font metrics macros instead of direct struct field
7289 access.
7290 * keyboard.c (includes): Add nsterm.h when compiling under NS.
7291 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
7292 Also, handle NS as GTK for menu bar purposes.
7293 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
7294 toolkit where they differ.
7295 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
7296 use cachelist, still needed under NS.
7297 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
7298 (struct widget_value): Define it here for menu.c.
7299 * keymap.c (includes): Include modifier internals.
7300 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
7301 NS.
7302 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
7303 support for preferring sequences using certain modifiers, specified by
7304 the FIRSTONLY argument.
7305 * lisp.h (hash_remove): Rename to avoid name clash when compiling
7306 under NS GNUstep implementation.
7307 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
7308 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
7309 * menu.c: Include nsterm.h under NS.
7310 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
7311 (free_menubar_widget_tree_value, update_submenu_strings)
7312 (find_and_call_menu_selection): Treat NS as X and NT.
7313 (find_and_return_menu_selection): New function, used for popup menus.
7314 * nsgui.h:
7315 * nsterm.h:
7316 * nsfns.m:
7317 * nsimage.m:
7318 * nsmenu.m:
7319 * nsselect.m:
7320 * nsterm.m: New files.
7321 * process.c (wait_reading_process_output): Under NS, call ns_select()
7322 instead of plain select().
7323 * syntax.c (char_quoted): Under NS, avoid a crash when called near
7324 beginning of buffer.
7325 * sysselect.h (init_process): Rename when compiling under Cocoa to
7326 avoid name conflict.
7327 * termhooks.h (display_info): Add ns_display_info to union.
7328 * terminal.c (Fterminal_live_p): Add ns to terminal types.
7329 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
7330 COCOA environment.
7331 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
7332 unexec() signature. (Note, this will dump, but the resulting file
7333 crashes; unexosx is used instead; keeping around for reference and
7334 possible aid in getting dump working under GNUstep.)
7335 * w32gui.h (button_type, widget_value): Remove definitions (now in
7336 keyboard.h).
7337 * window.c: Include nsterm.h when compiling under NS.
7338 * xdisp.c (includes): Include nsterm.h when compiling under NS.
7339 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
7340 other GUI windowing systems.
7341 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
7342 GTK.
7343 (x_consider_frame_title): Under NS, set icon type and frame
7344 modified-state indicator; use ns_set_name_as_filename() when using
7345 formatted title.
7346 (update_window_cursor): Make public when compiling under NS.
7347 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
7348 (hourglass_atimer, Vhourglass_delay
7349 * xfaces.c (header section, init_frame_faces, clear_font_table)
7350 (defined_color, unload_color, x_face_list_fonts)
7351 (prepare_face_for_display): Add NS support parallel to other GUIs.
7352 Emulate GCs like other non-X GUIs.
7353 (split_font_name): Don't lowercase font name under NS.
7354 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
7355 under NS.
7356 * s/darwin.h: Add support for compilation under NS.
7357
7358 2008-07-15 Jason Rumney <jasonr@gnu.org>
7359
7360 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
7361 (w32_show_hourglass): Rename from show_hourglass.
7362 (w32_hide_hourglass): Rename from hide_hourglass.
7363 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
7364 (Vhourglass_delay): Declare extern.
7365 (hourglass_started): Remove.
7366
7367 * xdisp.c (Vhourglass_delay): Remove static.
7368 (hourglass_started, start_hourglass, cancel_hourglass):
7369 Don't include these versions on WINDOWSNT.
7370
7371 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
7372
7373 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
7374 variables (formerly in xfns.c).
7375 (show_hourglass, hide_hourglass): New prototypes (same).
7376 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
7377 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
7378 in xfns.c).
7379 (syms_of_xdisp): Declare/initialize display-hourglass,
7380 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
7381 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
7382 formerly in xfns.c.
7383 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
7384 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
7385 (start_hourglass, cancel_hourglass): Remove.
7386 (show_hourglass, hide_hourglass): Remove prototypes and static
7387 modifiers.
7388 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
7389 hourglass_atimer, hourglass_shown_p declaration/initialization.
7390 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
7391 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
7392 (start_hourglass, cancel_hourglass): Remove.
7393 (show_hourglass, hide_hourglass): Remove prototypes and static
7394 modifiers.
7395 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
7396 hourglass_atimer, hourglass_shown_p declaration/initialization.
7397 * w32fns.c (display_hourglass_p, Vhourglass_delay)
7398 (DEFAULT_HOURGLASS_DELAY): Remove.
7399 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
7400 hourglass_shown_p declaration/initialization.
7401
7402 2008-07-14 Jason Rumney <jasonr@gnu.org>
7403
7404 * w32fns.c (w32_get_arg): Remove wrapper function.
7405 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
7406 directly.
7407 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
7408
7409 2008-07-14 Kenichi Handa <handa@m17n.org>
7410
7411 * xfont.c (xfont_open): Add workaround for X's bug.
7412
7413 2008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
7414
7415 * fontset.c: Include <stdio.h> unconditionally.
7416
7417 2008-07-13 Michael Albinus <michael.albinus@gmx.de>
7418
7419 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
7420 for filtering.
7421
7422 2008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
7423
7424 * s/vms.h: Use __GNUC__ instead of _GNUC_.
7425
7426 * m/macppc.h:
7427 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
7428
7429 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
7430 (SPECIAL_EMACS_INT):
7431 * m/ia64.h (SPECIAL_EMACS_INT):
7432 * m/amdx86-64.h (SPECIAL_EMACS_INT):
7433 * s/gnu.h (NLIST_STRUCT):
7434 * s/aix4-2.h (X11R5_INHIBIT_I18N):
7435 * s/gnu-linux.h (LINUX):
7436 * s/msdos.h (HAVE_FACES):
7437 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
7438
7439 * systty.h:
7440 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
7441 anymore.
7442
7443 2008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
7444
7445 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
7446 always defined as int.
7447
7448 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
7449 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
7450 * s/gnu-linux.h (HAVE_WAIT_HEADER):
7451 * s/freebsd.h (HAVE_WAIT_HEADER):
7452 * s/bsd-common.h (HAVE_UNION_WAIT):
7453 * s/aix4-2.h (HAVE_WAIT_HEADER):
7454 * m/mips.h (HAVE_UNION_WAIT):
7455 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
7456 (COFF, static): Do not define, they are undefined later in the file.
7457
7458 * process.c (update_status): Don't use a union.
7459 (status_convert):
7460 (sigchld_handler): Use int instead of WAITTYPE.
7461
7462 2008-07-12 Chong Yidong <cyd@stupidchicken.com>
7463
7464 * indent.c (Fvertical_motion): Restore hscroll before moving to
7465 goal column.
7466
7467 2008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
7468
7469 * lisp.h: Remove left over code.
7470
7471 2008-07-11 Andreas Schwab <schwab@suse.de>
7472
7473 * lisp.h: Fix logic in last change.
7474
7475 * menu.h: New file.
7476 * menu.c: Include it.
7477 * xmenu.c: Likewise.
7478 * Makefile.in: Update dependencies.
7479
7480 2008-07-11 Kenichi Handa <handa@m17n.org>
7481
7482 * fontset.c (fontset_from_font): Cancel the previous change.
7483
7484 2008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
7485
7486 * lisp.h:
7487 * w32heap.c:
7488 * emacs.c:
7489 * alloc.c: Replace all references of NO_UNION_TYPE with
7490 USE_LISP_UNION_TYPE.
7491
7492 * m/xtensa.h (NO_UNION_TYPE):
7493 * m/vax.h (NO_UNION_TYPE):
7494 * m/template.h (NO_UNION_TYPE):
7495 * m/sparc.h (NO_UNION_TYPE):
7496 * m/mips.h (NO_UNION_TYPE):
7497 * m/macppc.h (NO_UNION_TYPE):
7498 * m/m68k.h (NO_UNION_TYPE):
7499 * m/iris4d.h (NO_UNION_TYPE):
7500 * m/intel386.h (NO_UNION_TYPE):
7501 * m/ibms390x.h (NO_UNION_TYPE):
7502 * m/ibms390.h (NO_UNION_TYPE):
7503 * m/ibmrs6000.h (NO_UNION_TYPE):
7504 * m/ia64.h (NO_UNION_TYPE):
7505 * m/hp800.h (NO_UNION_TYPE):
7506 * m/arm.h (NO_UNION_TYPE):
7507 * m/amdx86-64.h (NO_UNION_TYPE):
7508 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
7509 defining it the same.
7510
7511 2008-07-10 Chong Yidong <cyd@stupidchicken.com>
7512
7513 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
7514
7515 2008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
7516
7517 * fileio.c:
7518 * sysdep.c
7519 * systty.h:
7520 * m/ibmrs6000.h:
7521 * m/iris4d.h:
7522 * s/aix4-2.h:
7523 * s/freebsd.h:
7524 * s/gnu-linux.h:
7525 * s/hpux10-20.h:
7526 * s/hpux11.h:
7527 * s/netbsd.h:
7528 * s/sol2-3.h:
7529 * s/sol2-4.h:
7530 * s/sol2.h:
7531 * s/usg5-4.h:
7532 * s/vms.h: Remove references to unused variables.
7533
7534 2008-07-10 Andreas Schwab <schwab@suse.de>
7535
7536 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
7537 pattern before matching the generic family.
7538
7539 2008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
7540
7541 * unexec.c:
7542 * s/vms.h:
7543 * s/usg5-4-2.h:
7544 * s/sol2-5.h:
7545 * s/freebsd.h:
7546 * s/darwin.h: Remove dead code.
7547
7548 * m/template.h:
7549 * m/sparc.h:
7550 * m/mips.h:
7551 * m/m68k.h:
7552 * m/iris4d.h:
7553 * m/intel386.h:
7554 * m/ibms390x.h:
7555 * m/ibms390.h:
7556 * m/ia64.h:
7557 * m/hp800.h:
7558 * m/arm.h:
7559 * m/amdx86-64.h: Remove dead code and references to unused
7560 and compiler defined symbols.
7561
7562 * unexmips.c:
7563 * unexelf.c: Remove references to desupported systems.
7564
7565 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
7566
7567 * m/powermac.h: Remove boilerplate comments.
7568 (NO_REMAP): Remove unused definition.
7569
7570 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
7571 define them.
7572
7573 2008-07-10 Kenichi Handa <handa@m17n.org>
7574
7575 * xfont.c (xfont_open): Log the reason of failure.
7576
7577 2008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
7578
7579 * fontset.c (fontset_get_font_group):
7580 * font.c (font_check_otf): Specify argument types.
7581
7582 2008-07-09 Kenichi Handa <handa@m17n.org>
7583
7584 * coding.c (detect_coding_utf_8): Set detect_info->found only when
7585 non-ASCII char is found.
7586
7587 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
7588 (reorder_font_vector): Change the arg preferred_family to font.
7589 Prefer the spec matching with font.
7590 (fontset_get_font_group): New function.
7591 (fontset_find_font): Change the format of an element of a realized
7592 fontset. Use fontset_get_font_group.
7593 (fontset_font): Try the current fontset, the default fontset, the
7594 fallbacks of the current fontset, and the fallbacks of the default
7595 fontset in this order.
7596 (face_for_char): Delete the shortcut to use the current font.
7597 (fontset_from_font): Don't set fonts for Latin in the fontset.
7598
7599 * font.h (font_make_object, font_match_p): Adjust prototypes.
7600
7601 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
7602
7603 * font.c (font_make_object): New arg entity and pixelsize.
7604 (font_check_otf_features, font_check_otf): New functions.
7605 (font_match_p): Check :lang, :script, and :otf properties.
7606
7607 * xfont.c (xfont_open): Adjust it for the change of
7608 font_make_object.
7609 (xfont_text_extents): Fix initial setting of metrics.
7610
7611 * ftfont.c (struct ftfont_info): New member index, delete member
7612 fc_charset_idx. Make the member order compatible with struct
7613 xftfont_info.
7614 (fc_charset_table): Change charset names to registry names.
7615 (ftfont_pattern_entity): Delete the args registry and
7616 fc_charset_idx. Change the value of :font-entity property
7617 to (FONTNAME . INDEX). Always set :registry property to
7618 `iso10646-1'.
7619 (struct ftfont_cache_data): New struct.
7620 (ftfont_lookup_cache): New arg for_face.
7621 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
7622 (ftfont_driver): Set the member otf_capability.
7623 (ftfont_get_charset): Adjust it for the change of
7624 fc_charset_table.
7625 (OTF_TAG_SYM): New macro.
7626 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
7627 for the change of fc_charset_table.
7628 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
7629 ftfont_pattern_entity. Add FC_INDEX to objset.
7630 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
7631 and ftfont_pattern_entity.
7632 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
7633 font_make_object, struct ftfont_info.
7634 (ftfont_has_char): Use ftfont_get_fc_charset.
7635 (ftfont_otf_features, ftfont_otf_capability): New functions.
7636 (ftfont_shape): Use ftfont_get_otf.
7637 (ftfont_text_extents): Fix initial setting of metrics.
7638
7639 * xftfont.c (struct xftfont_info): New member ft_size. Make the
7640 member order compatible with struct ftfont_info.
7641 (xftfont_open): Add FC_CHARSET to the pattern. Set
7642 xftfont_info->ft_size. Don't unlock the face. Check BDF
7643 properties if appropriate.
7644 (xftfont_close): Unlock the face.
7645 (xftfont_anchor_point, xftfont_shape): Deleted.
7646 (syms_of_xftfont): Don't set members anchor_point and shape of
7647 xftfont_driver.
7648
7649 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
7650 font_make_object.
7651
7652 * w32font.c (w32font_open): Adjust it for the change of
7653 font_make_object.
7654 (w32font_open_internal): Don't set properties of font_object here.
7655
7656 2008-07-08 Chong Yidong <cyd@stupidchicken.com>
7657
7658 * macfns.c (x_create_tip_frame):
7659 * w32fns.c (x_create_tip_frame):
7660 * xfns.c (x_create_tip_frame): Pass parameter argument to
7661 face-set-after-frame-default.
7662
7663 * xfaces.c (Finternal_merge_in_global_face): Save merged
7664 attributes for the default face back into the face vector.
7665
7666 2008-07-08 Andreas Schwab <schwab@suse.de>
7667
7668 * fontset.h: Declare fontset_from_font. Don't declare
7669 new_fontset_from_font and fontset_from_font_name.
7670 * xterm.c: Include "fontset.h".
7671 * Makefile.in (xterm.o): Update dependencies.
7672
7673 2008-07-08 Glenn Morris <rgm@gnu.org>
7674
7675 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
7676 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
7677
7678 2008-07-07 Chong Yidong <cyd@stupidchicken.com>
7679
7680 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
7681 (x_set_frame_parameters): Don't bind it.
7682
7683 2008-07-07 Juanma Barranquero <lekktu@gmail.com>
7684
7685 * w32fns.c (map_w32_filename): Declare extern.
7686
7687 2008-07-07 Jason Rumney <jasonr@gnu.org>
7688
7689 * w32term.c (WS_EX_LAYERED): Define if not already.
7690
7691 2008-07-06 Chong Yidong <cyd@stupidchicken.com>
7692
7693 * xfaces.c (set_font_frame_param): Don't try to set the font
7694 parameter if it is still unspecified in the lface.
7695
7696 2008-07-05 Chong Yidong <cyd@stupidchicken.com>
7697
7698 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
7699 face if it didn't already exist.
7700
7701 * xdisp.c (try_window_id): Give up if word-wrapping is on.
7702
7703 2008-07-05 Andreas Schwab <schwab@suse.de>
7704
7705 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
7706
7707 2008-07-05 Chong Yidong <cyd@stupidchicken.com>
7708
7709 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
7710 word-wrapping.
7711 (IT_DISPLAYING_WHITESPACE): New macro.
7712 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
7713 when word-wrapping. Simplify word-wrapping logic. Use correct
7714 pixel positions when saving copies of the iterator.
7715 (display_line): Use proper wrap point if the last character on a
7716 line was preceded by whitespace.
7717
7718 2008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
7719
7720 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
7721
7722 2008-07-04 Kenichi Handa <handa@m17n.org>
7723
7724 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
7725
7726 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
7727
7728 2008-07-02 Jason Rumney <jasonr@gnu.org>
7729
7730 * xfns.c (syms_of_xfns): Only define x-select-font when both
7731 HAVE_FREETYPE and USE_GTK.
7732
7733 * xdisp.c (next_element_from_display_vector): Move assignment out
7734 of if statement.
7735
7736 2008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
7737
7738 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
7739
7740 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
7741 (syms_of_fileio): Initialize and export them.
7742 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
7743
7744 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
7745 (Fsystem_move_file_to_trash): New function.
7746 (syms_of_w32fns): Export it to lisp.
7747
7748 2008-07-01 Jason Rumney <jasonr@gnu.org>
7749
7750 * w32font.c (w32font_text_extents): Don't count overhang as part
7751 of width.
7752
7753 2008-06-30 Miles Bader <miles@gnu.org>
7754
7755 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
7756 Add `avoid_cursor_p' field.
7757
7758 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
7759 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
7760 (append_glyph, append_composite_glyph, produce_image_glyph)
7761 (append_stretch_glyph): Initialize avoid_cursor_p.
7762 (get_it_property): Rename from `get_line_height_property'.
7763 (x_produce_glyphs): Use get_it_property.
7764 (handle_line_prefix, push_display_prop): New functions.
7765 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
7766 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
7767 New variables.
7768 (syms_of_xdisp): Initialize them.
7769
7770 2008-06-30 Kenichi Handa <handa@m17n.org>
7771
7772 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
7773 XftDefaultSubstitute (they are called in XftFontMatch).
7774 (xftfont_open): Fix args to ftfont_font_format.
7775
7776 * ftfont.c (fc_charset_table): New member lang.
7777 (ftfont_resolve_generic_family): New arg pattern.
7778 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
7779 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
7780 (ftfont_open): Fix args to ftfont_font_format.
7781 (ftfont_font_format): New arg filename.
7782
7783 2008-06-30 Chong Yidong <cyd@stupidchicken.com>
7784
7785 * xfaces.c (Finternal_merge_in_global_face): If default face was
7786 modified, realize it again. Update the font face attribute.
7787
7788 2008-06-29 Jason Rumney <jasonr@gnu.org>
7789
7790 * w32term.c (x_set_frame_alpha): Fix logic.
7791
7792 2008-06-29 Kenichi Handa <handa@m17n.org>
7793
7794 * fontset.c (Finternal_char_font): Return font-object instead of
7795 font-name.
7796
7797 * composite.c (get_composition_id): Fix the width calculation for TAB.
7798
7799 2008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
7800
7801 * indent.c (Fvertical_motion): Properly handle float column arg.
7802
7803 2008-06-28 Jason Rumney <jasonr@gnu.org>
7804
7805 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
7806 (pfnSetLayeredWindowAttributes): New function pointer.
7807 (w32_initialize): Initialize it when supported.
7808 (x_set_frame_alpha): New function.
7809
7810 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
7811 (w32_frame_parm_handlers): Set alpha handler.
7812
7813 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
7814
7815 2008-06-27 Jason Rumney <jasonr@gnu.org>
7816
7817 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
7818 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
7819 (w32_to_x_charset, x_to_w32_charset)
7820 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
7821 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
7822 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
7823 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
7824 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
7825 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
7826 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
7827 (Qw32_charset_unicode): Remove.
7828 (syms_of_w32fns): Update for above changes.
7829
7830 * w32font.c (w32_to_x_charset, x_to_w32_charset)
7831 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
7832 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
7833 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
7834 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
7835 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
7836 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
7837 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
7838 (syms_of_w32font): Update for above changes.
7839
7840 2008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
7841
7842 * s/usg5-4.h: Fix previous change: keep the correct branch of a
7843 removed #if.
7844 (USG_SHARED_LIBRARIES): Remove duplicate definition.
7845
7846 2008-06-26 Juanma Barranquero <lekktu@gmail.com>
7847 Eli Zaretskii <eliz@gnu.org>
7848
7849 * makefile.w32-in (LOCAL_FLAGS):
7850 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
7851
7852 * sysdep.c (_spawnlp, _getpid):
7853 Declare with explicit _cdecl instead of _CRTAPI1.
7854
7855 * editfns.c (Fget_internal_run_time):
7856 Check for WINDOWSNT with #ifdef, not #if.
7857
7858 2008-06-26 Jason Rumney <jasonr@gnu.org>
7859
7860 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
7861
7862 * w32term.c (x_draw_glyph_string_foreground)
7863 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
7864 Use FONT_HANDLE macro.
7865 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
7866
7867 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
7868 (uniscribe_encode_char): Use FONT_HANDLE macro.
7869
7870 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
7871 (w32font_text_extents): Use precast w32_font.
7872 (w32font_close): Free cached metrics.
7873 (w32font_open_internal): Allocate space for name on stack.
7874
7875 2008-06-26 Chong Yidong <cyd@stupidchicken.com>
7876
7877 * xdisp.c (extend_face_to_end_of_line): Fix last change.
7878
7879 2008-06-26 Jason Rumney <jasonr@gnu.org>
7880
7881 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
7882 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
7883
7884 2008-06-26 Juanma Barranquero <lekktu@gmail.com>
7885
7886 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
7887
7888 2008-06-26 Jason Rumney <jasonr@gnu.org>
7889
7890 * w32bdf.c, w32bdf.h: Remove obsolete files.
7891
7892 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
7893
7894 * w32gui.h: Don't include w32bdf.h.
7895 (XCharStruct, enum w32_char_font_type, W32FontStruct):
7896 Remove obsolete font support.
7897
7898 * w32font.h (struct w32font_info): Remove compat_w32_font.
7899 Add hfont member.
7900 (FONT_COMPAT): Remove obsolete macro.
7901
7902 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
7903 (w32font_encode_char, w32font_text_extents): Use new hfont member.
7904 (w32font_open_internal): Remove compat code. Set new hfont member.
7905 (Fx_select_font): Use new hfont member.
7906
7907 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
7908 (uniscribe_encode_char): Use new hfont member.
7909
7910 * w32term.c (x_draw_glyph_string_foreground)
7911 (x_draw_composite_glyph_string_foreground): Use new hfont member.
7912 (x_draw_glyph_string): Use metrics in w32font_info.
7913
7914 2008-06-26 Kenichi Handa <handa@m17n.org>
7915
7916 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
7917
7918 2008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
7919
7920 * unexnext.c:
7921 * m/ews4800.h:
7922 * m/hp9000s300.h:
7923 * m/ibm370aix.h:
7924 * m/mips-siemens.h:
7925 * m/ncr386.h:
7926 * m/next.h:
7927 * m/pmax.h:
7928 * m/powerpcle.h:
7929 * m/tandem-s2.h:
7930 * s/386bsd.h:
7931 * s/bsd386.h:
7932 * s/bsd4-1.h:
7933 * s/bsd4-2.h:
7934 * s/bsdos2-1.h:
7935 * s/bsdos2.h:
7936 * s/bsdos3.h:
7937 * s/bsdos4.h:
7938 * s/nextstep.h:
7939 * s/ultrix4-3.h:
7940 * s/usg5-0.h:
7941 * s/usg5-2-2.h:
7942 * s/usg5-2.h:
7943 * s/usg5-4-3.h:
7944 * s/ux4800.h:
7945 * s/uxpds.h:
7946 * s/uxpv.h: Remove support for obsolete systems.
7947 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
7948 Remove, insert contents in s/hpux10-20.h.
7949 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
7950 Remove, insert contents in s/aix4-2.h.
7951 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
7952 * s/bsd4-3.h: Rename to ...
7953 * s/bsd-common.h: ... this.
7954 * data.c:
7955 * doc.c:
7956 * ecrt0.c:
7957 * emacs.c:
7958 * fileio.c:
7959 * floatfns.c:
7960 * keyboard.c:
7961 * mem-limits.h:
7962 * print.c:
7963 * process.c:
7964 * sysdep.c:
7965 * syssignal.h:
7966 * systty.h:
7967 * syswait.h:
7968 * term.c:
7969 * unexec.c:
7970 * unexelf.c:
7971 * unexhp9k800.c:
7972 * m/hp800.h:
7973 * m/ibmrs6000.h:
7974 * m/mips.h:
7975 * m/vax.h:
7976 * s/darwin.h:
7977 * s/freebsd.h:
7978 * s/gnu.h:
7979 * s/ms-w32.h:
7980 * s/msdos.h:
7981 * s/netbsd.h:
7982 * s/template.h: Remove references to obsolete variables.
7983
7984 * Makefile.in: Add dependencies for all unexec files.
7985 (admindir): Remove unused variable.
7986 (UNEXEC_SRC): Remove references.
7987
7988 2008-06-25 Chong Yidong <cyd@stupidchicken.com>
7989
7990 * xfns.c (x_default_font_parameter): If Xft is available, first
7991 try Monospace-12 for the default font.
7992
7993 2008-06-25 Jason Rumney <jasonr@gnu.org>
7994
7995 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
7996
7997 2008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
7998
7999 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
8000
8001 * buffer.c (syms_of_buffer): Remove default-word-wrap.
8002
8003 2008-06-25 Juanma Barranquero <lekktu@gmail.com>
8004
8005 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
8006 <scroll-conservatively>: Fix typo in docstring.
8007
8008 * xselect.c (Fx_send_client_event): Doc fix.
8009
8010 2008-06-25 Kenichi Handa <handa@m17n.org>
8011
8012 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
8013
8014 * font.c (font_parse_fcname): Remove unused variables.
8015 (font_sort_entites): Delete the arg SPEC. Caller changed.
8016 Fix for the case of ! best_only.
8017 (font_delete_unmatched): Check DPI and AVGWIDTH too.
8018
8019 * lisp.h (Fstring_to_unibyte): EXFUN it.
8020
8021 * character.h (str_to_unibyte): Extern it.
8022
8023 * character.c (str_to_unibyte): New function.
8024
8025 * fns.c (Fstring_to_unibyte): New function.
8026 (syms_of_fns): Defsubr it.
8027
8028 2008-06-24 Kenichi Handa <handa@m17n.org>
8029
8030 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
8031 DPI too.
8032 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
8033
8034 2008-06-24 Andreas Schwab <schwab@suse.de>
8035
8036 * Makefile.in (${lispsource}loaddefs.el): Rename from
8037 ../lisp/loaddefs.el.
8038 (bootstrap-clean): Do what distclean does but don't remove
8039 Makefile.
8040 (distclean): Depend on bootstrap-clean and remove Makefile.
8041
8042 2008-06-24 Chong Yidong <cyd@stupidchicken.com>
8043
8044 * buffer.h (struct buffer): New member word_wrap.
8045
8046 * buffer.c (syms_of_buffer): New variables default-word-wrap and
8047 word-wrap.
8048 (init_buffer_once): Initialize them.
8049
8050 * dispextern.h (struct it): Replace bool truncate_lines_p with a
8051 line_wrap enum possessing three possible values.
8052
8053 * termopts.h: Replace truncate_partial_width_windows with
8054 Vtruncate_partial_width_windows.
8055
8056 * dispnew.c (direct_output_for_insert): Avoid direct output when
8057 inserting a space with word wrap on.
8058
8059 * indent.c (compute_motion): Obey integer values of
8060 truncate-partial-width-windows.
8061
8062 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
8063 replacing truncate_partial_width_windows.
8064 (init_iterator): If Vtruncate_partial_width_windows is an integer,
8065 truncate only if the window width is below that integer.
8066 (start_display, resize_mini_window, produce_stretch_glyph)
8067 (display_string, move_it_in_display_line_to): Use line_wrap.
8068 (back_to_previous_visible_line_start, reseat_1): Reset
8069 string_from_display_prop_p.
8070 (display_line): Extend default face to end of line when wrapping.
8071
8072 2008-06-24 Kim F. Storm <storm@cua.dk>
8073
8074 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
8075 to wrap continued lines at word boundaries.
8076
8077 2008-06-24 Jason Rumney <jasonr@gnu.org>
8078
8079 * font.c (Ffont_face_attributes): Multiply pixel size before point
8080 conversion to avoid multiplying rounding error.
8081
8082 2008-06-23 Jason Rumney <jasonr@gnu.org>
8083
8084 * w32term.c (x_draw_glyph_string_background)
8085 (x_draw_glyph_string): Remove old bdf font code.
8086
8087 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
8088
8089 2008-06-22 Kenichi Handa <handa@m17n.org>
8090
8091 * font.c (font_find_for_lface): Try the adstyle specified in
8092 the property of LFACE_FONT of LFACE (if any).
8093
8094 2008-06-21 Seiji Zenitani <zenitani@mac.com>
8095 Ryo Yoshitake <ryo@shiftmode.net>
8096
8097 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
8098
8099 2008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
8100
8101 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
8102 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
8103 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
8104 (witness-emacs): Remove.
8105 (lisp, shortlisp): Move loaddefs.el earlier.
8106 (mostlyclean): Forget about witness-emacs.
8107
8108 2008-06-22 Glenn Morris <rgm@gnu.org>
8109
8110 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
8111 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
8112
8113 2008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
8114
8115 * Makefile.in (PRECOMP): Remove.
8116 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
8117 (witness-emacs): Run `compile-first'.
8118 (.el.elc): Use the new compile-onefile target.
8119
8120 2008-06-21 Kenichi Handa <handa@m17n.org>
8121
8122 * xftfont.c (xftfont_open): Handle QCembolden only when
8123 FC_EMBOLDEN is defined.
8124
8125 2008-06-21 Andreas Schwab <schwab@suse.de>
8126
8127 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
8128 (.el.elc): Likewise.
8129
8130 2008-06-21 Miles Bader <miles@gnu.org>
8131
8132 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
8133 build dir, not the lisp source dir.
8134
8135 2008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
8136
8137 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
8138 (bootstrapclean): Remove.
8139 (.el.elc): New rule.
8140 (PRECOMP): New var.
8141 (../lisp/subdirs.el): Remove.
8142 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
8143 (witness-emacs): New target.
8144 (mostlyclean): Remove witness-emacs as well.
8145 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
8146 Add witness-emacs dependency.
8147
8148 2008-06-20 Chong Yidong <cyd@stupidchicken.com>
8149
8150 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
8151 defined by the font.
8152
8153 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
8154
8155 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
8156 (bootstrap-clean): New target that keeps TAGS around.
8157 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
8158 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
8159
8160 2008-06-20 Jason Rumney <jasonr@gnu.org>
8161
8162 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
8163 Remove obsolete font code.
8164
8165 * w32font.c (font_matches_spec): Use csb bitfield from font signature
8166 to determine language support.
8167
8168 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
8169
8170 * sysdep.c (cfsetspeed): New fun extracted from the code.
8171 (cfmakeraw): Move before first use.
8172
8173 2008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
8174
8175 * sysdep.c (cfmakeraw): Provide fallback implementation.
8176 (serial_configure): Provide fallback implementation of cfsetspeed.
8177
8178 2008-06-20 Kenichi Handa <handa@m17n.org>
8179
8180 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
8181 the pattern.
8182
8183 * fontset.c (fontset_from_font): Copy font_spec before changing
8184 the elements.
8185
8186 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
8187
8188 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
8189
8190 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
8191 for explicit `font' parameters.
8192
8193 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
8194
8195 2008-06-19 Kenichi Handa <handa@m17n.org>
8196
8197 * frame.c: Include <ctype.h>.
8198 (x_set_font_backend): Allow spacing characters in the X resource
8199 for FontBackend.
8200
8201 2008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
8202
8203 * w32fns.c, xfns.c (Qfont_param): New var.
8204 (syms_of_w32fns): Initialize it.
8205 (x_default_font_parameter): Record explicit `font' into
8206 `font-parameter'.
8207
8208 2008-06-18 Kenichi Handa <handa@m17n.org>
8209
8210 * font.c (font_parse_xlfd): Fix previous change.
8211 (font_parse_fcname): Don't use :fc-unknown-spec.
8212 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
8213 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
8214 (font_add_log): Prepend the driver name to the resulting fonts.
8215
8216 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
8217 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
8218 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
8219
8220 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
8221 (QCembolden): New variables.
8222 (syms_of_xftfont): DEFSYM them.
8223 (xftfont_open): Call XftFontMatch. Don't trust the result of
8224 XftTextExtents8 if the pixel_size is less than 5.
8225
8226 2008-06-18 Andreas Schwab <schwab@suse.de>
8227
8228 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
8229 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
8230
8231 2008-06-18 Jason Rumney <jasonr@gnu.org>
8232
8233 * w32font.c (w32font_list, w32font_match): Add logging.
8234
8235 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
8236
8237 2008-06-17 Chong Yidong <cyd@stupidchicken.com>
8238
8239 * font.c (font_parse_fcname): Store divider characters for
8240 unknown-spec list. For known key symbols, intern using correct
8241 symbol name.
8242
8243 2008-06-17 Kenichi Handa <handa@m17n.org>
8244
8245 * xfaces.c (realize_default_face): If the frame is not on window
8246 system, set the fontset of face to nil.
8247
8248 2008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
8249
8250 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
8251
8252 2008-06-16 Juanma Barranquero <lekktu@gmail.com>
8253
8254 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
8255 (build_font_name_from_vector): Delete externs.
8256
8257 * xfaces.c (struct font_name): Don't declare.
8258
8259 2008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
8260
8261 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
8262
8263 2008-06-16 Chong Yidong <cyd@stupidchicken.com>
8264
8265 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
8266
8267 2008-06-16 Juanma Barranquero <lekktu@gmail.com>
8268
8269 * font.c (Ffont_spec): Fix usage in docstring.
8270 (Ffont_face_attributes): Doc fix.
8271
8272 2008-06-16 Andreas Schwab <schwab@suse.de>
8273
8274 * font.c (Ffont_face_attributes): Fix definition.
8275
8276 2008-06-16 Jason Rumney <jasonr@gnu.org>
8277
8278 * font.h (font_style_symbolic_from_value): Remove.
8279
8280 * font.c (font_style_symbolic_from_value): Remove.
8281 (font_style_symbolic): Revert to pre 2008-06-13 version.
8282
8283 * w32font.c (w32_to_fc_weight): New function.
8284 (w32font_full_name, logfont_to_fcname): Use it.
8285
8286 2008-06-16 Kenichi Handa <handa@m17n.org>
8287
8288 * font.c (font_check_object): Delete it.
8289 (font_clear_cache): Check if a font-object is alive.
8290 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
8291 font-object to nil.
8292 (font_close_object): Don't check FONT_CLOSE_OBJECT.
8293 (font_at): Don't call font_check_object.
8294 (Ffont_get): Return a symbol for :weight, :slant, and :width.
8295
8296 2008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
8297
8298 * puresize.h (BASE_PURESIZE): Increase to 1230000.
8299
8300 2008-06-16 Chong Yidong <cyd@stupidchicken.com>
8301
8302 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
8303
8304 2008-06-15 Chong Yidong <cyd@stupidchicken.com>
8305
8306 * font.c (font_parse_fcname): Only one decimal point.
8307 (font_unparse_fcname): Handle data in family and foundry indices
8308 as symbols, not strings.
8309 (font_unparse_gtkname, Ffont_face_attributes): New functions.
8310
8311 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
8312
8313 * font.h (font_unparse_gtkname): Add prototype.
8314
8315 2008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
8316
8317 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
8318
8319 2008-06-15 Andreas Schwab <schwab@suse.de>
8320
8321 * font.c (font_update_drivers): Fix crash when no drivers match.
8322
8323 2008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
8324
8325 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
8326 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
8327
8328 2008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
8329
8330 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
8331
8332 2008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
8333
8334 * process.c (Fserial_process_configure, Fprocess_send_eof):
8335 Use EQ to compare Lisp_Objects.
8336
8337 2008-06-13 Jason Rumney <jasonr@gnu.org>
8338
8339 * w32fns.c (Fw32_select_font): Remove old font API function.
8340
8341 * w32font.c (logfont_to_fcname): New function.
8342 (Fx_select_font): New font dialog function compatible with
8343 GTK/fontconfig version.
8344
8345 * font.c (font_style_symbolic_from_value): New function.
8346 (font_style_symbolic): Use it.
8347
8348 * font.h (font_style_symbolic_from_value): Declare new function.
8349
8350 2008-06-13 Juanma Barranquero <lekktu@gmail.com>
8351
8352 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
8353 <font-width-table>: Fix typos in docstrings.
8354
8355 2008-06-13 Daniel Engeler <engeler@gmail.com>
8356
8357 These changes add serial port access.
8358 * process.c: Add HAVE_SERIAL.
8359 (Fdelete_process, Fprocess_status, Fset_process_buffer)
8360 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
8361 (list_processes_1, select_wrapper, Fstop_process)
8362 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
8363 (status_notify): Modify to handle serial processes.
8364 [HAVE_SERIAL] (Fserial_process_configure)
8365 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
8366 New functions.
8367 * process.h (struct Lisp_Process): Add `type'.
8368 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
8369 New functions.
8370 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
8371 serial ports.
8372 (serial_open, serial_configure): New functions.
8373 * w32.h: Add FILE_SERIAL.
8374 (struct _child_process): Add ovl_read, ovl_write.
8375
8376 2008-06-13 Kenichi Handa <handa@m17n.org>
8377
8378 * dispextern.h (enum lface_attribute_index): New member
8379 LFACE_FOUNDRY_INDEX.
8380
8381 * font.c (font_score): Delete arg alternate_families. Check only
8382 weight, slant, width, and size. Ignore the difference of alias
8383 style symbols.
8384 (font_sort_entites): Adjust for the above change. Reflect the
8385 order of font-driver to scores.
8386 (font_list_entities): Don't check alternate_familes here.
8387 (font_clear_prop): Handle foundry.
8388 (font_update_lface): Don't parse "foundry-family" form here.
8389 Handle FONT_FOUNDRY_INDEX.
8390 (font_find_for_lface): Likewise. Handle alternate families here.
8391 If registry is nil, try iso8859-1 and ascii-0.
8392 (font_open_for_lface): Pay attention to size in ENTITY.
8393 (font_open_by_name): Simplify by calling font_load_for_lface.
8394 (free_font_driver_list): Delete it.
8395 (font_update_drivers): Preserve the order of backends.
8396 (syms_of_font): Setting of sort_shift_bits adjusted for the change
8397 of font_score and font_sort_entites.
8398 (font_update_sort_order): Likewise.
8399
8400 * xfaces.c (LFACE_FOUNDRY): New macro.
8401 (check_lface_attrs): Check foundry.
8402 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
8403 (merge_face_vectors): Check foundry.
8404 (merge_face_ref): Likewise.
8405 (Finternal_set_lisp_face_attribute): Likewise.
8406 (x_update_menu_appearance): Likewise.
8407 (Finternal_get_lisp_face_attribute): Likewise.
8408 (lface_hash): Likewise.
8409 (lface_same_font_attributes_p): Likewise.
8410 (x_supports_face_attributes_p): Likewise.
8411 (tty_supports_face_attributes_p): Likewise.
8412 (Finternal_set_alternative_font_family_alist): Intern strings.
8413 (Finternal_set_alternative_font_registry_alist): Downcase strings.
8414 (realize_default_face): Set LFACE_FOUNDRY (lface).
8415
8416 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
8417 font-driver at first.
8418
8419 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
8420
8421 2008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
8422
8423 * lread.c (Fload): Use xfree, not free on saved_doc_string.
8424
8425 2008-06-12 Jim Meyering <meyering@redhat.com>
8426
8427 Make unexec_free handle NULL the same way free does.
8428 * unexmacosx.c (unexec_free): Ignore a NULL argument.
8429
8430 2008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
8431
8432 * character.h (CHAR_TO_BYTE_SAFE): New macro.
8433 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
8434 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
8435 (WEAK_ALIAS): Simplify.
8436 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
8437 when searching a unibyte buffer.
8438
8439 2008-06-12 Chong Yidong <cyd@stupidchicken.com>
8440
8441 * xfns.c (Fx_select_font): Rename from x-font-dialog.
8442
8443 2008-06-12 Juanma Barranquero <lekktu@gmail.com>
8444
8445 * w32font.c: Include ctype.h.
8446
8447 2008-06-11 Jason Rumney <jasonr@gnu.org>
8448
8449 * w32font.c (w32font_encode_char): Detect missing glyphs that are
8450 misreported as space.
8451 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
8452 as aliases for registry iso10646-1.
8453
8454 2008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
8455
8456 * buffer.c (clone_per_buffer_values): Skip `name'.
8457
8458 2008-06-11 Chong Yidong <cyd@stupidchicken.com>
8459
8460 * font.c (font_parse_fcname): Fix last change; accept decimal
8461 points in font size.
8462
8463 2008-06-10 Jason Rumney <jasonr@gnu.org>
8464
8465 * w32uniscribe.c (add_opentype_font_name_to_list):
8466 Skip non unicode fonts.
8467
8468 2008-06-10 Chong Yidong <cyd@stupidchicken.com>
8469
8470 * xfns.c (Fx_font_dialog): New function.
8471
8472 * gtkutil.c (xg_dialog_response_cb): Rename from
8473 xg_file_response_callback.
8474 (pop_down_dialog): Rename from pop_down_file_dialog.
8475 (xg_get_file_name): Callers changed.
8476 (xg_get_font_name): New function.
8477
8478 * gtkutil.h (xg_get_font_name): Insert prototype.
8479
8480 2008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
8481
8482 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
8483 x_underline_minimum_display_offset.
8484 (syms_of_xdisp): Declare it here rather than in xterm.c.
8485 * dispextern.h (underline_minimum_offset): Declare it.
8486 * w32term.c (x_draw_glyph_string): Use it.
8487 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
8488 (syms_of_xterm): Don't declare it any more.
8489 (x_draw_glyph_string): Adjust to the new name.
8490
8491 2008-06-10 David De La Harpe Golden <david@harpegolden.net> (tiny change)
8492
8493 * xterm.c (x_underline_minimum_display_offset): New var.
8494 (x_draw_glyph_string): Use it.
8495 (syms_of_xterm): Declare it.
8496
8497 2008-06-10 Chong Yidong <cyd@stupidchicken.com>
8498
8499 * font.c (font_parse_fcname): Accept GTK-style font names too.
8500
8501 2008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
8502
8503 * dired.c (file_name_completion): Don't return t if the match is exact
8504 but with different capitalization.
8505 * minibuf.c (Ftry_completion): Simplify.
8506
8507 * window.c (Vwindow_point_insertion_type): New var.
8508 (set_window_buffer): Use it.
8509 (syms_of_window): Init and export it to Lisp.
8510
8511 2008-06-10 Kenichi Handa <handa@m17n.org>
8512
8513 * font.h (font_intern_prop): Prototype adjusted.
8514
8515 * font.c (font_intern_prop): New arg force_symbol.
8516 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
8517 Adjust for the change of font_intern_prop.
8518
8519 * ftfont.c (ftfont_pattern_entity):
8520 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
8521 (w32_registry):
8522 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
8523 the change of font_intern_prop.
8524
8525 2008-06-09 Juanma Barranquero <lekktu@gmail.com>
8526
8527 * w32menu.c (digest_single_submenu): Declare extern.
8528
8529 2008-06-09 Jason Rumney <jasonr@gnu.org>
8530
8531 * w32term.c (x_make_frame_visible): Use alternate restore flags.
8532
8533 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
8534 (parse_single_submenu): Remove.
8535 (digest_single_submenu): Remove.
8536 (syms_of_w32menu): Don't initialise variables that have moved
8537 to menu.c.
8538 (set_frame_menubar): Sync with version in xmenu.c.
8539 (w32_menu_show): Sync with xmenu_show in xmenu.c.
8540
8541 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
8542 Make static again.
8543
8544 2008-06-09 Jason Rumney <jasonr@gnu.org>
8545
8546 Changes to w32 files related to the move of common menu code
8547 to menu.c on 2008-06-08 by Chong Yidong.
8548
8549 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
8550 defs to w32gui.h.
8551 (single_keymap_panes, push_menu_item, push_menu_pane):
8552 Make globally visible.
8553
8554 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
8555 (local_free, malloc_widget_value, free_widget_value)
8556 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
8557 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
8558 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
8559 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
8560 (menu_items, menu_items_allocated, menu_items_used)
8561 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
8562 (init_menu_items, finish_menu_items, discard_menu_items)
8563 (grow_menu_items, push_submenu_start, push_submenu_end)
8564 (push_left_right_boundary, push_menu_pane, push_menu_item)
8565 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
8566 (free_menubar_widget_tree_value, parse_single_submenu)
8567 (update_submenu_strings): Remove functions.
8568 (xmalloc_widget_value): Remove and declare extern.
8569
8570 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
8571 (OBJ1): Build it.
8572
8573 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
8574 (local_heap, local_alloc, local_free, malloc_widget_value)
8575 (free_widget_value): Define here.
8576
8577 2008-06-09 Kenichi Handa <handa@m17n.org>
8578
8579 * font.h (Qascii_0): Extern it.
8580
8581 * font.c (Qascii_0): New variable.
8582 (syms_of_font): DEFSYM it.
8583 (font_open_by_name): If the registry "iso8859-1" fails, try also
8584 "ascii-0".
8585
8586 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
8587
8588 2008-06-08 Kenichi Handa <handa@m17n.org>
8589
8590 * .gdbinit (xfont): New command.
8591
8592 2008-06-08 Andreas Schwab <schwab@suse.de>
8593
8594 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
8595 * Makefile.in (menu.o): Update dependencies.
8596
8597 * Makefile.in (obj): Always add menu.o.
8598 * emacs.c (main): Always call syms_of_menu.
8599 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
8600
8601 2008-06-08 Chong Yidong <cyd@stupidchicken.com>
8602
8603 * Makefile.in: Compile menu.c.
8604
8605 * lisp.h: Declare syms_of_menu.
8606
8607 * emacs.c (main): Call syms_of_menu.
8608
8609 * keyboard.h: Relocate platform-independent menu definitions from
8610 xmenu.c.
8611
8612 * menu.c: New file. Relocate platform-independent menu
8613 definitions from xmenu.c. Suggested by Adrian Robert.
8614
8615 * xmenu.c: Remove platform-independent menu definitions.
8616 (menu_items menu_items_inuse, menu_items_allocated)
8617 (menu_items_used, menu_items_n_panes)
8618 (menu_items_submenu_depth): Move to keyboard.h.
8619 (init_menu_items, finish_menu_items, unuse_menu_items)
8620 (discard_menu_items, restore_menu_items, save_menu_items)
8621 (grow_menu_items, push_submenu_start, push_submenu_end)
8622 (push_left_right_boundary, push_menu_pane, push_menu_item)
8623 (keymap_panes, single_keymap_panes, single_menu_item)
8624 (list_of_panes, list_of_items, find_and_call_menu_selection)
8625 (xmalloc_widget_value, free_menubar_widget_value_tree)
8626 (parse_single_submenu, digest_single_submenu)
8627 (update_submenu_strings): Move to menu.c.
8628
8629 2008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
8630
8631 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
8632
8633 2008-06-06 Miles Bader <miles@gnu.org>
8634
8635 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
8636 face, not frame default.
8637
8638 2008-06-05 Martin Rudalics <rudalics@gmx.at>
8639
8640 * window.c (pop_up_windows, pop_up_frames)
8641 (display_buffer_reuse_frames, Vpop_up_frame_function)
8642 (Vdisplay_buffer_function, Veven_window_heights)
8643 (Vspecial_display_buffer_names, Vspecial_display_regexps)
8644 (Vspecial_display_function, Vsame_window_buffer_names)
8645 (Vsame_window_regexps, split_height_threshold)
8646 (Vsplit_window_preferred_function): Move those vars to window.el.
8647 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
8648 (Fdisplay_buffer): Move those functions to window.el.
8649 (syms_of_window): Remove corresponding declarations.
8650 (display_buffer): New function.
8651 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
8652 * dispnew.c (Flast_nonminibuf_frame): New function.
8653 * buffer.c (Fpop_to_buffer): Move to window.el.
8654
8655 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
8656
8657 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
8658
8659 2008-06-05 Kenichi Handa <handa@m17n.org>
8660
8661 * coding.c (detect_coding): Fix previous change.
8662 (detect_coding_system): Likewise.
8663
8664 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
8665
8666 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
8667
8668 * keymap.c (Vminibuffer_local_filename_must_match_map):
8669 Rename from Vminibuffer_local_must_match_filename_map.
8670 (syms_of_keymap):
8671 * minibuf.c (Fcompleting_read): Adjust accordingly.
8672 * commands.h: Rename declaration as well.
8673
8674 2008-06-05 Kenichi Handa <handa@m17n.org>
8675
8676 * font.c (Ffont_spec): Don't use font_parse_family_registry for
8677 family name.
8678 (Ffont_put): Likewise.
8679
8680 * fontset.c (fontset_find_font): Call font_open_for_lface with the
8681 current font-spec.
8682
8683 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
8684 is unspecified.
8685
8686 * xfaces.c (realize_x_face): If the font-related face attributes
8687 are the same as those of default face, realize a new fontset from
8688 default->fontset.
8689 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
8690
8691 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
8692
8693 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
8694 (move_it_in_display_line): New wrapper.
8695
8696 * window.c (window_scroll_pixel_based_preserve_x)
8697 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
8698 (window_scroll_pixel_based, window_scroll_line_based):
8699 Use them to preserve column positions.
8700 (syms_of_window): Initialize them.
8701
8702 * indent.c (Fvertical_motion): Extend first arg to allow passing an
8703 (HPOS . VPOS) pair.
8704
8705 * dispextern.h (move_it_in_display_line): Declare.
8706
8707 2008-06-05 Juanma Barranquero <lekktu@gmail.com>
8708
8709 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
8710 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
8711 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
8712
8713 2008-06-04 Juanma Barranquero <lekktu@gmail.com>
8714
8715 * window.c (Fset_window_parameter): Doc fix.
8716 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
8717
8718 2008-06-04 Joakim Verona <joakim@verona.se>
8719
8720 * window.h (struct window): Add new member window_parameters.
8721
8722 * window.c (Fwindow_parameters, Fwindow_parameter)
8723 (Fset_window_parameter): New defuns.
8724 (syms_of_window): Defsubr the new defuns.
8725 (make_window): Initialize window_parameters to nil.
8726
8727 2008-06-04 John Paul Wallington <jpw@pobox.com>
8728
8729 * eval.c (Fdefmacro): Doc fix.
8730
8731 2008-06-04 Kenichi Handa <handa@m17n.org>
8732
8733 * coding.c (detect_coding): Fix handling of coding->head_ascii.
8734 Be sure to call setup_coding_system when we find a proper coding system.
8735 (detect_coding_system): Fix handling of coding->head_ascii.
8736
8737 2008-06-03 Andreas Schwab <schwab@suse.de>
8738
8739 * font.c (font_prop_validate_spacing): Fix last change.
8740
8741 2008-06-03 Kenichi Handa <handa@m17n.org>
8742
8743 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
8744 (font_parse_fcname): Fix handling of unknown key.
8745
8746 * xfont.c (xfont_list): Try an alias.
8747
8748 * charset.c (char_charset): Return NULL if the arg charset_list is
8749 specified and C doesn't belong to any of them.
8750
8751 2008-06-02 Chip Coldwell <coldwell@redhat.com>
8752
8753 * font.c (font_pixel_size): Don't take cdr of an integer.
8754
8755 2008-06-02 Jim Meyering <meyering@redhat.com>
8756
8757 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
8758 * alloc.c (xfree): Return right away for a NULL arg.
8759 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
8760 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
8761 * mac.c (create_apple_event_from_event_ref): Likewise.
8762 (create_apple_event_from_drag_ref, cfstring_create_normalized):
8763 Likewise.
8764 * doprnt.c (doprnt1): Likewise.
8765 * frame.c (frame): Likewise.
8766 * keyboard.c (wipe_kboard): Likewise.
8767 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
8768 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
8769 * term.c (tty_default_color_capabilities, maybe_fatal)
8770 (delete_tty): Likewise.
8771 * w16select.c (string): Likewise.
8772 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
8773 * w32bdf.c (w32_free_bdf_font): Likewise.
8774 * w32fns.c (w32_unload_font): Likewise.
8775 * w32font.c (w32font_close): Likewise.
8776 * window.c (size_window): Likewise.
8777 * xselect.c (receive_incremental_selection): Likewise.
8778 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
8779 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
8780 * w32.c (stat): Likewise.
8781
8782 Remove useless if-before-free tests.
8783 * editfns.c (Fset_time_zone_rule): Likewise.
8784 * lread.c (nosuffix): Likewise.
8785 * ralloc.c (get_bloc): Likewise.
8786 * regex.c (reg_free): Likewise.
8787 * xftfont.c (xftfont_open, xftfont_close): Likewise.
8788 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
8789 * xsmfns.c (smc_save_yourself_CB): Likewise.
8790
8791 2008-06-02 Kenichi Handa <handa@m17n.org>
8792
8793 * font.c (font_find_for_lface): Handle float font size.
8794 (font_open_for_lface): Likewise.
8795
8796 * xfaces.c (x_supports_face_attributes_p): Check face->font before
8797 comparing the properties.
8798
8799 2008-06-01 Jason Rumney <jasonr@gnu.org>
8800
8801 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
8802 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
8803 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
8804 Don't add empty script list.
8805 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
8806
8807 2008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
8808
8809 * Makefile.in (dot, dotdot): Remove, update users.
8810 ".." has been used elsewhere in the file for a long time.
8811 (LIBXT_STATIC): Remove conditional based on unused variable.
8812
8813 2008-06-01 Miles Bader <miles@gnu.org>
8814
8815 * xfaces.c (Vface_remapping_alist): New variable.
8816 (syms_of_xfaces): Initialize it.
8817 (enum named_merge_point_kind): New type.
8818 (struct named_merge_point): Add `named_merge_point_kind' field.
8819 (push_named_merge_point): Make cycle detection respect different
8820 named-merge-point kinds.
8821 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
8822 Remove face-name alias resolution.
8823 (lface_from_face_name): New definition using
8824 `lface_from_face_name_no_resolve'.
8825 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
8826 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
8827 (get_lface_attributes): New definition that layers face-remapping on
8828 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
8829 (lookup_basic_face): New function.
8830 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
8831 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
8832 `get_lface_attributes'.
8833 (face_at_buffer_position): Use `lookup_basic_face' to lookup
8834 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
8835 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
8836
8837 * xdisp.c (init_iterator): Pass base_face_id through
8838 `lookup_basic_face' when we actually use it as a face-id.
8839 (handle_single_display_prop): Use `lookup_basic_face' to lookup
8840 DEFAULT_FACE_ID.
8841
8842 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
8843 lookup the initial face-id.
8844
8845 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
8846
8847 2008-06-01 Juanma Barranquero <lekktu@gmail.com>
8848
8849 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
8850 (Fremove_text_properties): Fix typos in docstrings.
8851
8852 2008-05-31 Kenichi Handa <handa@m17n.org>
8853
8854 * font.c (font_list_entities): Fix the car part of data to be
8855 stored in the cache.
8856
8857 * ftfont.c (ftfont_font_format): Don't use strcasestr.
8858
8859 2008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
8860
8861 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
8862 Add a `test' argument so another predicate than `equal' can be used.
8863 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
8864 (map_char_table): Remove unused vars `c' and `i'.
8865 * lisp.h (Foptimize_char_table): Adjust declaration.
8866 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
8867
8868 2008-05-30 Kenichi Handa <handa@m17n.org>
8869
8870 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
8871 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
8872 defined.
8873
8874 2008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
8875
8876 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
8877 (Fmake_variable_frame_local): Disallow mixing buffer-local and
8878 frame-local settings for the same variable.
8879
8880 2008-05-30 Kenichi Handa <handa@m17n.org>
8881
8882 * fontset.c (Ffont_info): Move to font.c.
8883 (syms_of_fontset): Delete defsubr of Sfont_info.
8884
8885 * font.c (font_style_to_value, font_score): Delete casting of the
8886 args to xstcasecmp.
8887 (register_font_driver): Increment num_font_drivers only when
8888 registering the driver globally.
8889 (Ffont_info): Move from fontset.c. Handle a font object too.
8890 (syms_of_font): Defsubr Sfont_info.
8891
8892 2008-05-29 Kenichi Handa <handa@m17n.org>
8893
8894 * coding.h (enum define_coding_utf8_arg_index): New enum.
8895 (enum coding_attr_index): Change coding_attr_utf_16_bom to
8896 coding_attr_utf_bom.
8897 (enum utf_bom_type): Rename from utf_16_bom_type.
8898 (struct utf_16_spec): Adjust for the above change.
8899 (struct coding_system): Add utf_8_bom in `spec' union.
8900
8901 * coding.c (CODING_UTF_8_BOM): New macro.
8902 (enum coding_category): Delete coding_category_utf_8, add
8903 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
8904 coding_category_utf_8_sig.
8905 (CATEGORY_MASK_UTF_8): Delete it.
8906 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
8907 (CATEGORY_MASK_UTF_8_SIG): New macros.
8908 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
8909 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
8910 CATEGORY_MASK_UTF_8_SIG.
8911 (CATEGORY_MASK_UTF_8): New macro.
8912 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
8913 (detect_coding_utf_8): Check BOM.
8914 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
8915 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
8916 (encode_coding_utf_16): Likewise.
8917 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
8918 (detect_coding, detect_coding_system): Handle utf-8-auto.
8919 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
8920 (syms_of_coding): Fix setting up of Vcoding_category_table.
8921
8922 2008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
8923
8924 * process.c (Faccept_process_output): If `millisec' is non-nil,
8925 `seconds' default to 0.
8926 (wait_reading_process_output): Also return non-nil if we read output
8927 from a non-running process.
8928
8929 2008-05-29 Jason Rumney <jasonr@gnu.org>
8930
8931 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
8932 `raster' specified.
8933 (add_font_entity_to_list): Allow non-opentype truetype fonts back
8934 in the uniscribe backend, but disallow any font that has no
8935 unicode subrange support.
8936
8937 2008-05-29 Juanma Barranquero <lekktu@gmail.com>
8938
8939 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
8940 Fix typos in docstrings.
8941
8942 2008-05-29 Kenichi Handa <handa@m17n.org>
8943
8944 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
8945 (Fx_family_fonts): Set frame correctly.
8946
8947 2008-05-28 Jason Rumney <jasonr@gnu.org>
8948
8949 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
8950
8951 2008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
8952
8953 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
8954 calling build_annotations.
8955
8956 2008-05-28 Juanma Barranquero <lekktu@gmail.com>
8957
8958 * coding.c (Fdecode_coding_region, Fencode_coding_region)
8959 (Fencode_coding_string):
8960 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
8961 <latin-extra-code-table>: Fix typos in docstrings.
8962 (syms_of_coding) <coding-system-alist>: Doc fix.
8963 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
8964
8965 2008-05-28 Kenichi Handa <handa@m17n.org>
8966
8967 * fontset.c (Ffont_info): Don't call font_close_object.
8968
8969 * font.c (font_parse_family_registry): Use Ffont_put to validate
8970 foundry and family.
8971 (font_delete_unmatched): Don't check spacing.
8972 (font_list_entities): Add spacing to the spec to list fonts.
8973
8974 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
8975 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
8976
8977 * coding.c (encode_coding_raw_text): Fix previous change.
8978 (encode_coding_object): When the dst_object is a buffer and is
8979 different from src_object, move gap to PT.
8980
8981 2008-05-27 Chong Yidong <cyd@stupidchicken.com>
8982
8983 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
8984
8985 2008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
8986
8987 * coding.c (encode_coding_raw_text): Set coding->produced_char for
8988 all branches. Compute it differently.
8989
8990 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
8991
8992 2008-05-27 Juanma Barranquero <lekktu@gmail.com>
8993
8994 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
8995 into "else if () ... else ...".
8996
8997 2008-05-27 Jason Rumney <jasonr@gnu.org>
8998
8999 * w32font.c (w32font_open_internal): Determine if glyph indices
9000 are likely to work here.
9001
9002 2008-05-27 Chong Yidong <cyd@stupidchicken.com>
9003
9004 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
9005 draw overlap glyphs with appropriate highlighting.
9006
9007 2008-05-27 Kenichi Handa <handa@m17n.org>
9008
9009 * xfont.c (xfont_open): Fix calculation of font->average_width.
9010
9011 2008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
9012
9013 * casefiddle.c (casify_object): Try to guess better whether the
9014 argument is a byte or a char.
9015
9016 2008-05-26 Andreas Schwab <schwab@suse.de>
9017
9018 * xselect.c (x_reply_selection_request): Properly handle format == 32.
9019 Always send multiples of format size.
9020
9021 * xterm.c (x_set_frame_alpha): Fix type mismatch.
9022
9023 2008-05-26 Jason Rumney <jasonr@gnu.org>
9024
9025 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
9026 (compute_metrics): Don't set failure if we just cleared the cache.
9027 (w32_weight_table): Remove unused variable.
9028 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
9029 backwards compatibility.
9030
9031 2008-05-25 Kenichi Handa <handa@m17n.org>
9032
9033 * w32term.c (x_draw_glyph_string):
9034 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
9035
9036 * xfaces.c: Delete unused function prototypes.
9037 (xstrlwr, font_frame): Delete them.
9038 (clear_face_cache): Delete unused variable.
9039
9040 * xftfont.c (xftfont_open): Delete unused variable.
9041 If underline_thickness is not 1, adjust underline_position.
9042
9043 * ftxfont.c (ftxfont_open): Delete unused variable.
9044
9045 * fontset.c (face_for_char): Optimize for the case of no charset
9046 property.
9047
9048 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
9049 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
9050 (otf_open, font_otf_capability, generate_otf_features)
9051 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
9052 Comment out by surrounding "#if 0" and "#endif" for the moment.
9053 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
9054 (syms_of_font): Codes for accessing above commented out.
9055
9056 2008-05-24 Eli Zaretskii <eliz@gnu.org>
9057
9058 * w32proc.c: Include dispextern.h.
9059
9060 * w32.c: Include dispextern.h.
9061
9062 2008-05-23 Juanma Barranquero <lekktu@gmail.com>
9063
9064 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
9065 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
9066 Fix typos in docstrings.
9067
9068 2008-05-23 Jason Rumney <jasonr@gnu.org>
9069
9070 * xsmfns.c: Remove includes that are already included by config.h.
9071
9072 2008-05-23 Kenichi Handa <handa@m17n.org>
9073
9074 * charset.c (Qemacs, charset_emacs): New variables.
9075 (char_charset): Fix for non-Unicode characters.
9076 (syms_of_charset): Define charset_emacs.
9077
9078 * w32term.c (x_draw_glyph_string): Be sure to update
9079 s->underline_thickness and s->underline_position. Be sure to draw
9080 underline within the current line area.
9081
9082 * xterm.c (x_draw_glyph_string): Be sure to update
9083 s->underline_thickness and s->underline_position. Be sure to draw
9084 underline within the current line area.
9085
9086 * fontset.c: Delete unused variables and add casting for char *
9087 throughout the file.
9088 (fontset_font): Try the fallback fonts of the current fontset
9089 before consulting the default fontset.
9090
9091 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
9092
9093 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
9094
9095 2008-05-22 Jason Rumney <jasonr@gnu.org>
9096
9097 * font.c: Don't include strings.h.
9098
9099 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
9100
9101 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
9102 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
9103 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
9104 to call xstrcasecmp.
9105
9106 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
9107
9108 * fontset.c (fs_query_fontset): Use xstrcasecmp.
9109
9110 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
9111
9112 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
9113
9114 2008-05-22 Kenichi Handa <handa@m17n.org>
9115
9116 * puresize.h (BASE_PURESIZE): Increase to 1220000.
9117
9118 * font.c (font_prop_validate_style): Adjust for the format
9119 change of font_style_table.
9120
9121 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
9122 two args.
9123
9124 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
9125 two args.
9126
9127 2008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
9128
9129 * minibuf.c (keys_of_minibuf): Delete.
9130 * lisp.h (keys_of_minibuf): Delete.
9131 * emacs.c (main): Don't call keys_of_minibuf.
9132
9133 2008-05-22 Kenichi Handa <handa@m17n.org>
9134
9135 * ftfont.c (ftfont_resolve_generic_family): Rename from
9136 ftfont_list_generic_family. Return a single family for each
9137 generic family.
9138 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
9139 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
9140 Call font_add_log.
9141 (ftfont_match): Call font_add_log.
9142
9143 * font.h (Ffont_xlfd_name): EXFUN adjusted.
9144 (FONT_DEBUG): Define it.
9145 (font_add_log): Extern it.
9146 (font_assert): Rename from xassert.
9147
9148 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
9149 (xfont_list_family): Call font_add_log.
9150 (xfont_match): Likewise.
9151 (memq_no_quit): Delete.
9152
9153 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
9154 call of Ffont_xlfd_name.
9155
9156 * xfaces.c (struct table_entry, slant_table, weight_table)
9157 (swidth_table): Move to font.c.
9158
9159 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
9160 xassert are changed to font_assert. Delete many unused variables.
9161 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
9162 New variables.
9163 (struct table_entry): Move from xfaces.c and modified.
9164 (weight_table, slant_table, width_table): Move from xfaces.c and
9165 contents adjusted for the change of struct table_entry.
9166 (font_style_to_value, font_style_symbolic): Adjust for the
9167 format change of font_style_table.
9168 (font_parse_family_registry): Don't overwrite existing foundry and
9169 family of font_spec.
9170 (font_score): Fix calculation of diff for sizes.
9171 (font_sort_entites): Call font_add_log.
9172 (font_delete_unmatched): Return a newly created list.
9173 (font_list_entities): Fix previous change. Call font_add_log.
9174 (font_matching_entity, font_open_entity, font_close_entity):
9175 Call font_add_log.
9176 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
9177 (Finternal_set_font_style_table): Delete.
9178 (BUILD_STYLE_TABLE): New macro.
9179 (build_style_table): New function.
9180 (Vfont_log, font_log_env_checked): New variables.
9181 (font_add_log): New function.
9182 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
9183 Declare Lisp variables "font-weight-table", "font-slant-table",
9184 "font-width-table", and "font-log". Initialize font_style_table.
9185
9186 2008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
9187
9188 * xterm.c (x_set_frame_alpha): Move declarations before statements.
9189
9190 2008-05-21 Seiji Zenitani <zenitani@mac.com>
9191 Ryo Yoshitake <ryo@shiftmode.net>
9192
9193 * frame.c (Qalpha): Add a new frame parameter `alpha'.
9194 (Vframe_alpha_lower_limit): New variable.
9195 (x_set_alpha): New function.
9196
9197 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
9198
9199 * xfns.c (x-create-frame, Qalpha):
9200 Initialize the frame parameter `alpha'.
9201 * xterm.c (OPAQUE, OPACITY): New.
9202 (x_set_frame_alpha): New function.
9203 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
9204
9205 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
9206 * w32fns.c (w32_frame_parm_handlers): Likewise.
9207
9208 2008-05-20 Jason Rumney <jasonr@gnu.org>
9209
9210 * w32font.c (add_font_entity_to_list): Don't add non-opentype
9211 truetype fonts to opentype list.
9212
9213 2008-05-20 Juanma Barranquero <lekktu@gmail.com>
9214
9215 * fontset.c (Ffontset_info): Doc fix.
9216 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
9217 <ignore-relative-composition>: Fix typos in docstrings.
9218
9219 * font.c (syms-of-font) <font-encoding-alist>:
9220 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
9221 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
9222 (Ffont_otf_alternates): Doc fixes.
9223
9224 2008-05-20 Kenichi Handa <handa@m17n.org>
9225
9226 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
9227 font.h through out the file.
9228 (FONT_DRIVERS): Rename from FONTOBJ.
9229 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
9230 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
9231
9232 * emacs.c (main): Call syms_of_font unconditionally.
9233
9234 * font.h (find_font_encoding): Extern it.
9235
9236 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
9237 fontset.c.
9238 (font_pixel_size)[! HAVE_WINDOW_SYSTEM]: Return 1.
9239 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
9240 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
9241 only when HAVE_WINDOW_SYSTEM is defined.
9242 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
9243 when HAVE_WINDOW_SYSTEM is defined.
9244
9245 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
9246 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
9247
9248 * xfaces.c: Include font.h unconditionally.
9249 (merge_face_ref, merge_face_vectors)
9250 (Finternal_set_lisp_face_attribute): Cancel the previous change.
9251
9252 2008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
9253
9254 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
9255 indirect_variable.
9256 * eval.c (lisp_indirect_variable): New fun.
9257 (Fuser_variable_p): Use it.
9258
9259 2008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
9260
9261 * lisp.h (indirect_variable):
9262 * data.c (indirect_variable, let_shadows_buffer_binding_p):
9263 Use Lisp_Symbol pointers rather than Lisp_Object.
9264 Adjust callers.
9265 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
9266 To this end, change calling-convention.
9267
9268 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
9269 if some non-hidden buffers are selected by string&pred.
9270
9271 2008-05-19 Chong Yidong <cyd@stupidchicken.com>
9272
9273 * process.c (wait_reading_process_output): Always check status
9274 when in batch mode.
9275
9276 2008-05-19 Kenichi Handa <handa@m17n.org>
9277
9278 * font.c (font_list_entities): Fix handling of cache.
9279 (font_matching_entity): Likewise.
9280
9281 * ftfont.c (cs_iso8859_1): Delete.
9282 (ft_face_cache): New variable.
9283 (struct ftfont_info): New member fc_charset_idx.
9284 (ftfont_build_basic_charsets): Delete.
9285 (fc_charset_table): New variable.
9286 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
9287 . FC_CHARSET_IDX) as :font-entity property in the font entity.
9288 Callers changed.
9289 (ftfont_lookup_cache, ftfont_get_charset): New functions.
9290 (ftfont_spec_pattern): New argument fc_charset_idx.
9291 Check registry more rigidly. Change callers.
9292 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
9293 change of :font-entity property of the font.
9294
9295 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
9296 property of the font.
9297
9298 2008-05-18 Juanma Barranquero <lekktu@gmail.com>
9299
9300 * coding.c (Fcoding_system_p): Rename argument to match docstring.
9301 (Funencodable_char_position, Fcheck_coding_systems_region)
9302 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
9303 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
9304 (Ffind_operation_coding_system, Fset_coding_system_priority)
9305 (Fcoding_system_eol_type): Doc fixes.
9306
9307 2008-05-17 Glenn Morris <rgm@gnu.org>
9308
9309 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
9310
9311 2008-05-16 Eli Zaretskii <eliz@gnu.org>
9312
9313 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
9314 and st_gid.
9315
9316 * frame.c (Fdelete_frame): Don't call font_update_drivers if
9317 HAVE_WINDOW_SYSTEM is not defined.
9318
9319 * xfaces.c (merge_face_ref, merge_face_vectors)
9320 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
9321 HAVE_WINDOW_SYSTEM is defined.
9322 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
9323
9324 2008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
9325
9326 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
9327
9328 2008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9329
9330 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
9331
9332 2008-05-15 Kenichi Handa <handa@m17n.org>
9333
9334 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
9335 preference.
9336
9337 2008-05-15 Glenn Morris <rgm@gnu.org>
9338
9339 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
9340
9341 2008-05-15 Chong Yidong <cyd@stupidchicken.com>
9342
9343 * fns.c (init_fns): Don't initialize weak_hash_tables here.
9344 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
9345
9346 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
9347
9348 2008-05-15 Kenichi Handa <handa@m17n.org>
9349
9350 * ftfont.c (ftfont_list): Downcase family name to check generic
9351 families.
9352
9353 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
9354 font-spec for QCfont value.
9355
9356 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
9357 buffer. Check the return value of it.
9358
9359 2008-05-14 Jason Rumney <jasonr@gnu.org>
9360
9361 * w32term.c (w32_get_glyph_overhangs): Remove.
9362 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
9363
9364 2008-05-14 Kenichi Handa <handa@m17n.org>
9365
9366 * font.c (font_prop_validate): Make nil a valid value.
9367 (font_clear_cache): Check if the cached vector of entities is nil
9368 or not.
9369
9370 2008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9371
9372 * emacs.c (main_thread): Conditionalize on
9373 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
9374 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
9375
9376 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
9377 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
9378 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
9379
9380 2008-05-14 Kenichi Handa <handa@m17n.org>
9381
9382 * coding.c (detect_coding_iso_2022): Ignore a coding category that
9383 has no corresponding coding system.
9384
9385 2008-05-14 Jason Rumney <jasonr@gnu.org>
9386
9387 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
9388
9389 * w32font.h (w32font_open_internal): Update declaration.
9390
9391 * w32font.c (w32font_open_internal): Change last argument from
9392 w32font_info struct to font object. Fill in font object from
9393 font_entity. Get Outline metrics if possible. Use them to
9394 calculate underline position and thickness. Use xlfd name as name
9395 property. Don't set codepage.
9396 (w32font_open): Pass font_object to w32font_open_internal. Don't
9397 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
9398 (w32font_draw): Use s->font.
9399 (clear_cached_metrics): Don't clear non-existent blocks.
9400
9401 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
9402 font was not found.
9403 (x_draw_glyph_string): Use underline position and thickness from font.
9404
9405 * w32uniscribe.c (uniscribe_open): Pass font_object to
9406 w32font_open_internal.
9407
9408 2008-05-14 Kenichi Handa <handa@m17n.org>
9409
9410 These changes are to delete all legacy font-handling codes, and
9411 make Emacs use only font-backends.
9412
9413 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
9414 (frame.o, image.o, print.o): Depend on $(FONTSRC).
9415
9416 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
9417
9418 * charset.h (Vcharset_non_preferred_head)
9419 (Vcurrent_iso639_language): Extern them.
9420
9421 * charset.c (Vcharset_non_preferred_head): New variable.
9422 (Vcurrent_iso639_language): New variable.
9423 (syms_of_charset): Declare it as a Lisp variable.
9424 (char_charset): Don't check non preferred charsets. As a last
9425 resort, return charset_unicode.
9426 (Fset_charset_priority): Update Vcharset_non_preferred_head.
9427
9428 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
9429 conditionals. Don't check enable_font_backend. Delete all codes
9430 used only when USE_FONT_BACKEND is not defined.
9431
9432 * dispextern.h (struct glyph_string): Change type of `font' to
9433 `struct font *'.
9434 (struct glyph_string): New member underline_position and
9435 underline_thickness.
9436 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
9437 (struct face): Change type of `font' to `struct font *'. Remove
9438 members `font_name', `font_info_id'.
9439 (per_char_metric, encode_char): Delete externs.
9440 (calc_pixel_width_or_height): Adjust the prototype.
9441
9442 * emacs.c (enable_font_backend): Delete extern.
9443 (main): Don't set enable_font_backend. Don't check the command
9444 line argument "-disable-font-backend".
9445
9446 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
9447 (enum font_property_index): New members FONT_DPI_INDEX,
9448 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
9449 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
9450 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
9451 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
9452 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
9453 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
9454 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
9455 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
9456 (struct font_spec, struct font_entity): New structs.
9457 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
9458 (struct font): Many members from old "struct font_info" moved to
9459 here. Members font and entity deleted.
9460 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
9461 the new font-related objects.
9462 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
9463 (CHECK_FONT_GET_OBJECT): Likewise.
9464 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
9465 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
9466 (struct font_driver): New members case_sensitive anc check. Type
9467 of the member list and open changed.
9468 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
9469 (font_symbolic_width, font_find_object, font_get_spec)
9470 (font_set_lface_from_name): Delete extern.
9471 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
9472
9473 * font.c: Include <strings.h>.
9474 (enable_font_backend): Delete it.
9475 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
9476 (CHECK_VALIDATE_FONT_SPEC): Delete it.
9477 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
9478 (null_string): Delete it.
9479 (null_vector): Make it static.
9480 (font_family_alist): Delete it.
9481 (Qnormal): Extern it.
9482 (QCextra, QClanguage): Delete it.
9483 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
9484 (font_make_spec, font_make_entity, font_make_object)
9485 (font_intern_prop): Renamed from intern_downcase. Don't downcase
9486 the string. Callers changed.
9487 (font_pixel_size): Adjusted for the format change of font-related
9488 objects.
9489 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
9490 (font_style_to_value, font_style_symbolic): New function.
9491 (build_font_family_alist): Delete it.
9492 (font_registry_charsets): Use Fassoc_string instead of
9493 assq_no_quit.
9494 (font_prop_validate_symbol): Don't return null_string.
9495 (font_prop_validate_style): Adjusted for the change of
9496 style-related values in a font vector.
9497 (font_property_table): Delete entries for QClanguage and
9498 QCantialias, add entries for QCavgwidth.
9499 (get_font_prop_index): Delete the 2nd argument FROM.
9500 (font_prop_validate): Arguments changed.
9501 (font_put_extra): Adjusted for the change of font-related objects.
9502 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
9503 (font_parse_fcname, font_unparse_fcname)
9504 (font_prepare_composition): Likewise.
9505 (font_parse_family_registry): Renamed from font_merge_old_spec.
9506 (otf_open): Delete the 1st arg entity.
9507 (font_otf_capability): Adjusted for the above change.
9508 (font_score): New arg alternate_families. Adjusted for the change
9509 of font-related objects.
9510 (font_sort_entites): New arg best_only.
9511 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
9512 Delete them.
9513 (font_match_p): Check alternate families.
9514 (font_find_object): Delete it.
9515 (font_check_object): New function.
9516 (font_clear_cache): Adjusted for the change of font-related objects.
9517 (font_delete_unmatched): New arg.
9518 (font_list_entities): Call font_driver->list with a spec that
9519 doesn't specify style-related properties.
9520 (font_matching_entity): Arguments changed. Caller changed.
9521 (font_open_entity): Adjusted for the change of font-related objects.
9522 (font_close_object, font_has_char, font_encode_char)
9523 (font_get_name, font_get_spec): Likewise.
9524 (font_spec_from_name, font_clear_prop, font_update_lface):
9525 New functions.
9526 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
9527 (font_prepare_for_face, font_done_for_face, font_open_by_name)
9528 (font_at): Adjusted for the change of font-related objects.
9529 (font_range): New function.
9530 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
9531 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
9532 (Fcopy_font_spec, Fmerge_font_spec): New function.
9533 (Ffont_family_list): Renamed from list-families.
9534 (Finternal_set_font_style_table): Arguments changed.
9535 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
9536 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
9537 change of font-related objects.
9538 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
9539
9540 * fontset.h (struct font_info): Delete it. Most members go to
9541 struct font.
9542 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
9543 (enum FONT_SPEC_INDEX): Delete it.
9544 (font_info, list_fonts_func, load_font_func, query_font_func)
9545 (set_frame_fontset_func, find_ccl_program_func)
9546 (get_font_repertory_func, new_fontset_from_font_name): Delete
9547 externs.
9548 (fontset_from_font_name): Extern it.
9549 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
9550 (FONT_INFO_FROM_FACE): Deleted.
9551 (face_for_font): Adjust prototype.
9552
9553 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
9554 conditionals. Don't check enable_font_backend. Delete all codes
9555 used only when USE_FONT_BACKEND is not defined.
9556 (get_font_info_func, list_font_func, load_font_func)
9557 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
9558 (get_font_repertory_func): Delete them.
9559 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
9560 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
9561 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
9562 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
9563 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
9564 (fontset_compare_rfontdef): New function.
9565 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
9566 rfont-defs by qsort. Adjusted for the change of font-group vector.
9567 (load_font_get_repertory): Deleted.
9568 (fontset_find_font): Use new macros to ref/set elements of
9569 font-def and rfont-def.
9570 (fontset_font): Fix the timing of remembering that no font for C.
9571 (free_face_fontset): Do nothing if the face has no fontset.
9572 (face_suitable_for_char_p): Use new macros to ref/set elements of
9573 rfont-def.
9574 (face_for_char): Likewise. Call face_for_char with font_object.
9575 (fs_load_font): Delete. Delete #pragma surrounding it.
9576 (fs_query_fontset): Use strcasecmp instead of strcmp.
9577 (generate_ascii_font_name): Adjusted for the format change of
9578 font-spec.
9579 (Fset_fontset_font): Likewise. Use new macros to set elements of
9580 font-def.
9581 (Fnew_fontset): Use font_unparse_xlfd to generate
9582 FONTSET_ASCII (fontset).
9583 (new_fontset_from_font_name): Deleted.
9584 (fontset_from_font): Renamed from new_fontset_from_font. Check if
9585 a fontset is already created for the font. FIx updating of
9586 Vfontset_alias_alist.
9587 (fontset_ascii_font): Deleted.
9588 (Ffont_info): Adjusted for the format change of font-spec.
9589 (Finternal_char_font): Likewise.
9590 (Ffontset_info): Likewise.
9591 (syms_of_fontset): Don't check load_font_func.
9592
9593 * fns.c (internal_equal): Handle PREV_FONT.
9594
9595 * frame.h: Delete USE_FONT_BACKEND conditional.
9596
9597 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
9598 conditionals. Don't check enable_font_backend. Delete all codes
9599 used only when USE_FONT_BACKEND is not defined.
9600 (x_set_font): Call x_new_font, not x_new_fontset2.
9601 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
9602 already set for the frame.
9603
9604 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
9605 a font-entity by font_make_entity. Use font_intern_prop instead
9606 of intern_downcase. Use FONT_SET_STYLE to set a style-related
9607 font property. If a font is scalable, set avgwidth property to 0.
9608 Set font-entity property by font_put_extra.
9609 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
9610 (ffont_driver): Adjusted for the change of struct font_driver.
9611 (ftfont_spec_pattern): New function.
9612 (ftfont_list): Return a list, not vector.
9613 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
9614 (ftfont_list_family): Don't downcase names.
9615 (ftfont_free_entity): Deleted.
9616 (ftfont_open): Return a font-object. Adjusted for the change of
9617 struct font. Get underline_thickness and underline_position from
9618 font property. Don't update dpyinfo->smallest_font_height and
9619 dpyinfo->smallest_char_width.
9620 (ftfont_close): Don't free `struct font'.
9621 (ftfont_has_char): Adjusted for the format change of font-entity.
9622 (ftfont_encode_char, ftfont_text_extents): Likewise.
9623
9624 * ftxfont.c (ftxfont_list): Return a list, not vector.
9625 (ftxfont_open): Return a font-object. Adjusted for the change of
9626 struct font. Get underline_thickness and underline_position from
9627 font property. Don't update dpyinfo->smallest_font_height and
9628 dpyinfo->smallest_char_width.
9629 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
9630 (ftxfont_draw): Adjusted for the change of struct font.
9631
9632 * image.c (image_ascent): Don't include "charset.h". Include
9633 "character.h" and "font.h".
9634
9635 * lisp.h (enum pvec_type): New member PREV_FONT.
9636 (Fassoc_string): EXFUN it.
9637
9638 * print.c: Include font.h.
9639 (print_object): Handle font-related objects.
9640
9641 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
9642 conditionals. Don't check enable_font_backend. Delete all codes
9643 used only when USE_FONT_BACKEND is not defined.
9644 (handle_auto_composed_prop): Do nothing if it->f is not on a
9645 window system. Check how many following characters can be
9646 displayed by the same font.
9647 (calc_pixel_width_or_height): Type of the 4th arg is changed to
9648 'struct font *'.
9649 (get_char_face_and_encoding): Assign the whole encoding task to
9650 the `encode-char' method of a font driver.
9651 (fill_composite_glyph_string): Adjusted for the change of `struct
9652 face' and `struct glyph_string'.
9653 (fill_glyph_string): Likewise.
9654 (get_per_char_metric): Arguments changed.
9655 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
9656 and `struct glyph_string'.
9657 (produce_stretch_glyph, calc_line_height_property)
9658 (x_produce_glyphs): Likewise.
9659
9660 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
9661 conditionals. Don't check enable_font_backend. Delete all codes
9662 used only when USE_FONT_BACKEND is not defined. Use
9663 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
9664 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
9665 (Qp): Extern them.
9666 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
9667 Deleted.
9668 (struct font_name): Deleted.
9669 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
9670 (compare_fonts_by_sort_order): New function.
9671 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
9672 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
9673 Deleted.
9674 (Fx_family_fonts): Use font_list_entities, and sort fonts by
9675 compare_fonts_by_sort_order.
9676 (Fx_font_family_list): Call Ffont_family_list.
9677 (face_numeric_value, face_numeric_weight, face_numeric_slant)
9678 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
9679 (face_symbolic_slant, face_symbolic_swidth)
9680 (split_font_name_into_vector, build_font_name_from_vector)
9681 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
9682 (font_rescale_ratio, split_font_name, build_font_name)
9683 (free_font_names, sort_fonts, x_face_list_fonts)
9684 (face_font_available_p, sorted_font_list, cmp_font_names)
9685 (font_list_1, concat_font_list, font_list, remove_duplicates):
9686 Deleted.
9687 (Fx_list_fonts): Use Ffont_list.
9688 (LFACE_AVGWIDTH): Deleted.
9689 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
9690 by FONTP.
9691 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
9692 (set_lface_from_font_name): Delete it.
9693 (set_lface_from_font): Renamed from
9694 set_lface_from_font_and_fontset. Caller changed. Don't set
9695 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
9696 for face.
9697 (merge_face_vectors): Copy font-spec if necessary.
9698 Clear properties of the font-spec if necessary.
9699 (merge_face_ref): Clear properties of the font-spec if necessary.
9700 (Finternal_set_lisp_face_attribute): Likewise.
9701 (set_font_frame_param): Use font_load_for_lface to load a
9702 font-object, and call Fmodify_frame_parameters with it.
9703 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
9704 font name by Ffont_xlfd_name.
9705 (Finternal_lisp_face_attribute_values): Don't check QCweight,
9706 QCslant, and QCwidth.
9707 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
9708 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
9709 Compare fonts by EQ.
9710 (lookup_non_ascii_face): Deleted.
9711 (face_for_font): The 2nd argument changed.
9712 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
9713 Check atomic font properties by case insensitive.
9714 (realize_non_ascii_face): Set face->overstrike correctly.
9715 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
9716 (dump_realized_face): Get font name from
9717 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
9718
9719 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
9720 conditionals. Don't check enable_font_backend. Delete all codes
9721 used only when USE_FONT_BACKEND is not defined.
9722 (xic_create_xfontset): Original code deleted and renamed from
9723 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
9724 (x_make_gc): Don't set GCFont in GCs.
9725 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
9726 opened by "fixed".
9727 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
9728 find_ccl_program_func, query_font_func, set_frame_fontset_func,
9729 get_font_repertory_func.
9730
9731 * xfont.c: Include <stdlib.h> and "ccl.h".
9732 (struct xfont_info): New structure.
9733 (xfont_query_font): Deleted.
9734 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
9735 moved from xterm.c.
9736 (xfont_driver): Adjusted for the change of struct font_driver.
9737 (compare_font_names): New function.
9738 (xfont_list_pattern): Sort font names case insensitively. Make
9739 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
9740 (xfont_list): Return a list, not vector.
9741 (xfont_match): If the font doesn't have QCname property, generate
9742 a name from the other font properties.
9743 (xfont_open): Return a font-object. Adjusted for the change of
9744 struct font. Get underline_thickness and underline_position from
9745 font property. Don't update dpyinfo->smallest_font_height and
9746 dpyinfo->smallest_char_width.
9747 (xfont_close): Don't free struct font.
9748 (xfont_prepare_face): Adjusted for the change of struct font.
9749 (xfont_done_face): Deleted.
9750 (xfont_has_char): Adjusted for the change of struct font.
9751 (xfont_encode_char, xfont_draw): Likewise.
9752 (xfont_check): New function.
9753
9754 * xftfont.c (xftfont_list): Adjusted for the change of `list'
9755 callback function.
9756 (xftfont_match): Adjusted for the format change of font-entity.
9757 (xftfont_open): Adjusted for the format change of font-entity and
9758 font-object. Adjusted for the change of struct font. Return a
9759 font-object. Don't update dpyinfo->smallest_font_height and
9760 dpyinfo->smallest_char_width.
9761 (xftfont_close): Block input while calling XftFontClose.
9762 (xftfont_prepare_face): Don't block input while calling
9763 xftfont_get_colors. Adjusted for the change of struct font.
9764 (xftfont_shape): Return value of error case fixed.
9765
9766 * xrdb.c (x_load_resources): Don't setup a fontset resource.
9767
9768 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
9769 conditionals.
9770 (FONT_WIDTH): Return (f)->max_width.
9771 (struct x_display_info): Delete member `font'.
9772 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
9773 (x_find_ccl_program, x_get_font_repertory): Delete externs.
9774 (struct x_output): Change type of `font' to `struct font *'.
9775
9776 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
9777 conditionals. Don't check enable_font_backend. Delete all codes
9778 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
9779 (x_per_char_metric, x_encode_char): Deleted.
9780 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
9781 (x_compute_glyph_string_overhangs): Adjusted for the change of
9782 `struct face'.
9783 (x_draw_glyph_string_foreground)
9784 (x_draw_composite_glyph_string_foreground): Likewise.
9785 (x_draw_glyph_string): Likewise. Use font->underline_position and
9786 font->underline_thickness.
9787 (x_new_font): Renamed from x_new_fontset2.
9788 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
9789 (x_check_font): Call `check' method of a font driver.
9790 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
9791 (x_query_font, x_get_font_repertory): Deleted.
9792 (x_find_ccl_program): Renamed and moved to xfont.c.
9793 (x_redisplay_interface): Adjusted for the change of `struct
9794 redisplay_interface'.
9795
9796 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
9797 conditionals. Don't check enable_font_backend. Delete all codes
9798 used only when USE_FONT_BACKEND is not defined. Surround non-used
9799 code by "#ifdef OLD_FONT" and "endif".
9800 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
9801
9802 * w32font.h (struct w32font_info): New member.
9803 (FONT_COMPAT): New macro.
9804 (w32font_open_internal): Prototype adjusted.
9805
9806 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
9807 OLD_FONT" and "endif".
9808
9809 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
9810 conditionals. Don't check enable_font_backend. Delete all codes
9811 used only when USE_FONT_BACKEND is not defined.
9812 (w32font_open): Return a font-object. Make a font-object by
9813 font_make_object. Adjusted for the change of struct w32font_info.
9814 (w32font_close): Don't free struct font. Adjusted for the change
9815 of struct w32font_info.
9816 (w32font_encode_char, w32font_text_extents, w32font_draw):
9817 Adjusted for the change of struct w32font_info.
9818 (w32font_draw): Likewise.
9819 (w32font_list_internal): Return a list, not vector.
9820 (w32font_open_internal): Change the 4th arg to font-object.
9821 Adjusted for the change of struct w32font_info and font-object format.
9822 (add_font_name_to_list): Don't downcase names.
9823 (w32_enumfont_pattern_entity): Make a font-entity by
9824 font_make_entity. Adjusted for the format change of font-entity.
9825 Use FONT_SET_STYLE to set a style-related font property. If a
9826 font is scalable, set avgwidth property to 0. Set font-entity
9827 property by font_put_extra.
9828 (font_matches_spec): Adjusted for the format change of font-entity.
9829 (w32_weight_table, w32_decode_weight): New variables.
9830 (w32_encode_weight): New function.
9831 (fill_in_logfont): Adjusted for the format change of font-spec.
9832 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
9833 weight value.
9834 (w32font_driver): Adjusted for the change of struct font_driver.
9835
9836 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
9837 conditionals. Don't check enable_font_backend. Surround non-used
9838 code by "#ifdef OLD_FONT" and "endif".
9839 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
9840 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
9841
9842 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
9843 conditionals. Don't check enable_font_backend. Delete all codes
9844 used only when USE_FONT_BACKEND is not defined. Surround non-used
9845 code by "#ifdef OLD_FONT" and "endif".
9846
9847 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
9848 (uniscribe_open): Return value changed to font-object.
9849 Adjusted for the format change of font-object.
9850 (uniscribe_otf_capability): Adjusted for the change of struct font.
9851 (add_opentype_font_name_to_list): Don't downcase names.
9852 (uniscribe_font_driver): Adjusted for the change of struct
9853 font_driver.
9854
9855 2008-05-13 Chong Yidong <cyd@stupidchicken.com>
9856
9857 * dispnew.c (update_frame_1): Check if tty output is still valid
9858 before flushing it.
9859
9860 2008-05-13 Jan Djärv <jan.h.d@swipnet.se>
9861
9862 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
9863 to Gtk+ menus.
9864
9865 2008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
9866
9867 * dired.c (file_name_completion): Tweak the code so as to always do it
9868 in a single pass. Tighten the scope of some variables.
9869
9870 * dired.c (Qdefault_directory): New var.
9871 (file_name_completion): Use it instead of Fexpand_file_name.
9872 (syms_of_dired): Initialize it.
9873
9874 2008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
9875
9876 * fileio.c (double_dollars): Remove dead code.
9877
9878 2008-05-10 Eli Zaretskii <eliz@gnu.org>
9879
9880 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
9881 Mention w32-get-true-file-attributes in doc string.
9882
9883 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
9884
9885 2008-05-09 Glenn Morris <rgm@gnu.org>
9886
9887 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
9888 2008-04-23.
9889
9890 2008-05-09 Eli Zaretskii <eliz@gnu.org>
9891
9892 Support for reporting owner and group of each file on MS-Windows:
9893 * dired.c (stat_uname, stat_gname): New functions, with special
9894 implementation for w32.
9895 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
9896
9897 * w32.c: Rename the_passwd_* to dflt_passwd_*.
9898 (dflt_group_name): New static variable.
9899 (dflt_group): Rename from the_group.
9900 (init_user_info): Init dflt_group fields. Get user's group name
9901 from LookupAccountSid.
9902 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
9903 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
9904 New initialization states.
9905 (globals_of_w32): Initialize them to zero. Initialize the default
9906 group name to "None".
9907 (GetFileSecurity_Name): New global var, the name of the function
9908 to call for GetFileSecurity.
9909 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
9910 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
9911 (get_file_security, get_security_descriptor_owner)
9912 (get_security_descriptor_group, is_valid_sid)
9913 (get_file_security_desc, get_rid, get_name_and_id)
9914 (get_file_owner_and_group): New functions.
9915 (stat): Use get_file_security_desc and get_file_owner_and_group to
9916 report the owner and primary group of each file. Don't ignore the
9917 high 32 bits of file's size, now that st_size is 64-bit wide.
9918 Fix test when to get true file attributes.
9919 (init_user_info): Use get_rid instead of equivalent inline code.
9920 (fstat): Don't ignore the high 32 bits of file's size.
9921
9922 2008-05-09 Chong Yidong <cyd@stupidchicken.com>
9923
9924 * image.c (png_load): Use correct bit-depth for setting background
9925 color.
9926
9927 2008-05-08 Eli Zaretskii <eliz@gnu.org>
9928
9929 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
9930 epa-hook.elc.
9931
9932 2008-05-08 Juanma Barranquero <lekktu@gmail.com>
9933
9934 * font.c (Ffont_match_p): Don't use `iff' in docstring.
9935
9936 2008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
9937
9938 * macfns.c (Fx_create_frame): Make a copy of frame parameters
9939 because the original parameters are in pure storage now.
9940 (mac_window): Remove unused params. Update callers.
9941
9942 2008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
9943
9944 * lread.c (substitute_object_recurse): Use lower-level primitives.
9945 Don't signal errors when traversing sub-char-tables.
9946 Don't loop over all the possible characters when traversing char-tables.
9947
9948 * print.c (print_preprocess): Add sub-char-tables to the print-table,
9949 just like we do in print.c.
9950
9951 2008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
9952
9953 * minibuf.c (Ftry_completion): Remove code left over from when we used
9954 scmp instead of Fcompare_strings.
9955
9956 2008-05-04 Juanma Barranquero <lekktu@gmail.com>
9957
9958 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
9959
9960 2008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9961
9962 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
9963 Create bitmap context in native byte order.
9964
9965 * macterm.c (XDrawLine)
9966 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
9967 context in native byte order.
9968
9969 2008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9970
9971 * config.in: Regenerate.
9972
9973 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
9974 New definitions for Image I/O support.
9975 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
9976 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
9977 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
9978 (mac_data_provider_release_data, image_load_image_io)
9979 [USE_MAC_IMAGE_IO]: New functions.
9980 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
9981 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
9982 (init_image_func_pointer) [MAC_OSX]: Remove function.
9983 (image_load_quartz2d) [MAC_OSX]: Check availability of
9984 CGImageCreateWithPNGDataProvider at compile time.
9985 Use lowercase `false' for boolean constant.
9986 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
9987 Use image_load_image_io.
9988 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
9989 Don't check MyCGImageCreateWithPNGDataProvider.
9990 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
9991 Don't call init_image_func_pointer.
9992
9993 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
9994
9995 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
9996 Make variable non-static.
9997 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
9998 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
9999
10000 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
10001 (RED_FROM_ULONG): Mask off higher bits.
10002 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
10003
10004 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
10005 Include AvailabilityMacros.h.
10006 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
10007 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
10008
10009 2008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
10010
10011 * chartab.c (Fset_char_table_range): If range is t, really set all
10012 chars to that value.
10013
10014 2008-05-03 Eli Zaretskii <eliz@gnu.org>
10015
10016 * dired.c (Ffile_attributes): Don't allow the device number become
10017 negative.
10018
10019 2008-05-02 Daiki Ueno <ueno@unixuser.org>
10020
10021 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
10022
10023 2008-05-02 Juri Linkov <juri@jurta.org>
10024
10025 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
10026 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
10027 DEFAULT argument as a list of default values in docstrings.
10028
10029 2008-05-01 Chong Yidong <cyd@stupidchicken.com>
10030
10031 * puresize.h (BASE_PURESIZE): Increase to 1210000.
10032
10033 2008-05-01 Martin Rudalics <rudalics@gmx.at>
10034
10035 * dispnew.c (change_frame_size_1): Preserve small windows when
10036 shrinking frames by calling set_window_height|width with third
10037 arg 2.
10038
10039 * window.h (struct window): Replace field too_small_ok by field
10040 resize_proportionally.
10041
10042 * window.c (make_window): Initialize resize_proportionally.
10043 (enlarge_window): Temporarily set resize_proportionally to make
10044 sure that shrink_windows does scale the window proportionally.
10045 (shrink_windows): When window has resize_proportionally set try
10046 to shrink it proportionally by stealing from other windows.
10047 (struct saved_window, Fset_window_configuration)
10048 (compare_window_configurations): Handle resize_proportionally.
10049 (WINDOW_TOTAL_SIZE): New macro.
10050 (window_min_size, shrink_windows, size_window): Use it.
10051 (check_min_window_sizes): Remove. Invalid values of
10052 window-min-height|width are handled by window_min_size_2 now.
10053 (size_window, Fsplit_window, enlarge_window)
10054 (adjust_window_trailing_edge, grow_mini_window): Don't call
10055 check_min_window_sizes.
10056 (window_min_size_2, window_min_size_1, window_min_size):
10057 New argument safe_p for retrieving "safe" minimum sizes.
10058 (Fdisplay_buffer, Fsplit_window, enlarge_window)
10059 (adjust_window_trailing_edge, grow_mini_window):
10060 Adjust arguments of window_min_size... functions.
10061 (shrink_windows): Argument min_size removed. New argument
10062 safe_p allows shrinking windows to their safe minimum sizes.
10063 Calculate minimum size and decide whether a window shall be
10064 deleted for each window individually.
10065 (size_window): When nodelete_p equals 2, tell shrink_windows to
10066 delete windows only if their new minimum size is no more safe.
10067 (shrink_window_lowest_first): Call window_min_size_1 to make
10068 sure to preserve modeline of bottom-most window when resizing
10069 the minibuffer.
10070 (Fset_window_configuration, Fcurrent_window_configuration)
10071 (compare_window_configurations): Do not handle
10072 window-min-height|width any more.
10073 (syms_of_window): Clarify window-min-height|width doc-strings.
10074
10075 2008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
10076
10077 * dired.c (file_name_completion): Fix up the encoding/decoding issue
10078 some more. Copy some of the code from Ftry_completions.
10079 Remove special case code that dates back to initial revision when the
10080 slash was only added when necessary and that can't trigger nowadays.
10081
10082 2008-04-27 Kenichi Handa <handa@m17n.org>
10083
10084 * font.c (font_prop_validate): Signal `error' instead of `font'.
10085
10086 2008-04-29 Jason Rumney <jasonr@gnu.org>
10087
10088 * w32fns.c (Fw32_battery_status): New defun.
10089 (syms_of_w32fns): Defsubr it.
10090
10091 2008-04-28 Andreas Schwab <schwab@suse.de>
10092
10093 * dired.c (file_name_completion): Fix another mixing of encoded
10094 and decoded names.
10095
10096 2008-04-28 Juanma Barranquero <lekktu@gmail.com>
10097
10098 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
10099
10100 2008-04-27 Juanma Barranquero <lekktu@gmail.com>
10101
10102 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
10103
10104 2008-04-27 Andreas Schwab <schwab@suse.de>
10105
10106 * dired.c (file_name_completion): Fix inappropriate mixing of
10107 encoded and decoded names.
10108
10109 * xterm.c (XTread_socket): Fix use of uninitialized variable.
10110
10111 * puresize.h (BASE_PURESIZE): Increase to 1200000.
10112
10113 2008-04-26 Eli Zaretskii <eliz@gnu.org>
10114
10115 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
10116 2008-03-31, it's not needed anymore with `struct stat' definition
10117 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
10118 for the same reasons.
10119
10120 2008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
10121
10122 * m/sparc.h: Additional redefinitions for GNU/Linux.
10123
10124 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10125
10126 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
10127 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
10128 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
10129 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
10130 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
10131 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
10132 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
10133 Likewise.
10134
10135 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
10136 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
10137 (mac_ax_number_of_characters): Add externs.
10138 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
10139 [USE_MAC_TSM]: Likewise.
10140 (mac_handle_text_input_event) [MAC_OSX]:
10141 Handle kEventTextInputOffsetToPos for no active input area case.
10142 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
10143 (mac_handle_document_access_event)
10144 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
10145 (install_application_handler) [MAC_OSX]: Register handlers for
10146 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
10147 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
10148 Register mac_handle_document_access_event.
10149
10150 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
10151 Make functions non-static.
10152
10153 2008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
10154
10155 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
10156 (read_file_name_completion_ignore_case, insert_default_directory)
10157 (Qdefault_directory): Move to minibuffer.el.
10158 (Fread_file_name): Call the new `read-file-name' instead.
10159
10160 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10161
10162 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
10163 Make function non-static.
10164 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
10165 Remove function.
10166 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
10167 Move to mactoolbox.c.
10168 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
10169
10170 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
10171 (mac_rect_make): New macro.
10172
10173 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
10174 instead of float.
10175 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
10176 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
10177 (XSetBackground) [USE_CG_DRAWING]: Likewise.
10178 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
10179 CGRectMake.
10180 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
10181 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
10182 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
10183 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
10184 instead of WindowRef in argument type.
10185 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
10186 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
10187 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
10188 instead of DISPLAY. All uses changed.
10189 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
10190 (x_calc_absolute_position): Simplify so as not to use
10191 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
10192
10193 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
10194 instead of WindowRef in argument type.
10195 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
10196 [TARGET_API_MAC_CARBON]: Remove externs.
10197 (create_apple_event, mac_event_parameters_to_lisp)
10198 [TARGET_API_MAC_CARBON]: Add externs.
10199
10200 * mactoolbox.c (Vmac_ts_script_language_on_focus)
10201 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
10202 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
10203 is clicked.
10204 (x_activate_menubar): Remove extern for saved_menu_event_location.
10205 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
10206 Move from mac.c.
10207
10208 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10209
10210 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
10211 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
10212
10213 2008-04-23 Jason Rumney <jasonr@gnu.org>
10214
10215 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
10216 attributes only for local files.
10217
10218 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
10219 default to Qlocal.
10220
10221 2008-04-22 Juri Linkov <juri@jurta.org>
10222
10223 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
10224 read-buffer-to-switch instead of using the letter "B".
10225
10226 2008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
10227
10228 * fileio.c (Qdefault_directory): New variable.
10229 (Fread_file_name): Use it to pass `dir' to the completion functions.
10230
10231 2008-04-20 Chong Yidong <cyd@stupidchicken.com>
10232
10233 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
10234
10235 2008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
10236
10237 * keyboard.c (Vpre_help_message): Remove.
10238 (show_help_echo): Remove default C code.
10239
10240 * dired.c (directory_files_internal, file_name_completion):
10241 Only call ENCODE_FILE if the string is indeed decoded.
10242
10243 2008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
10244
10245 * Makefile.in (TOOLKIT_DEFINES): Remove.
10246 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
10247
10248 2008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10249
10250 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
10251 (mactoolbox.o): New target.
10252
10253 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
10254 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
10255
10256 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
10257 Use mac_set_frame_window_background instead of XSetWindowBackground.
10258 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
10259 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
10260 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
10261 instead of SetWindowTitleWithCFString.
10262 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
10263 Move function to mactoolbox.c.
10264 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
10265 Use mac_set_window_modified instead of SetWindowModified.
10266 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
10267 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
10268 (Fx_focus_frame): Use mac_front_non_floating_window instead of
10269 FrontNonFloatingWindow. Use mac_activate_window instead of
10270 ActivateWindow. Use mac_active_non_floating_window instead of
10271 ActiveNonFloatingWindow.
10272 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
10273 Use mac_show_hourglass and mac_hide_hourglass.
10274 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
10275 instead of GetGlobalMouse.
10276 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
10277 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
10278 Use mac_bring_window_to_front instead of BringToFront.
10279 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
10280 mactoolbox.c.
10281 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
10282 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
10283 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
10284 mactoolbox.c.
10285
10286 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
10287 (XtPointer): Move typedef from macmenu.c.
10288 (enum button_type): Move enum from macmenu.c.
10289 (widget_value): Move typedef from macmenu.c.
10290 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
10291 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
10292 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
10293 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
10294 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
10295 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
10296 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
10297 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
10298 (Selection): Move typedef from macselect.c.
10299 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
10300 macterm.c.
10301 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
10302 (mac_is_window_collapsed, mac_bring_window_to_front)
10303 (mac_send_window_behind, mac_hide_window, mac_show_window)
10304 (mac_collapse_window, mac_front_non_floating_window)
10305 (mac_active_non_floating_window, mac_activate_window)
10306 (mac_move_window_structure, mac_move_window, mac_size_window)
10307 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
10308
10309 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
10310 (enum mac_menu_kind): Move enum to mactoolbox.c.
10311 (min_menu_id): Move variable to mactoolbox.c.
10312 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
10313 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
10314 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
10315 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
10316 [TARGET_API_MAC_CARBON]: Likewise.
10317 (XtPointer): Move typedef to macgui.h.
10318 (enum button_type): Move enum to macgui.h.
10319 (widget_value): Move typedef to macgui.h.
10320 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
10321 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
10322 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
10323 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
10324 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
10325 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
10326 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
10327 (popup_activated_flag): Make variable non-static.
10328 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
10329 (add_menu_item, fill_menu, dispose_menus):
10330 Move functions to mactoolbox.c.
10331 (restore_show_help_function, menu_target_item_handler)
10332 (install_menu_target_item_handler, mac_handle_dialog_event)
10333 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
10334 [TARGET_API_MAC_CARBON]: Likewise.
10335 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
10336 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
10337 (find_and_call_menu_selection, name_is_separator): Make function
10338 non-static.
10339 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
10340 to mactoolbox.c.
10341 (set_frame_menubar): Don't call install_menu_quit_handler.
10342 (menu_item_selection): New variable.
10343 (mac_menu_show): Use create_and_show_popup_menu.
10344 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
10345 selection but set variable menu_item_selection. All uses changed.
10346 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
10347 Call install_menu_quit_handler. Move to mactoolbox.c.
10348
10349 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
10350 (Selection): Move typedef to macgui.h.
10351 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
10352 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
10353 Make variables non-static.
10354 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
10355 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
10356 Make functions non-static.
10357 (Vmac_service_selection) [MAC_OSX]: Likewise.
10358 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
10359 (mac_valid_selection_target_p, mac_clear_selection)
10360 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
10361 (mac_put_selection_value, mac_selection_has_target_p)
10362 (mac_get_selection_value, mac_get_selection_target_list)
10363 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
10364 Move functions to mactoolbox.c.
10365 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
10366 Likewise.
10367 (copy_scrap_flavor_data, mac_handle_service_event)
10368 (install_service_handler) [MAC_OSX]: Likewise.
10369 (syms_of_macselect) <Vmac_dnd_known_types>:
10370 Use mac_dnd_default_known_types.
10371
10372 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
10373 Move to mactoolbox.c.
10374 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
10375 (Fx_selection_owner_p): Add EXFUN.
10376 (install_window_handler, remove_window_handler, XSetWindowBackground):
10377 Remove externs.
10378 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
10379 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
10380 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
10381 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
10382 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
10383 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
10384 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
10385 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
10386 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
10387 (create_and_show_popup_menu, mac_get_selection_from_symbol)
10388 (mac_valid_selection_target_p, mac_clear_selection)
10389 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
10390 (mac_put_selection_value, mac_selection_has_target_p)
10391 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
10392 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
10393 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
10394 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
10395 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
10396 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
10397 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
10398 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
10399 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
10400
10401 * mactoolbox.c: New file.
10402
10403 2008-04-18 Jason Rumney <jasonr@gnu.org>
10404
10405 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
10406
10407 2008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
10408
10409 * character.c (Fmultibyte_char_to_unibyte):
10410 Return latin1 chars unchanged.
10411
10412 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
10413 relocated if it points to `name'.
10414
10415 2008-04-17 Kenichi Handa <handa@m17n.org>
10416
10417 * data.c (Faset): Allow setting a multibyte character in an
10418 ASCII-only unibyte string.
10419
10420 * lisp.h (STRING_SET_MULTIBYTE): New macro.
10421
10422 2008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
10423
10424 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
10425 done in config.h.
10426
10427 2008-04-16 Juanma Barranquero <lekktu@gmail.com>
10428
10429 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
10430 (Fchar_direction): Add usage in the docstring.
10431
10432 2008-04-15 Chong Yidong <cyd@stupidchicken.com>
10433
10434 * keyboard.c (read_key_sequence): Remove always-true checks.
10435
10436 2008-04-14 Jason Rumney <jasonr@gnu.org>
10437
10438 * w32font.c (w32font_open_internal): Set max_bounds.descent in
10439 compatibility struct, for better underline positioning.
10440
10441 2008-04-13 David Hansen <david.hansen@gmx.net>
10442
10443 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
10444 string.
10445
10446 2008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
10447
10448 * m/hp800.h (XUINT, XSET): Remove.
10449
10450 2008-04-12 Juanma Barranquero <lekktu@gmail.com>
10451
10452 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
10453 previous change.
10454
10455 2008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
10456
10457 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
10458 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
10459
10460 2008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
10461
10462 * keymap.h (map_keymap_canonical): Declare.
10463 * xmenu.c (single_keymap_panes): Use it.
10464
10465 2008-04-11 Glenn Morris <rgm@gnu.org>
10466
10467 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
10468 set the target's value to that of the alias.
10469
10470 2008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
10471
10472 * term.c (set_tty_color_mode): Left over typo.
10473
10474 2008-04-10 Michael Albinus <michael.albinus@gmx.de>
10475
10476 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
10477 only after check for file name handler functions. Signal, when
10478 native functionality is not supported.
10479 (syms_of_fileio): Declare it unconditionally.
10480
10481 2008-04-10 Jason Rumney <jasonr@gnu.org>
10482
10483 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
10484 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
10485
10486 * w32.c (logon_network_drive): Also logon to remote drives that
10487 are mapped to drive letters.
10488
10489 2008-04-10 Glenn Morris <rgm@gnu.org>
10490
10491 * xdisp.c (truncate-partial-width-windows): Doc fix.
10492
10493 2008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
10494
10495 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
10496 Move functions to minibuffer.el.
10497 (syms_of_fileio): Don't declare them.
10498
10499 2008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
10500
10501 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
10502 (syms_of_minibuf): Remove its initialization.
10503
10504 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
10505
10506 2008-04-09 Juanma Barranquero <lekktu@gmail.com>
10507
10508 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
10509
10510 2008-04-09 Jason Rumney <jasonr@gnu.org>
10511
10512 * makefile.w32-in (distclean): Delete makefile too.
10513 (maintainer-clean): New target.
10514
10515 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
10516
10517 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
10518 for new font backend and composite cases.
10519
10520 2008-04-09 Jan Djärv <jan.h.d@swipnet.se>
10521
10522 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
10523 Most of the code moved to run_timers.
10524 (do_pending_atimers): Call run_timers.
10525 (run_timers): New function.
10526
10527 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
10528 run atimers.
10529
10530 * process.c (wait_reading_process_output): The same as above.
10531
10532 2008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
10533
10534 * minibuf.c (last_exact_completion): Remove variable.
10535 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
10536 (complete_and_exit_1, complete_and_exit_2)
10537 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
10538 (Fdisplay_completion_list, display_completion_list_1)
10539 (Fminibuffer_completion_help, Fself_insert_and_exit)
10540 (Fexit_minibuffer, Fminibuffer_message): Move functions to
10541 minibuffer.el.
10542 (syms_of_minibuf): Remove corresponding initializations.
10543
10544 * keyboard.c (Qdeactivate_mark): New var.
10545 (command_loop_1): Use it to call `deactivate-mark'.
10546 (syms_of_keyboard): Initialize it.
10547
10548 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
10549 to another frame.
10550 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
10551 Don't call set_tty_color_mode.
10552 (store_frame_param): Reset previous_frame rather than call
10553 set_tty_color_mode.
10554 * term.c (set_tty_color_mode): Rewrite.
10555 * dispextern.h (set_tty_color_mode): New type.
10556 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
10557
10558 2008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
10559
10560 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
10561 for generic chars, which do not exist any more in emacs-unicode.
10562
10563 2008-04-08 Michael Albinus <michael.albinus@gmx.de>
10564
10565 * coding.c (detect_coding_emacs_mule)
10566 (Ffind_operation_coding_system): Fix typo.
10567
10568 2008-04-08 Jason Rumney <jasonr@gnu.org>
10569
10570 * w32uniscribe.c (SNAME): Extract only symbol name.
10571
10572 * w32font.h (struct w32_metric_cache): New struct.
10573 (w32font_info): Use it.
10574 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
10575 (CACHE_BLOCKSIZE): New constants.
10576
10577 * w32font.c (Qja, Qko, Qzh): New symbols.
10578 (syms_of_w32font): Initialise them.
10579 (font_matches_spec): Use them to filter by language.
10580 (recompute_cached_metrics): Remove function.
10581 (compute_metrics, clear_cached_metrics): New functions.
10582 (w32font_encode_char): Use them to manage metric cache.
10583 (w32font_text_extents): Cache metrics for all glyphs on demand.
10584 Delay converting glyph indices to WORD until needed.
10585 (w32font_open_internal): Initialize metric cache to empty.
10586 (registry_to_w32_charset): Charset should always be a symbol.
10587 (fill_in_logfont, list_all_matching_fonts): Family should
10588 always be a symbol.
10589
10590 2008-04-06 Jason Rumney <jasonr@gnu.org>
10591
10592 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
10593 Give up if glyph indices not supported. Use uniscribe obtained
10594 ABC widths for individual metrics. Map glyph clusters back to
10595 characters using fClusterStart flag. Return number of glyphs
10596 produced, not chars processed.
10597 (uniscribe_shape): Map char at FROM to current glyph.
10598
10599 2008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10600
10601 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
10602 Use SetMenuItemHierarchicalMenu.
10603
10604 2008-04-05 Jason Rumney <jasonr@gnu.org>
10605
10606 * image.c (pbm_load): Allow color values up to 65535.
10607 Throw an error if max_color_idx is outside the supported range.
10608 Report an error when image size is invalid.
10609 Read two bytes at a time when raw images have max_color_idx above 255.
10610
10611 2008-04-05 Eli Zaretskii <eliz@gnu.org>
10612
10613 * w32.c (readdir): If FindFirstFile/FindNextFile return in
10614 cFileName a file name that includes `?' characters, use the 8+3
10615 alias in cAlternateFileName instead.
10616
10617 2008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
10618
10619 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
10620 append "CCL: Quitted" when the CCL program is quitted.
10621 (setup_ccl_program): Initialize ccl->quit_silently to zero.
10622
10623 * ccl.h (struct ccl_program): New member quit_silently.
10624
10625 2008-04-05 Chong Yidong <cyd@stupidchicken.com>
10626
10627 * search.c (compile_pattern_1): Treat non-nil and non-string of
10628 search-spaces-regexp as nil.
10629
10630 * minibuf.c (Fassoc_string): Tweak docstring.
10631
10632 2008-04-05 Eli Zaretskii <eliz@gnu.org>
10633
10634 * dired.c (Ffile_attributes): Support inode numbers wider than 32
10635 bits. Remove ugly WINDOWSNT-specific kludge introduced on
10636 2008-03-14 to force inode be positive.
10637
10638 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
10639 _S_* ones, since we now use our own sys/stat.h.
10640 (stat, fstat): Don't mangle the inode number.
10641 (init_user_info): Don't restrict UID and GID to 0-60000 range.
10642
10643 2008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
10644
10645 * frame.h (struct frame): Give one more bit to `visible' since we use
10646 values larger than 1 to indicate obscured frames on ttys.
10647
10648 * keymap.c (Qkeymap_canonicalize): New var.
10649 (Fmap_keymap_internal): New fun.
10650 (describe_map): Use keymap-canonicalize.
10651
10652 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
10653 (Fundo_boundary): Set them.
10654 (syms_of_undo): Initialize them.
10655 (record_point): Use them instead of last_point_position*.
10656 (last_undo_buffer): Change type.
10657
10658 2008-04-04 Jason Rumney <jasonr@gnu.org>
10659
10660 * w32font.c (w32font_text_extents): Use font's ascent and descent.
10661 (recompute_cached_metrics): Don't set ascent and descent per char.
10662
10663 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
10664 (uniscribe_check_otf): Add GC protection before consing.
10665 Rearrange loop for counting features.
10666
10667 2008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
10668
10669 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
10670 buffer with byte-size of source buffer.
10671
10672 2008-04-03 Chong Yidong <cyd@stupidchicken.com>
10673
10674 * callint.c (Fcall_interactively): Handle temporary region even
10675 when shift-select-mode is off.
10676
10677 2008-04-03 Jason Rumney <jasonr@gnu.org>
10678
10679 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
10680
10681 2008-04-03 Kenichi Handa <handa@m17n.org>
10682
10683 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
10684 (CATEGORY_MASK_UTF_16): Likewise.
10685 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
10686 binary file.
10687 (detect_coding): Add null-byte detection for a binary file.
10688 (detect_coding_system): Likewise.
10689
10690 2008-04-03 Jason Rumney <jasonr@gnu.org>
10691
10692 * w32uniscribe.c: New file.
10693
10694 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
10695
10696 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
10697
10698 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
10699 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
10700 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
10701 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
10702 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
10703 (Qphonetic): New symbols.
10704 (syms_of_w32font): Initialize them.
10705 (font_supported_scripts): Use them.
10706 (w32font_list_family): List all charsets.
10707 (w32font_text_extents, recompute_cached_metrics): Fix metric
10708 calculations.
10709 (w32_enumfont_pattern_entity): Make full_type a DWORD.
10710 Give opentype fonts their own format.
10711 (font_matches_spec): New arguments backend and logfont.
10712 Handle :otf spec for uniscribe backend.
10713 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
10714 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
10715
10716 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
10717 font backend.
10718 (globals_of_w32fns): Initialize uniscribe font backend.
10719
10720 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
10721 dependencies.
10722 (w32uniscribe.$(O)): New file to build.
10723 (FONT_OBJ): Include w32uniscribe.$(O).
10724 (LIBS): Add uniscribe libraries.
10725
10726 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
10727
10728 2008-04-02 Chong Yidong <cyd@stupidchicken.com>
10729
10730 * callint.c (Vshift_select_mode): New var.
10731 (Finteractive): Document new ^ spec.
10732 (Fcall_interactively): Call handle-shift-selection if the ^ spec
10733 is present.
10734
10735 * keyboard.c (Vthis_command_keys_shift_translated): New var.
10736 (command_loop_1): Avoid running the direct display versions of
10737 forward-char and backward-char if shift-selection may occur.
10738 (read_key_sequence): Set Vthis_command_keys_shift_translated if
10739 shift-translation takes place.
10740
10741 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
10742 avoid clobbering by define-minor-mode.
10743
10744 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
10745 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
10746
10747 * syntax.c (Fforward_word): Add ^ interactive spec.
10748
10749 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
10750 (Fscroll_right): Add ^ interactive spec.
10751
10752 2008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
10753
10754 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
10755
10756 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
10757
10758 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
10759
10760 2008-03-31 Juri Linkov <juri@jurta.org>
10761
10762 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
10763
10764 2008-03-30 Jan Djärv <jan.h.d@swipnet.se>
10765
10766 * gtkutil.c (xg_set_geometry): Fix indentation.
10767 (xg_resize_outer_widget): Remove.
10768 (x_wm_size_hint_off): Fix indentation.
10769 (xg_frame_set_char_size): Call flush_and_sync after
10770 gtk_window_resize.
10771 (x_wm_set_size_hint): Pass NULL as geometry window to
10772 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
10773 Add menu bar and tool bar height to base height.
10774 (xg_update_frame_menubar, free_frame_menubar)
10775 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
10776 (update_frame_tool_bar, free_frame_tool_bar):
10777 Change xg_resize_outer_widget to xg_frame_set_char_size.
10778
10779 2008-03-30 Michael Albinus <michael.albinus@gmx.de>
10780
10781 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
10782 (Fdbus_call_method): New parameter TIMEOUT.
10783 (dbus-send-signal): Optimize UNGCPRO call.
10784
10785 2008-03-29 Juri Linkov <juri@jurta.org>
10786
10787 * window.c (Fdisplay_buffer): Move call to
10788 Vsplit_window_preferred_function out of conditions that check
10789 if window is eligible for vertical splitting.
10790 When Vsplit_window_preferred_function is non-nil, call it and use
10791 its non-nil return value as window. Otherwise, continue doing
10792 vertical splitting using Fsplit_window with arg horflag=nil.
10793 (syms_of_window) <Vsplit_window_preferred_function>: Change the
10794 default value from `split-window' to nil.
10795
10796 2008-03-29 Juri Linkov <juri@jurta.org>
10797
10798 * callint.c (Fcall_interactively): Revert 2008-03-16 change
10799 for interactive code letters 'b' and 'B'.
10800
10801 2008-03-29 Eli Zaretskii <eliz@gnu.org>
10802
10803 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
10804 multibyte string.
10805
10806 2008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
10807
10808 * keyboard.c (pending_funcalls): New var.
10809 (timer_check): Run it.
10810 (syms_of_keyboard): Initialize it.
10811 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
10812 (Vdelete_terminal_functions): New vars.
10813 (syms_of_terminal): Initialize them.
10814 (Fdelete_terminal): Run delete-terminal-functions.
10815 * xdisp.c (safe_eval): Rewrite.
10816 (safe_call2): New fun.
10817 * frame.c (Qdelete_frame_functions): New var.
10818 (syms_of_frame): Initialize it.
10819 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
10820 * lisp.h (safe_call2, pending_funcalls): Declare.
10821
10822 2008-03-28 Andreas Schwab <schwab@suse.de>
10823
10824 * indent.c (Fmove_to_column): Move declaration before statements.
10825
10826 2008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
10827
10828 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
10829 (struct frame): Use bit fields for boolean vars.
10830
10831 * process.c (server_accept_connection): Simplify naming.
10832 (emacs_get_tty_pgrp): Use SDATA.
10833
10834 * coding.c (decode_coding_object): Fix last change.
10835
10836 2008-03-27 Jason Rumney <jasonr@gnu.org>
10837
10838 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
10839
10840 2008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
10841
10842 * charset.c (Fdefine_charset_internal): Change the way of
10843 registering charsets in Vcharset_order_list.
10844 (syms_of_charset): Make the charset `eight-bit' supplementary.
10845
10846 2008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
10847
10848 * regex.c (EXTEND_BUFFER): Change order of pointer addition
10849 operations, to avoid having the difference between pointers
10850 overflow.
10851
10852 2008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
10853
10854 * indent.c (check_display_width): New fun.
10855 (scan_for_column): Use it.
10856
10857 * data.c (syms_of_data): Mark most-positive-fixnum and
10858 most-negative-fixnum as constants.
10859
10860 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
10861
10862 * indent.c (scan_for_column): Extract from current_column_1.
10863 Merge with the same code from Fmove_to_column.
10864 (current_column_1, Fmove_to_column): Use it.
10865
10866 2008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
10867
10868 * keymap.c (map_keymap_internal): New fun.
10869 (map_keymap): Use it.
10870 (Fmap_keymap_internal): New fun.
10871 (Fmap_keymap): Remove left-out test from before make_save_value.
10872
10873 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
10874
10875 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
10876 Use XCAR/XCDR.
10877
10878 * process.h (struct Lisp_Process): Remove filter_multibyte.
10879 * process.c (QCfilter_multibyte): Remove.
10880 (setup_process_coding_systems): Don't use filter_multibyte.
10881 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
10882 (read_process_output): Don't adjust multibyteness to filter_multibyte.
10883 (Fset_process_filter_multibyte): Change the coding-system to
10884 approximate the previous behavior.
10885 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
10886 coding-system.
10887
10888 * coding.c (decode_coding_object): When not decoding into a buffer,
10889 obey the coding system's preference of (uni|multi)byte.
10890
10891 2008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
10892
10893 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
10894 every char is changed and has a different byte-length.
10895 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
10896 Fix int -> EMACS_INT.
10897
10898 2008-03-23 David Hansen <david.hansen@gmx.net>
10899
10900 * dbusbind.c (xd_read_message): Remove extra copying of message
10901 strings. Check for NULL `interface' or `member'.
10902
10903 2008-03-22 Eli Zaretskii <eliz@gnu.org>
10904
10905 * w32.c (readdir): If FindFirstFile/FindNextFile return in
10906 cFileName a file name that includes `?' characters, use the 8+3
10907 alias in cAlternateFileName instead.
10908
10909 2008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
10910
10911 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
10912
10913 2008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
10914
10915 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
10916 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
10917 work on current_buffer only instead (that was already the case
10918 for some of the code anyway).
10919 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
10920 (temp_set_point, temp_set_point_both): Use EMACS_INT.
10921 (SET_PT, SET_PT_BOTH): Adjust.
10922 * intervals.h (set_point, temp_set_point, set_point_both)
10923 (temp_set_point_both): Remove redundant declarations.
10924
10925 2008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
10926
10927 * fileio.c (Finsert_file_contents):
10928 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
10929 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
10930 when buffer != current_buffer anyway.
10931
10932 2008-03-20 Andreas Schwab <schwab@suse.de>
10933
10934 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
10935 as default.
10936
10937 2008-03-19 Jason Rumney <jasonr@gnu.org>
10938
10939 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
10940 (syms_of_w32fns): Initialize them.
10941 (HOURGLASS_ID): New constant.
10942 (x_window_to_frame): Don't check hourglass_window.
10943 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
10944 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
10945 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
10946 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
10947 Only change the cursor if hourglass is not active.
10948 (Fx_create_frame): Initialize frame's current_cursor.
10949 (hourglass_atimer): Remove.
10950 (hourglass_started): New function.
10951 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
10952 (show_hourglass): Adapt to w32, changing argument to frame.
10953
10954 * w32term.h (struct w32_output): Remove hourglass_window.
10955 Add current_cursor.
10956
10957 * eval.c (call_debugger, Fsignal):
10958 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
10959 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
10960 (Fexecute_extended_command, cancel_hourglass_unwind):
10961 * minibuf.c (read_minibuf):
10962 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
10963
10964 2008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
10965
10966 * window.c (run_funs): New fun.
10967 (run_window_configuration_change_hook): Use it to run the buffer-local
10968 and the global part of the hook.
10969
10970 * xdisp.c (format_mode_line_unwind_data): Add window argument.
10971 (unwind_format_mode_line): Restore selected window.
10972 (x_consider_frame_title, Fformat_mode_line): Set selected window.
10973
10974 2008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
10975
10976 * editfns.c (Fchar_equal): Check they are valid characters.
10977
10978 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
10979
10980 2008-03-17 Andreas Schwab <schwab@suse.de>
10981
10982 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
10983 against a charset.
10984
10985 * lisp.h (Fbuffer_list): Declare.
10986
10987 2008-03-17 Jan Djärv <jan.h.d@swipnet.se>
10988
10989 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
10990 handlebox_widget is != 0.
10991
10992 2008-03-16 Juri Linkov <juri@jurta.org>
10993
10994 * callint.c (Fcall_interactively): For interactive code letters
10995 'b' and 'B' put the buffer list into the list of default "future"
10996 values of the minibuffer.
10997
10998 2008-03-16 Andreas Schwab <schwab@suse.de>
10999
11000 * keyboard.c (read_key_sequence): Fix downcasing of letters with
11001 modifiers.
11002
11003 * regex.c (re_match_2_internal): Correct matching of a charset
11004 against latin-1 characters.
11005
11006 2008-03-16 Kenichi Handa <handa@m17n.org>
11007
11008 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
11009 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
11010 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
11011 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
11012 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
11013 CHAR_STRING_ADVANCE.
11014 (produce_chars): Fix for the case that the source and the
11015 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
11016 instead of CHAR_STRING_ADVANCE.
11017 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
11018 STRING_CHAR_ADVANCE.
11019
11020 2008-03-15 Andreas Schwab <schwab@suse.de>
11021
11022 * regex.c (re_match_2_internal): Correct matching of eight bit
11023 characters in unibyte strings.
11024
11025 2008-03-15 Martin Rudalics <rudalics@gmx.at>
11026
11027 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
11028 at end of range when it coincides with the end of the buffer.
11029
11030 2008-03-14 Eli Zaretskii <eliz@gnu.org>
11031
11032 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
11033
11034 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
11035
11036 2008-03-14 Jason Rumney <jasonr@gnu.org>
11037
11038 * editfns.c (initial_tz): New variable.
11039 (syms_of_editfns): Initialize it.
11040 (Fset_time_zone_rule): Set it when first called.
11041 Use it when TZSTRING is nil.
11042
11043 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
11044 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
11045 (monitor_from_point_fn, get_monitor_info_fn): New globals.
11046 (globals_of_w32fns): Initialize them.
11047 (compute_tip_xy): Use them to position tooltips.
11048
11049 2008-03-14 Glenn Morris <rgm@gnu.org>
11050
11051 * emacs.c (main): Revert previous change.
11052 (standard_args): Revert -internal-script back to -scriptload,
11053 and remove the long-option form.
11054
11055 2008-03-13 Glenn Morris <rgm@gnu.org>
11056
11057 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
11058 Remove option -enable-font-backend.
11059
11060 2008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
11061
11062 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
11063
11064 2008-03-11 Jan Djärv <jan.h.d@swipnet.se>
11065
11066 * xterm.c (x_connection_closed): For GTK: If this is the last
11067 terminal just exit without closing the display.
11068
11069 2008-03-11 Jason Rumney <jasonr@gnu.org>
11070
11071 * w32font.c (w32font_full_name): Use floor to round.
11072
11073 2008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
11074
11075 * sound.c (alsa_configure): Declare vol at beginning of block.
11076
11077 * fontset.c (Ffontset_info): Remove extra semicolon.
11078
11079 2008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
11080
11081 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
11082 size of resulting string.
11083
11084 2008-03-10 Jason Rumney <jasonr@gnu.org>
11085
11086 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
11087
11088 2008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11089
11090 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
11091 Don't pretend as if characters with display property haven't been
11092 consumed for string-replacing-string case.
11093
11094 2008-03-08 Kim F. Storm <storm@cua.dk>
11095
11096 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
11097 (get_next_display_element, next_element_from_string)
11098 (next_element_from_ellipsis, next_element_from_buffer): Use it.
11099
11100 2008-03-08 Andreas Schwab <schwab@suse.de>
11101
11102 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
11103
11104 2008-03-06 Jason Rumney <jasonr@gnu.org>
11105
11106 * w32font.c (w32_registry): Take font_type argument. Use ANSI
11107 when charset not specified. Only translate ANSI to unicode when
11108 font_type is truetype.
11109 (w32font_coverage_ok): New function.
11110 (add_font_entity_to_list): Use it to filter unsuitable fonts.
11111
11112 2008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
11113
11114 * lread.c (Fread_char): Resolve modifiers.
11115 (Fread_char_exclusive): Likewise.
11116
11117 * character.c (char_resolve_modifier_mask): New function.
11118 (char_string): Use char_resolve_modifier_mask.
11119 (Fchar_resolve_modifiers): New function.
11120 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
11121 function.
11122
11123 2008-03-04 Jason Rumney <jasonr@gnu.org>
11124
11125 * makefile.w32-in: Always include w32font.c in the build.
11126 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
11127
11128 2008-03-04 Andreas Schwab <schwab@suse.de>
11129
11130 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
11131 (versionclean): Likewise.
11132
11133 2008-03-04 Juanma Barranquero <lekktu@gmail.com>
11134
11135 * .cvsignore: Add oo.
11136
11137 2008-03-03 Andreas Schwab <schwab@suse.de>
11138
11139 * coding.c (decode_coding_object): Inhibit gap shrinking while
11140 decoding in place.
11141
11142 2008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
11143
11144 * w32term.c: Remove unused include "gnu.h".
11145 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
11146
11147 * gnu.h: Rename to ...
11148 * emacs-icon.h: ... this.
11149 * xterm.c: Use emacs-icon.h instead of gnu.h.
11150 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
11151
11152 2008-03-03 Juanma Barranquero <lekktu@gmail.com>
11153
11154 * w32font.c: Include math.h.
11155
11156 2008-03-03 Jason Rumney <jasonr@gnu.org>
11157
11158 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
11159 Compute options separately.
11160 (w32font_open_internal): Set glyph_idx before caching metrics.
11161
11162 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
11163 Define if system headers don't.
11164 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
11165 (w32font_encode_char): Don't declare here.
11166
11167 * w32font.c (Quniscribe, QCformat): New symbols.
11168 (syms_of_w32font): Define them.
11169 (w32font_has_char): Indicate uncertainty.
11170 (w32font_encode_char): Encode as glyph point. Make static.
11171 (recompute_cached_metrics): New function.
11172 (w32font_open_internal): Use it. Set font to use glyph points
11173 initially. Set format based on type of font.
11174 (w32font_text_extents, w32font_draw): Optionally use glyph points.
11175 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
11176 on it. Set format based on information available here.
11177 (add_font_entity_to_list): Identify backend based on opentype_only.
11178
11179 2008-03-02 Andreas Schwab <schwab@suse.de>
11180
11181 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
11182
11183 * coding.c (decode_coding_big5, produce_chars):
11184 Fix typos in last change.
11185
11186 2008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
11187
11188 * gnu.h: New icon.
11189
11190 2008-03-02 Kenichi Handa <handa@m17n.org>
11191
11192 * coding.c (decode_coding_utf_8): When eol-type of CODING is
11193 `dos', don't decode '\r' if that is the last in the source.
11194 (decode_coding_utf_16, decode_coding_emacs_mule)
11195 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
11196 (decode_coding_raw_text, decode_coding_charset): Likewise.
11197 (produce_chars): Don't decode EOL here. Use EMACS_INT.
11198
11199 2008-03-01 Jason Rumney <jasonr@gnu.org>
11200
11201 * w32font.c (w32font_full_name): Report point size for scalable fonts.
11202
11203 2008-03-01 Kim F. Storm <storm@cua.dk>
11204
11205 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
11206
11207 2008-03-01 Jason Rumney <jasonr@gnu.org>
11208
11209 * w32font.c (w32font_full_name): New function.
11210 (w32font_open_internal): Use it.
11211
11212 2008-03-01 Kim F. Storm <storm@cua.dk>
11213
11214 * dispnew.c (line_draw_cost): Fix invalid glyph check.
11215
11216 2008-03-01 Jason Rumney <jasonr@gnu.org>
11217
11218 * font.c (font_unparse_fcname): Increase len when style is a symbol.
11219
11220 2008-03-01 Jan Djärv <jan.h.d@swipnet.se>
11221
11222 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
11223 xg_frame_resized when the event is for the edit widget.
11224
11225 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
11226
11227 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
11228 set_char_size.
11229 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
11230 operations on widgets here. Just set frame size if needed.
11231 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
11232 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
11233 (x_wm_set_size_hint): Set size hints on the edit widget only, not
11234 the whole frame.
11235 (xg_create_tool_bar): Move attachment of the tool bar to
11236 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
11237 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
11238
11239 2008-03-01 Jason Rumney <jasonr@gnu.org>
11240
11241 * w32fns.c (w32_msg_pump): Disable debug code.
11242
11243 2008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11244
11245 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
11246
11247 2008-02-29 Chong Yidong <cyd@stupidchicken.com>
11248
11249 * xdisp.c (next_overlay_string): Don't set
11250 overlay_strings_at_end_processed_p if we're currently reading from
11251 a display string.
11252
11253 2008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
11254
11255 * xdisp.c (get_overlay_strings_1): Fix typo.
11256
11257 2008-02-29 Chong Yidong <cyd@stupidchicken.com>
11258
11259 * xdisp.c (get_overlay_strings_1): Add missing argument type.
11260
11261 2008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
11262
11263 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
11264
11265 * xdisp.c (display_mode_element): Cancel the previous change.
11266 (decode_mode_spec): Likewise.
11267 (handle_auto_composed_prop): Don't make composition if it->string
11268 is a string.
11269
11270 2008-02-27 Kim F. Storm <storm@cua.dk>
11271
11272 * lisp.h (GLYPH): Change type from int to struct with separate char
11273 and face_id members.
11274 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
11275 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
11276 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
11277 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
11278 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
11279 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
11280 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
11281 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
11282 handle new Lisp glyph code encoding, either an integer or a cons.
11283
11284 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
11285 (GLYPH_ALIAS): Delete.
11286 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
11287 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
11288 (GLYPH_FROM_CHAR): Replace macro by ...
11289 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
11290
11291 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
11292 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
11293 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
11294 (GLYPH_INVALID_P): New macro.
11295 (spec_glyph_lookup_face): Update prototype.
11296
11297 * dispnew.c (line_draw_cost): Adapt to new glyph type.
11298 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
11299 new glyph code encoding.
11300 (spec_glyph_lookup_face): No return value; update passed glyph instead.
11301 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
11302
11303 * xdisp.c (get_next_display_element, next_element_from_display_vector):
11304 Adapt to new glyph type and new glyph code encoding.
11305
11306 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
11307
11308 * indent.c (current_column, current_column_1, Fmove_to_column)
11309 (compute_motion): Adapt to new glyph code encoding.
11310
11311 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
11312
11313 2008-02-27 Chong Yidong <cyd@stupidchicken.com>
11314
11315 * process.c (wait_reading_process_output): Check for window
11316 changes caused by timers.
11317 Suggested by Johan Bockgård.
11318
11319 2008-02-27 Glenn Morris <rgm@gnu.org>
11320
11321 * emacs.c (USAGE1): Add `--disable-font-backend'.
11322
11323 2008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
11324
11325 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
11326 is made to the buffer.
11327
11328 2008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
11329
11330 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
11331 (face_at_string_position):
11332 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
11333 (face_at_string_position):
11334 * xdisp.c (display_string, next_overlay_change):
11335 * buffer.h (overlays_at):
11336 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
11337 Update callers.
11338
11339 2008-02-26 Chong Yidong <cyd@stupidchicken.com>
11340
11341 * editfns.c (Fformat): Doc fix.
11342
11343 2008-02-26 Juanma Barranquero <lekktu@gmail.com>
11344
11345 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
11346 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
11347 (Ffont_otf_alternates, Fquery_font): Doc fixes.
11348
11349 2008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
11350
11351 * buffer.c (Fbuffer_swap_text): New function.
11352 (syms_of_buffer): Defsubr it.
11353
11354 2008-02-25 Chong Yidong <cyd@stupidchicken.com>
11355
11356 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
11357
11358 2008-02-25 Jason Rumney <jasonr@gnu.org>
11359
11360 * w32font.c (w32font_draw): Draw one character at a time when padding.
11361
11362 2008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
11363
11364 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
11365 Handle a nil arg. Use run_window_configuration_change_hook.
11366 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
11367 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
11368 Use run_window_configuration_change_hook.
11369
11370 2008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
11371
11372 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
11373 1-pixel width.
11374
11375 2008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
11376
11377 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
11378 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
11379 if the glyph in the font is zero pixel with.
11380
11381 * dispextern.h (struct glyph_string): New member padding_p.
11382
11383 * w32font.c (w32font_draw): Pay attention to s->padding_p.
11384
11385 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
11386
11387 * xfont.c (xfont_draw): Pay attention to s->padding_p.
11388
11389 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
11390
11391 * font.c: If the font driver doesn't have `shape' function, return Qnil.
11392
11393 2008-02-25 Jason Rumney <jasonr@gnu.org>
11394
11395 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
11396
11397 2008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
11398
11399 Allow fine-grained image-cache flushing.
11400 * dispextern.h (struct image): Add `dependencies' field.
11401 (clear_image_caches): Change arg to Lisp_Object.
11402 * image.c (make_image): Initialize `dependencies' field.
11403 (clear_image_cache): Change arg to allow fine-grained flushing.
11404 Perform the flush even if image-cache-eviction-delay is nil.
11405 (clear_image_caches): Change arg to Lisp_Object.
11406 (Fclear_image_cache): Expand meaning of the argument.
11407 (mark_image): Mark `dependencies' field.
11408 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
11409 (lface_hash): Use XHASH rather than XFASTINT.
11410 (face_at_buffer_position): Fix int -> EMACS_INT position.
11411 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
11412 (select_frame_for_redisplay): Remove code duplication.
11413 (redisplay_internal): Adapt arg to call to clear_image_caches.
11414
11415 2008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
11416
11417 * s/vms4-0.h:
11418 * s/vms4-2.h:
11419 * s/vms4-4.h:
11420 * s/vms5-5.h: Remove, unused.
11421
11422 * s/irix5-2.h:
11423 * s/irix6-0.h:
11424 * s/riscos5.h:
11425 * s/mach-bsd4-3.h:
11426 * m/mips4.h: Remove files for obsolete systems.
11427
11428 * Makefile.in:
11429 * filelock.c:
11430 * unexmips.c:
11431 * m/hp9000s300.h:
11432 * m/iris4d.h:
11433 * s/aix3-1.h:
11434 * s/hpux.h:
11435 * s/msdos.h:
11436 * s/usg5-0.h:
11437 * s/usg5-2-2.h:
11438 * s/usg5-2.h:
11439 * s/usg5-3.h: Remove references to obsolete variables.
11440
11441 * s/irix5-0.h: Remove, move all the contents ...
11442 * s/irix6-5.h: ... here. Simplify.
11443 * config.in: Regenerate.
11444
11445 2008-02-24 Jason Rumney <jasonr@gnu.org>
11446
11447 * w32term.c (x_draw_glyph_string_background): Clear the background
11448 manually when cleartype is in use.
11449 (x_draw_glyph_string_foreground): Draw text transparently when
11450 cleartype is in use.
11451
11452 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
11453 a font into it unless we have to.
11454
11455 2008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
11456
11457 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
11458 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
11459
11460 2008-02-18 Jason Rumney <jasonr@gnu.org>
11461
11462 * w32fns.c (Fw32_shell_execute): Encode parameters.
11463
11464 2008-02-09 Eli Zaretskii <eliz@gnu.org>
11465
11466 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
11467
11468 2008-02-05 Juanma Barranquero <lekktu@gmail.com>
11469
11470 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
11471
11472 2008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
11473
11474 * xterm.c (x_set_offset): Don't change the gravity if
11475 CHANGE_GRAVITY is -1.
11476
11477 2008-02-23 Chong Yidong <cyd@stupidchicken.com>
11478
11479 * fileio.c (auto_save_error_occurred): New var.
11480 (auto_save_error): Set it.
11481 (Fdo_auto_save): Don't overwrite the error message if an auto-save
11482 error occurred.
11483
11484 2008-02-23 Eli Zaretskii <eliz@gnu.org>
11485
11486 * w32.c (globals_of_w32): Add initializations for
11487 g_b_init_get_sid_sub_authority and
11488 g_b_init_get_sid_sub_authority_count.
11489
11490 2008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
11491
11492 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
11493 (font_parse_xlfd): Use them for sanity check.
11494 (Finternal_set_font_style_table): Make sure the table is bijective.
11495
11496 Consolidate the image_cache to the terminal struct.
11497 * termhooks.h (P_): Remove redundant def.
11498 (struct terminal): New field `image_cache'.
11499 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
11500 of FRAME_X_IMAGE_CACHE.
11501 * xterm.h (struct x_display_info): Remove image_cache field.
11502 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
11503 * w32term.h (struct w32_display_info): Remove image_cache field.
11504 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
11505 * macterm.h (struct mac_display_info): Remove image_cache field.
11506 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
11507 * xterm.c (x_term_init):
11508 * w32term.c (w32_term_init):
11509 * macterm.c (mac_term_init): Set the image_cache in the terminal.
11510 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
11511 Remove declarations.
11512 (clear_image_caches, mark_image_cache): New declarations.
11513 * xfaces.c (clear_face_cache):
11514 * xdisp.c (redisplay_internal): Use clear_image_caches.
11515 * image.c (clear_image_cache): Don't check that a frame is on
11516 a window-system before checking if it shares the same cache.
11517 (clear_image_caches): New function.
11518 (Fclear_image_cache): Use it.
11519 (mark_image): Move from allo.c.
11520 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
11521 * alloc.c (mark_image, mark_image_cache): Move to image.c.
11522 (mark_object): Don't call mark_image_cache for frames.
11523 (mark_terminals): Call mark_image_cache.
11524
11525 * lisp.h (Fdelete_terminal): Declare.
11526
11527 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
11528 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
11529 wrong_type_argument.
11530
11531 2008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
11532
11533 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
11534 malayalam.el, and tamil.el. Add sinhala.el.
11535
11536 2008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
11537
11538 * xterm.c (x_connection_closed): Consolidate identical tests.
11539 (x_delete_terminal): Don't crash if called via x_connection_closed.
11540
11541 2008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
11542
11543 * xdisp.c (decode_mode_spec): New arg string.
11544 (display_mode_element): Adjust for the above change.
11545
11546 2008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
11547
11548 * callint.c (Fcall_interactively): Use AREF.
11549
11550 2008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
11551
11552 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
11553
11554 2008-02-18 Jan Djärv <jan.h.d@swipnet.se>
11555
11556 * xfns.c (Fx_show_tip): Set string to " " if empty.
11557
11558 2008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
11559
11560 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
11561 with Qt.
11562
11563 2008-02-17 Kenichi Handa <handa@m17n.org>
11564
11565 * ftfont.c (ftfont_shape): Return Lispy number.
11566
11567 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
11568 for GCs.
11569 (Finternal_set_font_selection_order): Call font_update_sort_order
11570 only when enable_font_backend is set.
11571 (realize_x_face): Set face->font_info to that of default face only
11572 when enable_font_backend is set.
11573
11574 * xdisp.c (handle_composition_prop): Set it->c to the fist
11575 character of the composed region.
11576 (fill_composite_glyph_string): Set base_face->font_info to
11577 s->font_info. Get a face for ascii from base_face->ascii_face.
11578 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
11579 with a face already decided.
11580 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
11581 non-negative.
11582 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
11583 call font_prepare_composition unconditionally.
11584
11585 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
11586
11587 * xterm.h (struct x_display_info): New member font.
11588
11589 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
11590 (x_set_mouse_face_gc, x_new_font): Likewise.
11591 (x_term_init): Setup display_info->font.
11592 (x_delete_terminal): Free display_info->font.
11593
11594 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
11595
11596 * ftxfont.c (ftxfont_default_fid): Delete it.
11597 (ftxfont_open): Set xfont->fid to 0.
11598 (ftxfont_end_for_frame): Clear data specific to the frame and the
11599 font-driver.
11600
11601 * xftfont.c (xftfont_default_fid): Delete it.
11602 (xftfont_open): Set xfont->fid to 0.
11603
11604 * fontset.c (FONTSET_OBJLIST): New macro.
11605 (fontset_find_font): Update font-object list of the fontset.
11606 (free_realized_fontset): New function.
11607 (free_face_fontset): Call free_realized_fontset.
11608 (Ffont_info): Call font_close_object only when enable_font_backend
11609 is set.
11610
11611 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
11612 [HAVE_NTGUI]: Include w32term.h.
11613 [MAC_OS]: Include macterm.ch.
11614 (font_otf_ValueRecord): Use make_number.
11615 (font_finish_cache): Fix handling of reference count.
11616 (font_clear_cache): Update num_fonts.
11617 (font_open_entity): Update smallest_char_width and
11618 smallest_font_height of the frame.
11619 (font_close_object): Update num_fonts.
11620 (Fclear_font_cache): Fix finding the target cache data.
11621
11622 2008-02-16 Glenn Morris <rgm@gnu.org>
11623
11624 * fontset.c (Finternal_char_font): Fix compilation warning.
11625
11626 2008-02-16 Eli Zaretskii <eliz@gnu.org>
11627
11628 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
11629 instead of char arrays. Enlarge the size of array passed to
11630 get_token_information.
11631
11632 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
11633 warnings.
11634
11635 2008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
11636
11637 * .gdbinit: Don't set `args', it breaks gdb --args.
11638
11639 2008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
11640
11641 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
11642 within a narrowed buffer.
11643
11644 2008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
11645
11646 * coding.c (decode_coding_object, encode_coding_object):
11647 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
11648
11649 2008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
11650
11651 * coding.c (coding_set_destination): Use BEG_BYTE rather than
11652 hardcoding 1.
11653 (detect_coding_system):
11654 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
11655 (string_char_to_byte, string_byte_to_char, insert_from_gap):
11656 * insdel.c (insert_from_gap):
11657 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
11658 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
11659 (string_to_multibyte):
11660 * character.c (chars_in_text, multibyte_chars_in_text):
11661 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
11662
11663 * character.h (FETCH_STRING_CHAR_ADVANCE)
11664 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
11665 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
11666 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
11667
11668 * casefiddle.c (casify_region): Only call after-change and composition
11669 functions on the part of the region that was changed.
11670
11671 * keyboard.c (read_avail_input):
11672 * frame.c (Fdelete_frame): Call Fdelete_terminal.
11673
11674 2008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
11675
11676 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
11677 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
11678
11679 2008-02-11 Juanma Barranquero <lekktu@gmail.com>
11680
11681 * w32menu.c (push_submenu_start, push_submenu_end)
11682 (push_left_right_boundary, push_menu_pane, push_menu_item):
11683 * keyboard.c (read_key_sequence): Don't pass args with side effects
11684 to AREF, it fails when compiling with -DENABLE_CHECKING.
11685
11686 2008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
11687
11688 * Makefile.in (${lispsource}international/charprop.el):
11689 Delete this target.
11690
11691 * search.c (boyer_moore): Fix incorrect synching of the trunk and
11692 emacs-unicode-2.
11693
11694 2008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
11695
11696 * terminal.c (Fdelete_terminal): Clean up the `force' path.
11697
11698 2008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
11699
11700 * frame.c (Qnoelisp): New symbol.
11701 (syms_of_frame): Initialize it.
11702 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
11703 harmless Elisp code, from a strong `force' from x_connection_closed.
11704 * frame.h (Qnoelisp): Declare.
11705 * xterm.c (x_connection_closed): Pass `noelisp'.
11706
11707 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
11708 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
11709 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
11710 rather than `int' for the type of `type'.
11711
11712 2008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
11713
11714 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
11715
11716 * Makefile.in (GNUC): Remove support for gcc-1.x.
11717
11718 2008-02-10 Richard Stallman <rms@gnu.org>
11719
11720 * lisp.h (ASET): Use AREF, not ASLOT.
11721
11722 2008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
11723
11724 * lisp.h (ASET): Check bounds.
11725
11726 2008-02-10 Glenn Morris <rgm@gnu.org>
11727
11728 * buffer.c (mode-name): Doc fix.
11729
11730 2008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
11731
11732 * Makefile.in:
11733 * emacs.c:
11734 * gmalloc.c:
11735 * keyboard.c:
11736 * lisp.h:
11737 * m/ibm370aix.h:
11738 * process.c:
11739 * regex.c:
11740 * s/hpux.h:
11741 * sysdep.c:
11742 * sysselect.h:
11743 * systty.h:
11744 * unexec.c:
11745 * w32term.c:
11746 * xsmfns.c:
11747 * xterm.c: Remove code that deals with obsolete variables.
11748
11749 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
11750
11751 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
11752 nothing else needs it anymore.
11753
11754 2008-02-09 Eli Zaretskii <eliz@gnu.org>
11755
11756 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
11757 instead of unibyte_char_to_multibyte.
11758
11759 2008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
11760
11761 * s/gnu-linux.h: Remove commented out code.
11762
11763 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
11764
11765 * Makefile.in: Update what RMS says about using autoconf.
11766 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
11767 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
11768 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
11769 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
11770
11771 2008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
11772
11773 * keymap.c (Fkey_description): Move side effect outside of macro call.
11774
11775 * xfaces.c (Finternal_make_lisp_face):
11776 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
11777
11778 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
11779 (syms_of_fontset): Use ASET.
11780
11781 * fns.c (concat): Move side effect outside of macro call.
11782 (hash_clear): Use ASET.
11783
11784 2008-02-08 Richard Stallman <rms@gnu.org>
11785
11786 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
11787 If FORCE, and frame has a surrogate minibuffer for another frame,
11788 delete the other frame first.
11789
11790 2008-02-07 Timo Savola <timo.savola@iki.fi>
11791
11792 * xterm.c (x_detect_focus_change): Handle embed client message.
11793 (handle_one_xevent): Ditto.
11794 (handle_one_xevent): If embedded and we get a button press/release,
11795 request focus.
11796 (xembed_set_info, xembed_send_message): New functions.
11797 (x_make_frame_visible): Call xembed_set_info if embedded.
11798 (x_make_frame_invisible): Call xembed_set_info if embedded.
11799 (x_term_init): Initialize Xatom_XEMBED.
11800 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
11801 (x_iconify_frame): Ditto.
11802
11803 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
11804 (enum xembed_info, enum xembed_message, enum xembed_focus)
11805 (enum xembed_modifier, enum xembed_accelerator): New.
11806 (xembed_set_info, xembed_send_message): Declare.
11807 (FRAME_X_EMBEDDED_P): New.
11808
11809 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
11810 gtk_plug_new.
11811
11812 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
11813 window ID of a frame.
11814 (x_window): Reparent frame if embedded.
11815 (Fx_create_frame): Don't set border width if embedded.
11816
11817 * emacs.c (USAGE3): Add --parent-id.
11818 (standard_args): Ditto.
11819
11820 2008-02-07 Jan Djärv <jan.h.d@swipnet.se>
11821
11822 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
11823
11824 2008-02-07 Jim Meyering <meyering@redhat.com>
11825
11826 Use "do...while (0)", not "if (1)...else" in macro definitions.
11827 The latter provokes a warning from gcc about the empty else, when
11828 followed by ";". Also, without that trailing semicolon, it would
11829 silently swallow up any following statement.
11830 * syntax.h (SETUP_SYNTAX_TABLE)
11831 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
11832 * buffer.h (DECODE_POSITION): Likewise.
11833 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
11834 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
11835 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
11836 (FETCH_CHAR_ADVANCE): Likewise.
11837 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
11838
11839 2008-02-07 Jim Meyering <meyering@redhat.com>
11840
11841 * lread.c [lint]: Don't include <sys/inode.h>.
11842
11843 2008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
11844
11845 * xselect.c (x_handle_dnd_message):
11846 * xmenu.c (digest_single_submenu, xmenu_show):
11847 * xdisp.c (with_echo_area_buffer_unwind_data)
11848 (format_mode_line_unwind_data, unwind_format_mode_line)
11849 (display_menu_bar):
11850 * eval.c (Ffetch_bytecode):
11851 * doc.c (store_function_docstring):
11852 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
11853 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
11854 * buffer.c (add_overlay_mod_hooklist): Use ASET.
11855
11856 2008-02-07 Kenichi Handa <handa@m17n.org>
11857
11858 * ftxfont.c (ftxfont_open): Don't set
11859 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
11860
11861 * ftfont.c (ftfont_open): Fix previous change.
11862
11863 2008-02-06 Jason Rumney <jasonr@gnu.org>
11864
11865 * w32font.c (w32font_text_extents): Fill in lbearing metric.
11866 Use cached metrics for ASCII characters.
11867 (w32font_open_internal): Don't set font's owning_frame.
11868 Cache metrics for ASCII characters.
11869
11870 * w32font.h (struct w32font_info): Add ascii_metrics.
11871 Remove owning_frame.
11872
11873 2008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
11874
11875 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
11876 to negative value.
11877
11878 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
11879
11880 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
11881
11882 * charset.c (syms_of_charset): Set QCtest and Qeq.
11883
11884 2008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
11885
11886 * process.c (Fstart_process):
11887 * callproc.c (Fcall_process): Handle the case where
11888 Funhandled_file_name_directory returns nil.
11889
11890 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
11891 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
11892 * font.c (check_gstring): Use them and AREF to access the vector before
11893 we know it's really a gstring.
11894 (Ffont_shape_text): Fix typo.
11895 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
11896
11897 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
11898 Declare.
11899
11900 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
11901
11902 2008-02-05 Jason Rumney <jasonr@gnu.org>
11903
11904 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
11905 Set smallest_font_height and smallest_char_width in display info.
11906
11907 2008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
11908
11909 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
11910
11911 2008-02-05 Miles Bader <miles@gnu.org>
11912
11913 * xfaces.c (get_lface_attributes, merge_named_face)
11914 (lookup_named_face, lookup_derived_face, realize_named_face):
11915 Revert 2008-02-01 change by cyd@stupidchicken.com.
11916
11917 2008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
11918
11919 * fontset.c (Ffontset_info): Handle the case of inhibitting the
11920 fallback fonts.
11921 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
11922
11923 2008-02-04 Jason Rumney <jasonr@gnu.org>
11924
11925 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
11926 set full_name.
11927 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
11928
11929 2008-02-03 Jason Rumney <jasonr@gnu.org>
11930
11931 * makefile.w32-in (OBJ1): Include font.o here.
11932 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
11933
11934 2008-02-02 Jason Rumney <jasonr@gnu.org>
11935
11936 * makefile.w32-in (temacs): Bump EMHEAP to 21.
11937
11938 2008-02-01 Jason Rumney <jasonr@gnu.org>
11939
11940 * s/cygwin.h: Define VIRT_ADDR_VARIES.
11941
11942 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
11943
11944 2008-02-01 Andreas Schwab <schwab@suse.de>
11945
11946 * Makefile.in (shortlisp, lisp): Update for rename of
11947 ../lisp/language/myanmar.el.
11948
11949 2008-02-01 Chong Yidong <cyd@stupidchicken.com>
11950
11951 * xfaces.c (get_lface_attributes): Delete function.
11952 (merge_named_face, lookup_named_face, lookup_derived_face)
11953 (realize_named_face): Call lface_from_face_name directly, and use
11954 the fact that merge_face_vectors does not alter its FROM argument.
11955
11956 2008-02-01 Jason Rumney <jasonr@gnu.org>
11957
11958 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
11959 input in the default locale. Handle non-Unicode multibyte input.
11960
11961 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11962
11963 * fontset.c (reorder_font_vector): Exclude nil elements from the
11964 font group. Don't try multiple fonts.
11965 (fontset_font): Adjust for the above change.
11966 (Finternal_char_font): Return nil if the found font doesn't
11967 contain the character ch.
11968
11969 * Makefile.in (lisp, shortlisp): Add cham.el.
11970
11971 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11972
11973 * font.h (FONTP): Make it return 1 also for a font-object.
11974
11975 * .gdbinit (xfontset): New function.
11976
11977 * font.c (font_find_for_lface): Check if the character C is
11978 supported or not only for the first font.
11979
11980 * fontset.c (reorder_font_vector): Fix typo.
11981 (fontset_find_font): Don't add a font-spec specifying a script.
11982 Use 0 (not Qt) for the indication of empty font-group. Change the
11983 format of RFONT-DEF. Return Qt if no font in the font-group
11984 support the character.
11985 (fontset_font): Adjust for the above change. If no font was
11986 found the character, remember that.
11987 (face_for_char): Adjust for the change of RFONT-DEF.
11988 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
11989 no font for the target.
11990 (Finternal_char_font): Adjust for the change of RFONT-DEF.
11991
11992 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11993
11994 * font.c (font_load_for_face): Handle the case that the font in
11995 face->lface is a string.
11996
11997 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11998
11999 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
12000
12001 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12002
12003 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
12004 Fix previous change. If the frame is not on a window system,
12005 signal an error.
12006
12007 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12008
12009 * coding.c (decode_coding_object, encode_coding_object): Adjust
12010 marker positions after conversion.
12011
12012 * lisp.h (struct Lisp_Marker): New member need_adjustment.
12013
12014 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12015
12016 * font.c (font_find_for_lface): Fix the handling of the return
12017 value of font_has_char.
12018 (Ffont_shape_text): Fix previous change.
12019
12020 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
12021 (fontset_ref_and_range): Delete it.
12022 (fontset_find_font): Call char_table_ref_and_range instead of
12023 FONTSET_REF_AND_RANGE.
12024 (make_fontset): Don't setup font groups of Latin here.
12025 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
12026 (new_fontset_from_font): Make the specified font the default for
12027 all Latin characters.
12028
12029 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12030
12031 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
12032 is on a window system before accessing the fontset of the frame.
12033
12034 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12035
12036 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
12037
12038 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
12039 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
12040
12041 * font.c (Ffont_shape_text): If the font driver doesn't have a
12042 shaper function, make zero-width glyphs to have at least one-pixel
12043 width. Fix setting of `to' field of glyphs.
12044
12045 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12046
12047 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
12048 glyphs.
12049
12050 * font.h (struct font_driver): Improve docstring of member `shape'.
12051
12052 2008-02-01 Kenichi Handa <handa@m17n.org>
12053
12054 * composite.c (syms_of_composite): Fix docstring of
12055 auto-composition-function.
12056
12057 * font.h (LGLYPH_SIZE): New macro.
12058
12059 * font.c (Ffont_fill_gstring): Stop filling when a character not
12060 supported by the font is found.
12061 (Ffont_shape_text): When a shape callback function returns nil,
12062 try at most two more times with larger gstring.
12063 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
12064
12065 * xdisp.c (handle_auto_composed_prop): Change the argument to
12066 auto-composition-function.
12067
12068 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
12069 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
12070 Lispy glyph and store it in the lgstring.
12071
12072 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
12073
12074 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
12075
12076 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12077
12078 * font.c (Ffont_shape_text): Avoid unnecessary composition.
12079
12080 * fontset.c (Vfont_encoding_charset_alist): New variable.
12081 (syms_of_fontset): DEFVAR it.
12082 (reorder_font_vector, fontset_find_font): Optimize for the case of
12083 no need of reordering.
12084 (face_for_char): Map the charset property by
12085 Vfont_encoding_charset_alist.
12086
12087 2008-02-01 Jason Rumney <jasonr@gnu.org>
12088
12089 * w32font.c (logfonts_match): Don't check adstyle here.
12090 (font_matches_spec): Check here against physical font instead.
12091 (add_font_entity_to_list): Avoid some substitutions.
12092
12093 * font.c (font_parse_fcname): Default weight and slant to normal.
12094 (font_score): Prefer normal fonts if weight or slant unspecified.
12095 (font_score) [WINDOWSNT]: Scale weight difference down to closer
12096 match freetype scores.
12097
12098 2008-02-01 Jason Rumney <jasonr@gnu.org>
12099
12100 * w32font.c (w32font_text_extents): Don't use the frame stored in the
12101 font, as it may have been deleted.
12102 (w32_enumfont_pattern_entity): Map generic family to adstyle using
12103 most common hyphenless variation.
12104 (logfonts_match): Check generic family.
12105 (font_matches_spec): Don't check generic family here.
12106 (fill_in_logfont): Set generic family based on adstyle.
12107
12108 * w32font.h (w32font_get_cache): Update declaration.
12109
12110 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12111
12112 * ftfont.c (ftfont_get_cache): Adjust the argument type.
12113
12114 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
12115 If none of the new drivers are available, call font_update_drivers
12116 with the old drivers.
12117
12118 * w32font.c (w32font_get_cache): Adjust the argument type.
12119
12120 * xfont.c (xfont_get_cache): Adjust the argument type.
12121
12122 * font.h (struct font_driver): Change argument type of get_cache.
12123
12124 * xftfont.c (xftfont_start_for_frame): Delete prototype.
12125
12126 * font.c (Ffont_get): Fix arguments to Fassoc.
12127 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
12128 (font_clear_cache): New function.
12129 (font_list_entities, font_matching_entity): Use font_get_cache.
12130 (font_update_drivers): Call font_clear_cache when finishing a driver.
12131
12132 * fontset.c (fontset_find_font): Fix previous change.
12133
12134 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12135
12136 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
12137 dpyinfo->font_table.
12138 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
12139 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
12140
12141 * font.c (font_at): Handle the case that the arg C is negative.
12142 Handle the unibyte case.
12143 (Ffont_at): Call font_at with the arg C -1.
12144
12145 * xdisp.c (handle_auto_composed_prop): Don't get a character at
12146 the position here, and call font_at with the arg C -1.
12147 Don't check the range of the existing composition at the point.
12148
12149 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12150
12151 * fontset.c (fontset_add): New args charset_id and family.
12152 Change caller.
12153 (load_font_get_repertory, fontset_find_font): Assume that
12154 font_spec is always a font-spec object.
12155 (Fset_fontset_font): Always store a font-spec object in a fontset.
12156
12157 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
12158 instead of get_property_and_range.
12159
12160 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12161
12162 * xftfont.c (struct xftfont_info): Delete the member ft_face.
12163 (xftfont_open): Don't keep locking face.
12164 (xftfont_close): Don't unlock face.
12165 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
12166
12167 * fontset.c (fontset_find_font): Don't prefer a font of
12168 supplementary charset.
12169
12170 2008-02-01 Kenichi Handa <handa@m17n.org>
12171
12172 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
12173 script, langsys_tag to langsys, new member script.
12174 (OTF_TAG_STR): Terminate by '\0'.
12175 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
12176 listing to the script specified in that property. Fix arg to
12177 OTF_check_features.
12178
12179 2008-02-01 Jason Rumney <jasonr@gnu.org>
12180
12181 * w32font.h: New file.
12182
12183 * w32font.c: Include it.
12184 (struct w32font_info): Add owning_frame field. Move to w32font.h.
12185 (w32font_open): Set owning_frame.
12186 (w32font_text_extents): Use owning_frame.
12187 (struct font_callback_data): Add opentype_only field.
12188 (add_font_entity_to_list): Use it to filter fonts.
12189 Don't check against full name.
12190 (w32font_list_internal): New function.
12191 (w32font_list): Use it.
12192 (w32font_match_internal): New function.
12193 (w32font_match): Use it.
12194 (w32font_open_internal): New function.
12195 (w32font_open): Use it.
12196 (w32font_get_cache, w32font_close, w32font_has_char)
12197 (w32font_encode_char, w32font_text_extents, w32font_draw):
12198 Make non-static.
12199
12200 * makefile.w32-in (w32font.o): Depend on w32font.h.
12201
12202 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12203
12204 * charset.c (Fdefine_charset_internal): Record a supplementary
12205 charset at the tail of Vcharset_order_list.
12206
12207 * font.c (Ffont_shape_text): Fix the return value.
12208
12209 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
12210
12211 * xdisp.c (handle_auto_composed_prop): Fix previous change.
12212
12213 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12214
12215 * ftfont.c (struct OpenTypeSpec): New struct.
12216 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
12217 (ftfont_get_open_type_spec): New function.
12218 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
12219
12220 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
12221
12222 2008-02-01 Jason Rumney <jasonr@gnu.org>
12223
12224 * w32font.c (add_font_entity_to_list): Compare only the beginning
12225 of full name.
12226
12227 2008-02-01 Kenichi Handa <handa@m17n.org>
12228
12229 * xdisp.c (handle_auto_composed_prop): Simplify the code.
12230 Never return HANDLED_RECOMPUTE_PROPS.
12231
12232 2008-02-01 Kenichi Handa <handa@m17n.org>
12233
12234 * font.c (font_gstring_produce): Delete it.
12235
12236 * composite.h (COMPOSITION_METHOD):
12237 Handle COMPOSITION_WITH_GLYPH_STRING.
12238
12239 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12240
12241 * xfont.c (Qx): Delete.
12242 (syms_of_xfont): Don't initialize Qx.
12243
12244 * composite.h (enum composition_method):
12245 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
12246
12247 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12248
12249 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
12250 (choose_face_font): Accept new form of font-spec.
12251
12252 * frame.h (font_driver_list): Declare it unconditionally.
12253 (struct frame): Define members font_driver_list and font_data_list
12254 unconditionally.
12255
12256 * fontset.c: Include "font.h" unconditionally.
12257 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
12258 (Fset_fontset_font): Accept a font-spec object.
12259
12260 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
12261 PIXEL_SIZE part a wild card.
12262
12263 * dispextern.h (struct glyph_string): Define members clip and
12264 num_clips unconditionally.
12265 (struct face): Define members font_info and extra unconditionally.
12266
12267 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
12268 ftfont_info only when HAVE_LIBOTF is defined.
12269
12270 2008-02-01 Andreas Schwab <schwab@suse.de>
12271
12272 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
12273 and end.
12274
12275 2008-02-01 Jason Rumney <jasonr@gnu.org>
12276
12277 * w32font.c (w32font_driver): Add new fields.
12278
12279 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12280
12281 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
12282 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
12283 (LIBES): Add @M17N_FLT_CFLAGS@.
12284
12285 * composite.c (compose_text): Don't treat the new style
12286 composition specially.
12287
12288 * emacs.c (main): Call syms_of_font unconditionally.
12289
12290 * font.h (FONT_ENTITY_NOT_LOADABLE)
12291 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
12292 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
12293 (struct font_driver): New member shape.
12294 (font_registry_charsets): Extern it.
12295 (font_find_for_lface, font_prepare_composition): Adjust prototype.
12296 (font_otf_capability, font_drive_otf): Delete their externs.
12297
12298 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
12299 (font_charset_alist, font_registry_charsets): Move from xfont.c
12300 and rename.
12301 (font_prop_validate_otf): New function.
12302 (font_property_table): Register it for QCotf.
12303 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
12304 (font_drive_otf): Delete.
12305 (font_prepare_composition): New arg F. Adjust for the change of
12306 lispy gstring.
12307 (font_find_for_lface): New arg C.
12308 (font_load_for_face): Adjust for the change of font_find_for_lface.
12309 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
12310 lispy gstring.
12311 (Ffont_shape_text): New function.
12312 (Fopen_font): If the font size is not given, use 12-pixel.
12313 (Ffont_at): New arg STRING.
12314 (syms_of_font): Initalize font_charset_alist.
12315 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
12316 conditionally.
12317
12318 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
12319 fonts of the same font-spec. Change the format of RFONT-DEF.
12320 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
12321 Adjust for the change of RFONT-DEF.
12322 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
12323
12324 * ftfont.h: New file.
12325
12326 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
12327 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
12328 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
12329 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
12330 font_otf_capability and font_drive_otf, set ftfont_shape.
12331 (ftfont_list): Adjust for the change of :otf property value.
12332 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
12333 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
12334 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
12335 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
12336 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
12337 (otf_gstring, gstring, m17n_flt_initialized): New variables.
12338
12339 * w32term.c (x_draw_composite_glyph_string_foreground):
12340 Adjust for the change of lispy gstring.
12341
12342 * xdisp.c (handle_composition_prop): Adjust for the change of
12343 lispy gstring. Call a function for auto-composition with the
12344 third arg it->window.
12345 (fill_composite_glyph_string): Adjust for the change of lispy string.
12346 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
12347
12348 * xfaces.c (set_font_frame_param): Adjust for the change of
12349 font_find_for_lface.
12350
12351 * xfont.c (x_font_charset_alist): Move to font.c and rename.
12352 (xfont_registry_charsets): Likewise. Change caller.
12353 (syms_of_xfont): Don't handle x_font_charset_alist.
12354
12355 * xftfont.c: Include "ftfont.h".
12356 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
12357 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
12358 (xftfont_close) [HAVE_LIBOTF]: Close otf.
12359 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
12360 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
12361 Set xftfont_driver.shape to xftfont_shape.
12362
12363 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
12364 the change of lispy gstring.
12365
12366 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12367
12368 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
12369
12370 2008-02-01 Jason Rumney <jasonr@gnu.org>
12371
12372 * w32font.c (w32font_draw): Fill background manually.
12373
12374 2008-02-01 Jason Rumney <jasonr@gnu.org>
12375
12376 * font.c (Qfontp): Remove unused symbol.
12377 (QCantialias): New symbol.
12378 (syms_of_font): Define it.
12379 (font_property_table): Set a validator for QCantialias.
12380
12381 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
12382 Define if not already.
12383 (QCfamily): Share with xfaces.c.
12384 (Qstandard, Qsubpixel, Qnatural): New symbols.
12385 (syms_of_w32font): Define them. Don't define QCfamily here.
12386 (w32_antialias_type, lispy_antialias_type): New functions.
12387 (w32_enumfont_pattern_entity): New arg requested_font.
12388 Set antialias parameter if non-default was requested.
12389 (fill_in_logfont): Fill in lfQuality if :antialias specified.
12390
12391 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12392
12393 * lread.c (read1): Undo the previous change.
12394
12395 2008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
12396
12397 * frame.c (Fdelete_frame): Call font_update_drivers only when
12398 USE_FONT_BACKEND is defined.
12399
12400 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12401
12402 * font.h (struct font_bitmap): New member bits_per_pixel.
12403 (struct font_driver): New members start_for_frame and end_for_frame.
12404 (struct font_data_list): New struct.
12405 (font_put_frame_data, font_get_frame_data): Extern them.
12406
12407 * frame.h (struct frame): New member font_data_list.
12408
12409 * font.c (font_update_drivers): Call driver->start_for_frame and
12410 driver->end_for_frame at proper timings.
12411 (font_put_frame_data, font_get_frame_data): New functions.
12412 (Ffont_spec): Add usage in the docstring.
12413
12414 * frame.c (make_frame): Initialize f->font_data_list to NULL.
12415 (Fdelete_frame): Call font_update_drivers.
12416
12417 * xftfont.c (struct xftface_info): Delete the member xft_draw.
12418 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
12419 (xftfont_get_xft_draw): New function.
12420 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
12421 (xftfont_end_for_frame): New function.
12422 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
12423
12424 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
12425 Change argument. Cache GCs in the per-frame data.
12426 (struct ftxfont_frame_data): New struct.
12427 (ftxfont_draw_bitmap): New arg gc_fore and flush.
12428 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
12429 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
12430 (ftxfont_end_for_frame): New function.
12431 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
12432
12433 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
12434
12435 2008-02-01 Kenichi Handa <handa@m17n.org>
12436
12437 * xselect.c (Vselection_coding_system)
12438 (Vnext_selection_coding_system): Delete them.
12439 (syms_of_xselect): Don't declare selection-coding-system and
12440 next-selection-coding-system. They are declared in select.el.
12441
12442 2008-02-01 Jason Rumney <jasonr@gnu.org>
12443
12444 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
12445
12446 * w32fns.c: Include imm.h.
12447 (get_composition_string_fn, get_ime_context_fn): New optional
12448 system functions.
12449 (globals_of_w32fns): Load them from imm32.dll.
12450 (ignore_ime_char): New flag.
12451 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
12452 WM_IME_ENDCOMPOSITION messages.
12453
12454 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
12455 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
12456
12457 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12458
12459 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
12460 (READCHAR_REPORT_MULTIBYTE): New macro.
12461 (readchar): New 2nd arg MULTIBYTE.
12462 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
12463 Make symbol's name multibyte according to the multibyteness of the
12464 source.
12465
12466 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12467
12468 * xfaces.c (face_for_overlay_string): Call lookup_face with
12469 correct arguments (fix of synching with the trunk).
12470
12471 2008-02-01 Kenichi Handa <handa@m17n.org>
12472
12473 * font.c (font_prop_validate_symbol, font_prop_validate_style)
12474 (font_prop_validate_non_neg, font_prop_validate_spacing):
12475 Delete argument prop_index.
12476 (font_property_table): Change arguments to validater. Change Callers.
12477 (font_lispy_object): Delete.
12478 (font_at): Use font_find_object instead fo font_lispy_object.
12479
12480 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12481
12482 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
12483 and file names.
12484
12485 2008-02-01 Jason Rumney <jasonr@gnu.org>
12486
12487 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
12488 (font_matches_spec): Remove debug output.
12489 (add_font_entity_to_list): Avoid using substituted fonts.
12490
12491 2008-02-01 Jason Rumney <jasonr@gnu.org>
12492
12493 * doc.c (Fsnarf_documentation):
12494 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
12495
12496 2008-02-01 Miles Bader <miles@gnu.org>
12497
12498 * dispextern.h (struct glyph_row): Only define "clip" field if
12499 HAVE_WINDOW_SYSTEM is defined.
12500
12501 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
12502
12503 Fix up multi-tty merge.
12504
12505 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
12506 and indentation.
12507
12508 * xfaces.c (free_realized_face, clear_face_gcs):
12509 Include font_done_for_face in the input_blocked section, just in case.
12510
12511 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
12512 (get_char_face_and_encoding): Undo last change and remove the *other*
12513 duplicate definition (i.e. keep the one that's better scoped and that
12514 includes code for the font-backend).
12515
12516 * terminal.c (create_terminal): Default keyboard_coding to
12517 `no-conversion' and terminal_coding to `undecided'.
12518
12519 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
12520
12521 * fontset.c (free_realized_fontsets): Check that the table entry does
12522 contain a fontset before trying to compare it to `base'.
12523
12524 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
12525 syms_of_charset, and syms_of_coding earlier because init_window_once
12526 now needs Vcoding_system_hash_table to be setup.
12527
12528 * coding.h (default_buffer_file_coding): Remove.
12529
12530 * coding.c (default_buffer_file_coding): Remove.
12531 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
12532 than ->symbol, and use the terminal-local coding system.
12533 (syms_of_coding): Don't setup the coding-systems that are not
12534 terminal-local.
12535 (Fdefine_coding_system_internal): Use XCAR/XCDR.
12536
12537 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
12538 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
12539
12540 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
12541 in chartab.c and were re-added here by mistake.
12542 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
12543
12544 * doc.c (Fsnarf_documentation):
12545 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
12546 src to etc.
12547
12548 * ChangeLog.10: Add mistakenly removed entry.
12549
12550 2008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
12551
12552 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
12553
12554 2008-02-01 Miles Bader <miles@gnu.org>
12555
12556 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
12557 Add extra args to FACE_FOR_CHAR.
12558
12559 2008-02-01 Kenichi Handa <handa@m17n.org>
12560
12561 * keymap.c (where_is_internal_1): If key is a cons, store the copy
12562 in sequence.
12563
12564 * chartab.c (map_sub_char_table, map_char_table): If the range
12565 contains just one character, call the function with that character
12566 even if the depth is not 3.
12567
12568 2008-02-01 Jason Rumney <jasonr@gnu.org>
12569
12570 * w32font.c (w32font_text_extents): Calculate metrics for the
12571 whole string.
12572
12573 2008-02-01 Jason Rumney <jasonr@gnu.org>
12574
12575 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
12576
12577 2008-02-01 Jason Rumney <jasonr@gnu.org>
12578
12579 * w32term.c (x_set_glyph_string_clipping): Use
12580 get_glyph_string_clip_rects.
12581 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
12582 Adjust for the change of struct glyph_string.
12583
12584 * w32font.c (w32font_draw): Do clipping here.
12585
12586 2008-02-01 Kenichi Handa <handa@m17n.org>
12587
12588 * xftfont.c (xftfont_draw): Adjust for the change of struct
12589 glyph_string.
12590
12591 * xterm.c (x_set_glyph_string_clipping): Use
12592 get_glyph_string_clip_rects.
12593 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
12594 Adjust for the change of struct glyph_string.
12595
12596 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
12597 the resulting clip(s}.
12598 (expose_overlaps): Add arg r. Change callers. Set it to
12599 row->clip temporarily.
12600 (expose_window): Redraw rows overlapping the exposed area.
12601
12602 * dispextern.h (struct glyph_row): New member clip.
12603 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
12604 clip_height, new member clip, and num_clips.
12605
12606 2008-02-01 Kenichi Handa <handa@m17n.org>
12607
12608 * data.c (Fchar_or_string_p): Fix docstring.
12609
12610 2008-02-01 Kenichi Handa <handa@m17n.org>
12611
12612 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
12613 create a temporary XftDraw object.
12614
12615 2008-02-01 Kenichi Handa <handa@m17n.org>
12616
12617 * font.c (Ffontp): Fix docstring.
12618
12619 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
12620 strong evidence of ISO-2022.
12621
12622 2008-02-01 Kenichi Handa <handa@m17n.org>
12623
12624 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
12625 SYNTAX_ENTRY_FOLLOW_PARENT.
12626
12627 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
12628
12629 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
12630 its type.
12631 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
12632 Update to the new type of weak_hash_tables and next_weak.
12633
12634 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
12635 a plain C pointer to Lisp_Hash_Table.
12636
12637 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
12638 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
12639 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
12640 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
12641 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
12642 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
12643 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
12644 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
12645 (GC_EQ): Remove since they've been identical to their non-GC_
12646 alter-egos ever since the markbit was eradicated.
12647
12648 * alloc.c:
12649 * buffer.c:
12650 * buffer.h:
12651 * data.c:
12652 * fileio.c:
12653 * filelock.c:
12654 * fns.c:
12655 * frame.h:
12656 * lisp.h:
12657 * macterm.c:
12658 * print.c:
12659 * process.c:
12660 * w32fns.c:
12661 * w32menu.c:
12662 * w32term.c:
12663 * xfns.c:
12664 * xmenu.c:
12665 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
12666
12667 2008-02-01 Kenichi Handa <handa@m17n.org>
12668
12669 * chartab.c (map_sub_char_table): Make it work for the top-level
12670 char-table. Fix handling of parent char-table.
12671 (map_char_table): Adjust for the above change.
12672
12673 2008-02-01 Jason Rumney <jasonr@gnu.org>
12674
12675 * w32font.c (Qgdi): Rename from Qw32.
12676
12677 2008-02-01 Jason Rumney <jasonr@gnu.org>
12678
12679 * w32bdf.c (get_quoted_string): Make function static.
12680
12681 2008-02-01 Kenichi Handa <handa@m17n.org>
12682
12683 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
12684 bigger ascent and descent than those of the font, use them as
12685 font's ascent and descent.
12686
12687 2008-02-01 Kenichi Handa <handa@m17n.org>
12688
12689 * Makefile.in (${lispsource}international/charprop.el): Move this
12690 target within "#ifdef HAVE_UNIDATA" and "#endif".
12691
12692 2008-02-01 Kenichi Handa <handa@m17n.org>
12693
12694 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
12695 (shortlisp): Add ../lisp/language/tai-viet.el.
12696
12697 2008-02-01 Ulrich Mueller <ulm@gentoo.org>
12698
12699 * Makefile.in (${lispsource}international/charprop.el): Depend on
12700 temacs${EXEEXT}.
12701
12702 2008-02-01 Jason Rumney <jasonr@gnu.org>
12703
12704 * w32font.c (w32font_close): Delete the GDI font object.
12705
12706 * w32menu.c: Include character.h.
12707
12708 * w32proc.c: Likewise.
12709
12710 * w32select.c: Likewise.
12711
12712 * makefile.w32-in (w32proc.o): Depend on character.h.
12713
12714 2008-02-01 Jason Rumney <jasonr@gnu.org>
12715
12716 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
12717
12718 * w32menu.c (syms_of_w32menu): Likewise.
12719
12720 * w32proc.c (syms_of_ntproc): Likewise.
12721
12722 * w32select.c (syms_of_w32select): Likewise.
12723
12724 * w32term.c (syms_of_w32term): Likewise.
12725
12726 2008-02-01 Jason Rumney <jasonr@gnu.org>
12727
12728 * w32font.c (w32font_draw): Delete brush after using it.
12729
12730 2008-02-01 Jason Rumney <jasonr@gnu.org>
12731
12732 * w32font.c (w32font_open): Don't set font_idx.
12733 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
12734 to font settings.
12735 (w32font_draw): Fill background explicitly.
12736
12737 2008-02-01 Jason Rumney <jasonr@gnu.org>
12738
12739 * w32term.c (w32_initialize): Don't call w32font_initialize.
12740
12741 * w32font.c (w32font_info): Remove subranges.
12742 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
12743 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
12744 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
12745 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
12746 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
12747 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
12748 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
12749 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
12750 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
12751 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
12752 New symbols.
12753 (font_callback_data): New struct.
12754 (w32font_list, w32font_match): Use it.
12755 (w32font_open): Don't populate subranges.
12756 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
12757 (w32font_encode_char): Always return unicode code-point as-is.
12758 (w32font_text_extents): Supply a transformation matrix to
12759 GetGlyphOutline. Never look up by glyph index. Avoid looping
12760 twice. Use unicode version of GetTexExtentPoint32 instead of
12761 glyph index version.
12762 (set_fonts_frame): Remove.
12763 (w32_enumfont_pattern_entity): Add frame parameter, use it to
12764 set frame parameter. Use backward compatible fake foundries.
12765 Save generic family in extra slot under QCfamily. Make width slot
12766 constant. Save QCspacing value. Save list of scripts instead of
12767 binary subranges.
12768 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
12769 (add_font_entity_to_list): Use font_callback_data struct. Filter
12770 unwanted fonts.
12771 (add_one_font_entity_to_list): Use font_callback_data struct.
12772 (w32_registry): Default to iso10646_1.
12773 (fill_in_logfont): Use dpi from extra slot. Don't bother with
12774 string font registries. Don't fill in font name if it is a generic
12775 family name, fill family instead. Use spacing, family and script
12776 extra info to fill pitch, family and charset fields.
12777 (list_all_matching_fonts): Use font_callback_data struct.
12778 (unicode_range_for_char): Remove.
12779 (font_supported_scripts): New function.
12780 (w32font_initialize): Remove.
12781 (syms_of_w32font): Update which symbols are defined.
12782
12783 2008-02-01 Jason Rumney <jasonr@gnu.org>
12784
12785 * font.c (font_pixel_size): Reverse assq_no_quit args.
12786
12787 * w32term.h (FONT_WIDTH): Report max width, not average.
12788 (FONT_MAX_WIDTH): Remove.
12789 (FONT_AVG_WIDTH): New macro.
12790
12791 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
12792 redefinition of FONT_WIDTH.
12793
12794 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
12795 (w32_cache_char_metrics): Use FONT_WIDTH.
12796
12797 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
12798
12799 2008-02-01 Jason Rumney <jasonr@gnu.org>
12800
12801 * w32font.c (w32font_open): Make lfHeight negative.
12802
12803 * w32fns.c (x_default_font_parameter): Use new style font name.
12804 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
12805
12806 2008-02-01 Jason Rumney <jasonr@gnu.org>
12807
12808 * w32font.c (QCsubranges): New symbol.
12809 (w32font_open, w32font_has_char): Get subranges from subproperty
12810 of extra.
12811 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
12812 (syms_of_w32font): Define :subranges symbol.
12813
12814 * font.c (font_put_extra): Expose externally.
12815
12816 * font.h (font_put_extra): Move declaration from font.c.
12817
12818 * font.c (Ffont_get): Use font driver to determine otf capability.
12819 (adjust_anchor): Check if driver defines anchor_point before using.
12820
12821 * w32font.c (w32font_open): Handle size, height and pixel_size better.
12822 (w32font_draw): Use options.
12823 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
12824 Fix detection of truetype fonts.
12825 (registry_to_w32_charset): Handle charsets other than iso8859-1
12826 expressed as lisp symbols.
12827 (w32_registry): Express charset as lisp symbol.
12828 (fill_in_logfont): Reverse pixel and point height logic.
12829 Don't set width here. Set quality to default.
12830
12831 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
12832 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
12833
12834 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
12835 Remove redundant loop and allocation.
12836
12837 * makefile.w32-in (font.o, w32font.o): New objects.
12838 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
12839 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
12840
12841 * xdisp.c (fill_composite_glyph_string): Make the first arg to
12842 STORE_XCHARB a valid l-value.
12843
12844 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
12845 calculations for non-Truetype fonts.
12846 (x_draw_glyph_string): Sync with xterm.c.
12847 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
12848 Remove redundant code.
12849 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
12850
12851 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
12852 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
12853
12854 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
12855 (x_to_w32_charset, w32_to_x_charset): Expose externally.
12856
12857 * w32font.c: New file for w32 font backend.
12858
12859 2008-02-01 Kenichi Handa <handa@m17n.org>
12860
12861 * term.c: Don't include "buffer.h" twice.
12862
12863 2008-02-01 Kenichi Handa <handa@m17n.org>
12864
12865 * character.c (Funibyte_string): New function.
12866 (syms_of_character): Defsubr it.
12867
12868 2008-02-01 Jason Rumney <jasonr@gnu.org>
12869
12870 * w32term.c [USE_FONT_BACKEND]:
12871 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
12872 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
12873 (x_draw_glyph_string, x_draw_glyph_string_foreground)
12874 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
12875 (x_free_frame_resources): Sync with xterm.c.
12876
12877 2008-02-01 Andreas Schwab <schwab@suse.de>
12878
12879 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
12880 char-table size.
12881
12882 2008-02-01 Kenichi Handa <handa@m17n.org>
12883
12884 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
12885
12886 2008-02-01 Kenichi Handa <handa@m17n.org>
12887
12888 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
12889 font_otf_gpos, add font_drive_otf.
12890
12891 * fontset.c (fontset_find_font): Pay attention to font size
12892 specified for a font.
12893 (reorder_font_vector): Check contents of font_def.
12894
12895 * font.c (struct otf_list): Delete it.
12896 (otf_list): Make it a lisp variable.
12897 (otf_open): Use lispy otf_list.
12898 (generate_otf_features): Rename from parse_gsub_gpos_spec.
12899 (check_otf_features): New function.
12900 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
12901 New functions.
12902 (font_drive_otf): New function merging font_otf_gsub and
12903 font_otf_gpos.
12904 (font_open_for_lface): New arg spec. Change argument order.
12905 (font_load_for_face): Adjust for the change of font_open_for_lface.
12906 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
12907 Ffont_otf_gpos.
12908 (syms_of_font): Staticpro otf_list. Delete defsubr of
12909 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
12910
12911 * xfaces.c (set_font_frame_param): Adjust for the change of
12912 font_open_for_lface.
12913
12914 * font.h (font_open_for_lface): Adjust prototype.
12915 (struct font_driver): Delete members otf_gsub and otf_gpos, add
12916 member otf_drive.
12917 (font_otf_gsub, font_otf_gpos): Delete externs.
12918 (font_drive_otf): Extern it.
12919
12920 2008-02-01 Kenichi Handa <handa@m17n.org>
12921
12922 * font.c (font_at): If the window W is not on a window system,
12923 return Qnil.
12924
12925 * coding.c (produce_chars, encode_coding): Don't call
12926 insert_from_gap if no characters to produce.
12927
12928 2008-02-01 Kenichi Handa <handa@m17n.org>
12929
12930 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
12931 Fclear_face_cache.
12932
12933 * xfaces.c (face_for_font): Check also face->font==font->font.font.
12934
12935 2008-02-01 Miles Bader <miles@gnu.org>
12936
12937 * emacs.c (main): Change default value of `enable_font_backend' to 1.
12938 Parse "--disable-font-backend" option.
12939 (standard_args): Add "--disable-font-backend" option.
12940
12941 2008-02-01 Kenichi Handa <handa@m17n.org>
12942
12943 * fontset.c (fontset_find_font): New function.
12944 (fontset_font): Use fontset_find_font.
12945 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
12946 Register the specified font for all Latin characters.
12947 (new_fontset_from_font): Register the specified font for all Latin
12948 characters.
12949 (dump_fontset): For a realized fontset, include the base fontset
12950 name in the returned vector.
12951
12952 2008-02-01 Kenichi Handa <handa@m17n.org>
12953
12954 * character.h (CHAR_STRING): Cast C to unsigned on calling
12955 char_string.
12956
12957 * character.c (char_string): Type of arg C changed to unsigned.
12958 Signal an error if C is an invalid character code.
12959
12960 * editfns.c (general_insert_function, Fchar_to_string):
12961 Use CHARACTERP, not INTEGERP.
12962
12963 2008-02-01 Kenichi Handa <handa@m17n.org>
12964
12965 * character.h (MIN_MULTIBYTE_LEADING_CODE)
12966 (MAX_MULTIBYTE_LEADING_CODE): New macros.
12967
12968 * regex.c (analyse_first): Fix for multibyte characters in "case
12969 charset:" and "case categoryspec:".
12970
12971 2008-02-01 Andreas Schwab <schwab@suse.de>
12972
12973 * Makefile.in (LIBES): Move standard libraries to the end.
12974
12975 2008-02-01 Kenichi Handa <handa@m17n.org>
12976
12977 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
12978 nonzero, don't shrink the buffer nextb.
12979
12980 * buffer.h (struct buffer_text): New member inhibit_shrinking.
12981
12982 * coding.c (coding_alloc_by_making_gap): New arg offset.
12983 (alloc_destination): Call coding_alloc_by_making_gap with the arg
12984 offset.
12985 (decode_coding_iso_2022): Update coding->safe_charsets.
12986 (decode_coding_gap): Temporarily set
12987 current_buffer->text->inhibit_shrinking to 1.
12988
12989 2008-02-01 Kenichi Handa <handa@m17n.org>
12990
12991 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
12992 indexing into elements of s->cmp and s->char2b.
12993
12994 2008-02-01 Juanma Barranquero <lekktu@gmail.com>
12995
12996 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
12997
12998 2008-02-01 Kenichi Handa <handa@m17n.org>
12999
13000 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
13001 target_multibyte instead of multibyte.
13002 (re_match_2_internal): Call bcmp_translate with target_multibyte.
13003 (bcmp_translate): Change the argument name from multibyte to
13004 target_multibyte.
13005
13006 2008-02-01 Kenichi Handa <handa@m17n.org>
13007
13008 These changes are to compile a regexp into a pattern that can be
13009 used both for multibyte and unibyte targets.
13010
13011 * Makefile.in (search.o): Depend on charset.h.
13012
13013 * character.c (multibyte_char_to_unibyte_safe): New function.
13014
13015 * search.c: Include "charset.h".
13016 (compile_pattern_1): Delete argument multibyte. Don't set
13017 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
13018 (compile_pattern): Don't compare cp->buf.target_multibyte.
13019 Compare cp->buf.charset_unibyte.
13020 (compile_pattern): Set cp->buf.target_multibyte.
13021
13022 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
13023
13024 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
13025
13026 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
13027 multibyte. Change callers.
13028 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
13029 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
13030 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
13031 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
13032 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
13033 (regex_compile): Make the compiled pattern usable both for
13034 multibyte and unibyte targets.
13035 (analyse_first): Make the fastmap usable both for multibyte and
13036 unibyte targets.
13037 (TRANSLATE_VIA_MULTIBYTE): Delete.
13038 (re_match_2_internal): Pay attention to the case that the
13039 multibyteness of bufp and target may be different.
13040
13041 2008-02-01 Kenichi Handa <handa@m17n.org>
13042
13043 * xdisp.c (x_produce_glyphs): When a font is not found, make the
13044 empty box occupy at least one column width.
13045
13046 2008-02-01 Miles Bader <miles@gnu.org>
13047
13048 * Makefile.in: Remove redundant HAVE_XFT clause.
13049
13050 2008-02-01 Kenichi Handa <handa@m17n.org>
13051
13052 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
13053
13054 2008-02-01 Kenichi Handa <handa@m17n.org>
13055
13056 * fontset.c (Finternal_char_font): Fix for the case of POSITION
13057 being nil.
13058
13059 2008-02-01 Kenichi Handa <handa@m17n.org>
13060
13061 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
13062
13063 2008-02-01 Kenichi Handa <handa@m17n.org>
13064
13065 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
13066
13067 2008-02-01 Kenichi Handa <handa@m17n.org>
13068
13069 * search.c (simple_search): Fix previous change.
13070
13071 2008-02-01 Kenichi Handa <handa@m17n.org>
13072
13073 * xftfont.c (ftfont_font_format): Extern declaration.
13074
13075 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
13076
13077 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
13078 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
13079
13080 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
13081 (ftfont_font_format): Fix previous change.
13082
13083 * font.h (Ffont_xlfd_name): EXFUN it.
13084
13085 * font.c (font_parse_xlfd): Fix the array size of `f'.
13086 (register_font_driver): Use EQ to compare driver->type.
13087
13088 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
13089 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
13090 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
13091
13092 2008-02-01 Kenichi Handa <handa@m17n.org>
13093
13094 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
13095 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
13096
13097 2008-02-01 Kenichi Handa <handa@m17n.org>
13098
13099 * xfont.c (xfont_open): Set font->format.
13100
13101 * xftfont.c (xftfont_open): Set font->format.
13102
13103 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
13104 (ftfont_list): Include FC_FONTFORMAT in FcObject.
13105 (ftfont_open): Set font->format.
13106 (ftfont_font_format): New function.
13107
13108 * font.h (struct font): New member format.
13109
13110 * font.c (Qopentype): New variable.
13111 (syms_of_font): Defsym it.
13112 (Fquery_font): Change the format of the last element of the return
13113 value.
13114
13115 2008-02-01 Kenichi Handa <handa@m17n.org>
13116
13117 * xfns.c (xic_create_xfontset): Try the default fontset name as a
13118 last resort.
13119
13120 2008-02-01 Kenichi Handa <handa@m17n.org>
13121
13122 * coding.c (detect_coding_charset): Fix detection of multi-byte
13123 charset.
13124
13125 2008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
13126
13127 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
13128
13129 2008-02-01 Kenichi Handa <handa@m17n.org>
13130
13131 * xdisp.c (get_next_display_element): Set it->face_id for the
13132 first component of a composition.
13133 (x_produce_glyphs): Check if the font is changed or not for composition.
13134
13135 2008-02-01 Kenichi Handa <handa@m17n.org>
13136
13137 * fontset.c (Qlatin): New variable.
13138 (syms_of_fontset): Define it as a lisp symbol.
13139 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
13140
13141 2008-02-01 Kenichi Handa <handa@m17n.org>
13142
13143 * font.c (font_unparse_fcname): Pay attention to the case that
13144 some of font property is a null string.
13145
13146 2008-02-01 Kenichi Handa <handa@m17n.org>
13147
13148 * term.c: Include "composite.h".
13149 (encode_terminal_code): Output all components of composition.
13150 Check the size of encode_terminal_src.
13151 (produce_glyphs): For composition, call produce_composite_glyph.
13152 (append_composite_glyph, produce_composite_glyph): New functions.
13153
13154 * xdisp.c (x_produce_glyphs): In handling composition, if a font
13155 is not found, get font_info from the current ascii face.
13156
13157 2008-02-01 Kenichi Handa <handa@m17n.org>
13158
13159 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
13160 buffer-file-name to Qnil before calling insert_from_buffer.
13161
13162 * font.c (font_unparse_fcname): Pay attention to the case that
13163 foundry is a null string.
13164
13165 2008-02-01 Kenichi Handa <handa@m17n.org>
13166
13167 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
13168
13169 * font.c (Qunicode_sip): New variable.
13170 (syms_of_font): Declare it as a Lisp symbol.
13171
13172 * font.h (Qunicode_sip): Extern it.
13173
13174 2008-02-01 Kenichi Handa <handa@m17n.org>
13175
13176 * composite.c (get_composition_id): Pay attention to TAB component.
13177
13178 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
13179 TAB. Adjust for the change of s->char2b which always points to
13180 the first element of allocated memory.
13181
13182 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
13183
13184 * xdisp.c (handle_composition_prop): Set it->c to the first
13185 non-TAB component.
13186 (fill_composite_glyph_string): Change argument.
13187 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
13188 (x_produce_glyphs): Fix handling of left/right padding.
13189
13190 2008-02-01 Kenichi Handa <handa@m17n.org>
13191
13192 * coding.c (detect_coding_system): Fix for handling off
13193 inhibit_iso_escape_detection. Fix for the case that no coding
13194 system is defined for a specific coding category.
13195
13196 2008-02-01 Kenichi Handa <handa@m17n.org>
13197
13198 * font.c (font_matching_entity): Delete unused local var.
13199
13200 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
13201 opening a font.
13202
13203 * fileio.c (Finsert_file_contents): On recovering a file, assume
13204 Unix-like eol.
13205 (choose_write_coding_system): On auto-saving a file, force
13206 Unix-like eol.
13207
13208 * coding.c (setup_coding_system): Fix setting of
13209 coding->common_flags based on eol_type.
13210 (coding_inherit_eol_type): If PARENT is not nil, be sure to
13211 inherit from it.
13212
13213 2008-02-01 Kenichi Handa <handa@m17n.org>
13214
13215 * alloc.c (NSTATICS): Increas to 0x600.
13216
13217 2008-02-01 Kenichi Handa <handa@m17n.org>
13218
13219 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
13220 (ftfont_list): Don't check :name property.
13221 (ftfont_match): New function.
13222 (ftfont_pattern_entity): If the pattern doesn't contain
13223 FC_SPACING, don't assume FC_MONO.
13224
13225 * font.h (struct font_driver): New member `match'.
13226 (font_update_drivers): Adjust prototype.
13227
13228 * font.c (font_parse_fcname, font_parse_name): Don't change :name
13229 property of FONT.
13230 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
13231 them unconditionally.
13232 (font_matching_entity): New function.
13233 (font_open_by_name): Try font_matching_entity if exact match is
13234 not found.
13235 (font_update_drivers): Delete the arg FONT. Return a list of
13236 actually used backends. Don't free faces, font caches here.
13237 Don't store data in frame parameters. Don't call x_set_font.
13238 (Ffont_spec): Store :name property as is.
13239 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
13240 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
13241 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
13242 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
13243 Call font->driver->otf_gsub instead of font_otf_gsub.
13244
13245 * frame.c (x_set_font_backend): Do more works that were done in
13246 font_update_drivers before.
13247
13248 * xfont.c (xfont_match): New function.
13249 (xfont_driver): Set xfont_driver.match to xfont_match.
13250 (xfont_draw): Set font in GC if necessary.
13251
13252 * ftxfont.c (ftxfont_match): New function.
13253 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
13254
13255 * xftfont.c (xftfont_match): New function.
13256 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
13257
13258 2008-02-01 Kenichi Handa <handa@m17n.org>
13259
13260 * font.h (struct font): New member scalable.
13261 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
13262 (font_otf_gsub): Adjust prototype.
13263
13264 * font.c (font_otf_capability): Fix handling of the default langsys.
13265 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
13266 Check the contents of SPEC.
13267 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
13268 (check_gstring): New function.
13269 (REPLACEMENT_CHARACTER): New macro.
13270 (font_otf_gsub): New arg alternate_subst. Be sure to set all
13271 glyph codes of GSTRING.
13272 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
13273 (font_prepare_composition): Set cmp->glyph_len.
13274 (font_open_entity): Set font->scalable.
13275 (Ffont_get): Handle :otf property.
13276 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
13277 functions.
13278 (Fquery_font): Use font->font.full_name.
13279 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
13280 Sfont_otf_alternates.
13281
13282 * ftfont.c (ftfont_open): Set font->font.full_name and
13283 font->font.name properly. Fix calculation of font->font.height
13284 and font->min_width.
13285
13286 * ftxfont.c (ftxfont_create_gcs): New function.
13287 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
13288 (ftxfont_draw_backgrond): Fix filling region.
13289 (ftxfont_default_fid): New function.
13290 (ftxfont_open): Set xfont->fid to the return value of
13291 ftxfont_default_fid.
13292 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
13293 (ftxfont_done_face): Free only GCs that are created by
13294 ftxfont_create_gcs.
13295 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
13296
13297 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
13298 Clip to src->width, etc (not src->clip_XXX).
13299
13300 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
13301 FontBackend frame parameter.
13302
13303 2008-02-01 Kenichi Handa <handa@m17n.org>
13304
13305 * font.h (struct font_driver_list): New member `on'.
13306 (Fclear_font_cache): EXFUN it.
13307 (font_update_drivers): Extern it.
13308
13309 * font.c (font_unparse_fcname): Fix typo (swidth->width).
13310 (font_list_entities): Check driver_list->on.
13311 (register_font_driver): Initalize `on' member to 0.
13312 (font_update_drivers): New function.
13313 (Fclear_font_cache): Check driver_list->on.
13314
13315 * frame.h (Qfont_backend): Extern it.
13316 (x_set_font_backend): Extern it.
13317
13318 * frame.c (Qfont_backend): New variable.
13319 (frame_parms): New element for font-backend.
13320 (x_set_font_backend): New function.
13321
13322 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
13323 FontBackend frame parameter.
13324 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
13325 x_set_font_backend.
13326
13327 * xfont.c (xfont_list): Don't try listing by :name property if the
13328 name is not for XLFD.
13329
13330 2008-02-01 Kenichi Handa <handa@m17n.org>
13331
13332 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
13333 (LGLYPH_SET_TO): New macros.
13334 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
13335 element of G is vector or not.
13336 (font_at): Extern it.
13337
13338 * font.c: Include window.h.
13339 (font_lispy_object): New function.
13340 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
13341 end of valid glyph.
13342 (font_close_object): Fix getting (struct font *).
13343 (font_at): New function.
13344 (Ffont_get): If FONT is a font-object, get entity from it.
13345 (Ffont_make_gstring): Initialize elements of glyphs with nil.
13346 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
13347 range check.
13348 (Ffont_at): New function.
13349 (syms_of_font): Defsubr Sfont_at.
13350
13351 * xdisp.c (it_props): Move the entry for Qauto_composed to just
13352 before the entry for Qcomposition.
13353 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
13354 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
13355 the font in gstring.
13356 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
13357 LGLYPH_FORM (g) to detect the end of valid glyph.
13358 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
13359 we are composing with gstring.
13360
13361 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
13362 Check if adjustment is vector or not.
13363
13364 * Makefile.in (font.o): Make it depends on window.h.
13365
13366 2008-02-01 Kenichi Handa <handa@m17n.org>
13367
13368 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
13369 adjustment is vector or not.
13370
13371 2008-02-01 Miles Bader <miles@gnu.org>
13372
13373 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
13374
13375 2008-02-01 Kenichi Handa <handa@m17n.org>
13376
13377 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
13378 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
13379 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
13380
13381 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
13382 (DEVICE_DELTA): Fix typo.
13383 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
13384 LGLYPH format.
13385
13386 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
13387 the change of LGLYPH format.
13388
13389 2008-02-01 Kenichi Handa <handa@m17n.org>
13390
13391 * ftfont.c (ftfont_list): Fix typo.
13392 (ftfont_build_basic_charsets): Don't include letters with diacritics.
13393
13394 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
13395
13396 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
13397
13398 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
13399 xftface_info is non-NULL.
13400
13401 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
13402
13403 * ftfont.c (ftfont_list): Move misplaced #endif.
13404
13405 2008-02-01 Kenichi Handa <handa@m17n.org>
13406
13407 * ftfont.c (ftfont_list): Pay attention to the case that
13408 FC_CAPABILITY is not defined.
13409
13410 2008-02-01 Kenichi Handa <handa@m17n.org>
13411
13412 * xftfont.c (xftfont_open): Set charset related members to -1.
13413
13414 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
13415 QCname.
13416 (ftfont_open): Set charset related members to -1.
13417
13418 * fontset.c (Votf_script_alist): New variable.
13419 (syms_of_fontset): Initialize it.
13420 (fontset_font): Delete unused variable.
13421
13422 * fontset.h (Votf_script_alist): Extern it.
13423
13424 * font.c (font_find_for_lface): Optimize code.
13425
13426 * font.h (font_close_object, font_merge_old_spec): Extern them.
13427
13428 2008-02-01 Kenichi Handa <handa@m17n.org>
13429
13430 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
13431 (syms_of_font): Initialize them.
13432 (font_pixel_size): Allow float value in dpi.
13433 (font_prop_validate_type): Delete.
13434 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
13435 Change caller.
13436 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
13437 (font_prop_validate_extra): Delete.
13438 (font_prop_validate_spacing): New function.
13439 (font_property_table): Add elements for all known properties.
13440 (get_font_prop_index): Rename from check_font_prop_name. New
13441 argument FROM. Change caller.
13442 (font_prop_validate): Validate all known properties.
13443 (font_put_extra): Delete argument force. Change caller.
13444 (font_expand_wildcards): Make it static. Fix the way of shrinking
13445 the possible range.
13446 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
13447 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
13448 Change caller.
13449 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
13450 (font_parse_fcname): Delete argument merge. Fix parsing of point
13451 size. Don't validate properties values here. Change caller.
13452 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
13453 (font_open_by_name): Delete unused variable.
13454 (Ffont_spec): Likewise. Validate property values.
13455 (Ffont_match_p): New function.
13456
13457 * font.h (QCscalable): Extern it.
13458 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
13459
13460 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
13461
13462 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
13463 (xfont_list_pattern): New function.
13464 (xfont_list): Use xfont_list_pattern.
13465
13466 2008-02-01 Kenichi Handa <handa@m17n.org>
13467
13468 * font.h (Flist_fonts): EXFUN it.
13469
13470 2008-02-01 Jason Rumney <jasonr@gnu.org>
13471
13472 * w32term.c (w32_initialize): Add back smoothing_type and
13473 smoothing_enabled definitions.
13474
13475 2008-02-01 Kenichi Handa <handa@m17n.org>
13476
13477 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
13478 s->face->font on determining underline position.
13479
13480 2008-02-01 Kenichi Handa <handa@m17n.org>
13481
13482 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
13483 (font_has_char): Accept font-object too.
13484 (font_find_for_lface): Try at first with a size specified in face.
13485
13486 2008-02-01 Kenichi Handa <handa@m17n.org>
13487
13488 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
13489 font_open_by_name.
13490
13491 2008-02-01 Kenichi Handa <handa@m17n.org>
13492
13493 * font.h (QCspacing, QCdpi): Extern them.
13494 (enum font_spacing): New enum.
13495 (FONT_PIXEL_SIZE_QUANTUM): New macro.
13496
13497 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
13498 (QCspacing, QCdpi): New variables.
13499 (syms_of_font): Initialize them.
13500 (font_pixel_size): New function.
13501 (font_put_extra): New function.
13502 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
13503 in FONT_EXTRA.
13504 (font_parse_fcname): Handle enumerated values (e.g. bold).
13505 Fix handling font size. Add QCname property that contains only
13506 unknown properties.
13507 (font_score): Change argument. Change caller. Pay attention to
13508 FONT_PIXEL_SIZE_QUANTUM.
13509 (font_sort_entites, font_list_entities, font_find_for_lface)
13510 (font_open_for_lface, font_open_by_name): Fix handling of font size.
13511 (Ffont_spec): Add QCname property that contains only unknown properties.
13512
13513 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
13514 include weight in listing pattern, instead check weight of each
13515 listed font. Don't include scalable in pattern. Pay attention to
13516 FONT_PIXEL_SIZE_QUANTUM.
13517
13518 2008-02-01 Kenichi Handa <handa@m17n.org>
13519
13520 * font.c (font_parse_fcname): Fix parsing of point-size.
13521 (font_unparse_fcname): Produce symbolic names for style properties.
13522 (font_list_entities): Handle float size correctly.
13523 (font_open_by_name): Prefer `normal' property values if the name
13524 doesn't specify them.
13525
13526 * fontset.c (Finternal_char_font): Use font_get_name, not
13527 Ffont_xlfd_name.
13528
13529 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
13530 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
13531 pattern. Don't force scalable.
13532
13533 * xftfont.c (xftfont_open): For generating a name, start from
13534 96-byte buffer.
13535
13536 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
13537
13538 * frame.h (x_new_fontset2): Fix prototype.
13539
13540 2008-02-01 Kenichi Handa <handa@m17n.org>
13541
13542 * font.h (struct font_driver): Delete member parse_name.
13543 (font_match_p, font_get_spec, font_parse_fcname)
13544 (font_unparse_fcname): Extern them.
13545 (font_get_name): Adjust prototype.
13546
13547 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
13548 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
13549 (font_expand_wildcards): Fix handling ENCODING field. Avoid
13550 unnecessary checks for weight, slant, and swidth.
13551 (font_parse_fcname): New function.
13552 (font_unparse_fcname): New function.
13553 (font_parse_name): New function.
13554 (font_match_p): New function.
13555 (font_get_name): Change return value to Lisp string.
13556 (font_get_spec): New function.
13557 (Qunspecified, Qignore_defface): Don't extern them.
13558 (font_find_for_lface): Assume that LFACE is fully specified.
13559 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
13560 object, use it for FACE.
13561 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
13562 driver->parse_name.
13563 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
13564
13565 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
13566 prototype.
13567
13568 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
13569 argument F. Don't call Fnew_fontset. Instead, directly call
13570 make_fontset.
13571
13572 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
13573
13574 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
13575 of x_new_fontset2.
13576
13577 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
13578 (Qsans__serif): New variables.
13579 (ftfont_generic_family_list): New variable.
13580 (syms_of_ftfont): Initialize the above variables.
13581 (ftfont_pattern_entity): Delete argument NAME.
13582 (ftfont_list_generic_family): New function.
13583 (ftfont_parse_name): Delete this function.
13584 (ftfont_list): Try generic family only when FcFontList found no font.
13585 (ftfont_list_family): Fix args to FcObjectSetBuild.
13586
13587 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
13588 object in attrs[LFACE_FONT_INDEX].
13589 (set_lface_from_font_name): Cancel all changes for font-backend.
13590 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
13591 function.
13592 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
13593 font object in QCfont attribute.
13594 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
13595 (realize_default_face) [USE_FONT_BACKEND]: Call
13596 set_lface_from_font_and_fontset.
13597
13598 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
13599 "fixed", and signal error here if no suitable font was found.
13600
13601 * xfont.c (xfont_parse_name): Delete this function.
13602
13603 * xftfont.c (xftfont_open): Change coding style of error
13604 handling. Generate fontconfig's fontname pattern.
13605
13606 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
13607 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
13608
13609 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
13610 Both args FONTSET and FONT_OBJECT must be existing ones.
13611
13612 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13613
13614 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
13615
13616 2008-02-01 Kenichi Handa <handa@m17n.org>
13617
13618 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
13619
13620 * font.h (struct font): Fix typo.
13621
13622 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
13623 XLFD_XXX_INDEX.
13624 (enum xlfd_field_mask): New enum.
13625 (intern_font_field): Changed argument. Change caller. If digits
13626 are followed by non-digits, return a symbol.
13627 (font_expand_wildcards): New function.
13628 (font_parse_xlfd): Fix wildcard handling.
13629 (Ffont_spec): If :name is specified, reflect the info in the other
13630 properties.
13631
13632 * ftfont.c (ftfont_pattern_entity): Fix typo.
13633 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
13634 locale.
13635
13636 2008-02-01 Kenichi Handa <handa@m17n.org>
13637
13638 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
13639
13640 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
13641 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
13642 registry doesn't specify encoding part.
13643 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
13644 (font_open_by_name): At first try parsing the name.
13645 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
13646 as Lisp symbols.
13647
13648 * fontset.c (reorder_font_vector): Pay attention to the case that
13649 the 3rd element of font_def is nil.
13650 (fontset_font): For the default fontset, append one more fontset
13651 elements for a script-based font specification. Don't add script
13652 attribute on finding a font.
13653 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
13654 font name.
13655 (fontset_ascii_font): If a font can't be opened, return nil.
13656
13657 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
13658 (ftfont_pattern_entity): New function.
13659 (ftfont_get_cache): Assume that freetype_font_cache is already
13660 initialized.
13661 (ftfont_list): Handle the case that a file is specified in font
13662 name. Use ftfont_pattern_entity to generate entities.
13663 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
13664 (syms_of_ftfont): Initialize freetype_font_cache.
13665
13666 * xftfont.c (xftfont_open): Make the font name fontconfig's
13667 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
13668 (xftfont_close): Free font->font.name if not NULL.
13669
13670 * xfont.c (xfont_list): If script is specified for a font, return
13671 null_vector.
13672 (xfont_list_family): Declare argument type.
13673
13674 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
13675 name, set LFACE_FONT (lface) to nil.
13676
13677 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
13678 return Qnil.
13679
13680 2008-02-01 Kenichi Handa <handa@m17n.org>
13681
13682 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
13683 (standard_args): Add "-enable-font-backend".
13684
13685 2008-02-01 Kenichi Handa <handa@m17n.org>
13686
13687 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
13688 (struct xftdraw_list, xftdraw_list): Delete them.
13689 (register_xftdraw, check_xftdraw): Delete them.
13690 (xftfont_prepare_face): Don't call register_xftdraw.
13691 (xftfont_done_face): Don't call check_xftdraw.
13692 (xftfont_draw): Get background color only when with_background is
13693 nonzero.
13694
13695 * xfont.c (xfont_encode_char): Fix calculation of char2b.
13696
13697 2008-02-01 Kenichi Handa <handa@m17n.org>
13698
13699 These changes are for the new font handling codes.
13700
13701 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
13702 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
13703 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
13704 (FONTSRC, FONTOBJ): New variables.
13705 (obj): Add $(FONTOBJ).
13706 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
13707 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
13708 @LIBOTF_LIBS@.
13709 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
13710 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
13711
13712 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
13713
13714 * character.h (Vscript_representative_chars): Extern it.
13715
13716 * character.c (Vscript_representative_chars): New variable.
13717 (syms_of_character): Declare it as a Lisp variable.
13718
13719 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
13720 enable_font_backend is nonzero, accept the composition method
13721 COMPOSITION_WITH_GLYPH_STRING.
13722
13723 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
13724 enumeration COMPOSITION_WITH_GLYPH_STRING.
13725
13726 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
13727 members clip_x, clip_y, clip_width, and clip_height.
13728 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
13729
13730 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
13731 --enable-font-backend. Call syms_of_font.
13732
13733 * fns.c (assoc_no_quit): New function.
13734
13735 * fontset.h (FONT_INFO_FROM_FACE): New macro.
13736 (face_for_font, new_fontset_from_font)
13737 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
13738
13739 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
13740 (fontset_font, fontset_ascii, face_for_char)
13741 (make_fontset_for_ascii_face, Ffont_info)
13742 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
13743 is nonzero, use font-backend mechanism.
13744 (find_font_encoding): Make it non-static.
13745 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
13746 New functions.
13747
13748 * frame.h (struct frame): New members resx and resy.
13749 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
13750 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
13751
13752 * frame.c [USE_FONT_BACKEND]: Include "font.h".
13753 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
13754
13755 * lisp.h (assoc_no_quit): Extern it.
13756
13757 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
13758 Through out the file, use FONT_INFO_FROM_FACE instead of
13759 FONT_INFO_FROM_ID, use get_per_char_metric instead of
13760 rif->per_char_metric.
13761 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
13762 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
13763 (get_glyph_face_and_encoding, fill_composite_glyph_string)
13764 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
13765 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
13766 nonzero, use font-backend mechanism.
13767 (get_per_char_metric): New function.
13768
13769 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
13770 (set_lface_from_font_name)
13771 (set_font_frame_param, free_realized_face)
13772 (prepare_face_for_display, clear_face_gcs)
13773 (Finternal_set_font_selection_order, realize_x_face)
13774 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
13775 font-backend mechanism.
13776 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
13777 (load_face_font) [USE_FONT_BACKEND]: Abort.
13778 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
13779 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
13780
13781 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
13782 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
13783 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
13784 nonzero, register all available font drivers. Call
13785 x_default_font_parameter for deciding a font.
13786 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
13787
13788 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
13789 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
13790 (x_set_glyph_string_clipping_exactly)
13791 (x_compute_glyph_string_overhangs)
13792 (x_draw_glyph_string_foreground)
13793 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
13794 (x_free_frame_resources) [USE_FONT_BACKEND]: If
13795 enable_font_backend is nonzero, use font-backend mechanism.
13796 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
13797
13798 2008-02-01 Kenichi Handa <handa@m17n.org>
13799
13800 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
13801 system_eol_type.
13802 (syms_of_coding): Initialize system_eol_type.
13803
13804 * process.c (Fset_process_coding_system): Inherit system's eol
13805 format if necessary.
13806
13807 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13808
13809 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
13810
13811 2008-02-01 Kenichi Handa <handa@m17n.org>
13812
13813 * coding.c (decode_eol): Pay attention to buffer relocation in
13814 del_range_2.
13815 (decode_coding): Call decode_eol before restoring undo_list.
13816
13817 2008-02-01 Kenichi Handa <handa@m17n.org>
13818
13819 * charset.c (Fdefine_charset_internal): Fix setting of
13820 emacs_mule_bytes.
13821
13822 2008-02-01 Kenichi Handa <handa@m17n.org>
13823
13824 * keyboard.c (read_char): Check if C is a character or not before
13825 looking up Vkeyboard_translate_table.
13826
13827 2008-02-01 Kenichi Handa <handa@m17n.org>
13828
13829 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
13830 condition to terminate the loop.
13831
13832 2008-02-01 Kenichi Handa <handa@m17n.org>
13833
13834 * coding.c (produce_composition): Compare charbuf[i] instead of
13835 args[i] against 0.
13836 (Fterminal_coding_system): Use EQ to compare Lisp objects.
13837
13838 2008-02-01 Kenichi Handa <handa@m17n.org>
13839
13840 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
13841 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
13842 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
13843 detect_coding.
13844 (emacs_mule_char): Handle old style (Emacs 20) component character
13845 of a composition.
13846 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
13847 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
13848 composition rule.
13849 (decode_coding_emacs_mule): Handle invalid bytes correctly.
13850
13851 2008-02-01 Kenichi Handa <handa@m17n.org>
13852
13853 * coding.c (encode_coding_ccl): Allocate destination dynamically
13854 when necessary.
13855
13856 2008-02-01 Kenichi Handa <handa@m17n.org>
13857
13858 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
13859 the loop. When quitted, show a proper error message.
13860
13861 2008-02-01 Kenichi Handa <handa@m17n.org>
13862
13863 * xterm.c (x_set_glyph_string_clipping_exactly): Set
13864 src->clip_head and src->clip_tail temporarily instead of src->hl.
13865
13866 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
13867 character sequence.
13868 (Fccl_execute_on_string): Use ASET, not XSET.
13869
13870 2008-02-01 Kenichi Handa <handa@m17n.org>
13871
13872 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
13873
13874 2008-02-01 Kenichi Handa <handa@m17n.org>
13875
13876 * coding.c (decode_coding): Fix the condition of terminating the
13877 decoding loop.
13878
13879 2008-02-01 Kenichi Handa <handa@m17n.org>
13880
13881 * data.c (Faset): On setting a character bigger than 255 in a
13882 unibyte string, signal an error instead of make the string multibyte.
13883
13884 2008-02-01 Kenichi Handa <handa@m17n.org>
13885
13886 * charset.c (map_charset_chars): Fix for ascii-compatible charset
13887 made by a mapping table.
13888
13889 2008-02-01 Kenichi Handa <handa@m17n.org>
13890
13891 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
13892 not.
13893 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
13894 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
13895
13896 * xterm.c (x_draw_composite_glyph_string_foreground): Check
13897 s->face is NULL or not.
13898
13899 2008-02-01 Kenichi Handa <handa@m17n.org>
13900
13901 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
13902 (x_draw_glyph_string): Fix drawing of right_overhang and
13903 left_overhang around/on cursor.
13904
13905 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
13906
13907 2008-02-01 Kenichi Handa <handa@m17n.org>
13908
13909 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
13910
13911 2008-02-01 Kenichi Handa <handa@m17n.org>
13912
13913 * coding.c (Fdefine_coding_system_internal)
13914 (Fdefine_coding_system_alias): Avoid a duplicated element in
13915 Vcoding_system_alist.
13916
13917 2008-02-01 Kenichi Handa <handa@m17n.org>
13918
13919 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
13920
13921 * coding.c (Qcoding_system_define_form): New variable.
13922 (syms_of_coding): Intern and staticpro it.
13923 (Fcoding_system_p): Check Qcoding_system_define_form.
13924 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
13925
13926 * coding.h (CODING_SYSTEM_P): If ID is not available, call
13927 Fcoding_system_p.
13928 (CHECK_CODING_SYSTEM): If ID is not available, call
13929 Fcheck_coding_system.
13930 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
13931 Try also Fcheck_coding_system.
13932
13933 2008-02-01 Kenichi Handa <handa@m17n.org>
13934
13935 * coding.c (code_conversion_restore): GCPRO arg.
13936
13937 2008-02-01 Kenichi Handa <handa@m17n.org>
13938
13939 * character.c (lisp_string_width): Check multibyteness of STRING.
13940
13941 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13942
13943 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
13944 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
13945 (decode_mac_font_name): Use decode_coding_c_string instead of
13946 decode_coding.
13947 (x_load_font): Initialize fontp->fontset to -1. Set
13948 fontp->encoding_type.
13949
13950 2008-02-01 Kenichi Handa <handa@m17n.org>
13951
13952 * search.c (search_buffer): Give up BM search on case-fold-search
13953 if one of a target character has a case-equivalence of different
13954 byte length even if that target charcter is an ASCII.
13955 (simple_search): Fix calculation of byte length of matched text.
13956 (boyer_moore): Fix handling of case-equivalent multibyte characters.
13957
13958 2008-02-01 Kenichi Handa <handa@m17n.org>
13959
13960 * coding.c (decode_coding): Fix handling of invalid bytes.
13961
13962 2008-02-01 Kenichi Handa <handa@m17n.org>
13963
13964 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
13965 Unicode characters.
13966
13967 2008-02-01 Kenichi Handa <handa@m17n.org>
13968
13969 * coding.c (encode_coding_object): If a pre-write-conversion
13970 function makes a new buffer, kill it.
13971
13972 2008-02-01 Kenichi Handa <handa@m17n.org>
13973
13974 * coding.c (QCascii_compatible_p): New variable.
13975 (syms_of_coding): Initialize it.
13976 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
13977 calling string_char.
13978 (record_conversion_result): Add `default:' case.
13979 (coding_charset_list): Delete unused variable `coding_type'.
13980 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
13981 property in the plist of the coding system.
13982 (Fcoding_system_put): Check QCascii_compatible_p.
13983
13984 2008-02-01 Miles Bader <miles@gnu.org>
13985
13986 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
13987 removed calculation of frame `f', as it's now used.
13988
13989 2008-02-01 Kenichi Handa <handa@m17n.org>
13990
13991 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
13992 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
13993 (UNIDATA): New variable.
13994 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
13995 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
13996 $(RUN_TEMACS) unconditionally.
13997
13998 2008-02-01 Kenichi Handa <handa@m17n.org>
13999
14000 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
14001 (admindir): New variable.
14002 ($(lispsource)international/charprop.el): New target.
14003
14004 2008-02-01 Miles Bader <miles@gnu.org>
14005
14006 * character.c (chars-in-region): Remove obsolete function.
14007 (syms_of_character): Remove its initialization.
14008
14009 2008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
14010
14011 * w32select.c (validate_coding_system)
14012 (setup_windows_coding_system): New functions.
14013 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
14014 setup_windows_coding_system.
14015 (setup_config, Fw32_get_clipboard_data): Use
14016 validate_coding_system.
14017 (Fx_selection_exists): Move call to setup_config to a place
14018 where signals are allowed.
14019
14020 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
14021 (Fcheck_coding_system): Add declarations.
14022
14023 2008-02-01 Kenichi Handa <handa@m17n.org>
14024
14025 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
14026
14027 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14028
14029 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
14030 string as the second argument for x_new_fontset.
14031
14032 2008-02-01 Kenichi Handa <handa@m17n.org>
14033
14034 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
14035 (encode_coding_object): Use safe_call instead of call2.
14036
14037 2008-02-01 Kenichi Handa <handa@m17n.org>
14038
14039 * fontset.c (Fset_fontset_font): Check family element of a given vector.
14040
14041 * Makefile.in (lisp): Include charprop.el.
14042
14043 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14044
14045 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
14046 Not sure if it's unnecessary.
14047
14048 2008-02-01 Steven Tamm <steventamm@mac.com>
14049
14050 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
14051 some possibly unnecessary fontset checking code that crashed
14052 when creating a new frame.
14053
14054 2008-02-01 Kenichi Handa <handa@m17n.org>
14055
14056 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
14057 lookup_face.
14058
14059 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
14060
14061 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
14062
14063 2008-02-01 Kenichi Handa <handa@m17n.org>
14064
14065 * coding.c: Cancel the change done in HEAD on 2008-02-01.
14066 (coding_charset_list): New function.
14067
14068 * coding.h (coding_charset_list): Extern it.
14069
14070 2008-02-01 Kenichi Handa <handa@m17n.org>
14071
14072 * fontset.c (Fset_fontset_font): Call find_font_encoding with
14073 concatenation of family and registry.
14074
14075 2008-02-01 Kenichi Handa <handa@m17n.org>
14076
14077 * character.h (BYTE8_STRING): Fix typo.
14078
14079 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
14080 string to multibyte (sync to HEAD).
14081
14082 * casefiddle.c (casify_region): Handle changes in byte-length
14083 using replace_range_2 (sync to HEAD).
14084
14085 2008-02-01 Andreas Schwab <schwab@suse.de>
14086
14087 * chartab.c (map_char_table): GCPRO table and arg.
14088
14089 2008-02-01 Kenichi Handa <handa@m17n.org>
14090
14091 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
14092 already at limit.
14093
14094 2008-02-01 Kenichi Handa <handa@m17n.org>
14095
14096 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
14097 instead of fast_c_string_match_ignore_case.
14098 (find_font_encoding): Change argument to Lisp_Object. Use
14099 fast_string_match_ignore_case instead of
14100 fast_c_string_match_ignore_case. Change caller.
14101
14102 2008-02-01 Kenichi Handa <handa@m17n.org>
14103
14104 * xdisp.c (get_next_display_element): In unibyte case, decide to
14105 display in octal form by checking a character by
14106 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
14107
14108 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
14109
14110 * character.c (unibyte_has_multibyte_table): New variable.
14111
14112 * character.h (unibyte_has_multibyte_table): Extern it.
14113 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
14114
14115 2008-02-01 Kenichi Handa <handa@m17n.org>
14116
14117 * coding.c (encode_coding_iso_2022): Fix handling of charset
14118 annotation.
14119
14120 2008-02-01 Kenichi Handa <handa@m17n.org>
14121
14122 * coding.c (setup_coding_system): If coding_system is nil, use
14123 Qundecided.
14124 (Fterminal_coding_system): Return nil if terminal coding system is
14125 `undecided'.
14126 (syms_of_coding): Define coding-system `undecided' here. Setup
14127 terminal_coding as `undecided'.
14128
14129 2008-02-01 Kenichi Handa <handa@m17n.org>
14130
14131 * xdisp.c (message_dolog, set_message_1): Call
14132 unibyte_char_to_multibyte with arg type int.
14133
14134 * lread.c (read1): Fix reading of a char-table.
14135
14136 * print.c (print_object): Include sub char-table in circularities
14137 detection.
14138
14139 2008-02-01 Kenichi Handa <handa@m17n.org>
14140
14141 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
14142 Append the found sequences in car of ARGS instead of prepending.
14143
14144 2008-02-01 Kenichi Handa <handa@m17n.org>
14145
14146 * fileio.c (report_file_error): Make a unibyte string from
14147 strerror (errorno).
14148 (Fsubstitute_in_file_name): Fix the arg to
14149 unibyte_char_to_multibyte. It is evaluated twice.
14150
14151 2008-02-01 Kenichi Handa <handa@m17n.org>
14152
14153 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
14154
14155 2008-02-01 Kenichi Handa <handa@m17n.org>
14156
14157 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
14158 BOM is not found.
14159 (detect_coding, detect_coding_system): Optimization for ISO-2022
14160 when no 8-bit data is found.
14161
14162 2008-02-01 Jason Rumney <jasonr@gnu.org>
14163
14164 * w32fns.c (x_to_w32_font): Update to use new coding struct.
14165
14166 2008-02-01 Kenichi Handa <handa@m17n.org>
14167
14168 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
14169 CHARS.
14170
14171 2008-02-01 Steven Tamm <steventamm@mac.com>
14172
14173 * macterm.c (mac_encode_char): Add charset argument and update
14174 to use encoding_type.
14175 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
14176 switch to pure fontset.
14177 (decode_mac_font_name): Temporarily remove decoding.
14178 (x_font_name_to_mac_font_name): Temporarily remove encoding.
14179 (x_load_font): Temporarily remove encoding.
14180
14181 2008-02-01 Kenichi Handa <handa@m17n.org>
14182
14183 * xfaces.c (Fface_font): If frame is not on a window system,
14184 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
14185 refer to face->font.
14186 (split_font_name_into_vector, build_font_name_from_vector)
14187 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
14188 when HAVE_WINDOW_SYSTEM is defined.
14189
14190 2008-02-01 Kenichi Handa <handa@m17n.org>
14191
14192 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
14193 (x_produce_glyphs): Fix setting of members of cmp in case
14194 cmp->glyph_len is zero.
14195
14196 * fontset.c (Fset_fontset_font): Fix docstring.
14197 (Ffontset_info): Make it backward compatible. New arg ALL.
14198
14199 2008-02-01 Kim F. Storm <storm@cua.dk>
14200
14201 * process.c (read_process_output): Grow decoding_buf when needed;
14202 this could cause a crash in allocate_string and compact_small_strings.
14203
14204 2008-02-01 Kenichi Handa <handa@m17n.org>
14205
14206 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
14207
14208 2008-02-01 Kenichi Handa <handa@m17n.org>
14209
14210 * coding.c (setup_coding_system): Set coding->common_flags
14211 correctly for raw-text.
14212 (consume_chars): On encoding unibyte text by raw-text, don't check
14213 multibyte form.
14214 (encode_coding): On encoding by raw-text, never use translation tables.
14215
14216 * fileio.c (e_write): Short cut for the case of no encoding.
14217
14218 2008-02-01 Kenichi Handa <handa@m17n.org>
14219
14220 * coding.c (detect_coding, detect_coding_system): Delete unused
14221 variables.
14222
14223 2008-02-01 Kenichi Handa <handa@m17n.org>
14224
14225 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
14226 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
14227
14228 2008-02-01 Kenichi Handa <handa@m17n.org>
14229
14230 * coding.c (Ffind_coding_systems_region_internal): Include
14231 raw-text and no-conversion in the result.
14232
14233 2008-02-01 Kenichi Handa <handa@m17n.org>
14234
14235 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
14236 (load_font_get_repertory): Delete unnecessary check of ENCODING of
14237 FONT_DEF.
14238 (font_def_arg, add_arg, from_arg, to_arg): New args.
14239 (set_fontset_font): Change argument.
14240 (Fset_fontset_font): Fix for the case that TARGET is a script
14241 name and charset name.
14242 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
14243
14244 2008-02-01 Kenichi Handa <handa@m17n.org>
14245
14246 * fontset.c (fontset_font): Rename from fontset_face. Change return
14247 value.
14248 (face_suitable_for_char_p, face_for_char): Adjust for the change
14249 of fontset_font.
14250 (make_fontset_for_ascii_face): Fix setting of the fontset element
14251 for ASCII.
14252 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
14253 to get a font name.
14254 (Ffontset_info): Adjust for the change of fontset_font.
14255
14256 * coding.c (emacs_mule_char): Check invalid code more rigidly.
14257
14258 * character.h (LEADING_CODE_LATIN_1_MIN)
14259 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
14260
14261 2008-02-01 Kenichi Handa <handa@m17n.org>
14262
14263 * editfns.c (check_translation): New function.
14264 (Ftranslate_region_internal): Handle M:N mapping.
14265
14266 2008-02-01 Kenichi Handa <handa@m17n.org>
14267
14268 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
14269
14270 2008-02-01 Kenichi Handa <handa@m17n.org>
14271
14272 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
14273 goto invalid_code.
14274 (decode_coding_iso_2022): Fix handling of invalid designation.
14275
14276 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
14277 after calling code_conversion_save.
14278
14279 2008-02-01 Kenichi Handa <handa@m17n.org>
14280
14281 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
14282
14283 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
14284
14285 * fontset.c: Include "intervals.h".
14286 (fontset_face): Fix comparing of Lisp_Objects.
14287 (free_face_fontset, new_fontset_from_font_name): Fix
14288 Lisp_Object/int mixup.
14289
14290 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
14291
14292 * coding.c: Add many prototypes for static functions.
14293 (get_translation_table): Allow max_lookup to be NULL.
14294 (decode_coding, Ffind_coding_systems_region_internal)
14295 (Funencodable_char_position, Fcheck_coding_systems_region): Call
14296 get_translation_table with max_lookup NULL.
14297
14298 2008-02-01 Kenichi Handa <handa@m17n.org>
14299
14300 * coding.c (get_translation_table): Declare it as Lisp_Object.
14301 (LOOKUP_TRANSLATION_TABLE): New macro.
14302 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
14303 instead of CHAR_TABLE_REF.
14304
14305 2008-02-01 Kenichi Handa <handa@m17n.org>
14306
14307 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
14308 annotation data format.
14309 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
14310 Change arguments FROM and TO to single argument NCHARS. Change caller.
14311 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
14312 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
14313 (decode_coding_ccl, decode_coding_charset): Pay attention to
14314 coding->charbuf_used.
14315 (get_translation): New function.
14316 (produce_chars): New arguments translation_table and last_block.
14317 Translate characters here. Return number of carryover chars.
14318 Change caller.
14319 (produce_composition): New argument pos. Change caller.
14320 Adjust for the change of annotation data format.
14321 (produce_charset, produce_annotation): Likewise.
14322 (decode_coding, encode_coding): Don't call translate_chars.
14323 (consume_chars): New arg translation_table. Change caller.
14324 (translate_chars): Delete.
14325 (syms_of_coding): Make translation-table's number of extra slots 2.
14326
14327 2008-02-01 Kenichi Handa <handa@m17n.org>
14328
14329 * search.c (simple_search): Fix setting this_pos_byte in backward
14330 search.
14331
14332 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
14333 byte sequence.
14334 (detect_coding_ccl): Fix setting of the variable valids.
14335
14336 2008-02-01 Kenichi Handa <handa@m17n.org>
14337
14338 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
14339
14340 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
14341
14342 * editfns.c (Ftranslate_region_internal): Rename from
14343 Ftranslate_region. Accept a char-table in TABLE.
14344 (syms_of_editfns): Defsubr Stranslate_region_internal.
14345
14346 * xfaces.c (set_lface_from_font_name): If a font is specified for
14347 a frame, generate a fontset from the font.
14348 (build_scalable_font_name): If the scalable font is requested for
14349 a specific size, don't change that size.
14350 (try_font_list): Try a scalable font also in the case that a
14351 pattern string is specified.
14352
14353 2008-02-01 Kenichi Handa <handa@m17n.org>
14354
14355 * xfaces.c (Fface_font): New optional arg CHARACTER.
14356
14357 2008-02-01 Kenichi Handa <handa@m17n.org>
14358
14359 * charset.h (CHARSET_OFFSET): New macro.
14360
14361 2008-02-01 Kenichi Handa <handa@m17n.org>
14362
14363 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
14364
14365 * fontset.c (fontset_face): Handle the case that repertory is a
14366 char-table.
14367 (find_font_encoding): Return nil for unknown encoding.
14368 (Fset_fontset_font): Ignore a font of unknown encoding.
14369
14370 2008-02-01 Kenichi Handa <handa@m17n.org>
14371
14372 * keymap.c (describe_vector): Handle default value of a char table.
14373
14374 * fontset.c (fontset_face): Handle fallback fonts correctly.
14375 (Ffontset_info): Return infomation about fallback fonts.
14376
14377 2008-02-01 Kenichi Handa <handa@m17n.org>
14378
14379 * fontset.c (FONTSET_DEFAULT): New macro.
14380 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
14381 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
14382 the case that it is nil.
14383 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
14384 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
14385
14386 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
14387 subset or superset.
14388
14389 2008-02-01 Kenichi Handa <handa@m17n.org>
14390
14391 * emacs.c (main): Call init_charset after syms_of_XXX.
14392
14393 * charset.c (Vcharset_map_directory): Delete.
14394 (Vcharset_map_path): New variable.
14395 (load_charset_map_from_file): Use Vcharset_map_path instead.
14396 (init_charset): Initialize Vcharset_map_path.
14397 (syms_of_charset): Delete declaration of "charset-map-directory",
14398 add declaration of "charset-map-path".
14399
14400 2008-02-01 Kenichi Handa <handa@m17n.org>
14401
14402 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
14403 ASCII only string.
14404
14405 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
14406
14407 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
14408 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
14409
14410 2008-02-01 Kenichi Handa <handa@m17n.org>
14411
14412 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
14413
14414 * coding.c (QCmnemonic, QCdefalut_char)
14415 (QCdecode_translation_table, QCencode_translation_table)
14416 (QCpost_read_conversion, QCpre_write_conversion): New variables.
14417 (get_translation_table): Return a list of translation tables if
14418 necessary.
14419 (decode_coding): Call get_translation_table with ENCODEP 0.
14420 (char_encodable_p): If translation_table is non-nil, always call
14421 translate_char.
14422 (Fdefine_coding_system_internal): Accept list of translation
14423 tables as :encode-translation-table and :decode-translation-table.
14424 (Fcoding_system_put): New function.
14425 (syms_of_coding): Declare new symbols. Defsubr
14426 Scoding_system_put.
14427 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
14428 typically JISX0212.
14429
14430 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
14431 when the charset is superset type.
14432
14433 * character.c (translate_char): Accept list of translation tables.
14434
14435 2008-02-01 Kenichi Handa <handa@m17n.org>
14436
14437 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
14438 (CODING_ATTR_TRANS_TBL): New macro.
14439
14440 * coding.c (get_translation_table): New function.
14441 (translate_chars): Fix the bug of skipping annotation data.
14442 (decode_coding, encode_coding): Utilize get_translation_table.
14443 (char_encodable_p, Funencodable_char_position): Translate char if
14444 necessary.
14445 (Ffind_coding_systems_region_internal)
14446 (Fcheck_coding_systems_region): Setup translation table for encode
14447 in a coding system attribute vector in advance.
14448 (Fdefine_coding_system_internal): Allow a symbol as translation
14449 table. For shift-jis type coding system, allow 4th charset.
14450
14451 2008-02-01 Kenichi Handa <handa@m17n.org>
14452
14453 * coding.c (decode_coding_sjis): Check the first byte rigidly.
14454
14455 * xdisp.c (get_next_display_element): Pass -1 as POS to
14456 FACE_FOR_CHAR if displaying a C-string.
14457
14458 2008-02-01 Kenichi Handa <handa@m17n.org>
14459
14460 * composite.c (get_composition_id): Handle xoff and yoff in a
14461 composition rule.
14462
14463 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
14464 (struct composition): New member lbearing and rbearing.
14465
14466 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
14467 (x_get_glyph_overhangs): Handle a composition glyph.
14468 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
14469
14470 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
14471 composition glyph.
14472
14473 2008-02-01 Kenichi Handa <handa@m17n.org>
14474
14475 * print.c: Include charset.h.
14476 (Vprint_charset_text_property): New variable.
14477 (Qdefault): Extern it.
14478 (PRINT_STRING_NON_CHARSET_FOUND)
14479 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
14480 (print_check_string_result): New variable.
14481 (print_check_string_charset_prop): New function.
14482 (print_prune_charset_plist): New variable.
14483 (print_prune_string_charset): New function.
14484 (print_object): Call print_prune_string_charset if
14485 Vprint_charset_text_property is not t.
14486 (print_interval): Print nothing if interval->plist is nil.
14487 (syms_of_print): Declare Vprint_charset_text_property as a lisp
14488 variable. Init and staticpro print_prune_charset_plist.
14489
14490 2008-02-01 Kenichi Handa <handa@m17n.org>
14491
14492 * fontset.c (new_fontset_from_font_name): Use the specified font
14493 for all characters in the new fontset.
14494
14495 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
14496 OBJECT args.
14497
14498 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
14499 OBJECT args for composition too.
14500
14501 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
14502 OBJECT args.
14503
14504 2008-02-01 Kenichi Handa <handa@m17n.org>
14505
14506 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
14507
14508 * fontset.c (reorder_font_vector): Adjust for the change of
14509 FONT_DEF format.
14510 (fontset_face): New arg id. Change caller.
14511 (face_for_char): New args pos and object.
14512 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
14513 (fs_query_fontset): Check NAME by Fassoc too.
14514 (Fset_fontset_font): Allow non-XLFD font name.
14515 (Ffontset_info): Adjust for the change of FONT_DEF format.
14516
14517 * fontset.h (face_for_char): Adjust prototype.
14518
14519 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
14520 (append_space, extend_face_to_end_of_line)
14521 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
14522 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
14523
14524 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
14525 POS and OBJECT args.
14526
14527 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
14528 POS and OBJECT args.
14529
14530 2008-02-01 Jason Rumney <jasonr@gnu.org>
14531
14532 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
14533 of GlobalAlloc'ed memory.
14534
14535 2008-02-01 Kenichi Handa <handa@m17n.org>
14536
14537 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
14538
14539 * charset.h (charset_table_used): Delete extern.
14540
14541 * charset.c (charset_table_used): Make it static.
14542 (map_charset_chars): Fix args to c_function with.
14543
14544 * chartab.c (map_sub_char_table_for_charset): Fix args to
14545 c_function with.
14546
14547 * coding.h (enum coding_result_code): Delete
14548 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
14549
14550 * coding.c (Qinsufficient_source, Qinconsistent_eol)
14551 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
14552 (Vlast_code_conversion_error): New variables.
14553 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
14554 (ONE_MORE_BYTE): Record error if any instead of signaling an
14555 error. If non-ASCII multibyte char is found, return the negative
14556 value of the code. All callers changed to check it.
14557 (ONE_MORE_BYTE_NO_CHECK): Likewise.
14558 (record_conversion_result): New function. Change all codes setting
14559 coding->result to call this function.
14560 (detect_coding_utf_8, decode_coding_utf_8)
14561 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
14562 Don't use the local variable incomplete.
14563 (emacs_mule_char): Change the second arg to `const'.
14564 (decode_coding): Fix of flushing out unprocessed data.
14565 (make_conversion_work_buffer): Fix making of a work buffer.
14566 (decode_coding_object): Return coding->dst_object.
14567
14568 * fontset.c (set_fontset_font): Fix args.
14569
14570 * lisp.h (CHARACTERBITS): Define as 22.
14571
14572 * process.c (send_process): Be sure to set coding->src_multibyte.
14573
14574 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
14575
14576 2008-02-01 Kenichi Handa <handa@m17n.org>
14577
14578 * xdisp.c (handle_auto_composed_prop): Give limit to
14579 Fnext_single_char_property_change.
14580
14581 2008-02-01 Kenichi Handa <handa@m17n.org>
14582
14583 * composite.c (syms_of_composite): Don't make the composition hash
14584 table weak.
14585
14586 * fontset.c (Fset_fontset_font): Fix docstring.
14587
14588 * lisp.h (detect_coding_system): Adjust prototype.
14589
14590 * fileio.c (kill_workbuf_unwind): Delete this function.
14591 (Finsert_file_contents): Adjust the call of detect_coding_system.
14592 Get conversion_buffer by code_conversion_save. Use the macro
14593 CODING_MAY_REQUIRE_DECODING. After decoding, update
14594 coding_system.
14595
14596 * coding.h (make_conversion_work_buffer): Delete extern.
14597 (code_conversion_save): Extern it.
14598
14599 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
14600 (CODING_GET_INFO): Delete argument eol_type. Change callers.
14601 (decode_coding_utf_8): Don't do eol converion.
14602 (detect_coding_utf_16): Check coding->src_chars, not
14603 coding->src_bytes. Add heuristics for those that have no signature.
14604 (decode_coding_emacs_mule, decode_coding_iso_2022)
14605 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
14606 Don't do eol converion.
14607 (adjust_coding_eol_type): Return a new coding system.
14608 (detect_coding): Don't detect eol. Fix for utf-16 detection.
14609 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
14610 each change.
14611 (decode_coding): Pay attention to undo_list. Do eol conversion for
14612 all types of coding-systems (if necessary).
14613 (Vcode_conversion_work_buf_list): Delete it.
14614 (Vcode_conversion_reused_workbuf): Rename from
14615 Vcode_conversion_reused_work_buf.
14616 (Vcode_conversion_workbuf_name): New variable.
14617 (reused_workbuf_in_use): New variable.
14618 (make_conversion_work_buffer): Delete the arg DEPTH.
14619 (code_conversion_restore): Change argument to cons.
14620 (code_conversion_save): Delete the argument BUFFER. Change callers.
14621 (detect_coding_system): New argument src_chars. Change callers.
14622 Fix for utf-16 detection.
14623 (init_coding_once): Don't use ISO_carriage_return.
14624 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
14625 reused_workbuf_in_use.
14626
14627 2008-02-01 Kenichi Handa <handa@m17n.org>
14628
14629 * keymap.c (store_in_keymap): Pay attention to the case that idx
14630 is a cons specifying a character range.
14631
14632 2008-02-01 Kenichi Handa <handa@m17n.org>
14633
14634 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
14635 HANDLED_RECOMPUTE_PROPS.
14636
14637 * coding.c (Fdefine_coding_system_internal): Fix checking of
14638 ascii compatibility.
14639
14640 2008-02-01 Kenichi Handa <handa@m17n.org>
14641
14642 * charset.c (find_charsets_in_text): Delete unused locale variable.
14643 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
14644
14645 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
14646 Resync charset_list to Vemacs_mule_charset_list.
14647
14648 * keymap.c (store_in_keymap): Pay attention to the case that idx
14649 is a cons specifying a character range.
14650
14651 2008-02-01 Kenichi Handa <handa@m17n.org>
14652
14653 * composite.c (update_compositions): Bind inhibit-read-only, etc
14654 to t before calling remove-list-of-text-properties.
14655
14656 * print.c (print_object): Always print ASCII chars as is.
14657
14658 2008-02-01 Kenichi Handa <handa@m17n.org>
14659
14660 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
14661
14662 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
14663 is a char table.
14664
14665 2008-02-01 Kenichi Handa <handa@m17n.org>
14666
14667 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
14668
14669 2008-02-01 Kenichi Handa <handa@m17n.org>
14670
14671 * xfaces.c (set_lface_from_font_name): Fix for the case that
14672 FONTNAME is not fontset name.
14673
14674 2008-02-01 Kenichi Handa <handa@m17n.org>
14675
14676 * fns.c (base64_encode_1): Fix previous change.
14677
14678 2008-02-01 Kenichi Handa <handa@m17n.org>
14679
14680 * fontset.c (set_fontset_font): New function.
14681 (Fset_fontset_font): If a font is specified for a charset, use
14682 map_charset_chars to store the font spec in a fontset.
14683
14684 2008-02-01 Kenichi Handa <handa@m17n.org>
14685
14686 * fontset.c (fontset_face): Create a fallback fontset on demand.
14687 (make_fontset): Don't create a fallback fontset here.
14688 (free_face_fontset): Free a fallback fontset (if any) too.
14689 (n_auto_fontsets): Delete this variable.
14690 (auto_fontset_alist): New variable.
14691 (new_fontset_from_font_name): Check auto_fontset_alist.
14692 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
14693 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
14694 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
14695 Defsubr Sfontset_list_all.
14696
14697 2008-02-01 Kenichi Handa <handa@m17n.org>
14698
14699 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
14700
14701 2008-02-01 Kenichi Handa <handa@m17n.org>
14702
14703 * fontset.c (Fnew_fontset): Check NAME more rigidly.
14704
14705 2008-02-01 Kenichi Handa <handa@m17n.org>
14706
14707 * editfns.c (Fgoto_char): Fix docstring.
14708
14709 2008-02-01 Kenichi Handa <handa@m17n.org>
14710
14711 * insdel.c (insert_from_gap): Adjust intervals correctly.
14712
14713 2008-02-01 Jason Rumney <jasonr@gnu.org>
14714
14715 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
14716 (pfnGetFontUnicodeRanges): New dynamically loaded function.
14717 (w32_initialize): Try to load it.
14718 (x_get_font_repertory): Use it if available.
14719 (w32_encode_char): Add shortcut for unicode output.
14720
14721 * w32fns.c (w32_load_system_font): Default charset to -1.
14722 (x_to_w32_charset): Match all fonts for unicode.
14723 (w32_to_x_charset): New parameter matching. Don't return partial
14724 or wildcard charsets.
14725 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
14726 (w32_codepage_for_font): Return CP_UNICODE for unicode.
14727 (w32_to_x_font): Match charset to real charset.
14728 (enum_font_cb2): Always list unicode versions.
14729
14730 * makefile.w32-in (temacs): Increase EMHEAP.
14731
14732 2008-02-01 Jason Rumney <jasonr@gnu.org>
14733
14734 * w32term.c (w32_encode_char): New charset parameter.
14735 font_info.encoding becomes encoding_type.
14736 (x_get_font_repertory): New function. Warning: stub only!
14737 (x_new_font): Return quickly if font already set.
14738 (x_new_fontset): fontsetname parameter is Lisp_Object.
14739 Use new fs_query_fontset. Try new_fontset_from_font_name.
14740 Use fontset_name for return value.
14741
14742 * w32term.h: Declare x_get_font_repertory.
14743
14744 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
14745 place of find_charset_in_text. Use encode_coding_object in place
14746 of encode_coding.
14747 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
14748 decode_coding.
14749
14750 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
14751 of x_new_fontset.
14752 (w32_load_system_font): Initialize charset as unicode.
14753 font_info.encoding becomes encoding_type.
14754 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
14755 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
14756 (syms_of_w32fns): Set get_font_repertory_func.
14757
14758 * w32console.c: Include character.h. Use terminal_encode_buffer
14759 from term.c.
14760 (write_glyphs): Use new version of encode_terminal_code. Use
14761 encode_coding_object in place of encode_coding.
14762
14763 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
14764 encoding becomes encoding_type.
14765
14766 * term.c (terminal_encode_buffer): Make externally visible.
14767
14768 * makefile.w32-in: Add character.h dependancies.
14769 (character.o, chartab.o): New targets.
14770
14771 2008-02-01 Kenichi Handa <handa@m17n.org>
14772
14773 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
14774 CODING_ID_EOL_TYPE.
14775
14776 2008-02-01 Andreas Schwab <schwab@suse.de>
14777
14778 * coding.c (produce_chars): Revert last change.
14779
14780 2008-02-01 Kenichi Handa <handa@m17n.org>
14781
14782 * charset.h (charset_unicode): Extern it.
14783
14784 * charset.c (string_xstring_p): Check by (C >= 0x100).
14785 (find_charsets_in_text): Change format of the arc CHARSETS. New
14786 arg MULTIBYTE.
14787 (Ffind_charset_region, Ffind_charset_string): Adjust for the
14788 change of find_charsets_in_text.
14789 (Fsplit_char): Fix doc. Never return unknown.
14790
14791 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
14792
14793 * coding.c (Fdefine_coding_system_alias): Update
14794 Vcoding_system_list.
14795
14796 * fontset.c (load_font_get_repertory): Pay attention to the case
14797 that ENCODING of a font is specified by a char-table.
14798
14799 * xterm.c (x_get_font_repertory): Handle the case that the
14800 encoding of font is other than Unicode.
14801
14802 2008-02-01 Kenichi Handa <handa@m17n.org>
14803
14804 * term.c (encode_terminal_code): Don't handle glyph-table. Check
14805 if a character is encodable by the terminal coding system. If
14806 not, produces proper number of `?'s. Update
14807 terminal_encode_buffer and terminal_encode_buf_size if necessary.
14808 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
14809
14810 2008-02-01 Kenichi Handa <handa@m17n.org>
14811
14812 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
14813 variables.
14814 (encode_terminal_code): Change argument. Encode multiple
14815 characters at once. Store the result of encoding in
14816 terminal_encode_buffer.
14817 (write_glyphs, insert_glyphs): Adjust for the change of
14818 encode_terminal_code.
14819 (term_init): Initialize terminal_encode_buffer and
14820 terminal_encode_buf_size.
14821
14822 * coding.c (consume_chars): If coding->src_object is nil, don't
14823 check annotation.
14824
14825 2008-02-01 Kenichi Handa <handa@m17n.org>
14826
14827 * character.c (char_string): Use ASCII_CHAR_P instead of
14828 SINGLE_BYTE_CHAR_P.
14829
14830 2008-02-01 Kenichi Handa <handa@m17n.org>
14831
14832 * xdisp.c (handle_auto_composed_prop): Check if the last
14833 characters of auto-composed region is newly composed with the
14834 following characters.
14835 (handle_composition_prop): Fix checking of point being inside
14836 composition.
14837
14838 2008-02-01 Kenichi Handa <handa@m17n.org>
14839
14840 * fns.c (concat): Don't change multibyteness of the result by
14841 concatenating an 8-bit character.
14842
14843 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
14844 multibyteness of the result when newelt is an 8-bit character.
14845
14846 2008-02-01 Dave Love <fx@gnu.org>
14847
14848 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
14849 EMACS_INT.
14850
14851 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
14852
14853 * xfaces.c (face_numeric_value): Declare dim size_t.
14854 (Finternal_lisp_face_equal_p): Remove unused f.
14855
14856 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
14857 (MATRIX_ROW): Remove unused vars.
14858 (draw_glyphs, x_insert_glyphs, fast_find_position)
14859 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
14860 byte/char counts.
14861
14862 * regex.c (regex_compile): Remove unused var.
14863
14864 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
14865
14866 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
14867 (Faccessible_keymaps, where_is_internal): Remove unused vars.
14868
14869 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
14870
14871 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
14872
14873 * fileio.c (Fwrite_region): Remove unused var.
14874
14875 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
14876 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
14877
14878 * composite.c (Fremove_list_of_text_properties): Declare.
14879
14880 * coding.c (inhibit_pre_post_conversion): Remove (unused).
14881 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
14882 (coding_inherit_eol_type): Remove unused attrs.
14883 (detect_coding): Cast arg of detect_eol.
14884
14885 * charset.c (syms_of_charset): Remove unused var p.
14886 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
14887 byte/char counts.
14888
14889 * casetab.c (set_case_table): Remove unused var.
14890
14891 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
14892 unused vars.
14893
14894 2008-02-01 Dave Love <fx@gnu.org>
14895
14896 * xterm.c (x_bitmap_mask): Declare.
14897
14898 2008-02-01 Dave Love <fx@gnu.org>
14899
14900 * xterm.c (x_term_init): Fix type error.
14901
14902 * lisp.h: Add Funibyte_char_to_multibyte.
14903
14904 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
14905 (Fset_coding_system_priority): Doc fix.
14906
14907 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
14908
14909 * indent.c (check_composition): Make start and end EMACS_INT.
14910
14911 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
14912
14913 * xdisp.c (handle_composition_prop, check_point_in_composition):
14914 Make buffer positions EMACS_INT.
14915
14916 * composite.c (find_composition, run_composition_function)
14917 (update_compositions, Ffind_composition_internal): Make buffer
14918 positions EMACS_INT.
14919
14920 * composite.h (find_composition, update_compositions): Make
14921 position args EMACS_INT.
14922
14923 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
14924
14925 * intervals.c (get_property_and_range):
14926 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
14927
14928 * unexalpha.c: Don't include varargs.h.
14929
14930 2008-02-01 Dave Love <fx@gnu.org>
14931
14932 * coding.h (ENCODE_UTF_8): New.
14933
14934 * Makefile.in (gtkutil.o): Depend on coding.h.
14935
14936 * coding.c (Fset_coding_system_priority): Doc fix.
14937
14938 2008-02-01 Kenichi Handa <handa@m17n.org>
14939
14940 * fileio.c (Finsert_file_contents): Call setup_coding_system in
14941 the case of auto saving.
14942
14943 2008-02-01 Andreas Schwab <schwab@suse.de>
14944
14945 * chartab.c (map_char_table, map_char_table_for_charset): Protect
14946 `range' from GC.
14947
14948 2008-02-01 Kenichi Handa <handa@m17n.org>
14949
14950 * coding.c (decode_coding_sjis): Check bytes more rigidly.
14951
14952 2008-02-01 Kenichi Handa <handa@m17n.org>
14953
14954 * fileio.c (choose_write_coding_system): Return a decided coding system.
14955 (Fwrite_region): Set Vlast_coding_system_used to the return value
14956 of choose_write_coding_system.
14957
14958 2008-02-01 Kenichi Handa <handa@m17n.org>
14959
14960 * charset.c (Fset_charset_priority): Pay attention to duplicated
14961 arguments.
14962
14963 * coding.c (QCcategory): New variable.
14964 (syms_of_coding): Defsym it. Set all elements of
14965 Vcoding_category_table and their symbol values.
14966 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
14967 coding-category-XXX, and coding-category-list.
14968 (Fdefine_coding_system_internal): Add category in the plist.
14969
14970 2008-02-01 Kenichi Handa <handa@m17n.org>
14971
14972 * callproc.c (Fcall_process): Handle carryover correctly.
14973
14974 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
14975 (raw_text_coding_system): Check NILP (coding_system).
14976 (coding_inherit_eol_type): Check NILP (coding_system) and
14977 NILP (parent).
14978 (consume_chars): Fix for the case of raw-text.
14979
14980 * process.c (read_process_output): Handle carryover correctly.
14981
14982 2008-02-01 Dave Love <fx@gnu.org>
14983
14984 * regex.c (re_search_2): Fix last change.
14985
14986 2008-02-01 Kenichi Handa <handa@m17n.org>
14987
14988 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
14989 target_multibyte. Even in a unibyte case, return a converted
14990 multibyte char.
14991 (GET_CHAR_AFTER): New macro.
14992 (PATFETCH): Translate via multibyte char.
14993 (HANDLE_UNIBYTE_RANGE): Delete this macro.
14994 (SETUP_MULTIBYTE_RANGE): New macro.
14995 (regex_compile): Setup compiled code so that its multibyteness
14996 matches that of a target. Fix the handling of "[X-YZ]" using
14997 SETUP_MULTIBYTE_RANGE.
14998 (analyse_first) <charset>: For filling fastmap for all multibyte
14999 characters, don't check by BASE_LEADING_CODE_P.
15000 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
15001 the same as RE_MULTIBYTE_P (bufp) now.
15002 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
15003 (TARGET_CHAR_AND_LENGTH): Delete this macro.
15004 (TRANSLATE_VIA_MULTIBYTE): New macro.
15005 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
15006 It is the same as RE_MULTIBYTE_P (bufp) now.
15007 <exactn>: Translate via multibyte.
15008 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
15009 translate it.
15010 <charset, charset_not>: Fetch a character by
15011 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
15012 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
15013 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
15014 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
15015 by GET_CHAR_AFTER.
15016 (bcmp_translate): Likewise.
15017
15018 * search.c (compile_pattern): Check the member target_multibyte,
15019 not the member multibyte of buf.
15020
15021 * lread.c (read1): While reading a string, set force_singlebyte
15022 and force_multibyte correctly.
15023
15024 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
15025 up of unibyte_to_multibyte_table.
15026
15027 2008-02-01 Kenichi Handa <handa@m17n.org>
15028
15029 * coding.c (setup_coding_system): If coding has
15030 post-read-conversion or pre-write-conversion, set
15031 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
15032 respectively.
15033 (decode_coding_gap): Run post-read-conversion if any.
15034
15035 * fileio.c (Finsert_file_contents): Even if we read into a
15036 unibyte buffer, check if we must decode the result or not.
15037
15038 2008-02-01 Kenichi Handa <handa@m17n.org>
15039
15040 * coding.c (make_conversion_work_buffer): Change the work buffer
15041 name to the same one as that of Emacs 21.
15042
15043 2008-02-01 Kenichi Handa <handa@m17n.org>
15044
15045 * coding.h (make_conversion_work_buffer): Adjust prototype.
15046 (code_conversion_restore): Don't extern it.
15047
15048 * coding.c (detected_mask): Delete unused variable.
15049 (decode_coding_iso_2022): Pay attention to the byte sequence of
15050 CTEXT extended segment, and retain those bytes as is.
15051 (decode_coding_ccl): Delete unused variable `valids'.
15052 (setup_coding_system): Delete unused variable `category'.
15053 (consume_chars): Delete unused variable `category'. Make it work
15054 for non-multibyte case.
15055 (make_conversion_work_buffer): Change argument.
15056 (saved_coding): Delete unused variable.
15057 (code_conversion_restore): Don't check saved_coding->destination.
15058 (code_conversion_save): New function.
15059 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
15060 instead of record_unwind_protect.
15061 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
15062 (detect_coding_system): Delete unused variable `mask'.
15063 (Fdefine_coding_system_internal): Delete unused variable id.
15064
15065 * fileio.c (kill_workbuf_unwind): New function.
15066 (Finsert_file_contents): On replacing, call
15067 make_conversion_work_buffer with correct args, and call
15068 record_unwind_protect with the first arg kill_workbuf_unwind.
15069
15070 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
15071
15072 2008-02-01 Kenichi Handa <handa@m17n.org>
15073
15074 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
15075 (fontset_add): Fix for the case that TO is less than TO1.
15076 (Ffontset_info): Don't use fallback fontset on checking the
15077 default fontset.
15078 (dump_fontset): New function for debugging.
15079
15080 * coding.c (Fdefine_coding_system_internal): Fix for the case that
15081 coding_type is Qcharset.
15082
15083 2008-02-01 Kenichi Handa <handa@m17n.org>
15084
15085 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
15086 (map_char_table): Don't inherit the value from the parent on
15087 initializing VAL. Adjust for the above change.
15088
15089 2008-02-01 Kenichi Handa <handa@m17n.org>
15090
15091 * coding.c (Qsignature, Qendian): Delete these variables.
15092 (syms_of_coding): Don't initialize them.
15093 (CATEGORY_MASK_UTF_16_AUTO): New macro.
15094 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
15095 detect_info->found.
15096 (decode_coding_utf_16): Don't detect BOM here.
15097 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
15098 is NOT utf_16_without_bom.
15099 (setup_coding_system): For a coding system of type utf-16, check
15100 if the attribute :endian is Qbig or not (not nil or not), and set
15101 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
15102 (detect_coding): If coding type is utf-16 and BOM detection is
15103 required, detect it.
15104 (Fdefine_coding_system_internal): For a coding system of type
15105 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
15106
15107 2008-02-01 Kenichi Handa <handa@m17n.org>
15108
15109 * coding.c (coding_set_source): Fix for the case that the current
15110 buffer is different from coding->src_object.
15111 (decode_coding_object): Don't use the conversion work buffer if
15112 DST_OBJECT is a buffer.
15113
15114 2008-02-01 Dave Love <fx@gnu.org>
15115
15116 * lread.c (read_emacs_mule_char) [len==2]: Index
15117 emacs_mule_charset correctly.
15118
15119 2008-02-01 Dave Love <fx@gnu.org>
15120
15121 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
15122 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
15123 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
15124 treated specially.)
15125 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
15126 (detected_mask): Remove Big5 bits.
15127
15128 2008-02-01 Kenichi Handa <handa@m17n.org>
15129
15130 The following changes are to make the font rescaling facility
15131 compatible with Emacs 21.
15132
15133 * xfaces.c (Vface_font_rescale_alist): Rename from
15134 Vface_resizing_fonts.
15135 (struct font_name): Rename member resizing_ratio to rescale_ratio.
15136 (font_rescale_ratio): Rename from font_resizing_ratio.
15137 (split_font_name): Set font->rescale_ratio.
15138 (better_font_p): Pay attention to font->rescale_ratio.
15139 (build_scalable_font_name): Likewise. Change RESX, and RESY
15140 fields.
15141 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
15142
15143 2008-02-01 Kenichi Handa <handa@m17n.org>
15144
15145 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
15146 (Qutf_16_le): Remove these variables.
15147 (syms_of_coding): Don't DEFSYM them.
15148 (decode_coding_utf_16): Fix handling of BOM.
15149 (encode_coding_utf_16): Fix handling of BOM.
15150
15151 2008-02-01 Kenichi Handa <handa@m17n.org>
15152
15153 * fileio.c (Finsert_file_contents): On replacing, before decoding
15154 the file into the work buffer, set point of the work buffer to the end.
15155
15156 2008-02-01 Dave Love <fx@gnu.org>
15157
15158 * coding.c (Fcheck_coding_systems_region): Fix type errors.
15159
15160 2008-02-01 Dave Love <fx@gnu.org>
15161
15162 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
15163 and fix C types.
15164
15165 2008-02-01 Kenichi Handa <handa@m17n.org>
15166
15167 * xdisp.c (SKIP_GLYPHS): New macro.
15168 (set_cursor_from_row): Pay attention to string display properties.
15169
15170 * category.c (copy_category_entry): Fix for the case that RANGE
15171 is an integer.
15172
15173 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
15174
15175 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
15176
15177 2008-02-01 Kenichi Handa <handa@m17n.org>
15178
15179 * charset.c (Fcharset_id_internal): New function.
15180 (syms_of_charset): Defsubr it.
15181
15182 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
15183 with the last arg charset_list acquired from coding.
15184 (Fdefine_coding_system_internal): For ccl-based coding system, fix
15185 the attribute coding_attr_ccl_valids.
15186
15187 * coding.h (enum define_coding_ccl_arg_index): Set the first
15188 member coding_arg_ccl_decoder to coding_arg_max.
15189
15190 * ccl.h (ccl_driver): Adjust prototype.
15191
15192 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
15193 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
15194 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
15195 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
15196 last arg Qnil.
15197
15198 2008-02-01 Kenichi Handa <handa@m17n.org>
15199
15200 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
15201 call encode_char.
15202
15203 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
15204
15205 2008-02-01 Dave Love <fx@gnu.org>
15206
15207 * composite.c (syms_of_composite): Make composition_hash_table weak.
15208
15209 2008-02-01 Kenichi Handa <handa@m17n.org>
15210
15211 * dispextern.h (check_face_attributes, generate_ascii_font_name)
15212 (font_name_registry): Don't extern them.
15213 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
15214
15215 * fontset.h (Qfontset): Don't extern it.
15216 (new_fontset_from_font_name): Extern it.
15217
15218 * fontset.c: Give 8 extra slots to fontset objects.
15219 (Qfontset_info): New variable.
15220 (syms_of_fontset): Defsym it.
15221 (FONTSET_FALLBACK): New macro.
15222 (fontset_face): Try also the default fontset.
15223 (make_fontset): Realize a fallback fontset from the default fontset.
15224 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
15225 using split_font_name_into_vector and build_font_name_from_vector.
15226 (Fset_fontset_font): Access the elements of font_spec by enum
15227 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
15228 name by using split_font_name_into_vector.
15229 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
15230 generate a proper font name from the fontset name. Update
15231 Vfontset_alias_alist.
15232 (n_auto_fontsets): New variable.
15233 (new_fontset_from_font_name): New function.
15234 (Ffont_info): Store the information about fonts generated from the
15235 default fontset in the first extra slot of the returned char-table.
15236
15237 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
15238 (font_name_registry): Delete function.
15239 (split_font_name_into_vector): New function.
15240 (build_font_name_from_vector): New function.
15241 (font_list): The argument REGISTRY is now a list of registry names.
15242 (choose_face_font): If we are choosing an ASCII font, and ATTRS
15243 specifies an explicit font name, return the name as is. Make a
15244 list of registy names.
15245
15246 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
15247 of x_new_fontset.
15248 (Fx_create_frame): Don't call x_new_fontset here. Just use
15249 x_list_fonts to check the existence of fonts.
15250
15251 * xterm.h (x_new_fontset): Adjust prototype.
15252
15253 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
15254 string. Use new_fontset_from_font_name to create a fontset from a
15255 font name.
15256
15257 2008-02-01 Kenichi Handa <handa@m17n.org>
15258
15259 * syntax.c (Vfind_word_boundary_function_table): New name for
15260 Vnext_word_boundary_function_table.
15261 (find-word-boundary-function-table): New name for
15262 next-word-boundary-function-table.
15263
15264 2008-02-01 Dave Love <fx@gnu.org>
15265
15266 * Makefile.in: Fix some dependencies.
15267
15268 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
15269 set it to nil before returning.
15270
15271 * composite.c (update_compositions): Fix type error.
15272
15273 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
15274
15275 2008-02-01 Kenichi Handa <handa@m17n.org>
15276
15277 * xterm.c (x_new_font): Optimize for the case that the font is
15278 already set for the frame.
15279
15280 2008-02-01 Kenichi Handa <handa@m17n.org>
15281
15282 * chartab.c (char_table_ascii): Check if the char table contents
15283 is sub-char-table or not.
15284 (char_table_set, char_table_set_range): Fix argument to
15285 char_table_ascii.
15286
15287 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
15288 (detect_coding_utf_8, detect_coding_utf_16)
15289 (detect_coding_emacs_mule, detect_coding_iso_2022)
15290 (detect_coding_sjis, detect_coding_big5)
15291 (detect_coding_ccl, detect_coding_charset): Change argument MASK
15292 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
15293 sequence is valid in this coding system. Change callers.
15294 (MAX_ANNOTATION_LENGTH): New macro.
15295 (ADD_ANNOTATION_DATA): New macro.
15296 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
15297 ADD_ANNOTATION_DATA. Change the format of annotation data.
15298 (ADD_CHARSET_DATA): New macro.
15299 (emacs_mule_char): New argument ID. Change callers.
15300 (decode_coding_emacs_mule, decode_coding_iso_2022)
15301 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
15302 Produce charset annotation data in coding->charbuf.
15303 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
15304 to charset annotation data in coding->charbuf.
15305 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
15306 coding->common_flags if the coding system is iso-2022 based and
15307 uses designation.
15308 (produce_composition): Adjust for the new annotation data format.
15309 (produce_charset): New function.
15310 (produce_annotation): Handle charset annotation.
15311 (handle_composition_annotation, handle_charset_annotation): New
15312 functions.
15313 (consume_chars): Handle charset annotation. Utilize the above two
15314 functions.
15315 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
15316 buffer, get the deleted text as a string and set
15317 coding->src_object to that string.
15318 (detect_coding, detect_coding_system): Use the new struct
15319 coding_detection_info.
15320
15321 * coding.h (struct coding_detection_info): New structure.
15322 (struct coding_system): Adjust prototype of the member `detector'.
15323 (CODING_ANNOTATE_CHARSET_MASK): New macro.
15324
15325 2008-02-01 Kenichi Handa <handa@m17n.org>
15326
15327 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
15328
15329 2008-02-01 Dave Love <fx@gnu.org>
15330
15331 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
15332 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
15333 to new local and nullify apropos_accumulate before returning.
15334 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
15335
15336 2008-02-01 Kenichi Handa <handa@m17n.org>
15337
15338 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
15339 correctly.
15340
15341 2008-02-01 Dave Love <fx@gnu.org>
15342
15343 * fns.c (Flanginfo): Call synchronize_system_time_locale.
15344
15345 2008-02-01 Kenichi Handa <handa@m17n.org>
15346
15347 The following changes are to make character composition happen
15348 automatically on displaying.
15349
15350 * Makefile.in (lisp, shortlisp): Add composite.elc.
15351
15352 * composite.h (Qauto_composed, Vauto_composition_function)
15353 (Qauto_composition_function): Extern them.
15354
15355 * composite.c (Vcomposition_function_table)
15356 (Qcomposition_function_table): Delete variables.
15357 (Qauto_composed, Vauto_composition_function)
15358 (Qauto_composition_function): New variables.
15359 (run_composition_function): Don't call
15360 compose-chars-after-function.
15361 (update_compositions): Clear `auto-composed' text property.
15362 (compose_chars_in_text): Delete this function.
15363 (syms_of_composite): Staticpro Qauto_composed and
15364 Qauto_composition_function. Declare Vauto_composition_function as
15365 a Lisp variable.
15366
15367 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
15368
15369 * xdisp.c (it_props): Add an entry for Qauto_composed.
15370 (handle_auto_composed_prop): New function.
15371
15372 * xselect.c (selection_data_to_lisp_data): Don't call
15373 compose_chars_in_text.
15374
15375 2008-02-01 Dave Love <fx@gnu.org>
15376
15377 * keyboard.c (read_char): Modify checking around use of
15378 Vkeyboard_translate_table.
15379
15380 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
15381 and fix C types.
15382
15383 2008-02-01 Kenichi Handa <handa@m17n.org>
15384
15385 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
15386 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
15387 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
15388 the case that the last byte is '\r' correctly.
15389 (decode_coding): Flush out the unprocessed data correctly.
15390 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
15391
15392 2008-02-01 Dave Love <fx@gnu.org>
15393
15394 * xterm.c (XTread_socket): Fix changes for defined keysyms.
15395 Add XK_ISO... case.
15396 (xaw_scroll_callback): Revert last change.
15397
15398 2008-02-01 Kenichi Handa <handa@m17n.org>
15399
15400 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
15401
15402 2008-02-01 Kenichi Handa <handa@m17n.org>
15403
15404 * xfaces.c (Vface_resizing_fonts): New variable.
15405 (struct font_name): New member `resizing_ratio'.
15406 (font_resizing_ratio): New function.
15407 (split_font_name): Set font->resizing_ratio.
15408 (better_font_p): Pay attention to font->resizing_ratio.
15409 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
15410 RESX, and RESY fields.
15411 (try_alternative_families): Try scalable fonts if
15412 Vscalable_fonts_allowed is not Qt.
15413 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
15414
15415 2008-02-01 Dave Love <fx@gnu.org>
15416
15417 * xterm.c (xaw_scroll_callback): Cast correctly.
15418
15419 2008-02-01 Dave Love <fx@gnu.org>
15420
15421 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
15422 (lispy_kana_keys): Comment out.
15423 (make_lispy_event) [XK_kana_A]: Comment out.
15424
15425 * xterm.c (xaw_scroll_callback): Cast call_data.
15426 (XTread_socket): Deal with ASCII keysyms.
15427 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
15428
15429 2008-02-01 Dave Love <fx@gnu.org>
15430
15431 * xterm.c (Vx_keysym_table): New.
15432 (syms_of_xterm): Initialize it.
15433 (XTread_socket): Use it.
15434 From head: Eliminate incorrect optimization that tried to avoid
15435 decoding the output of X*LookupString.
15436 (x_get_font_repertory): Delete charset declaration.
15437
15438 2008-02-01 Kenichi Handa <handa@m17n.org>
15439
15440 * coding.c (detect_coding_charset): If only ASCII bytes are found,
15441 return 0.
15442 (Fdefine_coding_system_internal): Setup
15443 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
15444
15445 2008-02-01 Dave Love <fx@gnu.org>
15446
15447 * coding.c (Fcheck_coding_system): Doc fix.
15448
15449 * editfns.c (Finsert_byte): Return a proper value.
15450
15451 2008-02-01 Kenichi Handa <handa@m17n.org>
15452
15453 * coding.c (decode_coding): Fix args to translate_chars. Pay
15454 attention to Vstandard_translation_table_for_decode.
15455 (encode_coding): Fix args to translate_chars. Pay attention to
15456 Vstandard_translation_table_for_encode.
15457
15458 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
15459 SINGLE_BYTE_CHAR_P.
15460
15461 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
15462 not by SINGLE_BYTE_CHAR_P.
15463
15464 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
15465 SINGLE_BYTE_CHAR_P.
15466
15467 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
15468 SINGLE_BYTE_CHAR_P.
15469
15470 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
15471 by SINGLE_BYTE_CHAR_P.
15472
15473 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
15474 SINGLE_BYTE_CHAR_P.
15475
15476 2008-02-01 Dave Love <fx@gnu.org>
15477
15478 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
15479
15480 2008-02-01 Dave Love <fx@gnu.org>
15481
15482 * fns.c (Flanginfo): Fix typo.
15483
15484 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
15485
15486 2008-02-01 Kenichi Handa <handa@m17n.org>
15487
15488 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
15489 (detect_coding_emacs_mule, detect_coding_iso_2022)
15490 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
15491 incomplete byte sequence. Don't update *mask when correctly detected.
15492 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
15493 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
15494 (detect_coding, detect_coding_system): Adjust for the changes above.
15495
15496 2008-02-01 Kenichi Handa <handa@m17n.org>
15497
15498 * character.c (char_string): Rename from
15499 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
15500 (string_char): Rename from string_char.
15501
15502 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
15503 if C is greater than MAX_3_BYTE_CHAR.
15504 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
15505 string_char instead of string_char_with_unification.
15506
15507 2008-02-01 Dave Love <fx@gnu.org>
15508
15509 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
15510
15511 2008-02-01 Kenichi Handa <handa@m17n.org>
15512
15513 * keymap.c (push_key_description): Pay attention to force_multibyte.
15514
15515 * regex.c (re_search_2): Fix for the case of unibyte buffer.
15516
15517 2008-02-01 Dave Love <fx@gnu.org>
15518
15519 * charset.c (define_charset_internal): Rename `supprementary'.
15520
15521 * Makefile.in (lisp, shortlisp): Remove latin-N.
15522
15523 2008-02-01 Dave Love <fx@gnu.org>
15524
15525 * xfns.c (x_window, x_window): Use use_xim.
15526
15527 * xterm.c (use_xim): Initialize.
15528 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
15529 (x_term_init): Maybe set use_xim.
15530
15531 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
15532
15533 2008-02-01 Kenichi Handa <handa@m17n.org>
15534
15535 * search.c (search_buffer): Fix case-fold-search of multibyte
15536 characters.
15537 (boyer_moore): Rename the last argument to char_high_bits.
15538
15539 2008-02-01 Kenichi Handa <handa@m17n.org>
15540
15541 * xdisp.c (display_string): Fix for the case of zero width glyph.
15542
15543 * xfns.c (x_set_font): Change the error message of the case that
15544 x_new_fontset returns Qt.
15545
15546 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
15547 (Finternal_set_lisp_face_attribute): Use signal_error for the
15548 error of invalid fontset.
15549
15550 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
15551 fontset, return Qt.
15552
15553 2008-02-01 Dave Love <fx@gnu.org>
15554
15555 * unexelf.c (unexec): Make .got handling not SGI-specific.
15556
15557 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
15558
15559 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
15560
15561 * keyboard.c (read_key_sequence): Fix type error.
15562
15563 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
15564 type error.
15565
15566 * fontset.c (fontset_add): Return Lisp_Object.
15567
15568 2008-02-01 Dave Love <fx@gnu.org>
15569
15570 * charset.h (charset_ordered_list_tick): Declare extern.
15571
15572 2008-02-01 Kenichi Handa <handa@m17n.org>
15573
15574 The following changes (and some of 2008-02-01 changes of mine) are
15575 for handling syntax, category, and case conversion for unibyte
15576 characters by converting them to multibyte on the fly. With these
15577 changes, we don't have to setup syntax and case tables for unibyte
15578 characters in each language environment.
15579
15580 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
15581 multibyte if necessary.
15582
15583 * bytecode.c (Fbyte_code): Likewise.
15584
15585 * character.h (LEADING_CODE_LATIN_1_MIN)
15586 (LEADING_CODE_LATIN_1_MAX): New macros.
15587 (unibyte_to_multibyte_table): Extern it.
15588 (unibyte_char_to_multibyte): New macro.
15589 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
15590 (CHAR_LEADING_CODE): New macro.
15591 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
15592
15593 * character.c (unibyte_to_multibyte_table): New variable.
15594 (unibyte_char_to_multibyte): Move to character.h and define as macro.
15595 (multibyte_char_to_unibyte): If C is an eight-bit character,
15596 convert it to the corresponding byte value.
15597
15598 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
15599 not 1, signals an error. Update the elements of
15600 unibyte_to_multibyte_table.
15601 (init_charset_once): Initialize unibyte_to_multibyte_table.
15602 (syms_of_charset): Define the charset `iso-8859-1'.
15603
15604 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
15605 as is without converting it to unibyte. In a unibyte buffer,
15606 convert C to multibyte before checking the syntax.
15607
15608 * lisp.h (unibyte_char_to_multibyte): Delete extern.
15609
15610 * minibuf.c (Fminibuffer_complete_word): Use the macro
15611 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
15612
15613 * regex.h (struct re_pattern_buffer): New member target_multibyte.
15614
15615 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
15616 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
15617 that is zero, convert an eight-bit char to multibyte.
15618 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
15619 non-emacs case.
15620 (PATFETCH): Convert an eight-bit char to multibyte.
15621 (HANDLE_UNIBYTE_RANGE): New macro.
15622 (regex_compile): Setup the compiled pattern for multibyte chars
15623 even if the given regex string is unibyte. Use PATFETCH_RAW
15624 instead of PATFETCH in many places. To handle `charset'
15625 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
15626 only for ASCII chars.
15627 (analyse_first) <exactn>: Simplify because the compiled pattern
15628 is multibyte.
15629 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
15630 <charset>: Use CHAR_LEADING_CODE to get leading codes.
15631 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
15632 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
15633 multibyte always 1.
15634 (re_search_2): In emacs, set the locale variable multibyte to 1,
15635 otherwise to 0. New local variable target_multibyte. Check it
15636 to decide the multibyteness of STR1 and STR2. If
15637 target_multibyte is zero, convert unibyte chars to multibyte
15638 before translating and checking fastmap.
15639 (TARGET_CHAR_AND_LENGTH): New macro.
15640 (re_match_2_internal): In emacs, set the locale variable multibyte
15641 to 1, otherwise to 0. New local variable target_multibyte. Check
15642 it to decide the multibyteness of STR1 and STR2. Use
15643 TARGET_CHAR_AND_LENGTH to fetch a character from D.
15644 <charset, charset_not>: If multibyte is nonzero, check fastmap
15645 only for ASCII chars. Call bcmp_translate with
15646 target_multibyte, not with multibyte.
15647 <begline>: Declare the local variable C as `unsigned'.
15648 (bcmp_translate): Change the last arg name to target_multibyte.
15649
15650 * search.c (compile_pattern_1): Don't adjust the multibyteness of
15651 the regexp pattern and the matching target. Set cp->buf.multibyte
15652 to the multibyteness of the regexp pattern. Set
15653 cp->but.target_multibyte to the multibyteness of the matching target.
15654 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
15655 FETCH_STRING_CHAR_ADVANCE.
15656 (Freplace_match): Convert unibyte chars to multibyte.
15657
15658 * syntax.c (char_quoted, back_comment, scan_words)
15659 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
15660 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
15661 unibyte chars to multibyte.
15662 (skip_chars): Delete the arg syntaxp, and move the code for
15663 handling syntaxes to skip_syntaxes. Change callers.
15664 Fix the case that the multibyteness of STRING and the current
15665 buffer doesn't match.
15666 (skip_syntaxes): New function.
15667 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
15668 SINGLE_BYTE_CHAR_P.
15669
15670 2008-02-01 Kenichi Handa <handa@m17n.org>
15671
15672 * xfaces.c (QCfontset): New variable.
15673 (LFACE_FONTSET): New macro.
15674 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
15675 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
15676 (Finternal_set_lisp_face_attribute)
15677 (Finternal_get_lisp_face_attribute): Handle QCfontset.
15678 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
15679 check also LFACE_FONTSET_INDEX.
15680 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
15681 attrs[LFACE_FONT_INDEX].
15682 (syms_of_xfaces): Intern and staticpro QCfontset.
15683
15684 * dispextern.h (enum lface_attribute_index): New member
15685 LFACE_FONTSET_INDEX.
15686
15687 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
15688
15689 2008-02-01 Kenichi Handa <handa@m17n.org>
15690
15691 * coding.c (coding_set_destination): Fix coding->destination for
15692 the case converting a region.
15693 (encode_coding_utf_8): Encode eight-bit chars as single byte.
15694 (encode_coding_object): Fix coding->dst_pos and
15695 coding->dst_pos_byte for the case converting a region.
15696
15697 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
15698
15699 * character.h (BYTE8_STRING): New macro.
15700
15701 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
15702
15703 2008-02-01 Kenichi Handa <handa@m17n.org>
15704
15705 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
15706 characters by octal form.
15707
15708 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
15709
15710 * buffer.h (_fetch_multibyte_char_len): Delete extern.
15711 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
15712 _fetch_multibyte_char_len.
15713 (FETCH_CHAR_AS_MULTIBYTE): New macro.
15714
15715 * casetab.c (set_canon, set_identity, shuffle): Simplify.
15716
15717 * casefiddle.c (casify_object): Simplify. Handle the case that
15718 the case conversion change the byte length.
15719 (casify_region): Likewise.
15720
15721 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
15722
15723 * character.c (_fetch_multibyte_char_len): Delete this variable.
15724 (syms_of_character): Setup Vprintable_chars.
15725
15726 * editfns.c (Fchar_equal): Fix for the unibyte case.
15727 (Finsert_byte): New function.
15728 (syms_of_editfns): Defsubr it.
15729
15730 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
15731 of direct code 0x3ffff.
15732
15733 * search.c (Freplace_match): Fix for the unibyte case.
15734
15735 2008-02-01 Kenichi Handa <handa@m17n.org>
15736
15737 * lread.c (safe_to_load_p): Fix the logic.
15738
15739 * syntax.c (scan_words): Don't treat characters belonging to
15740 different scripts as constituting a word.
15741
15742 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
15743
15744 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
15745
15746 * emacs.c (main): In the case of --unibyte, instead of aborting on
15747 finding non-empty buffer, make it unibyte.
15748
15749 2008-02-01 Kenichi Handa <handa@m17n.org>
15750
15751 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
15752 to create a fontset.
15753
15754 2008-02-01 Dave Love <fx@gnu.org>
15755
15756 * character.c (Funibyte_char_to_multibyte): Doc fix.
15757
15758 * xfns.c [HAVE_STDLIB_H]: Fix last change.
15759
15760 2008-02-01 Kenichi Handa <handa@m17n.org>
15761
15762 * fontset.c (fontset_add): Make the type `int'.
15763 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
15764
15765 * character.c (unibyte_char_to_multibyte)
15766 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
15767 charset_unibyte, not charset_primary.
15768
15769 * charset.h (charset_unibyte): Extern it instead of charset_primary.
15770
15771 * charset.c (charset_unibyte): Rename from charset_primary.
15772 (Funibyte_charset): Rename from Fprimary_charset.
15773 (Fset_unibyte_charset): Rename from Fset_primary_charset.
15774 (syms_of_charset): Adjust for the above changes.
15775
15776 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
15777 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
15778 it->multibyte_p is zero.
15779
15780 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
15781 Delete extern.
15782
15783 2008-02-01 Kenichi Handa <handa@m17n.org>
15784
15785 * coding.c (Fdefine_coding_system_internal): Fix category setting
15786 for a coding system of type iso-2022.
15787
15788 2008-02-01 Kenichi Handa <handa@m17n.org>
15789
15790 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
15791
15792 2008-02-01 Kenichi Handa <handa@m17n.org>
15793
15794 * syntax.c (Vnext_word_boundary_function_table): New variable.
15795 (next-word-boundary-function-table): Declare it as a Lisp variable
15796 in syms_of_syntax.
15797 (scan_words): Call functions in Vnext_word_boundary_function_table
15798 if any.
15799
15800 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
15801
15802 * fontset.c (fs_load_font): If fontp->charset is not negative,
15803 return fontp without setting its members.
15804
15805 2008-02-01 Dave Love <fx@gnu.org>
15806
15807 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
15808
15809 * m/sparc.h (HAVE_ALLOCA): Delete.
15810
15811 * s/irix6-5.h: Don't include strings.h.
15812 (bcopy, bzero, bcmp): Don't undef.
15813
15814 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
15815
15816 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
15817 (TIOCSIGSEND): Don't test IRIX6.
15818 (bcopy, bzero, bcmp): Define conditionally.
15819
15820 2008-02-01 Kenichi Handa <handa@m17n.org>
15821
15822 * buffer.c (Qas, Qmake, Qto): New variables.
15823 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
15824 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
15825
15826 * callproc.c (Fcall_process): Don't call insert_1_both directly if
15827 we are inserting a process output into a multibyte buffer.
15828
15829 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
15830 multibyte_char_to_unibyte.
15831
15832 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
15833 by the primary charset, make it eight-bit char.
15834 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
15835
15836 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
15837 (charset_8_bit__control, charset_8_bit_graphic)
15838 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
15839 (define_charset_internal): New function.
15840 (syms_of_charset): Call define_charset_internal for pre-defined
15841 charsets.
15842
15843 * charset.h (charset_8_bit): Extern it.
15844
15845 * coding.c (make_conversion_work_buffer): Adjust for the change
15846 of Fset_buffer_multibyte.
15847 (encode_coding_raw_text): Increment p0 in the loop.
15848
15849 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
15850
15851 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
15852 for the change of Fset_buffer_multibyte.
15853
15854 * fns.c (Fstring_to_multibyte): New function.
15855 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
15856
15857 2008-02-01 Dave Love <fx@gnu.org>
15858
15859 * xfns.c (x_put_x_image): Declare args.
15860
15861 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
15862 (try_font_list): Declare an arg.
15863
15864 * xdisp.c (message2_nolog, set_message): Declare an arg.
15865
15866 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
15867
15868 * syntax.c (scan_sexps_forward): Declare an arg.
15869
15870 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
15871 Declare an arg.
15872
15873 * lisp.h (Fnew_fontset): Declare.
15874
15875 * keymap.c (push_key_description): Call CHARACTERP correctly.
15876
15877 * fontset.c (fontset_add): Declare args. Call make_number correctly.
15878 (face_for_char): Delete unused vars.
15879 (Fset_fontset_font): Doc fix. Delete unused vars.
15880
15881 * doc.c (Fsubstitute_command_keys): Delete unused vars.
15882
15883 * composite.c (update_compositions): Declare arg.
15884
15885 * cm.c (calccost, cmgoto): Declare args.
15886
15887 * charset.c: Remove `emacs' conditional. Doc fixes.
15888 (map_char_table_for_charset): Declare.
15889
15890 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
15891
15892 * ccl.c: Remove `emacs' conditional.
15893
15894 2008-02-01 Kenichi Handa <handa@m17n.org>
15895
15896 The following changes are to allow specifying multiple font
15897 patterns for a character range (specified by script or charset).
15898
15899 * Makefile.in (abbrev.o): Depend on syntax.h.
15900 (xfaces.o): Depend on charset.h.
15901
15902 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
15903 SINGLE_BYTE_CHAR_P.
15904
15905 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
15906
15907 * character.h (Vchar_script_table): Extern it.
15908
15909 * character.c (Vscript_alist): Delete.
15910 (Vchar_script_table, Qchar_script_table): New variable.
15911 (syms_of_character): Declare Vchar_script_table as a lisp variable
15912 and initialize it.
15913
15914 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
15915 have property char-table-extra-slots, make no extra slot.
15916
15917 * dispextern.h (struct face): Delete member `charset'.
15918 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
15919 SINGLE_BYTE_CHAR_P.
15920 (choose_face_font, lookup_non_ascii_face, font_name_registry):
15921 Add prototypes.
15922 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
15923 (generate_ascii_font_name): Rename from generate_ascii_font.
15924
15925 * fontset.h (get_font_repertory_func): New prototype.
15926 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
15927 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
15928
15929 * fontset.c (Qprepend, Qappend): New variables.
15930 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
15931 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
15932 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
15933 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
15934 (fontset_ref_and_range, fontset_add, reorder_font_vector)
15935 (load_font_get_repertory): New functions.
15936 (fontset_set): Delete.
15937 (fontset_face): New arg FACE. Return face ID, not face.
15938 Complete re-write to handle new fontset structure. Change caller.
15939 (free_face_fontset): Use ASET istead of AREF (X) = Y.
15940 (face_for_char): Don't call lookup_face.
15941 (make_fontset_for_ascii_face): New arg FACE.
15942 (fs_load_font): New arg CHARSET_ID. Don't check
15943 Vfont_encoding_alist here.
15944 (find_font_encoding): New function.
15945 (list_fontsets): Use STRINGP, not ! NILP.
15946 (accumulate_script_ranges): New function.
15947 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
15948 re-written to handle new fontset structure.
15949 (Ffontset_font): Return a copy of element.
15950 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
15951 docstring of font-encoding-alist.
15952
15953 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
15954 (Fset_fotset_font): Fix arguments to 5.
15955
15956 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
15957
15958 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
15959 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
15960 (highlight_trailing_whitespace): Adjust for the change of
15961 lookup_named_face.
15962
15963 * xfaces.c: Include charset.h.
15964 (load_face_font): Delete argument C. Change caller.
15965 (generate_ascii_font_name): Rename from generate_ascii_font.
15966 (font_name_registry): New function.
15967 (cache_face): Store ascii faces before non-ascii faces in buckets.
15968 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
15969 Lookup only ascii faces.
15970 (lookup_non_ascii_face): New function.
15971 (lookup_named_face): Delete argument C. Change caller.
15972 (lookup_derived_face): Delete argument C. Change caller.
15973 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
15974 a string, just call font_list with it.
15975 (choose_face_font): Delete arguments FACE and C. New arg
15976 FONT_SPEC. Change caller.
15977 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
15978 Change caller.
15979 (realize_non_ascii_face): New function.
15980 (realize_x_face): Call load_face_font here.
15981 (realize_tty_face): Delete argument C. Change caller.
15982 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
15983 get a face ID.
15984 (dump_realized_face): Don't print charset of FACE.
15985
15986 * xfns.c (x_set_font): Always call x_new_fontset and
15987 store_frame_parameter.
15988 (Fx_create_frame): Call x_new_fontset, not x_new_font.
15989 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
15990
15991 * xterm.h (x_get_font_repertory): Extern it.
15992
15993 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
15994 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
15995 it->multibyte_p is zero.
15996 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
15997 (x_new_fontset): If FONTSETNAME doesn't match any existing
15998 fontsets, create a new one.
15999 (x_get_font_repertory): New function.
16000
16001 2008-02-01 Kenichi Handa <handa@m17n.org>
16002
16003 * coding.c (Ffind_coding_systems_region_internal): Detect an
16004 ASCII only string correctly.
16005
16006 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
16007 version is 0.
16008
16009 2008-02-01 Kenichi Handa <handa@m17n.org>
16010
16011 * lread.c: Include "coding.h".
16012 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
16013 (load_each_byte, unread_char): New variables.
16014 (readchar_backlog): Delete.
16015 (readchar): Return a character unless load_each_byte is nonzero.
16016 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
16017 cons. If unread_char is not -1, simply return it.
16018 (unreadchar): Handle the case that readcharfun is
16019 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
16020 (read_multibyte): Delete.
16021 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
16022 (read_emacs_mule_char): New functions.
16023 (Fload): Even if the file doesn't have the extension ".elc", if
16024 safe_to_load_p returns a positive version number, assume that the
16025 file contains bytecompiled code. If the version is less than 22,
16026 load the file while decoding multibyte sequences by emacs-mule.
16027 (readevalloop): Don't use readchar_backlog.
16028 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
16029 (Fread_from_string): Pay attention to the case that STREAM is a cons.
16030 (read_escape): Delete the arg BYTEREP.
16031 (read1): Set load_each_byte to 1 temporarily while handling
16032 #@NUMBER. Don't call read_multibyte.
16033 (read_vector): Call Fread with a cons. If readcharfun is
16034 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
16035 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
16036 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
16037 and Qload_force_doc_strings.
16038
16039 2008-02-01 Kenichi Handa <handa@m17n.org>
16040
16041 * xdisp.c (face_before_or_after_it_pos): Call
16042 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
16043
16044 2008-02-01 Kenichi Handa <handa@m17n.org>
16045
16046 * character.h (TRAILING_CODE_P): New macro.
16047 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
16048 (string_char_with_unification): Fix prototype.
16049 (Vscript_alist): Extern it.
16050
16051 * character.c (Vscript_alist): New variable.
16052 (string_char_with_unification, str_as_unibyte)
16053 (string_escape_byte8): Add `const' to local variables.
16054 (syms_of_character): Declare script-alist as a Lisp variable.
16055
16056 * charset.h (Vcharset_ordered_list): Extern it.
16057 (charset_ordered_list_tick): Extern it.
16058 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
16059 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
16060 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
16061 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
16062 (Funify_charset): Adjust for the change of Funify_charset.
16063
16064 * charset.c (charset_ordered_list_tick): New variable.
16065 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
16066 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
16067 deunify intead of unify a charset.
16068 (string_xstring_p): Add `const' to local variables.
16069 (find_charsets_in_text): Add `const' to arguments and local variables.
16070 (encode_char): Adjust for the change of Funify_charset. Fix
16071 detecting of invalid code.
16072 (Fset_charset_priority): Increment charset_ordered_list_tick.
16073 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
16074 and TO_CODE.
16075
16076 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
16077 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
16078 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
16079 (decode_coding_ccl, consume_chars)
16080 (Ffind_coding_systems_region_internal)
16081 (Fcheck_coding_systems_region): Add `const' to local variables.
16082
16083 * print.c (print_object): Use octal form for printing the
16084 contents of a bool vector.
16085
16086 2008-02-01 Dave Love <fx@gnu.org>
16087
16088 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
16089 <version == 20>: Refuse to load.
16090
16091 2008-02-01 Dave Love <fx@gnu.org>
16092
16093 * fns.c: Move coding.h.
16094 (Qcodeset, Qdays, Qmonths): New.
16095 (concat): Use CHARACTERP instead of INTEGERP.
16096 (Flocale_codeset): Delete.
16097 (Flanginfo): New function.
16098 (syms_of_fns): Change accordingly.
16099
16100 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
16101
16102 2008-02-01 Dave Love <fx@gnu.org>
16103
16104 * casetab.c (init_casetab_once, init_casetab_once): Fix
16105 CHAR_TABLE_SET call.
16106
16107 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
16108
16109 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
16110
16111 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
16112 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
16113 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
16114
16115 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
16116
16117 * coding.c (ENCODE_DESIGNATION, decode_eol)
16118 (make_conversion_work_buffer, code_conversion_restore)
16119 (Fdefine_coding_system_internal): Convert Lisp types.
16120 (code_conversion_restore): Use EQ, not ==.
16121 (Fencode_coding_string): Fix code_convert_string call.
16122
16123 * coding.h (code_convert_region): Fix prototype.
16124
16125 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
16126
16127 * fontset.c (fontset_ref, fontset_set, fs_load_font)
16128 (Ffontset_info): Convert Lisp types.
16129
16130 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
16131
16132 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
16133
16134 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
16135
16136 * chartab.c: Include "...h", not <...h> in some cases.
16137
16138 * callproc.c (Fcall_process): Remove unused variables.
16139
16140 2008-02-01 Dave Love <fx@gnu.org>
16141
16142 * coding.c (Fset_coding_system_priority): Allow null arg list.
16143
16144 2008-02-01 Dave Love <fx@gnu.org>
16145
16146 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
16147 (Fself_insert_and_exit): Use CHARACTERP.
16148
16149 * callproc.c (Fcall_process): Remove unused vars.
16150
16151 * xterm.c (XTread_socket): Add extra dead keysyms.
16152
16153 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
16154
16155 * dispextern.h: Remove prototypes for redraw_frame,
16156 redraw_garbaged_frames.
16157
16158 * cmds.c (Fself_insert_command): Use CHARACTERP.
16159
16160 * chartab.c (make_sub_char_table): Remove unused var.
16161 (Fset_char_table_default, Fmap_char_table): Doc fix.
16162
16163 * keymap.c (access_keymap): Remove generic char code.
16164 (push_key_description): Use CHARACTERP.
16165
16166 2008-02-01 Dave Love <fx@gnu.org>
16167
16168 * charset.c: Doc fixes.
16169 (Funify_charset): Extra checking.
16170
16171 2008-02-01 Dave Love <fx@gnu.org>
16172
16173 * lread.c: Remove some unused variables.
16174 (safe_to_load_p): If safe, return the magic number version byte.
16175 (Fload): Maybe use load-with-code-conversion.
16176
16177 2008-02-01 Kenichi Handa <handa@m17n.org>
16178
16179 * category.c (Fmodify_category_entry): Don't modify the contents
16180 of category_set for characters out of the range. Avoid
16181 unnecessary modification.
16182
16183 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
16184 Vchar_unify_table. The default value of the table is now nil.
16185
16186 * character.c (syms_of_character): Setup Vchar_width_table for
16187 eight-bit-control and raw-byte chars.
16188
16189 * charset.h (enum define_charset_arg_index): Delete
16190 charset_arg_parents and add charset_arg_subset and
16191 charset_arg_superset.
16192 (enum charset_attr_index): Delete charset_parents and add
16193 charset_subset and charset_superset.
16194 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
16195 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
16196 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
16197 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
16198 (CHARSET_SUPERSET): New macros.
16199 (charset_work): Extern it.
16200 (ENCODE_CHAR): Use charset_work.
16201 (CHAR_CHARSET_P): Adjust for the change of encoder format.
16202 (map_charset_chars): Extern it.
16203
16204 * charset.c (load_charset_map): Set the default value of encoder
16205 and deunifier char-tables to nil.
16206 (map_charset_chars): Change argument. Change callers. Use
16207 map_char_table_for_charset instead of map_char_table.
16208 (Fmap_charset_chars): New optional args from_code and to_code.
16209 (Fdefine_charset_internal): Adjust for the change of
16210 `define-charset' (:parents -> :subset or :superset).
16211 (charset_work): New variable.
16212 (encode_char, syms_of_charset): Adjust for the change of
16213 Fdefine_charset_internal.
16214 (Ffind_charset_string): Setup the vector `charsets' correctly.
16215
16216 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
16217 the previous change.
16218 (char_table_ref_and_range): Adjust for the above change.
16219 (map_sub_char_table_for_charset): New function.
16220 (map_char_table_for_charset): New function.
16221
16222 * keymap.c (describe_vector): Handle a char-table directly here.
16223 (describe_char_table): Delete.
16224
16225 * lisp.h (map_charset_chars): Delete.
16226
16227 2008-02-01 Dave Love <fx@gnu.org>
16228
16229 * fns.c (count_combining): Comment out (unused).
16230 (Flocale_codeset): New.
16231 (syms_of_fns): Defsubr it.
16232
16233 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
16234 (size_t): Remove.
16235
16236 2008-02-01 Dave Love <fx@gnu.org>
16237
16238 * Makefile.in (chartab.o): Depend on charset.h.
16239
16240 2008-02-01 Kenichi Handa <handa@m17n.org>
16241
16242 * character.c (syms_of_character): Set the default value of
16243 Vprintable_chars to Qnil.
16244
16245 2008-02-01 Dave Love <fx@gnu.org>
16246
16247 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
16248
16249 2008-02-01 Kenichi Handa <handa@m17n.org>
16250
16251 * charset.c (load_charset_map): Handle the case that from < to
16252 correctly.
16253
16254 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
16255 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
16256 Pay attention to raw-8-bit chars.
16257
16258 2008-02-01 Kenichi Handa <handa@m17n.org>
16259
16260 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
16261 It is not bytecompiled now.
16262
16263 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
16264 (charset_jisx0208): New variables.
16265 (Fdefine_charset_internal): Setup them if appropriate.
16266 (init_charset_once): Initialize them to -1.
16267
16268 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
16269 (charset_jisx0208): Extern them.
16270
16271 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
16272 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
16273 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
16274 (setup_iso_safe_charsets): Fix arguments to Fassq.
16275 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
16276 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
16277 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
16278 (encode_coding_iso_2022): Change the 1st arg to
16279 ENCODE_ISO_CHARACTER to a variable.
16280
16281 2008-02-01 Kenichi Handa <handa@m17n.org>
16282
16283 * charset.h (enum define_charset_arg_index): New enums
16284 charset_arg_min_code and charset_arg_max_code.
16285 (struct charset): New member char_index_offset.
16286
16287 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
16288 Take charset->char_index_offset into account.
16289 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
16290 args[charset_arg_max_code]. Setup charset.char_index_offset.
16291 (syms_of_charset): Fix args to Fdefine_charset_internal.
16292
16293 2008-02-01 Dave Love <fx@gnu.org>
16294
16295 * coding.c (decode_coding_utf_8): Reject overlong sequences.
16296
16297 2008-02-01 Dave Love <fx@gnu.org>
16298
16299 * coding.c: Doc fixes.
16300 (Fcoding_system_aliases): Fix return value.
16301 (Qmac): Remove (duplicated) definition.
16302
16303 2008-02-01 Dave Love <fx@gnu.org>
16304
16305 * charset.c (Fcharset_priority_list, Fset_charset_priority):
16306 New functions.
16307
16308 * character.c (Fstring): Doc fix.
16309
16310 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
16311
16312 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
16313 (font-encoding-alist): Doc fix.
16314
16315 2008-02-01 Dave Love <fx@gnu.org>
16316
16317 * term.c (costs_set): Declare static, non-initialized for pcc.
16318 (encode_terminal_code): Remove unused var.
16319
16320 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
16321 for K&R.
16322
16323 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
16324
16325 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
16326 (suffixes): Move out of make_subsidiaries for K&R.
16327
16328 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
16329
16330 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
16331
16332 2008-02-01 Dave Love <fx@gnu.org>
16333
16334 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
16335
16336 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
16337
16338 2008-02-01 Yong Lu <lyongu@asia-infonet.com>
16339
16340 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
16341
16342 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
16343
16344 2008-02-01 Kenichi Handa <handa@m17n.org>
16345
16346 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
16347 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
16348
16349 2008-02-01 Kenichi Handa <handa@m17n.org>
16350
16351 * coding.c (decode_coding_charset): Adjust for the change of
16352 Fdefine_coding_system_internal.
16353 (Fdefine_coding_system_internal): For a coding system of
16354 `charset' type, store a list of charset IDs in
16355 `charset_attr_charset_valids' element of coding attributes.
16356
16357 2008-02-01 Kenichi Handa <handa@m17n.org>
16358
16359 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
16360 (emacs_mule_char): New arg src. Delete arg `composition'. Change
16361 caller. Handle 2-byte and 3-byte charsets correctly.
16362 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
16363 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
16364 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
16365 (DECODE_EMACS_MULE_21_COMPOSITION): Call
16366 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
16367 sequence.
16368 (decode_coding_emacs_mule): Handle composition correctly. Rewind
16369 `src' and `consumed_chars' correctly before calling emacs_mule_char.
16370 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
16371 and alt&rule composition.
16372 (decode_coding_iso_2022): Handle composition correctly.
16373 (init_coding_once): Setup emacs_mule_bytes for private charsets.
16374
16375 * charset.c (Fdefine_charset_internal): Fix bug for the case of
16376 re-defining a charset. If the charset has :emacs-mule-id, setup
16377 emacs_mule_bytes.
16378 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
16379
16380 2008-02-01 Kenichi Handa <handa@m17n.org>
16381
16382 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
16383 (encode_coding_big5, encode_coding_charset): If coding requires safe
16384 encoding, produce a character specified by
16385 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
16386
16387 2008-02-01 Dave Love <fx@gnu.org>
16388
16389 * xterm.c (XSetIMValues): Declare.
16390
16391 * process.c: Conditionally include sys/wait.h, pty.h.
16392
16393 * print.c (print_object): Fix print format for 64-bit systems.
16394
16395 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
16396
16397 * buffer.c (emacs_strerror): Declare.
16398
16399 * fontset.c (Fclear_face_cache): Declare.
16400 (accumulate_font_info): Comment-out (unused).
16401 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
16402 variables.
16403
16404 * character.h (string_escape_byte8): Declare.
16405
16406 * charset.c (load_charset_map, load_charset_map_from_file): Remove
16407 unused vars.
16408 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
16409 (Fmap_charset_chars): Doc fix.
16410
16411 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
16412 (Fset_coding_system_priority, Fset_coding_system_priority)
16413 (Fdefine_coding_system_internal): Doc fix.
16414
16415 2008-02-01 Dave Love <fx@gnu.org>
16416
16417 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
16418
16419 2008-02-01 Kenichi Handa <handa@m17n.org>
16420
16421 * character.c (string_escape_byte8): Make multibyte string with
16422 correct size.
16423
16424 * charset.c (Fmake_char): Delete unnecessary code.
16425
16426 2008-02-01 Kenichi Handa <handa@m17n.org>
16427
16428 * xfns.c (x_encode_text): Allocate coding.destination here, and
16429 call encode_coding_object with dst_object Qnil.
16430
16431 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
16432 multibyte form correctly.
16433
16434 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
16435 against Vfont_encoding_alist.
16436
16437 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
16438 handling of charset list.
16439 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
16440 (decode_coding_object): Move point to coding->dst_pos before
16441 calling post-read-conversion function.
16442 (encode_coding_object): Give correct arguments to
16443 pre-write-conversion. Ignore the return value of
16444 pre-write-conversion function. Pay attention to the case that
16445 pre-write-conversion changes the current buffer. If dst_object is
16446 Qt, even if coding->src_bytes is zero, allocate at least one byte
16447 to coding->destination.
16448
16449 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
16450
16451 * charset.c (Fmake_char): Make it more backward compatible.
16452 (Fmap_charset_chars): Fix docstring.
16453
16454 2008-02-01 Dave Love <fx@gnu.org>
16455
16456 * coding.c: Doc fixes.
16457 (Fdefine_coding_system_alias): Use names, not symbols, in
16458 coding-system-alist.
16459
16460 2008-02-01 Kenichi Handa <handa@m17n.org>
16461
16462 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
16463 of calling free_realized_face.
16464
16465 2008-02-01 Yong Lu <lyongu@asia-infonet.com>
16466
16467 * charset.c (read_hex): Don't treat SPC as a comment starter.
16468 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
16469 (Fdecode_char): Fix typo.
16470
16471 2008-02-01 Kenichi Handa <handa@m17n.org>
16472
16473 * charset.h (struct charset): New member `code_space_mask'.
16474
16475 * coding.c (coding_set_source): Delete the local variable beg_byte.
16476 (encode_coding_charset, Fdefine_coding_system_internal):
16477 Delete the local variable charset.
16478 (Fdefine_coding_system_internal): Setup
16479 attrs[coding_attr_charset_valids] correctly.
16480
16481 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
16482 member to check if CODE is valid or not.
16483 (Fdefine_charset_internal): Initialize `code_space_mask' member.
16484 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
16485 is within the range of charset->min_code and carset->max_code.
16486
16487 2008-02-01 Dave Love <fx@gnu.org>
16488
16489 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
16490
16491 * dispextern.h (generate_ascii_font): Fix return type.
16492
16493 * xfaces.c (generate_ascii_font): Fix arg declaration.
16494
16495 * coding.c (coding_inherit_eol_type)
16496 (Fset_terminal_coding_system_internal)
16497 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
16498
16499 2008-02-01 Kenichi Handa <handa@m17n.org>
16500
16501 * coding.c (decode_coding_charset, encode_coding_charset): Handle
16502 multiple charsets correctly.
16503
16504 2008-02-01 Kenichi Handa <handa@m17n.org>
16505
16506 * search.c (boyer_moore): Fix handling of multibyte character
16507 translation.
16508
16509 * xdisp.c (display_mode_element): When the variable `elt' is
16510 changed, update `this' and `lisp_string'.
16511
16512 2008-02-01 Kenichi Handa <handa@m17n.org>
16513
16514 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
16515
16516 * callproc.c (Fcall_process): Be sure to give the current buffer
16517 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
16518
16519 * charset.c (struct charset_map_entries): New struct.
16520 (load_charset_map): Rename from parse_charset_map. New args
16521 entries and n_entries. Change caller.
16522 (load_charset_map_from_file): Rename from load_charset_map.
16523 Change caller. New arg control_flag. Call load_charset_map at
16524 the tail.
16525 (load_charset_map_from_vector): New function.
16526 (Fdefine_charset_internal): Setup charset.compact_codes_p.
16527 (encode_char): If the charset is compact, change a character index
16528 to a code point.
16529
16530 * coding.c (coding_alloc_by_making_gap): Check the case that the
16531 source and destination are the same correctly.
16532 (decode_coding_raw_text): Set coding->consumed_char and
16533 coding->consumed to 0.
16534 (produce_chars): If coding->chars_at_source is nonzero, update
16535 coding->consumed_char and coding->consumed before calling
16536 alloc_destination.
16537 (Fdefine_coding_system_alias): Register ALIAS in
16538 Vcoding_system_alist.
16539 (syms_of_coding): Define `no-conversion' coding system at the tail.
16540
16541 * fileio.c (Finsert_file_contents): Set coding_system instead of
16542 val. If the current buffer is multibyte, always call
16543 decode_coding_gap.
16544
16545 * xfaces.c (try_font_list): Give higher priority to fontset's
16546 family than face's family.
16547
16548 2008-02-01 Kenichi Handa <handa@m17n.org>
16549
16550 * callproc.c (Fcall_process): Be sure to give the current buffer
16551 to decode_coding_c_string.
16552
16553 * xfaces.c (try_font_list): Give a family specified in a fontset
16554 higher priority than a family specified in a face.
16555
16556 2008-02-01 Kenichi Handa <handa@m17n.org>
16557
16558 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
16559 Fix arguments to insert_from_buffer.
16560
16561 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
16562
16563 2008-02-01 Kenichi Handa <handa@m17n.org>
16564
16565 * coding.c (produce_chars): Set the variable `multibytep' correctly.
16566 (decode_coding_gap): Set coding->dst_multibyte correctly.
16567
16568 2008-02-01 Kenichi Handa <handa@m17n.org>
16569
16570 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
16571 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
16572 (encode_coding_utf_16): Substitute coding->default_char for
16573 non-Unicode characters.
16574 (decode_coding): Don't call record_insert here.
16575 (setup_coding_system): Initialize `surrogate' of
16576 coding->spec.utf_16 to 0.
16577 (EMIT_ONE_BYTE): Fix for multibyte case.
16578
16579 * insdel.c (insert_from_gap): Call record_insert.
16580
16581 2008-02-01 Kenichi Handa <handa@m17n.org>
16582
16583 * casefiddle.c (casify_region): Fix multibyte case.
16584
16585 * character.c (c_string_width): Add return type `int'.
16586 (char_string_with_unification): Delete arg ADVANCED.
16587
16588 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
16589 (CHAR_STRING): Adjust for the change of char_string_with_unification.
16590 (CHAR_STRING_ADVANCE): Make it do-while statement.
16591
16592 * chartab.c (sub_char_table_set_range): Optimize for the case
16593 DEPTH == 3. Add workaround code for a GCC optimization bug.
16594
16595 * charset.c (parse_charset_map): Remove an unused variable.
16596
16597 * coding.c: Delete unused variables.
16598
16599 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
16600 earlier. If inserted is zero and the coding system doesn't
16601 require flushing, don't call decode_coding_gap.
16602
16603 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
16604
16605 2008-02-01 Kenichi Handa <handa@m17n.org>
16606
16607 The following changes are for using Unicode as an internal
16608 character model, and use UTF-8 format for buffer/string
16609 representation.
16610
16611 * .gdbinit (xchartable): Adjust for the change of char table structure.
16612 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
16613
16614 * Makefile.in (obj): Add character.o and chartab.o.
16615 (lisp, shortlisp): Remove utf-8.elc.
16616 (*.o): For many files, change dependency on charset.h to
16617 character.h, and add dependency on character.h.
16618 (character.o, chartab.o): New targets.
16619
16620 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
16621 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
16622 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
16623 of "charset.h".
16624
16625 * dired.c, filelock.c: Include "character.h".
16626
16627 * alloc.c: Include "character.h" instead of "charset.h".
16628 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
16629 (syms_of_alloc): Remove defsubr for Smake_char_table.
16630
16631 * buffer.c: Include "character.h" instead of "charset.h", don't
16632 include "coding.h".
16633 (Fset_buffer_multibyte): Adjust for UTF-8.
16634
16635 * buffer.h: EXFUN Fbuffer_live_p.
16636
16637 * callproc.c: Include "character.h" instead of "charset.h".
16638 (Fcall_process): Big change for the new code-conversion APIs.
16639
16640 * casetab.c: Include "character.h" instead of "charset.h".
16641 (set_canon, set_identity, shuffle): Adjust for the new
16642 map_char_table spec.
16643 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
16644 accessing the char table structure.
16645
16646 * chartab.c: New file that implements char table.
16647
16648 * category.c: Include "character.h".
16649 (copy_category_entry): New function.
16650 (copy_category_table): Call map_char_table and copy_category_entry.
16651 (Fmake_category_table): Initialize all top-level slots.
16652 (char_category_set): New function.
16653 (modify_lower_category_set): Delete.
16654 (Fmodify_category_entry): Call char_table_ref_and_range.
16655
16656 * category.h (CATEGORY_SET): Just call char_category_set.
16657
16658 * ccl.c: Include "character.h".
16659 (Qccl, Qcclp): New variables.
16660 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
16661 it's less than 256.
16662 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
16663 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
16664 and DST type.
16665 (ccl_driver): Change types of argument, adjust code accordingly.
16666 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
16667 ccl_driver.
16668 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
16669
16670 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
16671 New members src_multibyte, dst_multibyte, consumed, and produced.
16672 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
16673 (CODING_SPEC_CCL_PROGRAM): New macro.
16674 (ccl_driver): Update prototype.
16675 (Qccl, Qcclp, Fccl_program_p): Extern them.
16676 (CHECK_CCL_PROGRAM): New macro.
16677
16678 * character.c, character.h, chartab.c: New files.
16679
16680 * charset.c: Mostly re-written. Move character and multibyte sequence
16681 handling codes to character.c.
16682
16683 * charset.h: Mostly re-written. Move character and multibyte sequence
16684 handling codes to character.h.
16685
16686 * coding.c, coding.h: Mostly re-written.
16687
16688 * composite.c: Include "character.h" instead of "charset.h".
16689 (CHAR_WIDTH): Move to character.h.
16690 (HASH_KEY, HASH_VALUE): Delete.
16691
16692 * composite.h (enum composition_method): Change order of enumeration
16693 symbols.
16694
16695 * data.c: Include "character.h" instead of "charset.h".
16696 (Faref): Call CHAR_TABLE_REF for a char table.
16697 (Faset): Call CHAR_TABLE_SET for a char table.
16698
16699 * dispextern.h (free_realized_face, check_face_attribytes)
16700 (generate_ascii_font): Extern them.
16701 (free_realized_multibyte_face): Delete extern.
16702
16703 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
16704 table structure.
16705
16706 * editfns.c: Include "character.h" instead of "charset.h".
16707 (Fchar_to_string): Always call CHAR_STRING.
16708
16709 * emacs.c (main): Call init_charset_once, init_charset,
16710 syms_of_chartab, and syms_of_character.
16711
16712 * fileio.c: Include "character.h" instead of "charset.h".
16713 (Finsert_file_contents): Big change for the new code-conversion API.
16714 (choose_write_coding_system, Fwrite_region): Likewise.
16715 (build_annotations_2): Delete.
16716 (e_write): Big change for the new code-conversion API.
16717
16718 * fns.c: Include "character.h" instead of "charset.h".
16719 (copy_sub_char_table): Move to chartab.c.
16720 (Fcopy_sequence): Call copy_char_table for a char table.
16721 (concat): Delete codes calling count_multibyte.
16722 (string_char_to_byte, string_byte_to_char): Adjust for the new
16723 multibyte form.
16724 (internal_equal): Adjust for the change of char table structure.
16725 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
16726 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
16727 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
16728 (char_table_translate, optimize_sub_char_table)
16729 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
16730 chartab.c.
16731 (char_table_ref_and_index): Delete.
16732 (HASH_KEY, HASH_VALUE): Move to lisp.h.
16733 (Fmd5): Call preferred_coding_system instead of accessing
16734 Vcoding_category_list. Adjust for the new code-conversion API.
16735 (syms_of_fns): Move defsubr for char table related functions to
16736 chartab.c.
16737
16738 * fontset.c: Mostly re-written.
16739
16740 * fontset.h (struct font_info): Change type of the member encoding_type.
16741 (enum FONT_SPEC_INDEX): New enum.
16742 (fontset_font_pattern, fs_load_font): Update prototype.
16743 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
16744
16745 * indent.c: Include "character.h" instead of "charset.h".
16746 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
16747
16748 * insdel.c: Include "character.h" instead of "charset.h".
16749 (copy_text): Don't refer to Vnonascii_translation_table.
16750 (insert_from_gap): New function.
16751
16752 * keyboard.c: Include "character.h" instead of "charset.h".
16753 (command_loop_1): Never call direct_output_forward_char before
16754 a non-ASCII character.
16755 (read_char): If Vkeyboard_translate_table is a char table, always
16756 translate a character.
16757
16758 * keymap.c: Include "character.h".
16759 (store_in_keymap): Handle the case that IDX is a cons.
16760 (Fdefine_key): Handle the case that KEY is a cons and the car part
16761 is also a cons (range).
16762 (push_key_description): Adjust for the new character code.
16763 (describe_vector): Call describe_char_table for a char table.
16764 (describe_char_table): New function.
16765
16766 * keymap.h (describe_char_table): Extern it.
16767
16768 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
16769 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
16770 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
16771 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
16772 Delete.
16773 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
16774 structure.
16775 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
16776 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
16777 (CHARTAB_SIZE_BITS_3): New macros.
16778 (chartab_size): Extern it.
16779 (struct Lisp_Char_Table): Re-design.
16780 (struct Lisp_Sub_Char_Table): New structure.
16781 (HASH_KEY, HASH_VALUE): Move from fns.c.
16782 (CHARACTERBITS): Define as 22.
16783 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
16784 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
16785 (GC_SUB_CHAR_TABLE_P): New macro.
16786 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
16787 (code_convert_string_norecord): Deleted extern.
16788 (init_character_once, syms_of_character, init_charset)
16789 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
16790
16791 * lread.c: Include "character.h".
16792 (read_multibyte): New arg NBYTES.
16793 (read_escape): Change the meaning of returned *BYTEREP.
16794 (to_multibyte): Delete.
16795 (read1): Adjust the handling of char table and string.
16796
16797 * print.c: Include "character.h" instead of "charset.h".
16798 (print_string): Convert 8-bit raw bytes to octal form by
16799 string_escape_byte8.
16800 (print_object): Adjust for the new multibyte form. Print 8-bit
16801 raw bytes always in octal form. Handle sub char table correctly.
16802
16803 * process.c: Include "character.h" instead of "charset.h".
16804 (read_process_output, send_process): Adjust for the new
16805 code-conversion API.
16806
16807 * puresize.h (BASE_PURESIZE): Increase.
16808
16809 * regex.c: Include "character.h" instead of "charset.h".
16810 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
16811 (regex_compile): Accept a range whose starting and ending
16812 character have different leading bytes.
16813 (analyse_first): Adjust for the above change.
16814
16815 * search.c: Include "character.h" instead of "charset.h".
16816 (search_buffer, boyer_moore): Adjust for the new multibyte form.
16817 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
16818
16819 * syntax.c: Include "character.h" instead of "charset.h".
16820 (syntax_parent_lookup): Delete.
16821 (Fmodify_syntax_entry): Accept a cons as CHAR.
16822 (skip_chars): Adjust for the new multibyte form.
16823 (init_syntax_once): Call char_table_set_range instead of directly
16824 accessing the structure of a char table.
16825
16826 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
16827 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
16828 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
16829 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
16830
16831 * term.c: Include "buffer.h" and "character.h".
16832 (encode_terminal_code, write_glyphs): Adjust for the new
16833 code-conversion API.
16834 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
16835
16836 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
16837
16838 * xdisp.c: Include "character.h".
16839 (get_next_display_element): Adjust for the new multibyte form.
16840 (disp_char_vector): Adjust for the new char table structure.
16841 (decode_mode_spec_coding): Adjust for the new structure of
16842 coding system.
16843 (decode_mode_spec): Adjust for the new code-conversion API.
16844
16845 * xfaces.c: Include "character.h" instead of "charset.h".
16846 (load_face_font): Adjust for the change of choose_face_font and
16847 FS_LOAD_FONT.
16848 (generate_ascii_font): New function.
16849 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
16850 (set_font_frame_param): Adjust for the change of choose_face_font.
16851 (free_realized_face): Make it public.
16852 (free_realized_faces_for_fontset): Rename from
16853 free_realized_multibyte_face. Free also faces realized for ASCII.
16854 (choose_face_font): Change arguments. Adjust for the change of
16855 fontset_font_pattern and FS_LOAD_FONT.
16856
16857 * xfns.c: Include "character.h".
16858 (x_encode_text): Adjust for the new code-conversion API.
16859
16860 * xselect.c: Don't include "charset.h".
16861 (selection_data_to_lisp_data): Adjust for the new code conversion API.
16862
16863 * xterm.c: Include "character.h".
16864 (x_encode_char): New argument CHARSET. Change caller.
16865 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
16866 Call ENCODE_CHAR instead of SPLIT_CHAR.
16867 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
16868 CHAR_WIDTH instead of CHARSET_WIDTH.
16869 (XTread_socket): Adjust for the new code-conversion API.
16870 (x_new_font): Adjust for the change of FS_LOAD_FONT.
16871 (x_load_font): Adjust for the change of struct font.
16872
16873 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
16874
16875 * xfaces.c (face_at_buffer_position): Remove unused vars.
16876
16877 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16878
16879 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
16880 Fix overflow checking.
16881
16882 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16883
16884 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
16885 Cancel previous change.
16886
16887 2008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
16888
16889 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
16890 ccl->eight_bit_control. Fix check for buffer overflow.
16891 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
16892 (ccl_driver): Initialize extra_bytes to 0.
16893
16894 2008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
16895
16896 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
16897 return it ORed with ctrl_modifier.
16898
16899 2008-01-29 Miles Bader <miles@gnu.org>
16900
16901 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
16902
16903 2008-01-28 Jason Rumney <jasonr@gnu.org>
16904
16905 * w32.c (stat): Don't double check for networked drive.
16906
16907 2008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
16908
16909 * window.c (run_window_configuration_change_hook): New function.
16910 Code extracted from set_window_buffer. Set the selected frame.
16911 (set_window_buffer): Use it.
16912 * window.h (run_window_configuration_change_hook): Declare.
16913 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
16914
16915 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
16916
16917 2008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
16918
16919 * Makefile.in: Remove references to unused macros.
16920
16921 2008-01-26 Eli Zaretskii <eliz@gnu.org>
16922
16923 * w32.c (g_b_init_get_sid_sub_authority)
16924 (g_b_init_get_sid_sub_authority_count): New static variables.
16925 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
16926 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
16927 (init_user_info): Use them to retrieve uid and gid.
16928 Use 500/513, the Windows defaults, as Administrator's uid/gid.
16929 (fstat): Use pw_uid and pw_gid from the_passwd structure for
16930 st_uid and st_gid of the file.
16931
16932 2008-01-26 Jason Rumney <jasonr@gnu.org>
16933
16934 * w32.c (logon_network_drive): New function.
16935 (stat): Use it.
16936
16937 2008-01-26 Chong Yidong <cyd@stupidchicken.com>
16938
16939 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
16940 invisible text covered with an ellipsis.
16941
16942 2008-01-25 Richard Stallman <rms@gnu.org>
16943
16944 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
16945 jump back to beginning. Move some other initializations after that.
16946 (Qwindow_text_change_functions, Vwindow_text_change_functions):
16947 New variables.
16948 (syms_of_xdisp): Init them.
16949
16950 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
16951
16952 * buffer.c (reset_buffer_local_variables):
16953 Implement `permanent-local-hook'.
16954 (Qpermanent_local_hook): New variable.
16955 (syms_of_buffer): Init and staticpro it.
16956
16957 2008-01-25 Michael Albinus <michael.albinus@gmx.de>
16958
16959 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
16960
16961 2008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
16962
16963 * fns.c (Fclrhash): Return TABLE.
16964
16965 2008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16966
16967 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
16968 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
16969 is set even without positional changes.
16970 (x_scroll_bar_clear): Set bar->redraw_needed_p.
16971
16972 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
16973
16974 2008-01-23 Jason Rumney <jasonr@gnu.org>
16975
16976 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
16977
16978 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
16979 the unicode range available in MULE by locale-coding-system.
16980 Improve dbcs lead byte detection. Set event timestamp and modifiers
16981 earlier.
16982
16983 2008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16984
16985 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
16986 [MAC_OSX] (init_mac_osx_environment): Initialize it.
16987 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
16988 when used on child processes.
16989
16990 2008-01-21 Michael Albinus <michael.albinus@gmx.de>
16991
16992 * dbusbind.c (Fdbus_method_return_internal): Rename from
16993 Fdbus_method_return.
16994 (Fdbus_unregister_object): Move to dbus.el.
16995 (Fdbus_call_method, Fdbus_method_return_internal)
16996 (Fdbus_send_signal): Improve debug messages.
16997
16998 2008-01-20 Martin Rudalics <rudalics@gmx.at>
16999
17000 * undo.c (undo_inhibit_record_point): New variable.
17001 (syms_of_undo): Initialize it.
17002 (record_point): Don't record point when undo_inhibit_record_point
17003 is set.
17004
17005 2008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
17006
17007 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
17008
17009 * xdisp.c (Qauto_hscroll_mode): New var.
17010 (syms_of_xdisp): Initialize it.
17011 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
17012 window's buffer.
17013 (hscroll_windows): Don't check automatic_hscrolling_p here.
17014
17015 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
17016 vscroll if we're setting window-buffer to the value it already has.
17017
17018 2008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
17019
17020 * m/intel386.h: Remove references to XENIX.
17021
17022 2008-01-17 Andreas Schwab <schwab@suse.de>
17023
17024 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
17025 instead of HAVE_X86_64_LIB64_DIR.
17026 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
17027
17028 2008-01-17 Glenn Morris <rgm@gnu.org>
17029
17030 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
17031 to HAVE_X86_64_LIB64_DIR.
17032
17033 2008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
17034
17035 * s/irix3-3.h:
17036 * s/irix4-0.h:
17037 * s/386-ix.h:
17038 * s/domain.h:
17039 * s/hpux9-x11r4.h:
17040 * s/hpux9shxr4.h: Remove files for systems no longer supported.
17041
17042 * sysdep.c: Remove code containing references to symbols defined
17043 by unsupported systems.
17044
17045 2008-01-16 Glenn Morris <rgm@gnu.org>
17046
17047 * coding.c (select-safe-coding-system-function): Doc fix.
17048
17049 2008-01-15 Glenn Morris <rgm@gnu.org>
17050
17051 * config.in: Revert 2008-01-13 change: this is a generated file.
17052
17053 2008-01-13 Tom Tromey <tromey@redhat.com>
17054
17055 * lisp.h: Fix typo.
17056
17057 2008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
17058
17059 * m/sequent-ptx.h:
17060 * m/sequent.h:
17061 * s/ptx.h:
17062 * s/ptx4-2.h:
17063 * s/ptx4.h: Remove files for systems no longer supported.
17064
17065 * callproc.c (Fcall_process): Fix previous change.
17066
17067 2008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
17068
17069 * unexsunos4.c: Remove file, system not supported anymore.
17070
17071 * m/mips.h:
17072 * m/intel386.h:
17073 * callproc.c:
17074 * config.in:
17075 * ecrt0.c:
17076 * emacs.c:
17077 * fileio.c:
17078 * frame.c:
17079 * getpagesize.h:
17080 * keyboard.c:
17081 * lread.c:
17082 * process.c:
17083 * puresize.h:
17084 * sysdep.c:
17085 * systty.h:
17086 * syswait.h:
17087 * unexec.c:
17088 * xdisp.c:
17089 * alloc.c: Remove code containing references to symbols defined by
17090 unsupported systems.
17091
17092 2008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
17093
17094 * coding.c (detect_coding_mask): Fix previous change.
17095
17096 2008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
17097
17098 * coding.c (detect_coding_iso2022): New arg
17099 latin_extra_code_state. Allow Latin extra codes only
17100 when *latin_extra_code_state is nonzero.
17101 (detect_coding_mask): If there is a NULL byte, detect the encoding
17102 as UTF-16 or binary. If Latin extra codes exist, detect the
17103 encoding as ISO-2022 only when there's no other proper encoding is
17104 found.
17105
17106 2008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17107
17108 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
17109 #ifdef MAC_OS.
17110
17111 2008-01-08 Richard Stallman <rms@gnu.org>
17112
17113 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
17114
17115 2008-01-06 Nick Roberts <nickrob@snap.net.nz>
17116
17117 * keyboard.c (parse_menu_item): Don't enclose key bindings on
17118 menu bar in parentheses.
17119
17120 2008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
17121
17122 * m/7300.h:
17123 * m/acorn.h:
17124 * m/alliant-2800.h:
17125 * m/alliant.h:
17126 * m/alliant1.h:
17127 * m/alliant4.h:
17128 * m/altos.h:
17129 * m/amdahl.h:
17130 * m/apollo.h:
17131 * m/att3b.h:
17132 * m/aviion-intel.h:
17133 * m/aviion.h:
17134 * m/celerity.h:
17135 * m/clipper.h:
17136 * m/cnvrgnt.h:
17137 * m/convex.h:
17138 * m/cydra5.h:
17139 * m/delta88k.h:
17140 * m/dpx2.h:
17141 * m/dual.h:
17142 * m/elxsi.h:
17143 * m/f301.h:
17144 * m/gould-np1.h:
17145 * m/gould.h:
17146 * m/i860.h:
17147 * m/ibmps2-aix.h:
17148 * m/ibmrt-aix.h:
17149 * m/ibmrt.h:
17150 * m/irist.h:
17151 * m/is386.h:
17152 * m/isi-ov.h:
17153 * m/mega68.h:
17154 * m/mg1.h:
17155 * m/news-r6.h:
17156 * m/news-risc.h:
17157 * m/news.h:
17158 * m/nh3000.h:
17159 * m/nh4000.h:
17160 * m/ns16000.h:
17161 * m/ns32000.h:
17162 * m/nu.h:
17163 * m/orion.h:
17164 * m/orion105.h:
17165 * m/paragon.h:
17166 * m/pfa50.h:
17167 * m/plexus.h:
17168 * m/pyramid.h:
17169 * m/pyrmips.h:
17170 * m/sh3el.h:
17171 * m/sps7.h:
17172 * m/sr2k.h:
17173 * m/stride.h:
17174 * m/sun1.h:
17175 * m/sun2.h:
17176 * m/sun3-68881.h:
17177 * m/sun3-fpa.h:
17178 * m/sun3-soft.h:
17179 * m/sun3.h:
17180 * m/sun386.h:
17181 * m/symmetry.h:
17182 * m/tad68k.h:
17183 * m/tahoe.h:
17184 * m/targon31.h:
17185 * m/tek4300.h:
17186 * m/tekxd88.h:
17187 * m/tower32.h:
17188 * m/tower32v3.h:
17189 * m/ustation.h:
17190 * m/wicat.h:
17191 * m/xps100.h:
17192 * s/cxux.h:
17193 * s/cxux7.h:
17194 * s/dgux.h:
17195 * s/dgux4.h:
17196 * s/dgux5-4-3.h:
17197 * s/dgux5-4r2.h:
17198 * s/esix.h:
17199 * s/esix5r4.h:
17200 * s/hiuxmpp.h:
17201 * s/hiuxwe2.h:
17202 * s/iris3-5.h:
17203 * s/iris3-6.h:
17204 * s/isc2-2.h:
17205 * s/isc3-0.h:
17206 * s/isc4-0.h:
17207 * s/isc4-1.h:
17208 * s/newsos5.h:
17209 * s/newsos6.h:
17210 * s/osf1.h:
17211 * s/osf5-0.h:
17212 * s/riscix1-1.h:
17213 * s/riscix12.h:
17214 * s/sco4.h:
17215 * s/sco5.h:
17216 * s/sunos4-0.h:
17217 * s/sunos4-1.h:
17218 * s/sunos413.h:
17219 * s/sunos4shr.h:
17220 * s/umax.h:
17221 * s/unipl5-2.h:
17222 * s/xenix.h:
17223 * cxux-crt0.s:
17224 * unexapollo.c:
17225 * unexconvex.c:
17226 * unexenix.c:
17227 * unexsni.c: Remove files for systems no longer supported.
17228
17229 * m/intel386.h: Remove references to unsupported systems.
17230
17231 * w32.c (get_emacs_configuration): Remove reference to i860.
17232
17233 * sysdep.c: Remove dead code.
17234
17235 2008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
17236
17237 * s/rtu.h:
17238 * m/masscomp.h: Remove files. Platform is obsolete.
17239
17240 2008-01-04 Michael Albinus <michael.albinus@gmx.de>
17241
17242 * dbusbind.c (Fdbus_method_return): New function.
17243 (xd_read_message): Add the serial number to the event.
17244 (Fdbus_register_method): Activate the function.
17245
17246 2008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
17247
17248 * keyboard.c (read_key_sequence): Fix typo.
17249
17250 2008-01-03 Michael Albinus <michael.albinus@gmx.de>
17251
17252 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
17253 (xd_signature, xd_append_arg): Handle element type detection for
17254 empty arrays.
17255 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
17256 SDATA () calls; this must be solved more general.
17257 (Fdbus_register_signal): Use SBYTES instead of strlen.
17258
17259 2008-01-03 Magnus Henoch <magnus@zemdatav>
17260
17261 * dbusbind.c (xd_append_arg): Use unsigned char instead of
17262 unsigned int for byte values (necessary for big-endian platform).
17263 (Fdbus_call_method): Handle the case of no returned arguments.
17264
17265 2007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
17266
17267 * dbusbind.c (xd_read_message): Use non-static input_event struct.
17268
17269 2007-12-31 Magnus Henoch <mange@freemail.hu>
17270
17271 * dbusbind.c (xd_signature): Signature of variant is just "v".
17272
17273 2007-12-30 Michael Albinus <michael.albinus@gmx.de>
17274
17275 * dbusbind.c: Fix several errors and compiler warnings.
17276 Reported by Tom Tromey <tromey@redhat.com>.
17277 (XD_ERROR, XD_DEBUG_MESSAGE)
17278 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
17279 (xd_append_arg): Part for basic D-Bus types rewritten.
17280 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
17281 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
17282 appropriate.
17283 (xd_read_message): Return Qnil. Don't signal an error; it is not
17284 useful during event reading.
17285 (Fdbus_register_signal): Signal an error if the check for
17286 FUNCTIONP fails.
17287 (Fdbus_register_method): New function. The implementation is not
17288 complete, the call of the function signals an error therefore.
17289 (Fdbus_unregister_object): New function, renamed from
17290 Fdbus_unregister_signal. The initial check signals an error, if
17291 the object is not well formed.
17292
17293 2007-12-30 Richard Stallman <rms@gnu.org>
17294
17295 * textprop.c (get_char_property_and_overlay):
17296 Signal error if POSITION is out of range in a buffer.
17297
17298 2007-12-29 Martin Rudalics <rudalics@gmx.at>
17299
17300 * w32fns.c (Fx_create_frame): Make copy of frame parameters
17301 because the original parameters are in pure storage now.
17302
17303 2007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17304
17305 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
17306
17307 2007-12-22 Eli Zaretskii <eliz@gnu.org>
17308
17309 * callint.c (syms_of_callint) <command-history>: Add reference to
17310 history-length in the doc string.
17311
17312 2007-12-17 Jason Rumney <jasonr@gnu.org>
17313
17314 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
17315 before passing as wParam.
17316
17317 2007-12-22 Michael Albinus <michael.albinus@gmx.de>
17318
17319 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
17320 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
17321 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
17322 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
17323 as number.
17324 (Fdbus_call_method): Fix docstring.
17325
17326 2007-12-21 Michael Albinus <michael.albinus@gmx.de>
17327
17328 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
17329 New macros.
17330 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
17331 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
17332 Simplify.
17333 (xd_signature): New function.
17334 (xd_append_arg): Compute also signatures. Major rewrite.
17335 (xd_retrieve_arg): Make debug messages friendly.
17336 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
17337 Check for signatures of arguments.
17338
17339 2007-12-19 Michael Albinus <michael.albinus@gmx.de>
17340
17341 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
17342 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
17343 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
17344 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
17345 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
17346 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
17347 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
17348 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
17349 (xd_retrieve_value): Remove. Functionality included in ...
17350 (xd_append_arg): New function.
17351 (Fdbus_call_method, Fdbus_send_signal): Apply it.
17352
17353 2007-12-16 Michael Albinus <michael.albinus@gmx.de>
17354
17355 * dbusbind.c (top): Include <stdio.h>.
17356 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
17357 dbus_message_new_method_call and dbus_message_new_signal.
17358 (Fdbus_register_signal): Rename unique_name to uname.
17359 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
17360 non-existing unique name. Fix typos in matching rule. Return an
17361 object which is useful in Fdbus_unregister_signal.
17362 (Fdbus_unregister_signal): Reimplementation, in order to remove
17363 only the corresponding entry.
17364 (Vdbus_registered_functions_table): Change the order of entries.
17365 Apply these changes in xd_read_message and Fdbus_register_signal.
17366
17367 2007-12-16 Andreas Schwab <schwab@suse.de>
17368
17369 * fileio.c (Finsert_file_contents): Fix overflow check to not
17370 depend on undefined integer overflow.
17371
17372 2007-12-14 Jason Rumney <jasonr@gnu.org>
17373
17374 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
17375 for characters above 127.
17376
17377 2007-12-13 Jason Rumney <jasonr@gnu.org>
17378
17379 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
17380 before dereferencing array.
17381 (lookup_vk_code): Remove zero comparison.
17382
17383 2007-12-14 Michael Albinus <michael.albinus@gmx.de>
17384
17385 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
17386 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
17387 Use `unsigned int' instead of `uint'.
17388 (xd_read_message, Fdbus_register_signal): Split expressions into
17389 multiple lines before operators "&&" and "||", according to the
17390 GNU Coding Standards.
17391
17392 2007-12-14 Eli Zaretskii <eliz@gnu.org>
17393
17394 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
17395
17396 2007-12-12 Juri Linkov <juri@jurta.org>
17397
17398 * buffer.c (Frename_buffer): In interactive spec replace
17399 `read-buffer' with `read-string' that uses `buffer-name-history'
17400 as history, and the current buffer's name as default.
17401
17402 2007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
17403
17404 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
17405 manipulating the backtrace manually.
17406 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
17407 (struct backtrace, backtrace_list): Remove.
17408 (command_loop_1): Remove dead var `no_direct'.
17409
17410 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
17411 preserve non-built-in buffer-local variables.
17412 (Fkill_all_local_variables): Don't re-create&re-set permanent
17413 buffer-local variables.
17414
17415 2007-12-09 Juri Linkov <juri@jurta.org>
17416
17417 * buffer.c (Frename_buffer): Change interactive spec from "s" to
17418 Lisp code that uses `read-buffer' with current buffer as default.
17419
17420 2007-12-08 Michael Albinus <michael.albinus@gmx.de>
17421
17422 * dbusbind.c (xd_read_message): Generate an event for every
17423 registered handler. There might be several handlers registered
17424 for the same signal.
17425 (Fdbus_register_signal): Don't overwrite a registration for the
17426 same signal. Add a new registration if handlers are different.
17427 (Vdbus_registered_functions_table): Rework doc string.
17428
17429 2007-12-07 Michael Albinus <michael.albinus@gmx.de>
17430
17431 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
17432 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
17433 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
17434 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
17435 Unify argument lists.
17436 (xd_read_message, Fdbus_register_signal): Reorder and extend event
17437 arguments and hash table keys. Use unique name for service.
17438 (Fdbus_unregister_signal): Remove checks.
17439 (Vdbus_registered_functions_table): Fix doc string.
17440
17441 2007-12-05 Magnus Henoch <mange@freemail.hu>
17442
17443 * process.c (make_process): Initialize pty_flag to 0.
17444
17445 2007-12-05 Jason Rumney <jasonr@gnu.org>
17446
17447 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
17448 specified XBMs.
17449
17450 2007-12-05 Richard Stallman <rms@gnu.org>
17451
17452 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
17453
17454 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17455
17456 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
17457 New variable.
17458 (mac_try_close_socket) [MAC_OSX]: New function.
17459 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
17460 Update cfsockets_for_select. Replace invalid CFRunLoop source.
17461
17462 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
17463 Use mac_try_close_socket.
17464
17465 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17466
17467 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
17468 reloc_base.
17469 (copy_dysymtab): Compute relocation base here.
17470 (rebase_reloc_address) [__ppc64__]: New function.
17471 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
17472 changed.
17473
17474 2007-12-05 Jason Rumney <jasonr@gnu.org>
17475
17476 * w32proc.c (sys_spawnve): Quote args with wildcards.
17477
17478 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17479
17480 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
17481 __objc_* sections.
17482 (unrelocate) [_LP64]: Set relocation base to address of data segment.
17483
17484 2007-12-05 Michael Albinus <michael.albinus@gmx.de>
17485
17486 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
17487 Move check for Vdbus_registered_functions_table to
17488 xd_read_queued_messages.
17489 (xd_read_queued_messages): Protect xd_read_message calls by
17490 internal_condition_case_1.
17491
17492 2007-12-04 Michael Albinus <michael.albinus@gmx.de>
17493
17494 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
17495 Qdbus_system_bus and Qdbus_session_bus, respectively.
17496 (Vdbus_intern_symbols): Remove.
17497 (Vdbus_registered_functions_table): New hash table.
17498 (XD_SYMBOL_INTERN_SYMBOL): Remove.
17499 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
17500 Rewrite in order to manage registered functions by hash table
17501 Vdbus_registered_functions_table.
17502
17503 2007-12-03 Jan Djärv <jan.h.d@swipnet.se>
17504
17505 * xterm.c: Update URL to Window Manager Specification in comment.
17506
17507 2007-12-02 Michael Albinus <michael.albinus@gmx.de>
17508
17509 * config.in (HAVE_DBUS): Add.
17510
17511 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
17512 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
17513 (obj): Add $(DBUS_OBJ).
17514 (LIBES): Add $(DBUS_LIBS).
17515 (dbusbind.o): New target.
17516
17517 * dbusbind.c: New file.
17518
17519 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
17520
17521 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
17522 (Qdbus_event): New Lisp symbol.
17523 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
17524 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
17525 (keys_of_keyboard): Define dbus-event.
17526
17527 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
17528
17529 2007-12-01 Richard Stallman <rms@gnu.org>
17530
17531 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
17532
17533 2007-11-30 Jason Rumney <jasonr@gnu.org>
17534
17535 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
17536 (w32con_reset_terminal_modes): Clear screen buffer.
17537 (w32_face_attributes): Don't use color indexes that are out of range.
17538 Only reverse the default colors.
17539
17540 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
17541 WINDOWSNT.
17542
17543 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
17544
17545 2007-11-29 Jason Rumney <jasonr@gnu.org>
17546
17547 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
17548 (w32_face_attributes): Use Vtty_defined_color_alist to determine
17549 if the terminal colors are initialized.
17550 (unspecified_fg, unspecified_bg): Remove unused declarations.
17551
17552 2007-11-29 Andreas Schwab <schwab@suse.de>
17553
17554 * keyboard.c (apply_modifiers): Fix typo.
17555
17556 2007-11-29 Richard Stallman <rms@gnu.org>
17557
17558 * keymap.c (Fcurrent_local_map): Doc fix.
17559
17560 2007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
17561
17562 * s/gnu-kfreebsd.h: New file.
17563
17564 2007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
17565
17566 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
17567 Don't cast redundantly.
17568
17569 * keyboard.c (KEY_TO_CHAR): New macro.
17570 (parse_modifiers, apply_modifiers): Accept integer arguments.
17571 (read_key_sequence): Use them to unify the "shift->unshift" mapping
17572 for chars and symbol keys.
17573 After doing such remapping, apply function-key-map again.
17574
17575 2007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
17576
17577 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
17578 compiled anymore.
17579
17580 2007-11-26 Andreas Schwab <schwab@suse.de>
17581
17582 * process.c (list_processes_1): Fix indentation level of the
17583 command column.
17584
17585 2007-11-23 Andreas Schwab <schwab@suse.de>
17586
17587 * editfns.c (Fformat): Handle %c specially since it requires the
17588 argument to be of type int.
17589
17590 2007-11-23 Markus Triska <markus.triska@gmx.at>
17591
17592 * emacs.c (main): Call init_editfns before init_process, since
17593 init_process sets Vprocess_connection_type depending on OS release.
17594
17595 2007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
17596
17597 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
17598 (find_symbol_value): Use do_symval_forwarding.
17599
17600 * data.c (set_internal): Set the value in the `cons-cell' (for
17601 Buffer_Local_values) not only for frame-local variables.
17602
17603 2007-11-22 Andreas Schwab <schwab@suse.de>
17604
17605 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
17606 values to sprintf.
17607 * keymap.c (Fsingle_key_description): Likewise.
17608 * print.c (print_object): Likewise.
17609
17610 2007-11-22 Jan Djärv <jan.h.d@swipnet.se>
17611
17612 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
17613 file for image is nil.
17614
17615 2007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
17616
17617 * term.c: Include stdarg.h.
17618 (fatal): Implement using varargs.
17619 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
17620
17621 2007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
17622
17623 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
17624 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
17625 Update call to buffer_slot_type_mismatch.
17626 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
17627 (buffer_slot_type_mismatch): Update.
17628 * buffer.c (buffer_local_types): Remove.
17629 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
17630 (defvar_per_buffer): Set the type in the buffer_objfwd.
17631
17632 2007-11-21 Jason Rumney <jasonr@gnu.org>
17633
17634 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
17635 CreateFileMapping returns NULL on failure.
17636
17637 2007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
17638
17639 * search.c (Fset_match_data): Remove the `evaporate' feature.
17640 (unwind_set_match_data): Don't use the `evaporate' feature.
17641
17642 2007-11-21 Jason Rumney <jasonr@gnu.org>
17643
17644 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
17645
17646 * w32console.c (w32con_write_glyphs): Remove unused variables.
17647
17648 2007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
17649
17650 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
17651
17652 * s/darwin.h (MULTI_KBOARD): Remove.
17653
17654 * macfns.c (x_create_tip_frame, Fx_create_frame)
17655 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
17656
17657 2007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
17658
17659 * buffer.c (Fbuffer_local_value): Remove redundant test.
17660 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
17661 than in `current-buffer' to match the comment.
17662 Do the swap using swap_in_global_binding.
17663
17664 * data.c (store_symval_forwarding, set_internal):
17665 * eval.c (specbind): Remove dead code.
17666
17667 * coding.c (detect_coding, Fupdate_coding_systems_internal):
17668 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
17669 Since we do not want to see internal Lisp_*fwd objects here.
17670
17671 2007-11-18 Jan Djärv <jan.h.d@swipnet.se>
17672
17673 * sysdep.c (init_system_name): Use getaddrinfo if available.
17674
17675 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
17676 (x_scroll_bar_note_movement): start, end, with, height in struct
17677 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
17678
17679 2007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
17680
17681 * puresize.h (BASE_PURESIZE): Increase to 1190000.
17682
17683 2007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
17684
17685 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
17686 This undoes Richard's change of 14-Oct-2002.
17687
17688 * alloc.c (allocate_other_vector):
17689 * lisp.h (allocate_other_vector): Remove.
17690
17691 * window.c (struct save_window_data): Move non-lisp data to the end
17692 and make it `int' rather than Lisp_Object.
17693 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
17694 Done wrap/unwrap integer values.
17695 (Fset_window_configuration, compare_window_configurations):
17696 Update use of fields to their new types.
17697
17698 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
17699 Turn integer fields into `int'. Merge x_window_low and x_window_high.
17700 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
17701 (SET_SCROLL_BAR_X_WINDOW): Remove.
17702 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
17703 Access the new x_window field directly.
17704 * xterm.c (x_scroll_bar_create): Use a pseudovector.
17705 Don't wrap/unwrap integers into Lisp_Objects.
17706 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
17707 (x_scroll_bar_report_motion):
17708 Don't wrap/unwrap integers into Lisp_Objects.
17709 (x_term_init): Use SDATA.
17710 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
17711 (x_scroll_bar_set_handle, x_scroll_bar_remove)
17712 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
17713 (x_scroll_bar_report_motion, x_scroll_bar_clear):
17714 * xfns.c (x_set_background_color):
17715 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
17716 Access the new x_window field directly.
17717
17718 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
17719 (allocate_pseudovector): Make non-static.
17720
17721 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
17722 (allocate_pseudovector): Declare.
17723 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
17724
17725 2007-11-15 Andreas Schwab <schwab@suse.de>
17726
17727 * editfns.c (Fformat): Correctly format EMACS_INT values.
17728 Also take precision into account when formatting an integer.
17729
17730 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
17731
17732 2007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
17733
17734 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
17735 (syms_of_keyboard): Defsubr it.
17736
17737 * data.c (swap_in_global_binding): Fix longstanding bug where
17738 store_symval_forwarding was not called with the right second argument,
17739 thus causing objfwd-ing from being dropped.
17740
17741 2007-11-14 Juanma Barranquero <lekktu@gmail.com>
17742
17743 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
17744 (Fx_display_pixel_height, Fx_display_planes)
17745 (Fx_display_color_cells, Fx_server_max_request_size)
17746 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
17747 (Fx_display_visual_class, Fx_display_save_under):
17748 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
17749 (Fx_display_pixel_height, Fx_display_planes)
17750 (Fx_display_color_cells, Fx_server_max_request_size)
17751 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
17752 (Fx_display_mm_height, Fx_display_mm_width)
17753 (Fx_display_backing_store, Fx_display_visual_class)
17754 (Fw32_select_font, Fx_display_save_under):
17755 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
17756 (Fx_display_pixel_height, Fx_display_planes)
17757 (Fx_display_color_cells, Fx_server_max_request_size)
17758 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
17759 (Fx_display_save_under): Fix typos in docstrings.
17760
17761 2007-11-14 Juanma Barranquero <lekktu@gmail.com>
17762
17763 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
17764 corresponding to deleted entries; they are an implementation detail.
17765 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
17766 Remove variables.
17767 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
17768 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
17769 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
17770 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
17771 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
17772 (Fw32_define_rgb_color, Fw32_load_color_file)
17773 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
17774 Fix typos in docstrings.
17775 (Fx_server_version): Reflow docstring.
17776 (Fw32_shell_execute): Doc fixes.
17777
17778 2007-11-13 Juanma Barranquero <lekktu@gmail.com>
17779
17780 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
17781 if w32_parse_hot_key returned nil.
17782
17783 2007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
17784
17785 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
17786
17787 2007-11-09 Jason Rumney <jasonr@gnu.org>
17788
17789 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
17790
17791 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
17792
17793 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
17794 Remove W32_SCROLL_BAR_CLICK_EVENT.
17795
17796 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
17797 Add MULTIMEDIA_KEY_EVENT.
17798
17799 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
17800 (lispy_multimedia_keys) [WINDOWSNT]: New array.
17801 (make_lispy_event) [WINDOWSNT]: Use it to translate
17802 MULTIMEDIA_KEY_EVENT.
17803
17804 * w32term.h (WM_APPCOMMAND): Define if not already.
17805 (GET_APPCOMMAND_LPARAM): Likewise.
17806
17807 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
17808 WM_APPCOMMAND.
17809
17810 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
17811 (syms_of_w32fns): Export and initialize it.
17812 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
17813
17814 2007-11-09 Chong Yidong <cyd@stupidchicken.com>
17815
17816 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
17817 twice.
17818
17819 * xdisp.c (handle_face_prop): Fix last change.
17820
17821 2007-11-09 Richard Stallman <rms@gnu.org>
17822
17823 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
17824 not just for after-strings and before-strings.
17825 Call face_for_overlay_string and pass the overlay to it.
17826 (handle_display_prop): Determine whether property came from an overlay.
17827 Pass OVERLAY arg to handle_single_display_spec.
17828 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
17829 (load_overlay_strings): Fill in it->string_overlays.
17830 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
17831
17832 * xfaces.c (face_for_overlay_string): Function renamed from
17833 face_at_buffer_position_no_overlays, and add arg OVERLAY.
17834
17835 * dispextern.h (struct it): New elt string_overlays.
17836 New elt from_overlay, also in stack.
17837 Rearrange a few elements.
17838 (face_for_overlay_string): Decl renamed from
17839 face_at_buffer_position_no_overlays, and add argument.
17840
17841 2007-11-09 Richard Stallman <rms@gnu.org>
17842
17843 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
17844 to get the base face for an overlay string.
17845
17846 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
17847
17848 * xfaces.c (face_at_buffer_position_no_overlays): New function.
17849
17850 * xdisp.c (handle_stop): Move some code out of loop.
17851
17852 2007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17853
17854 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
17855 Fix conversion from Lisp object to ATSUFontID.
17856
17857 2007-11-09 Jason Rumney <jasonr@gnu.org>
17858
17859 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
17860
17861 2007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17862
17863 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
17864 Don't assume regions are aligned to page boundary.
17865 (print_load_command_name): Add LC_UUID if defined.
17866
17867 2007-11-09 Richard Stallman <rms@gnu.org>
17868
17869 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
17870
17871 2007-11-07 Jason Rumney <jasonr@gnu.org>
17872
17873 * s/windows95.h: Remove.
17874
17875 2007-11-06 Jan Djärv <jan.h.d@swipnet.se>
17876
17877 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
17878 abort with a message on unhandled store_type values.
17879
17880 2007-11-01 Jan Djärv <jan.h.d@swipnet.se>
17881
17882 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
17883 Remove HAVE_X11R5 and HAVE_X11R4.
17884
17885 2007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
17886
17887 * Makefile.in: Remove references to sunfns.c and sunfns.o.
17888
17889 2007-11-01 Johan Bockgård <bojohan@gnu.org>
17890
17891 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
17892 Don't set s->stippled_p here, since it has already been set by
17893 x_set_glyph_string_gc from x_draw_glyph_string.
17894
17895 2007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
17896
17897 * sunfns.c: Remove file.
17898
17899 * m/sun386.h:
17900 * m/sun2.h:
17901 * m/sparc.h: Remove Sun windows code.
17902
17903 2007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
17904
17905 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
17906 (init_keyboard): Set current_kboard's window-system to nil.
17907 (tty_read_avail_input): Typo.
17908 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
17909
17910 2007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
17911
17912 * s/usg5-4.h:
17913 * s/usg5-3.h:
17914 * s/ptx.h:
17915 * m/is386.h:
17916 * m/ibmps2-aix.h:
17917 * Makefile.in: Remove all mentions of X10.
17918
17919 * dispnew.c (syms_of_display): Don't mention version 10.
17920
17921 2007-10-28 Juanma Barranquero <lekktu@gmail.com>
17922
17923 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
17924 ($(BLD)/abbrev.$(O)): Remove.
17925
17926 2007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
17927
17928 Rewrite abbrev.c in Elisp.
17929 * image.c (Qcount): Don't declare as extern.
17930 (syms_of_image): Initialize and staticpro `Qcount'.
17931 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
17932 * emacs.c (main): Don't call syms_of_abbrev.
17933 * Makefile.in (obj): Remove abbrev.o.
17934 (abbrev.o): Remove.
17935 * abbrev.c: Remove.
17936
17937 2007-10-26 Martin Rudalics <rudalics@gmx.at>
17938
17939 * window.c (window_min_size_2): Don't count header-line.
17940
17941 2007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
17942
17943 * frame.h (struct frame): Move all bit fields after the first bit
17944 field to take advantage of the available space. Group all the
17945 chars together to reduce wasted space due to padding.
17946
17947 2007-10-26 Juanma Barranquero <lekktu@gmail.com>
17948
17949 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
17950
17951 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
17952 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
17953 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
17954 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
17955 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
17956 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
17957 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
17958 (last_marked, mark_object_loop_halt): Make static.
17959
17960 * frame.c (syms_of_frame) <delete-frame-functions>:
17961 Fix typo in docstring.
17962
17963 2007-10-25 Juanma Barranquero <lekktu@gmail.com>
17964
17965 * w32.c (init_environment): Fix tiny memory leak.
17966 (w32_get_resource): Remove unused variable `ok'.
17967
17968 2007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
17969
17970 Make `window-system' into a keyboard-local variable (rather than
17971 frame-local as done originally by multi-tty).
17972
17973 * keyboard.h (struct kboard): Add Vwindow_system.
17974 * keyboard.c (init_kboard): Set a default for Vwindow_system.
17975 (mark_kboards): Mark Vwindow_system.
17976
17977 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
17978 (init_display): Don't set the obsolete `window-system' frame-param.
17979
17980 * xterm.c (x_term_init):
17981 * w32term.c (w32_create_terminal):
17982 * term.c (init_tty): Set Vwindow_system.
17983 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
17984 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
17985
17986 * xfns.c (Fx_create_frame, x_create_tip_frame):
17987 * w32fns.c (Fx_create_frame, x_create_tip_frame):
17988 * macfns.c (Fx_create_frame):
17989 Don't set the obsolete `window-system' frame-param.
17990
17991 * frame.h (Qwindow_system): Remove.
17992 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
17993 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
17994
17995 2007-10-24 Richard Stallman <rms@gnu.org>
17996
17997 * frame.c (x_figure_window_size): For fullscreen case,
17998 set USPosition | PPosition without clobbering rest of window_prompting.
17999
18000 * keyboard.c (Fcurrent_idle_time): Doc fix.
18001
18002 * print.c (Fwith_output_to_temp_buffer): Doc fix.
18003
18004 2007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
18005
18006 * process.c (unwind_request_sigio): Only define if __ultrix__.
18007
18008 * callproc.c (child_setup): Remove spurious *.
18009
18010 * lisp.h (Fget_text_property): Declare.
18011 (have_menus_p): Declare it here rather than in sys-dep header files.
18012 * macterm.h (have_menus_p):
18013 * msdos.h (have_menus_p):
18014 * xterm.h (have_menus_p): Remove.
18015
18016 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
18017 (Fmake_variable_frame_local): Just check the variable's const-ness
18018 rather than checking nil or t.
18019
18020 2007-10-22 Jason Rumney <jasonr@gnu.org>
18021
18022 * w32fns.c: Include math.h.
18023 (w32_abort): Declaration moved to nt/config.nt.
18024
18025 * s/ms-w32.h (HAVE_STDLIB_H): Define.
18026 (abort): Redefinition moved to nt/config.nt.
18027
18028 * m/windowsnt.h: Remove.
18029
18030 2007-10-22 Juanma Barranquero <lekktu@gmail.com>
18031
18032 * emacs.c (Fdump_emacs): Fix typo in message.
18033 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
18034 <installation-directory>: Reflow docstring.
18035
18036 2007-10-22 Juri Linkov <juri@jurta.org>
18037
18038 * minibuf.c: Allow minibuffer default to be a list of default values.
18039 With empty input use the first element of this list as returned default.
18040 (string_to_object)
18041 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
18042 (read_minibuf): If defalt is cons, set histstring to its car.
18043 (Fread_string): If default_value is cons, set val to its car.
18044 (Fread_buffer): If def is cons, use its car.
18045 (Fcompleting_read): If defalt is cons, set val to its car.
18046
18047 2007-10-21 Michael Albinus <michael.albinus@gmx.de>
18048
18049 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
18050
18051 2007-10-20 Juanma Barranquero <lekktu@gmail.com>
18052
18053 * doc.c (Fdocumentation): Check for advice in all cases.
18054
18055 2007-10-19 Chong Yidong <cyd@stupidchicken.com>
18056
18057 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
18058
18059 2007-10-19 Richard Stallman <rms@gnu.org>
18060
18061 * doc.c (Fdocumentation): Check for and handle an advised function.
18062
18063 2007-10-19 Juanma Barranquero <lekktu@gmail.com>
18064
18065 * process.c (Fset_process_filter): Doc fix.
18066
18067 2007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
18068
18069 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
18070 which caused key-translation-map to applied repeatedly (thus breaking
18071 double-mode).
18072
18073 2007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
18074
18075 * xselect.c (x_own_selection, x_handle_selection_clear)
18076 (x_clear_frame_selections):
18077 * w32menu.c (list_of_panes, list_of_items):
18078 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
18079 * textprop.c (validate_plist, interval_has_all_properties)
18080 (interval_has_some_properties, interval_has_some_properties_list)
18081 (add_properties, text_property_list):
18082 * process.c (Fget_buffer_process, list_processes_1, status_notify):
18083 * minibuf.c (Fassoc_string):
18084 * macselect.c (x_own_selection, x_clear_frame_selections)
18085 (Fx_disown_selection_internal):
18086 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
18087 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
18088
18089 2007-10-17 Chong Yidong <cyd@stupidchicken.com>
18090
18091 * process.c: Link to libs for calling res_init() if available.
18092 (Fmake_network_process): Call res_init() before getaddrinfo or
18093 gethostbyname, if possible.
18094
18095 2007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
18096
18097 * lread.c (read1): Set pvectype for char_tables.
18098
18099 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
18100 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
18101 Add type checks.
18102 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
18103
18104 * alloc.c (free_misc): Use XMISCTYPE.
18105 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
18106
18107 2007-10-17 Glenn Morris <rgm@gnu.org>
18108
18109 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
18110 (syms_of_minibuf): Add Qcompletion_ignore_case.
18111 * dired.c (Qcompletion_ignore_case): Change to external.
18112 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
18113 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
18114 (Fread_file_name): Use it rather than intern'ing.
18115
18116 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
18117 (Fread_coding_system): Ignore case of user input.
18118
18119 2007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18120
18121 * xdisp.c (handle_display_prop): Ignore display specs after
18122 replacing one when string text is being replaced.
18123 (handle_single_display_spec): Pretend as if characters with display
18124 property haven't been consumed only when buffer text is being replaced.
18125
18126 2007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
18127
18128 * xfns.c (Fx_create_frame, Fx_display_list):
18129 * window.c (window_fixed_size_p, enlarge_window)
18130 (shrink_window_lowest_first):
18131 * macterm.c (init_font_name_table):
18132 * macfns.c (Fx_create_frame, Fx_display_list):
18133 * lread.c (close_load_descs):
18134 * keyboard.c (read_char_x_menu_prompt):
18135 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
18136 * coding.c (code_convert_region_unwind): Test the type of an object
18137 rather than just !NILP before extracting data from it.
18138
18139 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
18140
18141 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
18142 (XMISCANY): New macro.
18143 (XMISCTYPE): Use it.
18144 (struct Lisp_Misc_Any): New type.
18145 (union Lisp_Misc): Use it.
18146 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
18147 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
18148 (find_symbol_value, set_internal, default_value, Fset_default)
18149 (Fmake_variable_buffer_local, Fmake_local_variable)
18150 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
18151 (Flocal_variable_if_set_p, Fvariable_binding_locus):
18152 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
18153 * alloc.c (allocate_buffer): Set the size and tag.
18154 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
18155 Use XMISCANY.
18156 (die): Follow the GNU convention for error messages.
18157 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
18158 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
18159 tag any more.
18160 (set_buffer_internal_1):
18161 * frame.c (store_frame_param):
18162 * eval.c (specbind):
18163 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
18164
18165 * doc.c (Fsnarf_documentation): Simplify.
18166
18167 2007-10-14 Juanma Barranquero <lekktu@gmail.com>
18168
18169 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
18170 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
18171
18172 2007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
18173
18174 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
18175
18176 2007-10-14 Juanma Barranquero <lekktu@gmail.com>
18177
18178 * eval.c (do_autoload): Don't save autoloads.
18179
18180 * data.c (Ffset): Save autoload of the function being set.
18181
18182 2007-10-07 John Paul Wallington <jpw@pobox.com>
18183
18184 * xfns.c (x_create_tip_frame): Set the `display-type' frame
18185 parameter before setting up faces.
18186
18187 2007-10-13 Eli Zaretskii <eliz@gnu.org>
18188
18189 * ccl.c (Fregister_code_conversion_map):
18190 * keyboard.c (append_tool_bar_item): Reformat last change.
18191
18192 * lisp.h (eabs): Rename from `abs'. All callers changed.
18193
18194 2007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
18195
18196 * buffer.c (add_overlay_mod_hooklist):
18197 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
18198 * fontset.c (make_fontset):
18199 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
18200 (append_tool_bar_item):
18201 * macmenu.c (grow_menu_items):
18202 * w32menu.c (grow_menu_items):
18203 * xmenu.c (grow_menu_items): Use larger_vector.
18204
18205 2007-10-13 Eli Zaretskii <eliz@gnu.org>
18206
18207 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
18208 selected frame'' on MSDOS).
18209
18210 2007-10-12 Martin Rudalics <rudalics@gmx.at>
18211
18212 * frame.c (Qexplicit_name): New variable.
18213 (x_report_frame_params): Report it in parameter alist.
18214 (syms_of_frame): Intern and staticpro it.
18215
18216 2007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
18217
18218 * macfns.c (x_create_tip_frame): Set terminal for frame.
18219
18220 2007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
18221
18222 * frame.c (Qenvironment): Remove.
18223 (syms_of_frame) <Qenvironment>: Don't initialize.
18224 (Fdelete_frame): Don't treat the `environment' param specially.
18225 * frame.h (Qenvironment): Don't declare.
18226 * callproc.c (set_initial_environment): Don't set unused frame param.
18227
18228 * frame.c (Fframe_with_environment): Remove.
18229 (syms_of_frame) <Sframe_with_environment>: Don't declare.
18230
18231 * lisp.h (Fframe_with_environment): Don't declare.
18232
18233 2007-10-10 Juanma Barranquero <lekktu@gmail.com>
18234
18235 * indent.c (indent_tabs_mode, last_known_column)
18236 (last_known_column_modified): Make static.
18237 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
18238
18239 2007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
18240
18241 * puresize.h (BASE_PURESIZE): Increase to 1170000.
18242
18243 2007-10-09 Jason Rumney <jasonr@gnu.org>
18244
18245 * w32term.c (x_set_window_size): Disable code that attempts to tell
18246 Lisp code about a size change before it actually happens.
18247
18248 2007-10-09 Richard Stallman <rms@gnu.org>
18249
18250 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
18251 return HANDLED_RETURN.
18252
18253 2007-10-08 Martin Rudalics <rudalics@gmx.at>
18254
18255 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
18256 when there's an unread command event.
18257
18258 * frame.c (focus_follows_mouse): Move here from frame.el to allow
18259 window autoselection act appropriately when leaving selected frame.
18260 (syms_of_frame): Initialize focus_follows_mouse.
18261 * frame.h (focus_follows_mouse): Extern it.
18262 * macterm.c (XTread_socket): When focus_follows_mouse is nil
18263 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
18264 * msdos.c (dos_rawgetc): Likewise.
18265 * w32term.c (w32_read_socket): Likewise.
18266 * xterm.c (handle_one_xevent): Likewise.
18267 * xdisp.c (syms_of_xdisp): In doc-string of
18268 mouse-autoselect-window mention focus-follows-mouse.
18269
18270 2007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18271
18272 * macterm.c (mac_load_query_font): Fix missing return value.
18273 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
18274 Add BLOCK_INPUT.
18275
18276 2007-10-08 Richard Stallman <rms@gnu.org>
18277
18278 * xdisp.c (get_window_cursor_type): Implement documented behavior
18279 for cursor-in-non-selected-windows = t.
18280
18281 2007-10-08 Jason Rumney <jasonr@gnu.org>
18282
18283 * w32.c (w32_get_resource): Always close registry keys.
18284
18285 2007-10-08 Jason Rumney <jasonr@gnu.org>
18286
18287 * makefile.w32-in (LIBS): Add COMCTL32.
18288
18289 * w32fns.c (globals_of_w32fns): Init common controls.
18290
18291 2007-10-08 Richard Stallman <rms@gnu.org>
18292
18293 * image.c (our_memory_buffer): Rename from omfib_buffer.
18294
18295 2007-10-08 Richard Stallman <rms@gnu.org>
18296
18297 * buffer.c (Foverlays_at): Doc fix.
18298
18299 2007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
18300
18301 * fns.c (Fplist_put): Preserve uneven tail data.
18302
18303 2007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
18304
18305 * termhooks.h (enum event_kind): Remove trailing comma.
18306
18307 * frame.h (enum): Remove trailing comma.
18308
18309 2007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
18310
18311 * w32proc.c (delete_child): Don't terminate threads of zombies.
18312
18313 2007-10-08 Martin Rudalics <rudalics@gmx.at>
18314
18315 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
18316
18317 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
18318 last-repeatable-command.
18319 (init_kboard): Initialize Vlast_repeatable_command.
18320 (command_loop_1): Set it to real_this_command unless that was
18321 bound to an input event.
18322 (mark_kboards): Mark it.
18323
18324 2007-10-08 Richard Stallman <rms@gnu.org>
18325
18326 * eval.c (condition-case): Doc fix.
18327
18328 2007-10-08 Masatake YAMATO <jet@gyve.org>
18329
18330 * xfaces.c (tty_supports_face_attributes_p): Fix code
18331 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
18332 was copied and not edited.
18333
18334 2007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
18335
18336 Add new `input-decode-map' keymap and use it for terminal
18337 escape sequences.
18338 * keyboard.h (struct kboard): Add Vinput_decode_map.
18339 Remove Vlocal_key_translation_map.
18340 * keyboard.c (read_key_sequence): Add support for input-decode-map.
18341 (init_kboard): Init input-decode-map.
18342 Replace local-key-translation-map back with key-translation-map.
18343 (syms_of_keyboard): Declare input-decode-map.
18344 Remove local-key-translation-map. Update docstrings.
18345 (mark_kboards): Mark Vinput_decode_map.
18346 Don't mark Vlocal_key_translation_map.
18347 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
18348 Replace local-key-translation-map back with key-translation-map.
18349 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
18350 Bind in input-decode-map rather than function-key-map.
18351
18352 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
18353 This was made redundant by the previous introduction of XSETPVECTYPE.
18354
18355 2007-10-09 Richard Stallman <rms@gnu.org>
18356
18357 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
18358
18359 2007-09-29 Richard Stallman <rms@gnu.org>
18360
18361 * eval.c (internal_condition_case_2, internal_condition_case_1)
18362 (internal_condition_case): Reenable abort if x_catching_errors ()
18363 to see if that really happens and why.
18364
18365 2007-10-06 Andreas Schwab <schwab@suse.de>
18366
18367 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
18368
18369 2007-10-04 Juanma Barranquero <lekktu@gmail.com>
18370
18371 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
18372
18373 2007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
18374
18375 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
18376
18377 2007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
18378
18379 * window.h (struct window):
18380 * window.c (struct save_window_data, struct saved_window):
18381 * termhooks.h (struct terminal):
18382 * process.h (struct Lisp_Process):
18383 * frame.h (struct frame):
18384 * buffer.h (struct buffer):
18385 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
18386 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
18387 The size field of (pseudo)vectors is now unsigned.
18388 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
18389
18390 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
18391 Turn `count' into an integer.
18392
18393 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
18394 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
18395 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
18396 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
18397 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
18398
18399 * alloc.c (allocate_pseudovector): New fun.
18400 (ALLOCATE_PSEUDOVECTOR): New macro.
18401 (allocate_window, allocate_terminal, allocate_frame)
18402 (allocate_process): Use it.
18403 (mark_vectorlike): New function.
18404 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
18405 (mark_terminals): Use it.
18406 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
18407 (Fmake_byte_code): Use XSETPVECTYPE.
18408
18409 * frame.c (Fframe_parameters): Minor simplification.
18410
18411 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
18412
18413 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
18414
18415 * buffer.c (Fget_buffer_create, init_buffer_once):
18416 * lread.c (defsubr):
18417 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
18418
18419 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
18420 defined differently in the m/*.h files.
18421 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
18422 (XSETPVECTYPE): New macro.
18423 (XSETPSEUDOVECTOR): Use it.
18424
18425 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
18426 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
18427
18428 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
18429 * lread.c (defvar_per_buffer):
18430 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
18431
18432 * window.c (candidate_window_p): Only consider as visible frames that
18433 are on the same terminal.
18434
18435 * m/ibms390x.h (MARKBIT): Remove unused macro.
18436
18437 2007-10-01 Juanma Barranquero <lekktu@gmail.com>
18438
18439 * lread.c (Fload): Fix typo in docstring.
18440
18441 2007-10-01 Michaël Cadilhac <michael@cadilhac.name>
18442
18443 * floatfns.c (Fexpt): Manually check for overflows, so that a power
18444 of a non-zero value can't yield zero.
18445
18446 2007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
18447
18448 * term.c (term_clear_mouse_face, term_mouse_highlight)
18449 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
18450
18451 * print.c (safe_debug_print): Use XHASH.
18452
18453 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
18454 Lisp elements such as tags.
18455 (XHASH): New macro.
18456 (EQ): Use it.
18457 (SREF, SSET, STRING_COPYIN): Use SDATA.
18458 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
18459
18460 * alloc.c (mark_terminal): Remove left-over declaration.
18461 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
18462 (allocate_vectorlike): Remove type argument. Adjust callers.
18463 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
18464 Only handle the one remaining MEM_TYPE_VECTORLIKE.
18465
18466 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
18467 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
18468 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
18469 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
18470 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
18471 Use them.
18472
18473 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
18474 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
18475 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
18476
18477 2007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
18478
18479 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
18480 loaded by default.
18481
18482 2007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
18483
18484 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
18485 on this tty.
18486 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
18487
18488 * term.c (mouse_face_window): Rename from Qmouse_face_window.
18489 Update all users.
18490 (handle_one_term_event): Use Gpm_DrawPointer.
18491 (Fgpm_mouse_start): Rename from Fterm_open_connection.
18492 Signal errors instead of returning nil. Always return nil.
18493 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
18494 Make it a noop if gpm-mouse was not activated.
18495 (syms_of_term): Update names.
18496
18497 2007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
18498
18499 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
18500 (init_sys_modes): Check that gpm_tty is the current tty.
18501
18502 * alloc.c (allocate_terminal): Set the vector size to only count the
18503 lisp fields. Initialize those to nil.
18504 (mark_object): Don't treat terminals specially.
18505 (mark_terminal): Remove.
18506 (mark_terminals): Use mark_object instead.
18507
18508 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
18509 the GC to the beginning.
18510
18511 * indent.h:
18512 * indent.c: Use EMACS_INT for ints coming from Elisp data.
18513
18514 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
18515
18516 2007-09-25 Jason Rumney <jasonr@gnu.org>
18517
18518 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
18519
18520 * w32console.c (create_w32cons_output): Remove.
18521
18522 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
18523
18524 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
18525 (reset_sys_modes): Use reset_terminal_modes_hook.
18526
18527 2007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
18528
18529 * eval.c (do_autoload): Don't output any message.
18530
18531 2007-09-24 Juri Linkov <juri@jurta.org>
18532
18533 * emacs.c (standard_args): Change priority of "--no-splash"
18534 from 40 to 3. Add "--no-desktop" with the same priority.
18535
18536 2007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
18537
18538 * alloc.c (gc_sweep): Check cons cell mark bits word by word
18539 and optimize the case where they are all 1.
18540
18541 2007-09-23 Johannes Weiner <hannes@saeurebad.de>
18542
18543 * lisp.h (abs): Define if not defined.
18544 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
18545 Don't define `abs', since it's defined in lisp.h.
18546
18547 2007-09-22 Eli Zaretskii <eliz@gnu.org>
18548
18549 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
18550 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
18551 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
18552 (init_tty): Use DEV_TTY instead of "/dev/tty".
18553 [WINDOWSNT]: No need to protect from NAME arg being null.
18554
18555 2007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
18556
18557 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
18558 up the tty state.
18559
18560 2007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
18561
18562 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
18563 (gpm_tty): Change its type.
18564 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
18565 (gpm_tty): Change its type and initialize it.
18566 (Fterm_open_connection): Check the frame is indeed a tty.
18567 Use the new gpm_tty.
18568 (Fterm_close_connection): Use the new gpm_tty.
18569 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
18570 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
18571
18572 2007-09-21 Juanma Barranquero <lekktu@gmail.com>
18573
18574 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
18575 underline_color, to draw strike-through.
18576
18577 2007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
18578
18579 * lisp.h (allocate_terminal): Declare.
18580
18581 * window.c (candidate_window_p): Consider frames that are being placed
18582 by the user as somewhere between visible and iconified.
18583 (window_loop): Prefer windows on the current frame.
18584 (Fselect_window): Move the use of select-frame to the beginning so we
18585 can just delegate all the work (it'll call us back anyway).
18586
18587 * frame.c (Qdisplay_environment_variable):
18588 * frame.h (Qdisplay_environment_variable): Delete.
18589
18590 * .gdbinit (xbacktrace): Print the arg's address rather than the value
18591 of the first arg, since that value may be a union.
18592
18593 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
18594 parameter rather than Qdisplay_environment_variable. If all else
18595 fails, look for DISPLAY in initial-environment.
18596
18597 2007-09-21 Glenn Morris <rgm@gnu.org>
18598
18599 * Makefile.in (emacstool): Remove target.
18600 (lisp, shortlisp): Remove termdev.elc.
18601
18602 2007-09-21 Markus Triska <markus.triska@gmx.at>
18603
18604 * xterm.c (x_delete_display): Compile session management conditionally.
18605
18606 2007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
18607
18608 * callproc.c (getenv_internal_1): New function.
18609 (getenv_internal): Use it.
18610 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
18611
18612 * terminal.c (get_terminal): Don't accept ints to represent terminals.
18613 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
18614 (Fset_terminal_parameter): Work with dead terminals as well.
18615 (Fmodify_terminal_parameters): Remove.
18616
18617 * terminal.c (get_terminal): Handle terminals.
18618 Make sure the terminal returned is live.
18619 (create_terminal): Use allocate_terminal.
18620 (mark_terminals): Move to alloc.c.
18621 (delete_terminal): Use terminal->name as liveness status.
18622 NULL out fields after freeing their contents.
18623 Don't deallocate the object.
18624 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
18625 rather than an int.
18626 (Fterminal_live_p): Accept non-integer arguments.
18627 (Fterminal_list): Return terminal objects rather than an ints.
18628
18629 * alloc.c (enum mem_type): New member for `terminal' objects.
18630 (allocate_terminal): New function.
18631 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
18632 Handle terminals.
18633 (mark_terminal): New fun.
18634 (mark_terminals): Move from terminal.c.
18635
18636 * term.c (get_tty_terminal): Don't treat output_initial specially.
18637 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
18638 (delete_tty): Use terminal->name as liveness status.
18639
18640 * termhooks.h (struct terminal): Make it into a pseudovector.
18641 Remove `deleted' replaced by checking `name's nullness.
18642
18643 * print.c (print_object): Handle terminals.
18644
18645 * lisp.h (enum pvec_type): New `terminal' pseudovector.
18646 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
18647
18648 * frame.c (make_terminal_frame):
18649 * keyboard.c (tty_read_avail_input):
18650 * w32term.c (x_delete_terminal):
18651 * xfns.c (Fx_create_frame, x_create_tip_frame):
18652 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
18653
18654 2007-09-20 Glenn Morris <rgm@gnu.org>
18655
18656 * process.c (Fmake_network_process): Doc fix.
18657
18658 2007-09-19 Jason Rumney <jasonr@gnu.org>
18659
18660 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
18661
18662 2007-09-19 Michaël Cadilhac <michael@cadilhac.name>
18663
18664 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
18665 Fix a C warning regarding variable constness.
18666
18667 * xterm.c (handle_one_xevent): Fix a C warning.
18668
18669 2007-09-18 Jason Rumney <jasonr@gnu.org>
18670
18671 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
18672
18673 2007-09-17 Jan Djärv <jan.h.d@swipnet.se>
18674
18675 * gtkutil.c (gdpy_def): New variable.
18676 (xg_initialize): Initialize gdpy_def.
18677 (xg_display_close): If no other display exists, set gdpy_def to a
18678 new connection.
18679
18680 2007-09-16 Jan Djärv <jan.h.d@swipnet.se>
18681
18682 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
18683 when we have no file name for the icon.
18684 (xg_tool_bar_expose_callback): Remove.
18685 (xg_create_tool_bar): Don't connect expose signal to
18686 xg_tool_bar_expose_callback.
18687 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
18688
18689 2007-09-16 Andreas Schwab <schwab@suse.de>
18690
18691 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
18692 values instead of zapping them.
18693
18694 2007-09-14 Glenn Morris <rgm@gnu.org>
18695
18696 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
18697 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
18698 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
18699 scope and rename to omfib_buffer for clarity.
18700 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
18701
18702 2007-09-14 Kenichi Handa <handa@m17n.org>
18703
18704 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
18705
18706 2007-09-13 Jason Rumney <jasonr@gnu.org>
18707
18708 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
18709
18710 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
18711
18712 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
18713 (mac_term_init): Call here instead, passing rif.
18714
18715 2007-09-13 Glenn Morris <rgm@gnu.org>
18716
18717 * s/hpux.h: No longer define `static' as nothing.
18718
18719 2007-09-13 Johan Bockgård <bojohan@gnu.org>
18720
18721 * callint.c (Fcall_interactively): Remove unused var `fun'.
18722
18723 2007-09-12 Romain Francoise <romain@orebokech.com>
18724
18725 * window.c (prefer_window_split_horizontally, display_buffer):
18726 Revert 2007-09-08 change.
18727
18728 2007-09-12 Glenn Morris <rgm@gnu.org>
18729
18730 * alloca.c: Remove file.
18731 * Makefile.in (alloca): Do not undef.
18732 (allocaobj, alloca.o): Remove.
18733 (otherobj): Remove allocaobj.
18734 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
18735 * regex.c (C_ALLOCA): Remove all references and code that was only
18736 used when this was defined.
18737 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
18738 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
18739 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
18740
18741 * Makefile.in (SOURCES, unlock, relock): Delete.
18742
18743 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
18744 (menu_grab_callback): All uses changed.
18745
18746 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
18747 (x_reply_selection_request): All uses changed.
18748
18749 2007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
18750
18751 * lread.c (load_warn_old_style_backquotes): Change message to look
18752 better when it appears in the middle of byte-compiler messages.
18753
18754 2007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
18755
18756 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
18757
18758 * xterm.c (x_create_terminal): Add comment.
18759
18760 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
18761
18762 2007-09-10 Richard Stallman <rms@gnu.org>
18763
18764 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
18765
18766 2007-09-10 Michaël Cadilhac <michael@cadilhac.name>
18767
18768 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
18769 (DEFUN): Document `intspec', use it instead of `prompt'.
18770
18771 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
18772
18773 * data.c (Finteractive_form): If the interactive specification starts
18774 with a `(', use it as a Lisp form.
18775
18776 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
18777 name and file modes.
18778
18779 * callint.c (Fcall_interactively): Comment fixes.
18780
18781 2007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
18782
18783 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
18784 and compiled functions.
18785
18786 2007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
18787
18788 * window.c (prefer_window_split_horizontally): New variable.
18789 (display_buffer): Consider splitting window horizontally depending
18790 on prefer_window_split_horizontally.
18791
18792 2007-09-08 Eli Zaretskii <eliz@gnu.org>
18793
18794 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
18795
18796 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
18797
18798 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
18799
18800 * frame.c (x_set_frame_parameters): Check number is positive before
18801 using XFASTINT.
18802
18803 * window.c (freeze_window_start): Don't presume selected_window holds
18804 a window object.
18805 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
18806
18807 2007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
18808
18809 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
18810
18811 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
18812
18813 * window.c (Vsplit_window_preferred_function): New var.
18814 (Fdisplay_buffer): Use it.
18815 (syms_of_window): Export, and initialize it.
18816
18817 2007-09-06 Pixel <pixel@mandriva.com> (tiny change)
18818
18819 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
18820
18821 2007-09-06 Glenn Morris <rgm@gnu.org>
18822
18823 * gtkutil.c (menu_grab_callback) <cnt>:
18824 * xselect.c (x_reply_selection_request) <cnt>: Move static
18825 variable to file scope.
18826
18827 2007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
18828
18829 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
18830 consistent values of selected_frame and selected_window.
18831
18832 2007-09-04 Jason Rumney <jasonr@gnu.org>
18833
18834 * w32console.c (initialize_w32_display): Zero unused hooks.
18835
18836 2007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
18837
18838 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
18839 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
18840
18841 2007-09-04 Jason Rumney <jasonr@gnu.org>
18842
18843 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
18844 in w32console.c. Set up input. Remove XXX comments that have been
18845 confirmed as correct.
18846
18847 * s/ms-w32.h (MULTI_KBOARD): Define.
18848
18849 * w32console.c (one_and_only_w32cons): Remove.
18850 (initialize_w32_display): Take terminal argument.
18851
18852 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
18853 initialize_w32_display.
18854 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
18855
18856 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
18857
18858 * keyboard.c (discard_mouse_events): Discard it.
18859 (make_lispy_event): Translate it to a lisp event.
18860 (lispy_wheel_names): Add wheel-left and right events.
18861 (syms_of_keyboard): Enlarge wheel_syms.
18862
18863 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
18864 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
18865
18866 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
18867
18868 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
18869 from WM_MOUSEHWHEEL.
18870 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
18871
18872 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
18873 terminal.
18874
18875 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
18876 keyboard for the terminal.
18877
18878 2007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
18879
18880 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
18881 (Vresume_tty_hook): Rename from Vresume_tty_functions.
18882 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
18883 and resume-tty-function to resume-tty-hook.
18884 (Fsuspend_tty, Fresume_tty): Use new names.
18885
18886 2007-09-02 Jan Djärv <jan.h.d@swipnet.se>
18887
18888 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
18889 if it starts with "n:".
18890
18891 2007-08-31 Jan Djärv <jan.h.d@swipnet.se>
18892
18893 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
18894
18895 2007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
18896
18897 * frame.h:
18898 * frame.c (Qterm_environment_variable): Remove.
18899 (syms_of_frame): Don't init and staticpro it.
18900
18901 * callproc.c (getenv_internal): Remove special case for $TERM.
18902
18903 * callproc.c (Vinitial_environment): New variable.
18904 (set_initial_environment): Initialize it.
18905 (syms_of_callproc): Declare it.
18906 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
18907 TERM under which a process runs is never related to the TERM in which
18908 Emacs is running.
18909
18910 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
18911
18912 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
18913 * s/darwin.h: ... do it here.
18914
18915 2007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
18916
18917 * lisp.h (set_initial_environment): Rename from set_global_environment.
18918
18919 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
18920 removed by mistake on the multi-tty branch.
18921
18922 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
18923 (Fmodify_frame_parameters): Return a value.
18924
18925 * image.c (png_load): Comment-out var only used in commented-out code.
18926
18927 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
18928 before passing it to mark_object.
18929
18930 * xfaces.c (internal_resolve_face_name): Return a value.
18931 (internal_resolve_face_name, resolve_face_name_error): Comment out.
18932
18933 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
18934 (x_icon): Comment-out var only used in commented-out code.
18935
18936 2007-08-29 Romain Francoise <romain@orebokech.com>
18937
18938 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
18939 QUIT hasn't been provided.
18940
18941 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
18942
18943 * callproc.c (child_setup, getenv_internal): Use the
18944 display-environment-variable and term-environment-variable frame params.
18945 (set_initial_environment): Initialise Vprocess_environment.
18946
18947 * config.in: Disable multi-keyboard support on a mac.
18948
18949 * frame.c (Qterm_environment_variable)
18950 (Qdisplay_environment_variable): New variables.
18951 (syms_of_frame): Intern and staticpro them.
18952 (Fmake_terminal_frame): Disable output method test.
18953
18954 * frame.h: Declare them here.
18955
18956 * macfns.c (x_set_mouse_color): Get rif from the frame.
18957 (x_set_tool_bar_lines): Don't use updating_frame.
18958 (mac_window): Add 2 new parameters for consistency with other systems.
18959 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
18960 frame parameters following what is done in X11 and w32. Don't use
18961 FRAME_MAC_DISPLAY_INFO.
18962 (Fx_open_connection, start_hourglass): Remove window-system check.
18963 (x_create_tip_frame): Get the keyboard from the terminal.
18964
18965 * macmenu.c: Reorder includes.
18966 (Fx_popup_menu): Use terminal specific mouse_position_hook.
18967
18968 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
18969 terminal parameter.
18970 (x_clear_frame): Add a frame parameter.
18971 (note_mouse_movement): Get rif from the frame.
18972 (mac_term_init): Initialize the terminal.
18973 (mac_initialize): Make static and move terminal initialization ...
18974 (mac_create_terminal): ... to this new function.
18975
18976 * macterm.h (struct mac_display_info): Add terminal.
18977 (mac_initialize): Delete declaration.
18978
18979 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
18980
18981 * sysdep.c: Comment out text after #endif.
18982
18983 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
18984 is defined. Better initialize ttys in windows. Use terminal
18985 specific mouse_position_hook.
18986
18987 * termhooks.h (union display_info): Add mac_display_info.
18988
18989 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
18990 Set the default minibuffer frame, window_system and the rest of the
18991 frame parameters following what is done in X11.
18992
18993 * w32term.c (w32_initialize): Make static.
18994
18995 * xselect.c (x_handle_selection_clear): Only access
18996 terminal->kboard when MULTI_KBOARD is defined.
18997
18998 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
18999 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
19000
19001 2007-08-29 Jason Rumney <jasonr@gnu.org>
19002
19003 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
19004 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
19005
19006 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
19007 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
19008
19009 * keyboard.c (restore_kboard_configuration): Only define when
19010 MULTI_KBOARD defined.
19011
19012 * makefile.w32-in: Update dependancies from Makefile.in.
19013 (OBJ1): Add terminal.$(O)
19014
19015 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
19016 Don't define function body.
19017 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
19018
19019 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
19020
19021 * w32.c (request_sigio, unrequest_sigio): Remove.
19022
19023 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
19024 (w32con_clear_frame, w32con_clear_end_of_line)
19025 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
19026 (w32con_delete_glyphs, w32con_set_terminal_window)
19027 (scroll_line, w32_sys_ring_bell): Add frame arg.
19028 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
19029 Add terminal arg.
19030 (PICK_FRAME): Remove.
19031 (w32con_write_glyphs): Use frame specific terminal coding.
19032 (one_and_only_w32cons): New global variable.
19033 (initialize_w32_display): Use it for storing hooks.
19034 (create_w32cons_output): New function.
19035
19036 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
19037 arg a frame.
19038
19039 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
19040 Set window_system.
19041 (x_set_tool_bar_lines): Don't use updating_frame.
19042 (Fx_create_frame): Set terminal and ref count.
19043 (Fx_open_connection): Remove window-system check.
19044
19045 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
19046
19047 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
19048 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
19049 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
19050 Add frame arg.
19051 (x_delete_terminal, w32_create_terminal): New functions.
19052 (w32_term_init): Create a terminal.
19053 (w32_initialize): Move terminal specific initialization to
19054 w32_create_terminal.
19055
19056 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
19057 (w32_clear_rect, w32_clear_area): Use background from frame.
19058 (w32_display_info): Add terminal.
19059 (w32_sys_ring_bell, x_delete_display): Declare here.
19060
19061 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
19062
19063 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
19064
19065 2007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
19066
19067 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
19068 Fix get_named_tty calls for the controlling tty.
19069
19070 2007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
19071
19072 * term.c (dissociate_if_controlling_tty)[USG]: Fix parse error.
19073
19074 2007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
19075
19076 * term.c (tty_insert_glyphs): Add missing first parameter.
19077
19078 2007-08-29 Károly Lőrentey <karoly@lorentey.hu>
19079
19080 * buffer.c (Fbuffer_list, Fbury_buffer):
19081 Take frame->buried_buffer_list into account.
19082
19083 * cm.c (current_tty): New variable, for cmputc().
19084 (cmputc): Use it.
19085 (cmcheckmagic): Add tty parameter, look up terminal streams there.
19086 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
19087 (cmgoto): Add tty parameter. Pass it on to calccost().
19088 Use emacs_tputs() instead of tputs().
19089
19090 * cm.h (emacs_tputs): New macro to set current_tty, and then call
19091 tputs().
19092 (current_tty): New variable, for cmputc().
19093 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
19094
19095 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
19096 (internal_condition_case, internal_condition_case_1)
19097 (internal_condition_case_2): Don't abort when x_catching_errors.
19098
19099 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
19100 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
19101 prevent crashes caused by bogus longjmps in read_char.
19102
19103 * keymap.h (Fset_keymap_parent): Add EXFUN.
19104
19105 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
19106 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
19107 Remove redundant definition.
19108
19109 * macfns.c (x_set_mouse_color, x_make_gc):
19110 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
19111
19112 * w32term.c (x_free_frame_resources):
19113 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
19114 (w32_initialize): Use the accessor macros for terminal characteristics.
19115
19116 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
19117 Use the accessor macros for terminal characteristics.
19118 * msdos.c (internal_terminal_init): Use the accessor macros for
19119 terminal characteristics.
19120 (ScreenVisualBell, internal_terminal_init):
19121 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
19122
19123 * termopts.h (no_redraw_on_reenter): Declare.
19124
19125 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
19126 (mark_terminals, mark_ttys): Declare.
19127 (Fgarbage_collect): Call them.
19128 (mark_object): Mark buried_buffer_list.
19129
19130 * prefix-args.c: Include stdlib.h for exit.
19131
19132 * syssignal.h: Add comment.
19133
19134 * indent.c: Include stdio.h.
19135
19136 * window.h (Vinitial_window_system): Declare.
19137 (Vwindow_system): Delete declaration.
19138
19139 * fontset.c (Finternal_char_font): Use FRAME_RIF.
19140
19141 * image.c (lookup_image): Don't initialize `c' until the xasserts
19142 have been run.
19143
19144 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
19145 FRAME_FOREGROUND_PIXEL.
19146
19147 * print.c (print_preprocess): Don't lose print_depth levels while
19148 iterating.
19149
19150 * widget.c (update_from_various_frame_slots):
19151 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
19152
19153 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
19154 frames.
19155 (window_internal_height): Remove bogus make_number call.
19156 (init_window_once): Call make_terminal_frame with two zero parameters.
19157
19158 * fileio.c (Fread_file_name): Update comment.
19159
19160 * callint.c (Fcall_interactively):
19161 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
19162 Make sure it is correctly unwound.
19163
19164 * xsmfns.c (x_session_close): New function.
19165
19166 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
19167 Delete declarations.
19168
19169 * xterm.h: Remove declaration for x_fully_uncatch_errors.
19170 (x_output): Remove background_pixel and foreground_pixel fields.
19171 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
19172 (x_delete_device, x_session_close): Declare.
19173
19174 * lread.c: Include setjmp.h. Update declaration of `read_char'.
19175 (read_filtered_event): Call `read_char' with a local
19176 `wrong_kboard_jmpbuf'.
19177
19178 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
19179 Don't call single_kboard_state. Use FRAME_RIF.
19180
19181 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
19182 systems.
19183
19184 * lisp.h (set_process_environment): Rename to `set_global_environment'.
19185 (Fframe_with_environment, Fset_input_meta_mode)
19186 (Fset_quit_char): EXFUN.
19187 (x_create_device, tty_output, terminal, tty_display_info): Declare.
19188 (init_sys_modes, reset_sys_modes): Update prototypes.
19189 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
19190
19191 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
19192 Vlocal_key_translation_map, and Vkeyboard_translate_table.
19193 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
19194 Delete declarations.
19195 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
19196 (temporarily_switch_to_single_kboard, tty_read_avail_input):
19197 New declarations.
19198
19199 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
19200 already does that during init_display(). Call syms_of_keymap
19201 before syms_of_keyboard. Call `syms_of_terminal'.
19202 Call set_initial_environment, not set_process_environment.
19203 (shut_down_emacs): Call reset_all_sys_modes() instead of
19204 reset_sys_modes().
19205
19206 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
19207 (internal_resolve_face_name, resolve_face_name_error): New functions.
19208 (resolve_face_name): Protect against loops and errors thrown by Fget.
19209 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
19210 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
19211
19212 * scroll.c: Replace CURTTY() with local variables throughout the
19213 file (where applicable).
19214 (calculate_scrolling, calculate_direct_scrolling)
19215 (scrolling_1, scroll_cost): Use the accessor macros for terminal
19216 characteristics.
19217
19218 * keymap.c (Vfunction_key_map): Remove.
19219 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
19220 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
19221 (Vkey_translation_map): Remove.
19222 (syms_of_keymap): Remove DEFVAR for key-translation-map.
19223 (Fdescribe_buffer_bindings)
19224 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
19225 Update for terminal-local key-translation-map.
19226
19227 * Makefile.in (callproc.o): Update dependencies.
19228 (lisp, shortlisp): Add termdev.elc.
19229 (obj): Add terminal.o.
19230 (terminal.o): Add dependencies.
19231 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
19232 (data.o, fns.o): Add termhooks.h dependency.
19233 (SOME_MACHINE_LISP): Add dnd.elc.
19234 (minibuf.o): Fix typo.
19235 Update dependencies.
19236
19237 * data.c (do_symval_forwarding, store_symval_forwarding)
19238 (find_symbol_value): Use the selected frame's keyboard, not
19239 current_kboard.
19240
19241 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
19242 Vwindow_system.
19243
19244 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
19245 Fmenu_bar_open.
19246 (syms_of_xmenu): Update defsubr.
19247 (mouse_position_for_popup, Fx_popup_menu)
19248 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
19249 (set_frame_menubar, free_frame_menubar)
19250 (create_and_show_popup_menu, xmenu_show)
19251 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
19252 an X frame.
19253
19254 * xselect.c (x_own_selection): Abort if not an X frame.
19255 (some_frame_on_display): Check if it is an X frame.
19256 (x_handle_selection_clear): Deal with MULTI_KBOARD.
19257
19258 * coding.c: Include frame.h and termhooks.h.
19259 (terminal_coding, keyboard_coding): Delete.
19260 (Fset_terminal_coding_system_internal)
19261 (Fset_keyboard_coding_system_internal)
19262 (Fkeyboard_coding_system)
19263 (Fterminal_coding_system): Add a terminal parameter.
19264 Get terminal_coding from the terminal.
19265 (init_coding_once): Don't call setup_coding_system here.
19266
19267 * dispextern.h (set_scroll_region, turn_off_insert)
19268 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
19269 (tty_clear_end_of_line, tty_setup_colors)
19270 (delete_tty, updating_frame)
19271 (produce_special_glyphs, produce_glyphs, write_glyphs)
19272 (insert_glyphs): Remove.
19273 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
19274 (tty_turn_off_highlight, get_tty_size): Add declaration.
19275 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
19276
19277 * frame.h (enum output_method): Add output_initial.
19278 (struct x_output): Delete.
19279 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
19280 Access foreground_pixel and background_pixel directly from the frame.
19281 (tty_display): Delete.
19282 (struct frame): Add buried_buffer_list, foreground_pixel,
19283 background_pixel and terminal. Delete kboard.
19284 (union output_data): Add tty.
19285 (FRAME_KBOARD): Get the kboard from the terminal.
19286 (FRAME_INITIAL_P): New macro.
19287 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
19288 (Qterm_environment_variable, Qdisplay_environment_variable)
19289 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
19290 New declarations.
19291
19292 * termchar.h (tty_output, tty_display_info): New structures.
19293 (tty_list): Declare.
19294 (FRAME_TTY, CURTTY): New macros.
19295 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
19296 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
19297 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
19298 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
19299
19300 * callproc.c: Include frame.h and termhooks.h, for terminal
19301 parameters.
19302 (add_env): New function.
19303 (child_setup): Use it.
19304 (child_setup, getenv_internal): Handle the new Vprocess_environment.
19305 (getenv_internal): Fix get_terminal_param call.
19306 (Fgetenv_internal, egetenv): Update doc.
19307 (syms_of_callproc): Initialize Vprocess_environment to nil.
19308 Register and initialize them. Remove obsolete defvars. Update doc
19309 strings.
19310 (child_setup): Handle Vlocal_environment_variables.
19311 (getenv_internal): Add terminal parameter.
19312 Handle Vlocal_environment_variables.
19313 (Fgetenv_internal): Add terminal parameter.
19314 (child_setup, getenv_internal, Fgetenv_internal): Store the local
19315 environment in a frame (not terminal) parameter. Update doc strings.
19316 (set_initial_environment): Rename from set_global_environment.
19317 Store Emacs environment in initial frame parameter.
19318
19319 * xdisp.c (redisplay_internal): Update references to
19320 `previous_terminal_frame'.
19321 (display_mode_line, Fformat_mode_line): Replace calls to
19322 `push_frame_kboard' with `push_kboard'.
19323 (get_glyph_string_clip_rects): Add extra parentheses and
19324 braces to prevent compiler warnings.
19325 (calc_pixel_width_or_height): Add xassert to check that the
19326 frame is alive. Don't call `lookup_image' on a termcap frame.
19327 (message2_nolog, message3_nolog, redisplay_internal)
19328 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
19329 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
19330 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
19331 (Fx_display_pixel_width, Fx_display_pixel_height)
19332 (Fx_display_planes, Fx_display_color_cells)
19333 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
19334 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
19335 (Fx_display_backing_store, Fx_display_visual_class)
19336 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
19337 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
19338
19339 * xfns.c (x_set_foreground_color x_set_background_color)
19340 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
19341 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
19342 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
19343 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
19344 terminal that is being deleted.
19345 (Fx_create_frame): Use `store_frame_param' to set `window-system'
19346 frame parameter, and make sure it overrides any user-supplied setting.
19347 (Fx_close_connection, Fx_synchronize): Unify argument names with
19348 the rest of the DEFUNs.
19349
19350 * dispnew.c (Fsend_string_to_terminal): Update call to
19351 `get_tty_terminal'.
19352 (Fredraw_frame, Fsend_string_to_terminal)
19353 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
19354 FRAME_TERMCAP_P and FRAME_TTY.
19355 (window_change_signal): Don't believe width/height values that are
19356 impossibly small.
19357 (Vinitial_window_system): Rename from Vwindow_system.
19358 (termscript, Wcm, rif): Delete.
19359
19360 * termhooks.h (struct terminal): New struct containing the
19361 previously global text display hooks and new members NAME,
19362 DELETED and PARAM_ALIST.
19363 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
19364 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
19365 (FRAME_RIF): New macros.
19366 (get_terminal_param, get_device): New declarations.
19367 (termscript): Delete declaration.
19368
19369 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
19370 (XTflash, x_free_frame_resources, x_scroll_bar_create)
19371 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
19372 FRAME_FOREGROUND_PIXEL.
19373 (x_fully_uncatch_errors): Disable definition.
19374 (x_scroll_bar_expose): Fix reference to foreground pixel.
19375 (XTread_socket): Disable loop on all X displays.
19376 (x_delete_terminal): Don't set terminal->deleted and let
19377 delete_terminal delete the frames on the terminal.
19378 (x_delete_display): Doc update to reflect changes in
19379 delete_terminal.
19380 (x_display_info) <terminal>: Move member earlier in the struct.
19381 (deleting_tty): Remove old variable.
19382 (Fsuspend_tty): Call clear_tty_hooks.
19383 (Fresume_tty, init_tty): Call set_tty_hooks.
19384 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
19385 errors on X frames.
19386 (x_catch_errors_unwind): Abort if x_error_message is NULL.
19387 (handle_one_xevent): Initialize `f' to NULL.
19388 (x_delete_terminal, x_create_terminal): New functions.
19389 (XTset_terminal_modes, XTreset_terminal_modes)
19390 (XTread_socket, x_connection_closed, x_term_init)
19391 (x_term_init, x_delete_display): Add terminal parameter.
19392 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
19393 X connections.
19394
19395 * frame.c: Include termchar.h.
19396 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
19397 (Qwindow_system, Qenvironment, Qterm_environment_variable)
19398 (Qdisplay_environment_variable): New vars.
19399 (Fframep): Deal with output_initial.
19400 (Fframe-live-p): Doc fix.
19401 (Fwindow-system): New function.
19402 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
19403 (make_terminal_frame): Don't create frames on a terminal that is
19404 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
19405 (store_frame_param): Check for found_for_frame before calling XFRAME.
19406 (Fmake_terminal_frame): Handle NULL tty names correctly.
19407 (syms_of_frame): Enhance doc string of `default-frame-alist'.
19408 (Fdelete_frame): Remove unused variable `count'. Don't allow other
19409 frames to refer to a deleted frame in their 'environment parameter.
19410 (Fframe_with_environment): New function.
19411 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
19412 (get_future_frame_param): New function.
19413 (Fmake_terminal_frame): Use it.
19414 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
19415
19416 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
19417 * sysdep.c (reset_sys_modes): Update for renames.
19418
19419 * keyboard.c (tty_read_avail_input): New function.
19420 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
19421 (syms_of_keyboard): Defsubr them.
19422 (Fset_input_meta_mode, Fset_quit_char): New functions.
19423 (Fset_input_mode): Split to above functions.
19424 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
19425 parameter. Use it in call to `read_char'.
19426 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
19427 Set wrong_kboard_jmpbuf correctly in recursive calls.
19428 Use current_kboard to access Vkeyboard_translate_table.
19429 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
19430 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
19431 Update longjmp invocations. Remember the original current_kboard,
19432 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
19433 changes it. Comment out unnecessary calls to
19434 `record_single_kboard_state' and `any_kboard_state'.
19435 Update recursive calls.
19436 (wrong_kboard_jmpbuf): Remove global variable.
19437 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
19438 Handle deleted interrupted_kboards correctly; that is a legal
19439 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
19440 and read_char calls. Abort if interrupted_kboard died in read_char.
19441 (any_kboard_state, single_kboard_state)
19442 (push_frame_kboard): Remove function.
19443 (pop_kboard): Switch out of single_kboard mode if the kboard has
19444 been deleted. Remove unused variable. Help debugging by not
19445 changing current_kboard unnecessarily. Set current_kboard to the
19446 kboard of the selected frame when the stored kboard object has
19447 been deleted before pop_kboard.
19448 (temporarily_switch_to_single_kboard): Change first parameter to a
19449 frame pointer. Throw an error when caller wants to change kboards
19450 while in single_kboard mode. Don't push_kboard if we weren't in
19451 single kboard state. Don't pop_kboard if we popped into any
19452 kboard state.
19453 (restore_kboard_configuration): Abort if pop_kboard changed the
19454 kboard in single_kboard mode. Call pop_kboard only after setting
19455 up single_kboard mode.
19456 (Frecursive_edit): Switch to single_kboard mode only in nested
19457 command loops.
19458 (cmd_error, command_loop, command_loop_1, timer_check):
19459 Comment out unnecessary call to `any_kboard_state' and
19460 `record_single_kboard_state'.
19461 (delete_kboard): Exit single_kboard mode if we have just deleted
19462 that kboard. Use FRAME_KBOARD.
19463 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
19464 `fatal_error_signal'.
19465 (record_single_kboard_state): Don't push_kboard if we weren't in
19466 single kboard state. Don't pop_kboard if we popped into any
19467 kboard state.
19468 (push_frame_kboard): Rename to push_kboard.
19469 (kbd_buffer_get_event): Use FRAME_TERMINAL.
19470 (read_avail_input): Read input from all terminals.
19471 (mark_kboards): Also mark Vkeyboard_translate_table.
19472 (kbd_buffer_store_event_hold): Simplify condition.
19473 (read_key_sequence): Reinitialize fkey and keytran at each replay.
19474 (Vkeyboard_translate_table): Move to struct kboard.
19475 (init_kboard): Initialize Vkeyboard_translate_table.
19476 (syms_of_keyboard): Use DEFVAR_KBOARD to define
19477 Vkeyboard_translate_table. Update doc strings. Update docs of
19478 local-function-key-map and function-key-map.
19479
19480 * terminal.c: New file.
19481
19482 * term.c: Include errno.h.
19483 (Vring_bell_function, device_list, initial_device)
19484 (next_device_id, ring_bell, update_begin, update_end)
19485 (set_terminal_window, cursor_to, raw_cursor_to)
19486 (clear_to_end, clear_frame, clear_end_of_line)
19487 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
19488 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
19489 (syms_of_term): Move their initialization to terminal.c.
19490 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
19491 (Ftty_display_color_cells)
19492 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
19493 (clear_tty_hooks, set_tty_hooks)
19494 (init_tty, maybe_fatal): New functions.
19495 (Ftty_type): Return nil if terminal is not on a tty instead of
19496 throwing an error. Doc update.
19497 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
19498 Doc update. Initialize new subrs and variables.
19499 (delete_tty): Use terminal->deleted.
19500 (tty_set_terminal_modes): Rename from set_terminal_modes.
19501 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
19502 (set_scroll_region): Rename to `tty_set_scroll_region'.
19503 (turn_on_insert): Rename to `tty_turn_on_insert'.
19504 (turn_off_insert): Rename to `tty_turn_off_insert'.
19505 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
19506 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
19507 (toggle_highligh): Rename to `tty_toggle_highlight'.
19508 (background_highlight): Rename to `tty_background_highlight'.
19509 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
19510 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
19511 (tty_set_scroll_region, tty_background_highlight)
19512 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
19513 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
19514 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
19515 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
19516 Add static modifier.
19517 (tty_reset_terminal_modes, tty_set_terminal_window)
19518 (tty_set_scroll_region, tty_background_highlight)
19519 (tty_highlight_if_desired, tty_cursor_to)
19520 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
19521 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
19522 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
19523 renames.
19524
19525 2007-08-28 Jan Djärv <jan.h.d@swipnet.se>
19526
19527 * keyboard.c: Qrtl is new.
19528 (parse_tool_bar_item): Handle :rtl keyword.
19529 (syms_of_keyboard): Intern :rtl keyword.
19530
19531 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
19532
19533 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
19534 so no Lisp code is executed.
19535 (file_for_image, find_rtl_image): New functions.
19536 (xg_get_image_for_pixmap): Use file_for_image.
19537 (update_frame_tool_bar): If direction is RTL, use RTL image if
19538 defined. Use Gtk stock images if defined.
19539
19540 2007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19541
19542 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
19543 for nonexistent or zero-width glyph in composition glyph.
19544
19545 2007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
19546
19547 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
19548
19549 * xdisp.c (Finvisible_p): New function.
19550 (syms_of_xdisp): defsubr it.
19551
19552 2007-08-24 Juanma Barranquero <lekktu@gmail.com>
19553
19554 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
19555 Doc fixes.
19556
19557 2007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19558
19559 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
19560
19561 2007-08-24 Martin Rudalics <rudalics@gmx.at>
19562
19563 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
19564 whether decoding has modified buffer contents.
19565
19566 2007-08-24 Jason Rumney <jasonr@gnu.org>
19567
19568 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
19569 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
19570 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
19571 (init_svg_functions) [HAVE_NTGUI]: New function.
19572 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
19573 (svg_load_image): Use them.
19574 (svg_load_image) [HAVE_NTGUI]: Implement background.
19575
19576 2007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19577
19578 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
19579 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
19580 (LIBX): Remove @RSVG_LIBS@.
19581 (LIBES): Add $(RSVG_LIBS).
19582
19583 * image.c (svg_load_image): Blend with specified background if exists.
19584 Use IMAGE_BACKGROUND. Add Mac OS Support.
19585
19586 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
19587 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
19588 Remove macros.
19589 [MAC_OSX] (socket_callback): Do nothing.
19590 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
19591 ReceiveNextEvent.
19592 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
19593 socket_callback.
19594 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
19595
19596 2007-08-22 Glenn Morris <rgm@gnu.org>
19597
19598 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
19599
19600 2007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
19601
19602 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
19603
19604 * image.c: Add support for SVG images. Some additional comments
19605 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
19606 (svg_image_p): New function to test for SVG image.
19607 (svg_load): New function to load SVG image.
19608 (svg_load_image): New function, helper for svg_load.
19609 (Qsvg): New Lisp_object.
19610 (svg_keyword_index): New enum.
19611 (svg_format): New static `image_keyword' struct.
19612 (svg_type): New static `image_type' struct.
19613 (librsvg/rsvg.h): Include it.
19614
19615 2007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
19616
19617 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
19618
19619 2007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
19620
19621 * lread.c (Qold_style_backquotes): New var.
19622 (syms_of_lread): Init and staticpro it.
19623 (load_warn_old_style_backquotes): New fun.
19624 (Fload): Use them to warn about old style backquotes.
19625 (end_of_file_error, Fload): Remove unused vars.
19626
19627 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
19628
19629 * lread.c (Vold_style_backquotes): New var.
19630 (syms_of_lread): Init and export it to Elisp.
19631 (read1): Set it when we find an old-style (back)quote.
19632
19633 2007-08-22 Jason Rumney <jasonr@gnu.org>
19634
19635 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
19636
19637 2007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
19638
19639 * puresize.h (BASE_PURESIZE): Increase to 1140000.
19640
19641 2007-08-19 Richard Stallman <rms@gnu.org>
19642
19643 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
19644
19645 2007-08-19 Andreas Schwab <schwab@suse.de>
19646
19647 * alloc.c (pure): Round PURESIZE up.
19648
19649 2007-08-17 Jan Djärv <jan.h.d@swipnet.se>
19650
19651 * xterm.c (handle_one_xevent): Remove check that mouse click is in
19652 active frame.
19653
19654 2007-08-16 Richard Stallman <rms@gnu.org>
19655
19656 * eval.c (Fcommandp): Add parens to clarify.
19657
19658 * minibuf.c (Fall_completions): Use enum for type of table.
19659
19660 * emacs.c (USAGE2): Improve text.
19661
19662 2007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
19663
19664 * term.c (tty_default_color_capabilities): Declare static
19665 variables in file scope, to avoid HPUX compiler problem.
19666
19667 2007-08-13 Jan Djärv <jan.h.d@swipnet.se>
19668
19669 * gtkutil.c (update_frame_tool_bar): Use -1 as index
19670 to gtk_toolbar_insert.
19671
19672 2007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
19673
19674 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
19675
19676 * insdel.c (reset_var_on_error): New fun.
19677 (signal_before_change, signal_after_change):
19678 Use it to reset (after|before)-change-functions to nil in case of error.
19679 Bind inhibit-modification-hooks to t.
19680 Don't bind (after|before)-change-functions to nil while they run.
19681
19682 2007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19683
19684 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
19685 filling pixmap with stippled background.
19686
19687 2007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19688
19689 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
19690 Don't use invisible frame as parent window for repositioning.
19691
19692 2007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
19693
19694 * print.c (new_backquote_output): Rename from old_backquote_output.
19695 (print): Inverse its logic (according to its name) so as to match the
19696 behavior of new_backquote_flag in lread.c.
19697
19698 2007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19699
19700 * gmalloc.c (posix_memalign): New function.
19701
19702 * macterm.c (frame_highlight, frame_unhighlight): Don't call
19703 ActivateControl/DeactivateControl here.
19704 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
19705 frame-notice-user-settings is non-nil.
19706 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
19707 for kEventParamFMFontStyle.
19708 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
19709 mac_pass_command_to_system and mac_pass_control_to_system here.
19710 (XTread_socket): Call ActivateControl/DeactivateControl here.
19711 (XTread_socket) [TARGET_API_MAC_CARBON]:
19712 Check mac_pass_command_to_system and mac_pass_control_to_system here.
19713 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
19714 for window repositioning.
19715
19716 2007-08-08 Glenn Morris <rgm@gnu.org>
19717
19718 * Replace `iff' in doc-strings and comments.
19719
19720 2007-08-07 Chong Yidong <cyd@stupidchicken.com>
19721
19722 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
19723
19724 2007-08-07 Martin Rudalics <rudalics@gmx.at>
19725
19726 * fileio.c (Finsert_file_contents): Run format-decode and
19727 after_insert_file_functions on entire buffer when REPLACE is
19728 non-nil and inhibit modification_hooks and point_motion_hooks.
19729 For consistency, run after_insert_file_functions iff something
19730 got inserted. Move signal_after_change and update_compositions
19731 after code running after_insert_file_functions. Make sure that
19732 undo_list doesn't record intermediate steps of the decoding process.
19733
19734 2007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19735
19736 * emacs.c (main)
19737 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
19738 Call malloc_enable_thread on interactive startup.
19739
19740 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
19741 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
19742 [USE_PTHREAD]: Conditionalize with it.
19743 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
19744 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
19745 New functions.
19746
19747 2007-08-06 Chong Yidong <cyd@stupidchicken.com>
19748
19749 * xdisp.c (redisplay_window): When restoring original buffer
19750 position, make sure it is still valid.
19751
19752 * image.c (png_load): Ignore png-supplied background color.
19753
19754 2007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19755
19756 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
19757 Use kCFAbsoluteTimeIntervalSince1970.
19758
19759 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
19760 New variable.
19761 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
19762 event loop should be quit.
19763 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
19764 Quit dialog event loop if quit_dialog_event_loop is set.
19765
19766 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
19767 (Selection): New typedef. Use instead of ScrapRef.
19768 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
19769 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
19770 (mac_clear_selection): Rename from clear_scrap.
19771 (get_flavor_type_from_symbol): New argument SEL and subsume function of
19772 scrap_has_target_type. All uses changed.
19773 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
19774 (mac_selection_has_target_p): New functions.
19775 (mac_put_selection_value): Rename from put_scrap_string.
19776 (mac_get_selection_value): Rename from get_scrap_string.
19777 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
19778 (put_scrap_private_timestamp, scrap_has_target_type)
19779 (get_scrap_private_timestamp): Remove functions.
19780 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
19781 (x_own_selection, x_get_local_selection):
19782 Use mac_valid_selection_value_p.
19783 (x_own_selection): Don't use put_scrap_private_timestamp.
19784 Record OWNERSHIP-INFO into Vselection_alist instead.
19785 (x_get_local_selection): Don't check type if request is local.
19786 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
19787 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
19788
19789 2007-08-04 Jan Djärv <jan.h.d@swipnet.se>
19790
19791 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
19792 add comment explaining why.
19793
19794 2007-08-03 Richard Stallman <rms@gnu.org>
19795
19796 * fileio.c (Fvisited_file_modtime): Use make_time.
19797
19798 2007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
19799
19800 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
19801 build.
19802
19803 2007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
19804
19805 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
19806
19807 2007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
19808
19809 * puresize.h (BASE_PURESIZE): Increase to 1130000.
19810
19811 2007-07-30 Richard Stallman <rms@gnu.org>
19812
19813 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
19814
19815 2007-07-29 Jan Djärv <jan.h.d@swipnet.se>
19816
19817 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
19818
19819 2007-07-28 Nick Roberts <nickrob@snap.net.nz>
19820
19821 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
19822 remote default-directory.
19823
19824 * buffer.c (mode-line-format): Update doc string.
19825
19826 2007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19827
19828 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
19829 scroll bar gap.
19830 (x_scroll_bar_create): Set bar->fringe_extended_p.
19831 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
19832 on frame edge. Check fringe background extension. Don't clear
19833 extended fringe background area.
19834
19835 * w32term.h (struct scroll_bar): New member fringe_extended_p.
19836 (w32_fill_area): Enclose multiple statements with do ... while (0).
19837
19838 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
19839 Extend fringe background to scroll bar gap.
19840 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
19841 Set bar->fringe_extended_p.
19842 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
19843 Put leftmost/rightmost scroll bars on frame edge. Check fringe
19844 background extension. Don't clear extended fringe background area.
19845
19846 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
19847 New member fringe_extended_p.
19848
19849 2007-07-25 Glenn Morris <rgm@gnu.org>
19850
19851 * Relicense all FSF files to GPLv3 or later.
19852
19853 * COPYING: Switch to GPLv3.
19854
19855 2007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
19856
19857 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
19858
19859 * data.c (Finteractive_form): Check for the presence of an
19860 `interactive-form' symbol property more thoroughly.
19861
19862 * data.c (Finteractive_form): Use an `interactive-form' property if
19863 present, analogous to the function-documentation property.
19864
19865 2007-07-24 Jason Rumney <jasonr@gnu.org>
19866
19867 * w32fns.c (x_real_positions): Get real position from OS instead of
19868 calculating it.
19869
19870 2007-07-23 Jason Rumney <jasonr@gnu.org>
19871
19872 * filelock.c (current_lock_owner): Allow for @ sign in username.
19873
19874 2007-07-22 Nick Roberts <nickrob@snap.net.nz>
19875
19876 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
19877 remote default-directory.
19878
19879 * buffer.c (mode-line-format): Describe above case in doc string.
19880
19881 2007-07-20 Eli Zaretskii <eliz@gnu.org>
19882
19883 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
19884 Define if not defined.
19885
19886 2007-07-18 Jason Rumney <jasonr@gnu.org>
19887
19888 * w32proc.c (w32_executable_type): Handle 64 bit executables.
19889
19890 2007-07-18 Richard Stallman <rms@gnu.org>
19891
19892 * data.c (Fsetq_default): Doc fix.
19893
19894 * eval.c (Fsetq): Doc fix.
19895
19896 2007-07-18 Juanma Barranquero <lekktu@gmail.com>
19897
19898 * coding.c (Ffind_operation_coding_system):
19899 * eval.c (For, Fand): Doc fixes.
19900 Reported by Johan Bockgård.
19901
19902 2007-07-18 Jan Djärv <jan.h.d@swipnet.se>
19903
19904 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
19905
19906 * xterm.h: Declare x_ewmh_activate_frame.
19907
19908 * xterm.c (x_ewmh_activate_frame): New function.
19909 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
19910
19911 2007-07-17 Martin Rudalics <rudalics@gmx.at>
19912
19913 * window.c (Fdisplay_buffer): If largest or LRU window is the
19914 only window, split it even if it is not eligible for splitting.
19915 This restores the original behavior broken by the 2007-07-15
19916 change.
19917
19918 2007-07-17 Glenn Morris <rgm@gnu.org>
19919
19920 * abbrev.c (abbrev_check_chars): New function.
19921 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
19922 Call abbrev_check_chars to check abbrev characters are word
19923 constituents. Doc fix.
19924
19925 2007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
19926
19927 * process.c (Fstart_process, Fmake_network_process)
19928 (read_process_output): Fix up last changes.
19929
19930 2007-07-16 Eli Zaretskii <eliz@gnu.org>
19931
19932 * makefile.w32-in (clean): Don't delete *~.
19933
19934 2007-07-16 Andreas Schwab <schwab@suse.de>
19935
19936 * window.c (Fdisplay_buffer): Use NILP.
19937 (Fset_window_scroll_bars): Likewise.
19938
19939 2007-07-15 Martin Rudalics <rudalics@gmx.at>
19940
19941 * window.c (window_min_size_2): New function.
19942 (window_min_size_1, size_window, Fdisplay_buffer)
19943 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
19944 windows without mode- or header-lines when window-min-height is
19945 too small.
19946 (size_window): Reset nodelete_p after testing it, following an
19947 earlier note by Kim F. Storm.
19948 (display_buffer): Do not set split_height_threshold to twice the
19949 value of window_min_height to avoid changing the value of a
19950 customizable variable. Rather explicitly check whether the
19951 height of the window that shall be splitted is at least as large
19952 as split_height_threshold.
19953 (Fwindow_full_width_p): New defun.
19954 (syms_of_window): Defsubr it.
19955
19956 * window.h: Add EXFUN for Fwindow_full_width_p.
19957
19958 2007-07-14 Jason Rumney <jasonr@gnu.org>
19959
19960 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
19961
19962 2007-07-14 Richard Stallman <rms@gnu.org>
19963
19964 * eval.c (maybe_call_debugger): New function.
19965 (find_handler_clause): Use maybe_call_debugger.
19966 Call it when the handler says `debug'.
19967 Eliminate DEBUGGER_VALUE_PTR.
19968 (Fsignal): Eliminate debugger_value.
19969 (Qdebug): New variable.
19970 (syms_of_eval): Initialize it.
19971
19972 2007-07-14 Juanma Barranquero <lekktu@gmail.com>
19973
19974 * eval.c (Fprogn):
19975 * keyboard.c (Ftrack_mouse):
19976 * print.c (Fwith_output_to_temp_buffer):
19977 * window.c (Fsave_window_excursion): Doc fix.
19978
19979 2007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
19980
19981 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
19982
19983 2007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
19984
19985 * process.h (struct Lisp_Process): Turn slots infd, outfd,
19986 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
19987 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
19988 read_output_delay, and read_output_skip from Lisp_Objects to ints.
19989 Remove unused encoding_carryover.
19990 * process.c: Adjust all functions accordingly.
19991
19992 2007-07-12 Richard Stallman <rms@gnu.org>
19993
19994 * term.c: Include unistd.h only if HAVE_UNISTD_H.
19995
19996 2007-07-11 Jason Rumney <jasonr@gnu.org>
19997
19998 * makefile.w32-in (LIBS): Include OLE32.
19999
20000 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
20001 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
20002
20003 2007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
20004
20005 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
20006 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
20007 from a Lisp_Object into a bare pointer.
20008 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
20009 Adjust the code correspondingly.
20010
20011 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
20012
20013 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
20014 (term_show_mouse_face): Remove unused var `j'.
20015 (handle_one_term_event): Remove unused vars `i' and `j'.
20016 Don't cast return value of ttyname since it's not necessary.
20017
20018 2007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
20019
20020 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
20021 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
20022
20023 * fns.c (map_char_table): Use an array of int for `indices' rather than
20024 an array of Lisp_Objects (which are only ever integers anyway).
20025 (Fmap_char_table): Update caller.
20026 * lisp.h: Update prototype.
20027 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
20028 * fontset.c (Ffontset_info):
20029 * casetab.c (set_case_table): Update callers.
20030
20031 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
20032
20033 * keymap.c (struct accessible_keymaps_data)
20034 (struct where_is_internal_data): New structures.
20035 (accessible_keymaps_1, where_is_internal_1): Use them to change
20036 interface to adhere to the one used by map_keymap.
20037 (Faccessible_keymaps, where_is_internal): Use map_keymap.
20038 (accessible_keymaps_char_table, where_is_internal_2): Remove.
20039
20040 * keymap.h (map_keymap_function_t): More informative prototype.
20041
20042 2007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
20043
20044 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
20045 (looking_at_1): Don't change search_regs and last_thing_searched
20046 if `inhibit-changing-match-data' is non-nil.
20047 (string_match_1, search_buffer, set_search_regs): Likewise.
20048 (syms_of_search): Add Lisp level definition for
20049 `inhibit-changing-match-data' and set it to nil.
20050 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
20051 start and end of the match, instead of using values in search_regs.
20052
20053 2007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
20054
20055 * minibuf.c (Fcompleting_read): New value `confirm-only'
20056 for `require-match'.
20057
20058 2007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
20059
20060 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
20061 part of the 2007-06-27 change to syms_of_fileio.
20062
20063 2007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20064
20065 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
20066 Check WINDOWP before using XWINDOW. Consolidate return statements.
20067
20068 2007-06-27 Richard Stallman <rms@gnu.org>
20069
20070 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
20071
20072 2007-06-27 Juanma Barranquero <lekktu@gmail.com>
20073
20074 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
20075
20076 2007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20077
20078 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
20079 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
20080 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
20081 (_free_internal, memalign): Use them.
20082 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
20083 Initialize to PTHREAD_MUTEX_INITIALIZER.
20084 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
20085 (morecore_nolock): Rename from morecore. All uses changed.
20086 Use only nolock versions of internal allocation functions.
20087 (_malloc_internal_nolock, _realloc_internal_nolock)
20088 (_free_internal_nolock): New functions created from
20089 _malloc_internal, _realloc_internal, and _free_internal.
20090 (_malloc_internal, _realloc_internal, _free_internal): Use them.
20091 Copy hook value to automatic variable before its use.
20092 (memalign): Copy hook value to automatic variable before its use.
20093
20094 2007-06-26 Kenichi Handa <handa@m17n.org>
20095
20096 * coding.c (Ffind_operation_coding_system): Docstring improved.
20097 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
20098
20099 2007-06-25 David Kastrup <dak@gnu.org>
20100
20101 * keymap.c (Fcurrent_active_maps): Add `position' argument.
20102 (Fwhere_is_internal): Adjust call to `current-active-maps' to
20103 cater for additional parameter.
20104
20105 * keymap.h: Adjust number of parameters to `current-active-maps'.
20106
20107 * doc.c (Fsubstitute_command_keys): Adjust call of
20108 `current-active-maps'.
20109
20110 2007-06-25 David Kastrup <dak@gnu.org>
20111
20112 * callint.c (Fcall_interactively): Make the parsing of interactive
20113 specs somewhat more readable.
20114
20115 2007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20116
20117 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
20118 to scroll bar gap also when bitmap fills fringe. Draw only foreground
20119 if extended background has already been filled.
20120
20121 2007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20122
20123 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
20124 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
20125
20126 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
20127 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
20128 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
20129 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
20130 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
20131 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
20132 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
20133 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
20134 Run timers during dialog popup.
20135 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
20136
20137 2007-06-21 Jason Rumney <jasonr@gnu.org>
20138
20139 * image.c (convert_mono_to_color_image): Swap fore and background.
20140
20141 2007-06-20 Jason Rumney <jasonr@gnu.org>
20142
20143 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
20144 (w32_free_bdf_font): Unmap memory not handle.
20145
20146 2007-06-20 Sam Steingold <sds@gnu.org>
20147
20148 * gmalloc.c (__morecore): Fix the declaration to comply with the
20149 definition.
20150
20151 2007-06-20 Juanma Barranquero <lekktu@gmail.com>
20152
20153 * w32term.c (w32_delete_display): Remove leftover declaration.
20154 (w32_define_cursor, w32_initialize): Make static.
20155
20156 * w32.c (_wsa_errlist): Fix typo in error message.
20157 (init_environment): Ignore any environment variable from the
20158 registry having a null value.
20159
20160 2007-06-20 Glenn Morris <rgm@gnu.org>
20161
20162 * Makefile.in (LIBGIF): Default to -lgif.
20163
20164 2007-06-17 Jason Rumney <jasonr@gnu.org>
20165
20166 * w32menu.c (add_menu_item): Don't use multibyte string functions on
20167 unicode strings.
20168
20169 2007-06-16 Juanma Barranquero <lekktu@gmail.com>
20170
20171 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
20172 Fix typo in docstring.
20173
20174 2007-06-16 Eli Zaretskii <eliz@gnu.org>
20175
20176 * w32menu.c (add_menu_item): Escape `&' characters in menu items
20177 and their keybindings.
20178
20179 2007-06-15 Chong Yidong <cyd@stupidchicken.com>
20180
20181 * composite.c (update_compositions): Fix last fix.
20182
20183 2007-06-14 Jason Rumney <jasonr@gnu.org>
20184
20185 * w32.c (get_process_times_fn): New function pointer.
20186 (globals_of_w32): Intialize it if present in kernel32.dll.
20187 (w32_get_internal_run_time): New function.
20188
20189 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
20190
20191 2007-06-14 Kenichi Handa <handa@etlken.m17n.org>
20192
20193 * composite.c (update_compositions): Check the validness of
20194 compositions.
20195
20196 2007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20197
20198 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
20199 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
20200
20201 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
20202 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
20203
20204 * macgui.h (USE_MAC_TOOLBAR): New define.
20205
20206 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
20207 Return immediately unless popup is activated.
20208
20209 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
20210 background to scroll bar gap.
20211 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
20212 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
20213 scroll bars on frame edge. Check fringe background extension.
20214 Don't clear extended fringe background area.
20215 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
20216 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
20217 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
20218 [USE_MAC_TOOLBAR]: New macros.
20219 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
20220 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
20221 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
20222 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
20223 [USE_MAC_TOOLBAR]: New functions.
20224 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
20225 manually if previous repositioning has failed.
20226 (mac_handle_keyboard_event): Use precomputed event kind.
20227 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
20228 as tool bar item click. Handle mouse movement over tool bar items.
20229
20230 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
20231 toolbar_win_gravity.
20232 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
20233 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
20234 Add externs.
20235
20236 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
20237 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
20238
20239 2007-06-14 Chong Yidong <cyd@stupidchicken.com>
20240
20241 * image.c (search_image_cache): Remove unused variable.
20242
20243 2007-06-13 Chong Yidong <cyd@stupidchicken.com>
20244
20245 * xfns.c, xmenu.c: Link to xaw3d if available.
20246
20247 2007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20248
20249 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
20250 frame_foreground and frame_background.
20251
20252 * image.c (lookup_image): Save frame foreground and background colors.
20253 (search_image_cache): Check if saved and current frame colors match.
20254
20255 2007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
20256
20257 * regex.c (regex_compile): Remove the `regnum' counter.
20258 Use bufp->re_nsub instead. Add support for \(?N:RE\).
20259
20260 2007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
20261
20262 * term.c: Include intervals.h to declare Fget_text_property.
20263
20264 2007-06-10 Jason Rumney <jasonr@gnu.org>
20265
20266 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
20267
20268 2007-06-08 Juanma Barranquero <lekktu@gmail.com>
20269
20270 * callint.c (Fcall_interactively):
20271 * editfns.c (Fdelete_and_extract_region):
20272 * fileio.c (Fread_file_name):
20273 * fns.c (Fmapconcat):
20274 * keyboard.c (cmd_error_internal):
20275 * keymap.c (Fkey_description):
20276 * lread.c (openp):
20277 * minibuf.c (read_minibuf):
20278 * search.c (wordify):
20279 * sunfns.c (sel_read):
20280 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
20281 * xfns.c (x_default_scroll_bar_color_parameter):
20282 * xmenu.c (menu_help_callback):
20283 * xselect.c (Fx_get_atom_name):
20284 * xterm.c (x_term_init): Use empty_unibyte_string.
20285
20286 2007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
20287
20288 * alloc.c (init_strings): Initialize canonical empty strings.
20289 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
20290 canonical empty string when the requested size is 0.
20291
20292 * emacs.c (empty_unibyte_string): Rename from empty_string.
20293 (empty_multibyte_string): New canonical empty string.
20294 (syms_of_emacs): Don't initialize empty_string.
20295
20296 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
20297 string, if appropriate.
20298 (empty_unibyte_string, empty_multibyte_string): New externs.
20299 (empty_string): Remove extern.
20300
20301 * lread.c (syms_of_lread): Use empty_unibyte_string.
20302
20303 2007-06-07 Jason Rumney <jasonr@gnu.org>
20304
20305 * s/ms-w32.h: Don't define HAVE_TZNAME.
20306
20307 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
20308
20309 2007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20310
20311 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
20312
20313 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
20314 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
20315
20316 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
20317 Don't call next handler.
20318 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
20319 Remove argument. Install handler to application.
20320 (set_frame_menubar): Don't change deep_p.
20321 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
20322 FRAME_OUTER_TO_INNER_DIFF_Y.
20323 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
20324 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
20325 [HAVE_DIALOGS]: New macros.
20326 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
20327 Use them.
20328 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
20329
20330 * macselect.c [MAC_OSX] (install_service_handler): Rename from
20331 init_service_handler. All callers changed. Return OSStatus value.
20332
20333 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
20334 All callers changed so as not to call SetPortWindowPort.
20335 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
20336 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
20337 mac_draw_string_common.
20338 (mac_draw_image_string_qd): Likewise.
20339 (mac_draw_string_common): Use them. Add INLINE.
20340 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
20341 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
20342 GetGlobalMouse.
20343 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
20344 and FRAME_OUTER_TO_INNER_DIFF_Y.
20345 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
20346 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
20347 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
20348 repositioning window to mac_handle_window_event.
20349 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
20350 saving window location to mac_handle_window_event
20351 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
20352 (install_menu_target_item_handler): Remove argument in extern.
20353 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
20354 Also accept command events.
20355 (do_keystroke): New function created from XTread_socket.
20356 (init_command_handler): Remove functions.
20357 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
20358 and save window location by kEventWindowShowing and kEventWindowHiding
20359 handlers here. Don't call next handler for window state change and
20360 focus events.
20361 (mac_handle_application_event, mac_handle_keyboard_event)
20362 [TARGET_API_MAC_CARBON]: New functions.
20363 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
20364 kEventWindowShowing and kEventWindowHiding events. Move installation
20365 of mouse, font, text input and menu target item handlers to
20366 install_application_handler.
20367 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
20368 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
20369 New function.
20370 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
20371 Register it.
20372 (XTread_socket) [TARGET_API_MAC_CARBON]:
20373 Consolidate SendEventToEventTarget calls.
20374 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
20375 Move application activation handler to mac_handle_application_event.
20376 Move keyboard handler to mac_handle_keyboard_event.
20377 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
20378 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
20379 init_command_handler. Call install_application_handler.
20380
20381 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
20382 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
20383
20384 2007-06-07 Glenn Morris <rgm@gnu.org>
20385
20386 * emacs.c (main): Use `emacs-copyright' in --version output.
20387
20388 2007-06-06 Chong Yidong <cyd@stupidchicken.com>
20389
20390 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
20391
20392 2007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20393
20394 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
20395
20396 * macgui.h: Replace WindowPtr with WindowRef.
20397
20398 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
20399 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
20400 Replace ControlHandle with ControlRef.
20401 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
20402
20403 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
20404 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
20405 Replace ControlHandle with ControlRef.
20406 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
20407 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
20408
20409 * macterm.h (struct scroll_bar): Rename member control_handle_low
20410 and control_handle_high to control_ref_low and control_ref_high.
20411 All uses changed.
20412 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
20413 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
20414 respectively. All uses changed.
20415 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
20416 (install_window_handler, remove_window_handler): Replace WindowPtr
20417 with WindowRef in externs.
20418
20419 2007-06-05 Juanma Barranquero <lekktu@gmail.com>
20420
20421 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
20422
20423 2007-06-03 Nick Roberts <nickrob@snap.net.nz>
20424
20425 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
20426
20427 * frame.c (Fmouse_position, Fmouse_pixel_position):
20428 Condition on HAVE_GPM too.
20429
20430 * term.c (term_mouse_highlight): Remove unused variables.
20431 (Fterm_open_connection): Set gpm_zerobased to 1.
20432 (term_mouse_movement, term_mouse_click, handle_one_term_event):
20433 Use zero based co-ordinates.
20434 (handle_one_term_event): Report a drag as mouse movement too.
20435
20436 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
20437
20438 2007-06-03 Chong Yidong <cyd@stupidchicken.com>
20439
20440 * image.c (search_image_cache): New function. Require background
20441 color match if background color is unspecified in the image spec.
20442 (uncache_image, lookup_image): Use it.
20443
20444 2007-06-01 Juanma Barranquero <lekktu@gmail.com>
20445
20446 * window.c (Fshrink_window): Reflow docstring.
20447
20448 2007-06-02 Chong Yidong <cyd@stupidchicken.com>
20449
20450 * Version 22.1 released.
20451
20452 2007-06-01 Richard Stallman <rms@gnu.org>
20453
20454 * xfns.c (x_encode_text): Add GCPRO.
20455
20456 2007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20457
20458 * xfns.c (x_set_name_internal): Save encoded name before
20459 x_encode_text in case string data is relocated.
20460
20461 2007-05-31 Richard Stallman <rms@gnu.org>
20462
20463 * buffer.c (syms_of_buffer): Doc fix.
20464
20465 2007-05-30 Nick Roberts <nickrob@snap.net.nz>
20466
20467 * sysdep.c (init_sys_modes): Add rather than replace with
20468 O_NONBLOCK.
20469
20470 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
20471 term_mouse_moveto.
20472
20473 * termhooks.h (term_mouse_moveto): New extern.
20474
20475 * term.c (mouse_face_window): Rename...
20476 (Qmouse_face_window): ...to this.
20477 (term_show_mouse_face, term_clear_mouse_face)
20478 (term_mouse_highlight): Use Qmouse_face_window.
20479 (term_mouse_moveto): New function.
20480 (term_mouse_position): Make it work.
20481 (syms_of_term): Uncomment assignment to mouse_position_hook.
20482 Staticpro Qmouse_face_window.
20483
20484 2007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20485
20486 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
20487 around current_column call.
20488
20489 2007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
20490
20491 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
20492 * xdisp.c (next_element_from_buffer):
20493 * window.c (delete_window):
20494 * term.c (term_mouse_highlight):
20495 * msdos.c (getdefdir):
20496 * macterm.c (mac_create_bitmap_from_bitmap_data)
20497 (init_font_name_table):
20498 * fns.c (Fsxhash):
20499 * data.c (Fmake_local_variable):
20500 * ccl.c (ccl_driver): Likewise.
20501
20502 2007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20503
20504 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
20505 Call mac_wakeup_from_rne on window size change.
20506
20507 2007-05-25 Chong Yidong <cyd@stupidchicken.com>
20508
20509 * image.c (uncache_image): Fix typo.
20510
20511 2007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
20512
20513 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
20514
20515 2007-05-22 Richard Stallman <rms@gnu.org>
20516
20517 * xterm.c (x_connection_closed): Remove NO_RETURN.
20518
20519 2007-05-22 Martin Rudalics <rudalics@gmx.at>
20520
20521 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
20522
20523 2007-05-21 Chong Yidong <cyd@stupidchicken.com>
20524
20525 * image.c (uncache_image): New function.
20526 (Fimage_refresh): New function.
20527
20528 2007-05-20 Jan Djärv <jan.h.d@swipnet.se>
20529
20530 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
20531
20532 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
20533
20534 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
20535 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
20536
20537 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
20538
20539 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
20540 conditional on [HAVE_GPM_H].
20541
20542 2007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
20543
20544 * syntax.c (skip_chars): Update syntax-table only after we checked that
20545 the new location is valid.
20546
20547 2007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20548
20549 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
20550 mac_get_window_bounds.
20551
20552 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
20553
20554 * Makefile.in (LIBGPM): Allow it to be set from configure.
20555 If set then link Emacs with it.
20556
20557 * config.in: Regenerate.
20558
20559 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
20560 New externs.
20561
20562 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
20563 Include gpm.h.
20564 (handle_one_term_event, term_gpm): New externs.
20565
20566 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
20567 and allow it to be interrupted by SIGIO.
20568
20569 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
20570 (wait_reading_process_output): Wait on gpm_fd too.
20571 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
20572 (add_gpm_wait_descriptor_called_flag): New variable.
20573 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
20574
20575 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
20576 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
20577 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
20578 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
20579 (make_lispy_event): Add case GPM_CLICK_EVENT.
20580 (read_avail_input): Handle mouse input.
20581
20582 * term.c (write_glyphs_with_face): New function.
20583 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
20584 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
20585 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
20586 (mouse_face_face_id, term_gpm, pos_x, pos_y)
20587 (last_mouse_x, last_mouse_y): New variables.
20588 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
20589 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
20590 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
20591 (Fterm_close_connection): New functions.
20592 (term_init): Initialise mouse_face_window.
20593
20594 2007-05-19 Chong Yidong <cyd@stupidchicken.com>
20595
20596 * xdisp.c (redisplay_window): If first window line is a
20597 continuation line, recompute the new window start instead of
20598 recentering.
20599
20600 2007-05-18 Glenn Morris <rgm@gnu.org>
20601
20602 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
20603 Suggested by Alfred M. Szmidt <ams@gnu.org>.
20604
20605 2007-05-17 Glenn Morris <rgm@gnu.org>
20606
20607 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
20608
20609 2007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20610
20611 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
20612 dead key repeat and up events.
20613
20614 2007-05-14 Chong Yidong <cyd@stupidchicken.com>
20615
20616 * image.c (pbm_load): Check image size for monochrome pbm.
20617
20618 2007-05-13 Chong Yidong <cyd@stupidchicken.com>
20619
20620 * xterm.c (XTread_socket): Revert last change.
20621
20622 2007-05-12 Chong Yidong <cyd@stupidchicken.com>
20623
20624 * image.c (pbm_load): Correctly check image size for greyscale pbm.
20625
20626 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
20627
20628 2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
20629
20630 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
20631 mixup (YAILOM).
20632
20633 2007-05-07 Andreas Schwab <schwab@suse.de>
20634
20635 * keymap.c (Flookup_key): Fix typo in last change.
20636
20637 2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
20638
20639 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
20640 mapping for unibyte strings.
20641
20642 2007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20643
20644 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
20645 (Fx_popup_dialog) [MAC_OSX]: Likewise.
20646
20647 2007-04-29 Richard Stallman <rms@gnu.org>
20648
20649 * insdel.c (replace_range): For undo, record insertion first.
20650
20651 2007-04-29 Andreas Schwab <schwab@suse.de>
20652
20653 * lisp.h (VECSIZE): Use OFFSETOF.
20654
20655 2007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20656
20657 * xdisp.c (try_window_reusing_current_matrix): Fix number of
20658 disabled lines.
20659
20660 2007-04-28 Richard Stallman <rms@gnu.org>
20661
20662 * lread.c (read_escape): In a string, \s is always space.
20663
20664 2007-04-27 Jan Djärv <jan.h.d@swipnet.se>
20665
20666 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
20667
20668 * gtkutil.c (xg_update_menubar, create_menus): Create empty
20669 submenu for menu bar items.
20670
20671 See ChangeLog.10 for earlier changes.
20672
20673 ;; Local Variables:
20674 ;; coding: utf-8
20675 ;; add-log-time-zone-rule: t
20676 ;; End:
20677
20678 Copyright (C) 2007, 2008, 2009 Free Software Foundation, Inc.
20679
20680 This file is part of GNU Emacs.
20681
20682 GNU Emacs is free software: you can redistribute it and/or modify
20683 it under the terms of the GNU General Public License as published by
20684 the Free Software Foundation, either version 3 of the License, or
20685 (at your option) any later version.
20686
20687 GNU Emacs is distributed in the hope that it will be useful,
20688 but WITHOUT ANY WARRANTY; without even the implied warranty of
20689 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20690 GNU General Public License for more details.
20691
20692 You should have received a copy of the GNU General Public License
20693 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
20694
20695 ;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40