]> code.delx.au - gnu-emacs/blob - src/ChangeLog
* keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
[gnu-emacs] / src / ChangeLog
1 2009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
2
3 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
4
5 * xterm.c (syms_of_xterm):
6 * xselect.c (syms_of_xselect):
7 * xmenu.c (syms_of_xmenu):
8 * xfns.c (syms_of_xfns):
9 * xfaces.c (syms_of_xfaces):
10 * xdisp.c (syms_of_xdisp):
11 * window.c (syms_of_window):
12 * w32fns.c (syms_of_w32fns):
13 * undo.c (syms_of_undo):
14 * textprop.c (syms_of_textprop):
15 * terminal.c (syms_of_terminal):
16 * syntax.c (syms_of_syntax):
17 * sound.c (syms_of_sound):
18 * search.c (syms_of_search):
19 * print.c (syms_of_print):
20 * minibuf.c (syms_of_minibuf):
21 * macros.c (syms_of_macros):
22 * keymap.c (syms_of_keymap, initial_define_key)
23 (initial_define_lispy_key):
24 * keyboard.c (syms_of_keyboard):
25 * insdel.c (syms_of_insdel):
26 * image.c (syms_of_image):
27 * fringe.c (syms_of_fringe):
28 * frame.c (syms_of_frame):
29 * fontset.c (syms_of_fontset):
30 * fns.c (syms_of_fns):
31 * fns.c (syms_of_fns):
32 * fileio.c (syms_of_fileio):
33 * fileio.c (syms_of_fileio):
34 * eval.c (syms_of_eval):
35 * doc.c (syms_of_doc):
36 * dispnew.c (syms_of_display):
37 * dired.c (syms_of_dired):
38 * dbusbind.c (syms_of_dbusbind):
39 * data.c (syms_of_data):
40 * composite.c (syms_of_composite):
41 * coding.c (syms_of_coding):
42 * cmds.c (syms_of_cmds):
43 * charset.c (define_charset_internal, syms_of_character):
44 * ccl.c (syms_of_ccl):
45 * category.c (syms_of_category, init_category_once):
46 * casetab.c (syms_of_casetab):
47 * casefiddle.c (syms_of_casefiddle):
48 * callint.c (syms_of_callint):
49 * bytecode.c (syms_of_bytecode):
50 * buffer.c (keys_of_buffer, syms_of_buffer):
51 * alloc.c (syms_of_alloc):
52 * process.c (syms_of_process, init_process):
53 * lread.c (syms_of_lread, init_obarray):
54 * font.c (build_style_table):
55 * emacs.c (syms_of_emacs, main): Replace calls to intern with
56 intern_c_string, calls to make_pure_string with
57 make_pure_c_string. Use pure_cons instead of Fcons.
58
59 * process.c (socket_options): Make it const.
60 (set_socket_option, init_process): Use a const pointer.
61
62 * lread.c (intern_c_string): New function.
63 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
64 (defvar_int): Uset it. Make the name const char*.
65
66 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
67 (defvar_int): Update prototypes.
68 (DEFUN, EXFUN): Support for prototypes is now required.
69 (intern_c_string): New prototype.
70 (struct Lisp_Subr): Make symbol_name constant.
71
72 * font.c (struct table_entry): Remove unused member. Make NAMES
73 constant.
74 (weight_table, slant_table, width_table): Make constant.
75
76 * emacs.c (struct standard_args): Make name and longname constant.
77
78 * character.h (DEFSYM): Use intern_c_string.
79
80 2009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
81
82 * alloc.c (make_pure_c_string): New function.
83
84 * eval.c (Fautoload): Purecopy all arguments.
85
86 2009-11-05 Kenichi Handa <handa@m17n.org>
87
88 * fileio.c (Finsert_file_contents): Be sure set coding-system of
89 the buffer in case of replace.
90
91 2009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
92
93 * puresize.h (BASE_PURESIZE): Increase to 1620000.
94
95 2009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
96
97 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
98 when applicable (bug#4851).
99
100 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
101 (P_): Support for prototypes is now required.
102
103 2009-10-31 Chong Yidong <cyd@stupidchicken.com>
104
105 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
106 (Bug#4827).
107
108 2009-10-30 Eli Zaretskii <eliz@gnu.org>
109
110 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
111
112 2009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
113
114 * puresize.h (BASE_PURESIZE): Increase to 1470000.
115
116 * lread.c (Fload): Purecopy the file name when building
117 Vpreloaded_file_list.
118
119 2009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
120
121 * w32fns.c (syms_of_w32fns): Change default value of
122 w32-scroll-lock-modifier to nil. (Bug#2827)
123
124 2009-10-26 Juanma Barranquero <lekktu@gmail.com>
125
126 * minibuf.c (Fall_completions): Fix typos in docstring.
127
128 2009-10-26 Andreas Schwab <schwab@redhat.com>
129
130 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
131
132 2009-10-26 Juanma Barranquero <lekktu@gmail.com>
133
134 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
135 For delta < 0, skip check that only makes sense when the mini-window
136 is going to be enlarged. (Bug#4534)
137
138 2009-10-25 Chong Yidong <cyd@stupidchicken.com>
139
140 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
141 string in menu maps (Bug#4471).
142
143 2009-10-24 Chong Yidong <cyd@stupidchicken.com>
144
145 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
146 FRAME_NS_VIEW on terminal frames (Bug#4765).
147
148 2009-10-24 Andreas Schwab <schwab@linux-m68k.org>
149
150 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
151 DBUS_TYPE_UINTnn separately to get proper sign extension.
152
153 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
154 can properly handle unsigned types.
155 (make_uid, make_gid): Remove.
156
157 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
158 types again.
159
160 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
161 (system_process_attributes): Likewise.
162
163 2009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
164
165 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
166
167 * eval.c (Fautoload): Purecopy the filename. Simplify.
168
169 * category.c (Fdefine_category): Purecopy docstring.
170
171 2009-10-23 Andreas Schwab <schwab@linux-m68k.org>
172
173 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
174
175 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
176
177 2009-10-23 Chong Yidong <cyd@stupidchicken.com>
178
179 * window.c (Fwindow_edges, Fwindow_pixel_edges)
180 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
181 (Bug#4775).
182
183 2009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
184
185 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
186 (init_fileio_once):
187 * lisp.h (init_fileio_once): Remove.
188 * emacs.c (main): Don't call init_fileio_once.
189
190 2009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
191
192 * puresize.h (BASE_PURESIZE): Increase to 1430000.
193
194 2009-10-21 Andreas Schwab <schwab@linux-m68k.org>
195
196 * doprnt.c (doprnt): Fix overflow check.
197
198 2009-10-21 Jan Djärv <jan.h.d@swipnet.se>
199
200 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
201
202 * xterm.h (x_wait_for_event): Declare it.
203
204 * xterm.c (pending_event_wait): New variable.
205 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
206 see pending_event_wait.eventtype.
207 (handle_one_xevent): Don't change gravity when parent changes.
208 (x_new_font): Call change_frame_size with new rows/columns before we
209 try to resize the frame.
210 (x_wait_for_event): New function.
211 (x_set_window_size_1): Don't change gravity unless change_gravity
212 is set.
213 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
214 don't change frame size, instead wait for the ConfigureNotify.
215 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
216 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
217 (x_initialize): Initialize pending_event_wait.
218
219 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
220 size.
221
222 * widget.c (EmacsFrameSetValues): Add comment.
223 (EmacsFrameSetCharSize): Just call x_set_window_size.
224
225 * gtkutil.c (xg_frame_set_char_size): Flush events and call
226 x_wait_for_event.
227 (flush_and_sync): Remove again.
228 (xg_get_font_name): Suggest monospace if no previous font is known.
229
230 2009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
231
232 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
233 8th bit, since that only made sense in the ASCII world (bug#4751).
234
235 2009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
236
237 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
238 processing pending events when event is filtered for input method.
239 (Bug#3681)
240
241 2009-10-20 Juanma Barranquero <lekktu@gmail.com>
242
243 * fns.c: Add #endif accidentally removed in previous change.
244
245 2009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
246
247 * fns.c: Remove code for unsupported system: MAC_OS.
248 * image.c: Likewise. Include setjmp.h.
249
250 2009-10-19 Jan Djärv <jan.h.d@swipnet.se>
251
252 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
253 pixel -1 (bug #4742).
254
255 2009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
256
257 * process.c (create_pty): Remove conditionals for no longer
258 supported systems: UNIPLUS and RTU.
259
260 * xterm.c:
261 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
262
263 * alloc.c: Do not define struct catchtag.
264 * eval.c: Move struct catchtag definition ...
265 * lisp.h: ... here.
266
267 * image.c: Move png.h #include earlier to avoid warnings.
268
269 * xterm.c:
270 * xsmfns.c:
271 * xselect.c:
272 * xrdb.c:
273 * xmenu.c:
274 * xftfont.c:
275 * xfont.c:
276 * xfns.c:
277 * xfaces.c:
278 * xdisp.c:
279 * window.c:
280 * widget.c:
281 * w32xfns.c:
282 * w32uniscribe.c:
283 * w32term.c:
284 * w32select.c:
285 * w32reg.c:
286 * w32proc.c:
287 * w32menu.c:
288 * w32inevt.c:
289 * w32heap.c:
290 * w32font.c:
291 * w32fns.c:
292 * w32console.c:
293 * w32.c:
294 * w16select.c:
295 * vm-limit.c:
296 * unexsol.c:
297 * unexec.c:
298 * unexcw.c:
299 * unexaix.c:
300 * undo.c:
301 * tparam.c:
302 * textprop.c:
303 * terminfo.c:
304 * terminal.c:
305 * termcap.c:
306 * term.c:
307 * syntax.c:
308 * sound.c:
309 * sheap.c:
310 * search.c:
311 * scroll.c:
312 * region-cache.c:
313 * regex.c:
314 * ralloc.c:
315 * process.c:
316 * print.c:
317 * nsterm.m:
318 * nsselect.m:
319 * nsmenu.m:
320 * nsimage.m:
321 * nsfont.m:
322 * nsfns.m:
323 * msdos.c:
324 * minibuf.c:
325 * menu.c:
326 * marker.c:
327 * macros.c:
328 * keymap.c:
329 * keyboard.c:
330 * intervals.c:
331 * insdel.c:
332 * indent.c:
333 * gtkutil.c:
334 * ftxfont.c:
335 * ftfont.c:
336 * fringe.c:
337 * frame.c:
338 * fontset.c:
339 * font.c:
340 * fns.c:
341 * floatfns.c:
342 * filelock.c:
343 * fileio.c:
344 * emacs.c:
345 * editfns.c:
346 * dosfns.c:
347 * doprnt.c:
348 * doc.c:
349 * dispnew.c:
350 * dired.c:
351 * dbusbind.c:
352 * data.c:
353 * composite.c:
354 * coding.c:
355 * cmds.c:
356 * cm.c:
357 * chartab.c:
358 * charset.c:
359 * character.c:
360 * ccl.c:
361 * category.c:
362 * casetab.c:
363 * casefiddle.c:
364 * callproc.c:
365 * callint.c:
366 * bytecode.c:
367 * buffer.c:
368 * atimer.c: Include setjmp.h. (Bug#4643)
369
370 2009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
371
372 Remove leftover table unibyte_to_multibyte_table.
373 * character.c (unibyte_to_multibyte_table): Remove.
374 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
375 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
376 * character.h (UNIBYTE_TO_CHAR): New macro.
377 (MAKE_CHAR_MULTIBYTE): Use it.
378 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
379 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
380 (message_dolog, set_message_1):
381 * search.c (Freplace_match):
382 * editfns.c (Fcompare_buffer_substrings):
383 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
384 (concat):
385 * insdel.c (copy_text, count_size_as_multibyte):
386 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
387 * term.c (produce_glyphs):
388 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
389 * regex.c (RE_CHAR_TO_MULTIBYTE):
390 * cmds.c (internal_self_insert):
391 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
392
393 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
394
395 2009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
396
397 * puresize.h (BASE_PURESIZE): Increase to 1310000.
398
399 2009-10-16 Juanma Barranquero <lekktu@gmail.com>
400
401 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
402
403 2009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
404
405 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
406 still needed under Tiger.
407
408 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
409
410 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
411 __Apple__.
412
413 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
414
415 2009-10-15 Kenichi Handa <handa@m17n.org>
416
417 * print.c (print_object): Escape a symbol like "2E10" too.
418
419 2009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
420
421 Cleanups and changes for 64-bit compile under Snow Leopard.
422 Based on suggestions by Erik Charlebois.
423
424 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
425
426 * nsfont.m (ns_char_width): Replace deprecated call.
427 (ns_findfonts, nsfont_list_family): Use long format in printf, and
428 cast argument.
429 (nsfont_open): Use ns_char_width() everywhere.
430 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
431
432 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
433
434 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
435 where appropriate.
436
437 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
438 where appropriate.
439 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
440 Use stringWithUTF8String.
441 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
442
443 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
444 Add formal protocol mention to inheritance.
445 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
446
447 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
448 Fix printf format.
449 (ns_query_color): Use CGFloat where appropriate.
450 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
451 (EmacsScroller-mouseDown:) Use long format in printf, and cast
452 argument.
453
454 * config.in (NS_HAVE_NSINTEGER): Drop.
455
456 * dbusbind.c (dbus-method-return-internal)
457 (dbus-method-error-internal): Use long format in printf, and cast
458 argument.
459
460 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
461 in printf, and cast argument.
462
463 * process.c (list_processes_1): Use long format in printf, and
464 cast argument.
465
466 2009-10-11 Glenn Morris <rgm@gnu.org>
467
468 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
469
470 2009-10-08 Jan Djärv <jan.h.d@swipnet.se>
471
472 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
473 menu bar with a small width so it doesn't enlarge the frame.
474
475 2009-10-08 Juanma Barranquero <lekktu@gmail.com>
476
477 * fontset.c (Fset_fontset_font): Fix typos in error messages.
478
479 2009-10-06 Glenn Morris <rgm@gnu.org>
480
481 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
482 SOME_MACHINE_LISP (this enters indirectly via DOC).
483
484 2009-10-05 Eli Zaretskii <eliz@gnu.org>
485
486 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
487
488 2009-10-04 Eli Zaretskii <eliz@gnu.org>
489
490 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
491 Doc fix.
492
493 2009-10-03 Martin Rudalics <rudalics@gmx.at>
494
495 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
496
497 2009-10-02 Michael Albinus <michael.albinus@gmx.de>
498
499 * lisp.h (Qdelete_directory_internal): Remove, because it is not
500 used anymore outside fileio.c.
501
502 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
503
504 2009-10-01 Juanma Barranquero <lekktu@gmail.com>
505
506 * lisp.h (Qdelete_directory_internal):
507 Declare, instead of Qdelete_directory.
508
509 * w32fns.c (Fsystem_move_file_to_trash): Use it.
510
511 2009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
512
513 * eval.c (Fcalled_interactively_p): Add `kind' argument.
514
515 2009-10-01 Michael Albinus <michael.albinus@gmx.de>
516
517 * fileio.c (Fdelete_directory_internal): Rename from
518 Fdelete_directory. It is not a command anymore. It has no file
519 name handler.
520
521 2009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
522
523 * xdisp.c (get_next_display_element): Use an enum in last change.
524
525 2009-09-28 Kenichi Handa <handa@m17n.org>
526
527 * xdisp.c (get_next_display_element): Pay attention to
528 unibyte_display_via_language_environment in handling
529 Vnobreak_char_display.
530
531 2009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
532
533 * nsterm.h (ns_app_name): New extern variable.
534
535 * nsterm.m (ns_app_name): New variable.
536 (ns_term_init): Set and use it.
537 (ns_term_shutdown): Use it.
538
539 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
540 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
541
542 * nsfns.m (ns_set_name_iconic, ns_set_name)
543 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
544 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
545
546 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
547 Remove double-casting in client_data comparison.
548
549 2009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
550
551 * keyboard.c (make_lispy_event): Remember last wheel direction.
552 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
553
554 2009-09-26 Glenn Morris <rgm@gnu.org>
555
556 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
557 internal.elc. Add term/pc-win.elc.
558 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
559 term/x-win.elc.
560 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
561 term/w32-win.elc.
562 (NS_SUPPORT): New.
563 (lisp): Add NS_SUPPORT.
564 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
565
566 2009-09-25 David Reitter <david.reitter@gmail.com>
567
568 * nsmenu.m (EmacsMenu-clear): Recognize application menu
569 on Mac OS X 10.6+ (bug#4513).
570
571 2009-09-24 Juanma Barranquero <lekktu@gmail.com>
572
573 * frame.c (xrdb_get_resource): Return nil for empty string resources;
574 some parts of Emacs code (like font selection) don't grok them.
575 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
576
577 2009-09-24 Andreas Schwab <schwab@redhat.com>
578
579 * coding.c (decode_coding_iso_2022): Fix operator precedence.
580
581 2009-09-24 Juanma Barranquero <lekktu@gmail.com>
582
583 * dired.c (Fdirectory_files): Fix typo in docstring.
584
585 2009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
586
587 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
588 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
589 (EmacsScroller-setPosition:portion:whole:): Remove -display call
590 under GNUstep.
591 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
592
593 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
594 glyph advancement.
595
596 2009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
597
598 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
599 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
600
601 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
602 deleted (bug #4492).
603
604 * nsfont.m (Vns_reg_to_script): New lisp variable.
605 (syms_of_nsfont): Declare it.
606 (ns_registry_to_script): New function.
607 (ns_get_req_script): Call it.
608 (ns_findfonts): Don't give up on non-unicode registry.
609
610 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
611
612 2009-09-20 Tom Tromey <tromey@redhat.com>
613
614 * eval.c (find_handler_clause): Make stack-trace-on-error work in
615 batch mode (bug#4228).
616
617 2009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
618
619 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
620 carefully. (Bug #4339)
621
622 2009-09-18 Chong Yidong <cyd@stupidchicken.com>
623
624 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
625
626 2009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
627
628 * emacs.c (inhibit_x_resources): Update doc string for NS.
629 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
630 legacy code for -NXHost. Fix error printf in daemon case.
631
632 * nsterm.h (ns_no_defaults): Remove.
633
634 * nsterm.m (ns_no_defaults): Remove.
635 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
636 (ns_use_qd_smoothing): Remove legacy variable.
637 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
638 don't update the NSWindow itself.
639 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
640 state detection and store user rect ourselves. (Bug #3581)
641
642 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
643 ns_use_qd_smoothing.
644
645 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
646 platform versions. Drop support for emacs-20-style face specs.
647 (x-close-connection): Drop PSFlush() under OS X.
648 (x-focus-frame): Activate the app first. (Bug #4180)
649
650 2009-09-17 Juanma Barranquero <lekktu@gmail.com>
651
652 * emacs.c (inhibit_x_resources): New variable.
653 (main) [HAVE_NS]: Don't process --quick command line option.
654 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
655
656 * lisp.h (inhibit_x_resources): Declare it extern.
657
658 * w32reg.c (x_get_string_resource):
659 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
660
661 2009-09-17 Eli Zaretskii <eliz@gnu.org>
662
663 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP): Add
664 lisp/term/internal.elc.
665
666 2009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
667
668 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
669 (bug#4461).
670
671 2009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
672
673 * puresize.h (BASE_PURESIZE): Increase to 1290000.
674
675 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
676 (OBJECTS_MACHINE): Remove, unused.
677
678 2009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
679
680 * frame.c (x_get_resource_string): Remove unused.
681
682 2009-09-15 Jan Djärv <jan.h.d@swipnet.se>
683
684 * xterm.c (x_new_font): Call change_frame_size before calling
685 x_set_window_size, in case frame size won't change.
686
687 * frame.c (x_set_font): Remove dead code.
688
689 2009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
690
691 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
692
693 2009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
694
695 * lread.c (Fload): Don't output a message after loading an obsolete
696 package any more (done in Lisp now).
697
698 2009-09-12 Chong Yidong <cyd@stupidchicken.com>
699
700 * fns.c (syms_of_fns): Doc fix (Bug#4227).
701
702 2009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
703
704 * keymap.c (Fwhere_is_internal): Use nconc2.
705
706 2009-09-11 Alan Mackenzie <acm@muc.de>
707
708 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
709 batch mode.
710
711 2009-09-11 Andreas Schwab <schwab@linux-m68k.org>
712
713 * xdisp.c (display_mode_element): Detect cycles.
714
715 2009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
716
717 * keymap.c (where_is_internal): Don't erroneously return nil right after
718 filling the cache.
719 (where_is_internal_1): Fix up typo.
720
721 2009-09-11 Glenn Morris <rgm@gnu.org>
722
723 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
724 share a common doc-string.
725
726 2009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
727
728 * keymap.c (get_keymap): Return the actual keymap symbol rather than
729 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
730
731 * keymap.c (QCadvertised_binding): New constant.
732 (syms_of_keymap): Initialize it.
733 (Fwhere_is_internal): Try and use bindings from :advertised-binding
734 if applicable.
735
736 2009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
737
738 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
739 (parse_menu_item): Streamline since bindings are recomputed all the
740 time anyway. Don't bother checking Vdefine_key_rebound_commands any
741 more and don't support lmenu's menu-alias any more either.
742
743 * keymap.c (where_is_internal_data): Make noindirect a boolean.
744 (where_is_internal): Strip it down to only traverse the keymaps.
745 Move the cache handling from Fwhere_is_internal to here.
746 (Fwhere_is_internal): Move the handling of remapping and the choice of
747 the best binding from where_is_internal to here.
748 Unify the cached/noncached paths, so remapping is also handled
749 correctly when the cache is used, and so the cache can be used to
750 speed up remap-handling when applicable.
751 Give preference to non-remapped bindings.
752 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
753 non-remapped bindings.
754 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
755 command remapping.
756
757 * xdisp.c (display_mode_element): Move list length limit from 50 to
758 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
759
760 2009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
761
762 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
763
764 2009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
765
766 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
767 (Bug#4334)
768
769 * keymap.c (where_is_internal): Filter out shadowed remappings.
770 Assume that where_is_internal returns unshadowed bindings to simplify
771 the code and get rid of the gotos. Use ASIZE.
772
773 2009-09-04 Jan Djärv <jan.h.d@swipnet.se>
774
775 * xterm.c (x_focus_changed): If we get a focusout and pointer
776 is invisible, make it visible.
777
778 * xterm.h: Remove condition for declaration of
779 x_*_window_to_frame.
780
781 2009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
782
783 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
784 initial terminal as well.
785
786 2009-09-02 Jan Djärv <jan.h.d@swipnet.se>
787
788 * xterm.h: Rename x_non_menubar_window_to_frame to
789 x_menubar_window_to_frame.
790
791 * xterm.c: Remove declarations also in xterm.h
792 (XTmouse_position): Do not return valid positions
793 for clicks in the menubar and the toolbar for Gtk+.
794
795 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
796 if the widget for the event has the same top level as a frame,
797 return the frame.
798 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
799 internal windows, bug #4122.
800 (x_non_menubar_window_to_frame): Remove.
801
802 2009-09-02 Glenn Morris <rgm@gnu.org>
803
804 * buffer.c (default-major-mode): Move most of the doc from here...
805 (major-mode): ... to here.
806
807 2009-08-30 Nick Roberts <nickrob@snap.net.nz>
808
809 * process.c (wait_reading_process_output): Keep the descriptor
810 when pty is used by a non-child process, e.g., in I/O buffer of
811 GDB this allows inferior to be restarted.
812
813 2009-08-29 Eli Zaretskii <eliz@gnu.org>
814
815 * xdisp.c (redisplay_internal): Remove redundant test and collapse
816 both branches into one.
817
818 2009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
819
820 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
821 (main): Use enable-multibyte-characters rather than
822 default-enable-multibyte-characters. Output a warning message when
823 running a unibyte session.
824
825 2009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
826
827 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
828 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
829 (copy_data_segment): Also copy __program_vars section.
830 (copy_dyld_info) [LC_DYLD_INFO]: New function.
831 (dump_it) [LC_DYLD_INFO]: Use it.
832
833 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
834
835 2009-08-28 Eli Zaretskii <eliz@gnu.org>
836
837 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
838 $(SRC)/buildobj.h.
839 (buildobj.h): Renamed from $(SRC)/buildobj.h.
840 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
841 $(SRC)/buildobj.h.
842 (clean): Add buildobj.h.
843
844 2009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
845
846 * print.c (print_object): Set escapeflag to 1 when printing
847 hashtable keys and values.
848
849 2009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
850
851 * lread.c (read_integer): Use doubles (and potentially return a float
852 number) as we do in string-to-number.
853 (read1): Use strtol to read integers, signal errors on strtol's
854 overflow and use floats if strtol's output is too large for
855 Elisp integers.
856
857 2009-08-27 Eli Zaretskii <eliz@gnu.org>
858
859 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
860 (make-buildobj-SH): Fix last change.
861 (SRC): Move to before where it's first used.
862
863 2009-08-27 Kenichi Handa <handa@m17n.org>
864
865 * process.c (send_process): Use encode_coding_object instead of
866 encode_coding_string to perform eol-conversion even if the string
867 is unibyte.
868
869 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
870 character.
871
872 * cmds.c (Fself_insert_command): Avoid unnecessay
873 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
874
875 2009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
876
877 * callproc.c (Fcall_process): Remove always true #if.
878
879 * lisp.h: Replace #if 0 code for checking with text pointing to
880 the --enable-checking configure flag.
881
882 * emacs.c (main): Mention the --enable-profiling configure flag
883 instead of using CFLAGS.
884
885 2009-08-26 Ken Raeburn <raeburn@raeburn.org>
886
887 * Makefile.in (buildobj.h): New target.
888 (doc.o): Depend on it.
889 (temacs${EXEEXT}): Don't generate buildobj.lst.
890 (mostlyclean): Delete buildobj.h, not buildobj.lst.
891 * makefile.w32-in ($(SRC)/buildobj.h): New target.
892 ($(BLD)/doc.$(O)): Depend on it.
893 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
894 provided by Eli Zaretskii.)
895 ($(TEMACS)): Don't generate buildobj.lst.
896 * doc.c: Include buildobj.h.
897 (buildobj): New static variable.
898 (Fsnarf_documentation): Use it, instead of opening and reading
899 buildobj.lst.
900
901 2009-08-25 Michael Albinus <michael.albinus@gmx.de>
902
903 * dbusbind.c (Fdbus_call_method)
904 (Fdbus_call_method_asynchronously): Use English numeric format for
905 timeout values in doc string.
906
907 2009-08-25 Kenichi Handa <handa@m17n.org>
908
909 * alloc.c (mark_char_table): New function.
910 (mark_object): Use mark_char_table for a char-table.
911
912 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
913 (CHAR_TABLE_REF): Use it.
914
915 2009-08-23 Ken Raeburn <raeburn@raeburn.org>
916
917 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
918 before invoking the newly build emacs to check for load-path
919 shadowing.
920
921 2009-08-22 Glenn Morris <rgm@gnu.org>
922
923 * Makefile.in (bootstrap_exe): New variable.
924 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
925 Use ${bootstrap_exe}.
926
927 2009-08-22 Eli Zaretskii <eliz@gnu.org>
928
929 * coding.h (encode_coding_string): Don't encode unibyte strings.
930 (Bug#4047)
931
932 2009-08-22 Michael Albinus <michael.albinus@gmx.de>
933
934 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
935
936 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
937 intended as hotfix only.
938 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
939
940 2009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
941
942 * nsterm.m (ns_get_color): Update documentation properly for last
943 change, and clean up loose ends in the code left by it. Fix
944 longstanding bug with 16-bit hex parsing, and add support for
945 yet another X11 format (rgb:r/g/b) for compatibility.
946 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
947 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
948
949 2009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
950
951 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
952
953 2009-08-20 Michael Albinus <michael.albinus@gmx.de>
954
955 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
956 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
957 (xd_initialize, xd_pending_messages): Check, whether
958 $DBUS_SESSION_BUS_ADDRESS is set.
959
960 2009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
961
962 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
963
964 * nsterm.m (ns_get_color): Remove incompatible color formats again.
965
966 2009-08-20 Glenn Morris <rgm@gnu.org>
967
968 * emacs.c (system-type): Doc fix.
969
970 2009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
971
972 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
973 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
974
975 2009-08-18 Michael Albinus <michael.albinus@gmx.de>
976
977 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
978 New functions.
979 (xd_initialize): Revert change from 2009-08-16.
980
981 2009-08-18 Kenichi Handa <handa@m17n.org>
982
983 * fontset.c (Ffontset_font): If a nil element is found in a
984 font-group vector, return nil.
985
986 2009-08-17 Chong Yidong <cyd@stupidchicken.com>
987
988 * process.c (status_notify): Don't perform redisplay.
989 (Fdelete_process, list_processes_1, process_send_signal):
990 Expliticly perform redisplay.
991 (wait_reading_process_output): Always check process status, but
992 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
993
994 2009-08-17 Ken Raeburn <raeburn@raeburn.org>
995
996 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
997 (XFLOAT_INIT): New macro for storing a float value.
998 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
999 * fns.c (sxhash): Copy out the value of a float in order to
1000 examine its bytes.
1001 * dbusbind.c (xd_append_arg): Likewise.
1002
1003 * emacs.c (main): Don't call syms_of_data twice.
1004
1005 2009-08-16 Michael Albinus <michael.albinus@gmx.de>
1006
1007 * dbusbind.c (xd_initialize): Add connection file descriptor to
1008 input_wait_mask, in order to let select() detect, whether a new
1009 message has been arrived.
1010 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
1011
1012 2009-08-15 Michael Albinus <michael.albinus@gmx.de>
1013
1014 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
1015 New functions.
1016
1017 * lisp.h (xd_pending_messages): Declare.
1018
1019 * keyboard.c (readable_events): Call xd_pending_messages.
1020
1021 2009-08-15 Chong Yidong <cyd@stupidchicken.com>
1022
1023 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
1024
1025 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
1026
1027 * buffer.c (set_buffer_internal_1)
1028 (swap_out_buffer_local_variables): Check for unbound local
1029 variables (Bug#4138).
1030
1031 2009-08-14 Eli Zaretskii <eliz@gnu.org>
1032
1033 * process.c (create_pty): Fix last change.
1034
1035 2009-08-13 Chong Yidong <cyd@stupidchicken.com>
1036
1037 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
1038 (xbm_load_image): Caller changed.
1039 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
1040
1041 2009-08-13 Nick Roberts <nickrob@snap.net.nz>
1042
1043 * process.c (create_pty): New function.
1044 (Fstart_process): Use it to allow Emacs to just associate a pty
1045 with the buffer. See associated change in gdb-mi.el.
1046 (list_processes_1): Deal with no program name.
1047 (start_process_unwind): Use pid == -2 to mean no process.
1048
1049 2009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
1050
1051 * cmds.c (nonundocount): New global variable.
1052 (keys_of_cmds): Initialize it.
1053 (Fself_insert_command): Use it to combine upto 20 sequential chars
1054 into a single undo entry, just like the Qself_insert_command code in
1055 keyboard.c does.
1056 Call frame_make_pointer_invisible, also like the Qself_insert_command
1057 code in keyboard.c does.
1058 * keyboard.c (command_loop_1): Use the new global nonundocount rather
1059 than its own local replacement for it.
1060
1061 2009-08-10 Ken Raeburn <raeburn@raeburn.org>
1062
1063 * fns.c (concat): Don't re-set string length to its current value.
1064
1065 * coding.h (decode_coding_string, encode_coding_string):
1066 Use SBYTES macro.
1067
1068 * doprnt.c (doprnt_lisp): Delete unused function.
1069 (doprnt): Merge with doprnt1, discarding lispstrings code.
1070 * lisp.h (doprnt_lisp): Don't declare.
1071
1072 2009-08-07 Juri Linkov <juri@jurta.org>
1073
1074 * puresize.h (BASE_PURESIZE): Increase to 1270000.
1075
1076 2009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
1077
1078 * print.c (syms_of_print): Undo previous change.
1079
1080 2009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
1081
1082 * lread.c (read1, syms_of_lread): Read hashtables back from the
1083 readable format.
1084
1085 * print.c (print_preprocess, print_object): Print hashtables fully
1086 and readably.
1087 (syms_of_print): Provide 'hashtable-print-readable.
1088
1089 2009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
1090
1091 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
1092 no family set.
1093 (nsfont_open): Handle case when entity has no family.
1094
1095 2009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
1096
1097 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
1098 element, not a list, for match case.
1099
1100 2009-07-28 Kenichi Handa <handa@m17n.org>
1101
1102 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
1103 rigidly.
1104
1105 * xfont.c (xfont_list_pattern): Don't ignore the return value of
1106 font_parse_xlfd. Check font properties more rigidly.
1107
1108 2009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
1109
1110 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
1111 bsd-common.h.
1112
1113 2009-07-27 Kenichi Handa <handa@m17n.org>
1114
1115 * xfaces.c (face_with_height): Call font_clear_prop.
1116
1117 2009-07-26 Chong Yidong <cyd@stupidchicken.com>
1118
1119 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
1120
1121 * xterm.c (x_term_init): Use Qx.
1122
1123 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
1124
1125 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
1126 (ns_get_color): Revert 2009-07-16 change.
1127
1128 2009-07-25 Eli Zaretskii <eliz@gnu.org>
1129
1130 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1131 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
1132
1133 2009-07-25 Ken Raeburn <raeburn@raeburn.org>
1134
1135 * coding.h (decode_coding_string, encode_coding_string):
1136 Use SCHARS macro.
1137
1138 * lread.c: Rewrite 2009-07-21 changes.
1139 (load_depth): Delete.
1140 (Qload_in_progress): New variable.
1141 (load_unwind): Don't reference load_depth or load_in_progress.
1142 (Fload): Likewise; specbind Qload_in_progress instead.
1143 (init_lread): Don't initialize load_depth.
1144 (syms_of_lread): Initialize and protect Qload_in_progress.
1145
1146 2009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
1147
1148 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
1149
1150 2009-07-23 Yavor Doganov <yavor@gnu.org>
1151
1152 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
1153
1154 2009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
1155
1156 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
1157 Bugs 3792, 3720, 2402.
1158 (ns_lookup_indexed_color): Check for bad index.
1159 (ns_index_color): Init unused slot to 0.
1160 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
1161 Bug 3714, possibly 3082.
1162
1163 2009-07-22 Jason Rumney <jasonr@gnu.org>
1164
1165 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
1166 Position IME window at cursor (Bug#2570).
1167 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
1168 (globals_of_w32fns): Dynamically load functions required above.
1169
1170 * w32term.c (w32_draw_window_cursor): Send message to reposition
1171 any IME window.
1172
1173 2009-07-21 Chong Yidong <cyd@stupidchicken.com>
1174
1175 * fileio.c: Revert 2009-07-16 changes.
1176 (Vauto_save_include_big_deletions): New variable.
1177 (Fdo_auto_save): Disable auto-save only if
1178 auto-save-include-big-deletions is nil.
1179
1180 2009-07-21 Chong Yidong <cyd@stupidchicken.com>
1181
1182 * xdisp.c (move_it_to): For continued lines ending in a tab, take
1183 the overflowed pixels into account (Bug#3879).
1184
1185 2009-07-21 Ken Raeburn <raeburn@raeburn.org>
1186
1187 * lread.c (load_depth): New variable.
1188 (Fload, load_unwind, init_lread): Set it to the load recursion
1189 depth; set load_in_progress as a simple boolean based on the
1190 current load_depth. (Bug#3892)
1191
1192 2009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
1193
1194 * nsfont.m (ns_has_attribute): Remove.
1195 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
1196
1197 2009-07-18 Juri Linkov <juri@jurta.org>
1198
1199 * process.c (Fset_process_query_on_exit_flag): Mention killing
1200 a buffer in docstring.
1201
1202 2009-07-17 Kenichi Handa <handa@m17n.org>
1203
1204 * casetab.c (shuffle): Fix the logic of setting up the cycle.
1205
1206 2009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1207
1208 * nsfns.m (Fns_set_alpha): Remove function.
1209 (syms_of_nsfns): Don't defsubr it.
1210
1211 * nsterm.m (ns_get_color): Remove incompatible color formats.
1212 (ns_color_to_lisp): Generate #rrggbb color format string.
1213
1214 2009-07-16 Richard Stallman <rms@gnu.org>
1215
1216 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
1217 (Fset_buffer_auto_saved): Handle save_length = -2.
1218
1219 2009-07-16 Chong Yidong <cyd@stupidchicken.com>
1220
1221 * xterm.c (Qx_gtk_map_stock): New var.
1222
1223 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
1224 of calling intern each time.
1225
1226 2009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1227
1228 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
1229 does tiling.
1230
1231 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
1232
1233 2009-07-14 Kenichi Handa <handa@m17n.org>
1234
1235 * font.c (font_vconcat_entity_vectors): New function.
1236 (struct font_sort_data): New member font_driver_preference.
1237 (font_compare): Check font_driver_preference.
1238 (font_sort_entities): The format of the first argument changed.
1239 (font_delete_unmatched): Likewise.
1240 (font_list_entities): The return type changed.
1241 (font_select_entity): The format of the second argument changed.
1242 (font_find_for_lface): Adjuste for the above changes.
1243 Don't suppress the checking of C even if the repertory supports it.
1244 (Flist_fonts): Adjust for the above changes.
1245
1246 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
1247 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
1248 Reject a font who has adstyle property that is different from a
1249 langname derived from registry property.
1250 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
1251
1252 2009-07-13 Eli Zaretskii <eliz@gnu.org>
1253
1254 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
1255 local copy of dirfilename.
1256
1257 2009-07-13 Kenichi Handa <handa@m17n.org>
1258
1259 * chartab.c (sub_char_table_ref_and_range): Fix the range check
1260 against max_char.
1261
1262 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
1263 calling XSYMBOL (sym).
1264
1265 2009-07-11 Eli Zaretskii <eliz@gnu.org>
1266
1267 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
1268 New function.
1269 (directory_files_internal) [WINDOWSNT]:
1270 Bind w32-get-true-file-attributes to either t or nil, depending whether
1271 the filesystem of the directory is fast or slow.
1272
1273 * w32.c (logon_network_drive): Don't assume PATH is an absolute
1274 file name.
1275 (is_slow_fs): New function.
1276 (stat): Use it to determine whether to issue more system calls to
1277 get accurate file attributes, when w32-get-true-file-attributes is
1278 `local'.
1279
1280 2009-07-10 Jan Djärv <jan.h.d@swipnet.se>
1281
1282 * xfns.c (Fx_select_font): Remember last font selected in
1283 x_last_font_name and use that the next time. Also try the frame
1284 parameter font-parameter as default to the font dialog.
1285
1286 2009-07-10 Kenichi Handa <handa@m17n.org>
1287
1288 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
1289
1290 2009-07-09 Eli Zaretskii <eliz@gnu.org>
1291
1292 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
1293
1294 * w32.c (stat): Treat UNC file names as residing on remote
1295 drives. (Bug#3542)
1296
1297 2009-07-09 Kenichi Handa <handa@m17n.org>
1298
1299 * fontset.c (fontset_find_font): Fix previous change.
1300
1301 2009-07-08 Michael Albinus <michael.albinus@gmx.de>
1302
1303 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
1304 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
1305 error flag.
1306
1307 2009-07-08 Kenichi Handa <handa@m17n.org>
1308
1309 * fontset.c (fontset_find_font): Fix the logic of handling
1310 charset_matched.
1311 (font_for_char): Delete unused var.
1312 (generate_ascii_font_name): Delete it.
1313
1314 * coding.h (JIS_TO_SJIS2): Fix the code range check.
1315
1316 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
1317 (encode_coding_sjis): Fix the code range check.
1318
1319 2009-07-07 Chong Yidong <cyd@stupidchicken.com>
1320
1321 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
1322 (Fexpand_file_name): Copy string data properly (Bug#3772).
1323
1324 2009-07-07 Jan Djärv <jan.h.d@swipnet.se>
1325
1326 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
1327 first MapNotify.
1328
1329 2009-07-07 Kenichi Handa <handa@m17n.org>
1330
1331 * character.h (unibyte_has_multibyte_table): Delete extern.
1332 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
1333
1334 * charset.c (Fset_charset_priority): Update charset_unibyte.
1335 (syms_of_charset): Initialize charset_unibyte.
1336
1337 * character.c (unibyte_has_multibyte_table): Delete it.
1338 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
1339 charset_unibyte.
1340 (multibyte_char_to_unibyte_safe): Likewise.
1341 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
1342
1343 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
1344 (x_produce_glyphs): Likewise.
1345
1346 * .gdbinit (xcharset): Fix the treating $arg0.
1347
1348 2009-07-04 Eli Zaretskii <eliz@gnu.org>
1349
1350 Emulation of `getloadavg' on MS-Windows.
1351 * w32.c: Include float.h
1352 (g_b_init_get_native_system_info, g_b_init_get_system_times)
1353 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
1354 (get_native_system_info, get_system_times): New functions.
1355 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
1356 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
1357 (globals_of_w32): Initialize g_b_init_get_native_system_info,
1358 g_b_init_get_system_times, and num_of_processors.
1359
1360 2009-07-03 Jason Rumney <jasonr@gnu.org>
1361
1362 * w32term.c (w32_initialize): Use standard types.
1363
1364 2009-07-03 Eli Zaretskii <eliz@gnu.org>
1365
1366 * dired.c (Ffile_attributes): Decode user and group names by the
1367 locale's encoding. (Bug#3443)
1368
1369 2009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
1370
1371 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
1372 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
1373
1374 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
1375
1376 * term.c (init_tty): Remove spurious #ifdef.
1377
1378 * m/mips.h: Mention this file is also used for netbsd.
1379 * m/pmax.h: Remove file.
1380
1381 2009-07-03 Jan Djärv <jan.h.d@swipnet.se>
1382
1383 * xterm.h (struct x_display_info): Add invisible_cursor.
1384 (struct x_output): Add current_cursor.
1385
1386 * xterm.c (XTtoggle_invisible_pointer): New function.
1387 (x_define_frame_cursor): Don't define cursor if invisible or the
1388 same as before. Set current_cursor.
1389 (x_create_terminal): Set toggle_invisible_pointer_hook.
1390
1391 * xfns.c (make_invisible_cursor): New function.
1392 (x_set_mouse_color): Call make_invisible_cursor.
1393 Set current_cursor.
1394 (x_window): Set current_cursor.
1395
1396 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
1397
1398 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
1399 inserting a character.
1400 (read_avail_input): Call frame_make_pointer_visible.
1401
1402 * frame.c (Vmake_pointer_invisible): New variable.
1403 (frame_make_pointer_invisible, frame_make_pointer_visible):
1404 New functions.
1405 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
1406
1407 * frame.h: Declare frame_make_pointer_invisible and
1408 frame_make_pointer_visible.
1409 (struct frame): Add pointer_invisible.
1410
1411 2009-07-02 Jan Djärv <jan.h.d@swipnet.se>
1412
1413 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
1414 frame isn't visible.
1415 (xg_frame_resized): If width/height is -1, get size of window
1416 from X server.
1417
1418 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
1419 for MapNotify.
1420
1421 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
1422 here or call change_frame_size. Just call flush_and_sync.
1423 (flush_and_sync): Reintroduce.
1424
1425 2009-07-01 Jan Djärv <jan.h.d@swipnet.se>
1426
1427 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
1428
1429 * xterm.c (x_handle_net_wm_state): Also look for sticky.
1430 (x_term_init): Initialize Xatom_net_wm_state_sticky.
1431
1432 * frame.h: Declare Qsticky.
1433
1434 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
1435
1436 * nsfns.m (ns_frame_parm_handlers): Ditto.
1437
1438 * frame.c: Declare Qsticky.
1439 (frame_parms): Add sticky.
1440
1441 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
1442
1443 * xterm.h: Declare x_set_sticky.
1444
1445 * xterm.c (x_set_sticky): New function.
1446
1447 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
1448 (xg_tool_bar_menu_proxy): Attach enter/leave events to
1449 xg_tool_bar_proxy_help_callback.
1450
1451 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
1452
1453 * frame.c: Qmaximized is new.
1454 (x_set_frame_parameters): Do not handle fullscreen specially.
1455 Only set width and height if explicitly set.
1456 (x_set_fullscreen): Handle Qmaximized.
1457 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
1458 (syms_of_frame): Initialize Qmaximized.
1459
1460 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
1461 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
1462
1463 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
1464 for Expose event. Add call to x_check_fullscreen for MapNotify event.
1465 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
1466 set gravity to NorthWestGravity when USE_GTK.
1467 (set_wm_state): New function.
1468 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
1469 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
1470 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
1471 or the case when no window manager is running. That means remove calls
1472 to x_real_positions and x_fullscreen_adjust.
1473
1474 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
1475 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
1476 flush_and_sync.
1477 (xg_height_changed): New function.
1478 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1479 and gtk_window_set_policy. Set frame gravity after parsing the
1480 geometry string.
1481 (xg_update_frame_menubar, free_frame_menubar)
1482 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
1483 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
1484 Remove calls to xg_frame_set_char_size.
1485
1486 2009-07-01 Kenichi Handa <handa@m17n.org>
1487
1488 * keyboard.c (decode_keyboard_code): New function.
1489 (tty_read_avail_input): Decode the input bytes if necessary.
1490
1491 * coding.c (setup_coding_system):
1492 Initialize coding->carryover_bytes to 0.
1493 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
1494 use Qno_conversion.
1495
1496 2009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1497
1498 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
1499
1500 2009-06-30 Chong Yidong <cyd@stupidchicken.com>
1501
1502 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
1503
1504 2009-06-30 Jason Rumney <jasonr@gnu.org>
1505
1506 * w32term.c (w32_initialize): Use GetModuleHandle for library that
1507 is already loaded.
1508 Set user model ID if supported (bug#1849).
1509
1510 2009-06-29 Jim Meyering <meyering@redhat.com>
1511
1512 Remove useless if-before-xfree test.
1513 * nsfont.m (nsfont_close): Remove useless test.
1514 * term.c (delete_tty): Likewise.
1515 * w32.c (system_process_attributes): Likewise.
1516 * w32font.c (w32font_close): Likewise.
1517 * xfaces.c (x_free_gc): Likewise.
1518 * xselect.c (buffer): Likewise.
1519
1520 2009-06-28 Andreas Schwab <schwab@linux-m68k.org>
1521
1522 * process.c (send_process): Keep decoded string in a local
1523 variable and protect it from GC. (Bug#3521)
1524
1525 2009-06-28 Eli Zaretskii <eliz@gnu.org>
1526
1527 * term.c (create_tty_output) [MSDOS]: #ifdef away.
1528 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
1529
1530 2009-06-28 Chong Yidong <cyd@stupidchicken.com>
1531
1532 * xdisp.c (start_display, handle_face_prop)
1533 (move_it_vertically_backward, cursor_row_fully_visible_p)
1534 (redisplay_window, try_window_id, produce_image_glyph):
1535 Delete some #ifdef-ed out code chunks that are now obsolete.
1536
1537 * xterm.c (x_update_window_begin, x_new_focus_frame)
1538 (x_scroll_bar_handle_click, handle_one_xevent)
1539 (handle_one_xevent, XTread_socket, x_focus_on_frame)
1540 (x_make_frame_visible, x_make_frame_invisible)
1541 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
1542 code chunks that are now obsolete.
1543
1544 2009-06-28 Michael Albinus <michael.albinus@gmx.de>
1545
1546 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
1547 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
1548 for hours, when optimzation is enabled.
1549 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
1550 (xd_read_message): Make them static.
1551
1552 2009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
1553
1554 * term.c (turn_on_face): Allow simultaneously bold and dim
1555 terminal faces (Bug#3530).
1556
1557 2009-06-27 Chong Yidong <cyd@stupidchicken.com>
1558
1559 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
1560
1561 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
1562 truncation glyphs (Bug#3686).
1563
1564 2009-06-27 Glenn Morris <rgm@gnu.org>
1565
1566 * m/pmax.h: Restore file, with only netbsd portions.
1567
1568 2009-06-26 David Reitter <david.reitter@gmail.com>
1569
1570 * nsterm.m (keydown): Avoid infinite loop.
1571
1572 2009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
1573
1574 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
1575 the arg FORCE_SYMBOL.
1576
1577 2009-06-25 Kenichi Handa <handa@m17n.org>
1578
1579 * fontset.c (fontset_find_font): When a usable rfont_def is found
1580 in a fallback font-group, make it the first element of the group.
1581
1582 2009-06-24 Chong Yidong <cyd@stupidchicken.com>
1583
1584 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
1585
1586 2009-06-24 Kenichi Handa <handa@m17n.org>
1587
1588 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
1589 set for C.
1590 (fontset_font): Record the availability of a font for C both in
1591 the realized fontsets of the current one and the default one.
1592
1593 2009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
1594
1595 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
1596 conditional, it is always defined on AIX.
1597
1598 2009-06-23 Miles Bader <miles@gnu.org>
1599
1600 * window.c (Vrecenter_redisplay): New variable.
1601 (syms_of_window): Initialize it.
1602 (Qtty): New extern declaration.
1603 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
1604
1605 2009-06-23 Jim Meyering <meyering@redhat.com>
1606
1607 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
1608 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
1609 pointer dereferences are guaranteed to be valid.
1610
1611 2009-06-23 Kenichi Handa <handa@m17n.org>
1612
1613 * emacs.c (main): Call init_font ().
1614
1615 * font.h (Vfont_log): Extern it.
1616 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
1617
1618 * font.c (font_sort_entities, font_list_entities)
1619 (font_matching_entity, font_open_entity)
1620 (font_close_object): Change font_add_log to FONT_ADD_LOG.
1621 (Vfont_log): Delete static.
1622 (font_log_env_checked): Delete this variable.
1623 (font_add_log): Don't check font_log_env_checked.
1624 (font_deferred_log): Check Vfont_log.
1625 (init_font): New function.
1626
1627 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
1628
1629 * w32font.c: Change font_add_log to FONT_ADD_LOG.
1630
1631 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
1632
1633 * xfont.c: Change font_add_log to FONT_ADD_LOG.
1634
1635 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
1636 (face_for_char): Don't call font_deferred_log here.
1637 (font_for_char): Likewise.
1638
1639 2009-06-22 Chong Yidong <cyd@stupidchicken.com>
1640
1641 * w32term.c (x_draw_glyph_string): Use the glyph string's width
1642 rather than its background_width for drawing the overline and
1643 underline (Bug#489).
1644
1645 * xterm.c (x_draw_glyph_string): Use the glyph string's width
1646 rather than its background_width for drawing the overline and
1647 underline (Bug#489).
1648 (xg_default_icon_file): New variable.
1649 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
1650 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
1651
1652 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
1653 (load_overlay_strings): Remove externs.
1654 (fast_find_position): Function deleted.
1655 (mouse_face_from_buffer_pos): New function, based on
1656 fast_find_position. Correctly handle before-strings,
1657 display-strings, and after-strings (Bug#1220).
1658 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
1659
1660 2009-06-21 Chong Yidong <cyd@stupidchicken.com>
1661
1662 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
1663 (move_it_in_display_line_to, move_it_in_display_line_to)
1664 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
1665
1666 2009-06-21 Chong Yidong <cyd@stupidchicken.com>
1667
1668 * Branch for 23.1.
1669
1670 2009-06-21 Jason Rumney <jasonr@gnu.org>
1671
1672 * w32term.c (keyboard_codepage): New static variable.
1673 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
1674 (w32_read_socket) [WM_CHAR]: Use it to decode character
1675 input (bug#3237).
1676 (w32_initialize): Initialize it.
1677 (codepage_for_locale): New function.
1678
1679 2009-06-20 Ken Raeburn <raeburn@raeburn.org>
1680
1681 * process.c (status_message): Pass Faset index argument as a lisp
1682 object, so as to work with USE_LISP_UNION_TYPE.
1683
1684 2009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1685
1686 * coding.c (Ffind_coding_systems_region_internal):
1687 Cache checked characters.
1688
1689 2009-06-18 Kenichi Handa <handa@m17n.org>
1690
1691 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
1692
1693 2009-06-18 Andreas Schwab <aschwab@redhat.com>
1694
1695 * xdisp.c (redisplay_internal): Check that the frame is still
1696 live after redisplay of its windows.
1697 (redisplay_windows): Check that the window is still live.
1698
1699 2009-06-17 Andreas Schwab <schwab@linux-m68k.org>
1700
1701 * coding.c (detect_coding_utf_16): Fix previous change.
1702
1703 2009-06-16 Kenichi Handa <handa@m17n.org>
1704
1705 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
1706 UTF-16 by checking the dispersion of Eth and Oth bytes.
1707
1708 2009-06-15 Andreas Schwab <schwab@linux-m68k.org>
1709
1710 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
1711
1712 2009-06-15 Kenichi Handa <handa@m17n.org>
1713
1714 * process.c (status_message): Fix previous change. Be sure to
1715 decode a localized string.
1716
1717 2009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1718
1719 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
1720 add comment explaining why.
1721
1722 2009-06-14 Sidney Markowitz <sidney@sidney.com>
1723
1724 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
1725
1726 2009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
1727
1728 * nsfont.m (ns_attribute_value): Remove.
1729 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
1730 (ns_has_attribute): Shrink the normal range.
1731 (ns_findfonts): Don't worry about requested spec in determining
1732 need for synthItal.
1733 (ns_get_covering_families): Retain scriptToFamilies.
1734
1735 2009-06-14 Seiji Zenitani <zenitani@mac.com>
1736
1737 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
1738
1739 2009-06-11 Kenichi Handa <handa@m17n.org>
1740
1741 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
1742 overhang for the static composition case.
1743
1744 2009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1745
1746 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
1747 overhang for the automatic composition case.
1748
1749 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
1750 composition case.
1751
1752 2009-06-10 Chong Yidong <cyd@stupidchicken.com>
1753
1754 * xdisp.c (get_next_display_element): When handling wrap-prefix
1755 and line-prefix, treat \n as a control character (bug#3502).
1756
1757 2009-06-10 Kenichi Handa <handa@m17n.org>
1758
1759 * font.c (font_parse_family_registry): Fix for one-char foundry.
1760 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
1761
1762 2009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
1763
1764 * process.c (status_message): Fix handling of multibyte signal
1765 string (Bug#3499).
1766
1767 2009-06-09 Jim Meyering <meyering@redhat.com>
1768
1769 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
1770 color name is missing.
1771
1772 2009-06-09 Kenichi Handa <handa@m17n.org>
1773
1774 * charset.c (Fmap_charset_chars): In docstring, state clearly that
1775 FROM-CODE and TO-CODE are codepoints of CHARSET.
1776
1777 2009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
1778
1779 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
1780
1781 2009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
1782
1783 Changes to support :script/:lang/:otf in NS font driver.
1784 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
1785 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
1786 indicate not part of font driver interface, and change callers.
1787 (ns_get_family): Remove pointless null check.
1788 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
1789 ns_spec_to_descriptor, ns_descriptor_to_entity.
1790 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
1791 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
1792 (ns_spec_to_descriptor, ns_descriptor_to_entity)
1793 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
1794 (ns_get_req_script, ns_accumulate_script_ranges)
1795 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
1796 New functions.
1797 (nsfont_list, nsfont_match): Use ns_findfonts.
1798 (nsfont_open): Use font descriptor instead of traits.
1799 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
1800 (dump_glyphstring): Rename to ns_dump_glyphstring.
1801
1802 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
1803
1804 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
1805
1806 * fontset.c (fontset_from_font): Remove NS-specific code.
1807
1808 2009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
1809
1810 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
1811 nonactive windows.
1812
1813 2009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
1814
1815 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
1816
1817 2009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
1818
1819 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
1820
1821 2009-06-07 Chong Yidong <cyd@stupidchicken.com>
1822
1823 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
1824 account for the overflowing of newlines into the last glyph on the
1825 display line (Bug#3482).
1826
1827 2009-06-05 David Reitter <david.reitter@gmail.com>
1828
1829 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
1830 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
1831 Fns_selection_exists_p, Fns_selection_owner_p.
1832
1833 2009-06-03 Jason Rumney <jasonr@gnu.org>
1834
1835 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
1836 available. (Bug#3379)
1837
1838 2009-05-29 Kenichi Handa <handa@m17n.org>
1839
1840 * coding.c (get_translation_table):
1841 Check Venable_character_translation.
1842
1843 2009-05-26 David Reitter <david.reitter@gmail.com>
1844
1845 * nsterm.m (ns_raise_frame): Only raise frame if visible.
1846 (x_make_frame_visible): Move frame to front rather than calling
1847 ns_raise_frame().
1848 (keyDown:): Do not swallow events that aren't re-sent if frame
1849 isn't key window.
1850 (drawRect:): Do not set visibility/iconified flags because
1851 drawRect may be called by NSView even if the frame is hidden.
1852
1853 * nsfns.m (Fx_create_frame): Follow other ports in
1854 determining visibility; default to t. Ensure async_visible is set.
1855
1856 2009-05-23 Eli Zaretskii <eliz@gnu.org>
1857
1858 * dired.c (Ffile_attributes): Doc fix.
1859
1860 2009-05-22 Chong Yidong <cyd@stupidchicken.com>
1861
1862 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
1863
1864 2009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
1865
1866 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
1867 and xfont_scratch_props.
1868 (syms_of_xfont): Do it here instead.
1869 (xfont_find_ccl_program): Delete, unused.
1870 (xfont_open): Delete unused var `i'.
1871
1872 2009-05-21 Kenichi Handa <handa@m17n.org>
1873
1874 * fontset.c (Qlatin): Don't make it static.
1875
1876 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
1877 New functions.
1878 (xfont_scripts_cache, xfont_scratch_props): New variables.
1879 (Qlatin, Vscalable_fonts_allowed): Extern it.
1880 (xfont_list_pattern): Argument changed. Callers changed.
1881 Check Vscalable_fonts_allowed. Check the support of a script.
1882 (xfont_list): Don't reject a font spec with :script property.
1883 (xfont_has_char): Fix setting of encoding.
1884 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
1885 xfont_scratch_props.
1886
1887 2009-05-19 Kenichi Handa <handa@m17n.org>
1888
1889 * font.c (font_sort_entities): Rename from font_sort_entites.
1890 Callers changed.
1891
1892 2009-05-18 Kenichi Handa <handa@m17n.org>
1893
1894 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
1895
1896 2009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
1897
1898 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
1899 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
1900
1901 2009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1902
1903 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
1904 (x_delete_terminal): Dissociate resource database from display and
1905 then call XrmDestroyDatabase before closing display.
1906
1907 2009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
1908
1909 * nsterm.m (ns_read_socket): Remove unused variable.
1910 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
1911 whether selected frame is viable before raising it (based on patch
1912 by David Reitter), and improve commentary.
1913 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
1914
1915 2009-05-15 Kenichi Handa <handa@m17n.org>
1916
1917 * font.c (Ffont_spec): Check arguments.
1918
1919 2009-05-14 Chong Yidong <cyd@stupidchicken.com>
1920
1921 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
1922 weight when testing attributes (Bug#3282).
1923
1924 2009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1925
1926 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
1927 what we expect to get in the next ConfigureNotify event.
1928
1929 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
1930 before Xft one (Bug#1696).
1931
1932 2009-05-07 David Reitter <david.reitter@gmail.com>
1933
1934 * nsfns.m (Fx_display_planes): Compute bitplanes using
1935 NSBitsPerPixelFromDepth (Bug#3207).
1936
1937 2009-05-10 Chong Yidong <cyd@stupidchicken.com>
1938
1939 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
1940
1941 2009-05-10 Ulrich Mueller <ulm@gentoo.org>
1942
1943 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
1944
1945 2009-05-07 David Reitter <david.reitter@gmail.com>
1946
1947 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
1948 Respect mouse face background.
1949
1950 2009-05-07 David Reitter <david.reitter@gmail.com>
1951
1952 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
1953 Mouse movement/highlight: bracket drawing operations
1954 in ns_update_begin and ns_update_end.
1955
1956 2009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
1957
1958 * nsfns.m (ns_get_screen): Rewrite.
1959 Don't presume selected-frame is of type `ns'.
1960
1961 * font.c (font_update_drivers): Sanity fallback to avoid disabling
1962 all drivers.
1963
1964 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
1965
1966 2009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1967
1968 * keyboard.h (add_user_signal): Fix typo in extern.
1969
1970 * lisp.h (add_user_signal): Remove extern.
1971
1972 * unexelf.c (unexec): Consider a section to precede the .bss section
1973 if its addresses overlap that of .bss.
1974 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
1975 instead of dumping process.
1976
1977 2009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
1978
1979 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
1980
1981 2009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
1982
1983 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
1984
1985 2009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
1986
1987 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
1988 any statements.
1989
1990 2009-05-02 Andreas Schwab <schwab@linux-m68k.org>
1991
1992 * process.c (read_process_output): Make sure the current buffer is
1993 always restored.
1994
1995 * coding.c (record_conversion_result): Don't modify
1996 Vlast_code_conversion_error for successful result.
1997 (alloc_destination): Don't clobber conversion result. (Bug#1650)
1998
1999 2009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
2000
2001 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
2002 (load_charset_map): Remove unnecessary code.
2003
2004 2009-04-30 David Reitter <david.reitter@gmail.com>
2005
2006 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
2007 through f24.
2008
2009 2009-04-30 Chong Yidong <cyd@stupidchicken.com>
2010
2011 * xfaces.c (face_at_buffer_position): New arg base_face_id.
2012
2013 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
2014 face_at_buffer_position.
2015 (face_before_or_after_it_pos, get_next_display_element)
2016 (note_mouse_highlight): Update face_at_buffer_position call.
2017
2018 * term.c (term_mouse_highlight):
2019 * msdos.c (IT_note_mouse_highlight):
2020 * fontset.c (Finternal_char_font):
2021 * font.c (font_at, font_range): Update face_at_buffer_position call.
2022
2023 * dispextern.h (face_at_buffer_position): Update prototype.
2024
2025 2009-04-30 Kenichi Handa <handa@m17n.org>
2026
2027 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
2028
2029 2009-04-29 Andreas Schwab <schwab@linux-m68k.org>
2030
2031 * callproc.c (Fcall_process): Fix GC protection. Make sure
2032 current buffer is always restored.
2033
2034 2009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2035
2036 * atimer.c (init_atimer): Also clear stopped_atimers.
2037
2038 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
2039
2040 * process.c (create_process): Clean up merger residues of
2041 2008-07-17 change.
2042
2043 2009-04-29 Ulrich Mueller <ulm@gentoo.org>
2044
2045 * lread.c (Vread_circle): New variable.
2046 (read1): Disable recursive read if Vread_circle is nil.
2047
2048 2009-04-29 Kenichi Handa <handa@m17n.org>
2049
2050 * fontset.h (set_default_ascii_font): Delete extern.
2051
2052 * fontset.c (set_default_ascii_font): Delete this unused function.
2053
2054 * frame.c (x_set_font): When ARG is a font-object, check if the
2055 font-object matches with the ASCII font-spec of the frame's
2056 fontset. If not, create a new fontset for the frame. (Bug #3075)
2057
2058 2009-04-28 Andreas Schwab <schwab@linux-m68k.org>
2059
2060 * fns.c (Flocale_info): Protect vector from GC during decoding.
2061
2062 * process.c (Fstart_process): Protect argv strings from GC during
2063 encoding.
2064
2065 2009-04-27 Andreas Schwab <schwab@linux-m68k.org>
2066
2067 * sysdep.c: Include <ctype.h>.
2068
2069 2009-04-27 David Reitter <david.reitter@gmail.com>
2070
2071 * nsfont.m (nsfont_open): Remove unused variable shrink.
2072 Remove commented-out code.
2073
2074 2009-04-26 Johan Bockgård <bojohan@gnu.org>
2075
2076 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
2077
2078 2009-04-25 Jason Rumney <jasonr@gnu.org>
2079
2080 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
2081
2082 2009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2083
2084 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
2085 Swap bytes in short integer if fringe bitmap width > 8.
2086
2087 2009-04-23 Kenichi Handa <handa@m17n.org>
2088
2089 * xfaces.c (Fx_list_fonts): If a font size is specified in
2090 PATTERN, set it in returned scalable fonts.
2091
2092 2009-04-22 Chong Yidong <cyd@stupidchicken.com>
2093
2094 * keyboard.c (Fset_input_meta_mode): Doc fix.
2095
2096 * dispnew.c (Fsend_string_to_terminal): Doc fix.
2097
2098 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
2099
2100 * coding.c (Fterminal_coding_system): Doc fix.
2101
2102 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
2103 (Fx_display_pixel_height, Fx_display_planes)
2104 (Fx_display_color_cells, Fx_server_max_request_size)
2105 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
2106 (Fx_display_mm_height, Fx_display_mm_width)
2107 (Fx_display_backing_store, Fx_display_visual_class)
2108 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
2109 Doc fixes, replacing "terminal id" with "terminal object".
2110 (check_x_display_info): Handle terminal objects instead of
2111 terminal ids.
2112
2113 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
2114 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
2115 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
2116 Doc fixes, replacing "terminal id" with "terminal object".
2117
2118 2009-04-21 Kenichi Handa <handa@m17n.org>
2119
2120 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
2121 (font_score): Check AVGWIDTH too.
2122
2123 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
2124 worst case.
2125 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
2126 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
2127
2128 2009-04-19 Jason Rumney <jasonr@gnu.org>
2129
2130 The following changes fix Bug#3005 for wide glyphs on each platform,
2131 without reintroducing Bug#1258 for stretch glyphs.
2132
2133 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
2134 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
2135 get_phys_cursor_geometry.
2136
2137 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
2138 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
2139 using get_phys_cursor_geometry.
2140
2141 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
2142 correctly calculated.
2143
2144 2009-04-19 Jan Djärv <jan.h.d@swipnet.se>
2145
2146 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
2147 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
2148 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
2149 is deprecated.
2150
2151 2009-04-18 Andreas Schwab <schwab@linux-m68k.org>
2152
2153 * font.c (font_put_frame_data): Use xfree instead of free.
2154
2155 2009-04-17 Juanma Barranquero <lekktu@gmail.com>
2156
2157 * w32font.c (Qja, Qko): Remove declarations.
2158 (syms_of_w32font): Don't DEFSYM them.
2159
2160 2009-04-17 Chong Yidong <cyd@stupidchicken.com>
2161
2162 * font.c (Qja, Qko): Move definitions here from ftfont.c.
2163
2164 * font.h (Qja, Qko): Extern them.
2165
2166 * ftfont.c (Qja, Qko): Remove declarations.
2167
2168 * xfont.c (Qja, Qko): Remove declarations.
2169
2170 2009-04-17 Kenichi Handa <handa@m17n.org>
2171
2172 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
2173 string from a vector to handle Latin-1 characters correctly.
2174
2175 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
2176 entity even if the cache hits.
2177
2178 2009-04-16 Andreas Schwab <schwab@linux-m68k.org>
2179
2180 * search.c (boyer_moore): Use zero as marker value for a possible
2181 match instead of depending on overflow behavior. (Bug#2844)
2182
2183 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
2184 * lisp.h: Adjust prototypes.
2185
2186 2009-04-16 Chong Yidong <cyd@stupidchicken.com>
2187
2188 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
2189 change (Bug#3003).
2190
2191 2009-04-16 Kenichi Handa <handa@m17n.org>
2192
2193 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
2194
2195 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
2196 adstyle.
2197
2198 * ftfont.c (Qja, Qko): Don't make them static.
2199 (enum ftfont_cache_for): New enum.
2200 (fc_charset_table): Undo the previous change.
2201 (ftfont_get_latin1_charset): Delete it.
2202 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
2203 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
2204 non-scarable font, try to get AVERAGE_WIDTH.
2205 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
2206 Change ft_face_cache from a list of a hash-table. Don't check
2207 `ja' and `ko' adstyle here.
2208 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
2209 FTFONT_CACHE_FOR_CHARET.
2210 (ftfont_get_charset): Undo the previous change.
2211 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
2212 (ftfont_close): Likewise.
2213 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
2214
2215 * font.c (font_sort_entites): Change the meaning of the arg
2216 BEST-ONLY. Don't optimize for VEC of lenght 1.
2217 (font_select_entity): Just return the value of font_sort_entites.
2218
2219 * xfaces.c (merge_face_vectors): Reflect font properties in
2220 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
2221 font_clear_prop if a face attribute doesn't change.
2222
2223 * charset.h (charset_ksc5601): Extern it.
2224
2225 * charset.c (charset_ksc5601): New variable.
2226 (Fdefine_charset_internal): Set charset_ksc5601.
2227 (init_charset_once): Initialize charset_ksc5601 to -1.
2228
2229 2009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
2230
2231 * fileio.c (history_delete_duplicates): Remove unused declaration.
2232
2233 * callint.c (history_delete_duplicates): New declaration.
2234 (Fcall_interactively): Remove command history duplicates when
2235 history_delete_duplicates is true.
2236
2237 2009-04-14 Eli Zaretskii <eliz@gnu.org>
2238
2239 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
2240
2241 2009-04-14 Kenichi Handa <handa@m17n.org>
2242
2243 * font.c (Ffont_info): Fix docstring. Fix the second element of
2244 the returned value (bug#2949).
2245
2246 2009-04-14 Chong Yidong <cyd@stupidchicken.com>
2247
2248 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
2249
2250 2009-04-14 Kenichi Handa <handa@m17n.org>
2251
2252 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
2253 encoding charset is ascii_compatible.
2254
2255 * charset.c (Fdefine_charset_internal): Make charset
2256 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
2257 code_offset is 0, and covers all ASCII characters.
2258
2259 2009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
2260
2261 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
2262 (ns_string_to_pasteboard_internal):
2263 * nsmenu.m (process_dialog):
2264 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
2265 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
2266 * lisp.h (Fx_load_color_file): Declare.
2267
2268 2009-04-13 Kenichi Handa <handa@m17n.org>
2269
2270 * font.c (font_delete_unmatched): Preserve the order of list elements.
2271 (font_select_entity): Suppress the code to optimize for the same
2272 kind of fonts.
2273 (font_load_for_lface): Get a font that supports at least ASCII
2274 characters.
2275
2276 * ftfont.c (Qja, Qko): New variables.
2277 (fc_charset_table): Delete uniquifier data for iso8859-1.
2278 (ftfont_get_latin1_charset): New function.
2279 (get_adstyle_property): New function.
2280 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
2281 bitmap fonts.
2282 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
2283 Delete iso-8859-1 range from the charset of fonts whose adstyle is
2284 `ko' or `ja'.
2285 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
2286 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
2287 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
2288 property.
2289 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
2290 (syms_of_ftfont): DEFSYM Qja and Qko.
2291
2292 2009-04-09 Kenichi Handa <handa@m17n.org>
2293
2294 * charset.c (map_charset_chars): For a charset of `superset'
2295 method, fix calculation of code range.
2296
2297 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
2298 from the list of extra properties.
2299 (font_clear_prop): Be sure to delete `:name' font property.
2300
2301 2009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2302
2303 * dispnew.c (redraw_overlapping_rows): Fix detection of
2304 overlapping for topmost and bottommost rows.
2305
2306 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
2307
2308 2009-04-06 Jason Rumney <jasonr@gnu.org>
2309
2310 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
2311
2312 2009-04-06 Kenichi Handa <handa@m17n.org>
2313
2314 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
2315
2316 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
2317
2318 2009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2319
2320 * ftfont.c (ftfont_open): Fix checking of the return value of
2321 FT_Load_Char. Fix setting font->underline_thickness.
2322
2323 2009-04-04 Chong Yidong <cyd@stupidchicken.com>
2324
2325 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
2326 (Fterminal_parameters, Fterminal_parameter)
2327 (Fset_terminal_parameter): In doc string, refer to terminal
2328 objects rather than terminal ids.
2329
2330 2009-04-04 Eli Zaretskii <eliz@gnu.org>
2331
2332 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
2333 ret_lim_data. (Bug#2867)
2334
2335 2009-04-03 Chong Yidong <cyd@stupidchicken.com>
2336
2337 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
2338 so they don't get wider than the window, matching 2006-01-23
2339 change to the partner function in xdisp.c (Bug#2800).
2340
2341 2009-04-03 Kenichi Handa <handa@m17n.org>
2342
2343 * print.c (print_object): Make each lowest sub_char_table start a
2344 new line (Bug#2866).
2345
2346 2009-04-02 Kenichi Handa <handa@m17n.org>
2347
2348 * fontset.c (fontset_font): Record no-font when a fontset
2349 explicitly tells not to try another font-specs.
2350
2351 2009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
2352
2353 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
2354
2355 2009-03-30 Kenichi Handa <handa@m17n.org>
2356
2357 * fontset.c (fontset_from_font): Specify only registry in a
2358 font-spec for all characters supported by that registry.
2359
2360 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
2361 even if HAVE_M17N_FLT is not defined.
2362
2363 2009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
2364
2365 * ftfont.c: Conditionalize prototyping and use of
2366 ftfont_variation_glyphs.
2367
2368 2009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
2369
2370 * frame.c (delete_frame): Work around compiler bug.
2371
2372 * editfns.c (general_insert_function): Adjust to insdel.c changes.
2373 * insdel.c (prepare_to_modify_buffer, signal_before_change):
2374 Some more EMACS_INT.
2375 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
2376
2377 * xdisp.c (dump_glyph): Fix typo.
2378
2379 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
2380 (adjust_markers_gap_motion, adjust_markers_for_delete)
2381 (adjust_markers_for_insert, adjust_point)
2382 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
2383 (make_gap, copy_text, count_size_as_multibyte, insert)
2384 (insert_and_inherit, insert_before_markers)
2385 (insert_before_markers_and_inherit, insert_1)
2386 (count_combining_before, count_combining_after, insert_1_both)
2387 (insert_from_string, insert_from_string_before_markers)
2388 (insert_from_string_1, insert_from_gap, insert_from_buffer)
2389 (insert_from_buffer_1, adjust_after_replace)
2390 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
2391 (replace_range_2, del_range, del_range_1, del_range_byte)
2392 (del_range_both, del_range_2, modify_region)
2393 (prepare_to_modify_buffer, signal_before_change)
2394 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
2395 for buffer positions and sizes.
2396 * lisp.h: Adjust prototypes accordingly.
2397
2398 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
2399 (non_regular_inserted, non_regular_nbytes, read_non_regular)
2400 (Finsert_file_contents): Use EMACS_INT for buffer positions.
2401
2402 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
2403
2404 2009-03-27 Jan Djärv <jan.h.d@swipnet.se>
2405
2406 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
2407 lines and columns so we keep the same pixel height and width.
2408
2409 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
2410 the property _NET_WM_STATE has changed.
2411 (x_handle_net_wm_state): New function to update frame parameter
2412 fullscreen.
2413 (x_term_init): Initialize atoms for _NET_WM_STATE.
2414
2415 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
2416
2417 2009-03-27 Kevin Ryde <user42@zip.com.au>
2418
2419 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
2420 Gpm_GetEvent as an error that justifies closing the filedescriptor.
2421 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
2422 (Fgpm_mouse_stop): Pass that new parameter.
2423 * termhooks.h (close_gpm): Adjust prototype.
2424
2425 2009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
2426
2427 * lisp.h (Fx_focus_frame): Declare.
2428
2429 * callint.c (Fcall_interactively): For '^' just delegate the work to
2430 handle-shift-selection.
2431 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
2432
2433 2009-03-24 Chong Yidong <cyd@stupidchicken.com>
2434
2435 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
2436
2437 * data.c (Qinteractive_form): New variable.
2438 (Finteractive_form): Use it.
2439
2440 * eval.c (Fcommandp): Use Qinteractive_form.
2441
2442 2009-03-24 Jason Rumney <jasonr@gnu.org>
2443
2444 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
2445 Calculate total size precisely. Decode environment variables
2446 before substituting. (Bug#38)
2447
2448 2009-03-24 Kenichi Handa <handa@m17n.org>
2449
2450 * font.c (find_font_encoding): Return Qnil for unsupported
2451 encoding (Bug#2722).
2452
2453 2009-03-23 Jan Djärv <jan.h.d@swipnet.se>
2454
2455 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
2456 that gdpy is set.
2457
2458 2009-03-22 Alan Mackenzie <acm@muc.de>
2459
2460 * callint.c (Finteractive): Clarify the doc string - even
2461 promptless elements need \n separators.
2462
2463 2009-03-22 Jason Rumney <jasonr@gnu.org>
2464
2465 * w32term.c (syms_of_w32term): Doc fix for
2466 x-use-underline-position-properties.
2467
2468 2009-03-21 Eli Zaretskii <eliz@gnu.org>
2469
2470 * w32.c (getpwuid): Change argument type to unsigned.
2471 (struct w32_id): Change type of `rid' member to unsigned.
2472 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
2473 argument ID to unsigned. All callers changed.
2474 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
2475
2476 2009-03-20 Eli Zaretskii <eliz@gnu.org>
2477
2478 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
2479 negative, produce a float value.
2480
2481 * dired.c (make_uid, make_gid): New functions.
2482 (Ffile_attributes): Use them to avoid negative UID and GID.
2483
2484 2009-03-20 Juanma Barranquero <lekktu@gmail.com>
2485
2486 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
2487 (syms_of_keyboard) <command-hook-internal, input-method-function>:
2488 Fix typos in docstrings.
2489
2490 2009-03-19 Kenichi Handa <handa@m17n.org>
2491
2492 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
2493 changed, use font_load_for_lface to get a new font object.
2494 Call free_realized_fontset after handling ASCII font change.
2495
2496 * frame.c (x_set_font): Handle the case that ARG is a cons.
2497
2498 2009-03-19 Glenn Morris <rgm@gnu.org>
2499
2500 * fileio.c (Fsubstitute_in_file_name): Doc fix.
2501
2502 2009-03-19 Chong Yidong <cyd@stupidchicken.com>
2503
2504 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
2505
2506 2009-03-19 Kenichi Handa <handa@m17n.org>
2507
2508 * charset.c (load_charset_map_from_file): When a mapfile can't be
2509 loaded, signal an error.
2510
2511 2009-03-18 Eli Zaretskii <eliz@gnu.org>
2512
2513 * dired.c (Ffile_attributes): Make sure UID and GID are always
2514 positive, even if the value is too large for a positive EMACS_INT.
2515 Doc fix.
2516
2517 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
2518
2519 2009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2520
2521 * xmenu.c (xdialog_show): Move Fredisplay call ...
2522 (Fx_popup_dialog): ... here.
2523
2524 2009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
2525
2526 * dired.c (file_name_completion): Disable the first optimization just
2527 installed, since it is not implemented correctly.
2528
2529 2009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
2530
2531 * dired.c (file_name_completion): Check completion-ignored-extensions
2532 only if the entry can affect bestmatch.
2533 Stop the search early, as Ftry_completion already does.
2534
2535 2009-03-17 Chong Yidong <cyd@stupidchicken.com>
2536
2537 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
2538
2539 2009-03-15 Chong Yidong <cyd@stupidchicken.com>
2540
2541 * keyboard.c (parse_menu_item): Don't display remappings as menu
2542 equivalent bindings (Bug#788).
2543
2544 2009-03-15 Jason Rumney <jasonr@gnu.org>
2545
2546 * w32term.h (WM_EMACS_PAINT): New message.
2547 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
2548 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
2549 before passing to lisp thread. (Bug#950)
2550
2551 2009-03-14 David Reitter <david.reitter@gmail.com>
2552
2553 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
2554 variable as it was never reset.
2555 (ns_term_init): Remove initialization of Lisp-settable defaults
2556 and ns_expand_space.
2557 (-setPanelFromDefaultValues): Remove ns_expand_space.
2558 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
2559 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
2560 i.e. no additional spacing, similar to Carbon port.
2561
2562 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
2563 * nsfns.m (ns-popup-prefs-panel): Remove.
2564
2565 2009-03-14 Jan Djärv <jan.h.d@swipnet.se>
2566
2567 * sound.c (alsa_configure): Remove call to deprecated
2568 snd_pcm_sw_params_set_xfer_align.
2569
2570 2009-03-14 Stephen Berman <stephen.berman@gmx.net>
2571
2572 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
2573 after clicking in a detached tool bar.
2574 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
2575
2576 2009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
2577
2578 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
2579 int/Lisp_Object mixup).
2580
2581 2009-03-13 Kenichi Handa <handa@m17n.org>
2582
2583 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
2584 Handle NAME nil and t correctly. Callers changed.
2585 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
2586 (set_fontset_font): Change ARG to a vector. Handle range_list in
2587 ARG correctly.
2588 (Fset_fontset_font): Fix the case that TARGET is both a script
2589 name and charset name. Adjust the arg to set_fontset_font for
2590 the above change.
2591 (fontset_from_font): Fix previous change.
2592 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
2593 entry. If FONTSET is the default fontset, don't set the extra
2594 slot of the returning char-table.
2595
2596 2009-03-12 Juanma Barranquero <lekktu@gmail.com>
2597
2598 * nsfns.m (Fx_close_connection): Doc fix.
2599 (Fns_do_applescript): Reflow docstring.
2600 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
2601 (Fx_display_pixel_width, Fx_display_pixel_height)
2602 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
2603 Fix typos in docstrings.
2604 (Fns_set_alpha): Fix typos in error messages.
2605
2606 2009-03-12 David Reitter <david.reitter@gmail.com>
2607
2608 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
2609 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
2610 were used for such events.
2611
2612 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
2613 (toggleToolbar, performDragOperation, runHelp): Use it.
2614
2615 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
2616 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
2617
2618 2009-03-11 Kenichi Handa <handa@m17n.org>
2619
2620 * font.h (font_open_by_spec): Extern it.
2621
2622 * font.c (font_open_by_spec): New function.
2623 (font_open_by_name): Use font_open_by_spec.
2624
2625 * frame.c (x_set_font): When ARG is a font-object, don't alter the
2626 fontset of the frame.
2627
2628 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
2629 modify the default font of frames that use this fontset.
2630 (num_auto_fontsets): New variable.
2631 (fontset_from_font): Use num_auto_fontsets to decide a fontset
2632 name. Be sure to set FONTSET_ASCII to the correct font name.
2633 (update_auto_fontset_alist): New function.
2634
2635 2009-03-11 Juanma Barranquero <lekktu@gmail.com>
2636
2637 * makefile.w32-in: Update dependencies.
2638
2639 2009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
2640
2641 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
2642
2643 2009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
2644
2645 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
2646
2647 2009-03-10 Chong Yidong <cyd@stupidchicken.com>
2648
2649 * lread.c (Feval_buffer): Doc fix.
2650
2651 2009-03-09 Kenichi Handa <handa@m17n.org>
2652
2653 * charset.c (Qfile_name_handler_alist): Extern it.
2654 (load_charset_map_from_file): Temporarily bind
2655 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
2656
2657 2009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
2658
2659 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
2660 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
2661
2662 2009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
2663
2664 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
2665 (x_set_window_size): Change back to calculated method of setting
2666 toolbar height under Cocoa. (Bug#2546)
2667 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
2668 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
2669
2670 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
2671
2672 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
2673 accelerator in parens under GNUstep.
2674
2675 2009-03-06 Kenichi Handa <handa@m17n.org>
2676
2677 These changes are to detect incorrect composition sequence without
2678 looking ahead the source. (Bug#2370)
2679
2680 * coding.h: Include "composite.h".
2681 (enum compisition_state): New enum.
2682 (struct compisition_status): New struct.
2683 (struct iso_2022_spec): New member cmp_status.
2684 (struct emacs_mule_spec): New struct.
2685 (struct coding_system): New members ctext_extended_segment_len and
2686 embedded_utf_8. Change the union member
2687 spec.emacs_mule_full_support to spec.emacs_mule.
2688
2689 * coding.c (CODING_ISO_CMP_STATUS): New macro.
2690 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
2691 (MAX_ANNOTATION_LENGTH): Define to 5.
2692 (ADD_COMPOSITION_DATA): New arg nbytes.
2693 (emacs_mule_char): New arg cmp_status.
2694 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
2695 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
2696 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
2697 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
2698 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
2699 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
2700 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
2701 (EMACS_MULE_COMPOSITION_END): New macro.
2702 (emacs_mule_finish_composition): New function.
2703 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
2704 (decode_coding_emacs_mule): Avoid long looking ahead while
2705 handling composition.
2706 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
2707 (ENCODE_COMPOSITION_RULE): New macro.
2708 (finish_composition): New function.
2709 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
2710 (DECODE_COMPOSITION_START): New implementation.
2711 (DECODE_COMPOSITION_END): Likewise.
2712 (STORE_COMPOSITION_RULE): New macro.
2713 (decode_coding_iso_2022): Avoid long looking ahead while handling
2714 composition, CTEXT extended segment, and embedded UTF-8.
2715 (setup_coding_system): For a coding of type iso-2022, reset
2716 CODING_ISO_EXTSEGMENT_LEN (coding) and
2717 CODING_ISO_EMBEDDED_UTF_8 (coding).
2718 (get_translation): Delete arguments last_block, from_nchars,
2719 to_nchars. Callers changed.
2720 (produce_chars): Don't modify charbuf. Adjusted for the change of
2721 get_translation.
2722 (produce_composition): Adjust for the new annotation sequence.
2723 (handle_composition_annotation): Likewise.
2724 (consume_chars): Adjust for the change of get_translation.
2725
2726 2009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
2727
2728 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
2729
2730 2009-03-05 Kenichi Handa <handa@m17n.org>
2731
2732 * font.c (font_select_entity): New function.
2733 (font_find_for_lface): Use font_select_entity to select a font.
2734
2735 * fontset.c (fontset_find_font): If a font found without
2736 restricting to the characters C doesn't support C, try to find a
2737 font with C restriction.
2738
2739 2009-03-04 Nikolaj Schumacher <me@nschum.de>
2740
2741 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2742
2743 2009-03-04 Jason Rumney <jasonr@gnu.org>
2744
2745 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
2746 characters that have already been read. (Bug#2569)
2747
2748 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
2749 Log an error message if check_image_size failed.
2750 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
2751 (gs_load): Mention max-image-size in size error message. (Bug#2560)
2752
2753 2009-03-02 Eli Zaretskii <eliz@gnu.org>
2754
2755 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
2756 when decoding process output.
2757
2758 2009-03-01 Richard M Stallman <rms@gnu.org>
2759
2760 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
2761
2762 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
2763
2764 2009-02-28 Eli Zaretskii <eliz@gnu.org>
2765
2766 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
2767 (decode_coding_emacs_mule, decode_coding_iso_2022)
2768 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
2769 (decode_coding_raw_text, decode_coding_charset)
2770 (setup_coding_system, decode_eol, decode_coding, consume_chars):
2771 Honor inhibit-eol-conversion. (Bug #2186)
2772
2773 2009-02-28 Jason Rumney <jasonr@gnu.org>
2774
2775 * coding.c (detect_coding_charset): If not checking latin extra,
2776 fail on characters between 0x80 and 0xA0. (Bug#2354)
2777
2778 2009-02-28 Eli Zaretskii <eliz@gnu.org>
2779
2780 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2781 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
2782
2783 2009-02-27 Glenn Morris <rgm@gnu.org>
2784
2785 * callint.c (Finteractive): Doc fix.
2786
2787 2009-02-27 Kenichi Handa <handa@m17n.org>
2788
2789 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
2790
2791 2009-02-27 Chong Yidong <cyd@stupidchicken.com>
2792
2793 * font.c (font_style_to_value): Set value for unknown symbols to
2794 100 instead of 255.
2795 (weight_table, slant_table, width_table): Treat "unspecified" as
2796 the default value.
2797
2798 2009-02-26 Juanma Barranquero <lekktu@gmail.com>
2799
2800 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
2801
2802 2009-02-25 Juanma Barranquero <lekktu@gmail.com>
2803
2804 * lread.c (Fload): Stop checking Vloads_in_progress and signal
2805 error as soon as a recursive load is detected.
2806
2807 2009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
2808
2809 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
2810 before caching.
2811
2812 2009-02-24 Kenichi Handa <handa@m17n.org>
2813
2814 * fontset.c (fontset_find_font): Fix the condition for checking
2815 unavailable font.
2816
2817 2009-02-24 Glenn Morris <rgm@gnu.org>
2818
2819 * xfaces.c (Finternal_set_font_selection_order): Remove leading
2820 whitespace that confuses documentation.
2821
2822 2009-02-23 Miles Bader <miles@gnu.org>
2823
2824 * process.c (Flist_system_processes, Fprocess_attributes)
2825 (syms_of_process): Rename `system-process-attributes' to
2826 `process-attributes'.
2827
2828 2009-02-22 Andreas Schwab <schwab@linux-m68k.org>
2829
2830 * coding.h (struct coding_system): Make safe_charsets a pointer to
2831 unsigned char.
2832 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
2833 being 255.
2834 (SAFE_CHARSET_P): Likewise.
2835 (setup_iso_safe_charsets): Properly setup safe_charsets.
2836 (Fdefine_coding_system_internal): Likewise.
2837 (setup_coding_system): Likewise. Remove unneeded casts.
2838 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
2839 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
2840 unneeded casts.
2841
2842 * insdel.c (del_range_2): Don't modify gap contents when called
2843 from decode_coding_object. (Bug#1809)
2844
2845 2009-02-21 Chong Yidong <cyd@stupidchicken.com>
2846
2847 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
2848 Qfont_object.
2849 (Ftype_of): Recognize font objects.
2850
2851 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
2852
2853 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
2854 moved to data.c.
2855
2856 2009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
2857
2858 * nsterm.m (x_make_frame_invisible): Unset async_visible,
2859 async_iconified. Based on a patch by Christian Lynbech
2860 <christian.lynbech@tieto.com>.
2861 (EmacsView-windowDidMiniaturize:): Unset async_visible.
2862
2863 2009-02-20 Glenn Morris <rgm@gnu.org>
2864
2865 * syntax.c (Fskip_chars_forward): Fix doc typo.
2866
2867 2009-02-20 Chong Yidong <cyd@stupidchicken.com>
2868
2869 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
2870
2871 2009-02-19 Chong Yidong <cyd@stupidchicken.com>
2872
2873 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
2874
2875 2009-02-19 Kenichi Handa <handa@m17n.org>
2876
2877 * coding.c (detect_coding): Preserve coding->mode.
2878 Don't overflow coding->carryover. (Bug#2370)
2879
2880 2009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
2881
2882 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
2883
2884 2009-02-18 Kenichi Handa <handa@m17n.org>
2885
2886 * font.c (font_check_otf_features): Fix handling of `nil' element.
2887 (Ffont_spec): Describe :lang and :otf in the docstring.
2888
2889 2009-02-16 Andreas Schwab <schwab@suse.de>
2890
2891 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
2892 string.
2893
2894 2009-02-16 Kenichi Handa <handa@m17n.org>
2895
2896 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
2897 (Bug#1723)
2898
2899 2009-02-14 Chong Yidong <cyd@stupidchicken.com>
2900
2901 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
2902
2903 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
2904 (handle_line_prefix): Suppress wrapping of wrap prefixes.
2905
2906 2009-02-14 Eli Zaretskii <eliz@gnu.org>
2907
2908 * msdos.c (MAX_SCREEN_BUF): New macro.
2909 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
2910 Encode the entire run of glyphs sharing the same face, instead of
2911 doing that one glyph at a time (fixes a bug with displaying
2912 double-size characters).
2913
2914 2009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
2915
2916 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
2917
2918 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
2919 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
2920 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
2921
2922 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
2923 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
2924
2925 2009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
2926
2927 * keyboard.c (adjust_point_for_property): Allow stopping betwen two
2928 invisible areas.
2929
2930 2009-02-12 Jason Rumney <jasonr@gnu.org>
2931
2932 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
2933 (add_font_entity_to_list): Call check_face_name even when family
2934 is unspecified.
2935
2936 * w32term.c (x_display_pixel_height, x_display_pixel_width):
2937 Release DC when finished. Use NULL window to refer to desktop.
2938 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
2939
2940 * w32font.c (add_font_entity_to_list): Fix check for substituted
2941 raster fonts. (Bug#2219)
2942
2943 2009-02-12 Kenichi Handa <handa@m17n.org>
2944
2945 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
2946 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
2947 (autocmp_chars): Use fast_looking_at. Don't compose more
2948 characters than MAX_COMPOSITION_COMPONENTS.
2949 (find_automatic_composition): While looking forward and backward,
2950 check static composition. Fix where to stop looking forward.
2951 (composition_adjust_point): Fix checking of static composition.
2952 (Fcomposition_get_gstring): Pay attention to
2953 MAX_COMPOSITION_COMPONENTS.
2954
2955 * lisp.h (fast_looking_at): Extern it.
2956
2957 * search.c (fast_looking_at): New function.
2958
2959 * term.c (encode_terminal_code): Adjust for the change of
2960 <struct glyph>.u.cmp.to.
2961 (append_composite_glyph): Likewise.
2962
2963 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
2964 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
2965 composition.
2966 (append_composite_glyph): Adjust for the change of
2967 <strcut glyph>.u.cmp.to.
2968
2969 2009-02-11 Juanma Barranquero <lekktu@gmail.com>
2970
2971 * casetab.c (init_casetab_once):
2972 * coding.c (ALLOC_CONVERSION_WORK_AREA):
2973 * font.c (font_update_lface):
2974 * fontset.c (Fnew_fontset):
2975 * ftfont.c (ftfont_drive_otf):
2976 * xfont.c (xfont_open):
2977 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
2978
2979 2009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
2980
2981 * fileio.c (Fwrite_region): !NILP -> CONSP.
2982
2983 2009-02-10 Andreas Schwab <schwab@suse.de>
2984
2985 * process.c (send_process): Properly relocate pointer into data
2986 when using encoded data. (Bug#2272)
2987
2988 2009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
2989
2990 * coding.c (detect_coding_charset): Fix previous change.
2991
2992 2009-02-08 Jason Rumney <jasonr@gnu.org>
2993
2994 * w32fns.c (w32_hide_hourglass): Handle case where frame
2995 disappeared while hourglass was displayed. (Bug #2193)
2996
2997 2009-02-07 Andreas Schwab <schwab@suse.de>
2998
2999 * unexelf.c (unexec): Fix error message.
3000
3001 2009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
3002
3003 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
3004 when modal window is active. (Bug #2152)
3005 (applicationShouldTerminate:): Remove now-unneeded while loop
3006 around NSRunAlertPanel.
3007
3008 * nsmenu.m (popupSession): New file-global variable.
3009 (pop_down_menu): End the popupSession before closing dialog.
3010 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
3011 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
3012 don't query NSApp for events (just sleep instead).
3013
3014 2009-02-07 Eli Zaretskii <eliz@gnu.org>
3015
3016 * coding.c (syms_of_coding) <translation-table-for-input>:
3017 Modify doc string to discourage use for character code unification.
3018
3019 2009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3020
3021 * atimer.c (run_timers): Update pending_atimers.
3022
3023 2009-02-06 Chong Yidong <cyd@stupidchicken.com>
3024
3025 * image.c (svg_load_image): Fix last change.
3026
3027 * xfns.c (Fx_create_frame): Signal an error if no font is
3028 found (Bug#2147).
3029
3030 2009-02-05 Juanma Barranquero <lekktu@gmail.com>
3031
3032 * character.c (syms_of_character) <script-representative-chars>:
3033 Fix typo in docstring.
3034
3035 2009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
3036
3037 * nsmenu.m (pop_down_menu): New function.
3038 (ns_popup_dialog): Call it on unwind.
3039 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
3040 call timer_check() (Bug#2154).
3041 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
3042 handling_signal is set.
3043 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
3044
3045 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
3046
3047 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
3048
3049 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
3050
3051 * keyboard.c (poll_for_input_1, handle_async_input):
3052 Set handling_signal under HAVE_NS.
3053
3054 2009-02-04 Glenn Morris <rgm@gnu.org>
3055
3056 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
3057
3058 2009-02-04 Kenichi Handa <handa@m17n.org>
3059
3060 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
3061
3062 * charset.c (Fchar_charset): New optional arg restriction.
3063
3064 * coding.h (coding_system_charset_list): Extern it.
3065
3066 * coding.c (coding_system_charset_list): New function.
3067
3068 * composite.c: Include coding.h and termhooks.h.
3069 (composition_gstring_p): Fix for the terminal case.
3070 (composition_gstring_width): Likewise.
3071 (fill_gstring_body): Likewise.
3072 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
3073 the frame.
3074 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
3075 is within a composition.
3076 (Fcomposition_get_gstring): Fix the terminal case.
3077
3078 * term.c (encode_terminal_code): Fix handling of composition.
3079 (produce_composite_glyph): For static composition, get pixel_width
3080 from struct composition.
3081
3082 2009-02-02 Andreas Schwab <schwab@suse.de>
3083
3084 * unexelf.c (unexec): Handle unaligned bss offset.
3085
3086 2009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
3087
3088 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
3089 XT,w32read_socket changes to ns_read_socket.
3090
3091 * keyboard.c (handle_interrupt): Don't call
3092 quit_throw_to_read_char() under NS.
3093
3094 * blockinput.h: Remove NS-specific code.
3095
3096 2009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
3097
3098 * dispnew.c (window_change_signal): Don't try to get the size of a
3099 suspended tty frame.
3100 * term.c (Fresume_tty): Resize if the size has changed while the
3101 tty was suspended.
3102
3103 * alloc.c (mark_stack): Properly conditionalize previous change.
3104
3105 2009-01-30 Juanma Barranquero <lekktu@gmail.com>
3106
3107 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
3108 * w32term.c (w32_read_socket) [SYNC_INPUT]:
3109 Remove; this code is not used on Windows.
3110
3111 2009-01-30 Eli Zaretskii <eliz@gnu.org>
3112
3113 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
3114 EOLs that also has stray ^M characters.
3115
3116 2009-01-30 Juanma Barranquero <lekktu@gmail.com>
3117
3118 * atimer.c (run_timers, alarm_signal_handler):
3119 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
3120 * w32inevt.c (w32_console_read_socket):
3121 * w32term.c (w32_read_socket):
3122 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
3123
3124 2009-01-30 Chong Yidong <cyd@stupidchicken.com>
3125
3126 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
3127 Initialize it as a relative filename pattern.
3128 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
3129 (Fcall_process_region): Simplify temp file creation using
3130 temporary-file-directory.
3131
3132 2009-01-29 Eli Zaretskii <eliz@gnu.org>
3133
3134 * msdos.c: Rename pending_signals to msdos_pending_signals.
3135 (sig_suspender, sigprocmask): Adjust.
3136
3137 2009-01-29 Chong Yidong <cyd@stupidchicken.com>
3138
3139 * keyboard.c (pending_signals): New var.
3140 (poll_for_input, input_available_signal, init_keyboard): Set it.
3141 (process_pending_signals): New function.
3142
3143 * lisp.h (QUIT): Check pending_signals instead of
3144 interrupt_input_pending. Use process_pending_signals.
3145
3146 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
3147
3148 * process.c (wait_reading_process_output): Use process_pending_signals.
3149
3150 * sysdep.c (emacs_write): Use process_pending_signals.
3151
3152 * xterm.c (XTread_socket): Update pending_signals.
3153
3154 * w32term.c (w32_read_socket): Update pending_signals.
3155
3156 * w32inevt.c (w32_console_read_socket): Update pending_signals.
3157
3158 2009-01-29 Kenichi Handa <handa@m17n.org>
3159
3160 * xftfont.c (xftfont_has_char): New function.
3161 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
3162
3163 2009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
3164
3165 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
3166 under GNUstep.
3167 (ns_query_color): New declaration.
3168
3169 * nsterm.m (ns_confirm_quit): New variable.
3170 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
3171 (EmacsApp-applicationShouldTerminate:): Use it.
3172 (EmacsPrefsController): Let user set it.
3173 (ns_query_color): New function.
3174 (ns_defined_color): Use it.
3175 (ns_initialize): Drop.
3176 (ns_term_init): Add two lines from ns_initialize(), and set
3177 input_interrupt_mode to nil.
3178
3179 * image.c (svg_load_image): Don't right-shift background RGB when
3180 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
3181
3182 2009-01-28 Kenichi Handa <handa@m17n.org>
3183
3184 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
3185 (fontset_get_font_group): Remember that no font-group is specified
3186 for C.
3187
3188 2009-01-27 Chong Yidong <cyd@stupidchicken.com>
3189
3190 * fns.c (concat): Check for string overflow (bug#1787).
3191
3192 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
3193 Quadruple undo limits (bug#1501).
3194
3195 2009-01-27 Kenichi Handa <handa@m17n.org>
3196
3197 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
3198 directly use GT_Get_Char_index.
3199
3200 * xftfont.c (struct xftfont_info): New member `index'.
3201
3202 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
3203 (Ffontset_font): Adjust for the change of fontset entry.
3204
3205 2009-01-26 Kenichi Handa <handa@m17n.org>
3206
3207 * fontset.c (fontset_find_font): Fix handling of non-cons return
3208 value of fontset_get_font_group.
3209 (fontset_font): Revert last change.
3210
3211 2009-01-26 Jason Rumney <jasonr@gnu.org>
3212
3213 * w32font.c (w32font_list_internal): Return quickly if registry is
3214 unknown. Simplify final return.
3215 (add_font_entity_to_list): Break complex logic down into more
3216 manageable chunks. Move unknown registry check to
3217 w32font_list_internal.
3218
3219 2009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
3220
3221 Changes to remove Feval calls from GUI under NS.
3222
3223 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
3224 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
3225 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
3226
3227 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
3228 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
3229 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
3230 instead of NON_ASCII_KEYSTROKE_EVENT.
3231 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
3232 (EmacsApp-applicationShouldTerminate:): Query user.
3233 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
3234 instead of Feval.
3235
3236 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
3237
3238 * keyboard.c (kbd_buffer_get_event): Check for it.
3239 (keys_of_keyboard): Define lispy keys for
3240 ns-put/unput-working-text.
3241
3242 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
3243 versions.
3244 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
3245
3246 2009-01-25 Chong Yidong <cyd@stupidchicken.com>
3247
3248 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
3249 setting current_buffer directly. (Bug#2044)
3250
3251 2009-01-24 Chong Yidong <cyd@stupidchicken.com>
3252
3253 * fontset.c (fontset_font): If we know there is no font, don't do
3254 any work. (Bug#1952, bug#1990).
3255
3256 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
3257
3258 2009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
3259
3260 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
3261 (ns_no_defaults): New declaration.
3262 (main): Use it.
3263
3264 * nsterm.h (ns_no_defaults): New declaration.
3265
3266 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
3267
3268 * nsterm.m (ns_no_defaults): New variable.
3269 (ns_initialize): Don't read defaults when ns_no_defaults.
3270 (EmacsView-readSelectionFromPasteboard:)
3271 (writeSelectionToPasteboard:types:): New stubbed-out methods for
3272 NSServicesRequests protocol. (Bug#1435)
3273 (ns_dumpglyphs_stretch): New function.
3274 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
3275 of 2008-11-15 to other terms. (Bug#615)
3276
3277 * nsimage.m (setPixmapData:): Set to ignore image DPI.
3278
3279 2009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
3280
3281 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
3282 call for Sparc64.
3283
3284 2009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
3285
3286 * nsfns.m:
3287 * nsgui.h:
3288 * nsmenu.m:
3289 * nsselect.m:
3290 * nsterm.h:
3291 * nsterm.m: Remove '23' comments that indicated code added during
3292 update from emacs-20 -> emacs-23.
3293
3294 2009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
3295
3296 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3297 ns_alternate_modifier. (Bug#1217)
3298
3299 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
3300 Display all shortcuts, including those w/o super modifier.
3301
3302 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
3303
3304 2009-01-22 Chong Yidong <cyd@stupidchicken.com>
3305
3306 * fileio.c (Vwrite_region_post_annotation_function)
3307 (Vwrite_region_annotation_buffers): New vars.
3308 (build_annotations_unwind): Just reset
3309 Vwrite_region_annotation_buffers.
3310 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
3311 Call write-region-post-annotation-function.
3312 (build_annotations): Add to Vwrite_region_annotation_buffers if
3313 buffer changes.
3314
3315 2009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
3316
3317 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
3318 Tiger.
3319 * nsfns.m (ns_do_applescript):
3320 Conditionalize typeUTF16ExternalRepresentation on Tiger.
3321
3322 2009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
3323
3324 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
3325
3326 2009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
3327
3328 * nsmenu.m (NSMENUPROFILE): Change #if style.
3329
3330 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
3331
3332 * nsterm.m (x_set_frame_alpha): Add prototype.
3333 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
3334 handle Ctrl-tab. (Bug#1841)
3335 (ns_get_color): Use unsigned long long for scanned hex string value.
3336 (ns_term_shutdown): Abort on non SIGTERM signals.
3337 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
3338 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3339 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
3340 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
3341 (ns_defined_color): Fix settings of the XColor variable fields:
3342 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
3343
3344 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3345 DPI. (Bug#1316)
3346 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
3347 values in onTiger section.
3348
3349 2009-01-19 Chong Yidong <cyd@stupidchicken.com>
3350
3351 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
3352 Check return value of font_spec_from_name.
3353 (Fx_list_fonts): Doc fix. (Bug#1951)
3354
3355 * font.c (font_spec_from_name): Return Qnil if font name could not
3356 be parsed.
3357 (font_parse_name): Treat a `?' character as part of an XLFD.
3358
3359 * fns.c (Fsubstring): Doc fix.
3360
3361 2009-01-19 Kenichi Handa <handa@m17n.org>
3362
3363 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
3364 (ftfont_list): Likewise.
3365
3366 2009-01-18 Juanma Barranquero <lekktu@gmail.com>
3367
3368 * dbusbind.c (Fdbus_register_signal):
3369 * process.c (conv_sockaddr_to_lisp):
3370 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
3371
3372 * callproc.c (Fgetenv_internal): Doc fix.
3373
3374 2009-01-16 Chong Yidong <cyd@stupidchicken.com>
3375
3376 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
3377 it is not even used.
3378
3379 2009-01-16 Glenn Morris <rgm@gnu.org>
3380
3381 * font.c (Ffont_variation_glyphs): Silence compiler.
3382
3383 2009-01-15 Juanma Barranquero <lekktu@gmail.com>
3384
3385 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
3386 Reported by David Robinow <drobinow@gmail.com>.
3387
3388 2009-01-15 Kenichi Handa <handa@m17n.org>
3389
3390 * coding.c (detect_coding_system): Fix handling of null_byte_found.
3391
3392 2009-01-14 Jason Rumney <jasonr@gnu.org>
3393
3394 * frame.c (x_set_font): Always store a font to the font parameter,
3395 never a fontset. (Bug#1562)
3396
3397 2009-01-14 Kenichi Handa <handa@m17n.org>
3398
3399 * coding.c (TWO_MORE_BYTES): New macro.
3400 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
3401
3402 2009-01-13 Chong Yidong <cyd@stupidchicken.com>
3403
3404 * font.c (font_clear_prop): If clearing the family, clear the font
3405 width index too.
3406
3407 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
3408
3409 2009-01-12 Juanma Barranquero <lekktu@gmail.com>
3410
3411 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
3412 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
3413 functions, use sizeof.
3414
3415 2009-01-12 Martin Rudalics <rudalics@gmx.at>
3416
3417 * keyboard.c (read_char): Fix case where last_nonmenu_event
3418 returned a bad value with submenus. (Bug#447)
3419
3420 2009-01-12 Chong Yidong <cyd@stupidchicken.com>
3421
3422 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
3423 family, clear the font width index too.
3424
3425 2009-01-11 Jason Rumney <jasonr@gnu.org>
3426
3427 * keyboard.c (cmd_error_internal): Exit when errors occur before
3428 frame creation and not in daemon mode. (Bug#1836)
3429
3430 2009-01-10 Chong Yidong <cyd@stupidchicken.com>
3431
3432 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
3433 of a display vector, backtrack.
3434 (try_window_reusing_current_matrix): Check glyph type before
3435 referencing charpos member.
3436
3437 2009-01-10 Eli Zaretskii <eliz@gnu.org>
3438
3439 Fix Bug #876:
3440
3441 * coding.c (inhibit_null_byte_detection): New variable.
3442 (detect_coding, detect_coding_system): Don't pay attention to null
3443 bytes if inhibit_null_byte_detection is non-zero.
3444 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
3445 <inhibit-iso-escape-detection>: Doc fix.
3446
3447 2009-01-09 Jason Rumney <jasonr@gnu.org>
3448
3449 * w32font.c (add_font_entity_to_list): Don't report unknown
3450 Windows charset as any unrecognized registry. (Bug#1548)
3451 Only report Unicode Plane 2 fonts as unicode-sip.
3452
3453 2009-01-09 Chong Yidong <cyd@stupidchicken.com>
3454
3455 * xfaces.c (Fx_font_family_list): Delete function.
3456 Move compatibility version to faces.el.
3457
3458 * font.c (Ffont_family_list): Return a list of strings, not symbols.
3459
3460 2009-01-09 Martin Rudalics <rudalics@gmx.at>
3461
3462 * frame.c (x_set_frame_parameters): Remember requested value for
3463 fullscreen before it's reset by the parameter handler.
3464
3465 2009-01-09 Glenn Morris <rgm@gnu.org>
3466
3467 * keyboard.c (last_command_char): For clarity, rename to...
3468 (last_command_event): ... and update all users.
3469 (last_input_char): For clarity, rename to...
3470 (last_input_event): ... and update all users.
3471 (last-command-char, last-input-char): Move to subr.el as aliases.
3472 * cmds.c, commands.h: Update for last_command_char rename.
3473
3474 2009-01-08 Chong Yidong <cyd@stupidchicken.com>
3475
3476 * font.c (font_open_for_lface): Handle unspecified height attribute.
3477
3478 2009-01-08 Jason Rumney <jasonr@gnu.org>
3479
3480 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
3481 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
3482 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
3483 Don't declare.
3484 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
3485 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
3486
3487 2009-01-07 Kenichi Handa <handa@m17n.org>
3488
3489 * fileio.c (Finsert_file_contents): In the case of replace,
3490 remember the coding system used for decoding in
3491 coding_system (Bug#1039).
3492
3493 * coding.c (decode_coding_utf_8): Check byte_after_cr before
3494 breaking the loop. (Bug#870)
3495 (decode_coding_utf_16, decode_coding_emacs_mule)
3496 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
3497 (decode_coding_charset): Likewise.
3498
3499 2009-01-05 Martin Rudalics <rudalics@gmx.at>
3500
3501 * frame.c (x_set_frame_parameters): Make sure height (width) get
3502 applied when fullwidth (fullheight) is set. (Bug#1522)
3503
3504 2009-01-04 Juanma Barranquero <lekktu@gmail.com>
3505
3506 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
3507 (utc_base): Declare as ULONGLONG, not long double.
3508 (convert_time_raw): Delete.
3509 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
3510 (initialize_utc_base): New function.
3511 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
3512 (convert_from_time_t): Use initialize_utc_base; compute result with
3513 64-bit arithmetic.
3514 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
3515
3516 2009-01-03 Eli Zaretskii <eliz@gnu.org>
3517
3518 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
3519 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
3520 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
3521 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
3522 [!subprocesses]: Define.
3523 (syms_of_process) [!subprocesses]: Intern and staticpro them.
3524 (Flist_system_processes, Fsystem_process_attributes)
3525 [!subprocesses]: Call list_system_processes and
3526 system_process_attributes instead of returning Qnil.
3527
3528 * dosfns.c (system_process_attributes, list_system_processes):
3529 New functions.
3530
3531 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
3532
3533 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
3534 Don't use the default (no-op) implementation.
3535
3536 2009-01-03 Jason Rumney <jasonr@gnu.org>
3537
3538 * keyboard.c (parse_modifiers_uncached): Wheel events are
3539 clicks (bug#687).
3540
3541 * w32term.c (x_query_colors, x_query_color): New functions.
3542
3543 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
3544 (svg_load_image): Cast returned pointers from dynamically loaded
3545 functions. Eliminate W32 specific code.
3546
3547 2009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
3548
3549 * nsfns.m (x_set_foreground_color, x_set_background_color)
3550 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
3551 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
3552 x_ prefix instead of ns_. Update references.
3553 (syms_of_nsfns): Add a FIXME comment.
3554
3555 * nsterm.m (x_set_cursor_type): New prototype.
3556 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
3557
3558 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
3559 for Solaris instead of incorrectly providing Qutime and Qcutime.
3560
3561 2009-01-02 Eli Zaretskii <eliz@gnu.org>
3562
3563 * w32.c (process_times): Compute sum of utime and stime.
3564 (system_process_attributes): Add Qtime to the alist.
3565
3566 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
3567 and add them to the alist.
3568
3569 * process.c (top level) <Qtime, Qctime>: New variables.
3570 (syms_of_process): staticpro them.
3571 (Fsystem_process_attributes): Add their documentation to the doc
3572 string.
3573
3574 * process.h: Declare Qtime and Qctime.
3575
3576 2009-01-02 Jason Rumney <jasonr@gnu.org>
3577
3578 * image.c (Qgobject): New symbol.
3579 (syms_of_image): Initialize it.
3580 (init_svg_functions): Load some functions from gobject library.
3581
3582 2009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
3583
3584 * frame.c (make_terminal_frame): Remove redundant code and useless
3585 block.
3586
3587 2009-01-01 Andreas Schwab <schwab@suse.de>
3588
3589 * process.c (conv_sockaddr_to_lisp): Add workaround for
3590 getsockname bug on BSD.
3591
3592 2009-01-01 Chong Yidong <cyd@stupidchicken.com>
3593
3594 * xfns.c (x_create_tip_frame): Set border width of the X window.
3595
3596 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
3597
3598 2009-01-01 Jason Rumney <jasonr@gnu.org>
3599
3600 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
3601 Don't block input, as per earlier xterm.c changes.
3602
3603 2008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
3604
3605 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
3606 (ns_appkit_version_int): New function.
3607 (x-server-version): Use ns_appkit_version_int and follow 21+
3608 convention of returning 3 integers.
3609
3610 2008-12-30 Kenichi Handa <handa@m17n.org>
3611
3612 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
3613 (CHAR_SURROGATE_PAIR_P): New macro.
3614
3615 * font.h (struct font_driver): New member get_variation_glyphs.
3616
3617 * font.c (font_range): Don't require a font for a variation selector.
3618 (Ffont_variation_glyphs): New function.
3619 (syms_of_font): Defsubr it.
3620
3621 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
3622 ftfont_variation_glyphs.
3623 (setup_otf_gstring): New function.
3624 (ftfont_drive_otf): Use it.
3625 (ftfont_shape_by_flt): Handle variation selector.
3626 (ftfont_variation_glyphs): New function.
3627
3628 2008-12-30 Martin Rudalics <rudalics@gmx.at>
3629
3630 * frame.c (Vemacs_iconified): Remove.
3631
3632 2008-12-30 Jason Rumney <jasonr@gnu.org>
3633
3634 * frame.c (store_frame_param, x_get_arg): Enable newer code on
3635 WINDOWSNT too, as related changes have already been synced. (Bug#117)
3636
3637 2008-12-30 Chong Yidong <cyd@stupidchicken.com>
3638
3639 * indent.c (Fvertical_motion): Don't advance iterator if we have
3640 reseated to the desired position.
3641
3642 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
3643 checking for pos match.
3644
3645 2008-12-30 Kenichi Handa <handa@m17n.org>
3646
3647 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
3648 just get the low 8-bit of the code.
3649
3650 * font.c (font_intern_prop): Validate str as multibyte.
3651
3652 2008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
3653
3654 * dispextern.h (struct face): Move lface and hash from the middle
3655 of bitfields.
3656
3657 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
3658
3659 2008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
3660
3661 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
3662 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
3663 instead of intervals.h.
3664
3665 2008-12-26 Andreas Schwab <schwab@suse.de>
3666
3667 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
3668 cons.
3669
3670 2008-12-26 Martin Rudalics <rudalics@gmx.at>
3671
3672 * textprop.c (Qminibuffer_prompt): New variable.
3673 (syms_of_textprop): Initialize it.
3674 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
3675 in minibuffer-prompt face. (Bug#1662)
3676
3677 2008-12-25 Jason Rumney <jasonr@gnu.org>
3678
3679 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
3680
3681 2008-12-24 Jason Rumney <jasonr@gnu.org>
3682
3683 * ralloc.c (r_alloc_reset_variable): New function.
3684
3685 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
3686 record of what points where. (Bug#716)
3687
3688 2008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
3689
3690 * minibuf.c (read_minibuf): Follow the non-interactive case when
3691 running as a daemon, before detaching.
3692
3693 2008-12-22 Andreas Schwab <schwab@suse.de>
3694
3695 * buffer.c (init_buffer): Use realloc instead of xrealloc.
3696 * gtkutil.c (free_widget_value): Use xfree instead of free.
3697
3698 2008-12-22 Martin Rudalics <rudalics@gmx.at>
3699
3700 * frame.c (delete_frame): New function derived from
3701 Fdelete_frame to handle Qnoelisp value for FORCE argument.
3702 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
3703 (Fdelete_frame): Call delete_frame. Remove line from doc-string
3704 saying that FORCE non-nil doesn't run `delete-frame-functions'.
3705 * frame.h: Extern delete_frame.
3706 * window.c (window_loop):
3707 * terminal.c (delete_terminal):
3708 * xterm.c (x_connection_closed):
3709 * xfns.c (Fx_hide_tip):
3710 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
3711
3712 2008-12-21 Jason Rumney <jasonr@gnu.org>
3713
3714 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
3715 when character maps to .notdef character.
3716
3717 2008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
3718
3719 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
3720
3721 2008-12-20 Jason Rumney <jasonr@gnu.org>
3722
3723 * frame.c (Fmake_terminal_frame): Raise an error when called from
3724 a graphical frame on Windows. (Bug#1325)
3725
3726 2008-12-20 Jan Djärv <jan.h.d@swipnet.se>
3727
3728 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
3729
3730 2008-12-20 Chong Yidong <cyd@stupidchicken.com>
3731
3732 * minibuf.c (Fread_buffer): Doc fix.
3733
3734 2008-12-20 Jason Rumney <jasonr@gnu.org>
3735
3736 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
3737 server name in UNC paths. (Bug#719)
3738
3739 * coding.c (decode_coding): Clear chars_at_source flag when using
3740 charbuf. (Bug#1035)
3741
3742 2008-12-19 Daniel Engeler <engeler@gmail.com>
3743
3744 * sysdep.c (serial_configure): Fix typo.
3745
3746 2008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
3747
3748 * sysdep.c: Include alloca.h.
3749 (system_process_attributes): Add implementation for Solaris.
3750
3751 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
3752
3753 2008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
3754
3755 Reorganize implementation of Flist_system_processes and
3756 Fsystem_process_attributes. No functional changes.
3757 * process.c: Don't #include pwd.h, grp.h and limits.h.
3758 (Flist_system_processes): Just call list_system_processes.
3759 (Fsystem_process_attributes): Just call system_process_attributes.
3760 (procfs_list_system_processes, time_from_jiffies)
3761 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
3762 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
3763
3764 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
3765 (list_system_processes): Rename from
3766 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
3767 Provide a do nothing implementation.
3768 (system_process_attributes): Rename from
3769 procfs_list_system_processes.
3770 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
3771 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
3772
3773 * w32.c (list_system_processes): Rename from
3774 w32_list_system_processes.
3775 (system_process_attributes): Rename from
3776 w32_system_process_attributes.
3777
3778 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
3779
3780 * process.h (w32_list_system_processes)
3781 (w32_system_process_attributes): Remove.
3782 (list_system_processes, system_process_attributes): New
3783 prototypes.
3784
3785 2008-12-19 Kenichi Handa <handa@m17n.org>
3786
3787 * xfont.c (xfont_decode_coding_xlfd): New function.
3788 (xfont_encode_coding_xlfd): New function.
3789 (xfont_list_pattern): Decode XLFD by iso-8859-1.
3790 (xfont_list): Decode and encode XLFD by iso-8859-1.
3791 (xfont_match): Likewise.
3792 (xfont_list_family): Likewise.
3793 (xfont_open): Likewise.
3794
3795 * ftfont.c (ftfont_open): Generate a multibyte string if given
3796 names are utf-8.
3797
3798 * xftfont.c (xftfont_open): Generate a multibyte string if given
3799 names are utf-8.
3800
3801 2008-12-18 Jan Djärv <jan.h.d@swipnet.se>
3802
3803 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
3804 changed.
3805 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
3806 clicked on a detached tool bar button.
3807
3808 2008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
3809
3810 * emacs.c (main): Print and error and exit when no data is read
3811 from the pipe.
3812
3813 2008-12-17 Jason Rumney <jasonr@gnu.org>
3814
3815 * w32font.c (w32font_has_char): Always return -1.
3816
3817 2008-12-16 Kenichi Handa <handa@m17n.org>
3818
3819 * font.c (font_open_entity): Fix previous change.
3820
3821 2008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
3822
3823 * process.c: Include <limits.h>.
3824
3825 2008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
3826
3827 * font.c (font_update_drivers): Fix mistake in reconstructing the
3828 driver list.
3829
3830 2008-12-16 Chong Yidong <cyd@stupidchicken.com>
3831
3832 * font.c (font_clear_cache): Fix format of font cache data.
3833
3834 2008-12-15 Chong Yidong <cyd@stupidchicken.com>
3835
3836 * xftfont.c (xftfont_open): Free Xft font pattern if
3837 XftFontOpenPattern fails.
3838
3839 * xterm.c (x_free_frame_resources): Remove extraneous call to
3840 free_frame_faces.
3841
3842 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
3843
3844 * xterm.c (x_delete_display): Move xim_close_dpy call to
3845 x_delete_terminal.
3846 (x_delete_terminal): Call xim_close_dpy.
3847
3848 2008-12-13 Jason Rumney <jasonr@gnu.org>
3849
3850 * w32font.c (intern_font_name): New function.
3851 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
3852 (w32font_open_internal, Fx_select_font): Decode font name.
3853 (fill_in_logfont, list_all_matching_fonts): Encode font name.
3854
3855 * w32font.h (intern_font_name): Declare new function.
3856
3857 * w32uniscribe.c (add_opentype_font_name_to_list):
3858 Use intern_font_name.
3859
3860 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
3861
3862 * frame.c (Fdelete_frame): Call free_font_driver_list.
3863
3864 * font.c (free_font_driver_list): Implement missing function.
3865
3866 * w32term.c (w32_term_init): Don't initialize the image cache
3867 here; it will be done in init_frame_faces.
3868
3869 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
3870 (struct x_display_info): Remove unused member null_pixel. New
3871 member xim_callback_data.
3872
3873 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
3874 (xim_initialize): Save pointer to callback function data.
3875 (xim_close_dpy): Free callback function data. Call XCloseIM,
3876 reverting 2008-11-04 change by David Smith.
3877 (x_term_init): Don't initialize the image cache here; it will be
3878 done in init_frame_faces. Remove ancient "null_pixel" cruft.
3879 (x_delete_display): Free x_dnd_atoms member.
3880
3881 2008-12-13 Kenichi Handa <handa@m17n.org>
3882
3883 * font.c (font_rescale_ratio): Moved from xfaces.c.
3884 Argument type changed. Handle a font-spec too.
3885 (font_score): Check Vface_font_rescale_alist.
3886 (font_open_entity): Likewise. (Bug#1547)
3887
3888 * xfaces.c (font_rescale_ratio): Moved to font.c.
3889
3890 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
3891
3892 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
3893
3894 2008-12-12 Jason Rumney <jasonr@gnu.org>
3895
3896 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
3897 Vwindow_system_version to the real w32 major version.
3898
3899 2008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
3900
3901 * term.c (init_tty): Move setting the terminal name before the
3902 potential user: maybe_fatal.
3903
3904 2008-12-11 Chong Yidong <cyd@stupidchicken.com>
3905
3906 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
3907 all callers changed. Call free_frame_faces to free the face cache.
3908
3909 2008-12-11 Jason Rumney <jasonr@gnu.org>
3910
3911 * w32font.c (fill_in_logfont): Don't assume symbol script means
3912 SYMBOL_CHARSET. (Bug#547)
3913
3914 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
3915 size for surrogates. (Bug#1096, bug#872)
3916
3917 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
3918
3919 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
3920
3921 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
3922
3923 * process.c (Fsystem_process_attributes, syms_of_process):
3924 Fix typo in name of Ssystem_process_attributes.
3925 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
3926
3927 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
3928
3929 * syntax.c (Fmodify_syntax_entry): Doc fix.
3930
3931 2008-12-10 Juanma Barranquero <lekktu@gmail.com>
3932
3933 * font.c (Ffont_spec): Move usage to end of docstring.
3934
3935 2008-12-10 Jason Rumney <jasonr@gnu.org>
3936
3937 * w32font.c (Qcham): New symbol.
3938 (font_supported_scripts): Add cham, and comments for other new
3939 scripts in bitfield from OpenType spec.
3940 (add_font_entity_to_list): Limit unicode-sip fonts to those that
3941 contain characters beyond the bmp.
3942
3943 2008-12-10 Kenichi Handa <handa@m17n.org>
3944
3945 * ftfont.c (fc_charset_table): Add "unicode-sip".
3946 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
3947 Qunicode_sip.
3948
3949 2008-12-10 Juanma Barranquero <lekktu@gmail.com>
3950
3951 * coding.c (QCdefault_char): Rename from QCdefalut_char.
3952 (Fcoding_system_put): Use QCdefault_char.
3953 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
3954
3955 2008-12-09 Chong Yidong <cyd@stupidchicken.com>
3956
3957 * xftfont.c (syms_of_xftfont): Fix typo.
3958
3959 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
3960
3961 2008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
3962
3963 * emacs.c (main): Close daemon_pipe on exec.
3964
3965 2008-12-08 Chong Yidong <cyd@stupidchicken.com>
3966
3967 * termchar.h (struct tty): New members termcap_term_buffer and
3968 termcap_strings_buffer.
3969
3970 * term.c (encode_terminal_code): Free any previous memory blocks
3971 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
3972 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
3973 All callers changed.
3974 (init_tty): Store termcap data and string buffers in new struct
3975 tty members termcap_term_buffer and termcap_strings_buffer.
3976 (delete_tty): Free them.
3977 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
3978
3979 2008-12-07 Seiji Zenitani <zenitani@mac.com>
3980
3981 * nsfns.m (ns_set_background_color): Remove code duplication.
3982 It was a substitute for face-transparency on OS X 10.3.
3983
3984 2008-12-06 Chong Yidong <cyd@stupidchicken.com>
3985
3986 * coding.c (make_conversion_work_buffer): Disable buffer
3987 modification hooks in the work buffer.
3988
3989 2008-12-05 Eli Zaretskii <eliz@gnu.org>
3990
3991 * process.c (procfs_system_process_attributes): If `nread' has a
3992 negative value, assign zero to it.
3993
3994 2008-12-05 Chong Yidong <cyd@stupidchicken.com>
3995
3996 * eval.c (Vdebug_on_error): Doc fix.
3997
3998 2008-12-05 Kenichi Handa <handa@m17n.org>
3999
4000 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
4001 second character is a combining character.
4002
4003 2008-12-05 Eli Zaretskii <eliz@gnu.org>
4004
4005 * process.c (procfs_system_process_attributes): Don't use cmd,
4006 cmdsize, and q without initializing them first.
4007
4008 2008-12-04 Jason Rumney <jasonr@gnu.org>
4009
4010 * w32font.c (w32font_draw): Initialize orig_clip before getting
4011 it, and delete it when finished.
4012
4013 2008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
4014
4015 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
4016 case when running as a daemon before detaching.
4017
4018 2008-12-03 Juanma Barranquero <lekktu@gmail.com>
4019
4020 * w32.c (init_environment): Don't unload library shell32.dll.
4021
4022 2008-12-03 Kenichi Handa <handa@m17n.org>
4023
4024 * font.c (font_at): Set `multibyte' at first.
4025
4026 * coding.c (decode_coding_charset): Check type of an element of
4027 vector VALIDS.
4028 (encode_coding_emacs_mule): Be sure to set `code'.
4029
4030 * fontset.c (face_for_char): Handle invalid charset property correctly.
4031 (font_for_char): Likewise.
4032
4033 2008-12-03 Chong Yidong <cyd@stupidchicken.com>
4034
4035 * font.c (Fopen_font): Compute pixel size correctly.
4036 (font_update_lface): Handle fonts with corrupted size specs,
4037 i.e. non-int and non-float.
4038
4039 * ftfont.c (ftfont_match): Initialize entity variable.
4040 (ftfont_resolve_generic_family): Avoid using uninitialized var.
4041 (ftfont_list_family): Initialize list var earlier.
4042
4043 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
4044
4045 * xterm.c (x_draw_glyph_string): Fall back on
4046 underline_minimum_offset for underline position.
4047
4048 2008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
4049
4050 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
4051
4052 * character.c (c_string_width): Specify the type for LEN.
4053
4054 2008-12-03 Kenichi Handa <handa@m17n.org>
4055
4056 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
4057 (decode_coding_utf_8): Likewise.
4058 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4059 (produce_chars): Initialize consumed_chars to 0.
4060
4061 2008-12-02 Chong Yidong <cyd@stupidchicken.com>
4062
4063 * keyboard.c (make_lispy_position): Only use PT if the selected
4064 window is current.
4065
4066 2008-12-02 Andreas Schwab <schwab@suse.de>
4067
4068 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
4069
4070 * doprnt.c (doprnt1): Fix size of charbuf.
4071
4072 2008-12-02 Chong Yidong <cyd@stupidchicken.com>
4073
4074 * keyboard.c (timer_check): Revert last change.
4075
4076 2008-12-02 Juanma Barranquero <lekktu@gmail.com>
4077
4078 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
4079
4080 2008-12-01 Juanma Barranquero <lekktu@gmail.com>
4081
4082 * makefile.w32-in: Update dependencies.
4083 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
4084
4085 2008-12-01 Andreas Schwab <schwab@suse.de>
4086
4087 * font.c (register_font_driver): Use xmalloc.
4088 (font_put_frame_data): Likewise.
4089
4090 2008-12-01 Chong Yidong <cyd@stupidchicken.com>
4091
4092 * xfaces.c (realize_x_face): Make abort condition clearer.
4093
4094 * gtkutil.c (update_frame_tool_bar): Initialize variable.
4095
4096 2008-11-30 Chong Yidong <cyd@stupidchicken.com>
4097
4098 * keyboard.c (timer_check): After a timer runs, ensure that the
4099 selected window's buffer is current.
4100
4101 2008-11-30 Juanma Barranquero <lekktu@gmail.com>
4102
4103 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
4104 It was accidentally restored by the Unicode merge.
4105
4106 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
4107
4108 2008-11-29 Juanma Barranquero <lekktu@gmail.com>
4109
4110 * w32proc.c: Include "coding.h".
4111 (Fw32_short_file_name): Encode filename passed to Windows API.
4112 (Fw32_long_file_name): Encode filename passed to Windows API and
4113 decode back the result. (Bug#1433)
4114
4115 2008-11-29 Kenichi Handa <handa@m17n.org>
4116
4117 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
4118 not before accessing it.
4119
4120 * charset.c (Fdefine_charset_internal): After calculating
4121 min_char, max_char, and fastmap, copy the charset structure again.
4122 (encode_char): Fix the previous change.
4123
4124 2008-11-28 Seiji Zenitani <zenitani@mac.com>
4125
4126 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
4127
4128 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
4129
4130 * nsterm.m (x_set_frame_alpha): New function.
4131
4132 2008-11-27 Eli Zaretskii <eliz@gnu.org>
4133
4134 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
4135
4136 2008-11-27 Juanma Barranquero <lekktu@gmail.com>
4137
4138 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
4139 pointer to check_face_name.
4140
4141 2008-11-27 Kenichi Handa <handa@m17n.org>
4142
4143 * category.h (SET_CATEGORY_SET): Call set_category_set.
4144 (set_category_set): Extern it.
4145
4146 * category.c (hash_get_category_set): New function.
4147 (Fmodify_category_entry): Adjusted for the change of
4148 char_table_ref_and_range. Call hash_get_category_set to get a
4149 category set to store in the table.
4150
4151 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
4152 Funify_charset.
4153
4154 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
4155 (DECODE_CHAR): Check if the decoder vector is ready.
4156 (ENCODE_CHAR): Check if the encoder char-table is ready.
4157 (maybe_unify_char): Extern it.
4158
4159 * charset.c (Vchar_unified_charset_table): Delete it.
4160 (inhibit_load_charset_map): New variable.
4161 (temp_charset_work): New variable.
4162 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
4163 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
4164 New macros.
4165 (load_charset_map): Meaning of control_flag changed. If
4166 inhibit_load_charset_map is nonzero, setup a table in
4167 temp_charset_work.
4168 (load_charset): New argument control_flag.
4169 (map_charset_for_dump): New function.
4170 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
4171 map_charset_for_dump.
4172 (Fdefine_charset_internal): If the charset method is MAP, load
4173 mapping tables by calling load_charset.
4174 (Funify_charset): Don't load a mapping table but directly set
4175 Vchar_unify_table.
4176 (maybe_unify_char): New function.
4177 (decode_char): Don't handle the deleted method MAP_DEFERRED.
4178 Handle the case of inhibit_load_charset_map being nonzero.
4179 (encode_char): Don't handle the deleted method MAP_DEFERRED.
4180 Handle the case of inhibit_load_charset_map being nonzero.
4181 (Fclear_charset_maps): Just free temp_charset_work.
4182 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
4183 variable.
4184
4185 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
4186 change of char_table_ref_and_range.
4187 (char_table_ref_and_range): Change the meaning of argument FROM
4188 and TO. Now the caller must provide initial values for *FROM
4189 and *TO.
4190
4191 * fontset.c (fontset_add): Adjusted for the change of
4192 char_table_ref_and_range.
4193 (fontset_get_font_group): Likewise.
4194 (Ffontset_info): Likewise.
4195
4196 * keymap.c (describe_vector): Adjusted for the change of
4197 char_table_ref_and_range. For char-table, put boundary between
4198 non-ASCII and 8-bit characters.
4199
4200 * print.c (print_object): For bool-vector, delete unnecessary
4201 check of ASCII_BYTE_P.
4202
4203 2008-11-26 Jason Rumney <jasonr@gnu.org>
4204
4205 * w32font.c (w32font_open_internal): Don't include external
4206 leading in font height. (Bug#879)
4207
4208 2008-11-26 Glenn Morris <rgm@gnu.org>
4209
4210 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
4211 redefinition with ifdef. (Bug#1383)
4212
4213 2008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
4214
4215 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
4216
4217 2008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
4218
4219 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
4220 New EmacsView methods.
4221 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
4222 Fixes bug #1048,1357,1414.
4223
4224 2008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
4225
4226 Fix bug #1362.
4227 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
4228 is not an indexed color.
4229 * nsterm.m (free_indexed_color): Add argument checking.
4230 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
4231
4232 2008-11-24 Chong Yidong <cyd@stupidchicken.com>
4233
4234 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
4235 Document confirm-after-completion value for
4236 minibuffer-completion-confirm.
4237
4238 2008-11-24 Jason Rumney <jasonr@gnu.org>
4239
4240 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
4241 warning.
4242
4243 2008-11-23 Jason Rumney <jasonr@gnu.org>
4244
4245 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
4246 restored before returning.
4247
4248 * w32font.c (check_face_name): New function.
4249 (add_font_entity_to_list): Use it to filter out common substituted
4250 fonts. (Bug#642)
4251
4252 2008-11-22 Martin Rudalics <rudalics@gmx.at>
4253
4254 * buffer.c (Fswitch_to_buffer): Reword and mention new option
4255 confirm-nonexistent-file-or-buffer in doc-string.
4256
4257 2008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
4258
4259 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
4260 Fix copy/paste typo. Add checks.
4261
4262 2008-11-21 Kenichi Handa <handa@m17n.org>
4263
4264 * coding.c (detect_coding_iso_2022): Reject invalid composition
4265 sequence.
4266 (DECODE_COMPOSITION_START): If the current source is the last
4267 block, and the current composition doesn't end, regard this
4268 sequence as invalid.
4269 (decode_coding_iso_2022): Handle invalid composition sequence.
4270
4271 2008-11-20 Martin Rudalics <rudalics@gmx.at>
4272
4273 * window.c (coordinates_in_window): Don't return
4274 ON_VERTICAL_BORDER for the rightmost position of a mode/header
4275 line when the window is not the rightmost one. (Bug#1372)
4276
4277 2008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
4278
4279 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
4280
4281 2008-11-15 Eli Zaretskii <eliz@gnu.org>
4282
4283 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
4284 and bright_bg if noninteractive is non-zero.
4285
4286 2008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4287
4288 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
4289 x_draw_glyph_string_background.
4290
4291 * w32term.c (x_draw_glyph_string): Likewise.
4292
4293 2008-11-15 Chong Yidong <cyd@stupidchicken.com>
4294
4295 * xterm.c (x_draw_glyph_string): Stop drawing the background of
4296 the next glyph string once past the overhang width.
4297
4298 * nsterm.m (ns_draw_glyph_string): Likewise.
4299
4300 * w32term.c (x_draw_glyph_string): Likewise.
4301
4302 2008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
4303
4304 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
4305 double file close.
4306
4307 2008-11-14 Martin Rudalics <rudalics@gmx.at>
4308
4309 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
4310 dedicated status of window before attempting to display another
4311 buffer in it.
4312
4313 2008-11-14 Juanma Barranquero <lekktu@gmail.com>
4314
4315 * msdos.c (Fmsdos_long_file_names):
4316 (syms_of_msdos) <dos-unsupported-char-glyph>:
4317 * dosfns.c (Fint86): Fix typos in docstrings.
4318
4319 2008-11-14 Eli Zaretskii <eliz@gnu.org>
4320
4321 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
4322
4323 2008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
4324
4325 * puresize.h (BASE_PURESIZE): Increase to 1260000.
4326
4327 2008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
4328
4329 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
4330
4331 * frame.h: Negative alpha means "don't touch".
4332
4333 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
4334
4335 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
4336
4337 2008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
4338
4339 * hftctl.c:
4340 * chpdef.h:
4341 * acldef.h: Remove files used only for systems no longer supported.
4342
4343 * Makefile.in: Fix .o alphabetical ordering.
4344 (hftctl.o): Remove dependency, file removed.
4345 (keymap.o, print.o): Depend on charset.h.
4346
4347 2008-11-10 Kenichi Handa <handa@m17n.org>
4348
4349 * character.c (Fget_byte): Fix and make it faster for unibyte target.
4350
4351 2008-11-08 Chong Yidong <cyd@stupidchicken.com>
4352
4353 * dired.c (file_name_completion): If completion_ignore_case is
4354 enabled, ignore case when checking completion-regexp-list.
4355
4356 2008-11-08 Eli Zaretskii <eliz@gnu.org>
4357
4358 * vm-limit.c (get_lim_data): Fix last change.
4359
4360 2008-11-08 Kenichi Handa <handa@m17n.org>
4361
4362 * character.c (Fget_byte): New function.
4363 (syms_of_character): Defsubr Fget_byte.
4364
4365 2008-11-07 Chong Yidong <cyd@stupidchicken.com>
4366
4367 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
4368 cursor position is valid after scrolling.
4369
4370 2008-11-06 Juanma Barranquero <lekktu@gmail.com>
4371
4372 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
4373
4374 2008-11-06 Glenn Morris <rgm@gnu.org>
4375
4376 * xterm.c (handle_one_xevent): Don't let popup menus cause
4377 mouse-autoselect-window related window switching. (Bug#1261)
4378
4379 2008-11-04 David Smith <davidsmith@acm.org> (tiny change)
4380
4381 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
4382
4383 2008-11-04 Andreas Schwab <schwab@suse.de>
4384
4385 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
4386
4387 2008-11-03 Chong Yidong <cyd@stupidchicken.com>
4388
4389 * xfns.c (Fx_wm_set_size_hint): New function.
4390
4391 2008-11-03 Martin Rudalics <rudalics@gmx.at>
4392
4393 * textprop.c (Fprevious_single_char_property_change): Return 0
4394 when there's no change in a string. (Bug#1301)
4395
4396 2008-11-02 Martin Rudalics <rudalics@gmx.at>
4397
4398 * frame.c (do_switch_frame): New argument NORECORD passed to
4399 Fselect_window.
4400 (Fselect_frame): New argument NORECORD passed to
4401 do_switch_frame.
4402 (Fset_frame_selected_window): New argument NORECORD passed to
4403 Fselect_frame.
4404 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
4405 in call of do_switch_frame.
4406 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
4407 Handle NORECORD argument in call of Fselect_frame.
4408 * lisp.h (do_switch_frame, Fselect_frame)
4409 (Fset_frame_selected_window): Adjust declarations.
4410 * window.c (select_frame_norecord): New function.
4411 (run_window_configuration_change_hook): Use it and call
4412 Fselect_frame with NORECORD set.
4413 (Fselect_window): Pass NORECORD to Fselect_frame.
4414 (Fset_window_configuration): Handle NORECORD argument in call of
4415 do_switch_frame.
4416 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
4417 Fset_frame_selected_window.
4418 * keyboard.c (command_loop_1): Handle NORECORD in call of
4419 Fselect_frame (currently ifdefd).
4420
4421 2008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
4422
4423 * emacs.c (USAGE2): Untabify.
4424
4425 2008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
4426
4427 * composite.c (fill_gstring_header): Fix copy/paste typo.
4428
4429 2008-10-31 Martin Rudalics <rudalics@gmx.at>
4430
4431 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
4432 (Fother_window): Rename argument and rewrite doc-string.
4433 (select_window_norecord): Fix return value. (Bug#1276)
4434
4435 2008-10-30 Juanma Barranquero <lekktu@gmail.com>
4436
4437 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
4438 new frames overriding foreground for tooltips. Based on similar patch
4439 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
4440
4441 2008-10-29 Chong Yidong <cyd@stupidchicken.com>
4442
4443 * emacs.c (Fdaemon_initialized): Initialize nfd.
4444
4445 2008-10-29 Martin Rudalics <rudalics@gmx.at>
4446
4447 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
4448 (Fwindow_text_height): Clarify doc-strings.
4449 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
4450 doc-string of window-scroll-functions.
4451
4452 2008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
4453
4454 * category.c (syms_of_category): Fix typo in docstring.
4455
4456 2008-10-28 Juanma Barranquero <lekktu@gmail.com>
4457
4458 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
4459 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
4460 Fix typos in docstrings.
4461
4462 2008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
4463
4464 * emacs.c (daemon_pipe): Make non-static.
4465 (IS_DAEMON): Move definition ...
4466 * lisp.h (IS_DAEMON): ... here.
4467 (daemon_pipe): Declare.
4468 (is_daemon): Remove.
4469 * dispnew.c (init_display): Use IS_DAEMON.
4470
4471 2008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
4472
4473 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
4474 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
4475
4476 * emacs.c (is_daemon): Remove.
4477 (main): Don't set is_daemon.
4478 (IS_DAEMON): New macro.
4479 (Fdaemonp, Fdaemon_initialized): Use it.
4480 (Fdaemon_initialized): Write a char into the pipe to make sure the
4481 parent exits.
4482 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
4483
4484 2008-10-27 Chong Yidong <cyd@stupidchicken.com>
4485
4486 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
4487 over-sized glyph, draw it with the default glyph width.
4488
4489 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
4490 glyph, draw it with the default glyph width.
4491
4492 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
4493 glyph, draw it with the default glyph width.
4494
4495 * xdisp.c (try_scrolling): When computing the distance from the
4496 scroll margin to PT, try moving some distance past the window
4497 bottom before giving up.
4498
4499 2008-10-27 Martin Rudalics <rudalics@gmx.at>
4500
4501 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
4502 (Fset_window_buffer): Explain in doc-string that a window can be
4503 "strongly" dedicated to its buffer.
4504
4505 2008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
4506
4507 * emacs.c (daemon_name): New variable.
4508 (main): Deal with --daemon=SERVER_NAME.
4509 (Fdaemonp): Return a name if one was passed to --daemon.
4510
4511 2008-10-26 Romain Francoise <romain@orebokech.com>
4512
4513 * emacs.c (daemon_pipe): New variable.
4514 (main): Create a pipe before forking, make the parent exit only after
4515 the child has closed its end of the pipe. Move closing the
4516 descriptors ...
4517 (Fdaemon_initialized): ... here. New function.
4518
4519 2008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
4520
4521 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
4522 the previous unoptimized table.
4523
4524 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
4525 the distinction between non-nil and non-t value of `dedicated'.
4526
4527 2008-10-25 Chong Yidong <cyd@stupidchicken.com>
4528
4529 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
4530 read_char_minibuf_menu_text is large enough to hold the menu string.
4531
4532 2008-10-25 Martin Rudalics <rudalics@gmx.at>
4533
4534 * window.c (Fget_buffer_window, Fdelete_windows_on)
4535 (Freplace_buffer_in_windows): Make buffer argument optional and
4536 rename to buffer_or_name.
4537
4538 2008-10-24 Chong Yidong <cyd@stupidchicken.com>
4539
4540 * xdisp.c (handle_single_display_spec, handle_display_prop):
4541 Undo 2005-05-16 change.
4542 (handle_stop): Pop iterator if it's loaded with an empty string.
4543 (get_overlay_strings_1): Don't save iterator if it's loaded with
4544 an empty string (bug#1201).
4545
4546 2008-10-24 Kenichi Handa <handa@m17n.org>
4547
4548 * ftfont.c (ftfont_otf_features): Fix previous change.
4549 (ftfont_otf_capability): Check FeatureList.FeatureCount before
4550 calling ftfont_otf_features.
4551
4552 2008-10-24 Kenichi Handa <handa@m17n.org>
4553
4554 * font.c (font_match_p): Fix for the case that a vector of
4555 characters is in script-representative-chars.
4556
4557 2008-10-24 Michael Albinus <michael.albinus@gmx.de>
4558
4559 * dbusbind.c (xd_in_read_queued_messages): New variable.
4560 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
4561 (xd_read_queued_messages): Catch Qdbus_error from the macros.
4562 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
4563 macro. (Bug#1186).
4564
4565 2008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
4566
4567 * s/sol2-10.h: New file.
4568
4569 2008-10-23 Juanma Barranquero <lekktu@gmail.com>
4570
4571 * xdisp.c (fill_glyph_string): Fix typo in source (though the
4572 poor beast has survived 9+ years and the jump from xterm.c!).
4573
4574 2008-10-23 Martin Rudalics <rudalics@gmx.at>
4575
4576 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
4577 Reword doc-string.
4578 (Fbury_buffer): In doc-string say what happens to the buffer's window.
4579
4580 2008-10-23 Juanma Barranquero <lekktu@gmail.com>
4581
4582 * character.c (syms_of_character) <script-representative-chars>:
4583 <unicode-category-table>: Doc fixes.
4584
4585 2008-10-23 Noah Friedman <friedman@splode.com>
4586
4587 * coding.c (make_conversion_work_buffer): Check that
4588 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
4589 Fget_buffer_create.
4590
4591 2008-10-23 Kenichi Handa <handa@m17n.org>
4592
4593 * font.c (font_add_log): Check the values of extra properties.
4594
4595 2008-10-22 Martin Rudalics <rudalics@gmx.at>
4596
4597 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
4598 Reword doc-string.
4599 (Fset_window_parameter): Use NILP.
4600 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
4601 (Frecenter): Use "selected" instead of "current" window in doc-strings.
4602
4603 2008-10-22 Juanma Barranquero <lekktu@gmail.com>
4604
4605 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
4606
4607 2008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
4608
4609 * nsfns.m (ns_appkit_version): New function.
4610 (x-server-version): Use it.
4611 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
4612 (x-server-vendor): Don't check_ns().
4613
4614 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
4615
4616 2008-10-22 Juanma Barranquero <lekktu@gmail.com>
4617
4618 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
4619 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
4620
4621 2008-10-22 Kenichi Handa <handa@m17n.org>
4622
4623 * syntax.c (scan_words): Call word_boundary_p instead of comparing
4624 scripts.
4625
4626 * category.c (word_boundary_p): Check scripts instead of charset.
4627 Handle nil value in word-separating-categories and
4628 word-combining-categories.
4629 (syms_of_category): Fix docstrings of word-separating-categories
4630 and word-combining-categories.
4631
4632 2008-10-21 Eli Zaretskii <eliz@gnu.org>
4633
4634 * coding.c (Fencode_coding_region, Fdecode_coding_region)
4635 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
4636
4637 2008-10-21 Martin Rudalics <rudalics@gmx.at>
4638
4639 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
4640 Rename arg "buffer" to "buffer_or_name".
4641 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
4642 it optional.
4643 (no_switch_window): Remove since the return value is not used.
4644 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
4645 Consider window as dedicated when Fwindow_dedicated_p returns a
4646 non-nil value.
4647 * lisp.h: Remove prototype for no_switch_window.
4648
4649 2008-10-21 Jan Djärv <jan.h.d@swipnet.se>
4650
4651 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
4652 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
4653
4654 2008-10-21 Kenichi Handa <handa@m17n.org>
4655
4656 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
4657 check Vlatin_extra_code_table.
4658
4659 2008-10-20 Eli Zaretskii <eliz@gnu.org>
4660
4661 * fileio.c (Fset_file_modes): Doc fix.
4662
4663 2008-10-19 Michael Albinus <michael.albinus@gmx.de>
4664
4665 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
4666 in arrays.
4667
4668 2008-10-19 Martin Rudalics <rudalics@gmx.at>
4669
4670 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
4671 Mention kill-buffer in doc-string.
4672 (Fset_window_buffer): Reinsert tem check removed in last commit.
4673 (Fenlarge_window, Fshrink_window): Have argument names and
4674 doc-string follow Elisp manual more closely.
4675
4676 2008-10-18 Eli Zaretskii <eliz@gnu.org>
4677
4678 * fileio.c (Fset_file_modes): Doc fix.
4679
4680 2008-10-18 Martin Rudalics <rudalics@gmx.at>
4681
4682 * window.c (Fwindow_width, Fset_window_start)
4683 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
4684 (Fdelete_windows_on, Freplace_buffer_in_windows):
4685 Make doc-strings follow code and Elisp manual more closely.
4686 (Fwindow_dedicated_p): Make window argument optional.
4687 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
4688 (Fset_window_buffer): Respect any non-nil dedicated value for
4689 window. Rename "buffer" argument to "buffer_or_name".
4690
4691 2008-10-18 Ulrich Mueller <ulm@gentoo.org>
4692
4693 * m/sh3.h: New file, machine description for SuperH.
4694
4695 2008-10-17 Martin Rudalics <rudalics@gmx.at>
4696
4697 * window.c (Fsplit_window): Rename arg horflag to horizontal.
4698
4699 2008-10-17 Kenichi Handa <handa@m17n.org>
4700
4701 * ftfont.c (ftfont_otf_features): Fix indexing
4702 gsub_gpos->FeatureList.Feature. Check the validity of indices.
4703
4704 2008-10-16 Magnus Henoch <mange@freemail.hu>
4705
4706 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
4707 (Fdbus_call_method_asynchronously): Ditto.
4708 This change makes C-h f display the argument list.
4709
4710 2008-10-16 Chong Yidong <cyd@stupidchicken.com>
4711
4712 * fileio.c (Fexpand_file_name): Doc fix.
4713
4714 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
4715 of :foreground and :background equivalent to unspecified (20.x
4716 compatibility).
4717
4718 2008-10-15 Eli Zaretskii <eliz@gnu.org>
4719
4720 * buffer.c (syms_of_buffer): Doc fix.
4721
4722 2008-10-14 Kenichi Handa <handa@m17n.org>
4723
4724 * font.c (font_clear_prop): When clearing font width, clear the
4725 average width field too.
4726
4727 2008-10-12 Andreas Schwab <schwab@suse.de>
4728
4729 * ftfont.c (ftfont_shape_by_flt): Make static.
4730 * ftfont.h (ftfont_shape_by_flt): Don't declare.
4731
4732 * font.c: Don't include <m17n-flt.h>.
4733
4734 2008-10-10 Eli Zaretskii <eliz@gnu.org>
4735
4736 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
4737
4738 2008-10-09 Eli Zaretskii <eliz@gnu.org>
4739
4740 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
4741 away code.
4742
4743 2008-10-09 Chong Yidong <cyd@stupidchicken.com>
4744
4745 * dispnew.c (update_text_area): Avoid looping due to large glyph
4746 overhangs (bug#1070).
4747
4748 2008-10-09 Kenichi Handa <handa@m17n.org>
4749
4750 * fontset.c (face_for_char): If face->fontset is negative, just
4751 return ascii_face.
4752
4753 * font.c (font_delete_unmatched): Fix previous change.
4754 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
4755
4756 2008-10-09 Martin Rudalics <rudalics@gmx.at>
4757
4758 * frame.c (Fraise_frame): On text-only terminals select frame in
4759 order to make it visible. (Bug#1061)
4760
4761 2008-10-08 Chong Yidong <cyd@stupidchicken.com>
4762
4763 * fontset.c (fontset_find_font): Check frame validity.
4764
4765 2008-10-07 Chong Yidong <cyd@stupidchicken.com>
4766
4767 * gtkutil.c (xg_display_open): Reset default display if none exists.
4768 (xg_display_close): Allow Emacs to close all displays (bug#985).
4769
4770 2008-10-06 Andreas Schwab <schwab@suse.de>
4771
4772 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
4773
4774 2008-10-06 Chong Yidong <cyd@stupidchicken.com>
4775
4776 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
4777
4778 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
4779
4780 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
4781 during initialization.
4782
4783 2008-10-04 Eli Zaretskii <eliz@gnu.org>
4784
4785 * xdisp.c (redisplay_internal): If frame switched, redisplay the
4786 whole thing on MSDOS frames as well as on a TTY.
4787
4788 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
4789 well as for TTY.
4790 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
4791 well as on a TTY.
4792
4793 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
4794 as well as for TTY.
4795
4796 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
4797
4798 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
4799 MSDOS frames as well.
4800
4801 2008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
4802
4803 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
4804 correct arguments.
4805 * menu.c (find_and_return_menu_selection): Add cast.
4806
4807 2008-10-03 Glenn Morris <rgm@gnu.org>
4808
4809 * emacs.c (USAGE1): Add --daemon.
4810
4811 2008-10-02 Eli Zaretskii <eliz@gnu.org>
4812
4813 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
4814 100, so it's in percents as advertised.
4815
4816 2008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
4817
4818 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
4819 (ns_output.current_cursor, ns_output.desired_cursor)
4820 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
4821 (FRAME_NEW_CURSOR_COLOR): Remove.
4822
4823 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
4824 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
4825 enumeration (HOLLOW_BOX_CURSOR, etc.).
4826
4827 * nsterm.m (ns_frame_rehighlight): Remove commented code.
4828 (draw_window_cursor): Simplify code.
4829 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
4830 Don't change cursor type. In latter, call rehighlight instead of doing
4831 updates manually.
4832 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
4833 Use core Emacs cursor types.
4834
4835 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
4836
4837 2008-10-02 Martin Rudalics <rudalics@gmx.at>
4838
4839 * process.c (Faccept_process_output): Fix doc-string.
4840
4841 2008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
4842
4843 * gmalloc.c (__sbrk): Also define for uClibc.
4844
4845 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
4846 for uClibc.
4847
4848 2008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
4849
4850 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
4851 styles.
4852 (nsfont_open): Reenable the cache.
4853
4854 2008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
4855
4856 * font.c (font_matching_entity): Reflect ATTRS in font selection.
4857 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
4858
4859 2008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
4860
4861 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
4862 a suspended terminal.
4863
4864 2008-09-30 Michael Albinus <michael.albinus@gmx.de>
4865
4866 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
4867
4868 2008-09-30 Eli Zaretskii <eliz@gnu.org>
4869
4870 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
4871
4872 2008-09-30 Chong Yidong <cyd@stupidchicken.com>
4873
4874 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
4875 in a continued line coincides with a line beginning.
4876
4877 2008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
4878
4879 * nsfont.m (nsfont_trait_distance): Fix bug.
4880 (nsfont_list): Return a list rather than a vector (syncs with Handa
4881 changes of 2008-05-14).
4882 (nsfont_open): Improve logging.
4883
4884 2008-09-29 Andreas Schwab <schwab@suse.de>
4885
4886 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
4887
4888 2008-09-28 Martin Rudalics <rudalics@gmx.at>
4889
4890 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
4891 name as char-resolve-modifiers.
4892 Reported by: Markus Triska <markus.triska@gmx.at>
4893
4894 2008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
4895
4896 * dispnew.c (init_display): Return earlier when running as a daemon.
4897
4898 2008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
4899
4900 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
4901
4902 2008-09-27 Eli Zaretskii <eliz@gnu.org>
4903
4904 * composite.c (Fcomposition_get_gstring)
4905 (Fcompose_region_internal, Fcompose_string_internal)
4906 (Ffind_composition_internal): Doc fix.
4907 (syms_of_composite) <compose-chars-after-function>: Doc fix.
4908 (syms_of_composite) <auto-composition-function>: Doc fix.
4909 (syms_of_composite) <composition-function-table>: Doc fix.
4910
4911 2008-09-25 Chong Yidong <cyd@stupidchicken.com>
4912
4913 * search.c (wordify): New argument for lax word-ends.
4914 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
4915
4916 2008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
4917
4918 * lisp.h (is_daemon): Declare.
4919 * dispnew.c (init_display): Do not try to initialize the terminal
4920 when running as a daemon.
4921
4922 2008-09-22 Chong Yidong <cyd@stupidchicken.com>
4923
4924 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
4925 x_display_pixel_height.
4926
4927 2008-09-22 Martin Rudalics <rudalics@gmx.at>
4928
4929 * undo.c (record_point): Don't call Fundo_boundary for first
4930 change. (Bug#731)
4931
4932 2008-09-22 Juanma Barranquero <lekktu@gmail.com>
4933
4934 * emacs.c (Fdaemonp): Doc fix.
4935
4936 2008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
4937
4938 * emacs.c (main): Place #ifdef in the proper place.
4939
4940 2008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
4941
4942 * emacs.c (standard_args): Add --daemon.
4943 (main): Disconnect from the terminal when --daemon is passed.
4944 (is_daemon): New variable.
4945 (Fdaemonp): New function.
4946 (syms_of_emacs): Defsubr it.
4947
4948 2008-09-20 Chong Yidong <cyd@stupidchicken.com>
4949
4950 * xdisp.c (get_next_display_element): Handle string display
4951 correctly when checking for the end of a box run.
4952
4953 2008-09-20 Glenn Morris <rgm@gnu.org>
4954
4955 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
4956 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
4957 (Frename_file): Avoid copying to trash if a rename involves
4958 a delete. (Bug#964).
4959
4960 2008-09-20 Eli Zaretskii <eliz@gnu.org>
4961
4962 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
4963 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
4964 frames as well as termcap frames.
4965 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
4966 get_named_tty.
4967
4968 2008-09-19 Eli Zaretskii <eliz@gnu.org>
4969
4970 * process.c (procfs_system_process_attributes): Fix cmdline in
4971 case /proc/PID/cmdline is empty.
4972
4973 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
4974 x_display_pixel_height.
4975
4976 2008-09-19 Juanma Barranquero <lekktu@gmail.com>
4977
4978 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
4979
4980 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
4981 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
4982
4983 2008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
4984
4985 * dispextern.h (struct it): Move line_wrap away from the middle of
4986 bitfields. Move voffset in struct iterator_stack_entry after the
4987 bitfields. Move tab_width near after another short.
4988
4989 2008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
4990
4991 * frame.h (struct frame): Move alpha from the middle of bitfields.
4992
4993 * window.h (struct window): Move frozen_window_start_p after the
4994 rest of the bitfields to reduce padding.
4995
4996 2008-09-18 Chong Yidong <cyd@stupidchicken.com>
4997
4998 * xterm.h (x_display_info): Remove `height' and `width' members.
4999
5000 * nsterm.h (ns_display_info): Remove `height' and `width' members.
5001
5002 * w32term.h (w32_display_info): Remove `height', `width',
5003 `height_in', and `width_in' members.
5004
5005 * xterm.c (x_display_pixel_height, x_display_pixel_width):
5006 New functions.
5007 (x_calc_absolute_position): Use them.
5008 (x_term_init): Omit removed `height' and `width' members.
5009
5010 * w32term.c (x_display_pixel_height, x_display_pixel_width):
5011 New functions.
5012 (w32_read_socket, x_calc_absolute_position): Use them.
5013 (w32_initialize_display_info, w32_term_init): Omit removed members
5014 of w32_display_info.
5015
5016 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
5017 New functions.
5018 (ns_initialize_display_info): Omit removed members of ns_display_info.
5019
5020 * xterm.c (x_display_pixel_height, x_display_pixel_width):
5021 New functions.
5022 (x_calc_absolute_position): Use them.
5023 (x_term_init): Omit removed `height' and `width' members.
5024
5025 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
5026 (compute_tip_xy):
5027 * frame.c (x_fullscreen_adjust):
5028 * xmenu.c (menu_position_func): Use x_display_pixel_height and
5029 x_display_pixel_width.
5030
5031 2008-09-18 Kenichi Handa <handa@m17n.org>
5032
5033 * composite.c (fill_gstring_header): Don't check FROM and TO here.
5034 (composition_compute_stop_pos): Fix handling of static composition.
5035 (Fcomposition_get_gstring): Check FROM and TO at first.
5036
5037 2008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
5038
5039 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
5040 mixup (YAILOM).
5041
5042 2008-09-17 Chong Yidong <cyd@stupidchicken.com>
5043
5044 * indent.c (Fvertical_motion): Use position reported by iterator
5045 instead of PT for determining screen motion (bug#943).
5046
5047 2008-09-17 Romain Francoise <romain@orebokech.com>
5048
5049 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
5050
5051 2008-09-17 Kenichi Handa <handa@m17n.org>
5052
5053 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
5054
5055 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
5056 if necessary.
5057
5058 2008-09-16 Kenichi Handa <handa@m17n.org>
5059
5060 * coding.c (make_conversion_work_buffer): Avoid calling
5061 Fget_buffer_create if it is not necessary.
5062
5063 2008-09-15 Martin Rudalics <rudalics@gmx.at>
5064
5065 * window.c (Fselect_window): Don't update window_select_count and
5066 use_time when norecord is not nil.
5067
5068 2008-09-14 Kenichi Handa <handa@m17n.org>
5069
5070 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
5071 specpdl_ptr.
5072
5073 2008-09-12 Kenichi Handa <handa@m17n.org>
5074
5075 * indent.c (scan_for_column): Don't handle automatic composition
5076 if the current buffer is not associated with a window.
5077
5078 * composite.c (composition_reseat_it): If the current buffer is
5079 not associated with a window, ignore the automatic composition.
5080 (find_automatic_composition): Likewise.
5081
5082 2008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
5083
5084 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
5085 (Fgpm_mouse_stop): Use it.
5086 * termhooks.h (close_gpm): Declare.
5087 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
5088 connection if Gpm_GetEvent fails.
5089
5090 * window.c (set_window_buffer): Always preserve current-buffer.
5091
5092 2008-09-12 Glenn Morris <rgm@gnu.org>
5093
5094 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
5095
5096 2008-09-11 Glenn Morris <rgm@gnu.org>
5097
5098 * charset.c (charset-map-path): Doc fix.
5099
5100 2008-09-10 Kenichi Handa <handa@m17n.org>
5101
5102 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
5103
5104 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
5105 compose a grapheme cluster with the preceding base glyph.
5106
5107 * composite.c (composition_compute_stop_pos): Fix previous change.
5108 Reset cmp_it->id to -1 at first.
5109
5110 2008-09-10 Glenn Morris <rgm@gnu.org>
5111
5112 * Makefile.in (character.o, chartab.o): Fix config.h typo.
5113
5114 2008-09-09 Chong Yidong <cyd@stupidchicken.com>
5115
5116 * keyboard.c (read_key_sequence): Reapply translation maps when
5117 switching keyboards.
5118
5119 2008-09-09 Kenichi Handa <handa@m17n.org>
5120
5121 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
5122 characters.
5123
5124 * composite.c (FORWARD_CHAR): Fix calculation
5125 of (POSITION).pos_byte.
5126 (composition_compute_stop_pos): Limit the search of composition to
5127 at most 500 characters ahead. If we reach the limit or find a
5128 newline, set cmp_it->ch to -2 and return 0.
5129 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
5130
5131 2008-09-08 Kenichi Handa <handa@m17n.org>
5132
5133 * indent.c (Fvertical_motion): Be sure to set
5134 it_overshoot_expected if it.cmp_it.id is non-negative.
5135
5136 2008-09-07 Andreas Schwab <schwab@suse.de>
5137
5138 * callproc.c (Fcall_process): Don't hold references to string data
5139 across garbage collection. Move initialisation of new_argv down
5140 to avoid compiler bug.
5141
5142 2008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
5143
5144 * process.c (Fsystem_process_attributes): Doc fix.
5145
5146 2008-09-07 Chong Yidong <cyd@stupidchicken.com>
5147
5148 * callproc.c (Fcall_process): Canonicalize current directory name.
5149
5150 * xdisp.c (move_it_to): When moving by vpos, ensure that the
5151 iterator advances to the next line if the current line ends in a
5152 continued tab.
5153
5154 2008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
5155
5156 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
5157 member to point to cmp_from.
5158
5159 * xdisp.c: Doc fix for references to gidx data member.
5160
5161 2008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
5162
5163 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
5164
5165 2008-09-07 Kenichi Handa <handa@m17n.org>
5166
5167 * composite.c (FORWARD_CHAR): Check STOP after
5168 incrementing (POSITION).pos.
5169
5170 2008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
5171
5172 * process.c (Fsystem_process_attributes): Doc fix.
5173
5174 2008-09-06 Chong Yidong <cyd@stupidchicken.com>
5175
5176 * keyboard.c (Ftop_level): Doc fix.
5177
5178 2008-09-06 Eli Zaretskii <eliz@gnu.org>
5179
5180 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
5181 minibuffer, don't let lower part of menu invade the echo area.
5182
5183 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
5184 "char *q" to access menu text and advance through it. Revert the
5185 change that displayed ">" instead of ASCII character 0x10.
5186
5187 2008-09-05 Eli Zaretskii <eliz@gnu.org>
5188
5189 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
5190 toggle boxes and radio buttons on MS-DOS as well.
5191
5192 2008-09-05 Kenichi Handa <handa@m17n.org>
5193
5194 * composite.c (autocmp_chars): Check lookback count.
5195 (composition_compute_stop_pos): Set cmp_it->lookback.
5196 (composition_reseat_it): Check lookback count.
5197 (struct position_record): New struct.
5198 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
5199 (find_automatic_composition): New function.
5200 (composition_adjust_point): Use find_automatic_composition.
5201
5202 * dispextern.h (struct composition_it): New member lookback.
5203
5204 2008-09-02 Chong Yidong <cyd@stupidchicken.com>
5205
5206 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
5207 if moving by a single line.
5208
5209 2008-09-02 Andreas Schwab <schwab@suse.de>
5210
5211 * xterm.c (x_delete_display): Fix merge error.
5212
5213 * fileio.c (Fexpand_file_name): Remove unused variables.
5214
5215 2008-09-02 Eli Zaretskii <eliz@gnu.org>
5216
5217 * fileio.c (Fexpand_file_name): Copy argument `name' into local
5218 storage on all platforms, not just on DOS_NT.
5219
5220 2008-09-02 Jason Rumney <jasonr@gnu.org>
5221
5222 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
5223 Ensure mouse is not grabbed after menu is finished.
5224
5225 2008-09-01 Chong Yidong <cyd@stupidchicken.com>
5226
5227 * xfaces.c (Finternal_set_alternative_font_family_alist)
5228 (Finternal_set_alternative_font_registry_alist): Properly copy
5229 entire alist structure.
5230
5231 2008-09-01 Kenichi Handa <handa@m17n.org>
5232
5233 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
5234 representative chars of the script is a vector.
5235 (ftfont_list): Handle the case where the representative chars of
5236 the script is a vector.
5237
5238 * character.c (syms_of_character): Docstring of
5239 script-representative-chars fixed.
5240
5241 2008-08-31 Eli Zaretskii <eliz@gnu.org>
5242
5243 * msdos.c (BUILD_CHAR_GLYPH): New macro.
5244 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
5245 the menu. Allocate larger buffer for `text', to account for
5246 possible ^C characters.
5247
5248 2008-08-31 Martin Rudalics <rudalics@gmx.at>
5249
5250 * xdisp.c (prepare_menu_bars): Don't call
5251 Vwindow_size_change_functions with arg Qt.
5252
5253 2008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
5254
5255 * font.h (font_range):
5256 * fileio.c (report_file_error):
5257 * composite.c (composition_update_it): Yet another int/Lisp_Object
5258 mixup (YAILOM).
5259
5260 2008-08-30 Glenn Morris <rgm@gnu.org>
5261
5262 * data.c (Fmake_variable_frame_local): Doc fix.
5263
5264 * frame.c (Fmodify_frame_parameters): Doc fix.
5265
5266 2008-08-30 Eli Zaretskii <eliz@gnu.org>
5267
5268 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
5269 needed by GetTokenInformation.
5270 (w32_system_process_attributes): Check return values of all system
5271 APIs.
5272
5273 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
5274 only when the state changes.
5275 (IT_update_begin, IT_update_end): Add termscript trace.
5276
5277 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
5278 clipboard is unavailable. Set dst to NULL if it doesn't point to
5279 malloc'ed data.
5280 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
5281 passing random values to xfree.
5282
5283 * dispnew.c (init_display): Set `tty's association in frame's
5284 parameters alist to the name of the terminal device, if that is known.
5285
5286 2008-08-29 Jason Rumney <jasonr@gnu.org>
5287
5288 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
5289
5290 2008-08-29 Eli Zaretskii <eliz@gnu.org>
5291
5292 * composite.c (fill_gstring_body): Avoid compiler warnings.
5293
5294 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
5295 LGLYPH_SET_CODE to avoid compiler warnings.
5296
5297 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
5298
5299 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
5300
5301 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
5302 LGLYPH_SET_CODE.
5303
5304 2008-08-29 Kenichi Handa <handa@m17n.org>
5305
5306 * fileio.c (report_file_error): Don't downcase the first character
5307 of errstring if it is still unibyte.
5308
5309 2008-08-29 Kenichi Handa <handa@m17n.org>
5310
5311 These changes are to re-implement the automatic composition so
5312 that it doesn't use text properties.
5313
5314 * Makefile.in (ftfont.o): Depend on composite.h.
5315 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
5316
5317 * character.h (Vunicode_category_table): Extern it.
5318
5319 * character.c (Vunicode_category_table): New variable.
5320 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
5321
5322 * chartab.c (optimize_sub_char_table): Perform more greedy
5323 optimization.
5324
5325 * composite.h (enum composition_method):
5326 Delete COMPOSITION_WITH_GLYPH_STRING.
5327 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
5328 (Vcomposition_function_table): Extern it.
5329 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
5330 (composition_gstring_put_cache, composition_gstring_from_id)
5331 (composition_gstring_p, composition_gstring_width)
5332 (composition_compute_stop_pos, composition_reseat_it)
5333 (composition_update_it, composition_adjust_point): Extern them.
5334 (Fcomposition_get_gstring): EXFUN it.
5335
5336 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
5337 (Vcomposition_function_table)
5338 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
5339 (gstring_hash_table, gstring_work, gstring_work_headers):
5340 New variables.
5341 (gstring_lookup_cache, composition_gstring_put_cache)
5342 (composition_gstring_from_id, composition_gstring_p)
5343 (composition_gstring_width, fill_gstring_header)
5344 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
5345 (composition_reseat_it, composition_update_it)
5346 (composition_adjust_point, Fcomposition_get_gstring): New functions.
5347 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
5348 and gstring_work_headers. DEFVAR_LISP composition-function-table.
5349 Defsubr compostion_get_gstring.
5350
5351 * dispextern.h (struct glyph): New union u.cmp. Delete the member
5352 cmp_id.
5353 (struct glyph_string): Delete the member gidx. New members
5354 cmp_id, cmp_from, and cmp_to.
5355 (enum it_method): Delete GET_FROM_COMPOSITION.
5356 (struct composition_it): New struct.
5357 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
5358 Delete c, len, cmp_id, cmp_len in u.comp.
5359
5360 * font.h (enum lgstring_indices): Delete it.
5361 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
5362 (enum lglyph_indices): Likewise.
5363 (font_range): Adjust extern.
5364 (font_fill_lglyph_metrics): Extern it.
5365
5366 * font.c (QCf): New variable.
5367 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
5368 (font_prepare_composition): Delete this function.
5369 (font_range): Type and arguments changed.
5370 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
5371 (font_fill_lglyph_metrics): New function.
5372 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
5373 (syms_of_font): DEFSYM QCf. Delete defsubr for
5374 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
5375 Defsubr Sfont_shape_gstring.
5376
5377 * fontset.h (font_for_char): Extern it.
5378
5379 * fontset.c (font_for_char): New function.
5380
5381 * ftfont.c: Include composite.h.
5382 (ftfont_resolve_generic_family): Add langset "en" to pattern.
5383 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
5384
5385 * indent.c: Include composite.h and dispextern.h.
5386 (check_composition): Delete this function.
5387 (scan_for_column): Handle composition by
5388 composition_compute_stop_pos, composition_reseat_it, and
5389 composition_update_it.
5390 (compute_motion): Likewise.
5391 (Fvertical_motion): Fix checking of composition.
5392
5393 * keyboard.c (adjust_point_for_property): Check composition by
5394 composition_adjust_point.
5395
5396 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
5397 struct glyph_string.
5398
5399 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
5400 (append_composite_glyph): Adjust for the change of struct it and
5401 struct glyph.
5402 (produce_composite_glyph): Likewise.
5403
5404 * w32term.c (x_draw_composite_glyph_string_foreground):
5405 Adjust for the change of struct glyph_string.
5406 (x_draw_glyph_string): Likewise.
5407
5408 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
5409 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
5410
5411 * xdisp.c: Include font.h.
5412 (it_props): Delete the entry for Qauto_composed.
5413 (init_iterator): Initialize it->cmp_it.id to -1.
5414 (compute_stop_pos): Call composition_compute_stop_pos.
5415 (face_before_or_after_it_pos): Adjust for the change of struct it.
5416 (handle_auto_composed_prop): Delete it.
5417 (handle_composition_prop): Handle only static composition.
5418 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
5419 from xassert. Initialize it->cmp_it.stop_pos.
5420 (push_it): Adjust for the change of struct it.
5421 (pop_it): Likewise.
5422 (get_next_element): Delete next_element_from_composition.
5423 (CHAR_COMPOSED_P): New macro.
5424 (get_next_display_element): For automatic composition, get a face
5425 from the font in the glyph-string.
5426 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
5427 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
5428 (next_element_from_string): Check if the character at the current
5429 position is composed by CHAR_COMPOSED_P.
5430 (next_element_from_buffer): Likewise.
5431 (next_element_from_composition): Adjust for the change of struct it.
5432 Update it->cmp_it.
5433 (dump_glyph): Adjust for the change of struct glyph.
5434 (fill_composite_glyph_string): Adjust for the change of struct
5435 it and struct glyph. Don't handle automatic composition here.
5436 (fill_gstring_glyph_string): New function.
5437 (x_get_glyph_overhangs): Handle automatic composition.
5438 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
5439 (BUILD_GSTRING_GLYPH_STRING): New macro.
5440 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
5441 automatic composition.
5442 (append_composite_glyph): Adjust for the change of struct it and
5443 struct glyph.
5444 (x_produce_glyphs): Adjust for the change of struct it.
5445
5446 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
5447 the change of struct glyph_string.
5448 (x_draw_glyph_string): Likewise.
5449
5450 2008-08-29 Glenn Morris <rgm@gnu.org>
5451
5452 * buffer.c (word-wrap): Doc fix.
5453 * xdisp.c (truncate-partial-width-windows): Doc fix.
5454 Increase default to 50.
5455
5456 2008-08-29 Chong Yidong <cyd@stupidchicken.com>
5457
5458 * xdisp.c (update_tool_bar_unwind): New function.
5459 (update_tool_bar): Temporarily set selected frame before building
5460 tool-bar items.
5461
5462 2008-08-28 Michael Albinus <michael.albinus@gmx.de>
5463
5464 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
5465 snprintf, respectively.
5466 (xd_append_arg): Convert strings with Fstring_make_unibyte.
5467
5468 2008-08-28 Chong Yidong <cyd@stupidchicken.com>
5469
5470 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
5471 LDFLAGS to GNUstep CC invocation.
5472
5473 2008-08-27 Chong Yidong <cyd@stupidchicken.com>
5474
5475 * indent.c (Fvertical_motion): Revert last change. Handle the
5476 general case where we are moving forward, and PT spans multiple
5477 screen lines.
5478
5479 * eval.c (find_handler_clause): Temporarily increase
5480 max-lisp-eval-depth while printing the backtrace buffer, to
5481 guarantee that help-mode code can run.
5482
5483 2008-08-27 Eli Zaretskii <eliz@gnu.org>
5484
5485 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
5486 colors under -rv.
5487 (IT_set_frame_parameters): Don't swap foreground and background
5488 colors if `(reverse . t)' is present in the frame properties.
5489 (internal_terminal_init): Call init_frame_faces only for the
5490 initial frame.
5491
5492 2008-08-27 Andreas Schwab <schwab@suse.de>
5493
5494 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
5495
5496 2008-08-27 Andreas Schwab <schwab@suse.de>
5497
5498 * search.c (search_buffer): Set char_base to zero only at the end.
5499
5500 2008-08-27 Kenichi Handa <handa@m17n.org>
5501
5502 * fileio.c (report_file_error): Fix handling of multibyte error string.
5503
5504 2008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
5505
5506 * xterm.c (x_term_init): Temporarily hide the partially
5507 initialized terminal while calling vendor-specific-keysyms.
5508
5509 2008-08-26 Eli Zaretskii <eliz@gnu.org>
5510
5511 * msdos.c (internal_terminal_init): Most initializations done only
5512 once, especially initial_screen_colors[] and termscript open.
5513
5514 2008-08-26 Chong Yidong <cyd@stupidchicken.com>
5515
5516 * eval.c (Fcondition_case): Doc fix.
5517
5518 * widgetprv.h (EmacsFramePart): Change font member to the new font
5519 struct.
5520
5521 * widget.c: Include character.h and font.h for XSETFONT.
5522 (setup_frame_gcs): Compute X font id from font struct, just once.
5523
5524 2008-08-26 Eli Zaretskii <eliz@gnu.org>
5525
5526 * term.c (get_named_tty): Fix last change.
5527
5528 2008-08-26 Chong Yidong <cyd@stupidchicken.com>
5529
5530 * indent.c (Fvertical_motion): If moving forward starting from a
5531 multi-line string, move the iterator to the last line of that string.
5532
5533 2008-08-25 Eli Zaretskii <eliz@gnu.org>
5534
5535 * frame.c (do_switch_frame): Mark previously displayed frame as
5536 obscured for FRAME_MSDOS_P frames as well.
5537
5538 2008-08-24 Eli Zaretskii <eliz@gnu.org>
5539
5540 * frame.c (make_terminal_frame): Initialize f->terminal,
5541 f->terminal->reference_count, and scroll bars on MS-DOS as well.
5542 Set the top frame to newly created frame.
5543 (Fmake_terminal_frame): Reuse the_only_display_info.
5544
5545 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
5546 estimating available memory.
5547
5548 2008-08-23 David Reitter <david.reitter@gmail.com>
5549
5550 * nsterm.m (ns_draw_window_cursor): Don't call
5551 NSDisableScreenUpdates and NSEnableScreenUpdates on
5552 non-NS_IMPL_COCOA systems.
5553
5554 2008-08-23 Andreas Schwab <schwab@suse.de>
5555
5556 * process.c (procfs_system_process_attributes): Fix use of
5557 uninitialized variables.
5558
5559 2008-08-23 Eli Zaretskii <eliz@gnu.org>
5560
5561 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
5562
5563 * dispnew.c (init_display): Remove MS-DOS specific conditions for
5564 calling tty-set-up-initial-frame-faces.
5565
5566 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
5567 Allow MSDOS frames along with X frames.
5568
5569 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
5570 addition to output_termcap.
5571
5572 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
5573
5574 * termchar.h (FRAME_TTY): Support output_msdos_raw.
5575 (struct tty_display_info) [MSDOS]: Add fields related to mouse
5576 highlight.
5577
5578 * process.c [!subprocesses]: Define QCname.
5579 (syms_of_process): Intern and staticpro it.
5580
5581 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
5582 Adjust for changes in encoding/decoding routines.
5583 Use encode_coding_object and decode_coding_object instead of
5584 encode_coding and decode_coding.
5585
5586 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
5587
5588 * dosfns.c: Include frame.h before termhooks.h.
5589 (dos_cleanup): Use CURTTY ()->termscript instead of a global
5590 variable termscript.
5591
5592 * s/msdos.h (USER_FULL_NAME): Define.
5593 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
5594
5595 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
5596 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
5597 pw->pw_gecos.
5598
5599 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
5600 SELECTED_FRAME as additional (1st) argument.
5601 (tty_read_avail_input): Handle output_msdos_raw in
5602 addition to output_termcap.
5603
5604 * msdos.c: Include frame.h before termhooks.h.
5605 (mouse_on, mouse_off, mouse_moveto, mouse_init)
5606 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
5607 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
5608 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
5609 (IT_set_terminal_modes, IT_reset_terminal_modes)
5610 (IT_set_frame_parameters): Use tty->termscript instead of a global
5611 variable termscript.
5612 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
5613 global variable terminal_coding. Don't refer to
5614 Vnonascii_translation_table.
5615 (internal_terminal_init): Set Vwindow_system in current_kboard.
5616 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
5617 Announce date and time of session start, if termscript is open.
5618 Don't zero out the_only_display_info (it is done in
5619 term.c:init_tty). Open termscript only of not already open.
5620 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
5621 here instead of dos_ttraw. Don't initialize display if this is an
5622 initial tty. Don't set FRAME_FONT.
5623 (Vwindow_system_version): Bump to 23.
5624 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
5625 is available, set up mouse_position_hook.
5626 (dos_ttraw, IT_set_terminal_modes): If called with initial
5627 terminal, do nothing.
5628 (IT_set_frame_parameters): Handle the Qtty_type frame
5629 parameter by calling internal_terminal_init.
5630 (dos_set_window_size, show_mouse_face)
5631 (clear_mouse_face, IT_note_mode_line_highlight)
5632 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
5633 (dos_rawgetc): Use tty_display_info instead of x_display_info.
5634 (initialize_msdos_display): New function.
5635 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
5636 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
5637 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
5638 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
5639 Accept additional argument: a pointer to a frame. Update all callers.
5640 (request_sigio, unrequest_sigio): Don't define, now defined on
5641 sysdep.c.
5642 (IT_write_glyphs): Rewrite to use encode_terminal_code.
5643
5644 * term.c [MSDOS]: Include msdos.h.
5645 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
5646 conditional to DOS_NT. Allow only one call to this function in a
5647 session. Don't allocate a new struct tty_display_info; instead,
5648 reuse the_only_display_info. Call get_tty_size to get screen
5649 dimensions. Call init_baud_rate to set bad_rate.
5650 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
5651 (Fsuspend_tty) [MSDOS]: Don't close input and output.
5652 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
5653 (get_tty_terminal, get_named_tty, Ftty_type)
5654 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
5655 output_termcap.
5656 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
5657 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
5658 only when subprocesses are supported.
5659
5660 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
5661 f->output_data.x.
5662 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
5663 terminal devices.
5664
5665 * msdos.h: Remove definition of struct x_display_info and struct
5666 x_output.
5667 (FRAME_FONT): Use output_data.tty.
5668 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
5669 (struct x_display_info): Rename from display_info. Update all users in
5670 msdos.c.
5671 (struct x_output): Remove background_pixel and foreground_pixel.
5672 (the_only_display_info): Rename from the_only_x_display.
5673 (dos_ttraw): Update prototype.
5674
5675 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
5676 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
5677
5678 2008-08-23 Jason Rumney <jasonr@gnu.org>
5679
5680 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
5681 (fn_TIFFSetDirectory): New library function used.
5682 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
5683 (tiff_load): Use :index to select among multiple images. Set count
5684 property when multiple images exist.
5685 (gif_format): Use :index, not :image.
5686
5687 2008-08-23 Chong Yidong <cyd@stupidchicken.com>
5688
5689 * xdisp.c (try_scrolling): Check INT_MAX instead of
5690 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
5691 to obtain INT_MAX.
5692
5693 2008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
5694
5695 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
5696
5697 2008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
5698
5699 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
5700 GNUstep library location.
5701
5702 2008-08-21 Chong Yidong <cyd@stupidchicken.com>
5703
5704 * xfaces.c (x_update_menu_appearance): Check validity of menu font
5705 before using it.
5706
5707 * puresize.h (BASE_PURESIZE): Increase to 1250000.
5708
5709 2008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
5710
5711 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
5712 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
5713 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
5714 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
5715 (EmacsApp-cursor_blink_handler): Remove declaration.
5716 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
5717 match 01 Feb 2008 changes in xterm.c.
5718 (ns_read_socket): Add cast to avoid warning.
5719 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
5720 GNUstep.
5721
5722 2008-08-20 Chong Yidong <cyd@stupidchicken.com>
5723
5724 * xselect.c (x_get_foreign_selection): Return nil if desired
5725 selection could not be obtained, instead of signalling an error.
5726
5727 2008-08-20 David Reitter <david.reitter@gmail.com>
5728
5729 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
5730 * nsterm.m: Remove ns-specific code for cursor blinking.
5731 (ns_draw_window_cursor): Clear cursor properly rather than
5732 redrawing the area. Respect width of bar cursors.
5733 These changes enable the use of generic blink-cursor-mode and
5734 generic cursor types in NS and support smooth cursor movements (do
5735 not blink off after command).
5736 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
5737 Nextstep, too.
5738
5739 2008-08-19 Kenichi Handa <handa@m17n.org>
5740
5741 * font.c (Vfont_log_deferred): New variable.
5742 (font_add_log): Check Vfont_log_deferred.
5743 (font_deferred_log): New function.
5744
5745 * font.h (font_deferred_log): Extern it.
5746
5747 * fontset.c (reorder_font_vector): Use encoding charset of fonts
5748 for sorting.
5749 (face_for_char): Use deferred log.
5750
5751 2008-08-18 Kenichi Handa <handa@m17n.org>
5752
5753 * fontset.c (face_for_char): Add font log.
5754
5755 * font.c (font_add_log): Add the font properties :script, :lang,
5756 and :otf in the log.
5757
5758 2008-08-17 Chong Yidong <cyd@stupidchicken.com>
5759
5760 * xdisp.c: Remove dead code.
5761 (handle_invisible_prop, next_overlay_string): Defer call to
5762 setup_for_ellipsis.
5763 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
5764
5765 2008-08-15 Chong Yidong <cyd@stupidchicken.com>
5766
5767 * xfaces.c (lookup_derived_face): Properly handle possible zero
5768 return value of get_lface_attributes.
5769 (merge_faces): Don't tell lookup_derived_face to signal an error
5770 if face is not found.
5771
5772 * dired.c (Fdirectory_files): Doc fix.
5773
5774 * process.c (make_process): Initialize kill_without_query struct
5775 member.
5776
5777 2008-08-15 Eli Zaretskii <eliz@gnu.org>
5778
5779 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
5780 Alternative calculation of totphys for Visual Studio 6.
5781
5782 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
5783
5784 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
5785 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
5786 All users changed.
5787 (stat): Only root directory passed to GetDriveType. Allow RAM
5788 disk as well as local fixed disk when w32-get-true-file-attributes
5789 is set to `local'.
5790 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
5791 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
5792 (w32_cached_id, w32_add_to_cache): New functions.
5793 (get_name_and_id): Look account names in the cache before calling
5794 lookup_account_sid.
5795 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
5796 New initialization flags.
5797 (globals_of_w32): Initialize them to zero.
5798 (w32_system_process_attributes): Use w32_cached_id and
5799 w32_add_to_cache.
5800
5801 2008-08-14 Lawrence Mitchell <wence@gmx.li>
5802
5803 * lread.c (Fread_char, Fread_char_exclusive): If no character
5804 event is read before timeout is reached, return nil, rather than
5805 converting to a number.
5806
5807 2008-08-14 Chong Yidong <cyd@stupidchicken.com>
5808
5809 * fns.c (use_dialog_box): Doc fix.
5810
5811 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
5812 on OS X.
5813
5814 2008-08-13 Chong Yidong <cyd@stupidchicken.com>
5815
5816 * frame.c (Qns_parse_geometry): New var.
5817 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
5818
5819 2008-08-11 Chong Yidong <cyd@stupidchicken.com>
5820
5821 * xdisp.c (x_produce_glyphs): Handle the case when font has no
5822 space character in calculating tabs.
5823
5824 2008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
5825
5826 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
5827
5828 2008-08-10 Glenn Morris <rgm@gnu.org>
5829
5830 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
5831 silence gcc "limited range of data type" warnings in some
5832 make_fixnum_or_float calls.
5833
5834 2008-08-09 Eli Zaretskii <eliz@gnu.org>
5835
5836 * w32.c (w32_system_process_attributes): If the process does not
5837 exist, return nil.
5838
5839 * w32.c: Include thelp32.h, psapi.h and coding.h.
5840 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
5841 declarations.
5842 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
5843 (Process32Next_Proc): New typedefs.
5844 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
5845 (g_b_init_process32_next, g_b_init_open_thread_token)
5846 (g_b_init_impersonate_self, g_b_init_revert_to_self)
5847 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
5848 (g_b_init_get_process_working_set_size)
5849 (g_b_init_global_memory_status_ex): New static variables.
5850 (globals_of_w32): Initialize them.
5851 (create_toolhelp32_snapshot, process32_first, process32_next)
5852 (open_thread_token, impersonate_self, revert_to_self)
5853 (get_process_memory_info, get_process_working_set_size)
5854 (global_memory_status, global_memory_status_ex): New wrapper
5855 functions.
5856 (w32_list_system_processes, w32_system_process_attributes)
5857 (enable_privilege, restore_privilege, ltime, process_times):
5858 New functions.
5859 (convert_time_raw): New function.
5860 (convert_time): Remove conversion of FILETIME into time in 100
5861 nsec units, call convert_time_raw instead.
5862
5863 * process.h (w32_list_system_processes, w32_system_process_attributes):
5864 Add prototypes.
5865 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
5866 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
5867 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
5868 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
5869
5870 * process.c (Fsystem_process_attributes): Doc fix.
5871
5872 2008-08-08 Chong Yidong <cyd@stupidchicken.com>
5873
5874 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
5875 a continued multi-char glyph; if so, advance to the actual glyph.
5876
5877 2008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
5878
5879 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
5880
5881 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
5882 (.m.o): Use it.
5883 * config.in: Regenerate.
5884
5885 2008-08-07 Chong Yidong <cyd@stupidchicken.com>
5886
5887 * xdisp.c (redisplay_window): Revert last change.
5888 (try_window): Check bottom scroll margin too.
5889
5890 2008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
5891
5892 * config.in: Regenerate.
5893
5894 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
5895 -list-load-path-shadows'.
5896 (nsgui.h): Reduce number of things depending on it.
5897
5898 2008-08-06 Chong Yidong <cyd@stupidchicken.com>
5899
5900 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
5901 instead of window-end which does the wrong thing at eob.
5902 (try_cursor_movement): Minor optimization.
5903 (redisplay_window): If scroll margin is defined, don't assume
5904 window doesn't need scrolling.
5905
5906 2008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
5907
5908 * config.in: Regenerate.
5909
5910 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
5911 (mostlyclean): Don't delete *.d under NS.
5912
5913 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
5914
5915 2008-08-06 Kenichi Handa <handa@m17n.org>
5916
5917 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
5918
5919 2008-08-06 Andreas Schwab <schwab@suse.de>
5920
5921 * config.in: Regenerate.
5922
5923 2008-08-05 Chong Yidong <cyd@stupidchicken.com>
5924
5925 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
5926 forcing a window start.
5927
5928 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
5929 (auto_save_1): Update modtime when auto-save-list-file-name is on.
5930
5931 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
5932
5933 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
5934 argument.
5935
5936 2008-08-05 Juanma Barranquero <lekktu@gmail.com>
5937
5938 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
5939 <scroll-down-aggressively, before-change-functions>:
5940 <after-change-functions>: Reflow docstrings.
5941
5942 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
5943 Ken Raeburn <raeburn@gnu.org>
5944
5945 Dock menu customization, based on a patch by Ken Raeburn, plus some
5946 other fixes.
5947 * nsmenu.m (dockMenu): New variable.
5948 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
5949
5950 * nsterm.h (dockMenu): Declare.
5951
5952 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
5953 (ns_term_init): Initialize dockMenu.
5954 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
5955 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
5956 left.
5957
5958 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
5959
5960 2008-08-04 Chong Yidong <cyd@stupidchicken.com>
5961
5962 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
5963
5964 * config.in: Regenerate.
5965
5966 2008-08-04 Seiji Zenitani <zenitani@mac.com>
5967
5968 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
5969
5970 2008-08-04 Chong Yidong <cyd@stupidchicken.com>
5971
5972 * nsterm.h (find_and_call_menu_selection): Fix prototype.
5973
5974 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
5975
5976 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
5977
5978 * keyboard.h: Comment an #endif.
5979
5980 * lisp.h (have_menus_p): Adjust comment.
5981
5982 * menu.c (find_and_return_menu_selection): Fix comparison with
5983 client_data.
5984
5985 * nsmenu.m (popup_activated_flag): New variable.
5986 (popup_activated): New function.
5987 (menu-or-popup-active-p): New exported lisp definition.
5988 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
5989 when popup done.
5990 (ns_popup_dialog): Set popup_activated_flag.
5991
5992 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
5993 version for GNUstep (handled by conditional typedef in nsterm.m).
5994 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
5995 in rgb.txt).
5996
5997 * process.c (init_process): Use DARWIN_OS, not DARWIN.
5998
5999 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
6000
6001 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
6002
6003 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
6004 shortcircuit if popup_activated like GTK and X toolkit.
6005
6006 * m/inter386.h: Change DARWIN to DARWIN_OS.
6007
6008 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
6009 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
6010 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
6011 comment on NO_SOCK_SIGIO.
6012
6013 2008-08-03 Chong Yidong <cyd@stupidchicken.com>
6014
6015 * nsterm.m (windowDidResize): Remove stopModal call.
6016
6017 2008-08-03 Andreas Schwab <schwab@suse.de>
6018
6019 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
6020 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
6021
6022 2008-08-02 Chong Yidong <cyd@stupidchicken.com>
6023
6024 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
6025 Don't use uninitialized pointer variable when using getrlimit.
6026
6027 2008-08-02 Jason Rumney <jasonr@gnu.org>
6028
6029 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
6030
6031 2008-08-02 Eli Zaretskii <eliz@gnu.org>
6032
6033 * alloc.c (NSTATICS): Bump to 0x640.
6034
6035 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
6036
6037 * lisp.h: Add prototype for directory_files_internal.
6038
6039 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
6040 New functions.
6041 (syms_of_process): Defsubr them. Add initializations for various
6042 Q* symbols used in procfs_system_process_attributes.
6043 (procfs_list_system_processes, procfs_system_process_attributes)
6044 [HAVE_PROCFS]: New functions.
6045 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
6046 (procfs_get_total_memory): New functions.
6047
6048 2008-08-01 Juanma Barranquero <lekktu@gmail.com>
6049
6050 * xfaces.c (Fx_load_color_file): Fix previous change;
6051 it is #ifdef WINDOWSNT, not WINDOWS_NT.
6052
6053 2008-08-01 Michael Albinus <michael.albinus@gmx.de>
6054
6055 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
6056
6057 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
6058
6059 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
6060
6061 2008-08-01 Chong Yidong <cyd@stupidchicken.com>
6062
6063 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
6064
6065 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
6066 define NSApplicationDelegateReplySuccess.
6067 (EmacsView -converstationIdentifier): Use long instead of
6068 NSInteger for GNUstep, since it doesn't have NSInteger.
6069
6070 * xmenu.c: Revert last change.
6071
6072 * keyboard.h: Fix last change.
6073
6074 2008-08-01 Juanma Barranquero <lekktu@gmail.com>
6075
6076 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
6077 on Windows.
6078
6079 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
6080
6081 Warning clearing and clean-up in NS port.
6082 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
6083 Add prototypes.
6084 * nsgui.h (FACE_DEFAULT): Remove, unused.
6085 (XGCValues): Change colors to unsigned long.
6086 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
6087 nsterm.m.
6088 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
6089 (ns_list_fonts): Remove, unused.
6090 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
6091 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
6092 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
6093 (nsfont_draw): Compare face colors to 0, not nil.
6094 * nsmenu.m (struct widget_value): Drop unneeded declaration.
6095 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
6096 (-addSubmenuWithTitle:): Use NSMenuItem class.
6097 (ns_popup_menu): Use NO, not NULL, for enabled setting.
6098 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
6099 (ns_clip_to_row): Make gc arg a BOOL.
6100 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
6101 ns_clip_to_row() call.
6102 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
6103 used). Cast FRAME_FONT assignments.
6104 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
6105 (ns_string_to_lispmod): Change arg to const char.
6106 (ns_term_init): Use NSMenuItem class.
6107 (EmacsApp -openFile:): Move to different section of file.
6108 (EmacsApp -application:openFiles:): Don't return a value, call
6109 -replyToOpenOrPrint:.
6110 (EmacsView -keyDown:): Fix up cast.
6111 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
6112 (EmacsView -menuDown:): Cast tag in call to
6113 find_and_call_menu_selection().
6114 (ns_list_fonts): Remove, unused.
6115 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
6116 (ns_fontname_to_xlfd): Make static.
6117 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
6118 Remove prototypes (now in keyboard.h).
6119 (next_menubar_widget_id): Remove, unused.
6120 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
6121 Remove prototypes (now in keyboard.h).
6122 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
6123
6124 2008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
6125
6126 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
6127 (floatfns.o): Depend on syssignal.h.
6128 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
6129
6130 * systty.h: Fix previous change that removed BSD_TERMIOS.
6131 Add comments to #ifdefs.
6132
6133 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
6134
6135 * w32fns.c (w32-load-color-file): Remove.
6136 (x-open-connection): Use renamed Fx_load_color_file.
6137 * xfaces.c (x-load-color-file): Add.
6138 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
6139 Emacs.clr.
6140 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
6141
6142 2008-07-31 Michael Albinus <michael.albinus@gmx.de>
6143
6144 * dbusbind.c (Fdbus_call_method_asynchronously)
6145 (Fdbus_method_error_internal): New defuns.
6146 (xd_read_message): Handle also reply messages.
6147 (Vdbus_registered_functions_table): Extend docstring.
6148
6149 2008-07-31 Juanma Barranquero <lekktu@gmail.com>
6150
6151 * keyboard.c (gobble_input): Fix previous change.
6152
6153 2008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
6154
6155 * bitmaps/README:
6156 * xfns.c:
6157 * termcap.c:
6158 * term.c:
6159 * syswait.h:
6160 * systty.h:
6161 * systime.h:
6162 * syssignal.h:
6163 * sysdep.c:
6164 * process.h:
6165 * process.c:
6166 * print.c:
6167 * ndir.h:
6168 * lread.c:
6169 * keyboard.c:
6170 * getpagesize.h:
6171 * floatfns.c:
6172 * fileio.c:
6173 * emacs.c:
6174 * doc.c:
6175 * dispnew.c:
6176 * dired.c:
6177 * data.c:
6178 * callproc.c:
6179 * buffer.c:
6180 * README:
6181 * Makefile.in:
6182 * s/template.h:
6183 * s/msdos.h:
6184 * m/vax.h: Remove VMS support.
6185 * s/vms.h:
6186 * vlimit.h:
6187 * uaf.h:
6188 * temacs.opt:
6189 * param.h:
6190 * ioctl.h: Remove file.
6191
6192 2008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
6193
6194 * s/ms-w32.h (MULTI_KBOARD): Remove.
6195 * xterm.c:
6196 * xselect.c:
6197 * xfns.c:
6198 * window.c:
6199 * w32term.c:
6200 * w32fns.c:
6201 * terminal.c:
6202 * termhooks.h:
6203 * term.c:
6204 * sysdep.c:
6205 * keyboard.h:
6206 * keyboard.c:
6207 * frame.h:
6208 * frame.c:
6209 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
6210 * config.in: Regenerate.
6211
6212 2008-07-30 Jason Rumney <jasonr@gnu.org>
6213
6214 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
6215
6216 * w32font.c (w32font_encode_char): Leave as unicode if in range.
6217 (w32font_open_internal): Get unicode version of textmetrics.
6218 Don't enable or disable glyph indices here.
6219 (w32font_open): Disable use of glyph indices.
6220
6221 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
6222
6223 2008-07-30 Chong Yidong <cyd@stupidchicken.com>
6224
6225 * minibuf.c (Vread_buffer_function): Doc fix.
6226
6227 2008-07-30 John Paul Wallington <jpw@pobox.com>
6228
6229 * minibuf.c (read_buffer_completion_ignore_case): New var.
6230 (Fread_buffer): Use it.
6231
6232 2008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
6233
6234 * systty.h (sensemode): Remove empty #if. Remove reference to
6235 BSD_TERMIOS, unused.
6236
6237 * sysdep.c: Remove reference to DGUX.
6238 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
6239
6240 * config.in: Regenerate.
6241
6242 2008-07-30 Jason Rumney <jasonr@gnu.org>
6243
6244 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
6245
6246 2008-07-29 Jason Rumney <jasonr@gnu.org>
6247
6248 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
6249 is populated.
6250 (uniscribe_encode_char): Always use uniscribe.
6251 Avoid using context if cache is populated.
6252
6253 2008-07-29 Jan Djärv <jan.h.d@swipnet.se>
6254
6255 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
6256 open menu.
6257
6258 * gtkutil.c (menu_nav_ended): Remove.
6259 (create_menus): Remove signal connect for menu_nav_ended.
6260
6261 2008-07-28 Chong Yidong <cyd@stupidchicken.com>
6262
6263 * xdisp.c (redisplay_window): Check return value of
6264 compute_window_start_on_continuation_line before forcing a window
6265 start.
6266
6267 2008-07-28 Jason Rumney <jasonr@gnu.org>
6268
6269 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
6270
6271 * w32term.c (w32_enable_unicode_output, cleartype_active):
6272 Remove obsolete display options.
6273 (x_draw_glyph_string_background): Don't use old cleartype_active
6274 workaround.
6275 (w32_initialize): Remove cleartype_active initialization.
6276 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
6277
6278 2008-07-28 Andreas Schwab <schwab@suse.de>
6279
6280 * lisp.h (init_weak_hash_tables, syms_of_font)
6281 (xd_read_queued_messages, syms_of_dbusbind): Declare.
6282 (remove_hash_entry): Don't declare.
6283 * eval.c (maybe_call_debugger): Make static and move before use.
6284 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
6285 * xdisp.c: Include "gtkutil.h" if USE_GTK.
6286 * xterm.h (x_set_frame_alpha): Declare.
6287
6288 2008-07-28 Jan Djärv <jan.h.d@swipnet.se>
6289
6290 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
6291 (create_menus): Connect selection-done to menu_nav_ended.
6292
6293 2008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
6294
6295 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
6296 Set Vx_resource_name to a fallback. Replace read of 'buffered'
6297 parameter with read of 'alpha' one.
6298 (Qns_frame_parameter): Remove.
6299 * nsselect.m (selection-coding-system)
6300 (next-selection-coding-system, Vselection_coding_system)
6301 (Vnext_selection_coding_system): Drop.
6302
6303 2008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
6304
6305 * nsfns.m (do-applescript, do_applescript): Rename to
6306 ns-do-applescript, ns_do_applescript, and move within file.
6307
6308 2008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
6309
6310 Remove support for Mac Carbon.
6311 * mactoolbox.c:
6312 * macterm.h:
6313 * macterm.c:
6314 * macselect.c:
6315 * macmenu.c:
6316 * macgui.h:
6317 * macfns.c:
6318 * mac.c: Remove file.
6319 * s/darwin.h:
6320 * m/intel386.h:
6321 * xfaces.c:
6322 * xdisp.c:
6323 * window.c:
6324 * tparam.c:
6325 * termhooks.h:
6326 * termcap.c:
6327 * term.c:
6328 * syssignal.h:
6329 * sysselect.h:
6330 * sysdep.c:
6331 * process.c:
6332 * lread.c:
6333 * lisp.h:
6334 * keyboard.c:
6335 * image.c:
6336 * fringe.c:
6337 * frame.h:
6338 * frame.c:
6339 * fontset.c:
6340 * font.h:
6341 * font.c:
6342 * fns.c:
6343 * fileio.c:
6344 * emacs.c:
6345 * dispnew.c:
6346 * dispextern.h:
6347 * config.in:
6348 * atimer.c:
6349 * Makefile.in: Remove code for Carbon.
6350
6351 2008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6352
6353 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
6354
6355 2008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6356
6357 * macterm.h (kCGBitmapByteOrder32Host): New define for
6358 non-universal SDKs.
6359
6360 * image.c (mac_create_cg_image_from_image, image_load_image_io)
6361 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
6362
6363 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
6364 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
6365
6366 2008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
6367
6368 * w32inevt.c: Include dispextern.h.
6369
6370 2008-07-26 Andreas Schwab <schwab@suse.de>
6371
6372 * print.c (print_object): Fix off-by-one in last change.
6373
6374 2008-07-25 Juanma Barranquero <lekktu@gmail.com>
6375
6376 * term.c (syms_of_term): Don't initialize default_orig_pair,
6377 default_set_foreground and default_set_background on Windows.
6378
6379 2008-07-25 Jason Rumney <jasonr@gnu.org>
6380
6381 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
6382 ScriptItemize. Clean up return value checking. Remove unused
6383 variables.
6384 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
6385 shaping engine.
6386
6387 * w32font.c (w32font_has_char): Handle the case where we can't
6388 determine the script for a character.
6389
6390 2008-07-25 Chong Yidong <cyd@stupidchicken.com>
6391
6392 * term.c (syms_of_term): Initialize default_orig_pair,
6393 default_set_foreground, and default_set_background.
6394
6395 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
6396 clash (bug#86).
6397 (getloadavg): Callers changed.
6398
6399 * image.c (svg_load_image): Fix last change.
6400 (svg_load_image): Use rsvg_handle_get_dimensions to check that
6401 image size is valid. Use g_object_unref instead of deprecated
6402 rsvg_handle_free to free rsvg handle.
6403 (x_from_xcolors): Don't initialize pixmap (silence compiler).
6404
6405 2008-07-25 Jason Rumney <jasonr@gnu.org>
6406
6407 * w32font.c (w32font_encode_char): Encode characters outside BMP as
6408 surrogates before looking up glyph index.
6409 (w32font_text_extents): Encode as surrogates if falling back to
6410 functions that need UTF-16 wide chars.
6411
6412 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
6413 BMP as surrogates before looking up glyph index.
6414
6415 2008-07-25 Chong Yidong <cyd@stupidchicken.com>
6416
6417 * image.c (svg_load_image): Check for failure in return value of
6418 rsvg_handle_get_pixbuf. Free rsvg handle when done.
6419
6420 2008-07-25 Jason Rumney <jasonr@gnu.org>
6421
6422 * w32font.c (Fx_select_font): Reverse sense of second arg.
6423
6424 2008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
6425
6426 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
6427 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
6428
6429 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
6430 (PURESIZE): Use it.
6431
6432 2008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
6433
6434 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
6435 * m/alpha.h (TEXT_END):
6436 * m/ibmrs6000.h (TEXT_END):
6437 * m/macppc.h (TEXT_END):
6438 * s/darwin.h (TEXT_END):
6439 * s/msdos.h (TEXT_END): Remove, unused.
6440 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
6441 * s/cygwin.h: Remove comment.
6442
6443 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
6444 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
6445 * m/intel386.h (DOT_GLOBAL_START):
6446 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
6447 (USG): Remove, file not used on USG platforms.
6448
6449 * Makefile.in (HAVE_X11): Remove empty #else.
6450
6451 2008-07-24 Andreas Schwab <schwab@suse.de>
6452
6453 * fileio.c (Finsert_file_contents): Properly adjust undo list
6454 after format conversion.
6455
6456 2008-07-24 Jan Djärv <jan.h.d@swipnet.se>
6457
6458 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
6459 (menu_nav_ended): Remove.
6460 (create_menus): Remove signal connect for menu_nav_ended.
6461 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
6462 create_menus.
6463 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
6464
6465 2008-07-23 Jason Rumney <jasonr@gnu.org>
6466
6467 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
6468 with opened font.
6469 (w32font_open): Set font type to gdi.
6470
6471 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
6472
6473 2008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
6474
6475 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
6476 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
6477 defines it.
6478 * unexec.c (ADDR_CORRECT): Define unconditionally.
6479
6480 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
6481
6482 * unexec.c: Remove code depending on !COFF and USG, the file is
6483 not used for such systems.
6484
6485 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
6486 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
6487 (LD_SWITCH_SYSTEM_1): Remove, update users.
6488
6489 * s/darwin.h (DATA_END):
6490 * m/intel386.h (DATA_END):
6491 * m/ibmrs6000.h (DATA_END):
6492 * m/alpha.h (DATA_END): Remove, unused.
6493
6494 * config.in: Regenerate.
6495 * s/ms-w32.h (subprocesses): Define unconditionally.
6496 * s/template.h (subprocesses): Update comment.
6497 * s/vms.h (subprocesses):
6498 * s/usg5-4.h (subprocesses):
6499 * s/hpux10-20.h (subprocesses):
6500 * s/gnu-linux.h (subprocesses):
6501 * s/cygwin.h (subprocesses):
6502 * s/bsd-common.h (subprocesses):
6503 * s/aix4-2.h (subprocesses):
6504 * s/darwin.h (subprocesses): Do not define, defined by default now.
6505
6506 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
6507 Remove all references.
6508 (temacs): Add GNUstep specific ld flags.
6509
6510 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
6511 similarly to what X does.
6512
6513 2008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
6514
6515 * nsfns.m (x-list-fonts): Remove.
6516 (syms_of_nsfns): Drop the x-list-fonts declaration.
6517 * nsterm.m: Get rid of remaining "//" comments.
6518
6519 2008-07-22 Chong Yidong <cyd@stupidchicken.com>
6520
6521 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
6522
6523 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
6524 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
6525 (Fns_own_selection_internal, Fx_disown_selection_internal)
6526 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
6527
6528 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
6529 ... */' style of docstrings. Doc fixes.
6530
6531 2008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
6532
6533 * terminfo.c (UP, BC, PC): Undo previous change.
6534
6535 * nsfns.m: Rename ns prefixed functions/variables to the
6536 corresponding x versions. Update references.
6537
6538 2008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
6539
6540 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
6541
6542 2008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
6543
6544 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
6545 Remove forwarding functions.
6546 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
6547 non-static.
6548 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
6549 non-static.
6550 (ns_frame_parm_handlers): Use the new names.
6551 (syms_of_nsfns): Move to the end of file.
6552
6553 * nsterm.m (syms_of_nsterm): Move to the end of file.
6554
6555 * dispnew.c (init_display): Remove code for X10.
6556
6557 2008-07-22 Jason Rumney <jasonr@gnu.org>
6558
6559 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
6560 bare drive.
6561
6562 2008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
6563
6564 * nsterm.m (syms_of_nsterm): Remove debugging println.
6565
6566 2008-07-22 David Reitter <david.reitter@gmail.com>
6567
6568 * nsfns.m (do_applescript, F_do_applescript): NS version of the
6569 Carbon implementation of the same functionality: execute arbitrary
6570 AppleScript code.
6571
6572 2008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
6573
6574 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
6575 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
6576 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
6577 (Fx_display_mm_height, Fx_display_mm_width)
6578 (Fx_display_backing_store, Fx_display_visual_class)
6579 (Fx_display_save_under, Fx_open_connection)
6580 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
6581 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
6582 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
6583 (Fx_display_pixel_width, Fx_display_pixel_height)
6584 (Fx_display_usable_bounds, Fx_display_planes)
6585 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
6586 ... */' style of docstrings.
6587
6588 2008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
6589
6590 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
6591 on this platform.
6592 (mips):
6593 * m/iris4d.h (mips): Do not define.
6594 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
6595
6596 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
6597
6598 * image.c:
6599 * nsfns.m:
6600 * nsselect.m:
6601 * nsterm.h:
6602 * nsterm.m: Rename ns prefixed functions/variables to the
6603 corresponding x versions. Update references.
6604
6605 * m/ibms390x.h (NO_REMAP): Do not undefine.
6606
6607 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
6608
6609 2008-07-21 Chong Yidong <cyd@stupidchicken.com>
6610
6611 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
6612 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
6613 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
6614 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
6615 (Fns_display_mm_height, Fns_display_mm_width)
6616 (Fns_display_backing_store, Fns_display_visual_class)
6617 (Fns_display_save_under, Fns_open_connection)
6618 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
6619 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
6620 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
6621 (Fns_display_pixel_width, Fns_display_pixel_height)
6622 (Fns_display_usable_bounds, Fx_display_planes)
6623 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
6624
6625 2008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
6626
6627 * print.c (print_object): Check print_depth before searching for
6628 circularities.
6629
6630 2008-07-21 Michael Albinus <michael.albinus@gmx.de>
6631
6632 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
6633 only sprintf.
6634
6635 2008-07-21 Kenichi Handa <handa@m17n.org>
6636
6637 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
6638
6639 2008-07-20 Andreas Schwab <schwab@suse.de>
6640
6641 * syntax.c (find_start_pos, find_start_value)
6642 (find_start_value_byte, find_start_begv, find_defun_start)
6643 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
6644
6645 2008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
6646
6647 * s/sol2-3.h: Insert contents of s/sol2.h.
6648 (LD_SWITCH_SYSTEM): Remove redundant definition.
6649 * s/sol2.h: Remove, unused.
6650
6651 2008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
6652
6653 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
6654
6655 2008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
6656
6657 * Makefile.in (ns_appdir): Fix typo in find command.
6658
6659 2008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
6660
6661 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
6662
6663 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
6664 added not supported anymore.
6665
6666 * s/usg5-4-2.h (LIBS_SYSTEM):
6667 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
6668
6669 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
6670 * s/lynxos.h (GETPGRP_NO_ARG):
6671 * s/hpux10-20.h (NO_SIOCTL_H):
6672 * s/gnu.h (GETPGRP_NO_ARG):
6673 * s/gnu-linux.h (NO_SIOCTL_H):
6674 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
6675 * s/cygwin.h (GETPGRP_NO_ARG):
6676 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
6677 (C_DEBUG_SWITCH): Remove duplicate definition.
6678
6679 * m/ibms390.h: Remove boilerplate comments.
6680
6681 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
6682
6683 * process.c (HAVE_SERIAL): Consolidate ifdefs.
6684 (wait_reading_process_output): Remove code for SunOS, platform not
6685 supported anymore. Use SOLARIS2 instead of sun.
6686
6687 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
6688
6689 * font.c (font_open_by_name): Under NS, default lface height to zero.
6690 (font_open_for_lface): Under NS, set size based on frame fontsize.
6691 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
6692 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
6693
6694 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
6695
6696 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
6697 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
6698 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
6699 YES/NO.
6700 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
6701 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
6702 * Makefile.in (clean): Clear out build destination dir.
6703
6704 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
6705
6706 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
6707 xterm, xselect.
6708 * lisp.h: Remove declaration of hash_remove.
6709 * nsgui.h: Remove redefinitions of hash_remove.
6710 * fns.c (hash_remove): Rename to hash_remove_from_table.
6711
6712 2008-07-19 Seiji Zenitani <zenitani@mac.com>
6713
6714 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
6715 strdup() the family UTF8String before modifying it.
6716
6717 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
6718
6719 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
6720 NS_FACE_BACKGROUND with 0 instead of nil.
6721 * nsfont.m (nsfont_draw): Same.
6722
6723 2008-07-19 Chong Yidong <cyd@stupidchicken.com>
6724
6725 * nsfns.m (ns_set_background_color): Fix crash.
6726
6727 2008-07-18 Chong Yidong <cyd@stupidchicken.com>
6728
6729 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
6730
6731 2008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
6732
6733 * puresize.h (BASE_PURESIZE): Increase to 1240000.
6734
6735 2008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6736
6737 * gtkutil.c: Include <config.h> instead of "config.h".
6738
6739 * lisp.h (Foverlay_buffer): Add EXFUN.
6740
6741 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
6742 child process to complete child_setup. Undo 2005-09-21 change.
6743
6744 * s/darwin.h: Mention setsid after vfork.
6745
6746 2008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6747
6748 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
6749 Depend on macgui.h.
6750
6751 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
6752 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
6753
6754 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
6755 and f19.
6756 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
6757
6758 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
6759 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
6760 Remove enumerators.
6761
6762 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
6763 Check if FACE_FROM_ID returns NULL.
6764
6765 2008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
6766
6767 * w32inevt.c (change_frame_size): Remove extern declaration.
6768 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
6769 change_frame_size.
6770
6771 2008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
6772
6773 * getloadavg.c: Revert last change (2008-07-15).
6774
6775 2008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
6776
6777 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
6778 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc) set
6779 from configure.
6780
6781 2008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
6782
6783 * s/sol2.h:
6784 * s/sol2-4.h: Reorganize conditionals.
6785
6786 * ecrt0.c: Remove code depending on m68000, not used anymore.
6787
6788 * fns.c (hash_remove): Make static.
6789 * lisp.h (hash_remove): Don't prototype.
6790
6791 * m/ibmrs6000.h:
6792 * m/ibms390x.h:
6793 * m/macppc.h: Remove boilerplate comments.
6794
6795 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
6796 Solaris, which does not need them.
6797
6798 * m/vax.h: Remove comments about unsupported systems.
6799
6800 * s/darwin.h: Reorganize ifdefs.
6801
6802 2008-07-17 Andreas Schwab <schwab@suse.de>
6803
6804 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
6805
6806 2008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
6807
6808 Use SDATA. Follow coding convention of placing operators at
6809 beginning of next line rather than end of previous line, and placing
6810 spaces around infix operators.
6811
6812 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
6813 in case it was defined already.
6814 USE @GNUSTEP_MAKEFILES@ rather than envvars.
6815 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
6816 ns_default.
6817 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
6818 Lisp_Objects.
6819 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
6820 (ns_defined_color, ns_color_to_lisp): Declare.
6821 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
6822 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
6823 it's accepted even with USE_LISP_UNION_TYPE.
6824 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
6825 (update_frame_tool_bar): Remove apparently obsolete tests for
6826 non-integerness of f->tool_bar_lines.
6827 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
6828 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
6829 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
6830 (nsfont_open): Don't confuse NULL for Qnil.
6831 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
6832 * menu.h (find_and_call_menu_selection):
6833 * menu.c (find_and_call_menu_selection): Use just int for vector size.
6834 (find_and_return_menu_selection): Always return something.
6835 * frame.h: Include dispextern.h for Display_Info.
6836 (display_x_get_resource): Declare.
6837
6838 2008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
6839
6840 * syntax.c: Remove stdio.h include accidentally introduced in
6841 Emacs.app commit.
6842 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
6843 NS_IMPL_COCOA.
6844 * keyboard.c (handle_async_input, input_available_signal): Remove
6845 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
6846
6847 2008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
6848
6849 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
6850 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
6851 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
6852 Use SDATA.
6853
6854 * keymap.c: Remove all NS-specific code.
6855 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
6856 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
6857 where_is_preferred_modifier, return a different value depending on how
6858 preferred is the binding.
6859 (where_is_internal): Adjust accordingly.
6860 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
6861 Adjust to new preferred_sequence_p.
6862 (syms_of_keymap): Declare `where-is-preferred-modifier'.
6863 * keyboard.c (parse_solitary_modifier): Not static any more.
6864 * keyboard.h (parse_solitary_modifier): Declare.
6865
6866 2008-07-16 Andreas Schwab <schwab@suse.de>
6867
6868 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
6869 of easymenu.
6870
6871 2008-07-16 Chong Yidong <cyd@stupidchicken.com>
6872
6873 * xdisp.c (move_it_in_display_line): Account for word wrap, so
6874 that we don't move off the line.
6875
6876 2008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
6877
6878 * keyboard.c (Qsuper): Remove.
6879 (parse_menu_item): Don't call where_is_internal specially for NS.
6880
6881 2008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
6882
6883 * s/gnu-linux.h: Remove boilerplate comments.
6884
6885 * m/alpha.h (__ELF__): Consolidate conditions.
6886
6887 * m/m68k.h (linux): Use GNU_LINUX instead.
6888 Remove boilerplate comments.
6889
6890 * m/intel386.h: Undo refactoring from previous change.
6891 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
6892 too, remove dead code.
6893 (linux): Use GNU_LINUX instead.
6894
6895 2008-07-16 Jason Rumney <jasonr@gnu.org>
6896
6897 * w32gui.h: Repeat 26 June changes lost by last change.
6898
6899 2008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
6900
6901 * systty.h: Remove code for Aix on 386, unsupported platform.
6902
6903 * s/ms-w32.h: Remove boilerplate comments.
6904 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
6905
6906 * s/gnu-linux.h (TERM): Remove support.
6907 (HAVE_SYSVIPC): Remove, unused.
6908 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
6909 for this system.
6910
6911 * process.c: Remove support for IRIS, unused.
6912 Remove support for TERM, not relevant anymore.
6913
6914 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
6915 used with the definition.
6916
6917 * s/aix4-2.h (static): Do not undef.
6918
6919 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
6920 only used on Aix.
6921 (HAVE_SYSVIPC): Remove, unused.
6922
6923 * m/hp800.h (CANNOT_DUMP): Do not undef.
6924
6925 * m/alpha.h: Fix comment.
6926
6927 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
6928 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
6929 used by this configuration.
6930 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
6931 * unexec.c: Remove code depending on HPUX and
6932 USG_SHARED_LIBRARIES, not used with this file. Remove code
6933 depending on IRIS, unused. Remove if 0-ed code.
6934
6935 * s/template.h: Remove comments about static.
6936
6937 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
6938 Remove if 0-ed code.
6939 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
6940 were the same as the default.
6941 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
6942 Remove boilerplate comments.
6943 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
6944 (HAVE_SYSVIPC): Remove, unused.
6945 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
6946
6947 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
6948 Remove boilerplate comments.
6949 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
6950 Remove boilerplate comments.
6951 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
6952 Remove boilerplate comments.
6953 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
6954
6955 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
6956 USG systems which do not use DATA_SEG_BITS.
6957 Refactor code. Remove boilerplate comments.
6958
6959 * m/ibms390.h:
6960 * m/m68k.h:
6961 * s/bsd-common.h:
6962 * s/cygwin.h:
6963 * s/darwin.h:
6964 * s/freebsd.h:
6965 * s/gnu.h:
6966 * s/msdos.h: Remove boilerplate comments.
6967
6968 * m/iris4d.h: Remove boilerplate comments and code for systems that
6969 do not use this file.
6970 (IRIS_4D): Remove, unused.
6971
6972 * m/mips.h: Remove boilerplate comments and code for systems that
6973 do not use this file.
6974 (SIGN_EXTEND_CHAR):
6975 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
6976 * unexmips.c: Remove file, unused.
6977
6978 * editfns.c (Fuser_full_name): Replace the only use of
6979 USER_FULL_NAME with its value.
6980 * config.in: Regenerate.
6981
6982 2008-07-16 David Reitter <david.reitter@gmail.com>
6983
6984 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
6985 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
6986
6987 2008-07-16 Glenn Morris <rgm@gnu.org>
6988
6989 * emacs.c (system-type): Doc fix.
6990
6991 2008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
6992
6993 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
6994 If the cache doesn't work, let's fix it, rather than work around it.
6995
6996 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
6997
6998 * Makefile.in: Correct additions for nsfont.o in last commit.
6999 * nsfont.m: New file (forgot last commit).
7000
7001 2008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
7002
7003 * callproc.c (set_initial_environment): Initialize
7004 Vprocess_environment under CANNOT_DUMP (fixes crash when
7005 batch-compiling for bootstrap).
7006
7007 2008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
7008 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7009
7010 (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
7011 fix crash due to different init order.
7012
7013 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
7014
7015 Changes and additions for NeXTstep windowing system (Cocoa and
7016 GNUstep) support.
7017
7018 * Makefile.in:
7019 * config.in: Support defines and build commands for NS port.
7020 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
7021 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
7022 * dispextern.h: Include nsgui.h and add needed typedefs under NS
7023 windowing.
7024 (struct face): Add synth_ital field.
7025 * dispnew.c: Include nsterm.h when compiling under NS windowing.
7026 (init_display): Initialize Vinitial_window_system to "ns" when so
7027 compiled.
7028 * emacs.c: Include GSConfig.h when compiling under GNUstep.
7029 (display_arg): Use under NS.
7030 (main): Under NS, allocate autorelease pool and handle command line
7031 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
7032 (standard_args): Add NS-specific args.
7033 (shut_down_emacs): Shut down NS terminal if compiled under NS.
7034 * font.c (DEFAULT_ENCODING): New variable.
7035 (font_find_for_lface): Use it.
7036 (syms_of_font): Load syms_of_nsfont under NS.
7037 * font.h: Declare nsfont_driver when compiled under NS.
7038 * fontset.c: When compiling under NS, include nsterm.h.
7039 (fontset_from_font): Autoconstruct fontset under NS.
7040 * frame.c (various): Under NS, include nsterm.h, add Qns window system
7041 symbol, document and use it.
7042 (do_switch_frame): When for_deletion under Cocoa, add
7043 Fraise_frame(Qnil).
7044 (x_set_frame_parameters): Ensure font attribute changes are picked up.
7045 (x_get_arg): Allow "yes" and "no" as boolean values.
7046 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
7047 Qright under Cocoa.
7048 (focus-follows-mouse): Default to 0 under NS.
7049 * frame.h (enum output_method): Add output_ns.
7050 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
7051 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
7052 (FRAME_WINDOW_P): NS-specific definition.
7053 * fringe.c (max_used_fringe_bitmap): Make public.
7054 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
7055 (getloadavg): Use NeXT code under descendant OS's.
7056 * image.c (includes and header section, x_create_bitmap_from_data)
7057 (x_create_bitmap_from_file, free_bitmap_record, image_background)
7058 (image_background_transparent, x_clear_image_1)
7059 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
7060 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
7061 (x_to_xcolors, x_from_xcolors, x_disable_image)
7062 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
7063 other GUIs, including XPM support using code originally written for
7064 Carbon GUI.
7065 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
7066 using NS API.
7067 (image_ascent): Use font metrics macros instead of direct struct field
7068 access.
7069 * keyboard.c (includes): Add nsterm.h when compiling under NS.
7070 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
7071 Also, handle NS as GTK for menu bar purposes.
7072 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
7073 toolkit where they differ.
7074 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
7075 use cachelist, still needed under NS.
7076 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
7077 (struct widget_value): Define it here for menu.c.
7078 * keymap.c (includes): Include modifier internals.
7079 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
7080 NS.
7081 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
7082 support for preferring sequences using certain modifiers, specified by
7083 the FIRSTONLY argument.
7084 * lisp.h (hash_remove): Rename to avoid name clash when compiling
7085 under NS GNUstep implementation.
7086 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
7087 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
7088 * menu.c: Include nsterm.h under NS.
7089 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
7090 (free_menubar_widget_tree_value, update_submenu_strings)
7091 (find_and_call_menu_selection): Treat NS as X and NT.
7092 (find_and_return_menu_selection): New function, used for popup menus.
7093 * nsgui.h:
7094 * nsterm.h:
7095 * nsfns.m:
7096 * nsimage.m:
7097 * nsmenu.m:
7098 * nsselect.m:
7099 * nsterm.m: New files.
7100 * process.c (wait_reading_process_output): Under NS, call ns_select()
7101 instead of plain select().
7102 * syntax.c (char_quoted): Under NS, avoid a crash when called near
7103 beginning of buffer.
7104 * sysselect.h (init_process): Rename when compiling under Cocoa to
7105 avoid name conflict.
7106 * termhooks.h (display_info): Add ns_display_info to union.
7107 * terminal.c (Fterminal_live_p): Add ns to terminal types.
7108 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
7109 COCOA environment.
7110 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
7111 unexec() signature. (Note, this will dump, but the resulting file
7112 crashes; unexosx is used instead; keeping around for reference and
7113 possible aid in getting dump working under GNUstep.)
7114 * w32gui.h (button_type, widget_value): Remove definitions (now in
7115 keyboard.h).
7116 * window.c: Include nsterm.h when compiling under NS.
7117 * xdisp.c (includes): Include nsterm.h when compiling under NS.
7118 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
7119 other GUI windowing systems.
7120 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
7121 GTK.
7122 (x_consider_frame_title): Under NS, set icon type and frame
7123 modified-state indicator; use ns_set_name_as_filename() when using
7124 formatted title.
7125 (update_window_cursor): Make public when compiling under NS.
7126 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
7127 (hourglass_atimer, Vhourglass_delay
7128 * xfaces.c (header section, init_frame_faces, clear_font_table)
7129 (defined_color, unload_color, x_face_list_fonts)
7130 (prepare_face_for_display): Add NS support parallel to other GUIs.
7131 Emulate GCs like other non-X GUIs.
7132 (split_font_name): Don't lowercase font name under NS.
7133 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
7134 under NS.
7135 * s/darwin.h: Add support for compilation under NS.
7136
7137 2008-07-15 Jason Rumney <jasonr@gnu.org>
7138
7139 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
7140 (w32_show_hourglass): Rename from show_hourglass.
7141 (w32_hide_hourglass): Rename from hide_hourglass.
7142 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
7143 (Vhourglass_delay): Declare extern.
7144 (hourglass_started): Remove.
7145
7146 * xdisp.c (Vhourglass_delay): Remove static.
7147 (hourglass_started, start_hourglass, cancel_hourglass):
7148 Don't include these versions on WINDOWSNT.
7149
7150 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
7151
7152 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
7153 variables (formerly in xfns.c).
7154 (show_hourglass, hide_hourglass): New prototypes (same).
7155 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
7156 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
7157 in xfns.c).
7158 (syms_of_xdisp): Declare/initialize display-hourglass,
7159 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
7160 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
7161 formerly in xfns.c.
7162 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
7163 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
7164 (start_hourglass, cancel_hourglass): Remove.
7165 (show_hourglass, hide_hourglass): Remove prototypes and static
7166 modifiers.
7167 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
7168 hourglass_atimer, hourglass_shown_p declaration/initialization.
7169 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
7170 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
7171 (start_hourglass, cancel_hourglass): Remove.
7172 (show_hourglass, hide_hourglass): Remove prototypes and static
7173 modifiers.
7174 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
7175 hourglass_atimer, hourglass_shown_p declaration/initialization.
7176 * w32fns.c (display_hourglass_p, Vhourglass_delay)
7177 (DEFAULT_HOURGLASS_DELAY): Remove.
7178 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
7179 hourglass_shown_p declaration/initialization.
7180
7181 2008-07-14 Jason Rumney <jasonr@gnu.org>
7182
7183 * w32fns.c (w32_get_arg): Remove wrapper function.
7184 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
7185 directly.
7186 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
7187
7188 2008-07-14 Kenichi Handa <handa@m17n.org>
7189
7190 * xfont.c (xfont_open): Add workaround for X's bug.
7191
7192 2008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
7193
7194 * fontset.c: Include <stdio.h> unconditionally.
7195
7196 2008-07-13 Michael Albinus <michael.albinus@gmx.de>
7197
7198 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
7199 for filtering.
7200
7201 2008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
7202
7203 * s/vms.h: Use __GNUC__ instead of _GNUC_.
7204
7205 * m/macppc.h:
7206 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
7207
7208 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
7209 (SPECIAL_EMACS_INT):
7210 * m/ia64.h (SPECIAL_EMACS_INT):
7211 * m/amdx86-64.h (SPECIAL_EMACS_INT):
7212 * s/gnu.h (NLIST_STRUCT):
7213 * s/aix4-2.h (X11R5_INHIBIT_I18N):
7214 * s/gnu-linux.h (LINUX):
7215 * s/msdos.h (HAVE_FACES):
7216 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
7217
7218 * systty.h:
7219 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
7220 anymore.
7221
7222 2008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
7223
7224 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
7225 always defined as int.
7226
7227 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
7228 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
7229 * s/gnu-linux.h (HAVE_WAIT_HEADER):
7230 * s/freebsd.h (HAVE_WAIT_HEADER):
7231 * s/bsd-common.h (HAVE_UNION_WAIT):
7232 * s/aix4-2.h (HAVE_WAIT_HEADER):
7233 * m/mips.h (HAVE_UNION_WAIT):
7234 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
7235 (COFF, static): Do not define, they are undefined later in the file.
7236
7237 * process.c (update_status): Don't use a union.
7238 (status_convert):
7239 (sigchld_handler): Use int instead of WAITTYPE.
7240
7241 2008-07-12 Chong Yidong <cyd@stupidchicken.com>
7242
7243 * indent.c (Fvertical_motion): Restore hscroll before moving to
7244 goal column.
7245
7246 2008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
7247
7248 * lisp.h: Remove left over code.
7249
7250 2008-07-11 Andreas Schwab <schwab@suse.de>
7251
7252 * lisp.h: Fix logic in last change.
7253
7254 * menu.h: New file.
7255 * menu.c: Include it.
7256 * xmenu.c: Likewise.
7257 * Makefile.in: Update dependencies.
7258
7259 2008-07-11 Kenichi Handa <handa@m17n.org>
7260
7261 * fontset.c (fontset_from_font): Cancel the previous change.
7262
7263 2008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
7264
7265 * lisp.h:
7266 * w32heap.c:
7267 * emacs.c:
7268 * alloc.c: Replace all references of NO_UNION_TYPE with
7269 USE_LISP_UNION_TYPE.
7270
7271 * m/xtensa.h (NO_UNION_TYPE):
7272 * m/vax.h (NO_UNION_TYPE):
7273 * m/template.h (NO_UNION_TYPE):
7274 * m/sparc.h (NO_UNION_TYPE):
7275 * m/mips.h (NO_UNION_TYPE):
7276 * m/macppc.h (NO_UNION_TYPE):
7277 * m/m68k.h (NO_UNION_TYPE):
7278 * m/iris4d.h (NO_UNION_TYPE):
7279 * m/intel386.h (NO_UNION_TYPE):
7280 * m/ibms390x.h (NO_UNION_TYPE):
7281 * m/ibms390.h (NO_UNION_TYPE):
7282 * m/ibmrs6000.h (NO_UNION_TYPE):
7283 * m/ia64.h (NO_UNION_TYPE):
7284 * m/hp800.h (NO_UNION_TYPE):
7285 * m/arm.h (NO_UNION_TYPE):
7286 * m/amdx86-64.h (NO_UNION_TYPE):
7287 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
7288 defining it the same.
7289
7290 2008-07-10 Chong Yidong <cyd@stupidchicken.com>
7291
7292 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
7293
7294 2008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
7295
7296 * fileio.c:
7297 * sysdep.c
7298 * systty.h:
7299 * m/ibmrs6000.h:
7300 * m/iris4d.h:
7301 * s/aix4-2.h:
7302 * s/freebsd.h:
7303 * s/gnu-linux.h:
7304 * s/hpux10-20.h:
7305 * s/hpux11.h:
7306 * s/netbsd.h:
7307 * s/sol2-3.h:
7308 * s/sol2-4.h:
7309 * s/sol2.h:
7310 * s/usg5-4.h:
7311 * s/vms.h: Remove references to unused variables.
7312
7313 2008-07-10 Andreas Schwab <schwab@suse.de>
7314
7315 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
7316 pattern before matching the generic family.
7317
7318 2008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
7319
7320 * unexec.c:
7321 * s/vms.h:
7322 * s/usg5-4-2.h:
7323 * s/sol2-5.h:
7324 * s/freebsd.h:
7325 * s/darwin.h: Remove dead code.
7326
7327 * m/template.h:
7328 * m/sparc.h:
7329 * m/mips.h:
7330 * m/m68k.h:
7331 * m/iris4d.h:
7332 * m/intel386.h:
7333 * m/ibms390x.h:
7334 * m/ibms390.h:
7335 * m/ia64.h:
7336 * m/hp800.h:
7337 * m/arm.h:
7338 * m/amdx86-64.h: Remove dead code and references to unused
7339 and compiler defined symbols.
7340
7341 * unexmips.c:
7342 * unexelf.c: Remove references to desupported systems.
7343
7344 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
7345
7346 * m/powermac.h: Remove boilerplate comments.
7347 (NO_REMAP): Remove unused definition.
7348
7349 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
7350 define them.
7351
7352 2008-07-10 Kenichi Handa <handa@m17n.org>
7353
7354 * xfont.c (xfont_open): Log the reason of failure.
7355
7356 2008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
7357
7358 * fontset.c (fontset_get_font_group):
7359 * font.c (font_check_otf): Specify argument types.
7360
7361 2008-07-09 Kenichi Handa <handa@m17n.org>
7362
7363 * coding.c (detect_coding_utf_8): Set detect_info->found only when
7364 non-ASCII char is found.
7365
7366 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
7367 (reorder_font_vector): Change the arg preferred_family to font.
7368 Prefer the spec matching with font.
7369 (fontset_get_font_group): New function.
7370 (fontset_find_font): Change the format of an element of a realized
7371 fontset. Use fontset_get_font_group.
7372 (fontset_font): Try the current fontset, the default fontset, the
7373 fallbacks of the current fontset, and the fallbacks of the default
7374 fontset in this order.
7375 (face_for_char): Delete the shortcut to use the current font.
7376 (fontset_from_font): Don't set fonts for Latin in the fontset.
7377
7378 * font.h (font_make_object, font_match_p): Adjust prototypes.
7379
7380 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
7381
7382 * font.c (font_make_object): New arg entity and pixelsize.
7383 (font_check_otf_features, font_check_otf): New functions.
7384 (font_match_p): Check :lang, :script, and :otf properties.
7385
7386 * xfont.c (xfont_open): Adjust it for the change of
7387 font_make_object.
7388 (xfont_text_extents): Fix initial setting of metrics.
7389
7390 * ftfont.c (struct ftfont_info): New member index, delete member
7391 fc_charset_idx. Make the member order compatible with struct
7392 xftfont_info.
7393 (fc_charset_table): Change charset names to registry names.
7394 (ftfont_pattern_entity): Delete the args registry and
7395 fc_charset_idx. Change the value of :font-entity property
7396 to (FONTNAME . INDEX). Always set :registry property to
7397 `iso10646-1'.
7398 (struct ftfont_cache_data): New struct.
7399 (ftfont_lookup_cache): New arg for_face.
7400 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
7401 (ftfont_driver): Set the member otf_capability.
7402 (ftfont_get_charset): Adjust it for the change of
7403 fc_charset_table.
7404 (OTF_TAG_SYM): New macro.
7405 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
7406 for the change of fc_charset_table.
7407 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
7408 ftfont_pattern_entity. Add FC_INDEX to objset.
7409 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
7410 and ftfont_pattern_entity.
7411 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
7412 font_make_object, struct ftfont_info.
7413 (ftfont_has_char): Use ftfont_get_fc_charset.
7414 (ftfont_otf_features, ftfont_otf_capability): New functions.
7415 (ftfont_shape): Use ftfont_get_otf.
7416 (ftfont_text_extents): Fix initial setting of metrics.
7417
7418 * xftfont.c (struct xftfont_info): New member ft_size. Make the
7419 member order compatible with struct ftfont_info.
7420 (xftfont_open): Add FC_CHARSET to the pattern. Set
7421 xftfont_info->ft_size. Don't unlock the face. Check BDF
7422 properties if appropriate.
7423 (xftfont_close): Unlock the face.
7424 (xftfont_anchor_point, xftfont_shape): Deleted.
7425 (syms_of_xftfont): Don't set members anchor_point and shape of
7426 xftfont_driver.
7427
7428 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
7429 font_make_object.
7430
7431 * w32font.c (w32font_open): Adjust it for the change of
7432 font_make_object.
7433 (w32font_open_internal): Don't set properties of font_object here.
7434
7435 2008-07-08 Chong Yidong <cyd@stupidchicken.com>
7436
7437 * macfns.c (x_create_tip_frame):
7438 * w32fns.c (x_create_tip_frame):
7439 * xfns.c (x_create_tip_frame): Pass parameter argument to
7440 face-set-after-frame-default.
7441
7442 * xfaces.c (Finternal_merge_in_global_face): Save merged
7443 attributes for the default face back into the face vector.
7444
7445 2008-07-08 Andreas Schwab <schwab@suse.de>
7446
7447 * fontset.h: Declare fontset_from_font. Don't declare
7448 new_fontset_from_font and fontset_from_font_name.
7449 * xterm.c: Include "fontset.h".
7450 * Makefile.in (xterm.o): Update dependencies.
7451
7452 2008-07-08 Glenn Morris <rgm@gnu.org>
7453
7454 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
7455 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
7456
7457 2008-07-07 Chong Yidong <cyd@stupidchicken.com>
7458
7459 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
7460 (x_set_frame_parameters): Don't bind it.
7461
7462 2008-07-07 Juanma Barranquero <lekktu@gmail.com>
7463
7464 * w32fns.c (map_w32_filename): Declare extern.
7465
7466 2008-07-07 Jason Rumney <jasonr@gnu.org>
7467
7468 * w32term.c (WS_EX_LAYERED): Define if not already.
7469
7470 2008-07-06 Chong Yidong <cyd@stupidchicken.com>
7471
7472 * xfaces.c (set_font_frame_param): Don't try to set the font
7473 parameter if it is still unspecified in the lface.
7474
7475 2008-07-05 Chong Yidong <cyd@stupidchicken.com>
7476
7477 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
7478 face if it didn't already exist.
7479
7480 * xdisp.c (try_window_id): Give up if word-wrapping is on.
7481
7482 2008-07-05 Andreas Schwab <schwab@suse.de>
7483
7484 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
7485
7486 2008-07-05 Chong Yidong <cyd@stupidchicken.com>
7487
7488 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
7489 word-wrapping.
7490 (IT_DISPLAYING_WHITESPACE): New macro.
7491 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
7492 when word-wrapping. Simplify word-wrapping logic. Use correct
7493 pixel positions when saving copies of the iterator.
7494 (display_line): Use proper wrap point if the last character on a
7495 line was preceded by whitespace.
7496
7497 2008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
7498
7499 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
7500
7501 2008-07-04 Kenichi Handa <handa@m17n.org>
7502
7503 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
7504
7505 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
7506
7507 2008-07-02 Jason Rumney <jasonr@gnu.org>
7508
7509 * xfns.c (syms_of_xfns): Only define x-select-font when both
7510 HAVE_FREETYPE and USE_GTK.
7511
7512 * xdisp.c (next_element_from_display_vector): Move assignment out
7513 of if statement.
7514
7515 2008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
7516
7517 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
7518
7519 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
7520 (syms_of_fileio): Initialize and export them.
7521 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
7522
7523 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
7524 (Fsystem_move_file_to_trash): New function.
7525 (syms_of_w32fns): Export it to lisp.
7526
7527 2008-07-01 Jason Rumney <jasonr@gnu.org>
7528
7529 * w32font.c (w32font_text_extents): Don't count overhang as part
7530 of width.
7531
7532 2008-06-30 Miles Bader <miles@gnu.org>
7533
7534 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
7535 Add `avoid_cursor_p' field.
7536
7537 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
7538 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
7539 (append_glyph, append_composite_glyph, produce_image_glyph)
7540 (append_stretch_glyph): Initialize avoid_cursor_p.
7541 (get_it_property): Rename from `get_line_height_property'.
7542 (x_produce_glyphs): Use get_it_property.
7543 (handle_line_prefix, push_display_prop): New functions.
7544 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
7545 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
7546 New variables.
7547 (syms_of_xdisp): Initialize them.
7548
7549 2008-06-30 Kenichi Handa <handa@m17n.org>
7550
7551 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
7552 XftDefaultSubstitute (they are called in XftFontMatch).
7553 (xftfont_open): Fix args to ftfont_font_format.
7554
7555 * ftfont.c (fc_charset_table): New member lang.
7556 (ftfont_resolve_generic_family): New arg pattern.
7557 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
7558 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
7559 (ftfont_open): Fix args to ftfont_font_format.
7560 (ftfont_font_format): New arg filename.
7561
7562 2008-06-30 Chong Yidong <cyd@stupidchicken.com>
7563
7564 * xfaces.c (Finternal_merge_in_global_face): If default face was
7565 modified, realize it again. Update the font face attribute.
7566
7567 2008-06-29 Jason Rumney <jasonr@gnu.org>
7568
7569 * w32term.c (x_set_frame_alpha): Fix logic.
7570
7571 2008-06-29 Kenichi Handa <handa@m17n.org>
7572
7573 * fontset.c (Finternal_char_font): Return font-object instead of
7574 font-name.
7575
7576 * composite.c (get_composition_id): Fix the width calculation for TAB.
7577
7578 2008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
7579
7580 * indent.c (Fvertical_motion): Properly handle float column arg.
7581
7582 2008-06-28 Jason Rumney <jasonr@gnu.org>
7583
7584 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
7585 (pfnSetLayeredWindowAttributes): New function pointer.
7586 (w32_initialize): Initialize it when supported.
7587 (x_set_frame_alpha): New function.
7588
7589 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
7590 (w32_frame_parm_handlers): Set alpha handler.
7591
7592 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
7593
7594 2008-06-27 Jason Rumney <jasonr@gnu.org>
7595
7596 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
7597 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
7598 (w32_to_x_charset, x_to_w32_charset)
7599 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
7600 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
7601 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
7602 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
7603 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
7604 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
7605 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
7606 (Qw32_charset_unicode): Remove.
7607 (syms_of_w32fns): Update for above changes.
7608
7609 * w32font.c (w32_to_x_charset, x_to_w32_charset)
7610 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
7611 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
7612 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
7613 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
7614 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
7615 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
7616 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
7617 (syms_of_w32font): Update for above changes.
7618
7619 2008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
7620
7621 * s/usg5-4.h: Fix previous change: keep the correct branch of a
7622 removed #if.
7623 (USG_SHARED_LIBRARIES): Remove duplicate definition.
7624
7625 2008-06-26 Juanma Barranquero <lekktu@gmail.com>
7626 Eli Zaretskii <eliz@gnu.org>
7627
7628 * makefile.w32-in (LOCAL_FLAGS):
7629 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
7630
7631 * sysdep.c (_spawnlp, _getpid):
7632 Declare with explicit _cdecl instead of _CRTAPI1.
7633
7634 * editfns.c (Fget_internal_run_time):
7635 Check for WINDOWSNT with #ifdef, not #if.
7636
7637 2008-06-26 Jason Rumney <jasonr@gnu.org>
7638
7639 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
7640
7641 * w32term.c (x_draw_glyph_string_foreground)
7642 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
7643 Use FONT_HANDLE macro.
7644 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
7645
7646 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
7647 (uniscribe_encode_char): Use FONT_HANDLE macro.
7648
7649 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
7650 (w32font_text_extents): Use precast w32_font.
7651 (w32font_close): Free cached metrics.
7652 (w32font_open_internal): Allocate space for name on stack.
7653
7654 2008-06-26 Chong Yidong <cyd@stupidchicken.com>
7655
7656 * xdisp.c (extend_face_to_end_of_line): Fix last change.
7657
7658 2008-06-26 Jason Rumney <jasonr@gnu.org>
7659
7660 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
7661 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
7662
7663 2008-06-26 Juanma Barranquero <lekktu@gmail.com>
7664
7665 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
7666
7667 2008-06-26 Jason Rumney <jasonr@gnu.org>
7668
7669 * w32bdf.c, w32bdf.h: Remove obsolete files.
7670
7671 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
7672
7673 * w32gui.h: Don't include w32bdf.h.
7674 (XCharStruct, enum w32_char_font_type, W32FontStruct):
7675 Remove obsolete font support.
7676
7677 * w32font.h (struct w32font_info): Remove compat_w32_font.
7678 Add hfont member.
7679 (FONT_COMPAT): Remove obsolete macro.
7680
7681 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
7682 (w32font_encode_char, w32font_text_extents): Use new hfont member.
7683 (w32font_open_internal): Remove compat code. Set new hfont member.
7684 (Fx_select_font): Use new hfont member.
7685
7686 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
7687 (uniscribe_encode_char): Use new hfont member.
7688
7689 * w32term.c (x_draw_glyph_string_foreground)
7690 (x_draw_composite_glyph_string_foreground): Use new hfont member.
7691 (x_draw_glyph_string): Use metrics in w32font_info.
7692
7693 2008-06-26 Kenichi Handa <handa@m17n.org>
7694
7695 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
7696
7697 2008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
7698
7699 * unexnext.c:
7700 * m/ews4800.h:
7701 * m/hp9000s300.h:
7702 * m/ibm370aix.h:
7703 * m/mips-siemens.h:
7704 * m/ncr386.h:
7705 * m/next.h:
7706 * m/pmax.h:
7707 * m/powerpcle.h:
7708 * m/tandem-s2.h:
7709 * s/386bsd.h:
7710 * s/bsd386.h:
7711 * s/bsd4-1.h:
7712 * s/bsd4-2.h:
7713 * s/bsdos2-1.h:
7714 * s/bsdos2.h:
7715 * s/bsdos3.h:
7716 * s/bsdos4.h:
7717 * s/nextstep.h:
7718 * s/ultrix4-3.h:
7719 * s/usg5-0.h:
7720 * s/usg5-2-2.h:
7721 * s/usg5-2.h:
7722 * s/usg5-4-3.h:
7723 * s/ux4800.h:
7724 * s/uxpds.h:
7725 * s/uxpv.h: Remove support for obsolete systems.
7726 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
7727 Remove, insert contents in s/hpux10-20.h.
7728 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
7729 Remove, insert contents in s/aix4-2.h.
7730 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
7731 * s/bsd4-3.h: Rename to ...
7732 * s/bsd-common.h: ... this.
7733 * data.c:
7734 * doc.c:
7735 * ecrt0.c:
7736 * emacs.c:
7737 * fileio.c:
7738 * floatfns.c:
7739 * keyboard.c:
7740 * mem-limits.h:
7741 * print.c:
7742 * process.c:
7743 * sysdep.c:
7744 * syssignal.h:
7745 * systty.h:
7746 * syswait.h:
7747 * term.c:
7748 * unexec.c:
7749 * unexelf.c:
7750 * unexhp9k800.c:
7751 * m/hp800.h:
7752 * m/ibmrs6000.h:
7753 * m/mips.h:
7754 * m/vax.h:
7755 * s/darwin.h:
7756 * s/freebsd.h:
7757 * s/gnu.h:
7758 * s/ms-w32.h:
7759 * s/msdos.h:
7760 * s/netbsd.h:
7761 * s/template.h: Remove references to obsolete variables.
7762
7763 * Makefile.in: Add dependencies for all unexec files.
7764 (admindir): Remove unused variable.
7765 (UNEXEC_SRC): Remove references.
7766
7767 2008-06-25 Chong Yidong <cyd@stupidchicken.com>
7768
7769 * xfns.c (x_default_font_parameter): If Xft is available, first
7770 try Monospace-12 for the default font.
7771
7772 2008-06-25 Jason Rumney <jasonr@gnu.org>
7773
7774 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
7775
7776 2008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
7777
7778 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
7779
7780 * buffer.c (syms_of_buffer): Remove default-word-wrap.
7781
7782 2008-06-25 Juanma Barranquero <lekktu@gmail.com>
7783
7784 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
7785 <scroll-conservatively>: Fix typo in docstring.
7786
7787 * xselect.c (Fx_send_client_event): Doc fix.
7788
7789 2008-06-25 Kenichi Handa <handa@m17n.org>
7790
7791 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
7792
7793 * font.c (font_parse_fcname): Remove unused variables.
7794 (font_sort_entites): Delete the arg SPEC. Caller changed.
7795 Fix for the case of ! best_only.
7796 (font_delete_unmatched): Check DPI and AVGWIDTH too.
7797
7798 * lisp.h (Fstring_to_unibyte): EXFUN it.
7799
7800 * character.h (str_to_unibyte): Extern it.
7801
7802 * character.c (str_to_unibyte): New function.
7803
7804 * fns.c (Fstring_to_unibyte): New function.
7805 (syms_of_fns): Defsubr it.
7806
7807 2008-06-24 Kenichi Handa <handa@m17n.org>
7808
7809 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
7810 DPI too.
7811 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
7812
7813 2008-06-24 Andreas Schwab <schwab@suse.de>
7814
7815 * Makefile.in (${lispsource}loaddefs.el): Rename from
7816 ../lisp/loaddefs.el.
7817 (bootstrap-clean): Do what distclean does but don't remove
7818 Makefile.
7819 (distclean): Depend on bootstrap-clean and remove Makefile.
7820
7821 2008-06-24 Chong Yidong <cyd@stupidchicken.com>
7822
7823 * buffer.h (struct buffer): New member word_wrap.
7824
7825 * buffer.c (syms_of_buffer): New variables default-word-wrap and
7826 word-wrap.
7827 (init_buffer_once): Initialize them.
7828
7829 * dispextern.h (struct it): Replace bool truncate_lines_p with a
7830 line_wrap enum possessing three possible values.
7831
7832 * termopts.h: Replace truncate_partial_width_windows with
7833 Vtruncate_partial_width_windows.
7834
7835 * dispnew.c (direct_output_for_insert): Avoid direct output when
7836 inserting a space with word wrap on.
7837
7838 * indent.c (compute_motion): Obey integer values of
7839 truncate-partial-width-windows.
7840
7841 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
7842 replacing truncate_partial_width_windows.
7843 (init_iterator): If Vtruncate_partial_width_windows is an integer,
7844 truncate only if the window width is below that integer.
7845 (start_display, resize_mini_window, produce_stretch_glyph)
7846 (display_string, move_it_in_display_line_to): Use line_wrap.
7847 (back_to_previous_visible_line_start, reseat_1): Reset
7848 string_from_display_prop_p.
7849 (display_line): Extend default face to end of line when wrapping.
7850
7851 2008-06-24 Kim F. Storm <storm@cua.dk>
7852
7853 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
7854 to wrap continued lines at word boundaries.
7855
7856 2008-06-24 Jason Rumney <jasonr@gnu.org>
7857
7858 * font.c (Ffont_face_attributes): Multiply pixel size before point
7859 conversion to avoid multiplying rounding error.
7860
7861 2008-06-23 Jason Rumney <jasonr@gnu.org>
7862
7863 * w32term.c (x_draw_glyph_string_background)
7864 (x_draw_glyph_string): Remove old bdf font code.
7865
7866 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
7867
7868 2008-06-22 Kenichi Handa <handa@m17n.org>
7869
7870 * font.c (font_find_for_lface): Try the adstyle specified in
7871 the property of LFACE_FONT of LFACE (if any).
7872
7873 2008-06-21 Seiji Zenitani <zenitani@mac.com>
7874 Ryo Yoshitake <ryo@shiftmode.net>
7875
7876 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
7877
7878 2008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
7879
7880 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
7881 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
7882 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
7883 (witness-emacs): Remove.
7884 (lisp, shortlisp): Move loaddefs.el earlier.
7885 (mostlyclean): Forget about witness-emacs.
7886
7887 2008-06-22 Glenn Morris <rgm@gnu.org>
7888
7889 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
7890 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
7891
7892 2008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
7893
7894 * Makefile.in (PRECOMP): Remove.
7895 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
7896 (witness-emacs): Run `compile-first'.
7897 (.el.elc): Use the new compile-onefile target.
7898
7899 2008-06-21 Kenichi Handa <handa@m17n.org>
7900
7901 * xftfont.c (xftfont_open): Handle QCembolden only when
7902 FC_EMBOLDEN is defined.
7903
7904 2008-06-21 Andreas Schwab <schwab@suse.de>
7905
7906 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
7907 (.el.elc): Likewise.
7908
7909 2008-06-21 Miles Bader <miles@gnu.org>
7910
7911 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
7912 build dir, not the lisp source dir.
7913
7914 2008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
7915
7916 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
7917 (bootstrapclean): Remove.
7918 (.el.elc): New rule.
7919 (PRECOMP): New var.
7920 (../lisp/subdirs.el): Remove.
7921 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
7922 (witness-emacs): New target.
7923 (mostlyclean): Remove witness-emacs as well.
7924 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
7925 Add witness-emacs dependency.
7926
7927 2008-06-20 Chong Yidong <cyd@stupidchicken.com>
7928
7929 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
7930 defined by the font.
7931
7932 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
7933
7934 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
7935 (bootstrap-clean): New target that keeps TAGS around.
7936 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
7937 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
7938
7939 2008-06-20 Jason Rumney <jasonr@gnu.org>
7940
7941 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
7942 Remove obsolete font code.
7943
7944 * w32font.c (font_matches_spec): Use csb bitfield from font signature
7945 to determine language support.
7946
7947 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
7948
7949 * sysdep.c (cfsetspeed): New fun extracted from the code.
7950 (cfmakeraw): Move before first use.
7951
7952 2008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
7953
7954 * sysdep.c (cfmakeraw): Provide fallback implementation.
7955 (serial_configure): Provide fallback implementation of cfsetspeed.
7956
7957 2008-06-20 Kenichi Handa <handa@m17n.org>
7958
7959 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
7960 the pattern.
7961
7962 * fontset.c (fontset_from_font): Copy font_spec before changing
7963 the elements.
7964
7965 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
7966
7967 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
7968
7969 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
7970 for explicit `font' parameters.
7971
7972 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
7973
7974 2008-06-19 Kenichi Handa <handa@m17n.org>
7975
7976 * frame.c: Include <ctype.h>.
7977 (x_set_font_backend): Allow spacing characters in the X resource
7978 for FontBackend.
7979
7980 2008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
7981
7982 * w32fns.c, xfns.c (Qfont_param): New var.
7983 (syms_of_w32fns): Initialize it.
7984 (x_default_font_parameter): Record explicit `font' into
7985 `font-parameter'.
7986
7987 2008-06-18 Kenichi Handa <handa@m17n.org>
7988
7989 * font.c (font_parse_xlfd): Fix previous change.
7990 (font_parse_fcname): Don't use :fc-unknown-spec.
7991 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
7992 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
7993 (font_add_log): Prepend the driver name to the resulting fonts.
7994
7995 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
7996 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
7997 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
7998
7999 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
8000 (QCembolden): New variables.
8001 (syms_of_xftfont): DEFSYM them.
8002 (xftfont_open): Call XftFontMatch. Don't trust the result of
8003 XftTextExtents8 if the pixel_size is less than 5.
8004
8005 2008-06-18 Andreas Schwab <schwab@suse.de>
8006
8007 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
8008 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
8009
8010 2008-06-18 Jason Rumney <jasonr@gnu.org>
8011
8012 * w32font.c (w32font_list, w32font_match): Add logging.
8013
8014 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
8015
8016 2008-06-17 Chong Yidong <cyd@stupidchicken.com>
8017
8018 * font.c (font_parse_fcname): Store divider characters for
8019 unknown-spec list. For known key symbols, intern using correct
8020 symbol name.
8021
8022 2008-06-17 Kenichi Handa <handa@m17n.org>
8023
8024 * xfaces.c (realize_default_face): If the frame is not on window
8025 system, set the fontset of face to nil.
8026
8027 2008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
8028
8029 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
8030
8031 2008-06-16 Juanma Barranquero <lekktu@gmail.com>
8032
8033 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
8034 (build_font_name_from_vector): Delete externs.
8035
8036 * xfaces.c (struct font_name): Don't declare.
8037
8038 2008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
8039
8040 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
8041
8042 2008-06-16 Chong Yidong <cyd@stupidchicken.com>
8043
8044 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
8045
8046 2008-06-16 Juanma Barranquero <lekktu@gmail.com>
8047
8048 * font.c (Ffont_spec): Fix usage in docstring.
8049 (Ffont_face_attributes): Doc fix.
8050
8051 2008-06-16 Andreas Schwab <schwab@suse.de>
8052
8053 * font.c (Ffont_face_attributes): Fix definition.
8054
8055 2008-06-16 Jason Rumney <jasonr@gnu.org>
8056
8057 * font.h (font_style_symbolic_from_value): Remove.
8058
8059 * font.c (font_style_symbolic_from_value): Remove.
8060 (font_style_symbolic): Revert to pre 2008-06-13 version.
8061
8062 * w32font.c (w32_to_fc_weight): New function.
8063 (w32font_full_name, logfont_to_fcname): Use it.
8064
8065 2008-06-16 Kenichi Handa <handa@m17n.org>
8066
8067 * font.c (font_check_object): Delete it.
8068 (font_clear_cache): Check if a font-object is alive.
8069 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
8070 font-object to nil.
8071 (font_close_object): Don't check FONT_CLOSE_OBJECT.
8072 (font_at): Don't call font_check_object.
8073 (Ffont_get): Return a symbol for :weight, :slant, and :width.
8074
8075 2008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
8076
8077 * puresize.h (BASE_PURESIZE): Increase to 1230000.
8078
8079 2008-06-16 Chong Yidong <cyd@stupidchicken.com>
8080
8081 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
8082
8083 2008-06-15 Chong Yidong <cyd@stupidchicken.com>
8084
8085 * font.c (font_parse_fcname): Only one decimal point.
8086 (font_unparse_fcname): Handle data in family and foundry indices
8087 as symbols, not strings.
8088 (font_unparse_gtkname, Ffont_face_attributes): New functions.
8089
8090 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
8091
8092 * font.h (font_unparse_gtkname): Add prototype.
8093
8094 2008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
8095
8096 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
8097
8098 2008-06-15 Andreas Schwab <schwab@suse.de>
8099
8100 * font.c (font_update_drivers): Fix crash when no drivers match.
8101
8102 2008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
8103
8104 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
8105 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
8106
8107 2008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
8108
8109 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
8110
8111 2008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
8112
8113 * process.c (Fserial_process_configure, Fprocess_send_eof):
8114 Use EQ to compare Lisp_Objects.
8115
8116 2008-06-13 Jason Rumney <jasonr@gnu.org>
8117
8118 * w32fns.c (Fw32_select_font): Remove old font API function.
8119
8120 * w32font.c (logfont_to_fcname): New function.
8121 (Fx_select_font): New font dialog function compatible with
8122 GTK/fontconfig version.
8123
8124 * font.c (font_style_symbolic_from_value): New function.
8125 (font_style_symbolic): Use it.
8126
8127 * font.h (font_style_symbolic_from_value): Declare new function.
8128
8129 2008-06-13 Juanma Barranquero <lekktu@gmail.com>
8130
8131 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
8132 <font-width-table>: Fix typos in docstrings.
8133
8134 2008-06-13 Daniel Engeler <engeler@gmail.com>
8135
8136 These changes add serial port access.
8137 * process.c: Add HAVE_SERIAL.
8138 (Fdelete_process, Fprocess_status, Fset_process_buffer)
8139 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
8140 (list_processes_1, select_wrapper, Fstop_process)
8141 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
8142 (status_notify): Modify to handle serial processes.
8143 [HAVE_SERIAL] (Fserial_process_configure)
8144 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
8145 New functions.
8146 * process.h (struct Lisp_Process): Add `type'.
8147 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
8148 New functions.
8149 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
8150 serial ports.
8151 (serial_open, serial_configure): New functions.
8152 * w32.h: Add FILE_SERIAL.
8153 (struct _child_process): Add ovl_read, ovl_write.
8154
8155 2008-06-13 Kenichi Handa <handa@m17n.org>
8156
8157 * dispextern.h (enum lface_attribute_index): New member
8158 LFACE_FOUNDRY_INDEX.
8159
8160 * font.c (font_score): Delete arg alternate_families. Check only
8161 weight, slant, width, and size. Ignore the difference of alias
8162 style symbols.
8163 (font_sort_entites): Adjust for the above change. Reflect the
8164 order of font-driver to scores.
8165 (font_list_entities): Don't check alternate_familes here.
8166 (font_clear_prop): Handle foundry.
8167 (font_update_lface): Don't parse "foundry-family" form here.
8168 Handle FONT_FOUNDRY_INDEX.
8169 (font_find_for_lface): Likewise. Handle alternate families here.
8170 If registry is nil, try iso8859-1 and ascii-0.
8171 (font_open_for_lface): Pay attention to size in ENTITY.
8172 (font_open_by_name): Simplify by calling font_load_for_lface.
8173 (free_font_driver_list): Delete it.
8174 (font_update_drivers): Preserve the order of backends.
8175 (syms_of_font): Setting of sort_shift_bits adjusted for the change
8176 of font_score and font_sort_entites.
8177 (font_update_sort_order): Likewise.
8178
8179 * xfaces.c (LFACE_FOUNDRY): New macro.
8180 (check_lface_attrs): Check foundry.
8181 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
8182 (merge_face_vectors): Check foundry.
8183 (merge_face_ref): Likewise.
8184 (Finternal_set_lisp_face_attribute): Likewise.
8185 (x_update_menu_appearance): Likewise.
8186 (Finternal_get_lisp_face_attribute): Likewise.
8187 (lface_hash): Likewise.
8188 (lface_same_font_attributes_p): Likewise.
8189 (x_supports_face_attributes_p): Likewise.
8190 (tty_supports_face_attributes_p): Likewise.
8191 (Finternal_set_alternative_font_family_alist): Intern strings.
8192 (Finternal_set_alternative_font_registry_alist): Downcase strings.
8193 (realize_default_face): Set LFACE_FOUNDRY (lface).
8194
8195 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
8196 font-driver at first.
8197
8198 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
8199
8200 2008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
8201
8202 * lread.c (Fload): Use xfree, not free on saved_doc_string.
8203
8204 2008-06-12 Jim Meyering <meyering@redhat.com>
8205
8206 Make unexec_free handle NULL the same way free does.
8207 * unexmacosx.c (unexec_free): Ignore a NULL argument.
8208
8209 2008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
8210
8211 * character.h (CHAR_TO_BYTE_SAFE): New macro.
8212 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
8213 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
8214 (WEAK_ALIAS): Simplify.
8215 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
8216 when searching a unibyte buffer.
8217
8218 2008-06-12 Chong Yidong <cyd@stupidchicken.com>
8219
8220 * xfns.c (Fx_select_font): Rename from x-font-dialog.
8221
8222 2008-06-12 Juanma Barranquero <lekktu@gmail.com>
8223
8224 * w32font.c: Include ctype.h.
8225
8226 2008-06-11 Jason Rumney <jasonr@gnu.org>
8227
8228 * w32font.c (w32font_encode_char): Detect missing glyphs that are
8229 misreported as space.
8230 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
8231 as aliases for registry iso10646-1.
8232
8233 2008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
8234
8235 * buffer.c (clone_per_buffer_values): Skip `name'.
8236
8237 2008-06-11 Chong Yidong <cyd@stupidchicken.com>
8238
8239 * font.c (font_parse_fcname): Fix last change; accept decimal
8240 points in font size.
8241
8242 2008-06-10 Jason Rumney <jasonr@gnu.org>
8243
8244 * w32uniscribe.c (add_opentype_font_name_to_list):
8245 Skip non unicode fonts.
8246
8247 2008-06-10 Chong Yidong <cyd@stupidchicken.com>
8248
8249 * xfns.c (Fx_font_dialog): New function.
8250
8251 * gtkutil.c (xg_dialog_response_cb): Rename from
8252 xg_file_response_callback.
8253 (pop_down_dialog): Rename from pop_down_file_dialog.
8254 (xg_get_file_name): Callers changed.
8255 (xg_get_font_name): New function.
8256
8257 * gtkutil.h (xg_get_font_name): Insert prototype.
8258
8259 2008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
8260
8261 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
8262 x_underline_minimum_display_offset.
8263 (syms_of_xdisp): Declare it here rather than in xterm.c.
8264 * dispextern.h (underline_minimum_offset): Declare it.
8265 * w32term.c (x_draw_glyph_string): Use it.
8266 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
8267 (syms_of_xterm): Don't declare it any more.
8268 (x_draw_glyph_string): Adjust to the new name.
8269
8270 2008-06-10 David De La Harpe Golden <david@harpegolden.net> (tiny change)
8271
8272 * xterm.c (x_underline_minimum_display_offset): New var.
8273 (x_draw_glyph_string): Use it.
8274 (syms_of_xterm): Declare it.
8275
8276 2008-06-10 Chong Yidong <cyd@stupidchicken.com>
8277
8278 * font.c (font_parse_fcname): Accept GTK-style font names too.
8279
8280 2008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
8281
8282 * dired.c (file_name_completion): Don't return t if the match is exact
8283 but with different capitalization.
8284 * minibuf.c (Ftry_completion): Simplify.
8285
8286 * window.c (Vwindow_point_insertion_type): New var.
8287 (set_window_buffer): Use it.
8288 (syms_of_window): Init and export it to Lisp.
8289
8290 2008-06-10 Kenichi Handa <handa@m17n.org>
8291
8292 * font.h (font_intern_prop): Prototype adjusted.
8293
8294 * font.c (font_intern_prop): New arg force_symbol.
8295 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
8296 Adjust for the change of font_intern_prop.
8297
8298 * ftfont.c (ftfont_pattern_entity):
8299 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
8300 (w32_registry):
8301 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
8302 the change of font_intern_prop.
8303
8304 2008-06-09 Juanma Barranquero <lekktu@gmail.com>
8305
8306 * w32menu.c (digest_single_submenu): Declare extern.
8307
8308 2008-06-09 Jason Rumney <jasonr@gnu.org>
8309
8310 * w32term.c (x_make_frame_visible): Use alternate restore flags.
8311
8312 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
8313 (parse_single_submenu): Remove.
8314 (digest_single_submenu): Remove.
8315 (syms_of_w32menu): Don't initialise variables that have moved
8316 to menu.c.
8317 (set_frame_menubar): Sync with version in xmenu.c.
8318 (w32_menu_show): Sync with xmenu_show in xmenu.c.
8319
8320 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
8321 Make static again.
8322
8323 2008-06-09 Jason Rumney <jasonr@gnu.org>
8324
8325 Changes to w32 files related to the move of common menu code
8326 to menu.c on 2008-06-08 by Chong Yidong.
8327
8328 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
8329 defs to w32gui.h.
8330 (single_keymap_panes, push_menu_item, push_menu_pane):
8331 Make globally visible.
8332
8333 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
8334 (local_free, malloc_widget_value, free_widget_value)
8335 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
8336 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
8337 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
8338 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
8339 (menu_items, menu_items_allocated, menu_items_used)
8340 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
8341 (init_menu_items, finish_menu_items, discard_menu_items)
8342 (grow_menu_items, push_submenu_start, push_submenu_end)
8343 (push_left_right_boundary, push_menu_pane, push_menu_item)
8344 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
8345 (free_menubar_widget_tree_value, parse_single_submenu)
8346 (update_submenu_strings): Remove functions.
8347 (xmalloc_widget_value): Remove and declare extern.
8348
8349 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
8350 (OBJ1): Build it.
8351
8352 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
8353 (local_heap, local_alloc, local_free, malloc_widget_value)
8354 (free_widget_value): Define here.
8355
8356 2008-06-09 Kenichi Handa <handa@m17n.org>
8357
8358 * font.h (Qascii_0): Extern it.
8359
8360 * font.c (Qascii_0): New variable.
8361 (syms_of_font): DEFSYM it.
8362 (font_open_by_name): If the registry "iso8859-1" fails, try also
8363 "ascii-0".
8364
8365 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
8366
8367 2008-06-08 Kenichi Handa <handa@m17n.org>
8368
8369 * .gdbinit (xfont): New command.
8370
8371 2008-06-08 Andreas Schwab <schwab@suse.de>
8372
8373 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
8374 * Makefile.in (menu.o): Update dependencies.
8375
8376 * Makefile.in (obj): Always add menu.o.
8377 * emacs.c (main): Always call syms_of_menu.
8378 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
8379
8380 2008-06-08 Chong Yidong <cyd@stupidchicken.com>
8381
8382 * Makefile.in: Compile menu.c.
8383
8384 * lisp.h: Declare syms_of_menu.
8385
8386 * emacs.c (main): Call syms_of_menu.
8387
8388 * keyboard.h: Relocate platform-independent menu definitions from
8389 xmenu.c.
8390
8391 * menu.c: New file. Relocate platform-independent menu
8392 definitions from xmenu.c. Suggested by Adrian Robert.
8393
8394 * xmenu.c: Remove platform-independent menu definitions.
8395 (menu_items menu_items_inuse, menu_items_allocated)
8396 (menu_items_used, menu_items_n_panes)
8397 (menu_items_submenu_depth): Move to keyboard.h.
8398 (init_menu_items, finish_menu_items, unuse_menu_items)
8399 (discard_menu_items, restore_menu_items, save_menu_items)
8400 (grow_menu_items, push_submenu_start, push_submenu_end)
8401 (push_left_right_boundary, push_menu_pane, push_menu_item)
8402 (keymap_panes, single_keymap_panes, single_menu_item)
8403 (list_of_panes, list_of_items, find_and_call_menu_selection)
8404 (xmalloc_widget_value, free_menubar_widget_value_tree)
8405 (parse_single_submenu, digest_single_submenu)
8406 (update_submenu_strings): Move to menu.c.
8407
8408 2008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
8409
8410 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
8411
8412 2008-06-06 Miles Bader <miles@gnu.org>
8413
8414 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
8415 face, not frame default.
8416
8417 2008-06-05 Martin Rudalics <rudalics@gmx.at>
8418
8419 * window.c (pop_up_windows, pop_up_frames)
8420 (display_buffer_reuse_frames, Vpop_up_frame_function)
8421 (Vdisplay_buffer_function, Veven_window_heights)
8422 (Vspecial_display_buffer_names, Vspecial_display_regexps)
8423 (Vspecial_display_function, Vsame_window_buffer_names)
8424 (Vsame_window_regexps, split_height_threshold)
8425 (Vsplit_window_preferred_function): Move those vars to window.el.
8426 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
8427 (Fdisplay_buffer): Move those functions to window.el.
8428 (syms_of_window): Remove corresponding declarations.
8429 (display_buffer): New function.
8430 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
8431 * dispnew.c (Flast_nonminibuf_frame): New function.
8432 * buffer.c (Fpop_to_buffer): Move to window.el.
8433
8434 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
8435
8436 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
8437
8438 2008-06-05 Kenichi Handa <handa@m17n.org>
8439
8440 * coding.c (detect_coding): Fix previous change.
8441 (detect_coding_system): Likewise.
8442
8443 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
8444
8445 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
8446
8447 * keymap.c (Vminibuffer_local_filename_must_match_map):
8448 Rename from Vminibuffer_local_must_match_filename_map.
8449 (syms_of_keymap):
8450 * minibuf.c (Fcompleting_read): Adjust accordingly.
8451 * commands.h: Rename declaration as well.
8452
8453 2008-06-05 Kenichi Handa <handa@m17n.org>
8454
8455 * font.c (Ffont_spec): Don't use font_parse_family_registry for
8456 family name.
8457 (Ffont_put): Likewise.
8458
8459 * fontset.c (fontset_find_font): Call font_open_for_lface with the
8460 current font-spec.
8461
8462 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
8463 is unspecified.
8464
8465 * xfaces.c (realize_x_face): If the font-related face attributes
8466 are the same as those of default face, realize a new fontset from
8467 default->fontset.
8468 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
8469
8470 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
8471
8472 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
8473 (move_it_in_display_line): New wrapper.
8474
8475 * window.c (window_scroll_pixel_based_preserve_x)
8476 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
8477 (window_scroll_pixel_based, window_scroll_line_based):
8478 Use them to preserve column positions.
8479 (syms_of_window): Initialize them.
8480
8481 * indent.c (Fvertical_motion): Extend first arg to allow passing an
8482 (HPOS . VPOS) pair.
8483
8484 * dispextern.h (move_it_in_display_line): Declare.
8485
8486 2008-06-05 Juanma Barranquero <lekktu@gmail.com>
8487
8488 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
8489 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
8490 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
8491
8492 2008-06-04 Juanma Barranquero <lekktu@gmail.com>
8493
8494 * window.c (Fset_window_parameter): Doc fix.
8495 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
8496
8497 2008-06-04 Joakim Verona <joakim@verona.se>
8498
8499 * window.h (struct window): Add new member window_parameters.
8500
8501 * window.c (Fwindow_parameters, Fwindow_parameter)
8502 (Fset_window_parameter): New defuns.
8503 (syms_of_window): Defsubr the new defuns.
8504 (make_window): Initialize window_parameters to nil.
8505
8506 2008-06-04 John Paul Wallington <jpw@pobox.com>
8507
8508 * eval.c (Fdefmacro): Doc fix.
8509
8510 2008-06-04 Kenichi Handa <handa@m17n.org>
8511
8512 * coding.c (detect_coding): Fix handling of coding->head_ascii.
8513 Be sure to call setup_coding_system when we find a proper coding system.
8514 (detect_coding_system): Fix handling of coding->head_ascii.
8515
8516 2008-06-03 Andreas Schwab <schwab@suse.de>
8517
8518 * font.c (font_prop_validate_spacing): Fix last change.
8519
8520 2008-06-03 Kenichi Handa <handa@m17n.org>
8521
8522 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
8523 (font_parse_fcname): Fix handling of unknown key.
8524
8525 * xfont.c (xfont_list): Try an alias.
8526
8527 * charset.c (char_charset): Return NULL if the arg charset_list is
8528 specified and C doesn't belong to any of them.
8529
8530 2008-06-02 Chip Coldwell <coldwell@redhat.com>
8531
8532 * font.c (font_pixel_size): Don't take cdr of an integer.
8533
8534 2008-06-02 Jim Meyering <meyering@redhat.com>
8535
8536 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
8537 * alloc.c (xfree): Return right away for a NULL arg.
8538 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
8539 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
8540 * mac.c (create_apple_event_from_event_ref): Likewise.
8541 (create_apple_event_from_drag_ref, cfstring_create_normalized):
8542 Likewise.
8543 * doprnt.c (doprnt1): Likewise.
8544 * frame.c (frame): Likewise.
8545 * keyboard.c (wipe_kboard): Likewise.
8546 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
8547 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
8548 * term.c (tty_default_color_capabilities, maybe_fatal)
8549 (delete_tty): Likewise.
8550 * w16select.c (string): Likewise.
8551 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
8552 * w32bdf.c (w32_free_bdf_font): Likewise.
8553 * w32fns.c (w32_unload_font): Likewise.
8554 * w32font.c (w32font_close): Likewise.
8555 * window.c (size_window): Likewise.
8556 * xselect.c (receive_incremental_selection): Likewise.
8557 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
8558 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
8559 * w32.c (stat): Likewise.
8560
8561 Remove useless if-before-free tests.
8562 * editfns.c (Fset_time_zone_rule): Likewise.
8563 * lread.c (nosuffix): Likewise.
8564 * ralloc.c (get_bloc): Likewise.
8565 * regex.c (reg_free): Likewise.
8566 * xftfont.c (xftfont_open, xftfont_close): Likewise.
8567 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
8568 * xsmfns.c (smc_save_yourself_CB): Likewise.
8569
8570 2008-06-02 Kenichi Handa <handa@m17n.org>
8571
8572 * font.c (font_find_for_lface): Handle float font size.
8573 (font_open_for_lface): Likewise.
8574
8575 * xfaces.c (x_supports_face_attributes_p): Check face->font before
8576 comparing the properties.
8577
8578 2008-06-01 Jason Rumney <jasonr@gnu.org>
8579
8580 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
8581 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
8582 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
8583 Don't add empty script list.
8584 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
8585
8586 2008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
8587
8588 * Makefile.in (dot, dotdot): Remove, update users.
8589 ".." has been used elsewhere in the file for a long time.
8590 (LIBXT_STATIC): Remove conditional based on unused variable.
8591
8592 2008-06-01 Miles Bader <miles@gnu.org>
8593
8594 * xfaces.c (Vface_remapping_alist): New variable.
8595 (syms_of_xfaces): Initialize it.
8596 (enum named_merge_point_kind): New type.
8597 (struct named_merge_point): Add `named_merge_point_kind' field.
8598 (push_named_merge_point): Make cycle detection respect different
8599 named-merge-point kinds.
8600 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
8601 Remove face-name alias resolution.
8602 (lface_from_face_name): New definition using
8603 `lface_from_face_name_no_resolve'.
8604 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
8605 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
8606 (get_lface_attributes): New definition that layers face-remapping on
8607 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
8608 (lookup_basic_face): New function.
8609 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
8610 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
8611 `get_lface_attributes'.
8612 (face_at_buffer_position): Use `lookup_basic_face' to lookup
8613 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
8614 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
8615
8616 * xdisp.c (init_iterator): Pass base_face_id through
8617 `lookup_basic_face' when we actually use it as a face-id.
8618 (handle_single_display_prop): Use `lookup_basic_face' to lookup
8619 DEFAULT_FACE_ID.
8620
8621 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
8622 lookup the initial face-id.
8623
8624 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
8625
8626 2008-06-01 Juanma Barranquero <lekktu@gmail.com>
8627
8628 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
8629 (Fremove_text_properties): Fix typos in docstrings.
8630
8631 2008-05-31 Kenichi Handa <handa@m17n.org>
8632
8633 * font.c (font_list_entities): Fix the car part of data to be
8634 stored in the cache.
8635
8636 * ftfont.c (ftfont_font_format): Don't use strcasestr.
8637
8638 2008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
8639
8640 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
8641 Add a `test' argument so another predicate than `equal' can be used.
8642 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
8643 (map_char_table): Remove unused vars `c' and `i'.
8644 * lisp.h (Foptimize_char_table): Adjust declaration.
8645 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
8646
8647 2008-05-30 Kenichi Handa <handa@m17n.org>
8648
8649 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
8650 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
8651 defined.
8652
8653 2008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
8654
8655 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
8656 (Fmake_variable_frame_local): Disallow mixing buffer-local and
8657 frame-local settings for the same variable.
8658
8659 2008-05-30 Kenichi Handa <handa@m17n.org>
8660
8661 * fontset.c (Ffont_info): Move to font.c.
8662 (syms_of_fontset): Delete defsubr of Sfont_info.
8663
8664 * font.c (font_style_to_value, font_score): Delete casting of the
8665 args to xstcasecmp.
8666 (register_font_driver): Increment num_font_drivers only when
8667 registering the driver globally.
8668 (Ffont_info): Move from fontset.c. Handle a font object too.
8669 (syms_of_font): Defsubr Sfont_info.
8670
8671 2008-05-29 Kenichi Handa <handa@m17n.org>
8672
8673 * coding.h (enum define_coding_utf8_arg_index): New enum.
8674 (enum coding_attr_index): Change coding_attr_utf_16_bom to
8675 coding_attr_utf_bom.
8676 (enum utf_bom_type): Rename from utf_16_bom_type.
8677 (struct utf_16_spec): Adjust for the above change.
8678 (struct coding_system): Add utf_8_bom in `spec' union.
8679
8680 * coding.c (CODING_UTF_8_BOM): New macro.
8681 (enum coding_category): Delete coding_category_utf_8, add
8682 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
8683 coding_category_utf_8_sig.
8684 (CATEGORY_MASK_UTF_8): Delete it.
8685 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
8686 (CATEGORY_MASK_UTF_8_SIG): New macros.
8687 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
8688 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
8689 CATEGORY_MASK_UTF_8_SIG.
8690 (CATEGORY_MASK_UTF_8): New macro.
8691 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
8692 (detect_coding_utf_8): Check BOM.
8693 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
8694 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
8695 (encode_coding_utf_16): Likewise.
8696 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
8697 (detect_coding, detect_coding_system): Handle utf-8-auto.
8698 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
8699 (syms_of_coding): Fix setting up of Vcoding_category_table.
8700
8701 2008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
8702
8703 * process.c (Faccept_process_output): If `millisec' is non-nil,
8704 `seconds' default to 0.
8705 (wait_reading_process_output): Also return non-nil if we read output
8706 from a non-running process.
8707
8708 2008-05-29 Jason Rumney <jasonr@gnu.org>
8709
8710 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
8711 `raster' specified.
8712 (add_font_entity_to_list): Allow non-opentype truetype fonts back
8713 in the uniscribe backend, but disallow any font that has no
8714 unicode subrange support.
8715
8716 2008-05-29 Juanma Barranquero <lekktu@gmail.com>
8717
8718 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
8719 Fix typos in docstrings.
8720
8721 2008-05-29 Kenichi Handa <handa@m17n.org>
8722
8723 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
8724 (Fx_family_fonts): Set frame correctly.
8725
8726 2008-05-28 Jason Rumney <jasonr@gnu.org>
8727
8728 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
8729
8730 2008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
8731
8732 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
8733 calling build_annotations.
8734
8735 2008-05-28 Juanma Barranquero <lekktu@gmail.com>
8736
8737 * coding.c (Fdecode_coding_region, Fencode_coding_region)
8738 (Fencode_coding_string):
8739 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
8740 <latin-extra-code-table>: Fix typos in docstrings.
8741 (syms_of_coding) <coding-system-alist>: Doc fix.
8742 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
8743
8744 2008-05-28 Kenichi Handa <handa@m17n.org>
8745
8746 * fontset.c (Ffont_info): Don't call font_close_object.
8747
8748 * font.c (font_parse_family_registry): Use Ffont_put to validate
8749 foundry and family.
8750 (font_delete_unmatched): Don't check spacing.
8751 (font_list_entities): Add spacing to the spec to list fonts.
8752
8753 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
8754 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
8755
8756 * coding.c (encode_coding_raw_text): Fix previous change.
8757 (encode_coding_object): When the dst_object is a buffer and is
8758 different from src_object, move gap to PT.
8759
8760 2008-05-27 Chong Yidong <cyd@stupidchicken.com>
8761
8762 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
8763
8764 2008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
8765
8766 * coding.c (encode_coding_raw_text): Set coding->produced_char for
8767 all branches. Compute it differently.
8768
8769 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
8770
8771 2008-05-27 Juanma Barranquero <lekktu@gmail.com>
8772
8773 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
8774 into "else if () ... else ...".
8775
8776 2008-05-27 Jason Rumney <jasonr@gnu.org>
8777
8778 * w32font.c (w32font_open_internal): Determine if glyph indices
8779 are likely to work here.
8780
8781 2008-05-27 Chong Yidong <cyd@stupidchicken.com>
8782
8783 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
8784 draw overlap glyphs with appropriate highlighting.
8785
8786 2008-05-27 Kenichi Handa <handa@m17n.org>
8787
8788 * xfont.c (xfont_open): Fix calculation of font->average_width.
8789
8790 2008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
8791
8792 * casefiddle.c (casify_object): Try to guess better whether the
8793 argument is a byte or a char.
8794
8795 2008-05-26 Andreas Schwab <schwab@suse.de>
8796
8797 * xselect.c (x_reply_selection_request): Properly handle format == 32.
8798 Always send multiples of format size.
8799
8800 * xterm.c (x_set_frame_alpha): Fix type mismatch.
8801
8802 2008-05-26 Jason Rumney <jasonr@gnu.org>
8803
8804 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
8805 (compute_metrics): Don't set failure if we just cleared the cache.
8806 (w32_weight_table): Remove unused variable.
8807 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
8808 backwards compatibility.
8809
8810 2008-05-25 Kenichi Handa <handa@m17n.org>
8811
8812 * w32term.c (x_draw_glyph_string):
8813 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
8814
8815 * xfaces.c: Delete unused function prototypes.
8816 (xstrlwr, font_frame): Delete them.
8817 (clear_face_cache): Delete unused variable.
8818
8819 * xftfont.c (xftfont_open): Delete unused variable.
8820 If underline_thickness is not 1, adjust underline_position.
8821
8822 * ftxfont.c (ftxfont_open): Delete unused variable.
8823
8824 * fontset.c (face_for_char): Optimize for the case of no charset
8825 property.
8826
8827 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
8828 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
8829 (otf_open, font_otf_capability, generate_otf_features)
8830 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
8831 Comment out by surrounding "#if 0" and "#endif" for the moment.
8832 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
8833 (syms_of_font): Codes for accessing above commented out.
8834
8835 2008-05-24 Eli Zaretskii <eliz@gnu.org>
8836
8837 * w32proc.c: Include dispextern.h.
8838
8839 * w32.c: Include dispextern.h.
8840
8841 2008-05-23 Juanma Barranquero <lekktu@gmail.com>
8842
8843 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
8844 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
8845 Fix typos in docstrings.
8846
8847 2008-05-23 Jason Rumney <jasonr@gnu.org>
8848
8849 * xsmfns.c: Remove includes that are already included by config.h.
8850
8851 2008-05-23 Kenichi Handa <handa@m17n.org>
8852
8853 * charset.c (Qemacs, charset_emacs): New variables.
8854 (char_charset): Fix for non-Unicode characters.
8855 (syms_of_charset): Define charset_emacs.
8856
8857 * w32term.c (x_draw_glyph_string): Be sure to update
8858 s->underline_thickness and s->underline_position. Be sure to draw
8859 underline within the current line area.
8860
8861 * xterm.c (x_draw_glyph_string): Be sure to update
8862 s->underline_thickness and s->underline_position. Be sure to draw
8863 underline within the current line area.
8864
8865 * fontset.c: Delete unused variables and add casting for char *
8866 throughout the file.
8867 (fontset_font): Try the fallback fonts of the current fontset
8868 before consulting the default fontset.
8869
8870 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
8871
8872 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
8873
8874 2008-05-22 Jason Rumney <jasonr@gnu.org>
8875
8876 * font.c: Don't include strings.h.
8877
8878 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
8879
8880 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
8881 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
8882 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
8883 to call xstrcasecmp.
8884
8885 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
8886
8887 * fontset.c (fs_query_fontset): Use xstrcasecmp.
8888
8889 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
8890
8891 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
8892
8893 2008-05-22 Kenichi Handa <handa@m17n.org>
8894
8895 * puresize.h (BASE_PURESIZE): Increase to 1220000.
8896
8897 * font.c (font_prop_validate_style): Adjust for the format
8898 change of font_style_table.
8899
8900 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
8901 two args.
8902
8903 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
8904 two args.
8905
8906 2008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
8907
8908 * minibuf.c (keys_of_minibuf): Delete.
8909 * lisp.h (keys_of_minibuf): Delete.
8910 * emacs.c (main): Don't call keys_of_minibuf.
8911
8912 2008-05-22 Kenichi Handa <handa@m17n.org>
8913
8914 * ftfont.c (ftfont_resolve_generic_family): Rename from
8915 ftfont_list_generic_family. Return a single family for each
8916 generic family.
8917 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
8918 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
8919 Call font_add_log.
8920 (ftfont_match): Call font_add_log.
8921
8922 * font.h (Ffont_xlfd_name): EXFUN adjusted.
8923 (FONT_DEBUG): Define it.
8924 (font_add_log): Extern it.
8925 (font_assert): Rename from xassert.
8926
8927 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
8928 (xfont_list_family): Call font_add_log.
8929 (xfont_match): Likewise.
8930 (memq_no_quit): Delete.
8931
8932 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
8933 call of Ffont_xlfd_name.
8934
8935 * xfaces.c (struct table_entry, slant_table, weight_table)
8936 (swidth_table): Move to font.c.
8937
8938 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
8939 xassert are changed to font_assert. Delete many unused variables.
8940 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
8941 New variables.
8942 (struct table_entry): Move from xfaces.c and modified.
8943 (weight_table, slant_table, width_table): Move from xfaces.c and
8944 contents adjusted for the change of struct table_entry.
8945 (font_style_to_value, font_style_symbolic): Adjust for the
8946 format change of font_style_table.
8947 (font_parse_family_registry): Don't overwrite existing foundry and
8948 family of font_spec.
8949 (font_score): Fix calculation of diff for sizes.
8950 (font_sort_entites): Call font_add_log.
8951 (font_delete_unmatched): Return a newly created list.
8952 (font_list_entities): Fix previous change. Call font_add_log.
8953 (font_matching_entity, font_open_entity, font_close_entity):
8954 Call font_add_log.
8955 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
8956 (Finternal_set_font_style_table): Delete.
8957 (BUILD_STYLE_TABLE): New macro.
8958 (build_style_table): New function.
8959 (Vfont_log, font_log_env_checked): New variables.
8960 (font_add_log): New function.
8961 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
8962 Declare Lisp variables "font-weight-table", "font-slant-table",
8963 "font-width-table", and "font-log". Initialize font_style_table.
8964
8965 2008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
8966
8967 * xterm.c (x_set_frame_alpha): Move declarations before statements.
8968
8969 2008-05-21 Seiji Zenitani <zenitani@mac.com>
8970 Ryo Yoshitake <ryo@shiftmode.net>
8971
8972 * frame.c (Qalpha): Add a new frame parameter `alpha'.
8973 (Vframe_alpha_lower_limit): New variable.
8974 (x_set_alpha): New function.
8975
8976 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
8977
8978 * xfns.c (x-create-frame, Qalpha):
8979 Initialize the frame parameter `alpha'.
8980 * xterm.c (OPAQUE, OPACITY): New.
8981 (x_set_frame_alpha): New function.
8982 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
8983
8984 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
8985 * w32fns.c (w32_frame_parm_handlers): Likewise.
8986
8987 2008-05-20 Jason Rumney <jasonr@gnu.org>
8988
8989 * w32font.c (add_font_entity_to_list): Don't add non-opentype
8990 truetype fonts to opentype list.
8991
8992 2008-05-20 Juanma Barranquero <lekktu@gmail.com>
8993
8994 * fontset.c (Ffontset_info): Doc fix.
8995 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
8996 <ignore-relative-composition>: Fix typos in docstrings.
8997
8998 * font.c (syms-of-font) <font-encoding-alist>:
8999 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
9000 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
9001 (Ffont_otf_alternates): Doc fixes.
9002
9003 2008-05-20 Kenichi Handa <handa@m17n.org>
9004
9005 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
9006 font.h through out the file.
9007 (FONT_DRIVERS): Rename from FONTOBJ.
9008 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
9009 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
9010
9011 * emacs.c (main): Call syms_of_font unconditionally.
9012
9013 * font.h (find_font_encoding): Extern it.
9014
9015 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
9016 fontset.c.
9017 (font_pixel_size)[! HAVE_WINDOW_SYSTEM]: Return 1.
9018 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
9019 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
9020 only when HAVE_WINDOW_SYSTEM is defined.
9021 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
9022 when HAVE_WINDOW_SYSTEM is defined.
9023
9024 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
9025 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
9026
9027 * xfaces.c: Include font.h unconditionally.
9028 (merge_face_ref, merge_face_vectors)
9029 (Finternal_set_lisp_face_attribute): Cancel the previous change.
9030
9031 2008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
9032
9033 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
9034 indirect_variable.
9035 * eval.c (lisp_indirect_variable): New fun.
9036 (Fuser_variable_p): Use it.
9037
9038 2008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
9039
9040 * lisp.h (indirect_variable):
9041 * data.c (indirect_variable, let_shadows_buffer_binding_p):
9042 Use Lisp_Symbol pointers rather than Lisp_Object.
9043 Adjust callers.
9044 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
9045 To this end, change calling-convention.
9046
9047 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
9048 if some non-hidden buffers are selected by string&pred.
9049
9050 2008-05-19 Chong Yidong <cyd@stupidchicken.com>
9051
9052 * process.c (wait_reading_process_output): Always check status
9053 when in batch mode.
9054
9055 2008-05-19 Kenichi Handa <handa@m17n.org>
9056
9057 * font.c (font_list_entities): Fix handling of cache.
9058 (font_matching_entity): Likewise.
9059
9060 * ftfont.c (cs_iso8859_1): Delete.
9061 (ft_face_cache): New variable.
9062 (struct ftfont_info): New member fc_charset_idx.
9063 (ftfont_build_basic_charsets): Delete.
9064 (fc_charset_table): New variable.
9065 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
9066 . FC_CHARSET_IDX) as :font-entity property in the font entity.
9067 Callers changed.
9068 (ftfont_lookup_cache, ftfont_get_charset): New functions.
9069 (ftfont_spec_pattern): New argument fc_charset_idx.
9070 Check registry more rigidly. Change callers.
9071 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
9072 change of :font-entity property of the font.
9073
9074 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
9075 property of the font.
9076
9077 2008-05-18 Juanma Barranquero <lekktu@gmail.com>
9078
9079 * coding.c (Fcoding_system_p): Rename argument to match docstring.
9080 (Funencodable_char_position, Fcheck_coding_systems_region)
9081 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
9082 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
9083 (Ffind_operation_coding_system, Fset_coding_system_priority)
9084 (Fcoding_system_eol_type): Doc fixes.
9085
9086 2008-05-17 Glenn Morris <rgm@gnu.org>
9087
9088 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
9089
9090 2008-05-16 Eli Zaretskii <eliz@gnu.org>
9091
9092 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
9093 and st_gid.
9094
9095 * frame.c (Fdelete_frame): Don't call font_update_drivers if
9096 HAVE_WINDOW_SYSTEM is not defined.
9097
9098 * xfaces.c (merge_face_ref, merge_face_vectors)
9099 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
9100 HAVE_WINDOW_SYSTEM is defined.
9101 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
9102
9103 2008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
9104
9105 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
9106
9107 2008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9108
9109 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
9110
9111 2008-05-15 Kenichi Handa <handa@m17n.org>
9112
9113 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
9114 preference.
9115
9116 2008-05-15 Glenn Morris <rgm@gnu.org>
9117
9118 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
9119
9120 2008-05-15 Chong Yidong <cyd@stupidchicken.com>
9121
9122 * fns.c (init_fns): Don't initialize weak_hash_tables here.
9123 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
9124
9125 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
9126
9127 2008-05-15 Kenichi Handa <handa@m17n.org>
9128
9129 * ftfont.c (ftfont_list): Downcase family name to check generic
9130 families.
9131
9132 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
9133 font-spec for QCfont value.
9134
9135 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
9136 buffer. Check the return value of it.
9137
9138 2008-05-14 Jason Rumney <jasonr@gnu.org>
9139
9140 * w32term.c (w32_get_glyph_overhangs): Remove.
9141 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
9142
9143 2008-05-14 Kenichi Handa <handa@m17n.org>
9144
9145 * font.c (font_prop_validate): Make nil a valid value.
9146 (font_clear_cache): Check if the cached vector of entities is nil
9147 or not.
9148
9149 2008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9150
9151 * emacs.c (main_thread): Conditionalize on
9152 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
9153 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
9154
9155 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
9156 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
9157 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
9158
9159 2008-05-14 Kenichi Handa <handa@m17n.org>
9160
9161 * coding.c (detect_coding_iso_2022): Ignore a coding category that
9162 has no corresponding coding system.
9163
9164 2008-05-14 Jason Rumney <jasonr@gnu.org>
9165
9166 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
9167
9168 * w32font.h (w32font_open_internal): Update declaration.
9169
9170 * w32font.c (w32font_open_internal): Change last argument from
9171 w32font_info struct to font object. Fill in font object from
9172 font_entity. Get Outline metrics if possible. Use them to
9173 calculate underline position and thickness. Use xlfd name as name
9174 property. Don't set codepage.
9175 (w32font_open): Pass font_object to w32font_open_internal. Don't
9176 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
9177 (w32font_draw): Use s->font.
9178 (clear_cached_metrics): Don't clear non-existent blocks.
9179
9180 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
9181 font was not found.
9182 (x_draw_glyph_string): Use underline position and thickness from font.
9183
9184 * w32uniscribe.c (uniscribe_open): Pass font_object to
9185 w32font_open_internal.
9186
9187 2008-05-14 Kenichi Handa <handa@m17n.org>
9188
9189 These changes are to delete all legacy font-handling codes, and
9190 make Emacs use only font-backends.
9191
9192 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
9193 (frame.o, image.o, print.o): Depend on $(FONTSRC).
9194
9195 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
9196
9197 * charset.h (Vcharset_non_preferred_head)
9198 (Vcurrent_iso639_language): Extern them.
9199
9200 * charset.c (Vcharset_non_preferred_head): New variable.
9201 (Vcurrent_iso639_language): New variable.
9202 (syms_of_charset): Declare it as a Lisp variable.
9203 (char_charset): Don't check non preferred charsets. As a last
9204 resort, return charset_unicode.
9205 (Fset_charset_priority): Update Vcharset_non_preferred_head.
9206
9207 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
9208 conditionals. Don't check enable_font_backend. Delete all codes
9209 used only when USE_FONT_BACKEND is not defined.
9210
9211 * dispextern.h (struct glyph_string): Change type of `font' to
9212 `struct font *'.
9213 (struct glyph_string): New member underline_position and
9214 underline_thickness.
9215 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
9216 (struct face): Change type of `font' to `struct font *'. Remove
9217 members `font_name', `font_info_id'.
9218 (per_char_metric, encode_char): Delete externs.
9219 (calc_pixel_width_or_height): Adjust the prototype.
9220
9221 * emacs.c (enable_font_backend): Delete extern.
9222 (main): Don't set enable_font_backend. Don't check the command
9223 line argument "-disable-font-backend".
9224
9225 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
9226 (enum font_property_index): New members FONT_DPI_INDEX,
9227 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
9228 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
9229 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
9230 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
9231 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
9232 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
9233 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
9234 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
9235 (struct font_spec, struct font_entity): New structs.
9236 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
9237 (struct font): Many members from old "struct font_info" moved to
9238 here. Members font and entity deleted.
9239 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
9240 the new font-related objects.
9241 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
9242 (CHECK_FONT_GET_OBJECT): Likewise.
9243 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
9244 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
9245 (struct font_driver): New members case_sensitive anc check. Type
9246 of the member list and open changed.
9247 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
9248 (font_symbolic_width, font_find_object, font_get_spec)
9249 (font_set_lface_from_name): Delete extern.
9250 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
9251
9252 * font.c: Include <strings.h>.
9253 (enable_font_backend): Delete it.
9254 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
9255 (CHECK_VALIDATE_FONT_SPEC): Delete it.
9256 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
9257 (null_string): Delete it.
9258 (null_vector): Make it static.
9259 (font_family_alist): Delete it.
9260 (Qnormal): Extern it.
9261 (QCextra, QClanguage): Delete it.
9262 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
9263 (font_make_spec, font_make_entity, font_make_object)
9264 (font_intern_prop): Renamed from intern_downcase. Don't downcase
9265 the string. Callers changed.
9266 (font_pixel_size): Adjusted for the format change of font-related
9267 objects.
9268 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
9269 (font_style_to_value, font_style_symbolic): New function.
9270 (build_font_family_alist): Delete it.
9271 (font_registry_charsets): Use Fassoc_string instead of
9272 assq_no_quit.
9273 (font_prop_validate_symbol): Don't return null_string.
9274 (font_prop_validate_style): Adjusted for the change of
9275 style-related values in a font vector.
9276 (font_property_table): Delete entries for QClanguage and
9277 QCantialias, add entries for QCavgwidth.
9278 (get_font_prop_index): Delete the 2nd argument FROM.
9279 (font_prop_validate): Arguments changed.
9280 (font_put_extra): Adjusted for the change of font-related objects.
9281 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
9282 (font_parse_fcname, font_unparse_fcname)
9283 (font_prepare_composition): Likewise.
9284 (font_parse_family_registry): Renamed from font_merge_old_spec.
9285 (otf_open): Delete the 1st arg entity.
9286 (font_otf_capability): Adjusted for the above change.
9287 (font_score): New arg alternate_families. Adjusted for the change
9288 of font-related objects.
9289 (font_sort_entites): New arg best_only.
9290 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
9291 Delete them.
9292 (font_match_p): Check alternate families.
9293 (font_find_object): Delete it.
9294 (font_check_object): New function.
9295 (font_clear_cache): Adjusted for the change of font-related objects.
9296 (font_delete_unmatched): New arg.
9297 (font_list_entities): Call font_driver->list with a spec that
9298 doesn't specify style-related properties.
9299 (font_matching_entity): Arguments changed. Caller changed.
9300 (font_open_entity): Adjusted for the change of font-related objects.
9301 (font_close_object, font_has_char, font_encode_char)
9302 (font_get_name, font_get_spec): Likewise.
9303 (font_spec_from_name, font_clear_prop, font_update_lface):
9304 New functions.
9305 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
9306 (font_prepare_for_face, font_done_for_face, font_open_by_name)
9307 (font_at): Adjusted for the change of font-related objects.
9308 (font_range): New function.
9309 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
9310 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
9311 (Fcopy_font_spec, Fmerge_font_spec): New function.
9312 (Ffont_family_list): Renamed from list-families.
9313 (Finternal_set_font_style_table): Arguments changed.
9314 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
9315 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
9316 change of font-related objects.
9317 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
9318
9319 * fontset.h (struct font_info): Delete it. Most members go to
9320 struct font.
9321 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
9322 (enum FONT_SPEC_INDEX): Delete it.
9323 (font_info, list_fonts_func, load_font_func, query_font_func)
9324 (set_frame_fontset_func, find_ccl_program_func)
9325 (get_font_repertory_func, new_fontset_from_font_name): Delete
9326 externs.
9327 (fontset_from_font_name): Extern it.
9328 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
9329 (FONT_INFO_FROM_FACE): Deleted.
9330 (face_for_font): Adjust prototype.
9331
9332 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
9333 conditionals. Don't check enable_font_backend. Delete all codes
9334 used only when USE_FONT_BACKEND is not defined.
9335 (get_font_info_func, list_font_func, load_font_func)
9336 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
9337 (get_font_repertory_func): Delete them.
9338 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
9339 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
9340 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
9341 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
9342 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
9343 (fontset_compare_rfontdef): New function.
9344 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
9345 rfont-defs by qsort. Adjusted for the change of font-group vector.
9346 (load_font_get_repertory): Deleted.
9347 (fontset_find_font): Use new macros to ref/set elements of
9348 font-def and rfont-def.
9349 (fontset_font): Fix the timing of remembering that no font for C.
9350 (free_face_fontset): Do nothing if the face has no fontset.
9351 (face_suitable_for_char_p): Use new macros to ref/set elements of
9352 rfont-def.
9353 (face_for_char): Likewise. Call face_for_char with font_object.
9354 (fs_load_font): Delete. Delete #pragma surrounding it.
9355 (fs_query_fontset): Use strcasecmp instead of strcmp.
9356 (generate_ascii_font_name): Adjusted for the format change of
9357 font-spec.
9358 (Fset_fontset_font): Likewise. Use new macros to set elements of
9359 font-def.
9360 (Fnew_fontset): Use font_unparse_xlfd to generate
9361 FONTSET_ASCII (fontset).
9362 (new_fontset_from_font_name): Deleted.
9363 (fontset_from_font): Renamed from new_fontset_from_font. Check if
9364 a fontset is already created for the font. FIx updating of
9365 Vfontset_alias_alist.
9366 (fontset_ascii_font): Deleted.
9367 (Ffont_info): Adjusted for the format change of font-spec.
9368 (Finternal_char_font): Likewise.
9369 (Ffontset_info): Likewise.
9370 (syms_of_fontset): Don't check load_font_func.
9371
9372 * fns.c (internal_equal): Handle PREV_FONT.
9373
9374 * frame.h: Delete USE_FONT_BACKEND conditional.
9375
9376 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
9377 conditionals. Don't check enable_font_backend. Delete all codes
9378 used only when USE_FONT_BACKEND is not defined.
9379 (x_set_font): Call x_new_font, not x_new_fontset2.
9380 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
9381 already set for the frame.
9382
9383 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
9384 a font-entity by font_make_entity. Use font_intern_prop instead
9385 of intern_downcase. Use FONT_SET_STYLE to set a style-related
9386 font property. If a font is scalable, set avgwidth property to 0.
9387 Set font-entity property by font_put_extra.
9388 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
9389 (ffont_driver): Adjusted for the change of struct font_driver.
9390 (ftfont_spec_pattern): New function.
9391 (ftfont_list): Return a list, not vector.
9392 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
9393 (ftfont_list_family): Don't downcase names.
9394 (ftfont_free_entity): Deleted.
9395 (ftfont_open): Return a font-object. Adjusted for the change of
9396 struct font. Get underline_thickness and underline_position from
9397 font property. Don't update dpyinfo->smallest_font_height and
9398 dpyinfo->smallest_char_width.
9399 (ftfont_close): Don't free `struct font'.
9400 (ftfont_has_char): Adjusted for the format change of font-entity.
9401 (ftfont_encode_char, ftfont_text_extents): Likewise.
9402
9403 * ftxfont.c (ftxfont_list): Return a list, not vector.
9404 (ftxfont_open): Return a font-object. Adjusted for the change of
9405 struct font. Get underline_thickness and underline_position from
9406 font property. Don't update dpyinfo->smallest_font_height and
9407 dpyinfo->smallest_char_width.
9408 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
9409 (ftxfont_draw): Adjusted for the change of struct font.
9410
9411 * image.c (image_ascent): Don't include "charset.h". Include
9412 "character.h" and "font.h".
9413
9414 * lisp.h (enum pvec_type): New member PREV_FONT.
9415 (Fassoc_string): EXFUN it.
9416
9417 * print.c: Include font.h.
9418 (print_object): Handle font-related objects.
9419
9420 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
9421 conditionals. Don't check enable_font_backend. Delete all codes
9422 used only when USE_FONT_BACKEND is not defined.
9423 (handle_auto_composed_prop): Do nothing if it->f is not on a
9424 window system. Check how many following characters can be
9425 displayed by the same font.
9426 (calc_pixel_width_or_height): Type of the 4th arg is changed to
9427 'struct font *'.
9428 (get_char_face_and_encoding): Assign the whole encoding task to
9429 the `encode-char' method of a font driver.
9430 (fill_composite_glyph_string): Adjusted for the change of `struct
9431 face' and `struct glyph_string'.
9432 (fill_glyph_string): Likewise.
9433 (get_per_char_metric): Arguments changed.
9434 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
9435 and `struct glyph_string'.
9436 (produce_stretch_glyph, calc_line_height_property)
9437 (x_produce_glyphs): Likewise.
9438
9439 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
9440 conditionals. Don't check enable_font_backend. Delete all codes
9441 used only when USE_FONT_BACKEND is not defined. Use
9442 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
9443 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
9444 (Qp): Extern them.
9445 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
9446 Deleted.
9447 (struct font_name): Deleted.
9448 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
9449 (compare_fonts_by_sort_order): New function.
9450 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
9451 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
9452 Deleted.
9453 (Fx_family_fonts): Use font_list_entities, and sort fonts by
9454 compare_fonts_by_sort_order.
9455 (Fx_font_family_list): Call Ffont_family_list.
9456 (face_numeric_value, face_numeric_weight, face_numeric_slant)
9457 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
9458 (face_symbolic_slant, face_symbolic_swidth)
9459 (split_font_name_into_vector, build_font_name_from_vector)
9460 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
9461 (font_rescale_ratio, split_font_name, build_font_name)
9462 (free_font_names, sort_fonts, x_face_list_fonts)
9463 (face_font_available_p, sorted_font_list, cmp_font_names)
9464 (font_list_1, concat_font_list, font_list, remove_duplicates):
9465 Deleted.
9466 (Fx_list_fonts): Use Ffont_list.
9467 (LFACE_AVGWIDTH): Deleted.
9468 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
9469 by FONTP.
9470 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
9471 (set_lface_from_font_name): Delete it.
9472 (set_lface_from_font): Renamed from
9473 set_lface_from_font_and_fontset. Caller changed. Don't set
9474 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
9475 for face.
9476 (merge_face_vectors): Copy font-spec if necessary.
9477 Clear properties of the font-spec if necessary.
9478 (merge_face_ref): Clear properties of the font-spec if necessary.
9479 (Finternal_set_lisp_face_attribute): Likewise.
9480 (set_font_frame_param): Use font_load_for_lface to load a
9481 font-object, and call Fmodify_frame_parameters with it.
9482 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
9483 font name by Ffont_xlfd_name.
9484 (Finternal_lisp_face_attribute_values): Don't check QCweight,
9485 QCslant, and QCwidth.
9486 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
9487 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
9488 Compare fonts by EQ.
9489 (lookup_non_ascii_face): Deleted.
9490 (face_for_font): The 2nd argument changed.
9491 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
9492 Check atomic font properties by case insensitive.
9493 (realize_non_ascii_face): Set face->overstrike correctly.
9494 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
9495 (dump_realized_face): Get font name from
9496 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
9497
9498 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
9499 conditionals. Don't check enable_font_backend. Delete all codes
9500 used only when USE_FONT_BACKEND is not defined.
9501 (xic_create_xfontset): Original code deleted and renamed from
9502 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
9503 (x_make_gc): Don't set GCFont in GCs.
9504 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
9505 opened by "fixed".
9506 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
9507 find_ccl_program_func, query_font_func, set_frame_fontset_func,
9508 get_font_repertory_func.
9509
9510 * xfont.c: Include <stdlib.h> and "ccl.h".
9511 (struct xfont_info): New structure.
9512 (xfont_query_font): Deleted.
9513 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
9514 moved from xterm.c.
9515 (xfont_driver): Adjusted for the change of struct font_driver.
9516 (compare_font_names): New function.
9517 (xfont_list_pattern): Sort font names case insensitively. Make
9518 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
9519 (xfont_list): Return a list, not vector.
9520 (xfont_match): If the font doesn't have QCname property, generate
9521 a name from the other font properties.
9522 (xfont_open): Return a font-object. Adjusted for the change of
9523 struct font. Get underline_thickness and underline_position from
9524 font property. Don't update dpyinfo->smallest_font_height and
9525 dpyinfo->smallest_char_width.
9526 (xfont_close): Don't free struct font.
9527 (xfont_prepare_face): Adjusted for the change of struct font.
9528 (xfont_done_face): Deleted.
9529 (xfont_has_char): Adjusted for the change of struct font.
9530 (xfont_encode_char, xfont_draw): Likewise.
9531 (xfont_check): New function.
9532
9533 * xftfont.c (xftfont_list): Adjusted for the change of `list'
9534 callback function.
9535 (xftfont_match): Adjusted for the format change of font-entity.
9536 (xftfont_open): Adjusted for the format change of font-entity and
9537 font-object. Adjusted for the change of struct font. Return a
9538 font-object. Don't update dpyinfo->smallest_font_height and
9539 dpyinfo->smallest_char_width.
9540 (xftfont_close): Block input while calling XftFontClose.
9541 (xftfont_prepare_face): Don't block input while calling
9542 xftfont_get_colors. Adjusted for the change of struct font.
9543 (xftfont_shape): Return value of error case fixed.
9544
9545 * xrdb.c (x_load_resources): Don't setup a fontset resource.
9546
9547 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
9548 conditionals.
9549 (FONT_WIDTH): Return (f)->max_width.
9550 (struct x_display_info): Delete member `font'.
9551 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
9552 (x_find_ccl_program, x_get_font_repertory): Delete externs.
9553 (struct x_output): Change type of `font' to `struct font *'.
9554
9555 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
9556 conditionals. Don't check enable_font_backend. Delete all codes
9557 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
9558 (x_per_char_metric, x_encode_char): Deleted.
9559 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
9560 (x_compute_glyph_string_overhangs): Adjusted for the change of
9561 `struct face'.
9562 (x_draw_glyph_string_foreground)
9563 (x_draw_composite_glyph_string_foreground): Likewise.
9564 (x_draw_glyph_string): Likewise. Use font->underline_position and
9565 font->underline_thickness.
9566 (x_new_font): Renamed from x_new_fontset2.
9567 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
9568 (x_check_font): Call `check' method of a font driver.
9569 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
9570 (x_query_font, x_get_font_repertory): Deleted.
9571 (x_find_ccl_program): Renamed and moved to xfont.c.
9572 (x_redisplay_interface): Adjusted for the change of `struct
9573 redisplay_interface'.
9574
9575 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
9576 conditionals. Don't check enable_font_backend. Delete all codes
9577 used only when USE_FONT_BACKEND is not defined. Surround non-used
9578 code by "#ifdef OLD_FONT" and "endif".
9579 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
9580
9581 * w32font.h (struct w32font_info): New member.
9582 (FONT_COMPAT): New macro.
9583 (w32font_open_internal): Prototype adjusted.
9584
9585 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
9586 OLD_FONT" and "endif".
9587
9588 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
9589 conditionals. Don't check enable_font_backend. Delete all codes
9590 used only when USE_FONT_BACKEND is not defined.
9591 (w32font_open): Return a font-object. Make a font-object by
9592 font_make_object. Adjusted for the change of struct w32font_info.
9593 (w32font_close): Don't free struct font. Adjusted for the change
9594 of struct w32font_info.
9595 (w32font_encode_char, w32font_text_extents, w32font_draw):
9596 Adjusted for the change of struct w32font_info.
9597 (w32font_draw): Likewise.
9598 (w32font_list_internal): Return a list, not vector.
9599 (w32font_open_internal): Change the 4th arg to font-object.
9600 Adjusted for the change of struct w32font_info and font-object format.
9601 (add_font_name_to_list): Don't downcase names.
9602 (w32_enumfont_pattern_entity): Make a font-entity by
9603 font_make_entity. Adjusted for the format change of font-entity.
9604 Use FONT_SET_STYLE to set a style-related font property. If a
9605 font is scalable, set avgwidth property to 0. Set font-entity
9606 property by font_put_extra.
9607 (font_matches_spec): Adjusted for the format change of font-entity.
9608 (w32_weight_table, w32_decode_weight): New variables.
9609 (w32_encode_weight): New function.
9610 (fill_in_logfont): Adjusted for the format change of font-spec.
9611 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
9612 weight value.
9613 (w32font_driver): Adjusted for the change of struct font_driver.
9614
9615 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
9616 conditionals. Don't check enable_font_backend. Surround non-used
9617 code by "#ifdef OLD_FONT" and "endif".
9618 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
9619 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
9620
9621 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
9622 conditionals. Don't check enable_font_backend. Delete all codes
9623 used only when USE_FONT_BACKEND is not defined. Surround non-used
9624 code by "#ifdef OLD_FONT" and "endif".
9625
9626 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
9627 (uniscribe_open): Return value changed to font-object.
9628 Adjusted for the format change of font-object.
9629 (uniscribe_otf_capability): Adjusted for the change of struct font.
9630 (add_opentype_font_name_to_list): Don't downcase names.
9631 (uniscribe_font_driver): Adjusted for the change of struct
9632 font_driver.
9633
9634 2008-05-13 Chong Yidong <cyd@stupidchicken.com>
9635
9636 * dispnew.c (update_frame_1): Check if tty output is still valid
9637 before flushing it.
9638
9639 2008-05-13 Jan Djärv <jan.h.d@swipnet.se>
9640
9641 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
9642 to Gtk+ menus.
9643
9644 2008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
9645
9646 * dired.c (file_name_completion): Tweak the code so as to always do it
9647 in a single pass. Tighten the scope of some variables.
9648
9649 * dired.c (Qdefault_directory): New var.
9650 (file_name_completion): Use it instead of Fexpand_file_name.
9651 (syms_of_dired): Initialize it.
9652
9653 2008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
9654
9655 * fileio.c (double_dollars): Remove dead code.
9656
9657 2008-05-10 Eli Zaretskii <eliz@gnu.org>
9658
9659 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
9660 Mention w32-get-true-file-attributes in doc string.
9661
9662 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
9663
9664 2008-05-09 Glenn Morris <rgm@gnu.org>
9665
9666 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
9667 2008-04-23.
9668
9669 2008-05-09 Eli Zaretskii <eliz@gnu.org>
9670
9671 Support for reporting owner and group of each file on MS-Windows:
9672 * dired.c (stat_uname, stat_gname): New functions, with special
9673 implementation for w32.
9674 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
9675
9676 * w32.c: Rename the_passwd_* to dflt_passwd_*.
9677 (dflt_group_name): New static variable.
9678 (dflt_group): Rename from the_group.
9679 (init_user_info): Init dflt_group fields. Get user's group name
9680 from LookupAccountSid.
9681 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
9682 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
9683 New initialization states.
9684 (globals_of_w32): Initialize them to zero. Initialize the default
9685 group name to "None".
9686 (GetFileSecurity_Name): New global var, the name of the function
9687 to call for GetFileSecurity.
9688 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
9689 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
9690 (get_file_security, get_security_descriptor_owner)
9691 (get_security_descriptor_group, is_valid_sid)
9692 (get_file_security_desc, get_rid, get_name_and_id)
9693 (get_file_owner_and_group): New functions.
9694 (stat): Use get_file_security_desc and get_file_owner_and_group to
9695 report the owner and primary group of each file. Don't ignore the
9696 high 32 bits of file's size, now that st_size is 64-bit wide.
9697 Fix test when to get true file attributes.
9698 (init_user_info): Use get_rid instead of equivalent inline code.
9699 (fstat): Don't ignore the high 32 bits of file's size.
9700
9701 2008-05-09 Chong Yidong <cyd@stupidchicken.com>
9702
9703 * image.c (png_load): Use correct bit-depth for setting background
9704 color.
9705
9706 2008-05-08 Eli Zaretskii <eliz@gnu.org>
9707
9708 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
9709 epa-hook.elc.
9710
9711 2008-05-08 Juanma Barranquero <lekktu@gmail.com>
9712
9713 * font.c (Ffont_match_p): Don't use `iff' in docstring.
9714
9715 2008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
9716
9717 * macfns.c (Fx_create_frame): Make a copy of frame parameters
9718 because the original parameters are in pure storage now.
9719 (mac_window): Remove unused params. Update callers.
9720
9721 2008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
9722
9723 * lread.c (substitute_object_recurse): Use lower-level primitives.
9724 Don't signal errors when traversing sub-char-tables.
9725 Don't loop over all the possible characters when traversing char-tables.
9726
9727 * print.c (print_preprocess): Add sub-char-tables to the print-table,
9728 just like we do in print.c.
9729
9730 2008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
9731
9732 * minibuf.c (Ftry_completion): Remove code left over from when we used
9733 scmp instead of Fcompare_strings.
9734
9735 2008-05-04 Juanma Barranquero <lekktu@gmail.com>
9736
9737 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
9738
9739 2008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9740
9741 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
9742 Create bitmap context in native byte order.
9743
9744 * macterm.c (XDrawLine)
9745 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
9746 context in native byte order.
9747
9748 2008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9749
9750 * config.in: Regenerate.
9751
9752 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
9753 New definitions for Image I/O support.
9754 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
9755 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
9756 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
9757 (mac_data_provider_release_data, image_load_image_io)
9758 [USE_MAC_IMAGE_IO]: New functions.
9759 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
9760 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
9761 (init_image_func_pointer) [MAC_OSX]: Remove function.
9762 (image_load_quartz2d) [MAC_OSX]: Check availability of
9763 CGImageCreateWithPNGDataProvider at compile time.
9764 Use lowercase `false' for boolean constant.
9765 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
9766 Use image_load_image_io.
9767 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
9768 Don't check MyCGImageCreateWithPNGDataProvider.
9769 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
9770 Don't call init_image_func_pointer.
9771
9772 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
9773
9774 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
9775 Make variable non-static.
9776 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
9777 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
9778
9779 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
9780 (RED_FROM_ULONG): Mask off higher bits.
9781 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
9782
9783 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
9784 Include AvailabilityMacros.h.
9785 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
9786 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
9787
9788 2008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
9789
9790 * chartab.c (Fset_char_table_range): If range is t, really set all
9791 chars to that value.
9792
9793 2008-05-03 Eli Zaretskii <eliz@gnu.org>
9794
9795 * dired.c (Ffile_attributes): Don't allow the device number become
9796 negative.
9797
9798 2008-05-02 Daiki Ueno <ueno@unixuser.org>
9799
9800 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
9801
9802 2008-05-02 Juri Linkov <juri@jurta.org>
9803
9804 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
9805 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
9806 DEFAULT argument as a list of default values in docstrings.
9807
9808 2008-05-01 Chong Yidong <cyd@stupidchicken.com>
9809
9810 * puresize.h (BASE_PURESIZE): Increase to 1210000.
9811
9812 2008-05-01 Martin Rudalics <rudalics@gmx.at>
9813
9814 * dispnew.c (change_frame_size_1): Preserve small windows when
9815 shrinking frames by calling set_window_height|width with third
9816 arg 2.
9817
9818 * window.h (struct window): Replace field too_small_ok by field
9819 resize_proportionally.
9820
9821 * window.c (make_window): Initialize resize_proportionally.
9822 (enlarge_window): Temporarily set resize_proportionally to make
9823 sure that shrink_windows does scale the window proportionally.
9824 (shrink_windows): When window has resize_proportionally set try
9825 to shrink it proportionally by stealing from other windows.
9826 (struct saved_window, Fset_window_configuration)
9827 (compare_window_configurations): Handle resize_proportionally.
9828 (WINDOW_TOTAL_SIZE): New macro.
9829 (window_min_size, shrink_windows, size_window): Use it.
9830 (check_min_window_sizes): Remove. Invalid values of
9831 window-min-height|width are handled by window_min_size_2 now.
9832 (size_window, Fsplit_window, enlarge_window)
9833 (adjust_window_trailing_edge, grow_mini_window): Don't call
9834 check_min_window_sizes.
9835 (window_min_size_2, window_min_size_1, window_min_size):
9836 New argument safe_p for retrieving "safe" minimum sizes.
9837 (Fdisplay_buffer, Fsplit_window, enlarge_window)
9838 (adjust_window_trailing_edge, grow_mini_window):
9839 Adjust arguments of window_min_size... functions.
9840 (shrink_windows): Argument min_size removed. New argument
9841 safe_p allows shrinking windows to their safe minimum sizes.
9842 Calculate minimum size and decide whether a window shall be
9843 deleted for each window individually.
9844 (size_window): When nodelete_p equals 2, tell shrink_windows to
9845 delete windows only if their new minimum size is no more safe.
9846 (shrink_window_lowest_first): Call window_min_size_1 to make
9847 sure to preserve modeline of bottom-most window when resizing
9848 the minibuffer.
9849 (Fset_window_configuration, Fcurrent_window_configuration)
9850 (compare_window_configurations): Do not handle
9851 window-min-height|width any more.
9852 (syms_of_window): Clarify window-min-height|width doc-strings.
9853
9854 2008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
9855
9856 * dired.c (file_name_completion): Fix up the encoding/decoding issue
9857 some more. Copy some of the code from Ftry_completions.
9858 Remove special case code that dates back to initial revision when the
9859 slash was only added when necessary and that can't trigger nowadays.
9860
9861 2008-04-27 Kenichi Handa <handa@m17n.org>
9862
9863 * font.c (font_prop_validate): Signal `error' instead of `font'.
9864
9865 2008-04-29 Jason Rumney <jasonr@gnu.org>
9866
9867 * w32fns.c (Fw32_battery_status): New defun.
9868 (syms_of_w32fns): Defsubr it.
9869
9870 2008-04-28 Andreas Schwab <schwab@suse.de>
9871
9872 * dired.c (file_name_completion): Fix another mixing of encoded
9873 and decoded names.
9874
9875 2008-04-28 Juanma Barranquero <lekktu@gmail.com>
9876
9877 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
9878
9879 2008-04-27 Juanma Barranquero <lekktu@gmail.com>
9880
9881 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
9882
9883 2008-04-27 Andreas Schwab <schwab@suse.de>
9884
9885 * dired.c (file_name_completion): Fix inappropriate mixing of
9886 encoded and decoded names.
9887
9888 * xterm.c (XTread_socket): Fix use of uninitialized variable.
9889
9890 * puresize.h (BASE_PURESIZE): Increase to 1200000.
9891
9892 2008-04-26 Eli Zaretskii <eliz@gnu.org>
9893
9894 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
9895 2008-03-31, it's not needed anymore with `struct stat' definition
9896 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
9897 for the same reasons.
9898
9899 2008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
9900
9901 * m/sparc.h: Additional redefinitions for GNU/Linux.
9902
9903 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9904
9905 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
9906 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
9907 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
9908 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
9909 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
9910 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
9911 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
9912 Likewise.
9913
9914 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
9915 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
9916 (mac_ax_number_of_characters): Add externs.
9917 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
9918 [USE_MAC_TSM]: Likewise.
9919 (mac_handle_text_input_event) [MAC_OSX]:
9920 Handle kEventTextInputOffsetToPos for no active input area case.
9921 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
9922 (mac_handle_document_access_event)
9923 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
9924 (install_application_handler) [MAC_OSX]: Register handlers for
9925 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
9926 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
9927 Register mac_handle_document_access_event.
9928
9929 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
9930 Make functions non-static.
9931
9932 2008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
9933
9934 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
9935 (read_file_name_completion_ignore_case, insert_default_directory)
9936 (Qdefault_directory): Move to minibuffer.el.
9937 (Fread_file_name): Call the new `read-file-name' instead.
9938
9939 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9940
9941 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
9942 Make function non-static.
9943 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
9944 Remove function.
9945 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
9946 Move to mactoolbox.c.
9947 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
9948
9949 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
9950 (mac_rect_make): New macro.
9951
9952 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
9953 instead of float.
9954 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
9955 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
9956 (XSetBackground) [USE_CG_DRAWING]: Likewise.
9957 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
9958 CGRectMake.
9959 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
9960 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
9961 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
9962 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
9963 instead of WindowRef in argument type.
9964 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
9965 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
9966 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
9967 instead of DISPLAY. All uses changed.
9968 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
9969 (x_calc_absolute_position): Simplify so as not to use
9970 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
9971
9972 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
9973 instead of WindowRef in argument type.
9974 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
9975 [TARGET_API_MAC_CARBON]: Remove externs.
9976 (create_apple_event, mac_event_parameters_to_lisp)
9977 [TARGET_API_MAC_CARBON]: Add externs.
9978
9979 * mactoolbox.c (Vmac_ts_script_language_on_focus)
9980 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
9981 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
9982 is clicked.
9983 (x_activate_menubar): Remove extern for saved_menu_event_location.
9984 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
9985 Move from mac.c.
9986
9987 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9988
9989 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
9990 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
9991
9992 2008-04-23 Jason Rumney <jasonr@gnu.org>
9993
9994 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
9995 attributes only for local files.
9996
9997 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
9998 default to Qlocal.
9999
10000 2008-04-22 Juri Linkov <juri@jurta.org>
10001
10002 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
10003 read-buffer-to-switch instead of using the letter "B".
10004
10005 2008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
10006
10007 * fileio.c (Qdefault_directory): New variable.
10008 (Fread_file_name): Use it to pass `dir' to the completion functions.
10009
10010 2008-04-20 Chong Yidong <cyd@stupidchicken.com>
10011
10012 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
10013
10014 2008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
10015
10016 * keyboard.c (Vpre_help_message): Remove.
10017 (show_help_echo): Remove default C code.
10018
10019 * dired.c (directory_files_internal, file_name_completion):
10020 Only call ENCODE_FILE if the string is indeed decoded.
10021
10022 2008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
10023
10024 * Makefile.in (TOOLKIT_DEFINES): Remove.
10025 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
10026
10027 2008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10028
10029 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
10030 (mactoolbox.o): New target.
10031
10032 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
10033 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
10034
10035 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
10036 Use mac_set_frame_window_background instead of XSetWindowBackground.
10037 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
10038 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
10039 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
10040 instead of SetWindowTitleWithCFString.
10041 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
10042 Move function to mactoolbox.c.
10043 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
10044 Use mac_set_window_modified instead of SetWindowModified.
10045 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
10046 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
10047 (Fx_focus_frame): Use mac_front_non_floating_window instead of
10048 FrontNonFloatingWindow. Use mac_activate_window instead of
10049 ActivateWindow. Use mac_active_non_floating_window instead of
10050 ActiveNonFloatingWindow.
10051 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
10052 Use mac_show_hourglass and mac_hide_hourglass.
10053 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
10054 instead of GetGlobalMouse.
10055 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
10056 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
10057 Use mac_bring_window_to_front instead of BringToFront.
10058 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
10059 mactoolbox.c.
10060 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
10061 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
10062 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
10063 mactoolbox.c.
10064
10065 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
10066 (XtPointer): Move typedef from macmenu.c.
10067 (enum button_type): Move enum from macmenu.c.
10068 (widget_value): Move typedef from macmenu.c.
10069 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
10070 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
10071 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
10072 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
10073 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
10074 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
10075 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
10076 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
10077 (Selection): Move typedef from macselect.c.
10078 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
10079 macterm.c.
10080 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
10081 (mac_is_window_collapsed, mac_bring_window_to_front)
10082 (mac_send_window_behind, mac_hide_window, mac_show_window)
10083 (mac_collapse_window, mac_front_non_floating_window)
10084 (mac_active_non_floating_window, mac_activate_window)
10085 (mac_move_window_structure, mac_move_window, mac_size_window)
10086 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
10087
10088 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
10089 (enum mac_menu_kind): Move enum to mactoolbox.c.
10090 (min_menu_id): Move variable to mactoolbox.c.
10091 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
10092 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
10093 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
10094 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
10095 [TARGET_API_MAC_CARBON]: Likewise.
10096 (XtPointer): Move typedef to macgui.h.
10097 (enum button_type): Move enum to macgui.h.
10098 (widget_value): Move typedef to macgui.h.
10099 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
10100 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
10101 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
10102 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
10103 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
10104 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
10105 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
10106 (popup_activated_flag): Make variable non-static.
10107 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
10108 (add_menu_item, fill_menu, dispose_menus):
10109 Move functions to mactoolbox.c.
10110 (restore_show_help_function, menu_target_item_handler)
10111 (install_menu_target_item_handler, mac_handle_dialog_event)
10112 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
10113 [TARGET_API_MAC_CARBON]: Likewise.
10114 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
10115 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
10116 (find_and_call_menu_selection, name_is_separator): Make function
10117 non-static.
10118 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
10119 to mactoolbox.c.
10120 (set_frame_menubar): Don't call install_menu_quit_handler.
10121 (menu_item_selection): New variable.
10122 (mac_menu_show): Use create_and_show_popup_menu.
10123 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
10124 selection but set variable menu_item_selection. All uses changed.
10125 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
10126 Call install_menu_quit_handler. Move to mactoolbox.c.
10127
10128 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
10129 (Selection): Move typedef to macgui.h.
10130 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
10131 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
10132 Make variables non-static.
10133 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
10134 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
10135 Make functions non-static.
10136 (Vmac_service_selection) [MAC_OSX]: Likewise.
10137 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
10138 (mac_valid_selection_target_p, mac_clear_selection)
10139 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
10140 (mac_put_selection_value, mac_selection_has_target_p)
10141 (mac_get_selection_value, mac_get_selection_target_list)
10142 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
10143 Move functions to mactoolbox.c.
10144 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
10145 Likewise.
10146 (copy_scrap_flavor_data, mac_handle_service_event)
10147 (install_service_handler) [MAC_OSX]: Likewise.
10148 (syms_of_macselect) <Vmac_dnd_known_types>:
10149 Use mac_dnd_default_known_types.
10150
10151 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
10152 Move to mactoolbox.c.
10153 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
10154 (Fx_selection_owner_p): Add EXFUN.
10155 (install_window_handler, remove_window_handler, XSetWindowBackground):
10156 Remove externs.
10157 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
10158 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
10159 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
10160 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
10161 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
10162 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
10163 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
10164 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
10165 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
10166 (create_and_show_popup_menu, mac_get_selection_from_symbol)
10167 (mac_valid_selection_target_p, mac_clear_selection)
10168 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
10169 (mac_put_selection_value, mac_selection_has_target_p)
10170 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
10171 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
10172 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
10173 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
10174 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
10175 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
10176 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
10177 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
10178 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
10179
10180 * mactoolbox.c: New file.
10181
10182 2008-04-18 Jason Rumney <jasonr@gnu.org>
10183
10184 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
10185
10186 2008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
10187
10188 * character.c (Fmultibyte_char_to_unibyte):
10189 Return latin1 chars unchanged.
10190
10191 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
10192 relocated if it points to `name'.
10193
10194 2008-04-17 Kenichi Handa <handa@m17n.org>
10195
10196 * data.c (Faset): Allow setting a multibyte character in an
10197 ASCII-only unibyte string.
10198
10199 * lisp.h (STRING_SET_MULTIBYTE): New macro.
10200
10201 2008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
10202
10203 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
10204 done in config.h.
10205
10206 2008-04-16 Juanma Barranquero <lekktu@gmail.com>
10207
10208 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
10209 (Fchar_direction): Add usage in the docstring.
10210
10211 2008-04-15 Chong Yidong <cyd@stupidchicken.com>
10212
10213 * keyboard.c (read_key_sequence): Remove always-true checks.
10214
10215 2008-04-14 Jason Rumney <jasonr@gnu.org>
10216
10217 * w32font.c (w32font_open_internal): Set max_bounds.descent in
10218 compatibility struct, for better underline positioning.
10219
10220 2008-04-13 David Hansen <david.hansen@gmx.net>
10221
10222 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
10223 string.
10224
10225 2008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
10226
10227 * m/hp800.h (XUINT, XSET): Remove.
10228
10229 2008-04-12 Juanma Barranquero <lekktu@gmail.com>
10230
10231 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
10232 previous change.
10233
10234 2008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
10235
10236 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
10237 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
10238
10239 2008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
10240
10241 * keymap.h (map_keymap_canonical): Declare.
10242 * xmenu.c (single_keymap_panes): Use it.
10243
10244 2008-04-11 Glenn Morris <rgm@gnu.org>
10245
10246 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
10247 set the target's value to that of the alias.
10248
10249 2008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
10250
10251 * term.c (set_tty_color_mode): Left over typo.
10252
10253 2008-04-10 Michael Albinus <michael.albinus@gmx.de>
10254
10255 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
10256 only after check for file name handler functions. Signal, when
10257 native functionality is not supported.
10258 (syms_of_fileio): Declare it unconditionally.
10259
10260 2008-04-10 Jason Rumney <jasonr@gnu.org>
10261
10262 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
10263 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
10264
10265 * w32.c (logon_network_drive): Also logon to remote drives that
10266 are mapped to drive letters.
10267
10268 2008-04-10 Glenn Morris <rgm@gnu.org>
10269
10270 * xdisp.c (truncate-partial-width-windows): Doc fix.
10271
10272 2008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
10273
10274 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
10275 Move functions to minibuffer.el.
10276 (syms_of_fileio): Don't declare them.
10277
10278 2008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
10279
10280 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
10281 (syms_of_minibuf): Remove its initialization.
10282
10283 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
10284
10285 2008-04-09 Juanma Barranquero <lekktu@gmail.com>
10286
10287 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
10288
10289 2008-04-09 Jason Rumney <jasonr@gnu.org>
10290
10291 * makefile.w32-in (distclean): Delete makefile too.
10292 (maintainer-clean): New target.
10293
10294 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
10295
10296 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
10297 for new font backend and composite cases.
10298
10299 2008-04-09 Jan Djärv <jan.h.d@swipnet.se>
10300
10301 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
10302 Most of the code moved to run_timers.
10303 (do_pending_atimers): Call run_timers.
10304 (run_timers): New function.
10305
10306 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
10307 run atimers.
10308
10309 * process.c (wait_reading_process_output): The same as above.
10310
10311 2008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
10312
10313 * minibuf.c (last_exact_completion): Remove variable.
10314 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
10315 (complete_and_exit_1, complete_and_exit_2)
10316 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
10317 (Fdisplay_completion_list, display_completion_list_1)
10318 (Fminibuffer_completion_help, Fself_insert_and_exit)
10319 (Fexit_minibuffer, Fminibuffer_message): Move functions to
10320 minibuffer.el.
10321 (syms_of_minibuf): Remove corresponding initializations.
10322
10323 * keyboard.c (Qdeactivate_mark): New var.
10324 (command_loop_1): Use it to call `deactivate-mark'.
10325 (syms_of_keyboard): Initialize it.
10326
10327 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
10328 to another frame.
10329 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
10330 Don't call set_tty_color_mode.
10331 (store_frame_param): Reset previous_frame rather than call
10332 set_tty_color_mode.
10333 * term.c (set_tty_color_mode): Rewrite.
10334 * dispextern.h (set_tty_color_mode): New type.
10335 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
10336
10337 2008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
10338
10339 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
10340 for generic chars, which do not exist any more in emacs-unicode.
10341
10342 2008-04-08 Michael Albinus <michael.albinus@gmx.de>
10343
10344 * coding.c (detect_coding_emacs_mule)
10345 (Ffind_operation_coding_system): Fix typo.
10346
10347 2008-04-08 Jason Rumney <jasonr@gnu.org>
10348
10349 * w32uniscribe.c (SNAME): Extract only symbol name.
10350
10351 * w32font.h (struct w32_metric_cache): New struct.
10352 (w32font_info): Use it.
10353 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
10354 (CACHE_BLOCKSIZE): New constants.
10355
10356 * w32font.c (Qja, Qko, Qzh): New symbols.
10357 (syms_of_w32font): Initialise them.
10358 (font_matches_spec): Use them to filter by language.
10359 (recompute_cached_metrics): Remove function.
10360 (compute_metrics, clear_cached_metrics): New functions.
10361 (w32font_encode_char): Use them to manage metric cache.
10362 (w32font_text_extents): Cache metrics for all glyphs on demand.
10363 Delay converting glyph indices to WORD until needed.
10364 (w32font_open_internal): Initialize metric cache to empty.
10365 (registry_to_w32_charset): Charset should always be a symbol.
10366 (fill_in_logfont, list_all_matching_fonts): Family should
10367 always be a symbol.
10368
10369 2008-04-06 Jason Rumney <jasonr@gnu.org>
10370
10371 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
10372 Give up if glyph indices not supported. Use uniscribe obtained
10373 ABC widths for individual metrics. Map glyph clusters back to
10374 characters using fClusterStart flag. Return number of glyphs
10375 produced, not chars processed.
10376 (uniscribe_shape): Map char at FROM to current glyph.
10377
10378 2008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10379
10380 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
10381 Use SetMenuItemHierarchicalMenu.
10382
10383 2008-04-05 Jason Rumney <jasonr@gnu.org>
10384
10385 * image.c (pbm_load): Allow color values up to 65535.
10386 Throw an error if max_color_idx is outside the supported range.
10387 Report an error when image size is invalid.
10388 Read two bytes at a time when raw images have max_color_idx above 255.
10389
10390 2008-04-05 Eli Zaretskii <eliz@gnu.org>
10391
10392 * w32.c (readdir): If FindFirstFile/FindNextFile return in
10393 cFileName a file name that includes `?' characters, use the 8+3
10394 alias in cAlternateFileName instead.
10395
10396 2008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
10397
10398 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
10399 append "CCL: Quitted" when the CCL program is quitted.
10400 (setup_ccl_program): Initialize ccl->quit_silently to zero.
10401
10402 * ccl.h (struct ccl_program): New member quit_silently.
10403
10404 2008-04-05 Chong Yidong <cyd@stupidchicken.com>
10405
10406 * search.c (compile_pattern_1): Treat non-nil and non-string of
10407 search-spaces-regexp as nil.
10408
10409 * minibuf.c (Fassoc_string): Tweak docstring.
10410
10411 2008-04-05 Eli Zaretskii <eliz@gnu.org>
10412
10413 * dired.c (Ffile_attributes): Support inode numbers wider than 32
10414 bits. Remove ugly WINDOWSNT-specific kludge introduced on
10415 2008-03-14 to force inode be positive.
10416
10417 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
10418 _S_* ones, since we now use our own sys/stat.h.
10419 (stat, fstat): Don't mangle the inode number.
10420 (init_user_info): Don't restrict UID and GID to 0-60000 range.
10421
10422 2008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
10423
10424 * frame.h (struct frame): Give one more bit to `visible' since we use
10425 values larger than 1 to indicate obscured frames on ttys.
10426
10427 * keymap.c (Qkeymap_canonicalize): New var.
10428 (Fmap_keymap_internal): New fun.
10429 (describe_map): Use keymap-canonicalize.
10430
10431 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
10432 (Fundo_boundary): Set them.
10433 (syms_of_undo): Initialize them.
10434 (record_point): Use them instead of last_point_position*.
10435 (last_undo_buffer): Change type.
10436
10437 2008-04-04 Jason Rumney <jasonr@gnu.org>
10438
10439 * w32font.c (w32font_text_extents): Use font's ascent and descent.
10440 (recompute_cached_metrics): Don't set ascent and descent per char.
10441
10442 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
10443 (uniscribe_check_otf): Add GC protection before consing.
10444 Rearrange loop for counting features.
10445
10446 2008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
10447
10448 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
10449 buffer with byte-size of source buffer.
10450
10451 2008-04-03 Chong Yidong <cyd@stupidchicken.com>
10452
10453 * callint.c (Fcall_interactively): Handle temporary region even
10454 when shift-select-mode is off.
10455
10456 2008-04-03 Jason Rumney <jasonr@gnu.org>
10457
10458 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
10459
10460 2008-04-03 Kenichi Handa <handa@m17n.org>
10461
10462 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
10463 (CATEGORY_MASK_UTF_16): Likewise.
10464 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
10465 binary file.
10466 (detect_coding): Add null-byte detection for a binary file.
10467 (detect_coding_system): Likewise.
10468
10469 2008-04-03 Jason Rumney <jasonr@gnu.org>
10470
10471 * w32uniscribe.c: New file.
10472
10473 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
10474
10475 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
10476
10477 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
10478 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
10479 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
10480 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
10481 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
10482 (Qphonetic): New symbols.
10483 (syms_of_w32font): Initialize them.
10484 (font_supported_scripts): Use them.
10485 (w32font_list_family): List all charsets.
10486 (w32font_text_extents, recompute_cached_metrics): Fix metric
10487 calculations.
10488 (w32_enumfont_pattern_entity): Make full_type a DWORD.
10489 Give opentype fonts their own format.
10490 (font_matches_spec): New arguments backend and logfont.
10491 Handle :otf spec for uniscribe backend.
10492 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
10493 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
10494
10495 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
10496 font backend.
10497 (globals_of_w32fns): Initialize uniscribe font backend.
10498
10499 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
10500 dependencies.
10501 (w32uniscribe.$(O)): New file to build.
10502 (FONT_OBJ): Include w32uniscribe.$(O).
10503 (LIBS): Add uniscribe libraries.
10504
10505 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
10506
10507 2008-04-02 Chong Yidong <cyd@stupidchicken.com>
10508
10509 * callint.c (Vshift_select_mode): New var.
10510 (Finteractive): Document new ^ spec.
10511 (Fcall_interactively): Call handle-shift-selection if the ^ spec
10512 is present.
10513
10514 * keyboard.c (Vthis_command_keys_shift_translated): New var.
10515 (command_loop_1): Avoid running the direct display versions of
10516 forward-char and backward-char if shift-selection may occur.
10517 (read_key_sequence): Set Vthis_command_keys_shift_translated if
10518 shift-translation takes place.
10519
10520 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
10521 avoid clobbering by define-minor-mode.
10522
10523 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
10524 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
10525
10526 * syntax.c (Fforward_word): Add ^ interactive spec.
10527
10528 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
10529 (Fscroll_right): Add ^ interactive spec.
10530
10531 2008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
10532
10533 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
10534
10535 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
10536
10537 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
10538
10539 2008-03-31 Juri Linkov <juri@jurta.org>
10540
10541 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
10542
10543 2008-03-30 Jan Djärv <jan.h.d@swipnet.se>
10544
10545 * gtkutil.c (xg_set_geometry): Fix indentation.
10546 (xg_resize_outer_widget): Remove.
10547 (x_wm_size_hint_off): Fix indentation.
10548 (xg_frame_set_char_size): Call flush_and_sync after
10549 gtk_window_resize.
10550 (x_wm_set_size_hint): Pass NULL as geometry window to
10551 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
10552 Add menu bar and tool bar height to base height.
10553 (xg_update_frame_menubar, free_frame_menubar)
10554 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
10555 (update_frame_tool_bar, free_frame_tool_bar):
10556 Change xg_resize_outer_widget to xg_frame_set_char_size.
10557
10558 2008-03-30 Michael Albinus <michael.albinus@gmx.de>
10559
10560 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
10561 (Fdbus_call_method): New parameter TIMEOUT.
10562 (dbus-send-signal): Optimize UNGCPRO call.
10563
10564 2008-03-29 Juri Linkov <juri@jurta.org>
10565
10566 * window.c (Fdisplay_buffer): Move call to
10567 Vsplit_window_preferred_function out of conditions that check
10568 if window is eligible for vertical splitting.
10569 When Vsplit_window_preferred_function is non-nil, call it and use
10570 its non-nil return value as window. Otherwise, continue doing
10571 vertical splitting using Fsplit_window with arg horflag=nil.
10572 (syms_of_window) <Vsplit_window_preferred_function>: Change the
10573 default value from `split-window' to nil.
10574
10575 2008-03-29 Juri Linkov <juri@jurta.org>
10576
10577 * callint.c (Fcall_interactively): Revert 2008-03-16 change
10578 for interactive code letters 'b' and 'B'.
10579
10580 2008-03-29 Eli Zaretskii <eliz@gnu.org>
10581
10582 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
10583 multibyte string.
10584
10585 2008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
10586
10587 * keyboard.c (pending_funcalls): New var.
10588 (timer_check): Run it.
10589 (syms_of_keyboard): Initialize it.
10590 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
10591 (Vdelete_terminal_functions): New vars.
10592 (syms_of_terminal): Initialize them.
10593 (Fdelete_terminal): Run delete-terminal-functions.
10594 * xdisp.c (safe_eval): Rewrite.
10595 (safe_call2): New fun.
10596 * frame.c (Qdelete_frame_functions): New var.
10597 (syms_of_frame): Initialize it.
10598 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
10599 * lisp.h (safe_call2, pending_funcalls): Declare.
10600
10601 2008-03-28 Andreas Schwab <schwab@suse.de>
10602
10603 * indent.c (Fmove_to_column): Move declaration before statements.
10604
10605 2008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
10606
10607 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
10608 (struct frame): Use bit fields for boolean vars.
10609
10610 * process.c (server_accept_connection): Simplify naming.
10611 (emacs_get_tty_pgrp): Use SDATA.
10612
10613 * coding.c (decode_coding_object): Fix last change.
10614
10615 2008-03-27 Jason Rumney <jasonr@gnu.org>
10616
10617 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
10618
10619 2008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
10620
10621 * charset.c (Fdefine_charset_internal): Change the way of
10622 registering charsets in Vcharset_order_list.
10623 (syms_of_charset): Make the charset `eight-bit' supplementary.
10624
10625 2008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
10626
10627 * regex.c (EXTEND_BUFFER): Change order of pointer addition
10628 operations, to avoid having the difference between pointers
10629 overflow.
10630
10631 2008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
10632
10633 * indent.c (check_display_width): New fun.
10634 (scan_for_column): Use it.
10635
10636 * data.c (syms_of_data): Mark most-positive-fixnum and
10637 most-negative-fixnum as constants.
10638
10639 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
10640
10641 * indent.c (scan_for_column): Extract from current_column_1.
10642 Merge with the same code from Fmove_to_column.
10643 (current_column_1, Fmove_to_column): Use it.
10644
10645 2008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
10646
10647 * keymap.c (map_keymap_internal): New fun.
10648 (map_keymap): Use it.
10649 (Fmap_keymap_internal): New fun.
10650 (Fmap_keymap): Remove left-out test from before make_save_value.
10651
10652 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
10653
10654 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
10655 Use XCAR/XCDR.
10656
10657 * process.h (struct Lisp_Process): Remove filter_multibyte.
10658 * process.c (QCfilter_multibyte): Remove.
10659 (setup_process_coding_systems): Don't use filter_multibyte.
10660 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
10661 (read_process_output): Don't adjust multibyteness to filter_multibyte.
10662 (Fset_process_filter_multibyte): Change the coding-system to
10663 approximate the previous behavior.
10664 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
10665 coding-system.
10666
10667 * coding.c (decode_coding_object): When not decoding into a buffer,
10668 obey the coding system's preference of (uni|multi)byte.
10669
10670 2008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
10671
10672 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
10673 every char is changed and has a different byte-length.
10674 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
10675 Fix int -> EMACS_INT.
10676
10677 2008-03-23 David Hansen <david.hansen@gmx.net>
10678
10679 * dbusbind.c (xd_read_message): Remove extra copying of message
10680 strings. Check for NULL `interface' or `member'.
10681
10682 2008-03-22 Eli Zaretskii <eliz@gnu.org>
10683
10684 * w32.c (readdir): If FindFirstFile/FindNextFile return in
10685 cFileName a file name that includes `?' characters, use the 8+3
10686 alias in cAlternateFileName instead.
10687
10688 2008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
10689
10690 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
10691
10692 2008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
10693
10694 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
10695 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
10696 work on current_buffer only instead (that was already the case
10697 for some of the code anyway).
10698 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
10699 (temp_set_point, temp_set_point_both): Use EMACS_INT.
10700 (SET_PT, SET_PT_BOTH): Adjust.
10701 * intervals.h (set_point, temp_set_point, set_point_both)
10702 (temp_set_point_both): Remove redundant declarations.
10703
10704 2008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
10705
10706 * fileio.c (Finsert_file_contents):
10707 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
10708 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
10709 when buffer != current_buffer anyway.
10710
10711 2008-03-20 Andreas Schwab <schwab@suse.de>
10712
10713 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
10714 as default.
10715
10716 2008-03-19 Jason Rumney <jasonr@gnu.org>
10717
10718 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
10719 (syms_of_w32fns): Initialize them.
10720 (HOURGLASS_ID): New constant.
10721 (x_window_to_frame): Don't check hourglass_window.
10722 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
10723 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
10724 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
10725 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
10726 Only change the cursor if hourglass is not active.
10727 (Fx_create_frame): Initialize frame's current_cursor.
10728 (hourglass_atimer): Remove.
10729 (hourglass_started): New function.
10730 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
10731 (show_hourglass): Adapt to w32, changing argument to frame.
10732
10733 * w32term.h (struct w32_output): Remove hourglass_window.
10734 Add current_cursor.
10735
10736 * eval.c (call_debugger, Fsignal):
10737 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
10738 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
10739 (Fexecute_extended_command, cancel_hourglass_unwind):
10740 * minibuf.c (read_minibuf):
10741 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
10742
10743 2008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
10744
10745 * window.c (run_funs): New fun.
10746 (run_window_configuration_change_hook): Use it to run the buffer-local
10747 and the global part of the hook.
10748
10749 * xdisp.c (format_mode_line_unwind_data): Add window argument.
10750 (unwind_format_mode_line): Restore selected window.
10751 (x_consider_frame_title, Fformat_mode_line): Set selected window.
10752
10753 2008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
10754
10755 * editfns.c (Fchar_equal): Check they are valid characters.
10756
10757 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
10758
10759 2008-03-17 Andreas Schwab <schwab@suse.de>
10760
10761 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
10762 against a charset.
10763
10764 * lisp.h (Fbuffer_list): Declare.
10765
10766 2008-03-17 Jan Djärv <jan.h.d@swipnet.se>
10767
10768 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
10769 handlebox_widget is != 0.
10770
10771 2008-03-16 Juri Linkov <juri@jurta.org>
10772
10773 * callint.c (Fcall_interactively): For interactive code letters
10774 'b' and 'B' put the buffer list into the list of default "future"
10775 values of the minibuffer.
10776
10777 2008-03-16 Andreas Schwab <schwab@suse.de>
10778
10779 * keyboard.c (read_key_sequence): Fix downcasing of letters with
10780 modifiers.
10781
10782 * regex.c (re_match_2_internal): Correct matching of a charset
10783 against latin-1 characters.
10784
10785 2008-03-16 Kenichi Handa <handa@m17n.org>
10786
10787 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
10788 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
10789 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
10790 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
10791 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
10792 CHAR_STRING_ADVANCE.
10793 (produce_chars): Fix for the case that the source and the
10794 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
10795 instead of CHAR_STRING_ADVANCE.
10796 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
10797 STRING_CHAR_ADVANCE.
10798
10799 2008-03-15 Andreas Schwab <schwab@suse.de>
10800
10801 * regex.c (re_match_2_internal): Correct matching of eight bit
10802 characters in unibyte strings.
10803
10804 2008-03-15 Martin Rudalics <rudalics@gmx.at>
10805
10806 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
10807 at end of range when it coincides with the end of the buffer.
10808
10809 2008-03-14 Eli Zaretskii <eliz@gnu.org>
10810
10811 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
10812
10813 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
10814
10815 2008-03-14 Jason Rumney <jasonr@gnu.org>
10816
10817 * editfns.c (initial_tz): New variable.
10818 (syms_of_editfns): Initialize it.
10819 (Fset_time_zone_rule): Set it when first called.
10820 Use it when TZSTRING is nil.
10821
10822 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
10823 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
10824 (monitor_from_point_fn, get_monitor_info_fn): New globals.
10825 (globals_of_w32fns): Initialize them.
10826 (compute_tip_xy): Use them to position tooltips.
10827
10828 2008-03-14 Glenn Morris <rgm@gnu.org>
10829
10830 * emacs.c (main): Revert previous change.
10831 (standard_args): Revert -internal-script back to -scriptload,
10832 and remove the long-option form.
10833
10834 2008-03-13 Glenn Morris <rgm@gnu.org>
10835
10836 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
10837 Remove option -enable-font-backend.
10838
10839 2008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
10840
10841 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
10842
10843 2008-03-11 Jan Djärv <jan.h.d@swipnet.se>
10844
10845 * xterm.c (x_connection_closed): For GTK: If this is the last
10846 terminal just exit without closing the display.
10847
10848 2008-03-11 Jason Rumney <jasonr@gnu.org>
10849
10850 * w32font.c (w32font_full_name): Use floor to round.
10851
10852 2008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
10853
10854 * sound.c (alsa_configure): Declare vol at beginning of block.
10855
10856 * fontset.c (Ffontset_info): Remove extra semicolon.
10857
10858 2008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
10859
10860 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
10861 size of resulting string.
10862
10863 2008-03-10 Jason Rumney <jasonr@gnu.org>
10864
10865 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
10866
10867 2008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10868
10869 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
10870 Don't pretend as if characters with display property haven't been
10871 consumed for string-replacing-string case.
10872
10873 2008-03-08 Kim F. Storm <storm@cua.dk>
10874
10875 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
10876 (get_next_display_element, next_element_from_string)
10877 (next_element_from_ellipsis, next_element_from_buffer): Use it.
10878
10879 2008-03-08 Andreas Schwab <schwab@suse.de>
10880
10881 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
10882
10883 2008-03-06 Jason Rumney <jasonr@gnu.org>
10884
10885 * w32font.c (w32_registry): Take font_type argument. Use ANSI
10886 when charset not specified. Only translate ANSI to unicode when
10887 font_type is truetype.
10888 (w32font_coverage_ok): New function.
10889 (add_font_entity_to_list): Use it to filter unsuitable fonts.
10890
10891 2008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
10892
10893 * lread.c (Fread_char): Resolve modifiers.
10894 (Fread_char_exclusive): Likewise.
10895
10896 * character.c (char_resolve_modifier_mask): New function.
10897 (char_string): Use char_resolve_modifier_mask.
10898 (Fchar_resolve_modifiers): New function.
10899 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
10900 function.
10901
10902 2008-03-04 Jason Rumney <jasonr@gnu.org>
10903
10904 * makefile.w32-in: Always include w32font.c in the build.
10905 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
10906
10907 2008-03-04 Andreas Schwab <schwab@suse.de>
10908
10909 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
10910 (versionclean): Likewise.
10911
10912 2008-03-04 Juanma Barranquero <lekktu@gmail.com>
10913
10914 * .cvsignore: Add oo.
10915
10916 2008-03-03 Andreas Schwab <schwab@suse.de>
10917
10918 * coding.c (decode_coding_object): Inhibit gap shrinking while
10919 decoding in place.
10920
10921 2008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
10922
10923 * w32term.c: Remove unused include "gnu.h".
10924 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
10925
10926 * gnu.h: Rename to ...
10927 * emacs-icon.h: ... this.
10928 * xterm.c: Use emacs-icon.h instead of gnu.h.
10929 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
10930
10931 2008-03-03 Juanma Barranquero <lekktu@gmail.com>
10932
10933 * w32font.c: Include math.h.
10934
10935 2008-03-03 Jason Rumney <jasonr@gnu.org>
10936
10937 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
10938 Compute options separately.
10939 (w32font_open_internal): Set glyph_idx before caching metrics.
10940
10941 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
10942 Define if system headers don't.
10943 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
10944 (w32font_encode_char): Don't declare here.
10945
10946 * w32font.c (Quniscribe, QCformat): New symbols.
10947 (syms_of_w32font): Define them.
10948 (w32font_has_char): Indicate uncertainty.
10949 (w32font_encode_char): Encode as glyph point. Make static.
10950 (recompute_cached_metrics): New function.
10951 (w32font_open_internal): Use it. Set font to use glyph points
10952 initially. Set format based on type of font.
10953 (w32font_text_extents, w32font_draw): Optionally use glyph points.
10954 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
10955 on it. Set format based on information available here.
10956 (add_font_entity_to_list): Identify backend based on opentype_only.
10957
10958 2008-03-02 Andreas Schwab <schwab@suse.de>
10959
10960 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
10961
10962 * coding.c (decode_coding_big5, produce_chars):
10963 Fix typos in last change.
10964
10965 2008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
10966
10967 * gnu.h: New icon.
10968
10969 2008-03-02 Kenichi Handa <handa@m17n.org>
10970
10971 * coding.c (decode_coding_utf_8): When eol-type of CODING is
10972 `dos', don't decode '\r' if that is the last in the source.
10973 (decode_coding_utf_16, decode_coding_emacs_mule)
10974 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
10975 (decode_coding_raw_text, decode_coding_charset): Likewise.
10976 (produce_chars): Don't decode EOL here. Use EMACS_INT.
10977
10978 2008-03-01 Jason Rumney <jasonr@gnu.org>
10979
10980 * w32font.c (w32font_full_name): Report point size for scalable fonts.
10981
10982 2008-03-01 Kim F. Storm <storm@cua.dk>
10983
10984 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
10985
10986 2008-03-01 Jason Rumney <jasonr@gnu.org>
10987
10988 * w32font.c (w32font_full_name): New function.
10989 (w32font_open_internal): Use it.
10990
10991 2008-03-01 Kim F. Storm <storm@cua.dk>
10992
10993 * dispnew.c (line_draw_cost): Fix invalid glyph check.
10994
10995 2008-03-01 Jason Rumney <jasonr@gnu.org>
10996
10997 * font.c (font_unparse_fcname): Increase len when style is a symbol.
10998
10999 2008-03-01 Jan Djärv <jan.h.d@swipnet.se>
11000
11001 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
11002 xg_frame_resized when the event is for the edit widget.
11003
11004 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
11005
11006 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
11007 set_char_size.
11008 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
11009 operations on widgets here. Just set frame size if needed.
11010 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
11011 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
11012 (x_wm_set_size_hint): Set size hints on the edit widget only, not
11013 the whole frame.
11014 (xg_create_tool_bar): Move attachment of the tool bar to
11015 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
11016 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
11017
11018 2008-03-01 Jason Rumney <jasonr@gnu.org>
11019
11020 * w32fns.c (w32_msg_pump): Disable debug code.
11021
11022 2008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11023
11024 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
11025
11026 2008-02-29 Chong Yidong <cyd@stupidchicken.com>
11027
11028 * xdisp.c (next_overlay_string): Don't set
11029 overlay_strings_at_end_processed_p if we're currently reading from
11030 a display string.
11031
11032 2008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
11033
11034 * xdisp.c (get_overlay_strings_1): Fix typo.
11035
11036 2008-02-29 Chong Yidong <cyd@stupidchicken.com>
11037
11038 * xdisp.c (get_overlay_strings_1): Add missing argument type.
11039
11040 2008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
11041
11042 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
11043
11044 * xdisp.c (display_mode_element): Cancel the previous change.
11045 (decode_mode_spec): Likewise.
11046 (handle_auto_composed_prop): Don't make composition if it->string
11047 is a string.
11048
11049 2008-02-27 Kim F. Storm <storm@cua.dk>
11050
11051 * lisp.h (GLYPH): Change type from int to struct with separate char
11052 and face_id members.
11053 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
11054 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
11055 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
11056 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
11057 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
11058 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
11059 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
11060 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
11061 handle new Lisp glyph code encoding, either an integer or a cons.
11062
11063 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
11064 (GLYPH_ALIAS): Delete.
11065 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
11066 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
11067 (GLYPH_FROM_CHAR): Replace macro by ...
11068 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
11069
11070 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
11071 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
11072 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
11073 (GLYPH_INVALID_P): New macro.
11074 (spec_glyph_lookup_face): Update prototype.
11075
11076 * dispnew.c (line_draw_cost): Adapt to new glyph type.
11077 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
11078 new glyph code encoding.
11079 (spec_glyph_lookup_face): No return value; update passed glyph instead.
11080 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
11081
11082 * xdisp.c (get_next_display_element, next_element_from_display_vector):
11083 Adapt to new glyph type and new glyph code encoding.
11084
11085 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
11086
11087 * indent.c (current_column, current_column_1, Fmove_to_column)
11088 (compute_motion): Adapt to new glyph code encoding.
11089
11090 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
11091
11092 2008-02-27 Chong Yidong <cyd@stupidchicken.com>
11093
11094 * process.c (wait_reading_process_output): Check for window
11095 changes caused by timers.
11096 Suggested by Johan Bockgård.
11097
11098 2008-02-27 Glenn Morris <rgm@gnu.org>
11099
11100 * emacs.c (USAGE1): Add `--disable-font-backend'.
11101
11102 2008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
11103
11104 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
11105 is made to the buffer.
11106
11107 2008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
11108
11109 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
11110 (face_at_string_position):
11111 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
11112 (face_at_string_position):
11113 * xdisp.c (display_string, next_overlay_change):
11114 * buffer.h (overlays_at):
11115 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
11116 Update callers.
11117
11118 2008-02-26 Chong Yidong <cyd@stupidchicken.com>
11119
11120 * editfns.c (Fformat): Doc fix.
11121
11122 2008-02-26 Juanma Barranquero <lekktu@gmail.com>
11123
11124 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
11125 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
11126 (Ffont_otf_alternates, Fquery_font): Doc fixes.
11127
11128 2008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
11129
11130 * buffer.c (Fbuffer_swap_text): New function.
11131 (syms_of_buffer): Defsubr it.
11132
11133 2008-02-25 Chong Yidong <cyd@stupidchicken.com>
11134
11135 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
11136
11137 2008-02-25 Jason Rumney <jasonr@gnu.org>
11138
11139 * w32font.c (w32font_draw): Draw one character at a time when padding.
11140
11141 2008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
11142
11143 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
11144 Handle a nil arg. Use run_window_configuration_change_hook.
11145 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
11146 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
11147 Use run_window_configuration_change_hook.
11148
11149 2008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
11150
11151 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
11152 1-pixel width.
11153
11154 2008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
11155
11156 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
11157 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
11158 if the glyph in the font is zero pixel with.
11159
11160 * dispextern.h (struct glyph_string): New member padding_p.
11161
11162 * w32font.c (w32font_draw): Pay attention to s->padding_p.
11163
11164 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
11165
11166 * xfont.c (xfont_draw): Pay attention to s->padding_p.
11167
11168 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
11169
11170 * font.c: If the font driver doesn't have `shape' function, return Qnil.
11171
11172 2008-02-25 Jason Rumney <jasonr@gnu.org>
11173
11174 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
11175
11176 2008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
11177
11178 Allow fine-grained image-cache flushing.
11179 * dispextern.h (struct image): Add `dependencies' field.
11180 (clear_image_caches): Change arg to Lisp_Object.
11181 * image.c (make_image): Initialize `dependencies' field.
11182 (clear_image_cache): Change arg to allow fine-grained flushing.
11183 Perform the flush even if image-cache-eviction-delay is nil.
11184 (clear_image_caches): Change arg to Lisp_Object.
11185 (Fclear_image_cache): Expand meaning of the argument.
11186 (mark_image): Mark `dependencies' field.
11187 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
11188 (lface_hash): Use XHASH rather than XFASTINT.
11189 (face_at_buffer_position): Fix int -> EMACS_INT position.
11190 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
11191 (select_frame_for_redisplay): Remove code duplication.
11192 (redisplay_internal): Adapt arg to call to clear_image_caches.
11193
11194 2008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
11195
11196 * s/vms4-0.h:
11197 * s/vms4-2.h:
11198 * s/vms4-4.h:
11199 * s/vms5-5.h: Remove, unused.
11200
11201 * s/irix5-2.h:
11202 * s/irix6-0.h:
11203 * s/riscos5.h:
11204 * s/mach-bsd4-3.h:
11205 * m/mips4.h: Remove files for obsolete systems.
11206
11207 * Makefile.in:
11208 * filelock.c:
11209 * unexmips.c:
11210 * m/hp9000s300.h:
11211 * m/iris4d.h:
11212 * s/aix3-1.h:
11213 * s/hpux.h:
11214 * s/msdos.h:
11215 * s/usg5-0.h:
11216 * s/usg5-2-2.h:
11217 * s/usg5-2.h:
11218 * s/usg5-3.h: Remove references to obsolete variables.
11219
11220 * s/irix5-0.h: Remove, move all the contents ...
11221 * s/irix6-5.h: ... here. Simplify.
11222 * config.in: Regenerate.
11223
11224 2008-02-24 Jason Rumney <jasonr@gnu.org>
11225
11226 * w32term.c (x_draw_glyph_string_background): Clear the background
11227 manually when cleartype is in use.
11228 (x_draw_glyph_string_foreground): Draw text transparently when
11229 cleartype is in use.
11230
11231 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
11232 a font into it unless we have to.
11233
11234 2008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
11235
11236 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
11237 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
11238
11239 2008-02-18 Jason Rumney <jasonr@gnu.org>
11240
11241 * w32fns.c (Fw32_shell_execute): Encode parameters.
11242
11243 2008-02-09 Eli Zaretskii <eliz@gnu.org>
11244
11245 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
11246
11247 2008-02-05 Juanma Barranquero <lekktu@gmail.com>
11248
11249 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
11250
11251 2008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
11252
11253 * xterm.c (x_set_offset): Don't change the gravity if
11254 CHANGE_GRAVITY is -1.
11255
11256 2008-02-23 Chong Yidong <cyd@stupidchicken.com>
11257
11258 * fileio.c (auto_save_error_occurred): New var.
11259 (auto_save_error): Set it.
11260 (Fdo_auto_save): Don't overwrite the error message if an auto-save
11261 error occurred.
11262
11263 2008-02-23 Eli Zaretskii <eliz@gnu.org>
11264
11265 * w32.c (globals_of_w32): Add initializations for
11266 g_b_init_get_sid_sub_authority and
11267 g_b_init_get_sid_sub_authority_count.
11268
11269 2008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
11270
11271 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
11272 (font_parse_xlfd): Use them for sanity check.
11273 (Finternal_set_font_style_table): Make sure the table is bijective.
11274
11275 Consolidate the image_cache to the terminal struct.
11276 * termhooks.h (P_): Remove redundant def.
11277 (struct terminal): New field `image_cache'.
11278 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
11279 of FRAME_X_IMAGE_CACHE.
11280 * xterm.h (struct x_display_info): Remove image_cache field.
11281 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
11282 * w32term.h (struct w32_display_info): Remove image_cache field.
11283 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
11284 * macterm.h (struct mac_display_info): Remove image_cache field.
11285 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
11286 * xterm.c (x_term_init):
11287 * w32term.c (w32_term_init):
11288 * macterm.c (mac_term_init): Set the image_cache in the terminal.
11289 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
11290 Remove declarations.
11291 (clear_image_caches, mark_image_cache): New declarations.
11292 * xfaces.c (clear_face_cache):
11293 * xdisp.c (redisplay_internal): Use clear_image_caches.
11294 * image.c (clear_image_cache): Don't check that a frame is on
11295 a window-system before checking if it shares the same cache.
11296 (clear_image_caches): New function.
11297 (Fclear_image_cache): Use it.
11298 (mark_image): Move from allo.c.
11299 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
11300 * alloc.c (mark_image, mark_image_cache): Move to image.c.
11301 (mark_object): Don't call mark_image_cache for frames.
11302 (mark_terminals): Call mark_image_cache.
11303
11304 * lisp.h (Fdelete_terminal): Declare.
11305
11306 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
11307 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
11308 wrong_type_argument.
11309
11310 2008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
11311
11312 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
11313 malayalam.el, and tamil.el. Add sinhala.el.
11314
11315 2008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
11316
11317 * xterm.c (x_connection_closed): Consolidate identical tests.
11318 (x_delete_terminal): Don't crash if called via x_connection_closed.
11319
11320 2008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
11321
11322 * xdisp.c (decode_mode_spec): New arg string.
11323 (display_mode_element): Adjust for the above change.
11324
11325 2008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
11326
11327 * callint.c (Fcall_interactively): Use AREF.
11328
11329 2008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
11330
11331 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
11332
11333 2008-02-18 Jan Djärv <jan.h.d@swipnet.se>
11334
11335 * xfns.c (Fx_show_tip): Set string to " " if empty.
11336
11337 2008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
11338
11339 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
11340 with Qt.
11341
11342 2008-02-17 Kenichi Handa <handa@m17n.org>
11343
11344 * ftfont.c (ftfont_shape): Return Lispy number.
11345
11346 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
11347 for GCs.
11348 (Finternal_set_font_selection_order): Call font_update_sort_order
11349 only when enable_font_backend is set.
11350 (realize_x_face): Set face->font_info to that of default face only
11351 when enable_font_backend is set.
11352
11353 * xdisp.c (handle_composition_prop): Set it->c to the fist
11354 character of the composed region.
11355 (fill_composite_glyph_string): Set base_face->font_info to
11356 s->font_info. Get a face for ascii from base_face->ascii_face.
11357 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
11358 with a face already decided.
11359 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
11360 non-negative.
11361 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
11362 call font_prepare_composition unconditionally.
11363
11364 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
11365
11366 * xterm.h (struct x_display_info): New member font.
11367
11368 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
11369 (x_set_mouse_face_gc, x_new_font): Likewise.
11370 (x_term_init): Setup display_info->font.
11371 (x_delete_terminal): Free display_info->font.
11372
11373 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
11374
11375 * ftxfont.c (ftxfont_default_fid): Delete it.
11376 (ftxfont_open): Set xfont->fid to 0.
11377 (ftxfont_end_for_frame): Clear data specific to the frame and the
11378 font-driver.
11379
11380 * xftfont.c (xftfont_default_fid): Delete it.
11381 (xftfont_open): Set xfont->fid to 0.
11382
11383 * fontset.c (FONTSET_OBJLIST): New macro.
11384 (fontset_find_font): Update font-object list of the fontset.
11385 (free_realized_fontset): New function.
11386 (free_face_fontset): Call free_realized_fontset.
11387 (Ffont_info): Call font_close_object only when enable_font_backend
11388 is set.
11389
11390 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
11391 [HAVE_NTGUI]: Include w32term.h.
11392 [MAC_OS]: Include macterm.ch.
11393 (font_otf_ValueRecord): Use make_number.
11394 (font_finish_cache): Fix handling of reference count.
11395 (font_clear_cache): Update num_fonts.
11396 (font_open_entity): Update smallest_char_width and
11397 smallest_font_height of the frame.
11398 (font_close_object): Update num_fonts.
11399 (Fclear_font_cache): Fix finding the target cache data.
11400
11401 2008-02-16 Glenn Morris <rgm@gnu.org>
11402
11403 * fontset.c (Finternal_char_font): Fix compilation warning.
11404
11405 2008-02-16 Eli Zaretskii <eliz@gnu.org>
11406
11407 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
11408 instead of char arrays. Enlarge the size of array passed to
11409 get_token_information.
11410
11411 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
11412 warnings.
11413
11414 2008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
11415
11416 * .gdbinit: Don't set `args', it breaks gdb --args.
11417
11418 2008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
11419
11420 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
11421 within a narrowed buffer.
11422
11423 2008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
11424
11425 * coding.c (decode_coding_object, encode_coding_object):
11426 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
11427
11428 2008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
11429
11430 * coding.c (coding_set_destination): Use BEG_BYTE rather than
11431 hardcoding 1.
11432 (detect_coding_system):
11433 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
11434 (string_char_to_byte, string_byte_to_char, insert_from_gap):
11435 * insdel.c (insert_from_gap):
11436 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
11437 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
11438 (string_to_multibyte):
11439 * character.c (chars_in_text, multibyte_chars_in_text):
11440 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
11441
11442 * character.h (FETCH_STRING_CHAR_ADVANCE)
11443 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
11444 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
11445 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
11446
11447 * casefiddle.c (casify_region): Only call after-change and composition
11448 functions on the part of the region that was changed.
11449
11450 * keyboard.c (read_avail_input):
11451 * frame.c (Fdelete_frame): Call Fdelete_terminal.
11452
11453 2008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
11454
11455 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
11456 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
11457
11458 2008-02-11 Juanma Barranquero <lekktu@gmail.com>
11459
11460 * w32menu.c (push_submenu_start, push_submenu_end)
11461 (push_left_right_boundary, push_menu_pane, push_menu_item):
11462 * keyboard.c (read_key_sequence): Don't pass args with side effects
11463 to AREF, it fails when compiling with -DENABLE_CHECKING.
11464
11465 2008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
11466
11467 * Makefile.in (${lispsource}international/charprop.el):
11468 Delete this target.
11469
11470 * search.c (boyer_moore): Fix incorrect synching of the trunk and
11471 emacs-unicode-2.
11472
11473 2008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
11474
11475 * terminal.c (Fdelete_terminal): Clean up the `force' path.
11476
11477 2008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
11478
11479 * frame.c (Qnoelisp): New symbol.
11480 (syms_of_frame): Initialize it.
11481 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
11482 harmless Elisp code, from a strong `force' from x_connection_closed.
11483 * frame.h (Qnoelisp): Declare.
11484 * xterm.c (x_connection_closed): Pass `noelisp'.
11485
11486 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
11487 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
11488 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
11489 rather than `int' for the type of `type'.
11490
11491 2008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
11492
11493 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
11494
11495 * Makefile.in (GNUC): Remove support for gcc-1.x.
11496
11497 2008-02-10 Richard Stallman <rms@gnu.org>
11498
11499 * lisp.h (ASET): Use AREF, not ASLOT.
11500
11501 2008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
11502
11503 * lisp.h (ASET): Check bounds.
11504
11505 2008-02-10 Glenn Morris <rgm@gnu.org>
11506
11507 * buffer.c (mode-name): Doc fix.
11508
11509 2008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
11510
11511 * Makefile.in:
11512 * emacs.c:
11513 * gmalloc.c:
11514 * keyboard.c:
11515 * lisp.h:
11516 * m/ibm370aix.h:
11517 * process.c:
11518 * regex.c:
11519 * s/hpux.h:
11520 * sysdep.c:
11521 * sysselect.h:
11522 * systty.h:
11523 * unexec.c:
11524 * w32term.c:
11525 * xsmfns.c:
11526 * xterm.c: Remove code that deals with obsolete variables.
11527
11528 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
11529
11530 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
11531 nothing else needs it anymore.
11532
11533 2008-02-09 Eli Zaretskii <eliz@gnu.org>
11534
11535 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
11536 instead of unibyte_char_to_multibyte.
11537
11538 2008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
11539
11540 * s/gnu-linux.h: Remove commented out code.
11541
11542 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
11543
11544 * Makefile.in: Update what RMS says about using autoconf.
11545 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
11546 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
11547 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
11548 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
11549
11550 2008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
11551
11552 * keymap.c (Fkey_description): Move side effect outside of macro call.
11553
11554 * xfaces.c (Finternal_make_lisp_face):
11555 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
11556
11557 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
11558 (syms_of_fontset): Use ASET.
11559
11560 * fns.c (concat): Move side effect outside of macro call.
11561 (hash_clear): Use ASET.
11562
11563 2008-02-08 Richard Stallman <rms@gnu.org>
11564
11565 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
11566 If FORCE, and frame has a surrogate minibuffer for another frame,
11567 delete the other frame first.
11568
11569 2008-02-07 Timo Savola <timo.savola@iki.fi>
11570
11571 * xterm.c (x_detect_focus_change): Handle embed client message.
11572 (handle_one_xevent): Ditto.
11573 (handle_one_xevent): If embedded and we get a button press/release,
11574 request focus.
11575 (xembed_set_info, xembed_send_message): New functions.
11576 (x_make_frame_visible): Call xembed_set_info if embedded.
11577 (x_make_frame_invisible): Call xembed_set_info if embedded.
11578 (x_term_init): Initialize Xatom_XEMBED.
11579 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
11580 (x_iconify_frame): Ditto.
11581
11582 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
11583 (enum xembed_info, enum xembed_message, enum xembed_focus)
11584 (enum xembed_modifier, enum xembed_accelerator): New.
11585 (xembed_set_info, xembed_send_message): Declare.
11586 (FRAME_X_EMBEDDED_P): New.
11587
11588 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
11589 gtk_plug_new.
11590
11591 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
11592 window ID of a frame.
11593 (x_window): Reparent frame if embedded.
11594 (Fx_create_frame): Don't set border width if embedded.
11595
11596 * emacs.c (USAGE3): Add --parent-id.
11597 (standard_args): Ditto.
11598
11599 2008-02-07 Jan Djärv <jan.h.d@swipnet.se>
11600
11601 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
11602
11603 2008-02-07 Jim Meyering <meyering@redhat.com>
11604
11605 Use "do...while (0)", not "if (1)...else" in macro definitions.
11606 The latter provokes a warning from gcc about the empty else, when
11607 followed by ";". Also, without that trailing semicolon, it would
11608 silently swallow up any following statement.
11609 * syntax.h (SETUP_SYNTAX_TABLE)
11610 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
11611 * buffer.h (DECODE_POSITION): Likewise.
11612 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
11613 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
11614 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
11615 (FETCH_CHAR_ADVANCE): Likewise.
11616 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
11617
11618 2008-02-07 Jim Meyering <meyering@redhat.com>
11619
11620 * lread.c [lint]: Don't include <sys/inode.h>.
11621
11622 2008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
11623
11624 * xselect.c (x_handle_dnd_message):
11625 * xmenu.c (digest_single_submenu, xmenu_show):
11626 * xdisp.c (with_echo_area_buffer_unwind_data)
11627 (format_mode_line_unwind_data, unwind_format_mode_line)
11628 (display_menu_bar):
11629 * eval.c (Ffetch_bytecode):
11630 * doc.c (store_function_docstring):
11631 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
11632 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
11633 * buffer.c (add_overlay_mod_hooklist): Use ASET.
11634
11635 2008-02-07 Kenichi Handa <handa@m17n.org>
11636
11637 * ftxfont.c (ftxfont_open): Don't set
11638 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
11639
11640 * ftfont.c (ftfont_open): Fix previous change.
11641
11642 2008-02-06 Jason Rumney <jasonr@gnu.org>
11643
11644 * w32font.c (w32font_text_extents): Fill in lbearing metric.
11645 Use cached metrics for ASCII characters.
11646 (w32font_open_internal): Don't set font's owning_frame.
11647 Cache metrics for ASCII characters.
11648
11649 * w32font.h (struct w32font_info): Add ascii_metrics.
11650 Remove owning_frame.
11651
11652 2008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
11653
11654 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
11655 to negative value.
11656
11657 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
11658
11659 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
11660
11661 * charset.c (syms_of_charset): Set QCtest and Qeq.
11662
11663 2008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
11664
11665 * process.c (Fstart_process):
11666 * callproc.c (Fcall_process): Handle the case where
11667 Funhandled_file_name_directory returns nil.
11668
11669 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
11670 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
11671 * font.c (check_gstring): Use them and AREF to access the vector before
11672 we know it's really a gstring.
11673 (Ffont_shape_text): Fix typo.
11674 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
11675
11676 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
11677 Declare.
11678
11679 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
11680
11681 2008-02-05 Jason Rumney <jasonr@gnu.org>
11682
11683 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
11684 Set smallest_font_height and smallest_char_width in display info.
11685
11686 2008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
11687
11688 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
11689
11690 2008-02-05 Miles Bader <miles@gnu.org>
11691
11692 * xfaces.c (get_lface_attributes, merge_named_face)
11693 (lookup_named_face, lookup_derived_face, realize_named_face):
11694 Revert 2008-02-01 change by cyd@stupidchicken.com.
11695
11696 2008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
11697
11698 * fontset.c (Ffontset_info): Handle the case of inhibitting the
11699 fallback fonts.
11700 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
11701
11702 2008-02-04 Jason Rumney <jasonr@gnu.org>
11703
11704 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
11705 set full_name.
11706 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
11707
11708 2008-02-03 Jason Rumney <jasonr@gnu.org>
11709
11710 * makefile.w32-in (OBJ1): Include font.o here.
11711 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
11712
11713 2008-02-02 Jason Rumney <jasonr@gnu.org>
11714
11715 * makefile.w32-in (temacs): Bump EMHEAP to 21.
11716
11717 2008-02-01 Jason Rumney <jasonr@gnu.org>
11718
11719 * s/cygwin.h: Define VIRT_ADDR_VARIES.
11720
11721 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
11722
11723 2008-02-01 Andreas Schwab <schwab@suse.de>
11724
11725 * Makefile.in (shortlisp, lisp): Update for rename of
11726 ../lisp/language/myanmar.el.
11727
11728 2008-02-01 Chong Yidong <cyd@stupidchicken.com>
11729
11730 * xfaces.c (get_lface_attributes): Delete function.
11731 (merge_named_face, lookup_named_face, lookup_derived_face)
11732 (realize_named_face): Call lface_from_face_name directly, and use
11733 the fact that merge_face_vectors does not alter its FROM argument.
11734
11735 2008-02-01 Jason Rumney <jasonr@gnu.org>
11736
11737 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
11738 input in the default locale. Handle non-Unicode multibyte input.
11739
11740 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11741
11742 * fontset.c (reorder_font_vector): Exclude nil elements from the
11743 font group. Don't try multiple fonts.
11744 (fontset_font): Adjust for the above change.
11745 (Finternal_char_font): Return nil if the found font doesn't
11746 contain the character ch.
11747
11748 * Makefile.in (lisp, shortlisp): Add cham.el.
11749
11750 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11751
11752 * font.h (FONTP): Make it return 1 also for a font-object.
11753
11754 * .gdbinit (xfontset): New function.
11755
11756 * font.c (font_find_for_lface): Check if the character C is
11757 supported or not only for the first font.
11758
11759 * fontset.c (reorder_font_vector): Fix typo.
11760 (fontset_find_font): Don't add a font-spec specifying a script.
11761 Use 0 (not Qt) for the indication of empty font-group. Change the
11762 format of RFONT-DEF. Return Qt if no font in the font-group
11763 support the character.
11764 (fontset_font): Adjust for the above change. If no font was
11765 found the character, remember that.
11766 (face_for_char): Adjust for the change of RFONT-DEF.
11767 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
11768 no font for the target.
11769 (Finternal_char_font): Adjust for the change of RFONT-DEF.
11770
11771 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11772
11773 * font.c (font_load_for_face): Handle the case that the font in
11774 face->lface is a string.
11775
11776 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11777
11778 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
11779
11780 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11781
11782 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
11783 Fix previous change. If the frame is not on a window system,
11784 signal an error.
11785
11786 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11787
11788 * coding.c (decode_coding_object, encode_coding_object): Adjust
11789 marker positions after conversion.
11790
11791 * lisp.h (struct Lisp_Marker): New member need_adjustment.
11792
11793 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11794
11795 * font.c (font_find_for_lface): Fix the handling of the return
11796 value of font_has_char.
11797 (Ffont_shape_text): Fix previous change.
11798
11799 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
11800 (fontset_ref_and_range): Delete it.
11801 (fontset_find_font): Call char_table_ref_and_range instead of
11802 FONTSET_REF_AND_RANGE.
11803 (make_fontset): Don't setup font groups of Latin here.
11804 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
11805 (new_fontset_from_font): Make the specified font the default for
11806 all Latin characters.
11807
11808 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11809
11810 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
11811 is on a window system before accessing the fontset of the frame.
11812
11813 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11814
11815 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
11816
11817 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
11818 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
11819
11820 * font.c (Ffont_shape_text): If the font driver doesn't have a
11821 shaper function, make zero-width glyphs to have at least one-pixel
11822 width. Fix setting of `to' field of glyphs.
11823
11824 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11825
11826 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
11827 glyphs.
11828
11829 * font.h (struct font_driver): Improve docstring of member `shape'.
11830
11831 2008-02-01 Kenichi Handa <handa@m17n.org>
11832
11833 * composite.c (syms_of_composite): Fix docstring of
11834 auto-composition-function.
11835
11836 * font.h (LGLYPH_SIZE): New macro.
11837
11838 * font.c (Ffont_fill_gstring): Stop filling when a character not
11839 supported by the font is found.
11840 (Ffont_shape_text): When a shape callback function returns nil,
11841 try at most two more times with larger gstring.
11842 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
11843
11844 * xdisp.c (handle_auto_composed_prop): Change the argument to
11845 auto-composition-function.
11846
11847 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
11848 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
11849 Lispy glyph and store it in the lgstring.
11850
11851 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
11852
11853 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
11854
11855 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11856
11857 * font.c (Ffont_shape_text): Avoid unnecessary composition.
11858
11859 * fontset.c (Vfont_encoding_charset_alist): New variable.
11860 (syms_of_fontset): DEFVAR it.
11861 (reorder_font_vector, fontset_find_font): Optimize for the case of
11862 no need of reordering.
11863 (face_for_char): Map the charset property by
11864 Vfont_encoding_charset_alist.
11865
11866 2008-02-01 Jason Rumney <jasonr@gnu.org>
11867
11868 * w32font.c (logfonts_match): Don't check adstyle here.
11869 (font_matches_spec): Check here against physical font instead.
11870 (add_font_entity_to_list): Avoid some substitutions.
11871
11872 * font.c (font_parse_fcname): Default weight and slant to normal.
11873 (font_score): Prefer normal fonts if weight or slant unspecified.
11874 (font_score) [WINDOWSNT]: Scale weight difference down to closer
11875 match freetype scores.
11876
11877 2008-02-01 Jason Rumney <jasonr@gnu.org>
11878
11879 * w32font.c (w32font_text_extents): Don't use the frame stored in the
11880 font, as it may have been deleted.
11881 (w32_enumfont_pattern_entity): Map generic family to adstyle using
11882 most common hyphenless variation.
11883 (logfonts_match): Check generic family.
11884 (font_matches_spec): Don't check generic family here.
11885 (fill_in_logfont): Set generic family based on adstyle.
11886
11887 * w32font.h (w32font_get_cache): Update declaration.
11888
11889 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11890
11891 * ftfont.c (ftfont_get_cache): Adjust the argument type.
11892
11893 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
11894 If none of the new drivers are available, call font_update_drivers
11895 with the old drivers.
11896
11897 * w32font.c (w32font_get_cache): Adjust the argument type.
11898
11899 * xfont.c (xfont_get_cache): Adjust the argument type.
11900
11901 * font.h (struct font_driver): Change argument type of get_cache.
11902
11903 * xftfont.c (xftfont_start_for_frame): Delete prototype.
11904
11905 * font.c (Ffont_get): Fix arguments to Fassoc.
11906 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
11907 (font_clear_cache): New function.
11908 (font_list_entities, font_matching_entity): Use font_get_cache.
11909 (font_update_drivers): Call font_clear_cache when finishing a driver.
11910
11911 * fontset.c (fontset_find_font): Fix previous change.
11912
11913 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11914
11915 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
11916 dpyinfo->font_table.
11917 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
11918 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
11919
11920 * font.c (font_at): Handle the case that the arg C is negative.
11921 Handle the unibyte case.
11922 (Ffont_at): Call font_at with the arg C -1.
11923
11924 * xdisp.c (handle_auto_composed_prop): Don't get a character at
11925 the position here, and call font_at with the arg C -1.
11926 Don't check the range of the existing composition at the point.
11927
11928 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11929
11930 * fontset.c (fontset_add): New args charset_id and family.
11931 Change caller.
11932 (load_font_get_repertory, fontset_find_font): Assume that
11933 font_spec is always a font-spec object.
11934 (Fset_fontset_font): Always store a font-spec object in a fontset.
11935
11936 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
11937 instead of get_property_and_range.
11938
11939 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11940
11941 * xftfont.c (struct xftfont_info): Delete the member ft_face.
11942 (xftfont_open): Don't keep locking face.
11943 (xftfont_close): Don't unlock face.
11944 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
11945
11946 * fontset.c (fontset_find_font): Don't prefer a font of
11947 supplementary charset.
11948
11949 2008-02-01 Kenichi Handa <handa@m17n.org>
11950
11951 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
11952 script, langsys_tag to langsys, new member script.
11953 (OTF_TAG_STR): Terminate by '\0'.
11954 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
11955 listing to the script specified in that property. Fix arg to
11956 OTF_check_features.
11957
11958 2008-02-01 Jason Rumney <jasonr@gnu.org>
11959
11960 * w32font.h: New file.
11961
11962 * w32font.c: Include it.
11963 (struct w32font_info): Add owning_frame field. Move to w32font.h.
11964 (w32font_open): Set owning_frame.
11965 (w32font_text_extents): Use owning_frame.
11966 (struct font_callback_data): Add opentype_only field.
11967 (add_font_entity_to_list): Use it to filter fonts.
11968 Don't check against full name.
11969 (w32font_list_internal): New function.
11970 (w32font_list): Use it.
11971 (w32font_match_internal): New function.
11972 (w32font_match): Use it.
11973 (w32font_open_internal): New function.
11974 (w32font_open): Use it.
11975 (w32font_get_cache, w32font_close, w32font_has_char)
11976 (w32font_encode_char, w32font_text_extents, w32font_draw):
11977 Make non-static.
11978
11979 * makefile.w32-in (w32font.o): Depend on w32font.h.
11980
11981 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11982
11983 * charset.c (Fdefine_charset_internal): Record a supplementary
11984 charset at the tail of Vcharset_order_list.
11985
11986 * font.c (Ffont_shape_text): Fix the return value.
11987
11988 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
11989
11990 * xdisp.c (handle_auto_composed_prop): Fix previous change.
11991
11992 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11993
11994 * ftfont.c (struct OpenTypeSpec): New struct.
11995 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
11996 (ftfont_get_open_type_spec): New function.
11997 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
11998
11999 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
12000
12001 2008-02-01 Jason Rumney <jasonr@gnu.org>
12002
12003 * w32font.c (add_font_entity_to_list): Compare only the beginning
12004 of full name.
12005
12006 2008-02-01 Kenichi Handa <handa@m17n.org>
12007
12008 * xdisp.c (handle_auto_composed_prop): Simplify the code.
12009 Never return HANDLED_RECOMPUTE_PROPS.
12010
12011 2008-02-01 Kenichi Handa <handa@m17n.org>
12012
12013 * font.c (font_gstring_produce): Delete it.
12014
12015 * composite.h (COMPOSITION_METHOD):
12016 Handle COMPOSITION_WITH_GLYPH_STRING.
12017
12018 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12019
12020 * xfont.c (Qx): Delete.
12021 (syms_of_xfont): Don't initialize Qx.
12022
12023 * composite.h (enum composition_method):
12024 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
12025
12026 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12027
12028 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
12029 (choose_face_font): Accept new form of font-spec.
12030
12031 * frame.h (font_driver_list): Declare it unconditionally.
12032 (struct frame): Define members font_driver_list and font_data_list
12033 unconditionally.
12034
12035 * fontset.c: Include "font.h" unconditionally.
12036 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
12037 (Fset_fontset_font): Accept a font-spec object.
12038
12039 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
12040 PIXEL_SIZE part a wild card.
12041
12042 * dispextern.h (struct glyph_string): Define members clip and
12043 num_clips unconditionally.
12044 (struct face): Define members font_info and extra unconditionally.
12045
12046 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
12047 ftfont_info only when HAVE_LIBOTF is defined.
12048
12049 2008-02-01 Andreas Schwab <schwab@suse.de>
12050
12051 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
12052 and end.
12053
12054 2008-02-01 Jason Rumney <jasonr@gnu.org>
12055
12056 * w32font.c (w32font_driver): Add new fields.
12057
12058 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12059
12060 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
12061 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
12062 (LIBES): Add @M17N_FLT_CFLAGS@.
12063
12064 * composite.c (compose_text): Don't treat the new style
12065 composition specially.
12066
12067 * emacs.c (main): Call syms_of_font unconditionally.
12068
12069 * font.h (FONT_ENTITY_NOT_LOADABLE)
12070 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
12071 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
12072 (struct font_driver): New member shape.
12073 (font_registry_charsets): Extern it.
12074 (font_find_for_lface, font_prepare_composition): Adjust prototype.
12075 (font_otf_capability, font_drive_otf): Delete their externs.
12076
12077 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
12078 (font_charset_alist, font_registry_charsets): Move from xfont.c
12079 and rename.
12080 (font_prop_validate_otf): New function.
12081 (font_property_table): Register it for QCotf.
12082 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
12083 (font_drive_otf): Delete.
12084 (font_prepare_composition): New arg F. Adjust for the change of
12085 lispy gstring.
12086 (font_find_for_lface): New arg C.
12087 (font_load_for_face): Adjust for the change of font_find_for_lface.
12088 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
12089 lispy gstring.
12090 (Ffont_shape_text): New function.
12091 (Fopen_font): If the font size is not given, use 12-pixel.
12092 (Ffont_at): New arg STRING.
12093 (syms_of_font): Initalize font_charset_alist.
12094 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
12095 conditionally.
12096
12097 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
12098 fonts of the same font-spec. Change the format of RFONT-DEF.
12099 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
12100 Adjust for the change of RFONT-DEF.
12101 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
12102
12103 * ftfont.h: New file.
12104
12105 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
12106 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
12107 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
12108 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
12109 font_otf_capability and font_drive_otf, set ftfont_shape.
12110 (ftfont_list): Adjust for the change of :otf property value.
12111 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
12112 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
12113 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
12114 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
12115 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
12116 (otf_gstring, gstring, m17n_flt_initialized): New variables.
12117
12118 * w32term.c (x_draw_composite_glyph_string_foreground):
12119 Adjust for the change of lispy gstring.
12120
12121 * xdisp.c (handle_composition_prop): Adjust for the change of
12122 lispy gstring. Call a function for auto-composition with the
12123 third arg it->window.
12124 (fill_composite_glyph_string): Adjust for the change of lispy string.
12125 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
12126
12127 * xfaces.c (set_font_frame_param): Adjust for the change of
12128 font_find_for_lface.
12129
12130 * xfont.c (x_font_charset_alist): Move to font.c and rename.
12131 (xfont_registry_charsets): Likewise. Change caller.
12132 (syms_of_xfont): Don't handle x_font_charset_alist.
12133
12134 * xftfont.c: Include "ftfont.h".
12135 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
12136 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
12137 (xftfont_close) [HAVE_LIBOTF]: Close otf.
12138 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
12139 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
12140 Set xftfont_driver.shape to xftfont_shape.
12141
12142 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
12143 the change of lispy gstring.
12144
12145 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12146
12147 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
12148
12149 2008-02-01 Jason Rumney <jasonr@gnu.org>
12150
12151 * w32font.c (w32font_draw): Fill background manually.
12152
12153 2008-02-01 Jason Rumney <jasonr@gnu.org>
12154
12155 * font.c (Qfontp): Remove unused symbol.
12156 (QCantialias): New symbol.
12157 (syms_of_font): Define it.
12158 (font_property_table): Set a validator for QCantialias.
12159
12160 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
12161 Define if not already.
12162 (QCfamily): Share with xfaces.c.
12163 (Qstandard, Qsubpixel, Qnatural): New symbols.
12164 (syms_of_w32font): Define them. Don't define QCfamily here.
12165 (w32_antialias_type, lispy_antialias_type): New functions.
12166 (w32_enumfont_pattern_entity): New arg requested_font.
12167 Set antialias parameter if non-default was requested.
12168 (fill_in_logfont): Fill in lfQuality if :antialias specified.
12169
12170 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12171
12172 * lread.c (read1): Undo the previous change.
12173
12174 2008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
12175
12176 * frame.c (Fdelete_frame): Call font_update_drivers only when
12177 USE_FONT_BACKEND is defined.
12178
12179 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12180
12181 * font.h (struct font_bitmap): New member bits_per_pixel.
12182 (struct font_driver): New members start_for_frame and end_for_frame.
12183 (struct font_data_list): New struct.
12184 (font_put_frame_data, font_get_frame_data): Extern them.
12185
12186 * frame.h (struct frame): New member font_data_list.
12187
12188 * font.c (font_update_drivers): Call driver->start_for_frame and
12189 driver->end_for_frame at proper timings.
12190 (font_put_frame_data, font_get_frame_data): New functions.
12191 (Ffont_spec): Add usage in the docstring.
12192
12193 * frame.c (make_frame): Initialize f->font_data_list to NULL.
12194 (Fdelete_frame): Call font_update_drivers.
12195
12196 * xftfont.c (struct xftface_info): Delete the member xft_draw.
12197 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
12198 (xftfont_get_xft_draw): New function.
12199 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
12200 (xftfont_end_for_frame): New function.
12201 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
12202
12203 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
12204 Change argument. Cache GCs in the per-frame data.
12205 (struct ftxfont_frame_data): New struct.
12206 (ftxfont_draw_bitmap): New arg gc_fore and flush.
12207 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
12208 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
12209 (ftxfont_end_for_frame): New function.
12210 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
12211
12212 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
12213
12214 2008-02-01 Kenichi Handa <handa@m17n.org>
12215
12216 * xselect.c (Vselection_coding_system)
12217 (Vnext_selection_coding_system): Delete them.
12218 (syms_of_xselect): Don't declare selection-coding-system and
12219 next-selection-coding-system. They are declared in select.el.
12220
12221 2008-02-01 Jason Rumney <jasonr@gnu.org>
12222
12223 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
12224
12225 * w32fns.c: Include imm.h.
12226 (get_composition_string_fn, get_ime_context_fn): New optional
12227 system functions.
12228 (globals_of_w32fns): Load them from imm32.dll.
12229 (ignore_ime_char): New flag.
12230 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
12231 WM_IME_ENDCOMPOSITION messages.
12232
12233 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
12234 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
12235
12236 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12237
12238 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
12239 (READCHAR_REPORT_MULTIBYTE): New macro.
12240 (readchar): New 2nd arg MULTIBYTE.
12241 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
12242 Make symbol's name multibyte according to the multibyteness of the
12243 source.
12244
12245 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12246
12247 * xfaces.c (face_for_overlay_string): Call lookup_face with
12248 correct arguments (fix of synching with the trunk).
12249
12250 2008-02-01 Kenichi Handa <handa@m17n.org>
12251
12252 * font.c (font_prop_validate_symbol, font_prop_validate_style)
12253 (font_prop_validate_non_neg, font_prop_validate_spacing):
12254 Delete argument prop_index.
12255 (font_property_table): Change arguments to validater. Change Callers.
12256 (font_lispy_object): Delete.
12257 (font_at): Use font_find_object instead fo font_lispy_object.
12258
12259 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12260
12261 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
12262 and file names.
12263
12264 2008-02-01 Jason Rumney <jasonr@gnu.org>
12265
12266 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
12267 (font_matches_spec): Remove debug output.
12268 (add_font_entity_to_list): Avoid using substituted fonts.
12269
12270 2008-02-01 Jason Rumney <jasonr@gnu.org>
12271
12272 * doc.c (Fsnarf_documentation):
12273 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
12274
12275 2008-02-01 Miles Bader <miles@gnu.org>
12276
12277 * dispextern.h (struct glyph_row): Only define "clip" field if
12278 HAVE_WINDOW_SYSTEM is defined.
12279
12280 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
12281
12282 Fix up multi-tty merge.
12283
12284 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
12285 and indentation.
12286
12287 * xfaces.c (free_realized_face, clear_face_gcs):
12288 Include font_done_for_face in the input_blocked section, just in case.
12289
12290 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
12291 (get_char_face_and_encoding): Undo last change and remove the *other*
12292 duplicate definition (i.e. keep the one that's better scoped and that
12293 includes code for the font-backend).
12294
12295 * terminal.c (create_terminal): Default keyboard_coding to
12296 `no-conversion' and terminal_coding to `undecided'.
12297
12298 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
12299
12300 * fontset.c (free_realized_fontsets): Check that the table entry does
12301 contain a fontset before trying to compare it to `base'.
12302
12303 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
12304 syms_of_charset, and syms_of_coding earlier because init_window_once
12305 now needs Vcoding_system_hash_table to be setup.
12306
12307 * coding.h (default_buffer_file_coding): Remove.
12308
12309 * coding.c (default_buffer_file_coding): Remove.
12310 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
12311 than ->symbol, and use the terminal-local coding system.
12312 (syms_of_coding): Don't setup the coding-systems that are not
12313 terminal-local.
12314 (Fdefine_coding_system_internal): Use XCAR/XCDR.
12315
12316 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
12317 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
12318
12319 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
12320 in chartab.c and were re-added here by mistake.
12321 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
12322
12323 * doc.c (Fsnarf_documentation):
12324 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
12325 src to etc.
12326
12327 * ChangeLog.10: Add mistakenly removed entry.
12328
12329 2008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
12330
12331 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
12332
12333 2008-02-01 Miles Bader <miles@gnu.org>
12334
12335 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
12336 Add extra args to FACE_FOR_CHAR.
12337
12338 2008-02-01 Kenichi Handa <handa@m17n.org>
12339
12340 * keymap.c (where_is_internal_1): If key is a cons, store the copy
12341 in sequence.
12342
12343 * chartab.c (map_sub_char_table, map_char_table): If the range
12344 contains just one character, call the function with that character
12345 even if the depth is not 3.
12346
12347 2008-02-01 Jason Rumney <jasonr@gnu.org>
12348
12349 * w32font.c (w32font_text_extents): Calculate metrics for the
12350 whole string.
12351
12352 2008-02-01 Jason Rumney <jasonr@gnu.org>
12353
12354 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
12355
12356 2008-02-01 Jason Rumney <jasonr@gnu.org>
12357
12358 * w32term.c (x_set_glyph_string_clipping): Use
12359 get_glyph_string_clip_rects.
12360 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
12361 Adjust for the change of struct glyph_string.
12362
12363 * w32font.c (w32font_draw): Do clipping here.
12364
12365 2008-02-01 Kenichi Handa <handa@m17n.org>
12366
12367 * xftfont.c (xftfont_draw): Adjust for the change of struct
12368 glyph_string.
12369
12370 * xterm.c (x_set_glyph_string_clipping): Use
12371 get_glyph_string_clip_rects.
12372 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
12373 Adjust for the change of struct glyph_string.
12374
12375 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
12376 the resulting clip(s}.
12377 (expose_overlaps): Add arg r. Change callers. Set it to
12378 row->clip temporarily.
12379 (expose_window): Redraw rows overlapping the exposed area.
12380
12381 * dispextern.h (struct glyph_row): New member clip.
12382 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
12383 clip_height, new member clip, and num_clips.
12384
12385 2008-02-01 Kenichi Handa <handa@m17n.org>
12386
12387 * data.c (Fchar_or_string_p): Fix docstring.
12388
12389 2008-02-01 Kenichi Handa <handa@m17n.org>
12390
12391 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
12392 create a temporary XftDraw object.
12393
12394 2008-02-01 Kenichi Handa <handa@m17n.org>
12395
12396 * font.c (Ffontp): Fix docstring.
12397
12398 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
12399 strong evidence of ISO-2022.
12400
12401 2008-02-01 Kenichi Handa <handa@m17n.org>
12402
12403 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
12404 SYNTAX_ENTRY_FOLLOW_PARENT.
12405
12406 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
12407
12408 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
12409 its type.
12410 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
12411 Update to the new type of weak_hash_tables and next_weak.
12412
12413 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
12414 a plain C pointer to Lisp_Hash_Table.
12415
12416 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
12417 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
12418 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
12419 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
12420 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
12421 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
12422 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
12423 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
12424 (GC_EQ): Remove since they've been identical to their non-GC_
12425 alter-egos ever since the markbit was eradicated.
12426
12427 * alloc.c:
12428 * buffer.c:
12429 * buffer.h:
12430 * data.c:
12431 * fileio.c:
12432 * filelock.c:
12433 * fns.c:
12434 * frame.h:
12435 * lisp.h:
12436 * macterm.c:
12437 * print.c:
12438 * process.c:
12439 * w32fns.c:
12440 * w32menu.c:
12441 * w32term.c:
12442 * xfns.c:
12443 * xmenu.c:
12444 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
12445
12446 2008-02-01 Kenichi Handa <handa@m17n.org>
12447
12448 * chartab.c (map_sub_char_table): Make it work for the top-level
12449 char-table. Fix handling of parent char-table.
12450 (map_char_table): Adjust for the above change.
12451
12452 2008-02-01 Jason Rumney <jasonr@gnu.org>
12453
12454 * w32font.c (Qgdi): Rename from Qw32.
12455
12456 2008-02-01 Jason Rumney <jasonr@gnu.org>
12457
12458 * w32bdf.c (get_quoted_string): Make function static.
12459
12460 2008-02-01 Kenichi Handa <handa@m17n.org>
12461
12462 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
12463 bigger ascent and descent than those of the font, use them as
12464 font's ascent and descent.
12465
12466 2008-02-01 Kenichi Handa <handa@m17n.org>
12467
12468 * Makefile.in (${lispsource}international/charprop.el): Move this
12469 target within "#ifdef HAVE_UNIDATA" and "#endif".
12470
12471 2008-02-01 Kenichi Handa <handa@m17n.org>
12472
12473 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
12474 (shortlisp): Add ../lisp/language/tai-viet.el.
12475
12476 2008-02-01 Ulrich Mueller <ulm@gentoo.org>
12477
12478 * Makefile.in (${lispsource}international/charprop.el): Depend on
12479 temacs${EXEEXT}.
12480
12481 2008-02-01 Jason Rumney <jasonr@gnu.org>
12482
12483 * w32font.c (w32font_close): Delete the GDI font object.
12484
12485 * w32menu.c: Include character.h.
12486
12487 * w32proc.c: Likewise.
12488
12489 * w32select.c: Likewise.
12490
12491 * makefile.w32-in (w32proc.o): Depend on character.h.
12492
12493 2008-02-01 Jason Rumney <jasonr@gnu.org>
12494
12495 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
12496
12497 * w32menu.c (syms_of_w32menu): Likewise.
12498
12499 * w32proc.c (syms_of_ntproc): Likewise.
12500
12501 * w32select.c (syms_of_w32select): Likewise.
12502
12503 * w32term.c (syms_of_w32term): Likewise.
12504
12505 2008-02-01 Jason Rumney <jasonr@gnu.org>
12506
12507 * w32font.c (w32font_draw): Delete brush after using it.
12508
12509 2008-02-01 Jason Rumney <jasonr@gnu.org>
12510
12511 * w32font.c (w32font_open): Don't set font_idx.
12512 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
12513 to font settings.
12514 (w32font_draw): Fill background explicitly.
12515
12516 2008-02-01 Jason Rumney <jasonr@gnu.org>
12517
12518 * w32term.c (w32_initialize): Don't call w32font_initialize.
12519
12520 * w32font.c (w32font_info): Remove subranges.
12521 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
12522 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
12523 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
12524 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
12525 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
12526 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
12527 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
12528 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
12529 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
12530 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
12531 New symbols.
12532 (font_callback_data): New struct.
12533 (w32font_list, w32font_match): Use it.
12534 (w32font_open): Don't populate subranges.
12535 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
12536 (w32font_encode_char): Always return unicode code-point as-is.
12537 (w32font_text_extents): Supply a transformation matrix to
12538 GetGlyphOutline. Never look up by glyph index. Avoid looping
12539 twice. Use unicode version of GetTexExtentPoint32 instead of
12540 glyph index version.
12541 (set_fonts_frame): Remove.
12542 (w32_enumfont_pattern_entity): Add frame parameter, use it to
12543 set frame parameter. Use backward compatible fake foundries.
12544 Save generic family in extra slot under QCfamily. Make width slot
12545 constant. Save QCspacing value. Save list of scripts instead of
12546 binary subranges.
12547 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
12548 (add_font_entity_to_list): Use font_callback_data struct. Filter
12549 unwanted fonts.
12550 (add_one_font_entity_to_list): Use font_callback_data struct.
12551 (w32_registry): Default to iso10646_1.
12552 (fill_in_logfont): Use dpi from extra slot. Don't bother with
12553 string font registries. Don't fill in font name if it is a generic
12554 family name, fill family instead. Use spacing, family and script
12555 extra info to fill pitch, family and charset fields.
12556 (list_all_matching_fonts): Use font_callback_data struct.
12557 (unicode_range_for_char): Remove.
12558 (font_supported_scripts): New function.
12559 (w32font_initialize): Remove.
12560 (syms_of_w32font): Update which symbols are defined.
12561
12562 2008-02-01 Jason Rumney <jasonr@gnu.org>
12563
12564 * font.c (font_pixel_size): Reverse assq_no_quit args.
12565
12566 * w32term.h (FONT_WIDTH): Report max width, not average.
12567 (FONT_MAX_WIDTH): Remove.
12568 (FONT_AVG_WIDTH): New macro.
12569
12570 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
12571 redefinition of FONT_WIDTH.
12572
12573 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
12574 (w32_cache_char_metrics): Use FONT_WIDTH.
12575
12576 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
12577
12578 2008-02-01 Jason Rumney <jasonr@gnu.org>
12579
12580 * w32font.c (w32font_open): Make lfHeight negative.
12581
12582 * w32fns.c (x_default_font_parameter): Use new style font name.
12583 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
12584
12585 2008-02-01 Jason Rumney <jasonr@gnu.org>
12586
12587 * w32font.c (QCsubranges): New symbol.
12588 (w32font_open, w32font_has_char): Get subranges from subproperty
12589 of extra.
12590 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
12591 (syms_of_w32font): Define :subranges symbol.
12592
12593 * font.c (font_put_extra): Expose externally.
12594
12595 * font.h (font_put_extra): Move declaration from font.c.
12596
12597 * font.c (Ffont_get): Use font driver to determine otf capability.
12598 (adjust_anchor): Check if driver defines anchor_point before using.
12599
12600 * w32font.c (w32font_open): Handle size, height and pixel_size better.
12601 (w32font_draw): Use options.
12602 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
12603 Fix detection of truetype fonts.
12604 (registry_to_w32_charset): Handle charsets other than iso8859-1
12605 expressed as lisp symbols.
12606 (w32_registry): Express charset as lisp symbol.
12607 (fill_in_logfont): Reverse pixel and point height logic.
12608 Don't set width here. Set quality to default.
12609
12610 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
12611 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
12612
12613 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
12614 Remove redundant loop and allocation.
12615
12616 * makefile.w32-in (font.o, w32font.o): New objects.
12617 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
12618 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
12619
12620 * xdisp.c (fill_composite_glyph_string): Make the first arg to
12621 STORE_XCHARB a valid l-value.
12622
12623 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
12624 calculations for non-Truetype fonts.
12625 (x_draw_glyph_string): Sync with xterm.c.
12626 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
12627 Remove redundant code.
12628 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
12629
12630 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
12631 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
12632
12633 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
12634 (x_to_w32_charset, w32_to_x_charset): Expose externally.
12635
12636 * w32font.c: New file for w32 font backend.
12637
12638 2008-02-01 Kenichi Handa <handa@m17n.org>
12639
12640 * term.c: Don't include "buffer.h" twice.
12641
12642 2008-02-01 Kenichi Handa <handa@m17n.org>
12643
12644 * character.c (Funibyte_string): New function.
12645 (syms_of_character): Defsubr it.
12646
12647 2008-02-01 Jason Rumney <jasonr@gnu.org>
12648
12649 * w32term.c [USE_FONT_BACKEND]:
12650 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
12651 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
12652 (x_draw_glyph_string, x_draw_glyph_string_foreground)
12653 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
12654 (x_free_frame_resources): Sync with xterm.c.
12655
12656 2008-02-01 Andreas Schwab <schwab@suse.de>
12657
12658 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
12659 char-table size.
12660
12661 2008-02-01 Kenichi Handa <handa@m17n.org>
12662
12663 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
12664
12665 2008-02-01 Kenichi Handa <handa@m17n.org>
12666
12667 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
12668 font_otf_gpos, add font_drive_otf.
12669
12670 * fontset.c (fontset_find_font): Pay attention to font size
12671 specified for a font.
12672 (reorder_font_vector): Check contents of font_def.
12673
12674 * font.c (struct otf_list): Delete it.
12675 (otf_list): Make it a lisp variable.
12676 (otf_open): Use lispy otf_list.
12677 (generate_otf_features): Rename from parse_gsub_gpos_spec.
12678 (check_otf_features): New function.
12679 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
12680 New functions.
12681 (font_drive_otf): New function merging font_otf_gsub and
12682 font_otf_gpos.
12683 (font_open_for_lface): New arg spec. Change argument order.
12684 (font_load_for_face): Adjust for the change of font_open_for_lface.
12685 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
12686 Ffont_otf_gpos.
12687 (syms_of_font): Staticpro otf_list. Delete defsubr of
12688 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
12689
12690 * xfaces.c (set_font_frame_param): Adjust for the change of
12691 font_open_for_lface.
12692
12693 * font.h (font_open_for_lface): Adjust prototype.
12694 (struct font_driver): Delete members otf_gsub and otf_gpos, add
12695 member otf_drive.
12696 (font_otf_gsub, font_otf_gpos): Delete externs.
12697 (font_drive_otf): Extern it.
12698
12699 2008-02-01 Kenichi Handa <handa@m17n.org>
12700
12701 * font.c (font_at): If the window W is not on a window system,
12702 return Qnil.
12703
12704 * coding.c (produce_chars, encode_coding): Don't call
12705 insert_from_gap if no characters to produce.
12706
12707 2008-02-01 Kenichi Handa <handa@m17n.org>
12708
12709 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
12710 Fclear_face_cache.
12711
12712 * xfaces.c (face_for_font): Check also face->font==font->font.font.
12713
12714 2008-02-01 Miles Bader <miles@gnu.org>
12715
12716 * emacs.c (main): Change default value of `enable_font_backend' to 1.
12717 Parse "--disable-font-backend" option.
12718 (standard_args): Add "--disable-font-backend" option.
12719
12720 2008-02-01 Kenichi Handa <handa@m17n.org>
12721
12722 * fontset.c (fontset_find_font): New function.
12723 (fontset_font): Use fontset_find_font.
12724 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
12725 Register the specified font for all Latin characters.
12726 (new_fontset_from_font): Register the specified font for all Latin
12727 characters.
12728 (dump_fontset): For a realized fontset, include the base fontset
12729 name in the returned vector.
12730
12731 2008-02-01 Kenichi Handa <handa@m17n.org>
12732
12733 * character.h (CHAR_STRING): Cast C to unsigned on calling
12734 char_string.
12735
12736 * character.c (char_string): Type of arg C changed to unsigned.
12737 Signal an error if C is an invalid character code.
12738
12739 * editfns.c (general_insert_function, Fchar_to_string):
12740 Use CHARACTERP, not INTEGERP.
12741
12742 2008-02-01 Kenichi Handa <handa@m17n.org>
12743
12744 * character.h (MIN_MULTIBYTE_LEADING_CODE)
12745 (MAX_MULTIBYTE_LEADING_CODE): New macros.
12746
12747 * regex.c (analyse_first): Fix for multibyte characters in "case
12748 charset:" and "case categoryspec:".
12749
12750 2008-02-01 Andreas Schwab <schwab@suse.de>
12751
12752 * Makefile.in (LIBES): Move standard libraries to the end.
12753
12754 2008-02-01 Kenichi Handa <handa@m17n.org>
12755
12756 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
12757 nonzero, don't shrink the buffer nextb.
12758
12759 * buffer.h (struct buffer_text): New member inhibit_shrinking.
12760
12761 * coding.c (coding_alloc_by_making_gap): New arg offset.
12762 (alloc_destination): Call coding_alloc_by_making_gap with the arg
12763 offset.
12764 (decode_coding_iso_2022): Update coding->safe_charsets.
12765 (decode_coding_gap): Temporarily set
12766 current_buffer->text->inhibit_shrinking to 1.
12767
12768 2008-02-01 Kenichi Handa <handa@m17n.org>
12769
12770 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
12771 indexing into elements of s->cmp and s->char2b.
12772
12773 2008-02-01 Juanma Barranquero <lekktu@gmail.com>
12774
12775 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
12776
12777 2008-02-01 Kenichi Handa <handa@m17n.org>
12778
12779 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
12780 target_multibyte instead of multibyte.
12781 (re_match_2_internal): Call bcmp_translate with target_multibyte.
12782 (bcmp_translate): Change the argument name from multibyte to
12783 target_multibyte.
12784
12785 2008-02-01 Kenichi Handa <handa@m17n.org>
12786
12787 These changes are to compile a regexp into a pattern that can be
12788 used both for multibyte and unibyte targets.
12789
12790 * Makefile.in (search.o): Depend on charset.h.
12791
12792 * character.c (multibyte_char_to_unibyte_safe): New function.
12793
12794 * search.c: Include "charset.h".
12795 (compile_pattern_1): Delete argument multibyte. Don't set
12796 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
12797 (compile_pattern): Don't compare cp->buf.target_multibyte.
12798 Compare cp->buf.charset_unibyte.
12799 (compile_pattern): Set cp->buf.target_multibyte.
12800
12801 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
12802
12803 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
12804
12805 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
12806 multibyte. Change callers.
12807 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
12808 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
12809 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
12810 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
12811 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
12812 (regex_compile): Make the compiled pattern usable both for
12813 multibyte and unibyte targets.
12814 (analyse_first): Make the fastmap usable both for multibyte and
12815 unibyte targets.
12816 (TRANSLATE_VIA_MULTIBYTE): Delete.
12817 (re_match_2_internal): Pay attention to the case that the
12818 multibyteness of bufp and target may be different.
12819
12820 2008-02-01 Kenichi Handa <handa@m17n.org>
12821
12822 * xdisp.c (x_produce_glyphs): When a font is not found, make the
12823 empty box occupy at least one column width.
12824
12825 2008-02-01 Miles Bader <miles@gnu.org>
12826
12827 * Makefile.in: Remove redundant HAVE_XFT clause.
12828
12829 2008-02-01 Kenichi Handa <handa@m17n.org>
12830
12831 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
12832
12833 2008-02-01 Kenichi Handa <handa@m17n.org>
12834
12835 * fontset.c (Finternal_char_font): Fix for the case of POSITION
12836 being nil.
12837
12838 2008-02-01 Kenichi Handa <handa@m17n.org>
12839
12840 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
12841
12842 2008-02-01 Kenichi Handa <handa@m17n.org>
12843
12844 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
12845
12846 2008-02-01 Kenichi Handa <handa@m17n.org>
12847
12848 * search.c (simple_search): Fix previous change.
12849
12850 2008-02-01 Kenichi Handa <handa@m17n.org>
12851
12852 * xftfont.c (ftfont_font_format): Extern declaration.
12853
12854 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
12855
12856 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
12857 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
12858
12859 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
12860 (ftfont_font_format): Fix previous change.
12861
12862 * font.h (Ffont_xlfd_name): EXFUN it.
12863
12864 * font.c (font_parse_xlfd): Fix the array size of `f'.
12865 (register_font_driver): Use EQ to compare driver->type.
12866
12867 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
12868 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
12869 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
12870
12871 2008-02-01 Kenichi Handa <handa@m17n.org>
12872
12873 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
12874 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
12875
12876 2008-02-01 Kenichi Handa <handa@m17n.org>
12877
12878 * xfont.c (xfont_open): Set font->format.
12879
12880 * xftfont.c (xftfont_open): Set font->format.
12881
12882 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
12883 (ftfont_list): Include FC_FONTFORMAT in FcObject.
12884 (ftfont_open): Set font->format.
12885 (ftfont_font_format): New function.
12886
12887 * font.h (struct font): New member format.
12888
12889 * font.c (Qopentype): New variable.
12890 (syms_of_font): Defsym it.
12891 (Fquery_font): Change the format of the last element of the return
12892 value.
12893
12894 2008-02-01 Kenichi Handa <handa@m17n.org>
12895
12896 * xfns.c (xic_create_xfontset): Try the default fontset name as a
12897 last resort.
12898
12899 2008-02-01 Kenichi Handa <handa@m17n.org>
12900
12901 * coding.c (detect_coding_charset): Fix detection of multi-byte
12902 charset.
12903
12904 2008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
12905
12906 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
12907
12908 2008-02-01 Kenichi Handa <handa@m17n.org>
12909
12910 * xdisp.c (get_next_display_element): Set it->face_id for the
12911 first component of a composition.
12912 (x_produce_glyphs): Check if the font is changed or not for composition.
12913
12914 2008-02-01 Kenichi Handa <handa@m17n.org>
12915
12916 * fontset.c (Qlatin): New variable.
12917 (syms_of_fontset): Define it as a lisp symbol.
12918 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
12919
12920 2008-02-01 Kenichi Handa <handa@m17n.org>
12921
12922 * font.c (font_unparse_fcname): Pay attention to the case that
12923 some of font property is a null string.
12924
12925 2008-02-01 Kenichi Handa <handa@m17n.org>
12926
12927 * term.c: Include "composite.h".
12928 (encode_terminal_code): Output all components of composition.
12929 Check the size of encode_terminal_src.
12930 (produce_glyphs): For composition, call produce_composite_glyph.
12931 (append_composite_glyph, produce_composite_glyph): New functions.
12932
12933 * xdisp.c (x_produce_glyphs): In handling composition, if a font
12934 is not found, get font_info from the current ascii face.
12935
12936 2008-02-01 Kenichi Handa <handa@m17n.org>
12937
12938 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
12939 buffer-file-name to Qnil before calling insert_from_buffer.
12940
12941 * font.c (font_unparse_fcname): Pay attention to the case that
12942 foundry is a null string.
12943
12944 2008-02-01 Kenichi Handa <handa@m17n.org>
12945
12946 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
12947
12948 * font.c (Qunicode_sip): New variable.
12949 (syms_of_font): Declare it as a Lisp symbol.
12950
12951 * font.h (Qunicode_sip): Extern it.
12952
12953 2008-02-01 Kenichi Handa <handa@m17n.org>
12954
12955 * composite.c (get_composition_id): Pay attention to TAB component.
12956
12957 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
12958 TAB. Adjust for the change of s->char2b which always points to
12959 the first element of allocated memory.
12960
12961 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
12962
12963 * xdisp.c (handle_composition_prop): Set it->c to the first
12964 non-TAB component.
12965 (fill_composite_glyph_string): Change argument.
12966 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
12967 (x_produce_glyphs): Fix handling of left/right padding.
12968
12969 2008-02-01 Kenichi Handa <handa@m17n.org>
12970
12971 * coding.c (detect_coding_system): Fix for handling off
12972 inhibit_iso_escape_detection. Fix for the case that no coding
12973 system is defined for a specific coding category.
12974
12975 2008-02-01 Kenichi Handa <handa@m17n.org>
12976
12977 * font.c (font_matching_entity): Delete unused local var.
12978
12979 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
12980 opening a font.
12981
12982 * fileio.c (Finsert_file_contents): On recovering a file, assume
12983 Unix-like eol.
12984 (choose_write_coding_system): On auto-saving a file, force
12985 Unix-like eol.
12986
12987 * coding.c (setup_coding_system): Fix setting of
12988 coding->common_flags based on eol_type.
12989 (coding_inherit_eol_type): If PARENT is not nil, be sure to
12990 inherit from it.
12991
12992 2008-02-01 Kenichi Handa <handa@m17n.org>
12993
12994 * alloc.c (NSTATICS): Increas to 0x600.
12995
12996 2008-02-01 Kenichi Handa <handa@m17n.org>
12997
12998 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
12999 (ftfont_list): Don't check :name property.
13000 (ftfont_match): New function.
13001 (ftfont_pattern_entity): If the pattern doesn't contain
13002 FC_SPACING, don't assume FC_MONO.
13003
13004 * font.h (struct font_driver): New member `match'.
13005 (font_update_drivers): Adjust prototype.
13006
13007 * font.c (font_parse_fcname, font_parse_name): Don't change :name
13008 property of FONT.
13009 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
13010 them unconditionally.
13011 (font_matching_entity): New function.
13012 (font_open_by_name): Try font_matching_entity if exact match is
13013 not found.
13014 (font_update_drivers): Delete the arg FONT. Return a list of
13015 actually used backends. Don't free faces, font caches here.
13016 Don't store data in frame parameters. Don't call x_set_font.
13017 (Ffont_spec): Store :name property as is.
13018 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
13019 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
13020 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
13021 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
13022 Call font->driver->otf_gsub instead of font_otf_gsub.
13023
13024 * frame.c (x_set_font_backend): Do more works that were done in
13025 font_update_drivers before.
13026
13027 * xfont.c (xfont_match): New function.
13028 (xfont_driver): Set xfont_driver.match to xfont_match.
13029 (xfont_draw): Set font in GC if necessary.
13030
13031 * ftxfont.c (ftxfont_match): New function.
13032 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
13033
13034 * xftfont.c (xftfont_match): New function.
13035 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
13036
13037 2008-02-01 Kenichi Handa <handa@m17n.org>
13038
13039 * font.h (struct font): New member scalable.
13040 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
13041 (font_otf_gsub): Adjust prototype.
13042
13043 * font.c (font_otf_capability): Fix handling of the default langsys.
13044 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
13045 Check the contents of SPEC.
13046 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
13047 (check_gstring): New function.
13048 (REPLACEMENT_CHARACTER): New macro.
13049 (font_otf_gsub): New arg alternate_subst. Be sure to set all
13050 glyph codes of GSTRING.
13051 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
13052 (font_prepare_composition): Set cmp->glyph_len.
13053 (font_open_entity): Set font->scalable.
13054 (Ffont_get): Handle :otf property.
13055 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
13056 functions.
13057 (Fquery_font): Use font->font.full_name.
13058 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
13059 Sfont_otf_alternates.
13060
13061 * ftfont.c (ftfont_open): Set font->font.full_name and
13062 font->font.name properly. Fix calculation of font->font.height
13063 and font->min_width.
13064
13065 * ftxfont.c (ftxfont_create_gcs): New function.
13066 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
13067 (ftxfont_draw_backgrond): Fix filling region.
13068 (ftxfont_default_fid): New function.
13069 (ftxfont_open): Set xfont->fid to the return value of
13070 ftxfont_default_fid.
13071 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
13072 (ftxfont_done_face): Free only GCs that are created by
13073 ftxfont_create_gcs.
13074 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
13075
13076 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
13077 Clip to src->width, etc (not src->clip_XXX).
13078
13079 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
13080 FontBackend frame parameter.
13081
13082 2008-02-01 Kenichi Handa <handa@m17n.org>
13083
13084 * font.h (struct font_driver_list): New member `on'.
13085 (Fclear_font_cache): EXFUN it.
13086 (font_update_drivers): Extern it.
13087
13088 * font.c (font_unparse_fcname): Fix typo (swidth->width).
13089 (font_list_entities): Check driver_list->on.
13090 (register_font_driver): Initalize `on' member to 0.
13091 (font_update_drivers): New function.
13092 (Fclear_font_cache): Check driver_list->on.
13093
13094 * frame.h (Qfont_backend): Extern it.
13095 (x_set_font_backend): Extern it.
13096
13097 * frame.c (Qfont_backend): New variable.
13098 (frame_parms): New element for font-backend.
13099 (x_set_font_backend): New function.
13100
13101 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
13102 FontBackend frame parameter.
13103 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
13104 x_set_font_backend.
13105
13106 * xfont.c (xfont_list): Don't try listing by :name property if the
13107 name is not for XLFD.
13108
13109 2008-02-01 Kenichi Handa <handa@m17n.org>
13110
13111 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
13112 (LGLYPH_SET_TO): New macros.
13113 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
13114 element of G is vector or not.
13115 (font_at): Extern it.
13116
13117 * font.c: Include window.h.
13118 (font_lispy_object): New function.
13119 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
13120 end of valid glyph.
13121 (font_close_object): Fix getting (struct font *).
13122 (font_at): New function.
13123 (Ffont_get): If FONT is a font-object, get entity from it.
13124 (Ffont_make_gstring): Initialize elements of glyphs with nil.
13125 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
13126 range check.
13127 (Ffont_at): New function.
13128 (syms_of_font): Defsubr Sfont_at.
13129
13130 * xdisp.c (it_props): Move the entry for Qauto_composed to just
13131 before the entry for Qcomposition.
13132 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
13133 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
13134 the font in gstring.
13135 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
13136 LGLYPH_FORM (g) to detect the end of valid glyph.
13137 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
13138 we are composing with gstring.
13139
13140 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
13141 Check if adjustment is vector or not.
13142
13143 * Makefile.in (font.o): Make it depends on window.h.
13144
13145 2008-02-01 Kenichi Handa <handa@m17n.org>
13146
13147 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
13148 adjustment is vector or not.
13149
13150 2008-02-01 Miles Bader <miles@gnu.org>
13151
13152 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
13153
13154 2008-02-01 Kenichi Handa <handa@m17n.org>
13155
13156 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
13157 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
13158 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
13159
13160 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
13161 (DEVICE_DELTA): Fix typo.
13162 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
13163 LGLYPH format.
13164
13165 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
13166 the change of LGLYPH format.
13167
13168 2008-02-01 Kenichi Handa <handa@m17n.org>
13169
13170 * ftfont.c (ftfont_list): Fix typo.
13171 (ftfont_build_basic_charsets): Don't include letters with diacritics.
13172
13173 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
13174
13175 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
13176
13177 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
13178 xftface_info is non-NULL.
13179
13180 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
13181
13182 * ftfont.c (ftfont_list): Move misplaced #endif.
13183
13184 2008-02-01 Kenichi Handa <handa@m17n.org>
13185
13186 * ftfont.c (ftfont_list): Pay attention to the case that
13187 FC_CAPABILITY is not defined.
13188
13189 2008-02-01 Kenichi Handa <handa@m17n.org>
13190
13191 * xftfont.c (xftfont_open): Set charset related members to -1.
13192
13193 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
13194 QCname.
13195 (ftfont_open): Set charset related members to -1.
13196
13197 * fontset.c (Votf_script_alist): New variable.
13198 (syms_of_fontset): Initialize it.
13199 (fontset_font): Delete unused variable.
13200
13201 * fontset.h (Votf_script_alist): Extern it.
13202
13203 * font.c (font_find_for_lface): Optimize code.
13204
13205 * font.h (font_close_object, font_merge_old_spec): Extern them.
13206
13207 2008-02-01 Kenichi Handa <handa@m17n.org>
13208
13209 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
13210 (syms_of_font): Initialize them.
13211 (font_pixel_size): Allow float value in dpi.
13212 (font_prop_validate_type): Delete.
13213 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
13214 Change caller.
13215 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
13216 (font_prop_validate_extra): Delete.
13217 (font_prop_validate_spacing): New function.
13218 (font_property_table): Add elements for all known properties.
13219 (get_font_prop_index): Rename from check_font_prop_name. New
13220 argument FROM. Change caller.
13221 (font_prop_validate): Validate all known properties.
13222 (font_put_extra): Delete argument force. Change caller.
13223 (font_expand_wildcards): Make it static. Fix the way of shrinking
13224 the possible range.
13225 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
13226 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
13227 Change caller.
13228 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
13229 (font_parse_fcname): Delete argument merge. Fix parsing of point
13230 size. Don't validate properties values here. Change caller.
13231 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
13232 (font_open_by_name): Delete unused variable.
13233 (Ffont_spec): Likewise. Validate property values.
13234 (Ffont_match_p): New function.
13235
13236 * font.h (QCscalable): Extern it.
13237 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
13238
13239 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
13240
13241 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
13242 (xfont_list_pattern): New function.
13243 (xfont_list): Use xfont_list_pattern.
13244
13245 2008-02-01 Kenichi Handa <handa@m17n.org>
13246
13247 * font.h (Flist_fonts): EXFUN it.
13248
13249 2008-02-01 Jason Rumney <jasonr@gnu.org>
13250
13251 * w32term.c (w32_initialize): Add back smoothing_type and
13252 smoothing_enabled definitions.
13253
13254 2008-02-01 Kenichi Handa <handa@m17n.org>
13255
13256 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
13257 s->face->font on determining underline position.
13258
13259 2008-02-01 Kenichi Handa <handa@m17n.org>
13260
13261 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
13262 (font_has_char): Accept font-object too.
13263 (font_find_for_lface): Try at first with a size specified in face.
13264
13265 2008-02-01 Kenichi Handa <handa@m17n.org>
13266
13267 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
13268 font_open_by_name.
13269
13270 2008-02-01 Kenichi Handa <handa@m17n.org>
13271
13272 * font.h (QCspacing, QCdpi): Extern them.
13273 (enum font_spacing): New enum.
13274 (FONT_PIXEL_SIZE_QUANTUM): New macro.
13275
13276 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
13277 (QCspacing, QCdpi): New variables.
13278 (syms_of_font): Initialize them.
13279 (font_pixel_size): New function.
13280 (font_put_extra): New function.
13281 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
13282 in FONT_EXTRA.
13283 (font_parse_fcname): Handle enumerated values (e.g. bold).
13284 Fix handling font size. Add QCname property that contains only
13285 unknown properties.
13286 (font_score): Change argument. Change caller. Pay attention to
13287 FONT_PIXEL_SIZE_QUANTUM.
13288 (font_sort_entites, font_list_entities, font_find_for_lface)
13289 (font_open_for_lface, font_open_by_name): Fix handling of font size.
13290 (Ffont_spec): Add QCname property that contains only unknown properties.
13291
13292 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
13293 include weight in listing pattern, instead check weight of each
13294 listed font. Don't include scalable in pattern. Pay attention to
13295 FONT_PIXEL_SIZE_QUANTUM.
13296
13297 2008-02-01 Kenichi Handa <handa@m17n.org>
13298
13299 * font.c (font_parse_fcname): Fix parsing of point-size.
13300 (font_unparse_fcname): Produce symbolic names for style properties.
13301 (font_list_entities): Handle float size correctly.
13302 (font_open_by_name): Prefer `normal' property values if the name
13303 doesn't specify them.
13304
13305 * fontset.c (Finternal_char_font): Use font_get_name, not
13306 Ffont_xlfd_name.
13307
13308 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
13309 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
13310 pattern. Don't force scalable.
13311
13312 * xftfont.c (xftfont_open): For generating a name, start from
13313 96-byte buffer.
13314
13315 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
13316
13317 * frame.h (x_new_fontset2): Fix prototype.
13318
13319 2008-02-01 Kenichi Handa <handa@m17n.org>
13320
13321 * font.h (struct font_driver): Delete member parse_name.
13322 (font_match_p, font_get_spec, font_parse_fcname)
13323 (font_unparse_fcname): Extern them.
13324 (font_get_name): Adjust prototype.
13325
13326 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
13327 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
13328 (font_expand_wildcards): Fix handling ENCODING field. Avoid
13329 unnecessary checks for weight, slant, and swidth.
13330 (font_parse_fcname): New function.
13331 (font_unparse_fcname): New function.
13332 (font_parse_name): New function.
13333 (font_match_p): New function.
13334 (font_get_name): Change return value to Lisp string.
13335 (font_get_spec): New function.
13336 (Qunspecified, Qignore_defface): Don't extern them.
13337 (font_find_for_lface): Assume that LFACE is fully specified.
13338 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
13339 object, use it for FACE.
13340 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
13341 driver->parse_name.
13342 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
13343
13344 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
13345 prototype.
13346
13347 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
13348 argument F. Don't call Fnew_fontset. Instead, directly call
13349 make_fontset.
13350
13351 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
13352
13353 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
13354 of x_new_fontset2.
13355
13356 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
13357 (Qsans__serif): New variables.
13358 (ftfont_generic_family_list): New variable.
13359 (syms_of_ftfont): Initialize the above variables.
13360 (ftfont_pattern_entity): Delete argument NAME.
13361 (ftfont_list_generic_family): New function.
13362 (ftfont_parse_name): Delete this function.
13363 (ftfont_list): Try generic family only when FcFontList found no font.
13364 (ftfont_list_family): Fix args to FcObjectSetBuild.
13365
13366 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
13367 object in attrs[LFACE_FONT_INDEX].
13368 (set_lface_from_font_name): Cancel all changes for font-backend.
13369 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
13370 function.
13371 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
13372 font object in QCfont attribute.
13373 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
13374 (realize_default_face) [USE_FONT_BACKEND]: Call
13375 set_lface_from_font_and_fontset.
13376
13377 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
13378 "fixed", and signal error here if no suitable font was found.
13379
13380 * xfont.c (xfont_parse_name): Delete this function.
13381
13382 * xftfont.c (xftfont_open): Change coding style of error
13383 handling. Generate fontconfig's fontname pattern.
13384
13385 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
13386 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
13387
13388 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
13389 Both args FONTSET and FONT_OBJECT must be existing ones.
13390
13391 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13392
13393 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
13394
13395 2008-02-01 Kenichi Handa <handa@m17n.org>
13396
13397 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
13398
13399 * font.h (struct font): Fix typo.
13400
13401 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
13402 XLFD_XXX_INDEX.
13403 (enum xlfd_field_mask): New enum.
13404 (intern_font_field): Changed argument. Change caller. If digits
13405 are followed by non-digits, return a symbol.
13406 (font_expand_wildcards): New function.
13407 (font_parse_xlfd): Fix wildcard handling.
13408 (Ffont_spec): If :name is specified, reflect the info in the other
13409 properties.
13410
13411 * ftfont.c (ftfont_pattern_entity): Fix typo.
13412 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
13413 locale.
13414
13415 2008-02-01 Kenichi Handa <handa@m17n.org>
13416
13417 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
13418
13419 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
13420 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
13421 registry doesn't specify encoding part.
13422 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
13423 (font_open_by_name): At first try parsing the name.
13424 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
13425 as Lisp symbols.
13426
13427 * fontset.c (reorder_font_vector): Pay attention to the case that
13428 the 3rd element of font_def is nil.
13429 (fontset_font): For the default fontset, append one more fontset
13430 elements for a script-based font specification. Don't add script
13431 attribute on finding a font.
13432 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
13433 font name.
13434 (fontset_ascii_font): If a font can't be opened, return nil.
13435
13436 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
13437 (ftfont_pattern_entity): New function.
13438 (ftfont_get_cache): Assume that freetype_font_cache is already
13439 initialized.
13440 (ftfont_list): Handle the case that a file is specified in font
13441 name. Use ftfont_pattern_entity to generate entities.
13442 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
13443 (syms_of_ftfont): Initialize freetype_font_cache.
13444
13445 * xftfont.c (xftfont_open): Make the font name fontconfig's
13446 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
13447 (xftfont_close): Free font->font.name if not NULL.
13448
13449 * xfont.c (xfont_list): If script is specified for a font, return
13450 null_vector.
13451 (xfont_list_family): Declare argument type.
13452
13453 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
13454 name, set LFACE_FONT (lface) to nil.
13455
13456 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
13457 return Qnil.
13458
13459 2008-02-01 Kenichi Handa <handa@m17n.org>
13460
13461 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
13462 (standard_args): Add "-enable-font-backend".
13463
13464 2008-02-01 Kenichi Handa <handa@m17n.org>
13465
13466 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
13467 (struct xftdraw_list, xftdraw_list): Delete them.
13468 (register_xftdraw, check_xftdraw): Delete them.
13469 (xftfont_prepare_face): Don't call register_xftdraw.
13470 (xftfont_done_face): Don't call check_xftdraw.
13471 (xftfont_draw): Get background color only when with_background is
13472 nonzero.
13473
13474 * xfont.c (xfont_encode_char): Fix calculation of char2b.
13475
13476 2008-02-01 Kenichi Handa <handa@m17n.org>
13477
13478 These changes are for the new font handling codes.
13479
13480 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
13481 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
13482 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
13483 (FONTSRC, FONTOBJ): New variables.
13484 (obj): Add $(FONTOBJ).
13485 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
13486 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
13487 @LIBOTF_LIBS@.
13488 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
13489 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
13490
13491 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
13492
13493 * character.h (Vscript_representative_chars): Extern it.
13494
13495 * character.c (Vscript_representative_chars): New variable.
13496 (syms_of_character): Declare it as a Lisp variable.
13497
13498 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
13499 enable_font_backend is nonzero, accept the composition method
13500 COMPOSITION_WITH_GLYPH_STRING.
13501
13502 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
13503 enumeration COMPOSITION_WITH_GLYPH_STRING.
13504
13505 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
13506 members clip_x, clip_y, clip_width, and clip_height.
13507 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
13508
13509 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
13510 --enable-font-backend. Call syms_of_font.
13511
13512 * fns.c (assoc_no_quit): New function.
13513
13514 * fontset.h (FONT_INFO_FROM_FACE): New macro.
13515 (face_for_font, new_fontset_from_font)
13516 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
13517
13518 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
13519 (fontset_font, fontset_ascii, face_for_char)
13520 (make_fontset_for_ascii_face, Ffont_info)
13521 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
13522 is nonzero, use font-backend mechanism.
13523 (find_font_encoding): Make it non-static.
13524 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
13525 New functions.
13526
13527 * frame.h (struct frame): New members resx and resy.
13528 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
13529 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
13530
13531 * frame.c [USE_FONT_BACKEND]: Include "font.h".
13532 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
13533
13534 * lisp.h (assoc_no_quit): Extern it.
13535
13536 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
13537 Through out the file, use FONT_INFO_FROM_FACE instead of
13538 FONT_INFO_FROM_ID, use get_per_char_metric instead of
13539 rif->per_char_metric.
13540 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
13541 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
13542 (get_glyph_face_and_encoding, fill_composite_glyph_string)
13543 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
13544 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
13545 nonzero, use font-backend mechanism.
13546 (get_per_char_metric): New function.
13547
13548 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
13549 (set_lface_from_font_name)
13550 (set_font_frame_param, free_realized_face)
13551 (prepare_face_for_display, clear_face_gcs)
13552 (Finternal_set_font_selection_order, realize_x_face)
13553 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
13554 font-backend mechanism.
13555 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
13556 (load_face_font) [USE_FONT_BACKEND]: Abort.
13557 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
13558 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
13559
13560 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
13561 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
13562 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
13563 nonzero, register all available font drivers. Call
13564 x_default_font_parameter for deciding a font.
13565 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
13566
13567 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
13568 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
13569 (x_set_glyph_string_clipping_exactly)
13570 (x_compute_glyph_string_overhangs)
13571 (x_draw_glyph_string_foreground)
13572 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
13573 (x_free_frame_resources) [USE_FONT_BACKEND]: If
13574 enable_font_backend is nonzero, use font-backend mechanism.
13575 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
13576
13577 2008-02-01 Kenichi Handa <handa@m17n.org>
13578
13579 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
13580 system_eol_type.
13581 (syms_of_coding): Initialize system_eol_type.
13582
13583 * process.c (Fset_process_coding_system): Inherit system's eol
13584 format if necessary.
13585
13586 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13587
13588 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
13589
13590 2008-02-01 Kenichi Handa <handa@m17n.org>
13591
13592 * coding.c (decode_eol): Pay attention to buffer relocation in
13593 del_range_2.
13594 (decode_coding): Call decode_eol before restoring undo_list.
13595
13596 2008-02-01 Kenichi Handa <handa@m17n.org>
13597
13598 * charset.c (Fdefine_charset_internal): Fix setting of
13599 emacs_mule_bytes.
13600
13601 2008-02-01 Kenichi Handa <handa@m17n.org>
13602
13603 * keyboard.c (read_char): Check if C is a character or not before
13604 looking up Vkeyboard_translate_table.
13605
13606 2008-02-01 Kenichi Handa <handa@m17n.org>
13607
13608 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
13609 condition to terminate the loop.
13610
13611 2008-02-01 Kenichi Handa <handa@m17n.org>
13612
13613 * coding.c (produce_composition): Compare charbuf[i] instead of
13614 args[i] against 0.
13615 (Fterminal_coding_system): Use EQ to compare Lisp objects.
13616
13617 2008-02-01 Kenichi Handa <handa@m17n.org>
13618
13619 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
13620 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
13621 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
13622 detect_coding.
13623 (emacs_mule_char): Handle old style (Emacs 20) component character
13624 of a composition.
13625 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
13626 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
13627 composition rule.
13628 (decode_coding_emacs_mule): Handle invalid bytes correctly.
13629
13630 2008-02-01 Kenichi Handa <handa@m17n.org>
13631
13632 * coding.c (encode_coding_ccl): Allocate destination dynamically
13633 when necessary.
13634
13635 2008-02-01 Kenichi Handa <handa@m17n.org>
13636
13637 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
13638 the loop. When quitted, show a proper error message.
13639
13640 2008-02-01 Kenichi Handa <handa@m17n.org>
13641
13642 * xterm.c (x_set_glyph_string_clipping_exactly): Set
13643 src->clip_head and src->clip_tail temporarily instead of src->hl.
13644
13645 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
13646 character sequence.
13647 (Fccl_execute_on_string): Use ASET, not XSET.
13648
13649 2008-02-01 Kenichi Handa <handa@m17n.org>
13650
13651 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
13652
13653 2008-02-01 Kenichi Handa <handa@m17n.org>
13654
13655 * coding.c (decode_coding): Fix the condition of terminating the
13656 decoding loop.
13657
13658 2008-02-01 Kenichi Handa <handa@m17n.org>
13659
13660 * data.c (Faset): On setting a character bigger than 255 in a
13661 unibyte string, signal an error instead of make the string multibyte.
13662
13663 2008-02-01 Kenichi Handa <handa@m17n.org>
13664
13665 * charset.c (map_charset_chars): Fix for ascii-compatible charset
13666 made by a mapping table.
13667
13668 2008-02-01 Kenichi Handa <handa@m17n.org>
13669
13670 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
13671 not.
13672 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
13673 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
13674
13675 * xterm.c (x_draw_composite_glyph_string_foreground): Check
13676 s->face is NULL or not.
13677
13678 2008-02-01 Kenichi Handa <handa@m17n.org>
13679
13680 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
13681 (x_draw_glyph_string): Fix drawing of right_overhang and
13682 left_overhang around/on cursor.
13683
13684 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
13685
13686 2008-02-01 Kenichi Handa <handa@m17n.org>
13687
13688 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
13689
13690 2008-02-01 Kenichi Handa <handa@m17n.org>
13691
13692 * coding.c (Fdefine_coding_system_internal)
13693 (Fdefine_coding_system_alias): Avoid a duplicated element in
13694 Vcoding_system_alist.
13695
13696 2008-02-01 Kenichi Handa <handa@m17n.org>
13697
13698 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
13699
13700 * coding.c (Qcoding_system_define_form): New variable.
13701 (syms_of_coding): Intern and staticpro it.
13702 (Fcoding_system_p): Check Qcoding_system_define_form.
13703 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
13704
13705 * coding.h (CODING_SYSTEM_P): If ID is not available, call
13706 Fcoding_system_p.
13707 (CHECK_CODING_SYSTEM): If ID is not available, call
13708 Fcheck_coding_system.
13709 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
13710 Try also Fcheck_coding_system.
13711
13712 2008-02-01 Kenichi Handa <handa@m17n.org>
13713
13714 * coding.c (code_conversion_restore): GCPRO arg.
13715
13716 2008-02-01 Kenichi Handa <handa@m17n.org>
13717
13718 * character.c (lisp_string_width): Check multibyteness of STRING.
13719
13720 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13721
13722 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
13723 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
13724 (decode_mac_font_name): Use decode_coding_c_string instead of
13725 decode_coding.
13726 (x_load_font): Initialize fontp->fontset to -1. Set
13727 fontp->encoding_type.
13728
13729 2008-02-01 Kenichi Handa <handa@m17n.org>
13730
13731 * search.c (search_buffer): Give up BM search on case-fold-search
13732 if one of a target character has a case-equivalence of different
13733 byte length even if that target charcter is an ASCII.
13734 (simple_search): Fix calculation of byte length of matched text.
13735 (boyer_moore): Fix handling of case-equivalent multibyte characters.
13736
13737 2008-02-01 Kenichi Handa <handa@m17n.org>
13738
13739 * coding.c (decode_coding): Fix handling of invalid bytes.
13740
13741 2008-02-01 Kenichi Handa <handa@m17n.org>
13742
13743 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
13744 Unicode characters.
13745
13746 2008-02-01 Kenichi Handa <handa@m17n.org>
13747
13748 * coding.c (encode_coding_object): If a pre-write-conversion
13749 function makes a new buffer, kill it.
13750
13751 2008-02-01 Kenichi Handa <handa@m17n.org>
13752
13753 * coding.c (QCascii_compatible_p): New variable.
13754 (syms_of_coding): Initialize it.
13755 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
13756 calling string_char.
13757 (record_conversion_result): Add `default:' case.
13758 (coding_charset_list): Delete unused variable `coding_type'.
13759 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
13760 property in the plist of the coding system.
13761 (Fcoding_system_put): Check QCascii_compatible_p.
13762
13763 2008-02-01 Miles Bader <miles@gnu.org>
13764
13765 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
13766 removed calculation of frame `f', as it's now used.
13767
13768 2008-02-01 Kenichi Handa <handa@m17n.org>
13769
13770 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
13771 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
13772 (UNIDATA): New variable.
13773 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
13774 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
13775 $(RUN_TEMACS) unconditionally.
13776
13777 2008-02-01 Kenichi Handa <handa@m17n.org>
13778
13779 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
13780 (admindir): New variable.
13781 ($(lispsource)international/charprop.el): New target.
13782
13783 2008-02-01 Miles Bader <miles@gnu.org>
13784
13785 * character.c (chars-in-region): Remove obsolete function.
13786 (syms_of_character): Remove its initialization.
13787
13788 2008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
13789
13790 * w32select.c (validate_coding_system)
13791 (setup_windows_coding_system): New functions.
13792 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
13793 setup_windows_coding_system.
13794 (setup_config, Fw32_get_clipboard_data): Use
13795 validate_coding_system.
13796 (Fx_selection_exists): Move call to setup_config to a place
13797 where signals are allowed.
13798
13799 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
13800 (Fcheck_coding_system): Add declarations.
13801
13802 2008-02-01 Kenichi Handa <handa@m17n.org>
13803
13804 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
13805
13806 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13807
13808 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
13809 string as the second argument for x_new_fontset.
13810
13811 2008-02-01 Kenichi Handa <handa@m17n.org>
13812
13813 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
13814 (encode_coding_object): Use safe_call instead of call2.
13815
13816 2008-02-01 Kenichi Handa <handa@m17n.org>
13817
13818 * fontset.c (Fset_fontset_font): Check family element of a given vector.
13819
13820 * Makefile.in (lisp): Include charprop.el.
13821
13822 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13823
13824 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
13825 Not sure if it's unnecessary.
13826
13827 2008-02-01 Steven Tamm <steventamm@mac.com>
13828
13829 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
13830 some possibly unnecessary fontset checking code that crashed
13831 when creating a new frame.
13832
13833 2008-02-01 Kenichi Handa <handa@m17n.org>
13834
13835 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
13836 lookup_face.
13837
13838 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
13839
13840 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
13841
13842 2008-02-01 Kenichi Handa <handa@m17n.org>
13843
13844 * coding.c: Cancel the change done in HEAD on 2008-02-01.
13845 (coding_charset_list): New function.
13846
13847 * coding.h (coding_charset_list): Extern it.
13848
13849 2008-02-01 Kenichi Handa <handa@m17n.org>
13850
13851 * fontset.c (Fset_fontset_font): Call find_font_encoding with
13852 concatenation of family and registry.
13853
13854 2008-02-01 Kenichi Handa <handa@m17n.org>
13855
13856 * character.h (BYTE8_STRING): Fix typo.
13857
13858 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
13859 string to multibyte (sync to HEAD).
13860
13861 * casefiddle.c (casify_region): Handle changes in byte-length
13862 using replace_range_2 (sync to HEAD).
13863
13864 2008-02-01 Andreas Schwab <schwab@suse.de>
13865
13866 * chartab.c (map_char_table): GCPRO table and arg.
13867
13868 2008-02-01 Kenichi Handa <handa@m17n.org>
13869
13870 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
13871 already at limit.
13872
13873 2008-02-01 Kenichi Handa <handa@m17n.org>
13874
13875 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
13876 instead of fast_c_string_match_ignore_case.
13877 (find_font_encoding): Change argument to Lisp_Object. Use
13878 fast_string_match_ignore_case instead of
13879 fast_c_string_match_ignore_case. Change caller.
13880
13881 2008-02-01 Kenichi Handa <handa@m17n.org>
13882
13883 * xdisp.c (get_next_display_element): In unibyte case, decide to
13884 display in octal form by checking a character by
13885 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
13886
13887 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
13888
13889 * character.c (unibyte_has_multibyte_table): New variable.
13890
13891 * character.h (unibyte_has_multibyte_table): Extern it.
13892 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
13893
13894 2008-02-01 Kenichi Handa <handa@m17n.org>
13895
13896 * coding.c (encode_coding_iso_2022): Fix handling of charset
13897 annotation.
13898
13899 2008-02-01 Kenichi Handa <handa@m17n.org>
13900
13901 * coding.c (setup_coding_system): If coding_system is nil, use
13902 Qundecided.
13903 (Fterminal_coding_system): Return nil if terminal coding system is
13904 `undecided'.
13905 (syms_of_coding): Define coding-system `undecided' here. Setup
13906 terminal_coding as `undecided'.
13907
13908 2008-02-01 Kenichi Handa <handa@m17n.org>
13909
13910 * xdisp.c (message_dolog, set_message_1): Call
13911 unibyte_char_to_multibyte with arg type int.
13912
13913 * lread.c (read1): Fix reading of a char-table.
13914
13915 * print.c (print_object): Include sub char-table in circularities
13916 detection.
13917
13918 2008-02-01 Kenichi Handa <handa@m17n.org>
13919
13920 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
13921 Append the found sequences in car of ARGS instead of prepending.
13922
13923 2008-02-01 Kenichi Handa <handa@m17n.org>
13924
13925 * fileio.c (report_file_error): Make a unibyte string from
13926 strerror (errorno).
13927 (Fsubstitute_in_file_name): Fix the arg to
13928 unibyte_char_to_multibyte. It is evaluated twice.
13929
13930 2008-02-01 Kenichi Handa <handa@m17n.org>
13931
13932 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
13933
13934 2008-02-01 Kenichi Handa <handa@m17n.org>
13935
13936 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
13937 BOM is not found.
13938 (detect_coding, detect_coding_system): Optimization for ISO-2022
13939 when no 8-bit data is found.
13940
13941 2008-02-01 Jason Rumney <jasonr@gnu.org>
13942
13943 * w32fns.c (x_to_w32_font): Update to use new coding struct.
13944
13945 2008-02-01 Kenichi Handa <handa@m17n.org>
13946
13947 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
13948 CHARS.
13949
13950 2008-02-01 Steven Tamm <steventamm@mac.com>
13951
13952 * macterm.c (mac_encode_char): Add charset argument and update
13953 to use encoding_type.
13954 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
13955 switch to pure fontset.
13956 (decode_mac_font_name): Temporarily remove decoding.
13957 (x_font_name_to_mac_font_name): Temporarily remove encoding.
13958 (x_load_font): Temporarily remove encoding.
13959
13960 2008-02-01 Kenichi Handa <handa@m17n.org>
13961
13962 * xfaces.c (Fface_font): If frame is not on a window system,
13963 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
13964 refer to face->font.
13965 (split_font_name_into_vector, build_font_name_from_vector)
13966 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
13967 when HAVE_WINDOW_SYSTEM is defined.
13968
13969 2008-02-01 Kenichi Handa <handa@m17n.org>
13970
13971 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
13972 (x_produce_glyphs): Fix setting of members of cmp in case
13973 cmp->glyph_len is zero.
13974
13975 * fontset.c (Fset_fontset_font): Fix docstring.
13976 (Ffontset_info): Make it backward compatible. New arg ALL.
13977
13978 2008-02-01 Kim F. Storm <storm@cua.dk>
13979
13980 * process.c (read_process_output): Grow decoding_buf when needed;
13981 this could cause a crash in allocate_string and compact_small_strings.
13982
13983 2008-02-01 Kenichi Handa <handa@m17n.org>
13984
13985 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
13986
13987 2008-02-01 Kenichi Handa <handa@m17n.org>
13988
13989 * coding.c (setup_coding_system): Set coding->common_flags
13990 correctly for raw-text.
13991 (consume_chars): On encoding unibyte text by raw-text, don't check
13992 multibyte form.
13993 (encode_coding): On encoding by raw-text, never use translation tables.
13994
13995 * fileio.c (e_write): Short cut for the case of no encoding.
13996
13997 2008-02-01 Kenichi Handa <handa@m17n.org>
13998
13999 * coding.c (detect_coding, detect_coding_system): Delete unused
14000 variables.
14001
14002 2008-02-01 Kenichi Handa <handa@m17n.org>
14003
14004 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
14005 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
14006
14007 2008-02-01 Kenichi Handa <handa@m17n.org>
14008
14009 * coding.c (Ffind_coding_systems_region_internal): Include
14010 raw-text and no-conversion in the result.
14011
14012 2008-02-01 Kenichi Handa <handa@m17n.org>
14013
14014 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
14015 (load_font_get_repertory): Delete unnecessary check of ENCODING of
14016 FONT_DEF.
14017 (font_def_arg, add_arg, from_arg, to_arg): New args.
14018 (set_fontset_font): Change argument.
14019 (Fset_fontset_font): Fix for the case that TARGET is a script
14020 name and charset name.
14021 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
14022
14023 2008-02-01 Kenichi Handa <handa@m17n.org>
14024
14025 * fontset.c (fontset_font): Rename from fontset_face. Change return
14026 value.
14027 (face_suitable_for_char_p, face_for_char): Adjust for the change
14028 of fontset_font.
14029 (make_fontset_for_ascii_face): Fix setting of the fontset element
14030 for ASCII.
14031 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
14032 to get a font name.
14033 (Ffontset_info): Adjust for the change of fontset_font.
14034
14035 * coding.c (emacs_mule_char): Check invalid code more rigidly.
14036
14037 * character.h (LEADING_CODE_LATIN_1_MIN)
14038 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
14039
14040 2008-02-01 Kenichi Handa <handa@m17n.org>
14041
14042 * editfns.c (check_translation): New function.
14043 (Ftranslate_region_internal): Handle M:N mapping.
14044
14045 2008-02-01 Kenichi Handa <handa@m17n.org>
14046
14047 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
14048
14049 2008-02-01 Kenichi Handa <handa@m17n.org>
14050
14051 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
14052 goto invalid_code.
14053 (decode_coding_iso_2022): Fix handling of invalid designation.
14054
14055 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
14056 after calling code_conversion_save.
14057
14058 2008-02-01 Kenichi Handa <handa@m17n.org>
14059
14060 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
14061
14062 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
14063
14064 * fontset.c: Include "intervals.h".
14065 (fontset_face): Fix comparing of Lisp_Objects.
14066 (free_face_fontset, new_fontset_from_font_name): Fix
14067 Lisp_Object/int mixup.
14068
14069 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
14070
14071 * coding.c: Add many prototypes for static functions.
14072 (get_translation_table): Allow max_lookup to be NULL.
14073 (decode_coding, Ffind_coding_systems_region_internal)
14074 (Funencodable_char_position, Fcheck_coding_systems_region): Call
14075 get_translation_table with max_lookup NULL.
14076
14077 2008-02-01 Kenichi Handa <handa@m17n.org>
14078
14079 * coding.c (get_translation_table): Declare it as Lisp_Object.
14080 (LOOKUP_TRANSLATION_TABLE): New macro.
14081 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
14082 instead of CHAR_TABLE_REF.
14083
14084 2008-02-01 Kenichi Handa <handa@m17n.org>
14085
14086 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
14087 annotation data format.
14088 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
14089 Change arguments FROM and TO to single argument NCHARS. Change caller.
14090 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
14091 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
14092 (decode_coding_ccl, decode_coding_charset): Pay attention to
14093 coding->charbuf_used.
14094 (get_translation): New function.
14095 (produce_chars): New arguments translation_table and last_block.
14096 Translate characters here. Return number of carryover chars.
14097 Change caller.
14098 (produce_composition): New argument pos. Change caller.
14099 Adjust for the change of annotation data format.
14100 (produce_charset, produce_annotation): Likewise.
14101 (decode_coding, encode_coding): Don't call translate_chars.
14102 (consume_chars): New arg translation_table. Change caller.
14103 (translate_chars): Delete.
14104 (syms_of_coding): Make translation-table's number of extra slots 2.
14105
14106 2008-02-01 Kenichi Handa <handa@m17n.org>
14107
14108 * search.c (simple_search): Fix setting this_pos_byte in backward
14109 search.
14110
14111 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
14112 byte sequence.
14113 (detect_coding_ccl): Fix setting of the variable valids.
14114
14115 2008-02-01 Kenichi Handa <handa@m17n.org>
14116
14117 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
14118
14119 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
14120
14121 * editfns.c (Ftranslate_region_internal): Rename from
14122 Ftranslate_region. Accept a char-table in TABLE.
14123 (syms_of_editfns): Defsubr Stranslate_region_internal.
14124
14125 * xfaces.c (set_lface_from_font_name): If a font is specified for
14126 a frame, generate a fontset from the font.
14127 (build_scalable_font_name): If the scalable font is requested for
14128 a specific size, don't change that size.
14129 (try_font_list): Try a scalable font also in the case that a
14130 pattern string is specified.
14131
14132 2008-02-01 Kenichi Handa <handa@m17n.org>
14133
14134 * xfaces.c (Fface_font): New optional arg CHARACTER.
14135
14136 2008-02-01 Kenichi Handa <handa@m17n.org>
14137
14138 * charset.h (CHARSET_OFFSET): New macro.
14139
14140 2008-02-01 Kenichi Handa <handa@m17n.org>
14141
14142 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
14143
14144 * fontset.c (fontset_face): Handle the case that repertory is a
14145 char-table.
14146 (find_font_encoding): Return nil for unknown encoding.
14147 (Fset_fontset_font): Ignore a font of unknown encoding.
14148
14149 2008-02-01 Kenichi Handa <handa@m17n.org>
14150
14151 * keymap.c (describe_vector): Handle default value of a char table.
14152
14153 * fontset.c (fontset_face): Handle fallback fonts correctly.
14154 (Ffontset_info): Return infomation about fallback fonts.
14155
14156 2008-02-01 Kenichi Handa <handa@m17n.org>
14157
14158 * fontset.c (FONTSET_DEFAULT): New macro.
14159 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
14160 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
14161 the case that it is nil.
14162 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
14163 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
14164
14165 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
14166 subset or superset.
14167
14168 2008-02-01 Kenichi Handa <handa@m17n.org>
14169
14170 * emacs.c (main): Call init_charset after syms_of_XXX.
14171
14172 * charset.c (Vcharset_map_directory): Delete.
14173 (Vcharset_map_path): New variable.
14174 (load_charset_map_from_file): Use Vcharset_map_path instead.
14175 (init_charset): Initialize Vcharset_map_path.
14176 (syms_of_charset): Delete declaration of "charset-map-directory",
14177 add declaration of "charset-map-path".
14178
14179 2008-02-01 Kenichi Handa <handa@m17n.org>
14180
14181 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
14182 ASCII only string.
14183
14184 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
14185
14186 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
14187 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
14188
14189 2008-02-01 Kenichi Handa <handa@m17n.org>
14190
14191 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
14192
14193 * coding.c (QCmnemonic, QCdefalut_char)
14194 (QCdecode_translation_table, QCencode_translation_table)
14195 (QCpost_read_conversion, QCpre_write_conversion): New variables.
14196 (get_translation_table): Return a list of translation tables if
14197 necessary.
14198 (decode_coding): Call get_translation_table with ENCODEP 0.
14199 (char_encodable_p): If translation_table is non-nil, always call
14200 translate_char.
14201 (Fdefine_coding_system_internal): Accept list of translation
14202 tables as :encode-translation-table and :decode-translation-table.
14203 (Fcoding_system_put): New function.
14204 (syms_of_coding): Declare new symbols. Defsubr
14205 Scoding_system_put.
14206 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
14207 typically JISX0212.
14208
14209 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
14210 when the charset is superset type.
14211
14212 * character.c (translate_char): Accept list of translation tables.
14213
14214 2008-02-01 Kenichi Handa <handa@m17n.org>
14215
14216 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
14217 (CODING_ATTR_TRANS_TBL): New macro.
14218
14219 * coding.c (get_translation_table): New function.
14220 (translate_chars): Fix the bug of skipping annotation data.
14221 (decode_coding, encode_coding): Utilize get_translation_table.
14222 (char_encodable_p, Funencodable_char_position): Translate char if
14223 necessary.
14224 (Ffind_coding_systems_region_internal)
14225 (Fcheck_coding_systems_region): Setup translation table for encode
14226 in a coding system attribute vector in advance.
14227 (Fdefine_coding_system_internal): Allow a symbol as translation
14228 table. For shift-jis type coding system, allow 4th charset.
14229
14230 2008-02-01 Kenichi Handa <handa@m17n.org>
14231
14232 * coding.c (decode_coding_sjis): Check the first byte rigidly.
14233
14234 * xdisp.c (get_next_display_element): Pass -1 as POS to
14235 FACE_FOR_CHAR if displaying a C-string.
14236
14237 2008-02-01 Kenichi Handa <handa@m17n.org>
14238
14239 * composite.c (get_composition_id): Handle xoff and yoff in a
14240 composition rule.
14241
14242 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
14243 (struct composition): New member lbearing and rbearing.
14244
14245 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
14246 (x_get_glyph_overhangs): Handle a composition glyph.
14247 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
14248
14249 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
14250 composition glyph.
14251
14252 2008-02-01 Kenichi Handa <handa@m17n.org>
14253
14254 * print.c: Include charset.h.
14255 (Vprint_charset_text_property): New variable.
14256 (Qdefault): Extern it.
14257 (PRINT_STRING_NON_CHARSET_FOUND)
14258 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
14259 (print_check_string_result): New variable.
14260 (print_check_string_charset_prop): New function.
14261 (print_prune_charset_plist): New variable.
14262 (print_prune_string_charset): New function.
14263 (print_object): Call print_prune_string_charset if
14264 Vprint_charset_text_property is not t.
14265 (print_interval): Print nothing if interval->plist is nil.
14266 (syms_of_print): Declare Vprint_charset_text_property as a lisp
14267 variable. Init and staticpro print_prune_charset_plist.
14268
14269 2008-02-01 Kenichi Handa <handa@m17n.org>
14270
14271 * fontset.c (new_fontset_from_font_name): Use the specified font
14272 for all characters in the new fontset.
14273
14274 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
14275 OBJECT args.
14276
14277 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
14278 OBJECT args for composition too.
14279
14280 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
14281 OBJECT args.
14282
14283 2008-02-01 Kenichi Handa <handa@m17n.org>
14284
14285 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
14286
14287 * fontset.c (reorder_font_vector): Adjust for the change of
14288 FONT_DEF format.
14289 (fontset_face): New arg id. Change caller.
14290 (face_for_char): New args pos and object.
14291 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
14292 (fs_query_fontset): Check NAME by Fassoc too.
14293 (Fset_fontset_font): Allow non-XLFD font name.
14294 (Ffontset_info): Adjust for the change of FONT_DEF format.
14295
14296 * fontset.h (face_for_char): Adjust prototype.
14297
14298 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
14299 (append_space, extend_face_to_end_of_line)
14300 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
14301 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
14302
14303 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
14304 POS and OBJECT args.
14305
14306 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
14307 POS and OBJECT args.
14308
14309 2008-02-01 Jason Rumney <jasonr@gnu.org>
14310
14311 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
14312 of GlobalAlloc'ed memory.
14313
14314 2008-02-01 Kenichi Handa <handa@m17n.org>
14315
14316 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
14317
14318 * charset.h (charset_table_used): Delete extern.
14319
14320 * charset.c (charset_table_used): Make it static.
14321 (map_charset_chars): Fix args to c_function with.
14322
14323 * chartab.c (map_sub_char_table_for_charset): Fix args to
14324 c_function with.
14325
14326 * coding.h (enum coding_result_code): Delete
14327 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
14328
14329 * coding.c (Qinsufficient_source, Qinconsistent_eol)
14330 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
14331 (Vlast_code_conversion_error): New variables.
14332 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
14333 (ONE_MORE_BYTE): Record error if any instead of signaling an
14334 error. If non-ASCII multibyte char is found, return the negative
14335 value of the code. All callers changed to check it.
14336 (ONE_MORE_BYTE_NO_CHECK): Likewise.
14337 (record_conversion_result): New function. Change all codes setting
14338 coding->result to call this function.
14339 (detect_coding_utf_8, decode_coding_utf_8)
14340 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
14341 Don't use the local variable incomplete.
14342 (emacs_mule_char): Change the second arg to `const'.
14343 (decode_coding): Fix of flushing out unprocessed data.
14344 (make_conversion_work_buffer): Fix making of a work buffer.
14345 (decode_coding_object): Return coding->dst_object.
14346
14347 * fontset.c (set_fontset_font): Fix args.
14348
14349 * lisp.h (CHARACTERBITS): Define as 22.
14350
14351 * process.c (send_process): Be sure to set coding->src_multibyte.
14352
14353 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
14354
14355 2008-02-01 Kenichi Handa <handa@m17n.org>
14356
14357 * xdisp.c (handle_auto_composed_prop): Give limit to
14358 Fnext_single_char_property_change.
14359
14360 2008-02-01 Kenichi Handa <handa@m17n.org>
14361
14362 * composite.c (syms_of_composite): Don't make the composition hash
14363 table weak.
14364
14365 * fontset.c (Fset_fontset_font): Fix docstring.
14366
14367 * lisp.h (detect_coding_system): Adjust prototype.
14368
14369 * fileio.c (kill_workbuf_unwind): Delete this function.
14370 (Finsert_file_contents): Adjust the call of detect_coding_system.
14371 Get conversion_buffer by code_conversion_save. Use the macro
14372 CODING_MAY_REQUIRE_DECODING. After decoding, update
14373 coding_system.
14374
14375 * coding.h (make_conversion_work_buffer): Delete extern.
14376 (code_conversion_save): Extern it.
14377
14378 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
14379 (CODING_GET_INFO): Delete argument eol_type. Change callers.
14380 (decode_coding_utf_8): Don't do eol converion.
14381 (detect_coding_utf_16): Check coding->src_chars, not
14382 coding->src_bytes. Add heuristics for those that have no signature.
14383 (decode_coding_emacs_mule, decode_coding_iso_2022)
14384 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
14385 Don't do eol converion.
14386 (adjust_coding_eol_type): Return a new coding system.
14387 (detect_coding): Don't detect eol. Fix for utf-16 detection.
14388 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
14389 each change.
14390 (decode_coding): Pay attention to undo_list. Do eol conversion for
14391 all types of coding-systems (if necessary).
14392 (Vcode_conversion_work_buf_list): Delete it.
14393 (Vcode_conversion_reused_workbuf): Rename from
14394 Vcode_conversion_reused_work_buf.
14395 (Vcode_conversion_workbuf_name): New variable.
14396 (reused_workbuf_in_use): New variable.
14397 (make_conversion_work_buffer): Delete the arg DEPTH.
14398 (code_conversion_restore): Change argument to cons.
14399 (code_conversion_save): Delete the argument BUFFER. Change callers.
14400 (detect_coding_system): New argument src_chars. Change callers.
14401 Fix for utf-16 detection.
14402 (init_coding_once): Don't use ISO_carriage_return.
14403 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
14404 reused_workbuf_in_use.
14405
14406 2008-02-01 Kenichi Handa <handa@m17n.org>
14407
14408 * keymap.c (store_in_keymap): Pay attention to the case that idx
14409 is a cons specifying a character range.
14410
14411 2008-02-01 Kenichi Handa <handa@m17n.org>
14412
14413 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
14414 HANDLED_RECOMPUTE_PROPS.
14415
14416 * coding.c (Fdefine_coding_system_internal): Fix checking of
14417 ascii compatibility.
14418
14419 2008-02-01 Kenichi Handa <handa@m17n.org>
14420
14421 * charset.c (find_charsets_in_text): Delete unused locale variable.
14422 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
14423
14424 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
14425 Resync charset_list to Vemacs_mule_charset_list.
14426
14427 * keymap.c (store_in_keymap): Pay attention to the case that idx
14428 is a cons specifying a character range.
14429
14430 2008-02-01 Kenichi Handa <handa@m17n.org>
14431
14432 * composite.c (update_compositions): Bind inhibit-read-only, etc
14433 to t before calling remove-list-of-text-properties.
14434
14435 * print.c (print_object): Always print ASCII chars as is.
14436
14437 2008-02-01 Kenichi Handa <handa@m17n.org>
14438
14439 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
14440
14441 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
14442 is a char table.
14443
14444 2008-02-01 Kenichi Handa <handa@m17n.org>
14445
14446 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
14447
14448 2008-02-01 Kenichi Handa <handa@m17n.org>
14449
14450 * xfaces.c (set_lface_from_font_name): Fix for the case that
14451 FONTNAME is not fontset name.
14452
14453 2008-02-01 Kenichi Handa <handa@m17n.org>
14454
14455 * fns.c (base64_encode_1): Fix previous change.
14456
14457 2008-02-01 Kenichi Handa <handa@m17n.org>
14458
14459 * fontset.c (set_fontset_font): New function.
14460 (Fset_fontset_font): If a font is specified for a charset, use
14461 map_charset_chars to store the font spec in a fontset.
14462
14463 2008-02-01 Kenichi Handa <handa@m17n.org>
14464
14465 * fontset.c (fontset_face): Create a fallback fontset on demand.
14466 (make_fontset): Don't create a fallback fontset here.
14467 (free_face_fontset): Free a fallback fontset (if any) too.
14468 (n_auto_fontsets): Delete this variable.
14469 (auto_fontset_alist): New variable.
14470 (new_fontset_from_font_name): Check auto_fontset_alist.
14471 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
14472 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
14473 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
14474 Defsubr Sfontset_list_all.
14475
14476 2008-02-01 Kenichi Handa <handa@m17n.org>
14477
14478 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
14479
14480 2008-02-01 Kenichi Handa <handa@m17n.org>
14481
14482 * fontset.c (Fnew_fontset): Check NAME more rigidly.
14483
14484 2008-02-01 Kenichi Handa <handa@m17n.org>
14485
14486 * editfns.c (Fgoto_char): Fix docstring.
14487
14488 2008-02-01 Kenichi Handa <handa@m17n.org>
14489
14490 * insdel.c (insert_from_gap): Adjust intervals correctly.
14491
14492 2008-02-01 Jason Rumney <jasonr@gnu.org>
14493
14494 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
14495 (pfnGetFontUnicodeRanges): New dynamically loaded function.
14496 (w32_initialize): Try to load it.
14497 (x_get_font_repertory): Use it if available.
14498 (w32_encode_char): Add shortcut for unicode output.
14499
14500 * w32fns.c (w32_load_system_font): Default charset to -1.
14501 (x_to_w32_charset): Match all fonts for unicode.
14502 (w32_to_x_charset): New parameter matching. Don't return partial
14503 or wildcard charsets.
14504 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
14505 (w32_codepage_for_font): Return CP_UNICODE for unicode.
14506 (w32_to_x_font): Match charset to real charset.
14507 (enum_font_cb2): Always list unicode versions.
14508
14509 * makefile.w32-in (temacs): Increase EMHEAP.
14510
14511 2008-02-01 Jason Rumney <jasonr@gnu.org>
14512
14513 * w32term.c (w32_encode_char): New charset parameter.
14514 font_info.encoding becomes encoding_type.
14515 (x_get_font_repertory): New function. Warning: stub only!
14516 (x_new_font): Return quickly if font already set.
14517 (x_new_fontset): fontsetname parameter is Lisp_Object.
14518 Use new fs_query_fontset. Try new_fontset_from_font_name.
14519 Use fontset_name for return value.
14520
14521 * w32term.h: Declare x_get_font_repertory.
14522
14523 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
14524 place of find_charset_in_text. Use encode_coding_object in place
14525 of encode_coding.
14526 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
14527 decode_coding.
14528
14529 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
14530 of x_new_fontset.
14531 (w32_load_system_font): Initialize charset as unicode.
14532 font_info.encoding becomes encoding_type.
14533 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
14534 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
14535 (syms_of_w32fns): Set get_font_repertory_func.
14536
14537 * w32console.c: Include character.h. Use terminal_encode_buffer
14538 from term.c.
14539 (write_glyphs): Use new version of encode_terminal_code. Use
14540 encode_coding_object in place of encode_coding.
14541
14542 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
14543 encoding becomes encoding_type.
14544
14545 * term.c (terminal_encode_buffer): Make externally visible.
14546
14547 * makefile.w32-in: Add character.h dependancies.
14548 (character.o, chartab.o): New targets.
14549
14550 2008-02-01 Kenichi Handa <handa@m17n.org>
14551
14552 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
14553 CODING_ID_EOL_TYPE.
14554
14555 2008-02-01 Andreas Schwab <schwab@suse.de>
14556
14557 * coding.c (produce_chars): Revert last change.
14558
14559 2008-02-01 Kenichi Handa <handa@m17n.org>
14560
14561 * charset.h (charset_unicode): Extern it.
14562
14563 * charset.c (string_xstring_p): Check by (C >= 0x100).
14564 (find_charsets_in_text): Change format of the arc CHARSETS. New
14565 arg MULTIBYTE.
14566 (Ffind_charset_region, Ffind_charset_string): Adjust for the
14567 change of find_charsets_in_text.
14568 (Fsplit_char): Fix doc. Never return unknown.
14569
14570 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
14571
14572 * coding.c (Fdefine_coding_system_alias): Update
14573 Vcoding_system_list.
14574
14575 * fontset.c (load_font_get_repertory): Pay attention to the case
14576 that ENCODING of a font is specified by a char-table.
14577
14578 * xterm.c (x_get_font_repertory): Handle the case that the
14579 encoding of font is other than Unicode.
14580
14581 2008-02-01 Kenichi Handa <handa@m17n.org>
14582
14583 * term.c (encode_terminal_code): Don't handle glyph-table. Check
14584 if a character is encodable by the terminal coding system. If
14585 not, produces proper number of `?'s. Update
14586 terminal_encode_buffer and terminal_encode_buf_size if necessary.
14587 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
14588
14589 2008-02-01 Kenichi Handa <handa@m17n.org>
14590
14591 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
14592 variables.
14593 (encode_terminal_code): Change argument. Encode multiple
14594 characters at once. Store the result of encoding in
14595 terminal_encode_buffer.
14596 (write_glyphs, insert_glyphs): Adjust for the change of
14597 encode_terminal_code.
14598 (term_init): Initialize terminal_encode_buffer and
14599 terminal_encode_buf_size.
14600
14601 * coding.c (consume_chars): If coding->src_object is nil, don't
14602 check annotation.
14603
14604 2008-02-01 Kenichi Handa <handa@m17n.org>
14605
14606 * character.c (char_string): Use ASCII_CHAR_P instead of
14607 SINGLE_BYTE_CHAR_P.
14608
14609 2008-02-01 Kenichi Handa <handa@m17n.org>
14610
14611 * xdisp.c (handle_auto_composed_prop): Check if the last
14612 characters of auto-composed region is newly composed with the
14613 following characters.
14614 (handle_composition_prop): Fix checking of point being inside
14615 composition.
14616
14617 2008-02-01 Kenichi Handa <handa@m17n.org>
14618
14619 * fns.c (concat): Don't change multibyteness of the result by
14620 concatenating an 8-bit character.
14621
14622 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
14623 multibyteness of the result when newelt is an 8-bit character.
14624
14625 2008-02-01 Dave Love <fx@gnu.org>
14626
14627 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
14628 EMACS_INT.
14629
14630 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
14631
14632 * xfaces.c (face_numeric_value): Declare dim size_t.
14633 (Finternal_lisp_face_equal_p): Remove unused f.
14634
14635 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
14636 (MATRIX_ROW): Remove unused vars.
14637 (draw_glyphs, x_insert_glyphs, fast_find_position)
14638 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
14639 byte/char counts.
14640
14641 * regex.c (regex_compile): Remove unused var.
14642
14643 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
14644
14645 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
14646 (Faccessible_keymaps, where_is_internal): Remove unused vars.
14647
14648 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
14649
14650 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
14651
14652 * fileio.c (Fwrite_region): Remove unused var.
14653
14654 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
14655 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
14656
14657 * composite.c (Fremove_list_of_text_properties): Declare.
14658
14659 * coding.c (inhibit_pre_post_conversion): Remove (unused).
14660 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
14661 (coding_inherit_eol_type): Remove unused attrs.
14662 (detect_coding): Cast arg of detect_eol.
14663
14664 * charset.c (syms_of_charset): Remove unused var p.
14665 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
14666 byte/char counts.
14667
14668 * casetab.c (set_case_table): Remove unused var.
14669
14670 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
14671 unused vars.
14672
14673 2008-02-01 Dave Love <fx@gnu.org>
14674
14675 * xterm.c (x_bitmap_mask): Declare.
14676
14677 2008-02-01 Dave Love <fx@gnu.org>
14678
14679 * xterm.c (x_term_init): Fix type error.
14680
14681 * lisp.h: Add Funibyte_char_to_multibyte.
14682
14683 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
14684 (Fset_coding_system_priority): Doc fix.
14685
14686 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
14687
14688 * indent.c (check_composition): Make start and end EMACS_INT.
14689
14690 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
14691
14692 * xdisp.c (handle_composition_prop, check_point_in_composition):
14693 Make buffer positions EMACS_INT.
14694
14695 * composite.c (find_composition, run_composition_function)
14696 (update_compositions, Ffind_composition_internal): Make buffer
14697 positions EMACS_INT.
14698
14699 * composite.h (find_composition, update_compositions): Make
14700 position args EMACS_INT.
14701
14702 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
14703
14704 * intervals.c (get_property_and_range):
14705 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
14706
14707 * unexalpha.c: Don't include varargs.h.
14708
14709 2008-02-01 Dave Love <fx@gnu.org>
14710
14711 * coding.h (ENCODE_UTF_8): New.
14712
14713 * Makefile.in (gtkutil.o): Depend on coding.h.
14714
14715 * coding.c (Fset_coding_system_priority): Doc fix.
14716
14717 2008-02-01 Kenichi Handa <handa@m17n.org>
14718
14719 * fileio.c (Finsert_file_contents): Call setup_coding_system in
14720 the case of auto saving.
14721
14722 2008-02-01 Andreas Schwab <schwab@suse.de>
14723
14724 * chartab.c (map_char_table, map_char_table_for_charset): Protect
14725 `range' from GC.
14726
14727 2008-02-01 Kenichi Handa <handa@m17n.org>
14728
14729 * coding.c (decode_coding_sjis): Check bytes more rigidly.
14730
14731 2008-02-01 Kenichi Handa <handa@m17n.org>
14732
14733 * fileio.c (choose_write_coding_system): Return a decided coding system.
14734 (Fwrite_region): Set Vlast_coding_system_used to the return value
14735 of choose_write_coding_system.
14736
14737 2008-02-01 Kenichi Handa <handa@m17n.org>
14738
14739 * charset.c (Fset_charset_priority): Pay attention to duplicated
14740 arguments.
14741
14742 * coding.c (QCcategory): New variable.
14743 (syms_of_coding): Defsym it. Set all elements of
14744 Vcoding_category_table and their symbol values.
14745 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
14746 coding-category-XXX, and coding-category-list.
14747 (Fdefine_coding_system_internal): Add category in the plist.
14748
14749 2008-02-01 Kenichi Handa <handa@m17n.org>
14750
14751 * callproc.c (Fcall_process): Handle carryover correctly.
14752
14753 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
14754 (raw_text_coding_system): Check NILP (coding_system).
14755 (coding_inherit_eol_type): Check NILP (coding_system) and
14756 NILP (parent).
14757 (consume_chars): Fix for the case of raw-text.
14758
14759 * process.c (read_process_output): Handle carryover correctly.
14760
14761 2008-02-01 Dave Love <fx@gnu.org>
14762
14763 * regex.c (re_search_2): Fix last change.
14764
14765 2008-02-01 Kenichi Handa <handa@m17n.org>
14766
14767 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
14768 target_multibyte. Even in a unibyte case, return a converted
14769 multibyte char.
14770 (GET_CHAR_AFTER): New macro.
14771 (PATFETCH): Translate via multibyte char.
14772 (HANDLE_UNIBYTE_RANGE): Delete this macro.
14773 (SETUP_MULTIBYTE_RANGE): New macro.
14774 (regex_compile): Setup compiled code so that its multibyteness
14775 matches that of a target. Fix the handling of "[X-YZ]" using
14776 SETUP_MULTIBYTE_RANGE.
14777 (analyse_first) <charset>: For filling fastmap for all multibyte
14778 characters, don't check by BASE_LEADING_CODE_P.
14779 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
14780 the same as RE_MULTIBYTE_P (bufp) now.
14781 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
14782 (TARGET_CHAR_AND_LENGTH): Delete this macro.
14783 (TRANSLATE_VIA_MULTIBYTE): New macro.
14784 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
14785 It is the same as RE_MULTIBYTE_P (bufp) now.
14786 <exactn>: Translate via multibyte.
14787 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
14788 translate it.
14789 <charset, charset_not>: Fetch a character by
14790 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
14791 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
14792 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
14793 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
14794 by GET_CHAR_AFTER.
14795 (bcmp_translate): Likewise.
14796
14797 * search.c (compile_pattern): Check the member target_multibyte,
14798 not the member multibyte of buf.
14799
14800 * lread.c (read1): While reading a string, set force_singlebyte
14801 and force_multibyte correctly.
14802
14803 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
14804 up of unibyte_to_multibyte_table.
14805
14806 2008-02-01 Kenichi Handa <handa@m17n.org>
14807
14808 * coding.c (setup_coding_system): If coding has
14809 post-read-conversion or pre-write-conversion, set
14810 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
14811 respectively.
14812 (decode_coding_gap): Run post-read-conversion if any.
14813
14814 * fileio.c (Finsert_file_contents): Even if we read into a
14815 unibyte buffer, check if we must decode the result or not.
14816
14817 2008-02-01 Kenichi Handa <handa@m17n.org>
14818
14819 * coding.c (make_conversion_work_buffer): Change the work buffer
14820 name to the same one as that of Emacs 21.
14821
14822 2008-02-01 Kenichi Handa <handa@m17n.org>
14823
14824 * coding.h (make_conversion_work_buffer): Adjust prototype.
14825 (code_conversion_restore): Don't extern it.
14826
14827 * coding.c (detected_mask): Delete unused variable.
14828 (decode_coding_iso_2022): Pay attention to the byte sequence of
14829 CTEXT extended segment, and retain those bytes as is.
14830 (decode_coding_ccl): Delete unused variable `valids'.
14831 (setup_coding_system): Delete unused variable `category'.
14832 (consume_chars): Delete unused variable `category'. Make it work
14833 for non-multibyte case.
14834 (make_conversion_work_buffer): Change argument.
14835 (saved_coding): Delete unused variable.
14836 (code_conversion_restore): Don't check saved_coding->destination.
14837 (code_conversion_save): New function.
14838 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
14839 instead of record_unwind_protect.
14840 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
14841 (detect_coding_system): Delete unused variable `mask'.
14842 (Fdefine_coding_system_internal): Delete unused variable id.
14843
14844 * fileio.c (kill_workbuf_unwind): New function.
14845 (Finsert_file_contents): On replacing, call
14846 make_conversion_work_buffer with correct args, and call
14847 record_unwind_protect with the first arg kill_workbuf_unwind.
14848
14849 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
14850
14851 2008-02-01 Kenichi Handa <handa@m17n.org>
14852
14853 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
14854 (fontset_add): Fix for the case that TO is less than TO1.
14855 (Ffontset_info): Don't use fallback fontset on checking the
14856 default fontset.
14857 (dump_fontset): New function for debugging.
14858
14859 * coding.c (Fdefine_coding_system_internal): Fix for the case that
14860 coding_type is Qcharset.
14861
14862 2008-02-01 Kenichi Handa <handa@m17n.org>
14863
14864 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
14865 (map_char_table): Don't inherit the value from the parent on
14866 initializing VAL. Adjust for the above change.
14867
14868 2008-02-01 Kenichi Handa <handa@m17n.org>
14869
14870 * coding.c (Qsignature, Qendian): Delete these variables.
14871 (syms_of_coding): Don't initialize them.
14872 (CATEGORY_MASK_UTF_16_AUTO): New macro.
14873 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
14874 detect_info->found.
14875 (decode_coding_utf_16): Don't detect BOM here.
14876 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
14877 is NOT utf_16_without_bom.
14878 (setup_coding_system): For a coding system of type utf-16, check
14879 if the attribute :endian is Qbig or not (not nil or not), and set
14880 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
14881 (detect_coding): If coding type is utf-16 and BOM detection is
14882 required, detect it.
14883 (Fdefine_coding_system_internal): For a coding system of type
14884 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
14885
14886 2008-02-01 Kenichi Handa <handa@m17n.org>
14887
14888 * coding.c (coding_set_source): Fix for the case that the current
14889 buffer is different from coding->src_object.
14890 (decode_coding_object): Don't use the conversion work buffer if
14891 DST_OBJECT is a buffer.
14892
14893 2008-02-01 Dave Love <fx@gnu.org>
14894
14895 * lread.c (read_emacs_mule_char) [len==2]: Index
14896 emacs_mule_charset correctly.
14897
14898 2008-02-01 Dave Love <fx@gnu.org>
14899
14900 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
14901 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
14902 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
14903 treated specially.)
14904 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
14905 (detected_mask): Remove Big5 bits.
14906
14907 2008-02-01 Kenichi Handa <handa@m17n.org>
14908
14909 The following changes are to make the font rescaling facility
14910 compatible with Emacs 21.
14911
14912 * xfaces.c (Vface_font_rescale_alist): Rename from
14913 Vface_resizing_fonts.
14914 (struct font_name): Rename member resizing_ratio to rescale_ratio.
14915 (font_rescale_ratio): Rename from font_resizing_ratio.
14916 (split_font_name): Set font->rescale_ratio.
14917 (better_font_p): Pay attention to font->rescale_ratio.
14918 (build_scalable_font_name): Likewise. Change RESX, and RESY
14919 fields.
14920 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
14921
14922 2008-02-01 Kenichi Handa <handa@m17n.org>
14923
14924 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
14925 (Qutf_16_le): Remove these variables.
14926 (syms_of_coding): Don't DEFSYM them.
14927 (decode_coding_utf_16): Fix handling of BOM.
14928 (encode_coding_utf_16): Fix handling of BOM.
14929
14930 2008-02-01 Kenichi Handa <handa@m17n.org>
14931
14932 * fileio.c (Finsert_file_contents): On replacing, before decoding
14933 the file into the work buffer, set point of the work buffer to the end.
14934
14935 2008-02-01 Dave Love <fx@gnu.org>
14936
14937 * coding.c (Fcheck_coding_systems_region): Fix type errors.
14938
14939 2008-02-01 Dave Love <fx@gnu.org>
14940
14941 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
14942 and fix C types.
14943
14944 2008-02-01 Kenichi Handa <handa@m17n.org>
14945
14946 * xdisp.c (SKIP_GLYPHS): New macro.
14947 (set_cursor_from_row): Pay attention to string display properties.
14948
14949 * category.c (copy_category_entry): Fix for the case that RANGE
14950 is an integer.
14951
14952 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
14953
14954 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
14955
14956 2008-02-01 Kenichi Handa <handa@m17n.org>
14957
14958 * charset.c (Fcharset_id_internal): New function.
14959 (syms_of_charset): Defsubr it.
14960
14961 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
14962 with the last arg charset_list acquired from coding.
14963 (Fdefine_coding_system_internal): For ccl-based coding system, fix
14964 the attribute coding_attr_ccl_valids.
14965
14966 * coding.h (enum define_coding_ccl_arg_index): Set the first
14967 member coding_arg_ccl_decoder to coding_arg_max.
14968
14969 * ccl.h (ccl_driver): Adjust prototype.
14970
14971 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
14972 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
14973 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
14974 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
14975 last arg Qnil.
14976
14977 2008-02-01 Kenichi Handa <handa@m17n.org>
14978
14979 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
14980 call encode_char.
14981
14982 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
14983
14984 2008-02-01 Dave Love <fx@gnu.org>
14985
14986 * composite.c (syms_of_composite): Make composition_hash_table weak.
14987
14988 2008-02-01 Kenichi Handa <handa@m17n.org>
14989
14990 * dispextern.h (check_face_attributes, generate_ascii_font_name)
14991 (font_name_registry): Don't extern them.
14992 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
14993
14994 * fontset.h (Qfontset): Don't extern it.
14995 (new_fontset_from_font_name): Extern it.
14996
14997 * fontset.c: Give 8 extra slots to fontset objects.
14998 (Qfontset_info): New variable.
14999 (syms_of_fontset): Defsym it.
15000 (FONTSET_FALLBACK): New macro.
15001 (fontset_face): Try also the default fontset.
15002 (make_fontset): Realize a fallback fontset from the default fontset.
15003 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
15004 using split_font_name_into_vector and build_font_name_from_vector.
15005 (Fset_fontset_font): Access the elements of font_spec by enum
15006 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
15007 name by using split_font_name_into_vector.
15008 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
15009 generate a proper font name from the fontset name. Update
15010 Vfontset_alias_alist.
15011 (n_auto_fontsets): New variable.
15012 (new_fontset_from_font_name): New function.
15013 (Ffont_info): Store the information about fonts generated from the
15014 default fontset in the first extra slot of the returned char-table.
15015
15016 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
15017 (font_name_registry): Delete function.
15018 (split_font_name_into_vector): New function.
15019 (build_font_name_from_vector): New function.
15020 (font_list): The argument REGISTRY is now a list of registry names.
15021 (choose_face_font): If we are choosing an ASCII font, and ATTRS
15022 specifies an explicit font name, return the name as is. Make a
15023 list of registy names.
15024
15025 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
15026 of x_new_fontset.
15027 (Fx_create_frame): Don't call x_new_fontset here. Just use
15028 x_list_fonts to check the existence of fonts.
15029
15030 * xterm.h (x_new_fontset): Adjust prototype.
15031
15032 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
15033 string. Use new_fontset_from_font_name to create a fontset from a
15034 font name.
15035
15036 2008-02-01 Kenichi Handa <handa@m17n.org>
15037
15038 * syntax.c (Vfind_word_boundary_function_table): New name for
15039 Vnext_word_boundary_function_table.
15040 (find-word-boundary-function-table): New name for
15041 next-word-boundary-function-table.
15042
15043 2008-02-01 Dave Love <fx@gnu.org>
15044
15045 * Makefile.in: Fix some dependencies.
15046
15047 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
15048 set it to nil before returning.
15049
15050 * composite.c (update_compositions): Fix type error.
15051
15052 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
15053
15054 2008-02-01 Kenichi Handa <handa@m17n.org>
15055
15056 * xterm.c (x_new_font): Optimize for the case that the font is
15057 already set for the frame.
15058
15059 2008-02-01 Kenichi Handa <handa@m17n.org>
15060
15061 * chartab.c (char_table_ascii): Check if the char table contents
15062 is sub-char-table or not.
15063 (char_table_set, char_table_set_range): Fix argument to
15064 char_table_ascii.
15065
15066 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
15067 (detect_coding_utf_8, detect_coding_utf_16)
15068 (detect_coding_emacs_mule, detect_coding_iso_2022)
15069 (detect_coding_sjis, detect_coding_big5)
15070 (detect_coding_ccl, detect_coding_charset): Change argument MASK
15071 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
15072 sequence is valid in this coding system. Change callers.
15073 (MAX_ANNOTATION_LENGTH): New macro.
15074 (ADD_ANNOTATION_DATA): New macro.
15075 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
15076 ADD_ANNOTATION_DATA. Change the format of annotation data.
15077 (ADD_CHARSET_DATA): New macro.
15078 (emacs_mule_char): New argument ID. Change callers.
15079 (decode_coding_emacs_mule, decode_coding_iso_2022)
15080 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
15081 Produce charset annotation data in coding->charbuf.
15082 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
15083 to charset annotation data in coding->charbuf.
15084 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
15085 coding->common_flags if the coding system is iso-2022 based and
15086 uses designation.
15087 (produce_composition): Adjust for the new annotation data format.
15088 (produce_charset): New function.
15089 (produce_annotation): Handle charset annotation.
15090 (handle_composition_annotation, handle_charset_annotation): New
15091 functions.
15092 (consume_chars): Handle charset annotation. Utilize the above two
15093 functions.
15094 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
15095 buffer, get the deleted text as a string and set
15096 coding->src_object to that string.
15097 (detect_coding, detect_coding_system): Use the new struct
15098 coding_detection_info.
15099
15100 * coding.h (struct coding_detection_info): New structure.
15101 (struct coding_system): Adjust prototype of the member `detector'.
15102 (CODING_ANNOTATE_CHARSET_MASK): New macro.
15103
15104 2008-02-01 Kenichi Handa <handa@m17n.org>
15105
15106 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
15107
15108 2008-02-01 Dave Love <fx@gnu.org>
15109
15110 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
15111 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
15112 to new local and nullify apropos_accumulate before returning.
15113 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
15114
15115 2008-02-01 Kenichi Handa <handa@m17n.org>
15116
15117 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
15118 correctly.
15119
15120 2008-02-01 Dave Love <fx@gnu.org>
15121
15122 * fns.c (Flanginfo): Call synchronize_system_time_locale.
15123
15124 2008-02-01 Kenichi Handa <handa@m17n.org>
15125
15126 The following changes are to make character composition happen
15127 automatically on displaying.
15128
15129 * Makefile.in (lisp, shortlisp): Add composite.elc.
15130
15131 * composite.h (Qauto_composed, Vauto_composition_function)
15132 (Qauto_composition_function): Extern them.
15133
15134 * composite.c (Vcomposition_function_table)
15135 (Qcomposition_function_table): Delete variables.
15136 (Qauto_composed, Vauto_composition_function)
15137 (Qauto_composition_function): New variables.
15138 (run_composition_function): Don't call
15139 compose-chars-after-function.
15140 (update_compositions): Clear `auto-composed' text property.
15141 (compose_chars_in_text): Delete this function.
15142 (syms_of_composite): Staticpro Qauto_composed and
15143 Qauto_composition_function. Declare Vauto_composition_function as
15144 a Lisp variable.
15145
15146 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
15147
15148 * xdisp.c (it_props): Add an entry for Qauto_composed.
15149 (handle_auto_composed_prop): New function.
15150
15151 * xselect.c (selection_data_to_lisp_data): Don't call
15152 compose_chars_in_text.
15153
15154 2008-02-01 Dave Love <fx@gnu.org>
15155
15156 * keyboard.c (read_char): Modify checking around use of
15157 Vkeyboard_translate_table.
15158
15159 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
15160 and fix C types.
15161
15162 2008-02-01 Kenichi Handa <handa@m17n.org>
15163
15164 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
15165 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
15166 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
15167 the case that the last byte is '\r' correctly.
15168 (decode_coding): Flush out the unprocessed data correctly.
15169 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
15170
15171 2008-02-01 Dave Love <fx@gnu.org>
15172
15173 * xterm.c (XTread_socket): Fix changes for defined keysyms.
15174 Add XK_ISO... case.
15175 (xaw_scroll_callback): Revert last change.
15176
15177 2008-02-01 Kenichi Handa <handa@m17n.org>
15178
15179 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
15180
15181 2008-02-01 Kenichi Handa <handa@m17n.org>
15182
15183 * xfaces.c (Vface_resizing_fonts): New variable.
15184 (struct font_name): New member `resizing_ratio'.
15185 (font_resizing_ratio): New function.
15186 (split_font_name): Set font->resizing_ratio.
15187 (better_font_p): Pay attention to font->resizing_ratio.
15188 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
15189 RESX, and RESY fields.
15190 (try_alternative_families): Try scalable fonts if
15191 Vscalable_fonts_allowed is not Qt.
15192 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
15193
15194 2008-02-01 Dave Love <fx@gnu.org>
15195
15196 * xterm.c (xaw_scroll_callback): Cast correctly.
15197
15198 2008-02-01 Dave Love <fx@gnu.org>
15199
15200 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
15201 (lispy_kana_keys): Comment out.
15202 (make_lispy_event) [XK_kana_A]: Comment out.
15203
15204 * xterm.c (xaw_scroll_callback): Cast call_data.
15205 (XTread_socket): Deal with ASCII keysyms.
15206 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
15207
15208 2008-02-01 Dave Love <fx@gnu.org>
15209
15210 * xterm.c (Vx_keysym_table): New.
15211 (syms_of_xterm): Initialize it.
15212 (XTread_socket): Use it.
15213 From head: Eliminate incorrect optimization that tried to avoid
15214 decoding the output of X*LookupString.
15215 (x_get_font_repertory): Delete charset declaration.
15216
15217 2008-02-01 Kenichi Handa <handa@m17n.org>
15218
15219 * coding.c (detect_coding_charset): If only ASCII bytes are found,
15220 return 0.
15221 (Fdefine_coding_system_internal): Setup
15222 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
15223
15224 2008-02-01 Dave Love <fx@gnu.org>
15225
15226 * coding.c (Fcheck_coding_system): Doc fix.
15227
15228 * editfns.c (Finsert_byte): Return a proper value.
15229
15230 2008-02-01 Kenichi Handa <handa@m17n.org>
15231
15232 * coding.c (decode_coding): Fix args to translate_chars. Pay
15233 attention to Vstandard_translation_table_for_decode.
15234 (encode_coding): Fix args to translate_chars. Pay attention to
15235 Vstandard_translation_table_for_encode.
15236
15237 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
15238 SINGLE_BYTE_CHAR_P.
15239
15240 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
15241 not by SINGLE_BYTE_CHAR_P.
15242
15243 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
15244 SINGLE_BYTE_CHAR_P.
15245
15246 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
15247 SINGLE_BYTE_CHAR_P.
15248
15249 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
15250 by SINGLE_BYTE_CHAR_P.
15251
15252 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
15253 SINGLE_BYTE_CHAR_P.
15254
15255 2008-02-01 Dave Love <fx@gnu.org>
15256
15257 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
15258
15259 2008-02-01 Dave Love <fx@gnu.org>
15260
15261 * fns.c (Flanginfo): Fix typo.
15262
15263 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
15264
15265 2008-02-01 Kenichi Handa <handa@m17n.org>
15266
15267 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
15268 (detect_coding_emacs_mule, detect_coding_iso_2022)
15269 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
15270 incomplete byte sequence. Don't update *mask when correctly detected.
15271 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
15272 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
15273 (detect_coding, detect_coding_system): Adjust for the changes above.
15274
15275 2008-02-01 Kenichi Handa <handa@m17n.org>
15276
15277 * character.c (char_string): Rename from
15278 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
15279 (string_char): Rename from string_char.
15280
15281 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
15282 if C is greater than MAX_3_BYTE_CHAR.
15283 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
15284 string_char instead of string_char_with_unification.
15285
15286 2008-02-01 Dave Love <fx@gnu.org>
15287
15288 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
15289
15290 2008-02-01 Kenichi Handa <handa@m17n.org>
15291
15292 * keymap.c (push_key_description): Pay attention to force_multibyte.
15293
15294 * regex.c (re_search_2): Fix for the case of unibyte buffer.
15295
15296 2008-02-01 Dave Love <fx@gnu.org>
15297
15298 * charset.c (define_charset_internal): Rename `supprementary'.
15299
15300 * Makefile.in (lisp, shortlisp): Remove latin-N.
15301
15302 2008-02-01 Dave Love <fx@gnu.org>
15303
15304 * xfns.c (x_window, x_window): Use use_xim.
15305
15306 * xterm.c (use_xim): Initialize.
15307 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
15308 (x_term_init): Maybe set use_xim.
15309
15310 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
15311
15312 2008-02-01 Kenichi Handa <handa@m17n.org>
15313
15314 * search.c (search_buffer): Fix case-fold-search of multibyte
15315 characters.
15316 (boyer_moore): Rename the last argument to char_high_bits.
15317
15318 2008-02-01 Kenichi Handa <handa@m17n.org>
15319
15320 * xdisp.c (display_string): Fix for the case of zero width glyph.
15321
15322 * xfns.c (x_set_font): Change the error message of the case that
15323 x_new_fontset returns Qt.
15324
15325 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
15326 (Finternal_set_lisp_face_attribute): Use signal_error for the
15327 error of invalid fontset.
15328
15329 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
15330 fontset, return Qt.
15331
15332 2008-02-01 Dave Love <fx@gnu.org>
15333
15334 * unexelf.c (unexec): Make .got handling not SGI-specific.
15335
15336 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
15337
15338 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
15339
15340 * keyboard.c (read_key_sequence): Fix type error.
15341
15342 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
15343 type error.
15344
15345 * fontset.c (fontset_add): Return Lisp_Object.
15346
15347 2008-02-01 Dave Love <fx@gnu.org>
15348
15349 * charset.h (charset_ordered_list_tick): Declare extern.
15350
15351 2008-02-01 Kenichi Handa <handa@m17n.org>
15352
15353 The following changes (and some of 2008-02-01 changes of mine) are
15354 for handling syntax, category, and case conversion for unibyte
15355 characters by converting them to multibyte on the fly. With these
15356 changes, we don't have to setup syntax and case tables for unibyte
15357 characters in each language environment.
15358
15359 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
15360 multibyte if necessary.
15361
15362 * bytecode.c (Fbyte_code): Likewise.
15363
15364 * character.h (LEADING_CODE_LATIN_1_MIN)
15365 (LEADING_CODE_LATIN_1_MAX): New macros.
15366 (unibyte_to_multibyte_table): Extern it.
15367 (unibyte_char_to_multibyte): New macro.
15368 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
15369 (CHAR_LEADING_CODE): New macro.
15370 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
15371
15372 * character.c (unibyte_to_multibyte_table): New variable.
15373 (unibyte_char_to_multibyte): Move to character.h and define as macro.
15374 (multibyte_char_to_unibyte): If C is an eight-bit character,
15375 convert it to the corresponding byte value.
15376
15377 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
15378 not 1, signals an error. Update the elements of
15379 unibyte_to_multibyte_table.
15380 (init_charset_once): Initialize unibyte_to_multibyte_table.
15381 (syms_of_charset): Define the charset `iso-8859-1'.
15382
15383 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
15384 as is without converting it to unibyte. In a unibyte buffer,
15385 convert C to multibyte before checking the syntax.
15386
15387 * lisp.h (unibyte_char_to_multibyte): Delete extern.
15388
15389 * minibuf.c (Fminibuffer_complete_word): Use the macro
15390 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
15391
15392 * regex.h (struct re_pattern_buffer): New member target_multibyte.
15393
15394 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
15395 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
15396 that is zero, convert an eight-bit char to multibyte.
15397 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
15398 non-emacs case.
15399 (PATFETCH): Convert an eight-bit char to multibyte.
15400 (HANDLE_UNIBYTE_RANGE): New macro.
15401 (regex_compile): Setup the compiled pattern for multibyte chars
15402 even if the given regex string is unibyte. Use PATFETCH_RAW
15403 instead of PATFETCH in many places. To handle `charset'
15404 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
15405 only for ASCII chars.
15406 (analyse_first) <exactn>: Simplify because the compiled pattern
15407 is multibyte.
15408 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
15409 <charset>: Use CHAR_LEADING_CODE to get leading codes.
15410 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
15411 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
15412 multibyte always 1.
15413 (re_search_2): In emacs, set the locale variable multibyte to 1,
15414 otherwise to 0. New local variable target_multibyte. Check it
15415 to decide the multibyteness of STR1 and STR2. If
15416 target_multibyte is zero, convert unibyte chars to multibyte
15417 before translating and checking fastmap.
15418 (TARGET_CHAR_AND_LENGTH): New macro.
15419 (re_match_2_internal): In emacs, set the locale variable multibyte
15420 to 1, otherwise to 0. New local variable target_multibyte. Check
15421 it to decide the multibyteness of STR1 and STR2. Use
15422 TARGET_CHAR_AND_LENGTH to fetch a character from D.
15423 <charset, charset_not>: If multibyte is nonzero, check fastmap
15424 only for ASCII chars. Call bcmp_translate with
15425 target_multibyte, not with multibyte.
15426 <begline>: Declare the local variable C as `unsigned'.
15427 (bcmp_translate): Change the last arg name to target_multibyte.
15428
15429 * search.c (compile_pattern_1): Don't adjust the multibyteness of
15430 the regexp pattern and the matching target. Set cp->buf.multibyte
15431 to the multibyteness of the regexp pattern. Set
15432 cp->but.target_multibyte to the multibyteness of the matching target.
15433 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
15434 FETCH_STRING_CHAR_ADVANCE.
15435 (Freplace_match): Convert unibyte chars to multibyte.
15436
15437 * syntax.c (char_quoted, back_comment, scan_words)
15438 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
15439 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
15440 unibyte chars to multibyte.
15441 (skip_chars): Delete the arg syntaxp, and move the code for
15442 handling syntaxes to skip_syntaxes. Change callers.
15443 Fix the case that the multibyteness of STRING and the current
15444 buffer doesn't match.
15445 (skip_syntaxes): New function.
15446 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
15447 SINGLE_BYTE_CHAR_P.
15448
15449 2008-02-01 Kenichi Handa <handa@m17n.org>
15450
15451 * xfaces.c (QCfontset): New variable.
15452 (LFACE_FONTSET): New macro.
15453 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
15454 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
15455 (Finternal_set_lisp_face_attribute)
15456 (Finternal_get_lisp_face_attribute): Handle QCfontset.
15457 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
15458 check also LFACE_FONTSET_INDEX.
15459 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
15460 attrs[LFACE_FONT_INDEX].
15461 (syms_of_xfaces): Intern and staticpro QCfontset.
15462
15463 * dispextern.h (enum lface_attribute_index): New member
15464 LFACE_FONTSET_INDEX.
15465
15466 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
15467
15468 2008-02-01 Kenichi Handa <handa@m17n.org>
15469
15470 * coding.c (coding_set_destination): Fix coding->destination for
15471 the case converting a region.
15472 (encode_coding_utf_8): Encode eight-bit chars as single byte.
15473 (encode_coding_object): Fix coding->dst_pos and
15474 coding->dst_pos_byte for the case converting a region.
15475
15476 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
15477
15478 * character.h (BYTE8_STRING): New macro.
15479
15480 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
15481
15482 2008-02-01 Kenichi Handa <handa@m17n.org>
15483
15484 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
15485 characters by octal form.
15486
15487 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
15488
15489 * buffer.h (_fetch_multibyte_char_len): Delete extern.
15490 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
15491 _fetch_multibyte_char_len.
15492 (FETCH_CHAR_AS_MULTIBYTE): New macro.
15493
15494 * casetab.c (set_canon, set_identity, shuffle): Simplify.
15495
15496 * casefiddle.c (casify_object): Simplify. Handle the case that
15497 the case conversion change the byte length.
15498 (casify_region): Likewise.
15499
15500 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
15501
15502 * character.c (_fetch_multibyte_char_len): Delete this variable.
15503 (syms_of_character): Setup Vprintable_chars.
15504
15505 * editfns.c (Fchar_equal): Fix for the unibyte case.
15506 (Finsert_byte): New function.
15507 (syms_of_editfns): Defsubr it.
15508
15509 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
15510 of direct code 0x3ffff.
15511
15512 * search.c (Freplace_match): Fix for the unibyte case.
15513
15514 2008-02-01 Kenichi Handa <handa@m17n.org>
15515
15516 * lread.c (safe_to_load_p): Fix the logic.
15517
15518 * syntax.c (scan_words): Don't treat characters belonging to
15519 different scripts as constituting a word.
15520
15521 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
15522
15523 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
15524
15525 * emacs.c (main): In the case of --unibyte, instead of aborting on
15526 finding non-empty buffer, make it unibyte.
15527
15528 2008-02-01 Kenichi Handa <handa@m17n.org>
15529
15530 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
15531 to create a fontset.
15532
15533 2008-02-01 Dave Love <fx@gnu.org>
15534
15535 * character.c (Funibyte_char_to_multibyte): Doc fix.
15536
15537 * xfns.c [HAVE_STDLIB_H]: Fix last change.
15538
15539 2008-02-01 Kenichi Handa <handa@m17n.org>
15540
15541 * fontset.c (fontset_add): Make the type `int'.
15542 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
15543
15544 * character.c (unibyte_char_to_multibyte)
15545 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
15546 charset_unibyte, not charset_primary.
15547
15548 * charset.h (charset_unibyte): Extern it instead of charset_primary.
15549
15550 * charset.c (charset_unibyte): Rename from charset_primary.
15551 (Funibyte_charset): Rename from Fprimary_charset.
15552 (Fset_unibyte_charset): Rename from Fset_primary_charset.
15553 (syms_of_charset): Adjust for the above changes.
15554
15555 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
15556 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
15557 it->multibyte_p is zero.
15558
15559 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
15560 Delete extern.
15561
15562 2008-02-01 Kenichi Handa <handa@m17n.org>
15563
15564 * coding.c (Fdefine_coding_system_internal): Fix category setting
15565 for a coding system of type iso-2022.
15566
15567 2008-02-01 Kenichi Handa <handa@m17n.org>
15568
15569 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
15570
15571 2008-02-01 Kenichi Handa <handa@m17n.org>
15572
15573 * syntax.c (Vnext_word_boundary_function_table): New variable.
15574 (next-word-boundary-function-table): Declare it as a Lisp variable
15575 in syms_of_syntax.
15576 (scan_words): Call functions in Vnext_word_boundary_function_table
15577 if any.
15578
15579 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
15580
15581 * fontset.c (fs_load_font): If fontp->charset is not negative,
15582 return fontp without setting its members.
15583
15584 2008-02-01 Dave Love <fx@gnu.org>
15585
15586 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
15587
15588 * m/sparc.h (HAVE_ALLOCA): Delete.
15589
15590 * s/irix6-5.h: Don't include strings.h.
15591 (bcopy, bzero, bcmp): Don't undef.
15592
15593 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
15594
15595 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
15596 (TIOCSIGSEND): Don't test IRIX6.
15597 (bcopy, bzero, bcmp): Define conditionally.
15598
15599 2008-02-01 Kenichi Handa <handa@m17n.org>
15600
15601 * buffer.c (Qas, Qmake, Qto): New variables.
15602 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
15603 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
15604
15605 * callproc.c (Fcall_process): Don't call insert_1_both directly if
15606 we are inserting a process output into a multibyte buffer.
15607
15608 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
15609 multibyte_char_to_unibyte.
15610
15611 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
15612 by the primary charset, make it eight-bit char.
15613 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
15614
15615 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
15616 (charset_8_bit__control, charset_8_bit_graphic)
15617 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
15618 (define_charset_internal): New function.
15619 (syms_of_charset): Call define_charset_internal for pre-defined
15620 charsets.
15621
15622 * charset.h (charset_8_bit): Extern it.
15623
15624 * coding.c (make_conversion_work_buffer): Adjust for the change
15625 of Fset_buffer_multibyte.
15626 (encode_coding_raw_text): Increment p0 in the loop.
15627
15628 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
15629
15630 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
15631 for the change of Fset_buffer_multibyte.
15632
15633 * fns.c (Fstring_to_multibyte): New function.
15634 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
15635
15636 2008-02-01 Dave Love <fx@gnu.org>
15637
15638 * xfns.c (x_put_x_image): Declare args.
15639
15640 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
15641 (try_font_list): Declare an arg.
15642
15643 * xdisp.c (message2_nolog, set_message): Declare an arg.
15644
15645 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
15646
15647 * syntax.c (scan_sexps_forward): Declare an arg.
15648
15649 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
15650 Declare an arg.
15651
15652 * lisp.h (Fnew_fontset): Declare.
15653
15654 * keymap.c (push_key_description): Call CHARACTERP correctly.
15655
15656 * fontset.c (fontset_add): Declare args. Call make_number correctly.
15657 (face_for_char): Delete unused vars.
15658 (Fset_fontset_font): Doc fix. Delete unused vars.
15659
15660 * doc.c (Fsubstitute_command_keys): Delete unused vars.
15661
15662 * composite.c (update_compositions): Declare arg.
15663
15664 * cm.c (calccost, cmgoto): Declare args.
15665
15666 * charset.c: Remove `emacs' conditional. Doc fixes.
15667 (map_char_table_for_charset): Declare.
15668
15669 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
15670
15671 * ccl.c: Remove `emacs' conditional.
15672
15673 2008-02-01 Kenichi Handa <handa@m17n.org>
15674
15675 The following changes are to allow specifying multiple font
15676 patterns for a character range (specified by script or charset).
15677
15678 * Makefile.in (abbrev.o): Depend on syntax.h.
15679 (xfaces.o): Depend on charset.h.
15680
15681 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
15682 SINGLE_BYTE_CHAR_P.
15683
15684 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
15685
15686 * character.h (Vchar_script_table): Extern it.
15687
15688 * character.c (Vscript_alist): Delete.
15689 (Vchar_script_table, Qchar_script_table): New variable.
15690 (syms_of_character): Declare Vchar_script_table as a lisp variable
15691 and initialize it.
15692
15693 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
15694 have property char-table-extra-slots, make no extra slot.
15695
15696 * dispextern.h (struct face): Delete member `charset'.
15697 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
15698 SINGLE_BYTE_CHAR_P.
15699 (choose_face_font, lookup_non_ascii_face, font_name_registry):
15700 Add prototypes.
15701 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
15702 (generate_ascii_font_name): Rename from generate_ascii_font.
15703
15704 * fontset.h (get_font_repertory_func): New prototype.
15705 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
15706 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
15707
15708 * fontset.c (Qprepend, Qappend): New variables.
15709 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
15710 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
15711 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
15712 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
15713 (fontset_ref_and_range, fontset_add, reorder_font_vector)
15714 (load_font_get_repertory): New functions.
15715 (fontset_set): Delete.
15716 (fontset_face): New arg FACE. Return face ID, not face.
15717 Complete re-write to handle new fontset structure. Change caller.
15718 (free_face_fontset): Use ASET istead of AREF (X) = Y.
15719 (face_for_char): Don't call lookup_face.
15720 (make_fontset_for_ascii_face): New arg FACE.
15721 (fs_load_font): New arg CHARSET_ID. Don't check
15722 Vfont_encoding_alist here.
15723 (find_font_encoding): New function.
15724 (list_fontsets): Use STRINGP, not ! NILP.
15725 (accumulate_script_ranges): New function.
15726 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
15727 re-written to handle new fontset structure.
15728 (Ffontset_font): Return a copy of element.
15729 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
15730 docstring of font-encoding-alist.
15731
15732 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
15733 (Fset_fotset_font): Fix arguments to 5.
15734
15735 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
15736
15737 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
15738 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
15739 (highlight_trailing_whitespace): Adjust for the change of
15740 lookup_named_face.
15741
15742 * xfaces.c: Include charset.h.
15743 (load_face_font): Delete argument C. Change caller.
15744 (generate_ascii_font_name): Rename from generate_ascii_font.
15745 (font_name_registry): New function.
15746 (cache_face): Store ascii faces before non-ascii faces in buckets.
15747 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
15748 Lookup only ascii faces.
15749 (lookup_non_ascii_face): New function.
15750 (lookup_named_face): Delete argument C. Change caller.
15751 (lookup_derived_face): Delete argument C. Change caller.
15752 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
15753 a string, just call font_list with it.
15754 (choose_face_font): Delete arguments FACE and C. New arg
15755 FONT_SPEC. Change caller.
15756 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
15757 Change caller.
15758 (realize_non_ascii_face): New function.
15759 (realize_x_face): Call load_face_font here.
15760 (realize_tty_face): Delete argument C. Change caller.
15761 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
15762 get a face ID.
15763 (dump_realized_face): Don't print charset of FACE.
15764
15765 * xfns.c (x_set_font): Always call x_new_fontset and
15766 store_frame_parameter.
15767 (Fx_create_frame): Call x_new_fontset, not x_new_font.
15768 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
15769
15770 * xterm.h (x_get_font_repertory): Extern it.
15771
15772 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
15773 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
15774 it->multibyte_p is zero.
15775 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
15776 (x_new_fontset): If FONTSETNAME doesn't match any existing
15777 fontsets, create a new one.
15778 (x_get_font_repertory): New function.
15779
15780 2008-02-01 Kenichi Handa <handa@m17n.org>
15781
15782 * coding.c (Ffind_coding_systems_region_internal): Detect an
15783 ASCII only string correctly.
15784
15785 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
15786 version is 0.
15787
15788 2008-02-01 Kenichi Handa <handa@m17n.org>
15789
15790 * lread.c: Include "coding.h".
15791 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
15792 (load_each_byte, unread_char): New variables.
15793 (readchar_backlog): Delete.
15794 (readchar): Return a character unless load_each_byte is nonzero.
15795 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
15796 cons. If unread_char is not -1, simply return it.
15797 (unreadchar): Handle the case that readcharfun is
15798 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
15799 (read_multibyte): Delete.
15800 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
15801 (read_emacs_mule_char): New functions.
15802 (Fload): Even if the file doesn't have the extension ".elc", if
15803 safe_to_load_p returns a positive version number, assume that the
15804 file contains bytecompiled code. If the version is less than 22,
15805 load the file while decoding multibyte sequences by emacs-mule.
15806 (readevalloop): Don't use readchar_backlog.
15807 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
15808 (Fread_from_string): Pay attention to the case that STREAM is a cons.
15809 (read_escape): Delete the arg BYTEREP.
15810 (read1): Set load_each_byte to 1 temporarily while handling
15811 #@NUMBER. Don't call read_multibyte.
15812 (read_vector): Call Fread with a cons. If readcharfun is
15813 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
15814 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
15815 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
15816 and Qload_force_doc_strings.
15817
15818 2008-02-01 Kenichi Handa <handa@m17n.org>
15819
15820 * xdisp.c (face_before_or_after_it_pos): Call
15821 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
15822
15823 2008-02-01 Kenichi Handa <handa@m17n.org>
15824
15825 * character.h (TRAILING_CODE_P): New macro.
15826 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
15827 (string_char_with_unification): Fix prototype.
15828 (Vscript_alist): Extern it.
15829
15830 * character.c (Vscript_alist): New variable.
15831 (string_char_with_unification, str_as_unibyte)
15832 (string_escape_byte8): Add `const' to local variables.
15833 (syms_of_character): Declare script-alist as a Lisp variable.
15834
15835 * charset.h (Vcharset_ordered_list): Extern it.
15836 (charset_ordered_list_tick): Extern it.
15837 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
15838 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
15839 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
15840 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
15841 (Funify_charset): Adjust for the change of Funify_charset.
15842
15843 * charset.c (charset_ordered_list_tick): New variable.
15844 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
15845 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
15846 deunify intead of unify a charset.
15847 (string_xstring_p): Add `const' to local variables.
15848 (find_charsets_in_text): Add `const' to arguments and local variables.
15849 (encode_char): Adjust for the change of Funify_charset. Fix
15850 detecting of invalid code.
15851 (Fset_charset_priority): Increment charset_ordered_list_tick.
15852 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
15853 and TO_CODE.
15854
15855 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
15856 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
15857 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
15858 (decode_coding_ccl, consume_chars)
15859 (Ffind_coding_systems_region_internal)
15860 (Fcheck_coding_systems_region): Add `const' to local variables.
15861
15862 * print.c (print_object): Use octal form for printing the
15863 contents of a bool vector.
15864
15865 2008-02-01 Dave Love <fx@gnu.org>
15866
15867 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
15868 <version == 20>: Refuse to load.
15869
15870 2008-02-01 Dave Love <fx@gnu.org>
15871
15872 * fns.c: Move coding.h.
15873 (Qcodeset, Qdays, Qmonths): New.
15874 (concat): Use CHARACTERP instead of INTEGERP.
15875 (Flocale_codeset): Delete.
15876 (Flanginfo): New function.
15877 (syms_of_fns): Change accordingly.
15878
15879 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
15880
15881 2008-02-01 Dave Love <fx@gnu.org>
15882
15883 * casetab.c (init_casetab_once, init_casetab_once): Fix
15884 CHAR_TABLE_SET call.
15885
15886 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
15887
15888 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
15889
15890 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
15891 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
15892 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
15893
15894 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
15895
15896 * coding.c (ENCODE_DESIGNATION, decode_eol)
15897 (make_conversion_work_buffer, code_conversion_restore)
15898 (Fdefine_coding_system_internal): Convert Lisp types.
15899 (code_conversion_restore): Use EQ, not ==.
15900 (Fencode_coding_string): Fix code_convert_string call.
15901
15902 * coding.h (code_convert_region): Fix prototype.
15903
15904 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
15905
15906 * fontset.c (fontset_ref, fontset_set, fs_load_font)
15907 (Ffontset_info): Convert Lisp types.
15908
15909 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
15910
15911 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
15912
15913 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
15914
15915 * chartab.c: Include "...h", not <...h> in some cases.
15916
15917 * callproc.c (Fcall_process): Remove unused variables.
15918
15919 2008-02-01 Dave Love <fx@gnu.org>
15920
15921 * coding.c (Fset_coding_system_priority): Allow null arg list.
15922
15923 2008-02-01 Dave Love <fx@gnu.org>
15924
15925 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
15926 (Fself_insert_and_exit): Use CHARACTERP.
15927
15928 * callproc.c (Fcall_process): Remove unused vars.
15929
15930 * xterm.c (XTread_socket): Add extra dead keysyms.
15931
15932 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
15933
15934 * dispextern.h: Remove prototypes for redraw_frame,
15935 redraw_garbaged_frames.
15936
15937 * cmds.c (Fself_insert_command): Use CHARACTERP.
15938
15939 * chartab.c (make_sub_char_table): Remove unused var.
15940 (Fset_char_table_default, Fmap_char_table): Doc fix.
15941
15942 * keymap.c (access_keymap): Remove generic char code.
15943 (push_key_description): Use CHARACTERP.
15944
15945 2008-02-01 Dave Love <fx@gnu.org>
15946
15947 * charset.c: Doc fixes.
15948 (Funify_charset): Extra checking.
15949
15950 2008-02-01 Dave Love <fx@gnu.org>
15951
15952 * lread.c: Remove some unused variables.
15953 (safe_to_load_p): If safe, return the magic number version byte.
15954 (Fload): Maybe use load-with-code-conversion.
15955
15956 2008-02-01 Kenichi Handa <handa@m17n.org>
15957
15958 * category.c (Fmodify_category_entry): Don't modify the contents
15959 of category_set for characters out of the range. Avoid
15960 unnecessary modification.
15961
15962 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
15963 Vchar_unify_table. The default value of the table is now nil.
15964
15965 * character.c (syms_of_character): Setup Vchar_width_table for
15966 eight-bit-control and raw-byte chars.
15967
15968 * charset.h (enum define_charset_arg_index): Delete
15969 charset_arg_parents and add charset_arg_subset and
15970 charset_arg_superset.
15971 (enum charset_attr_index): Delete charset_parents and add
15972 charset_subset and charset_superset.
15973 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
15974 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
15975 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
15976 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
15977 (CHARSET_SUPERSET): New macros.
15978 (charset_work): Extern it.
15979 (ENCODE_CHAR): Use charset_work.
15980 (CHAR_CHARSET_P): Adjust for the change of encoder format.
15981 (map_charset_chars): Extern it.
15982
15983 * charset.c (load_charset_map): Set the default value of encoder
15984 and deunifier char-tables to nil.
15985 (map_charset_chars): Change argument. Change callers. Use
15986 map_char_table_for_charset instead of map_char_table.
15987 (Fmap_charset_chars): New optional args from_code and to_code.
15988 (Fdefine_charset_internal): Adjust for the change of
15989 `define-charset' (:parents -> :subset or :superset).
15990 (charset_work): New variable.
15991 (encode_char, syms_of_charset): Adjust for the change of
15992 Fdefine_charset_internal.
15993 (Ffind_charset_string): Setup the vector `charsets' correctly.
15994
15995 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
15996 the previous change.
15997 (char_table_ref_and_range): Adjust for the above change.
15998 (map_sub_char_table_for_charset): New function.
15999 (map_char_table_for_charset): New function.
16000
16001 * keymap.c (describe_vector): Handle a char-table directly here.
16002 (describe_char_table): Delete.
16003
16004 * lisp.h (map_charset_chars): Delete.
16005
16006 2008-02-01 Dave Love <fx@gnu.org>
16007
16008 * fns.c (count_combining): Comment out (unused).
16009 (Flocale_codeset): New.
16010 (syms_of_fns): Defsubr it.
16011
16012 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
16013 (size_t): Remove.
16014
16015 2008-02-01 Dave Love <fx@gnu.org>
16016
16017 * Makefile.in (chartab.o): Depend on charset.h.
16018
16019 2008-02-01 Kenichi Handa <handa@m17n.org>
16020
16021 * character.c (syms_of_character): Set the default value of
16022 Vprintable_chars to Qnil.
16023
16024 2008-02-01 Dave Love <fx@gnu.org>
16025
16026 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
16027
16028 2008-02-01 Kenichi Handa <handa@m17n.org>
16029
16030 * charset.c (load_charset_map): Handle the case that from < to
16031 correctly.
16032
16033 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
16034 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
16035 Pay attention to raw-8-bit chars.
16036
16037 2008-02-01 Kenichi Handa <handa@m17n.org>
16038
16039 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
16040 It is not bytecompiled now.
16041
16042 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
16043 (charset_jisx0208): New variables.
16044 (Fdefine_charset_internal): Setup them if appropriate.
16045 (init_charset_once): Initialize them to -1.
16046
16047 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
16048 (charset_jisx0208): Extern them.
16049
16050 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
16051 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
16052 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
16053 (setup_iso_safe_charsets): Fix arguments to Fassq.
16054 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
16055 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
16056 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
16057 (encode_coding_iso_2022): Change the 1st arg to
16058 ENCODE_ISO_CHARACTER to a variable.
16059
16060 2008-02-01 Kenichi Handa <handa@m17n.org>
16061
16062 * charset.h (enum define_charset_arg_index): New enums
16063 charset_arg_min_code and charset_arg_max_code.
16064 (struct charset): New member char_index_offset.
16065
16066 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
16067 Take charset->char_index_offset into account.
16068 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
16069 args[charset_arg_max_code]. Setup charset.char_index_offset.
16070 (syms_of_charset): Fix args to Fdefine_charset_internal.
16071
16072 2008-02-01 Dave Love <fx@gnu.org>
16073
16074 * coding.c (decode_coding_utf_8): Reject overlong sequences.
16075
16076 2008-02-01 Dave Love <fx@gnu.org>
16077
16078 * coding.c: Doc fixes.
16079 (Fcoding_system_aliases): Fix return value.
16080 (Qmac): Remove (duplicated) definition.
16081
16082 2008-02-01 Dave Love <fx@gnu.org>
16083
16084 * charset.c (Fcharset_priority_list, Fset_charset_priority): New
16085 functions.
16086
16087 * character.c (Fstring): Doc fix.
16088
16089 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
16090
16091 * fontset.c (Ffontset_info): Doc fix. Return charset names, not
16092 ids.
16093 (font-encoding-alist): Doc fix.
16094
16095 2008-02-01 Dave Love <fx@gnu.org>
16096
16097 * term.c (costs_set): Declare static, non-initialized for pcc.
16098 (encode_terminal_code): Remove unused var.
16099
16100 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
16101 for K&R.
16102
16103 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
16104
16105 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
16106 (suffixes): Move out of make_subsidiaries for K&R.
16107
16108 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
16109
16110 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
16111
16112 2008-02-01 Dave Love <fx@gnu.org>
16113
16114 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
16115
16116 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
16117
16118 2008-02-01 Yong Lu <lyongu@asia-infonet.com>
16119
16120 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
16121
16122 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
16123
16124 2008-02-01 Kenichi Handa <handa@m17n.org>
16125
16126 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
16127 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
16128
16129 2008-02-01 Kenichi Handa <handa@m17n.org>
16130
16131 * coding.c (decode_coding_charset): Adjust for the change of
16132 Fdefine_coding_system_internal.
16133 (Fdefine_coding_system_internal): For a coding system of
16134 `charset' type, store a list of charset IDs in
16135 `charset_attr_charset_valids' element of coding attributes.
16136
16137 2008-02-01 Kenichi Handa <handa@m17n.org>
16138
16139 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
16140 (emacs_mule_char): New arg src. Delete arg `composition'. Change
16141 caller. Handle 2-byte and 3-byte charsets correctly.
16142 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
16143 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
16144 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
16145 (DECODE_EMACS_MULE_21_COMPOSITION): Call
16146 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
16147 sequence.
16148 (decode_coding_emacs_mule): Handle composition correctly. Rewind
16149 `src' and `consumed_chars' correctly before calling emacs_mule_char.
16150 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
16151 and alt&rule composition.
16152 (decode_coding_iso_2022): Handle composition correctly.
16153 (init_coding_once): Setup emacs_mule_bytes for private charsets.
16154
16155 * charset.c (Fdefine_charset_internal): Fix bug for the case of
16156 re-defining a charset. If the charset has :emacs-mule-id, setup
16157 emacs_mule_bytes.
16158 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
16159
16160 2008-02-01 Kenichi Handa <handa@m17n.org>
16161
16162 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
16163 (encode_coding_big5, encode_coding_charset): If coding requires safe
16164 encoding, produce a character specified by
16165 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
16166
16167 2008-02-01 Dave Love <fx@gnu.org>
16168
16169 * xterm.c (XSetIMValues): Declare.
16170
16171 * process.c: Conditionally include sys/wait.h, pty.h.
16172
16173 * print.c (print_object): Fix print format for 64-bit systems.
16174
16175 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
16176
16177 * buffer.c (emacs_strerror): Declare.
16178
16179 * fontset.c (Fclear_face_cache): Declare.
16180 (accumulate_font_info): Comment-out (unused).
16181 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
16182 variables.
16183
16184 * character.h (string_escape_byte8): Declare.
16185
16186 * charset.c (load_charset_map, load_charset_map_from_file): Remove
16187 unused vars.
16188 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
16189 (Fmap_charset_chars): Doc fix.
16190
16191 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
16192 (Fset_coding_system_priority, Fset_coding_system_priority)
16193 (Fdefine_coding_system_internal): Doc fix.
16194
16195 2008-02-01 Dave Love <fx@gnu.org>
16196
16197 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
16198
16199 2008-02-01 Kenichi Handa <handa@m17n.org>
16200
16201 * character.c (string_escape_byte8): Make multibyte string with
16202 correct size.
16203
16204 * charset.c (Fmake_char): Delete unnecessary code.
16205
16206 2008-02-01 Kenichi Handa <handa@m17n.org>
16207
16208 * xfns.c (x_encode_text): Allocate coding.destination here, and
16209 call encode_coding_object with dst_object Qnil.
16210
16211 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
16212 multibyte form correctly.
16213
16214 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
16215 against Vfont_encoding_alist.
16216
16217 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
16218 handling of charset list.
16219 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
16220 (decode_coding_object): Move point to coding->dst_pos before
16221 calling post-read-conversion function.
16222 (encode_coding_object): Give correct arguments to
16223 pre-write-conversion. Ignore the return value of
16224 pre-write-conversion function. Pay attention to the case that
16225 pre-write-conversion changes the current buffer. If dst_object is
16226 Qt, even if coding->src_bytes is zero, allocate at least one byte
16227 to coding->destination.
16228
16229 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
16230
16231 * charset.c (Fmake_char): Make it more backward compatible.
16232 (Fmap_charset_chars): Fix docstring.
16233
16234 2008-02-01 Dave Love <fx@gnu.org>
16235
16236 * coding.c: Doc fixes.
16237 (Fdefine_coding_system_alias): Use names, not symbols, in
16238 coding-system-alist.
16239
16240 2008-02-01 Kenichi Handa <handa@m17n.org>
16241
16242 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
16243 of calling free_realized_face.
16244
16245 2008-02-01 Yong Lu <lyongu@asia-infonet.com>
16246
16247 * charset.c (read_hex): Don't treat SPC as a comment starter.
16248 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
16249 (Fdecode_char): Fix typo.
16250
16251 2008-02-01 Kenichi Handa <handa@m17n.org>
16252
16253 * charset.h (struct charset): New member `code_space_mask'.
16254
16255 * coding.c (coding_set_source): Delete the local variable beg_byte.
16256 (encode_coding_charset, Fdefine_coding_system_internal):
16257 Delete the local variable charset.
16258 (Fdefine_coding_system_internal): Setup
16259 attrs[coding_attr_charset_valids] correctly.
16260
16261 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
16262 member to check if CODE is valid or not.
16263 (Fdefine_charset_internal): Initialize `code_space_mask' member.
16264 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
16265 is within the range of charset->min_code and carset->max_code.
16266
16267 2008-02-01 Dave Love <fx@gnu.org>
16268
16269 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
16270
16271 * dispextern.h (generate_ascii_font): Fix return type.
16272
16273 * xfaces.c (generate_ascii_font): Fix arg declaration.
16274
16275 * coding.c (coding_inherit_eol_type)
16276 (Fset_terminal_coding_system_internal)
16277 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
16278
16279 2008-02-01 Kenichi Handa <handa@m17n.org>
16280
16281 * coding.c (decode_coding_charset, encode_coding_charset): Handle
16282 multiple charsets correctly.
16283
16284 2008-02-01 Kenichi Handa <handa@m17n.org>
16285
16286 * search.c (boyer_moore): Fix handling of multibyte character
16287 translation.
16288
16289 * xdisp.c (display_mode_element): When the variable `elt' is
16290 changed, update `this' and `lisp_string'.
16291
16292 2008-02-01 Kenichi Handa <handa@m17n.org>
16293
16294 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
16295
16296 * callproc.c (Fcall_process): Be sure to give the current buffer
16297 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
16298
16299 * charset.c (struct charset_map_entries): New struct.
16300 (load_charset_map): Rename from parse_charset_map. New args
16301 entries and n_entries. Change caller.
16302 (load_charset_map_from_file): Rename from load_charset_map.
16303 Change caller. New arg control_flag. Call load_charset_map at
16304 the tail.
16305 (load_charset_map_from_vector): New function.
16306 (Fdefine_charset_internal): Setup charset.compact_codes_p.
16307 (encode_char): If the charset is compact, change a character index
16308 to a code point.
16309
16310 * coding.c (coding_alloc_by_making_gap): Check the case that the
16311 source and destination are the same correctly.
16312 (decode_coding_raw_text): Set coding->consumed_char and
16313 coding->consumed to 0.
16314 (produce_chars): If coding->chars_at_source is nonzero, update
16315 coding->consumed_char and coding->consumed before calling
16316 alloc_destination.
16317 (Fdefine_coding_system_alias): Register ALIAS in
16318 Vcoding_system_alist.
16319 (syms_of_coding): Define `no-conversion' coding system at the tail.
16320
16321 * fileio.c (Finsert_file_contents): Set coding_system instead of
16322 val. If the current buffer is multibyte, always call
16323 decode_coding_gap.
16324
16325 * xfaces.c (try_font_list): Give higher priority to fontset's
16326 family than face's family.
16327
16328 2008-02-01 Kenichi Handa <handa@m17n.org>
16329
16330 * callproc.c (Fcall_process): Be sure to give the current buffer
16331 to decode_coding_c_string.
16332
16333 * xfaces.c (try_font_list): Give a family specified in a fontset
16334 higher priority than a family specified in a face.
16335
16336 2008-02-01 Kenichi Handa <handa@m17n.org>
16337
16338 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
16339 Fix arguments to insert_from_buffer.
16340
16341 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
16342
16343 2008-02-01 Kenichi Handa <handa@m17n.org>
16344
16345 * coding.c (produce_chars): Set the variable `multibytep' correctly.
16346 (decode_coding_gap): Set coding->dst_multibyte correctly.
16347
16348 2008-02-01 Kenichi Handa <handa@m17n.org>
16349
16350 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
16351 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
16352 (encode_coding_utf_16): Substitute coding->default_char for
16353 non-Unicode characters.
16354 (decode_coding): Don't call record_insert here.
16355 (setup_coding_system): Initialize `surrogate' of
16356 coding->spec.utf_16 to 0.
16357 (EMIT_ONE_BYTE): Fix for multibyte case.
16358
16359 * insdel.c (insert_from_gap): Call record_insert.
16360
16361 2008-02-01 Kenichi Handa <handa@m17n.org>
16362
16363 * casefiddle.c (casify_region): Fix multibyte case.
16364
16365 * character.c (c_string_width): Add return type `int'.
16366 (char_string_with_unification): Delete arg ADVANCED.
16367
16368 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
16369 (CHAR_STRING): Adjust for the change of char_string_with_unification.
16370 (CHAR_STRING_ADVANCE): Make it do-while statement.
16371
16372 * chartab.c (sub_char_table_set_range): Optimize for the case
16373 DEPTH == 3. Add workaround code for a GCC optimization bug.
16374
16375 * charset.c (parse_charset_map): Remove an unused variable.
16376
16377 * coding.c: Delete unused variables.
16378
16379 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
16380 earlier. If inserted is zero and the coding system doesn't
16381 require flushing, don't call decode_coding_gap.
16382
16383 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
16384
16385 2008-02-01 Kenichi Handa <handa@m17n.org>
16386
16387 The following changes are for using Unicode as an internal
16388 character model, and use UTF-8 format for buffer/string
16389 representation.
16390
16391 * .gdbinit (xchartable): Adjust for the change of char table structure.
16392 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
16393
16394 * Makefile.in (obj): Add character.o and chartab.o.
16395 (lisp, shortlisp): Remove utf-8.elc.
16396 (*.o): For many files, change dependency on charset.h to
16397 character.h, and add dependency on character.h.
16398 (character.o, chartab.o): New targets.
16399
16400 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
16401 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
16402 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
16403 of "charset.h".
16404
16405 * dired.c, filelock.c: Include "character.h".
16406
16407 * alloc.c: Include "character.h" instead of "charset.h".
16408 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
16409 (syms_of_alloc): Remove defsubr for Smake_char_table.
16410
16411 * buffer.c: Include "character.h" instead of "charset.h", don't
16412 include "coding.h".
16413 (Fset_buffer_multibyte): Adjust for UTF-8.
16414
16415 * buffer.h: EXFUN Fbuffer_live_p.
16416
16417 * callproc.c: Include "character.h" instead of "charset.h".
16418 (Fcall_process): Big change for the new code-conversion APIs.
16419
16420 * casetab.c: Include "character.h" instead of "charset.h".
16421 (set_canon, set_identity, shuffle): Adjust for the new
16422 map_char_table spec.
16423 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
16424 accessing the char table structure.
16425
16426 * chartab.c: New file that implements char table.
16427
16428 * category.c: Include "character.h".
16429 (copy_category_entry): New function.
16430 (copy_category_table): Call map_char_table and copy_category_entry.
16431 (Fmake_category_table): Initialize all top-level slots.
16432 (char_category_set): New function.
16433 (modify_lower_category_set): Delete.
16434 (Fmodify_category_entry): Call char_table_ref_and_range.
16435
16436 * category.h (CATEGORY_SET): Just call char_category_set.
16437
16438 * ccl.c: Include "character.h".
16439 (Qccl, Qcclp): New variables.
16440 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
16441 it's less than 256.
16442 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
16443 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
16444 and DST type.
16445 (ccl_driver): Change types of argument, adjust code accordingly.
16446 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
16447 ccl_driver.
16448 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
16449
16450 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
16451 New members src_multibyte, dst_multibyte, consumed, and produced.
16452 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
16453 (CODING_SPEC_CCL_PROGRAM): New macro.
16454 (ccl_driver): Update prototype.
16455 (Qccl, Qcclp, Fccl_program_p): Extern them.
16456 (CHECK_CCL_PROGRAM): New macro.
16457
16458 * character.c, character.h, chartab.c: New files.
16459
16460 * charset.c: Mostly re-written. Move character and multibyte sequence
16461 handling codes to character.c.
16462
16463 * charset.h: Mostly re-written. Move character and multibyte sequence
16464 handling codes to character.h.
16465
16466 * coding.c, coding.h: Mostly re-written.
16467
16468 * composite.c: Include "character.h" instead of "charset.h".
16469 (CHAR_WIDTH): Move to character.h.
16470 (HASH_KEY, HASH_VALUE): Delete.
16471
16472 * composite.h (enum composition_method): Change order of enumeration
16473 symbols.
16474
16475 * data.c: Include "character.h" instead of "charset.h".
16476 (Faref): Call CHAR_TABLE_REF for a char table.
16477 (Faset): Call CHAR_TABLE_SET for a char table.
16478
16479 * dispextern.h (free_realized_face, check_face_attribytes)
16480 (generate_ascii_font): Extern them.
16481 (free_realized_multibyte_face): Delete extern.
16482
16483 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
16484 table structure.
16485
16486 * editfns.c: Include "character.h" instead of "charset.h".
16487 (Fchar_to_string): Always call CHAR_STRING.
16488
16489 * emacs.c (main): Call init_charset_once, init_charset,
16490 syms_of_chartab, and syms_of_character.
16491
16492 * fileio.c: Include "character.h" instead of "charset.h".
16493 (Finsert_file_contents): Big change for the new code-conversion API.
16494 (choose_write_coding_system, Fwrite_region): Likewise.
16495 (build_annotations_2): Delete.
16496 (e_write): Big change for the new code-conversion API.
16497
16498 * fns.c: Include "character.h" instead of "charset.h".
16499 (copy_sub_char_table): Move to chartab.c.
16500 (Fcopy_sequence): Call copy_char_table for a char table.
16501 (concat): Delete codes calling count_multibyte.
16502 (string_char_to_byte, string_byte_to_char): Adjust for the new
16503 multibyte form.
16504 (internal_equal): Adjust for the change of char table structure.
16505 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
16506 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
16507 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
16508 (char_table_translate, optimize_sub_char_table)
16509 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
16510 chartab.c.
16511 (char_table_ref_and_index): Delete.
16512 (HASH_KEY, HASH_VALUE): Move to lisp.h.
16513 (Fmd5): Call preferred_coding_system instead of accessing
16514 Vcoding_category_list. Adjust for the new code-conversion API.
16515 (syms_of_fns): Move defsubr for char table related functions to
16516 chartab.c.
16517
16518 * fontset.c: Mostly re-written.
16519
16520 * fontset.h (struct font_info): Change type of the member encoding_type.
16521 (enum FONT_SPEC_INDEX): New enum.
16522 (fontset_font_pattern, fs_load_font): Update prototype.
16523 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
16524
16525 * indent.c: Include "character.h" instead of "charset.h".
16526 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
16527
16528 * insdel.c: Include "character.h" instead of "charset.h".
16529 (copy_text): Don't refer to Vnonascii_translation_table.
16530 (insert_from_gap): New function.
16531
16532 * keyboard.c: Include "character.h" instead of "charset.h".
16533 (command_loop_1): Never call direct_output_forward_char before
16534 a non-ASCII character.
16535 (read_char): If Vkeyboard_translate_table is a char table, always
16536 translate a character.
16537
16538 * keymap.c: Include "character.h".
16539 (store_in_keymap): Handle the case that IDX is a cons.
16540 (Fdefine_key): Handle the case that KEY is a cons and the car part
16541 is also a cons (range).
16542 (push_key_description): Adjust for the new character code.
16543 (describe_vector): Call describe_char_table for a char table.
16544 (describe_char_table): New function.
16545
16546 * keymap.h (describe_char_table): Extern it.
16547
16548 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
16549 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
16550 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
16551 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
16552 Delete.
16553 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
16554 structure.
16555 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
16556 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
16557 (CHARTAB_SIZE_BITS_3): New macros.
16558 (chartab_size): Extern it.
16559 (struct Lisp_Char_Table): Re-design.
16560 (struct Lisp_Sub_Char_Table): New structure.
16561 (HASH_KEY, HASH_VALUE): Move from fns.c.
16562 (CHARACTERBITS): Define as 22.
16563 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
16564 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
16565 (GC_SUB_CHAR_TABLE_P): New macro.
16566 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
16567 (code_convert_string_norecord): Deleted extern.
16568 (init_character_once, syms_of_character, init_charset)
16569 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
16570
16571 * lread.c: Include "character.h".
16572 (read_multibyte): New arg NBYTES.
16573 (read_escape): Change the meaning of returned *BYTEREP.
16574 (to_multibyte): Delete.
16575 (read1): Adjust the handling of char table and string.
16576
16577 * print.c: Include "character.h" instead of "charset.h".
16578 (print_string): Convert 8-bit raw bytes to octal form by
16579 string_escape_byte8.
16580 (print_object): Adjust for the new multibyte form. Print 8-bit
16581 raw bytes always in octal form. Handle sub char table correctly.
16582
16583 * process.c: Include "character.h" instead of "charset.h".
16584 (read_process_output, send_process): Adjust for the new
16585 code-conversion API.
16586
16587 * puresize.h (BASE_PURESIZE): Increase.
16588
16589 * regex.c: Include "character.h" instead of "charset.h".
16590 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
16591 (regex_compile): Accept a range whose starting and ending
16592 character have different leading bytes.
16593 (analyse_first): Adjust for the above change.
16594
16595 * search.c: Include "character.h" instead of "charset.h".
16596 (search_buffer, boyer_moore): Adjust for the new multibyte form.
16597 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
16598
16599 * syntax.c: Include "character.h" instead of "charset.h".
16600 (syntax_parent_lookup): Delete.
16601 (Fmodify_syntax_entry): Accept a cons as CHAR.
16602 (skip_chars): Adjust for the new multibyte form.
16603 (init_syntax_once): Call char_table_set_range instead of directly
16604 accessing the structure of a char table.
16605
16606 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
16607 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
16608 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
16609 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
16610
16611 * term.c: Include "buffer.h" and "character.h".
16612 (encode_terminal_code, write_glyphs): Adjust for the new
16613 code-conversion API.
16614 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
16615
16616 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
16617
16618 * xdisp.c: Include "character.h".
16619 (get_next_display_element): Adjust for the new multibyte form.
16620 (disp_char_vector): Adjust for the new char table structure.
16621 (decode_mode_spec_coding): Adjust for the new structure of
16622 coding system.
16623 (decode_mode_spec): Adjust for the new code-conversion API.
16624
16625 * xfaces.c: Include "character.h" instead of "charset.h".
16626 (load_face_font): Adjust for the change of choose_face_font and
16627 FS_LOAD_FONT.
16628 (generate_ascii_font): New function.
16629 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
16630 (set_font_frame_param): Adjust for the change of choose_face_font.
16631 (free_realized_face): Make it public.
16632 (free_realized_faces_for_fontset): Rename from
16633 free_realized_multibyte_face. Free also faces realized for ASCII.
16634 (choose_face_font): Change arguments. Adjust for the change of
16635 fontset_font_pattern and FS_LOAD_FONT.
16636
16637 * xfns.c: Include "character.h".
16638 (x_encode_text): Adjust for the new code-conversion API.
16639
16640 * xselect.c: Don't include "charset.h".
16641 (selection_data_to_lisp_data): Adjust for the new code conversion API.
16642
16643 * xterm.c: Include "character.h".
16644 (x_encode_char): New argument CHARSET. Change caller.
16645 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
16646 Call ENCODE_CHAR instead of SPLIT_CHAR.
16647 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
16648 CHAR_WIDTH instead of CHARSET_WIDTH.
16649 (XTread_socket): Adjust for the new code-conversion API.
16650 (x_new_font): Adjust for the change of FS_LOAD_FONT.
16651 (x_load_font): Adjust for the change of struct font.
16652
16653 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
16654
16655 * xfaces.c (face_at_buffer_position): Remove unused vars.
16656
16657 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16658
16659 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
16660 Fix overflow checking.
16661
16662 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16663
16664 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
16665 Cancel previous change.
16666
16667 2008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
16668
16669 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
16670 ccl->eight_bit_control. Fix check for buffer overflow.
16671 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
16672 (ccl_driver): Initialize extra_bytes to 0.
16673
16674 2008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
16675
16676 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
16677 return it ORed with ctrl_modifier.
16678
16679 2008-01-29 Miles Bader <miles@gnu.org>
16680
16681 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
16682
16683 2008-01-28 Jason Rumney <jasonr@gnu.org>
16684
16685 * w32.c (stat): Don't double check for networked drive.
16686
16687 2008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
16688
16689 * window.c (run_window_configuration_change_hook): New function.
16690 Code extracted from set_window_buffer. Set the selected frame.
16691 (set_window_buffer): Use it.
16692 * window.h (run_window_configuration_change_hook): Declare.
16693 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
16694
16695 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
16696
16697 2008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
16698
16699 * Makefile.in: Remove references to unused macros.
16700
16701 2008-01-26 Eli Zaretskii <eliz@gnu.org>
16702
16703 * w32.c (g_b_init_get_sid_sub_authority)
16704 (g_b_init_get_sid_sub_authority_count): New static variables.
16705 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
16706 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
16707 (init_user_info): Use them to retrieve uid and gid.
16708 Use 500/513, the Windows defaults, as Administrator's uid/gid.
16709 (fstat): Use pw_uid and pw_gid from the_passwd structure for
16710 st_uid and st_gid of the file.
16711
16712 2008-01-26 Jason Rumney <jasonr@gnu.org>
16713
16714 * w32.c (logon_network_drive): New function.
16715 (stat): Use it.
16716
16717 2008-01-26 Chong Yidong <cyd@stupidchicken.com>
16718
16719 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
16720 invisible text covered with an ellipsis.
16721
16722 2008-01-25 Richard Stallman <rms@gnu.org>
16723
16724 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
16725 jump back to beginning. Move some other initializations after that.
16726 (Qwindow_text_change_functions, Vwindow_text_change_functions):
16727 New variables.
16728 (syms_of_xdisp): Init them.
16729
16730 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
16731
16732 * buffer.c (reset_buffer_local_variables):
16733 Implement `permanent-local-hook'.
16734 (Qpermanent_local_hook): New variable.
16735 (syms_of_buffer): Init and staticpro it.
16736
16737 2008-01-25 Michael Albinus <michael.albinus@gmx.de>
16738
16739 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
16740
16741 2008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
16742
16743 * fns.c (Fclrhash): Return TABLE.
16744
16745 2008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16746
16747 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
16748 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
16749 is set even without positional changes.
16750 (x_scroll_bar_clear): Set bar->redraw_needed_p.
16751
16752 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
16753
16754 2008-01-23 Jason Rumney <jasonr@gnu.org>
16755
16756 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
16757
16758 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
16759 the unicode range available in MULE by locale-coding-system.
16760 Improve dbcs lead byte detection. Set event timestamp and modifiers
16761 earlier.
16762
16763 2008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16764
16765 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
16766 [MAC_OSX] (init_mac_osx_environment): Initialize it.
16767 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
16768 when used on child processes.
16769
16770 2008-01-21 Michael Albinus <michael.albinus@gmx.de>
16771
16772 * dbusbind.c (Fdbus_method_return_internal): Rename from
16773 Fdbus_method_return.
16774 (Fdbus_unregister_object): Move to dbus.el.
16775 (Fdbus_call_method, Fdbus_method_return_internal)
16776 (Fdbus_send_signal): Improve debug messages.
16777
16778 2008-01-20 Martin Rudalics <rudalics@gmx.at>
16779
16780 * undo.c (undo_inhibit_record_point): New variable.
16781 (syms_of_undo): Initialize it.
16782 (record_point): Don't record point when undo_inhibit_record_point
16783 is set.
16784
16785 2008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
16786
16787 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
16788
16789 * xdisp.c (Qauto_hscroll_mode): New var.
16790 (syms_of_xdisp): Initialize it.
16791 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
16792 window's buffer.
16793 (hscroll_windows): Don't check automatic_hscrolling_p here.
16794
16795 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
16796 vscroll if we're setting window-buffer to the value it already has.
16797
16798 2008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
16799
16800 * m/intel386.h: Remove references to XENIX.
16801
16802 2008-01-17 Andreas Schwab <schwab@suse.de>
16803
16804 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
16805 instead of HAVE_X86_64_LIB64_DIR.
16806 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
16807
16808 2008-01-17 Glenn Morris <rgm@gnu.org>
16809
16810 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
16811 to HAVE_X86_64_LIB64_DIR.
16812
16813 2008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
16814
16815 * s/irix3-3.h:
16816 * s/irix4-0.h:
16817 * s/386-ix.h:
16818 * s/domain.h:
16819 * s/hpux9-x11r4.h:
16820 * s/hpux9shxr4.h: Remove files for systems no longer supported.
16821
16822 * sysdep.c: Remove code containing references to symbols defined
16823 by unsupported systems.
16824
16825 2008-01-16 Glenn Morris <rgm@gnu.org>
16826
16827 * coding.c (select-safe-coding-system-function): Doc fix.
16828
16829 2008-01-15 Glenn Morris <rgm@gnu.org>
16830
16831 * config.in: Revert 2008-01-13 change: this is a generated file.
16832
16833 2008-01-13 Tom Tromey <tromey@redhat.com>
16834
16835 * lisp.h: Fix typo.
16836
16837 2008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
16838
16839 * m/sequent-ptx.h:
16840 * m/sequent.h:
16841 * s/ptx.h:
16842 * s/ptx4-2.h:
16843 * s/ptx4.h: Remove files for systems no longer supported.
16844
16845 * callproc.c (Fcall_process): Fix previous change.
16846
16847 2008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
16848
16849 * unexsunos4.c: Remove file, system not supported anymore.
16850
16851 * m/mips.h:
16852 * m/intel386.h:
16853 * callproc.c:
16854 * config.in:
16855 * ecrt0.c:
16856 * emacs.c:
16857 * fileio.c:
16858 * frame.c:
16859 * getpagesize.h:
16860 * keyboard.c:
16861 * lread.c:
16862 * process.c:
16863 * puresize.h:
16864 * sysdep.c:
16865 * systty.h:
16866 * syswait.h:
16867 * unexec.c:
16868 * xdisp.c:
16869 * alloc.c: Remove code containing references to symbols defined by
16870 unsupported systems.
16871
16872 2008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
16873
16874 * coding.c (detect_coding_mask): Fix previous change.
16875
16876 2008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
16877
16878 * coding.c (detect_coding_iso2022): New arg
16879 latin_extra_code_state. Allow Latin extra codes only
16880 when *latin_extra_code_state is nonzero.
16881 (detect_coding_mask): If there is a NULL byte, detect the encoding
16882 as UTF-16 or binary. If Latin extra codes exist, detect the
16883 encoding as ISO-2022 only when there's no other proper encoding is
16884 found.
16885
16886 2008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16887
16888 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
16889 #ifdef MAC_OS.
16890
16891 2008-01-08 Richard Stallman <rms@gnu.org>
16892
16893 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
16894
16895 2008-01-06 Nick Roberts <nickrob@snap.net.nz>
16896
16897 * keyboard.c (parse_menu_item): Don't enclose key bindings on
16898 menu bar in parentheses.
16899
16900 2008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
16901
16902 * m/7300.h:
16903 * m/acorn.h:
16904 * m/alliant-2800.h:
16905 * m/alliant.h:
16906 * m/alliant1.h:
16907 * m/alliant4.h:
16908 * m/altos.h:
16909 * m/amdahl.h:
16910 * m/apollo.h:
16911 * m/att3b.h:
16912 * m/aviion-intel.h:
16913 * m/aviion.h:
16914 * m/celerity.h:
16915 * m/clipper.h:
16916 * m/cnvrgnt.h:
16917 * m/convex.h:
16918 * m/cydra5.h:
16919 * m/delta88k.h:
16920 * m/dpx2.h:
16921 * m/dual.h:
16922 * m/elxsi.h:
16923 * m/f301.h:
16924 * m/gould-np1.h:
16925 * m/gould.h:
16926 * m/i860.h:
16927 * m/ibmps2-aix.h:
16928 * m/ibmrt-aix.h:
16929 * m/ibmrt.h:
16930 * m/irist.h:
16931 * m/is386.h:
16932 * m/isi-ov.h:
16933 * m/mega68.h:
16934 * m/mg1.h:
16935 * m/news-r6.h:
16936 * m/news-risc.h:
16937 * m/news.h:
16938 * m/nh3000.h:
16939 * m/nh4000.h:
16940 * m/ns16000.h:
16941 * m/ns32000.h:
16942 * m/nu.h:
16943 * m/orion.h:
16944 * m/orion105.h:
16945 * m/paragon.h:
16946 * m/pfa50.h:
16947 * m/plexus.h:
16948 * m/pyramid.h:
16949 * m/pyrmips.h:
16950 * m/sh3el.h:
16951 * m/sps7.h:
16952 * m/sr2k.h:
16953 * m/stride.h:
16954 * m/sun1.h:
16955 * m/sun2.h:
16956 * m/sun3-68881.h:
16957 * m/sun3-fpa.h:
16958 * m/sun3-soft.h:
16959 * m/sun3.h:
16960 * m/sun386.h:
16961 * m/symmetry.h:
16962 * m/tad68k.h:
16963 * m/tahoe.h:
16964 * m/targon31.h:
16965 * m/tek4300.h:
16966 * m/tekxd88.h:
16967 * m/tower32.h:
16968 * m/tower32v3.h:
16969 * m/ustation.h:
16970 * m/wicat.h:
16971 * m/xps100.h:
16972 * s/cxux.h:
16973 * s/cxux7.h:
16974 * s/dgux.h:
16975 * s/dgux4.h:
16976 * s/dgux5-4-3.h:
16977 * s/dgux5-4r2.h:
16978 * s/esix.h:
16979 * s/esix5r4.h:
16980 * s/hiuxmpp.h:
16981 * s/hiuxwe2.h:
16982 * s/iris3-5.h:
16983 * s/iris3-6.h:
16984 * s/isc2-2.h:
16985 * s/isc3-0.h:
16986 * s/isc4-0.h:
16987 * s/isc4-1.h:
16988 * s/newsos5.h:
16989 * s/newsos6.h:
16990 * s/osf1.h:
16991 * s/osf5-0.h:
16992 * s/riscix1-1.h:
16993 * s/riscix12.h:
16994 * s/sco4.h:
16995 * s/sco5.h:
16996 * s/sunos4-0.h:
16997 * s/sunos4-1.h:
16998 * s/sunos413.h:
16999 * s/sunos4shr.h:
17000 * s/umax.h:
17001 * s/unipl5-2.h:
17002 * s/xenix.h:
17003 * cxux-crt0.s:
17004 * unexapollo.c:
17005 * unexconvex.c:
17006 * unexenix.c:
17007 * unexsni.c: Remove files for systems no longer supported.
17008
17009 * m/intel386.h: Remove references to unsupported systems.
17010
17011 * w32.c (get_emacs_configuration): Remove reference to i860.
17012
17013 * sysdep.c: Remove dead code.
17014
17015 2008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
17016
17017 * s/rtu.h:
17018 * m/masscomp.h: Remove files. Platform is obsolete.
17019
17020 2008-01-04 Michael Albinus <michael.albinus@gmx.de>
17021
17022 * dbusbind.c (Fdbus_method_return): New function.
17023 (xd_read_message): Add the serial number to the event.
17024 (Fdbus_register_method): Activate the function.
17025
17026 2008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
17027
17028 * keyboard.c (read_key_sequence): Fix typo.
17029
17030 2008-01-03 Michael Albinus <michael.albinus@gmx.de>
17031
17032 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
17033 (xd_signature, xd_append_arg): Handle element type detection for
17034 empty arrays.
17035 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
17036 SDATA () calls; this must be solved more general.
17037 (Fdbus_register_signal): Use SBYTES instead of strlen.
17038
17039 2008-01-03 Magnus Henoch <magnus@zemdatav>
17040
17041 * dbusbind.c (xd_append_arg): Use unsigned char instead of
17042 unsigned int for byte values (necessary for big-endian platform).
17043 (Fdbus_call_method): Handle the case of no returned arguments.
17044
17045 2007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
17046
17047 * dbusbind.c (xd_read_message): Use non-static input_event struct.
17048
17049 2007-12-31 Magnus Henoch <mange@freemail.hu>
17050
17051 * dbusbind.c (xd_signature): Signature of variant is just "v".
17052
17053 2007-12-30 Michael Albinus <michael.albinus@gmx.de>
17054
17055 * dbusbind.c: Fix several errors and compiler warnings.
17056 Reported by Tom Tromey <tromey@redhat.com>.
17057 (XD_ERROR, XD_DEBUG_MESSAGE)
17058 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
17059 (xd_append_arg): Part for basic D-Bus types rewritten.
17060 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
17061 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
17062 appropriate.
17063 (xd_read_message): Return Qnil. Don't signal an error; it is not
17064 useful during event reading.
17065 (Fdbus_register_signal): Signal an error if the check for
17066 FUNCTIONP fails.
17067 (Fdbus_register_method): New function. The implementation is not
17068 complete, the call of the function signals an error therefore.
17069 (Fdbus_unregister_object): New function, renamed from
17070 Fdbus_unregister_signal. The initial check signals an error, if
17071 the object is not well formed.
17072
17073 2007-12-30 Richard Stallman <rms@gnu.org>
17074
17075 * textprop.c (get_char_property_and_overlay):
17076 Signal error if POSITION is out of range in a buffer.
17077
17078 2007-12-29 Martin Rudalics <rudalics@gmx.at>
17079
17080 * w32fns.c (Fx_create_frame): Make copy of frame parameters
17081 because the original parameters are in pure storage now.
17082
17083 2007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17084
17085 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
17086
17087 2007-12-22 Eli Zaretskii <eliz@gnu.org>
17088
17089 * callint.c (syms_of_callint) <command-history>: Add reference to
17090 history-length in the doc string.
17091
17092 2007-12-17 Jason Rumney <jasonr@gnu.org>
17093
17094 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
17095 before passing as wParam.
17096
17097 2007-12-22 Michael Albinus <michael.albinus@gmx.de>
17098
17099 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
17100 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
17101 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
17102 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
17103 as number.
17104 (Fdbus_call_method): Fix docstring.
17105
17106 2007-12-21 Michael Albinus <michael.albinus@gmx.de>
17107
17108 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
17109 New macros.
17110 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
17111 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
17112 Simplify.
17113 (xd_signature): New function.
17114 (xd_append_arg): Compute also signatures. Major rewrite.
17115 (xd_retrieve_arg): Make debug messages friendly.
17116 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
17117 Check for signatures of arguments.
17118
17119 2007-12-19 Michael Albinus <michael.albinus@gmx.de>
17120
17121 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
17122 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
17123 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
17124 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
17125 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
17126 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
17127 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
17128 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
17129 (xd_retrieve_value): Remove. Functionality included in ...
17130 (xd_append_arg): New function.
17131 (Fdbus_call_method, Fdbus_send_signal): Apply it.
17132
17133 2007-12-16 Michael Albinus <michael.albinus@gmx.de>
17134
17135 * dbusbind.c (top): Include <stdio.h>.
17136 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
17137 dbus_message_new_method_call and dbus_message_new_signal.
17138 (Fdbus_register_signal): Rename unique_name to uname.
17139 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
17140 non-existing unique name. Fix typos in matching rule. Return an
17141 object which is useful in Fdbus_unregister_signal.
17142 (Fdbus_unregister_signal): Reimplementation, in order to remove
17143 only the corresponding entry.
17144 (Vdbus_registered_functions_table): Change the order of entries.
17145 Apply these changes in xd_read_message and Fdbus_register_signal.
17146
17147 2007-12-16 Andreas Schwab <schwab@suse.de>
17148
17149 * fileio.c (Finsert_file_contents): Fix overflow check to not
17150 depend on undefined integer overflow.
17151
17152 2007-12-14 Jason Rumney <jasonr@gnu.org>
17153
17154 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
17155 for characters above 127.
17156
17157 2007-12-13 Jason Rumney <jasonr@gnu.org>
17158
17159 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
17160 before dereferencing array.
17161 (lookup_vk_code): Remove zero comparison.
17162
17163 2007-12-14 Michael Albinus <michael.albinus@gmx.de>
17164
17165 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
17166 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
17167 Use `unsigned int' instead of `uint'.
17168 (xd_read_message, Fdbus_register_signal): Split expressions into
17169 multiple lines before operators "&&" and "||", according to the
17170 GNU Coding Standards.
17171
17172 2007-12-14 Eli Zaretskii <eliz@gnu.org>
17173
17174 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
17175
17176 2007-12-12 Juri Linkov <juri@jurta.org>
17177
17178 * buffer.c (Frename_buffer): In interactive spec replace
17179 `read-buffer' with `read-string' that uses `buffer-name-history'
17180 as history, and the current buffer's name as default.
17181
17182 2007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
17183
17184 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
17185 manipulating the backtrace manually.
17186 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
17187 (struct backtrace, backtrace_list): Remove.
17188 (command_loop_1): Remove dead var `no_direct'.
17189
17190 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
17191 preserve non-built-in buffer-local variables.
17192 (Fkill_all_local_variables): Don't re-create&re-set permanent
17193 buffer-local variables.
17194
17195 2007-12-09 Juri Linkov <juri@jurta.org>
17196
17197 * buffer.c (Frename_buffer): Change interactive spec from "s" to
17198 Lisp code that uses `read-buffer' with current buffer as default.
17199
17200 2007-12-08 Michael Albinus <michael.albinus@gmx.de>
17201
17202 * dbusbind.c (xd_read_message): Generate an event for every
17203 registered handler. There might be several handlers registered
17204 for the same signal.
17205 (Fdbus_register_signal): Don't overwrite a registration for the
17206 same signal. Add a new registration if handlers are different.
17207 (Vdbus_registered_functions_table): Rework doc string.
17208
17209 2007-12-07 Michael Albinus <michael.albinus@gmx.de>
17210
17211 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
17212 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
17213 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
17214 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
17215 Unify argument lists.
17216 (xd_read_message, Fdbus_register_signal): Reorder and extend event
17217 arguments and hash table keys. Use unique name for service.
17218 (Fdbus_unregister_signal): Remove checks.
17219 (Vdbus_registered_functions_table): Fix doc string.
17220
17221 2007-12-05 Magnus Henoch <mange@freemail.hu>
17222
17223 * process.c (make_process): Initialize pty_flag to 0.
17224
17225 2007-12-05 Jason Rumney <jasonr@gnu.org>
17226
17227 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
17228 specified XBMs.
17229
17230 2007-12-05 Richard Stallman <rms@gnu.org>
17231
17232 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
17233
17234 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17235
17236 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
17237 New variable.
17238 (mac_try_close_socket) [MAC_OSX]: New function.
17239 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
17240 Update cfsockets_for_select. Replace invalid CFRunLoop source.
17241
17242 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
17243 Use mac_try_close_socket.
17244
17245 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17246
17247 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
17248 reloc_base.
17249 (copy_dysymtab): Compute relocation base here.
17250 (rebase_reloc_address) [__ppc64__]: New function.
17251 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
17252 changed.
17253
17254 2007-12-05 Jason Rumney <jasonr@gnu.org>
17255
17256 * w32proc.c (sys_spawnve): Quote args with wildcards.
17257
17258 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17259
17260 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
17261 __objc_* sections.
17262 (unrelocate) [_LP64]: Set relocation base to address of data segment.
17263
17264 2007-12-05 Michael Albinus <michael.albinus@gmx.de>
17265
17266 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
17267 Move check for Vdbus_registered_functions_table to
17268 xd_read_queued_messages.
17269 (xd_read_queued_messages): Protect xd_read_message calls by
17270 internal_condition_case_1.
17271
17272 2007-12-04 Michael Albinus <michael.albinus@gmx.de>
17273
17274 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
17275 Qdbus_system_bus and Qdbus_session_bus, respectively.
17276 (Vdbus_intern_symbols): Remove.
17277 (Vdbus_registered_functions_table): New hash table.
17278 (XD_SYMBOL_INTERN_SYMBOL): Remove.
17279 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
17280 Rewrite in order to manage registered functions by hash table
17281 Vdbus_registered_functions_table.
17282
17283 2007-12-03 Jan Djärv <jan.h.d@swipnet.se>
17284
17285 * xterm.c: Update URL to Window Manager Specification in comment.
17286
17287 2007-12-02 Michael Albinus <michael.albinus@gmx.de>
17288
17289 * config.in (HAVE_DBUS): Add.
17290
17291 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
17292 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
17293 (obj): Add $(DBUS_OBJ).
17294 (LIBES): Add $(DBUS_LIBS).
17295 (dbusbind.o): New target.
17296
17297 * dbusbind.c: New file.
17298
17299 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
17300
17301 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
17302 (Qdbus_event): New Lisp symbol.
17303 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
17304 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
17305 (keys_of_keyboard): Define dbus-event.
17306
17307 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
17308
17309 2007-12-01 Richard Stallman <rms@gnu.org>
17310
17311 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
17312
17313 2007-11-30 Jason Rumney <jasonr@gnu.org>
17314
17315 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
17316 (w32con_reset_terminal_modes): Clear screen buffer.
17317 (w32_face_attributes): Don't use color indexes that are out of range.
17318 Only reverse the default colors.
17319
17320 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
17321 WINDOWSNT.
17322
17323 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
17324
17325 2007-11-29 Jason Rumney <jasonr@gnu.org>
17326
17327 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
17328 (w32_face_attributes): Use Vtty_defined_color_alist to determine
17329 if the terminal colors are initialized.
17330 (unspecified_fg, unspecified_bg): Remove unused declarations.
17331
17332 2007-11-29 Andreas Schwab <schwab@suse.de>
17333
17334 * keyboard.c (apply_modifiers): Fix typo.
17335
17336 2007-11-29 Richard Stallman <rms@gnu.org>
17337
17338 * keymap.c (Fcurrent_local_map): Doc fix.
17339
17340 2007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
17341
17342 * s/gnu-kfreebsd.h: New file.
17343
17344 2007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
17345
17346 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
17347 Don't cast redundantly.
17348
17349 * keyboard.c (KEY_TO_CHAR): New macro.
17350 (parse_modifiers, apply_modifiers): Accept integer arguments.
17351 (read_key_sequence): Use them to unify the "shift->unshift" mapping
17352 for chars and symbol keys.
17353 After doing such remapping, apply function-key-map again.
17354
17355 2007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
17356
17357 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
17358 compiled anymore.
17359
17360 2007-11-26 Andreas Schwab <schwab@suse.de>
17361
17362 * process.c (list_processes_1): Fix indentation level of the
17363 command column.
17364
17365 2007-11-23 Andreas Schwab <schwab@suse.de>
17366
17367 * editfns.c (Fformat): Handle %c specially since it requires the
17368 argument to be of type int.
17369
17370 2007-11-23 Markus Triska <markus.triska@gmx.at>
17371
17372 * emacs.c (main): Call init_editfns before init_process, since
17373 init_process sets Vprocess_connection_type depending on OS release.
17374
17375 2007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
17376
17377 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
17378 (find_symbol_value): Use do_symval_forwarding.
17379
17380 * data.c (set_internal): Set the value in the `cons-cell' (for
17381 Buffer_Local_values) not only for frame-local variables.
17382
17383 2007-11-22 Andreas Schwab <schwab@suse.de>
17384
17385 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
17386 values to sprintf.
17387 * keymap.c (Fsingle_key_description): Likewise.
17388 * print.c (print_object): Likewise.
17389
17390 2007-11-22 Jan Djärv <jan.h.d@swipnet.se>
17391
17392 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
17393 file for image is nil.
17394
17395 2007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
17396
17397 * term.c: Include stdarg.h.
17398 (fatal): Implement using varargs.
17399 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
17400
17401 2007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
17402
17403 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
17404 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
17405 Update call to buffer_slot_type_mismatch.
17406 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
17407 (buffer_slot_type_mismatch): Update.
17408 * buffer.c (buffer_local_types): Remove.
17409 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
17410 (defvar_per_buffer): Set the type in the buffer_objfwd.
17411
17412 2007-11-21 Jason Rumney <jasonr@gnu.org>
17413
17414 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
17415 CreateFileMapping returns NULL on failure.
17416
17417 2007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
17418
17419 * search.c (Fset_match_data): Remove the `evaporate' feature.
17420 (unwind_set_match_data): Don't use the `evaporate' feature.
17421
17422 2007-11-21 Jason Rumney <jasonr@gnu.org>
17423
17424 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
17425
17426 * w32console.c (w32con_write_glyphs): Remove unused variables.
17427
17428 2007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
17429
17430 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
17431
17432 * s/darwin.h (MULTI_KBOARD): Remove.
17433
17434 * macfns.c (x_create_tip_frame, Fx_create_frame)
17435 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
17436
17437 2007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
17438
17439 * buffer.c (Fbuffer_local_value): Remove redundant test.
17440 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
17441 than in `current-buffer' to match the comment.
17442 Do the swap using swap_in_global_binding.
17443
17444 * data.c (store_symval_forwarding, set_internal):
17445 * eval.c (specbind): Remove dead code.
17446
17447 * coding.c (detect_coding, Fupdate_coding_systems_internal):
17448 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
17449 Since we do not want to see internal Lisp_*fwd objects here.
17450
17451 2007-11-18 Jan Djärv <jan.h.d@swipnet.se>
17452
17453 * sysdep.c (init_system_name): Use getaddrinfo if available.
17454
17455 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
17456 (x_scroll_bar_note_movement): start, end, with, height in struct
17457 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
17458
17459 2007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
17460
17461 * puresize.h (BASE_PURESIZE): Increase to 1190000.
17462
17463 2007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
17464
17465 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
17466 This undoes Richard's change of 14-Oct-2002.
17467
17468 * alloc.c (allocate_other_vector):
17469 * lisp.h (allocate_other_vector): Remove.
17470
17471 * window.c (struct save_window_data): Move non-lisp data to the end
17472 and make it `int' rather than Lisp_Object.
17473 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
17474 Done wrap/unwrap integer values.
17475 (Fset_window_configuration, compare_window_configurations):
17476 Update use of fields to their new types.
17477
17478 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
17479 Turn integer fields into `int'. Merge x_window_low and x_window_high.
17480 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
17481 (SET_SCROLL_BAR_X_WINDOW): Remove.
17482 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
17483 Access the new x_window field directly.
17484 * xterm.c (x_scroll_bar_create): Use a pseudovector.
17485 Don't wrap/unwrap integers into Lisp_Objects.
17486 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
17487 (x_scroll_bar_report_motion):
17488 Don't wrap/unwrap integers into Lisp_Objects.
17489 (x_term_init): Use SDATA.
17490 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
17491 (x_scroll_bar_set_handle, x_scroll_bar_remove)
17492 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
17493 (x_scroll_bar_report_motion, x_scroll_bar_clear):
17494 * xfns.c (x_set_background_color):
17495 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
17496 Access the new x_window field directly.
17497
17498 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
17499 (allocate_pseudovector): Make non-static.
17500
17501 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
17502 (allocate_pseudovector): Declare.
17503 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
17504
17505 2007-11-15 Andreas Schwab <schwab@suse.de>
17506
17507 * editfns.c (Fformat): Correctly format EMACS_INT values.
17508 Also take precision into account when formatting an integer.
17509
17510 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
17511
17512 2007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
17513
17514 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
17515 (syms_of_keyboard): Defsubr it.
17516
17517 * data.c (swap_in_global_binding): Fix longstanding bug where
17518 store_symval_forwarding was not called with the right second argument,
17519 thus causing objfwd-ing from being dropped.
17520
17521 2007-11-14 Juanma Barranquero <lekktu@gmail.com>
17522
17523 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
17524 (Fx_display_pixel_height, Fx_display_planes)
17525 (Fx_display_color_cells, Fx_server_max_request_size)
17526 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
17527 (Fx_display_visual_class, Fx_display_save_under):
17528 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
17529 (Fx_display_pixel_height, Fx_display_planes)
17530 (Fx_display_color_cells, Fx_server_max_request_size)
17531 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
17532 (Fx_display_mm_height, Fx_display_mm_width)
17533 (Fx_display_backing_store, Fx_display_visual_class)
17534 (Fw32_select_font, Fx_display_save_under):
17535 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
17536 (Fx_display_pixel_height, Fx_display_planes)
17537 (Fx_display_color_cells, Fx_server_max_request_size)
17538 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
17539 (Fx_display_save_under): Fix typos in docstrings.
17540
17541 2007-11-14 Juanma Barranquero <lekktu@gmail.com>
17542
17543 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
17544 corresponding to deleted entries; they are an implementation detail.
17545 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
17546 Remove variables.
17547 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
17548 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
17549 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
17550 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
17551 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
17552 (Fw32_define_rgb_color, Fw32_load_color_file)
17553 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
17554 Fix typos in docstrings.
17555 (Fx_server_version): Reflow docstring.
17556 (Fw32_shell_execute): Doc fixes.
17557
17558 2007-11-13 Juanma Barranquero <lekktu@gmail.com>
17559
17560 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
17561 if w32_parse_hot_key returned nil.
17562
17563 2007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
17564
17565 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
17566
17567 2007-11-09 Jason Rumney <jasonr@gnu.org>
17568
17569 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
17570
17571 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
17572
17573 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
17574 Remove W32_SCROLL_BAR_CLICK_EVENT.
17575
17576 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
17577 Add MULTIMEDIA_KEY_EVENT.
17578
17579 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
17580 (lispy_multimedia_keys) [WINDOWSNT]: New array.
17581 (make_lispy_event) [WINDOWSNT]: Use it to translate
17582 MULTIMEDIA_KEY_EVENT.
17583
17584 * w32term.h (WM_APPCOMMAND): Define if not already.
17585 (GET_APPCOMMAND_LPARAM): Likewise.
17586
17587 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
17588 WM_APPCOMMAND.
17589
17590 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
17591 (syms_of_w32fns): Export and initialize it.
17592 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
17593
17594 2007-11-09 Chong Yidong <cyd@stupidchicken.com>
17595
17596 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
17597 twice.
17598
17599 * xdisp.c (handle_face_prop): Fix last change.
17600
17601 2007-11-09 Richard Stallman <rms@gnu.org>
17602
17603 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
17604 not just for after-strings and before-strings.
17605 Call face_for_overlay_string and pass the overlay to it.
17606 (handle_display_prop): Determine whether property came from an overlay.
17607 Pass OVERLAY arg to handle_single_display_spec.
17608 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
17609 (load_overlay_strings): Fill in it->string_overlays.
17610 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
17611
17612 * xfaces.c (face_for_overlay_string): Function renamed from
17613 face_at_buffer_position_no_overlays, and add arg OVERLAY.
17614
17615 * dispextern.h (struct it): New elt string_overlays.
17616 New elt from_overlay, also in stack.
17617 Rearrange a few elements.
17618 (face_for_overlay_string): Decl renamed from
17619 face_at_buffer_position_no_overlays, and add argument.
17620
17621 2007-11-09 Richard Stallman <rms@gnu.org>
17622
17623 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
17624 to get the base face for an overlay string.
17625
17626 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
17627
17628 * xfaces.c (face_at_buffer_position_no_overlays): New function.
17629
17630 * xdisp.c (handle_stop): Move some code out of loop.
17631
17632 2007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17633
17634 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
17635 Fix conversion from Lisp object to ATSUFontID.
17636
17637 2007-11-09 Jason Rumney <jasonr@gnu.org>
17638
17639 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
17640
17641 2007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17642
17643 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
17644 Don't assume regions are aligned to page boundary.
17645 (print_load_command_name): Add LC_UUID if defined.
17646
17647 2007-11-09 Richard Stallman <rms@gnu.org>
17648
17649 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
17650
17651 2007-11-07 Jason Rumney <jasonr@gnu.org>
17652
17653 * s/windows95.h: Remove.
17654
17655 2007-11-06 Jan Djärv <jan.h.d@swipnet.se>
17656
17657 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
17658 abort with a message on unhandled store_type values.
17659
17660 2007-11-01 Jan Djärv <jan.h.d@swipnet.se>
17661
17662 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
17663 Remove HAVE_X11R5 and HAVE_X11R4.
17664
17665 2007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
17666
17667 * Makefile.in: Remove references to sunfns.c and sunfns.o.
17668
17669 2007-11-01 Johan Bockgård <bojohan@gnu.org>
17670
17671 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
17672 Don't set s->stippled_p here, since it has already been set by
17673 x_set_glyph_string_gc from x_draw_glyph_string.
17674
17675 2007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
17676
17677 * sunfns.c: Remove file.
17678
17679 * m/sun386.h:
17680 * m/sun2.h:
17681 * m/sparc.h: Remove Sun windows code.
17682
17683 2007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
17684
17685 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
17686 (init_keyboard): Set current_kboard's window-system to nil.
17687 (tty_read_avail_input): Typo.
17688 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
17689
17690 2007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
17691
17692 * s/usg5-4.h:
17693 * s/usg5-3.h:
17694 * s/ptx.h:
17695 * m/is386.h:
17696 * m/ibmps2-aix.h:
17697 * Makefile.in: Remove all mentions of X10.
17698
17699 * dispnew.c (syms_of_display): Don't mention version 10.
17700
17701 2007-10-28 Juanma Barranquero <lekktu@gmail.com>
17702
17703 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
17704 ($(BLD)/abbrev.$(O)): Remove.
17705
17706 2007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
17707
17708 Rewrite abbrev.c in Elisp.
17709 * image.c (Qcount): Don't declare as extern.
17710 (syms_of_image): Initialize and staticpro `Qcount'.
17711 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
17712 * emacs.c (main): Don't call syms_of_abbrev.
17713 * Makefile.in (obj): Remove abbrev.o.
17714 (abbrev.o): Remove.
17715 * abbrev.c: Remove.
17716
17717 2007-10-26 Martin Rudalics <rudalics@gmx.at>
17718
17719 * window.c (window_min_size_2): Don't count header-line.
17720
17721 2007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
17722
17723 * frame.h (struct frame): Move all bit fields after the first bit
17724 field to take advantage of the available space. Group all the
17725 chars together to reduce wasted space due to padding.
17726
17727 2007-10-26 Juanma Barranquero <lekktu@gmail.com>
17728
17729 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
17730
17731 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
17732 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
17733 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
17734 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
17735 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
17736 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
17737 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
17738 (last_marked, mark_object_loop_halt): Make static.
17739
17740 * frame.c (syms_of_frame) <delete-frame-functions>:
17741 Fix typo in docstring.
17742
17743 2007-10-25 Juanma Barranquero <lekktu@gmail.com>
17744
17745 * w32.c (init_environment): Fix tiny memory leak.
17746 (w32_get_resource): Remove unused variable `ok'.
17747
17748 2007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
17749
17750 Make `window-system' into a keyboard-local variable (rather than
17751 frame-local as done originally by multi-tty).
17752
17753 * keyboard.h (struct kboard): Add Vwindow_system.
17754 * keyboard.c (init_kboard): Set a default for Vwindow_system.
17755 (mark_kboards): Mark Vwindow_system.
17756
17757 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
17758 (init_display): Don't set the obsolete `window-system' frame-param.
17759
17760 * xterm.c (x_term_init):
17761 * w32term.c (w32_create_terminal):
17762 * term.c (init_tty): Set Vwindow_system.
17763 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
17764 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
17765
17766 * xfns.c (Fx_create_frame, x_create_tip_frame):
17767 * w32fns.c (Fx_create_frame, x_create_tip_frame):
17768 * macfns.c (Fx_create_frame):
17769 Don't set the obsolete `window-system' frame-param.
17770
17771 * frame.h (Qwindow_system): Remove.
17772 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
17773 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
17774
17775 2007-10-24 Richard Stallman <rms@gnu.org>
17776
17777 * frame.c (x_figure_window_size): For fullscreen case,
17778 set USPosition | PPosition without clobbering rest of window_prompting.
17779
17780 * keyboard.c (Fcurrent_idle_time): Doc fix.
17781
17782 * print.c (Fwith_output_to_temp_buffer): Doc fix.
17783
17784 2007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
17785
17786 * process.c (unwind_request_sigio): Only define if __ultrix__.
17787
17788 * callproc.c (child_setup): Remove spurious *.
17789
17790 * lisp.h (Fget_text_property): Declare.
17791 (have_menus_p): Declare it here rather than in sys-dep header files.
17792 * macterm.h (have_menus_p):
17793 * msdos.h (have_menus_p):
17794 * xterm.h (have_menus_p): Remove.
17795
17796 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
17797 (Fmake_variable_frame_local): Just check the variable's const-ness
17798 rather than checking nil or t.
17799
17800 2007-10-22 Jason Rumney <jasonr@gnu.org>
17801
17802 * w32fns.c: Include math.h.
17803 (w32_abort): Declaration moved to nt/config.nt.
17804
17805 * s/ms-w32.h (HAVE_STDLIB_H): Define.
17806 (abort): Redefinition moved to nt/config.nt.
17807
17808 * m/windowsnt.h: Remove.
17809
17810 2007-10-22 Juanma Barranquero <lekktu@gmail.com>
17811
17812 * emacs.c (Fdump_emacs): Fix typo in message.
17813 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
17814 <installation-directory>: Reflow docstring.
17815
17816 2007-10-22 Juri Linkov <juri@jurta.org>
17817
17818 * minibuf.c: Allow minibuffer default to be a list of default values.
17819 With empty input use the first element of this list as returned default.
17820 (string_to_object)
17821 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
17822 (read_minibuf): If defalt is cons, set histstring to its car.
17823 (Fread_string): If default_value is cons, set val to its car.
17824 (Fread_buffer): If def is cons, use its car.
17825 (Fcompleting_read): If defalt is cons, set val to its car.
17826
17827 2007-10-21 Michael Albinus <michael.albinus@gmx.de>
17828
17829 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
17830
17831 2007-10-20 Juanma Barranquero <lekktu@gmail.com>
17832
17833 * doc.c (Fdocumentation): Check for advice in all cases.
17834
17835 2007-10-19 Chong Yidong <cyd@stupidchicken.com>
17836
17837 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
17838
17839 2007-10-19 Richard Stallman <rms@gnu.org>
17840
17841 * doc.c (Fdocumentation): Check for and handle an advised function.
17842
17843 2007-10-19 Juanma Barranquero <lekktu@gmail.com>
17844
17845 * process.c (Fset_process_filter): Doc fix.
17846
17847 2007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
17848
17849 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
17850 which caused key-translation-map to applied repeatedly (thus breaking
17851 double-mode).
17852
17853 2007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
17854
17855 * xselect.c (x_own_selection, x_handle_selection_clear)
17856 (x_clear_frame_selections):
17857 * w32menu.c (list_of_panes, list_of_items):
17858 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
17859 * textprop.c (validate_plist, interval_has_all_properties)
17860 (interval_has_some_properties, interval_has_some_properties_list)
17861 (add_properties, text_property_list):
17862 * process.c (Fget_buffer_process, list_processes_1, status_notify):
17863 * minibuf.c (Fassoc_string):
17864 * macselect.c (x_own_selection, x_clear_frame_selections)
17865 (Fx_disown_selection_internal):
17866 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
17867 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
17868
17869 2007-10-17 Chong Yidong <cyd@stupidchicken.com>
17870
17871 * process.c: Link to libs for calling res_init() if available.
17872 (Fmake_network_process): Call res_init() before getaddrinfo or
17873 gethostbyname, if possible.
17874
17875 2007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
17876
17877 * lread.c (read1): Set pvectype for char_tables.
17878
17879 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
17880 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
17881 Add type checks.
17882 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
17883
17884 * alloc.c (free_misc): Use XMISCTYPE.
17885 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
17886
17887 2007-10-17 Glenn Morris <rgm@gnu.org>
17888
17889 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
17890 (syms_of_minibuf): Add Qcompletion_ignore_case.
17891 * dired.c (Qcompletion_ignore_case): Change to external.
17892 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
17893 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
17894 (Fread_file_name): Use it rather than intern'ing.
17895
17896 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
17897 (Fread_coding_system): Ignore case of user input.
17898
17899 2007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17900
17901 * xdisp.c (handle_display_prop): Ignore display specs after
17902 replacing one when string text is being replaced.
17903 (handle_single_display_spec): Pretend as if characters with display
17904 property haven't been consumed only when buffer text is being replaced.
17905
17906 2007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
17907
17908 * xfns.c (Fx_create_frame, Fx_display_list):
17909 * window.c (window_fixed_size_p, enlarge_window)
17910 (shrink_window_lowest_first):
17911 * macterm.c (init_font_name_table):
17912 * macfns.c (Fx_create_frame, Fx_display_list):
17913 * lread.c (close_load_descs):
17914 * keyboard.c (read_char_x_menu_prompt):
17915 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
17916 * coding.c (code_convert_region_unwind): Test the type of an object
17917 rather than just !NILP before extracting data from it.
17918
17919 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
17920
17921 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
17922 (XMISCANY): New macro.
17923 (XMISCTYPE): Use it.
17924 (struct Lisp_Misc_Any): New type.
17925 (union Lisp_Misc): Use it.
17926 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
17927 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
17928 (find_symbol_value, set_internal, default_value, Fset_default)
17929 (Fmake_variable_buffer_local, Fmake_local_variable)
17930 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
17931 (Flocal_variable_if_set_p, Fvariable_binding_locus):
17932 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
17933 * alloc.c (allocate_buffer): Set the size and tag.
17934 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
17935 Use XMISCANY.
17936 (die): Follow the GNU convention for error messages.
17937 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
17938 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
17939 tag any more.
17940 (set_buffer_internal_1):
17941 * frame.c (store_frame_param):
17942 * eval.c (specbind):
17943 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
17944
17945 * doc.c (Fsnarf_documentation): Simplify.
17946
17947 2007-10-14 Juanma Barranquero <lekktu@gmail.com>
17948
17949 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
17950 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
17951
17952 2007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
17953
17954 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
17955
17956 2007-10-14 Juanma Barranquero <lekktu@gmail.com>
17957
17958 * eval.c (do_autoload): Don't save autoloads.
17959
17960 * data.c (Ffset): Save autoload of the function being set.
17961
17962 2007-10-07 John Paul Wallington <jpw@pobox.com>
17963
17964 * xfns.c (x_create_tip_frame): Set the `display-type' frame
17965 parameter before setting up faces.
17966
17967 2007-10-13 Eli Zaretskii <eliz@gnu.org>
17968
17969 * ccl.c (Fregister_code_conversion_map):
17970 * keyboard.c (append_tool_bar_item): Reformat last change.
17971
17972 * lisp.h (eabs): Rename from `abs'. All callers changed.
17973
17974 2007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
17975
17976 * buffer.c (add_overlay_mod_hooklist):
17977 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
17978 * fontset.c (make_fontset):
17979 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
17980 (append_tool_bar_item):
17981 * macmenu.c (grow_menu_items):
17982 * w32menu.c (grow_menu_items):
17983 * xmenu.c (grow_menu_items): Use larger_vector.
17984
17985 2007-10-13 Eli Zaretskii <eliz@gnu.org>
17986
17987 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
17988 selected frame'' on MSDOS).
17989
17990 2007-10-12 Martin Rudalics <rudalics@gmx.at>
17991
17992 * frame.c (Qexplicit_name): New variable.
17993 (x_report_frame_params): Report it in parameter alist.
17994 (syms_of_frame): Intern and staticpro it.
17995
17996 2007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
17997
17998 * macfns.c (x_create_tip_frame): Set terminal for frame.
17999
18000 2007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
18001
18002 * frame.c (Qenvironment): Remove.
18003 (syms_of_frame) <Qenvironment>: Don't initialize.
18004 (Fdelete_frame): Don't treat the `environment' param specially.
18005 * frame.h (Qenvironment): Don't declare.
18006 * callproc.c (set_initial_environment): Don't set unused frame param.
18007
18008 * frame.c (Fframe_with_environment): Remove.
18009 (syms_of_frame) <Sframe_with_environment>: Don't declare.
18010
18011 * lisp.h (Fframe_with_environment): Don't declare.
18012
18013 2007-10-10 Juanma Barranquero <lekktu@gmail.com>
18014
18015 * indent.c (indent_tabs_mode, last_known_column)
18016 (last_known_column_modified): Make static.
18017 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
18018
18019 2007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
18020
18021 * puresize.h (BASE_PURESIZE): Increase to 1170000.
18022
18023 2007-10-09 Jason Rumney <jasonr@gnu.org>
18024
18025 * w32term.c (x_set_window_size): Disable code that attempts to tell
18026 Lisp code about a size change before it actually happens.
18027
18028 2007-10-09 Richard Stallman <rms@gnu.org>
18029
18030 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
18031 return HANDLED_RETURN.
18032
18033 2007-10-08 Martin Rudalics <rudalics@gmx.at>
18034
18035 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
18036 when there's an unread command event.
18037
18038 * frame.c (focus_follows_mouse): Move here from frame.el to allow
18039 window autoselection act appropriately when leaving selected frame.
18040 (syms_of_frame): Initialize focus_follows_mouse.
18041 * frame.h (focus_follows_mouse): Extern it.
18042 * macterm.c (XTread_socket): When focus_follows_mouse is nil
18043 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
18044 * msdos.c (dos_rawgetc): Likewise.
18045 * w32term.c (w32_read_socket): Likewise.
18046 * xterm.c (handle_one_xevent): Likewise.
18047 * xdisp.c (syms_of_xdisp): In doc-string of
18048 mouse-autoselect-window mention focus-follows-mouse.
18049
18050 2007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18051
18052 * macterm.c (mac_load_query_font): Fix missing return value.
18053 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
18054 Add BLOCK_INPUT.
18055
18056 2007-10-08 Richard Stallman <rms@gnu.org>
18057
18058 * xdisp.c (get_window_cursor_type): Implement documented behavior
18059 for cursor-in-non-selected-windows = t.
18060
18061 2007-10-08 Jason Rumney <jasonr@gnu.org>
18062
18063 * w32.c (w32_get_resource): Always close registry keys.
18064
18065 2007-10-08 Jason Rumney <jasonr@gnu.org>
18066
18067 * makefile.w32-in (LIBS): Add COMCTL32.
18068
18069 * w32fns.c (globals_of_w32fns): Init common controls.
18070
18071 2007-10-08 Richard Stallman <rms@gnu.org>
18072
18073 * image.c (our_memory_buffer): Rename from omfib_buffer.
18074
18075 2007-10-08 Richard Stallman <rms@gnu.org>
18076
18077 * buffer.c (Foverlays_at): Doc fix.
18078
18079 2007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
18080
18081 * fns.c (Fplist_put): Preserve uneven tail data.
18082
18083 2007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
18084
18085 * termhooks.h (enum event_kind): Remove trailing comma.
18086
18087 * frame.h (enum): Remove trailing comma.
18088
18089 2007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
18090
18091 * w32proc.c (delete_child): Don't terminate threads of zombies.
18092
18093 2007-10-08 Martin Rudalics <rudalics@gmx.at>
18094
18095 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
18096
18097 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
18098 last-repeatable-command.
18099 (init_kboard): Initialize Vlast_repeatable_command.
18100 (command_loop_1): Set it to real_this_command unless that was
18101 bound to an input event.
18102 (mark_kboards): Mark it.
18103
18104 2007-10-08 Richard Stallman <rms@gnu.org>
18105
18106 * eval.c (condition-case): Doc fix.
18107
18108 2007-10-08 Masatake YAMATO <jet@gyve.org>
18109
18110 * xfaces.c (tty_supports_face_attributes_p): Fix code
18111 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
18112 was copied and not edited.
18113
18114 2007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
18115
18116 Add new `input-decode-map' keymap and use it for terminal
18117 escape sequences.
18118 * keyboard.h (struct kboard): Add Vinput_decode_map.
18119 Remove Vlocal_key_translation_map.
18120 * keyboard.c (read_key_sequence): Add support for input-decode-map.
18121 (init_kboard): Init input-decode-map.
18122 Replace local-key-translation-map back with key-translation-map.
18123 (syms_of_keyboard): Declare input-decode-map.
18124 Remove local-key-translation-map. Update docstrings.
18125 (mark_kboards): Mark Vinput_decode_map.
18126 Don't mark Vlocal_key_translation_map.
18127 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
18128 Replace local-key-translation-map back with key-translation-map.
18129 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
18130 Bind in input-decode-map rather than function-key-map.
18131
18132 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
18133 This was made redundant by the previous introduction of XSETPVECTYPE.
18134
18135 2007-10-09 Richard Stallman <rms@gnu.org>
18136
18137 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
18138
18139 2007-09-29 Richard Stallman <rms@gnu.org>
18140
18141 * eval.c (internal_condition_case_2, internal_condition_case_1)
18142 (internal_condition_case): Reenable abort if x_catching_errors ()
18143 to see if that really happens and why.
18144
18145 2007-10-06 Andreas Schwab <schwab@suse.de>
18146
18147 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
18148
18149 2007-10-04 Juanma Barranquero <lekktu@gmail.com>
18150
18151 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
18152
18153 2007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
18154
18155 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
18156
18157 2007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
18158
18159 * window.h (struct window):
18160 * window.c (struct save_window_data, struct saved_window):
18161 * termhooks.h (struct terminal):
18162 * process.h (struct Lisp_Process):
18163 * frame.h (struct frame):
18164 * buffer.h (struct buffer):
18165 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
18166 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
18167 The size field of (pseudo)vectors is now unsigned.
18168 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
18169
18170 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
18171 Turn `count' into an integer.
18172
18173 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
18174 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
18175 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
18176 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
18177 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
18178
18179 * alloc.c (allocate_pseudovector): New fun.
18180 (ALLOCATE_PSEUDOVECTOR): New macro.
18181 (allocate_window, allocate_terminal, allocate_frame)
18182 (allocate_process): Use it.
18183 (mark_vectorlike): New function.
18184 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
18185 (mark_terminals): Use it.
18186 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
18187 (Fmake_byte_code): Use XSETPVECTYPE.
18188
18189 * frame.c (Fframe_parameters): Minor simplification.
18190
18191 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
18192
18193 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
18194
18195 * buffer.c (Fget_buffer_create, init_buffer_once):
18196 * lread.c (defsubr):
18197 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
18198
18199 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
18200 defined differently in the m/*.h files.
18201 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
18202 (XSETPVECTYPE): New macro.
18203 (XSETPSEUDOVECTOR): Use it.
18204
18205 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
18206 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
18207
18208 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
18209 * lread.c (defvar_per_buffer):
18210 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
18211
18212 * window.c (candidate_window_p): Only consider as visible frames that
18213 are on the same terminal.
18214
18215 * m/ibms390x.h (MARKBIT): Remove unused macro.
18216
18217 2007-10-01 Juanma Barranquero <lekktu@gmail.com>
18218
18219 * lread.c (Fload): Fix typo in docstring.
18220
18221 2007-10-01 Michaël Cadilhac <michael@cadilhac.name>
18222
18223 * floatfns.c (Fexpt): Manually check for overflows, so that a power
18224 of a non-zero value can't yield zero.
18225
18226 2007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
18227
18228 * term.c (term_clear_mouse_face, term_mouse_highlight)
18229 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
18230
18231 * print.c (safe_debug_print): Use XHASH.
18232
18233 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
18234 Lisp elements such as tags.
18235 (XHASH): New macro.
18236 (EQ): Use it.
18237 (SREF, SSET, STRING_COPYIN): Use SDATA.
18238 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
18239
18240 * alloc.c (mark_terminal): Remove left-over declaration.
18241 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
18242 (allocate_vectorlike): Remove type argument. Adjust callers.
18243 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
18244 Only handle the one remaining MEM_TYPE_VECTORLIKE.
18245
18246 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
18247 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
18248 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
18249 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
18250 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
18251 Use them.
18252
18253 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
18254 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
18255 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
18256
18257 2007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
18258
18259 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
18260 loaded by default.
18261
18262 2007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
18263
18264 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
18265 on this tty.
18266 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
18267
18268 * term.c (mouse_face_window): Rename from Qmouse_face_window.
18269 Update all users.
18270 (handle_one_term_event): Use Gpm_DrawPointer.
18271 (Fgpm_mouse_start): Rename from Fterm_open_connection.
18272 Signal errors instead of returning nil. Always return nil.
18273 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
18274 Make it a noop if gpm-mouse was not activated.
18275 (syms_of_term): Update names.
18276
18277 2007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
18278
18279 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
18280 (init_sys_modes): Check that gpm_tty is the current tty.
18281
18282 * alloc.c (allocate_terminal): Set the vector size to only count the
18283 lisp fields. Initialize those to nil.
18284 (mark_object): Don't treat terminals specially.
18285 (mark_terminal): Remove.
18286 (mark_terminals): Use mark_object instead.
18287
18288 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
18289 the GC to the beginning.
18290
18291 * indent.h:
18292 * indent.c: Use EMACS_INT for ints coming from Elisp data.
18293
18294 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
18295
18296 2007-09-25 Jason Rumney <jasonr@gnu.org>
18297
18298 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
18299
18300 * w32console.c (create_w32cons_output): Remove.
18301
18302 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
18303
18304 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
18305 (reset_sys_modes): Use reset_terminal_modes_hook.
18306
18307 2007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
18308
18309 * eval.c (do_autoload): Don't output any message.
18310
18311 2007-09-24 Juri Linkov <juri@jurta.org>
18312
18313 * emacs.c (standard_args): Change priority of "--no-splash"
18314 from 40 to 3. Add "--no-desktop" with the same priority.
18315
18316 2007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
18317
18318 * alloc.c (gc_sweep): Check cons cell mark bits word by word
18319 and optimize the case where they are all 1.
18320
18321 2007-09-23 Johannes Weiner <hannes@saeurebad.de>
18322
18323 * lisp.h (abs): Define if not defined.
18324 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
18325 Don't define `abs', since it's defined in lisp.h.
18326
18327 2007-09-22 Eli Zaretskii <eliz@gnu.org>
18328
18329 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
18330 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
18331 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
18332 (init_tty): Use DEV_TTY instead of "/dev/tty".
18333 [WINDOWSNT]: No need to protect from NAME arg being null.
18334
18335 2007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
18336
18337 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
18338 up the tty state.
18339
18340 2007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
18341
18342 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
18343 (gpm_tty): Change its type.
18344 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
18345 (gpm_tty): Change its type and initialize it.
18346 (Fterm_open_connection): Check the frame is indeed a tty.
18347 Use the new gpm_tty.
18348 (Fterm_close_connection): Use the new gpm_tty.
18349 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
18350 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
18351
18352 2007-09-21 Juanma Barranquero <lekktu@gmail.com>
18353
18354 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
18355 underline_color, to draw strike-through.
18356
18357 2007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
18358
18359 * lisp.h (allocate_terminal): Declare.
18360
18361 * window.c (candidate_window_p): Consider frames that are being placed
18362 by the user as somewhere between visible and iconified.
18363 (window_loop): Prefer windows on the current frame.
18364 (Fselect_window): Move the use of select-frame to the beginning so we
18365 can just delegate all the work (it'll call us back anyway).
18366
18367 * frame.c (Qdisplay_environment_variable):
18368 * frame.h (Qdisplay_environment_variable): Delete.
18369
18370 * .gdbinit (xbacktrace): Print the arg's address rather than the value
18371 of the first arg, since that value may be a union.
18372
18373 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
18374 parameter rather than Qdisplay_environment_variable. If all else
18375 fails, look for DISPLAY in initial-environment.
18376
18377 2007-09-21 Glenn Morris <rgm@gnu.org>
18378
18379 * Makefile.in (emacstool): Remove target.
18380 (lisp, shortlisp): Remove termdev.elc.
18381
18382 2007-09-21 Markus Triska <markus.triska@gmx.at>
18383
18384 * xterm.c (x_delete_display): Compile session management conditionally.
18385
18386 2007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
18387
18388 * callproc.c (getenv_internal_1): New function.
18389 (getenv_internal): Use it.
18390 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
18391
18392 * terminal.c (get_terminal): Don't accept ints to represent terminals.
18393 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
18394 (Fset_terminal_parameter): Work with dead terminals as well.
18395 (Fmodify_terminal_parameters): Remove.
18396
18397 * terminal.c (get_terminal): Handle terminals.
18398 Make sure the terminal returned is live.
18399 (create_terminal): Use allocate_terminal.
18400 (mark_terminals): Move to alloc.c.
18401 (delete_terminal): Use terminal->name as liveness status.
18402 NULL out fields after freeing their contents.
18403 Don't deallocate the object.
18404 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
18405 rather than an int.
18406 (Fterminal_live_p): Accept non-integer arguments.
18407 (Fterminal_list): Return terminal objects rather than an ints.
18408
18409 * alloc.c (enum mem_type): New member for `terminal' objects.
18410 (allocate_terminal): New function.
18411 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
18412 Handle terminals.
18413 (mark_terminal): New fun.
18414 (mark_terminals): Move from terminal.c.
18415
18416 * term.c (get_tty_terminal): Don't treat output_initial specially.
18417 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
18418 (delete_tty): Use terminal->name as liveness status.
18419
18420 * termhooks.h (struct terminal): Make it into a pseudovector.
18421 Remove `deleted' replaced by checking `name's nullness.
18422
18423 * print.c (print_object): Handle terminals.
18424
18425 * lisp.h (enum pvec_type): New `terminal' pseudovector.
18426 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
18427
18428 * frame.c (make_terminal_frame):
18429 * keyboard.c (tty_read_avail_input):
18430 * w32term.c (x_delete_terminal):
18431 * xfns.c (Fx_create_frame, x_create_tip_frame):
18432 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
18433
18434 2007-09-20 Glenn Morris <rgm@gnu.org>
18435
18436 * process.c (Fmake_network_process): Doc fix.
18437
18438 2007-09-19 Jason Rumney <jasonr@gnu.org>
18439
18440 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
18441
18442 2007-09-19 Michaël Cadilhac <michael@cadilhac.name>
18443
18444 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
18445 Fix a C warning regarding variable constness.
18446
18447 * xterm.c (handle_one_xevent): Fix a C warning.
18448
18449 2007-09-18 Jason Rumney <jasonr@gnu.org>
18450
18451 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
18452
18453 2007-09-17 Jan Djärv <jan.h.d@swipnet.se>
18454
18455 * gtkutil.c (gdpy_def): New variable.
18456 (xg_initialize): Initialize gdpy_def.
18457 (xg_display_close): If no other display exists, set gdpy_def to a
18458 new connection.
18459
18460 2007-09-16 Jan Djärv <jan.h.d@swipnet.se>
18461
18462 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
18463 when we have no file name for the icon.
18464 (xg_tool_bar_expose_callback): Remove.
18465 (xg_create_tool_bar): Don't connect expose signal to
18466 xg_tool_bar_expose_callback.
18467 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
18468
18469 2007-09-16 Andreas Schwab <schwab@suse.de>
18470
18471 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
18472 values instead of zapping them.
18473
18474 2007-09-14 Glenn Morris <rgm@gnu.org>
18475
18476 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
18477 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
18478 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
18479 scope and rename to omfib_buffer for clarity.
18480 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
18481
18482 2007-09-14 Kenichi Handa <handa@m17n.org>
18483
18484 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
18485
18486 2007-09-13 Jason Rumney <jasonr@gnu.org>
18487
18488 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
18489
18490 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
18491
18492 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
18493 (mac_term_init): Call here instead, passing rif.
18494
18495 2007-09-13 Glenn Morris <rgm@gnu.org>
18496
18497 * s/hpux.h: No longer define `static' as nothing.
18498
18499 2007-09-13 Johan Bockgård <bojohan@gnu.org>
18500
18501 * callint.c (Fcall_interactively): Remove unused var `fun'.
18502
18503 2007-09-12 Romain Francoise <romain@orebokech.com>
18504
18505 * window.c (prefer_window_split_horizontally, display_buffer):
18506 Revert 2007-09-08 change.
18507
18508 2007-09-12 Glenn Morris <rgm@gnu.org>
18509
18510 * alloca.c: Remove file.
18511 * Makefile.in (alloca): Do not undef.
18512 (allocaobj, alloca.o): Remove.
18513 (otherobj): Remove allocaobj.
18514 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
18515 * regex.c (C_ALLOCA): Remove all references and code that was only
18516 used when this was defined.
18517 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
18518 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
18519 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
18520
18521 * Makefile.in (SOURCES, unlock, relock): Delete.
18522
18523 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
18524 (menu_grab_callback): All uses changed.
18525
18526 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
18527 (x_reply_selection_request): All uses changed.
18528
18529 2007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
18530
18531 * lread.c (load_warn_old_style_backquotes): Change message to look
18532 better when it appears in the middle of byte-compiler messages.
18533
18534 2007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
18535
18536 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
18537
18538 * xterm.c (x_create_terminal): Add comment.
18539
18540 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
18541
18542 2007-09-10 Richard Stallman <rms@gnu.org>
18543
18544 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
18545
18546 2007-09-10 Michaël Cadilhac <michael@cadilhac.name>
18547
18548 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
18549 (DEFUN): Document `intspec', use it instead of `prompt'.
18550
18551 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
18552
18553 * data.c (Finteractive_form): If the interactive specification starts
18554 with a `(', use it as a Lisp form.
18555
18556 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
18557 name and file modes.
18558
18559 * callint.c (Fcall_interactively): Comment fixes.
18560
18561 2007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
18562
18563 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
18564 and compiled functions.
18565
18566 2007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
18567
18568 * window.c (prefer_window_split_horizontally): New variable.
18569 (display_buffer): Consider splitting window horizontally depending
18570 on prefer_window_split_horizontally.
18571
18572 2007-09-08 Eli Zaretskii <eliz@gnu.org>
18573
18574 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
18575
18576 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
18577
18578 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
18579
18580 * frame.c (x_set_frame_parameters): Check number is positive before
18581 using XFASTINT.
18582
18583 * window.c (freeze_window_start): Don't presume selected_window holds
18584 a window object.
18585 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
18586
18587 2007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
18588
18589 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
18590
18591 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
18592
18593 * window.c (Vsplit_window_preferred_function): New var.
18594 (Fdisplay_buffer): Use it.
18595 (syms_of_window): Export, and initialize it.
18596
18597 2007-09-06 Pixel <pixel@mandriva.com> (tiny change)
18598
18599 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
18600
18601 2007-09-06 Glenn Morris <rgm@gnu.org>
18602
18603 * gtkutil.c (menu_grab_callback) <cnt>:
18604 * xselect.c (x_reply_selection_request) <cnt>: Move static
18605 variable to file scope.
18606
18607 2007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
18608
18609 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
18610 consistent values of selected_frame and selected_window.
18611
18612 2007-09-04 Jason Rumney <jasonr@gnu.org>
18613
18614 * w32console.c (initialize_w32_display): Zero unused hooks.
18615
18616 2007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
18617
18618 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
18619 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
18620
18621 2007-09-04 Jason Rumney <jasonr@gnu.org>
18622
18623 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
18624 in w32console.c. Set up input. Remove XXX comments that have been
18625 confirmed as correct.
18626
18627 * s/ms-w32.h (MULTI_KBOARD): Define.
18628
18629 * w32console.c (one_and_only_w32cons): Remove.
18630 (initialize_w32_display): Take terminal argument.
18631
18632 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
18633 initialize_w32_display.
18634 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
18635
18636 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
18637
18638 * keyboard.c (discard_mouse_events): Discard it.
18639 (make_lispy_event): Translate it to a lisp event.
18640 (lispy_wheel_names): Add wheel-left and right events.
18641 (syms_of_keyboard): Enlarge wheel_syms.
18642
18643 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
18644 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
18645
18646 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
18647
18648 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
18649 from WM_MOUSEHWHEEL.
18650 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
18651
18652 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
18653 terminal.
18654
18655 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
18656 keyboard for the terminal.
18657
18658 2007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
18659
18660 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
18661 (Vresume_tty_hook): Rename from Vresume_tty_functions.
18662 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
18663 and resume-tty-function to resume-tty-hook.
18664 (Fsuspend_tty, Fresume_tty): Use new names.
18665
18666 2007-09-02 Jan Djärv <jan.h.d@swipnet.se>
18667
18668 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
18669 if it starts with "n:".
18670
18671 2007-08-31 Jan Djärv <jan.h.d@swipnet.se>
18672
18673 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
18674
18675 2007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
18676
18677 * frame.h:
18678 * frame.c (Qterm_environment_variable): Remove.
18679 (syms_of_frame): Don't init and staticpro it.
18680
18681 * callproc.c (getenv_internal): Remove special case for $TERM.
18682
18683 * callproc.c (Vinitial_environment): New variable.
18684 (set_initial_environment): Initialize it.
18685 (syms_of_callproc): Declare it.
18686 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
18687 TERM under which a process runs is never related to the TERM in which
18688 Emacs is running.
18689
18690 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
18691
18692 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
18693 * s/darwin.h: ... do it here.
18694
18695 2007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
18696
18697 * lisp.h (set_initial_environment): Rename from set_global_environment.
18698
18699 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
18700 removed by mistake on the multi-tty branch.
18701
18702 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
18703 (Fmodify_frame_parameters): Return a value.
18704
18705 * image.c (png_load): Comment-out var only used in commented-out code.
18706
18707 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
18708 before passing it to mark_object.
18709
18710 * xfaces.c (internal_resolve_face_name): Return a value.
18711 (internal_resolve_face_name, resolve_face_name_error): Comment out.
18712
18713 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
18714 (x_icon): Comment-out var only used in commented-out code.
18715
18716 2007-08-29 Romain Francoise <romain@orebokech.com>
18717
18718 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
18719 QUIT hasn't been provided.
18720
18721 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
18722
18723 * callproc.c (child_setup, getenv_internal): Use the
18724 display-environment-variable and term-environment-variable frame params.
18725 (set_initial_environment): Initialise Vprocess_environment.
18726
18727 * config.in: Disable multi-keyboard support on a mac.
18728
18729 * frame.c (Qterm_environment_variable)
18730 (Qdisplay_environment_variable): New variables.
18731 (syms_of_frame): Intern and staticpro them.
18732 (Fmake_terminal_frame): Disable output method test.
18733
18734 * frame.h: Declare them here.
18735
18736 * macfns.c (x_set_mouse_color): Get rif from the frame.
18737 (x_set_tool_bar_lines): Don't use updating_frame.
18738 (mac_window): Add 2 new parameters for consistency with other systems.
18739 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
18740 frame parameters following what is done in X11 and w32. Don't use
18741 FRAME_MAC_DISPLAY_INFO.
18742 (Fx_open_connection, start_hourglass): Remove window-system check.
18743 (x_create_tip_frame): Get the keyboard from the terminal.
18744
18745 * macmenu.c: Reorder includes.
18746 (Fx_popup_menu): Use terminal specific mouse_position_hook.
18747
18748 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
18749 terminal parameter.
18750 (x_clear_frame): Add a frame parameter.
18751 (note_mouse_movement): Get rif from the frame.
18752 (mac_term_init): Initialize the terminal.
18753 (mac_initialize): Make static and move terminal initialization ...
18754 (mac_create_terminal): ... to this new function.
18755
18756 * macterm.h (struct mac_display_info): Add terminal.
18757 (mac_initialize): Delete declaration.
18758
18759 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
18760
18761 * sysdep.c: Comment out text after #endif.
18762
18763 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
18764 is defined. Better initialize ttys in windows. Use terminal
18765 specific mouse_position_hook.
18766
18767 * termhooks.h (union display_info): Add mac_display_info.
18768
18769 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
18770 Set the default minibuffer frame, window_system and the rest of the
18771 frame parameters following what is done in X11.
18772
18773 * w32term.c (w32_initialize): Make static.
18774
18775 * xselect.c (x_handle_selection_clear): Only access
18776 terminal->kboard when MULTI_KBOARD is defined.
18777
18778 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
18779 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
18780
18781 2007-08-29 Jason Rumney <jasonr@gnu.org>
18782
18783 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
18784 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
18785
18786 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
18787 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
18788
18789 * keyboard.c (restore_kboard_configuration): Only define when
18790 MULTI_KBOARD defined.
18791
18792 * makefile.w32-in: Update dependancies from Makefile.in.
18793 (OBJ1): Add terminal.$(O)
18794
18795 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
18796 Don't define function body.
18797 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
18798
18799 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
18800
18801 * w32.c (request_sigio, unrequest_sigio): Remove.
18802
18803 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
18804 (w32con_clear_frame, w32con_clear_end_of_line)
18805 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
18806 (w32con_delete_glyphs, w32con_set_terminal_window)
18807 (scroll_line, w32_sys_ring_bell): Add frame arg.
18808 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
18809 Add terminal arg.
18810 (PICK_FRAME): Remove.
18811 (w32con_write_glyphs): Use frame specific terminal coding.
18812 (one_and_only_w32cons): New global variable.
18813 (initialize_w32_display): Use it for storing hooks.
18814 (create_w32cons_output): New function.
18815
18816 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
18817 arg a frame.
18818
18819 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
18820 Set window_system.
18821 (x_set_tool_bar_lines): Don't use updating_frame.
18822 (Fx_create_frame): Set terminal and ref count.
18823 (Fx_open_connection): Remove window-system check.
18824
18825 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
18826
18827 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
18828 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
18829 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
18830 Add frame arg.
18831 (x_delete_terminal, w32_create_terminal): New functions.
18832 (w32_term_init): Create a terminal.
18833 (w32_initialize): Move terminal specific initialization to
18834 w32_create_terminal.
18835
18836 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
18837 (w32_clear_rect, w32_clear_area): Use background from frame.
18838 (w32_display_info): Add terminal.
18839 (w32_sys_ring_bell, x_delete_display): Declare here.
18840
18841 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
18842
18843 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
18844
18845 2007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
18846
18847 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
18848 Fix get_named_tty calls for the controlling tty.
18849
18850 2007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
18851
18852 * term.c (dissociate_if_controlling_tty)[USG]: Fix parse error.
18853
18854 2007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
18855
18856 * term.c (tty_insert_glyphs): Add missing first parameter.
18857
18858 2007-08-29 Károly Lőrentey <karoly@lorentey.hu>
18859
18860 * buffer.c (Fbuffer_list, Fbury_buffer):
18861 Take frame->buried_buffer_list into account.
18862
18863 * cm.c (current_tty): New variable, for cmputc().
18864 (cmputc): Use it.
18865 (cmcheckmagic): Add tty parameter, look up terminal streams there.
18866 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
18867 (cmgoto): Add tty parameter. Pass it on to calccost().
18868 Use emacs_tputs() instead of tputs().
18869
18870 * cm.h (emacs_tputs): New macro to set current_tty, and then call
18871 tputs().
18872 (current_tty): New variable, for cmputc().
18873 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
18874
18875 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
18876 (internal_condition_case, internal_condition_case_1)
18877 (internal_condition_case_2): Don't abort when x_catching_errors.
18878
18879 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
18880 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
18881 prevent crashes caused by bogus longjmps in read_char.
18882
18883 * keymap.h (Fset_keymap_parent): Add EXFUN.
18884
18885 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
18886 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
18887 Remove redundant definition.
18888
18889 * macfns.c (x_set_mouse_color, x_make_gc):
18890 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
18891
18892 * w32term.c (x_free_frame_resources):
18893 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
18894 (w32_initialize): Use the accessor macros for terminal characteristics.
18895
18896 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
18897 Use the accessor macros for terminal characteristics.
18898 * msdos.c (internal_terminal_init): Use the accessor macros for
18899 terminal characteristics.
18900 (ScreenVisualBell, internal_terminal_init):
18901 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
18902
18903 * termopts.h (no_redraw_on_reenter): Declare.
18904
18905 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
18906 (mark_terminals, mark_ttys): Declare.
18907 (Fgarbage_collect): Call them.
18908 (mark_object): Mark buried_buffer_list.
18909
18910 * prefix-args.c: Include stdlib.h for exit.
18911
18912 * syssignal.h: Add comment.
18913
18914 * indent.c: Include stdio.h.
18915
18916 * window.h (Vinitial_window_system): Declare.
18917 (Vwindow_system): Delete declaration.
18918
18919 * fontset.c (Finternal_char_font): Use FRAME_RIF.
18920
18921 * image.c (lookup_image): Don't initialize `c' until the xasserts
18922 have been run.
18923
18924 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
18925 FRAME_FOREGROUND_PIXEL.
18926
18927 * print.c (print_preprocess): Don't lose print_depth levels while
18928 iterating.
18929
18930 * widget.c (update_from_various_frame_slots):
18931 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
18932
18933 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
18934 frames.
18935 (window_internal_height): Remove bogus make_number call.
18936 (init_window_once): Call make_terminal_frame with two zero parameters.
18937
18938 * fileio.c (Fread_file_name): Update comment.
18939
18940 * callint.c (Fcall_interactively):
18941 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
18942 Make sure it is correctly unwound.
18943
18944 * xsmfns.c (x_session_close): New function.
18945
18946 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
18947 Delete declarations.
18948
18949 * xterm.h: Remove declaration for x_fully_uncatch_errors.
18950 (x_output): Remove background_pixel and foreground_pixel fields.
18951 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
18952 (x_delete_device, x_session_close): Declare.
18953
18954 * lread.c: Include setjmp.h. Update declaration of `read_char'.
18955 (read_filtered_event): Call `read_char' with a local
18956 `wrong_kboard_jmpbuf'.
18957
18958 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
18959 Don't call single_kboard_state. Use FRAME_RIF.
18960
18961 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
18962 systems.
18963
18964 * lisp.h (set_process_environment): Rename to `set_global_environment'.
18965 (Fframe_with_environment, Fset_input_meta_mode)
18966 (Fset_quit_char): EXFUN.
18967 (x_create_device, tty_output, terminal, tty_display_info): Declare.
18968 (init_sys_modes, reset_sys_modes): Update prototypes.
18969 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
18970
18971 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
18972 Vlocal_key_translation_map, and Vkeyboard_translate_table.
18973 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
18974 Delete declarations.
18975 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
18976 (temporarily_switch_to_single_kboard, tty_read_avail_input):
18977 New declarations.
18978
18979 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
18980 already does that during init_display(). Call syms_of_keymap
18981 before syms_of_keyboard. Call `syms_of_terminal'.
18982 Call set_initial_environment, not set_process_environment.
18983 (shut_down_emacs): Call reset_all_sys_modes() instead of
18984 reset_sys_modes().
18985
18986 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
18987 (internal_resolve_face_name, resolve_face_name_error): New functions.
18988 (resolve_face_name): Protect against loops and errors thrown by Fget.
18989 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
18990 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
18991
18992 * scroll.c: Replace CURTTY() with local variables throughout the
18993 file (where applicable).
18994 (calculate_scrolling, calculate_direct_scrolling)
18995 (scrolling_1, scroll_cost): Use the accessor macros for terminal
18996 characteristics.
18997
18998 * keymap.c (Vfunction_key_map): Remove.
18999 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
19000 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
19001 (Vkey_translation_map): Remove.
19002 (syms_of_keymap): Remove DEFVAR for key-translation-map.
19003 (Fdescribe_buffer_bindings)
19004 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
19005 Update for terminal-local key-translation-map.
19006
19007 * Makefile.in (callproc.o): Update dependencies.
19008 (lisp, shortlisp): Add termdev.elc.
19009 (obj): Add terminal.o.
19010 (terminal.o): Add dependencies.
19011 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
19012 (data.o, fns.o): Add termhooks.h dependency.
19013 (SOME_MACHINE_LISP): Add dnd.elc.
19014 (minibuf.o): Fix typo.
19015 Update dependencies.
19016
19017 * data.c (do_symval_forwarding, store_symval_forwarding)
19018 (find_symbol_value): Use the selected frame's keyboard, not
19019 current_kboard.
19020
19021 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
19022 Vwindow_system.
19023
19024 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
19025 Fmenu_bar_open.
19026 (syms_of_xmenu): Update defsubr.
19027 (mouse_position_for_popup, Fx_popup_menu)
19028 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
19029 (set_frame_menubar, free_frame_menubar)
19030 (create_and_show_popup_menu, xmenu_show)
19031 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
19032 an X frame.
19033
19034 * xselect.c (x_own_selection): Abort if not an X frame.
19035 (some_frame_on_display): Check if it is an X frame.
19036 (x_handle_selection_clear): Deal with MULTI_KBOARD.
19037
19038 * coding.c: Include frame.h and termhooks.h.
19039 (terminal_coding, keyboard_coding): Delete.
19040 (Fset_terminal_coding_system_internal)
19041 (Fset_keyboard_coding_system_internal)
19042 (Fkeyboard_coding_system)
19043 (Fterminal_coding_system): Add a terminal parameter.
19044 Get terminal_coding from the terminal.
19045 (init_coding_once): Don't call setup_coding_system here.
19046
19047 * dispextern.h (set_scroll_region, turn_off_insert)
19048 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
19049 (tty_clear_end_of_line, tty_setup_colors)
19050 (delete_tty, updating_frame)
19051 (produce_special_glyphs, produce_glyphs, write_glyphs)
19052 (insert_glyphs): Remove.
19053 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
19054 (tty_turn_off_highlight, get_tty_size): Add declaration.
19055 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
19056
19057 * frame.h (enum output_method): Add output_initial.
19058 (struct x_output): Delete.
19059 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
19060 Access foreground_pixel and background_pixel directly from the frame.
19061 (tty_display): Delete.
19062 (struct frame): Add buried_buffer_list, foreground_pixel,
19063 background_pixel and terminal. Delete kboard.
19064 (union output_data): Add tty.
19065 (FRAME_KBOARD): Get the kboard from the terminal.
19066 (FRAME_INITIAL_P): New macro.
19067 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
19068 (Qterm_environment_variable, Qdisplay_environment_variable)
19069 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
19070 New declarations.
19071
19072 * termchar.h (tty_output, tty_display_info): New structures.
19073 (tty_list): Declare.
19074 (FRAME_TTY, CURTTY): New macros.
19075 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
19076 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
19077 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
19078 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
19079
19080 * callproc.c: Include frame.h and termhooks.h, for terminal
19081 parameters.
19082 (add_env): New function.
19083 (child_setup): Use it.
19084 (child_setup, getenv_internal): Handle the new Vprocess_environment.
19085 (getenv_internal): Fix get_terminal_param call.
19086 (Fgetenv_internal, egetenv): Update doc.
19087 (syms_of_callproc): Initialize Vprocess_environment to nil.
19088 Register and initialize them. Remove obsolete defvars. Update doc
19089 strings.
19090 (child_setup): Handle Vlocal_environment_variables.
19091 (getenv_internal): Add terminal parameter.
19092 Handle Vlocal_environment_variables.
19093 (Fgetenv_internal): Add terminal parameter.
19094 (child_setup, getenv_internal, Fgetenv_internal): Store the local
19095 environment in a frame (not terminal) parameter. Update doc strings.
19096 (set_initial_environment): Rename from set_global_environment.
19097 Store Emacs environment in initial frame parameter.
19098
19099 * xdisp.c (redisplay_internal): Update references to
19100 `previous_terminal_frame'.
19101 (display_mode_line, Fformat_mode_line): Replace calls to
19102 `push_frame_kboard' with `push_kboard'.
19103 (get_glyph_string_clip_rects): Add extra parentheses and
19104 braces to prevent compiler warnings.
19105 (calc_pixel_width_or_height): Add xassert to check that the
19106 frame is alive. Don't call `lookup_image' on a termcap frame.
19107 (message2_nolog, message3_nolog, redisplay_internal)
19108 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
19109 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
19110 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
19111 (Fx_display_pixel_width, Fx_display_pixel_height)
19112 (Fx_display_planes, Fx_display_color_cells)
19113 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
19114 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
19115 (Fx_display_backing_store, Fx_display_visual_class)
19116 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
19117 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
19118
19119 * xfns.c (x_set_foreground_color x_set_background_color)
19120 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
19121 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
19122 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
19123 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
19124 terminal that is being deleted.
19125 (Fx_create_frame): Use `store_frame_param' to set `window-system'
19126 frame parameter, and make sure it overrides any user-supplied setting.
19127 (Fx_close_connection, Fx_synchronize): Unify argument names with
19128 the rest of the DEFUNs.
19129
19130 * dispnew.c (Fsend_string_to_terminal): Update call to
19131 `get_tty_terminal'.
19132 (Fredraw_frame, Fsend_string_to_terminal)
19133 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
19134 FRAME_TERMCAP_P and FRAME_TTY.
19135 (window_change_signal): Don't believe width/height values that are
19136 impossibly small.
19137 (Vinitial_window_system): Rename from Vwindow_system.
19138 (termscript, Wcm, rif): Delete.
19139
19140 * termhooks.h (struct terminal): New struct containing the
19141 previously global text display hooks and new members NAME,
19142 DELETED and PARAM_ALIST.
19143 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
19144 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
19145 (FRAME_RIF): New macros.
19146 (get_terminal_param, get_device): New declarations.
19147 (termscript): Delete declaration.
19148
19149 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
19150 (XTflash, x_free_frame_resources, x_scroll_bar_create)
19151 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
19152 FRAME_FOREGROUND_PIXEL.
19153 (x_fully_uncatch_errors): Disable definition.
19154 (x_scroll_bar_expose): Fix reference to foreground pixel.
19155 (XTread_socket): Disable loop on all X displays.
19156 (x_delete_terminal): Don't set terminal->deleted and let
19157 delete_terminal delete the frames on the terminal.
19158 (x_delete_display): Doc update to reflect changes in
19159 delete_terminal.
19160 (x_display_info) <terminal>: Move member earlier in the struct.
19161 (deleting_tty): Remove old variable.
19162 (Fsuspend_tty): Call clear_tty_hooks.
19163 (Fresume_tty, init_tty): Call set_tty_hooks.
19164 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
19165 errors on X frames.
19166 (x_catch_errors_unwind): Abort if x_error_message is NULL.
19167 (handle_one_xevent): Initialize `f' to NULL.
19168 (x_delete_terminal, x_create_terminal): New functions.
19169 (XTset_terminal_modes, XTreset_terminal_modes)
19170 (XTread_socket, x_connection_closed, x_term_init)
19171 (x_term_init, x_delete_display): Add terminal parameter.
19172 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
19173 X connections.
19174
19175 * frame.c: Include termchar.h.
19176 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
19177 (Qwindow_system, Qenvironment, Qterm_environment_variable)
19178 (Qdisplay_environment_variable): New vars.
19179 (Fframep): Deal with output_initial.
19180 (Fframe-live-p): Doc fix.
19181 (Fwindow-system): New function.
19182 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
19183 (make_terminal_frame): Don't create frames on a terminal that is
19184 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
19185 (store_frame_param): Check for found_for_frame before calling XFRAME.
19186 (Fmake_terminal_frame): Handle NULL tty names correctly.
19187 (syms_of_frame): Enhance doc string of `default-frame-alist'.
19188 (Fdelete_frame): Remove unused variable `count'. Don't allow other
19189 frames to refer to a deleted frame in their 'environment parameter.
19190 (Fframe_with_environment): New function.
19191 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
19192 (get_future_frame_param): New function.
19193 (Fmake_terminal_frame): Use it.
19194 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
19195
19196 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
19197 * sysdep.c (reset_sys_modes): Update for renames.
19198
19199 * keyboard.c (tty_read_avail_input): New function.
19200 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
19201 (syms_of_keyboard): Defsubr them.
19202 (Fset_input_meta_mode, Fset_quit_char): New functions.
19203 (Fset_input_mode): Split to above functions.
19204 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
19205 parameter. Use it in call to `read_char'.
19206 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
19207 Set wrong_kboard_jmpbuf correctly in recursive calls.
19208 Use current_kboard to access Vkeyboard_translate_table.
19209 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
19210 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
19211 Update longjmp invocations. Remember the original current_kboard,
19212 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
19213 changes it. Comment out unnecessary calls to
19214 `record_single_kboard_state' and `any_kboard_state'.
19215 Update recursive calls.
19216 (wrong_kboard_jmpbuf): Remove global variable.
19217 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
19218 Handle deleted interrupted_kboards correctly; that is a legal
19219 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
19220 and read_char calls. Abort if interrupted_kboard died in read_char.
19221 (any_kboard_state, single_kboard_state)
19222 (push_frame_kboard): Remove function.
19223 (pop_kboard): Switch out of single_kboard mode if the kboard has
19224 been deleted. Remove unused variable. Help debugging by not
19225 changing current_kboard unnecessarily. Set current_kboard to the
19226 kboard of the selected frame when the stored kboard object has
19227 been deleted before pop_kboard.
19228 (temporarily_switch_to_single_kboard): Change first parameter to a
19229 frame pointer. Throw an error when caller wants to change kboards
19230 while in single_kboard mode. Don't push_kboard if we weren't in
19231 single kboard state. Don't pop_kboard if we popped into any
19232 kboard state.
19233 (restore_kboard_configuration): Abort if pop_kboard changed the
19234 kboard in single_kboard mode. Call pop_kboard only after setting
19235 up single_kboard mode.
19236 (Frecursive_edit): Switch to single_kboard mode only in nested
19237 command loops.
19238 (cmd_error, command_loop, command_loop_1, timer_check):
19239 Comment out unnecessary call to `any_kboard_state' and
19240 `record_single_kboard_state'.
19241 (delete_kboard): Exit single_kboard mode if we have just deleted
19242 that kboard. Use FRAME_KBOARD.
19243 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
19244 `fatal_error_signal'.
19245 (record_single_kboard_state): Don't push_kboard if we weren't in
19246 single kboard state. Don't pop_kboard if we popped into any
19247 kboard state.
19248 (push_frame_kboard): Rename to push_kboard.
19249 (kbd_buffer_get_event): Use FRAME_TERMINAL.
19250 (read_avail_input): Read input from all terminals.
19251 (mark_kboards): Also mark Vkeyboard_translate_table.
19252 (kbd_buffer_store_event_hold): Simplify condition.
19253 (read_key_sequence): Reinitialize fkey and keytran at each replay.
19254 (Vkeyboard_translate_table): Move to struct kboard.
19255 (init_kboard): Initialize Vkeyboard_translate_table.
19256 (syms_of_keyboard): Use DEFVAR_KBOARD to define
19257 Vkeyboard_translate_table. Update doc strings. Update docs of
19258 local-function-key-map and function-key-map.
19259
19260 * terminal.c: New file.
19261
19262 * term.c: Include errno.h.
19263 (Vring_bell_function, device_list, initial_device)
19264 (next_device_id, ring_bell, update_begin, update_end)
19265 (set_terminal_window, cursor_to, raw_cursor_to)
19266 (clear_to_end, clear_frame, clear_end_of_line)
19267 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
19268 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
19269 (syms_of_term): Move their initialization to terminal.c.
19270 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
19271 (Ftty_display_color_cells)
19272 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
19273 (clear_tty_hooks, set_tty_hooks)
19274 (init_tty, maybe_fatal): New functions.
19275 (Ftty_type): Return nil if terminal is not on a tty instead of
19276 throwing an error. Doc update.
19277 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
19278 Doc update. Initialize new subrs and variables.
19279 (delete_tty): Use terminal->deleted.
19280 (tty_set_terminal_modes): Rename from set_terminal_modes.
19281 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
19282 (set_scroll_region): Rename to `tty_set_scroll_region'.
19283 (turn_on_insert): Rename to `tty_turn_on_insert'.
19284 (turn_off_insert): Rename to `tty_turn_off_insert'.
19285 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
19286 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
19287 (toggle_highligh): Rename to `tty_toggle_highlight'.
19288 (background_highlight): Rename to `tty_background_highlight'.
19289 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
19290 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
19291 (tty_set_scroll_region, tty_background_highlight)
19292 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
19293 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
19294 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
19295 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
19296 Add static modifier.
19297 (tty_reset_terminal_modes, tty_set_terminal_window)
19298 (tty_set_scroll_region, tty_background_highlight)
19299 (tty_highlight_if_desired, tty_cursor_to)
19300 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
19301 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
19302 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
19303 renames.
19304
19305 2007-08-28 Jan Djärv <jan.h.d@swipnet.se>
19306
19307 * keyboard.c: Qrtl is new.
19308 (parse_tool_bar_item): Handle :rtl keyword.
19309 (syms_of_keyboard): Intern :rtl keyword.
19310
19311 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
19312
19313 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
19314 so no Lisp code is executed.
19315 (file_for_image, find_rtl_image): New functions.
19316 (xg_get_image_for_pixmap): Use file_for_image.
19317 (update_frame_tool_bar): If direction is RTL, use RTL image if
19318 defined. Use Gtk stock images if defined.
19319
19320 2007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19321
19322 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
19323 for nonexistent or zero-width glyph in composition glyph.
19324
19325 2007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
19326
19327 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
19328
19329 * xdisp.c (Finvisible_p): New function.
19330 (syms_of_xdisp): defsubr it.
19331
19332 2007-08-24 Juanma Barranquero <lekktu@gmail.com>
19333
19334 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
19335 Doc fixes.
19336
19337 2007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19338
19339 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
19340
19341 2007-08-24 Martin Rudalics <rudalics@gmx.at>
19342
19343 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
19344 whether decoding has modified buffer contents.
19345
19346 2007-08-24 Jason Rumney <jasonr@gnu.org>
19347
19348 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
19349 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
19350 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
19351 (init_svg_functions) [HAVE_NTGUI]: New function.
19352 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
19353 (svg_load_image): Use them.
19354 (svg_load_image) [HAVE_NTGUI]: Implement background.
19355
19356 2007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19357
19358 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
19359 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
19360 (LIBX): Remove @RSVG_LIBS@.
19361 (LIBES): Add $(RSVG_LIBS).
19362
19363 * image.c (svg_load_image): Blend with specified background if exists.
19364 Use IMAGE_BACKGROUND. Add Mac OS Support.
19365
19366 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
19367 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
19368 Remove macros.
19369 [MAC_OSX] (socket_callback): Do nothing.
19370 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
19371 ReceiveNextEvent.
19372 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
19373 socket_callback.
19374 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
19375
19376 2007-08-22 Glenn Morris <rgm@gnu.org>
19377
19378 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
19379
19380 2007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
19381
19382 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
19383
19384 * image.c: Add support for SVG images. Some additional comments
19385 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
19386 (svg_image_p): New function to test for SVG image.
19387 (svg_load): New function to load SVG image.
19388 (svg_load_image): New function, helper for svg_load.
19389 (Qsvg): New Lisp_object.
19390 (svg_keyword_index): New enum.
19391 (svg_format): New static `image_keyword' struct.
19392 (svg_type): New static `image_type' struct.
19393 (librsvg/rsvg.h): Include it.
19394
19395 2007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
19396
19397 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
19398
19399 2007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
19400
19401 * lread.c (Qold_style_backquotes): New var.
19402 (syms_of_lread): Init and staticpro it.
19403 (load_warn_old_style_backquotes): New fun.
19404 (Fload): Use them to warn about old style backquotes.
19405 (end_of_file_error, Fload): Remove unused vars.
19406
19407 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
19408
19409 * lread.c (Vold_style_backquotes): New var.
19410 (syms_of_lread): Init and export it to Elisp.
19411 (read1): Set it when we find an old-style (back)quote.
19412
19413 2007-08-22 Jason Rumney <jasonr@gnu.org>
19414
19415 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
19416
19417 2007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
19418
19419 * puresize.h (BASE_PURESIZE): Increase to 1140000.
19420
19421 2007-08-19 Richard Stallman <rms@gnu.org>
19422
19423 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
19424
19425 2007-08-19 Andreas Schwab <schwab@suse.de>
19426
19427 * alloc.c (pure): Round PURESIZE up.
19428
19429 2007-08-17 Jan Djärv <jan.h.d@swipnet.se>
19430
19431 * xterm.c (handle_one_xevent): Remove check that mouse click is in
19432 active frame.
19433
19434 2007-08-16 Richard Stallman <rms@gnu.org>
19435
19436 * eval.c (Fcommandp): Add parens to clarify.
19437
19438 * minibuf.c (Fall_completions): Use enum for type of table.
19439
19440 * emacs.c (USAGE2): Improve text.
19441
19442 2007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
19443
19444 * term.c (tty_default_color_capabilities): Declare static
19445 variables in file scope, to avoid HPUX compiler problem.
19446
19447 2007-08-13 Jan Djärv <jan.h.d@swipnet.se>
19448
19449 * gtkutil.c (update_frame_tool_bar): Use -1 as index
19450 to gtk_toolbar_insert.
19451
19452 2007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
19453
19454 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
19455
19456 * insdel.c (reset_var_on_error): New fun.
19457 (signal_before_change, signal_after_change):
19458 Use it to reset (after|before)-change-functions to nil in case of error.
19459 Bind inhibit-modification-hooks to t.
19460 Don't bind (after|before)-change-functions to nil while they run.
19461
19462 2007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19463
19464 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
19465 filling pixmap with stippled background.
19466
19467 2007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19468
19469 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
19470 Don't use invisible frame as parent window for repositioning.
19471
19472 2007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
19473
19474 * print.c (new_backquote_output): Rename from old_backquote_output.
19475 (print): Inverse its logic (according to its name) so as to match the
19476 behavior of new_backquote_flag in lread.c.
19477
19478 2007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19479
19480 * gmalloc.c (posix_memalign): New function.
19481
19482 * macterm.c (frame_highlight, frame_unhighlight): Don't call
19483 ActivateControl/DeactivateControl here.
19484 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
19485 frame-notice-user-settings is non-nil.
19486 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
19487 for kEventParamFMFontStyle.
19488 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
19489 mac_pass_command_to_system and mac_pass_control_to_system here.
19490 (XTread_socket): Call ActivateControl/DeactivateControl here.
19491 (XTread_socket) [TARGET_API_MAC_CARBON]:
19492 Check mac_pass_command_to_system and mac_pass_control_to_system here.
19493 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
19494 for window repositioning.
19495
19496 2007-08-08 Glenn Morris <rgm@gnu.org>
19497
19498 * Replace `iff' in doc-strings and comments.
19499
19500 2007-08-07 Chong Yidong <cyd@stupidchicken.com>
19501
19502 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
19503
19504 2007-08-07 Martin Rudalics <rudalics@gmx.at>
19505
19506 * fileio.c (Finsert_file_contents): Run format-decode and
19507 after_insert_file_functions on entire buffer when REPLACE is
19508 non-nil and inhibit modification_hooks and point_motion_hooks.
19509 For consistency, run after_insert_file_functions iff something
19510 got inserted. Move signal_after_change and update_compositions
19511 after code running after_insert_file_functions. Make sure that
19512 undo_list doesn't record intermediate steps of the decoding process.
19513
19514 2007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19515
19516 * emacs.c (main)
19517 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
19518 Call malloc_enable_thread on interactive startup.
19519
19520 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
19521 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
19522 [USE_PTHREAD]: Conditionalize with it.
19523 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
19524 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
19525 New functions.
19526
19527 2007-08-06 Chong Yidong <cyd@stupidchicken.com>
19528
19529 * xdisp.c (redisplay_window): When restoring original buffer
19530 position, make sure it is still valid.
19531
19532 * image.c (png_load): Ignore png-supplied background color.
19533
19534 2007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19535
19536 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
19537 Use kCFAbsoluteTimeIntervalSince1970.
19538
19539 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
19540 New variable.
19541 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
19542 event loop should be quit.
19543 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
19544 Quit dialog event loop if quit_dialog_event_loop is set.
19545
19546 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
19547 (Selection): New typedef. Use instead of ScrapRef.
19548 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
19549 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
19550 (mac_clear_selection): Rename from clear_scrap.
19551 (get_flavor_type_from_symbol): New argument SEL and subsume function of
19552 scrap_has_target_type. All uses changed.
19553 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
19554 (mac_selection_has_target_p): New functions.
19555 (mac_put_selection_value): Rename from put_scrap_string.
19556 (mac_get_selection_value): Rename from get_scrap_string.
19557 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
19558 (put_scrap_private_timestamp, scrap_has_target_type)
19559 (get_scrap_private_timestamp): Remove functions.
19560 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
19561 (x_own_selection, x_get_local_selection):
19562 Use mac_valid_selection_value_p.
19563 (x_own_selection): Don't use put_scrap_private_timestamp.
19564 Record OWNERSHIP-INFO into Vselection_alist instead.
19565 (x_get_local_selection): Don't check type if request is local.
19566 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
19567 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
19568
19569 2007-08-04 Jan Djärv <jan.h.d@swipnet.se>
19570
19571 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
19572 add comment explaining why.
19573
19574 2007-08-03 Richard Stallman <rms@gnu.org>
19575
19576 * fileio.c (Fvisited_file_modtime): Use make_time.
19577
19578 2007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
19579
19580 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
19581 build.
19582
19583 2007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
19584
19585 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
19586
19587 2007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
19588
19589 * puresize.h (BASE_PURESIZE): Increase to 1130000.
19590
19591 2007-07-30 Richard Stallman <rms@gnu.org>
19592
19593 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
19594
19595 2007-07-29 Jan Djärv <jan.h.d@swipnet.se>
19596
19597 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
19598
19599 2007-07-28 Nick Roberts <nickrob@snap.net.nz>
19600
19601 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
19602 remote default-directory.
19603
19604 * buffer.c (mode-line-format): Update doc string.
19605
19606 2007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19607
19608 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
19609 scroll bar gap.
19610 (x_scroll_bar_create): Set bar->fringe_extended_p.
19611 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
19612 on frame edge. Check fringe background extension. Don't clear
19613 extended fringe background area.
19614
19615 * w32term.h (struct scroll_bar): New member fringe_extended_p.
19616 (w32_fill_area): Enclose multiple statements with do ... while (0).
19617
19618 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
19619 Extend fringe background to scroll bar gap.
19620 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
19621 Set bar->fringe_extended_p.
19622 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
19623 Put leftmost/rightmost scroll bars on frame edge. Check fringe
19624 background extension. Don't clear extended fringe background area.
19625
19626 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
19627 New member fringe_extended_p.
19628
19629 2007-07-25 Glenn Morris <rgm@gnu.org>
19630
19631 * Relicense all FSF files to GPLv3 or later.
19632
19633 * COPYING: Switch to GPLv3.
19634
19635 2007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
19636
19637 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
19638
19639 * data.c (Finteractive_form): Check for the presence of an
19640 `interactive-form' symbol property more thoroughly.
19641
19642 * data.c (Finteractive_form): Use an `interactive-form' property if
19643 present, analogous to the function-documentation property.
19644
19645 2007-07-24 Jason Rumney <jasonr@gnu.org>
19646
19647 * w32fns.c (x_real_positions): Get real position from OS instead of
19648 calculating it.
19649
19650 2007-07-23 Jason Rumney <jasonr@gnu.org>
19651
19652 * filelock.c (current_lock_owner): Allow for @ sign in username.
19653
19654 2007-07-22 Nick Roberts <nickrob@snap.net.nz>
19655
19656 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
19657 remote default-directory.
19658
19659 * buffer.c (mode-line-format): Describe above case in doc string.
19660
19661 2007-07-20 Eli Zaretskii <eliz@gnu.org>
19662
19663 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
19664 Define if not defined.
19665
19666 2007-07-18 Jason Rumney <jasonr@gnu.org>
19667
19668 * w32proc.c (w32_executable_type): Handle 64 bit executables.
19669
19670 2007-07-18 Richard Stallman <rms@gnu.org>
19671
19672 * data.c (Fsetq_default): Doc fix.
19673
19674 * eval.c (Fsetq): Doc fix.
19675
19676 2007-07-18 Juanma Barranquero <lekktu@gmail.com>
19677
19678 * coding.c (Ffind_operation_coding_system):
19679 * eval.c (For, Fand): Doc fixes.
19680 Reported by Johan Bockgård.
19681
19682 2007-07-18 Jan Djärv <jan.h.d@swipnet.se>
19683
19684 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
19685
19686 * xterm.h: Declare x_ewmh_activate_frame.
19687
19688 * xterm.c (x_ewmh_activate_frame): New function.
19689 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
19690
19691 2007-07-17 Martin Rudalics <rudalics@gmx.at>
19692
19693 * window.c (Fdisplay_buffer): If largest or LRU window is the
19694 only window, split it even if it is not eligible for splitting.
19695 This restores the original behavior broken by the 2007-07-15
19696 change.
19697
19698 2007-07-17 Glenn Morris <rgm@gnu.org>
19699
19700 * abbrev.c (abbrev_check_chars): New function.
19701 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
19702 Call abbrev_check_chars to check abbrev characters are word
19703 constituents. Doc fix.
19704
19705 2007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
19706
19707 * process.c (Fstart_process, Fmake_network_process)
19708 (read_process_output): Fix up last changes.
19709
19710 2007-07-16 Eli Zaretskii <eliz@gnu.org>
19711
19712 * makefile.w32-in (clean): Don't delete *~.
19713
19714 2007-07-16 Andreas Schwab <schwab@suse.de>
19715
19716 * window.c (Fdisplay_buffer): Use NILP.
19717 (Fset_window_scroll_bars): Likewise.
19718
19719 2007-07-15 Martin Rudalics <rudalics@gmx.at>
19720
19721 * window.c (window_min_size_2): New function.
19722 (window_min_size_1, size_window, Fdisplay_buffer)
19723 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
19724 windows without mode- or header-lines when window-min-height is
19725 too small.
19726 (size_window): Reset nodelete_p after testing it, following an
19727 earlier note by Kim F. Storm.
19728 (display_buffer): Do not set split_height_threshold to twice the
19729 value of window_min_height to avoid changing the value of a
19730 customizable variable. Rather explicitly check whether the
19731 height of the window that shall be splitted is at least as large
19732 as split_height_threshold.
19733 (Fwindow_full_width_p): New defun.
19734 (syms_of_window): Defsubr it.
19735
19736 * window.h: Add EXFUN for Fwindow_full_width_p.
19737
19738 2007-07-14 Jason Rumney <jasonr@gnu.org>
19739
19740 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
19741
19742 2007-07-14 Richard Stallman <rms@gnu.org>
19743
19744 * eval.c (maybe_call_debugger): New function.
19745 (find_handler_clause): Use maybe_call_debugger.
19746 Call it when the handler says `debug'.
19747 Eliminate DEBUGGER_VALUE_PTR.
19748 (Fsignal): Eliminate debugger_value.
19749 (Qdebug): New variable.
19750 (syms_of_eval): Initialize it.
19751
19752 2007-07-14 Juanma Barranquero <lekktu@gmail.com>
19753
19754 * eval.c (Fprogn):
19755 * keyboard.c (Ftrack_mouse):
19756 * print.c (Fwith_output_to_temp_buffer):
19757 * window.c (Fsave_window_excursion): Doc fix.
19758
19759 2007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
19760
19761 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
19762
19763 2007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
19764
19765 * process.h (struct Lisp_Process): Turn slots infd, outfd,
19766 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
19767 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
19768 read_output_delay, and read_output_skip from Lisp_Objects to ints.
19769 Remove unused encoding_carryover.
19770 * process.c: Adjust all functions accordingly.
19771
19772 2007-07-12 Richard Stallman <rms@gnu.org>
19773
19774 * term.c: Include unistd.h only if HAVE_UNISTD_H.
19775
19776 2007-07-11 Jason Rumney <jasonr@gnu.org>
19777
19778 * makefile.w32-in (LIBS): Include OLE32.
19779
19780 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
19781 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
19782
19783 2007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
19784
19785 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
19786 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
19787 from a Lisp_Object into a bare pointer.
19788 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
19789 Adjust the code correspondingly.
19790
19791 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
19792
19793 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
19794 (term_show_mouse_face): Remove unused var `j'.
19795 (handle_one_term_event): Remove unused vars `i' and `j'.
19796 Don't cast return value of ttyname since it's not necessary.
19797
19798 2007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
19799
19800 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
19801 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
19802
19803 * fns.c (map_char_table): Use an array of int for `indices' rather than
19804 an array of Lisp_Objects (which are only ever integers anyway).
19805 (Fmap_char_table): Update caller.
19806 * lisp.h: Update prototype.
19807 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
19808 * fontset.c (Ffontset_info):
19809 * casetab.c (set_case_table): Update callers.
19810
19811 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
19812
19813 * keymap.c (struct accessible_keymaps_data)
19814 (struct where_is_internal_data): New structures.
19815 (accessible_keymaps_1, where_is_internal_1): Use them to change
19816 interface to adhere to the one used by map_keymap.
19817 (Faccessible_keymaps, where_is_internal): Use map_keymap.
19818 (accessible_keymaps_char_table, where_is_internal_2): Remove.
19819
19820 * keymap.h (map_keymap_function_t): More informative prototype.
19821
19822 2007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
19823
19824 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
19825 (looking_at_1): Don't change search_regs and last_thing_searched
19826 if `inhibit-changing-match-data' is non-nil.
19827 (string_match_1, search_buffer, set_search_regs): Likewise.
19828 (syms_of_search): Add Lisp level definition for
19829 `inhibit-changing-match-data' and set it to nil.
19830 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
19831 start and end of the match, instead of using values in search_regs.
19832
19833 2007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
19834
19835 * minibuf.c (Fcompleting_read): New value `confirm-only'
19836 for `require-match'.
19837
19838 2007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
19839
19840 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
19841 part of the 2007-06-27 change to syms_of_fileio.
19842
19843 2007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19844
19845 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
19846 Check WINDOWP before using XWINDOW. Consolidate return statements.
19847
19848 2007-06-27 Richard Stallman <rms@gnu.org>
19849
19850 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
19851
19852 2007-06-27 Juanma Barranquero <lekktu@gmail.com>
19853
19854 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
19855
19856 2007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19857
19858 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
19859 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
19860 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
19861 (_free_internal, memalign): Use them.
19862 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
19863 Initialize to PTHREAD_MUTEX_INITIALIZER.
19864 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
19865 (morecore_nolock): Rename from morecore. All uses changed.
19866 Use only nolock versions of internal allocation functions.
19867 (_malloc_internal_nolock, _realloc_internal_nolock)
19868 (_free_internal_nolock): New functions created from
19869 _malloc_internal, _realloc_internal, and _free_internal.
19870 (_malloc_internal, _realloc_internal, _free_internal): Use them.
19871 Copy hook value to automatic variable before its use.
19872 (memalign): Copy hook value to automatic variable before its use.
19873
19874 2007-06-26 Kenichi Handa <handa@m17n.org>
19875
19876 * coding.c (Ffind_operation_coding_system): Docstring improved.
19877 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
19878
19879 2007-06-25 David Kastrup <dak@gnu.org>
19880
19881 * keymap.c (Fcurrent_active_maps): Add `position' argument.
19882 (Fwhere_is_internal): Adjust call to `current-active-maps' to
19883 cater for additional parameter.
19884
19885 * keymap.h: Adjust number of parameters to `current-active-maps'.
19886
19887 * doc.c (Fsubstitute_command_keys): Adjust call of
19888 `current-active-maps'.
19889
19890 2007-06-25 David Kastrup <dak@gnu.org>
19891
19892 * callint.c (Fcall_interactively): Make the parsing of interactive
19893 specs somewhat more readable.
19894
19895 2007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19896
19897 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
19898 to scroll bar gap also when bitmap fills fringe. Draw only foreground
19899 if extended background has already been filled.
19900
19901 2007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19902
19903 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
19904 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
19905
19906 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
19907 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
19908 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
19909 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
19910 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
19911 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
19912 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
19913 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
19914 Run timers during dialog popup.
19915 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
19916
19917 2007-06-21 Jason Rumney <jasonr@gnu.org>
19918
19919 * image.c (convert_mono_to_color_image): Swap fore and background.
19920
19921 2007-06-20 Jason Rumney <jasonr@gnu.org>
19922
19923 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
19924 (w32_free_bdf_font): Unmap memory not handle.
19925
19926 2007-06-20 Sam Steingold <sds@gnu.org>
19927
19928 * gmalloc.c (__morecore): Fix the declaration to comply with the
19929 definition.
19930
19931 2007-06-20 Juanma Barranquero <lekktu@gmail.com>
19932
19933 * w32term.c (w32_delete_display): Remove leftover declaration.
19934 (w32_define_cursor, w32_initialize): Make static.
19935
19936 * w32.c (_wsa_errlist): Fix typo in error message.
19937 (init_environment): Ignore any environment variable from the
19938 registry having a null value.
19939
19940 2007-06-20 Glenn Morris <rgm@gnu.org>
19941
19942 * Makefile.in (LIBGIF): Default to -lgif.
19943
19944 2007-06-17 Jason Rumney <jasonr@gnu.org>
19945
19946 * w32menu.c (add_menu_item): Don't use multibyte string functions on
19947 unicode strings.
19948
19949 2007-06-16 Juanma Barranquero <lekktu@gmail.com>
19950
19951 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
19952 Fix typo in docstring.
19953
19954 2007-06-16 Eli Zaretskii <eliz@gnu.org>
19955
19956 * w32menu.c (add_menu_item): Escape `&' characters in menu items
19957 and their keybindings.
19958
19959 2007-06-15 Chong Yidong <cyd@stupidchicken.com>
19960
19961 * composite.c (update_compositions): Fix last fix.
19962
19963 2007-06-14 Jason Rumney <jasonr@gnu.org>
19964
19965 * w32.c (get_process_times_fn): New function pointer.
19966 (globals_of_w32): Intialize it if present in kernel32.dll.
19967 (w32_get_internal_run_time): New function.
19968
19969 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
19970
19971 2007-06-14 Kenichi Handa <handa@etlken.m17n.org>
19972
19973 * composite.c (update_compositions): Check the validness of
19974 compositions.
19975
19976 2007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19977
19978 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
19979 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
19980
19981 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
19982 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
19983
19984 * macgui.h (USE_MAC_TOOLBAR): New define.
19985
19986 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
19987 Return immediately unless popup is activated.
19988
19989 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
19990 background to scroll bar gap.
19991 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
19992 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
19993 scroll bars on frame edge. Check fringe background extension.
19994 Don't clear extended fringe background area.
19995 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
19996 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
19997 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
19998 [USE_MAC_TOOLBAR]: New macros.
19999 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
20000 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
20001 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
20002 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
20003 [USE_MAC_TOOLBAR]: New functions.
20004 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
20005 manually if previous repositioning has failed.
20006 (mac_handle_keyboard_event): Use precomputed event kind.
20007 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
20008 as tool bar item click. Handle mouse movement over tool bar items.
20009
20010 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
20011 toolbar_win_gravity.
20012 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
20013 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
20014 Add externs.
20015
20016 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
20017 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
20018
20019 2007-06-14 Chong Yidong <cyd@stupidchicken.com>
20020
20021 * image.c (search_image_cache): Remove unused variable.
20022
20023 2007-06-13 Chong Yidong <cyd@stupidchicken.com>
20024
20025 * xfns.c, xmenu.c: Link to xaw3d if available.
20026
20027 2007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20028
20029 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
20030 frame_foreground and frame_background.
20031
20032 * image.c (lookup_image): Save frame foreground and background colors.
20033 (search_image_cache): Check if saved and current frame colors match.
20034
20035 2007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
20036
20037 * regex.c (regex_compile): Remove the `regnum' counter.
20038 Use bufp->re_nsub instead. Add support for \(?N:RE\).
20039
20040 2007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
20041
20042 * term.c: Include intervals.h to declare Fget_text_property.
20043
20044 2007-06-10 Jason Rumney <jasonr@gnu.org>
20045
20046 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
20047
20048 2007-06-08 Juanma Barranquero <lekktu@gmail.com>
20049
20050 * callint.c (Fcall_interactively):
20051 * editfns.c (Fdelete_and_extract_region):
20052 * fileio.c (Fread_file_name):
20053 * fns.c (Fmapconcat):
20054 * keyboard.c (cmd_error_internal):
20055 * keymap.c (Fkey_description):
20056 * lread.c (openp):
20057 * minibuf.c (read_minibuf):
20058 * search.c (wordify):
20059 * sunfns.c (sel_read):
20060 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
20061 * xfns.c (x_default_scroll_bar_color_parameter):
20062 * xmenu.c (menu_help_callback):
20063 * xselect.c (Fx_get_atom_name):
20064 * xterm.c (x_term_init): Use empty_unibyte_string.
20065
20066 2007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
20067
20068 * alloc.c (init_strings): Initialize canonical empty strings.
20069 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
20070 canonical empty string when the requested size is 0.
20071
20072 * emacs.c (empty_unibyte_string): Rename from empty_string.
20073 (empty_multibyte_string): New canonical empty string.
20074 (syms_of_emacs): Don't initialize empty_string.
20075
20076 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
20077 string, if appropriate.
20078 (empty_unibyte_string, empty_multibyte_string): New externs.
20079 (empty_string): Remove extern.
20080
20081 * lread.c (syms_of_lread): Use empty_unibyte_string.
20082
20083 2007-06-07 Jason Rumney <jasonr@gnu.org>
20084
20085 * s/ms-w32.h: Don't define HAVE_TZNAME.
20086
20087 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
20088
20089 2007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20090
20091 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
20092
20093 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
20094 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
20095
20096 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
20097 Don't call next handler.
20098 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
20099 Remove argument. Install handler to application.
20100 (set_frame_menubar): Don't change deep_p.
20101 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
20102 FRAME_OUTER_TO_INNER_DIFF_Y.
20103 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
20104 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
20105 [HAVE_DIALOGS]: New macros.
20106 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
20107 Use them.
20108 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
20109
20110 * macselect.c [MAC_OSX] (install_service_handler): Rename from
20111 init_service_handler. All callers changed. Return OSStatus value.
20112
20113 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
20114 All callers changed so as not to call SetPortWindowPort.
20115 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
20116 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
20117 mac_draw_string_common.
20118 (mac_draw_image_string_qd): Likewise.
20119 (mac_draw_string_common): Use them. Add INLINE.
20120 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
20121 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
20122 GetGlobalMouse.
20123 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
20124 and FRAME_OUTER_TO_INNER_DIFF_Y.
20125 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
20126 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
20127 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
20128 repositioning window to mac_handle_window_event.
20129 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
20130 saving window location to mac_handle_window_event
20131 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
20132 (install_menu_target_item_handler): Remove argument in extern.
20133 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
20134 Also accept command events.
20135 (do_keystroke): New function created from XTread_socket.
20136 (init_command_handler): Remove functions.
20137 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
20138 and save window location by kEventWindowShowing and kEventWindowHiding
20139 handlers here. Don't call next handler for window state change and
20140 focus events.
20141 (mac_handle_application_event, mac_handle_keyboard_event)
20142 [TARGET_API_MAC_CARBON]: New functions.
20143 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
20144 kEventWindowShowing and kEventWindowHiding events. Move installation
20145 of mouse, font, text input and menu target item handlers to
20146 install_application_handler.
20147 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
20148 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
20149 New function.
20150 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
20151 Register it.
20152 (XTread_socket) [TARGET_API_MAC_CARBON]:
20153 Consolidate SendEventToEventTarget calls.
20154 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
20155 Move application activation handler to mac_handle_application_event.
20156 Move keyboard handler to mac_handle_keyboard_event.
20157 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
20158 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
20159 init_command_handler. Call install_application_handler.
20160
20161 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
20162 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
20163
20164 2007-06-07 Glenn Morris <rgm@gnu.org>
20165
20166 * emacs.c (main): Use `emacs-copyright' in --version output.
20167
20168 2007-06-06 Chong Yidong <cyd@stupidchicken.com>
20169
20170 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
20171
20172 2007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20173
20174 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
20175
20176 * macgui.h: Replace WindowPtr with WindowRef.
20177
20178 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
20179 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
20180 Replace ControlHandle with ControlRef.
20181 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
20182
20183 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
20184 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
20185 Replace ControlHandle with ControlRef.
20186 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
20187 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
20188
20189 * macterm.h (struct scroll_bar): Rename member control_handle_low
20190 and control_handle_high to control_ref_low and control_ref_high.
20191 All uses changed.
20192 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
20193 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
20194 respectively. All uses changed.
20195 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
20196 (install_window_handler, remove_window_handler): Replace WindowPtr
20197 with WindowRef in externs.
20198
20199 2007-06-05 Juanma Barranquero <lekktu@gmail.com>
20200
20201 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
20202
20203 2007-06-03 Nick Roberts <nickrob@snap.net.nz>
20204
20205 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
20206
20207 * frame.c (Fmouse_position, Fmouse_pixel_position):
20208 Condition on HAVE_GPM too.
20209
20210 * term.c (term_mouse_highlight): Remove unused variables.
20211 (Fterm_open_connection): Set gpm_zerobased to 1.
20212 (term_mouse_movement, term_mouse_click, handle_one_term_event):
20213 Use zero based co-ordinates.
20214 (handle_one_term_event): Report a drag as mouse movement too.
20215
20216 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
20217
20218 2007-06-03 Chong Yidong <cyd@stupidchicken.com>
20219
20220 * image.c (search_image_cache): New function. Require background
20221 color match if background color is unspecified in the image spec.
20222 (uncache_image, lookup_image): Use it.
20223
20224 2007-06-01 Juanma Barranquero <lekktu@gmail.com>
20225
20226 * window.c (Fshrink_window): Reflow docstring.
20227
20228 2007-06-02 Chong Yidong <cyd@stupidchicken.com>
20229
20230 * Version 22.1 released.
20231
20232 2007-06-01 Richard Stallman <rms@gnu.org>
20233
20234 * xfns.c (x_encode_text): Add GCPRO.
20235
20236 2007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20237
20238 * xfns.c (x_set_name_internal): Save encoded name before
20239 x_encode_text in case string data is relocated.
20240
20241 2007-05-31 Richard Stallman <rms@gnu.org>
20242
20243 * buffer.c (syms_of_buffer): Doc fix.
20244
20245 2007-05-30 Nick Roberts <nickrob@snap.net.nz>
20246
20247 * sysdep.c (init_sys_modes): Add rather than replace with
20248 O_NONBLOCK.
20249
20250 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
20251 term_mouse_moveto.
20252
20253 * termhooks.h (term_mouse_moveto): New extern.
20254
20255 * term.c (mouse_face_window): Rename...
20256 (Qmouse_face_window): ...to this.
20257 (term_show_mouse_face, term_clear_mouse_face)
20258 (term_mouse_highlight): Use Qmouse_face_window.
20259 (term_mouse_moveto): New function.
20260 (term_mouse_position): Make it work.
20261 (syms_of_term): Uncomment assignment to mouse_position_hook.
20262 Staticpro Qmouse_face_window.
20263
20264 2007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20265
20266 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
20267 around current_column call.
20268
20269 2007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
20270
20271 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
20272 * xdisp.c (next_element_from_buffer):
20273 * window.c (delete_window):
20274 * term.c (term_mouse_highlight):
20275 * msdos.c (getdefdir):
20276 * macterm.c (mac_create_bitmap_from_bitmap_data)
20277 (init_font_name_table):
20278 * fns.c (Fsxhash):
20279 * data.c (Fmake_local_variable):
20280 * ccl.c (ccl_driver): Likewise.
20281
20282 2007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20283
20284 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
20285 Call mac_wakeup_from_rne on window size change.
20286
20287 2007-05-25 Chong Yidong <cyd@stupidchicken.com>
20288
20289 * image.c (uncache_image): Fix typo.
20290
20291 2007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
20292
20293 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
20294
20295 2007-05-22 Richard Stallman <rms@gnu.org>
20296
20297 * xterm.c (x_connection_closed): Remove NO_RETURN.
20298
20299 2007-05-22 Martin Rudalics <rudalics@gmx.at>
20300
20301 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
20302
20303 2007-05-21 Chong Yidong <cyd@stupidchicken.com>
20304
20305 * image.c (uncache_image): New function.
20306 (Fimage_refresh): New function.
20307
20308 2007-05-20 Jan Djärv <jan.h.d@swipnet.se>
20309
20310 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
20311
20312 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
20313
20314 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
20315 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
20316
20317 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
20318
20319 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
20320 conditional on [HAVE_GPM_H].
20321
20322 2007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
20323
20324 * syntax.c (skip_chars): Update syntax-table only after we checked that
20325 the new location is valid.
20326
20327 2007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20328
20329 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
20330 mac_get_window_bounds.
20331
20332 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
20333
20334 * Makefile.in (LIBGPM): Allow it to be set from configure.
20335 If set then link Emacs with it.
20336
20337 * config.in: Regenerate.
20338
20339 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
20340 New externs.
20341
20342 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
20343 Include gpm.h.
20344 (handle_one_term_event, term_gpm): New externs.
20345
20346 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
20347 and allow it to be interrupted by SIGIO.
20348
20349 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
20350 (wait_reading_process_output): Wait on gpm_fd too.
20351 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
20352 (add_gpm_wait_descriptor_called_flag): New variable.
20353 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
20354
20355 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
20356 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
20357 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
20358 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
20359 (make_lispy_event): Add case GPM_CLICK_EVENT.
20360 (read_avail_input): Handle mouse input.
20361
20362 * term.c (write_glyphs_with_face): New function.
20363 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
20364 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
20365 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
20366 (mouse_face_face_id, term_gpm, pos_x, pos_y)
20367 (last_mouse_x, last_mouse_y): New variables.
20368 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
20369 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
20370 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
20371 (Fterm_close_connection): New functions.
20372 (term_init): Initialise mouse_face_window.
20373
20374 2007-05-19 Chong Yidong <cyd@stupidchicken.com>
20375
20376 * xdisp.c (redisplay_window): If first window line is a
20377 continuation line, recompute the new window start instead of
20378 recentering.
20379
20380 2007-05-18 Glenn Morris <rgm@gnu.org>
20381
20382 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
20383 Suggested by Alfred M. Szmidt <ams@gnu.org>.
20384
20385 2007-05-17 Glenn Morris <rgm@gnu.org>
20386
20387 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
20388
20389 2007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20390
20391 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
20392 dead key repeat and up events.
20393
20394 2007-05-14 Chong Yidong <cyd@stupidchicken.com>
20395
20396 * image.c (pbm_load): Check image size for monochrome pbm.
20397
20398 2007-05-13 Chong Yidong <cyd@stupidchicken.com>
20399
20400 * xterm.c (XTread_socket): Revert last change.
20401
20402 2007-05-12 Chong Yidong <cyd@stupidchicken.com>
20403
20404 * image.c (pbm_load): Correctly check image size for greyscale pbm.
20405
20406 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
20407
20408 2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
20409
20410 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
20411 mixup (YAILOM).
20412
20413 2007-05-07 Andreas Schwab <schwab@suse.de>
20414
20415 * keymap.c (Flookup_key): Fix typo in last change.
20416
20417 2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
20418
20419 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
20420 mapping for unibyte strings.
20421
20422 2007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20423
20424 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
20425 (Fx_popup_dialog) [MAC_OSX]: Likewise.
20426
20427 2007-04-29 Richard Stallman <rms@gnu.org>
20428
20429 * insdel.c (replace_range): For undo, record insertion first.
20430
20431 2007-04-29 Andreas Schwab <schwab@suse.de>
20432
20433 * lisp.h (VECSIZE): Use OFFSETOF.
20434
20435 2007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20436
20437 * xdisp.c (try_window_reusing_current_matrix): Fix number of
20438 disabled lines.
20439
20440 2007-04-28 Richard Stallman <rms@gnu.org>
20441
20442 * lread.c (read_escape): In a string, \s is always space.
20443
20444 2007-04-27 Jan Djärv <jan.h.d@swipnet.se>
20445
20446 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
20447
20448 * gtkutil.c (xg_update_menubar, create_menus): Create empty
20449 submenu for menu bar items.
20450
20451 See ChangeLog.10 for earlier changes.
20452
20453 ;; Local Variables:
20454 ;; coding: utf-8
20455 ;; add-log-time-zone-rule: t
20456 ;; End:
20457
20458 Copyright (C) 2007, 2008, 2009 Free Software Foundation, Inc.
20459
20460 This file is part of GNU Emacs.
20461
20462 GNU Emacs is free software: you can redistribute it and/or modify
20463 it under the terms of the GNU General Public License as published by
20464 the Free Software Foundation, either version 3 of the License, or
20465 (at your option) any later version.
20466
20467 GNU Emacs is distributed in the hope that it will be useful,
20468 but WITHOUT ANY WARRANTY; without even the implied warranty of
20469 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20470 GNU General Public License for more details.
20471
20472 You should have received a copy of the GNU General Public License
20473 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
20474
20475 ;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40