* src/Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
[bpt/emacs.git] / src / ChangeLog
1 2008-06-26 Juanma Barranquero <lekktu@gmail.com>
2
3 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
4
5 2008-06-26 Jason Rumney <jasonr@gnu.org>
6
7 * w32bdf.c, w32bdf.h: Remove obsolete files.
8
9 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
10
11 * w32gui.h: Don't include w32bdf.h.
12 (XCharStruct, enum w32_char_font_type, W32FontStruct):
13 Remove obsolete font support.
14
15 * w32font.h (struct w32font_info): Remove compat_w32_font.
16 Add hfont member.
17 (FONT_COMPAT): Remove obsolete macro.
18
19 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
20 (w32font_encode_char, w32font_text_extents): Use new hfont member.
21 (w32font_open_internal): Remove compat code. Set new hfont member.
22 (Fx_select_font): Use new hfont member.
23
24 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape):
25 (uniscribe_encode_char): Use new hfont member.
26
27 * w32term.c (x_draw_glyph_string_foreground):
28 (x_draw_composite_glyph_string_foreground): Use new hfont member.
29 (x_draw_glyph_string): Use metrics in w32font_info.
30
31 2008-06-26 Kenichi Handa <handa@m17n.org>
32
33 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
34
35 2008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
36
37 * unexnext.c:
38 * m/ews4800.h:
39 * m/hp9000s300.h:
40 * m/ibm370aix.h:
41 * m/mips-siemens.h:
42 * m/ncr386.h:
43 * m/next.h:
44 * m/pmax.h:
45 * m/powerpcle.h:
46 * m/tandem-s2.h:
47 * s/386bsd.h:
48 * s/bsd386.h:
49 * s/bsd4-1.h:
50 * s/bsd4-2.h:
51 * s/bsdos2-1.h:
52 * s/bsdos2.h:
53 * s/bsdos3.h:
54 * s/bsdos4.h:
55 * s/nextstep.h:
56 * s/ultrix4-3.h:
57 * s/usg5-0.h:
58 * s/usg5-2-2.h:
59 * s/usg5-2.h:
60 * s/usg5-4-3.h:
61 * s/ux4800.h:
62 * s/uxpds.h:
63 * s/uxpv.h: Remove support for obsolete systems.
64 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
65 Remove, insert contents in s/hpux-10.20.h
66 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
67 Remove, insert contents in s/aix-4.2.h
68 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
69 * s/bsd4-3.h: Rename to ..
70 * s/bsd-common.h: ... this.
71 * src/data.c:
72 * src/doc.c:
73 * src/ecrt0.c:
74 * src/emacs.c:
75 * src/fileio.c:
76 * src/floatfns.c:
77 * src/keyboard.c:
78 * src/mem-limits.h:
79 * src/print.c:
80 * src/process.c:
81 * src/sysdep.c:
82 * src/syssignal.h:
83 * src/systty.h:
84 * src/syswait.h:
85 * src/term.c:
86 * src/unexec.c:
87 * src/unexelf.c:
88 * src/unexhp9k800.c:
89 * src/m/hp800.h:
90 * src/m/ibmrs6000.h:
91 * src/m/mips.h:
92 * src/m/vax.h:
93 * src/s/darwin.h:
94 * src/s/freebsd.h:
95 * src/s/gnu.h:
96 * src/s/ms-w32.h:
97 * src/s/msdos.h:
98 * src/s/netbsd.h:
99 * src/s/template.h: Remove references to obsolete variables.
100
101 * Makefile.in: Add dependencies for all unexec files.
102 (admindir): Remove unused variable.
103 (UNEXEC_SRC): Remove references.
104
105 2008-06-25 Chong Yidong <cyd@stupidchicken.com>
106
107 * xfns.c (x_default_font_parameter): If Xft is available, first
108 try Monospace-12 for the default font.
109
110 2008-06-25 Jason Rumney <jasonr@gnu.org>
111
112 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
113
114 2008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
115
116 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
117
118 * buffer.c (syms_of_buffer): Remove default-word-wrap.
119
120 2008-06-25 Juanma Barranquero <lekktu@gmail.com>
121
122 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
123 <scroll-conservatively>: Fix typo in docstring.
124
125 * xselect.c (Fx_send_client_event): Doc fix.
126
127 2008-06-25 Kenichi Handa <handa@m17n.org>
128
129 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
130
131 * font.c (font_parse_fcname): Remove unused variables.
132 (font_sort_entites): Delete the arg SPEC. Caller changed.
133 Fix for the case of ! best_only.
134 (font_delete_unmatched): Check DPI and AVGWIDTH too.
135
136 * lisp.h (Fstring_to_unibyte): EXFUN it.
137
138 * character.h (str_to_unibyte): Extern it.
139
140 * character.c (str_to_unibyte): New function.
141
142 * fns.c (Fstring_to_unibyte): New function.
143 (syms_of_fns): Defsubr it.
144
145 2008-06-24 Kenichi Handa <handa@m17n.org>
146
147 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
148 DPI too.
149 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
150
151 2008-06-24 Andreas Schwab <schwab@suse.de>
152
153 * Makefile.in (${lispsource}loaddefs.el): Rename from
154 ../lisp/loaddefs.el.
155 (bootstrap-clean): Do what distclean does but don't remove
156 Makefile.
157 (distclean): Depend on bootstrap-clean and remove Makefile.
158
159 2008-06-24 Chong Yidong <cyd@stupidchicken.com>
160
161 * buffer.h (struct buffer): New member word_wrap.
162
163 * buffer.c (syms_of_buffer): New variables default-word-wrap and
164 word-wrap.
165 (init_buffer_once): Initialize them.
166
167 * dispextern.h (struct it): Replace bool truncate_lines_p with a
168 line_wrap enum possessing three possible values.
169
170 * termopts.h: Replace truncate_partial_width_windows with
171 Vtruncate_partial_width_windows.
172
173 * dispnew.c (direct_output_for_insert): Avoid direct output when
174 inserting a space with word wrap on.
175
176 * indent.c (compute_motion): Obey integer values of
177 truncate-partial-width-windows.
178
179 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
180 replacing truncate_partial_width_windows.
181 (init_iterator): If Vtruncate_partial_width_windows is an integer,
182 truncate only if the window width is below that integer.
183 (start_display. resize_mini_window, produce_stretch_glyph)
184 (display_string, move_it_in_display_line_to): Use line_wrap.
185 (back_to_previous_visible_line_start, reseat_1): Reset
186 string_from_display_prop_p.
187 (display_line): Extend default face to end of line when wrapping.
188
189 2008-06-24 Kim F. Storm <storm@cua.dk>
190
191 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
192 to wrap continued lines at word boundaries.
193
194 2008-06-24 Jason Rumney <jasonr@gnu.org>
195
196 * font.c (Ffont_face_attributes): Multiply pixel size before point
197 conversion to avoid multiplying rounding error.
198
199 2008-06-23 Jason Rumney <jasonr@gnu.org>
200
201 * w32term.c (x_draw_glyph_string_background)
202 (x_draw_glyph_string): Remove old bdf font code.
203
204 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
205
206 2008-06-22 Kenichi Handa <handa@m17n.org>
207
208 * font.c (font_find_for_lface): Try the adstyle specified in
209 the property of LFACE_FONT of LFACE (if any).
210
211 2008-06-21 Seiji Zenitani <zenitani@mac.com>
212 Ryo Yoshitake <ryo@shiftmode.net>
213
214 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
215
216 2008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
217
218 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
219 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
220 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
221 (witness-emacs): Remove.
222 (lisp, shortlisp): Move loaddefs.el earlier.
223 (mostlyclean): Forget about witness-emacs.
224
225 2008-06-22 Glenn Morris <rgm@gnu.org>
226
227 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
228 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
229
230 2008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
231
232 * Makefile.in (PRECOMP): Remove.
233 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
234 (witness-emacs): Run `compile-first'.
235 (.el.elc): Use the new compile-onefile target.
236
237 2008-06-21 Kenichi Handa <handa@m17n.org>
238
239 * xftfont.c (xftfont_open): Handle QCembolden only when
240 FC_EMBOLDEN is defined.
241
242 2008-06-21 Andreas Schwab <schwab@suse.de>
243
244 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
245 (.el.elc): Likewise.
246
247 2008-06-21 Miles Bader <miles@gnu.org>
248
249 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
250 build dir, not the lisp source dir.
251
252 2008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
253
254 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
255 (bootstrapclean): Remove.
256 (.el.elc): New rule.
257 (PRECOMP): New var.
258 (../lisp/subdirs.el): Remove.
259 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
260 (witness-emacs): New target.
261 (mostlyclean): Remove witness-emacs as well.
262 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
263 Add witness-emacs dependency.
264
265 2008-06-20 Chong Yidong <cyd@stupidchicken.com>
266
267 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
268 defined by the font.
269
270 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
271
272 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
273 (bootstrap-clean): New target that keeps TAGS around.
274 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
275 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
276
277 2008-06-20 Jason Rumney <jasonr@gnu.org>
278
279 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
280 Remove obsolete font code.
281
282 * w32font.c (font_matches_spec): Use csb bitfield from font signature
283 to determine language support.
284
285 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
286
287 * sysdep.c (cfsetspeed): New fun extracted from the code.
288 (cfmakeraw): Move before first use.
289
290 2008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
291
292 * sysdep.c (cfmakeraw): Provide fallback implementation.
293 (serial_configure): Provide fallback implementation of cfsetspeed.
294
295 2008-06-20 Kenichi Handa <handa@m17n.org>
296
297 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
298 the pattern.
299
300 * fontset.c (fontset_from_font): Copy font_spec before changing
301 the elements.
302
303 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
304
305 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
306
307 * w32fns.c, xfnc.c (x_default_font_parameter): Only set `font-param'
308 for explicit `font' parameters.
309
310 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
311
312 2008-06-19 Kenichi Handa <handa@m17n.org>
313
314 * frame.c: Include <ctype.h>.
315 (x_set_font_backend): Allow spacing characters in the X resource
316 for FontBackend.
317
318 2008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
319
320 * w32fns.c, xfns.c (Qfont_param): New var.
321 (syms_of_w32fns): Initialize it.
322 (x_default_font_parameter): Record explicit `font' into
323 `font-parameter'.
324
325 2008-06-18 Kenichi Handa <handa@m17n.org>
326
327 * font.c (font_parse_xlfd): Fix previous change.
328 (font_parse_fcname): Don't use :fc-unknown-spec.
329 (FRAME_X_DISPLAY_INFO): Besure to have at least 1 pixel height.
330 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
331 (font_add_log): Prepend the driver name to the resulting fonts.
332
333 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
334 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
335 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
336
337 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
338 (QCembolden): New variables.
339 (syms_of_xftfont): DEFSYM them.
340 (xftfont_open): Call XftFontMatch. Don't trust the result of
341 XftTextExtents8 if the pixel_size is less than 5.
342
343 2008-06-18 Andreas Schwab <schwab@suse.de>
344
345 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
346 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
347
348 2008-06-18 Jason Rumney <jasonr@gnu.org>
349
350 * w32font.c (w32font_list, w32font_match): Add logging.
351
352 * w32uniscribe (uniscribe_list, uniscribe_match): Add logging.
353
354 2008-06-17 Chong Yidong <cyd@stupidchicken.com>
355
356 * font.c (font_parse_fcname): Store divider characters for
357 unknown-spec list. For known key symbols, intern using correct
358 symbol name.
359
360 2008-06-17 Kenichi Handa <handa@m17n.org>
361
362 * xfaces.c (realize_default_face): If the frame is not on window
363 system, set the fontset of face to nil.
364
365 2008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
366
367 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
368
369 2008-06-16 Juanma Barranquero <lekktu@gmail.com>
370
371 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
372 (build_font_name_from_vector): Delete externs.
373
374 * xfaces.c (struct font_name): Don't declare.
375
376 2008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
377
378 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
379
380 2008-06-16 Chong Yidong <cyd@stupidchicken.com>
381
382 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
383
384 2008-06-16 Juanma Barranquero <lekktu@gmail.com>
385
386 * font.c (Ffont_spec): Fix usage in docstring.
387 (Ffont_face_attributes): Doc fix.
388
389 2008-06-16 Andreas Schwab <schwab@suse.de>
390
391 * font.c (Ffont_face_attributes): Fix definition.
392
393 2008-06-16 Jason Rumney <jasonr@gnu.org>
394
395 * font.h (font_style_symbolic_from_value): Remove.
396
397 * font.c (font_style_symbolic_from_value): Remove.
398 (font_style_symbolic): Revert to pre 2008-06-13 version.
399
400 * w32font.c (w32_to_fc_weight): New function.
401 (w32font_full_name, logfont_to_fcname): Use it.
402
403 2008-06-16 Kenichi Handa <handa@m17n.org>
404
405 * font.c (font_check_object): Delete it.
406 (font_clear_cache): Check if a font-object is alive.
407 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
408 font-object to nil.
409 (font_close_object): Don't check FONT_CLOSE_OBJECT.
410 (font_at): Don't call font_check_object.
411 (Ffont_get): Return a symbol for :weight, :slant, and :width.
412
413 2008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
414
415 * puresize.h (BASE_PURESIZE): Increase to 1230000.
416
417 2008-06-16 Chong Yidong <cyd@stupidchicken.com>
418
419 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
420
421 2008-06-15 Chong Yidong <cyd@stupidchicken.com>
422
423 * font.c (font_parse_fcname): Only one decimal point.
424 (font_unparse_fcname): Handle data in family and foundry indices
425 as symbols, not strings.
426 (font_unparse_gtkname, Ffont_face_attributes): New functions.
427
428 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
429
430 * font.h (font_unparse_gtkname): Add prototype.
431
432 2008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
433
434 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
435
436 2008-06-15 Andreas Schwab <schwab@suse.de>
437
438 * font.c (font_update_drivers): Fix crash when no drivers match.
439
440 2008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
441
442 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
443 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
444
445 2008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
446
447 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
448
449 2008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
450
451 * process.c (Fserial_process_configure, Fprocess_send_eof):
452 Use EQ to compare Lisp_Objects.
453
454 2008-06-13 Jason Rumney <jasonr@gnu.org>
455
456 * w32fns.c (Fw32_select_font): Remove old font API function.
457
458 * w32font.c (logfont_to_fcname): New function.
459 (Fx_select_font): New font dialog function compatible with
460 GTK/fontconfig version.
461
462 * font.c (font_style_symbolic_from_value): New function.
463 (font_style_symbolic): Use it.
464
465 * font.h (font_style_symbolic_from_value): Declare new function.
466
467 2008-06-13 Juanma Barranquero <lekktu@gmail.com>
468
469 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
470 <font-width-table>: Fix typos in docstrings.
471
472 2008-06-13 Daniel Engeler <engeler@gmail.com>
473
474 These changes add serial port access.
475 * process.c: Add HAVE_SERIAL.
476 (Fdelete_process, Fprocess_status, Fset_process_buffer)
477 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
478 (list_processes_1, select_wrapper, Fstop_process)
479 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
480 (status_notify): Modify to handle serial processes.
481 [HAVE_SERIAL] (Fserial_process_configure)
482 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
483 New functions.
484 * process.h (struct Lisp_Process): Add `type'.
485 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
486 New functions.
487 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
488 serial ports.
489 (serial_open, serial_configure) New functions.
490 * w32.h: Add FILE_SERIAL.
491 (struct _child_process): Add ovl_read, ovl_write.
492
493 2008-06-13 Kenichi Handa <handa@m17n.org>
494
495 * dispextern.h (enum lface_attribute_index): New member
496 LFACE_FOUNDRY_INDEX.
497
498 * font.c (font_score): Delete arg alternate_families. Check only
499 weight, slant, width, and size. Ignore the difference of alias
500 style symbols.
501 (font_sort_entites): Adjust for the above change. Reflect the
502 order of font-driver to scores.
503 (font_list_entities): Don't check alternate_familes here.
504 (font_clear_prop): Handle foundry.
505 (font_update_lface): Don't parse "foundry-family" form here.
506 Handle FONT_FOUNDRY_INDEX.
507 (font_find_for_lface): Likewise. Handle alternate families here.
508 If registry is nil, try iso8859-1 and ascii-0.
509 (font_open_for_lface): Pay attention to size in ENTITY.
510 (font_open_by_name): Simplify by calling font_load_for_lface.
511 (free_font_driver_list): Delete it.
512 (font_update_drivers): Preserve the order of backends.
513 (syms_of_font): Setting of sort_shift_bits adjusted for the change
514 of font_score and font_sort_entites.
515 (font_update_sort_order): Likewise.
516
517 * xfaces.c (LFACE_FOUNDRY): New macro.
518 (check_lface_attrs): Check foundry.
519 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
520 (merge_face_vectors): Check foundry.
521 (merge_face_ref): Likewise.
522 (Finternal_set_lisp_face_attribute): Likewise.
523 (x_update_menu_appearance): Likewise.
524 (Finternal_get_lisp_face_attribute): Likewise.
525 (lface_hash): Likewise.
526 (lface_same_font_attributes_p): Likewise.
527 (x_supports_face_attributes_p): Likewise.
528 (tty_supports_face_attributes_p): Likewise.
529 (Finternal_set_alternative_font_family_alist): Intern strings.
530 (Finternal_set_alternative_font_registry_alist): Downcase strings.
531 (realize_default_face): Set LFACE_FOUNDRY (lface).
532
533 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
534 font-driver at first.
535
536 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
537
538 2008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
539
540 * lread.c (Fload): Use xfree, not free on saved_doc_string.
541
542 2008-06-12 Jim Meyering <meyering@redhat.com>
543
544 Make unexec_free handle NULL the same way free does.
545 * unexmacosx.c (unexec_free): Ignore a NULL argument.
546
547 2008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
548
549 * character.h (CHAR_TO_BYTE_SAFE): New macro.
550 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
551 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
552 (WEAK_ALIAS): Simplify.
553 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
554 when searching a unibyte buffer.
555
556 2008-06-12 Chong Yidong <cyd@stupidchicken.com>
557
558 * xfns.c (Fx_select_font): Rename from x-font-dialog.
559
560 2008-06-12 Juanma Barranquero <lekktu@gmail.com>
561
562 * w32font.c: Include ctype.h.
563
564 2008-06-11 Jason Rumney <jasonr@gnu.org>
565
566 * w32font.c (w32font_encode_char): Detect missing glyphs that are
567 misreported as space.
568 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
569 as aliases for registry iso10646-1.
570
571 2008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
572
573 * buffer.c (clone_per_buffer_values): Skip `name'.
574
575 2008-06-11 Chong Yidong <cyd@stupidchicken.com>
576
577 * font.c (font_parse_fcname): Fix last change; accept decimal
578 points in font size.
579
580 2008-06-10 Jason Rumney <jasonr@gnu.org>
581
582 * w32uniscribe.c (add_opentype_font_name_to_list):
583 Skip non unicode fonts.
584
585 2008-06-10 Chong Yidong <cyd@stupidchicken.com>
586
587 * xfns.c (Fx_font_dialog): New function.
588
589 * gtkutil.c (xg_dialog_response_cb): Rename from
590 xg_file_response_callback.
591 (pop_down_dialog): Rename from pop_down_file_dialog.
592 (xg_get_file_name): Callers changed.
593 (xg_get_font_name): New function.
594
595 * gtkutil.h (xg_get_font_name): Insert prototype.
596
597 2008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
598
599 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
600 x_underline_minimum_display_offset.
601 (syms_of_xdisp): Declare it here rather than in xterm.c.
602 * dispextern.h (underline_minimum_offset): Declare it.
603 * w32term.c (x_draw_glyph_string): Use it.
604 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
605 (syms_of_xterm): Don't declare it any more.
606 (x_draw_glyph_string): Adjust to the new name.
607
608 2008-06-10 David De La Harpe Golden <david@harpegolden.net> (tiny change)
609
610 * xterm.c (x_underline_minimum_display_offset): New var.
611 (x_draw_glyph_string): Use it.
612 (syms_of_xterm): Declare it.
613
614 2008-06-10 Chong Yidong <cyd@stupidchicken.com>
615
616 * font.c (font_parse_fcname): Accept GTK-style font names too.
617
618 2008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
619
620 * dired.c (file_name_completion): Don't return t if the match is exact
621 but with different capitalization.
622 * minibuf.c (Ftry_completion): Simplify.
623
624 * window.c (Vwindow_point_insertion_type): New var.
625 (set_window_buffer): Use it.
626 (syms_of_window): Init and export it to Lisp.
627
628 2008-06-10 Kenichi Handa <handa@m17n.org>
629
630 * font.h (font_intern_prop): Prototype adjusted.
631
632 * font.c (font_intern_prop): New arg force_symbol.
633 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
634 Adjust for the change of font_intern_prop.
635
636 * ftfont.c (ftfont_pattern_entity):
637 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
638 (w32_registry):
639 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
640 the change of font_intern_prop.
641
642 2008-06-09 Juanma Barranquero <lekktu@gmail.com>
643
644 * w32menu.c (digest_single_submenu): Declare extern.
645
646 2008-06-09 Jason Rumney <jasonr@gnu.org>
647
648 * w32term.c (x_make_frame_visible): Use alternate restore flags.
649
650 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
651 (parse_single_submenu): Remove.
652 (digest_single_submenu): Remove.
653 (syms_of_w32menu): Don't initialise variables that have moved
654 to menu.c.
655 (set_frame_menubar): Sync with version in xmenu.c.
656 (w32_menu_show): Sync with xmenu_show in xmenu.c.
657
658 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
659 Make static again.
660
661 2008-06-09 Jason Rumney <jasonr@gnu.org>
662
663 Changes to w32 files related to the move of common menu code
664 to menu.c on 2008-06-08 by Chong Yidong.
665
666 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
667 defs to w32gui.h.
668 (single_keymap_panes, push_menu_item, push_menu_pane):
669 Make globally visible.
670
671 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
672 (local_free, malloc_widget_value, free_widget_value)
673 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
674 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
675 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
676 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
677 (menu_items, menu_items_allocated, menu_items_used)
678 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
679 (init_menu_items, finish_menu_items, discard_menu_items)
680 (grow_menu_items, push_submenu_start, push_submenu_end)
681 (push_left_right_boundary, push_menu_pane, push_menu_item)
682 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
683 (free_menubar_widget_tree_value, parse_single_submenu)
684 (update_submenu_strings): Remove functions.
685 (xmalloc_widget_value): Remove and declare extern.
686
687 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
688 (OBJ1): Build it.
689
690 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
691 (local_heap, local_alloc, local_free, malloc_widget_value)
692 (free_widget_value): Define here.
693
694 2008-06-09 Kenichi Handa <handa@m17n.org>
695
696 * font.h (Qascii_0): Extern it.
697
698 * font.c (Qascii_0): New variable.
699 (syms_of_font): DEFSYM it.
700 (font_open_by_name): If the registry "iso8859-1" fails, try also
701 "ascii-0".
702
703 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
704
705 2008-06-08 Kenichi Handa <handa@m17n.org>
706
707 * .gdbinit (xfont): New command.
708
709 2008-06-08 Andreas Schwab <schwab@suse.de>
710
711 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
712 * Makefile.in (menu.o): Update dependencies.
713
714 * Makefile.in (obj): Always add menu.o.
715 * emacs.c (main): Always call syms_of_menu.
716 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
717
718 2008-06-08 Chong Yidong <cyd@stupidchicken.com>
719
720 * Makefile.in: Compile menu.c.
721
722 * lisp.h: Declare syms_of_menu.
723
724 * emacs.c (main): Call syms_of_menu.
725
726 * keyboard.h: Relocate platform-independent menu definitions from
727 xmenu.c.
728
729 * menu.c: New file. Relocate platform-independent menu
730 definitions from xmenu.c. Suggested by Adrian Robert.
731
732 * xmenu.c: Remove platform-independent menu definitions.
733 (menu_items menu_items_inuse, menu_items_allocated)
734 (menu_items_used, menu_items_n_panes)
735 (menu_items_submenu_depth): Move to keyboard.h.
736 (init_menu_items, finish_menu_items, unuse_menu_items)
737 (discard_menu_items, restore_menu_items, save_menu_items)
738 (grow_menu_items, push_submenu_start, push_submenu_end)
739 (push_left_right_boundary, push_menu_pane, push_menu_item)
740 (keymap_panes, single_keymap_panes, single_menu_item)
741 (list_of_panes, list_of_items, find_and_call_menu_selection)
742 (xmalloc_widget_value, free_menubar_widget_value_tree)
743 (parse_single_submenu, digest_single_submenu)
744 (update_submenu_strings): Move to menu.c.
745
746 2008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
747
748 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
749
750 2008-06-06 Miles Bader <miles@gnu.org>
751
752 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
753 face, not frame default.
754
755 2008-06-05 Martin Rudalics <rudalics@gmx.at>
756
757 * window.c (pop_up_windows, pop_up_frames)
758 (display_buffer_reuse_frames, Vpop_up_frame_function)
759 (Vdisplay_buffer_function, Veven_window_heights)
760 (Vspecial_display_buffer_names, Vspecial_display_regexps)
761 (Vspecial_display_function, Vsame_window_buffer_names)
762 (Vsame_window_regexps, split_height_threshold)
763 (Vsplit_window_preferred_function): Move those vars to window.el.
764 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
765 (Fdisplay_buffer): Move those functions to window.el.
766 (syms_of_window): Remove corresponding declarations.
767 (display_buffer): New function.
768 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
769 * dispnew.c (Flast_nonminibuf_frame): New function.
770 * buffer.c (Fpop_to_buffer): Move to window.el.
771
772 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
773
774 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
775
776 2008-06-05 Kenichi Handa <handa@m17n.org>
777
778 * coding.c (detect_coding): Fix previous change.
779 (detect_coding_system): Likewise.
780
781 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
782
783 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
784
785 * keymap.c (Vminibuffer_local_filename_must_match_map):
786 Rename from Vminibuffer_local_must_match_filename_map.
787 (syms_of_keymap):
788 * minibuf.c (Fcompleting_read): Adjust accordingly.
789 * commands.h: Rename declaration as well.
790
791 2008-06-05 Kenichi Handa <handa@m17n.org>
792
793 * font.c (Ffont_spec): Don't use font_parse_family_registry for
794 family name.
795 (Ffont_put): Likewise.
796
797 * fontset.c (fontset_find_font): Call font_open_for_lface with the
798 current font-spec.
799
800 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
801 is unspecified.
802
803 * xfaces.c (realize_x_face): If the font-related face attributes
804 are the same as those of default face, realize a new fontset from
805 default->fontset.
806 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
807
808 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
809
810 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
811 (move_it_in_display_line): New wrapper.
812
813 * window.c (window_scroll_pixel_based_preserve_x)
814 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
815 (window_scroll_pixel_based, window_scroll_line_based):
816 Use them to preserve column positions.
817 (syms_of_window): Initialize them.
818
819 * indent.c (Fvertical_motion): Extend first arg to allow passing an
820 (HPOS . VPOS) pair.
821
822 * dispextern.h (move_it_in_display_line): Declare.
823
824 2008-06-05 Juanma Barranquero <lekktu@gmail.com>
825
826 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
827 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
828 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
829
830 2008-06-04 Juanma Barranquero <lekktu@gmail.com>
831
832 * window.c (Fset_window_parameter): Doc fix.
833 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
834
835 2008-06-04 Joakim Verona <joakim@verona.se>
836
837 * window.h (struct window): Add new member window_parameters.
838
839 * window.c (Fwindow_parameters, Fwindow_parameter)
840 (Fset_window_parameter): New defuns.
841 (syms_of_window): Defsubr the new defuns.
842 (make_window): Initialize window_parameters to nil.
843
844 2008-06-04 John Paul Wallington <jpw@pobox.com>
845
846 * eval.c (Fdefmacro): Doc fix.
847
848 2008-06-04 Kenichi Handa <handa@m17n.org>
849
850 * coding.c (detect_coding): Fix handling of coding->head_ascii.
851 Be sure to call setup_coding_system when we find a proper coding system.
852 (detect_coding_system): Fix handling of coding->head_ascii.
853
854 2008-06-03 Andreas Schwab <schwab@suse.de>
855
856 * font.c (font_prop_validate_spacing): Fix last change.
857
858 2008-06-03 Kenichi Handa <handa@m17n.org>
859
860 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
861 (font_parse_fcname): Fix handling of unknown key.
862
863 * xfont.c (xfont_list): Try an alias.
864
865 * charset.c (char_charset): Return NULL if the arg charset_list is
866 specified and C doesn't belong to any of them.
867
868 2008-06-02 Chip Coldwell <coldwell@redhat.com>
869
870 * font.c (font_pixel_size): Don't take cdr of an integer.
871
872 2008-06-02 Jim Meyering <meyering@redhat.com>
873
874 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
875 * alloc.c (xfree): Return right away for a NULL arg.
876 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
877 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
878 * mac.c (create_apple_event_from_event_ref): Likewise.
879 (create_apple_event_from_drag_ref, cfstring_create_normalized):
880 Likewise.
881 * doprnt.c (doprnt1): Likewise.
882 * frame.c (frame): Likewise.
883 * keyboard.c (wipe_kboard): Likewise.
884 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
885 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
886 * term.c (tty_default_color_capabilities, maybe_fatal)
887 (delete_tty): Likewise.
888 * w16select.c (string): Likewise.
889 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
890 * w32bdf.c (w32_free_bdf_font): Likewise.
891 * w32fns.c (w32_unload_font): Likewise.
892 * w32font.c (w32font_close): Likewise.
893 * window.c (size_window): Likewise.
894 * xselect.c (receive_incremental_selection): Likewise.
895 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
896 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
897 * w32.c (stat): Likewise.
898
899 Remove useless if-before-free tests.
900 * editfns.c (Fset_time_zone_rule): Likewise.
901 * lread.c (nosuffix): Likewise.
902 * ralloc.c (get_bloc): Likewise.
903 * regex.c (reg_free): Likewise.
904 * xftfont.c (xftfont_open, xftfont_close): Likewise.
905 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
906 * xsmfns.c (smc_save_yourself_CB): Likewise.
907
908 2008-06-02 Kenichi Handa <handa@m17n.org>
909
910 * font.c (font_find_for_lface): Handle float font size.
911 (font_open_for_lface): Likewise.
912
913 * xfaces.c (x_supports_face_attributes_p): Check face->font before
914 comparing the properties.
915
916 2008-06-01 Jason Rumney <jasonr@gnu.org>
917
918 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
919 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
920 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
921 Don't add empty script list.
922 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
923
924 2008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
925
926 * Makefile.in (dot, dotdot): Remove, update users.
927 ".." has been used elsewhere in the file for a long time.
928 (LIBXT_STATIC): Remove conditional based on unused variable.
929
930 2008-06-01 Miles Bader <miles@gnu.org>
931
932 * xfaces.c (Vface_remapping_alist): New variable.
933 (syms_of_xfaces): Initialize it.
934 (enum named_merge_point_kind): New type.
935 (struct named_merge_point): Add `named_merge_point_kind' field.
936 (push_named_merge_point): Make cycle detection respect different
937 named-merge-point kinds.
938 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
939 Remove face-name alias resolution.
940 (lface_from_face_name): New definition using
941 `lface_from_face_name_no_resolve'.
942 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
943 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
944 (get_lface_attributes): New definition that layers face-remapping on
945 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
946 (lookup_basic_face): New function.
947 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
948 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
949 `get_lface_attributes'.
950 (face_at_buffer_position): Use `lookup_basic_face' to lookup
951 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
952 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
953
954 * xdisp.c (init_iterator): Pass base_face_id through
955 `lookup_basic_face' when we actually use it as a face-id.
956 (handle_single_display_prop): Use `lookup_basic_face' to lookup
957 DEFAULT_FACE_ID.
958
959 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
960 lookup the initial face-id.
961
962 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
963
964 2008-06-01 Juanma Barranquero <lekktu@gmail.com>
965
966 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
967 (Fremove_text_properties): Fix typos in docstrings.
968
969 2008-05-31 Kenichi Handa <handa@m17n.org>
970
971 * font.c (font_list_entities): Fix the car part of data to be
972 stored in the cache.
973
974 * ftfont.c (ftfont_font_format): Don't use strcasestr.
975
976 2008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
977
978 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
979 Add a `test' argument so another predicate than `equal' can be used.
980 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
981 (map_char_table): Remove unused vars `c' and `i'.
982 * lisp.h (Foptimize_char_table): Adjust declaration.
983 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
984
985 2008-05-30 Kenichi Handa <handa@m17n.org>
986
987 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
988 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
989 defined.
990
991 2008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
992
993 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
994 (Fmake_variable_frame_local): Disallow mixing buffer-local and
995 frame-local settings for the same variable.
996
997 2008-05-30 Kenichi Handa <handa@m17n.org>
998
999 * fontset.c (Ffont_info): Move to font.c.
1000 (syms_of_fontset): Delete defsubr of Sfont_info.
1001
1002 * font.c (font_style_to_value, font_score): Delete casting of the
1003 args to xstcasecmp.
1004 (register_font_driver): Increment num_font_drivers only when
1005 registering the driver globally.
1006 (Ffont_info): Move from fontset.c. Handle a font object too.
1007 (syms_of_font): Defsubr Sfont_info.
1008
1009 2008-05-29 Kenichi Handa <handa@m17n.org>
1010
1011 * coding.h (enum define_coding_utf8_arg_index): New enum.
1012 (enum coding_attr_index): Change coding_attr_utf_16_bom to
1013 coding_attr_utf_bom.
1014 (enum utf_bom_type): Rename from utf_16_bom_type.
1015 (struct utf_16_spec): Adjust for the above change.
1016 (struct coding_system): Add utf_8_bom in `spec' union.
1017
1018 * coding.c (CODING_UTF_8_BOM): New macro.
1019 (enum coding_category): Delete coding_category_utf_8, add
1020 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
1021 coding_category_utf_8_sig.
1022 (CATEGORY_MASK_UTF_8): Delete it.
1023 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
1024 (CATEGORY_MASK_UTF_8_SIG): New macros.
1025 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
1026 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
1027 CATEGORY_MASK_UTF_8_SIG.
1028 (CATEGORY_MASK_UTF_8): New macro.
1029 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
1030 (detect_coding_utf_8): Check BOM.
1031 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
1032 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
1033 (encode_coding_utf_16): Likewise.
1034 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
1035 (detect_coding, detect_coding_system): Handle utf-8-auto.
1036 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
1037 (syms_of_coding): Fix setting up of Vcoding_category_table.
1038
1039 2008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
1040
1041 * process.c (Faccept_process_output): If `millisec' is non-nil,
1042 `seconds' default to 0.
1043 (wait_reading_process_output): Also return non-nil if we read output
1044 from a non-running process.
1045
1046 2008-05-29 Jason Rumney <jasonr@gnu.org>
1047
1048 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
1049 `raster' specified.
1050 (add_font_entity_to_list): Allow non-opentype truetype fonts back
1051 in the uniscribe backend, but disallow any font that has no
1052 unicode subrange support.
1053
1054 2008-05-29 Juanma Barranquero <lekktu@gmail.com>
1055
1056 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
1057 Fix typos in docstrings.
1058
1059 2008-05-29 Kenichi Handa <handa@m17n.org>
1060
1061 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
1062 (Fx_family_fonts): Set frame correctly.
1063
1064 2008-05-28 Jason Rumney <jasonr@gnu.org>
1065
1066 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
1067
1068 2008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
1069
1070 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
1071 calling build_annotations.
1072
1073 2008-05-28 Juanma Barranquero <lekktu@gmail.com>
1074
1075 * coding.c (Fdecode_coding_region, Fencode_coding_region)
1076 (Fencode_coding_string):
1077 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
1078 <latin-extra-code-table>: Fix typos in docstrings.
1079 (syms_of_coding) <coding-system-alist>: Doc fix.
1080 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
1081
1082 2008-05-28 Kenichi Handa <handa@m17n.org>
1083
1084 * fontset.c (Ffont_info): Don't call font_close_object.
1085
1086 * font.c (font_parse_family_registry): Use Ffont_put to validate
1087 foundry and family.
1088 (font_delete_unmatched): Don't check spacing.
1089 (font_list_entities): Add spacing to the spec to list fonts.
1090
1091 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
1092 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
1093
1094 * coding.c (encode_coding_raw_text): Fix previous change.
1095 (encode_coding_object): When the dst_object is a buffer and is
1096 different from src_object, move gap to PT.
1097
1098 2008-05-27 Chong Yidong <cyd@stupidchicken.com>
1099
1100 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
1101
1102 2008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
1103
1104 * coding.c (encode_coding_raw_text): Set coding->produced_char for
1105 all branches. Compute it differently.
1106
1107 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
1108
1109 2008-05-27 Juanma Barranquero <lekktu@gmail.com>
1110
1111 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
1112 into "else if () ... else ...".
1113
1114 2008-05-27 Jason Rumney <jasonr@gnu.org>
1115
1116 * w32font.c (w32font_open_internal): Determine if glyph indices
1117 are likely to work here.
1118
1119 2008-05-27 Chong Yidong <cyd@stupidchicken.com>
1120
1121 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
1122 draw overlap glyphs with appropriate highlighting.
1123
1124 2008-05-27 Kenichi Handa <handa@m17n.org>
1125
1126 * xfont.c (xfont_open): Fix calculation of font->average_width.
1127
1128 2008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
1129
1130 * casefiddle.c (casify_object): Try to guess better whether the
1131 argument is a byte or a char.
1132
1133 2008-05-26 Andreas Schwab <schwab@suse.de>
1134
1135 * xselect.c (x_reply_selection_request): Properly handle format == 32.
1136 Always send multiples of format size.
1137
1138 * xterm.c (x_set_frame_alpha): Fix type mismatch.
1139
1140 2008-05-26 Jason Rumney <jasonr@gnu.org>
1141
1142 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
1143 (compute_metrics): Don't set failure if we just cleared the cache.
1144 (w32_weight_table): Remove unused variable.
1145 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
1146 backwards compatibility.
1147
1148 2008-05-25 Kenichi Handa <handa@m17n.org>
1149
1150 * w32term.c (x_draw_glyph_string):
1151 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
1152
1153 * xfaces.c: Delete unused function prototypes.
1154 (xstrlwr, font_frame): Delete them.
1155 (clear_face_cache): Delete unused variable.
1156
1157 * xftfont.c (xftfont_open): Delete unused variable.
1158 If underline_thickness is not 1, adjust underline_position.
1159
1160 * ftxfont.c (ftxfont_open): Delete unused variable.
1161
1162 * fontset.c (face_for_char): Optimize for the case of no charset
1163 property.
1164
1165 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
1166 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
1167 (otf_open, font_otf_capability, generate_otf_features)
1168 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
1169 Comment out by surrounding "#if 0" and "#endif" for the moment.
1170 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
1171 (syms_of_font): Codes for accessing above commented out.
1172
1173 2008-05-24 Eli Zaretskii <eliz@gnu.org>
1174
1175 * w32proc.c: Include dispextern.h.
1176
1177 * w32.c: Include dispextern.h.
1178
1179 2008-05-23 Juanma Barranquero <lekktu@gmail.com>
1180
1181 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
1182 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
1183 Fix typos in docstrings.
1184
1185 2008-05-23 Jason Rumney <jasonr@gnu.org>
1186
1187 * xsmfns.c: Remove includes that are already included by config.h.
1188
1189 2008-05-23 Kenichi Handa <handa@m17n.org>
1190
1191 * charset.c (Qemacs, charset_emacs): New variables.
1192 (char_charset): Fix for non-Unicode characters.
1193 (syms_of_charset): Define charset_emacs.
1194
1195 * w32term.c (x_draw_glyph_string): Be sure to update
1196 s->underline_thickness and s->underline_position. Be sure to draw
1197 underline within the current line area.
1198
1199 * xterm.c (x_draw_glyph_string): Be sure to update
1200 s->underline_thickness and s->underline_position. Be sure to draw
1201 underline within the current line area.
1202
1203 * fontset.c: Delete unused variables and add casting for char *
1204 throughout the file.
1205 (fontset_font): Try the fallback fonts of the current fontset
1206 before consulting the default fontset.
1207
1208 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
1209
1210 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
1211
1212 2008-05-22 Jason Rumney <jasonr@gnu.org>
1213
1214 * font.c: Don't include strings.h.
1215
1216 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
1217
1218 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
1219 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
1220 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
1221 to call xstrcasecmp.
1222
1223 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
1224
1225 * fontset.c (fs_query_fontset): Use xstrcasecmp.
1226
1227 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
1228
1229 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
1230
1231 2008-05-22 Kenichi Handa <handa@m17n.org>
1232
1233 * puresize.h (BASE_PURESIZE): Increase to 1220000.
1234
1235 * font.c (font_prop_validate_style): Adjust for the format
1236 change of font_style_table.
1237
1238 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
1239 two args.
1240
1241 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
1242 two args.
1243
1244 2008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
1245
1246 * minibuf.c (keys_of_minibuf): Delete.
1247 * lisp.h (keys_of_minibuf): Delete.
1248 * emacs.c (main): Don't call keys_of_minibuf.
1249
1250 2008-05-22 Kenichi Handa <handa@m17n.org>
1251
1252 * ftfont.c (ftfont_resolve_generic_family): Rename from
1253 ftfont_list_generic_family. Return a single family for each
1254 generic family.
1255 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
1256 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
1257 Call font_add_log.
1258 (ftfont_match): Call font_add_log.
1259
1260 * font.h (Ffont_xlfd_name): EXFUN adjusted.
1261 (FONT_DEBUG): Define it.
1262 (font_add_log): Extern it.
1263 (font_assert): Rename from xassert.
1264
1265 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
1266 (xfont_list_family): Call font_add_log.
1267 (xfont_match): Likewise.
1268 (memq_no_quit): Delete.
1269
1270 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
1271 call of Ffont_xlfd_name.
1272
1273 * xfaces.c (struct table_entry, slant_table, weight_table)
1274 (swidth_table): Move to font.c.
1275
1276 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
1277 xassert are changed to font_assert. Delete many unused variables.
1278 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
1279 New variables.
1280 (struct table_entry): Move from xfaces.c and modified.
1281 (weight_table, slant_table, width_table): Move from xfaces.c and
1282 contents adjusted for the change of struct table_entry.
1283 (font_style_to_value, font_style_symbolic): Adjust for the
1284 format change of font_style_table.
1285 (font_parse_family_registry): Don't overwrite existing foundry and
1286 family of font_spec.
1287 (font_score): Fix calculation of diff for sizes.
1288 (font_sort_entites): Call font_add_log.
1289 (font_delete_unmatched): Return a newly created list.
1290 (font_list_entities): Fix previous change. Call font_add_log.
1291 (font_matching_entity, font_open_entity, font_close_entity):
1292 Call font_add_log.
1293 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
1294 (Finternal_set_font_style_table): Delete.
1295 (BUILD_STYLE_TABLE): New macro.
1296 (build_style_table): New function.
1297 (Vfont_log, font_log_env_checked): New variables.
1298 (font_add_log): New function.
1299 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
1300 Declare Lisp variables "font-weight-table", "font-slant-table",
1301 "font-width-table", and "font-log". Initialize font_style_table.
1302
1303 2008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
1304
1305 * xterm.c (x_set_frame_alpha): Move declarations before statements.
1306
1307 2008-05-21 Seiji Zenitani <zenitani@mac.com>
1308 Ryo Yoshitake <ryo@shiftmode.net>
1309
1310 * frame.c (Qalpha): Add a new frame parameter `alpha'.
1311 (Vframe_alpha_lower_limit): New variable.
1312 (x_set_alpha): New function.
1313
1314 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
1315
1316 * xfns.c (x-create-frame, Qalpha):
1317 Initialize the frame parameter `alpha'.
1318 * xterm.c (OPAQUE, OPACITY): New.
1319 (x_set_frame_alpha): New function.
1320 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
1321
1322 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
1323 * w32fns.c (w32_frame_parm_handlers): Likewise.
1324
1325 2008-05-20 Jason Rumney <jasonr@gnu.org>
1326
1327 * w32font.c (add_font_entity_to_list): Don't add non-opentype
1328 truetype fonts to opentype list.
1329
1330 2008-05-20 Juanma Barranquero <lekktu@gmail.com>
1331
1332 * fontset.c (Ffontset_info): Doc fix.
1333 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
1334 <ignore-relative-composition>: Fix typos in docstrings.
1335
1336 * font.c (syms-of-font) <font-encoding-alist>:
1337 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
1338 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
1339 (Ffont_otf_alternates): Doc fixes.
1340
1341 2008-05-20 Kenichi Handa <handa@m17n.org>
1342
1343 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
1344 font.h through out the file.
1345 (FONT_DRIVERS): Rename from FONTOBJ.
1346 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
1347 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
1348
1349 * emacs.c (main): Call syms_of_font unconditionally.
1350
1351 * font.h (find_font_encoding): Extern it.
1352
1353 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
1354 fontset.c.
1355 (font_pixel_size)[! HAVE_WINDOW_SYSTEM]: Return 1.
1356 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
1357 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
1358 only when HAVE_WINDOW_SYSTEM is defined.
1359 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
1360 when HAVE_WINDOW_SYSTEM is defined.
1361
1362 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
1363 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
1364
1365 * xfaces.c: Include font.h unconditionally.
1366 (merge_face_ref, merge_face_vectors)
1367 (Finternal_set_lisp_face_attribute): Cancel the previous change.
1368
1369 2008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
1370
1371 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
1372 indirect_variable.
1373 * eval.c (lisp_indirect_variable): New fun.
1374 (Fuser_variable_p): Use it.
1375
1376 2008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
1377
1378 * lisp.h (indirect_variable):
1379 * data.c (indirect_variable, let_shadows_buffer_binding_p):
1380 Use Lisp_Symbol pointers rather than Lisp_Object.
1381 Adjust callers.
1382 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
1383 To this end, change calling-convention.
1384
1385 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
1386 if some non-hidden buffers are selected by string&pred.
1387
1388 2008-05-19 Chong Yidong <cyd@stupidchicken.com>
1389
1390 * process.c (wait_reading_process_output): Always check status
1391 when in batch mode.
1392
1393 2008-05-19 Kenichi Handa <handa@m17n.org>
1394
1395 * font.c (font_list_entities): Fix handling of cache.
1396 (font_matching_entity): Likewise.
1397
1398 * ftfont.c (cs_iso8859_1): Delete.
1399 (ft_face_cache): New variable.
1400 (struct ftfont_info): New member fc_charset_idx.
1401 (ftfont_build_basic_charsets): Delete.
1402 (fc_charset_table): New variable.
1403 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
1404 . FC_CHARSET_IDX) as :font-entity property in the font entity.
1405 Callers changed.
1406 (ftfont_lookup_cache, ftfont_get_charset): New functions.
1407 (ftfont_spec_pattern): New argument fc_charset_idx.
1408 Check registry more rigidly. Change callers.
1409 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
1410 change of :font-entity property of the font.
1411
1412 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
1413 property of the font.
1414
1415 2008-05-18 Juanma Barranquero <lekktu@gmail.com>
1416
1417 * coding.c (Fcoding_system_p): Rename argument to match docstring.
1418 (Funencodable_char_position, Fcheck_coding_systems_region)
1419 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
1420 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
1421 (Ffind_operation_coding_system, Fset_coding_system_priority)
1422 (Fcoding_system_eol_type): Doc fixes.
1423
1424 2008-05-17 Glenn Morris <rgm@gnu.org>
1425
1426 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
1427
1428 2008-05-16 Eli Zaretskii <eliz@gnu.org>
1429
1430 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
1431 and st_gid.
1432
1433 * frame.c (Fdelete_frame): Don't call font_update_drivers if
1434 HAVE_WINDOW_SYSTEM is not defined.
1435
1436 * xfaces.c (merge_face_ref, merge_face_vectors)
1437 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
1438 HAVE_WINDOW_SYSTEM is defined.
1439 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
1440
1441 2008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
1442
1443 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
1444
1445 2008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1446
1447 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
1448
1449 2008-05-15 Kenichi Handa <handa@m17n.org>
1450
1451 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
1452 preference.
1453
1454 2008-05-15 Glenn Morris <rgm@gnu.org>
1455
1456 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
1457
1458 2008-05-15 Chong Yidong <cyd@stupidchicken.com>
1459
1460 * fns.c (init_fns): Don't initialize weak_hash_tables here.
1461 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
1462
1463 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
1464
1465 2008-05-15 Kenichi Handa <handa@m17n.org>
1466
1467 * ftfont.c (ftfont_list): Downcase family name to check generic
1468 families.
1469
1470 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
1471 font-spec for QCfont value.
1472
1473 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
1474 buffer. Check the return value of it.
1475
1476 2008-05-14 Jason Rumney <jasonr@gnu.org>
1477
1478 * w32term.c (w32_get_glyph_overhangs): Remove.
1479 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
1480
1481 2008-05-14 Kenichi Handa <handa@m17n.org>
1482
1483 * font.c (font_prop_validate): Make nil a valid value.
1484 (font_clear_cache): Check if the cached vector of entities is nil
1485 or not.
1486
1487 2008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1488
1489 * emacs.c (main_thread): Conditionalize on
1490 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
1491 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
1492
1493 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
1494 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
1495 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
1496
1497 2008-05-14 Kenichi Handa <handa@m17n.org>
1498
1499 * coding.c (detect_coding_iso_2022): Ignore a coding category that
1500 has no corresponding coding system.
1501
1502 2008-05-14 Jason Rumney <jasonr@gnu.org>
1503
1504 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
1505
1506 * w32font.h (w32font_open_internal): Update declaration.
1507
1508 * w32font.c (w32font_open_internal): Change last argument from
1509 w32font_info struct to font object. Fill in font object from
1510 font_entity. Get Outline metrics if possible. Use them to
1511 calculate underline position and thickness. Use xlfd name as name
1512 property. Don't set codepage.
1513 (w32font_open): Pass font_object to w32font_open_internal. Don't
1514 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
1515 (w32font_draw): Use s->font.
1516 (clear_cached_metrics): Don't clear non-existent blocks.
1517
1518 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
1519 font was not found.
1520 (x_draw_glyph_string): Use underline position and thickness from font.
1521
1522 * w32uniscribe.c (uniscribe_open): Pass font_object to
1523 w32font_open_internal.
1524
1525 2008-05-14 Kenichi Handa <handa@m17n.org>
1526
1527 These changes are to delete all legacy font-handling codes, and
1528 make Emacs use only font-backends.
1529
1530 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
1531 (frame.o, image.o, print.o): Depend on $(FONTSRC).
1532
1533 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
1534
1535 * charset.h (Vcharset_non_preferred_head)
1536 (Vcurrent_iso639_language): Extern them.
1537
1538 * charset.c (Vcharset_non_preferred_head): New variable.
1539 (Vcurrent_iso639_language): New variable.
1540 (syms_of_charset): Declare it as a Lisp variable.
1541 (char_charset): Don't check non preferred charsets. As a last
1542 resort, return charset_unicode.
1543 (Fset_charset_priority): Update Vcharset_non_preferred_head.
1544
1545 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
1546 conditionals. Don't check enable_font_backend. Delete all codes
1547 used only when USE_FONT_BACKEND is not defined.
1548
1549 * dispextern.h (struct glyph_string): Change type of `font' to
1550 `struct font *'.
1551 (struct glyph_string): New member underline_position and
1552 underline_thickness.
1553 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
1554 (struct face): Change type of `font' to `struct font *'. Remove
1555 members `font_name', `font_info_id'.
1556 (per_char_metric, encode_char): Delete externs.
1557 (calc_pixel_width_or_height): Adjust the prototype.
1558
1559 * emacs.c (enable_font_backend): Delete extern.
1560 (main): Don't set enable_font_backend. Don't check the command
1561 line argument "-disable-font-backend".
1562
1563 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
1564 (enum font_property_index): New members FONT_DPI_INDEX,
1565 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
1566 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
1567 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
1568 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
1569 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
1570 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
1571 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
1572 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
1573 (struct font_spec, struct font_entity): New structs.
1574 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
1575 (struct font): Many members from old "struct font_info" moved to
1576 here. Members font and entity deleted.
1577 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
1578 the new font-related objects.
1579 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
1580 (CHECK_FONT_GET_OBJECT): Likewise.
1581 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
1582 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
1583 (struct font_driver): New members case_sensitive anc check. Type
1584 of the member list and open changed.
1585 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
1586 (font_symbolic_width, font_find_object, font_get_spec)
1587 (font_set_lface_from_name): Delete extern.
1588 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
1589
1590 * font.c: Include <strings.h>.
1591 (enable_font_backend): Delete it.
1592 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
1593 (CHECK_VALIDATE_FONT_SPEC): Delete it.
1594 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
1595 (null_string): Delete it.
1596 (null_vector): Make it static.
1597 (font_family_alist): Delete it.
1598 (Qnormal): Extern it.
1599 (QCextra, QClanguage): Delete it.
1600 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
1601 (font_make_spec, font_make_entity, font_make_object)
1602 (font_intern_prop): Renamed from intern_downcase. Don't downcase
1603 the string. Callers changed.
1604 (font_pixel_size): Adjusted for the format change of font-related
1605 objects.
1606 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
1607 (font_style_to_value, font_style_symbolic): New function.
1608 (build_font_family_alist): Delete it.
1609 (font_registry_charsets): Use Fassoc_string instead of
1610 assq_no_quit.
1611 (font_prop_validate_symbol): Don't return null_string.
1612 (font_prop_validate_style): Adjusted for the change of
1613 style-related values in a font vector.
1614 (font_property_table): Delete entries for QClanguage and
1615 QCantialias, add entries for QCavgwidth.
1616 (get_font_prop_index): Delete the 2nd argument FROM.
1617 (font_prop_validate): Arguments changed.
1618 (font_put_extra): Adjusted for the change of font-related objects.
1619 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
1620 (font_parse_fcname, font_unparse_fcname)
1621 (font_prepare_composition): Likewise.
1622 (font_parse_family_registry): Renamed from font_merge_old_spec.
1623 (otf_open): Delete the 1st arg entity.
1624 (font_otf_capability): Adjusted for the above change.
1625 (font_score): New arg alternate_families. Adjusted for the change
1626 of font-related objects.
1627 (font_sort_entites): New arg best_only.
1628 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
1629 Delete them.
1630 (font_match_p): Check alternate families.
1631 (font_find_object): Delete it.
1632 (font_check_object): New function.
1633 (font_clear_cache): Adjusted for the change of font-related objects.
1634 (font_delete_unmatched): New arg.
1635 (font_list_entities): Call font_driver->list with a spec that
1636 doesn't specify style-related properties.
1637 (font_matching_entity): Arguments changed. Caller changed.
1638 (font_open_entity): Adjusted for the change of font-related objects.
1639 (font_close_object, font_has_char, font_encode_char)
1640 (font_get_name, font_get_spec): Likewise.
1641 (font_spec_from_name, font_clear_prop, font_update_lface):
1642 New functions.
1643 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
1644 (font_prepare_for_face, font_done_for_face, font_open_by_name)
1645 (font_at): Adjusted for the change of font-related objects.
1646 (font_range): New function.
1647 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
1648 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
1649 (Fcopy_font_spec, Fmerge_font_spec): New function.
1650 (Ffont_family_list): Renamed from list-families.
1651 (Finternal_set_font_style_table): Arguments changed.
1652 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
1653 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
1654 change of font-related objects.
1655 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
1656
1657 * fontset.h (struct font_info): Delete it. Most members go to
1658 struct font.
1659 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
1660 (enum FONT_SPEC_INDEX): Delete it.
1661 (font_info, list_fonts_func, load_font_func, query_font_func)
1662 (set_frame_fontset_func, find_ccl_program_func)
1663 (get_font_repertory_func, new_fontset_from_font_name): Delete
1664 externs.
1665 (fontset_from_font_name): Extern it.
1666 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
1667 (FONT_INFO_FROM_FACE): Deleted.
1668 (face_for_font): Adjust prototype.
1669
1670 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
1671 conditionals. Don't check enable_font_backend. Delete all codes
1672 used only when USE_FONT_BACKEND is not defined.
1673 (get_font_info_func, list_font_func, load_font_func)
1674 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
1675 (get_font_repertory_func): Delete them.
1676 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
1677 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
1678 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
1679 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
1680 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
1681 (fontset_compare_rfontdef): New function.
1682 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
1683 ront-defs by qsort. Adjusted for the change of font-group vector.
1684 (load_font_get_repertory): Deleted.
1685 (fontset_find_font): Use new macros to ref/set elements of
1686 font-def and rfont-def.
1687 (fontset_font): Fix the timing of remembering that no font for C.
1688 (free_face_fontset): Do nothing if the face has no fontset.
1689 (face_suitable_for_char_p): Use new macros to ref/set elements of
1690 rfont-def.
1691 (face_for_char): Likewise. Call face_for_char with font_object.
1692 (fs_load_font): Delete. Delete #pragma surrounding it.
1693 (fs_query_fontset): Use strcasecmp instead of strcmp.
1694 (generate_ascii_font_name): Adjusted for the format change of
1695 font-spec.
1696 (Fset_fontset_font): Likewise. Use new macros to set elements of
1697 font-def.
1698 (Fnew_fontset): Use font_unparse_xlfd to generate
1699 FONTSET_ASCII (fontset).
1700 (new_fontset_from_font_name): Deleted.
1701 (fontset_from_font): Renamed from new_fontset_from_font. Check if
1702 a fontset is already created for the font. FIx updating of
1703 Vfontset_alias_alist.
1704 (fontset_ascii_font): Deleted.
1705 (Ffont_info): Adjusted for the format change of font-spec.
1706 (Finternal_char_font): Likewise.
1707 (Ffontset_info): Likewise.
1708 (syms_of_fontset): Don't check load_font_func.
1709
1710 * fns.c (internal_equal): Handle PREV_FONT.
1711
1712 * frame.h: Delete USE_FONT_BACKEND conditional.
1713
1714 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
1715 conditionals. Don't check enable_font_backend. Delete all codes
1716 used only when USE_FONT_BACKEND is not defined.
1717 (x_set_font): Call x_new_font, not x_new_fontset2.
1718 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
1719 already set for the frame.
1720
1721 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
1722 a font-entity by font_make_entity. Use font_intern_prop instead
1723 of intern_downcase. Use FONT_SET_STYLE to set a style-related
1724 font property. If a font is scalable, set avgwidth property to 0.
1725 Set font-entity property by font_put_extra.
1726 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
1727 (ffont_driver): Adjusted for the change of struct font_driver.
1728 (ftfont_spec_pattern): New function.
1729 (ftfont_list): Return a list, not vector.
1730 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
1731 (ftfont_list_family): Don't downcase names.
1732 (ftfont_free_entity): Deleted.
1733 (ftfont_open): Return a font-ojbect. Adjusted for the change of
1734 struct font. Get underline_thickness and underline_position from
1735 font property. Don't update dpyinfo->smallest_font_height and
1736 dpyinfo->smallest_char_width.
1737 (ftfont_close): Don't free `struct font'.
1738 (ftfont_has_char): Adjusted for the format change of font-entity.
1739 (ftfont_encode_char, ftfont_text_extents): Likewise.
1740
1741 * ftxfont.c (ftxfont_list): Return a list, not vector.
1742 (ftxfont_open): Return a font-ojbect. Adjusted for the change of
1743 struct font. Get underline_thickness and underline_position from
1744 font property. Don't update dpyinfo->smallest_font_height and
1745 dpyinfo->smallest_char_width.
1746 (ftxfont_close): Don't decrese FRAME_X_DISPLAY_INFO (f)->n_fonts.
1747 (ftxfont_draw): Adjusted for the change of struct font.
1748
1749 * image.c (image_ascent): Don't include "charset.h". Include
1750 "character.h" and "font.h".
1751
1752 * lisp.h (enum pvec_type): New member PREV_FONT.
1753 (Fassoc_string): EXFUN it.
1754
1755 * print.c: Include font.h.
1756 (print_object): Handle font-related objects.
1757
1758 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
1759 conditionals. Don't check enable_font_backend. Delete all codes
1760 used only when USE_FONT_BACKEND is not defined.
1761 (handle_auto_composed_prop): Do nothing if it->f is not on a
1762 window system. Check how many following characters can be
1763 displayed by the same font.
1764 (calc_pixel_width_or_height): Type of the 4th arg is changed to
1765 'struct font *'.
1766 (get_char_face_and_encoding): Assign the whole encoding task to
1767 the `encode-char' method of a font driver.
1768 (fill_composite_glyph_string): Adjusted for the change of `struct
1769 face' and `struct glyph_string'.
1770 (fill_glyph_string): Likewise.
1771 (get_per_char_metric): Arguments changed.
1772 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
1773 and `struct glyph_string'.
1774 (produce_stretch_glyph, calc_line_height_property)
1775 (x_produce_glyphs): Likewise.
1776
1777 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
1778 conditionals. Don't check enable_font_backend. Delete all codes
1779 used only when USE_FONT_BACKEND is not defined. Use
1780 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
1781 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
1782 (Qp): Extern them.
1783 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
1784 Deleted.
1785 (struct font_name): Deleted.
1786 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
1787 (compare_fonts_by_sort_order): New function.
1788 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
1789 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
1790 Deleted.
1791 (Fx_family_fonts): Use font_list_entities, and sort fonts by
1792 compare_fonts_by_sort_order.
1793 (Fx_font_family_list): Call Ffont_family_list.
1794 (face_numeric_value, face_numeric_weight, face_numeric_slant)
1795 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
1796 (face_symbolic_slant, face_symbolic_swidth)
1797 (split_font_name_into_vector, build_font_name_from_vector)
1798 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
1799 (font_rescale_ratio, split_font_name, build_font_name)
1800 (free_font_names, sort_fonts, x_face_list_fonts)
1801 (face_font_available_p, sorted_font_list, cmp_font_names)
1802 (font_list_1, concat_font_list, font_list, remove_duplicates):
1803 Deleted.
1804 (Fx_list_fonts): Use Ffont_list.
1805 (LFACE_AVGWIDTH): Deleted.
1806 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
1807 by FONTP.
1808 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
1809 (set_lface_from_font_name): Delete it.
1810 (set_lface_from_font): Renamed from
1811 set_lface_from_font_and_fontset. Caller changed. Don't set
1812 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
1813 for face.
1814 (merge_face_vectors): Copy font-spec if necessary.
1815 Clear properties of the font-spec if necessary.
1816 (merge_face_ref): Clear properties of the font-spec if necessary.
1817 (Finternal_set_lisp_face_attribute): Likewise.
1818 (set_font_frame_param): Use font_load_for_lface to load a
1819 font-object, and call Fmodify_frame_parameters with it.
1820 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
1821 font name by Ffont_xlfd_name.
1822 (Finternal_lisp_face_attribute_values): Don't check QCweight,
1823 QCslant, and QCwidth.
1824 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
1825 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
1826 Compare fonts by EQ.
1827 (lookup_non_ascii_face): Deleted.
1828 (face_for_font): The 2nd argument changed.
1829 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
1830 Check atomic font properties by case insensitive.
1831 (realize_non_ascii_face): Set face->overstrike correctly.
1832 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
1833 (dump_realized_face): Get font name from
1834 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
1835
1836 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
1837 conditionals. Don't check enable_font_backend. Delete all codes
1838 used only when USE_FONT_BACKEND is not defined.
1839 (xic_create_xfontset): Original code deleted and renamed from
1840 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
1841 (x_make_gc): Don't set GCFont in GCs.
1842 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
1843 opened by "fixed".
1844 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
1845 find_ccl_program_func, query_font_func, set_frame_fontset_func,
1846 get_font_repertory_func.
1847
1848 * xfont.c: Include <stdlib.h> and "ccl.h".
1849 (struct xfont_info): New structure.
1850 (xfont_query_font): Deleted.
1851 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
1852 moved from xterm.c.
1853 (xfont_driver): Adjusted for the change of struct font_driver.
1854 (compare_font_names): New function.
1855 (xfont_list_pattern): Sort font names case insensitively. Make
1856 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
1857 (xfont_list): Return a list, not vector.
1858 (xfont_match): If the font doesn't have QCname property, generate
1859 a name from the other font properties.
1860 (xfont_open): Return a font-ojbect. Adjusted for the change of
1861 struct font. Get underline_thickness and underline_position from
1862 font property. Don't update dpyinfo->smallest_font_height and
1863 dpyinfo->smallest_char_width.
1864 (xfont_close): Don't free struct font.
1865 (xfont_prepare_face): Adjusted for the change of struct font.
1866 (xfont_done_face): Deleted.
1867 (xfont_has_char): Adjusted for the change of struct font.
1868 (xfont_encode_char, xfont_draw): Likewise.
1869 (xfont_check): New function.
1870
1871 * xftfont.c (xftfont_list): Adjusted for the change of `list'
1872 callback function.
1873 (xftfont_match): Adjusted for the fontmat change of font-entity.
1874 (xftfont_open): Adjusted for the format change of font-entity and
1875 font-object. Adjusted for the change of struct font. Return a
1876 font-object. Don't update dpyinfo->smallest_font_height and
1877 dpyinfo->smallest_char_width.
1878 (xftfont_close): Block input while calling XftFontClose.
1879 (xftfont_prepare_face): Don't block input while calling
1880 xftfont_get_colors. Adjusted for the change of struct font.
1881 (xftfont_shape): Return value of error case fixed.
1882
1883 * xrdb.c (x_load_resources): Don't setup a fontset resource.
1884
1885 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
1886 conditionals.
1887 (FONT_WIDTH): Return (f)->max_width.
1888 (struct x_display_info): Delete member `font'.
1889 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
1890 (x_find_ccl_program, x_get_font_repertory): Delete externs.
1891 (struct x_output): Change type of `font' to `struct font *'.
1892
1893 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
1894 conditionals. Don't check enable_font_backend. Delete all codes
1895 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
1896 (x_per_char_metric, x_encode_char): Deleted.
1897 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
1898 (x_compute_glyph_string_overhangs): Adjusted for the change of
1899 `struct face'.
1900 (x_draw_glyph_string_foreground)
1901 (x_draw_composite_glyph_string_foreground): Likewise.
1902 (x_draw_glyph_string): Likewise. Use font->underline_position and
1903 font->underline_thickness.
1904 (x_new_font): Renamed from x_new_fontset2.
1905 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
1906 (x_check_font): Call `check' method of a font driver.
1907 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
1908 (x_query_font, x_get_font_repertory): Deleted.
1909 (x_find_ccl_program): Renamed and moved to xfont.c.
1910 (x_redisplay_interface): Adjusted for the change of `struct
1911 redisplay_interface'.
1912
1913 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
1914 conditionals. Don't check enable_font_backend. Delete all codes
1915 used only when USE_FONT_BACKEND is not defined. Surround non-used
1916 code by "#ifdef OLD_FONT" and "endif".
1917 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
1918
1919 * w32font.h (struct w32font_info): New member.
1920 (FONT_COMPAT): New macro.
1921 (w32font_open_internal): Prototype adjusted.
1922
1923 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
1924 OLD_FONT" and "endif".
1925
1926 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
1927 conditionals. Don't check enable_font_backend. Delete all codes
1928 used only when USE_FONT_BACKEND is not defined.
1929 (w32font_open): Return a font-object. Make a font-object by
1930 font_make_object. Adjusted for the change of struct w32font_info.
1931 (w32font_close): Don't free struct font. Adjusted for the change
1932 of struct w32font_info.
1933 (w32font_encode_char, w32font_text_extents, w32font_draw):
1934 Adjusted for the change of struct w32font_info.
1935 (w32font_draw): Likewise.
1936 (w32font_list_internal): Return a list, not vector.
1937 (w32font_open_internal): Change the 4th arg to font-object.
1938 Adjusted for the change of struct w32font_info and font-object format.
1939 (add_font_name_to_list): Don't downcase names.
1940 (w32_enumfont_pattern_entity): Make a font-entity by
1941 font_make_entity. Adjusted for the format change of font-entity.
1942 Use FONT_SET_STYLE to set a style-related font property. If a
1943 font is scalable, set avgwidth property to 0. Set font-entity
1944 property by font_put_extra.
1945 (font_matches_spec): Adjusted for the format change of font-entity.
1946 (w32_weight_table, w32_decode_weight): New variables.
1947 (w32_encode_weight): New function.
1948 (fill_in_logfont): Adjusted for the format change of font-spec.
1949 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
1950 weight value.
1951 (w32font_driver): Adjusted for the change of struct font_driver.
1952
1953 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
1954 conditionals. Don't check enable_font_backend. Surround non-used
1955 code by "#ifdef OLD_FONT" and "endif".
1956 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
1957 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
1958
1959 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
1960 conditionals. Don't check enable_font_backend. Delete all codes
1961 used only when USE_FONT_BACKEND is not defined. Surround non-used
1962 code by "#ifdef OLD_FONT" and "endif".
1963
1964 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
1965 (uniscribe_open): Return value changed to font-object.
1966 Adjusted for the format change of font-object.
1967 (uniscribe_otf_capability): Adjusted for the change of struct font.
1968 (add_opentype_font_name_to_list): Don't downcase names.
1969 (uniscribe_font_driver): Adjusted for the change of struct
1970 font_driver.
1971
1972 2008-05-13 Chong Yidong <cyd@stupidchicken.com>
1973
1974 * dispnew.c (update_frame_1): Check if tty output is still valid
1975 before flushing it.
1976
1977 2008-05-13 Jan Djärv <jan.h.d@swipnet.se>
1978
1979 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
1980 to Gtk+ menus.
1981
1982 2008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
1983
1984 * dired.c (file_name_completion): Tweak the code so as to always do it
1985 in a single pass. Tighten the scope of some variables.
1986
1987 * dired.c (Qdefault_directory): New var.
1988 (file_name_completion): Use it instead of Fexpand_file_name.
1989 (syms_of_dired): Initialize it.
1990
1991 2008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
1992
1993 * fileio.c (double_dollars): Remove dead code.
1994
1995 2008-05-10 Eli Zaretskii <eliz@gnu.org>
1996
1997 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
1998 Mention w32-get-true-file-attributes in doc string.
1999
2000 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
2001
2002 2008-05-09 Glenn Morris <rgm@gnu.org>
2003
2004 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
2005 2008-04-23.
2006
2007 2008-05-09 Eli Zaretskii <eliz@gnu.org>
2008
2009 Support for reporting owner and group of each file on MS-Windows:
2010 * dired.c (stat_uname, stat_gname): New functions, with special
2011 implementation for w32.
2012 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
2013
2014 * w32.c: Rename the_passwd_* to dflt_passwd_*.
2015 (dflt_group_name): New static variable.
2016 (dflt_group): Rename from the_group.
2017 (init_user_info): Init dflt_group fields. Get user's group name
2018 from LookupAccountSid.
2019 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
2020 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
2021 New initialization states.
2022 (globals_of_w32): Initialize them to zero. Initialize the default
2023 group name to "None".
2024 (GetFileSecurity_Name): New global var, the name of the function
2025 to call for GetFileSecurity.
2026 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
2027 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
2028 (get_file_security, get_security_descriptor_owner)
2029 (get_security_descriptor_group, is_valid_sid)
2030 (get_file_security_desc, get_rid, get_name_and_id)
2031 (get_file_owner_and_group): New functions.
2032 (stat): Use get_file_security_desc and get_file_owner_and_group to
2033 report the owner and primary group of each file. Don't ignore the
2034 high 32 bits of file's size, now that st_size is 64-bit wide.
2035 Fix test when to get true file attributes.
2036 (init_user_info): Use get_rid instead of equivalent inline code.
2037 (fstat): Don't ignore the high 32 bits of file's size.
2038
2039 2008-05-09 Chong Yidong <cyd@stupidchicken.com>
2040
2041 * image.c (png_load): Use correct bit-depth for setting background
2042 color.
2043
2044 2008-05-08 Eli Zaretskii <eliz@gnu.org>
2045
2046 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
2047 epa-hook.elc.
2048
2049 2008-05-08 Juanma Barranquero <lekktu@gmail.com>
2050
2051 * font.c (Ffont_match_p): Don't use `iff' in docstring.
2052
2053 2008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
2054
2055 * macfns.c (Fx_create_frame): Make a copy of frame parameters
2056 because the original parameters are in pure storage now.
2057 (mac_window): Remove unused params. Update callers.
2058
2059 2008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
2060
2061 * lread.c (substitute_object_recurse): Use lower-level primitives.
2062 Don't signal errors when traversing sub-char-tables.
2063 Don't loop over all the possible characters when traversing char-tables.
2064
2065 * print.c (print_preprocess): Add sub-char-tables to the print-table,
2066 just like we do in print.c.
2067
2068 2008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
2069
2070 * minibuf.c (Ftry_completion): Remove code left over from when we used
2071 scmp instead of Fcompare_strings.
2072
2073 2008-05-04 Juanma Barranquero <lekktu@gmail.com>
2074
2075 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
2076
2077 2008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2078
2079 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
2080 Create bitmap context in native byte order.
2081
2082 * macterm.c (XDrawLine)
2083 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
2084 context in native byte order.
2085
2086 2008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2087
2088 * config.in: Regenerate.
2089
2090 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
2091 New definitions for Image I/O support.
2092 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
2093 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
2094 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
2095 (mac_data_provider_release_data, image_load_image_io)
2096 [USE_MAC_IMAGE_IO]: New functions.
2097 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
2098 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
2099 (init_image_func_pointer) [MAC_OSX]: Remove function.
2100 (image_load_quartz2d) [MAC_OSX]: Check availability of
2101 CGImageCreateWithPNGDataProvider at compile time.
2102 Use lowercase `false' for boolean constant.
2103 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
2104 Use image_load_image_io.
2105 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
2106 Don't check MyCGImageCreateWithPNGDataProvider.
2107 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
2108 Don't call init_image_func_pointer.
2109
2110 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
2111
2112 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
2113 Make variable non-static.
2114 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
2115 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
2116
2117 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
2118 (RED_FROM_ULONG): Mask off higher bits.
2119 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
2120
2121 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
2122 Include AvailabilityMacros.h.
2123 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
2124 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
2125
2126 2008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
2127
2128 * chartab.c (Fset_char_table_range): If range is t, really set all
2129 chars to that value.
2130
2131 2008-05-03 Eli Zaretskii <eliz@gnu.org>
2132
2133 * dired.c (Ffile_attributes): Don't allow the device number become
2134 negative.
2135
2136 2008-05-02 Daiki Ueno <ueno@unixuser.org>
2137
2138 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
2139
2140 2008-05-02 Juri Linkov <juri@jurta.org>
2141
2142 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
2143 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
2144 DEFAULT argument as a list of default values in docstrings.
2145
2146 2008-05-01 Chong Yidong <cyd@stupidchicken.com>
2147
2148 * puresize.h (BASE_PURESIZE): Increase to 1210000.
2149
2150 2008-05-01 Martin Rudalics <rudalics@gmx.at>
2151
2152 * dispnew.c (change_frame_size_1): Preserve small windows when
2153 shrinking frames by calling set_window_height|width with third
2154 arg 2.
2155
2156 * window.h (struct window): Replace field too_small_ok by field
2157 resize_proportionally.
2158
2159 * window.c (make_window): Initialize resize_proportionally.
2160 (enlarge_window): Temporarily set resize_proportionally to make
2161 sure that shrink_windows does scale the window proportionally.
2162 (shrink_windows): When window has resize_proportionally set try
2163 to shrink it proportionally by stealing from other windows.
2164 (struct saved_window, Fset_window_configuration)
2165 (compare_window_configurations): Handle resize_proportionally.
2166 (WINDOW_TOTAL_SIZE): New macro.
2167 (window_min_size, shrink_windows, size_window): Use it.
2168 (check_min_window_sizes): Remove. Invalid values of
2169 window-min-height|width are handled by window_min_size_2 now.
2170 (size_window, Fsplit_window, enlarge_window)
2171 (adjust_window_trailing_edge, grow_mini_window): Don't call
2172 check_min_window_sizes.
2173 (window_min_size_2, window_min_size_1, window_min_size):
2174 New argument safe_p for retrieving "safe" minimum sizes.
2175 (Fdisplay_buffer, Fsplit_window, enlarge_window)
2176 (adjust_window_trailing_edge, grow_mini_window):
2177 Adjust arguments of window_min_size... functions.
2178 (shrink_windows): Argument min_size removed. New argument
2179 safe_p allows shrinking windows to their safe minimum sizes.
2180 Calculate minimum size and decide whether a window shall be
2181 deleted for each window individually.
2182 (size_window): When nodelete_p equals 2, tell shrink_windows to
2183 delete windows only if their new minimum size is no more safe.
2184 (shrink_window_lowest_first): Call window_min_size_1 to make
2185 sure to preserve modeline of bottom-most window when resizing
2186 the minibuffer.
2187 (Fset_window_configuration, Fcurrent_window_configuration)
2188 (compare_window_configurations): Do not handle
2189 window-min-height|width any more.
2190 (syms_of_window): Clarify window-min-height|width doc-strings.
2191
2192 2008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
2193
2194 * dired.c (file_name_completion): Fix up the encoding/decoding issue
2195 some more. Copy some of the code from Ftry_completions.
2196 Remove special case code that dates back to initial revision when the
2197 slash was only added when necessary and that can't trigger nowadays.
2198
2199 2008-04-27 Kenichi Handa <handa@m17n.org>
2200
2201 * font.c (font_prop_validate): Signal `error' instead of `font'.
2202
2203 2008-04-29 Jason Rumney <jasonr@gnu.org>
2204
2205 * w32fns.c (Fw32_battery_status): New defun.
2206 (syms_of_w32fns): Defsubr it.
2207
2208 2008-04-28 Andreas Schwab <schwab@suse.de>
2209
2210 * dired.c (file_name_completion): Fix another mixing of encoded
2211 and decoded names.
2212
2213 2008-04-28 Juanma Barranquero <lekktu@gmail.com>
2214
2215 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
2216
2217 2008-04-27 Juanma Barranquero <lekktu@gmail.com>
2218
2219 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
2220
2221 2008-04-27 Andreas Schwab <schwab@suse.de>
2222
2223 * dired.c (file_name_completion): Fix inappropriate mixing of
2224 encoded and decoded names.
2225
2226 * xterm.c (XTread_socket): Fix use of uninitialized variable.
2227
2228 * puresize.h (BASE_PURESIZE): Increase to 1200000.
2229
2230 2008-04-26 Eli Zaretskii <eliz@gnu.org>
2231
2232 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
2233 2008-03-31, it's not needed anymore with `struct stat' definition
2234 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
2235 for the same reasons.
2236
2237 2008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
2238
2239 * m/sparc.h: Additional redefinitions for GNU/Linux.
2240
2241 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2242
2243 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
2244 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
2245 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
2246 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
2247 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
2248 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
2249 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
2250 Likewise.
2251
2252 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
2253 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
2254 (mac_ax_number_of_characters): Add externs.
2255 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
2256 [USE_MAC_TSM]: Likewise.
2257 (mac_handle_text_input_event) [MAC_OSX]:
2258 Handle kEventTextInputOffsetToPos for no active input area case.
2259 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
2260 (mac_handle_document_access_event)
2261 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
2262 (install_application_handler) [MAC_OSX]: Register handlers for
2263 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
2264 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
2265 Register mac_handle_document_access_event.
2266
2267 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
2268 Make functions non-static.
2269
2270 2008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
2271
2272 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
2273 (read_file_name_completion_ignore_case, insert_default_directory)
2274 (Qdefault_directory): Move to minibuffer.el.
2275 (Fread_file_name): Call the new `read-file-name' instead.
2276
2277 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2278
2279 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
2280 Make function non-static.
2281 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
2282 Remove function.
2283 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
2284 Move to mactoolbox.c.
2285 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
2286
2287 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
2288 (mac_rect_make): New macro.
2289
2290 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
2291 instead of float.
2292 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
2293 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
2294 (XSetBackground) [USE_CG_DRAWING]: Likewise.
2295 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
2296 CGRectMake.
2297 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
2298 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
2299 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
2300 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
2301 instead of WindowRef in argument type.
2302 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
2303 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
2304 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
2305 instead of DISPLAY. All uses changed.
2306 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
2307 (x_calc_absolute_position): Simplify so as not to use
2308 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
2309
2310 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
2311 instead of WindowRef in argument type.
2312 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
2313 [TARGET_API_MAC_CARBON]: Remove externs.
2314 (create_apple_event, mac_event_parameters_to_lisp)
2315 [TARGET_API_MAC_CARBON]: Add externs.
2316
2317 * mactoolbox.c (Vmac_ts_script_language_on_focus)
2318 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
2319 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
2320 is clicked.
2321 (x_activate_menubar): Remove extern for saved_menu_event_location.
2322 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
2323 Move from mac.c.
2324
2325 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2326
2327 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
2328 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
2329
2330 2008-04-23 Jason Rumney <jasonr@gnu.org>
2331
2332 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
2333 attributes only for local files.
2334
2335 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
2336 default to Qlocal.
2337
2338 2008-04-22 Juri Linkov <juri@jurta.org>
2339
2340 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
2341 read-buffer-to-switch instead of using the letter "B".
2342
2343 2008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
2344
2345 * fileio.c (Qdefault_directory): New variable.
2346 (Fread_file_name): Use it to pass `dir' to the completion functions.
2347
2348 2008-04-20 Chong Yidong <cyd@stupidchicken.com>
2349
2350 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
2351
2352 2008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
2353
2354 * keyboard.c (Vpre_help_message): Remove.
2355 (show_help_echo): Remove default C code.
2356
2357 * dired.c (directory_files_internal, file_name_completion):
2358 Only call ENCODE_FILE if the string is indeed decoded.
2359
2360 2008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
2361
2362 * Makefile.in (TOOLKIT_DEFINES): Remove.
2363 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
2364
2365 2008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2366
2367 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
2368 (mactoolbox.o): New target.
2369
2370 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
2371 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
2372
2373 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
2374 Use mac_set_frame_window_background instead of XSetWindowBackground.
2375 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
2376 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
2377 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
2378 instead of SetWindowTitleWithCFString.
2379 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
2380 Move function to mactoolbox.c.
2381 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
2382 Use mac_set_window_modified instead of SetWindowModified.
2383 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
2384 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
2385 (Fx_focus_frame): Use mac_front_non_floating_window instead of
2386 FrontNonFloatingWindow. Use mac_activate_window instead of
2387 ActivateWindow. Use mac_active_non_floating_window instead of
2388 ActiveNonFloatingWindow.
2389 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
2390 Use mac_show_hourglass and mac_hide_hourglass.
2391 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
2392 instead of GetGlobalMouse.
2393 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
2394 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
2395 Use mac_bring_window_to_front instead of BringToFront.
2396 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
2397 mactoolbox.c.
2398 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
2399 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
2400 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
2401 mactoolbox.c.
2402
2403 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
2404 (XtPointer): Move typedef from macmenu.c.
2405 (enum button_type): Move enum from macmenu.c.
2406 (widget_value): Move typedef from macmenu.c.
2407 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
2408 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
2409 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
2410 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
2411 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
2412 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
2413 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
2414 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
2415 (Selection): Move typedef from macselect.c.
2416 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
2417 macterm.c.
2418 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
2419 (mac_is_window_collapsed, mac_bring_window_to_front)
2420 (mac_send_window_behind, mac_hide_window, mac_show_window)
2421 (mac_collapse_window, mac_front_non_floating_window)
2422 (mac_active_non_floating_window, mac_activate_window)
2423 (mac_move_window_structure, mac_move_window, mac_size_window)
2424 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
2425
2426 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
2427 (enum mac_menu_kind): Move enum to mactoolbox.c.
2428 (min_menu_id): Move variable to mactoolbox.c.
2429 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
2430 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
2431 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
2432 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
2433 [TARGET_API_MAC_CARBON]: Likewise.
2434 (XtPointer): Move typedef to macgui.h.
2435 (enum button_type): Move enum to macgui.h.
2436 (widget_value): Move typedef to macgui.h.
2437 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
2438 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
2439 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
2440 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
2441 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
2442 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
2443 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
2444 (popup_activated_flag): Make variable non-static.
2445 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
2446 (add_menu_item, fill_menu, dispose_menus):
2447 Move functions to mactoolbox.c.
2448 (restore_show_help_function, menu_target_item_handler)
2449 (install_menu_target_item_handler, mac_handle_dialog_event)
2450 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
2451 [TARGET_API_MAC_CARBON]: Likewise.
2452 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
2453 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
2454 (find_and_call_menu_selection, name_is_separator): Make function
2455 non-static.
2456 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
2457 to mactoolbox.c.
2458 (set_frame_menubar): Don't call install_menu_quit_handler.
2459 (menu_item_selection): New variable.
2460 (mac_menu_show): Use create_and_show_popup_menu.
2461 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
2462 selection but set variable menu_item_selection. All uses changed.
2463 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
2464 Call install_menu_quit_handler. Move to mactoolbox.c.
2465
2466 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
2467 (Selection): Move typedef to macgui.h.
2468 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
2469 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
2470 Make variables non-static.
2471 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
2472 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
2473 Make functions non-static.
2474 (Vmac_service_selection) [MAC_OSX]: Likewise.
2475 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
2476 (mac_valid_selection_target_p, mac_clear_selection)
2477 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
2478 (mac_put_selection_value, mac_selection_has_target_p)
2479 (mac_get_selection_value, mac_get_selection_target_list)
2480 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
2481 Move functions to mactoolbox.c.
2482 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
2483 Likewise.
2484 (copy_scrap_flavor_data, mac_handle_service_event)
2485 (install_service_handler) [MAC_OSX]: Likewise.
2486 (syms_of_macselect) <Vmac_dnd_known_types>:
2487 Use mac_dnd_default_known_types.
2488
2489 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
2490 Move to mactoolbox.c.
2491 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
2492 (Fx_selection_owner_p): Add EXFUN.
2493 (install_window_handler, remove_window_handler, XSetWindowBackground):
2494 Remove externs.
2495 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
2496 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
2497 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
2498 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
2499 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
2500 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
2501 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
2502 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
2503 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
2504 (create_and_show_popup_menu, mac_get_selection_from_symbol)
2505 (mac_valid_selection_target_p, mac_clear_selection)
2506 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
2507 (mac_put_selection_value, mac_selection_has_target_p)
2508 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
2509 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
2510 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
2511 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
2512 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
2513 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
2514 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
2515 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
2516 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
2517
2518 * mactoolbox.c: New file.
2519
2520 2008-04-18 Jason Rumney <jasonr@gnu.org>
2521
2522 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
2523
2524 2008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
2525
2526 * character.c (Fmultibyte_char_to_unibyte):
2527 Return latin1 chars unchanged.
2528
2529 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
2530 relocated if it points to `name'.
2531
2532 2008-04-17 Kenichi Handa <handa@m17n.org>
2533
2534 * data.c (Faset): Allow setting a multibyte character in an
2535 ASCII-only unibyte string.
2536
2537 * lisp.h (STRING_SET_MULTIBYTE): New macro.
2538
2539 2008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
2540
2541 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
2542 done in config.h.
2543
2544 2008-04-16 Juanma Barranquero <lekktu@gmail.com>
2545
2546 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
2547 (Fchar_direction): Add usage in the docstring.
2548
2549 2008-04-15 Chong Yidong <cyd@stupidchicken.com>
2550
2551 * keyboard.c (read_key_sequence): Remove always-true checks.
2552
2553 2008-04-14 Jason Rumney <jasonr@gnu.org>
2554
2555 * w32font.c (w32font_open_internal): Set max_bounds.descent in
2556 compatibility struct, for better underline positioning.
2557
2558 2008-04-13 David Hansen <david.hansen@gmx.net>
2559
2560 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
2561 string.
2562
2563 2008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
2564
2565 * m/hp800.h (XUINT, XSET): Remove.
2566
2567 2008-04-12 Juanma Barranquero <lekktu@gmail.com>
2568
2569 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
2570 previous change.
2571
2572 2008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
2573
2574 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
2575 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
2576
2577 2008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
2578
2579 * keymap.h (map_keymap_canonical): Declare.
2580 * xmenu.c (single_keymap_panes): Use it.
2581
2582 2008-04-11 Glenn Morris <rgm@gnu.org>
2583
2584 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
2585 set the target's value to that of the alias.
2586
2587 2008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
2588
2589 * term.c (set_tty_color_mode): Left over typo.
2590
2591 2008-04-10 Michael Albinus <michael.albinus@gmx.de>
2592
2593 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
2594 only after check for file name handler functions. Signal, when
2595 native functionality is not supported.
2596 (syms_of_fileio): Declare it unconditionally.
2597
2598 2008-04-10 Jason Rumney <jasonr@gnu.org>
2599
2600 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
2601 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
2602
2603 * w32.c (logon_network_drive): Also logon to remote drives that
2604 are mapped to drive letters.
2605
2606 2008-04-10 Glenn Morris <rgm@gnu.org>
2607
2608 * xdisp.c (truncate-partial-width-windows): Doc fix.
2609
2610 2008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
2611
2612 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
2613 Move functions to minibuffer.el.
2614 (syms_of_fileio): Don't declare them.
2615
2616 2008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
2617
2618 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
2619 (syms_of_minibuf): Remove its initialization.
2620
2621 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
2622
2623 2008-04-09 Juanma Barranquero <lekktu@gmail.com>
2624
2625 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
2626
2627 2008-04-09 Jason Rumney <jasonr@gnu.org>
2628
2629 * makefile.w32-in (distclean): Delete makefile too.
2630 (maintainer-clean): New target.
2631
2632 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
2633
2634 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
2635 for new font backend and composite cases.
2636
2637 2008-04-09 Jan Djärv <jan.h.d@swipnet.se>
2638
2639 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
2640 Most of the code moved to run_timers.
2641 (do_pending_atimers): Call run_timers.
2642 (run_timers): New function.
2643
2644 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
2645 run atimers.
2646
2647 * process.c (wait_reading_process_output): The same as above.
2648
2649 2008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
2650
2651 * minibuf.c (last_exact_completion): Remove variable.
2652 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
2653 (complete_and_exit_1, complete_and_exit_2)
2654 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
2655 (Fdisplay_completion_list, display_completion_list_1)
2656 (Fminibuffer_completion_help, Fself_insert_and_exit)
2657 (Fexit_minibuffer, Fminibuffer_message): Move functions to
2658 minibuffer.el.
2659 (syms_of_minibuf): Remove corresponding initializations.
2660
2661 * keyboard.c (Qdeactivate_mark): New var.
2662 (command_loop_1): Use it to call `deactivate-mark'.
2663 (syms_of_keyboard): Initialize it.
2664
2665 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
2666 to another frame.
2667 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
2668 Don't call set_tty_color_mode.
2669 (store_frame_param): Reset previous_frame rather than call
2670 set_tty_color_mode.
2671 * term.c (set_tty_color_mode): Rewrite.
2672 * dispextern.h (set_tty_color_mode): New type.
2673 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
2674
2675 2008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
2676
2677 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
2678 for generic chars, which do not exist any more in emacs-unicode.
2679
2680 2008-04-08 Michael Albinus <michael.albinus@gmx.de>
2681
2682 * coding.c (detect_coding_emacs_mule)
2683 (Ffind_operation_coding_system): Fix typo.
2684
2685 2008-04-08 Jason Rumney <jasonr@gnu.org>
2686
2687 * w32uniscribe.c (SNAME): Extract only symbol name.
2688
2689 * w32font.h (struct w32_metric_cache): New struct.
2690 (w32font_info): Use it.
2691 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
2692 (CACHE_BLOCKSIZE): New constants.
2693
2694 * w32font.c (Qja, Qko, Qzh): New symbols.
2695 (syms_of_w32font): Initialise them.
2696 (font_matches_spec): Use them to filter by language.
2697 (recompute_cached_metrics): Remove function.
2698 (compute_metrics, clear_cached_metrics): New functions.
2699 (w32font_encode_char): Use them to manage metric cache.
2700 (w32font_text_extents): Cache metrics for all glyphs on demand.
2701 Delay converting glyph indices to WORD until needed.
2702 (w32font_open_internal): Initialize metric cache to empty.
2703 (registry_to_w32_charset): Charset should always be a symbol.
2704 (fill_in_logfont, list_all_matching_fonts): Family should
2705 always be a symbol.
2706
2707 2008-04-06 Jason Rumney <jasonr@gnu.org>
2708
2709 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
2710 Give up if glyph indices not supported. Use uniscribe obtained
2711 ABC widths for individual metrics. Map glyph clusters back to
2712 characters using fClusterStart flag. Return number of glyphs
2713 produced, not chars processed.
2714 (uniscribe_shape): Map char at FROM to current glyph.
2715
2716 2008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2717
2718 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
2719 Use SetMenuItemHierarchicalMenu.
2720
2721 2008-04-05 Jason Rumney <jasonr@gnu.org>
2722
2723 * image.c (pbm_load): Allow color values up to 65535.
2724 Throw an error if max_color_idx is outside the supported range.
2725 Report an error when image size is invalid.
2726 Read two bytes at a time when raw images have max_color_idx above 255.
2727
2728 2008-04-05 Eli Zaretskii <eliz@gnu.org>
2729
2730 * w32.c (readdir): If FindFirstFile/FindNextFile return in
2731 cFileName a file name that includes `?' characters, use the 8+3
2732 alias in cAlternateFileName instead.
2733
2734 2008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
2735
2736 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
2737 append "CCL: Quitted" when the CCL program is quitted.
2738 (setup_ccl_program): Initialize ccl->quit_silently to zero.
2739
2740 * ccl.h (struct ccl_program): New member quit_silently.
2741
2742 2008-04-05 Chong Yidong <cyd@stupidchicken.com>
2743
2744 * search.c (compile_pattern_1): Treat non-nil and non-string of
2745 search-spaces-regexp as nil.
2746
2747 * minibuf.c (Fassoc_string): Tweak docstring.
2748
2749 2008-04-05 Eli Zaretskii <eliz@gnu.org>
2750
2751 * dired.c (Ffile_attributes): Support inode numbers wider than 32
2752 bits. Remove ugly WINDOWSNT-specific kludge introduced on
2753 2008-03-14 to force inode be positive.
2754
2755 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
2756 _S_* ones, since we now use our own sys/stat.h.
2757 (stat, fstat): Don't mangle the inode number.
2758 (init_user_info): Don't restrict UID and GID to 0-60000 range.
2759
2760 2008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
2761
2762 * frame.h (struct frame): Give one more bit to `visible' since we use
2763 values larger than 1 to indicate obscured frames on ttys.
2764
2765 * keymap.c (Qkeymap_canonicalize): New var.
2766 (Fmap_keymap_internal): New fun.
2767 (describe_map): Use keymap-canonicalize.
2768
2769 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
2770 (Fundo_boundary): Set them.
2771 (syms_of_undo): Initialize them.
2772 (record_point): Use them instead of last_point_position*.
2773 (last_undo_buffer): Change type.
2774
2775 2008-04-04 Jason Rumney <jasonr@gnu.org>
2776
2777 * w32font.c (w32font_text_extents): Use font's ascent and descent.
2778 (recompute_cached_metrics): Don't set ascent and descent per char.
2779
2780 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
2781 (uniscribe_check_otf): Add GC protection before consing.
2782 Rearrange loop for counting features.
2783
2784 2008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
2785
2786 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
2787 buffer with byte-size of source buffer.
2788
2789 2008-04-03 Chong Yidong <cyd@stupidchicken.com>
2790
2791 * callint.c (Fcall_interactively): Handle temporary region even
2792 when shift-select-mode is off.
2793
2794 2008-04-03 Jason Rumney <jasonr@gnu.org>
2795
2796 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
2797
2798 2008-04-03 Kenichi Handa <handa@m17n.org>
2799
2800 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
2801 (CATEGORY_MASK_UTF_16): Likewise.
2802 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
2803 binary file.
2804 (detect_coding): Add null-byte detection for a binary file.
2805 (detect_coding_system): Likewise.
2806
2807 2008-04-03 Jason Rumney <jasonr@gnu.org>
2808
2809 * w32uniscribe.c: New file.
2810
2811 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
2812
2813 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
2814
2815 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
2816 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
2817 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
2818 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
2819 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
2820 (Qphonetic): New symbols.
2821 (syms_of_w32font): Initialize them.
2822 (font_supported_scripts): Use them.
2823 (w32font_list_family): List all charsets.
2824 (w32font_text_extents, recompute_cached_metrics): Fix metric
2825 calculations.
2826 (w32_enumfont_pattern_entity): Make full_type a DWORD.
2827 Give opentype fonts their own format.
2828 (font_matches_spec): New arguments backend and logfont.
2829 Handle :otf spec for uniscribe backend.
2830 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
2831 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
2832
2833 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
2834 font backend.
2835 (globals_of_w32fns): Initialize uniscribe font backend.
2836
2837 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
2838 dependencies.
2839 (w32uniscribe.$(O)): New file to build.
2840 (FONT_OBJ): Include w32uniscribe.$(O).
2841 (LIBS): Add uniscribe libraries.
2842
2843 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
2844
2845 2008-04-02 Chong Yidong <cyd@stupidchicken.com>
2846
2847 * callint.c (Vshift_select_mode): New var.
2848 (Finteractive): Document new ^ spec.
2849 (Fcall_interactively): Call handle-shift-selection if the ^ spec
2850 is present.
2851
2852 * keyboard.c (Vthis_command_keys_shift_translated): New var.
2853 (command_loop_1): Avoid running the direct display versions of
2854 forward-char and backward-char if shift-selection may occur.
2855 (read_key_sequence): Set Vthis_command_keys_shift_translated if
2856 shift-translation takes place.
2857
2858 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
2859 avoid clobbering by define-minor-mode.
2860
2861 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
2862 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
2863
2864 * syntax.c (Fforward_word): Add ^ interactive spec.
2865
2866 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
2867 (Fscroll_right): Add ^ interactive spec.
2868
2869 2008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
2870
2871 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
2872
2873 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
2874
2875 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
2876
2877 2008-03-31 Juri Linkov <juri@jurta.org>
2878
2879 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
2880
2881 2008-03-30 Jan Djärv <jan.h.d@swipnet.se>
2882
2883 * gtkutil.c (xg_set_geometry): Fix indentation.
2884 (xg_resize_outer_widget): Remove.
2885 (x_wm_size_hint_off): Fix indentation.
2886 (xg_frame_set_char_size): Call flush_and_sync after
2887 gtk_window_resize.
2888 (x_wm_set_size_hint): Pass NULL as geometry window to
2889 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
2890 Add menu bar and tool bar height to base height.
2891 (xg_update_frame_menubar, free_frame_menubar)
2892 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
2893 (update_frame_tool_bar, free_frame_tool_bar):
2894 Change xg_resize_outer_widget to xg_frame_set_char_size.
2895
2896 2008-03-30 Michael Albinus <michael.albinus@gmx.de>
2897
2898 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
2899 (Fdbus_call_method): New parameter TIMEOUT.
2900 (dbus-send-signal): Optimize UNGCPRO call.
2901
2902 2008-03-29 Juri Linkov <juri@jurta.org>
2903
2904 * window.c (Fdisplay_buffer): Move call to
2905 Vsplit_window_preferred_function out of conditions that check
2906 if window is eligible for vertical splitting.
2907 When Vsplit_window_preferred_function is non-nil, call it and use
2908 its non-nil return value as window. Otherwise, continue doing
2909 vertical splitting using Fsplit_window with arg horflag=nil.
2910 (syms_of_window) <Vsplit_window_preferred_function>: Change the
2911 default value from `split-window' to nil.
2912
2913 2008-03-29 Juri Linkov <juri@jurta.org>
2914
2915 * callint.c (Fcall_interactively): Revert 2008-03-16 change
2916 for interactive code letters 'b' and 'B'.
2917
2918 2008-03-29 Eli Zaretskii <eliz@gnu.org>
2919
2920 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
2921 multibyte string.
2922
2923 2008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
2924
2925 * keyboard.c (pending_funcalls): New var.
2926 (timer_check): Run it.
2927 (syms_of_keyboard): Initialize it.
2928 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
2929 (Vdelete_terminal_functions): New vars.
2930 (syms_of_terminal): Initialize them.
2931 (Fdelete_terminal): Run delete-terminal-functions.
2932 * xdisp.c (safe_eval): Rewrite.
2933 (safe_call2): New fun.
2934 * frame.c (Qdelete_frame_functions): New var.
2935 (syms_of_frame): Initialize it.
2936 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
2937 * lisp.h (safe_call2, pending_funcalls): Declare.
2938
2939 2008-03-28 Andreas Schwab <schwab@suse.de>
2940
2941 * indent.c (Fmove_to_column): Move declaration before statements.
2942
2943 2008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
2944
2945 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
2946 (struct frame): Use bit fields for boolean vars.
2947
2948 * process.c (server_accept_connection): Simplify naming.
2949 (emacs_get_tty_pgrp): Use SDATA.
2950
2951 * coding.c (decode_coding_object): Fix last change.
2952
2953 2008-03-27 Jason Rumney <jasonr@gnu.org>
2954
2955 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
2956
2957 2008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
2958
2959 * charset.c (Fdefine_charset_internal): Change the way of
2960 registering charsets in Vcharset_order_list.
2961 (syms_of_charset): Make the charset `eight-bit' supplementary.
2962
2963 2008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
2964
2965 * regex.c (EXTEND_BUFFER): Change order of pointer addition
2966 operations, to avoid having the difference between pointers
2967 overflow.
2968
2969 2008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
2970
2971 * indent.c (check_display_width): New fun.
2972 (scan_for_column): Use it.
2973
2974 * data.c (syms_of_data): Mark most-positive-fixnum and
2975 most-negative-fixnum as constants.
2976
2977 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
2978
2979 * indent.c (scan_for_column): Extract from current_column_1.
2980 Merge with the same code from Fmove_to_column.
2981 (current_column_1, Fmove_to_column): Use it.
2982
2983 2008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
2984
2985 * keymap.c (map_keymap_internal): New fun.
2986 (map_keymap): Use it.
2987 (Fmap_keymap_internal): New fun.
2988 (Fmap_keymap): Remove left-out test from before make_save_value.
2989
2990 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
2991
2992 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
2993 Use XCAR/XCDR.
2994
2995 * process.h (struct Lisp_Process): Remove filter_multibyte.
2996 * process.c (QCfilter_multibyte): Remove.
2997 (setup_process_coding_systems): Don't use filter_multibyte.
2998 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
2999 (read_process_output): Don't adjust multibyteness to filter_multibyte.
3000 (Fset_process_filter_multibyte): Change the coding-system to
3001 approximate the previous behavior.
3002 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
3003 coding-system.
3004
3005 * coding.c (decode_coding_object): When not decoding into a buffer,
3006 obey the coding system's preference of (uni|multi)byte.
3007
3008 2008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
3009
3010 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
3011 every char is changed and has a different byte-length.
3012 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
3013 Fix int -> EMACS_INT.
3014
3015 2008-03-23 David Hansen <david.hansen@gmx.net>
3016
3017 * dbusbind.c (xd_read_message): Remove extra copying of message
3018 strings. Check for NULL `interface' or `member'.
3019
3020 2008-03-22 Eli Zaretskii <eliz@gnu.org>
3021
3022 * w32.c (readdir): If FindFirstFile/FindNextFile return in
3023 cFileName a file name that includes `?' characters, use the 8+3
3024 alias in cAlternateFileName instead.
3025
3026 2008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
3027
3028 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
3029
3030 2008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
3031
3032 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
3033 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
3034 work on current_buffer only instead (that was already the case
3035 for some of the code anyway).
3036 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
3037 (temp_set_point, temp_set_point_both): Use EMACS_INT.
3038 (SET_PT, SET_PT_BOTH): Adjust.
3039 * intervals.h (set_point, temp_set_point, set_point_both)
3040 (temp_set_point_both): Remove redundant declarations.
3041
3042 2008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
3043
3044 * fileio.c (Finsert_file_contents):
3045 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
3046 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
3047 when buffer != current_buffer anyway.
3048
3049 2008-03-20 Andreas Schwab <schwab@suse.de>
3050
3051 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
3052 as default.
3053
3054 2008-03-19 Jason Rumney <jasonr@gnu.org>
3055
3056 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
3057 (syms_of_w32fns): Initialize them.
3058 (HOURGLASS_ID): New constant.
3059 (x_window_to_frame): Don't check hourglass_window.
3060 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
3061 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
3062 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
3063 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
3064 Only change the cursor if hourglass is not active.
3065 (Fx_create_frame): Initialize frame's current_cursor.
3066 (hourglass_atimer): Remove.
3067 (hourglass_started): New function.
3068 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
3069 (show_hourglass): Adapt to w32, changing argument to frame.
3070
3071 * w32term.h (struct w32_output): Remove hourglass_window.
3072 Add current_cursor.
3073
3074 * eval.c (call_debugger, Fsignal):
3075 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
3076 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
3077 (Fexecute_extended_command, cancel_hourglass_unwind):
3078 * minibuf.c (read_minibuf):
3079 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
3080
3081 2008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
3082
3083 * window.c (run_funs): New fun.
3084 (run_window_configuration_change_hook): Use it to run the buffer-local
3085 and the global part of the hook.
3086
3087 * xdisp.c (format_mode_line_unwind_data): Add window argument.
3088 (unwind_format_mode_line): Restore selected window.
3089 (x_consider_frame_title, Fformat_mode_line): Set selected window.
3090
3091 2008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
3092
3093 * editfns.c (Fchar_equal): Check they are valid characters.
3094
3095 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
3096
3097 2008-03-17 Andreas Schwab <schwab@suse.de>
3098
3099 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
3100 against a charset.
3101
3102 * lisp.h (Fbuffer_list): Declare.
3103
3104 2008-03-17 Jan Djärv <jan.h.d@swipnet.se>
3105
3106 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
3107 handlebox_widget is != 0.
3108
3109 2008-03-16 Juri Linkov <juri@jurta.org>
3110
3111 * callint.c (Fcall_interactively): For interactive code letters
3112 'b' and 'B' put the buffer list into the list of default "future"
3113 values of the minibuffer.
3114
3115 2008-03-16 Andreas Schwab <schwab@suse.de>
3116
3117 * keyboard.c (read_key_sequence): Fix downcasing of letters with
3118 modifiers.
3119
3120 * regex.c (re_match_2_internal): Correct matching of a charset
3121 against latin-1 characters.
3122
3123 2008-03-16 Kenichi Handa <handa@m17n.org>
3124
3125 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
3126 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
3127 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
3128 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
3129 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
3130 CHAR_STRING_ADVANCE.
3131 (produce_chars): Fix for the case that the source and the
3132 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
3133 instead of CHAR_STRING_ADVANCE.
3134 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
3135 STRING_CHAR_ADVANCE.
3136
3137 2008-03-15 Andreas Schwab <schwab@suse.de>
3138
3139 * regex.c (re_match_2_internal): Correct matching of eight bit
3140 characters in unibyte strings.
3141
3142 2008-03-15 Martin Rudalics <rudalics@gmx.at>
3143
3144 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
3145 at end of range when it coincides with the end of the buffer.
3146
3147 2008-03-14 Eli Zaretskii <eliz@gnu.org>
3148
3149 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
3150
3151 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
3152
3153 2008-03-14 Jason Rumney <jasonr@gnu.org>
3154
3155 * editfns.c (initial_tz): New variable.
3156 (syms_of_editfns): Initialize it.
3157 (Fset_time_zone_rule): Set it when first called.
3158 Use it when TZSTRING is nil.
3159
3160 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
3161 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
3162 (monitor_from_point_fn, get_monitor_info_fn): New globals.
3163 (globals_of_w32fns): Initialize them.
3164 (compute_tip_xy): Use them to position tooltips.
3165
3166 2008-03-14 Glenn Morris <rgm@gnu.org>
3167
3168 * emacs.c (main): Revert previous change.
3169 (standard_args): Revert -internal-script back to -scriptload,
3170 and remove the long-option form.
3171
3172 2008-03-13 Glenn Morris <rgm@gnu.org>
3173
3174 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
3175 Remove option -enable-font-backend.
3176
3177 2008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
3178
3179 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
3180
3181 2008-03-11 Jan Djärv <jan.h.d@swipnet.se>
3182
3183 * xterm.c (x_connection_closed): For GTK: If this is the last
3184 terminal just exit without closing the display.
3185
3186 2008-03-11 Jason Rumney <jasonr@gnu.org>
3187
3188 * w32font.c (w32font_full_name): Use floor to round.
3189
3190 2008-03-10 dhruva <dhruvakm@gmail.com> (tiny change)
3191
3192 * sound.c (alsa_configure): Declare vol at beginning of block.
3193
3194 * fontset.c (Ffontset_info): Remove extra semicolon.
3195
3196 2008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
3197
3198 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
3199 size of resulting string.
3200
3201 2008-03-10 Jason Rumney <jasonr@gnu.org>
3202
3203 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
3204
3205 2008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3206
3207 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
3208 Don't pretend as if characters with display property haven't been
3209 consumed for string-replacing-string case.
3210
3211 2008-03-08 Kim F. Storm <storm@cua.dk>
3212
3213 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
3214 (get_next_display_element, next_element_from_string)
3215 (next_element_from_ellipsis, next_element_from_buffer): Use it.
3216
3217 2008-03-08 Andreas Schwab <schwab@suse.de>
3218
3219 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
3220
3221 2008-03-06 Jason Rumney <jasonr@gnu.org>
3222
3223 * w32font.c (w32_registry): Take font_type argument. Use ANSI
3224 when charset not specified. Only translate ANSI to unicode when
3225 font_type is truetype.
3226 (w32font_coverage_ok): New function.
3227 (add_font_entity_to_list): Use it to filter unsuitable fonts.
3228
3229 2008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
3230
3231 * lread.c (Fread_char): Resolve modifiers.
3232 (Fread_char_exclusive): Likewise.
3233
3234 * character.c (char_resolve_modifier_mask): New function.
3235 (char_string): Use char_resolve_modifier_mask.
3236 (Fchar_resolve_modifiers): New function.
3237 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
3238 function.
3239
3240 2008-03-04 Jason Rumney <jasonr@gnu.org>
3241
3242 * makefile.w32-in: Always include w32font.c in the build.
3243 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
3244
3245 2008-03-04 Andreas Schwab <schwab@suse.de>
3246
3247 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
3248 (versionclean): Likewise.
3249
3250 2008-03-04 Juanma Barranquero <lekktu@gmail.com>
3251
3252 * .cvsignore: Add oo.
3253
3254 2008-03-03 Andreas Schwab <schwab@suse.de>
3255
3256 * coding.c (decode_coding_object): Inhibit gap shrinking while
3257 decoding in place.
3258
3259 2008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
3260
3261 * w32term.c: Remove unused include "gnu.h".
3262 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
3263
3264 * gnu.h: Rename to ...
3265 * emacs-icon.h: ... this.
3266 * xterm.c: Use emacs-icon.h instead of gnu.h.
3267 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
3268
3269 2008-03-03 Juanma Barranquero <lekktu@gmail.com>
3270
3271 * w32font.c: Include math.h.
3272
3273 2008-03-03 Jason Rumney <jasonr@gnu.org>
3274
3275 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
3276 Compute options separately.
3277 (w32font_open_internal): Set glyph_idx before caching metrics.
3278
3279 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
3280 Define if system headers don't.
3281 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
3282 (w32font_encode_char): Don't declare here.
3283
3284 * w32font.c (Quniscribe, QCformat): New symbols.
3285 (syms_of_w32font): Define them.
3286 (w32font_has_char): Indicate uncertainty.
3287 (w32font_encode_char): Encode as glyph point. Make static.
3288 (recompute_cached_metrics): New function.
3289 (w32font_open_internal): Use it. Set font to use glyph points
3290 initially. Set format based on type of font.
3291 (w32font_text_extents, w32font_draw): Optionally use glyph points.
3292 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
3293 on it. Set format based on information available here.
3294 (add_font_entity_to_list): Identify backend based on opentype_only.
3295
3296 2008-03-02 Andreas Schwab <schwab@suse.de>
3297
3298 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
3299
3300 * coding.c (decode_coding_big5, produce_chars):
3301 Fix typos in last change.
3302
3303 2008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
3304
3305 * gnu.h: New icon.
3306
3307 2008-03-02 Kenichi Handa <handa@m17n.org>
3308
3309 * coding.c (decode_coding_utf_8): When eol-type of CODING is
3310 `dos', don't decode '\r' if that is the last in the source.
3311 (decode_coding_utf_16, decode_coding_emacs_mule)
3312 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
3313 (decode_coding_raw_text, decode_coding_charset): Likewise.
3314 (produce_chars): Don't decode EOL here. Use EMACS_INT.
3315
3316 2008-03-01 Jason Rumney <jasonr@gnu.org>
3317
3318 * w32font.c (w32font_full_name): Report point size for scalable fonts.
3319
3320 2008-03-01 Kim F. Storm <storm@cua.dk>
3321
3322 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
3323
3324 2008-03-01 Jason Rumney <jasonr@gnu.org>
3325
3326 * w32font.c (w32font_full_name): New function.
3327 (w32font_open_internal): Use it.
3328
3329 2008-03-01 Kim F. Storm <storm@cua.dk>
3330
3331 * dispnew.c (line_draw_cost): Fix invalid glyph check.
3332
3333 2008-03-01 Jason Rumney <jasonr@gnu.org>
3334
3335 * font.c (font_unparse_fcname): Increase len when style is a symbol.
3336
3337 2008-03-01 Jan Djärv <jan.h.d@swipnet.se>
3338
3339 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
3340 xg_frame_resized when the event is for the edit widget.
3341
3342 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
3343
3344 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
3345 set_char_size.
3346 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
3347 operations on widgets here. Just set frame size if needed.
3348 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
3349 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
3350 (x_wm_set_size_hint): Set size hints on the edit widget only, not
3351 the whole frame.
3352 (xg_create_tool_bar): Move attachement of the tool bar to
3353 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
3354 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
3355
3356 2008-03-01 Jason Rumney <jasonr@gnu.org>
3357
3358 * w32fns.c (w32_msg_pump): Disable debug code.
3359
3360 2008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3361
3362 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
3363
3364 2008-02-29 Chong Yidong <cyd@stupidchicken.com>
3365
3366 * xdisp.c (next_overlay_string): Don't set
3367 overlay_strings_at_end_processed_p if we're currently reading from
3368 a display string.
3369
3370 2008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
3371
3372 * xdisp.c (get_overlay_strings_1): Fix typo.
3373
3374 2008-02-29 Chong Yidong <cyd@stupidchicken.com>
3375
3376 * xdisp.c (get_overlay_strings_1): Add missing argument type.
3377
3378 2008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
3379
3380 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
3381
3382 * xdisp.c (display_mode_element): Cancel the previous change.
3383 (decode_mode_spec): Likewise.
3384 (handle_auto_composed_prop): Don't make composition if it->string
3385 is a string.
3386
3387 2008-02-27 Kim F. Storm <storm@cua.dk>
3388
3389 * lisp.h (GLYPH): Change type from int to struct with separate char
3390 and face_id members.
3391 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
3392 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
3393 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
3394 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
3395 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
3396 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
3397 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
3398 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
3399 handle new Lisp glyph code encoding, either an integer or a cons.
3400
3401 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
3402 (GLYPH_ALIAS): Delete.
3403 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
3404 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
3405 (GLYPH_FROM_CHAR): Replace macro by ...
3406 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
3407
3408 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
3409 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
3410 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
3411 (GLYPH_INVALID_P): New macro.
3412 (spec_glyph_lookup_face): Update prototype.
3413
3414 * dispnew.c (line_draw_cost): Adapt to new glyph type.
3415 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
3416 new glyph code encoding.
3417 (spec_glyph_lookup_face): No return value; update passed glyph instead.
3418 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
3419
3420 * xdisp.c (get_next_display_element, next_element_from_display_vector):
3421 Adapt to new glyph type and new glyph code encoding.
3422
3423 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
3424
3425 * indent.c (current_column, current_column_1, Fmove_to_column)
3426 (compute_motion): Adapt to new glyph code encoding.
3427
3428 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
3429
3430 2008-02-27 Chong Yidong <cyd@stupidchicken.com>
3431
3432 * process.c (wait_reading_process_output): Check for window
3433 changes caused by timers.
3434 Suggested by Johan Bockgård.
3435
3436 2008-02-27 Glenn Morris <rgm@gnu.org>
3437
3438 * emacs.c (USAGE1): Add `--disable-font-backend'.
3439
3440 2008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
3441
3442 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
3443 is made to the buffer.
3444
3445 2008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
3446
3447 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
3448 (face_at_string_position):
3449 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
3450 (face_at_string_position):
3451 * xdisp.c (display_string, next_overlay_change):
3452 * buffer.h (overlays_at):
3453 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
3454 Update callers.
3455
3456 2008-02-26 Chong Yidong <cyd@stupidchicken.com>
3457
3458 * editfns.c (Fformat): Doc fix.
3459
3460 2008-02-26 Juanma Barranquero <lekktu@gmail.com>
3461
3462 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
3463 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
3464 (Ffont_otf_alternates, Fquery_font): Doc fixes.
3465
3466 2008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
3467
3468 * buffer.c (Fbuffer_swap_text): New function.
3469 (syms_of_buffer): Defsubr it.
3470
3471 2008-02-25 Chong Yidong <cyd@stupidchicken.com>
3472
3473 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
3474
3475 2008-02-25 Jason Rumney <jasonr@gnu.org>
3476
3477 * w32font.c (w32font_draw): Draw one character at a time when padding.
3478
3479 2008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
3480
3481 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
3482 Handle a nil arg. Use run_window_configuration_change_hook.
3483 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
3484 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
3485 Use run_window_configuration_change_hook.
3486
3487 2008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
3488
3489 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
3490 1-pixel width.
3491
3492 2008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
3493
3494 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
3495 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
3496 if the glyph in the font is zero pixel with.
3497
3498 * dispextern.h (struct glyph_string): New member padding_p.
3499
3500 * w32font.c (w32font_draw): Pay attention to s->padding_p.
3501
3502 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
3503
3504 * xfont.c (xfont_draw): Pay attention to s->padding_p.
3505
3506 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
3507
3508 * font.c: If the font driver doesn't have `shape' function, return Qnil.
3509
3510 2008-02-25 Jason Rumney <jasonr@gnu.org>
3511
3512 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
3513
3514 2008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
3515
3516 Allow fine-grained image-cache flushing.
3517 * dispextern.h (struct image): Add `dependencies' field.
3518 (clear_image_caches): Change arg to Lisp_Object.
3519 * image.c (make_image): Initialize `dependencies' field.
3520 (clear_image_cache): Change arg to allow fine-grained flushing.
3521 Perform the flush even if image-cache-eviction-delay is nil.
3522 (clear_image_caches): Change arg to Lisp_Object.
3523 (Fclear_image_cache): Expand meaning of the argument.
3524 (mark_image): Mark `dependencies' field.
3525 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
3526 (lface_hash): Use XHASH rather than XFASTINT.
3527 (face_at_buffer_position): Fix int -> EMACS_INT position.
3528 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
3529 (select_frame_for_redisplay): Remove code duplication.
3530 (redisplay_internal): Adapt arg to call to clear_image_caches.
3531
3532 2008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
3533
3534 * s/vms4-0.h:
3535 * s/vms4-2.h:
3536 * s/vms4-4.h:
3537 * s/vms5-5.h: Remove, unused.
3538
3539 * s/irix5-2.h:
3540 * s/irix6-0.h:
3541 * s/riscos5.h:
3542 * s/mach-bsd4-3.h:
3543 * m/mips4.h: Remove files for obsolete systems.
3544
3545 * Makefile.in:
3546 * filelock.c:
3547 * unexmips.c:
3548 * m/hp9000s300.h:
3549 * m/iris4d.h:
3550 * s/aix3-1.h:
3551 * s/hpux.h:
3552 * s/msdos.h:
3553 * s/usg5-0.h:
3554 * s/usg5-2-2.h:
3555 * s/usg5-2.h:
3556 * s/usg5-3.h: Remove references to obsolete variables.
3557
3558 * s/irix5-0.h: Remove, move all the contents ...
3559 * s/irix6-5.h: ... here. Simplify.
3560 * config.in: Regenerate.
3561
3562 2008-02-24 Jason Rumney <jasonr@gnu.org>
3563
3564 * w32term.c (x_draw_glyph_string_background): Clear the background
3565 manually when cleartype is in use.
3566 (x_draw_glyph_string_foreground): Draw text transparently when
3567 cleartype is in use.
3568
3569 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
3570 a font into it unless we have to.
3571
3572 2008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
3573
3574 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
3575 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
3576
3577 2008-02-18 Jason Rumney <jasonr@gnu.org>
3578
3579 * w32fns.c (Fw32_shell_execute): Encode parameters.
3580
3581 2008-02-09 Eli Zaretskii <eliz@gnu.org>
3582
3583 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
3584
3585 2008-02-05 Juanma Barranquero <lekktu@gmail.com>
3586
3587 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
3588
3589 2008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
3590
3591 * xterm.c (x_set_offset): Don't change the gravity if
3592 CHANGE_GRAVITY is -1.
3593
3594 2008-02-23 Chong Yidong <cyd@stupidchicken.com>
3595
3596 * fileio.c (auto_save_error_occurred): New var.
3597 (auto_save_error): Set it.
3598 (Fdo_auto_save): Don't overwrite the error message if an auto-save
3599 error occurred.
3600
3601 2008-02-23 Eli Zaretskii <eliz@gnu.org>
3602
3603 * w32.c (globals_of_w32): Add initializations for
3604 g_b_init_get_sid_sub_authority and
3605 g_b_init_get_sid_sub_authority_count.
3606
3607 2008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
3608
3609 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
3610 (font_parse_xlfd): Use them for sanity check.
3611 (Finternal_set_font_style_table): Make sure the table is bijective.
3612
3613 Consolidate the image_cache to the terminal struct.
3614 * termhooks.h (P_): Remove redundant def.
3615 (struct terminal): New field `image_cache'.
3616 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
3617 of FRAME_X_IMAGE_CACHE.
3618 * xterm.h (struct x_display_info): Remove image_cache field.
3619 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
3620 * w32term.h (struct w32_display_info): Remove image_cache field.
3621 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
3622 * macterm.h (struct mac_display_info): Remove image_cache field.
3623 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
3624 * xterm.c (x_term_init):
3625 * w32term.c (w32_term_init):
3626 * macterm.c (mac_term_init): Set the image_cache in the terminal.
3627 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
3628 Remove declarations.
3629 (clear_image_caches, mark_image_cache): New declarations.
3630 * xfaces.c (clear_face_cache):
3631 * xdisp.c (redisplay_internal): Use clear_image_caches.
3632 * image.c (clear_image_cache): Don't check that a frame is on
3633 a window-system before checking if it shares the same cache.
3634 (clear_image_caches): New function.
3635 (Fclear_image_cache): Use it.
3636 (mark_image): Move from allo.c.
3637 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
3638 * alloc.c (mark_image, mark_image_cache): Move to image.c.
3639 (mark_object): Don't call mark_image_cache for frames.
3640 (mark_terminals): Call mark_image_cache.
3641
3642 * lisp.h (Fdelete_terminal): Declare.
3643
3644 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
3645 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
3646 wrong_type_argument.
3647
3648 2008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
3649
3650 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
3651 malayalam.el, and tamil.el. Add sinhala.el.
3652
3653 2008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
3654
3655 * xterm.c (x_connection_closed): Consolidate identical tests.
3656 (x_delete_terminal): Don't crash if called via x_connection_closed.
3657
3658 2008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
3659
3660 * xdisp.c (decode_mode_spec): New arg string.
3661 (display_mode_element): Adjust for the above change.
3662
3663 2008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
3664
3665 * callint.c (Fcall_interactively): Use AREF.
3666
3667 2008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
3668
3669 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
3670
3671 2008-02-18 Jan Djärv <jan.h.d@swipnet.se>
3672
3673 * xfns.c (Fx_show_tip): Set string to " " if empty.
3674
3675 2008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
3676
3677 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
3678 with Qt.
3679
3680 2008-02-17 Kenichi Handa <handa@m17n.org>
3681
3682 * ftfont.c (ftfont_shape): Return Lispy number.
3683
3684 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
3685 for GCs.
3686 (Finternal_set_font_selection_order): Call font_update_sort_order
3687 only when enable_font_backend is set.
3688 (realize_x_face): Set face->font_info to that of default face only
3689 when enable_font_backend is set.
3690
3691 * xdisp.c (handle_composition_prop): Set it->c to the fist
3692 characte of the composed region.
3693 (fill_composite_glyph_string): Set base_face->font_info to
3694 s->font_info. Get a face for ascii from base_face->ascii_face.
3695 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
3696 with a face already decided.
3697 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
3698 non-negative.
3699 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
3700 call font_prepare_composition unconditionally.
3701
3702 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
3703
3704 * xterm.h (struct x_display_info): New member font.
3705
3706 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
3707 (x_set_mouse_face_gc, x_new_font): Likewise.
3708 (x_term_init): Setup display_info->font.
3709 (x_delete_terminal): Free display_info->font.
3710
3711 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
3712
3713 * ftxfont.c (ftxfont_default_fid): Delete it.
3714 (ftxfont_open): Set xfont->fid to 0.
3715 (ftxfont_end_for_frame): Clear data specific to the frame and the
3716 font-driver.
3717
3718 * xftfont.c (xftfont_default_fid): Delete it.
3719 (xftfont_open): Set xfont->fid to 0.
3720
3721 * fontset.c (FONTSET_OBJLIST): New macro.
3722 (fontset_find_font): Update font-object list of the fontset.
3723 (free_realized_fontset): New function.
3724 (free_face_fontset): Call free_realized_fontset.
3725 (Ffont_info): Call font_close_object only when enable_font_backend
3726 is set.
3727
3728 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
3729 [HAVE_NTGUI]: Include w32term.h.
3730 [MAC_OS]: Include macterm.ch.
3731 (font_otf_ValueRecord): Use make_number.
3732 (font_finish_cache): Fix handling of reference count.
3733 (font_clear_cache): Update num_fonts.
3734 (font_open_entity): Update smallest_char_width and
3735 smallest_font_height of the frame.
3736 (font_close_object): Update num_fonts.
3737 (Fclear_font_cache): Fix finding the target cache data.
3738
3739 2008-02-16 Glenn Morris <rgm@gnu.org>
3740
3741 * fontset.c (Finternal_char_font): Fix compilation warning.
3742
3743 2008-02-16 Eli Zaretskii <eliz@gnu.org>
3744
3745 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
3746 instead of char arrays. Enlarge the size of array passed to
3747 get_token_information.
3748
3749 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
3750 warnings.
3751
3752 2008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
3753
3754 * .gdbinit: Don't set `args', it breaks gdb --args.
3755
3756 2008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
3757
3758 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
3759 within a narrowed buffer.
3760
3761 2008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
3762
3763 * coding.c (decode_coding_object, encode_coding_object):
3764 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
3765
3766 2008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
3767
3768 * coding.c (coding_set_destination): Use BEG_BYTE rather than
3769 hardcoding 1.
3770 (detect_coding_system):
3771 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
3772 (string_char_to_byte, string_byte_to_char, insert_from_gap):
3773 * insdel.c (insert_from_gap):
3774 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
3775 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
3776 (string_to_multibyte):
3777 * character.c (chars_in_text, multibyte_chars_in_text):
3778 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
3779
3780 * character.h (FETCH_STRING_CHAR_ADVANCE)
3781 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
3782 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
3783 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
3784
3785 * casefiddle.c (casify_region): Only call after-change and composition
3786 functions on the part of the region that was changed.
3787
3788 * keyboard.c (read_avail_input):
3789 * frame.c (Fdelete_frame): Call Fdelete_terminal.
3790
3791 2008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
3792
3793 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
3794 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
3795
3796 2008-02-11 Juanma Barranquero <lekktu@gmail.com>
3797
3798 * w32menu.c (push_submenu_start, push_submenu_end)
3799 (push_left_right_boundary, push_menu_pane, push_menu_item):
3800 * keyboard.c (read_key_sequence): Don't pass args with side effects
3801 to AREF, it fails when compiling with -DENABLE_CHECKING.
3802
3803 2008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
3804
3805 * Makefile.in (${lispsource}international/charprop.el):
3806 Delete this target.
3807
3808 * search.c (boyer_moore): Fix incorrect synching of the trunk and
3809 emacs-unicode-2.
3810
3811 2008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
3812
3813 * terminal.c (Fdelete_terminal): Clean up the `force' path.
3814
3815 2008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
3816
3817 * frame.c (Qnoelisp): New symbol.
3818 (syms_of_frame): Initialize it.
3819 (Fdelete_frame): Use it to distinguish a mere `force' passed from
3820 someharmles Elisp code, from a strong `force' from x_connection_closed.
3821 * frame.h (Qnoelisp): Declare.
3822 * xterm.c (x_connection_closed): Pass `noelisp'.
3823
3824 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
3825 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
3826 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
3827 rather than `int' for the type of `type'.
3828
3829 2008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
3830
3831 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
3832
3833 * Makefile.in (GNUC): Remove support for gcc-1.x.
3834
3835 2008-02-10 Richard Stallman <rms@gnu.org>
3836
3837 * lisp.h (ASET): Use AREF, not ASLOT.
3838
3839 2008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
3840
3841 * lisp.h (ASET): Check bounds.
3842
3843 2008-02-10 Glenn Morris <rgm@gnu.org>
3844
3845 * buffer.c (mode-name): Doc fix.
3846
3847 2008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
3848
3849 * Makefile.in:
3850 * emacs.c:
3851 * gmalloc.c:
3852 * keyboard.c:
3853 * lisp.h:
3854 * m/ibm370aix.h:
3855 * process.c:
3856 * regex.c:
3857 * s/hpux.h:
3858 * sysdep.c:
3859 * sysselect.h:
3860 * systty.h:
3861 * unexec.c:
3862 * w32term.c:
3863 * xsmfns.c:
3864 * xterm.c: Remove code that deals with obsolete variables.
3865
3866 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
3867
3868 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
3869 nothing else needs it anymore.
3870
3871 2008-02-09 Eli Zaretskii <eliz@gnu.org>
3872
3873 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
3874 instead of unibyte_char_to_multibyte.
3875
3876 2008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
3877
3878 * s/gnu-linux.h: Remove commented out code.
3879
3880 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
3881
3882 * Makefile.in: Update what RMS says about using autoconf.
3883 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
3884 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
3885 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
3886 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
3887
3888 2008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
3889
3890 * keymap.c (Fkey_description): Move side effect outside of macro call.
3891
3892 * xfaces.c (Finternal_make_lisp_face):
3893 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
3894
3895 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
3896 (syms_of_fontset): Use ASET.
3897
3898 * fns.c (concat): Move side effect outside of macro call.
3899 (hash_clear): Use ASET.
3900
3901 2008-02-08 Richard Stallman <rms@gnu.org>
3902
3903 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
3904 If FORCE, and frame has a surrogate minibuffer for another frame,
3905 delete the other frame first.
3906
3907 2008-02-07 Timo Savola <timo.savola@iki.fi>
3908
3909 * xterm.c (x_detect_focus_change): Handle embed client message.
3910 (handle_one_xevent): Ditto.
3911 (handle_one_xevent): If embedded and we get a button press/release,
3912 request focus.
3913 (xembed_set_info, xembed_send_message): New functions.
3914 (x_make_frame_visible): Call xembed_set_info if embedded.
3915 (x_make_frame_invisible): Call xembed_set_info if embedded.
3916 (x_term_init): Initialize Xatom_XEMBED.
3917 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
3918 (x_iconify_frame): Ditto.
3919
3920 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
3921 (enum xembed_info, enum xerm srmbed_message, enum xembed_focus)
3922 (enum xembed_modifier, enum xembed_accelerator): New.
3923 (xembed_set_info, xembed_send_message): Declare.
3924 (FRAME_X_EMBEDDED_P): New.
3925
3926 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
3927 gtk_plug_new.
3928
3929 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
3930 window ID of a frame.
3931 (x_window): Reparent frame if embedded.
3932 (Fx_create_frame): Don't set border width if embedded.
3933
3934 * emacs.c (USAGE3): Add --parent-id.
3935 (standard_args): Ditto.
3936
3937 2008-02-07 Jan Djärv <jan.h.d@swipnet.se>
3938
3939 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
3940
3941 2008-02-07 Jim Meyering <meyering@redhat.com>
3942
3943 Use "do...while (0)", not "if (1)...else" in macro definitions.
3944 The latter provokes a warning from gcc about the empty else, when
3945 followed by ";". Also, without that trailing semicolon, it would
3946 silently swallow up any following statement.
3947 * syntax.h (SETUP_SYNTAX_TABLE)
3948 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
3949 * buffer.h (DECODE_POSITION): Likewise.
3950 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
3951 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
3952 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
3953 (FETCH_CHAR_ADVANCE): Likewise.
3954 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
3955
3956 2008-02-07 Jim Meyering <meyering@redhat.com>
3957
3958 * lread.c [lint]: Don't include <sys/inode.h>.
3959
3960 2008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
3961
3962 * xselect.c (x_handle_dnd_message):
3963 * xmenu.c (digest_single_submenu, xmenu_show):
3964 * xdisp.c (with_echo_area_buffer_unwind_data)
3965 (format_mode_line_unwind_data, unwind_format_mode_line)
3966 (display_menu_bar):
3967 * eval.c (Ffetch_bytecode):
3968 * doc.c (store_function_docstring):
3969 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
3970 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
3971 * buffer.c (add_overlay_mod_hooklist): Use ASET.
3972
3973 2008-02-07 Kenichi Handa <handa@m17n.org>
3974
3975 * ftxfont.c (ftxfont_open): Don't set
3976 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
3977
3978 * ftfont.c (ftfont_open): Fix previous change.
3979
3980 2008-02-06 Jason Rumney <jasonr@gnu.org>
3981
3982 * w32font.c (w32font_text_extents): Fill in lbearing metric.
3983 Use cached metrics for ASCII characters.
3984 (w32font_open_internal): Don't set font's owning_frame.
3985 Cache metrics for ASCII characters.
3986
3987 * w32font.h (struct w32font_info): Add ascii_metrics.
3988 Remove owning_frame.
3989
3990 2008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
3991
3992 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
3993 to negative value.
3994
3995 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
3996
3997 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
3998
3999 * charset.c (syms_of_charset): Set QCtest and Qeq.
4000
4001 2008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
4002
4003 * process.c (Fstart_process):
4004 * callproc.c (Fcall_process): Handle the case where
4005 Funhandled_file_name_directory returns nil.
4006
4007 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
4008 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
4009 * font.c (check_gstring): Use them and AREF to access the vector before
4010 we know it's really a gstring.
4011 (Ffont_shape_text): Fix typo.
4012 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Oject mixups.
4013
4014 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
4015 Declare.
4016
4017 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
4018
4019 2008-02-05 Jason Rumney <jasonr@gnu.org>
4020
4021 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
4022 Set smallest_font_height and smallest_char_width in display info.
4023
4024 2008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
4025
4026 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
4027
4028 2008-02-05 Miles Bader <miles@gnu.org>
4029
4030 * xfaces.c (get_lface_attributes, merge_named_face)
4031 (lookup_named_face, lookup_derived_face, realize_named_face):
4032 Revert 2008-02-01 change by cyd@stupidchicken.com.
4033
4034 2008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
4035
4036 * fontset.c (Ffontset_info): Handle the case of inhibitting the
4037 fallback fonts.
4038 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
4039
4040 2008-02-04 Jason Rumney <jasonr@gnu.org>
4041
4042 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
4043 set full_name.
4044 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
4045
4046 2008-02-03 Jason Rumney <jasonr@gnu.org>
4047
4048 * makefile.w32-in (OBJ1): Include font.o here.
4049 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
4050
4051 2008-02-02 Jason Rumney <jasonr@gnu.org>
4052
4053 * makefile.w32-in (temacs): Bump EMHEAP to 21.
4054
4055 2008-02-01 Jason Rumney <jasonr@gnu.org>
4056
4057 * s/cygwin.h: Define VIRT_ADDR_VARIES.
4058
4059 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
4060
4061 2008-02-01 Andreas Schwab <schwab@suse.de>
4062
4063 * Makefile.in (shortlisp, lisp): Update for rename of
4064 ../lisp/language/myanmar.el.
4065
4066 2008-02-01 Chong Yidong <cyd@stupidchicken.com>
4067
4068 * xfaces.c (get_lface_attributes): Delete function.
4069 (merge_named_face, lookup_named_face, lookup_derived_face)
4070 (realize_named_face): Call lface_from_face_name directly, and use
4071 the fact that merge_face_vectors does not alter its FROM argument.
4072
4073 2008-02-01 Jason Rumney <jasonr@gnu.org>
4074
4075 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
4076 input in the default locale. Handle non-Unicode multibyte input.
4077
4078 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
4079
4080 * fontset.c (reorder_font_vector): Exclude nil elements from the
4081 font group. Don't try multiple fonts.
4082 (fontset_font): Adjust for the above change.
4083 (Finternal_char_font): Return nil if the found font doesn't
4084 contain the character ch.
4085
4086 * Makefile.in (lisp, shortlisp): Add cham.el.
4087
4088 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
4089
4090 * font.h (FONTP): Make it return 1 also for a font-object.
4091
4092 * .gdbinit (xfontset): New function.
4093
4094 * font.c (font_find_for_lface): Check if the character C is
4095 supported or not only for the first font.
4096
4097 * fontset.c (reorder_font_vector): Fix typo.
4098 (fontset_find_font): Don't add a font-spec specifying a script.
4099 Use 0 (not Qt) for the indication of empty font-group. Change the
4100 format of RFONT-DEF. Return Qt if no font in the font-group
4101 support the character.
4102 (fontset_font): Adjust for the above change. If no font was
4103 found the character, remember that.
4104 (face_for_char): Adjust for the change of RFONT-DEF.
4105 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
4106 no font for the target.
4107 (Finternal_char_font): Adjust for the change of RFONT-DEF.
4108
4109 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
4110
4111 * font.c (font_load_for_face): Handle the case that the font in
4112 face->lface is a string.
4113
4114 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
4115
4116 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
4117
4118 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
4119
4120 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
4121 Fix previous change. If the frame is not on a window system,
4122 signal an error.
4123
4124 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
4125
4126 * coding.c (decode_coding_object, encode_coding_object): Adjust
4127 marker positions after conversion.
4128
4129 * lisp.h (struct Lisp_Marker): New member need_adjustment.
4130
4131 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
4132
4133 * font.c (font_find_for_lface): Fix the handling of the return
4134 value of font_has_char.
4135 (Ffont_shape_text): Fix previous change.
4136
4137 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
4138 (fontset_ref_and_range): Delete it.
4139 (fontset_find_font): Call char_table_ref_and_range instead of
4140 FONTSET_REF_AND_RANGE.
4141 (make_fontset): Don't setup font groups of Latin here.
4142 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
4143 (new_fontset_from_font): Make the specified font the default for
4144 all Latin characters.
4145
4146 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
4147
4148 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
4149 is on a window system before accessing the fontset of the frame.
4150
4151 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
4152
4153 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
4154
4155 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
4156 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
4157
4158 * font.c (Ffont_shape_text): If the font driver doesn't have a
4159 shaper function, make zero-width glyphs to have at least one-pixel
4160 width. Fix setting of `to' field of glyphs.
4161
4162 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
4163
4164 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
4165 glyphs.
4166
4167 * font.h (struct font_driver): Improve docstring of member `shape'.
4168
4169 2008-02-01 Kenichi Handa <handa@m17n.org>
4170
4171 * composite.c (syms_of_composite): Fix docstring of
4172 auto-composition-function.
4173
4174 * font.h (LGLYPH_SIZE): New macro.
4175
4176 * font.c (Ffont_fill_gstring): Stop filling when a character not
4177 supported by the font is found.
4178 (Ffont_shape_text): When a shape callback function returns nil,
4179 try at most two more times with larger gstring.
4180 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
4181
4182 * xdisp.c (handle_auto_composed_prop): Change the argument to
4183 auto-composition-function.
4184
4185 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
4186 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
4187 Lispy glyph and store it in the lgstring.
4188
4189 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
4190
4191 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
4192
4193 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
4194
4195 * font.c (Ffont_shape_text): Avoid unnecessary composition.
4196
4197 * fontset.c (Vfont_encoding_charset_alist): New variable.
4198 (syms_of_fontset): DEFVAR it.
4199 (reorder_font_vector, fontset_find_font): Optimize for the case of
4200 no need of reordering.
4201 (face_for_char): Map the charset property by
4202 Vfont_encoding_charset_alist.
4203
4204 2008-02-01 Jason Rumney <jasonr@gnu.org>
4205
4206 * w32font.c (logfonts_match): Don't check adstyle here.
4207 (font_matches_spec): Check here against physical font instead.
4208 (add_font_entity_to_list): Avoid some substitutions.
4209
4210 * font.c (font_parse_fcname): Default weight and slant to normal.
4211 (font_score): Prefer normal fonts if weight or slant unspecified.
4212 (font_score) [WINDOWSNT]: Scale weight difference down to closer
4213 match freetype scores.
4214
4215 2008-02-01 Jason Rumney <jasonr@gnu.org>
4216
4217 * w32font.c (w32font_text_extents): Don't use the frame stored in the
4218 font, as it may have been deleted.
4219 (w32_enumfont_pattern_entity): Map generic family to adstyle using
4220 most common hyphenless variation.
4221 (logfonts_match): Check generic family.
4222 (font_matches_spec): Don't check generic family here.
4223 (fill_in_logfont): Set generic family based on adstyle.
4224
4225 * w32font.h (w32font_get_cache): Update declaration.
4226
4227 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
4228
4229 * ftfont.c (ftfont_get_cache): Adjust the argument type.
4230
4231 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
4232 If none of the new drivers are available, call font_update_drivers
4233 with the old drivers.
4234
4235 * w32font.c (w32font_get_cache): Adjust the argument type.
4236
4237 * xfont.c (xfont_get_cache): Adjust the argument type.
4238
4239 * font.h (struct font_driver): Change argument type of get_cache.
4240
4241 * xftfont.c (xftfont_start_for_frame): Delete prototype.
4242
4243 * font.c (Ffont_get): Fix arguments to Fassoc.
4244 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
4245 (font_clear_cache): New function.
4246 (font_list_entities, font_matching_entity): Use font_get_cache.
4247 (font_update_drivers): Call font_clear_cache when finishing a driver.
4248
4249 * fontset.c (fontset_find_font): Fix previous change.
4250
4251 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
4252
4253 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
4254 dpyinfo->font_table.
4255 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
4256 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
4257
4258 * font.c (font_at): Handle the case that the arg C is negative.
4259 Handle the unibyte case.
4260 (Ffont_at): Call font_at with the arg C -1.
4261
4262 * xdisp.c (handle_auto_composed_prop): Don't get a character at
4263 the position here, and call font_at with the arg C -1.
4264 Don't check the range of the existing composition at the point.
4265
4266 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
4267
4268 * fontset.c (fontset_add): New args charset_id and family.
4269 Change caller.
4270 (load_font_get_repertory, fontset_find_font): Assume that
4271 font_spec is always a font-spec object.
4272 (Fset_fontset_font): Always store a font-spec object in a fontset.
4273
4274 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
4275 instead of get_property_and_range.
4276
4277 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
4278
4279 * xftfont.c (struct xftfont_info): Delete the member ft_face.
4280 (xftfont_open): Don't keep locking face.
4281 (xftfont_close): Don't unlock face.
4282 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
4283
4284 * fontset.c (fontset_find_font): Don't prefer a font of
4285 supplementary charset.
4286
4287 2008-02-01 Kenichi Handa <handa@m17n.org>
4288
4289 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
4290 script, langsys_tag to langsys, new member script.
4291 (OTF_TAG_STR): Terminate by '\0'.
4292 (ftfont_get_open_type_spec): If :otf prop is is spec, Limit the
4293 listing to the script specified in that property. Fix arg to
4294 OTF_check_features.
4295
4296 2008-02-01 Jason Rumney <jasonr@gnu.org>
4297
4298 * w32font.h: New file.
4299
4300 * w32font.c: Include it.
4301 (struct w32font_info): Add owning_frame field. Move to w32font.h.
4302 (w32font_open): Set owning_frame.
4303 (w32font_text_extents): Use owning_frame.
4304 (struct font_callback_data): Add opentype_only field.
4305 (add_font_entity_to_list): Use it to filter fonts.
4306 Don't check against full name.
4307 (w32font_list_internal): New function.
4308 (w32font_list): Use it.
4309 (w32font_match_internal): New function.
4310 (w32font_match): Use it.
4311 (w32font_open_internal): New function.
4312 (w32font_open): Use it.
4313 (w32font_get_cache, w32font_close, w32font_has_char)
4314 (w32font_encode_char, w32font_text_extents, w32font_draw):
4315 Make non-static.
4316
4317 * makefile.w32-in (w32font.o): Depend on w32font.h.
4318
4319 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
4320
4321 * charset.c (Fdefine_charset_internal): Record a supplementary
4322 charset at the tail of Vcharset_order_list.
4323
4324 * font.c (Ffont_shape_text): Fix the return value.
4325
4326 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
4327
4328 * xdisp.c (handle_auto_composed_prop): Fix previous change.
4329
4330 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
4331
4332 * ftfont.c (struct OpenTypeSpec): New struct.
4333 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
4334 (ftfont_get_open_type_spec): New function.
4335 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
4336
4337 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
4338
4339 2008-02-01 Jason Rumney <jasonr@gnu.org>
4340
4341 * w32font.c (add_font_entity_to_list): Compare only the beginning
4342 of full name.
4343
4344 2008-02-01 Kenichi Handa <handa@m17n.org>
4345
4346 * xdisp.c (handle_auto_composed_prop): Simplify the code.
4347 Never return HANDLED_RECOMPUTE_PROPS.
4348
4349 2008-02-01 Kenichi Handa <handa@m17n.org>
4350
4351 * font.c (font_gstring_produce): Delete it.
4352
4353 * composite.h (COMPOSITION_METHOD):
4354 Handle COMPOSITION_WITH_GLYPH_STRING.
4355
4356 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
4357
4358 * xfont.c (Qx): Delete.
4359 (syms_of_xfont): Don't initialize Qx.
4360
4361 * composite.h (enum composition_method):
4362 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
4363
4364 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
4365
4366 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
4367 (choose_face_font): Accept new form of font-spec.
4368
4369 * frame.h (font_driver_list): Declare it unconditionally.
4370 (struct frame): Define members font_driver_list and font_data_list
4371 unconditionally.
4372
4373 * fontset.c: Include "font.h" unconditionally.
4374 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
4375 (Fset_fontset_font): Accept a font-spec object.
4376
4377 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
4378 PIXEL_SIZE part a wild card.
4379
4380 * dispextern.h (struct glyph_string): Define members clip and
4381 num_clips unconditionally.
4382 (struct face): Define members font_info and extra unconditionally.
4383
4384 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
4385 ftfont_info only when HAVE_LIBOTF is defined.
4386
4387 2008-02-01 Andreas Schwab <schwab@suse.de>
4388
4389 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
4390 and end.
4391
4392 2008-02-01 Jason Rumney <jasonr@gnu.org>
4393
4394 * w32font.c (w32font_driver): Add new fields.
4395
4396 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
4397
4398 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
4399 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
4400 (LIBES): Add @M17N_FLT_CFLAGS@.
4401
4402 * composite.c (compose_text): Don't treat the new style
4403 composition specially.
4404
4405 * emacs.c (main): Call syms_of_font unconditionally.
4406
4407 * font.h (FONT_ENTITY_NOT_LOADABLE)
4408 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
4409 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
4410 (struct font_driver): New member shape.
4411 (font_registry_charsets): Extern it.
4412 (font_find_for_lface, font_prepare_composition): Adjust prototype.
4413 (font_otf_capability, font_drive_otf): Delete their externs.
4414
4415 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
4416 (font_charset_alist, font_registry_charsets): Move from xfont.c
4417 and rename.
4418 (font_prop_validate_otf): New function.
4419 (font_property_table): Register it for QCotf.
4420 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
4421 (font_drive_otf): Delete.
4422 (font_prepare_composition): New arg F. Adjust for the change of
4423 lispy gstring.
4424 (font_find_for_lface): New arg C.
4425 (font_load_for_face): Adjust for the change of font_find_for_lface.
4426 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
4427 lispy gstring.
4428 (Ffont_shape_text): New function.
4429 (Fopen_font): If the font size is not given, use 12-pixel.
4430 (Ffont_at): New arg STRING.
4431 (syms_of_font): Initalize font_charset_alist.
4432 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
4433 conditionally.
4434
4435 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
4436 fonts of the same font-spec. Change the format of RFONT-DEF.
4437 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
4438 Adjust for the change of RFONT-DEF.
4439 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
4440
4441 * ftfont.h: New file.
4442
4443 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
4444 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
4445 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
4446 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
4447 font_otf_capability and font_drive_otf, set ftfont_shape.
4448 (ftfont_list): Adjust for the change of :otf property value.
4449 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
4450 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
4451 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
4452 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
4453 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
4454 (otf_gstring, gstring, m17n_flt_initialized): New variables.
4455
4456 * w32term.c (x_draw_composite_glyph_string_foreground):
4457 Adjust for the change of lispy gstring.
4458
4459 * xdisp.c (handle_composition_prop): Adjust for the change of
4460 lispy gstring. Call a function for auto-composition with the
4461 third arg it->window.
4462 (fill_composite_glyph_string): Adjust for the change of lispy string.
4463 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
4464
4465 * xfaces.c (set_font_frame_param): Adjust for the change of
4466 font_find_for_lface.
4467
4468 * xfont.c (x_font_charset_alist): Move to font.c and rename.
4469 (xfont_registry_charsets): Likewise. Change caller.
4470 (syms_of_xfont): Don't handle x_font_charset_alist.
4471
4472 * xftfont.c: Include "ftfont.h".
4473 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
4474 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
4475 (xftfont_close) [HAVE_LIBOTF]: Close otf.
4476 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
4477 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
4478 Set xftfont_driver.shape to xftfont_shape.
4479
4480 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
4481 the change of lispy gstring.
4482
4483 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
4484
4485 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
4486
4487 2008-02-01 Jason Rumney <jasonr@gnu.org>
4488
4489 * w32font.c (w32font_draw): Fill background manually.
4490
4491 2008-02-01 Jason Rumney <jasonr@gnu.org>
4492
4493 * font.c (Qfontp): Remove unused symbol.
4494 (QCantialias): New symbol.
4495 (syms_of_font): Define it.
4496 (font_property_table): Set a validator for QCantialias.
4497
4498 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
4499 Define if not already.
4500 (QCfamily): Share with xfaces.c.
4501 (Qstandard, Qsubpixel, Qnatural): New symbols.
4502 (syms_of_w32font): Define them. Don't define QCfamily here.
4503 (w32_antialias_type, lispy_antialias_type): New functions.
4504 (w32_enumfont_pattern_entity): New arg requested_font.
4505 Set antialias parameter if non-default was requested.
4506 (fill_in_logfont): Fill in lfQuality if :antialias specified.
4507
4508 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
4509
4510 * lread.c (read1): Undo the previous change.
4511
4512 2008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
4513
4514 * frame.c (Fdelete_frame): Call font_update_drivers only when
4515 USE_FONT_BACKEND is defined.
4516
4517 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
4518
4519 * font.h (struct font_bitmap): New member bits_per_pixel.
4520 (struct font_driver): New members start_for_frame and end_for_frame.
4521 (struct font_data_list): New struct.
4522 (font_put_frame_data, font_get_frame_data): Extern them.
4523
4524 * frame.h (struct frame): New member font_data_list.
4525
4526 * font.c (font_update_drivers): Call driver->start_for_frame and
4527 driver->end_for_frame at proper timings.
4528 (font_put_frame_data, font_get_frame_data): New functions.
4529 (Ffont_spec): Add usage in the docstring.
4530
4531 * frame.c (make_frame): Initialize f->font_data_list to NULL.
4532 (Fdelete_frame): Call font_update_drivers.
4533
4534 * xftfont.c (struct xftface_info): Delete the member xft_draw.
4535 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
4536 (xftfont_get_xft_draw): New function.
4537 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
4538 (xftfont_end_for_frame): New function.
4539 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
4540
4541 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
4542 Change argument. Cache GCs in the per-frame data.
4543 (struct ftxfont_frame_data): New struct.
4544 (ftxfont_draw_bitmap): New arg gc_fore and flush.
4545 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
4546 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
4547 (ftxfont_end_for_frame): New function.
4548 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
4549
4550 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
4551
4552 2008-02-01 Kenichi Handa <handa@m17n.org>
4553
4554 * xselect.c (Vselection_coding_system)
4555 (Vnext_selection_coding_system): Delete them.
4556 (syms_of_xselect): Don't declare selection-coding-system and
4557 next-selection-coding-system. They are declared in select.el.
4558
4559 2008-02-01 Jason Rumney <jasonr@gnu.org>
4560
4561 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
4562
4563 * w32fns.c: Include imm.h.
4564 (get_composition_string_fn, get_ime_context_fn): New optional
4565 system functions.
4566 (globals_of_w32fns): Load them from imm32.dll.
4567 (ignore_ime_char): New flag.
4568 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
4569 WM_IME_ENDCOMPOSITION messages.
4570
4571 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
4572 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
4573
4574 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
4575
4576 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
4577 (READCHAR_REPORT_MULTIBYTE): New macro.
4578 (readchar): New 2nd arg MULTIBYTE.
4579 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
4580 Make symbol's name multibyte according to the multibyteness of the
4581 source.
4582
4583 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
4584
4585 * xfaces.c (face_for_overlay_string): Call lookup_face with
4586 correct arguments (fix of synching with the trunk).
4587
4588 2008-02-01 Kenichi Handa <handa@m17n.org>
4589
4590 * font.c (font_prop_validate_symbol, font_prop_validate_style)
4591 (font_prop_validate_non_neg, font_prop_validate_spacing):
4592 Delete argument prop_index.
4593 (font_property_table): Change arguments to validater. Change Callers.
4594 (font_lispy_object): Delete.
4595 (font_at): Use font_find_object instead fo font_lispy_object.
4596
4597 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
4598
4599 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
4600 and file names.
4601
4602 2008-02-01 Jason Rumney <jasonr@gnu.org>
4603
4604 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
4605 (font_matches_spec): Remove debug output.
4606 (add_font_entity_to_list): Avoid using substituted fonts.
4607
4608 2008-02-01 Jason Rumney <jasonr@gnu.org>
4609
4610 * doc.c (Fsnarf_documentation):
4611 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
4612
4613 2008-02-01 Miles Bader <miles@gnu.org>
4614
4615 * dispextern.h (struct glyph_row): Only define "clip" field if
4616 HAVE_WINDOW_SYSTEM is defined.
4617
4618 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
4619
4620 Fix up multi-tty merge.
4621
4622 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
4623 and indentation.
4624
4625 * xfaces.c (free_realized_face, clear_face_gcs):
4626 Include font_done_for_face in the input_blocked section, just in case.
4627
4628 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
4629 (get_char_face_and_encoding): Undo last change and remove the *other*
4630 duplicate definition (i.e. keep the one that's better scoped and that
4631 includes code for the font-backend).
4632
4633 * terminal.c (create_terminal): Default keyboard_coding to
4634 `no-conversion' and terminal_coding to `undecided'.
4635
4636 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
4637
4638 * fontset.c (free_realized_fontsets): Check that the table entry does
4639 contain a fontset before trying to compare it to `base'.
4640
4641 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
4642 syms_of_charset, and syms_of_coding earlier because init_window_once
4643 now needs Vcoding_system_hash_table to be setup.
4644
4645 * coding.h (default_buffer_file_coding): Remove.
4646
4647 * coding.c (default_buffer_file_coding): Remove.
4648 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
4649 than ->symbol, and use the terminal-local coding system.
4650 (syms_of_coding): Don't setup the coding-systems that are not
4651 terminal-local.
4652 (Fdefine_coding_system_internal): Use XCAR/XCDR.
4653
4654 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
4655 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
4656
4657 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
4658 in chartab.c and were re-added here by mistake.
4659 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
4660
4661 * doc.c (Fsnarf_documentation):
4662 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
4663 src to etc.
4664
4665 * ChangeLog.10: Add mistakenly removed entry.
4666
4667 2008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
4668
4669 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
4670
4671 2008-02-01 Miles Bader <miles@gnu.org>
4672
4673 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
4674 Add extra args to FACE_FOR_CHAR.
4675
4676 2008-02-01 Kenichi Handa <handa@m17n.org>
4677
4678 * keymap.c (where_is_internal_1): If key is a cons, store the copy
4679 in sequence.
4680
4681 * chartab.c (map_sub_char_table, map_char_table): If the range
4682 contains just one character, call the function with that character
4683 even if the depth is not 3.
4684
4685 2008-02-01 Jason Rumney <jasonr@gnu.org>
4686
4687 * w32font.c (w32font_text_extents): Calculate metrics for the
4688 whole string.
4689
4690 2008-02-01 Jason Rumney <jasonr@gnu.org>
4691
4692 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
4693
4694 2008-02-01 Jason Rumney <jasonr@gnu.org>
4695
4696 * w32term.c (x_set_glyph_string_clipping): Use
4697 get_glyph_string_clip_rects.
4698 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
4699 Adjust for the change of struct glyph_string.
4700
4701 * w32font.c (w32font_draw): Do clipping here.
4702
4703 2008-02-01 Kenichi Handa <handa@m17n.org>
4704
4705 * xftfont.c (xftfont_draw): Adjust for the change of struct
4706 glyph_string.
4707
4708 * xterm.c (x_set_glyph_string_clipping): Use
4709 get_glyph_string_clip_rects.
4710 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
4711 Adjust for the change of struct glyph_string.
4712
4713 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
4714 the resulting clip(s}.
4715 (expose_overlaps): Add arg r. Change callers. Set it to
4716 row->clip temporarily.
4717 (expose_window): Redraw rows overlapping the exposed area.
4718
4719 * dispextern.h (struct glyph_row): New member clip.
4720 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
4721 clip_height, new member clip, and num_clips.
4722
4723 2008-02-01 Kenichi Handa <handa@m17n.org>
4724
4725 * data.c (Fchar_or_string_p): Fix docstring.
4726
4727 2008-02-01 Kenichi Handa <handa@m17n.org>
4728
4729 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
4730 create a temporal XftDraw object.
4731
4732 2008-02-01 Kenichi Handa <handa@m17n.org>
4733
4734 * font.c (Ffontp): Fix docstring.
4735
4736 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
4737 strong evidence of ISO-2022.
4738
4739 2008-02-01 Kenichi Handa <handa@m17n.org>
4740
4741 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
4742 SYNTAX_ENTRY_FOLLOW_PARENT.
4743
4744 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
4745
4746 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
4747 its type.
4748 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
4749 Update to the new type of weak_hash_tables and next_weak.
4750
4751 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
4752 a plain C pointer to Lisp_Hash_Table.
4753
4754 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
4755 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
4756 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
4757 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
4758 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
4759 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
4760 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
4761 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
4762 (GC_EQ): Remove since they've been identical to their non-GC_
4763 alter-egos ever since the markbit was eradicated.
4764
4765 * alloc.c:
4766 * buffer.c:
4767 * buffer.h:
4768 * data.c:
4769 * fileio.c:
4770 * filelock.c:
4771 * fns.c:
4772 * frame.h:
4773 * lisp.h:
4774 * macterm.c:
4775 * print.c:
4776 * process.c:
4777 * w32fns.c:
4778 * w32menu.c:
4779 * w32term.c:
4780 * xfns.c:
4781 * xmenu.c:
4782 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
4783
4784 2008-02-01 Kenichi Handa <handa@m17n.org>
4785
4786 * chartab.c (map_sub_char_table): Make it work for the top-level
4787 char-table. Fix handling of parent char-table.
4788 (map_char_table): Adjust for the above change.
4789
4790 2008-02-01 Jason Rumney <jasonr@gnu.org>
4791
4792 * w32font.c (Qgdi): Rename from Qw32.
4793
4794 2008-02-01 Jason Rumney <jasonr@gnu.org>
4795
4796 * w32bdf.c (get_quoted_string): Make function static.
4797
4798 2008-02-01 Kenichi Handa <handa@m17n.org>
4799
4800 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
4801 bigger ascent and descent than those of the font, use them as
4802 font's ascent and descent.
4803
4804 2008-02-01 Kenichi Handa <handa@m17n.org>
4805
4806 * Makefile.in (${lispsource}international/charprop.el): Move this
4807 target within "#ifdef HAVE_UNIDATA" and "#endif".
4808
4809 2008-02-01 Kenichi Handa <handa@m17n.org>
4810
4811 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
4812 (shortlisp): Add ../lisp/language/tai-viet.el.
4813
4814 2008-02-01 Ulrich Mueller <ulm@gentoo.org>
4815
4816 * Makefile.in (${lispsource}international/charprop.el): Depend on
4817 temacs${EXEEXT}.
4818
4819 2008-02-01 Jason Rumney <jasonr@gnu.org>
4820
4821 * w32font.c (w32font_close): Delete the GDI font object.
4822
4823 * w32menu.c: Include character.h.
4824
4825 * w32proc.c: Likewise.
4826
4827 * w32select.c: Likewise.
4828
4829 * makefile.w32-in (w32proc.o): Depend on character.h.
4830
4831 2008-02-01 Jason Rumney <jasonr@gnu.org>
4832
4833 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
4834
4835 * w32menu.c (syms_of_w32menu): Likewise.
4836
4837 * w32proc.c (syms_of_ntproc): Likewise.
4838
4839 * w32select.c (syms_of_w32select): Likewise.
4840
4841 * w32term.c (syms_of_w32term): Likewise.
4842
4843 2008-02-01 Jason Rumney <jasonr@gnu.org>
4844
4845 * w32font.c (w32font_draw): Delete brush after using it.
4846
4847 2008-02-01 Jason Rumney <jasonr@gnu.org>
4848
4849 * w32font.c (w32font_open): Don't set font_idx.
4850 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
4851 to font settings.
4852 (w32font_draw): Fill background explicitly.
4853
4854 2008-02-01 Jason Rumney <jasonr@gnu.org>
4855
4856 * w32term.c (w32_initialize): Don't call w32font_initialize.
4857
4858 * w32font.c (w32font_info): Remove subranges.
4859 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
4860 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
4861 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
4862 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
4863 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
4864 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
4865 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
4866 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
4867 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
4868 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
4869 New symbols.
4870 (font_callback_data): New struct.
4871 (w32font_list, w32font_match): Use it.
4872 (w32font_open): Don't populate subranges.
4873 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
4874 (w32font_encode_char): Always return unicode code-point as-is.
4875 (w32font_text_extents): Supply a tranformation matrix to
4876 GetGlyphOutline. Never look up by glyph index. Avoid looping
4877 twice. Use unicode version of GetTexExtentPoint32 instead of
4878 glyph index version.
4879 (set_fonts_frame): Remove.
4880 (w32_enumfont_pattern_entity): Add frame parameter, use it to
4881 set frame parameter. Use backward compatible fake foundries.
4882 Save generic family in extra slot under QCfamily. Make width slot
4883 constant. Save QCspacing value. Save list of scripts instead of
4884 binary subranges.
4885 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
4886 (add_font_entity_to_list): Use font_callback_data struct. Filter
4887 unwanted fonts.
4888 (add_one_font_entity_to_list): Use font_callback_data struct.
4889 (w32_registry): Default to iso10646_1.
4890 (fill_in_logfont): Use dpi from extra slot. Don't bother with
4891 string font registries. Don't fill in font name if it is a generic
4892 family name, fill family instead. Use spacing, family and script
4893 extra info to fill pitch, family and charset fields.
4894 (list_all_matching_fonts): Use font_callback_data struct.
4895 (unicode_range_for_char): Remove.
4896 (font_supported_scripts): New function.
4897 (w32font_initialize): Remove.
4898 (syms_of_w32font): Update which symbols are defined.
4899
4900 2008-02-01 Jason Rumney <jasonr@gnu.org>
4901
4902 * font.c (font_pixel_size): Reverse assq_no_quit args.
4903
4904 * w32term.h (FONT_WIDTH): Report max width, not average.
4905 (FONT_MAX_WIDTH): Remove.
4906 (FONT_AVG_WIDTH): New macro.
4907
4908 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
4909 redefinition of FONT_WIDTH.
4910
4911 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
4912 (w32_cache_char_metrics): Use FONT_WIDTH.
4913
4914 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
4915
4916 2008-02-01 Jason Rumney <jasonr@gnu.org>
4917
4918 * w32font.c (w32font_open): Make lfHeight negative.
4919
4920 * w32fns.c (x_default_font_parameter): Use new style font name.
4921 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
4922
4923 2008-02-01 Jason Rumney <jasonr@gnu.org>
4924
4925 * w32font.c (QCsubranges): New symbol.
4926 (w32font_open, w32font_has_char): Get subranges from subproperty
4927 of extra.
4928 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
4929 (syms_of_w32font): Define :subranges symbol.
4930
4931 * font.c (font_put_extra): Expose externally.
4932
4933 * font.h (font_put_extra): Move declaration from font.c.
4934
4935 * font.c (Ffont_get): Use font driver to determine otf capability.
4936 (adjust_anchor): Check if driver defines anchor_point before using.
4937
4938 * w32font.c (w32font_open): Handle size, height and pixel_size better.
4939 (w32font_draw): Use options.
4940 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
4941 Fix detection of truetype fonts.
4942 (registry_to_w32_charset): Handle charsets other than iso8859-1
4943 expressed as lisp symbols.
4944 (w32_registry): Express charset as lisp symbol.
4945 (fill_in_logfont): Reverse pixel and point height logic.
4946 Don't set width here. Set quality to default.
4947
4948 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
4949 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
4950
4951 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
4952 Remove redundant loop and allocation.
4953
4954 * makefile.w32-in (font.o, w32font.o): New objects.
4955 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
4956 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
4957
4958 * xdisp.c (fill_composite_glyph_string): Make the first arg to
4959 STORE_XCHARB a valid l-value.
4960
4961 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
4962 calculations for non-Truetype fonts.
4963 (x_draw_glyph_string): Sync with xterm.c.
4964 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
4965 Remove redundant code.
4966 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
4967
4968 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
4969 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
4970
4971 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
4972 (x_to_w32_charset, w32_to_x_charset): Expose externally.
4973
4974 * w32font.c: New file for w32 font backend.
4975
4976 2008-02-01 Kenichi Handa <handa@m17n.org>
4977
4978 * term.c: Don't include "buffer.h" twice.
4979
4980 2008-02-01 Kenichi Handa <handa@m17n.org>
4981
4982 * character.c (Funibyte_string): New function.
4983 (syms_of_character): Defsubr it.
4984
4985 2008-02-01 Jason Rumney <jasonr@gnu.org>
4986
4987 * w32term.c [USE_FONT_BACKEND]:
4988 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
4989 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
4990 (x_draw_glyph_string, x_draw_glyph_string_foreground)
4991 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
4992 (x_free_frame_resources): Sync with xterm.c.
4993
4994 2008-02-01 Andreas Schwab <schwab@suse.de>
4995
4996 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
4997 char-table size.
4998
4999 2008-02-01 Kenichi Handa <handa@m17n.org>
5000
5001 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
5002
5003 2008-02-01 Kenichi Handa <handa@m17n.org>
5004
5005 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
5006 font_otf_gpos, add font_drive_otf.
5007
5008 * fontset.c (fontset_find_font): Pay attention to font size
5009 specified for a font.
5010 (reorder_font_vector): Check contents of font_def.
5011
5012 * font.c (struct otf_list): Delete it.
5013 (otf_list): Make it a lisp variable.
5014 (otf_open): Use lispy otf_list.
5015 (generate_otf_features): Rename from parse_gsub_gpos_spec.
5016 (check_otf_features): New function.
5017 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
5018 New functions.
5019 (font_drive_otf): New function merging font_otf_gsub and
5020 font_otf_gpos.
5021 (font_open_for_lface): New arg spec. Change argument order.
5022 (font_load_for_face): Adjust for the change of font_open_for_lface.
5023 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
5024 Ffont_otf_gpos.
5025 (syms_of_font): Staticpro otf_list. Delete defsubr of
5026 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
5027
5028 * xfaces.c (set_font_frame_param): Adjust for the change of
5029 font_open_for_lface.
5030
5031 * font.h (font_open_for_lface): Adjust prototype.
5032 (struct font_driver): Delete members otf_gsub and otf_gpos, add
5033 member otf_drive.
5034 (font_otf_gsub, font_otf_gpos): Delete externs.
5035 (font_drive_otf): Extern it.
5036
5037 2008-02-01 Kenichi Handa <handa@m17n.org>
5038
5039 * font.c (font_at): If the window W is not on a window system,
5040 return Qnil.
5041
5042 * coding.c (produce_chars, encode_coding): Don't call
5043 insert_from_gap if no characters to produce.
5044
5045 2008-02-01 Kenichi Handa <handa@m17n.org>
5046
5047 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
5048 Fclear_face_cache.
5049
5050 * xfaces.c (face_for_font): Check also face->font==font->font.font.
5051
5052 2008-02-01 Miles Bader <miles@gnu.org>
5053
5054 * emacs.c (main): Change default value of `enable_font_backend' to 1.
5055 Parse "--disable-font-backend" option.
5056 (standard_args): Add "--disable-font-backend" option.
5057
5058 2008-02-01 Kenichi Handa <handa@m17n.org>
5059
5060 * fontset.c (fontset_find_font): New function.
5061 (fontset_font): Use fontset_find_font.
5062 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
5063 Register the specified font for all Latin characters.
5064 (new_fontset_from_font): Register the specified font for all Latin
5065 characters.
5066 (dump_fontset): For a realized fontset, include the base fontset
5067 name in the returned vector.
5068
5069 2008-02-01 Kenichi Handa <handa@m17n.org>
5070
5071 * character.h (CHAR_STRING): Cast C to unsigned on calling
5072 char_string.
5073
5074 * character.c (char_string): Type of arg C changed to unsigned.
5075 Signal an error if C is an invalid character code.
5076
5077 * editfns.c (general_insert_function, Fchar_to_string):
5078 Use CHARACTERP, not INTEGERP.
5079
5080 2008-02-01 Kenichi Handa <handa@m17n.org>
5081
5082 * character.h (MIN_MULTIBYTE_LEADING_CODE)
5083 (MAX_MULTIBYTE_LEADING_CODE): New macros.
5084
5085 * regex.c (analyse_first): Fix for multibyte characters in "case
5086 charset:" and "case categoryspec:".
5087
5088 2008-02-01 Andreas Schwab <schwab@suse.de>
5089
5090 * Makefile.in (LIBES): Move standard libraries to the end.
5091
5092 2008-02-01 Kenichi Handa <handa@m17n.org>
5093
5094 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
5095 nonzero, don't shrink the buffer nextb.
5096
5097 * buffer.h (struct buffer_text): New member inhibit_shrinking.
5098
5099 * coding.c (coding_alloc_by_making_gap): New arg offset.
5100 (alloc_destination): Call coding_alloc_by_making_gap with the arg
5101 offset.
5102 (decode_coding_iso_2022): Update coding->safe_charsets.
5103 (decode_coding_gap): Temporarily set
5104 current_buffer->text->inhibit_shrinking to 1.
5105
5106 2008-02-01 Kenichi Handa <handa@m17n.org>
5107
5108 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
5109 indexing into elements of s->cmp and s->char2b.
5110
5111 2008-02-01 Juanma Barranquero <lekktu@gmail.com>
5112
5113 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
5114
5115 2008-02-01 Kenichi Handa <handa@m17n.org>
5116
5117 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
5118 target_multibyte instead of multibyte.
5119 (re_match_2_internal): Call bcmp_translate with target_multibyte.
5120 (bcmp_translate): Change the argument name from multibyte to
5121 target_multibyte.
5122
5123 2008-02-01 Kenichi Handa <handa@m17n.org>
5124
5125 These changes are to compile a regexp into a pattern that can be
5126 used both for multibyte and unibyte targets.
5127
5128 * Makefile.in (search.o): Depend on charset.h.
5129
5130 * character.c (multibyte_char_to_unibyte_safe): New function.
5131
5132 * search.c: Include "charset.h".
5133 (compile_pattern_1): Delete argument multibyte. Don't set
5134 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
5135 (compile_pattern): Don't compare cp->buf.target_multibyte.
5136 Compare cp->buf.charset_unibyte.
5137 (compile_pattern): Set cp->buf.target_multibyte.
5138
5139 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
5140
5141 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
5142
5143 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
5144 multibyte. Change callers.
5145 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
5146 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
5147 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
5148 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
5149 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
5150 (regex_compile): Make the compiled pattern usable both for
5151 multibyte and unibyte targets.
5152 (analyse_first): Make the fastmap usable both for multibyte and
5153 unibyte targets.
5154 (TRANSLATE_VIA_MULTIBYTE): Delete.
5155 (re_match_2_internal): Pay attention to the case that the
5156 multibyteness of bufp and target may be different.
5157
5158 2008-02-01 Kenichi Handa <handa@m17n.org>
5159
5160 * xdisp.c (x_produce_glyphs): When a font is not found, make the
5161 empty box occupy at least one column width.
5162
5163 2008-02-01 Miles Bader <miles@gnu.org>
5164
5165 * Makefile.in: Remove redundant HAVE_XFT clause.
5166
5167 2008-02-01 Kenichi Handa <handa@m17n.org>
5168
5169 * xrdb.c (x_load_resources): Setup the default fontSet X reource.
5170
5171 2008-02-01 Kenichi Handa <handa@m17n.org>
5172
5173 * fontset.c (Finternal_char_font): Fix for the case of POSITION
5174 being nil.
5175
5176 2008-02-01 Kenichi Handa <handa@m17n.org>
5177
5178 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
5179
5180 2008-02-01 Kenichi Handa <handa@m17n.org>
5181
5182 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
5183
5184 2008-02-01 Kenichi Handa <handa@m17n.org>
5185
5186 * search.c (simple_search): Fix previous change.
5187
5188 2008-02-01 Kenichi Handa <handa@m17n.org>
5189
5190 * xftfont.c (ftfont_font_format): Extern declaration.
5191
5192 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
5193
5194 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
5195 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
5196
5197 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
5198 (ftfont_font_format): Fix previous change.
5199
5200 * font.h (Ffont_xlfd_name): EXFUN it.
5201
5202 * font.c (font_parse_xlfd): Fix the array size of `f'.
5203 (register_font_driver): Use EQ to compare driver->type.
5204
5205 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
5206 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
5207 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
5208
5209 2008-02-01 Kenichi Handa <handa@m17n.org>
5210
5211 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
5212 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
5213
5214 2008-02-01 Kenichi Handa <handa@m17n.org>
5215
5216 * xfont.c (xfont_open): Set font->format.
5217
5218 * xftfont.c (xftfont_open): Set font->format.
5219
5220 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
5221 (ftfont_list): Include FC_FONTFORMAT in FcObject.
5222 (ftfont_open): Set font->format.
5223 (ftfont_font_format): New function.
5224
5225 * font.h (struct font): New memeber format.
5226
5227 * font.c (Qopentype): New variable.
5228 (syms_of_font): Defsym it.
5229 (Fquery_font): Change the format of the last element of the return
5230 value.
5231
5232 2008-02-01 Kenichi Handa <handa@m17n.org>
5233
5234 * xfns.c (xic_create_xfontset): Try the default fontset name as a
5235 last resort.
5236
5237 2008-02-01 Kenichi Handa <handa@m17n.org>
5238
5239 * coding.c (detect_coding_charset): Fix detection of multi-byte
5240 charset.
5241
5242 2008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
5243
5244 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
5245
5246 2008-02-01 Kenichi Handa <handa@m17n.org>
5247
5248 * xdisp.c (get_next_display_element): Set it->face_id for the
5249 first component of a composition.
5250 (x_produce_glyphs): Check if the font is changed or not for composition.
5251
5252 2008-02-01 Kenichi Handa <handa@m17n.org>
5253
5254 * fontset.c (Qlatin): New variable.
5255 (syms_of_fontset): Define it as a lisp symbol.
5256 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
5257
5258 2008-02-01 Kenichi Handa <handa@m17n.org>
5259
5260 * font.c (font_unparse_fcname): Pay attention to the case that
5261 some of font property is a null string.
5262
5263 2008-02-01 Kenichi Handa <handa@m17n.org>
5264
5265 * term.c: Include "composite.h".
5266 (encode_terminal_code): Output all components of composition.
5267 Check the size of encode_terminal_src.
5268 (produce_glyphs): For composition, call produce_composite_glyph.
5269 (append_composite_glyph, produce_composite_glyph): New functions.
5270
5271 * xdisp.c (x_produce_glyphs): In handling composition, if a font
5272 is not found, get font_info from the current ascii face.
5273
5274 2008-02-01 Kenichi Handa <handa@m17n.org>
5275
5276 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
5277 buffer-file-name to Qnil before calling insert_from_buffer.
5278
5279 * font.c (font_unparse_fcname): Pay attention to the case that
5280 foundry is a null string.
5281
5282 2008-02-01 Kenichi Handa <handa@m17n.org>
5283
5284 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
5285
5286 * font.c (Qunicode_sip): New variable.
5287 (syms_of_font): Declare it as a Lisp symbol.
5288
5289 * font.h (Qunicode_sip): Extern it.
5290
5291 2008-02-01 Kenichi Handa <handa@m17n.org>
5292
5293 * composite.c (get_composition_id): Pay attention to TAB component.
5294
5295 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
5296 TAB. Adjust for the change of s->char2b which always points to
5297 the first elememnt of allocated memory.
5298
5299 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
5300
5301 * xdisp.c (handle_composition_prop): Set it->c to the first
5302 non-TAB component.
5303 (fill_composite_glyph_string): Change argument.
5304 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
5305 (x_produce_glyphs): Fix handling of left/right padding.
5306
5307 2008-02-01 Kenichi Handa <handa@m17n.org>
5308
5309 * coding.c (detect_coding_system): Fix for handling off
5310 inhibit_iso_escape_detection. Fix for the case that no coding
5311 system is defined for a specific coding category.
5312
5313 2008-02-01 Kenichi Handa <handa@m17n.org>
5314
5315 * font.c (font_matching_entity): Delete unused local var.
5316
5317 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
5318 opening a font.
5319
5320 * fileio.c (Finsert_file_contents): On recovering a file, assume
5321 Unix-like eol.
5322 (choose_write_coding_system): On auto-saving a file, force
5323 Unix-like eol.
5324
5325 * coding.c (setup_coding_system): Fix setting of
5326 coding->common_flags based on eol_type.
5327 (coding_inherit_eol_type): If PARENT is not nil, be sure to
5328 inherit from it.
5329
5330 2008-02-01 Kenichi Handa <handa@m17n.org>
5331
5332 * alloc.c (NSTATICS): Increas to 0x600.
5333
5334 2008-02-01 Kenichi Handa <handa@m17n.org>
5335
5336 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
5337 (ftfont_list): Don't check :name property.
5338 (ftfont_match): New function.
5339 (ftfont_pattern_entity): If the pattern doesn't contain
5340 FC_SPACING, don't assuce FC_MONO.
5341
5342 * font.h (struct font_driver): New member `match'.
5343 (font_update_drivers): Adjust prototype.
5344
5345 * font.c (font_parse_fcname, font_parse_name): Don't change :name
5346 property of FONT.
5347 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
5348 them unconditionally.
5349 (font_matching_entity): New function.
5350 (font_open_by_name): Try font_matching_entity if exact match is
5351 not found.
5352 (font_update_drivers): Delete the arg FONT. Return a list of
5353 actually used backends. Don't free faces, font caches here.
5354 Don't store data in frame parameters. Don't call x_set_font.
5355 (Ffont_spec): Store :name property as is.
5356 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
5357 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
5358 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
5359 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
5360 Call font->driver->otf_gsub instead of font_otf_gsub.
5361
5362 * frame.c (x_set_font_backend): Do more works that were done in
5363 font_update_drivers before.
5364
5365 * xfont.c (xfont_match): New function.
5366 (xfont_driver): Set xfont_driver.match to xfont_match.
5367 (xfont_draw): Set font in GC if necessary.
5368
5369 * ftxfont.c (ftxfont_match): New function.
5370 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
5371
5372 * xftfont.c (xftfont_match): New function.
5373 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
5374
5375 2008-02-01 Kenichi Handa <handa@m17n.org>
5376
5377 * font.h (struct font): New member scalable.
5378 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
5379 (font_otf_gsub): Adjust prototype.
5380
5381 * font.c (font_otf_capability): Fix handling of the default langsys.
5382 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
5383 Check the contents of SPEC.
5384 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
5385 (check_gstring): New function.
5386 (REPLACEMENT_CHARACTER): New macro.
5387 (font_otf_gsub): New arg alternate_subst. Be sure to set all
5388 glyph codes of GSTRING.
5389 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
5390 (font_prepare_composition): Set cmp->glyph_len.
5391 (font_open_entity): Set font->scalable.
5392 (Ffont_get): Handle :otf property.
5393 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
5394 functions.
5395 (Fquery_font): Use font->font.full_name.
5396 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
5397 Sfont_otf_alternates.
5398
5399 * ftfont.c (ftfont_open): Set font->font.full_name and
5400 font->font.name properly. Fix calculation of font->font.height
5401 and font->min_width.
5402
5403 * ftxfont.c (ftxfont_create_gcs): New function.
5404 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
5405 (ftxfont_draw_backgrond): Fix filling region.
5406 (ftxfont_default_fid): New function.
5407 (ftxfont_open): Set xfotn->fid to the return value of
5408 ftxfont_default_fid.
5409 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
5410 (ftxfont_done_face): Free only GCs that are created by
5411 ftxfont_create_gcs.
5412 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
5413
5414 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
5415 Clip to src->width, etc (not src->clip_XXX).
5416
5417 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
5418 FontBackend frame parameter.
5419
5420 2008-02-01 Kenichi Handa <handa@m17n.org>
5421
5422 * font.h (struct font_driver_list): New member `on'.
5423 (Fclear_font_cache): EXFUN it.
5424 (font_update_drivers): Extern it.
5425
5426 * font.c (font_unparse_fcname): Fix typo (swidth->width).
5427 (font_list_entities): Check driver_list->on.
5428 (register_font_driver): Initalize `on' member to 0.
5429 (font_update_drivers): New function.
5430 (Fclear_font_cache): Check driver_list->on.
5431
5432 * frame.h (Qfont_backend): Extern it.
5433 (x_set_font_backend): Extern it.
5434
5435 * frame.c (Qfont_backend): New variable.
5436 (frame_parms): New element for font-backend.
5437 (x_set_font_backend): New function.
5438
5439 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
5440 FontBackend frame parameter.
5441 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
5442 x_set_font_backend.
5443
5444 * xfont.c (xfont_list): Don't try listing by :name property if the
5445 name is not for XLFD.
5446
5447 2008-02-01 Kenichi Handa <handa@m17n.org>
5448
5449 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
5450 (LGLYPH_SET_TO): New macros.
5451 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
5452 element of G is vector or not.
5453 (font_at): Extern it.
5454
5455 * font.c: Include window.h.
5456 (font_lispy_object): New function.
5457 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
5458 end of valid glyph.
5459 (font_close_object): Fix getting (struct font *).
5460 (font_at): New function.
5461 (Ffont_get): If FONT is a font-object, get entity from it.
5462 (Ffont_make_gstring): Initialize elements of glyphs with nil.
5463 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
5464 range check.
5465 (Ffont_at): New function.
5466 (syms_of_font): Defsubr Sfont_at.
5467
5468 * xdisp.c (it_props): Move the entry for Qauto_composed to just
5469 before the entry for Qcomposition.
5470 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
5471 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
5472 the font in gstring.
5473 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
5474 LGLYPH_FORM (g) to detect the end of valid glyph.
5475 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
5476 we are composing with gstring.
5477
5478 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
5479 Check if adjustment is vector or not.
5480
5481 * Makefile.in (font.o): Make it depends on window.h.
5482
5483 2008-02-01 Kenichi Handa <handa@m17n.org>
5484
5485 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
5486 adjustment is vector or not.
5487
5488 2008-02-01 Miles Bader <miles@gnu.org>
5489
5490 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
5491
5492 2008-02-01 Kenichi Handa <handa@m17n.org>
5493
5494 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
5495 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
5496 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
5497
5498 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
5499 (DEVICE_DELTA): Fix typo.
5500 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
5501 LGLYPH format.
5502
5503 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
5504 the change of LGLYPH format.
5505
5506 2008-02-01 Kenichi Handa <handa@m17n.org>
5507
5508 * ftfont.c (ftfont_list): Fix typo.
5509 (ftfont_build_basic_charsets): Don't include letters with diacritics.
5510
5511 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
5512
5513 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
5514
5515 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
5516 xftface_info is non-NULL.
5517
5518 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
5519
5520 * ftfont.c (ftfont_list): Move misplaced #endif.
5521
5522 2008-02-01 Kenichi Handa <handa@m17n.org>
5523
5524 * ftfont.c (ftfont_list): Pay attention to the case that
5525 FC_CAPABILITY is not defined.
5526
5527 2008-02-01 Kenichi Handa <handa@m17n.org>
5528
5529 * xftfont.c (xftfont_open): Set charset related members to -1.
5530
5531 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
5532 QCname.
5533 (ftfont_open): Set charset related members to -1.
5534
5535 * fontset.c (Votf_script_alist): New variable.
5536 (syms_of_fontset): Initialize it.
5537 (fontset_font): Delete unused variable.
5538
5539 * fontset.h (Votf_script_alist): Extern it.
5540
5541 * font.c (font_find_for_lface): Optimize code.
5542
5543 * font.h (font_close_object, font_merge_old_spec): Extern them.
5544
5545 2008-02-01 Kenichi Handa <handa@m17n.org>
5546
5547 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
5548 (syms_of_font): Initialize them.
5549 (font_pixel_size): Allow float value in dpi.
5550 (font_prop_validate_type): Delete.
5551 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
5552 Change caller.
5553 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
5554 (font_prop_validate_extra): Delete.
5555 (font_prop_validate_spacing): New function.
5556 (font_property_table): Add elements for all known properties.
5557 (get_font_prop_index): Rename from check_font_prop_name. New
5558 argument FROM. Change caller.
5559 (font_prop_validate): Validate all known properties.
5560 (font_put_extra): Delete argument force. Change caller.
5561 (font_expand_wildcards): Make it static. Fix the way of shrinking
5562 the possible range.
5563 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
5564 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
5565 Change caller.
5566 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
5567 (font_parse_fcname): Delete argument merge. Fix parsing of point
5568 size. Don't validate properties values here. Change caller.
5569 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
5570 (font_open_by_name): Delete unused variable.
5571 (Ffont_spec): Likewise. Validate property values.
5572 (Ffont_match_p): New function.
5573
5574 * font.h (QCscalable): Extern it.
5575 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
5576
5577 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
5578
5579 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
5580 (xfont_list_pattern): New function.
5581 (xfont_list): Use xfont_list_pattern.
5582
5583 2008-02-01 Kenichi Handa <handa@m17n.org>
5584
5585 * font.h (Flist_fonts): EXFUN it.
5586
5587 2008-02-01 Jason Rumney <jasonr@gnu.org>
5588
5589 * w32term.c (w32_initialize): Add back smoothing_type and
5590 smoothing_enabled definitions.
5591
5592 2008-02-01 Kenichi Handa <handa@m17n.org>
5593
5594 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
5595 s->face->font on determining underline position.
5596
5597 2008-02-01 Kenichi Handa <handa@m17n.org>
5598
5599 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
5600 (font_has_char): Accept font-object too.
5601 (font_find_for_lface): Try at first with a size specified in face.
5602
5603 2008-02-01 Kenichi Handa <handa@m17n.org>
5604
5605 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
5606 font_open_by_name.
5607
5608 2008-02-01 Kenichi Handa <handa@m17n.org>
5609
5610 * font.h (QCspacing, QCdpi): Extern them.
5611 (enum font_spacing): New enum.
5612 (FONT_PIXEL_SIZE_QUANTUM): New macro.
5613
5614 * font.c (POINT_TO_PIXEL): Don't divice POINT by 10.
5615 (QCspacing, QCdpi): New variables.
5616 (syms_of_font): Initialize them.
5617 (font_pixel_size): New function.
5618 (font_put_extra): New function.
5619 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
5620 in FONT_EXTRA.
5621 (font_parse_fcname): Handle enumenrated values (e.g. bold).
5622 Fix handling font size. Add QCname property that contains only
5623 unknown properties.
5624 (font_score): Change argument. Change caller. Pay attention to
5625 FONT_PIXEL_SIZE_QUANTUM.
5626 (font_sort_entites, font_list_entities, font_find_for_lface)
5627 (font_open_for_lface, font_open_by_name): Fix handling of font size.
5628 (Ffont_spec): Add QCname property that contains only unknown properties.
5629
5630 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
5631 include weight in listing pattern, instead check weight of each
5632 listed font. Don't include scalable in pattern. Pay attention to
5633 FONT_PIXEL_SIZE_QUANTUM.
5634
5635 2008-02-01 Kenichi Handa <handa@m17n.org>
5636
5637 * font.c (font_parse_fcname): Fix parsing of point-size.
5638 (font_unparse_fcname): Produce symbolic names for style properties.
5639 (font_list_entities): Handle float size correctly.
5640 (font_open_by_name): Prefer `normal' property values if the name
5641 doesn't specify them.
5642
5643 * fontset.c (Finternal_char_font): Use font_get_name, not
5644 Ffont_xlfd_name.
5645
5646 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
5647 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
5648 pattern. Don't force scalable.
5649
5650 * xftfont.c (xftfont_open): For generating a name, start from
5651 96-byte buffer.
5652
5653 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
5654
5655 * frame.h (x_new_fontset2): Fix prototype.
5656
5657 2008-02-01 Kenichi Handa <handa@m17n.org>
5658
5659 * font.h (struct font_driver): Delete member parse_name.
5660 (font_match_p, font_get_spec, font_parse_fcname)
5661 (font_unparse_fcname): Extern them.
5662 (font_get_name): Adjust prototype.
5663
5664 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
5665 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
5666 (font_expand_wildcards): Fix handling ENCODING field. Avoid
5667 unnecessary checks for weight, slant, and swidth.
5668 (font_parse_fcname): New function.
5669 (font_unparse_fcname): New function.
5670 (font_parse_name): New function.
5671 (font_match_p): New function.
5672 (font_get_name): Change return value to Lisp string.
5673 (font_get_spec): New function.
5674 (Qunspecified, Qignore_defface): Don't extern them.
5675 (font_find_for_lface): Assume that LFACE is fully specified.
5676 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
5677 object, use it for FACE.
5678 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
5679 driver->parse_name.
5680 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
5681
5682 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
5683 prototype.
5684
5685 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
5686 argument F. Don't call Fnew_fontset. Instead, directly call
5687 make_fontset.
5688
5689 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
5690
5691 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
5692 of x_new_fontset2.
5693
5694 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
5695 (Qsans__serif): New variables.
5696 (ftfont_generic_family_list): New variable.
5697 (syms_of_ftfont): Initialize the above variables.
5698 (ftfont_pattern_entity): Delete argument NAME.
5699 (ftfont_list_generic_family): New function.
5700 (ftfont_parse_name): Delete this function.
5701 (ftfont_list): Try generic family only when FcFontList found no font.
5702 (ftfont_list_family): Fix args to FcObjectSetBuild.
5703
5704 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
5705 object in attrs[LFACE_FONT_INDEX].
5706 (set_lface_from_font_name): Cancel all changes for font-backend.
5707 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
5708 function.
5709 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
5710 font object in QCfont attribute.
5711 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
5712 (realize_default_face) [USE_FONT_BACKEND]: Call
5713 set_lface_from_font_and_fontset.
5714
5715 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
5716 "fixed", and signal error here if no suitable font was found.
5717
5718 * xfont.c (xfont_parse_name): Delete this function.
5719
5720 * xftfont.c (xftfont_open): Change coding style of error
5721 handling. Generate fontconfig's fontname pattern.
5722
5723 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
5724 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
5725
5726 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
5727 Both args FONTSET and FONT_OBJECT must be existing ones.
5728
5729 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5730
5731 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
5732
5733 2008-02-01 Kenichi Handa <handa@m17n.org>
5734
5735 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
5736
5737 * font.h (struct font): Fix typo.
5738
5739 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
5740 XLFD_XXX_INDEX.
5741 (enum xlfd_field_mask): New enum.
5742 (intern_font_field): Changed argument. Change caller. If digits
5743 are followed by non-digits, return a symbol.
5744 (font_expand_wildcards): New function.
5745 (font_parse_xlfd): Fix wildcard handling.
5746 (Ffont_spec): If :name is specified, reflect the info in the other
5747 properties.
5748
5749 * ftfont.c (ftfont_pattern_entity): Fix typo.
5750 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
5751 locale.
5752
5753 2008-02-01 Kenichi Handa <handa@m17n.org>
5754
5755 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
5756
5757 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
5758 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
5759 registry doesn't specify encoding part.
5760 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
5761 (font_open_by_name): At first try parsing the name.
5762 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
5763 as Lisp symbols.
5764
5765 * fontset.c (reorder_font_vector): Pay attention to the case that
5766 the 3rd element of font_def is nil.
5767 (fontset_font): For the default fontset, append one more fontset
5768 elements for a script-based font specification. Don't add script
5769 attribute on finding a font.
5770 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
5771 font name.
5772 (fontset_ascii_font): If a font can't be opened, return nil.
5773
5774 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
5775 (ftfont_pattern_entity): New function.
5776 (ftfont_get_cache): Assume that freetype_font_cache is already
5777 initialized.
5778 (ftfont_list): Handle the case that a file is specified in font
5779 name. Use ftfont_pattern_entity to generate entities.
5780 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
5781 (syms_of_ftfont): Initialize freetype_font_cache.
5782
5783 * xftfont.c (xftfont_open): Make the font name fontconfig's
5784 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
5785 (xftfont_close): Free font->font.name if not NULL.
5786
5787 * xfont.c (xfont_list): If script is specified for a font, return
5788 null_vector.
5789 (xfont_list_family): Declare argument type.
5790
5791 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
5792 name, set LFACE_FONT (lface) to nil.
5793
5794 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
5795 return Qnil.
5796
5797 2008-02-01 Kenichi Handa <handa@m17n.org>
5798
5799 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
5800 (standard_args): Add "-enable-font-backend".
5801
5802 2008-02-01 Kenichi Handa <handa@m17n.org>
5803
5804 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
5805 (struct xftdraw_list, xftdraw_list): Delete them.
5806 (register_xftdraw, check_xftdraw): Delete them.
5807 (xftfont_prepare_face): Don't call register_xftdraw.
5808 (xftfont_done_face): Don't call check_xftdraw.
5809 (xftfont_draw): Get backroudn color only when with_background is
5810 nonzero.
5811
5812 * xfont.c (xfont_encode_char): Fix calculation of char2b.
5813
5814 2008-02-01 Kenichi Handa <handa@m17n.org>
5815
5816 These changes are for the new font handling codes.
5817
5818 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
5819 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
5820 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
5821 (FONTSRC, FONTOBJ): New variables.
5822 (obj): Add $(FONTOBJ).
5823 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
5824 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
5825 @LIBOTF_LIBS@.
5826 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
5827 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
5828
5829 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
5830
5831 * character.h (Vscript_representative_chars): Extern it.
5832
5833 * character.c (Vscript_representative_chars): New variable.
5834 (syms_of_character): Declare it as a Lisp variable.
5835
5836 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
5837 enable_font_backend is nonzero, accept the composition method
5838 COMPOSITION_WITH_GLYPH_STRING.
5839
5840 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
5841 enumeration COMPOSITION_WITH_GLYPH_STRING.
5842
5843 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
5844 members clip_x, clip_y, clip_width, and clip_height.
5845 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
5846
5847 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
5848 --enable-font-backend. Call syms_of_font.
5849
5850 * fns.c (assoc_no_quit): New function.
5851
5852 * fontset.h (FONT_INFO_FROM_FACE): New macro.
5853 (face_for_font, new_fontset_from_font)
5854 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
5855
5856 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
5857 (fontset_font, fontset_ascii, face_for_char)
5858 (make_fontset_for_ascii_face, Ffont_info)
5859 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
5860 is nonzero, use font-backend mechanism.
5861 (find_font_encoding): Make it non-static.
5862 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
5863 New functions.
5864
5865 * frame.h (struct frame): New members resx and resy.
5866 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
5867 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
5868
5869 * frame.c [USE_FONT_BACKEND]: Include "font.h".
5870 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
5871
5872 * lisp.h (assoc_no_quit): Extern it.
5873
5874 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
5875 Through out the file, use FONT_INFO_FROM_FACE instead of
5876 FONT_INFO_FROM_ID, use get_per_char_metric instead of
5877 rif->per_char_metric.
5878 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
5879 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
5880 (get_glyph_face_and_encoding, fill_composite_glyph_string)
5881 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
5882 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
5883 nonzero, use font-backend mechanism.
5884 (get_per_char_metric): New function.
5885
5886 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
5887 (set_lface_from_font_name)
5888 (set_font_frame_param, free_realized_face)
5889 (prepare_face_for_display, clear_face_gcs)
5890 (Finternal_set_font_selection_order, realize_x_face)
5891 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
5892 font-backend mechanism.
5893 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
5894 (load_face_font) [USE_FONT_BACKEND]: Abort.
5895 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
5896 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
5897
5898 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
5899 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
5900 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
5901 nonzero, register all available font drivers. Call
5902 x_default_font_parameter for deciding a font.
5903 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
5904
5905 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
5906 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
5907 (x_set_glyph_string_clipping_exactly)
5908 (x_compute_glyph_string_overhangs)
5909 (x_draw_glyph_string_foreground)
5910 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
5911 (x_free_frame_resources) [USE_FONT_BACKEND]: If
5912 enable_font_backend is nonzero, use font-backend mechanism.
5913 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
5914
5915 2008-02-01 Kenichi Handa <handa@m17n.org>
5916
5917 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
5918 system_eol_type.
5919 (syms_of_coding): Initialize system_eol_type.
5920
5921 * process.c (Fset_process_coding_system): Inherit system's eol
5922 format if necessary.
5923
5924 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5925
5926 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
5927
5928 2008-02-01 Kenichi Handa <handa@m17n.org>
5929
5930 * coding.c (decode_eol): Pay attention to buffer relocation in
5931 del_range_2.
5932 (decode_coding): Call decode_eol before restoring undo_list.
5933
5934 2008-02-01 Kenichi Handa <handa@m17n.org>
5935
5936 * charset.c (Fdefine_charset_internal): Fix setting of
5937 emacs_mule_bytes.
5938
5939 2008-02-01 Kenichi Handa <handa@m17n.org>
5940
5941 * keyboard.c (read_char): Check if C is a character or not before
5942 looking up Vkeyboard_translate_table.
5943
5944 2008-02-01 Kenichi Handa <handa@m17n.org>
5945
5946 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
5947 condition to terminate the loop.
5948
5949 2008-02-01 Kenichi Handa <handa@m17n.org>
5950
5951 * coding.c (produce_composition): Compare charbuf[i] instead of
5952 args[i] against 0.
5953 (Fterminal_coding_system): Use EQ to compare Lisp objects.
5954
5955 2008-02-01 Kenichi Handa <handa@m17n.org>
5956
5957 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
5958 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
5959 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
5960 detect_coding.
5961 (emacs_mule_char): Handle old style (Emacs 20) component character
5962 of a composition.
5963 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
5964 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
5965 composition rule.
5966 (decode_coding_emacs_mule): Handle invalid bytes correctly.
5967
5968 2008-02-01 Kenichi Handa <handa@m17n.org>
5969
5970 * coding.c (encode_coding_ccl): Allocate destination dynamically
5971 when necessary.
5972
5973 2008-02-01 Kenichi Handa <handa@m17n.org>
5974
5975 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
5976 the loop. When quitted, show a proper error message.
5977
5978 2008-02-01 Kenichi Handa <handa@m17n.org>
5979
5980 * xterm.c (x_set_glyph_string_clipping_exactly): Set
5981 src->clip_head and src->clip_tail temporarily instead of src->hl.
5982
5983 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
5984 character sequence.
5985 (Fccl_execute_on_string): Use ASET, not XSET.
5986
5987 2008-02-01 Kenichi Handa <handa@m17n.org>
5988
5989 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
5990
5991 2008-02-01 Kenichi Handa <handa@m17n.org>
5992
5993 * coding.c (decode_coding): Fix the condition of terminating the
5994 decoding loop.
5995
5996 2008-02-01 Kenichi Handa <handa@m17n.org>
5997
5998 * data.c (Faset): On setting a character bigger than 255 in a
5999 unibyte string, signal an error instead of make the string multibyte.
6000
6001 2008-02-01 Kenichi Handa <handa@m17n.org>
6002
6003 * charset.c (map_charset_chars): Fix for ascii-compatible charset
6004 made by a mapping table.
6005
6006 2008-02-01 Kenichi Handa <handa@m17n.org>
6007
6008 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
6009 not.
6010 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
6011 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
6012
6013 * xterm.c (x_draw_composite_glyph_string_foreground): Check
6014 s->face is NULL or not.
6015
6016 2008-02-01 Kenichi Handa <handa@m17n.org>
6017
6018 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
6019 (x_draw_glyph_string): Fix drawing of right_overhang and
6020 left_overhang around/on cursor.
6021
6022 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
6023
6024 2008-02-01 Kenichi Handa <handa@m17n.org>
6025
6026 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
6027
6028 2008-02-01 Kenichi Handa <handa@m17n.org>
6029
6030 * coding.c (Fdefine_coding_system_internal)
6031 (Fdefine_coding_system_alias): Avoid a duplicated element in
6032 Vcoding_system_alist.
6033
6034 2008-02-01 Kenichi Handa <handa@m17n.org>
6035
6036 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
6037
6038 * coding.c (Qcoding_system_define_form): New variable.
6039 (syms_of_coding): Intern and staticpro it.
6040 (Fcoding_system_p): Check Qcoding_system_define_form.
6041 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
6042
6043 * coding.h (CODING_SYSTEM_P): If ID is not available, call
6044 Fcoding_system_p.
6045 (CHECK_CODING_SYSTEM): If ID is not available, call
6046 Fcheck_coding_system.
6047 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
6048 Try also Fcheck_coding_system.
6049
6050 2008-02-01 Kenichi Handa <handa@m17n.org>
6051
6052 * coding.c (code_conversion_restore): GCPRO arg.
6053
6054 2008-02-01 Kenichi Handa <handa@m17n.org>
6055
6056 * character.c (lisp_string_width): Check multibyteness of STRING.
6057
6058 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6059
6060 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
6061 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
6062 (decode_mac_font_name): Use decode_coding_c_string instead of
6063 decode_coding.
6064 (x_load_font): Initialize fontp->fontset to -1. Set
6065 fontp->encoding_type.
6066
6067 2008-02-01 Kenichi Handa <handa@m17n.org>
6068
6069 * search.c (search_buffer): Give up BM search on case-fold-search
6070 if one of a target character has a case-equivalence of different
6071 byte length even if that target charcter is an ASCII.
6072 (simple_search): Fix calculation of byte length of matched text.
6073 (boyer_moore): Fix handling of case-equivalent multibyte characters.
6074
6075 2008-02-01 Kenichi Handa <handa@m17n.org>
6076
6077 * coding.c (decode_coding): Fix handling of invalid bytes.
6078
6079 2008-02-01 Kenichi Handa <handa@m17n.org>
6080
6081 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
6082 Unicode characters.
6083
6084 2008-02-01 Kenichi Handa <handa@m17n.org>
6085
6086 * coding.c (encode_coding_object): If a pre-write-conversion
6087 function makes a new buffer, kill it.
6088
6089 2008-02-01 Kenichi Handa <handa@m17n.org>
6090
6091 * coding.c (QCascii_compatible_p): New variable.
6092 (syms_of_coding): Initialize it.
6093 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
6094 calling string_char.
6095 (record_conversion_result): Add `default:' case.
6096 (coding_charset_list): Delete unused variable `coding_type'.
6097 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
6098 property in the plist of the coding system.
6099 (Fcoding_system_put): Check QCascii_compatible_p.
6100
6101 2008-02-01 Miles Bader <miles@gnu.org>
6102
6103 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
6104 removed calculation of frame `f', as it's now used.
6105
6106 2008-02-01 Kenichi Handa <handa@m17n.org>
6107
6108 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
6109 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
6110 (UNIDATA): New variable.
6111 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
6112 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
6113 $(RUN_TEMACS) unconditionally.
6114
6115 2008-02-01 Kenichi Handa <handa@m17n.org>
6116
6117 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
6118 (admindir): New variable.
6119 ($(lispsource)international/charprop.el): New target.
6120
6121 2008-02-01 Miles Bader <miles@gnu.org>
6122
6123 * character.c (chars-in-region): Remove obsolete function.
6124 (syms_of_character): Remove its initialization.
6125
6126 2008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
6127
6128 * w32select.c (validate_coding_system)
6129 (setup_windows_coding_system): New functions.
6130 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
6131 setup_windows_coding_system.
6132 (setup_config, Fw32_get_clipboard_data): Use
6133 validate_coding_system.
6134 (Fx_selection_exists): Move call to setup_config to a place
6135 where signals are allowed.
6136
6137 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
6138 (Fcheck_coding_system): Add declarations.
6139
6140 2008-02-01 Kenichi Handa <handa@m17n.org>
6141
6142 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
6143
6144 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6145
6146 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
6147 string as the second argument for x_new_fontset.
6148
6149 2008-02-01 Kenichi Handa <handa@m17n.org>
6150
6151 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
6152 (encode_coding_object): Use safe_call instead of call2.
6153
6154 2008-02-01 Kenichi Handa <handa@m17n.org>
6155
6156 * fontset.c (Fset_fontset_font): Check family element of a given vector.
6157
6158 * Makefile.in (lisp): Include charprop.el.
6159
6160 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6161
6162 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
6163 Not sure if it's unnecessary.
6164
6165 2008-02-01 Steven Tamm <steventamm@mac.com>
6166
6167 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
6168 some possibly unnecessary fontset checking code that crashed
6169 when creating a new frame.
6170
6171 2008-02-01 Kenichi Handa <handa@m17n.org>
6172
6173 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
6174 lookup_face.
6175
6176 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
6177
6178 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
6179
6180 2008-02-01 Kenichi Handa <handa@m17n.org>
6181
6182 * coding.c: Cancel the change done in HEAD on 2008-02-01.
6183 (coding_charset_list): New function.
6184
6185 * coding.h (coding_charset_list): Extern it.
6186
6187 2008-02-01 Kenichi Handa <handa@m17n.org>
6188
6189 * fontset.c (Fset_fontset_font): Call find_font_encoding with
6190 concatenation of family and registry.
6191
6192 2008-02-01 Kenichi Handa <handa@m17n.org>
6193
6194 * character.h (BYTE8_STRING): Fix typo.
6195
6196 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
6197 string to multibyte (sync to HEAD).
6198
6199 * casefiddle.c (casify_region): Handle changes in byte-length
6200 using replace_range_2 (sync to HEAD).
6201
6202 2008-02-01 Andreas Schwab <schwab@suse.de>
6203
6204 * chartab.c (map_char_table): GCPRO table and arg.
6205
6206 2008-02-01 Kenichi Handa <handa@m17n.org>
6207
6208 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
6209 already at limit.
6210
6211 2008-02-01 Kenichi Handa <handa@m17n.org>
6212
6213 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
6214 instead of fast_c_string_match_ignore_case.
6215 (find_font_encoding): Change argument to Lisp_Object. Use
6216 fast_string_match_ignore_case instead of
6217 fast_c_string_match_ignore_case. Change caller.
6218
6219 2008-02-01 Kenichi Handa <handa@m17n.org>
6220
6221 * xdisp.c (get_next_display_element): In unibyte case, decide to
6222 display in octal form by checking a chacter by
6223 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
6224
6225 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
6226
6227 * character.c (unibyte_has_multibyte_table): New variable.
6228
6229 * character.h (unibyte_has_multibyte_table): Extern it.
6230 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
6231
6232 2008-02-01 Kenichi Handa <handa@m17n.org>
6233
6234 * coding.c (encode_coding_iso_2022): Fix handling of charset
6235 annotation.
6236
6237 2008-02-01 Kenichi Handa <handa@m17n.org>
6238
6239 * coding.c (setup_coding_system): If coding_system is nil, use
6240 Qundecided.
6241 (Fterminal_coding_system): Return nil if terminal coding system is
6242 `undecided'.
6243 (syms_of_coding): Define coding-system `undecided' here. Setup
6244 terminal_coding as `undecided'.
6245
6246 2008-02-01 Kenichi Handa <handa@m17n.org>
6247
6248 * xdisp.c (message_dolog, set_message_1): Call
6249 unibyte_char_to_multibyte with arg type int.
6250
6251 * lread.c (read1): Fix reading of a char-table.
6252
6253 * print.c (print_object): Include sub char-table in cicularities
6254 detection.
6255
6256 2008-02-01 Kenichi Handa <handa@m17n.org>
6257
6258 * keymap.c (where_is_internal_2): Fix for the case that KEY is a
6259 cons. Append the found sequences in car of ARGS instead of prepending.
6260
6261 2008-02-01 Kenichi Handa <handa@m17n.org>
6262
6263 * fileio.c (report_file_error): Make a unibyte string from
6264 strerror (errorno).
6265 (Fsubstitute_in_file_name): Fix the arg to
6266 unibyte_char_to_multibyte. It is evaluated twice.
6267
6268 2008-02-01 Kenichi Handa <handa@m17n.org>
6269
6270 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
6271
6272 2008-02-01 Kenichi Handa <handa@m17n.org>
6273
6274 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
6275 BOM is not found.
6276 (detect_coding, detect_coding_system): Optimization for ISO-2022
6277 when no 8-bit data is found.
6278
6279 2008-02-01 Jason Rumney <jasonr@gnu.org>
6280
6281 * w32fns.c (x_to_w32_font): Update to use new coding struct.
6282
6283 2008-02-01 Kenichi Handa <handa@m17n.org>
6284
6285 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
6286 CHARS.
6287
6288 2008-02-01 Steven Tamm <steventamm@mac.com>
6289
6290 * macterm.c (mac_encode_char): Add charset argument and update
6291 to use encoding_type.
6292 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
6293 switch to pure fontset.
6294 (decode_mac_font_name): Temporarily remove decoding.
6295 (x_font_name_to_mac_font_name): Temporarily remove encoding.
6296 (x_load_font): Temporarily remove encoding.
6297
6298 2008-02-01 Kenichi Handa <handa@m17n.org>
6299
6300 * xfaces.c (Fface_font): If frame is not on a window system,
6301 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
6302 refer to face->font.
6303 (split_font_name_into_vector, build_font_name_from_vector)
6304 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
6305 whne HAVE_WINDOW_SYSTEM is defined.
6306
6307 2008-02-01 Kenichi Handa <handa@m17n.org>
6308
6309 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
6310 (x_produce_glyphs): Fix setting of members of cmp in case
6311 cmp->glyph_len is zero.
6312
6313 * fontset.c (Fset_fontset_font): Fix docstring.
6314 (Ffontset_info): Make it backward compatible. New arg ALL.
6315
6316 2008-02-01 Kim F. Storm <storm@cua.dk>
6317
6318 * process.c (read_process_output): Grow decoding_buf when needed;
6319 this could cause a crash in allocate_string and compact_small_strings.
6320
6321 2008-02-01 Kenichi Handa <handa@m17n.org>
6322
6323 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
6324
6325 2008-02-01 Kenichi Handa <handa@m17n.org>
6326
6327 * coding.c (setup_coding_system): Set coding->common_flags
6328 correctly for raw-text.
6329 (consume_chars): On encoding unibyte text by raw-text, don't check
6330 multibyte form.
6331 (encode_coding): On encoding by raw-text, never use translation tables.
6332
6333 * fileio.c (e_write): Short cut for the case of no encoding.
6334
6335 2008-02-01 Kenichi Handa <handa@m17n.org>
6336
6337 * coding.c (detect_coding, detect_coding_system): Delete unused
6338 variables.
6339
6340 2008-02-01 Kenichi Handa <handa@m17n.org>
6341
6342 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
6343 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
6344
6345 2008-02-01 Kenichi Handa <handa@m17n.org>
6346
6347 * coding.c (Ffind_coding_systems_region_internal): Include
6348 raw-text and no-conversion in the result.
6349
6350 2008-02-01 Kenichi Handa <handa@m17n.org>
6351
6352 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
6353 (load_font_get_repertory): Delete unnecessary check of ENCODING of
6354 FONT_DEF.
6355 (font_def_arg, add_arg, from_arg, to_arg): New args.
6356 (set_fontset_font): Change argument.
6357 (Fset_fontset_font): Fix for the case that TARGET is a script
6358 name and charset name.
6359 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
6360
6361 2008-02-01 Kenichi Handa <handa@m17n.org>
6362
6363 * fontset.c (fontset_font): Rename from fontset_face. Change return
6364 value.
6365 (face_suitable_for_char_p, face_for_char): Adjust for the change
6366 of fontset_font.
6367 (make_fontset_for_ascii_face): Fix setting of the fontset element
6368 for ASCII.
6369 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
6370 to get a font name.
6371 (Ffontset_info): Adjust for the change of fontset_font.
6372
6373 * coding.c (emacs_mule_char): Check invalid code more regidly.
6374
6375 * character.h (LEADING_CODE_LATIN_1_MIN)
6376 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
6377
6378 2008-02-01 Kenichi Handa <handa@m17n.org>
6379
6380 * editfns.c (check_translation): New function.
6381 (Ftranslate_region_internal): Handle M:N mapping.
6382
6383 2008-02-01 Kenichi Handa <handa@m17n.org>
6384
6385 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
6386
6387 2008-02-01 Kenichi Handa <handa@m17n.org>
6388
6389 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
6390 goto invalid_code.
6391 (decode_coding_iso_2022): Fix handling of invalid designation.
6392
6393 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
6394 after calling code_conversion_save.
6395
6396 2008-02-01 Kenichi Handa <handa@m17n.org>
6397
6398 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
6399
6400 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
6401
6402 * fontset.c: Include "intervals.h".
6403 (fontset_face): Fix comparing of Lisp_Objects.
6404 (free_face_fontset, new_fontset_from_font_name): Fix
6405 Lisp_Object/int mixup.
6406
6407 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
6408
6409 * coding.c: Add many prototypes for static functions.
6410 (get_translation_table): Allow max_lookup to be NULL.
6411 (decode_coding, Ffind_coding_systems_region_internal)
6412 (Funencodable_char_position, Fcheck_coding_systems_region): Call
6413 get_translation_table with max_lookup NULL.
6414
6415 2008-02-01 Kenichi Handa <handa@m17n.org>
6416
6417 * coding.c (get_translation_table): Declare it as Lisp_Object.
6418 (LOOKUP_TRANSLATION_TABLE): New macro.
6419 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
6420 instead of CHAR_TABLE_REF.
6421
6422 2008-02-01 Kenichi Handa <handa@m17n.org>
6423
6424 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
6425 annotation data format.
6426 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
6427 Change arguments FROM and TO to single argument NCHARS. Change caller.
6428 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
6429 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
6430 (decode_coding_ccl, decode_coding_charset): Pay attention to
6431 coding->charbuf_used.
6432 (get_translation): New function.
6433 (produce_chars): New arguments translation_table and last_block.
6434 Translate characters here. Return number of carryover chars.
6435 Change caller.
6436 (produce_composition): New argument pos. Change caller.
6437 Adjust for the change of annotation data format.
6438 (produce_charset, produce_annotation): Likewise.
6439 (decode_coding, encode_coding): Don't call translate_chars.
6440 (consume_chars): New arg translation_table. Change caller.
6441 (translate_chars): Delete.
6442 (syms_of_coding): Make translation-table's number of extra slots 2.
6443
6444 2008-02-01 Kenichi Handa <handa@m17n.org>
6445
6446 * search.c (simple_search): Fix setting this_pos_byte in backward
6447 search.
6448
6449 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
6450 byte sequence.
6451 (detect_coding_ccl): Fix setting of the variable valids.
6452
6453 2008-02-01 Kenichi Handa <handa@m17n.org>
6454
6455 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
6456
6457 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
6458
6459 * editfns.c (Ftranslate_region_internal): Rename from
6460 Ftranslate_region. Accept a char-table in TABLE.
6461 (syms_of_editfns): Defsubr Stranslate_region_internal.
6462
6463 * xfaces.c (set_lface_from_font_name): If a font is specified for
6464 a frame, generate a fontset from the font.
6465 (build_scalable_font_name): If the scalable font is requested for
6466 a specific size, don't change that size.
6467 (try_font_list): Try a scalable font also in the case that a
6468 pattern string is specified.
6469
6470 2008-02-01 Kenichi Handa <handa@m17n.org>
6471
6472 * xfaces.c (Fface_font): New optional arg CHARACTER.
6473
6474 2008-02-01 Kenichi Handa <handa@m17n.org>
6475
6476 * charset.h (CHARSET_OFFSET): New macro.
6477
6478 2008-02-01 Kenichi Handa <handa@m17n.org>
6479
6480 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
6481
6482 * fontset.c (fontset_face): Handle the case that repertory is a
6483 char-table.
6484 (find_font_encoding): Return nil for unknown encoding.
6485 (Fset_fontset_font): Ignore a font of unknown encoding.
6486
6487 2008-02-01 Kenichi Handa <handa@m17n.org>
6488
6489 * keymap.c (describe_vector): Handle default value of a char table.
6490
6491 * fontset.c (fontset_face): Handle fallback fonts correctly.
6492 (Ffontset_info): Return infomation about fallback fonts.
6493
6494 2008-02-01 Kenichi Handa <handa@m17n.org>
6495
6496 * fontset.c (FONTSET_DEFAULT): New macro.
6497 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
6498 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
6499 the case that it is nil.
6500 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
6501 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
6502
6503 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
6504 subset or superset.
6505
6506 2008-02-01 Kenichi Handa <handa@m17n.org>
6507
6508 * emacs.c (main): Call init_charset after syms_of_XXX.
6509
6510 * charset.c (Vcharset_map_directory): Delete.
6511 (Vcharset_map_path): New variable.
6512 (load_charset_map_from_file): Use Vcharset_map_path instead.
6513 (init_charset): Initialize Vcharset_map_path.
6514 (syms_of_charset): Delete declaration of "charset-map-directory",
6515 add declaration of "charset-map-path".
6516
6517 2008-02-01 Kenichi Handa <handa@m17n.org>
6518
6519 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
6520 ASCII only string.
6521
6522 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
6523
6524 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
6525 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
6526
6527 2008-02-01 Kenichi Handa <handa@m17n.org>
6528
6529 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
6530
6531 * coding.c (QCmnemonic, QCdefalut_char)
6532 (QCdecode_translation_table, QCencode_translation_table)
6533 (QCpost_read_conversion, QCpre_write_conversion): New variables.
6534 (get_translation_table): Return a list of translation tables if
6535 necessary.
6536 (decode_coding): Call get_translation_table with ENCODEP 0.
6537 (char_encodable_p): If translation_table is non-nil, always call
6538 translate_char.
6539 (Fdefine_coding_system_internal): Accept list of translation
6540 tables as :encode-translation-table and :decode-translation-table.
6541 (Fcoding_system_put): New function.
6542 (syms_of_coding): Declare new symbols. Defsubr
6543 Scoding_system_put.
6544 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
6545 typically JISX0212.
6546
6547 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
6548 when the charset is superset type.
6549
6550 * character.c (translate_char): Accept list of translation tables.
6551
6552 2008-02-01 Kenichi Handa <handa@m17n.org>
6553
6554 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
6555 (CODING_ATTR_TRANS_TBL): New macro.
6556
6557 * coding.c (get_translation_table): New function.
6558 (translate_chars): Fix the bug of skipping annotation data.
6559 (decode_coding, encode_coding): Utilize get_translation_table.
6560 (char_encodable_p, Funencodable_char_position): Translate char if
6561 necessary.
6562 (Ffind_coding_systems_region_internal)
6563 (Fcheck_coding_systems_region): Setup translation table for encode
6564 in a coding system attribute vector in advance.
6565 (Fdefine_coding_system_internal): Allow a symbol as translation
6566 table. For shift-jis type coding system, allow 4th charset.
6567
6568 2008-02-01 Kenichi Handa <handa@m17n.org>
6569
6570 * coding.c (decode_coding_sjis): Check the first byte rigidly.
6571
6572 * xdisp.c (get_next_display_element): Pass -1 as POS to
6573 FACE_FOR_CHAR if displaying a C-string.
6574
6575 2008-02-01 Kenichi Handa <handa@m17n.org>
6576
6577 * composite.c (get_composition_id): Handle xoff and yoff in a
6578 composition rule.
6579
6580 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
6581 (struct composition): New member lbearing and rbearing.
6582
6583 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
6584 (x_get_glyph_overhangs): Handle a composition glyph.
6585 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
6586
6587 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
6588 composition glyph.
6589
6590 2008-02-01 Kenichi Handa <handa@m17n.org>
6591
6592 * print.c: Include charset.h.
6593 (Vprint_charset_text_property): New variable.
6594 (Qdefault): Extern it.
6595 (PRINT_STRING_NON_CHARSET_FOUND)
6596 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
6597 (print_check_string_result): New variable.
6598 (print_check_string_charset_prop): New function.
6599 (print_prune_charset_plist): New variable.
6600 (print_prune_string_charset): New function.
6601 (print_object): Call print_prune_string_charset if
6602 Vprint_charset_text_property is not t.
6603 (print_interval): Print nothing if itnerval->plist is nil.
6604 (syms_of_print): Declare Vprint_charset_text_property as a lisp
6605 variable. Init and staticpro print_prune_charset_plist.
6606
6607 2008-02-01 Kenichi Handa <handa@m17n.org>
6608
6609 * fontset.c (new_fontset_from_font_name): Use the specified font
6610 for all characters in the new fontset.
6611
6612 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
6613 OBJECT args.
6614
6615 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
6616 OBJECT args for composition too.
6617
6618 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
6619 OBJECT args.
6620
6621 2008-02-01 Kenichi Handa <handa@m17n.org>
6622
6623 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
6624
6625 * fontset.c (reorder_font_vector): Adjust for the change of
6626 FONT_DEF format.
6627 (fontset_face): New arg id. Change caller.
6628 (face_for_char): New args pos and object.
6629 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
6630 (fs_query_fontset): Check NAME by Fassoc too.
6631 (Fset_fontset_font): Allow non-XLFD font name.
6632 (Ffontset_info): Adjust for the change of FONT_DEF format.
6633
6634 * fontset.h (face_for_char): Adjust prototype.
6635
6636 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
6637 (append_space, extend_face_to_end_of_line)
6638 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
6639 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
6640
6641 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
6642 POS and OBJECT args.
6643
6644 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
6645 POS and OBJECT args.
6646
6647 2008-02-01 Jason Rumney <jasonr@gnu.org>
6648
6649 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
6650 of GlobalAlloc'ed memory.
6651
6652 2008-02-01 Kenichi Handa <handa@m17n.org>
6653
6654 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
6655
6656 * charset.h (charset_table_used): Delete extern.
6657
6658 * charset.c (charset_table_used): Make it static.
6659 (map_charset_chars): Fix args to c_function with.
6660
6661 * chartab.c (map_sub_char_table_for_charset): Fix args to
6662 c_function with.
6663
6664 * coding.h (enum coding_result_code): Delete
6665 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
6666
6667 * coding.c (Qinsufficient_source, Qinconsistent_eol)
6668 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
6669 (Vlast_code_conversion_error): New variables.
6670 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
6671 (ONE_MORE_BYTE): Record error if any instead of signaling an
6672 error. If non-ASCII multibyte char is found, return the negative
6673 value of the code. All callers changed to check it.
6674 (ONE_MORE_BYTE_NO_CHECK): Likewise.
6675 (record_conversion_result): New function. Change all codes setting
6676 coding->result to call this function.
6677 (detect_coding_utf_8, decode_coding_utf_8)
6678 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
6679 Don't use the local variable incomplete.
6680 (emacs_mule_char): Change the second arg to `const'.
6681 (decode_coding): Fix of flushing out unprocessed data.
6682 (make_conversion_work_buffer): Fix making of a work buffer.
6683 (decode_coding_object): Return coding->dst_object.
6684
6685 * fontset.c (set_fontset_font): Fix args.
6686
6687 * lisp.h (CHARACTERBITS): Define as 22.
6688
6689 * process.c (send_process): Be sure to set coding->src_multibyte.
6690
6691 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
6692
6693 2008-02-01 Kenichi Handa <handa@m17n.org>
6694
6695 * xdisp.c (handle_auto_composed_prop): Give limit to
6696 Fnext_single_char_property_change.
6697
6698 2008-02-01 Kenichi Handa <handa@m17n.org>
6699
6700 * composite.c (syms_of_composite): Don't make the composition hash
6701 table weak.
6702
6703 * fontset.c (Fset_fontset_font): Fix docstring.
6704
6705 * lisp.h (detect_coding_system): Adjust prototype.
6706
6707 * fileio.c (kill_workbuf_unwind): Delete this function.
6708 (Finsert_file_contents): Adjust the call of detect_coding_system.
6709 Get conversion_buffer by code_conversion_save. Use the macor
6710 CODING_MAY_REQUIRE_DECODING. After decoding, update
6711 coding_system.
6712
6713 * coding.h (make_conversion_work_buffer): Delete extern.
6714 (code_conversion_save): Extern it.
6715
6716 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
6717 (CODING_GET_INFO): Delete argument eol_type. Change callers.
6718 (decode_coding_utf_8): Don't do eol converion.
6719 (detect_coding_utf_16): Check coding->src_chars, not
6720 coding->src_bytes. Add heuristics for those that have no signature.
6721 (decode_coding_emacs_mule, decode_coding_iso_2022)
6722 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
6723 Don't do eol converion.
6724 (adjust_coding_eol_type): Return a new coding system.
6725 (detect_coding): Don't detect eol. Fix for utf-16 detection.
6726 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
6727 each change.
6728 (decode_coding): Pay attention to undo_list. Do eol convesion for
6729 all types of coding-systems (if necessary).
6730 (Vcode_conversion_work_buf_list): Delete it.
6731 (Vcode_conversion_reused_workbuf): Rename from
6732 Vcode_conversion_reused_work_buf.
6733 (Vcode_conversion_workbuf_name): New variable.
6734 (reused_workbuf_in_use): New variable.
6735 (make_conversion_work_buffer): Delete the arg DEPTH.
6736 (code_conversion_restore): Change argument to cons.
6737 (code_conversion_save): Delete the argument BUFFER. Change callers.
6738 (detect_coding_system): New argument src_chars. Change callers.
6739 Fix for utf-16 detection.
6740 (init_coding_once): Don't use ISO_carriage_return.
6741 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
6742 reused_workbuf_in_use.
6743
6744 2008-02-01 Kenichi Handa <handa@m17n.org>
6745
6746 * keymap.c (store_in_keymap): Pay attention to the case that idx
6747 is a cons specifying a character range.
6748
6749 2008-02-01 Kenichi Handa <handa@m17n.org>
6750
6751 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
6752 HANDLED_RECOMPUTE_PROPS.
6753
6754 * coding.c (Fdefine_coding_system_internal): Fix checking of
6755 ascii compatibility.
6756
6757 2008-02-01 Kenichi Handa <handa@m17n.org>
6758
6759 * charset.c (find_charsets_in_text): Delete unused locale variable.
6760 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
6761
6762 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
6763 Resync charset_list to Vemacs_mule_charset_list.
6764
6765 * keymap.c (store_in_keymap): Pay attention to the case that idx
6766 is a cons specifying a character range.
6767
6768 2008-02-01 Kenichi Handa <handa@m17n.org>
6769
6770 * composite.c (update_compositions): Bind inhibit-read-only, etc
6771 to t before calling remove-list-of-text-properties.
6772
6773 * print.c (print_object): Always print ASCII chars as is.
6774
6775 2008-02-01 Kenichi Handa <handa@m17n.org>
6776
6777 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
6778
6779 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
6780 is a char table.
6781
6782 2008-02-01 Kenichi Handa <handa@m17n.org>
6783
6784 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
6785
6786 2008-02-01 Kenichi Handa <handa@m17n.org>
6787
6788 * xfaces.c (set_lface_from_font_name): Fix for the case that
6789 FONTNAME is not fontset name.
6790
6791 2008-02-01 Kenichi Handa <handa@m17n.org>
6792
6793 * fns.c (base64_encode_1): Fix previous change.
6794
6795 2008-02-01 Kenichi Handa <handa@m17n.org>
6796
6797 * fontset.c (set_fontset_font): New function.
6798 (Fset_fontset_font): If a font is specified for a charset, use
6799 map_charset_chars to store the font spec in a fontset.
6800
6801 2008-02-01 Kenichi Handa <handa@m17n.org>
6802
6803 * fontset.c (fontset_face): Create a fallback fontset on demand.
6804 (make_fontset): Don't create a fallback fontset here.
6805 (free_face_fontset): Free a fallback fontset (if any) too.
6806 (n_auto_fontsets): Delete this variable.
6807 (auto_fontset_alist): New variable.
6808 (new_fontset_from_font_name): Check auto_fontset_alist.
6809 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
6810 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
6811 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
6812 Defsubr Sfontset_list_all.
6813
6814 2008-02-01 Kenichi Handa <handa@m17n.org>
6815
6816 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
6817
6818 2008-02-01 Kenichi Handa <handa@m17n.org>
6819
6820 * fontset.c (Fnew_fontset): Check NAME more rigidly.
6821
6822 2008-02-01 Kenichi Handa <handa@m17n.org>
6823
6824 * editfns.c (Fgoto_char): Fix docstring.
6825
6826 2008-02-01 Kenichi Handa <handa@m17n.org>
6827
6828 * insdel.c (insert_from_gap): Adjust intervals correctly.
6829
6830 2008-02-01 Jason Rumney <jasonr@gnu.org>
6831
6832 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
6833 (pfnGetFontUnicodeRanges): New dynamically loaded function.
6834 (w32_initialize): Try to load it.
6835 (x_get_font_repertory): Use it if available.
6836 (w32_encode_char): Add shortcut for unicode output.
6837
6838 * w32fns.c (w32_load_system_font): Default charset to -1.
6839 (x_to_w32_charset): Match all fonts for unicode.
6840 (w32_to_x_charset): New parameter matching. Don't return partial
6841 or wildcard charsets.
6842 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
6843 (w32_codepage_for_font): Return CP_UNICODE for unicode.
6844 (w32_to_x_font): Match charset to real charset.
6845 (enum_font_cb2): Always list unicode versions.
6846
6847 * makefile.w32-in (temacs): Increase EMHEAP.
6848
6849 2008-02-01 Jason Rumney <jasonr@gnu.org>
6850
6851 * w32term.c (w32_encode_char): New charset parameter.
6852 font_info.encoding becomes encoding_type.
6853 (x_get_font_repertory): New function. Warning: stub only!
6854 (x_new_font): Return quickly if font already set.
6855 (x_new_fontset): fontsetname parameter is Lisp_Object.
6856 Use new fs_query_fontset. Try new_fontset_from_font_name.
6857 Use fontset_name for return value.
6858
6859 * w32term.h: Declare x_get_font_repertory.
6860
6861 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
6862 place of find_charset_in_text. Use encode_coding_object in place
6863 of encode_coding.
6864 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
6865 decode_coding.
6866
6867 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
6868 of x_new_fontset.
6869 (w32_load_system_font): Initialize charset as unicode.
6870 font_info.encoding becomes encoding_type.
6871 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
6872 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
6873 (syms_of_w32fns): Set get_font_repertory_func.
6874
6875 * w32console.c: Include character.h. Use terminal_encode_buffer
6876 from term.c.
6877 (write_glyphs): Use new version of encode_terminal_code. Use
6878 encode_coding_object in place of encode_coding.
6879
6880 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
6881 encoding becomes encoding_type.
6882
6883 * term.c (terminal_encode_buffer): Make externally visible.
6884
6885 * makefile.w32-in: Add character.h dependancies.
6886 (character.o, chartab.o): New targets.
6887
6888 2008-02-01 Kenichi Handa <handa@m17n.org>
6889
6890 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
6891 CODING_ID_EOL_TYPE.
6892
6893 2008-02-01 Andreas Schwab <schwab@suse.de>
6894
6895 * coding.c (produce_chars): Revert last change.
6896
6897 2008-02-01 Kenichi Handa <handa@m17n.org>
6898
6899 * charset.h (charset_unicode): Extern it.
6900
6901 * charset.c (string_xstring_p): Check by (C >= 0x100).
6902 (find_charsets_in_text): Change format of the arc CHARSETS. New
6903 arg MULTIBYTE.
6904 (Ffind_charset_region, Ffind_charset_string): Adjust for the
6905 change of find_charsets_in_text.
6906 (Fsplit_char): Fix doc. Never return unknown.
6907
6908 * chartab.c (char_table_translate): Use CHARACTERP, not INETEGERP.
6909
6910 * coding.c (Fdefine_coding_system_alias): Update
6911 Vcoding_system_list.
6912
6913 * fontset.c (load_font_get_repertory): Pay attention to the case
6914 that ENCODING of a font is specified by a char-table.
6915
6916 * xterm.c (x_get_font_repertory): Handle the case that the
6917 encoding of font is other than Unicode.
6918
6919 2008-02-01 Kenichi Handa <handa@m17n.org>
6920
6921 * term.c (encode_terminal_code): Don't handle glyph-table. Check
6922 if a character is encodable by the terminal coding system. If
6923 not, produces proper number of `?'s. Update
6924 terminal_encode_buffer and terminal_encode_buf_size if necessary.
6925 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
6926
6927 2008-02-01 Kenichi Handa <handa@m17n.org>
6928
6929 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
6930 variables.
6931 (encode_terminal_code): Change argument. Encode multiple
6932 characters at once. Store the result of encoding in
6933 terminal_encode_buffer.
6934 (write_glyphs, insert_glyphs): Adjust for the change of
6935 encode_terminal_code.
6936 (term_init): Initialize terminal_encode_buffer and
6937 terminal_encode_buf_size.
6938
6939 * coding.c (consume_chars): If coding->src_object is nil, don't
6940 check annotation.
6941
6942 2008-02-01 Kenichi Handa <handa@m17n.org>
6943
6944 * character.c (char_string): Use ASCII_CHAR_P instead of
6945 SINGLE_BYTE_CHAR_P.
6946
6947 2008-02-01 Kenichi Handa <handa@m17n.org>
6948
6949 * xdisp.c (handle_auto_composed_prop): Check if the last
6950 characters of auto-composed region is newly composed with the
6951 following characters.
6952 (handle_composition_prop): Fix checking of point being inside
6953 composition.
6954
6955 2008-02-01 Kenichi Handa <handa@m17n.org>
6956
6957 * fns.c (concat): Don't change multibyteness of the result by
6958 concatenating an 8-bit character.
6959
6960 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
6961 multibyteness of the result when newelt is an 8-bit character.
6962
6963 2008-02-01 Dave Love <fx@gnu.org>
6964
6965 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
6966 EMACS_INT.
6967
6968 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
6969
6970 * xfaces.c (face_numeric_value): Declare dim size_t.
6971 (Finternal_lisp_face_equal_p): Remove unused f.
6972
6973 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
6974 (MATRIX_ROW): Remove unused vars.
6975 (draw_glyphs, x_insert_glyphs, fast_find_position)
6976 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
6977 byte/char counts.
6978
6979 * regex.c (regex_compile): Remove unused var.
6980
6981 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
6982
6983 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
6984 (Faccessible_keymaps, where_is_internal): Remove unused vars.
6985
6986 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
6987
6988 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
6989
6990 * fileio.c (Fwrite_region): Remove unused var.
6991
6992 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
6993 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
6994
6995 * composite.c (Fremove_list_of_text_properties): Declare.
6996
6997 * coding.c (inhibit_pre_post_conversion): Remove (unused).
6998 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
6999 (coding_inherit_eol_type): Remove unused attrs.
7000 (detect_coding): Cast arg of detect_eol.
7001
7002 * charset.c (syms_of_charset): Remove unused var p.
7003 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
7004 byte/char counts.
7005
7006 * casetab.c (set_case_table): Remove unused var.
7007
7008 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
7009 unused vars.
7010
7011 2008-02-01 Dave Love <fx@gnu.org>
7012
7013 * xterm.c (x_bitmap_mask): Declare.
7014
7015 2008-02-01 Dave Love <fx@gnu.org>
7016
7017 * xterm.c (x_term_init): Fix type error.
7018
7019 * lisp.h: Add Funibyte_char_to_multibyte.
7020
7021 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
7022 (Fset_coding_system_priority): Doc fix.
7023
7024 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
7025
7026 * indent.c (check_composition): Make start and end EMACS_INT.
7027
7028 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
7029
7030 * xdisp.c (handle_composition_prop, check_point_in_composition):
7031 Make buffer positions EMACS_INT.
7032
7033 * composite.c (find_composition, run_composition_function)
7034 (update_compositions, Ffind_composition_internal): Make buffer
7035 positions EMACS_INT.
7036
7037 * composite.h (find_composition, update_compositions): Make
7038 position args EMACS_INT.
7039
7040 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
7041
7042 * intervals.c (get_property_and_range):
7043 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
7044
7045 * unexalpha.c: Don't include varargs.h.
7046
7047 2008-02-01 Dave Love <fx@gnu.org>
7048
7049 * coding.h (ENCODE_UTF_8): New.
7050
7051 * Makefile.in (gtkutil.o): Depend on coding.h.
7052
7053 * coding.c (Fset_coding_system_priority): Doc fix.
7054
7055 2008-02-01 Kenichi Handa <handa@m17n.org>
7056
7057 * fileio.c (Finsert_file_contents): Call setup_coding_system in
7058 the case of auto saving.
7059
7060 2008-02-01 Andreas Schwab <schwab@suse.de>
7061
7062 * chartab.c (map_char_table, map_char_table_for_charset): Protect
7063 `range' from GC.
7064
7065 2008-02-01 Kenichi Handa <handa@m17n.org>
7066
7067 * coding.c (decode_coding_sjis): Check bytes more rigidly.
7068
7069 2008-02-01 Kenichi Handa <handa@m17n.org>
7070
7071 * fileio.c (choose_write_coding_system): Return a decided coding system.
7072 (Fwrite_region): Set Vlast_coding_system_used to the return value
7073 of choose_write_coding_system.
7074
7075 2008-02-01 Kenichi Handa <handa@m17n.org>
7076
7077 * charset.c (Fset_charset_priority): Pay attention to duplicated
7078 arguments.
7079
7080 * coding.c (QCcategory): New variable.
7081 (syms_of_coding): Defsym it. Set all elements of
7082 Vcoding_category_table and their symbol values.
7083 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
7084 coding-category-XXX, and coding-category-list.
7085 (Fdefine_coding_system_internal): Add category in the plist.
7086
7087 2008-02-01 Kenichi Handa <handa@m17n.org>
7088
7089 * callproc.c (Fcall_process): Handle carryover correctly.
7090
7091 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
7092 (raw_text_coding_system): Check NILP (coding_system).
7093 (coding_inherit_eol_type): Check NILP (coding_system) and
7094 NILP (parent).
7095 (consume_chars): Fix for the case of raw-text.
7096
7097 * process.c (read_process_output): Handle carryover correctly.
7098
7099 2008-02-01 Dave Love <fx@gnu.org>
7100
7101 * regex.c (re_search_2): Fix last change.
7102
7103 2008-02-01 Kenichi Handa <handa@m17n.org>
7104
7105 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
7106 target_multibyte. Even in a unibyte case, return a converted
7107 multibyte char.
7108 (GET_CHAR_AFTER): New macro.
7109 (PATFETCH): Translate via multibyte char.
7110 (HANDLE_UNIBYTE_RANGE): Delete this macro.
7111 (SETUP_MULTIBYTE_RANGE): New macro.
7112 (regex_compile): Setup compiled code so that its multibyteness
7113 matches that of a target. Fix the handling of "[X-YZ]" using
7114 SETUP_MULTIBYTE_RANGE.
7115 (analyse_first) <charset>: For filling fastmap for all multibyte
7116 characters, don't check by BASE_LEADING_CODE_P.
7117 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
7118 the same as RE_MULTIBYTE_P (bufp) now.
7119 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
7120 (TARGET_CHAR_AND_LENGTH): Delete this macro.
7121 (TRANSLATE_VIA_MULTIBYTE): New macro.
7122 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
7123 It is the same as RE_MULTIBYTE_P (bufp) now.
7124 <exactn>: Translate via multibyte.
7125 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
7126 translate it.
7127 <charset, charset_not>: Fetch a character by
7128 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
7129 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
7130 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
7131 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
7132 by GET_CHAR_AFTER.
7133 (bcmp_translate): Likewise.
7134
7135 * search.c (compile_pattern): Check the member target_multibyte,
7136 not the member multibyte of buf.
7137
7138 * lread.c (read1): While reading a string, set force_singlebyte
7139 and force_multibyte correctly.
7140
7141 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
7142 up of unibyte_to_multibyte_table.
7143
7144 2008-02-01 Kenichi Handa <handa@m17n.org>
7145
7146 * coding.c (setup_coding_system): If coding has
7147 post-read-conversion or pre-write-conversion, set
7148 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
7149 respectively.
7150 (decode_coding_gap): Run post-read-conversion if any.
7151
7152 * fileio.c (Finsert_file_contents): Even if we read into a
7153 unibyte buffer, check if we must decode the result or not.
7154
7155 2008-02-01 Kenichi Handa <handa@m17n.org>
7156
7157 * coding.c (make_conversion_work_buffer): Change the work buffer
7158 name to the same one as that of Emacs 21.
7159
7160 2008-02-01 Kenichi Handa <handa@m17n.org>
7161
7162 * coding.h (make_conversion_work_buffer): Adjust prototype.
7163 (code_conversion_restore): Don't extern it.
7164
7165 * coding.c (detected_mask): Delete unused variable.
7166 (decode_coding_iso_2022): Pay attention to the byte sequence of
7167 CTEXT extended segment, and retain those bytes as is.
7168 (decode_coding_ccl): Delete unused variable `valids'.
7169 (setup_coding_system): Delete unused variable `category'.
7170 (consume_chars): Delete unused variable `category'. Make it work
7171 for non-multibyte case.
7172 (make_conversion_work_buffer): Change argument.
7173 (saved_coding): Delete unused variable.
7174 (code_conversion_restore): Don't check saved_coding->destination.
7175 (code_conversion_save): New function.
7176 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
7177 instead of record_unwind_protect.
7178 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
7179 (detect_coding_system): Delete unused variable `mask'.
7180 (Fdefine_coding_system_internal): Delete unused vaiable id.
7181
7182 * fileio.c (kill_workbuf_unwind): New function.
7183 (Finsert_file_contents): On replacing, call
7184 make_conversion_work_buffer with correct args, and call
7185 record_unwind_protect with the first arg kill_workbuf_unwind.
7186
7187 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
7188
7189 2008-02-01 Kenichi Handa <handa@m17n.org>
7190
7191 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
7192 (fontset_add): Fix for the case that TO is less than TO1.
7193 (Ffontset_info): Don't use fallback fontset on checking the
7194 default fontset.
7195 (dump_fontset): New function for debugging.
7196
7197 * coding.c (Fdefine_coding_system_internal): Fix for the case that
7198 coding_type is Qcharset.
7199
7200 2008-02-01 Kenichi Handa <handa@m17n.org>
7201
7202 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
7203 (map_char_table): Don't inherit the value from the parent on
7204 initializing VAL. Adjust for the above change.
7205
7206 2008-02-01 Kenichi Handa <handa@m17n.org>
7207
7208 * coding.c (Qsignature, Qendian): Delete these variables.
7209 (syms_of_coding): Don't initialize them.
7210 (CATEGORY_MASK_UTF_16_AUTO): New macro.
7211 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
7212 detect_info->found.
7213 (decode_coding_utf_16): Don't detect BOM here.
7214 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
7215 is NOT utf_16_without_bom.
7216 (setup_coding_system): For a coding system of type utf-16, check
7217 if the attribute :endian is Qbig or not (not nil or not), and set
7218 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
7219 (detect_coding): If coding type is utf-16 and BOM detection is
7220 required, detect it.
7221 (Fdefine_coding_system_internal): For a coding system of type
7222 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
7223
7224 2008-02-01 Kenichi Handa <handa@m17n.org>
7225
7226 * coding.c (coding_set_source): Fix for the case that the current
7227 buffer is different from coding->src_object.
7228 (decode_coding_object): Don't use the conversion work buffer if
7229 DST_OBJECT is a buffer.
7230
7231 2008-02-01 Dave Love <fx@gnu.org>
7232
7233 * lread.c (read_emacs_mule_char) [len==2]: Index
7234 emacs_mule_charset correctly.
7235
7236 2008-02-01 Dave Love <fx@gnu.org>
7237
7238 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
7239 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
7240 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
7241 treated specially.)
7242 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
7243 (detected_mask): Remove Big5 bits.
7244
7245 2008-02-01 Kenichi Handa <handa@m17n.org>
7246
7247 The following changes are to make the font rescaling facility
7248 compatible with Emacs 21.
7249
7250 * xfaces.c (Vface_font_rescale_alist): Rename from
7251 Vface_resizing_fonts.
7252 (struct font_name): Rename member resizing_ratio to rescale_ratio.
7253 (font_rescale_ratio): Rename from font_resizing_ratio.
7254 (split_font_name): Set font->rescale_ratio.
7255 (better_font_p): Pay attention to font->rescale_ratio.
7256 (build_scalable_font_name): Likewise. Change RESX, and RESY
7257 fields.
7258 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
7259
7260 2008-02-01 Kenichi Handa <handa@m17n.org>
7261
7262 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
7263 (Qutf_16_le): Remove these variables.
7264 (syms_of_coding): Don't DEFSYM them.
7265 (decode_coding_utf_16): Fix handling of BOM.
7266 (encode_coding_utf_16): Fix handling of BOM.
7267
7268 2008-02-01 Kenichi Handa <handa@m17n.org>
7269
7270 * fileio.c (Finsert_file_contents): On replacing, before decoding
7271 the file into the work buffer, set point of the work buffer to the end.
7272
7273 2008-02-01 Dave Love <fx@gnu.org>
7274
7275 * coding.c (Fcheck_coding_systems_region): Fix type errors.
7276
7277 2008-02-01 Dave Love <fx@gnu.org>
7278
7279 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
7280 and fix C types.
7281
7282 2008-02-01 Kenichi Handa <handa@m17n.org>
7283
7284 * xdisp.c (SKIP_GLYPHS): New macro.
7285 (set_cursor_from_row): Pay attention to string display properties.
7286
7287 * category.c (copy_category_entry): Fix for the case that RANGE
7288 is an integer.
7289
7290 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
7291
7292 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
7293
7294 2008-02-01 Kenichi Handa <handa@m17n.org>
7295
7296 * charset.c (Fcharset_id_internal): New function.
7297 (syms_of_charset): Defsubr it.
7298
7299 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
7300 with the last arg charset_list acquired from coding.
7301 (Fdefine_coding_system_internal): For ccl-based coding system, fix
7302 the attribute coding_attr_ccl_valids.
7303
7304 * coding.h (enum define_coding_ccl_arg_index): Set the first
7305 member coding_arg_ccl_decoder to coding_arg_max.
7306
7307 * ccl.h (ccl_driver): Adjust prototype.
7308
7309 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
7310 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
7311 of DECODE_CAHR, ENCODE_CHAR, CHAR_CHARSET.
7312 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
7313 last arg Qnil.
7314
7315 2008-02-01 Kenichi Handa <handa@m17n.org>
7316
7317 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
7318 call encode_char.
7319
7320 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
7321
7322 2008-02-01 Dave Love <fx@gnu.org>
7323
7324 * composite.c (syms_of_composite): Make composition_hash_table weak.
7325
7326 2008-02-01 Kenichi Handa <handa@m17n.org>
7327
7328 * dispextern.h (check_face_attributes, generate_ascii_font_name)
7329 (font_name_registry): Don't extern them.
7330 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
7331
7332 * fontset.h (Qfontset): Don't extern it.
7333 (new_fontset_from_font_name): Extern it.
7334
7335 * fontset.c: Give 8 extra slots to fontset objects.
7336 (Qfontset_info): New variable.
7337 (syms_of_fontset): Defsym it.
7338 (FONTSET_FALLBACK): New macro.
7339 (fontset_face): Try also the default fontset.
7340 (make_fontset): Realize a fallback fontset from the default fontset.
7341 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
7342 using split_font_name_into_vector and build_font_name_from_vector.
7343 (Fset_fontset_font): Access the elements of font_spec by enum
7344 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
7345 name by using split_font_name_into_vector.
7346 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
7347 generate a proper font name from the fontset name. Update
7348 Vfontset_alias_alist.
7349 (n_auto_fontsets): New variable.
7350 (new_fontset_from_font_name): New function.
7351 (Ffont_info): Store the information about fonts generated from the
7352 default fontset in the first extra slot of the returned char-table.
7353
7354 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
7355 (font_name_registry): Delete function.
7356 (split_font_name_into_vector): New function.
7357 (build_font_name_from_vector): New function.
7358 (font_list): The argument REGISTRY is now a list of registry names.
7359 (choose_face_font): If we are choosing an ASCII font, and ATTRS
7360 specifies an explicit font name, return the name as is. Make a
7361 list of registy names.
7362
7363 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
7364 of x_new_fontset.
7365 (Fx_create_frame): Don't call x_new_fontset here. Just use
7366 x_list_fonts to check the existence of fonts.
7367
7368 * xterm.h (x_new_fontset): Adjust prototype.
7369
7370 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
7371 string. Use new_fontset_from_font_name to create a fontset from a
7372 font name.
7373
7374 2008-02-01 Kenichi Handa <handa@m17n.org>
7375
7376 * syntax.c (Vfind_word_boundary_function_table): New name for
7377 Vnext_word_boundary_function_table.
7378 (find-word-boundary-function-table): New name for
7379 next-word-boundary-function-table.
7380
7381 2008-02-01 Dave Love <fx@gnu.org>
7382
7383 * Makefile.in: Fix some dependencies.
7384
7385 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
7386 set it to nil before returning.
7387
7388 * composite.c (update_compositions): Fix type error.
7389
7390 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
7391
7392 2008-02-01 Kenichi Handa <handa@m17n.org>
7393
7394 * xterm.c (x_new_font): Optimize for the case that the font is
7395 already set for the frame.
7396
7397 2008-02-01 Kenichi Handa <handa@m17n.org>
7398
7399 * chartab.c (char_table_ascii): Check if the char table contents
7400 is sub-char-table or not.
7401 (char_table_set, char_table_set_range): Fix argument to
7402 char_table_ascii.
7403
7404 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
7405 (detect_coding_utf_8, detect_coding_utf_16)
7406 (detect_coding_emacs_mule, detect_coding_iso_2022)
7407 (detect_coding_sjis, detect_coding_big5)
7408 (detect_coding_ccl, detect_coding_charset): Change argument MASK
7409 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
7410 sequence is valid in this coding system. Change callers.
7411 (MAX_ANNOTATION_LENGTH): New macro.
7412 (ADD_ANNOTATION_DATA): New macro.
7413 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
7414 ADD_ANNOTATION_DATA. Change the format of annotation data.
7415 (ADD_CHARSET_DATA): New macro.
7416 (emacs_mule_char): New argument ID. Change callers.
7417 (decode_coding_emacs_mule, decode_coding_iso_2022)
7418 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
7419 Produce charset annotation data in coding->charbuf.
7420 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
7421 to charset annotation data in coding->charbuf.
7422 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
7423 coding->common_flags if the coding system is iso-2022 based and
7424 uses designation.
7425 (produce_composition): Adjust for the new annotation data format.
7426 (produce_charset): New function.
7427 (produce_annotation): Handle charset annotation.
7428 (handle_composition_annotation, handle_charset_annotation): New
7429 functions.
7430 (consume_chars): Handle charset annotation. Utilize the above two
7431 functions.
7432 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
7433 buffer, get the deleted text as a string and set
7434 coding->src_object to that string.
7435 (detect_coding, detect_coding_system): Use the new struct
7436 coding_detection_info.
7437
7438 * coding.h (struct coding_detection_info): New structure.
7439 (struct coding_system): Adjust prototype of the member `detector'.
7440 (CODING_ANNOTATE_CHARSET_MASK): New macro.
7441
7442 2008-02-01 Kenichi Handa <handa@m17n.org>
7443
7444 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
7445
7446 2008-02-01 Dave Love <fx@gnu.org>
7447
7448 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
7449 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
7450 to new local and nullify apropos_accumulate before returning.
7451 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
7452
7453 2008-02-01 Kenichi Handa <handa@m17n.org>
7454
7455 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
7456 correctly.
7457
7458 2008-02-01 Dave Love <fx@gnu.org>
7459
7460 * fns.c (Flanginfo): Call synchronize_system_time_locale.
7461
7462 2008-02-01 Kenichi Handa <handa@m17n.org>
7463
7464 The following changes are to make character composition happen
7465 automatically on displaying.
7466
7467 * Makefile.in (lisp, shortlisp): Add composite.elc.
7468
7469 * composite.h (Qauto_composed, Vauto_composition_function)
7470 (Qauto_composition_function): Extern them.
7471
7472 * composite.c (Vcomposition_function_table)
7473 (Qcomposition_function_table): Delete variables.
7474 (Qauto_composed, Vauto_composition_function)
7475 (Qauto_composition_function): New variables.
7476 (run_composition_function): Don't call
7477 compose-chars-after-function.
7478 (update_compositions): Clear `auto-composed' text property.
7479 (compose_chars_in_text): Delete this function.
7480 (syms_of_composite): Staticpro Qauto_composed and
7481 Qauto_composition_function. Declare Vauto_composition_function as
7482 a Lisp variable.
7483
7484 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
7485
7486 * xdisp.c (it_props): Add an entry for Qauto_composed.
7487 (handle_auto_composed_prop): New function.
7488
7489 * xselect.c (selection_data_to_lisp_data): Don't call
7490 compose_chars_in_text.
7491
7492 2008-02-01 Dave Love <fx@gnu.org>
7493
7494 * keyboard.c (read_char): Modify checking around use of
7495 Vkeyboard_translate_table.
7496
7497 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
7498 and fix C types.
7499
7500 2008-02-01 Kenichi Handa <handa@m17n.org>
7501
7502 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
7503 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
7504 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
7505 the case that the last byte is '\r' correctly.
7506 (decode_coding): Flush out the unprocessed data correctly.
7507 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
7508
7509 2008-02-01 Dave Love <fx@gnu.org>
7510
7511 * xterm.c (XTread_socket): Fix changes for defined keysyms.
7512 Add XK_ISO... case.
7513 (xaw_scroll_callback): Revert last change.
7514
7515 2008-02-01 Kenichi Handa <handa@m17n.org>
7516
7517 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
7518
7519 2008-02-01 Kenichi Handa <handa@m17n.org>
7520
7521 * xfaces.c (Vface_resizing_fonts): New variable.
7522 (struct font_name): New member `resizing_ratio'.
7523 (font_resizing_ratio): New function.
7524 (split_font_name): Set font->resizing_ratio.
7525 (better_font_p): Pay attention to font->resizing_ratio.
7526 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
7527 RESX, and RESY fields.
7528 (try_alternative_families): Try scalable fonts if
7529 Vscalable_fonts_allowed is not Qt.
7530 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
7531
7532 2008-02-01 Dave Love <fx@gnu.org>
7533
7534 * xterm.c (xaw_scroll_callback): Cast correctly.
7535
7536 2008-02-01 Dave Love <fx@gnu.org>
7537
7538 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
7539 (lispy_kana_keys): Comment out.
7540 (make_lispy_event) [XK_kana_A]: Comment out.
7541
7542 * xterm.c (xaw_scroll_callback): Cast call_data.
7543 (XTread_socket): Deal with ASCII keysyms.
7544 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
7545
7546 2008-02-01 Dave Love <fx@gnu.org>
7547
7548 * xterm.c (Vx_keysym_table): New.
7549 (syms_of_xterm): Initialize it.
7550 (XTread_socket): Use it.
7551 From head: Eliminate incorrect optimization that tried to avoid
7552 decoding the output of X*LookupString.
7553 (x_get_font_repertory): Delete charset declaration.
7554
7555 2008-02-01 Kenichi Handa <handa@m17n.org>
7556
7557 * coding.c (detect_coding_charset): If only ASCII bytes are found,
7558 return 0.
7559 (Fdefine_coding_system_internal): Setup
7560 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
7561
7562 2008-02-01 Dave Love <fx@gnu.org>
7563
7564 * coding.c (Fcheck_coding_system): Doc fix.
7565
7566 * editfns.c (Finsert_byte): Return a proper value.
7567
7568 2008-02-01 Kenichi Handa <handa@m17n.org>
7569
7570 * coding.c (decode_coding): Fix args to translate_chars. Pay
7571 attention to Vstandard_translation_table_for_decode.
7572 (encode_coding): Fix args to translate_chars. Pay attention to
7573 Vstandard_translation_table_for_encode.
7574
7575 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
7576 SINGLE_BYTE_CHAR_P.
7577
7578 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
7579 not by SINGLE_BYTE_CHAR_P.
7580
7581 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
7582 SINGLE_BYTE_CHAR_P.
7583
7584 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
7585 SINGLE_BYTE_CHAR_P.
7586
7587 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
7588 by SINGLE_BYTE_CHAR_P.
7589
7590 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
7591 SINGLE_BYTE_CHAR_P.
7592
7593 2008-02-01 Dave Love <fx@gnu.org>
7594
7595 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
7596
7597 2008-02-01 Dave Love <fx@gnu.org>
7598
7599 * fns.c (Flanginfo): Fix typo.
7600
7601 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
7602
7603 2008-02-01 Kenichi Handa <handa@m17n.org>
7604
7605 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
7606 (detect_coding_emacs_mule, detect_coding_iso_2022)
7607 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
7608 incomplete byte sequence. Don't update *mask when correctly detected.
7609 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
7610 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
7611 (detect_coding, detect_coding_system): Adjust for the changes above.
7612
7613 2008-02-01 Kenichi Handa <handa@m17n.org>
7614
7615 * character.c (char_string): Rename from
7616 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
7617 (string_char): Rename from string_char.
7618
7619 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
7620 if C is greater than MAX_3_BYTE_CHAR.
7621 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
7622 string_char instead of string_char_with_unification.
7623
7624 2008-02-01 Dave Love <fx@gnu.org>
7625
7626 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
7627
7628 2008-02-01 Kenichi Handa <handa@m17n.org>
7629
7630 * keymap.c (push_key_description): Pay attention to force_multibyte.
7631
7632 * regex.c (re_search_2): Fix for the case of unibyte buffer.
7633
7634 2008-02-01 Dave Love <fx@gnu.org>
7635
7636 * charset.c (define_charset_internal): Rename `supprementary'.
7637
7638 * Makefile.in (lisp, shortlisp): Remove latin-N.
7639
7640 2008-02-01 Dave Love <fx@gnu.org>
7641
7642 * xfns.c (x_window, x_window): Use use_xim.
7643
7644 * xterm.c (use_xim): Initialize.
7645 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
7646 (x_term_init): Maybe set use_xim.
7647
7648 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
7649
7650 2008-02-01 Kenichi Handa <handa@m17n.org>
7651
7652 * search.c (search_buffer): Fix case-fold-search of multibyte
7653 characters.
7654 (boyer_moore): Rename the last argument to char_high_bits.
7655
7656 2008-02-01 Kenichi Handa <handa@m17n.org>
7657
7658 * xdisp.c (display_string): Fix for the case of zero width glyph.
7659
7660 * xfns.c (x_set_font): Change the error message of the case that
7661 x_new_fontset returns Qt.
7662
7663 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
7664 (Finternal_set_lisp_face_attribute): Use signal_error for the
7665 error of invalid fontset.
7666
7667 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
7668 fontset, return Qt.
7669
7670 2008-02-01 Dave Love <fx@gnu.org>
7671
7672 * unexelf.c (unexec): Make .got handling not SGI-specific.
7673
7674 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
7675
7676 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
7677
7678 * keyboard.c (read_key_sequence): Fix type error.
7679
7680 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
7681 type error.
7682
7683 * fontset.c (fontset_add): Return Lisp_Object.
7684
7685 2008-02-01 Dave Love <fx@gnu.org>
7686
7687 * charset.h (charset_ordered_list_tick): Declare extern.
7688
7689 2008-02-01 Kenichi Handa <handa@m17n.org>
7690
7691 The following changes (and some of 2008-02-01 changes of mine) are
7692 for handling syntax, category, and case conversion for unibyte
7693 characters by converting them to multibyte on the fly. With these
7694 changes, we don't have to setup syntax and case tables for unibyte
7695 characters in each language environment.
7696
7697 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
7698 multibyte if necessary.
7699
7700 * bytecode.c (Fbyte_code): Likewise.
7701
7702 * character.h (LEADING_CODE_LATIN_1_MIN)
7703 (LEADING_CODE_LATIN_1_MAX): New macros.
7704 (unibyte_to_multibyte_table): Extern it.
7705 (unibyte_char_to_multibyte): New macro.
7706 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
7707 (CHAR_LEADING_CODE): New macro.
7708 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
7709
7710 * character.c (unibyte_to_multibyte_table): New variable.
7711 (unibyte_char_to_multibyte): Move to character.h and define as macro.
7712 (multibyte_char_to_unibyte): If C is an eight-bit character,
7713 convert it to the corresponding byte value.
7714
7715 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
7716 not 1, singals an error. Update the elements of
7717 unibyte_to_multibyte_table.
7718 (init_charset_once): Initialize unibyte_to_multibyte_table.
7719 (syms_of_charset): Define the charset `iso-8859-1'.
7720
7721 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
7722 as is without converting it to unibyte. In a unibyte buffer,
7723 convert C to multibyte before checking the syntax.
7724
7725 * lisp.h (unibyte_char_to_multibyte): Delete extern.
7726
7727 * minibuf.c (Fminibuffer_complete_word): Use the macro
7728 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
7729
7730 * regex.h (struct re_pattern_buffer): New member target_multibyte.
7731
7732 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
7733 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
7734 that is zero, convert an eight-bit char to multibyte.
7735 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
7736 non-emacs case.
7737 (PATFETCH): Convert an eight-bit char to multibyte.
7738 (HANDLE_UNIBYTE_RANGE): New macro.
7739 (regex_compile): Setup the compiled pattern for multibyte chars
7740 even if the given regex string is unibyte. Use PATFETCH_RAW
7741 instead of PATFETCH in many places. To handle `charset'
7742 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
7743 only for ASCII chars.
7744 (analyse_first) <exactn>: Simplify because the compiled pattern
7745 is multibyte.
7746 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
7747 <charset>: Use CHAR_LEADING_CODE to get leading codes.
7748 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
7749 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
7750 multibyte always 1.
7751 (re_search_2): In emacs, set the locale variable multibyte to 1,
7752 otherwise to 0. New local variable target_multibyte. Check it
7753 to decide the multibyteness of STR1 and STR2. If
7754 target_multibyte is zero, convert unibyte chars to multibyte
7755 before translating and checking fastmap.
7756 (TARGET_CHAR_AND_LENGTH): New macro.
7757 (re_match_2_internal): In emacs, set the locale variable multibyte
7758 to 1, otherwise to 0. New local variable target_multibyte. Check
7759 it to decide the multibyteness of STR1 and STR2. Use
7760 TARGET_CHAR_AND_LENGTH to fetch a character from D.
7761 <charset, charset_not>: If multibyte is nonzero, check fastmap
7762 only for ASCII chars. Call bcmp_translate with
7763 target_multibyte, not with multibyte.
7764 <begline>: Declare the local variable C as `unsigned'.
7765 (bcmp_translate): Change the last arg name to target_multibyte.
7766
7767 * search.c (compile_pattern_1): Don't adjust the multibyteness of
7768 the regexp pattern and the matching target. Set cp->buf.multibyte
7769 to the multibyteness of the regexp pattern. Set
7770 cp->but.target_multibyte to the multibyteness of the matching target.
7771 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
7772 FETCH_STRING_CHAR_ADVANCE.
7773 (Freplace_match): Convert unibyte chars to multibyte.
7774
7775 * syntax.c (char_quoted, back_comment, scan_words)
7776 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
7777 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
7778 unibyte chars to multibyte.
7779 (skip_chars): Delete the arg syntaxp, and move the code for
7780 handling syntaxes to skip_syntaxes. Change callers.
7781 Fix the case that the multibyteness of STRING and the current
7782 buffer doesn't match.
7783 (skip_syntaxes): New function.
7784 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
7785 SINGLE_BYTE_CHAR_P.
7786
7787 2008-02-01 Kenichi Handa <handa@m17n.org>
7788
7789 * xfaces.c (QCfontset): New variable.
7790 (LFACE_FONTSET): New macro.
7791 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
7792 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
7793 (Finternal_set_lisp_face_attribute)
7794 (Finternal_get_lisp_face_attribute): Handle QCfontset.
7795 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
7796 check also LFACE_FONTSET_INDEX.
7797 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
7798 attrs[LFACE_FONT_INDEX].
7799 (syms_of_xfaces): Intern and staticpro QCfontset.
7800
7801 * dispextern.h (enum lface_attribute_index): New member
7802 LFACE_FONTSET_INDEX.
7803
7804 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
7805
7806 2008-02-01 Kenichi Handa <handa@m17n.org>
7807
7808 * coding.c (coding_set_destination): Fix coding->destination for
7809 the case converting a region.
7810 (encode_coding_utf_8): Encode eight-bit chars as single byte.
7811 (encode_coding_object): Fix coding->dst_pos and
7812 coding->dst_pos_byte for the case converting a region.
7813
7814 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
7815
7816 * character.h (BYTE8_STRING): New macro.
7817
7818 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
7819
7820 2008-02-01 Kenichi Handa <handa@m17n.org>
7821
7822 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
7823 characters by octal form.
7824
7825 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
7826
7827 * buffer.h (_fetch_multibyte_char_len): Delete extern.
7828 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
7829 _fetch_multibyte_char_len.
7830 (FETCH_CHAR_AS_MULTIBYTE): New macro.
7831
7832 * casetab.c (set_canon, set_identity, shuffle): Simplify.
7833
7834 * casefiddle.c (casify_object): Simplify. Handle the case that
7835 the case conversion change the byte length.
7836 (casify_region): Likewise.
7837
7838 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
7839
7840 * character.c (_fetch_multibyte_char_len): Delet this variable.
7841 (syms_of_character): Setup Vprintable_chars.
7842
7843 * editfns.c (Fchar_equal): Fix for the unibyte case.
7844 (Finsert_byte): New function.
7845 (syms_of_editfns): Defsubr it.
7846
7847 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
7848 of direct code 0x3ffff.
7849
7850 * search.c (Freplace_match): Fix for the unibyte case.
7851
7852 2008-02-01 Kenichi Handa <handa@m17n.org>
7853
7854 * lread.c (safe_to_load_p): Fix the logic.
7855
7856 * syntax.c (scan_words): Don't treat characters belonging to
7857 different scripts as constituting a word.
7858
7859 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
7860
7861 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
7862
7863 * emacs.c (main): In the case of --unibyte, instead of aborting on
7864 finding non-empty buffer, make it unibyte.
7865
7866 2008-02-01 Kenichi Handa <handa@m17n.org>
7867
7868 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
7869 to create a fontset.
7870
7871 2008-02-01 Dave Love <fx@gnu.org>
7872
7873 * character.c (Funibyte_char_to_multibyte): Doc fix.
7874
7875 * xfns.c [HAVE_STDLIB_H]: Fix last change.
7876
7877 2008-02-01 Kenichi Handa <handa@m17n.org>
7878
7879 * fontset.c (fontset_add): Make the type `int'.
7880 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
7881
7882 * character.c (unibyte_char_to_multibyte)
7883 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
7884 charset_unibyte, not charset_primary.
7885
7886 * charset.h (charset_unibyte): Extern it instead of charset_primary.
7887
7888 * charset.c (charset_unibyte): Rename from charset_primary.
7889 (Funibyte_charset): Rename from Fprimary_charset.
7890 (Fset_unibyte_charset): Rename from Fset_primary_charset.
7891 (syms_of_charset): Adjust for the above changes.
7892
7893 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
7894 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
7895 it->multibyte_p is zero.
7896
7897 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
7898 Delete extern.
7899
7900 2008-02-01 Kenichi Handa <handa@m17n.org>
7901
7902 * coding.c (Fdefine_coding_system_internal): Fix category setting
7903 for a coding system of type iso-2022.
7904
7905 2008-02-01 Kenichi Handa <handa@m17n.org>
7906
7907 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
7908
7909 2008-02-01 Kenichi Handa <handa@m17n.org>
7910
7911 * syntax.c (Vnext_word_boundary_function_table): New variable.
7912 (next-word-boundary-function-table): Declare it as a Lisp variable
7913 in syms_of_syntax.
7914 (scan_words): Call functions in Vnext_word_boundary_function_table
7915 if any.
7916
7917 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
7918
7919 * fontset.c (fs_load_font): If fontp->charset is not negative,
7920 return fontp without setting its members.
7921
7922 2008-02-01 Dave Love <fx@gnu.org>
7923
7924 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
7925
7926 * m/sparc.h (HAVE_ALLOCA): Delete.
7927
7928 * s/irix6-5.h: Don't include strings.h.
7929 (bcopy, bzero, bcmp): Don't undef.
7930
7931 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
7932
7933 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
7934 (TIOCSIGSEND): Don't test IRIX6.
7935 (bcopy, bzero, bcmp): Define conditionally.
7936
7937 2008-02-01 Kenichi Handa <handa@m17n.org>
7938
7939 * buffer.c (Qas, Qmake, Qto): New variables.
7940 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
7941 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
7942
7943 * callproc.c (Fcall_process): Don't call insert_1_both directly if
7944 we are inserting a process output into a multibyte buffer.
7945
7946 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
7947 multibyte_char_to_unibyte.
7948
7949 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
7950 by the primary charset, make it eight-bit char.
7951 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
7952
7953 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
7954 (charset_8_bit__control, charset_8_bit_graphic)
7955 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
7956 (define_charset_internal): New function.
7957 (syms_of_charset): Call define_charset_internal for pre-defined
7958 charsets.
7959
7960 * charset.h (charset_8_bit): Extern it.
7961
7962 * coding.c (make_conversion_work_buffer): Adjust for the change
7963 of Fset_buffer_multibyte.
7964 (encode_coding_raw_text): Increment p0 in the loop.
7965
7966 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
7967
7968 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
7969 for the change of Fset_buffer_multibyte.
7970
7971 * fns.c (Fstring_to_multibyte): New function.
7972 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
7973
7974 2008-02-01 Dave Love <fx@gnu.org>
7975
7976 * xfns.c (x_put_x_image): Declare args.
7977
7978 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
7979 (try_font_list): Declare an arg.
7980
7981 * xdisp.c (message2_nolog, set_message): Declare an arg.
7982
7983 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
7984
7985 * syntax.c (scan_sexps_forward): Declare an arg.
7986
7987 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
7988 Declare an arg.
7989
7990 * lisp.h (Fnew_fontset): Declare.
7991
7992 * keymap.c (push_key_description): Call CHARACTERP correctly.
7993
7994 * fontset.c (fontset_add): Declare args. Call make_number correctly.
7995 (face_for_char): Delete unused vars.
7996 (Fset_fontset_font): Doc fix. Delete unused vars.
7997
7998 * doc.c (Fsubstitute_command_keys): Delete unused vars.
7999
8000 * composite.c (update_compositions): Declare arg.
8001
8002 * cm.c (calccost, cmgoto): Declare args.
8003
8004 * charset.c: Remove `emacs' conditional. Doc fixes.
8005 (map_char_table_for_charset): Declare.
8006
8007 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
8008
8009 * ccl.c: Remove `emacs' conditional.
8010
8011 2008-02-01 Kenichi Handa <handa@m17n.org>
8012
8013 The following changes are to allow specifying multiple font
8014 patterns for a character range (specified by script or charset).
8015
8016 * Makefile.in (abbrev.o): Depend on syntax.h.
8017 (xfaces.o): Depend on charset.h.
8018
8019 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
8020 SINGLE_BYTE_CHAR_P.
8021
8022 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
8023
8024 * character.h (Vchar_script_table): Extern it.
8025
8026 * character.c (Vscript_alist): Delete.
8027 (Vchar_script_table, Qchar_script_table): New variable.
8028 (syms_of_character): Declare Vchar_script_table as a lisp variable
8029 and initialize it.
8030
8031 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
8032 have property char-table-extra-slots, make no extra slot.
8033
8034 * dispextern.h (struct face): Delete member `charset'.
8035 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
8036 SINGLE_BYTE_CHAR_P.
8037 (choose_face_font, lookup_non_ascii_face, font_name_registry):
8038 Add prototypes.
8039 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
8040 (generate_ascii_font_name): Rename from generate_ascii_font.
8041
8042 * fontset.h (get_font_repertory_func): New prototype.
8043 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
8044 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
8045
8046 * fontset.c (Qprepend, Qappend): New variables.
8047 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
8048 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
8049 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
8050 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
8051 (fontset_ref_and_range, fontset_add, reorder_font_vector)
8052 (load_font_get_repertory): New functions.
8053 (fontset_set): Delete.
8054 (fontset_face): New arg FACE. Return face ID, not face.
8055 Complete re-write to handle new fontset structure. Change caller.
8056 (free_face_fontset): Use ASET istead of AREF (X) = Y.
8057 (face_for_char): Don't call lookup_face.
8058 (make_fontset_for_ascii_face): New arg FACE.
8059 (fs_load_font): New arg CHARSET_ID. Don't check
8060 Vfont_encoding_alist here.
8061 (find_font_encoding): New function.
8062 (list_fontsets): Use STRINGP, not ! NILP.
8063 (accumulate_script_ranges): New function.
8064 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
8065 re-written to handle new fontset structure.
8066 (Ffontset_font): Return a copy of element.
8067 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
8068 docstring of font-encoding-alist.
8069
8070 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
8071 (Fset_fotset_font): Fix arguments to 5.
8072
8073 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
8074
8075 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
8076 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
8077 (highlight_trailing_whitespace): Adjust for the change of
8078 lookup_named_face.
8079
8080 * xfaces.c: Include charset.h.
8081 (load_face_font): Delete argument C. Change caller.
8082 (generate_ascii_font_name): Rename from generate_ascii_font.
8083 (font_name_registry): New function.
8084 (cache_face): Store ascii faces before non-ascii faces in buckets.
8085 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
8086 Lookup only ascii faces.
8087 (lookup_non_ascii_face): New function.
8088 (lookup_named_face): Delete argument C. Change caller.
8089 (lookup_derived_face): Delete argument C. Change caller.
8090 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
8091 a string, just call font_list with it.
8092 (choose_face_font): Delete arguments FACE and C. New arg
8093 FONT_SPEC. Change caller.
8094 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
8095 Change caller.
8096 (realize_non_ascii_face): New function.
8097 (realize_x_face): Call load_face_font here.
8098 (realize_tty_face): Delete argument C. Change caller.
8099 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
8100 get a face ID.
8101 (dump_realized_face): Don't print charset of FACE.
8102
8103 * xfns.c (x_set_font): Always call x_new_fontset and
8104 store_frame_parameter.
8105 (Fx_create_frame): Call x_new_fontset, not x_new_font.
8106 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
8107
8108 * xterm.h (x_get_font_repertory): Extern it.
8109
8110 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
8111 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
8112 it->multibyte_p is zero.
8113 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
8114 (x_new_fontset): If FONTSETNAME doesn't match any existing
8115 fontsets, create a new one.
8116 (x_get_font_repertory): New function.
8117
8118 2008-02-01 Kenichi Handa <handa@m17n.org>
8119
8120 * coding.c (Ffind_coding_systems_region_internal): Detect an
8121 ASCII only string correctly.
8122
8123 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
8124 version is 0.
8125
8126 2008-02-01 Kenichi Handa <handa@m17n.org>
8127
8128 * lread.c: Include "coding.h".
8129 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
8130 (load_each_byte, unread_char): New variables.
8131 (readchar_backlog): Delete.
8132 (readchar): Return a character unless load_each_byte is nonzero.
8133 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
8134 cons. If unread_char is not -1, simply return it.
8135 (unreadchar): Handle the case that readcharfun is
8136 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
8137 (read_multibyte): Delete.
8138 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
8139 (read_emacs_mule_char): New functions.
8140 (Fload): Even if the file doesn't have the extention ".elc", if
8141 safe_to_load_p returns a positive version number, assume that the
8142 file contains bytecompiled code. If the version is less than 22,
8143 load the file while decoding multibyte sequences by emacs-mule.
8144 (readevalloop): Don't use readchar_backlog.
8145 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
8146 (Fread_from_string): Pay attention to the case that STREAM is a cons.
8147 (read_escape): Delete the arg BYTEREP.
8148 (read1): Set load_each_byte to 1 temporarily while handling
8149 #@NUMBER. Don't call read_multibyte.
8150 (read_vector): Call Fread with a cons. If readcharfun is
8151 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
8152 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
8153 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
8154 and Qload_force_doc_strings.
8155
8156 2008-02-01 Kenichi Handa <handa@m17n.org>
8157
8158 * xdisp.c (face_before_or_after_it_pos): Call
8159 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
8160
8161 2008-02-01 Kenichi Handa <handa@m17n.org>
8162
8163 * character.h (TRAILING_CODE_P): New macro.
8164 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
8165 (string_char_with_unification): Fix prototype.
8166 (Vscript_alist): Extern it.
8167
8168 * character.c (Vscript_alist): New variable.
8169 (string_char_with_unification, str_as_unibyte)
8170 (string_escape_byte8): Add `const' to local variables.
8171 (syms_of_character): Declare script-alist as a Lisp variable.
8172
8173 * charset.h (Vcharset_ordered_list): Extern it.
8174 (charset_ordered_list_tick): Extern it.
8175 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
8176 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
8177 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
8178 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
8179 (Funify_charset): Adjust for the change of Funify_charset.
8180
8181 * charset.c (charset_ordered_list_tick): New variable.
8182 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
8183 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
8184 deunify intead of unify a charset.
8185 (string_xstring_p): Add `const' to local variables.
8186 (find_charsets_in_text): Add `const' to arguemnts and local variables.
8187 (encode_char): Adjust for the change of Funify_charset. Fix
8188 detecting of invalid code.
8189 (Fset_charset_priority): Increment charset_ordered_list_tick.
8190 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
8191 and TO_CODE.
8192
8193 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
8194 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
8195 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
8196 (decode_coding_ccl, consume_chars)
8197 (Ffind_coding_systems_region_internal)
8198 (Fcheck_coding_systems_region): Add `const' to local variables.
8199
8200 * print.c (print_object): Use octal form for printing the
8201 contents of a bool vector.
8202
8203 2008-02-01 Dave Love <fx@gnu.org>
8204
8205 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
8206 <version == 20>: Refuse to load.
8207
8208 2008-02-01 Dave Love <fx@gnu.org>
8209
8210 * fns.c: Move coding.h.
8211 (Qcodeset, Qdays, Qmonths): New.
8212 (concat): Use CHARACTERP instead of INTERGERP.
8213 (Flocale_codeset): Delete.
8214 (Flanginfo): New function.
8215 (syms_of_fns): Change accordingly.
8216
8217 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
8218
8219 2008-02-01 Dave Love <fx@gnu.org>
8220
8221 * casetab.c (init_casetab_once, init_casetab_once): Fix
8222 CHAR_TABLE_SET call.
8223
8224 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
8225
8226 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
8227
8228 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
8229 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
8230 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
8231
8232 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
8233
8234 * coding.c (ENCODE_DESIGNATION, decode_eol)
8235 (make_conversion_work_buffer, code_conversion_restore)
8236 (Fdefine_coding_system_internal): Convert Lisp types.
8237 (code_conversion_restore): Use EQ, not ==.
8238 (Fencode_coding_string): Fix code_convert_string call.
8239
8240 * coding.h (code_convert_region): Fix prototype.
8241
8242 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
8243
8244 * fontset.c (fontset_ref, fontset_set, fs_load_font)
8245 (Ffontset_info): Convert Lisp types.
8246
8247 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
8248
8249 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
8250
8251 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
8252
8253 * chartab.c: Include "...h", not <...h> in some cases.
8254
8255 * callproc.c (Fcall_process): Remove unused variables.
8256
8257 2008-02-01 Dave Love <fx@gnu.org>
8258
8259 * coding.c (Fset_coding_system_priority): Allow null arg list.
8260
8261 2008-02-01 Dave Love <fx@gnu.org>
8262
8263 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
8264 (Fself_insert_and_exit): Use CHARACTERP.
8265
8266 * callproc.c (Fcall_process): Remove unused vars.
8267
8268 * xterm.c (XTread_socket): Add extra dead keysyms.
8269
8270 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
8271
8272 * dispextern.h: Remove prototypes for redraw_frame,
8273 redraw_garbaged_frames.
8274
8275 * cmds.c (Fself_insert_command): Use CHARACTERP.
8276
8277 * chartab.c (make_sub_char_table): Remove unused var.
8278 (Fset_char_table_default, Fmap_char_table): Doc fix.
8279
8280 * keymap.c (access_keymap): Remove generic char code.
8281 (push_key_description): Use CHARACTERP.
8282
8283 2008-02-01 Dave Love <fx@gnu.org>
8284
8285 * charset.c: Doc fixes.
8286 (Funify_charset): Extra checking.
8287
8288 2008-02-01 Dave Love <fx@gnu.org>
8289
8290 * lread.c: Remove some unused variables.
8291 (safe_to_load_p): If safe, return the magic number version byte.
8292 (Fload): Maybe use load-with-code-conversion.
8293
8294 2008-02-01 Kenichi Handa <handa@m17n.org>
8295
8296 * category.c (Fmodify_category_entry): Don't modify the contents
8297 of category_set for characters out of the range. Avoid
8298 unnecessary modification.
8299
8300 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
8301 Vchar_unify_table. The default value of the table is now nil.
8302
8303 * character.c (syms_of_character): Setup Vchar_width_table for
8304 eight-bit-control and raw-byte chars.
8305
8306 * charset.h (enum define_charset_arg_index): Delete
8307 charset_arg_parents and add charset_arg_subset and
8308 charset_arg_superset.
8309 (enum charset_attr_index): Delete charset_parents and add
8310 charset_subset and charset_superset.
8311 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
8312 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
8313 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
8314 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
8315 (CHARSET_SUPERSET): New macros.
8316 (charset_work): Extern it.
8317 (ENCODE_CHAR): Use charset_work.
8318 (CHAR_CHARSET_P): Adjust for the change of encoder format.
8319 (map_charset_chars): Extern it.
8320
8321 * charset.c (load_charset_map): Set the default value of encoder
8322 and deunifier char-tables to nil.
8323 (map_charset_chars): Change argument. Change callers. Use
8324 map_char_table_for_charset instead of map_char_table.
8325 (Fmap_charset_chars): New optional args from_code and to_code.
8326 (Fdefine_charset_internal): Adjust for the change of
8327 `define-charset' (:parents -> :subset or :superset).
8328 (charset_work): New variable.
8329 (encode_char, syms_of_charset): Adjust for the change of
8330 Fdefine_charset_internal.
8331 (Ffind_charset_string): Setup the vector `charsets' correctly.
8332
8333 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
8334 the previous change.
8335 (char_table_ref_and_range): Adjust for the above change.
8336 (map_sub_char_table_for_charset): New function.
8337 (map_char_table_for_charset): New function.
8338
8339 * keymap.c (describe_vector): Handle a char-table directly here.
8340 (describe_char_table): Delete.
8341
8342 * lisp.h (map_charset_chars): Delete.
8343
8344 2008-02-01 Dave Love <fx@gnu.org>
8345
8346 * fns.c (count_combining): Comment out (unused).
8347 (Flocale_codeset): New.
8348 (syms_of_fns): Defsubr it.
8349
8350 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
8351 (size_t): Remove.
8352
8353 2008-02-01 Dave Love <fx@gnu.org>
8354
8355 * Makefile.in (chartab.o): Depend on charset.h.
8356
8357 2008-02-01 Kenichi Handa <handa@m17n.org>
8358
8359 * character.c (syms_of_character): Set the default value of
8360 Vprintable_chars to Qnil.
8361
8362 2008-02-01 Dave Love <fx@gnu.org>
8363
8364 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
8365
8366 2008-02-01 Kenichi Handa <handa@m17n.org>
8367
8368 * charset.c (load_charset_map): Handle the case that from < to
8369 correctly.
8370
8371 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
8372 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
8373 Pay attention to raw-8-bit chars.
8374
8375 2008-02-01 Kenichi Handa <handa@m17n.org>
8376
8377 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
8378 It is not bytecompiled now.
8379
8380 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
8381 (charset_jisx0208): New variables.
8382 (Fdefine_charset_internal): Setup them if appropriate.
8383 (init_charset_once): Initialize them to -1.
8384
8385 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
8386 (charset_jisx0208): Extern them.
8387
8388 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
8389 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
8390 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
8391 (setup_iso_safe_charsets): Fix arguments to Fassq.
8392 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
8393 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
8394 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
8395 (encode_coding_iso_2022): Change the 1st arg to
8396 ENCODE_ISO_CHARACTER to a variable.
8397
8398 2008-02-01 Kenichi Handa <handa@m17n.org>
8399
8400 * charset.h (enum define_charset_arg_index): New enums
8401 charset_arg_min_code and charset_arg_max_code.
8402 (struct charset): New member char_index_offset.
8403
8404 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
8405 Take charset->char_index_offset into account.
8406 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
8407 args[charset_arg_max_code]. Setup charset.char_index_offset.
8408 (syms_of_charset): Fix args to Fdefine_charset_internal.
8409
8410 2008-02-01 Dave Love <fx@gnu.org>
8411
8412 * coding.c (decode_coding_utf_8): Reject overlong sequences.
8413
8414 2008-02-01 Dave Love <fx@gnu.org>
8415
8416 * coding.c: Doc fixes.
8417 (Fcoding_system_aliases): Fix return value.
8418 (Qmac): Remove (duplicated) definition.
8419
8420 2008-02-01 Dave Love <fx@gnu.org>
8421
8422 * charset.c (Fcharset_priority_list, Fset_charset_priority): New
8423 functions.
8424
8425 * character.c (Fstring): Doc fix.
8426
8427 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
8428
8429 * fontset.c (Ffontset_info): Doc fix. Return charset names, not
8430 ids.
8431 (font-encoding-alist): Doc fix.
8432
8433 2008-02-01 Dave Love <fx@gnu.org>
8434
8435 * term.c (costs_set): Declare static, non-initialized for pcc.
8436 (encode_terminal_code): Remove unused var.
8437
8438 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
8439 for K&R.
8440
8441 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
8442
8443 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
8444 (suffixes): Move out of make_subsidiaries for K&R.
8445
8446 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
8447
8448 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
8449
8450 2008-02-01 Dave Love <fx@gnu.org>
8451
8452 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
8453
8454 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
8455
8456 2008-02-01 Yong Lu <lyongu@asia-infonet.com>
8457
8458 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
8459
8460 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
8461
8462 2008-02-01 Kenichi Handa <handa@m17n.org>
8463
8464 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
8465 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
8466
8467 2008-02-01 Kenichi Handa <handa@m17n.org>
8468
8469 * coding.c (decode_coding_charset): Adjust for the change of
8470 Fdefine_coding_system_internal.
8471 (Fdefine_coding_system_internal): For a coding system of
8472 `charset' type, store a list of charset IDs in
8473 `charset_attr_charset_valids' element of coding attributes.
8474
8475 2008-02-01 Kenichi Handa <handa@m17n.org>
8476
8477 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
8478 (emacs_mule_char): New arg src. Delete arg `composition'. Change
8479 caller. Handle 2-byte and 3-byte charsets correctly.
8480 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
8481 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
8482 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
8483 (DECODE_EMACS_MULE_21_COMPOSITION): Call
8484 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
8485 sequence.
8486 (decode_coding_emacs_mule): Handle composition correctly. Rewind
8487 `src' and `consumed_chars' correctly before calling emacs_mule_char.
8488 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
8489 and alt&rule composition.
8490 (decode_coding_iso_2022): Handle composition correctly.
8491 (init_coding_once): Setup emacs_mule_bytes for private charsets.
8492
8493 * charset.c (Fdefine_charset_internal): Fix bug for the case of
8494 re-defining a charset. If the charset has :emacs-mule-id, setup
8495 emacs_mule_bytes.
8496 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
8497
8498 2008-02-01 Kenichi Handa <handa@m17n.org>
8499
8500 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
8501 (encode_coding_big5, encode_coding_charset): If coding requires safe
8502 encoding, produce a character specified by
8503 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
8504
8505 2008-02-01 Dave Love <fx@gnu.org>
8506
8507 * xterm.c (XSetIMValues): Declare.
8508
8509 * process.c: Conditionally include sys/wait.h, pty.h.
8510
8511 * print.c (print_object): Fix print format for 64-bit systems.
8512
8513 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
8514
8515 * buffer.c (emacs_strerror): Declare.
8516
8517 * fontset.c (Fclear_face_cache): Declare.
8518 (accumulate_font_info): Comment-out (unused).
8519 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
8520 variables.
8521
8522 * character.h (string_escape_byte8): Declare.
8523
8524 * charset.c (load_charset_map, load_charset_map_from_file): Remove
8525 unused vars.
8526 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
8527 (Fmap_charset_chars): Doc fix.
8528
8529 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
8530 (Fset_coding_system_priority, Fset_coding_system_priority)
8531 (Fdefine_coding_system_internal): Doc fix.
8532
8533 2008-02-01 Dave Love <fx@gnu.org>
8534
8535 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
8536
8537 2008-02-01 Kenichi Handa <handa@m17n.org>
8538
8539 * character.c (string_escape_byte8): Make multibyte string with
8540 correct size.
8541
8542 * charset.c (Fmake_char): Delete unnecessary code.
8543
8544 2008-02-01 Kenichi Handa <handa@m17n.org>
8545
8546 * xfns.c (x_encode_text): Allocate coding.destination here, and
8547 call encode_coding_object with dst_object Qnil.
8548
8549 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
8550 multibyte form correctly.
8551
8552 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
8553 against Vfont_encoding_alist.
8554
8555 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
8556 handling of charset list.
8557 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
8558 (decode_coding_object): Move point to coding->dst_pos before
8559 calling post-read-conversion function.
8560 (encode_coding_object): Give correct arguments to
8561 pre-write-conversion. Ignore the return value of
8562 pre-write-conversion function. Pay attention to the case that
8563 pre-write-conversion changes the current buffer. If dst_object is
8564 Qt, even if coding->src_bytes is zero, allocate at least one byte
8565 to coding->destination.
8566
8567 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
8568
8569 * charset.c (Fmake_char): Make it more backward compatible.
8570 (Fmap_charset_chars): Fix docstring.
8571
8572 2008-02-01 Dave Love <fx@gnu.org>
8573
8574 * coding.c: Doc fixes.
8575 (Fdefine_coding_system_alias): Use names, not symbols, in
8576 coding-system-alist.
8577
8578 2008-02-01 Kenichi Handa <handa@m17n.org>
8579
8580 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
8581 of calling free_realized_face.
8582
8583 2008-02-01 Yong Lu <lyongu@asia-infonet.com>
8584
8585 * charset.c (read_hex): Don't treat SPC as a comment starter.
8586 (decode_char): If CODE_POINT_TO_INDEX retruns -1, always return -1.
8587 (Fdecode_char): Fix typo.
8588
8589 2008-02-01 Kenichi Handa <handa@m17n.org>
8590
8591 * charset.h (struct charset): New member `code_space_mask'.
8592
8593 * coding.c (coding_set_source): Delete the local variable beg_byte.
8594 (encode_coding_charset, Fdefine_coding_system_internal):
8595 Delete the local variable charset.
8596 (Fdefine_coding_system_internal): Setup
8597 attrs[coding_attr_charset_valids] correctly.
8598
8599 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
8600 member to check if CODE is valid or not.
8601 (Fdefine_charset_internal): Initialize `code_space_mask' member.
8602 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
8603 is within the range of charset->min_code and carset->max_code.
8604
8605 2008-02-01 Dave Love <fx@gnu.org>
8606
8607 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
8608
8609 * dispextern.h (generate_ascii_font): Fix return type.
8610
8611 * xfaces.c (generate_ascii_font): Fix arg declaration.
8612
8613 * coding.c (coding_inherit_eol_type)
8614 (Fset_terminal_coding_system_internal)
8615 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
8616
8617 2008-02-01 Kenichi Handa <handa@m17n.org>
8618
8619 * coding.c (decode_coding_charset, encode_coding_charset): Handle
8620 multiple charsets correctly.
8621
8622 2008-02-01 Kenichi Handa <handa@m17n.org>
8623
8624 * search.c (boyer_moore): Fix handling of mulitbyte character
8625 translation.
8626
8627 * xdisp.c (display_mode_element): When the variable `elt' is
8628 changed, update `this' and `lisp_string'.
8629
8630 2008-02-01 Kenichi Handa <handa@m17n.org>
8631
8632 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
8633
8634 * callproc.c (Fcall_process): Be sure to give the current buffer
8635 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
8636
8637 * charset.c (struct charset_map_entries): New struct.
8638 (load_charset_map): Rename from parse_charset_map. New args
8639 entries and n_entries. Change caller.
8640 (load_charset_map_from_file): Rename from load_charset_map.
8641 Change caller. New arg control_flag. Call load_charset_map at
8642 the tail.
8643 (load_charset_map_from_vector): New function.
8644 (Fdefine_charset_internal): Setup charset.compact_codes_p.
8645 (encode_char): If the charset is compact, change a character index
8646 to a code point.
8647
8648 * coding.c (coding_alloc_by_making_gap): Check the case that the
8649 source and destination are the same correctly.
8650 (decode_coding_raw_text): Set coding->consumed_char and
8651 coding->consumed to 0.
8652 (produce_chars): If coding->chars_at_source is nonzero, update
8653 coding->consumed_char and coding->consumed before calling
8654 alloc_destination.
8655 (Fdefine_coding_system_alias): Register ALIAS in
8656 Vcoding_system_alist.
8657 (syms_of_coding): Define `no-convesion' coding system at the tail.
8658
8659 * fileio.c (Finsert_file_contents): Set coding_system instead of
8660 val. If the current buffer is multibyte, always call
8661 decode_coding_gap.
8662
8663 * xfaces.c (try_font_list): Give higher priority to fontset's
8664 family than face's family.
8665
8666 2008-02-01 Kenichi Handa <handa@m17n.org>
8667
8668 * callproc.c (Fcall_process): Be sure to give the current buffer
8669 to decode_coding_c_string.
8670
8671 * xfaces.c (try_font_list): Give a family specified in a fontset
8672 higher priority than a family specified in a face.
8673
8674 2008-02-01 Kenichi Handa <handa@m17n.org>
8675
8676 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
8677 Fix arguments to insert_from_buffer.
8678
8679 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
8680
8681 2008-02-01 Kenichi Handa <handa@m17n.org>
8682
8683 * coding.c (produce_chars): Set the variable `multibytep' correctly.
8684 (decode_coding_gap): Set coding->dst_multibyte correctly.
8685
8686 2008-02-01 Kenichi Handa <handa@m17n.org>
8687
8688 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
8689 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
8690 (encode_coding_utf_16): Substitute coding->default_char for
8691 non-Unicode characters.
8692 (decode_coding): Don't call record_insert here.
8693 (setup_coding_system): Initialize `surrogate' of
8694 coding->spec.utf_16 to 0.
8695 (EMIT_ONE_BYTE): Fix for multibyte case.
8696
8697 * insdel.c (insert_from_gap): Call record_insert.
8698
8699 2008-02-01 Kenichi Handa <handa@m17n.org>
8700
8701 * casefiddle.c (casify_region): Fix multibyte case.
8702
8703 * character.c (c_string_width): Add return type `int'.
8704 (char_string_with_unification): Delete arg ADVANCED.
8705
8706 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
8707 (CHAR_STRING): Adjust for the change of char_string_with_unification.
8708 (CHAR_STRING_ADVANCE): Make it do-while statement.
8709
8710 * chartab.c (sub_char_table_set_range): Optimize for the case
8711 DEPTH == 3. Add workaround code for a GCC optimization bug.
8712
8713 * charset.c (parse_charset_map): Remove an unused variable.
8714
8715 * coding.c: Delete unused variables.
8716
8717 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
8718 earlier. If inserted is zero and the coding system doesn't
8719 require flushing, don't call decode_coding_gap.
8720
8721 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
8722
8723 2008-02-01 Kenichi Handa <handa@m17n.org>
8724
8725 The following changes are for using Unicode as an internal
8726 character model, and use UTF-8 format for buffer/string
8727 representation.
8728
8729 * .gdbinit (xchartable): Adjust for the change of char table structure.
8730 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
8731
8732 * Makefile.in (obj): Add character.o and chartab.o.
8733 (lisp, shortlisp): Remove utf-8.elc.
8734 (*.o): For many files, change dependency on charset.h to
8735 character.h, and add dependency on character.h.
8736 (character.o, chartab.o): New targets.
8737
8738 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
8739 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
8740 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
8741 of "charset.h".
8742
8743 * dired.c, filelock.c: Include "character.h".
8744
8745 * alloc.c: Include "character.h" instead of "charset.h".
8746 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
8747 (syms_of_alloc): Remove defsubr for Smake_char_table.
8748
8749 * buffer.c: Include "character.h" instead of "charset.h", don't
8750 include "coding.h".
8751 (Fset_buffer_multibyte): Adjust for UTF-8.
8752
8753 * buffer.h: EXFUN Fbuffer_live_p.
8754
8755 * callproc.c: Include "character.h" instead of "charset.h".
8756 (Fcall_process): Big change for the new code-conversion APIs.
8757
8758 * casetab.c: Include "character.h" instead of "charset.h".
8759 (set_canon, set_identity, shuffle): Adjust for the new
8760 map_char_table spec.
8761 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
8762 accessing the char table structure.
8763
8764 * chartab.c: New file that implements char table.
8765
8766 * category.c: Include "character.h".
8767 (copy_category_entry): New function.
8768 (copy_category_table): Call map_char_table and copy_category_entry.
8769 (Fmake_category_table): Initialize all top-vel slots.
8770 (char_category_set): New function.
8771 (modify_lower_category_set): Delete.
8772 (Fmodify_category_entry): Call char_table_ref_and_range.
8773
8774 * category.h (CATEGORY_SET): Just call char_category_set.
8775
8776 * ccl.c: Include "character.h".
8777 (Qccl, Qcclp): New variables.
8778 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
8779 it's less than 256.
8780 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
8781 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
8782 and DST type.
8783 (ccl_driver): Change types of argument, adjust code accordingly.
8784 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
8785 ccl_driver.
8786 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
8787
8788 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
8789 New members src_multibyte, dst_multibyte, consumed, and produced.
8790 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
8791 (CODING_SPEC_CCL_PROGRAM): New macro.
8792 (ccl_driver): Update prototype.
8793 (Qccl, Qcclp, Fccl_program_p): Extern them.
8794 (CHECK_CCL_PROGRAM): New macro.
8795
8796 * character.c, character.h, chartab.c: New files.
8797
8798 * charset.c: Mostly re-written. Move character and multibyte sequence
8799 handling codes to character.c.
8800
8801 * charset.h: Mostly re-written. Move character and multibyte sequence
8802 handling codes to character.h.
8803
8804 * coding.c, coding.h: Mostly re-written.
8805
8806 * composite.c: Include "character.h" instead of "charset.h".
8807 (CHAR_WIDTH): Move to character.h.
8808 (HASH_KEY, HASH_VALUE): Delete.
8809
8810 * composite.h (enum composition_method): Change order of enumeration
8811 symbols.
8812
8813 * data.c: Include "character.h" instead of "charset.h".
8814 (Faref): Call CHAR_TABLE_REF for a char table.
8815 (Faset): Call CHAR_TABLE_SET for a char table.
8816
8817 * dispextern.h (free_realized_face, check_face_attribytes)
8818 (generate_ascii_font): Extern them.
8819 (free_realized_multibyte_face): Delete extern.
8820
8821 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
8822 table structure.
8823
8824 * editfns.c: Include "character.h" instead of "charset.h".
8825 (Fchar_to_string): Always call CHAR_STRING.
8826
8827 * emacs.c (main): Call init_charset_once, init_charset,
8828 syms_of_chartab, and syms_of_character.
8829
8830 * fileio.c: Include "character.h" instead of "charset.h".
8831 (Finsert_file_contents): Big change for the new code-conversion API.
8832 (choose_write_coding_system, Fwrite_region): Likewise.
8833 (build_annotations_2): Delete.
8834 (e_write): Big change for the new code-conversion API.
8835
8836 * fns.c: Include "character.h" instead of "charset.h".
8837 (copy_sub_char_table): Move to chartab.c.
8838 (Fcopy_sequence): Call copy_char_table for a char table.
8839 (concat): Delete codes calling count_multibyte.
8840 (string_char_to_byte, string_byte_to_char): Adjust for the new
8841 multibyte form.
8842 (internal_equal): Adjust for the change of char table structure.
8843 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
8844 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
8845 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
8846 (char_table_translate, optimize_sub_char_table)
8847 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
8848 chartab.c.
8849 (char_table_ref_and_index): Delete.
8850 (HASH_KEY, HASH_VALUE): Move to lisp.h.
8851 (Fmd5): Call preferred_coding_system instead of accessing
8852 Vcoding_category_list. Adjust for the new code-conversion API.
8853 (syms_of_fns): Move defsubr for char table related functions to
8854 chartab.c.
8855
8856 * fontset.c: Mostly re-written.
8857
8858 * fontset.h (struct font_info): Change type of the member encoding_type.
8859 (enum FONT_SPEC_INDEX): New enum.
8860 (fontset_font_pattern, fs_load_font): Update prototype.
8861 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
8862
8863 * indent.c: Include "character.h" instead of "charset.h".
8864 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
8865
8866 * insdel.c: Include "character.h" instead of "charset.h".
8867 (copy_text): Don't refer to Vnonascii_translation_table.
8868 (insert_from_gap): New function.
8869
8870 * keyboard.c: Include "character.h" instead of "charset.h".
8871 (command_loop_1): Never call direct_output_forward_char before
8872 a non-ASCII character.
8873 (read_char): If Vkeyboard_translate_table is a char table, always
8874 translate a character.
8875
8876 * keymap.c: Include "character.h".
8877 (store_in_keymap): Handle the case that IDX is a cons.
8878 (Fdefine_key): Handle the case that KEY is a cons and the car part
8879 is also a cons (range).
8880 (push_key_description): Adjust for the new character code.
8881 (describe_vector): Call describe_char_table for a char table.
8882 (describe_char_table): New function.
8883
8884 * keymap.h (describe_char_table): Extern it.
8885
8886 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
8887 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
8888 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
8889 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
8890 Delete.
8891 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
8892 structure.
8893 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
8894 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
8895 (CHARTAB_SIZE_BITS_3): New macros.
8896 (chartab_size): Extern it.
8897 (struct Lisp_Char_Table): Re-design.
8898 (struct Lisp_Sub_Char_Table): New structure.
8899 (HASH_KEY, HASH_VALUE): Move from fns.c.
8900 (CHARACTERBITS): Define as 22.
8901 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
8902 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
8903 (GC_SUB_CHAR_TABLE_P): New macro.
8904 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
8905 (code_convert_string_norecord): Deleted extern.
8906 (init_character_once, syms_of_character, init_charset)
8907 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
8908
8909 * lread.c: Include "character.h".
8910 (read_multibyte): New arg NBYTES.
8911 (read_escape): Change the meaning of returned *BYTEREP.
8912 (to_multibyte): Delete.
8913 (read1): Adjust the handling of char table and string.
8914
8915 * print.c: Include "character.h" instead of "charset.h".
8916 (print_string): Convert 8-bit raw bytes to octal form by
8917 string_escape_byte8.
8918 (print_object): Adjust for the new multibyte form. Print 8-bit
8919 raw bytes always in octal form. Handle sub char table correctly.
8920
8921 * process.c: Include "character.h" instead of "charset.h".
8922 (read_process_output, send_process): Adjust for the new
8923 code-conversion API.
8924
8925 * puresize.h (BASE_PURESIZE): Increase.
8926
8927 * regex.c: Include "character.h" instead of "charset.h".
8928 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
8929 (regex_compile): Accept a range whose starting and ending
8930 character have different leading bytes.
8931 (analyse_first): Adjust for the above change.
8932
8933 * search.c: Include "character.h" instead of "charset.h".
8934 (search_buffer, boyer_moore): Adjust for the new multibyte form.
8935 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
8936
8937 * syntax.c: Include "character.h" instead of "charset.h".
8938 (syntax_parent_lookup): Delete.
8939 (Fmodify_syntax_entry): Accept a cons as CHAR.
8940 (skip_chars): Adjust for the new multibyte form.
8941 (init_syntax_once): Call char_table_set_range instead of directly
8942 accessing the structure of a char table.
8943
8944 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
8945 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
8946 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
8947 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
8948
8949 * term.c: Include "buffer.h" and "character.h".
8950 (encode_terminal_code, write_glyphs): Adjust for the new
8951 code-conversion API.
8952 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
8953
8954 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
8955
8956 * xdisp.c: Include "character.h".
8957 (get_next_display_element): Adjust for the new multibyte form.
8958 (disp_char_vector): Adjust for the new char table structure.
8959 (decode_mode_spec_coding): Adjust for the new structure of
8960 coding system.
8961 (decode_mode_spec): Adjust for the new code-conversion API.
8962
8963 * xfaces.c: Include "character.h" instead of "charset.h".
8964 (load_face_font): Adjust for the change of choose_face_font and
8965 FS_LOAD_FONT.
8966 (generate_ascii_font): New function.
8967 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
8968 (set_font_frame_param): Adjust for the change of choose_face_font.
8969 (free_realized_face): Make it public.
8970 (free_realized_faces_for_fontset): Rename from
8971 free_realized_multibyte_face. Free also faces realized for ASCII.
8972 (choose_face_font): Change arguments. Adjust for the change of
8973 fontset_font_pattern and FS_LOAD_FONT.
8974
8975 * xfns.c: Include "character.h".
8976 (x_encode_text): Adjust for the new code-conversion API.
8977
8978 * xselect.c: Don't include "charset.h".
8979 (selection_data_to_lisp_data): Adjust for the new code conversion API.
8980
8981 * xterm.c: Include "character.h".
8982 (x_encode_char): New argument CHARSET. Change caller.
8983 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
8984 Call ENCODE_CHAR instead of SPLIT_CHAR.
8985 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
8986 CHAR_WIDTH instead of CHARSET_WIDTH.
8987 (XTread_socket): Adjust for the new code-conversion API.
8988 (x_new_font): Adjust for the change of FS_LOAD_FONT.
8989 (x_load_font): Adjust for the change of struct font.
8990
8991 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
8992
8993 * xfaces.c (face_at_buffer_position): Remove unused vars.
8994
8995 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
8996
8997 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
8998 Fix overflow checking.
8999
9000 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9001
9002 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
9003 Cancel previous change.
9004
9005 2008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
9006
9007 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
9008 ccl->eight_bit_control. Fix check for buffer overflow.
9009 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
9010 (ccl_driver): Initialize extra_bytes to 0.
9011
9012 2008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
9013
9014 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
9015 return it ORed with ctrl_modifier.
9016
9017 2008-01-29 Miles Bader <miles@gnu.org>
9018
9019 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
9020
9021 2008-01-28 Jason Rumney <jasonr@gnu.org>
9022
9023 * w32.c (stat): Don't double check for networked drive.
9024
9025 2008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
9026
9027 * window.c (run_window_configuration_change_hook): New function.
9028 Code extracted from set_window_buffer. Set the selected frame.
9029 (set_window_buffer): Use it.
9030 * window.h (run_window_configuration_change_hook): Declare.
9031 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
9032
9033 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
9034
9035 2008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
9036
9037 * Makefile.in: Remove references to unused macros.
9038
9039 2008-01-26 Eli Zaretskii <eliz@gnu.org>
9040
9041 * w32.c (g_b_init_get_sid_sub_authority)
9042 (g_b_init_get_sid_sub_authority_count): New static variables.
9043 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
9044 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
9045 (init_user_info): Use them to retrieve uid and gid.
9046 Use 500/513, the Windows defaults, as Administrator's uid/gid.
9047 (fstat): Use pw_uid and pw_gid from the_passwd structure for
9048 st_uid and st_gid of the file.
9049
9050 2008-01-26 Jason Rumney <jasonr@gnu.org>
9051
9052 * w32.c (logon_network_drive): New function.
9053 (stat): Use it.
9054
9055 2008-01-26 Chong Yidong <cyd@stupidchicken.com>
9056
9057 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
9058 invisible text covered with an ellipsis.
9059
9060 2008-01-25 Richard Stallman <rms@gnu.org>
9061
9062 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
9063 jump back to beginning. Move some other initializations after that.
9064 (Qwindow_text_change_functions, Vwindow_text_change_functions):
9065 New variables.
9066 (syms_of_xdisp): Init them.
9067
9068 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
9069
9070 * buffer.c (reset_buffer_local_variables):
9071 Implement `permanent-local-hook'.
9072 (Qpermanent_local_hook): New variable.
9073 (syms_of_buffer): Init and staticpro it.
9074
9075 2008-01-25 Michael Albinus <michael.albinus@gmx.de>
9076
9077 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
9078
9079 2008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
9080
9081 * fns.c (Fclrhash): Return TABLE.
9082
9083 2008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9084
9085 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
9086 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
9087 is set even without positional changes.
9088 (x_scroll_bar_clear): Set bar->redraw_needed_p.
9089
9090 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
9091
9092 2008-01-23 Jason Rumney <jasonr@gnu.org>
9093
9094 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
9095
9096 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
9097 the unicode range available in MULE by locale-coding-system.
9098 Improve dbcs lead byte detection. Set event timestamp and modifiers
9099 earlier.
9100
9101 2008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9102
9103 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
9104 [MAC_OSX] (init_mac_osx_environment): Initialize it.
9105 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
9106 when used on child processes.
9107
9108 2008-01-21 Michael Albinus <michael.albinus@gmx.de>
9109
9110 * dbusbind.c (Fdbus_method_return_internal): Rename from
9111 Fdbus_method_return.
9112 (Fdbus_unregister_object): Move to dbus.el.
9113 (Fdbus_call_method, Fdbus_method_return_internal)
9114 (Fdbus_send_signal): Improve debug messages.
9115
9116 2008-01-20 Martin Rudalics <rudalics@gmx.at>
9117
9118 * undo.c (undo_inhibit_record_point): New variable.
9119 (syms_of_undo): Initialize it.
9120 (record_point): Don't record point when undo_inhibit_record_point
9121 is set.
9122
9123 2008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
9124
9125 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
9126
9127 * xdisp.c (Qauto_hscroll_mode): New var.
9128 (syms_of_xdisp): Initialize it.
9129 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
9130 window's buffer.
9131 (hscroll_windows): Don't check automatic_hscrolling_p here.
9132
9133 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
9134 vscroll if we're setting window-buffer to the value it already has.
9135
9136 2008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
9137
9138 * m/intel386.h: Remove references to XENIX.
9139
9140 2008-01-17 Andreas Schwab <schwab@suse.de>
9141
9142 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
9143 instead of HAVE_X86_64_LIB64_DIR.
9144 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
9145
9146 2008-01-17 Glenn Morris <rgm@gnu.org>
9147
9148 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
9149 to HAVE_X86_64_LIB64_DIR.
9150
9151 2008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
9152
9153 * s/irix3-3.h:
9154 * s/irix4-0.h:
9155 * s/386-ix.h:
9156 * s/domain.h:
9157 * s/hpux9-x11r4.h:
9158 * s/hpux9shxr4.h: Remove files for systems no longer supported.
9159
9160 * sysdep.c: Remove code containing references to symbols defined
9161 by unsupported systems.
9162
9163 2008-01-16 Glenn Morris <rgm@gnu.org>
9164
9165 * coding.c (select-safe-coding-system-function): Doc fix.
9166
9167 2008-01-15 Glenn Morris <rgm@gnu.org>
9168
9169 * config.in: Revert 2008-01-13 change: this is a generated file.
9170
9171 2008-01-13 Tom Tromey <tromey@redhat.com>
9172
9173 * lisp.h: Fix typo.
9174
9175 2008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
9176
9177 * m/sequent-ptx.h:
9178 * m/sequent.h:
9179 * s/ptx.h:
9180 * s/ptx4-2.h:
9181 * s/ptx4.h: Remove files for systems no longer supported.
9182
9183 * callproc.c (Fcall_process): Fix previous change.
9184
9185 2008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
9186
9187 * unexsunos4.c: Remove file, system not supported anymore.
9188
9189 * m/mips.h:
9190 * m/intel386.h:
9191 * callproc.c:
9192 * config.in:
9193 * ecrt0.c:
9194 * emacs.c:
9195 * fileio.c:
9196 * frame.c:
9197 * getpagesize.h:
9198 * keyboard.c:
9199 * lread.c:
9200 * process.c:
9201 * puresize.h:
9202 * sysdep.c:
9203 * systty.h:
9204 * syswait.h:
9205 * unexec.c:
9206 * xdisp.c:
9207 * alloc.c: Remove code containing references to symbols defined by
9208 unsupported systems.
9209
9210 2008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
9211
9212 * coding.c (detect_coding_mask): Fix previous change.
9213
9214 2008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
9215
9216 * coding.c (detect_coding_iso2022): New arg
9217 latin_extra_code_state. Allow Latin extra codes only
9218 when *latin_extra_code_state is nonzero.
9219 (detect_coding_mask): If there is a NULL byte, detect the encoding
9220 as UTF-16 or binary. If Latin extra codes exist, detect the
9221 encoding as ISO-2022 only when there's no other proper encoding is
9222 found.
9223
9224 2008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9225
9226 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
9227 #ifdef MAC_OS.
9228
9229 2008-01-08 Richard Stallman <rms@gnu.org>
9230
9231 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
9232
9233 2008-01-06 Nick Roberts <nickrob@snap.net.nz>
9234
9235 * keyboard.c (parse_menu_item): Don't enclose key bindings on
9236 menu bar in parentheses.
9237
9238 2008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
9239
9240 * m/7300.h:
9241 * m/acorn.h:
9242 * m/alliant-2800.h:
9243 * m/alliant.h:
9244 * m/alliant1.h:
9245 * m/alliant4.h:
9246 * m/altos.h:
9247 * m/amdahl.h:
9248 * m/apollo.h:
9249 * m/att3b.h:
9250 * m/aviion-intel.h:
9251 * m/aviion.h:
9252 * m/celerity.h:
9253 * m/clipper.h:
9254 * m/cnvrgnt.h:
9255 * m/convex.h:
9256 * m/cydra5.h:
9257 * m/delta88k.h:
9258 * m/dpx2.h:
9259 * m/dual.h:
9260 * m/elxsi.h:
9261 * m/f301.h:
9262 * m/gould-np1.h:
9263 * m/gould.h:
9264 * m/i860.h:
9265 * m/ibmps2-aix.h:
9266 * m/ibmrt-aix.h:
9267 * m/ibmrt.h:
9268 * m/irist.h:
9269 * m/is386.h:
9270 * m/isi-ov.h:
9271 * m/mega68.h:
9272 * m/mg1.h:
9273 * m/news-r6.h:
9274 * m/news-risc.h:
9275 * m/news.h:
9276 * m/nh3000.h:
9277 * m/nh4000.h:
9278 * m/ns16000.h:
9279 * m/ns32000.h:
9280 * m/nu.h:
9281 * m/orion.h:
9282 * m/orion105.h:
9283 * m/paragon.h:
9284 * m/pfa50.h:
9285 * m/plexus.h:
9286 * m/pyramid.h:
9287 * m/pyrmips.h:
9288 * m/sh3el.h:
9289 * m/sps7.h:
9290 * m/sr2k.h:
9291 * m/stride.h:
9292 * m/sun1.h:
9293 * m/sun2.h:
9294 * m/sun3-68881.h:
9295 * m/sun3-fpa.h:
9296 * m/sun3-soft.h:
9297 * m/sun3.h:
9298 * m/sun386.h:
9299 * m/symmetry.h:
9300 * m/tad68k.h:
9301 * m/tahoe.h:
9302 * m/targon31.h:
9303 * m/tek4300.h:
9304 * m/tekxd88.h:
9305 * m/tower32.h:
9306 * m/tower32v3.h:
9307 * m/ustation.h:
9308 * m/wicat.h:
9309 * m/xps100.h:
9310 * s/cxux.h:
9311 * s/cxux7.h:
9312 * s/dgux.h:
9313 * s/dgux4.h:
9314 * s/dgux5-4-3.h:
9315 * s/dgux5-4r2.h:
9316 * s/esix.h:
9317 * s/esix5r4.h:
9318 * s/hiuxmpp.h:
9319 * s/hiuxwe2.h:
9320 * s/iris3-5.h:
9321 * s/iris3-6.h:
9322 * s/isc2-2.h:
9323 * s/isc3-0.h:
9324 * s/isc4-0.h:
9325 * s/isc4-1.h:
9326 * s/newsos5.h:
9327 * s/newsos6.h:
9328 * s/osf1.h:
9329 * s/osf5-0.h:
9330 * s/riscix1-1.h:
9331 * s/riscix12.h:
9332 * s/sco4.h:
9333 * s/sco5.h:
9334 * s/sunos4-0.h:
9335 * s/sunos4-1.h:
9336 * s/sunos413.h:
9337 * s/sunos4shr.h:
9338 * s/umax.h:
9339 * s/unipl5-2.h:
9340 * s/xenix.h:
9341 * cxux-crt0.s:
9342 * unexapollo.c:
9343 * unexconvex.c:
9344 * unexenix.c:
9345 * unexsni.c: Remove files for systems no longer supported.
9346
9347 * m/intel386.h: Remove references to unsupported systems.
9348
9349 * w32.c (get_emacs_configuration): Remove reference to i860.
9350
9351 * sysdep.c: Remove dead code.
9352
9353 2008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
9354
9355 * s/rtu.h:
9356 * m/masscomp.h: Remove files. Platform is obsolete.
9357
9358 2008-01-04 Michael Albinus <michael.albinus@gmx.de>
9359
9360 * dbusbind.c (Fdbus_method_return): New function.
9361 (xd_read_message): Add the serial number to the event.
9362 (Fdbus_register_method): Activate the function.
9363
9364 2008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
9365
9366 * keyboard.c (read_key_sequence): Fix typo.
9367
9368 2008-01-03 Michael Albinus <michael.albinus@gmx.de>
9369
9370 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
9371 (xd_signature, xd_append_arg): Handle element type detection for
9372 empty arrays.
9373 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
9374 SDATA () calls; this must be solved more general.
9375 (Fdbus_register_signal): Use SBYTES instead of strlen.
9376
9377 2008-01-03 Magnus Henoch <magnus@zemdatav>
9378
9379 * dbusbind.c (xd_append_arg): Use unsigned char instead of
9380 unsigned int for byte values (necessary for big-endian platform).
9381 (Fdbus_call_method): Handle the case of no returned arguments.
9382
9383 2007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
9384
9385 * dbusbind.c (xd_read_message): Use non-static input_event struct.
9386
9387 2007-12-31 Magnus Henoch <mange@freemail.hu>
9388
9389 * dbusbind.c (xd_signature): Signature of variant is just "v".
9390
9391 2007-12-30 Michael Albinus <michael.albinus@gmx.de>
9392
9393 * dbusbind.c: Fix several errors and compiler warnings.
9394 Reported by Tom Tromey <tromey@redhat.com>.
9395 (XD_ERROR, XD_DEBUG_MESSAGE)
9396 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
9397 (xd_append_arg): Part for basic D-Bus types rewitten.
9398 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
9399 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
9400 appropriate.
9401 (xd_read_message): Return Qnil. Don't signal an error; it is not
9402 useful during event reading.
9403 (Fdbus_register_signal): Signal an error if the check for
9404 FUNCTIONP fails.
9405 (Fdbus_register_method): New function. The implementation is not
9406 complete, the call of the function signals an error therefore.
9407 (Fdbus_unregister_object): New function, renamed from
9408 Fdbus_unregister_signal. The initial check signals an error, if
9409 the object is not well formed.
9410
9411 2007-12-30 Richard Stallman <rms@gnu.org>
9412
9413 * textprop.c (get_char_property_and_overlay):
9414 Signal error if POSITION is out of range in a buffer.
9415
9416 2007-12-29 Martin Rudalics <rudalics@gmx.at>
9417
9418 * w32fns.c (Fx_create_frame): Make copy of frame parameters
9419 because the original parameters are in pure storage now.
9420
9421 2007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9422
9423 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
9424
9425 2007-12-22 Eli Zaretskii <eliz@gnu.org>
9426
9427 * callint.c (syms_of_callint) <command-history>: Add reference to
9428 history-length in the doc string.
9429
9430 2007-12-17 Jason Rumney <jasonr@gnu.org>
9431
9432 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
9433 before passing as wParam.
9434
9435 2007-12-22 Michael Albinus <michael.albinus@gmx.de>
9436
9437 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
9438 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
9439 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
9440 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
9441 as number.
9442 (Fdbus_call_method): Fix docstring.
9443
9444 2007-12-21 Michael Albinus <michael.albinus@gmx.de>
9445
9446 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
9447 New macros.
9448 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
9449 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
9450 Simplify.
9451 (xd_signature): New function.
9452 (xd_append_arg): Compute also signatures. Major rewrite.
9453 (xd_retrieve_arg): Make debug messages friendly.
9454 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
9455 Check for signatures of arguments.
9456
9457 2007-12-19 Michael Albinus <michael.albinus@gmx.de>
9458
9459 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
9460 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
9461 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
9462 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
9463 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
9464 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
9465 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
9466 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
9467 (xd_retrieve_value): Remove. Functionality included in ...
9468 (xd_append_arg): New function.
9469 (Fdbus_call_method, Fdbus_send_signal): Apply it.
9470
9471 2007-12-16 Michael Albinus <michael.albinus@gmx.de>
9472
9473 * dbusbind.c (top): Include <stdio.h>.
9474 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
9475 dbus_message_new_method_call and dbus_message_new_signal.
9476 (Fdbus_register_signal): Rename unique_name to uname.
9477 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
9478 non-existing unique name. Fix typos in matching rule. Return an
9479 object which is useful in Fdbus_unregister_signal.
9480 (Fdbus_unregister_signal): Reimplementation, in order to remove
9481 only the corresponding entry.
9482 (Vdbus_registered_functions_table): Change the order of entries.
9483 Apply these changes in xd_read_message and Fdbus_register_signal.
9484
9485 2007-12-16 Andreas Schwab <schwab@suse.de>
9486
9487 * fileio.c (Finsert_file_contents): Fix overflow check to not
9488 depend on undefined integer overflow.
9489
9490 2007-12-14 Jason Rumney <jasonr@gnu.org>
9491
9492 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
9493 for characters above 127.
9494
9495 2007-12-13 Jason Rumney <jasonr@gnu.org>
9496
9497 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
9498 before dereferencing array.
9499 (lookup_vk_code): Remove zero comparison.
9500
9501 2007-12-14 Michael Albinus <michael.albinus@gmx.de>
9502
9503 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
9504 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
9505 Use `unsigned int' instead of `uint'.
9506 (xd_read_message, Fdbus_register_signal): Split expressions into
9507 multiple lines before operators "&&" and "||", according to the
9508 GNU Coding Standards.
9509
9510 2007-12-14 Eli Zaretskii <eliz@gnu.org>
9511
9512 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
9513
9514 2007-12-12 Juri Linkov <juri@jurta.org>
9515
9516 * buffer.c (Frename_buffer): In interactive spec replace
9517 `read-buffer' with `read-string' that uses `buffer-name-history'
9518 as history, and the current buffer's name as default.
9519
9520 2007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
9521
9522 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
9523 manipulating the backtrace manually.
9524 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
9525 (struct backtrace, backtrace_list): Remove.
9526 (command_loop_1): Remove dead var `no_direct'.
9527
9528 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
9529 preserve non-built-in buffer-local variables.
9530 (Fkill_all_local_variables): Don't re-create&re-set permanent
9531 buffer-local variables.
9532
9533 2007-12-09 Juri Linkov <juri@jurta.org>
9534
9535 * buffer.c (Frename_buffer): Change interactive spec from "s" to
9536 Lisp code that uses `read-buffer' with current buffer as default.
9537
9538 2007-12-08 Michael Albinus <michael.albinus@gmx.de>
9539
9540 * dbusbind.c (xd_read_message): Generate an event for every
9541 registered handler. There might be several handlers registered
9542 for the same signal.
9543 (Fdbus_register_signal): Don't overwrite a registration for the
9544 same signal. Add a new registration if handlers are different.
9545 (Vdbus_registered_functions_table): Rework doc string.
9546
9547 2007-12-07 Michael Albinus <michael.albinus@gmx.de>
9548
9549 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
9550 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
9551 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
9552 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
9553 Unify argument lists.
9554 (xd_read_message, Fdbus_register_signal): Reorder and extend event
9555 arguments and hash table keys. Use unique name for service.
9556 (Fdbus_unregister_signal): Remove checks.
9557 (Vdbus_registered_functions_table): Fix doc string.
9558
9559 2007-12-05 Magnus Henoch <mange@freemail.hu>
9560
9561 * process.c (make_process): Initialize pty_flag to 0.
9562
9563 2007-12-05 Jason Rumney <jasonr@gnu.org>
9564
9565 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
9566 specified XBMs.
9567
9568 2007-12-05 Richard Stallman <rms@gnu.org>
9569
9570 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
9571
9572 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9573
9574 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
9575 New variable.
9576 (mac_try_close_socket) [MAC_OSX]: New function.
9577 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
9578 Update cfsockets_for_select. Replace invalid CFRunLoop source.
9579
9580 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
9581 Use mac_try_close_socket.
9582
9583 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9584
9585 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
9586 reloc_base.
9587 (copy_dysymtab): Compute relocation base here.
9588 (rebase_reloc_address) [__ppc64__]: New function.
9589 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
9590 changed.
9591
9592 2007-12-05 Jason Rumney <jasonr@gnu.org>
9593
9594 * w32proc.c (sys_spawnve): Quote args with wildcards.
9595
9596 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9597
9598 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
9599 __objc_* sections.
9600 (unrelocate) [_LP64]: Set relocation base to address of data segment.
9601
9602 2007-12-05 Michael Albinus <michael.albinus@gmx.de>
9603
9604 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
9605 Move check for Vdbus_registered_functions_table to
9606 xd_read_queued_messages.
9607 (xd_read_queued_messages): Protect xd_read_message calls by
9608 internal_condition_case_1.
9609
9610 2007-12-04 Michael Albinus <michael.albinus@gmx.de>
9611
9612 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
9613 Qdbus_system_bus and Qdbus_session_bus, respectively.
9614 (Vdbus_intern_symbols): Remove.
9615 (Vdbus_registered_functions_table): New hash table.
9616 (XD_SYMBOL_INTERN_SYMBOL): Remove.
9617 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
9618 Rewrite in order to manage registered functions by hash table
9619 Vdbus_registered_functions_table.
9620
9621 2007-12-03 Jan Djärv <jan.h.d@swipnet.se>
9622
9623 * xterm.c: Update URL to Window Manager Specification in comment.
9624
9625 2007-12-02 Michael Albinus <michael.albinus@gmx.de>
9626
9627 * config.in (HAVE_DBUS): Add.
9628
9629 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
9630 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
9631 (obj): Add $(DBUS_OBJ).
9632 (LIBES): Add $(DBUS_LIBS).
9633 (dbusbind.o): New target.
9634
9635 * dbusbind.c: New file.
9636
9637 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
9638
9639 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
9640 (Qdbus_event): New Lisp symbol.
9641 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
9642 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
9643 (keys_of_keyboard ): Define dbus-event.
9644
9645 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
9646
9647 2007-12-01 Richard Stallman <rms@gnu.org>
9648
9649 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
9650
9651 2007-11-30 Jason Rumney <jasonr@gnu.org>
9652
9653 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
9654 (w32con_reset_terminal_modes): Clear screen buffer.
9655 (w32_face_attributes): Don't use color indexes that are out of range.
9656 Only reverse the default colors.
9657
9658 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
9659 WINDOWSNT.
9660
9661 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
9662
9663 2007-11-29 Jason Rumney <jasonr@gnu.org>
9664
9665 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
9666 (w32_face_attributes): Use Vtty_defined_color_alist to determine
9667 if the terminal colors are initialized.
9668 (unspecified_fg, unspecified_bg): Remove unused declarations.
9669
9670 2007-11-29 Andreas Schwab <schwab@suse.de>
9671
9672 * keyboard.c (apply_modifiers): Fix typo.
9673
9674 2007-11-29 Richard Stallman <rms@gnu.org>
9675
9676 * keymap.c (Fcurrent_local_map): Doc fix.
9677
9678 2007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
9679
9680 * s/gnu-kfreebsd.h: New file.
9681
9682 2007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
9683
9684 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
9685 Don't cast redundantly.
9686
9687 * keyboard.c (KEY_TO_CHAR): New macro.
9688 (parse_modifiers, apply_modifiers): Accept integer arguments.
9689 (read_key_sequence): Use them to unify the "shift->unshift" mapping
9690 for chars and symbol keys.
9691 After doing such remapping, apply function-key-map again.
9692
9693 2007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
9694
9695 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
9696 compiled anymore.
9697
9698 2007-11-26 Andreas Schwab <schwab@suse.de>
9699
9700 * process.c (list_processes_1): Fix indentation level of the
9701 command column.
9702
9703 2007-11-23 Andreas Schwab <schwab@suse.de>
9704
9705 * editfns.c (Fformat): Handle %c specially since it requires the
9706 argument to be of type int.
9707
9708 2007-11-23 Markus Triska <markus.triska@gmx.at>
9709
9710 * emacs.c (main): Call init_editfns before init_process, since
9711 init_process sets Vprocess_connection_type depending on OS release.
9712
9713 2007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
9714
9715 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
9716 (find_symbol_value): Use do_symval_forwarding.
9717
9718 * data.c (set_internal): Set the value in the `cons-cell' (for
9719 Buffer_Local_values) not only for frame-local variables.
9720
9721 2007-11-22 Andreas Schwab <schwab@suse.de>
9722
9723 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
9724 values to sprintf.
9725 * keymap.c (Fsingle_key_description): Likewise.
9726 * print.c (print_object): Likewise.
9727
9728 2007-11-22 Jan Djärv <jan.h.d@swipnet.se>
9729
9730 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
9731 file for image is nil.
9732
9733 2007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
9734
9735 * term.c: Include stdarg.h.
9736 (fatal): Implement using varargs.
9737 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
9738
9739 2007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
9740
9741 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
9742 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
9743 Update call to buffer_slot_type_mismatch.
9744 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
9745 (buffer_slot_type_mismatch): Update.
9746 * buffer.c (buffer_local_types): Remove.
9747 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
9748 (defvar_per_buffer): Set the type in the buffer_objfwd.
9749
9750 2007-11-21 Jason Rumney <jasonr@gnu.org>
9751
9752 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
9753 CreateFileMapping returns NULL on failure.
9754
9755 2007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
9756
9757 * search.c (Fset_match_data): Remove the `evaporate' feature.
9758 (unwind_set_match_data): Don't use the `evaporate' feature.
9759
9760 2007-11-21 Jason Rumney <jasonr@gnu.org>
9761
9762 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
9763
9764 * w32console.c (w32con_write_glyphs): Remove unused variables.
9765
9766 2007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
9767
9768 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
9769
9770 * s/darwin.h (MULTI_KBOARD): Remove.
9771
9772 * macfns.c (x_create_tip_frame, Fx_create_frame)
9773 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
9774
9775 2007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
9776
9777 * buffer.c (Fbuffer_local_value): Remove redundant test.
9778 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
9779 than in `current-buffer' to match the comment.
9780 Do the swap using swap_in_global_binding.
9781
9782 * data.c (store_symval_forwarding, set_internal):
9783 * eval.c (specbind): Remove dead code.
9784
9785 * coding.c (detect_coding, Fupdate_coding_systems_internal):
9786 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
9787 Since we do not want to see internal Lisp_*fwd objects here.
9788
9789 2007-11-18 Jan Djärv <jan.h.d@swipnet.se>
9790
9791 * sysdep.c (init_system_name): Use getaddrinfo if available.
9792
9793 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
9794 (x_scroll_bar_note_movement): start, end, with, height in struct
9795 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
9796
9797 2007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
9798
9799 * puresize.h (BASE_PURESIZE): Increase to 1190000.
9800
9801 2007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
9802
9803 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
9804 This undoes Richard's change of 14-Oct-2002.
9805
9806 * alloc.c (allocate_other_vector):
9807 * lisp.h (allocate_other_vector): Remove.
9808
9809 * window.c (struct save_window_data): Move non-lisp data to the end
9810 and make it `int' rather than Lisp_Object.
9811 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
9812 Done wrap/unwrap integer values.
9813 (Fset_window_configuration, compare_window_configurations):
9814 Update use of fields to their new types.
9815
9816 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
9817 Turn integer fields into `int'. Merge x_window_low and x_window_high.
9818 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
9819 (SET_SCROLL_BAR_X_WINDOW): Remove.
9820 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
9821 Access the new x_window field directly.
9822 * xterm.c (x_scroll_bar_create): Use a pseudovector.
9823 Don't wrap/unwrap integers into Lisp_Objects.
9824 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
9825 (x_scroll_bar_report_motion):
9826 Don't wrap/unwrap integers into Lisp_Objects.
9827 (x_term_init): Use SDATA.
9828 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
9829 (x_scroll_bar_set_handle, x_scroll_bar_remove)
9830 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
9831 (x_scroll_bar_report_motion, x_scroll_bar_clear):
9832 * xfns.c (x_set_background_color):
9833 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
9834 Access the new x_window field directly.
9835
9836 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
9837 (allocate_pseudovector): Make non-static.
9838
9839 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
9840 (allocate_pseudovector): Declare.
9841 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
9842
9843 2007-11-15 Andreas Schwab <schwab@suse.de>
9844
9845 * editfns.c (Fformat): Correctly format EMACS_INT values.
9846 Also take precision into account when formatting an integer.
9847
9848 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
9849
9850 2007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
9851
9852 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
9853 (syms_of_keyboard): Defsubr it.
9854
9855 * data.c (swap_in_global_binding): Fix longstanding bug where
9856 store_symval_forwarding was not called with the right second argument,
9857 thus causing objfwd-ing from being dropped.
9858
9859 2007-11-14 Juanma Barranquero <lekktu@gmail.com>
9860
9861 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
9862 (Fx_display_pixel_height, Fx_display_planes)
9863 (Fx_display_color_cells, Fx_server_max_request_size)
9864 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
9865 (Fx_display_visual_class, Fx_display_save_under):
9866 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
9867 (Fx_display_pixel_height, Fx_display_planes)
9868 (Fx_display_color_cells, Fx_server_max_request_size)
9869 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
9870 (Fx_display_mm_height, Fx_display_mm_width)
9871 (Fx_display_backing_store, Fx_display_visual_class)
9872 (Fw32_select_font, Fx_display_save_under):
9873 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
9874 (Fx_display_pixel_height, Fx_display_planes)
9875 (Fx_display_color_cells, Fx_server_max_request_size)
9876 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
9877 (Fx_display_save_under): Fix typos in docstrings.
9878
9879 2007-11-14 Juanma Barranquero <lekktu@gmail.com>
9880
9881 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
9882 corresponding to deleted entries; they are an implementation detail.
9883 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
9884 Remove variables.
9885 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
9886 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
9887 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
9888 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
9889 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
9890 (Fw32_define_rgb_color, Fw32_load_color_file)
9891 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
9892 Fix typos in docstrings.
9893 (Fx_server_version): Reflow docstring.
9894 (Fw32_shell_execute): Doc fixes.
9895
9896 2007-11-13 Juanma Barranquero <lekktu@gmail.com>
9897
9898 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
9899 if w32_parse_hot_key returned nil.
9900
9901 2007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
9902
9903 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
9904
9905 2007-11-09 Jason Rumney <jasonr@gnu.org>
9906
9907 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
9908
9909 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
9910
9911 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
9912 Remove W32_SCROLL_BAR_CLICK_EVENT.
9913
9914 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
9915 Add MULTIMEDIA_KEY_EVENT.
9916
9917 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
9918 (lispy_multimedia_keys) [WINDOWSNT]: New array.
9919 (make_lispy_event) [WINDOWSNT]: Use it to translate
9920 MULTIMEDIA_KEY_EVENT.
9921
9922 * w32term.h (WM_APPCOMMAND): Define if not already.
9923 (GET_APPCOMMAND_LPARAM): Likewise.
9924
9925 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
9926 WM_APPCOMMAND.
9927
9928 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
9929 (syms_of_w32fns): Export and initialize it.
9930 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
9931
9932 2007-11-09 Chong Yidong <cyd@stupidchicken.com>
9933
9934 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
9935 twice.
9936
9937 * xdisp.c (handle_face_prop): Fix last change.
9938
9939 2007-11-09 Richard Stallman <rms@gnu.org>
9940
9941 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
9942 not just for after-strings and before-strings.
9943 Call face_for_overlay_string and pass the overlay to it.
9944 (handle_display_prop): Determine whether property came from an overlay.
9945 Pass OVERLAY arg to handle_single_display_spec.
9946 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
9947 (load_overlay_strings): Fill in it->string_overlays.
9948 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
9949
9950 * xfaces.c (face_for_overlay_string): Function renamed from
9951 face_at_buffer_position_no_overlays, and add arg OVERLAY.
9952
9953 * dispextern.h (struct it): New elt string_overlays.
9954 New elt from_overlay, also in stack.
9955 Rearrange a few elements.
9956 (face_for_overlay_string): Decl renamed from
9957 face_at_buffer_position_no_overlays, and add argument.
9958
9959 2007-11-09 Richard Stallman <rms@gnu.org>
9960
9961 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
9962 to get the base face for an overlay string.
9963
9964 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
9965
9966 * xfaces.c (face_at_buffer_position_no_overlays): New function.
9967
9968 * xdisp.c (handle_stop): Move some code out of loop.
9969
9970 2007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9971
9972 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
9973 Fix conversion from Lisp object to ATSUFontID.
9974
9975 2007-11-09 Jason Rumney <jasonr@gnu.org>
9976
9977 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
9978
9979 2007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9980
9981 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
9982 Don't assume regions are aligned to page boundary.
9983 (print_load_command_name): Add LC_UUID if defined.
9984
9985 2007-11-09 Richard Stallman <rms@gnu.org>
9986
9987 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
9988
9989 2007-11-07 Jason Rumney <jasonr@gnu.org>
9990
9991 * s/windows95.h: Remove.
9992
9993 2007-11-06 Jan Djärv <jan.h.d@swipnet.se>
9994
9995 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
9996 abort with a message on unhandled store_type values.
9997
9998 2007-11-01 Jan Djärv <jan.h.d@swipnet.se>
9999
10000 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
10001 Remove HAVE_X11R5 and HAVE_X11R4.
10002
10003 2007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
10004
10005 * Makefile.in: Remove references to sunfns.c and sunfns.o.
10006
10007 2007-11-01 Johan Bockgård <bojohan@gnu.org>
10008
10009 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
10010 Don't set s->stippled_p here, since it has already been set by
10011 x_set_glyph_string_gc from x_draw_glyph_string.
10012
10013 2007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
10014
10015 * sunfns.c: Remove file.
10016
10017 * m/sun386.h:
10018 * m/sun2.h:
10019 * m/sparc.h: Remove Sun windows code.
10020
10021 2007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
10022
10023 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
10024 (init_keyboard): Set current_kboard's window-system to nil.
10025 (tty_read_avail_input): Typo.
10026 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
10027
10028 2007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
10029
10030 * s/usg5-4.h:
10031 * s/usg5-3.h:
10032 * s/ptx.h:
10033 * m/is386.h:
10034 * m/ibmps2-aix.h:
10035 * Makefile.in: Remove all mentions of X10.
10036
10037 * dispnew.c (syms_of_display): Don't mention version 10.
10038
10039 2007-10-28 Juanma Barranquero <lekktu@gmail.com>
10040
10041 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
10042 ($(BLD)/abbrev.$(O)): Remove.
10043
10044 2007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
10045
10046 Rewrite abbrev.c in Elisp.
10047 * image.c (Qcount): Don't declare as extern.
10048 (syms_of_image): Initialize and staticpro `Qcount'.
10049 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
10050 * emacs.c (main): Don't call syms_of_abbrev.
10051 * Makefile.in (obj): Remove abbrev.o.
10052 (abbrev.o): Remove.
10053 * abbrev.c: Remove.
10054
10055 2007-10-26 Martin Rudalics <rudalics@gmx.at>
10056
10057 * window.c (window_min_size_2): Don't count header-line.
10058
10059 2007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
10060
10061 * frame.h (struct frame): Move all bit fields after the first bit
10062 field to take advantage of the available space. Group all the
10063 chars together to reduce wasted space due to padding.
10064
10065 2007-10-26 Juanma Barranquero <lekktu@gmail.com>
10066
10067 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
10068
10069 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
10070 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
10071 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
10072 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
10073 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
10074 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
10075 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
10076 (last_marked, mark_object_loop_halt): Make static.
10077
10078 * frame.c (syms_of_frame) <delete-frame-functions>:
10079 Fix typo in docstring.
10080
10081 2007-10-25 Juanma Barranquero <lekktu@gmail.com>
10082
10083 * w32.c (init_environment): Fix tiny memory leak.
10084 (w32_get_resource): Remove unused variable `ok'.
10085
10086 2007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
10087
10088 Make `window-system' into a keyboard-local variable (rather than
10089 frame-local as done originally by multi-tty).
10090
10091 * keyboard.h (struct kboard): Add Vwindow_system.
10092 * keyboard.c (init_kboard): Set a default for Vwindow_system.
10093 (mark_kboards): Mark Vwindow_system.
10094
10095 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
10096 (init_display): Don't set the obsolete `window-system' frame-param.
10097
10098 * xterm.c (x_term_init):
10099 * w32term.c (w32_create_terminal):
10100 * term.c (init_tty): Set Vwindow_system.
10101 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
10102 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
10103
10104 * xfns.c (Fx_create_frame, x_create_tip_frame):
10105 * w32fns.c (Fx_create_frame, x_create_tip_frame):
10106 * macfns.c (Fx_create_frame):
10107 Don't set the obsolete `window-system' frame-param.
10108
10109 * frame.h (Qwindow_system): Remove.
10110 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
10111 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
10112
10113 2007-10-24 Richard Stallman <rms@gnu.org>
10114
10115 * frame.c (x_figure_window_size): For fullscreen case,
10116 set USPosition | PPosition without clobbering rest of window_prompting.
10117
10118 * keyboard.c (Fcurrent_idle_time): Doc fix.
10119
10120 * print.c (Fwith_output_to_temp_buffer): Doc fix.
10121
10122 2007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
10123
10124 * process.c (unwind_request_sigio): Only define if __ultrix__.
10125
10126 * callproc.c (child_setup): Remove spurious *.
10127
10128 * lisp.h (Fget_text_property): Declare.
10129 (have_menus_p): Declare it here rather than in sys-dep header files.
10130 * macterm.h (have_menus_p):
10131 * msdos.h (have_menus_p):
10132 * xterm.h (have_menus_p): Remove.
10133
10134 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
10135 (Fmake_variable_frame_local): Just check the variable's const-ness
10136 rather than checking nil or t.
10137
10138 2007-10-22 Jason Rumney <jasonr@gnu.org>
10139
10140 * w32fns.c: Include math.h.
10141 (w32_abort): Declaration moved to nt/config.nt.
10142
10143 * s/ms-w32.h (HAVE_STDLIB_H): Define.
10144 (abort): Redefinition moved to nt/config.nt.
10145
10146 * m/windowsnt.h: Remove.
10147
10148 2007-10-22 Juanma Barranquero <lekktu@gmail.com>
10149
10150 * emacs.c (Fdump_emacs): Fix typo in message.
10151 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
10152 <installation-directory>: Reflow docstring.
10153
10154 2007-10-22 Juri Linkov <juri@jurta.org>
10155
10156 * minibuf.c: Allow minibuffer default to be a list of default values.
10157 With empty input use the first element of this list as returned default.
10158 (string_to_object)
10159 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
10160 (read_minibuf): If defalt is cons, set histstring to its car.
10161 (Fread_string): If default_value is cons, set val to its car.
10162 (Fread_buffer): If def is cons, use its car.
10163 (Fcompleting_read): If defalt is cons, set val to its car.
10164
10165 2007-10-21 Michael Albinus <michael.albinus@gmx.de>
10166
10167 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
10168
10169 2007-10-20 Juanma Barranquero <lekktu@gmail.com>
10170
10171 * doc.c (Fdocumentation): Check for advice in all cases.
10172
10173 2007-10-19 Chong Yidong <cyd@stupidchicken.com>
10174
10175 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
10176
10177 2007-10-19 Richard Stallman <rms@gnu.org>
10178
10179 * doc.c (Fdocumentation): Check for and handle an advised function.
10180
10181 2007-10-19 Juanma Barranquero <lekktu@gmail.com>
10182
10183 * process.c (Fset_process_filter): Doc fix.
10184
10185 2007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
10186
10187 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
10188 which caused key-translation-map to applied repeatedly (thus breaking
10189 double-mode).
10190
10191 2007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
10192
10193 * xselect.c (x_own_selection, x_handle_selection_clear)
10194 (x_clear_frame_selections):
10195 * w32menu.c (list_of_panes, list_of_items):
10196 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
10197 * textprop.c (validate_plist, interval_has_all_properties)
10198 (interval_has_some_properties, interval_has_some_properties_list)
10199 (add_properties, text_property_list):
10200 * process.c (Fget_buffer_process, list_processes_1, status_notify):
10201 * minibuf.c (Fassoc_string):
10202 * macselect.c (x_own_selection, x_clear_frame_selections)
10203 (Fx_disown_selection_internal):
10204 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
10205 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
10206
10207 2007-10-17 Chong Yidong <cyd@stupidchicken.com>
10208
10209 * process.c: Link to libs for calling res_init() if available.
10210 (Fmake_network_process): Call res_init() before getaddrinfo or
10211 gethostbyname, if possible.
10212
10213 2007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
10214
10215 * lread.c (read1): Set pvectype for char_tables.
10216
10217 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
10218 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
10219 Add type checks.
10220 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
10221
10222 * alloc.c (free_misc): Use XMISCTYPE.
10223 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
10224
10225 2007-10-17 Glenn Morris <rgm@gnu.org>
10226
10227 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
10228 (syms_of_minibuf): Add Qcompletion_ignore_case.
10229 * dired.c (Qcompletion_ignore_case): Change to external.
10230 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
10231 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
10232 (Fread_file_name): Use it rather than intern'ing.
10233
10234 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
10235 (Fread_coding_system): Ignore case of user input.
10236
10237 2007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10238
10239 * xdisp.c (handle_display_prop): Ignore display specs after
10240 replacing one when string text is being replaced.
10241 (handle_single_display_spec): Pretend as if characters with display
10242 property haven't been consumed only when buffer text is being replaced.
10243
10244 2007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
10245
10246 * xfns.c (Fx_create_frame, Fx_display_list):
10247 * window.c (window_fixed_size_p, enlarge_window)
10248 (shrink_window_lowest_first):
10249 * macterm.c (init_font_name_table):
10250 * macfns.c (Fx_create_frame, Fx_display_list):
10251 * lread.c (close_load_descs):
10252 * keyboard.c (read_char_x_menu_prompt):
10253 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
10254 * coding.c (code_convert_region_unwind): Test the type of an object
10255 rather than just !NILP before extracting data from it.
10256
10257 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
10258
10259 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
10260 (XMISCANY): New macro.
10261 (XMISCTYPE): Use it.
10262 (struct Lisp_Misc_Any): New type.
10263 (union Lisp_Misc): Use it.
10264 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
10265 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
10266 (find_symbol_value, set_internal, default_value, Fset_default)
10267 (Fmake_variable_buffer_local, Fmake_local_variable)
10268 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
10269 (Flocal_variable_if_set_p, Fvariable_binding_locus):
10270 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
10271 * alloc.c (allocate_buffer): Set the size and tag.
10272 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
10273 Use XMISCANY.
10274 (die): Follow the GNU convention for error messages.
10275 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
10276 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
10277 tag any more.
10278 (set_buffer_internal_1):
10279 * frame.c (store_frame_param):
10280 * eval.c (specbind):
10281 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
10282
10283 * doc.c (Fsnarf_documentation): Simplify.
10284
10285 2007-10-14 Juanma Barranquero <lekktu@gmail.com>
10286
10287 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
10288 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
10289
10290 2007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
10291
10292 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
10293
10294 2007-10-14 Juanma Barranquero <lekktu@gmail.com>
10295
10296 * eval.c (do_autoload): Don't save autoloads.
10297
10298 * data.c (Ffset): Save autoload of the function being set.
10299
10300 2007-10-07 John Paul Wallington <jpw@pobox.com>
10301
10302 * xfns.c (x_create_tip_frame): Set the `display-type' frame
10303 parameter before setting up faces.
10304
10305 2007-10-13 Eli Zaretskii <eliz@gnu.org>
10306
10307 * ccl.c (Fregister_code_conversion_map):
10308 * keyboard.c (append_tool_bar_item): Reformat last change.
10309
10310 * lisp.h (eabs): Rename from `abs'. All callers changed.
10311
10312 2007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
10313
10314 * buffer.c (add_overlay_mod_hooklist):
10315 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
10316 * fontset.c (make_fontset):
10317 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
10318 (append_tool_bar_item):
10319 * macmenu.c (grow_menu_items):
10320 * w32menu.c (grow_menu_items):
10321 * xmenu.c (grow_menu_items): Use larger_vector.
10322
10323 2007-10-13 Eli Zaretskii <eliz@gnu.org>
10324
10325 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
10326 selected frame'' on MSDOS).
10327
10328 2007-10-12 Martin Rudalics <rudalics@gmx.at>
10329
10330 * frame.c (Qexplicit_name): New variable.
10331 (x_report_frame_params): Report it in parameter alist.
10332 (syms_of_frame): Intern and staticpro it.
10333
10334 2007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
10335
10336 * macfns.c (x_create_tip_frame): Set terminal for frame.
10337
10338 2007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
10339
10340 * frame.c (Qenvironment): Remove.
10341 (syms_of_frame) <Qenvironment>: Don't initialize.
10342 (Fdelete_frame): Don't treat the `environment' param specially.
10343 * frame.h (Qenvironment): Don't declare.
10344 * callproc.c (set_initial_environment): Don't set unused frame param.
10345
10346 * frame.c (Fframe_with_environment): Remove.
10347 (syms_of_frame) <Sframe_with_environment>: Don't declare.
10348
10349 * lisp.h (Fframe_with_environment): Don't declare.
10350
10351 2007-10-10 Juanma Barranquero <lekktu@gmail.com>
10352
10353 * indent.c (indent_tabs_mode, last_known_column)
10354 (last_known_column_modified): Make static.
10355 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
10356
10357 2007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
10358
10359 * puresize.h (BASE_PURESIZE): Increase to 1170000.
10360
10361 2007-10-09 Jason Rumney <jasonr@gnu.org>
10362
10363 * w32term.c (x_set_window_size): Disable code that attempts to tell
10364 Lisp code about a size change before it actually happens.
10365
10366 2007-10-09 Richard Stallman <rms@gnu.org>
10367
10368 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
10369 return HANDLED_RETURN.
10370
10371 2007-10-08 Martin Rudalics <rudalics@gmx.at>
10372
10373 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
10374 when there's an unread command event.
10375
10376 * frame.c (focus_follows_mouse): Move here from frame.el to allow
10377 window autoselection act appropriately when leaving selected frame.
10378 (syms_of_frame): Initialize focus_follows_mouse.
10379 * frame.h (focus_follows_mouse): Extern it.
10380 * macterm.c (XTread_socket): When focus_follows_mouse is nil
10381 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
10382 * msdos.c (dos_rawgetc): Likewise.
10383 * w32term.c (w32_read_socket): Likewise.
10384 * xterm.c (handle_one_xevent): Likewise.
10385 * xdisp.c (syms_of_xdisp): In doc-string of
10386 mouse-autoselect-window mention focus-follows-mouse.
10387
10388 2007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10389
10390 * macterm.c (mac_load_query_font): Fix missing return value.
10391 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
10392 Add BLOCK_INPUT.
10393
10394 2007-10-08 Richard Stallman <rms@gnu.org>
10395
10396 * xdisp.c (get_window_cursor_type): Implement documented behavior
10397 for cursor-in-non-selected-windows = t.
10398
10399 2007-10-08 Jason Rumney <jasonr@gnu.org>
10400
10401 * w32.c (w32_get_resource): Always close registry keys.
10402
10403 2007-10-08 Jason Rumney <jasonr@gnu.org>
10404
10405 * makefile.w32-in (LIBS): Add COMCTL32.
10406
10407 * w32fns.c (globals_of_w32fns): Init common controls.
10408
10409 2007-10-08 Richard Stallman <rms@gnu.org>
10410
10411 * image.c (our_memory_buffer): Rename from omfib_buffer.
10412
10413 2007-10-08 Richard Stallman <rms@gnu.org>
10414
10415 * buffer.c (Foverlays_at): Doc fix.
10416
10417 2007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
10418
10419 * fns.c (Fplist_put): Preserve uneven tail data.
10420
10421 2007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
10422
10423 * termhooks.h (enum event_kind): Remove trailing comma.
10424
10425 * frame.h (enum): Remove trailing comma.
10426
10427 2007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
10428
10429 * w32proc.c (delete_child): Don't terminate threads of zombies.
10430
10431 2007-10-08 Martin Rudalics <rudalics@gmx.at>
10432
10433 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
10434
10435 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
10436 last-repeatable-command.
10437 (init_kboard): Initialize Vlast_repeatable_command.
10438 (command_loop_1): Set it to real_this_command unless that was
10439 bound to an input event.
10440 (mark_kboards): Mark it.
10441
10442 2007-10-08 Richard Stallman <rms@gnu.org>
10443
10444 * eval.c (condition-case): Doc fix.
10445
10446 2007-10-08 Masatake YAMATO <jet@gyve.org>
10447
10448 * xfaces.c (tty_supports_face_attributes_p): Fix code
10449 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
10450 was copied and not edited.
10451
10452 2007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
10453
10454 Add new `input-decode-map' keymap and use it for terminal
10455 escape sequences.
10456 * keyboard.h (struct kboard): Add Vinput_decode_map.
10457 Remove Vlocal_key_translation_map.
10458 * keyboard.c (read_key_sequence): Add support for input-decode-map.
10459 (init_kboard): Init input-decode-map.
10460 Replace local-key-translation-map back with key-translation-map.
10461 (syms_of_keyboard): Declare input-decode-map.
10462 Remove local-key-translation-map. Update docstrings.
10463 (mark_kboards): Mark Vinput_decode_map.
10464 Don't mark Vlocal_key_translation_map.
10465 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
10466 Replace local-key-translation-map back with key-translation-map.
10467 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
10468 Bind in input-decode-map rather than function-key-map.
10469
10470 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
10471 This was made redundant by the previous introduction of XSETPVECTYPE.
10472
10473 2007-10-09 Richard Stallman <rms@gnu.org>
10474
10475 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
10476
10477 2007-09-29 Richard Stallman <rms@gnu.org>
10478
10479 * eval.c (internal_condition_case_2, internal_condition_case_1)
10480 (internal_condition_case): Reenable abort if x_catching_errors ()
10481 to see if that really happens and why.
10482
10483 2007-10-06 Andreas Schwab <schwab@suse.de>
10484
10485 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
10486
10487 2007-10-04 Juanma Barranquero <lekktu@gmail.com>
10488
10489 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
10490
10491 2007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
10492
10493 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
10494
10495 2007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
10496
10497 * window.h (struct window):
10498 * window.c (struct save_window_data, struct saved_window):
10499 * termhooks.h (struct terminal):
10500 * process.h (struct Lisp_Process):
10501 * frame.h (struct frame):
10502 * buffer.h (struct buffer):
10503 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
10504 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
10505 The size field of (pseudo)vectors is now unsigned.
10506 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
10507
10508 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
10509 Turn `count' into an integer.
10510
10511 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
10512 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
10513 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
10514 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
10515 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
10516
10517 * alloc.c (allocate_pseudovector): New fun.
10518 (ALLOCATE_PSEUDOVECTOR): New macro.
10519 (allocate_window, allocate_terminal, allocate_frame)
10520 (allocate_process): Use it.
10521 (mark_vectorlike): New function.
10522 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
10523 (mark_terminals): Use it.
10524 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
10525 (Fmake_byte_code): Use XSETPVECTYPE.
10526
10527 * frame.c (Fframe_parameters): Minor simplification.
10528
10529 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
10530
10531 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
10532
10533 * buffer.c (Fget_buffer_create, init_buffer_once):
10534 * lread.c (defsubr):
10535 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
10536
10537 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
10538 defined differently in the m/*.h files.
10539 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
10540 (XSETPVECTYPE): New macro.
10541 (XSETPSEUDOVECTOR): Use it.
10542
10543 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
10544 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
10545
10546 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
10547 * lread.c (defvar_per_buffer):
10548 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
10549
10550 * window.c (candidate_window_p): Only consider as visible frames that
10551 are on the same terminal.
10552
10553 * m/ibms390x.h (MARKBIT): Remove unused macro.
10554
10555 2007-10-01 Juanma Barranquero <lekktu@gmail.com>
10556
10557 * lread.c (Fload): Fix typo in docstring.
10558
10559 2007-10-01 Michaël Cadilhac <michael@cadilhac.name>
10560
10561 * floatfns.c (Fexpt): Manually check for overflows, so that a power
10562 of a non-zero value can't yield zero.
10563
10564 2007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
10565
10566 * term.c (term_clear_mouse_face, term_mouse_highlight)
10567 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
10568
10569 * print.c (safe_debug_print): Use XHASH.
10570
10571 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
10572 Lisp elements such as tags.
10573 (XHASH): New macro.
10574 (EQ): Use it.
10575 (SREF, SSET, STRING_COPYIN): Use SDATA.
10576 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
10577
10578 * alloc.c (mark_terminal): Remove left-over declaration.
10579 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
10580 (allocate_vectorlike): Remove type argument. Adjust callers.
10581 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
10582 Only handle the one remaining MEM_TYPE_VECTORLIKE.
10583
10584 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
10585 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
10586 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
10587 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
10588 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
10589 Use them.
10590
10591 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
10592 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
10593 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
10594
10595 2007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
10596
10597 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
10598 loaded by default.
10599
10600 2007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
10601
10602 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
10603 on this tty.
10604 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
10605
10606 * term.c (mouse_face_window): Rename from Qmouse_face_window.
10607 Update all users.
10608 (handle_one_term_event): Use Gpm_DrawPointer.
10609 (Fgpm_mouse_start): Rename from Fterm_open_connection.
10610 Signal errors instead of returning nil. Always return nil.
10611 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
10612 Make it a noop if gpm-mouse was not activated.
10613 (syms_of_term): Update names.
10614
10615 2007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
10616
10617 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
10618 (init_sys_modes): Check that gpm_tty is the current tty.
10619
10620 * alloc.c (allocate_terminal): Set the vector size to only count the
10621 lisp fields. Initialize those to nil.
10622 (mark_object): Don't treat terminals specially.
10623 (mark_terminal): Remove.
10624 (mark_terminals): Use mark_object instead.
10625
10626 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
10627 the GC to the beginning.
10628
10629 * indent.h:
10630 * indent.c: Use EMACS_INT for ints coming from Elisp data.
10631
10632 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
10633
10634 2007-09-25 Jason Rumney <jasonr@gnu.org>
10635
10636 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
10637
10638 * w32console.c (create_w32cons_output): Remove.
10639
10640 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
10641
10642 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
10643 (reset_sys_modes): Use reset_terminal_modes_hook.
10644
10645 2007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
10646
10647 * eval.c (do_autoload): Don't output any message.
10648
10649 2007-09-24 Juri Linkov <juri@jurta.org>
10650
10651 * emacs.c (standard_args): Change priority of "--no-splash"
10652 from 40 to 3. Add "--no-desktop" with the same priority.
10653
10654 2007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
10655
10656 * alloc.c (gc_sweep): Check cons cell mark bits word by word
10657 and optimize the case where they are all 1.
10658
10659 2007-09-23 Johannes Weiner <hannes@saeurebad.de>
10660
10661 * lisp.h (abs): Define if not defined.
10662 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
10663 Don't define `abs', since it's defined in lisp.h.
10664
10665 2007-09-22 Eli Zaretskii <eliz@gnu.org>
10666
10667 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
10668 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
10669 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
10670 (init_tty): Use DEV_TTY instead of "/dev/tty".
10671 [WINDOWSNT]: No need to protect from NAME arg being null.
10672
10673 2007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
10674
10675 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
10676 up the tty state.
10677
10678 2007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
10679
10680 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
10681 (gpm_tty): Change its type.
10682 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
10683 (gpm_tty): Change its type and initialize it.
10684 (Fterm_open_connection): Check the frame is indeed a tty.
10685 Use the new gpm_tty.
10686 (Fterm_close_connection): Use the new gpm_tty.
10687 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
10688 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
10689
10690 2007-09-21 Juanma Barranquero <lekktu@gmail.com>
10691
10692 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
10693 underline_color, to draw strike-through.
10694
10695 2007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
10696
10697 * lisp.h (allocate_terminal): Declare.
10698
10699 * window.c (candidate_window_p): Consider frames that are being placed
10700 by the user as somewhere between visible and iconified.
10701 (window_loop): Prefer windows on the current frame.
10702 (Fselect_window): Move the use of select-frame to the beginning so we
10703 can just delegate all the work (it'll call us back anyway).
10704
10705 * frame.c (Qdisplay_environment_variable):
10706 * frame.h (Qdisplay_environment_variable): Delete.
10707
10708 * .gdbinit (xbacktrace): Print the arg's address rather than the value
10709 of the first arg, since that value may be a union.
10710
10711 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
10712 parameter rather than Qdisplay_environment_variable. If all else
10713 fails, look for DISPLAY in initial-environment.
10714
10715 2007-09-21 Glenn Morris <rgm@gnu.org>
10716
10717 * Makefile.in (emacstool): Remove target.
10718 (lisp, shortlisp): Remove termdev.elc.
10719
10720 2007-09-21 Markus Triska <markus.triska@gmx.at>
10721
10722 * xterm.c (x_delete_display): Compile session management conditionally.
10723
10724 2007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
10725
10726 * callproc.c (getenv_internal_1): New function.
10727 (getenv_internal): Use it.
10728 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
10729
10730 * terminal.c (get_terminal): Don't accept ints to represent terminals.
10731 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
10732 (Fset_terminal_parameter): Work with dead terminals as well.
10733 (Fmodify_terminal_parameters): Remove.
10734
10735 * terminal.c (get_terminal): Handle terminals.
10736 Make sure the terminal returned is live.
10737 (create_terminal): Use allocate_terminal.
10738 (mark_terminals): Move to alloc.c.
10739 (delete_terminal): Use terminal->name as liveness status.
10740 NULL out fields after freeing their contents.
10741 Don't deallocate the object.
10742 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
10743 rather than an int.
10744 (Fterminal_live_p): Accept non-integer arguments.
10745 (Fterminal_list): Return terminal objects rather than an ints.
10746
10747 * alloc.c (enum mem_type): New member for `terminal' objects.
10748 (allocate_terminal): New function.
10749 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
10750 Handle terminals.
10751 (mark_terminal): New fun.
10752 (mark_terminals): Move from terminal.c.
10753
10754 * term.c (get_tty_terminal): Don't treat output_initial specially.
10755 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
10756 (delete_tty): Use terminal->name as liveness status.
10757
10758 * termhooks.h (struct terminal): Make it into a pseudovector.
10759 Remove `deleted' replaced by checking `name's nullness.
10760
10761 * print.c (print_object): Handle terminals.
10762
10763 * lisp.h (enum pvec_type): New `terminal' pseudovector.
10764 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
10765
10766 * frame.c (make_terminal_frame):
10767 * keyboard.c (tty_read_avail_input):
10768 * w32term.c (x_delete_terminal):
10769 * xfns.c (Fx_create_frame, x_create_tip_frame):
10770 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
10771
10772 2007-09-20 Glenn Morris <rgm@gnu.org>
10773
10774 * process.c (Fmake_network_process): Doc fix.
10775
10776 2007-09-19 Jason Rumney <jasonr@gnu.org>
10777
10778 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
10779
10780 2007-09-19 Michaël Cadilhac <michael@cadilhac.name>
10781
10782 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
10783 Fix a C warning regarding variable constness.
10784
10785 * xterm.c (handle_one_xevent): Fix a C warning.
10786
10787 2007-09-18 Jason Rumney <jasonr@gnu.org>
10788
10789 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
10790
10791 2007-09-17 Jan Djärv <jan.h.d@swipnet.se>
10792
10793 * gtkutil.c (gdpy_def): New variable.
10794 (xg_initialize): Initialize gdpy_def.
10795 (xg_display_close): If no other display exists, set gdpy_def to a
10796 new connection.
10797
10798 2007-09-16 Jan Djärv <jan.h.d@swipnet.se>
10799
10800 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
10801 when we have no file name for the icon.
10802 (xg_tool_bar_expose_callback): Remove.
10803 (xg_create_tool_bar): Don't connect expose signal to
10804 xg_tool_bar_expose_callback.
10805 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
10806
10807 2007-09-16 Andreas Schwab <schwab@suse.de>
10808
10809 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
10810 values instead of zapping them.
10811
10812 2007-09-14 Glenn Morris <rgm@gnu.org>
10813
10814 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
10815 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
10816 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
10817 scope and rename to omfib_buffer for clarity.
10818 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
10819
10820 2007-09-14 Kenichi Handa <handa@m17n.org>
10821
10822 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
10823
10824 2007-09-13 Jason Rumney <jasonr@gnu.org>
10825
10826 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
10827
10828 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
10829
10830 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
10831 (mac_term_init): Call here instead, passing rif.
10832
10833 2007-09-13 Glenn Morris <rgm@gnu.org>
10834
10835 * s/hpux.h: No longer define `static' as nothing.
10836
10837 2007-09-13 Johan Bockgård <bojohan@gnu.org>
10838
10839 * callint.c (Fcall_interactively): Remove unused var `fun'.
10840
10841 2007-09-12 Romain Francoise <romain@orebokech.com>
10842
10843 * window.c (prefer_window_split_horizontally, display_buffer):
10844 Revert 2007-09-08 change.
10845
10846 2007-09-12 Glenn Morris <rgm@gnu.org>
10847
10848 * alloca.c: Remove file.
10849 * Makefile.in (alloca): Do not undef.
10850 (allocaobj, alloca.o): Remove.
10851 (otherobj): Remove allocaobj.
10852 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
10853 * regex.c (C_ALLOCA): Remove all references and code that was only
10854 used when this was defined.
10855 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
10856 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
10857 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
10858
10859 * Makefile.in (SOURCES, unlock, relock): Delete.
10860
10861 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
10862 (menu_grab_callback): All uses changed.
10863
10864 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
10865 (x_reply_selection_request): All uses changed.
10866
10867 2007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
10868
10869 * lread.c (load_warn_old_style_backquotes): Change message to look
10870 better when it appears in the middle of byte-compiler messages.
10871
10872 2007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
10873
10874 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
10875
10876 * xterm.c (x_create_terminal): Add comment.
10877
10878 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
10879
10880 2007-09-10 Richard Stallman <rms@gnu.org>
10881
10882 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
10883
10884 2007-09-10 Michaël Cadilhac <michael@cadilhac.name>
10885
10886 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
10887 (DEFUN): Document `intspec', use it instead of `prompt'.
10888
10889 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
10890
10891 * data.c (Finteractive_form): If the interactive specification starts
10892 with a `(', use it as a Lisp form.
10893
10894 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
10895 name and file modes.
10896
10897 * callint.c (Fcall_interactively): Comment fixes.
10898
10899 2007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
10900
10901 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
10902 and compiled functions.
10903
10904 2007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
10905
10906 * window.c (prefer_window_split_horizontally): New variable.
10907 (display_buffer): Consider splitting window horizontally depending
10908 on prefer_window_split_horizontally.
10909
10910 2007-09-08 Eli Zaretskii <eliz@gnu.org>
10911
10912 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
10913
10914 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
10915
10916 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
10917
10918 * frame.c (x_set_frame_parameters): Check number is positive before
10919 using XFASTINT.
10920
10921 * window.c (freeze_window_start): Don't presume selected_window holds
10922 a window object.
10923 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
10924
10925 2007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
10926
10927 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
10928
10929 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
10930
10931 * window.c (Vsplit_window_preferred_function): New var.
10932 (Fdisplay_buffer): Use it.
10933 (syms_of_window): Export, and initialize it.
10934
10935 2007-09-06 Pixel <pixel@mandriva.com> (tiny change)
10936
10937 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
10938
10939 2007-09-06 Glenn Morris <rgm@gnu.org>
10940
10941 * gtkutil.c (menu_grab_callback) <cnt>:
10942 * xselect.c (x_reply_selection_request) <cnt>: Move static
10943 variable to file scope.
10944
10945 2007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
10946
10947 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
10948 consistent values of selected_frame and selected_window.
10949
10950 2007-09-04 Jason Rumney <jasonr@gnu.org>
10951
10952 * w32console.c (initialize_w32_display): Zero unused hooks.
10953
10954 2007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
10955
10956 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
10957 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
10958
10959 2007-09-04 Jason Rumney <jasonr@gnu.org>
10960
10961 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
10962 in w32console.c. Set up input. Remove XXX comments that have been
10963 confirmed as correct.
10964
10965 * s/ms-w32.h (MULTI_KBOARD): Define.
10966
10967 * w32console.c (one_and_only_w32cons): Remove.
10968 (initialize_w32_display): Take terminal argument.
10969
10970 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
10971 initialize_w32_display.
10972 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
10973
10974 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
10975
10976 * keyboard.c (discard_mouse_events): Discard it.
10977 (make_lispy_event): Translate it to a lisp event.
10978 (lispy_wheel_names): Add wheel-left and right events.
10979 (syms_of_keyboard): Enlarge wheel_syms.
10980
10981 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
10982 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
10983
10984 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
10985
10986 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
10987 from WM_MOUSEHWHEEL.
10988 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
10989
10990 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
10991 terminal.
10992
10993 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
10994 keyboard for the terminal.
10995
10996 2007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
10997
10998 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
10999 (Vresume_tty_hook): Rename from Vresume_tty_functions.
11000 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
11001 and resume-tty-function to resume-tty-hook.
11002 (Fsuspend_tty, Fresume_tty): Use new names.
11003
11004 2007-09-02 Jan Djärv <jan.h.d@swipnet.se>
11005
11006 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
11007 if it starts with "n:".
11008
11009 2007-08-31 Jan Djärv <jan.h.d@swipnet.se>
11010
11011 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
11012
11013 2007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
11014
11015 * frame.h:
11016 * frame.c (Qterm_environment_variable): Remove.
11017 (syms_of_frame): Don't init and staticpro it.
11018
11019 * callproc.c (getenv_internal): Remove special case for $TERM.
11020
11021 * callproc.c (Vinitial_environment): New variable.
11022 (set_initial_environment): Initialize it.
11023 (syms_of_callproc): Declare it.
11024 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
11025 TERM under which a process runs is never related to the TERM in which
11026 Emacs is running.
11027
11028 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
11029
11030 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
11031 * s/darwin.h: ... do it here.
11032
11033 2007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
11034
11035 * lisp.h (set_initial_environment): Rename from set_global_environment.
11036
11037 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
11038 removed by mistake on the multi-tty branch.
11039
11040 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
11041 (Fmodify_frame_parameters): Return a value.
11042
11043 * image.c (png_load): Comment-out var only used in commented-out code.
11044
11045 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
11046 before passing it to mark_object.
11047
11048 * xfaces.c (internal_resolve_face_name): Return a value.
11049 (internal_resolve_face_name, resolve_face_name_error): Comment out.
11050
11051 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
11052 (x_icon): Comment-out var only used in commented-out code.
11053
11054 2007-08-29 Romain Francoise <romain@orebokech.com>
11055
11056 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
11057 QUIT hasn't been provided.
11058
11059 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
11060
11061 * callproc.c (child_setup, getenv_internal): Use the
11062 display-environment-variable and term-environment-variable frame params.
11063 (set_initial_environment): Initialise Vprocess_environment.
11064
11065 * config.in: Disable multi-keyboard support on a mac.
11066
11067 * frame.c (Qterm_environment_variable)
11068 (Qdisplay_environment_variable): New variables.
11069 (syms_of_frame): Intern and staticpro them.
11070 (Fmake_terminal_frame): Disable output method test.
11071
11072 * frame.h: Declare them here.
11073
11074 * macfns.c (x_set_mouse_color): Get rif from the frame.
11075 (x_set_tool_bar_lines): Don't use updating_frame.
11076 (mac_window): Add 2 new parameters for consistency with other systems.
11077 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
11078 frame parameters following what is done in X11 and w32. Don't use
11079 FRAME_MAC_DISPLAY_INFO.
11080 (Fx_open_connection, start_hourglass): Remove window-system check.
11081 (x_create_tip_frame): Get the keyboard from the terminal.
11082
11083 * macmenu.c: Reorder includes.
11084 (Fx_popup_menu): Use terminal specific mouse_position_hook.
11085
11086 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
11087 terminal parameter.
11088 (x_clear_frame): Add a frame parameter.
11089 (note_mouse_movement): Get rif from the frame.
11090 (mac_term_init): Initialize the terminal.
11091 (mac_initialize): Make static and move terminal initialization ...
11092 (mac_create_terminal): ... to this new function.
11093
11094 * macterm.h (struct mac_display_info): Add terminal.
11095 (mac_initialize): Delete declaration.
11096
11097 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
11098
11099 * sysdep.c: Comment out text after #endif.
11100
11101 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
11102 is defined. Better initialize ttys in windows. Use terminal
11103 specific mouse_position_hook.
11104
11105 * termhooks.h (union display_info): Add mac_display_info.
11106
11107 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
11108 Set the default minibuffer frame, window_system and the rest of the
11109 frame parameters following what is done in X11.
11110
11111 * w32term.c (w32_initialize): Make static.
11112
11113 * xselect.c (x_handle_selection_clear): Only access
11114 terminal->kboard when MULTI_KBOARD is defined.
11115
11116 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
11117 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
11118
11119 2007-08-29 Jason Rumney <jasonr@gnu.org>
11120
11121 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
11122 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
11123
11124 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
11125 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
11126
11127 * keyboard.c (restore_kboard_configuration): Only define when
11128 MULTI_KBOARD defined.
11129
11130 * makefile.w32-in: Update dependancies from Makefile.in.
11131 (OBJ1): Add terminal.$(O)
11132
11133 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
11134 Don't define function body.
11135 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
11136
11137 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
11138
11139 * w32.c (request_sigio, unrequest_sigio): Remove.
11140
11141 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
11142 (w32con_clear_frame, w32con_clear_end_of_line)
11143 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
11144 (w32con_delete_glyphs, w32con_set_terminal_window)
11145 (scroll_line, w32_sys_ring_bell): Add frame arg.
11146 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
11147 Add terminal arg.
11148 (PICK_FRAME): Remove.
11149 (w32con_write_glyphs): Use frame specific terminal coding.
11150 (one_and_only_w32cons): New global variable.
11151 (initialize_w32_display): Use it for storing hooks.
11152 (create_w32cons_output): New function.
11153
11154 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
11155 arg a frame.
11156
11157 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
11158 Set window_system.
11159 (x_set_tool_bar_lines): Don't use updating_frame.
11160 (Fx_create_frame): Set terminal and ref count.
11161 (Fx_open_connection): Remove window-system check.
11162
11163 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
11164
11165 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
11166 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
11167 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
11168 Add frame arg.
11169 (x_delete_terminal, w32_create_terminal): New functions.
11170 (w32_term_init): Create a terminal.
11171 (w32_initialize): Move terminal specific initialization to
11172 w32_create_terminal.
11173
11174 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
11175 (w32_clear_rect, w32_clear_area): Use background from frame.
11176 (w32_display_info): Add terminal.
11177 (w32_sys_ring_bell, x_delete_display): Declare here.
11178
11179 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
11180
11181 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
11182
11183 2007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
11184
11185 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
11186 Fix get_named_tty calls for the controlling tty.
11187
11188 2007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
11189
11190 * term.c (dissociate_if_controlling_tty)[USG]: Fix parse error.
11191
11192 2007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
11193
11194 * term.c (tty_insert_glyphs): Add missing first parameter.
11195
11196 2007-08-29 Károly Lőrentey <karoly@lorentey.hu>
11197
11198 * buffer.c (Fbuffer_list, Fbury_buffer):
11199 Take frame->buried_buffer_list into account.
11200
11201 * cm.c (current_tty): New variable, for cmputc().
11202 (cmputc): Use it.
11203 (cmcheckmagic): Add tty parameter, look up terminal streams there.
11204 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
11205 (cmgoto): Add tty parameter. Pass it on to calccost().
11206 Use emacs_tputs() instead of tputs().
11207
11208 * cm.h (emacs_tputs): New macro to set current_tty, and then call
11209 tputs().
11210 (current_tty): New variable, for cmputc().
11211 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
11212
11213 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
11214 (internal_condition_case, internal_condition_case_1)
11215 (internal_condition_case_2): Don't abort when x_catching_errors.
11216
11217 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
11218 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
11219 prevent crashes caused by bogus longjmps in read_char.
11220
11221 * keymap.h (Fset_keymap_parent): Add EXFUN.
11222
11223 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
11224 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
11225 Remove redundant definition.
11226
11227 * macfns.c (x_set_mouse_color, x_make_gc):
11228 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
11229
11230 * w32term.c (x_free_frame_resources):
11231 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
11232 (w32_initialize): Use the accessor macros for terminal characteristics.
11233
11234 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
11235 Use the accessor macros for terminal characteristics.
11236 * msdos.c (internal_terminal_init): Use the accessor macros for
11237 terminal characteristics.
11238 (ScreenVisualBell, internal_terminal_init):
11239 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
11240
11241 * termopts.h (no_redraw_on_reenter): Declare.
11242
11243 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
11244 (mark_terminals, mark_ttys): Declare.
11245 (Fgarbage_collect): Call them.
11246 (mark_object): Mark buried_buffer_list.
11247
11248 * prefix-args.c: Include stdlib.h for exit.
11249
11250 * syssignal.h: Add comment.
11251
11252 * indent.c: Include stdio.h.
11253
11254 * window.h (Vinitial_window_system): Declare.
11255 (Vwindow_system): Delete declaration.
11256
11257 * fontset.c (Finternal_char_font): Use FRAME_RIF.
11258
11259 * image.c (lookup_image): Don't initialize `c' until the xasserts
11260 have been run.
11261
11262 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
11263 FRAME_FOREGROUND_PIXEL.
11264
11265 * print.c (print_preprocess): Don't lose print_depth levels while
11266 iterating.
11267
11268 * widget.c (update_from_various_frame_slots):
11269 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
11270
11271 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
11272 frames.
11273 (window_internal_height): Remove bogus make_number call.
11274 (init_window_once): Call make_terminal_frame with two zero parameters.
11275
11276 * fileio.c (Fread_file_name): Update comment.
11277
11278 * callint.c (Fcall_interactively):
11279 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
11280 Make sure it is correctly unwound.
11281
11282 * xsmfns.c (x_session_close): New function.
11283
11284 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
11285 Delete declarations.
11286
11287 * xterm.h: Remove declaration for x_fully_uncatch_errors.
11288 (x_output): Remove background_pixel and foreground_pixel fields.
11289 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
11290 (x_delete_device, x_session_close): Declare.
11291
11292 * lread.c: Include setjmp.h. Update declaration of `read_char'.
11293 (read_filtered_event): Call `read_char' with a local
11294 `wrong_kboard_jmpbuf'.
11295
11296 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
11297 Don't call single_kboard_state. Use FRAME_RIF.
11298
11299 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
11300 systems.
11301
11302 * lisp.h (set_process_environment): Rename to `set_global_environment'.
11303 (Fframe_with_environment, Fset_input_meta_mode)
11304 (Fset_quit_char): EXFUN.
11305 (x_create_device, tty_output, terminal, tty_display_info): Declare.
11306 (init_sys_modes, reset_sys_modes): Update prototypes.
11307 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
11308
11309 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
11310 Vlocal_key_translation_map, and Vkeyboard_translate_table.
11311 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
11312 Delete declarations.
11313 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
11314 (temporarily_switch_to_single_kboard, tty_read_avail_input):
11315 New declarations.
11316
11317 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
11318 already does that during init_display(). Call syms_of_keymap
11319 before syms_of_keyboard. Call `syms_of_terminal'.
11320 Call set_initial_environment, not set_process_environment.
11321 (shut_down_emacs): Call reset_all_sys_modes() instead of
11322 reset_sys_modes().
11323
11324 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
11325 (internal_resolve_face_name, resolve_face_name_error): New functions.
11326 (resolve_face_name): Protect against loops and errors thrown by Fget.
11327 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
11328 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
11329
11330 * scroll.c: Replace CURTTY() with local variables throughout the
11331 file (where applicable).
11332 (calculate_scrolling, calculate_direct_scrolling)
11333 (scrolling_1, scroll_cost): Use the accessor macros for terminal
11334 characteristics.
11335
11336 * keymap.c (Vfunction_key_map): Remove.
11337 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
11338 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
11339 (Vkey_translation_map): Remove.
11340 (syms_of_keymap): Remove DEFVAR for key-translation-map.
11341 (Fdescribe_buffer_bindings)
11342 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
11343 Update for terminal-local key-translation-map.
11344
11345 * Makefile.in (callproc.o): Update dependencies.
11346 (lisp, shortlisp): Add termdev.elc.
11347 (obj): Add terminal.o.
11348 (terminal.o): Add dependencies.
11349 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
11350 (data.o, fns.o): Add termhooks.h dependency.
11351 (SOME_MACHINE_LISP): Add dnd.elc.
11352 (minibuf.o): Fix typo.
11353 Update dependencies.
11354
11355 * data.c (do_symval_forwarding, store_symval_forwarding)
11356 (find_symbol_value): Use the selected frame's keyboard, not
11357 current_kboard.
11358
11359 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
11360 Vwindow_system.
11361
11362 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
11363 Fmenu_bar_open.
11364 (syms_of_xmenu): Update defsubr.
11365 (mouse_position_for_popup, Fx_popup_menu)
11366 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
11367 (set_frame_menubar, free_frame_menubar)
11368 (create_and_show_popup_menu, xmenu_show, )
11369 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
11370 an X frame.
11371
11372 * xselect.c (x_own_selection): Abort if not an X frame.
11373 (some_frame_on_display): Check if it is an X frame.
11374 (x_handle_selection_clear): Deal with MULTI_KBOARD.
11375
11376 * coding.c: Include frame.h and termhooks.h.
11377 (terminal_coding, keyboard_coding): Delete.
11378 (Fset_terminal_coding_system_internal)
11379 (Fset_keyboard_coding_system_internal)
11380 (Fkeyboard_coding_system)
11381 (Fterminal_coding_system): Add a terminal parameter.
11382 Get terminal_coding from the terminal.
11383 (init_coding_once): Don't call setup_coding_system here.
11384
11385 * dispextern.h (set_scroll_region, turn_off_insert)
11386 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
11387 (tty_clear_end_of_line, tty_setup_colors)
11388 (delete_tty, updating_frame)
11389 (produce_special_glyphs, produce_glyphs, write_glyphs)
11390 (insert_glyphs): Remove.
11391 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
11392 (tty_turn_off_highlight, get_tty_size): Add declaration.
11393 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
11394
11395 * frame.h (enum output_method): Add output_initial.
11396 (struct x_output): Delete.
11397 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
11398 Access foreground_pixel and background_pixel directly from the frame.
11399 (tty_display): Delete.
11400 (struct frame): Add buried_buffer_list, foreground_pixel,
11401 background_pixel and terminal. Delete kboard.
11402 (union output_data): Add tty.
11403 (FRAME_KBOARD): Get the kboard from the terminal.
11404 (FRAME_INITIAL_P): New macro.
11405 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
11406 (Qterm_environment_variable, Qdisplay_environment_variable)
11407 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
11408 New declarations.
11409
11410 * termchar.h (tty_output, tty_display_info): New structures.
11411 (tty_list): Declare.
11412 (FRAME_TTY, CURTTY): New macros.
11413 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
11414 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
11415 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
11416 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
11417
11418 * callproc.c: Include frame.h and termhooks.h, for terminal
11419 parameters.
11420 (add_env): New function.
11421 (child_setup): Use it.
11422 (child_setup, getenv_internal): Handle the new Vprocess_environment.
11423 (getenv_internal): Fix get_terminal_param call.
11424 (Fgetenv_internal, egetenv): Update doc.
11425 (syms_of_callproc): Initialize Vprocess_environment to nil.
11426 Register and initialize them. Remove obsolete defvars. Update doc
11427 strings.
11428 (child_setup): Handle Vlocal_environment_variables.
11429 (getenv_internal): Add terminal parameter.
11430 Handle Vlocal_environment_variables.
11431 (Fgetenv_internal): Add terminal parameter.
11432 (child_setup, getenv_internal, Fgetenv_internal): Store the local
11433 environment in a frame (not terminal) parameter. Update doc strings.
11434 (set_initial_environment): Rename from set_global_environment.
11435 Store Emacs environment in initial frame parameter.
11436
11437 * xdisp.c (redisplay_internal): Update references to
11438 `previous_terminal_frame'.
11439 (display_mode_line, Fformat_mode_line): Replace calls to
11440 `push_frame_kboard' with `push_kboard'.
11441 (get_glyph_string_clip_rects): Add extra parentheses and
11442 braces to prevent compiler warnings.
11443 (calc_pixel_width_or_height): Add xassert to check that the
11444 frame is alive. Don't call `lookup_image' on a termcap frame.
11445 (message2_nolog, message3_nolog, redisplay_internal)
11446 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
11447 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
11448 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
11449 (Fx_display_pixel_width, Fx_display_pixel_height)
11450 (Fx_display_planes, Fx_display_color_cells)
11451 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
11452 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
11453 (Fx_display_backing_store, Fx_display_visual_class)
11454 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
11455 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
11456
11457 * xfns.c (x_set_foreground_color x_set_background_color)
11458 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
11459 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
11460 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
11461 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
11462 terminal that is being deleted.
11463 (Fx_create_frame): Use `store_frame_param' to set `window-system'
11464 frame parameter, and make sure it overrides any user-supplied setting.
11465 (Fx_close_connection, Fx_synchronize): Unify argument names with
11466 the rest of the DEFUNs.
11467
11468 * dispnew.c (Fsend_string_to_terminal): Update call to
11469 `get_tty_terminal'.
11470 (Fredraw_frame, Fsend_string_to_terminal)
11471 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
11472 FRAME_TERMCAP_P and FRAME_TTY.
11473 (window_change_signal): Don't believe width/height values that are
11474 impossibly small.
11475 (Vinitial_window_system): Rename from Vwindow_system.
11476 (termscript, Wcm, rif): Delete.
11477
11478 * termhooks.h (struct terminal): New struct containing the
11479 previously global text display hooks and new members NAME,
11480 DELETED and PARAM_ALIST.
11481 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
11482 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
11483 (FRAME_RIF): New macros.
11484 (get_terminal_param, get_device): New declarations.
11485 (termscript): Delete declaration.
11486
11487 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
11488 (XTflash, x_free_frame_resources, x_scroll_bar_create)
11489 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
11490 FRAME_FOREGROUND_PIXEL.
11491 (x_fully_uncatch_errors): Disable definition.
11492 (x_scroll_bar_expose): Fix reference to foreground pixel.
11493 (XTread_socket): Disable loop on all X displays.
11494 (x_delete_terminal): Don't set terminal->deleted and let
11495 delete_terminal delete the frames on the terminal.
11496 (x_delete_display): Doc update to reflect changes in
11497 delete_terminal.
11498 (x_display_info) <terminal>: Move member earlier in the struct.
11499 (deleting_tty): Remove old variable.
11500 (Fsuspend_tty): Call clear_tty_hooks.
11501 (Fresume_tty, init_tty): Call set_tty_hooks.
11502 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
11503 errors on X frames.
11504 (x_catch_errors_unwind): Abort if x_error_message is NULL.
11505 (handle_one_xevent): Initialize `f' to NULL.
11506 (x_delete_terminal, x_create_terminal): New functions.
11507 (XTset_terminal_modes, XTreset_terminal_modes)
11508 (XTread_socket, x_connection_closed, x_term_init)
11509 (x_term_init, x_delete_display): Add terminal parameter.
11510 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
11511 X connections.
11512
11513 * frame.c: Include termchar.h.
11514 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
11515 (Qwindow_system, Qenvironment, Qterm_environment_variable)
11516 (Qdisplay_environment_variable): New vars.
11517 (Fframep): Deal with output_initial.
11518 (Fframe-live-p): Doc fix.
11519 (Fwindow-system): New function.
11520 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
11521 (make_terminal_frame): Don't create frames on a terminal that is
11522 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
11523 (store_frame_param): Check for found_for_frame before calling XFRAME.
11524 (Fmake_terminal_frame): Handle NULL tty names correctly.
11525 (syms_of_frame): Enhance doc string of `default-frame-alist'.
11526 (Fdelete_frame): Remove unused variable `count'. Don't allow other
11527 frames to refer to a deleted frame in their 'environment parameter.
11528 (Fframe_with_environment): New function.
11529 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
11530 (get_future_frame_param): New function.
11531 (Fmake_terminal_frame): Use it.
11532 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
11533
11534 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
11535 * sysdep.c (reset_sys_modes): Update for renames.
11536
11537 * keyboard.c (tty_read_avail_input): New function.
11538 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
11539 (syms_of_keyboard): Defsubr them.
11540 (Fset_input_meta_mode, Fset_quit_char): New functions.
11541 (Fset_input_mode): Split to above functions.
11542 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
11543 parameter. Use it in call to `read_char'.
11544 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
11545 Set wrong_kboard_jmpbuf correctly in recursive calls.
11546 Use current_kboard to access Vkeyboard_translate_table.
11547 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
11548 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
11549 Update longjmp invocations. Remember the original current_kboard,
11550 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
11551 changes it. Comment out unnecessary calls to
11552 `record_single_kboard_state' and `any_kboard_state'.
11553 Update recursive calls.
11554 (wrong_kboard_jmpbuf): Remove global variable.
11555 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
11556 Handle deleted interrupted_kboards correctly; that is a legal
11557 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
11558 and read_char calls. Abort if interrupted_kboard died in read_char.
11559 (any_kboard_state, single_kboard_state)
11560 (push_frame_kboard): Remove function.
11561 (pop_kboard): Switch out of single_kboard mode if the kboard has
11562 been deleted. Remove unused variable. Help debugging by not
11563 changing current_kboard unnecessarily. Set current_kboard to the
11564 kboard of the selected frame when the stored kboard object has
11565 been deleted before pop_kboard.
11566 (temporarily_switch_to_single_kboard): Change first parameter to a
11567 frame pointer. Throw an error when caller wants to change kboards
11568 while in single_kboard mode. Don't push_kboard if we weren't in
11569 single kboard state. Don't pop_kboard if we popped into any
11570 kboard state.
11571 (restore_kboard_configuration): Abort if pop_kboard changed the
11572 kboard in single_kboard mode. Call pop_kboard only after setting
11573 up single_kboard mode.
11574 (Frecursive_edit): Switch to single_kboard mode only in nested
11575 command loops.
11576 (cmd_error, command_loop, command_loop_1, timer_check):
11577 Comment out unnecessary call to `any_kboard_state' and
11578 `record_single_kboard_state'.
11579 (delete_kboard): Exit single_kboard mode if we have just deleted
11580 that kboard. Use FRAME_KBOARD.
11581 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
11582 `fatal_error_signal'.
11583 (record_single_kboard_state): Don't push_kboard if we weren't in
11584 single kboard state. Don't pop_kboard if we popped into any
11585 kboard state.
11586 (push_frame_kboard): Rename to push_kboard.
11587 (kbd_buffer_get_event): Use FRAME_TERMINAL.
11588 (read_avail_input): Read input from all terminals.
11589 (mark_kboards): Also mark Vkeyboard_translate_table.
11590 (kbd_buffer_store_event_hold): Simplify condition.
11591 (read_key_sequence): Reinitialize fkey and keytran at each replay.
11592 (Vkeyboard_translate_table): Move to struct kboard.
11593 (init_kboard): Initialize Vkeyboard_translate_table.
11594 (syms_of_keyboard): Use DEFVAR_KBOARD to define
11595 Vkeyboard_translate_table. Update doc strings. Update docs of
11596 local-function-key-map and function-key-map.
11597
11598 * terminal.c: New file.
11599
11600 * term.c: Include errno.h.
11601 (Vring_bell_function, device_list, initial_device)
11602 (next_device_id, ring_bell, update_begin, update_end)
11603 (set_terminal_window, cursor_to, raw_cursor_to)
11604 (clear_to_end, clear_frame, clear_end_of_line)
11605 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
11606 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
11607 (syms_of_term): Move their initialization to terminal.c.
11608 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
11609 (Ftty_display_color_cells)
11610 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
11611 (clear_tty_hooks, set_tty_hooks)
11612 (init_tty, maybe_fatal): New functions.
11613 (Ftty_type): Return nil if terminal is not on a tty instead of
11614 throwing an error. Doc update.
11615 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
11616 Doc update. Initialize new subrs and variables.
11617 (delete_tty): Use terminal->deleted.
11618 (tty_set_terminal_modes): Rename from set_terminal_modes.
11619 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
11620 (set_scroll_region): Rename to `tty_set_scroll_region'.
11621 (turn_on_insert): Rename to `tty_turn_on_insert'.
11622 (turn_off_insert): Rename to `tty_turn_off_insert'.
11623 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
11624 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
11625 (toggle_highligh): Rename to `tty_toggle_highlight'.
11626 (background_highlight): Rename to `tty_background_highlight'.
11627 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
11628 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
11629 (tty_set_scroll_region, tty_background_highlight)
11630 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
11631 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
11632 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
11633 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
11634 Add static modifier.
11635 (tty_reset_terminal_modes, tty_set_terminal_window)
11636 (tty_set_scroll_region, tty_background_highlight)
11637 (tty_highlight_if_desired, tty_cursor_to)
11638 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
11639 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
11640 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
11641 renames.
11642
11643 2007-08-28 Jan Djärv <jan.h.d@swipnet.se>
11644
11645 * keyboard.c: Qrtl is new.
11646 (parse_tool_bar_item): Handle :rtl keyword.
11647 (syms_of_keyboard): Intern :rtl keyword.
11648
11649 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
11650
11651 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
11652 so no Lisp code is executed.
11653 (file_for_image, find_rtl_image): New functions.
11654 (xg_get_image_for_pixmap): Use file_for_image.
11655 (update_frame_tool_bar): If direction is RTL, use RTL image if
11656 defined. Use Gtk stock images if defined.
11657
11658 2007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11659
11660 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
11661 for nonexistent or zero-width glyph in composition glyph.
11662
11663 2007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
11664
11665 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
11666
11667 * xdisp.c (Finvisible_p): New function.
11668 (syms_of_xdisp): defsubr it.
11669
11670 2007-08-24 Juanma Barranquero <lekktu@gmail.com>
11671
11672 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
11673 Doc fixes.
11674
11675 2007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11676
11677 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
11678
11679 2007-08-24 Martin Rudalics <rudalics@gmx.at>
11680
11681 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
11682 whether decoding has modified buffer contents.
11683
11684 2007-08-24 Jason Rumney <jasonr@gnu.org>
11685
11686 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
11687 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
11688 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
11689 (init_svg_functions) [HAVE_NTGUI]: New function.
11690 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
11691 (svg_load_image): Use them.
11692 (svg_load_image) [HAVE_NTGUI]: Implement background.
11693
11694 2007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11695
11696 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
11697 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
11698 (LIBX): Remove @RSVG_LIBS@.
11699 (LIBES): Add $(RSVG_LIBS).
11700
11701 * image.c (svg_load_image): Blend with specified background if exists.
11702 Use IMAGE_BACKGROUND. Add Mac OS Support.
11703
11704 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
11705 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
11706 Remove macros.
11707 [MAC_OSX] (socket_callback): Do nothing.
11708 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
11709 ReceiveNextEvent.
11710 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
11711 socket_callback.
11712 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
11713
11714 2007-08-22 Glenn Morris <rgm@gnu.org>
11715
11716 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
11717
11718 2007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
11719
11720 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
11721
11722 * image.c: Add support for SVG images. Some additional comments
11723 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
11724 (svg_image_p): New function to test for SVG image.
11725 (svg_load): New function to load SVG image.
11726 (svg_load_image): New function, helper for svg_load.
11727 (Qsvg): New Lisp_object.
11728 (svg_keyword_index): New enum.
11729 (svg_format): New static `image_keyword' struct.
11730 (svg_type): New static `image_type' struct.
11731 (librsvg/rsvg.h): Include it.
11732
11733 2007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
11734
11735 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
11736
11737 2007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
11738
11739 * lread.c (Qold_style_backquotes): New var.
11740 (syms_of_lread): Init and staticpro it.
11741 (load_warn_old_style_backquotes): New fun.
11742 (Fload): Use them to warn about old style backquotes.
11743 (end_of_file_error, Fload): Remove unused vars.
11744
11745 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
11746
11747 * lread.c (Vold_style_backquotes): New var.
11748 (syms_of_lread): Init and export it to Elisp.
11749 (read1): Set it when we find an old-style (back)quote.
11750
11751 2007-08-22 Jason Rumney <jasonr@gnu.org>
11752
11753 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
11754
11755 2007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
11756
11757 * puresize.h (BASE_PURESIZE): Increase to 1140000.
11758
11759 2007-08-19 Richard Stallman <rms@gnu.org>
11760
11761 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
11762
11763 2007-08-19 Andreas Schwab <schwab@suse.de>
11764
11765 * alloc.c (pure): Round PURESIZE up.
11766
11767 2007-08-17 Jan Djärv <jan.h.d@swipnet.se>
11768
11769 * xterm.c (handle_one_xevent): Remove check that mouse click is in
11770 active frame.
11771
11772 2007-08-16 Richard Stallman <rms@gnu.org>
11773
11774 * eval.c (Fcommandp): Add parens to clarify.
11775
11776 * minibuf.c (Fall_completions): Use enum for type of table.
11777
11778 * emacs.c (USAGE2): Improve text.
11779
11780 2007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
11781
11782 * term.c (tty_default_color_capabilities): Declare static
11783 variables in file scope, to avoid HPUX compiler problem.
11784
11785 2007-08-13 Jan Djärv <jan.h.d@swipnet.se>
11786
11787 * gtkutil.c (update_frame_tool_bar): Use -1 as index
11788 to gtk_toolbar_insert.
11789
11790 2007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
11791
11792 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
11793
11794 * insdel.c (reset_var_on_error): New fun.
11795 (signal_before_change, signal_after_change):
11796 Use it to reset (after|before)-change-functions to nil in case of error.
11797 Bind inhibit-modification-hooks to t.
11798 Don't bind (after|before)-change-functions to nil while they run.
11799
11800 2007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11801
11802 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
11803 filling pixmap with stippled background.
11804
11805 2007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11806
11807 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
11808 Don't use invisible frame as parent window for repositioning.
11809
11810 2007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
11811
11812 * print.c (new_backquote_output): Rename from old_backquote_output.
11813 (print): Inverse its logic (according to its name) so as to match the
11814 behavior of new_backquote_flag in lread.c.
11815
11816 2007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11817
11818 * gmalloc.c (posix_memalign): New function.
11819
11820 * macterm.c (frame_highlight, frame_unhighlight): Don't call
11821 ActivateControl/DeactivateControl here.
11822 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
11823 frame-notice-user-settings is non-nil.
11824 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
11825 for kEventParamFMFontStyle.
11826 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
11827 mac_pass_command_to_system and mac_pass_control_to_system here.
11828 (XTread_socket): Call ActivateControl/DeactivateControl here.
11829 (XTread_socket) [TARGET_API_MAC_CARBON]:
11830 Check mac_pass_command_to_system and mac_pass_control_to_system here.
11831 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
11832 for window repositioning.
11833
11834 2007-08-08 Glenn Morris <rgm@gnu.org>
11835
11836 * Replace `iff' in doc-strings and comments.
11837
11838 2007-08-07 Chong Yidong <cyd@stupidchicken.com>
11839
11840 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
11841
11842 2007-08-07 Martin Rudalics <rudalics@gmx.at>
11843
11844 * fileio.c (Finsert_file_contents): Run format-decode and
11845 after_insert_file_functions on entire buffer when REPLACE is
11846 non-nil and inhibit modification_hooks and point_motion_hooks.
11847 For consistency, run after_insert_file_functions iff something
11848 got inserted. Move signal_after_change and update_compositions
11849 after code running after_insert_file_functions. Make sure that
11850 undo_list doesn't record intermediate steps of the decoding process.
11851
11852 2007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11853
11854 * emacs.c (main)
11855 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
11856 Call malloc_enable_thread on interactive startup.
11857
11858 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
11859 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
11860 [USE_PTHREAD]: Conditionalize with it.
11861 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
11862 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
11863 New functions.
11864
11865 2007-08-06 Chong Yidong <cyd@stupidchicken.com>
11866
11867 * xdisp.c (redisplay_window): When restoring original buffer
11868 position, make sure it is still valid.
11869
11870 * image.c (png_load): Ignore png-supplied background color.
11871
11872 2007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11873
11874 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
11875 Use kCFAbsoluteTimeIntervalSince1970.
11876
11877 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
11878 New variable.
11879 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
11880 event loop should be quit.
11881 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
11882 Quit dialog event loop if quit_dialog_event_loop is set.
11883
11884 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
11885 (Selection): New typedef. Use instead of ScrapRef.
11886 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
11887 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
11888 (mac_clear_selection): Rename from clear_scrap.
11889 (get_flavor_type_from_symbol): New argument SEL and subsume function of
11890 scrap_has_target_type. All uses changed.
11891 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
11892 (mac_selection_has_target_p): New functions.
11893 (mac_put_selection_value): Rename from put_scrap_string.
11894 (mac_get_selection_value): Rename from get_scrap_string.
11895 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
11896 (put_scrap_private_timestamp, scrap_has_target_type)
11897 (get_scrap_private_timestamp): Remove functions.
11898 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
11899 (x_own_selection, x_get_local_selection):
11900 Use mac_valid_selection_value_p.
11901 (x_own_selection): Don't use put_scrap_private_timestamp.
11902 Record OWNERSHIP-INFO into Vselection_alist instead.
11903 (x_get_local_selection): Don't check type if request is local.
11904 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
11905 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
11906
11907 2007-08-04 Jan Djärv <jan.h.d@swipnet.se>
11908
11909 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
11910 add comment explaining why.
11911
11912 2007-08-03 Richard Stallman <rms@gnu.org>
11913
11914 * fileio.c (Fvisited_file_modtime): Use make_time.
11915
11916 2007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
11917
11918 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
11919 build.
11920
11921 2007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
11922
11923 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
11924
11925 2007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
11926
11927 * puresize.h (BASE_PURESIZE): Increase to 1130000.
11928
11929 2007-07-30 Richard Stallman <rms@gnu.org>
11930
11931 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
11932
11933 2007-07-29 Jan Djärv <jan.h.d@swipnet.se>
11934
11935 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
11936
11937 2007-07-28 Nick Roberts <nickrob@snap.net.nz>
11938
11939 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
11940 remote default-directory.
11941
11942 * buffer.c (mode-line-format): Update doc string.
11943
11944 2007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11945
11946 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
11947 scroll bar gap.
11948 (x_scroll_bar_create): Set bar->fringe_extended_p.
11949 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
11950 on frame edge. Check fringe background extension. Don't clear
11951 extended fringe background area.
11952
11953 * w32term.h (struct scroll_bar): New member fringe_extended_p.
11954 (w32_fill_area): Enclose multiple statements with do ... while (0).
11955
11956 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
11957 Extend fringe background to scroll bar gap.
11958 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
11959 Set bar->fringe_extended_p.
11960 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
11961 Put leftmost/rightmost scroll bars on frame edge. Check fringe
11962 background extension. Don't clear extended fringe background area.
11963
11964 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
11965 New member fringe_extended_p.
11966
11967 2007-07-25 Glenn Morris <rgm@gnu.org>
11968
11969 * Relicense all FSF files to GPLv3 or later.
11970
11971 * COPYING: Switch to GPLv3.
11972
11973 2007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
11974
11975 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
11976
11977 * data.c (Finteractive_form): Check for the presence of an
11978 `interactive-form' symbol property more thoroughly.
11979
11980 * data.c (Finteractive_form): Use an `interactive-form' property if
11981 present, analogous to the function-documentation property.
11982
11983 2007-07-24 Jason Rumney <jasonr@gnu.org>
11984
11985 * w32fns.c (x_real_positions): Get real position from OS instead of
11986 calculating it.
11987
11988 2007-07-23 Jason Rumney <jasonr@gnu.org>
11989
11990 * filelock.c (current_lock_owner): Allow for @ sign in username.
11991
11992 2007-07-22 Nick Roberts <nickrob@snap.net.nz>
11993
11994 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
11995 remote default-directory.
11996
11997 * buffer.c (mode-line-format): Describe above case in doc string.
11998
11999 2007-07-20 Eli Zaretskii <eliz@gnu.org>
12000
12001 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
12002 Define if not defined.
12003
12004 2007-07-18 Jason Rumney <jasonr@gnu.org>
12005
12006 * w32proc.c (w32_executable_type): Handle 64 bit executables.
12007
12008 2007-07-18 Richard Stallman <rms@gnu.org>
12009
12010 * data.c (Fsetq_default): Doc fix.
12011
12012 * eval.c (Fsetq): Doc fix.
12013
12014 2007-07-18 Juanma Barranquero <lekktu@gmail.com>
12015
12016 * coding.c (Ffind_operation_coding_system):
12017 * eval.c (For, Fand): Doc fixes.
12018 Reported by Johan Bockgård.
12019
12020 2007-07-18 Jan Djärv <jan.h.d@swipnet.se>
12021
12022 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
12023
12024 * xterm.h: Declare x_ewmh_activate_frame.
12025
12026 * xterm.c (x_ewmh_activate_frame): New function.
12027 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
12028
12029 2007-07-17 Martin Rudalics <rudalics@gmx.at>
12030
12031 * window.c (Fdisplay_buffer): If largest or LRU window is the
12032 only window, split it even if it is not eligible for splitting.
12033 This restores the original behavior broken by the 2007-07-15
12034 change.
12035
12036 2007-07-17 Glenn Morris <rgm@gnu.org>
12037
12038 * abbrev.c (abbrev_check_chars): New function.
12039 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
12040 Call abbrev_check_chars to check abbrev characters are word
12041 constituents. Doc fix.
12042
12043 2007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
12044
12045 * process.c (Fstart_process, Fmake_network_process)
12046 (read_process_output): Fix up last changes.
12047
12048 2007-07-16 Eli Zaretskii <eliz@gnu.org>
12049
12050 * makefile.w32-in (clean): Don't delete *~.
12051
12052 2007-07-16 Andreas Schwab <schwab@suse.de>
12053
12054 * window.c (Fdisplay_buffer): Use NILP.
12055 (Fset_window_scroll_bars): Likewise.
12056
12057 2007-07-15 Martin Rudalics <rudalics@gmx.at>
12058
12059 * window.c (window_min_size_2): New function.
12060 (window_min_size_1, size_window, Fdisplay_buffer)
12061 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
12062 windows without mode- or header-lines when window-min-height is
12063 too small.
12064 (size_window): Reset nodelete_p after testing it, following an
12065 earlier note by Kim F. Storm.
12066 (display_buffer): Do not set split_height_threshold to twice the
12067 value of window_min_height to avoid changing the value of a
12068 customizable variable. Rather explicitly check whether the
12069 height of the window that shall be splitted is at least as large
12070 as split_height_threshold.
12071 (Fwindow_full_width_p): New defun.
12072 (syms_of_window): Defsubr it.
12073
12074 * window.h: Add EXFUN for Fwindow_full_width_p.
12075
12076 2007-07-14 Jason Rumney <jasonr@gnu.org>
12077
12078 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
12079
12080 2007-07-14 Richard Stallman <rms@gnu.org>
12081
12082 * eval.c (maybe_call_debugger): New function.
12083 (find_handler_clause): Use maybe_call_debugger.
12084 Call it when the handler says `debug'.
12085 Eliminate DEBUGGER_VALUE_PTR.
12086 (Fsignal): Eliminate debugger_value.
12087 (Qdebug): New variable.
12088 (syms_of_eval): Initialize it.
12089
12090 2007-07-14 Juanma Barranquero <lekktu@gmail.com>
12091
12092 * eval.c (Fprogn):
12093 * keyboard.c (Ftrack_mouse):
12094 * print.c (Fwith_output_to_temp_buffer):
12095 * window.c (Fsave_window_excursion): Doc fix.
12096
12097 2007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
12098
12099 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
12100
12101 2007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
12102
12103 * process.h (struct Lisp_Process): Turn slots infd, outfd,
12104 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
12105 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
12106 read_output_delay, and read_output_skip from Lisp_Objects to ints.
12107 Remove unused encoding_carryover.
12108 * process.c: Adjust all functions accordingly.
12109
12110 2007-07-12 Richard Stallman <rms@gnu.org>
12111
12112 * term.c: Include unistd.h only if HAVE_UNISTD_H.
12113
12114 2007-07-11 Jason Rumney <jasonr@gnu.org>
12115
12116 * makefile.w32-in (LIBS): Include OLE32.
12117
12118 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
12119 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
12120
12121 2007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
12122
12123 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
12124 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
12125 from a Lisp_Object into a bare pointer.
12126 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
12127 Adjust the code correspondingly.
12128
12129 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
12130
12131 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
12132 (term_show_mouse_face): Remove unused var `j'.
12133 (handle_one_term_event): Remove unused vars `i' and `j'.
12134 Don't cast return value of ttyname since it's not necessary.
12135
12136 2007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
12137
12138 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
12139 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
12140
12141 * fns.c (map_char_table): Use an array of int for `indices' rather than
12142 an array of Lisp_Objects (which are only ever integers anyway).
12143 (Fmap_char_table): Update caller.
12144 * lisp.h: Update prototype.
12145 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
12146 * fontset.c (Ffontset_info):
12147 * casetab.c (set_case_table): Update callers.
12148
12149 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
12150
12151 * keymap.c (struct accessible_keymaps_data)
12152 (struct where_is_internal_data): New structures.
12153 (accessible_keymaps_1, where_is_internal_1): Use them to change
12154 interface to adhere to the one used by map_keymap.
12155 (Faccessible_keymaps, where_is_internal): Use map_keymap.
12156 (accessible_keymaps_char_table, where_is_internal_2): Remove.
12157
12158 * keymap.h (map_keymap_function_t): More informative prototype.
12159
12160 2007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
12161
12162 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
12163 (looking_at_1): Don't change search_regs and last_thing_searched
12164 if `inhibit-changing-match-data' is non-nil.
12165 (string_match_1, search_buffer, set_search_regs): Likewise.
12166 (syms_of_search): Add Lisp level definition for
12167 `inhibit-changing-match-data' and set it to nil.
12168 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
12169 start and end of the match, instead of using values in search_regs.
12170
12171 2007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
12172
12173 * minibuf.c (Fcompleting_read): New value `confirm-only'
12174 for `require-match'.
12175
12176 2007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
12177
12178 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
12179 part of the 2007-06-27 change to syms_of_fileio.
12180
12181 2007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12182
12183 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
12184 Check WINDOWP before using XWINDOW. Consolidate return statements.
12185
12186 2007-06-27 Richard Stallman <rms@gnu.org>
12187
12188 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
12189
12190 2007-06-27 Juanma Barranquero <lekktu@gmail.com>
12191
12192 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
12193
12194 2007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12195
12196 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
12197 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
12198 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
12199 (_free_internal, memalign): Use them.
12200 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
12201 Initialize to PTHREAD_MUTEX_INITIALIZER.
12202 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
12203 (morecore_nolock): Rename from morecore. All uses changed.
12204 Use only nolock versions of internal allocation functions.
12205 (_malloc_internal_nolock, _realloc_internal_nolock)
12206 (_free_internal_nolock): New functions created from
12207 _malloc_internal, _realloc_internal, and _free_internal.
12208 (_malloc_internal, _realloc_internal, _free_internal): Use them.
12209 Copy hook value to automatic variable before its use.
12210 (memalign): Copy hook value to automatic variable before its use.
12211
12212 2007-06-26 Kenichi Handa <handa@m17n.org>
12213
12214 * coding.c (Ffind_operation_coding_system): Docstring improved.
12215 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
12216
12217 2007-06-25 David Kastrup <dak@gnu.org>
12218
12219 * keymap.c (Fcurrent_active_maps): Add `position' argument.
12220 (Fwhere_is_internal): Adjust call to `current-active-maps' to
12221 cater for additional parameter.
12222
12223 * keymap.h: Adjust number of parameters to `current-active-maps'.
12224
12225 * doc.c (Fsubstitute_command_keys): Adjust call of
12226 `current-active-maps'.
12227
12228 2007-06-25 David Kastrup <dak@gnu.org>
12229
12230 * callint.c (Fcall_interactively): Make the parsing of interactive
12231 specs somewhat more readable.
12232
12233 2007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12234
12235 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
12236 to scroll bar gap also when bitmap fills fringe. Draw only foreground
12237 if extended background has already been filled.
12238
12239 2007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12240
12241 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
12242 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
12243
12244 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
12245 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
12246 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
12247 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
12248 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
12249 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
12250 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
12251 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
12252 Run timers during dialog popup.
12253 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
12254
12255 2007-06-21 Jason Rumney <jasonr@gnu.org>
12256
12257 * image.c (convert_mono_to_color_image): Swap fore and background.
12258
12259 2007-06-20 Jason Rumney <jasonr@gnu.org>
12260
12261 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
12262 (w32_free_bdf_font): Unmap memory not handle.
12263
12264 2007-06-20 Sam Steingold <sds@gnu.org>
12265
12266 * gmalloc.c (__morecore): Fix the declaration to comply with the
12267 definition.
12268
12269 2007-06-20 Juanma Barranquero <lekktu@gmail.com>
12270
12271 * w32term.c (w32_delete_display): Remove leftover declaration.
12272 (w32_define_cursor, w32_initialize): Make static.
12273
12274 * w32.c (_wsa_errlist): Fix typo in error message.
12275 (init_environment): Ignore any environment variable from the
12276 registry having a null value.
12277
12278 2007-06-20 Glenn Morris <rgm@gnu.org>
12279
12280 * Makefile.in (LIBGIF): Default to -lgif.
12281
12282 2007-06-17 Jason Rumney <jasonr@gnu.org>
12283
12284 * w32menu.c (add_menu_item): Don't use multibyte string functions on
12285 unicode strings.
12286
12287 2007-06-16 Juanma Barranquero <lekktu@gmail.com>
12288
12289 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
12290 Fix typo in docstring.
12291
12292 2007-06-16 Eli Zaretskii <eliz@gnu.org>
12293
12294 * w32menu.c (add_menu_item): Escape `&' characters in menu items
12295 and their keybindings.
12296
12297 2007-06-15 Chong Yidong <cyd@stupidchicken.com>
12298
12299 * composite.c (update_compositions): Fix last fix.
12300
12301 2007-06-14 Jason Rumney <jasonr@gnu.org>
12302
12303 * w32.c (get_process_times_fn): New function pointer.
12304 (globals_of_w32): Intialize it if present in kernel32.dll.
12305 (w32_get_internal_run_time): New function.
12306
12307 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
12308
12309 2007-06-14 Kenichi Handa <handa@etlken.m17n.org>
12310
12311 * composite.c (update_compositions): Check the validness of
12312 compositions.
12313
12314 2007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12315
12316 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
12317 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
12318
12319 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
12320 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
12321
12322 * macgui.h (USE_MAC_TOOLBAR): New define.
12323
12324 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
12325 Return immediately unless popup is activated.
12326
12327 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
12328 background to scroll bar gap.
12329 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
12330 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
12331 scroll bars on frame edge. Check fringe background extension.
12332 Don't clear extended fringe background area.
12333 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
12334 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
12335 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
12336 [USE_MAC_TOOLBAR]: New macros.
12337 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
12338 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
12339 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
12340 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
12341 [USE_MAC_TOOLBAR]: New functions.
12342 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
12343 manually if previous repositioning has failed.
12344 (mac_handle_keyboard_event): Use precomputed event kind.
12345 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
12346 as tool bar item click. Handle mouse movement over tool bar items.
12347
12348 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
12349 toolbar_win_gravity.
12350 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
12351 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
12352 Add externs.
12353
12354 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
12355 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
12356
12357 2007-06-14 Chong Yidong <cyd@stupidchicken.com>
12358
12359 * image.c (search_image_cache): Remove unused variable.
12360
12361 2007-06-13 Chong Yidong <cyd@stupidchicken.com>
12362
12363 * xfns.c, xmenu.c: Link to xaw3d if available.
12364
12365 2007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12366
12367 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
12368 frame_foreground and frame_background.
12369
12370 * image.c (lookup_image): Save frame foreground and background colors.
12371 (search_image_cache): Check if saved and current frame colors match.
12372
12373 2007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
12374
12375 * regex.c (regex_compile): Remove the `regnum' counter.
12376 Use bufp->re_nsub instead. Add support for \(?N:RE\).
12377
12378 2007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
12379
12380 * term.c: Include intervals.h to declare Fget_text_property.
12381
12382 2007-06-10 Jason Rumney <jasonr@gnu.org>
12383
12384 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
12385
12386 2007-06-08 Juanma Barranquero <lekktu@gmail.com>
12387
12388 * callint.c (Fcall_interactively):
12389 * editfns.c (Fdelete_and_extract_region):
12390 * fileio.c (Fread_file_name):
12391 * fns.c (Fmapconcat):
12392 * keyboard.c (cmd_error_internal):
12393 * keymap.c (Fkey_description):
12394 * lread.c (openp):
12395 * minibuf.c (read_minibuf):
12396 * search.c (wordify):
12397 * sunfns.c (sel_read):
12398 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
12399 * xfns.c (x_default_scroll_bar_color_parameter):
12400 * xmenu.c (menu_help_callback):
12401 * xselect.c (Fx_get_atom_name):
12402 * xterm.c (x_term_init): Use empty_unibyte_string.
12403
12404 2007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
12405
12406 * alloc.c (init_strings): Initialize canonical empty strings.
12407 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
12408 canonical empty string when the requested size is 0.
12409
12410 * emacs.c (empty_unibyte_string): Rename from empty_string.
12411 (empty_multibyte_string): New canonical empty string.
12412 (syms_of_emacs): Don't initialize empty_string.
12413
12414 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
12415 string, if appropriate.
12416 (empty_unibyte_string, empty_multibyte_string): New externs.
12417 (empty_string): Remove extern.
12418
12419 * lread.c (syms_of_lread): Use empty_unibyte_string.
12420
12421 2007-06-07 Jason Rumney <jasonr@gnu.org>
12422
12423 * s/ms-w32.h: Don't define HAVE_TZNAME.
12424
12425 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
12426
12427 2007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12428
12429 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
12430
12431 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
12432 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
12433
12434 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
12435 Don't call next handler.
12436 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
12437 Remove argument. Install handler to application.
12438 (set_frame_menubar): Don't change deep_p.
12439 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
12440 FRAME_OUTER_TO_INNER_DIFF_Y.
12441 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
12442 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
12443 [HAVE_DIALOGS]: New macros.
12444 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
12445 Use them.
12446 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
12447
12448 * macselect.c [MAC_OSX] (install_service_handler): Rename from
12449 init_service_handler. All callers changed. Return OSStatus value.
12450
12451 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
12452 All callers changed so as not to call SetPortWindowPort.
12453 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
12454 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
12455 mac_draw_string_common.
12456 (mac_draw_image_string_qd): Likewise.
12457 (mac_draw_string_common): Use them. Add INLINE.
12458 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
12459 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
12460 GetGlobalMouse.
12461 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
12462 and FRAME_OUTER_TO_INNER_DIFF_Y.
12463 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
12464 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
12465 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
12466 repositioning window to mac_handle_window_event.
12467 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
12468 saving window location to mac_handle_window_event
12469 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
12470 (install_menu_target_item_handler): Remove argument in extern.
12471 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
12472 Also accept command events.
12473 (do_keystroke): New function created from XTread_socket.
12474 (init_command_handler): Remove functions.
12475 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
12476 and save window location by kEventWindowShowing and kEventWindowHiding
12477 handlers here. Don't call next handler for window state change and
12478 focus events.
12479 (mac_handle_application_event, mac_handle_keyboard_event)
12480 [TARGET_API_MAC_CARBON]: New functions.
12481 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
12482 kEventWindowShowing and kEventWindowHiding events. Move installation
12483 of mouse, font, text input and menu target item handlers to
12484 install_application_handler.
12485 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
12486 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
12487 New function.
12488 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
12489 Register it.
12490 (XTread_socket) [TARGET_API_MAC_CARBON]:
12491 Consolidate SendEventToEventTarget calls.
12492 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
12493 Move application activation handler to mac_handle_application_event.
12494 Move keyboard handler to mac_handle_keyboard_event.
12495 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
12496 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
12497 init_command_handler. Call install_application_handler.
12498
12499 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
12500 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
12501
12502 2007-06-07 Glenn Morris <rgm@gnu.org>
12503
12504 * emacs.c (main): Use `emacs-copyright' in --version output.
12505
12506 2007-06-06 Chong Yidong <cyd@stupidchicken.com>
12507
12508 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
12509
12510 2007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12511
12512 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
12513
12514 * macgui.h: Replace WindowPtr with WindowRef.
12515
12516 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
12517 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
12518 Replace ControlHandle with ControlRef.
12519 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
12520
12521 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
12522 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
12523 Replace ControlHandle with ControlRef.
12524 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
12525 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
12526
12527 * macterm.h (struct scroll_bar): Rename member control_handle_low
12528 and control_handle_high to control_ref_low and control_ref_high.
12529 All uses changed.
12530 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
12531 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
12532 respectively. All uses changed.
12533 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
12534 (install_window_handler, remove_window_handler): Replace WindowPtr
12535 with WindowRef in externs.
12536
12537 2007-06-05 Juanma Barranquero <lekktu@gmail.com>
12538
12539 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
12540
12541 2007-06-03 Nick Roberts <nickrob@snap.net.nz>
12542
12543 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
12544
12545 * frame.c (Fmouse_position, Fmouse_pixel_position):
12546 Condition on HAVE_GPM too.
12547
12548 * term.c (term_mouse_highlight): Remove unused variables.
12549 (Fterm_open_connection): Set gpm_zerobased to 1.
12550 (term_mouse_movement, term_mouse_click, handle_one_term_event):
12551 Use zero based co-ordinates.
12552 (handle_one_term_event): Report a drag as mouse movement too.
12553
12554 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
12555
12556 2007-06-03 Chong Yidong <cyd@stupidchicken.com>
12557
12558 * image.c (search_image_cache): New function. Require background
12559 color match if background color is unspecified in the image spec.
12560 (uncache_image, lookup_image): Use it.
12561
12562 2007-06-01 Juanma Barranquero <lekktu@gmail.com>
12563
12564 * window.c (Fshrink_window): Reflow docstring.
12565
12566 2007-06-02 Chong Yidong <cyd@stupidchicken.com>
12567
12568 * Version 22.1 released.
12569
12570 2007-06-01 Richard Stallman <rms@gnu.org>
12571
12572 * xfns.c (x_encode_text): Add GCPRO.
12573
12574 2007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12575
12576 * xfns.c (x_set_name_internal): Save encoded name before
12577 x_encode_text in case string data is relocated.
12578
12579 2007-05-31 Richard Stallman <rms@gnu.org>
12580
12581 * buffer.c (syms_of_buffer): Doc fix.
12582
12583 2007-05-30 Nick Roberts <nickrob@snap.net.nz>
12584
12585 * sysdep.c (init_sys_modes): Add rather than replace with
12586 O_NONBLOCK.
12587
12588 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
12589 term_mouse_moveto.
12590
12591 * termhooks.h (term_mouse_moveto): New extern.
12592
12593 * term.c (mouse_face_window): Rename...
12594 (Qmouse_face_window): ...to this.
12595 (term_show_mouse_face, term_clear_mouse_face)
12596 (term_mouse_highlight): Use Qmouse_face_window.
12597 (term_mouse_moveto): New function.
12598 (term_mouse_position): Make it work.
12599 (syms_of_term): Uncomment assignment to mouse_position_hook.
12600 Staticpro Qmouse_face_window.
12601
12602 2007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12603
12604 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
12605 around current_column call.
12606
12607 2007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
12608
12609 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
12610 * xdisp.c (next_element_from_buffer):
12611 * window.c (delete_window):
12612 * term.c (term_mouse_highlight):
12613 * msdos.c (getdefdir):
12614 * macterm.c (mac_create_bitmap_from_bitmap_data)
12615 (init_font_name_table):
12616 * fns.c (Fsxhash):
12617 * data.c (Fmake_local_variable):
12618 * ccl.c (ccl_driver): Likewise.
12619
12620 2007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12621
12622 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
12623 Call mac_wakeup_from_rne on window size change.
12624
12625 2007-05-25 Chong Yidong <cyd@stupidchicken.com>
12626
12627 * image.c (uncache_image): Fix typo.
12628
12629 2007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
12630
12631 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
12632
12633 2007-05-22 Richard Stallman <rms@gnu.org>
12634
12635 * xterm.c (x_connection_closed): Remove NO_RETURN.
12636
12637 2007-05-22 Martin Rudalics <rudalics@gmx.at>
12638
12639 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
12640
12641 2007-05-21 Chong Yidong <cyd@stupidchicken.com>
12642
12643 * image.c (uncache_image): New function.
12644 (Fimage_refresh): New function.
12645
12646 2007-05-20 Jan Djärv <jan.h.d@swipnet.se>
12647
12648 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
12649
12650 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
12651
12652 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
12653 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
12654
12655 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
12656
12657 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
12658 conditional on [HAVE_GPM_H].
12659
12660 2007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
12661
12662 * syntax.c (skip_chars): Update syntax-table only after we checked that
12663 the new location is valid.
12664
12665 2007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12666
12667 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
12668 mac_get_window_bounds.
12669
12670 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
12671
12672 * Makefile.in (LIBGPM): Allow it to be set from configure.
12673 If set then link Emacs with it.
12674
12675 * config.in: Regenerate.
12676
12677 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
12678 New externs.
12679
12680 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
12681 Include gpm.h.
12682 (handle_one_term_event, term_gpm): New externs.
12683
12684 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
12685 and allow it to be interrupted by SIGIO.
12686
12687 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
12688 (wait_reading_process_output): Wait on gpm_fd too.
12689 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
12690 (add_gpm_wait_descriptor_called_flag): New variable.
12691 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
12692
12693 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
12694 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
12695 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
12696 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
12697 (make_lispy_event): Add case GPM_CLICK_EVENT.
12698 (read_avail_input): Handle mouse input.
12699
12700 * term.c (write_glyphs_with_face): New function.
12701 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
12702 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
12703 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
12704 (mouse_face_face_id, term_gpm, pos_x, pos_y)
12705 (last_mouse_x, last_mouse_y): New variables.
12706 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
12707 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
12708 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
12709 (Fterm_close_connection): New functions.
12710 (term_init): Initialise mouse_face_window.
12711
12712 2007-05-19 Chong Yidong <cyd@stupidchicken.com>
12713
12714 * xdisp.c (redisplay_window): If first window line is a
12715 continuation line, recompute the new window start instead of
12716 recentering.
12717
12718 2007-05-18 Glenn Morris <rgm@gnu.org>
12719
12720 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
12721 Suggested by Alfred M. Szmidt <ams@gnu.org>.
12722
12723 2007-05-17 Glenn Morris <rgm@gnu.org>
12724
12725 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
12726
12727 2007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12728
12729 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
12730 dead key repeat and up events.
12731
12732 2007-05-14 Chong Yidong <cyd@stupidchicken.com>
12733
12734 * image.c (pbm_load): Check image size for monochrome pbm.
12735
12736 2007-05-13 Chong Yidong <cyd@stupidchicken.com>
12737
12738 * xterm.c (XTread_socket): Revert last change.
12739
12740 2007-05-12 Chong Yidong <cyd@stupidchicken.com>
12741
12742 * image.c (pbm_load): Correctly check image size for greyscale pbm.
12743
12744 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
12745
12746 2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
12747
12748 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
12749 mixup (YAILOM).
12750
12751 2007-05-07 Andreas Schwab <schwab@suse.de>
12752
12753 * keymap.c (Flookup_key): Fix typo in last change.
12754
12755 2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
12756
12757 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
12758 mapping for unibyte strings.
12759
12760 2007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12761
12762 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
12763 (Fx_popup_dialog) [MAC_OSX]: Likewise.
12764
12765 2007-04-29 Richard Stallman <rms@gnu.org>
12766
12767 * insdel.c (replace_range): For undo, record insertion first.
12768
12769 2007-04-29 Andreas Schwab <schwab@suse.de>
12770
12771 * lisp.h (VECSIZE): Use OFFSETOF.
12772
12773 2007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12774
12775 * xdisp.c (try_window_reusing_current_matrix): Fix number of
12776 disabled lines.
12777
12778 2007-04-28 Richard Stallman <rms@gnu.org>
12779
12780 * lread.c (read_escape): In a string, \s is always space.
12781
12782 2007-04-27 Jan Djärv <jan.h.d@swipnet.se>
12783
12784 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
12785
12786 * gtkutil.c (xg_update_menubar, create_menus): Create empty
12787 submenu for menu bar items.
12788
12789 See ChangeLog.10 for earlier changes.
12790
12791 ;; Local Variables:
12792 ;; coding: utf-8
12793 ;; add-log-time-zone-rule: t
12794 ;; End:
12795
12796 Copyright (C) 2007, 2008 Free Software Foundation, Inc.
12797
12798 This file is part of GNU Emacs.
12799
12800 GNU Emacs is free software: you can redistribute it and/or modify
12801 it under the terms of the GNU General Public License as published by
12802 the Free Software Foundation, either version 3 of the License, or
12803 (at your option) any later version.
12804
12805 GNU Emacs is distributed in the hope that it will be useful,
12806 but WITHOUT ANY WARRANTY; without even the implied warranty of
12807 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12808 GNU General Public License for more details.
12809
12810 You should have received a copy of the GNU General Public License
12811 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
12812
12813 ;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40