HAVE_ALLOCA not needed since alloca.s was removed.
[bpt/emacs.git] / src / ChangeLog
1 2010-06-03 Glenn Morris <rgm@gnu.org>
2
3 * m/hp800.h (HAVE_ALLOCA):
4 * m/ibms390x.h (HAVE_ALLOCA): Do not define, no longer needed.
5
6 * m/ia64.h, s/gnu-linux.h, s/gnu.h, s/netbsd.h, s/usg5-4.h:
7 Remove NOT_C_CODE tests, it is always true now.
8
9 2010-06-02 Dan Nicolaescu <dann@ics.uci.edu>
10
11 Fix config.h includes.
12 * xsettings.c:
13 * xgselect.c:
14 * nsterm.m:
15 * nsselect.m:
16 * nsimage.m:
17 * nsfont.m:
18 * nsfns.m:
19 * dbusbind.c: Use #include <config.h> instead of "config.h" as all
20 other files do.
21
22 * gmalloc.c: Remove BROKEN_PROTOTYPES reference, unused.
23
24 * s/sol2-6.h: Remove obsolete comments.
25
26 Remove unnecessary alloca.h includes.
27 * keymap.c: Do not include alloca.h, config.h does that.
28 * sysdep.c: Likewise. Do not define fwrite, not used.
29
30 2010-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
31
32 * sysdep.c (child_setup_tty): Move the non-canonical initialization to
33 the HAVE_TERMIO where it belongs (bug#6149).
34
35 2010-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
36
37 * keymap.c (Fwhere_is_internal): Fix handling of remapping (in thread
38 of bug#6305).
39
40 2010-05-30 Eli Zaretskii <eliz@gnu.org>
41
42 * bidi.c (bidi_move_to_visually_next): Make sure the sentinel
43 state is always cached (bug#6306).
44
45 2010-05-29 Eli Zaretskii <eliz@gnu.org>
46
47 Fix cursor motion in bidi-reordered continued lines.
48 * xdisp.c (try_cursor_movement): Backup to non-continuation line
49 only after finding point's row. Fix the logic. Rewrite the loop
50 over continuation lines in bidi-reordered buffers. Return
51 CURSOR_MOVEMENT_MUST_SCROLL upon failure to find a suitable row,
52 rather than CURSOR_MOVEMENT_CANNOT_BE_USED.
53
54 2010-05-28 Michael Albinus <michael.albinus@gmx.de>
55
56 * fileio.c (Fdelete_file): Pass TRASH arg to handler call.
57
58 2010-05-28 Kenichi Handa <handa@m17n.org>
59
60 * font.c (font_delete_unmatched): Check Vface_ignored_fonts.
61 Don't sheck SPEC if it is nil.
62 (font_list_entities): Call font_delete_unmatched if
63 Vface_ignored_fonts is non-nil. (Bug#6287)
64
65 2010-05-28 Glenn Morris <rgm@gnu.org>
66
67 * Makefile.in (LIBES): Remove $LOADLIBES, it is never set.
68
69 2010-05-27 Chong Yidong <cyd@stupidchicken.com>
70
71 * fileio.c (Fdelete_file): Change meaning of optional arg to mean
72 whether to trash.
73 (internal_delete_file, Frename_file): Callers changed.
74 (delete_by_moving_to_trash): Doc fix.
75 (Fdelete_directory_internal): Don't move to trash.
76
77 * callproc.c (delete_temp_file):
78 * buffer.c (Fkill_buffer): Callers changed.
79
80 * lisp.h: Update prototype.
81
82 2010-05-27 Chong Yidong <cyd@stupidchicken.com>
83
84 * xdisp.c (redisplay_window): After redisplay, check if point is
85 still valid before setting it (Bug#6177).
86
87 2010-05-27 Glenn Morris <rgm@gnu.org>
88
89 * Makefile.in, autodeps.mk, deps.mk, ns.mk:
90 Convert comments to Makefile format.
91
92 * Makefile.in (bootstrap-clean): No more Makefile.c.
93
94 2010-05-26 Glenn Morris <rgm@gnu.org>
95
96 * Makefile.in (YMF_PASS_LDFLAGS): Remove.
97 (temacs${EXEEXT}): Use PRE_EDIT_LDFLAGS, POST_EDIT_LDFLAGS.
98
99 * Makefile.in (NS_IMPL_GNUSTEP_INC, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
100 Remove.
101 (TEMACS_LDFLAGS): Do not use NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
102
103 2010-05-26 Kenichi Handa <handa@m17n.org>
104
105 * composite.c (composition_compute_stop_pos): Fix condition for
106 backward scanning.
107
108 2010-05-25 Glenn Morris <rgm@gnu.org>
109
110 * Makefile.in (@NS_IMPL_GNUSTEP_INC@, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
111 Move before TEMACS_LDFLAGS.
112 (TEMACS_LDFLAGS): Use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
113 (temacs${EXEEXT}): Do not use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
114
115 * Makefile.in (NOT_C_CODE): No longer define.
116 (config.h): No longer include.
117
118 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): Move definition after some
119 variables it may reference.
120
121 * Makefile.in (LD_SWITCH_SYSTEM_EXTRA): Remove.
122 (TEMACS_LDFLAGS): Remove LD_SWITCH_SYSTEM_EXTRA.
123
124 2010-05-25 Kenichi Handa <handa@m17n.org>
125
126 * dispextern.h (struct composition_it): New members rule_idx and
127 charpos.
128
129 * xdisp.c (set_iterator_to_next): While scanning backward, assume
130 that the character positions of IT point the last character of the
131 current grapheme cluster.
132 (next_element_from_composition): Don't change character positions
133 of IT.
134 (append_composite_glyph): Set glyph->charpos to
135 it->cmp_it.charpos.
136
137 * composite.c (autocmp_chars): Change the first argument to RULE,
138 and try composition with RULE only.
139 (composition_compute_stop_pos): Record the index number of the
140 composition rule in CMP_IT->rule_idx.
141 (composition_reseat_it): Call autocmp_chars repeatedly until the
142 correct rule of the composition is found.
143 (composition_update_it): Set CMP_IT->charpos. Assume the CHARPOS
144 is at the last character of the current grapheme cluster when
145 CMP_IT->reversed_p is nonzero.
146
147 2010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
148
149 * editfns.c (Fbyte_to_string): New function.
150
151 2010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
152
153 * process.c (Fmake_network_process): Set :host to nil if it's not used.
154 Suggested by Masatake YAMATO <yamato@redhat.com>.
155
156 2010-05-23 Eli Zaretskii <eliz@gnu.org>
157
158 * dispextern.h (init_iterator): Sync prototype with changed definition.
159
160 2010-05-20 enami tsugutomo <tsugutomo.enami@jp.sony.com>
161
162 * s/netbsd.h: If terminfo is found, use it in preference to
163 termcap. (Bug#6190) [Backport from trunk]
164
165 2010-05-19 Eli Zaretskii <eliz@gnu.org>
166
167 Redesign and reimplement bidi-aware edge positions of glyph rows.
168
169 * dispextern.h (struct glyph_row): New members minpos and maxpos.
170 (MATRIX_ROW_START_CHARPOS, MATRIX_ROW_START_BYTEPOS)
171 (MATRIX_ROW_END_CHARPOS, MATRIX_ROW_END_BYTEPOS): Reference minpos
172 and maxpos members instead of start.pos and end.pos, respectively.
173
174 * xdisp.c (display_line): Compare IT_CHARPOS with the position in
175 row->start.pos, rather than with MATRIX_ROW_START_CHARPOS.
176 (cursor_row_p): Use row->end.pos rather than MATRIX_ROW_END_CHARPOS.
177 (try_window_reusing_current_matrix, try_window_id):
178 Use ROW->minpos rather than ROW->start.pos.
179 (init_from_display_pos, init_iterator): Use EMACS_INT for
180 character and byte positions.
181 (find_row_edges): Rename from find_row_end. Accept additional
182 arguments for minimum and maximum buffer positions seen by
183 display_line for this row. Don't use iterator to find the
184 position following the maximum one; instead, increment the
185 position found by display_line directly. Fix logic; eol_pos
186 should be tested before the rest. Handle the case of characters
187 delivered from display vector (bug#6036). Fix tests related to
188 it->method. Handle the truncated_on_right_p rows.
189 (RECORD_MAX_MIN_POS): New macro.
190 (display_line): Use it to record the minimum and maximum buffer
191 positions for glyphs in the row being assembled. Record the
192 position of the newline that terminates the line. If word wrap is
193 in effect, restore minimum and maximum positions seen up to the
194 wrap point, when iterator returns to it.
195 (try_window_reusing_current_matrix): Give up if in bidi-reordered
196 row and cursor not already at point. Restore original pre-bidi
197 code for unidirectional buffers.
198
199 * dispnew.c (increment_row_positions, check_matrix_invariants):
200 Increment and check row->start.pos and row->end.pos, in addition
201 to MATRIX_ROW_START_CHARPOS and MATRIX_ROW_END_CHARPOS.
202
203 * .gdbinit (prowlims): Display row->minpos and row->maxpos.
204 Display truncated_on_left_p and truncated_on_right_p flags.
205 Formatting fixes.
206 (pmtxrows): Display the ordinal number of each row. Don't display
207 rows beyond the last one.
208
209 * bidi.c (bidi_cache_iterator_state): Don't zero out new_paragraph:
210 it is not copied by bidi_copy_it.
211
212 2010-05-22 Eli Zaretskii <eliz@gnu.org>
213
214 * w32.c (sys_write): Break writes into chunks smaller than 32MB.
215 (Bug#6237)
216
217 2010-05-22 Chong Yidong <cyd@stupidchicken.com>
218
219 * image.c (Fimage_flush): Rename from image-refresh.
220
221 2010-05-21 Chong Yidong <cyd@stupidchicken.com>
222
223 * xdisp.c (redisplay_internal): Clear caches even if redisplaying
224 just one window.
225
226 * image.c (Vimage_cache_eviction_delay): Decrease to 300.
227 (clear_image_cache): If the number of cached images is unusually
228 large, decrease the cache eviction delay (Bug#6230).
229
230 2010-05-21 Glenn Morris <rgm@gnu.org>
231
232 * Makefile.in (${ns_appdir}, ${ns_appbindir}Emacs, ns-app):
233 Move these rules to ns.mk.
234 * ns.mk: New file.
235
236 * Makefile.in (../src/$(OLDXMENU), $(OLDXMENU)): Always define rules.
237
238 * Makefile.in (CANNOT_DUMP): New, set by configure.
239 (emacs${EXEEXT}, bootstrap-emacs${EXEEXT}): Use $CANNOT_DUMP.
240
241 2010-05-20 Juri Linkov <juri@jurta.org>
242
243 * fileio.c (Fdelete_file): Change interative spec to use
244 `read-file-name' like in `find-file-read-args' where the default
245 value is `default-directory' instead of `buffer-file-name'.
246 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00533.html
247
248 2010-05-20 Kevin Ryde <user42@zip.com.au>
249
250 * keyboard.c (Vlast_command, Vkeyboard_translate_table)
251 (Voverriding_terminal_local_map, Vsystem_key_alist)
252 (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
253
254 2010-05-20 Glenn Morris <rgm@gnu.org>
255
256 * Makefile.in (DEPDIR): New constant.
257 (DEPFLAGS): Set with configure, not cpp.
258 (MKDEPDIR): New, set by configure.
259 (.c.o, .m.o, ecrt0.o): Use $MKDEPDIR.
260 (clean): Use $DEPDIR.
261 (deps_frag): Include from configure.
262 Move static/dynamic dependency stuff to deps.mk/autodeps.mk.
263 * deps.mk, autodeps.mk: New files, extracted from Makefile.in.
264
265 * bidi.c (bidi_cache_shrink, bidi_cache_iterator_state): Fix
266 reallocation of the cache. (Bug#6210)
267
268 2010-05-19 Glenn Morris <rgm@gnu.org>
269
270 * s/msdos.h (ORDINARY_LINK): Move to sed2v2.inp.
271
272 * Makefile.in (LD, YMF_PASS_LDFLAGS): Set with configure, not cpp.
273 (GNULIB_VAR): Remove.
274 (LIBES): Use LIB_GCC instead of GNULIB_VAR.
275
276 * m/ibms390x.h (LINKER):
277 * m/macppc.h (LINKER) [GNU_LINUX]:
278 * s/aix4-2.h (ORDINARY_LINK):
279 * s/cygwin.h (LINKER):
280 * s/darwin.h (ORDINARY_LINK):
281 * s/gnu.h (ORDINARY_LINK):
282 * s/netbsd.h (LINKER):
283 * s/usg5-4.h (ORDINARY_LINK):
284 Move to configure.
285
286 * s/aix4-2.h (LINKER): Remove; this file sets ORDINARY_LINK.
287
288 2010-05-18 Chong Yidong <cyd@stupidchicken.com>
289
290 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
291 prevent stack overflow if number of arguments is too large
292 (Bug#6214).
293
294 2010-05-18 Juanma Barranquero <lekktu@gmail.com>
295
296 * charset.c (load_charset_map_from_file): Don't call close after fclose.
297
298 2010-05-18 Glenn Morris <rgm@gnu.org>
299
300 * s/gnu-linux.h: Combine two conditionals.
301
302 * Makefile.in (otherobj): Include $(VMLIMIT_OBJ) separately from
303 $(POST_ALLOC_OBJ).
304
305 * Makefile.in (RALLOC_OBJ): New, set by configure.
306 (rallocobj): Replace with the previous variable.
307 (otherobj): Use $RALLOC_OBJ.
308
309 * s/gnu.h (REL_ALLOC) [DOUG_LEA_MALLOC]:
310 * s/gnu-linux.h (REL_ALLOC) [DOUG_LEA_MALLOC]: Move undef to configure.
311
312 * Makefile.in (GMALLOC_OBJ, VMLIMIT_OBJ): New, set by configure.
313 (gmallocobj, vmlimitobj): Replace with previous two variables.
314 (otherobj): Use $GMALLOC_OBJ, $VMLIMIT_OBJ.
315
316 2010-05-17 Glenn Morris <rgm@gnu.org>
317
318 * Makefile.in (OLDXMENU_DEPS): New, set by configure.
319 (stamp-oldxmenu): Use $OLDXMENU_DEPS.
320
321 2010-05-16 Glenn Morris <rgm@gnu.org>
322
323 * Makefile.in (${ns_appbindir}Emacs, ns-app): Always define these rules.
324
325 * Makefile.in (clean): Get rid of HAVE_NS conditional.
326
327 * Makefile.in (ns_appdir, ns_appbindir): Now configure adds the
328 trailing "/".
329
330 * Makefile.in (TEMACS_LDFLAGS2): New, set by configure.
331 (temacs${EXEEXT}): Combine the NS_IMPL_GNUSTEP case with the default.
332
333 * Makefile.in (GNUSTEP_SYSTEM_LIBRARIES): Remove, unused.
334 (NS_IMPL_GNUSTEP_TEMACS_LDFLAGS): New, set by configure.
335 (LD) [NS_IMPL_GNUSTEP]: Set to $(CC) -rdynamic.
336 (temacs${EXEEXT}): Remove $LOCALCPP, never defined or referenced.
337 Make most of the NS_IMPL_GNUSTEP case the same as the default case.
338
339 * Makefile.in (temacs${EXEEXT}) [!NS_IMPL_GNUSTEP]:
340 Remove ${STARTFLAGS}, nothing ever sets it.
341
342 2010-05-16 Dan Nicolaescu <dann@ics.uci.edu>
343
344 * m/ia64.h (UNEXEC): Remove, set in s/*.h.
345
346 2010-05-16 Glenn Morris <rgm@gnu.org>
347
348 * Makefile.in (LIBX_BASE): Always define.
349
350 * Makefile.in (LIBX_OTHER): Move out of cpp section.
351
352 * Makefile.in (LIBXT): Always define.
353
354 2010-05-15 Glenn Morris <rgm@gnu.org>
355
356 * Makefile.in (OLDXMENU, LIBXMENU, LIBX_OTHER): Always define.
357
358 * Makefile.in (FONT_DRIVERS): Remove, replace with $FONT_OBJ.
359 (obj, SOME_MACHINE_OBJECTS): Use $FONT_OBJ.
360
361 2010-05-15 Ken Raeburn <raeburn@raeburn.org>
362
363 * lisp.h (XFLOAT_DATA): Use "0?x:x" to generate an rvalue. (Bug#5916)
364 (LISP_MAKE_RVALUE) [!USE_LISP_UNION_TYPE && !__GNUC__]: Likewise.
365
366 * emacs.c (main): Initialize initial-environment and
367 process-environment before generating from env, not after.
368
369 Handle --version reasonably in CANNOT_DUMP configuration.
370 * emacs.c (emacs_version, emacs_copyright): New string variables.
371 (Vemacs_version, Vemacs_copyright): New Lisp_Object variables.
372 (syms_of_emacs): Defvar them, and initialize them from the C
373 string variables.
374 (main): If initialization hasn't been done, print initial version
375 info from the C strings, instead of starting an interactive session.
376
377 2010-05-15 Eli Zaretskii <eliz@gnu.org>
378
379 * bidi.c (bidi_paragraph_init): Don't leave alone garbage values
380 of bidi_it->paragraph_dir. Call bidi_initialize if needed.
381 (bidi_paragraph_init): Remove redundant assertion that we are at
382 the beginning of a line after call to bidi_find_paragraph_start.
383
384 * xdisp.c (Fcurrent_bidi_paragraph_direction): New function.
385 (syms_of_xdisp): Defsubr it.
386
387 * cmds.c (Fforward_char, Fbackward_char): Doc fix.
388
389 * Makefile.in: Fix MSDOS-related comments.
390
391 2010-05-15 Glenn Morris <rgm@gnu.org>
392
393 * Makefile.in (OLDXMENU_TARGET): New, set by configure.
394 (really-lwlib, really-oldXMenu): Always define.
395 ($OLDXMENU): Depend on $OLDXMENU_TARGET.
396
397 * Makefile.in: Simplify cpp conditional.
398
399 * Makefile.in (${ns_appdir}): Simplify using umask.
400
401 * Makefile.in (${ns_appdir}): Remove references to CVS-related files.
402
403 2010-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
404
405 * eval.c (specbind): Remove left-over duplicate test.
406 Disallow let-binding frame-local vars. Add comment.
407
408 2010-05-14 Eli Zaretskii <eliz@gnu.org>
409
410 Make the cache of bidi iterator states dynamically allocated.
411 * bidi.c (bidi_cache_shrink): New function.
412 (bidi_init_it): Call it.
413 (bidi_cache_iterator_state): Enlarge the cache if needed.
414
415 * bidi.c (bidi_move_to_visually_next): Rename from
416 bidi_get_next_char_visually. All callers changed.
417
418 2010-05-14 Kenichi Handa <handa@m17n.org>
419
420 * dispextern.h (struct composition_it): New member reversed_p.
421
422 * composite.c (composition_compute_stop_pos): Search backward if
423 ENDPOS < CHARPOS.
424 (composition_reseat_it): Handle the case that ENDPOS < CHARPOS.
425 Set CMP_IT->reversed_p.
426 (composition_update_it): Pay attention to CMP_IT->reversed_p.
427
428 * xdisp.c (set_iterator_to_next):
429 Call composition_compute_stop_pos with negative ENDPOS if we are
430 scanning backward. Call composition_compute_stop_pos if scan
431 direction is changed.
432 (next_element_from_buffer): Call composition_compute_stop_pos with
433 negative ENDPOS if we are scanning backward.
434 (next_element_from_composition): Pay attention to
435 IT->cmp_it.reversed_p.
436
437 2010-05-14 Kenichi Handa <handa@m17n.org>
438
439 * font.c (font_range): Return the range for the font found at first.
440
441 2010-05-14 Glenn Morris <rgm@gnu.org>
442
443 * Makefile.in (ns_appdir, ns_appbindir, ns_appsrc): Always define.
444
445 * Makefile.in (mktime, X11, register): Move undefs to configure.
446
447 * Makefile.in (MSDOS_OBJ): Default to empty, let msdos scripts set it.
448 (MSDOS_X_OBJ): New variable.
449 (MSDOS_SUPPORT_REAL): New constant.
450 (MSDOS_SUPPORT): Set as a variable, not with cpp.
451 (obj): Use MSDOS_X_OBJ.
452 (lisp): Use MSDOS_SUPPORT as a variable.
453
454 * Makefile.in (REAL_MOUSE_SUPPORT): New constant.
455 (GPM_MOUSE_SUPPORT): Now it's a constant.
456 (MOUSE_SUPPORT, TOOLTIP_SUPPORT, WINDOW_SUPPORT): Set with configure,
457 not cpp.
458
459 * Makefile.in (@NS_IMPL_GNUSTEP_INC@): Use in place of #ifdef.
460 (ns_appresdir): Remove, unused.
461
462 * Makefile.in (SHELL): Move outside cpp section.
463
464 * s/netbsd.h (AMPERSAND_FULL_NAME): Remove (defined in AH_BOTTOM).
465
466 2010-05-13 Glenn Morris <rgm@gnu.org>
467
468 * Makefile.in (FONT_DRIVERS): Place with other HAVE_X_WINDOWS stuff.
469 (TOOLTIP_SUPPORT): Place with other HAVE_WINDOW_SYSTEM stuff.
470
471 * Makefile.in (FONT_DRIVERS): If HAVE_X_WINDOWS is defined,
472 HAVE_WINDOW_SYSTEM must be too.
473
474 * Makefile.in (WINNT_SUPPORT): Remove, nt build does not use this file.
475 (lisp): Remove WINNT_SUPPORT.
476
477 * Makefile.in (OLDXMENU, LIBXMENU) [!HAVE_MENUS]:
478 Let configure set these variables (to empty) in this case as well.
479
480 * Makefile.in (LD_SWITCH_X_SITE): Define as a variable, not via cpp.
481 (LIBX_BASE): Use $LD_SWITCH_X_SITE.
482
483 * Makefile.in (C_SWITCH_X_SYSTEM, C_SWITCH_X_SITE, LIB_STANDARD)
484 (LIB_MATH, FONTCONFIG_CFLAGS, FONTCONFIG_LIBS, FREETYPE_CFLAGS)
485 (FREETYPE_LIBS, LIBOTF_CFLAGS, LIBOTF_LIBS, M17N_FLT_CFLAGS)
486 (M17N_FLT_LIBS, GNU_OBJC_CFLAGS, GNUSTEP_SYSTEM_LIBRARIES, LIBGPM)
487 (LIBRESOLV, UNEXEC_OBJ): For clarity, define variables to hold
488 the values output by configure.
489 (ALL_CFLAGS, obj, LIBES, temacs${EXEEXT}): Use the above variables.
490
491 2010-05-12 Glenn Morris <rgm@gnu.org>
492
493 * Makefile.in (YMF_PASS_LDFLAGS, LD, LINKER): Simplify the logic.
494 (LINKER_WAS_SPECIFIED): Remove.
495
496 * Makefile.in (LIB_GCC): Set using configure, not cpp.
497 (GNULIB_VAR) [!ORDINARY_LINK]: Always set to $LIB_GCC.
498 * m/arm.h (LIB_GCC) [GNU_LINUX]:
499 * s/cygwin.h (LIB_GCC):
500 * s/freebsd.h (LIB_GCC):
501 * s/gnu-linux.h (LIB_GCC):
502 * s/msdos.h (LIB_GCC):
503 * s/netbsd.h (LIB_GCC):
504 Move to configure.
505
506 2010-05-11 Karel Klic <kklic@redhat.com>
507
508 * ftfont.c: Fix incorrect parentheses of #if condition for
509 definining M17N_FLT_USE_NEW_FEATURE.
510
511 2010-05-11 Glenn Morris <rgm@gnu.org>
512
513 * Makefile.in (LIBS_SYSTEM) [MSDOS]: Do not reset.
514 * s/msdos.h (MSDOS_LIBS_SYSTEM): Remove.
515
516 2010-05-10 Eli Zaretskii <eliz@gnu.org>
517
518 * xdisp.c (init_iterator): Don't turn on bidi reordering in
519 unibyte buffers. See
520 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00263.html.
521
522 2010-05-10 Glenn Morris <rgm@gnu.org>
523
524 * Makefile.in (LIBS_SYSTEM): Set using configure, not cpp.
525 (LIBS_SYSTEM) [MSDOS]: Reset with MSDOS_LIBS_SYSTEM.
526 (LIBES): Use LIBS_SYSTEM as a variable.
527 * s/msdos.h (LIBS_SYSTEM): Rename to MSDOS_LIBS_SYSTEM. Always define.
528 * s/aix4-2.h (LIBS_SYSTEM):
529 * s/freebsd.h (LIBS_SYSTEM):
530 * s/hpux10-20.h (LIBS_SYSTEM):
531 * s/sol2-6.h (LIBS_SYSTEM):
532 * s/unixware.h (LIBS_SYSTEM):
533 Move to configure.
534
535 * s/aix4-2.h (MAIL_USE_LOCKF):
536 * s/bsd-common.h (MAIL_USE_FLOCK):
537 * s/darwin.h (MAIL_USE_FLOCK):
538 * s/gnu-linux.h (MAIL_USE_FLOCK):
539 * s/irix6-5.h (MAIL_USE_FLOCK):
540 * s/template.h (MAIL_USE_FLOCK):
541 Move to configure.
542
543 2010-05-08 Chong Yidong <cyd@stupidchicken.com>
544
545 * Version 23.2 released.
546
547 2010-05-08 Andreas Schwab <schwab@linux-m68k.org>
548
549 * composite.c (autocmp_chars): Save point as marker before calling
550 auto-composition-function (Bug#5984).
551
552 * lisp.h (restore_point_unwind): Add prototype.
553
554 * fileio.c (restore_point_unwind): Remove static attribute.
555
556 2010-05-08 Kenichi Handa <handa@m17n.org>
557
558 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
559 new feature of libotf and m17n-flt.
560 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
561 Call OTF_check_features even if no specific feature is given.
562 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
563 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
564 that OUT is NULL. Use OTF_drive_gsub_with_log and
565 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
566 OTF_drive_gpos.
567 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
568 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
569 Setup mflt_enable_new_feature and mflt_try_otf.
570
571 2010-05-08 Jan Djärv <jan.h.d@swipnet.se>
572
573 * xsettings.c (Ftool_bar_get_system_style): Correct comment.
574
575 * gtkutil.c (xg_pack_tool_bar): Change show_all to show for handle
576 box and toolbar (Bug #6139).
577 (xg_create_tool_bar): Remove comment (Bug #6139).
578 (xg_make_tool_item): Remove gtk_widget_show_all (Bug #6139).
579 (xg_show_toolbar_item): Add gtk_widget_show for weventbox (Bug #6139).
580
581 2010-05-08 Juanma Barranquero <lekktu@gmail.com>
582
583 * makefile.w32-in ($(BLD)/eval.$(O), $(BLD)/w32fns.$(O)):
584 Update dependencies.
585
586 2010-05-08 Eli Zaretskii <eliz@gnu.org>
587
588 * fringe.c (update_window_fringes): Set up truncation bitmaps for
589 R2L lines.
590
591 2010-05-08 Glenn Morris <rgm@gnu.org>
592
593 * Makefile.in (THIS_IS_MAKEFILE): Remove, unused.
594
595 * Makefile.in (LIBS_TERMCAP): Set with configure, not cpp.
596 (TERMCAP_OBJ): New, set by configure, replacing termcapobj.
597 (termcapobj): Replace with TERMCAP_OBJ.
598 (otherobj): Use $TERMCAP_OBJ instead of $termcapobj.
599 (LIBES): Use LIBS_TERMCAP as a variable.
600
601 * s/freebsd.h (osreldate.h): No longer include, since this file
602 does not use __FreeBSD_version any more.
603
604 * s/aix4-2.h (TERMINFO):
605 * s/cygwin.h (TERMINFO):
606 * s/darwin.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
607 * s/freebsd.h (TERMINFO, LIBS_TERMCAP):
608 * s/gnu-linux.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
609 * s/gnu.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
610 * s/hpux10-20.h (TERMINFO, LIBS_TERMCAP):
611 * s/irix6-5.h (TERMINFO):
612 * s/netbsd.h (LIBS_TERMCAP):
613 * s/openbsd.h (TERMINFO, LIBS_TERMCAP):
614 * s/sol2-6.h (LIBS_TERMCAP) [!TERMINFO]:
615 * s/usg5-4.h (TERMINFO):
616 Move to configure.
617
618 2010-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
619
620 * eval.c (unbind_to): Don't unbind a local binding into the global
621 binding when the local binding disappeared. Inversely, don't unbind
622 a global binding into a newly created local binding.
623 * data.c (set_internal): Make its `buf' arg into a `where' arg so we
624 can specify the frame to use, when applicable. Adjust callers.
625
626 2010-05-07 Vincent Belaïche <vincent.belaiche@gmail.com>
627 Stefan Monnier <monnier@iro.umontreal.ca>
628
629 * floatfns.c (Fisnan, Fcopysign, Ffrexp, Fldexp): New functions.
630
631 2010-05-07 Eli Zaretskii <eliz@gnu.org>
632
633 * w32fns.c: Include w32.h.
634 (Fw32_shell_execute): Decode the error message before passing it
635 to `error'. (Bug#6126)
636
637 * msdos.c (dos_set_window_size):
638 * w16select.c (Fx_selection_exists_p): Use `Fsymbol_value (foo)'
639 instead of `XSYMBOL (foo)->value'.
640
641 2010-05-07 Eli Zaretskii <eliz@gnu.org>
642
643 Fix the MS-DOS build, broken by autoconfiscation.
644
645 * Makefile.in: Don't use Make-style comments past the "start of
646 cpp stuff" line.
647 (MSDOS_OBJ): Remove xmenu.o (it is now defined by XMENU_OBJ).
648
649 * s/msdos.h (UNEXEC): Don't define (@unexec@ in Makefile.in is
650 edited directly by msdos/sed1v2.inp).
651
652 2010-05-07 Glenn Morris <rgm@gnu.org>
653
654 * Makefile.in (LD_SWITCH_SYSTEM): Set with configure, not cpp.
655 (LD_SWITCH_SYSTEM_EXTRA): New variable, set by configure.
656 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM and $LD_SWITCH_SYSTEM_EXTRA,
657 move out of cpp section.
658 * s/freebsd.h (LD_SWITCH_SYSTEM):
659 * s/gnu-linux.h (LD_SWITCH_SYSTEM):
660 * s/netbsd.h (LD_SWITCH_SYSTEM):
661 * s/openbsd.h (LD_SWITCH_SYSTEM): Move to configure.in.
662
663 2010-05-07 Dan Nicolaescu <dann@ics.uci.edu>
664
665 Define LIB_STANDARD and START_FILES using autoconf.
666 * s/usg5-4.h (LIB_STANDARD):
667 * s/netbsd.h (START_FILES):
668 * s/irix6-5.h (LIB_STANDARD):
669 * s/hpux10-20.h (LIB_STANDARD, START_FILES):
670 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
671 * s/freebsd.h (START_FILES):
672 * s/darwin.h (START_FILES):
673 * s/cygwin.h (START_FILES):
674 * s/aix4-2.h (LIB_STANDARD):
675 * m/ibmrs6000.h (START_FILES): Remove, move logic to configure.in.
676 * Makefile.in (STARTFILES): Rename to START_FILES, define using
677 autoconf, not cpp.
678
679 2010-05-06 Dan Nicolaescu <dann@ics.uci.edu>
680
681 Remove NEED_BSDTTY and NEED_UNISTD_H.
682 * s/hpux10-20.h (NEED_BSDTTY): Remove.
683 * s/aix4-2.h (NEED_UNISTD_H): Remove.
684 * systty.h: Simplify conditionals for including <sys/bsdtty.h>,
685 <sys/ptyio.h> and <unistd.h>.
686
687 * emacs.c (main): Remove NO_DIR_LIBRARY conditional, unused.
688
689 * Makefile.in (STARTFILES): Conditionally define to make the usage clear.
690 * s/gnu.h (START_FILES): Remove empty definition.
691
692 2010-05-06 Jan Djärv <jan.h.d@swipnet.se>
693
694 * xterm.c (x_draw_image_relief): Move declaration of extra to beginning.
695
696 2010-05-06 Glenn Morris <rgm@gnu.org>
697
698 * Makefile.in (CPP, LN_S): Remove unused variables.
699
700 2010-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
701
702 * syntax.c (Fchar_syntax): Check the arg is a character (bug#6080).
703
704 2010-05-05 Lawrence Mitchell <wence@gmx.li>
705
706 * m/sparc.h: Fix typo in earlier change.
707
708 2010-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
709
710 Misc tweaks.
711 * eval.c (Fdefvaralias): Remove unintended nested if.
712 (internal_condition_case_2, internal_condition_case_n): Use ANSI type.
713
714 2010-05-04 Bernhard Herzog <bh@intevation.de> (tiny change)
715
716 * xsmfns.c (smc_save_yourself_CB): strlen(client_id) => strlen(cwd).
717
718 2010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
719
720 Remove BSD_PGRPS.
721 * s/bsd-common.h (BSD_PGRPS): Remove undef.
722 * s/gnu-linux.h (BSD_PGRPS): Remove.
723 * term.c (dissociate_if_controlling_tty):
724 * sysdep.c (narrow_foreground_group, widen_foreground_group)
725 (init_sys_modes, reset_sys_modes):
726 * emacs.c (main):
727 * callproc.c (Fcall_process, child_setup): Remove code depending
728 on BSD_PGRPS.
729
730 Remove POSIX_SIGNALS.
731 * s/usg5-4.h (POSIX_SIGNALS):
732 * s/netbsd.h (POSIX_SIGNALS):
733 * s/msdos.h (POSIX_SIGNALS):
734 * s/ms-w32.h (POSIX_SIGNALS):
735 * s/hpux11.h (POSIX_SIGNALS):
736 * s/gnu.h (POSIX_SIGNALS):
737 * s/gnu-linux.h (POSIX_SIGNALS):
738 * s/freebsd.h (POSIX_SIGNALS):
739 * s/darwin.h (POSIX_SIGNALS):
740 * s/cygwin.h (POSIX_SIGNALS):
741 * s/aix4-2.h (POSIX_SIGNALS): Remove definition.
742 * s/unixware.h:
743 * s/sol2-6.h: Remove comments on POSIX_SIGNALS.
744 * process.c (create_process):
745 * syssignal.h:
746 * sysdep.c (wait_for_termination, init_signals):
747 * process.c (create_process):
748 * msdos.c: POSIX_SIGNALS is always defined on all platforms,
749 remove all code that assumes the contrary.
750
751 2010-05-04 Glenn Morris <rgm@gnu.org>
752
753 * s/gnu-linux.h (LD_SWITCH_SYSTEM): Use LD_SWITCH_X_SITE_AUX as a shell
754 variable.
755 * s/netbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
756 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH.
757 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
758 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH instead of
759 LD_SWITCH_SYSTEM_tmp.
760 * Makefile.in (LD_SWITCH_X_SITE_AUX, LD_SWITCH_X_SITE_AUX_RPATH):
761 New variables, set by configure.
762
763 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
764 * s/darwin.h (HEADERPAD_EXTRA, LIBS_NSGUI): Remove.
765 (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
766 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): New variable, set by configure.
767 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM_TEMACS.
768
769 * s/aix4-2.h (C_SWITCH_SYSTEM):
770 * m/alpha.h (C_SWITCH_MACHINE):
771 Move to configure.in.
772 * Makefile.in (C_SWITCH_MACHINE, C_SWITCH_SYSTEM):
773 New variables, set by configure.
774 (ALL_CFLAGS): Use $C_SWITCH_MACHINE and $C_SWITCH_SYSTEM in place of
775 $c_switch_machine and $c_switch_system.
776
777 2010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
778
779 * s/hpux10-20.h (LIB_STANDARD): New definition.
780 * Makefile.in (ORDINARY_LINK): Remove setting LIB_STANDARD based
781 on it, not used anymore.
782
783 2010-05-03 Chong Yidong <cyd@stupidchicken.com>
784
785 * eval.c (internal_condition_case_n): Rename from
786 internal_condition_case_2.
787 (internal_condition_case_2): New function.
788
789 * xdisp.c (safe_call): Use internal_condition_case_n.
790
791 * fileio.c (Fdelete_file, internal_delete_file): New arg FORCE.
792 (internal_delete_file, Frename_file): Callers changed.
793
794 * buffer.c (Fkill_buffer):
795 * callproc.c (delete_temp_file): Callers changed (Bug#6070).
796
797 * lisp.h: Update prototypes.
798
799 2010-05-03 Glenn Morris <rgm@gnu.org>
800
801 * Makefile.in (LIBX_EXTRA, LIBX_BASE): New variables.
802 (LIBXT_OTHER, LIBX_OTHER): New, set by configure.
803 (LIBXT): Set with configure, not cpp.
804 (LIBX): Remove.
805 (LIBES): Replace $LIBX with $LIBX_BASE and $LIBX_OTHER.
806
807 2010-05-02 Dan Nicolaescu <dann@ics.uci.edu>
808
809 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Remove.
810 The FreeBSD is not needed, the default works, Solaris version is
811 not needed, and the remaining case is not supported by configure.
812
813 2010-05-02 Jan Djärv <jan.h.d@swipnet.se>
814
815 * xsmfns.c (CHDIR_OPT): New define.
816 (smc_save_yourself_CB): Add CHDIR_OPT to options to use when
817 restarting emacs.
818
819 * xterm.c (x_connection_closed): Call Fkill_emacs instead of
820 shut_down_emacs.
821
822 * emacs.c (USAGE1): Mention --chdir.
823 (main): Handle --chdir.
824 (standard_args): Add --chdir.
825 (fatal_error_signal): Call Fkill_emacs for SIGTERM and SIGHUP (Bug
826 #5552).
827
828 2010-05-01 Dan Nicolaescu <dann@ics.uci.edu>
829
830 Remove LD_SWITCH_MACHINE.
831 * Makefile.in (LD_SWITCH_MACHINE): Remove definition, unused.
832 (TEMACS_LDFLAGS): Do not use LD_SWITCH_MACHINE.
833
834 Clean up IRIX code.
835 * m/iris4d.h (TERMINFO, FIRST_PTY_LETTER): Move definitions ...
836 * s/irix6-5.h (TERMINFO, FIRST_PTY_LETTER): ... here.
837
838 Clean up AIX code.
839 * m/ibmrs6000.inp: Remove file, unused.
840 * m/ibmrs6000.h (IBMR2AIX): Remove, unused.
841 (LD_SWITCH_MACHINE): Rename to LD_SWITCH_SYSTEM_TEMACS, and move
842 definition ...
843 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): ... here.
844
845 * sysdep.c (child_setup_tty, init_sys_modes): Remove !IBMR2AIX code,
846 unused.
847
848 2010-05-01 Eli Zaretskii <eliz@gnu.org>
849
850 Emulate POSIX_SIGNALS on MS-Windows.
851
852 * s/ms-w32.h (POSIX_SIGNALS, struct sigaction, SIG_BLOCK)
853 (SIG_SETMASK, SIG_UNBLOCK): Define.
854
855 * sysdep.c (sys_signal) [WINDOWSNT]: #ifdef away.
856 (wait_for_termination) [WINDOWSNT]: Move MS-Windows specific code
857 from non-POSIX_SIGNALS section to POSIX_SIGNALS section.
858
859 * w32.c (sigemptyset, sigaddset, sigfillset, sigprocmask):
860 New stubs.
861
862 Miscellaneous fixes of bidi display.
863
864 * xdisp.c (find_row_end): New function, refactored from display_line.
865 (display_line): Use it.
866 (extend_face_to_end_of_line): In almost-filled rows, extend only
867 if the row is R2L and not continued.
868 (display_line): Fix prepending of truncation glyphs to R2L rows.
869 Preserve overlay and string info in row->end.
870 (insert_left_trunc_glyphs): Support addition of left truncation
871 glyphs to R2L rows.
872 (set_cursor_from_row): Don't place cursor on the vertical border
873 glyph between adjacent windows. Fix a crash when a display string
874 is continued to the next line. Don't return zero if cursor was
875 found by `cursor' property of a display string.
876 (try_cursor_movement): Don't assume that row->end == (row+1)->start,
877 test for that explicitly.
878
879 2010-05-01 Glenn Morris <rgm@gnu.org>
880
881 * Makefile.in (gmallocobj, rallocobj, vmlimitobj): Initialize to null,
882 for clarity.
883 (OTHER_OBJ): Remove.
884 (PRE_ALLOC_OBJ, POST_ALLOC_OBJ): New, set by configure.
885 (otherobj): Use PRE_ALLOC_OBJ, POST_ALLOC_OBJ rather than OTHER_OBJ.
886
887 2010-05-01 Karel Klíč <kklic@redhat.com>
888
889 * fileio.c (Ffile_selinux_context): Context functions may return null.
890
891 2010-04-30 Dan Nicolaescu <dann@ics.uci.edu>
892
893 * s/gnu.h (POSIX_SIGNALS, START_FILES): New definitions.
894
895 2010-04-30 Glenn Morris <rgm@gnu.org>
896
897 * Makefile.in (vmlimitobj) [!SYSTEM_MALLOC]: New variable. (Bug#6065)
898 (OTHER_OBJ): Define as a separate variable, for clarity.
899
900 2010-04-30 Jan Djärv <jan.h.d@swipnet.se>
901
902 * xsettings.c: include limits.h and update file comment.
903
904 2010-04-30 Glenn Morris <rgm@gnu.org>
905
906 * Makefile.in (OLDXMENU, LIBXMENU) [HAVE_MENUS]:
907 Set with configure, not cpp.
908 (LIBW): Remove, replace with $TOOLKIT_LIBW.
909
910 * Makefile.in (mallocobj): Remove.
911 (otherobj): Simplify using @OTHER_OBJ@.
912
913 * Makefile.in (dispnew.o, frame.o, fringe.o, font.o, fontset.o)
914 (keyboard.o, window.o, xdisp.o, xfaces.o, menu.o):
915 Don't bother making nsgui.h dependency platform-specific.
916
917 * Makefile.in (nsfns.o): Remove duplicate nsgui.h dependency.
918
919 2010-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
920
921 * process.c (read_process_output, exec_sentinel): Don't burp if the
922 sentinel/filter kills the current buffer (bug#6060).
923
924 Fix wrong-docstring problem introduced with hash-consing. (Bug#6008)
925 * eval.c (Fautoload): Set doc to a unique number rather than to 0.
926 Remove unused var `args'.
927 * lisp.h (XSETCARFASTINT, XSETCDRFASTINT): Remove.
928 (LOADHIST_ATTACH): Wrap with do...while to avoid surprises for callers.
929 * doc.c (store_function_docstring): Use XSETCAR.
930
931 2010-04-28 Glenn Morris <rgm@gnu.org>
932
933 * Makefile.in (BASE_WINDOW_SUPPORT, X_WINDOW_SUPPORT): New variables.
934 (WINDOW_SUPPORT) [HAVE_WINDOW_SYSTEM]: Use them.
935
936 * Makefile.in (CYGWIN_OBJ): Set with configure, not cpp.
937
938 * Makefile.in (GPM_MOUSE_SUPPORT): New, set by configure.
939 (MOUSE_SUPPORT) [!HAVE_MOUSE]: Use $GPM_MOUSE_SUPPORT.
940
941 * Makefile.in (FONT_OBJ): New, set by configure.
942 (FONT_DRIVERS): Use $FONT_OBJ.
943
944 * Makefile.in (LIBXMU): Set with configure, not cpp.
945 * s/aix4-2.h (LIBXMU):
946 * s/hpux10-20.h (LIBXMU):
947 Remove definition, now set in configure.
948
949 * Makefile.in (NS_OBJ, NS_SUPPORT): Set with configure, not cpp.
950
951 * m/amdx86-64.h [i386]: Move this test to configure.in.
952
953 2010-04-27 Glenn Morris <rgm@gnu.org>
954
955 * Makefile.in (LIBXTR6): Set with configure, not cpp.
956 * s/unixware.h (NEED_LIBW): Remove definition.
957
958 * Makefile.in (LUCID_LIBW, MOTIF_LIBW): Remove, replacing by...
959 (TOOLKIT_LIBW): New, set by configure.
960 (@X_TOOLKIT_TYPE@): No longer define it.
961
962 * Makefile.in (LIBXP): Remove, since included in MOTIF_LIBW.
963 (MOTIF_LIBW): Set with configure, not cpp.
964 * s/aix4-2.h (LIB_MOTIF):
965 * s/gnu-linux.h (LIB_MOTIF):
966 * s/unixware.h (LIB_MOTIF): Move to configure.in.
967
968 2010-04-27 Dan Nicolaescu <dann@ics.uci.edu>
969
970 Reduce CPP usage.
971 * Makefile.in (LIB_X11_LIB): Remove, inline in the only user.
972 (obj): Use autoconf for unexec instead of cpp.
973 (C_SWITCH_SYSTEM, C_SWITCH_MACHINE, C_SWITCH_X_SITE): Remove
974 definitions and undefs. Inline definitions in the only user.
975 (ALL_CFLAGS): Substitute C_SWITCH_X_SYSTEM using autoconf.
976
977 2010-04-27 Glenn Morris <rgm@gnu.org>
978
979 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Change the logic around,
980 since the defaults (set by the system file) are fine in most cases.
981 [GNU_LINUX, __OpenBSD__, __NetBSD__, __APPLE__]: Remove sections.
982 * m/ibms390x.h (START_FILES, LIB_STANDARD):
983 * m/macppc.h (START_FILES, LIB_STANDARD) [GNU_LINUX]:
984 * m/sparc.h (START_FILES, LIB_STANDARD) [__linux__]:
985 Remove definitions, since they are set correctly in s/gnu-linux.h.
986 * s/freebsd.h (START_FILES, LIB_STANDARD):
987 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
988 * s/hpux10-20.h (START_FILES):
989 * s/netbsd.h (START_FILES, LIB_STANDARD, START_FILES_1, END_FILES_1):
990 Use $CRT_DIR in place of fixed /usr/lib, /lib directories.
991
992 * Makefile.in (LIBXP, LUCID_LIBW, WIDGET_OBJ): Set via configure.
993 (MOTIF_LIBW): Use $LIBXP.
994 (otherobj): Use $WIDGET_OBJ.
995
996 2010-04-26 Dan Nicolaescu <dann@ics.uci.edu>
997
998 * Makefile.in (LIBS_MACHINE): Remove, unused.
999
1000 Use autoconf instead of cpp for LIB_MATH.
1001 * s/darwin.h (LIB_MATH): Do not define here, move to configure.
1002 * s/cygwin.h (LIB_MATH): Likewise.
1003 * Makefile.in (LIB_MATH): Do not define with cpp.
1004 (LIBES): Use autoconf for LIB_MATH.
1005
1006 2010-04-26 Kenichi Handa <handa@m17n.org>
1007
1008 * composite.c (Ffind_composition_internal): Fix the return value
1009 for an automatic composition.
1010
1011 2010-04-25 Dan Nicolaescu <dann@ics.uci.edu>
1012
1013 Remove all NO_ARG_ARRAY uses.
1014 * fns.c (concat2, concat3, nconc2):
1015 * eval.c (apply1, call1, call2, call3, call4, call5, call6)
1016 (call7): Remove NO_ARG_ARRAY usage, assume it's always true.
1017 * m/xtensa.h (NO_ARG_ARRAY):
1018 * m/template.h (NO_ARG_ARRAY):
1019 * m/sparc.h (NO_ARG_ARRAY):
1020 * m/sh3.h (NO_ARG_ARRAY):
1021 * m/mips.h (NO_ARG_ARRAY):
1022 * m/macppc.h (NO_ARG_ARRAY):
1023 * m/iris4d.h (NO_ARG_ARRAY):
1024 * m/intel386.h (NO_ARG_ARRAY):
1025 * m/ibms390x.h (NO_ARG_ARRAY):
1026 * m/ibms390.h (NO_ARG_ARRAY):
1027 * m/ibmrs6000.h (NO_ARG_ARRAY):
1028 * m/ia64.h (NO_ARG_ARRAY):
1029 * m/hp800.h (NO_ARG_ARRAY):
1030 * m/arm.h (NO_ARG_ARRAY):
1031 * m/amdx86-64.h (NO_ARG_ARRAY):
1032 * m/alpha.h (NO_ARG_ARRAY): Remove definition.
1033
1034 2010-04-25 Eli Zaretskii <eliz@gnu.org>
1035
1036 * xdisp.c (display_line): Don't assume 2nd call to
1037 get_next_display_element cannot return zero. (Bug#6030)
1038 (iterate_out_of_display_property): New function, body from pop_it.
1039 (pop_it): Use it.
1040
1041 2010-04-24 Glenn Morris <rgm@gnu.org>
1042
1043 * m/amdx86-64.h (START_FILES, LIB_STANDARD) [__OpenBSD__]:
1044 For clarity, revert to using fixed /usr/lib rather than $CRT_DIR.
1045 (START_FILES, LIB_STANDARD) [__FreeBSD__]: Merge into the generic case,
1046 since CRT_DIR defaults to /usr/lib. Suggested by Dan Nicolaescu.
1047
1048 2010-04-24 Eli Zaretskii <eliz@gnu.org>
1049
1050 * xdisp.c (display_line): Use `reseat' instead of `reseat_1', and
1051 use `get_next_display_element' and `set_iterator_to_next' to
1052 advance to the next character, when looking for the character that
1053 begins the next row.
1054
1055 * .gdbinit: Add a "set Fmake_symbol" line to force GDB to load the
1056 definition of "struct Lisp_Symbol".
1057
1058 2010-04-24 Glenn Morris <rgm@gnu.org>
1059
1060 * Makefile.in (CRT_DIR): New variable, set by configure.
1061 * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
1062 Use $CRT_DIR rather than HAVE_LIB64_DIR. (Bug#5655)
1063
1064 2010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
1065
1066 * Makefile.in: Remove C_SWITCH_X_MACHINE, unused.
1067
1068 * s/cygwin.h (LIBS_DEBUG): Remove, unused.
1069
1070 Remove redundant flags.
1071 * s/freebsd.h (C_SWITCH_SYSTEM):
1072 * s/hpux10-20.h (C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
1073 * s/netbsd.h (C_SWITCH_SYSTEM):
1074 * s/openbsd.h (LD_SWITCH_X_DEFAULT): Remove, configure takes care
1075 of these.
1076
1077 Simplify m/intel386.h.
1078 * m/intel386.h (CRT0_DUMMIES): Remove, inline value in the only
1079 user: ecrt0.c.
1080 (SOLARIS2): Remove LOAD_AVE_TYPE, LOAD_AVE_CVT, LIBS_MACHINE, unused.
1081 (USG5_4): Move LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE definitions to
1082 the only user: s/unixware.h.
1083 * ecrt0.c: Remove #ifndef static. Inline CRT0_DUMMIES definition
1084 from m/intel386.h.
1085 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE): Definitions
1086 moved here from m/intel386.h.
1087
1088 * m/mips.h: Remove #if 0 code.
1089
1090 2010-04-23 Eli Zaretskii <eliz@gnu.org>
1091
1092 Fix display of composed characters from L2R scripts in bidi buffers.
1093 * xdisp.c (set_iterator_to_next, next_element_from_composition):
1094 After advancing IT past the composition, resync the bidi iterator
1095 with IT's position. (Bug#5977)
1096
1097 2010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
1098
1099 * Makefile.in (LD_SWITCH_MACHINE_TEMACS): Remove, unused.
1100 (TEMACS_LDFLAGS): Don't use LD_SWITCH_SYSTEM_TEMACS.
1101
1102 2010-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
1103
1104 * gtkutil.c: Include xsettings.h for Ftool_bar_get_system_style.
1105
1106 2010-04-23 Eli Zaretskii <eliz@gnu.org>
1107
1108 Support `display' text properties and overlay strings in bidi buffers.
1109 * xdisp.c (pop_it): When the stack is popped after displaying
1110 from a string, bidi-iterate to exit from the text portion covered
1111 by the `display' property or overlay. (Bug#5988, bug#5920)
1112
1113 2010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
1114
1115 * m/macppc.h (LD_SWITCH_SYSTEM_TEMACS): Remove #undef.
1116 (LD_SWITCH_MACHINE_TEMACS): Remove, configure sets nocombreloc.
1117
1118 * s/netbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure sets nocombreloc.
1119 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove.
1120
1121 Simplify STARTFILES definition.
1122 * s/hpux10-20.h (START_FILES): Explicitly define here instead of
1123 relying on Makefile.in to define it.
1124 * s/cygwin.h (START_FILES): Likewise.
1125 * Makefile.in (STARTFILES): Remove conditional code, not needed anymore.
1126
1127 Clean up Solaris code.
1128 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS, C_SWITCH_X_SYSTEM)
1129 (LIB_MOTIF): Remove, configure takes care of this.
1130 (NOT_USING_MOTIF): Remove, unused.
1131 * xrdb.c: Remove #if 0-ed #include.
1132 (SYSV): Remove conditional for old SysV.
1133 * sysdep.c (closedir): Remove conditional code for Solaris,
1134 Solaris has closedir.
1135
1136 2010-04-22 Jan Djärv <jan.h.d@swipnet.se>
1137
1138 * xsettings.c (read_and_apply_settings): Check if current_font is
1139 NULL before strcmp (Bug#6001).
1140
1141 2010-04-21 Dan Nicolaescu <dann@ics.uci.edu>
1142
1143 Clean up HP-UX files.
1144 * m/hp800.h (NO_REMAP, VIRT_ADDR_VARIES, DATA_SEG_BITS)
1145 (DATA_START, TEXT_START, LOAD_AVE_TYPE, LOAD_AVE_CVT)
1146 (LDAV_SYMBOL, index, rindex): Move definitions only used in HP-UX ...
1147 * s/hpux10-20.h: ... to the only user, here.
1148
1149 2010-04-21 Eli Zaretskii <eliz@gnu.org>
1150
1151 * bidi.c (bidi_find_paragraph_start, bidi_at_paragraph_end): Don't
1152 use buffer-local values of paragraph-start and paragraph-separate.
1153 <paragraph_start_re, paragraph_separate_re>: Rename from
1154 fallback_paragraph_start_re and fallback_paragraph_separate_re.
1155 (Bug#5992)
1156
1157 2010-04-21 Jan Djärv <jan.h.d@swipnet.se>
1158
1159 * xsettings.c: Qmonospace_font_name, Qtool_bar_style and
1160 current_tool_bar_style are new.
1161 (store_config_changed_event): Rename from store_font_changed_event.
1162 (XSETTINGS_TOOL_BAR_STYLE): New define.
1163 (SEEN_FONT, SEEN_TB_STYLE): New enum values.
1164 (struct xsettings): Add font and tb_style, set xft stuff inside #ifdef
1165 HAVE_XFT.
1166 (something_changedCB): store_font_changed_event is now
1167 store_config_changed_event
1168 (parse_settings): Rename from parse_xft_settings. Read
1169 non-xft xsettings outside #ifdef HAVE_XFT.
1170 (read_settings): Renamed from read_xft_settings.
1171 (apply_xft_settings): Take current settings as parameter. Do not
1172 call read_(xft)_settings.
1173 (read_and_apply_settings): New function.
1174 (xft_settings_event): Do non-xft stuff out of HAVE_XFT. Call
1175 read_and_apply_settings if there are settings to be read.
1176 (init_xsettings): Renamed from init_xfd_settings.
1177 Call read_and_apply_settings unconditionally.
1178 (xsettings_initialize): Call init_xsettings.
1179 (Ftool_bar_get_system_style): New function.
1180 (syms_of_xsettings): Define Qmonospace_font_name and
1181 Qtool_bar_style. Initialize current_tool_bar_style to nil.
1182 defsubr Stool_bar_get_system_style. Fprovide on
1183 dynamic-setting.
1184 Move misplaced HAVE_GCONF
1185
1186 * xsettings.h (Ftool_bar_get_system_style): Declare.
1187
1188 * xdisp.c: Vtool_bar_style, tool_bar_max_label_size,
1189 Qtext, Qboth, Qboth_horiz are new.
1190 (syms_of_xdisp): Intern Qtext, Qboth, Qboth_horiz, DEFVAR
1191 Vtool_bar_style, tool_bar_max_label_size.
1192
1193 * lisp.h: Extern declare Qtext, Qboth, Qboth_horiz.
1194
1195 * keyboard.c: QClabel is new.
1196 (parse_tool_bar_item): Take out QClabel from tool bar items.
1197 Try to construct a label if ther is no QClabel.
1198 (syms_of_keyboard): Intern :label as QClabel.
1199
1200 * dispextern.h (tool_bar_item_idx): TOOL_BAR_ITEM_LABEL is new.
1201 (Vtool_bar_style, tool_bar_max_label_size, DEFAULT_TOOL_BAR_LABEL_SIZE):
1202 New.
1203
1204 * Makefile.in (SOME_MACHINE_LISP): font-setting.el renamed to
1205 dynamic-setting.el.
1206
1207 * gtkutil.c (xg_tool_bar_menu_proxy): Handle label in tool bar item.
1208 (xg_make_tool_item, xg_show_toolbar_item): New function.
1209 (update_frame_tool_bar): Take label from TOOL_BAR_ITEM_LABEL.
1210 Call xg_make_tool_item to make a tool bar item.
1211 Call xg_show_toolbar_item. Use wtoolbar instead of x->toolbar_widget.
1212
1213 * xterm.c (x_draw_image_relief): Take Vtool_bar_button_margin
1214 into account for toolbars.
1215
1216 2010-04-21 Jan Djärv <jan.h.d@swipnet.se>
1217
1218 * data.c (make_blv): Declarations before code (Bug#5993).
1219
1220 2010-04-21 Glenn Morris <rgm@gnu.org>
1221
1222 * Makefile.in (DBUS_OBJ, GTK_OBJ, XMENU_OBJ, XOBJ):
1223 Define using autoconf, not cpp.
1224 (LIBXSM): New variable, set by autoconf.
1225 (LIBXT): Use $LIBXSM.
1226
1227 2010-04-21 Dan Nicolaescu <local_user@dannlt>
1228
1229 Remove NOMULTIPLEJOBS, unused.
1230 * s/template.h (NOMULTIPLEJOBS):
1231 * s/msdos.h (NOMULTIPLEJOBS): Remove, unused.
1232
1233 Simplify LD_SWITCH_SYSTEM_TEMACS usage.
1234 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS):
1235 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure
1236 detects -znocombreloc and passes it to the linker
1237 * s/hpux10-20.h (LD_SWITCH_SYSTEM_TEMACS): Remove, empty.
1238
1239 2010-04-21 Glenn Morris <rgm@gnu.org>
1240
1241 * Makefile.in (LIBSELINUX_LIBS): Move out of #ifdef.
1242
1243 2010-04-21 Karel Klíč <kklic@redhat.com>
1244
1245 * Makefile.in (LIBSELINUX_LIBS): New.
1246 (LIBES): Add $LIBSELINUX_LIBS.
1247 * eval.c, lisp.h (call7): New function.
1248 * fileio.c [HAVE_LIBSELINUX]: Include selinux headers.
1249 (Ffile_selinux_context, Fset_file_selinux_context):
1250 New functions.
1251 (Fcopy_file): New parameter preserve-selinux-context.
1252 (Frename_file): Preserve selinux context when renaming by copy-file.
1253
1254 2010-04-21 Juanma Barranquero <lekktu@gmail.com>
1255 Eli Zaretskii <eliz@gnu.org>
1256
1257 Don't depend on cm.c or termcap.c on Windows, use stubs.
1258 * makefile.w32-in (OBJ1): Remove cm.$(O) and termcap.$(O).
1259 ($(BLD)/cm.$(O), $(BLD)/termcap.$(O)): Remove.
1260 * w32console.c (current_tty, cost): New vars; lifted from cm.c.
1261 (evalcost, cmputc, cmcheckmagic, cmcostinit, cmgoto, Wcm_clear)
1262 (sys_tputs, sys_tgetstr): New stubs.
1263 * s/ms-w32.h (chcheckmagic, cmcostinit, cmgoto, cmputc, Wcm_clear)
1264 (tputs, tgetstr): New; define to sys_*.
1265
1266 2010-04-20 Juanma Barranquero <lekktu@gmail.com>
1267
1268 * buffer.c (syms_of_buffer) <bidi-display-reordering>: Doc fix.
1269
1270 2010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
1271
1272 * data.c (Fmake_variable_buffer_local, Fmake_local_variable):
1273 Just signal a warning rather than an error when inside a let.
1274 (Fmake_variable_frame_local): Add the same test.
1275
1276 * font.c (syms_of_font): Make the style table vars read-only.
1277
1278 * buffer.h (struct buffer): Remove unused var `direction_reversed'.
1279 * buffer.c (init_buffer_once, syms_of_buffer): Remove its initialization.
1280
1281 * bidi.c (bidi_initialize): Simplify fallback_paragraph_*_re init.
1282
1283 2010-04-20 Eli Zaretskii <eliz@gnu.org>
1284
1285 Fix R2L paragraph display on TTY.
1286
1287 * xdisp.c (unproduce_glyphs): New function.
1288 (display_line): Use it when produced glyphs are discarded from R2L
1289 glyph rows.
1290 (append_composite_glyph): In R2L rows, prepend the glyph rather
1291 than appending it.
1292
1293 * term.c (append_composite_glyph): In R2L rows, prepend the glyph
1294 rather than append it. Set up the resolved_level and bidi_type
1295 attributes of the appended glyph.
1296 (produce_special_glyphs): Mirror the backslash continuation
1297 character in R2L lines.
1298
1299 Implement display of R2L paragraphs in GUI sessions.
1300
1301 * xdisp.c [HAVE_WINDOW_SYSTEM]: Add prototype for
1302 append_stretch_glyph.
1303 (set_cursor_from_row) <cursor_x>: Remove unused variable. Fix
1304 off-by-one error in computing x at end of text in the row.
1305 (append_stretch_glyph): In reversed row, prepend the glyph rather
1306 than append it. Set resolved_level and bidi_type of the glyph.
1307 (extend_face_to_end_of_line): If the row is reversed, prepend a
1308 stretch glyph whose width is such that the rightmost glyph will be
1309 drawn at the right margin of the window. Fix off-by-one error on
1310 TTY frames in testing whether a line needs face extension. Fix
1311 face extension at ZV. If this is the last glyph row, use
1312 DEFAULT_FACE_ID, to avoid painting the rest of the window with the
1313 region face.
1314 (set_cursor_from_row, display_line): Use
1315 MATRIX_ROW_CONTINUATION_LINE_P instead of testing value of
1316 row->continuation_lines_width.
1317 (next_element_from_buffer): Don't call bidi_paragraph_init if we
1318 are at ZV. Fixes a crash when reseated to ZV by
1319 try_window_reusing_current_matrix.
1320 (display_and_set_cursor, erase_phys_cursor): Handle negative HPOS,
1321 which happens with R2L glyph rows. Fixes a crash when inserting a
1322 character at end of an R2L line.
1323 (set_cursor_from_row): Don't be fooled by truncated rows: don't
1324 treat them as having zero-width characters. Improve comments.
1325 Don't reverse pos_before and pos_after for reversed glyph rows.
1326 Set cursor.x to negative value when the cursor might be on the
1327 left fringe.
1328 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): For R2L lines, consider the
1329 left fringe, not the right one.
1330 (notice_overwritten_cursor, draw_phys_cursor_glyph)
1331 (erase_phys_cursor): For reversed cursor_row, support cursor on
1332 the left fringe.
1333
1334 * fringe.c (update_window_fringes): For R2L rows, swap the bitmaps
1335 of continuation indicators on the fringes.
1336 (draw_fringe_bitmap): For reversed glyph rows, allow cursor on the
1337 left fringe.
1338
1339 * w32term.c (w32_draw_window_cursor): For reversed glyph rows,
1340 draw cursor on the left fringe.
1341
1342 * xterm.c (x_draw_window_cursor): For reversed glyph rows, draw
1343 cursor on the left fringe.
1344
1345 * dispnew.c (update_text_area): Handle reversed desired rows when
1346 the cursor is on the left fringe.
1347 (set_window_cursor_after_update): Limit cursor's hpos by -1 from
1348 below, not by 0, for when the cursor is on the left fringe.
1349
1350 2010-04-20 Jan Djärv <jan.h.d@swipnet.se>
1351
1352 * gtkutil.c (xg_event_is_for_scrollbar): Check if grabbed
1353 widget is a scrollbar.
1354
1355 2010-04-20 Kenichi Handa <handa@m17n.org>
1356
1357 * charset.c (char_charset): Consider Vcharset_non_preferred_head
1358 only when the arg CHARSET_LIST is nil.
1359
1360 2010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
1361
1362 Make variable forwarding explicit rather the using special values.
1363 Basically, this makes the structure of buffer-local values and object
1364 forwarding explicit in the type of Lisp_Symbols rather than use
1365 special Lisp_Objects for that. This tends to lead to slightly more
1366 verbose code, but is more C-like, simpler, and makes it easier to make
1367 sure we handled all cases, among other things by letting the compiler
1368 help us check it.
1369 * lisp.h (enum Lisp_Misc_Type, union Lisp_Misc):
1370 Removing forwarding objects.
1371 (enum Lisp_Fwd_Type, enum symbol_redirect, union Lisp_Fwd): New types.
1372 (struct Lisp_Symbol): Make the various forms of variable-forwarding
1373 explicit rather than hiding them inside Lisp_Object "values".
1374 (XFWDTYPE): New macro.
1375 (XINTFWD, XBOOLFWD, XOBJFWD, XKBOARD_OBJFWD): Redefine.
1376 (XBUFFER_LOCAL_VALUE): Remove.
1377 (SYMBOL_VAL, SYMBOL_ALIAS, SYMBOL_BLV, SYMBOL_FWD, SET_SYMBOL_VAL)
1378 (SET_SYMBOL_ALIAS, SET_SYMBOL_BLV, SET_SYMBOL_FWD): New macros.
1379 (SYMBOL_VALUE, SET_SYMBOL_VALUE): Remove.
1380 (struct Lisp_Intfwd, struct Lisp_Boolfwd, struct Lisp_Objfwd)
1381 (struct Lisp_Buffer_Objfwd, struct Lisp_Kboard_Objfwd):
1382 Remove the Lisp_Misc_* header.
1383 (struct Lisp_Buffer_Local_Value): Redefine.
1384 (BLV_FOUND, SET_BLV_FOUND, BLV_VALUE, SET_BLV_VALUE): New macros.
1385 (struct Lisp_Misc_Any): Add filler to get the right size.
1386 (struct Lisp_Free): Use struct Lisp_Misc_Any rather than struct
1387 Lisp_Intfwd.
1388 (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL, DEFVAR_INT)
1389 (DEFVAR_KBOARD): Allocate a forwarding object.
1390 * data.c (do_blv_forwarding, store_blv_forwarding): New macros.
1391 (let_shadows_global_binding_p): New function.
1392 (union Lisp_Val_Fwd): New type.
1393 (make_blv): New function.
1394 (swap_in_symval_forwarding, indirect_variable, do_symval_forwarding)
1395 (store_symval_forwarding, swap_in_global_binding, Fboundp)
1396 (swap_in_symval_forwarding, find_symbol_value, Fset)
1397 (let_shadows_buffer_binding_p, set_internal, default_value)
1398 (Fset_default, Fmake_variable_buffer_local, Fmake_local_variable)
1399 (Fkill_local_variable, Fmake_variable_frame_local)
1400 (Flocal_variable_p, Flocal_variable_if_set_p)
1401 (Fvariable_binding_locus):
1402 * xdisp.c (select_frame_for_redisplay):
1403 * lread.c (Fintern, Funintern, init_obarray, defvar_int)
1404 (defvar_bool, defvar_lisp_nopro, defvar_lisp, defvar_kboard):
1405 * frame.c (store_frame_param):
1406 * eval.c (Fdefvaralias, Fuser_variable_p, specbind, unbind_to):
1407 * bytecode.c (Fbyte_code) <varref, varset>: Adapt to the new symbol
1408 value structure.
1409 * buffer.c (PER_BUFFER_SYMBOL): Move from buffer.h.
1410 (clone_per_buffer_values): Only adjust markers into the current buffer.
1411 (reset_buffer_local_variables): PER_BUFFER_IDX is never -2.
1412 (Fbuffer_local_value, set_buffer_internal_1)
1413 (swap_out_buffer_local_variables):
1414 Adapt to the new symbol value structure.
1415 (DEFVAR_PER_BUFFER): Allocate a Lisp_Buffer_Objfwd object.
1416 (defvar_per_buffer): Take a new arg for the fwd object.
1417 (buffer_lisp_local_variables): Return a proper alist (different fix
1418 for bug#4138).
1419 * alloc.c (Fmake_symbol): Use SET_SYMBOL_VAL.
1420 (Fgarbage_collect): Don't handle buffer_defaults specially.
1421 (mark_object): Handle new symbol value structure rather than the old
1422 special Lisp_Misc_* objects.
1423 (gc_sweep) <symbols>: Free also the buffer-local-value objects.
1424 * term.c (set_tty_color_mode):
1425 * bidi.c (bidi_initialize): Don't access the ->value field directly.
1426 * buffer.h (PER_BUFFER_VAR_OFFSET): Don't bother with
1427 a buffer_local_flags.
1428 * print.c (print_object): Get rid of impossible forwarding objects.
1429
1430 2010-04-19 Eli Zaretskii <eliz@gnu.org>
1431
1432 * bidi.c (bidi_get_type, bidi_get_category)
1433 (bidi_at_paragraph_end, bidi_resolve_weak, bidi_resolve_neutral)
1434 (bidi_type_of_next_char, bidi_level_of_next_char):
1435 Declare static. Use `INLINE' rather than `inline'.
1436
1437 2010-04-19 Juanma Barranquero <lekktu@gmail.com>
1438
1439 * dired.c (Ffile_attributes): Fix typo in docstring.
1440
1441 2010-04-19 Adrian Robert <Adrian.B.Robert@gmail.com>
1442
1443 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
1444 NSInteger (Bug#5811).
1445
1446 2010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1447
1448 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
1449 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
1450
1451 2010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1452
1453 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
1454
1455 2010-04-19 Chong Yidong <cyd@stupidchicken.com>
1456
1457 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
1458 terminal frames (Bug#5837).
1459
1460 2010-04-19 Eli Zaretskii <eliz@gnu.org>
1461
1462 * .gdbinit (xsubchartable): New command.
1463
1464 2010-04-19 Eli Zaretskii <eliz@gnu.org>
1465
1466 * xdisp.c (display_line): Don't write beyond the last glyph row in
1467 the desired matrix. Fixes a crash in "emacs -nw" (bug#5972), see
1468 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00075.html
1469 and
1470 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00213.html
1471
1472 2010-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
1473
1474 * alloc.c (Fpurecopy): Hash-cons if requested.
1475 (syms_of_alloc): Update purify-flag docstring.
1476
1477 2010-04-18 Jan Djärv <jan.h.d@swipnet.se>
1478
1479 * gtkutil.c (xg_set_geometry): Set size in geometry string also.
1480 (x_wm_set_size_hint): Set USER_POS in hint_flags (Bug#5968).
1481
1482 2010-04-17 Eli Zaretskii <eliz@gnu.org>
1483
1484 Fix a crash when an NSM character is inserted at BEGV.
1485
1486 * bidi.c (bidi_init_it): Fix initialization of bidi_it->prev.
1487 (bidi_resolve_weak): Don't use prev.type_after_w1 if it is
1488 NEUTRAL_B or UNKNOWN_BT.
1489
1490 2010-04-16 Eli Zaretskii <eliz@gnu.org>
1491
1492 * xdisp.c (set_cursor_from_row): Don't consider possibility of
1493 other rows with cursor unless they are different from this row and
1494 this row is part of a continued line. (Bug#5943)
1495
1496 2010-04-16 Dan Nicolaescu <dann@ics.uci.edu>
1497
1498 * s/freebsd.h: Restore osreldate.h include.
1499 Suggested by Naohiro Aota.
1500
1501 2010-04-16 Jan Djärv <jan.h.d@swipnet.se>
1502
1503 * xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used.
1504
1505 2010-04-16 Ken Brown <kbrown@cornell.edu> (tiny change)
1506
1507 * s/cygwin.h: Avoid linking against static libgcc.
1508
1509 2010-04-15 Juri Linkov <juri@jurta.org>
1510
1511 * window.c: Add Qscroll_command.
1512 Remove Vscroll_preserve_screen_position_commands.
1513 (window_scroll_pixel_based, window_scroll_line_based): Check the
1514 `scroll-command' property on the last command instead of searching
1515 the last command in Vscroll_preserve_screen_position_commands.
1516 (syms_of_window): Initialize and staticpro `Qscroll_command'.
1517 Put Qscroll_command property on Qscroll_up and Qscroll_down.
1518 (scroll-preserve-screen-position): Doc fix.
1519 (Vscroll_preserve_screen_position_commands): Remove variable.
1520
1521 2010-04-15 Dan Nicolaescu <dann@ics.uci.edu>
1522
1523 * xdisp.c (message): Do not use NO_ARG_ARRAY.
1524
1525 2010-04-14 Dan Nicolaescu <dann@ics.uci.edu>
1526
1527 Reduce cpp use in Makefile.in.
1528 * Makefile.in (DBUS_CFLAGS, DBUS_LIBS, GCONF_CFLAGS, GCONF_LIBS)
1529 (LIBSOUND, CFLAGS_SOUND, RSVG_LIBS, RSVG_CFLAGS, INTERVALS_H)
1530 (GETLOADAVG_LIBS, RUN_TEMACS): Move to the autoconf section.
1531 (ORDINARY_LINK): Remove, defined in src/s/gnu.h.
1532 (CRT0_COMPILE): Remove, inline it in the only user.
1533
1534 2010-04-14 Juri Linkov <juri@jurta.org>
1535
1536 * window.c (keys_of_window): Rebind `C-v' from `scroll-up' to
1537 `scroll-up-command' and `M-v' from `scroll-down' to
1538 `scroll-down-command'.
1539
1540 2010-04-14 Juri Linkov <juri@jurta.org>
1541
1542 * window.c (Vscroll_preserve_screen_position_commands): New variable
1543 with the default value as the list of Qscroll_down and Qscroll_up.
1544 (window_scroll_pixel_based, window_scroll_line_based): Search the
1545 last command in the list Vscroll_preserve_screen_position_commands
1546 instead of comparing with Qscroll_up and Qscroll_down.
1547
1548 2010-04-13 Jan Djärv <jan.h.d@swipnet.se>
1549
1550 * gtkutil.c (xg_set_geometry): Set geometry for PPosition also.
1551 (x_wm_set_size_hint): Dont set position flags, gtk_window_parse_geometry
1552 does that.
1553
1554 * xfns.c (Fx_create_frame, x_create_tip_frame): Set default border width
1555 to zero.
1556
1557 2010-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
1558
1559 * term.c (init_tty): Move common text outside of #ifdef TERMINFO.
1560
1561 Try to solve the problem of spurious EOF chars in long lines of text
1562 sent to interactive subprocesses.
1563 * sysdep.c (child_setup_tty): Do not enable ICANON any more.
1564 (system_process_attributes): Remove unused var `ttotal'.
1565 * process.c (send_process): Don't bother breaking long line with EOF
1566 chars when talking to ttys any more.
1567 (wait_reading_process_output): Output a warning when called in such
1568 a way that it could block without being interruptible.
1569
1570 Try to detect file modification within the same second.
1571 * buffer.h (struct buffer): New field modtime_size.
1572 * buffer.c (reset_buffer): Initialize it.
1573 * fileio.c (Finsert_file_contents, Fwrite_region): Set it.
1574 (Fverify_visited_file_modtime): Check it.
1575 (Fclear_visited_file_modtime, Fset_visited_file_modtime): Clear it.
1576 (Fset_visited_file_modtime): Set (or clear) it.
1577
1578 2010-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
1579
1580 * process.c (status_notify): Remove unused var `ro'.
1581
1582 2010-04-12 Jan Djärv <jan.h.d@swipnet.se>
1583
1584 * xfns.c (select_visual): Don't call error if XGetVisualInfo returns
1585 more than one visual (Bug#5938).
1586
1587 2010-04-12 Dan Nicolaescu <dann@ics.uci.edu>
1588
1589 * Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE):
1590 Undefine.
1591
1592 2010-04-11 Dan Nicolaescu <dann@ics.uci.edu>
1593
1594 Remove C_SWITCH_SYSTEM_TEMACS.
1595 * s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove.
1596 (malloc, realloc, free): Use emacs, not temacs for conditional
1597 definition.
1598
1599 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove.
1600 (ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.
1601
1602 Use autoconf, not cpp for some variables.
1603 * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
1604 (C_SWITCH_X_SITE): Define using autoconf, not cpp.
1605 (ALL_CFLAGS): Use them as make variables.
1606 (really-lwlib, really-oldXMenu): Do not pass them.
1607
1608 2010-04-11 Jan Djärv <jan.h.d@swipnet.se>
1609
1610 * xmenu.c (apply_systemfont_to_dialog): New.
1611 (create_and_show_dialog): Call apply_systemfont_to_dialog if HAVE_XFT.
1612
1613 2010-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
1614
1615 * process.c (exec_sentinel): Preserve current-buffer.
1616
1617 * process.c (read_process_output): Move the save-current-buffer to
1618 apply to both the filter and the non-filter branches.
1619
1620 2010-04-10 Dan Nicolaescu <dann@ics.uci.edu>
1621
1622 * s/msdos.h (UNEXEC): New definition.
1623
1624 2010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1625
1626 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
1627 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
1628
1629 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
1630 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
1631 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
1632 TRY_WINDOW_CHECK_MARGINS.
1633
1634 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
1635 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423). Subtract last glyph's
1636 width only when it is for padding.
1637
1638 2010-04-09 Jan Djärv <jan.h.d@swipnet.se>
1639
1640 * xfns.c (Fx_show_tip): Call try_window in a loop until
1641 fonts_changed_p is zero (Bug#2423).
1642
1643 2010-04-08 Eli Zaretskii <eliz@gnu.org>
1644
1645 * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
1646 the end of TEXT_AREA. (Bug#5856)
1647
1648 2010-04-08 Jan Djärv <jan.h.d@swipnet.se>
1649
1650 * xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of
1651 HAVE_GCONF.
1652
1653 2010-04-08 Eli Zaretskii <eliz@gnu.org>
1654
1655 * bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
1656 prev.orig_type, for resolving type of NSM. (Bug#5858)
1657
1658 2010-04-08 Jan Djärv <jan.h.d@swipnet.se>
1659
1660 * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
1661 (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
1662 in current_font.
1663 (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
1664 (Ffont_get_system_normal_font, xsettings_get_system_normal_font):
1665 New functions.
1666 (syms_of_xsettings): Initialize current_font.
1667 defsubr Sfont_get_system_normal_font.
1668
1669 * xsettings.h (Ffont_get_system_normal_font,
1670 xsettings_get_system_normal_font): Declare.
1671
1672 * xfns.c (extern xlwmenu_default_font): Remove.
1673 (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
1674 to xlwmenu.c.
1675
1676 * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
1677 menu items in UTF-8.
1678
1679 * xmenu.c: include xsettings.h and xlwmenu.h if USE_LUCID.
1680 (apply_systemfont_to_menu): New function.
1681 (set_frame_menubar, create_and_show_popup_menu): Call
1682 apply_systemfont_to_menu.
1683
1684 2010-04-07 Jan Djärv <jan.h.d@swipnet.se>
1685
1686 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
1687 FRAME_LINE_TO_PIXEL_Y.
1688
1689 * xterm.c (x_set_window_size_1): Don't add border_width/height to
1690 pixelwidth/height.
1691
1692 2010-04-07 Dan Nicolaescu <dann@ics.uci.edu>
1693
1694 Simplify code for HP machines.
1695 * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
1696 for GNU_LINUX, not needed.
1697 (UNEXEC, NEED_BSDTTY): Move definitions...
1698 * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
1699
1700 * m/iris4d.h (UNEXEC): Move definition ...
1701 * s/irix6-5.h (UNEXEC): ... here.
1702
1703 2010-04-04 Jan Djärv <jan.h.d@swipnet.se>
1704
1705 * xfns.c (set_machine_and_pid_properties): New function.
1706 (Fx_create_frame): Call set_machine_and_pid_properties.
1707
1708 2010-04-03 Eli Zaretskii <eliz@gnu.org>
1709
1710 * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char): Check
1711 bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
1712 BIDI_EOB. Fixes infloop with vertical cursor motion at ZV.
1713
1714 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
1715 in this function. (Bug#5703)
1716
1717 2010-04-03 Chong Yidong <cyd@stupidchicken.com>
1718
1719 * nsterm.h: Fix last change.
1720
1721 2010-04-03 Dan Nicolaescu <dann@ics.uci.edu>
1722
1723 * m/intel386.h (NO_REMAP): Move definition ...
1724 * s/msdos.h (NO_REMAP): ... here.
1725
1726 * m/vax.h (CRT0_DUMMIES): Remove, unused.
1727
1728 * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
1729 used on those platforms.
1730
1731 2010-04-02 Dan Nicolaescu <dann@ics.uci.edu>
1732
1733 Remove extern errno declarations.
1734 * xterm.c:
1735 * xrdb.c:
1736 * w32term.c:
1737 * unexec.c:
1738 * unexaix.c:
1739 * sysdep.c:
1740 * process.c:
1741 * lread.c:
1742 * keyboard.c:
1743 * floatfns.c:
1744 * filelock.c:
1745 * fileio.c:
1746 * emacs.c (main):
1747 * ecrt0.c:
1748 * dispnew.c:
1749 * callproc.c:
1750 * buffer.c: Remove errno extern declarations.
1751 * s/netbsd.h (NEED_ERRNO): Remove.
1752
1753 2010-04-01 Dan Nicolaescu <dann@ics.uci.edu>
1754
1755 Remove all uses of LIBX11_SYSTEM.
1756 * Makefile.in (LIBX11_SYSTEM): Remove.
1757 * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
1758 instead.
1759
1760 2010-04-01 Eli Zaretskii <eliz@gnu.org>
1761
1762 Remove support for DJGPP v1.x (bug#5813).
1763
1764 * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
1765 * s/msdos.h:
1766 * unexec.c (make_hdr, copy_text_and_data):
1767 * sysdep.c (wait_for_termination, sys_subshell):
1768 * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
1769 (IT_set_terminal_modes, __write, _rename, gethostname)
1770 (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
1771 (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
1772 the value of __DJGPP__.
1773 (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
1774 compatibility code.
1775 * lread.c:
1776 * gmalloc.c (memalign):
1777 * fileio.c (Fcopy_file, check_executable, Ffile_modes):
1778 * emacs.c (main):
1779 * dosfns.c (init_dosfns):
1780 * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
1781
1782 2010-04-01 Eli Zaretskii <eliz@gnu.org>
1783
1784 * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
1785 string with `cursor' property comes from an `after-string'
1786 overlay. (Bug#5816)
1787
1788 2010-04-01 Glenn Morris <rgm@gnu.org>
1789
1790 * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
1791 Define as Makefile variables.
1792 (LIBX): Use above variables rather than directly using autoconf.
1793
1794 2010-03-31 Dan Nicolaescu <dann@ics.uci.edu>
1795
1796 Clean up BSD_SYSTEM use.
1797 * xterm.c:
1798 * process.c:
1799 * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
1800 for including <sys/ioctl.h>.
1801 * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
1802 code is only used for MSDOS.
1803
1804 2010-03-31 Juri Linkov <juri@jurta.org>
1805
1806 * image.c: Add `Qextension_data'.
1807 (syms_of_image): Initialize and staticpro `Qextension_data'.
1808 (Fimage_metadata): Rename from `Fimage_extension_data'.
1809 (gif_load): Put GIF extension data to the property
1810 `Qextension_data'.
1811
1812 2010-04-05 Chong Yidong <cyd@stupidchicken.com>
1813
1814 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
1815 terminal frames (Bug#5837).
1816
1817 2010-03-31 Chong Yidong <cyd@stupidchicken.com>
1818
1819 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
1820 * nsterm.h: Fix prototype.
1821
1822 2010-03-31 Eli Zaretskii <eliz@gnu.org>
1823
1824 * xdisp.c (highlight_trailing_whitespace): Support highlight of
1825 trailing whitespace in right-to-left rows.
1826
1827 2010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
1828
1829 Get rid of the direct_output optimizations.
1830 * keyboard.c (nonundocount): Remove extern declaration.
1831 (command_loop_1): Remove brittle optimisation for cheap and
1832 common operations.
1833 * xdisp.c (redisplay_internal): Don't bother checking
1834 redisplay_performed_directly_p any more.
1835 * sysdep.c (init_sys_modes): Don't call direct_output_forward_char
1836 any more.
1837 * dispnew.c (redisplay_performed_directly_p)
1838 (direct_output_for_insert, direct_output_forward_char):
1839 * dispextern.h (redisplay_performed_directly_p)
1840 (direct_output_for_insert, direct_output_forward_char): Remove.
1841 * cmds.c (nonundocount): Make it static.
1842
1843 2010-03-31 Bernhard Herzog <bh@intevation.de> (tiny change)
1844
1845 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
1846
1847 2010-03-31 Jan Djärv <jan.h.d@swipnet.se>
1848
1849 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
1850 invisible (Bug#5766).
1851
1852 2010-03-31 Adrian Robert <adrian.b.robert@gmail.com>
1853
1854 * xdisp.c (x_consider_frame_title, update_window_cursor):
1855 Remove HAVE_NS conditionals.
1856 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
1857
1858 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
1859 filename for the title.
1860 (ns_set_doc_edited): Do nothing if the selected window is a
1861 minibuffer window.
1862
1863 * nsterm.h: Add prototypes for ns_set_name_as_filename and
1864 ns_set_doc_edited.
1865
1866 * nsterm.m: Remove unneeded prototype.
1867
1868 2010-03-31 Glenn Morris <rgm@gnu.org>
1869
1870 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
1871 in the DOC file. (Bug#5336)
1872
1873 2010-03-31 Chong Yidong <cyd@stupidchicken.com>
1874
1875 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
1876
1877 2010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
1878
1879 * window.c (keys_of_window): Remove redundant/overridden bindings.
1880
1881 2010-03-30 Eli Zaretskii <eliz@gnu.org>
1882
1883 * xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
1884 Restore original behavior when the iterator is not bidi_p.
1885
1886 2010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
1887
1888 * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
1889
1890 2010-03-30 Eli Zaretskii <eliz@gnu.org>
1891
1892 * bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
1893 are outside the range of cached character positions.
1894
1895 2010-03-30 Juanma Barranquero <lekktu@gmail.com>
1896
1897 * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
1898
1899 2010-03-30 Eli Zaretskii <eliz@gnu.org>
1900
1901 Initial support for bidirectional editing.
1902
1903 * Makefile.in (obj): Include bidi.o.
1904 (bidi.o): New target.
1905
1906 * makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
1907 ($(BLD)/bidi.$(O)): New target.
1908
1909 * bidi.c: New file.
1910
1911 * buffer.h (struct buffer): New members bidi_display_reordering
1912 and bidi_paragraph_direction.
1913
1914 * buffer.c (init_buffer_once): Initialize bidi_display_reordering
1915 and bidi_paragraph_direction.
1916 (syms_of_buffer): Declare Lisp variables bidi-display-reordering
1917 and bidi-paragraph-direction.
1918 (Fbuffer_swap_text): Swap the values of
1919 bidi_display_reordering and bidi_paragraph_direction.
1920
1921 * dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
1922 (bidi_type_t, bidi_dir_t): New types.
1923 (bidi_saved_info, bidi_stack, bidi_it): New structures.
1924 (struct it): New members bidi_p, bidi_it, paragraph_embedding,
1925 prev_stop, base_level_stop, and eol_pos.
1926 (bidi_init_it, bidi_get_next_char_visually): New prototypes.
1927 (IT_STACK_SIZE): Enlarge to 5.
1928 (struct glyph_row): New member reversed_p.
1929 <string_buffer_position>: Update prototype.
1930 (PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
1931 glyph_row if bidi_it.paragraph_dir == R2L.
1932 (struct glyph): New members resolved_level and bidi_type.
1933
1934 * dispnew.c (direct_output_forward_char): Give up if we need bidi
1935 processing or buffer's direction is right-to-left.
1936 (prepare_desired_row): Preserve the reversed_p flag.
1937 (row_equal_p): Compare the reversed_p attributes as well.
1938
1939 * xdisp.c (init_iterator): Initialize it->bidi_p. Call
1940 bidi_init_it and set it->paragraph_embedding from the current
1941 buffer's value of bidi_paragraph_direction.
1942 (reseat_1): Initialize bidi_it.first_elt.
1943 (set_iterator_to_next, next_element_from_buffer): Use the value of
1944 paragraph_embedding to determine the paragraph direction.
1945 (set_iterator_to_next): Under bidi reordering, call
1946 bidi_get_next_char_visually. Call bidi_paragraph_init if the
1947 new_paragraph flag is set in the bidi iterator.
1948 (next_element_from_buffer): If bidi_it.first_elt is set,
1949 initialize paragraph direction and find the first character to
1950 display in the visual order. If reseated to a middle of a line,
1951 prime the bidi iterator starting at the line's beginning. Handle
1952 the situation where we overstepped stop_charpos due to
1953 non-linearity of the bidi iteration. Likewise for when we back up
1954 beyond the previous stop_charpos. When moving across stop_charpos,
1955 record it in prev_stop.
1956 (display_line): Set row->end and it->start for the next row to the
1957 next character in logical order. Always extend reversed_p rows to
1958 the end of line, even if they end at ZV. Copy the reversed_p flag
1959 to the next glyph row. Keep calling set_cursor_from_row for
1960 bidi-reordered rows even if we already have a possible candidate
1961 for cursor position. Set row_end after all the row's glyphs have
1962 been produced, by looping over the glyphs. Record the position
1963 after EOL in it->eol_pos, and use it to set end_pos of the last
1964 row produced for a continued line.
1965 <Qright_to_left, Qleft_to_right>: New variables.
1966 (syms_of_xdisp): Initialize and staticpro them.
1967 (string_buffer_position_lim): New function.
1968 (string_buffer_position): Most of code moved to
1969 string_buffer_position_lim. Last argument and return value are
1970 now EMACS_INT; all callers changed.
1971 (set_cursor_from_row): Rewritten to support bidirectional text and
1972 reversed glyph rows.
1973 (text_outside_line_unchanged_p, try_window_id): Disable
1974 optimizations if we are reordering bidirectional text and the
1975 paragraph direction can be affected by the change.
1976 (append_glyph, append_composite_glyph)
1977 (produce_image_glyph, append_stretch_glyph): Set the
1978 resolved_level and bidi_type members of each glyph.
1979 (append_glyph): If the glyph row is reversed, prepend the glyph
1980 rather than appending it.
1981 (handle_stop_backwards): New function.
1982 (reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
1983 (reseat): call handle_stop_backwards to recompute prev_stop and
1984 base_level_stop for the new position.
1985 (handle_invisible_prop): Under bidi iteration, skip invisible text
1986 using bidi_get_next_char_visually. If we are `reseat'ed, init the
1987 paragraph direction. Update IT->prev_stop after skipping
1988 invisible text.
1989 (move_it_in_display_line_to): New variables prev_method
1990 and prev_pos. Compare for strict equality in
1991 BUFFER_POS_REACHED_P.
1992 (try_cursor_movement): Examine all the candidate rows that occlude
1993 point, to return the best match. If rows are bidi-reordered
1994 and point moved backwards, back up to the row that is not a
1995 continuation line, and start looking for a suitable row from
1996 there.
1997
1998 * term.c (append_glyph): Reverse glyphs by pre-pending them,
1999 rather than appending, if the glyph_row's reversed_p flag is set.
2000 Set the resolved_level and bidi_type members of each glyph.
2001
2002 * .gdbinit (pbiditype): New command.
2003 (pgx): Use it to display bidi level and type of the glyph.
2004 (pitx): Display some bidi information about the iterator.
2005 (prowlims, pmtxrows): New commands.
2006
2007 2010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
2008
2009 Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
2010 * s/usg5-4.h (LIBS_DEBUG):
2011 * s/irix6-5.h (C_DEBUG_SWITCH):
2012 * s/gnu-linux.h (LIBS_DEBUG):
2013 * s/darwin.h (LIBS_DEBUG):
2014 * s/bsd-common.h (LIBS_DEBUG):
2015 * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
2016 * m/iris4d.h (LIBS_DEBUG):
2017 * m/hp800.h (LIBS_DEBUG): Remove definitions.
2018
2019 * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
2020 (LIBS_DEBUG): Remove definition.
2021
2022 2010-03-27 Chong Yidong <cyd@stupidchicken.com>
2023
2024 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
2025 Windows.
2026
2027 2010-03-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2028
2029 * process.c (Fmake_network_process): Don't call turn_on_atimers around
2030 `connect' (Bug#5723).
2031
2032 2010-03-25 Helmut Eller <eller.helmut@gmail.com>
2033
2034 * process.c (Fmake_network_process): Call `select' for interrupted
2035 `connect' rather than creating new socket (Bug#5173).
2036
2037 2010-03-24 Jan Djärv <jan.h.d@swipnet.se>
2038
2039 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
2040
2041 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
2042
2043 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
2044
2045 2010-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2046
2047 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
2048 XLoadQueryFont.
2049
2050 2010-03-24 Kenichi Handa <handa@m17n.org>
2051
2052 * coding.c (decode_coding_ccl): Fix previous change for the
2053 multibyte case.
2054 (encode_coding_ccl): Don't setup ccl program here. Fix for the
2055 case that the output buffer is fullfilled.
2056 (encode_coding): Setup ccl program here.
2057
2058 2010-03-24 Andreas Politz <politza@fh-trier.de> (tiny change)
2059
2060 * editfns.c (Fformat): Account for string precision when computing
2061 field width (Bug#5710).
2062
2063 2010-03-23 Dan Nicolaescu <dann@ics.uci.edu>
2064
2065 * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
2066
2067 Simplify LIBS_MACHINE definitions.
2068 * m/hp800.h (LIBS_MACHINE): Remove, same as default.
2069 * m/iris4d.h (LIBS_MACHINE): Likewise.
2070 * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
2071 * s/aix4-2.h (LIBS_SYSTEM): ... here.
2072 * s/netbsd.h: Remove commented out code.
2073
2074 2010-03-22 Dan Nicolaescu <dann@ics.uci.edu>
2075
2076 Remove dead code dealing with POSIX_SIGNALS.
2077 * atimer.c (set_alarm): Remove dead code, all USG systems define
2078 POSIX_SIGNALS.
2079 * data.c (arith_error): Likewise.
2080 * keyboard.c (input_available_signal, handle_user_signal)
2081 (interrupt_signal): Likewise.
2082 * process.c (sigchld_handler): Likewise.
2083 (create_process): Remove if 0 code. Remove HPUX conditional when
2084 !defined (POSIX_SIGNALS), it cannot be true.
2085 * syssignal.h: Remove USG5_4 and USG conditionals when
2086 !POSIX_SIGNALS, they cannot be true.
2087
2088 * keyboard.c (Fset_input_interrupt_mode): Remove code depending on
2089 NO_SOCK_SIGIO, not used anymore.
2090
2091 2010-03-21 Dan Nicolaescu <dann@ics.uci.edu>
2092
2093 * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
2094 support vax on BSDs.
2095
2096 * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
2097 * s/aix4-2.h (ORDINARY_LINK): ... here.
2098
2099 2010-03-21 Andreas Schwab <schwab@linux-m68k.org>
2100
2101 * Makefile.in (abs_builddir): Define.
2102 (bootstrap_exe): Use it.
2103 (VPATH): Use $(srcdir) instead of @srcdir@.
2104
2105 2010-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
2106
2107 * Makefile.in (bootstrap_exe): Use an absolute name.
2108
2109 2010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
2110
2111 Remove support for old GNU/Linux using libc version 5.
2112 * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
2113 * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
2114
2115 Consolidate redundant definitions in s/bsd-common.h.
2116 * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
2117 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
2118 (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
2119 doing it in all files that include this one.
2120 * s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
2121 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
2122 (LDAV_SYMBOL, KERNEL_FILE): Remove.
2123 * s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
2124 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
2125 (LDAV_SYMBOL, KERNEL_FILE): Remove.
2126 * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
2127 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
2128 (LDAV_SYMBOL, KERNEL_FILE): Remove.
2129
2130 Consolidate redundant definitions.
2131 * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
2132 it's undefined in all files that include this one.
2133 (POSIX_SIGNALS): Define here instead of doing it in all files that
2134 include this one.
2135 * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
2136 (POSIX_SIGNALS): Do not define.
2137 * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
2138 (POSIX_SIGNALS): Do not define.
2139 * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
2140 (POSIX_SIGNALS): Do not define.
2141
2142 Remove support for old UNIX System V systems.
2143 * s/unixware.h: Add the contents of s/usg-5-4-2.h.
2144 * s/usg-5-4-2.h: Remove.
2145
2146 Remove support for Solaris on PPC and for old versions.
2147 * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
2148 (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
2149 that cancel each other.
2150 * s/sol2-3.h:
2151 * s/sol2-4.h:
2152 * s/sol2-5.h: Remove.
2153 * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
2154 (NO_REMAP): Remove, unused.
2155 (UNEXEC): Move definition ...
2156 * s/aix4-2.h (UNEXEC): ... here.
2157
2158 * s/openbsd.h: Remove support for non-ELF and for systems that do
2159 not support shared libraries.
2160 * s/netbsd.h:
2161 * s/freebsd.h: Likewise.
2162
2163 2010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
2164
2165 Remove non-working support for lynxos 3.0.
2166 * s/lynxos.h: Remove file.
2167
2168 * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
2169 COFF_BSD_SYMBOLS, nothing defines it anymore.
2170
2171 2010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
2172
2173 Remove obsolete uses of HAVE_SHM.
2174 * emacs.c (standard_args):
2175 (Fdump_emacs):
2176 (syms_of_emacs): Remove code depending on HAVE_SHM.
2177
2178 * alloc.c: Remove HAVE_SHM dependent definition.
2179
2180 * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
2181
2182 2010-03-18 Glenn Morris <rgm@gnu.org>
2183
2184 * emacs.c (USAGE4): Hard-code bug address.
2185 (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
2186 (bug_reporting_address): Remove.
2187 (main): Don't call bug_reporting_address.
2188
2189 * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
2190 (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
2191
2192 2010-03-15 Chong Yidong <cyd@stupidchicken.com>
2193
2194 * xfns.c (Fx_create_frame):
2195 * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
2196 on left.
2197
2198 2010-03-13 Andreas Politz <politza@fh-trier.de> (tiny change)
2199
2200 * editfns.c (Fformat): Account for string precision when computing
2201 field width (Bug#5710).
2202
2203 2010-03-12 Chong Yidong <cyd@stupidchicken.com>
2204
2205 * xfns.c (Fx_create_frame): Set default to Qright.
2206
2207 * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
2208 all window systems.
2209
2210 2010-03-12 Eli Zaretskii <eliz@gnu.org>
2211
2212 These changes remove termcap.c from the build on Posix platforms.
2213 * Makefile.in (termcapobj): Move termcap.o from here...
2214 (MSDOS_OBJ): ...to here.
2215 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
2216 now identical to when LIBS_TERMCAP is defined.
2217
2218 * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
2219
2220 * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
2221
2222 * config.in: Regenerated. (See top-level ChangeLog.)
2223
2224 2010-03-10 Chong Yidong <cyd@stupidchicken.com>
2225
2226 * Branch for 23.2.
2227
2228 2010-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
2229
2230 Cleanup setup of gl_state in various parts of the code.
2231 * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
2232 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
2233 * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
2234 (skip_chars):
2235 * regex.c (regex_compile): Use it.
2236 (re_compile_pattern): Don't set gl_state.current_syntax_table since
2237 it's now set in regex_compile when/if we need it.
2238
2239 2010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
2240
2241 Make it possible to C-g in a tight bytecode loop again (bug#5680).
2242 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
2243 (QUIT): Use it to consolidate code and remove redundancy.
2244 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
2245
2246 * regex.c (regex_compile): Setup gl_state as well.
2247
2248 * syntax.c (skip_chars): Setup gl_state (bug#3823).
2249 (in_classes): Use CONSP before XCAR/XCDR.
2250
2251 2010-03-03 Chong Yidong <cyd@stupidchicken.com>
2252
2253 * keymap.c (Fwhere_is_internal): Use Fequal to compare
2254 definitions, so that keyboard macros are correctly handled
2255 (Bug#5481).
2256
2257 2010-03-02 Eli Zaretskii <eliz@gnu.org>
2258
2259 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
2260 text that could be relocated inside the call to emacs_mule_char.
2261 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
2262 (CODING_DECODE_CHAR): Add a comment describing its purpose.
2263
2264 2010-03-02 Kenichi Handa <handa@m17n.org>
2265
2266 * character.c (parse_str_as_multibyte): Fix handling of the
2267 multibyte form of raw-bytes.
2268 (str_as_multibyte): Likewise.
2269
2270 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
2271 form of raw-bytes.
2272
2273 2010-02-28 Chong Yidong <cyd@stupidchicken.com>
2274
2275 * charset.c (load_charset_map_from_file)
2276 (load_charset_map_from_vector): Zero out allocated
2277 charset_map_entries before using them.
2278
2279 2010-02-27 Andreas Schwab <schwab@linux-m68k.org>
2280
2281 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
2282
2283 2010-02-27 Chong Yidong <cyd@stupidchicken.com>
2284
2285 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
2286 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
2287
2288 2010-02-26 Kenichi Handa <handa@m17n.org>
2289
2290 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
2291
2292 * xdisp.c (reseat_to_string): Fix previous change.
2293
2294 2010-02-26 David Reitter <david.reitter@gmail.com>
2295
2296 * nsfont.m (nsfont_draw): ns_antialias_text should be a
2297 Lisp_Object (Bug#4736).
2298
2299 2010-02-25 Kenichi Handa <handa@m17n.org>
2300
2301 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
2302
2303 2010-02-24 Jan Djärv <jan.h.d@swipnet.se>
2304
2305 * xterm.c (XTflash): Move declarations before statements.
2306
2307 * gtkutil.c (xg_get_gdk_display): Remove (unused).
2308 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
2309 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
2310 (xg_create_tool_bar): Remove unused variables.
2311 (x_wm_set_size_hint): Move declarations before statements.
2312 (xg_create_frame_widgets): Remove variable grav.
2313
2314 2010-02-21 Chong Yidong <cyd@stupidchicken.com>
2315
2316 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
2317
2318 2010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
2319
2320 * term.c (fatal): Add a final \n if needed (bug#5596).
2321
2322 2010-02-18 Chong Yidong <cyd@stupidchicken.com>
2323
2324 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
2325
2326 2010-02-18 Glenn Morris <rgm@gnu.org>
2327
2328 * callint.c (Finteractive): Doc fix.
2329
2330 2010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
2331
2332 * coding.c (record_conversion_result):
2333 Handle CODING_RESULT_INSUFFICIENT_DST.
2334 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
2335 memory allocation error.
2336
2337 2010-02-17 Kenichi Handa <handa@m17n.org>
2338
2339 * coding.c (decode_coding_ccl): Don't setup ccl program here.
2340 Fix for the case that the output buffer is fullfilled.
2341 (decode_coding): Setup ccl program here. Keep looping when the
2342 decoder stopped because the output buffer is
2343 fullfilled (bug#5534).
2344
2345 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
2346
2347 2010-02-13 Jan Djärv <jan.h.d@swipnet.se>
2348
2349 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
2350 bug #5571.
2351 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
2352 overdrawn.
2353
2354 2010-02-10 Jan Djärv <jan.h.d@swipnet.se>
2355
2356 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
2357 doing_interact here.
2358 (ice_connection_closed): New function.
2359 (x_session_check_input, smc_die_CB, ice_io_error_handler)
2360 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
2361 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
2362 returns I/O error.
2363 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
2364 bug #5512.
2365
2366 2010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
2367
2368 * nsfont.m (nsfont_open): The system's value for the font descent
2369 is negative, so round it down to avoid clipping.
2370
2371 2010-02-06 Chong Yidong <cyd@stupidchicken.com>
2372
2373 * charset.c (load_charset_map_from_file)
2374 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
2375 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
2376
2377 2010-02-05 Chong Yidong <cyd@stupidchicken.com>
2378
2379 * charset.c (load_charset_map_from_file): Allocate large
2380 charset_map_entries structure on the heap rather than the stack.
2381 (Bug#5526).
2382
2383 2010-01-31 Kenichi Handa <handa@m17n.org>
2384
2385 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
2386 size in NAME is invalid, return -1 (Bug#5396).
2387
2388 2010-01-31 Chong Yidong <cyd@stupidchicken.com>
2389
2390 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
2391 <deactivated@gmail.com> (Bug#3605).
2392
2393 2010-01-31 David De La Harpe Golden <david@harpegolden.net>
2394
2395 * fileio.c (Frename_file): Correctly rename symlinks to
2396 directories (Bug#5496).
2397
2398 2010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
2399
2400 * nsterm.m (ns_ring_bell): Handle visible bell like X.
2401
2402 2010-01-30 Andreas Schwab <schwab@linux-m68k.org>
2403
2404 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
2405
2406 2010-01-29 Chong Yidong <cyd@stupidchicken.com>
2407
2408 * frame.c (DEFAULT_ROWS): Change default to 35.
2409
2410 * xfns.c (x_default_font_parameter): Change default XFT font to
2411 monospace-10 (Bug#3643).
2412
2413 2010-01-29 Eli Zaretskii <eliz@gnu.org>
2414
2415 * w32inevt.c (key_event): Remove unnecessary comparison of
2416 event->uChar.AsciiChar with 128.
2417
2418 2010-01-28 Chong Yidong <cyd@stupidchicken.com>
2419
2420 * fileio.c (Frename_file): Fix last change (Bug#5487).
2421
2422 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
2423
2424 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
2425
2426 2010-01-28 Jan Djärv <jan.h.d@swipnet.se>
2427
2428 * xfns.c (Fx_create_frame): Remove window size matching code from
2429 2010-01-15.
2430 (x_get_current_desktop, x_get_desktop_workarea): Remove.
2431
2432 2010-01-27 Jason Rumney <jasonr@gnu.org>
2433
2434 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
2435 (key_event): Use unicode for characters 128 and higher (Bug#4567).
2436
2437 2010-01-27 Kenichi Handa <handa@m17n.org>
2438
2439 * regex.c (analyse_first): Fix setting of fastmap for unibyte
2440 pattern string (Bug#4209).
2441
2442 2010-01-27 David De La Harpe Golden <david@harpegolden.net>
2443
2444 * fileio.c (Frename_file): Call copy-directory and
2445 delete-directory for directories, in order to handle cross-device
2446 renaming (Bug#3353).
2447
2448 2010-01-25 Jan Djärv <jan.h.d@swipnet.se>
2449
2450 * xfns.c (Fx_create_frame): If frame height is too big, try
2451 sizes 24 and 10. Bug #3643.
2452
2453 2010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
2454
2455 Try and fix bug#788, hopefully for real this time.
2456 * keymap.c (shadow_lookup): Add `remap' arg.
2457 (describe_map, describe_vector): Update calls to shadow_lookup.
2458 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
2459 `remapped' so this flag is applicable to `sequence'. Be careful to
2460 perform remapping during shadow_lookup check of remapped_sequences.
2461
2462 2010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
2463
2464 * image.c (png_load): Use png_sig_cmp instead of the obsolete
2465 png_check_sig, which has been removed in libpng 1.4.
2466
2467 2010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
2468
2469 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
2470 lacks this header file).
2471
2472 2010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2473
2474 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
2475 as in Emacs 22.
2476
2477 2010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2478
2479 * lisp.h (make_pure_string): String pointer arg now points to const.
2480
2481 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
2482 args now point to const.
2483
2484 2010-01-22 Eli Zaretskii <eliz@gnu.org>
2485
2486 * lread.c (Fload): Don't treat files without .elc extension as
2487 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
2488 them. (bug#5303)
2489
2490 2010-01-20 Kenichi Handa <handa@m17n.org>
2491
2492 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
2493 treat the source as actual byte sequence.
2494
2495 2010-01-19 Alan Mackenzie <acm@muc.de>
2496
2497 Fix spurious before-change-functions invocation from (insert ?\n).
2498 * textprop.c (set_text_properties): Rename parameter
2499 `signal_after_change_p' to `coherent_change_p', and make the
2500 invocation of `modify_region' conditional on it.
2501
2502 2010-01-19 Jan Djärv <jan.h.d@swipnet.se>
2503
2504 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
2505 for debug purpose.
2506 (syms_of_xsettings): Declare xft-settings.
2507
2508 2010-01-18 Chong Yidong <cyd@stupidchicken.com>
2509
2510 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
2511
2512 2010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
2513
2514 * xterm.c (event_handler_gdk): Block input (Bug#5037).
2515
2516 2010-01-16 Chong Yidong <cyd@stupidchicken.com>
2517
2518 * emacs.c (standard_args): Adjust arg priorities to reflect how
2519 they are processed in startup.el.
2520
2521 2010-01-16 Andreas Schwab <schwab@linux-m68k.org>
2522
2523 * Makefile.in (lisp, shortlisp): Update.
2524
2525 2010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
2526
2527 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
2528 code, link the new kboard into all_kboard before running Lisp code,
2529 and protect the new terminal with GCPRO (Bug#5365).
2530 (x_term_init): Remove unused var `atom'.
2531 (x_delete_display, x_delete_terminal): Remove unused var `i'.
2532
2533 2010-01-15 Jan Djärv <jan.h.d@swipnet.se>
2534
2535 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
2536 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
2537 to find out usable size of the desktop. Don't make frames larger than
2538 this. Bug #3643.
2539
2540 2010-01-15 Kenichi Handa <handa@m17n.org>
2541
2542 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
2543
2544 2010-01-15 Chong Yidong <cyd@stupidchicken.com>
2545
2546 * nsterm.m (Qnone): Define.
2547
2548 * nsfns.m (Qnone): Move definition to nsterm.m.
2549
2550 2010-01-14 Kenichi Handa <handa@m17n.org>
2551
2552 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
2553 systems.
2554
2555 2010-01-14 Kenichi Handa <handa@m17n.org>
2556
2557 Make auto-composition work on all buffers even if they are
2558 fundamental mode.
2559
2560 * composite.c (Vauto_composition_mode): New variable.
2561 (composition_compute_stop_pos): Check Vauto_composition_mode
2562 instead of Vauto_composition_function.
2563 (composition_adjust_point, Ffind_composition_internal): Likewise.
2564 (syms_of_composite): Declare Lisp variable
2565 "auto-composition-mode" here.
2566
2567 2010-01-13 Chong Yidong <cyd@stupidchicken.com>
2568
2569 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
2570 during call to vendor-specific-keysyms (Bug#5365).
2571
2572 2010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2573
2574 * keyboard.c (input_available_signal) [SYNC_INPUT]:
2575 Call SIGNAL_THREAD_CHECK (Bug#5333).
2576
2577 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
2578 Call SIGNAL_THREAD_CHECK.
2579
2580 2010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
2581
2582 Try to fix bug#5314. This is probably not the final word, tho.
2583 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
2584 recent-auto-save-p as a side-effect.
2585 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
2586 * buffer.c (Fkill_buffer, reset_buffer):
2587 * editfns.c (Fsubst_char_in_region):
2588 * fileio.c (Finsert_file_contents, Fdo_auto_save)
2589 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
2590
2591 2010-01-13 Kenichi Handa <handa@m17n.org>
2592
2593 Display buffer name, etc. in mode line by composing correctly.
2594
2595 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
2596 STRING is not nil.
2597 (display_mode_element): Adjust for the change of
2598 decode_mode_spec and display_line.
2599 (decode_mode_spec): Change arg MULTIBYTE to STRING.
2600 (display_string): Handle the case that STRING is non-null and
2601 LISP_STRING is not nil.
2602
2603 * xterm.c (x_draw_composite_glyph_string_foreground):
2604 Pay attention to s->face->overstrike.
2605
2606 * composite.c (composition_reseat_it): Don't check PT if STRING is
2607 non nil.
2608
2609 2010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2610
2611 * keyboard.c (read_char): Don't apply previous change when current
2612 buffer is unchanged by command execution.
2613
2614 2010-01-12 Jan Djärv <jan.h.d@swipnet.se>
2615
2616 * keyboard.c (read_char): Return after executing from special map.
2617
2618 2010-01-12 Glenn Morris <rgm@gnu.org>
2619
2620 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
2621 bug-gnu-emacs rather than emacs-pretest-bug.
2622
2623 2010-01-11 Chong Yidong <cyd@stupidchicken.com>
2624
2625 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
2626 initializing the Lisp variables that depend on them.
2627
2628 2010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2629
2630 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
2631 Clear areas that will not be updated after change of menu bar lines.
2632 Clear the menu bar window's current matrix when the window gets empty.
2633
2634 2010-01-09 Chong Yidong <cyd@stupidchicken.com>
2635
2636 * intervals.h, textprop.c (extend_property_ranges): Return value
2637 and args changed. Discard properties that begin at or after the
2638 new end (Bug#5306).
2639
2640 * editfns.c (Fformat): Caller changed.
2641
2642 * nsterm.m (ns_set_default_prefs): Delete function.
2643 (syms_of_nsterm): Initialize ns_command_modifier,
2644 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
2645 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
2646
2647 * xdisp.c (pos_visible_p): Check for invisible text at the correct
2648 position (Bug#4040).
2649
2650 2010-01-09 Eli Zaretskii <eliz@gnu.org>
2651
2652 * editfns.c (Ffloat_time): Doc fix.
2653
2654 2010-01-09 Jan Djärv <jan.h.d@swipnet.se>
2655
2656 * xfns.c (Fx_create_frame): Don't create frame larger than display
2657 by default bug#3643.
2658
2659 2010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2660
2661 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
2662 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
2663 windows above internal border.
2664
2665 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
2666 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
2667 windows above internal border.
2668
2669 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
2670 tool bar windows specially.
2671
2672 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
2673
2674 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
2675 specially.
2676 (XTflash): Take account of menu bar height.
2677
2678 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
2679 specially.
2680
2681 2010-01-08 Jan Djärv <jan.h.d@swipnet.se>
2682
2683 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
2684 also be true before we can return early (bug #5339).
2685
2686 2010-01-06 David Reitter <david.reitter@gmail.com>
2687
2688 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
2689 (Fns_display_usable_bounds): Rewrite, computing bounds properly
2690 (Bug#3233).
2691
2692 2010-01-06 Jan Djärv <jan.h.d@swipnet.se>
2693
2694 * font.c (font_open_entity): Enable chache and call cached_font_ok
2695 for the driver if defined.
2696 (QCuser_spec): New symbol.
2697 (font_spec_from_name): Save name as user-spec.
2698 (font_load_for_lface): Keep user-spec instead of name.
2699 (font_open_by_name): Save name as user-spec.
2700 (syms_of_font): Initialize QCuser_spec.
2701 (font_clear_prop): Clear name if it exists in font (bug#5157).
2702
2703 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
2704 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
2705 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
2706
2707 * font.h (struct font_driver): Add cached_font_ok.
2708
2709 * xterm.c (x_clear_frame): Queue draw for scroll bars.
2710
2711 2010-01-05 Jan Djärv <jan.h.d@swipnet.se>
2712
2713 * xterm.c (x_new_font): Move code for setting rows/cols before
2714 resizing ...
2715 (x_set_window_size): ... to here. Bug #2568.
2716
2717 * gtkutil.c (xg_clear_under_internal_border): New function.
2718 (xg_frame_resized, xg_frame_set_char_size):
2719 Call xg_clear_under_internal_border.
2720 (xg_update_scrollbar_pos): Clear under old scroll bar position.
2721
2722 2010-01-05 Chong Yidong <cyd@stupidchicken.com>
2723
2724 * keyboard.c (read_key_sequence): Catch keyboard switch after
2725 making a new tty frame (Bug#5095).
2726
2727 2010-01-05 Kenichi Handa <handa@m17n.org>
2728
2729 * fontset.c (fontset_find_font): Fix getting the frame pointer.
2730
2731 2010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
2732
2733 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
2734 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
2735 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
2736
2737 2010-01-03 Michael Albinus <michael.albinus@gmx.de>
2738
2739 * dbusbind.c (xd_add_watch): Improve debug message.
2740 (xd_remove_watch): Improve debug message. If DATA is the session
2741 bus, unset D-Bus session environment.
2742 (Fdbus_init_bus): Pass the bus as argument to
2743 dbus_connection_set_watch_functions. (Bug#5283)
2744
2745 2010-01-01 Chong Yidong <cyd@stupidchicken.com>
2746
2747 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
2748
2749 * lread.c (syms_of_lread): Make it clearer that these are the
2750 names of loaded files (Bug#5068).
2751
2752 * eval.c (run_hook_with_args): Handle the case where the global
2753 value has the obsolete single-function form (Bug#5026).
2754
2755 2009-12-27 Chong Yidong <cyd@stupidchicken.com>
2756
2757 * minibuf.c (Fall_completions): Minor optimization.
2758
2759 2009-12-26 Eli Zaretskii <eliz@gnu.org>
2760
2761 * .gdbinit (pgx): Fix display of composite glyphs.
2762 Display cmp.from and cmp.to as well.
2763 (pitx): Fix last change.
2764
2765 2009-12-25 Kenichi Handa <handa@m17n.org>
2766
2767 * composite.h (composition_adjust_point): Update prototype.
2768
2769 * composite.c (composition_reseat_it): Don't make a composition
2770 spanning over point.
2771 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
2772 composable characters.
2773 (composition_adjust_point): New arg NEW_PT. Callers changed.
2774
2775 * keyboard.c (command_loop_1): Force redisplay if the last point
2776 was within a composition.
2777 (adjust_point_for_property): Don't adjust point for automatic
2778 composition when called after buffer modification.
2779
2780 2009-12-19 Eli Zaretskii <eliz@gnu.org>
2781
2782 * .gdbinit (pitx): Don't use enum names, use their values.
2783 Remove reference to non-existing value GET_FROM_COMPOSITION.
2784 (pgx): Don't use enum names, use their values.
2785 (pitmethod): New helper command.
2786 (pitx): Use it to display iteration method.
2787 (pgrowit): New command.
2788
2789 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
2790
2791 Update dependencies in Makefile.in.
2792
2793 * Makefile.in (alloc.o): Depend on termhooks.h.
2794 (atimer.o): Depend on blockinput.h.
2795 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
2796 and frame.h.
2797 (callint.o): Depend on systime.h, coding.h, and composite.h.
2798 (callproc.o): Depend on buffer.h.
2799 (casefiddle.o): Don't depend on charset.h.
2800 (casetab.o): Depend on character.h.
2801 (ccl.o): Depend on composite.h.
2802 (chartab.o): Depend on ccl.h.
2803 (cm.o): Depend on dispextern.h.
2804 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
2805 (coding.o): Don't depend on $(INTERVALS_H).
2806 (composite.o): Don't depend on dispextern.h explicitly (it's in
2807 $(INTERVALS_H)). Depend on ccl.h.
2808 (data.o): Depend on systime.h, coding.h, composite.h,
2809 dispextern.h, font.h, and ccl.h.
2810 (dired.o): Depend on composite.h.
2811 (dispnew.o): Depend on coding.h. Don't depend explicitly on
2812 composite.h (it's in $(INTERVALS_H)).
2813 (doc.o): Depend on systime.h, coding.h, and composite.h.
2814 (editfns.o): Don't depend explicitly on dispextern.h.
2815 (emacs.o): Depend on frame.h and coding.h.
2816 (eval.o): Depend on coding.h, composite.h, and xterm.h.
2817 (fileio.o): Depend on frame.h and commands.h. Don't depend
2818 explicitly on dispextern.h.
2819 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
2820 composite.h.
2821 (fns.o): Don't depend on termhooks.h.
2822 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
2823 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
2824 coding.h, $(INTERVALS_H), window.h, xterm.h.
2825 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
2826 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
2827 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
2828 fontset.h, ccl.h, and ftfont.h.
2829 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
2830 (gtkutil.o): Depend on dispextern.h and composite.h.
2831 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
2832 termhooks.h, and ccl.h.
2833 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
2834 (intervals.o): Depend on systime.h and coding.h.
2835 (keyboard.o): Depend on composite.h and coding.h.
2836 (keymap.o): Depend on coding.h and frame.h.
2837 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
2838 (macros.o): Depend on systime.h, coding.h, and composite.h.
2839 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
2840 and atimer.h.
2841 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
2842 dispextern.h explicitly.
2843 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
2844 Don't depend explicitly on dispextern.h and composite.h.
2845 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
2846 (regex.o): Don't depend on charset.h.
2847 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
2848 (search.o): Don't depend explicitly on composite.h.
2849 (sound.o): Depend on atimer.h and systime.h.
2850 (syntax.o): Don't depend explicitly on composite.h.
2851 (sysdep.o): Depend on coding.h and composite.h.
2852 (term.o): Depend on xterm.h and buffer.h.
2853 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
2854 (textprop.o): Don't depend on dispextern.h explicitly.
2855 (undo.o): Depend on dispextern.h.
2856 (window.o): Depend on coding.h and termhooks.h. Don't depend on
2857 dispextern.h and composite.h explicitly.
2858 (xdisp.o): Depend on ccl.h.
2859 (xfaces.o): Depend on coding.h and ccl.h.
2860 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
2861 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
2862 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
2863 ftfont.h.
2864 (xgselect.o): New dependency.
2865 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
2866 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
2867 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
2868 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
2869 (xsmfns.o): Depend on frame.h and dispextern.h.
2870 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
2871 sysselect.h.
2872
2873 2009-12-19 Andreas Schwab <schwab@linux-m68k.org>
2874
2875 * font.c (Fclear_font_cache): Pass correct cache argument to
2876 font_clear_cache.
2877
2878 2009-12-16 Andreas Schwab <schwab@linux-m68k.org>
2879
2880 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
2881 twice.
2882
2883 2009-12-15 Chong Yidong <cyd@stupidchicken.com>
2884
2885 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
2886 calling file-remote-p. Reported by Jim Meyering.
2887
2888 2009-12-15 Michael Albinus <michael.albinus@gmx.de>
2889
2890 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
2891 avoid compiler warnings. (Bug #5217)
2892
2893 2009-12-14 Kenichi Handa <handa@m17n.org>
2894
2895 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
2896 in 8-bit encoding.
2897
2898 2009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
2899
2900 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
2901 tooltip windows.
2902
2903 2009-12-13 Jan Djärv <jan.h.d@swipnet.se>
2904
2905 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
2906 Xatom_net_window_type.
2907
2908 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
2909 Xatom_net_window_type.
2910
2911 * xterm.c (my_log_handler): New function.
2912 (x_term_init): Set my_log_handler as log handler during gtk_init
2913 so we can filter out buggy messages. (Bug #5120).
2914
2915 * xterm.c (xg_scroll_callback): Parameter list changed,
2916 use parameter GtkScrollType to determine scroll/line/page.
2917 Only allow dragging if a button < 4 is grabbed (bug #5177).
2918 (xg_end_scroll_callback): New function.
2919 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
2920 xg_create_scroll_bar.
2921
2922 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
2923 (scroll_end_callback): Remove.
2924 (xg_create_scroll_bar): Add parameter end_callback, bind it to
2925 button-release-event. Replace value-changed event with change-value,
2926 bug #5177,
2927 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
2928 bug #5177.
2929
2930 * gtkutil.h (XG_LAST_SB_DATA): Remove.
2931 (xg_create_scroll_bar): Add GCallback end_callback.
2932
2933 * xftfont.c (QClcdfilter): New variable.
2934 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
2935 (syms_of_xftfont): Initialize QClcdfilter.
2936
2937 2009-12-12 Jan Djärv <jan.h.d@swipnet.se>
2938
2939 * xsettings.c (struct xsettings): Add member seen.
2940 (parse_xft_settings): Update member seen with what we have read.
2941 Return non-zero if Xft-settings have been parsed, 0 otherwise.
2942 (apply_xft_settings): Only update Xft settings with what member seen
2943 indicates as new.
2944
2945 2009-12-12 Eli Zaretskii <eliz@gnu.org>
2946
2947 * dispextern.h (struct text_pos): Use EMACS_INT;
2948 (struct glyph): Use EMACS_INT for charpos.
2949 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
2950 region_beg_charpos, region_end_charpos,
2951 redisplay_end_trigger_charpos, and also for
2952 iterator_stack_entry.end_charpos and
2953 iterator_stack_entry.stop_charpos.
2954
2955 2009-12-12 Jan Djärv <jan.h.d@swipnet.se>
2956
2957 * gtkutil.c (scroll_end_callback): New function (bug #5177).
2958 (xg_create_scroll_bar): Call scroll_end_callback on button release
2959 event (bug #5177).
2960 (xg_event_is_for_scrollbar): != replaced with ==.
2961
2962 2009-12-12 Kenichi Handa <handa@m17n.org>
2963
2964 * ftfont.c (struct ftfont_info): New member matrix.
2965 (ftfont_open): Setup xftfont_info->matrix.
2966 (MFLTFontFT): New member matrix.
2967 (FLOOR, CEIL, ROUND): New macros.
2968 (ftfont_get_metrics): Handle matrix transformation.
2969 (ftfont_shape_by_flt): New arg matrix. Callers changed.
2970
2971 * xftfont.c (struct xftfont_info): New member matrix.
2972 (xftfont_open): Setup xftfont_info->matrix.
2973
2974 2009-12-10 Kenichi Handa <handa@m17n.org>
2975
2976 * xdisp.c (append_space_for_newline): Consider face-remapping.
2977
2978 2009-12-09 Andreas Schwab <schwab@linux-m68k.org>
2979
2980 * xsettings.c: Include "keyboard.h".
2981
2982 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
2983
2984 Fix implicit function declarations.
2985 * cmds.c: Include "frame.h".
2986 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
2987 * frame.h: Move declaration of delete_frame outside of
2988 HAVE_WINDOW_SYSTEM.
2989
2990 2009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
2991
2992 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
2993
2994 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
2995 GTK builds.
2996
2997 2009-12-07 Andreas Schwab <schwab@linux-m68k.org>
2998
2999 * unexelf.c (unexec): Don't search for .data twice.
3000
3001 2009-12-05 Chong Yidong <cyd@stupidchicken.com>
3002
3003 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
3004 if push failed.
3005 (handle_line_prefix): Set avoid_cursor_p here. Check return value
3006 of push_display_prop (Bug#5000).
3007
3008 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
3009 value of font_list_entities (Bug#5085).
3010
3011 2009-12-04 Juanma Barranquero <lekktu@gmail.com>
3012
3013 Fix `string-to-number' to deal consistently with integers and floats.
3014 * lread.c (isfloat_string): New argument ignore_trailing to accept all
3015 trailing characters, not just whitespace.
3016 (read1): Pass new arg 0 to keep old behavior.
3017 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
3018 trailing chars, as it is already done for integers. Doc fixes.
3019 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
3020
3021 2009-12-04 Eli Zaretskii <eliz@gnu.org>
3022
3023 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
3024 Delete unused enumeration value.
3025
3026 2009-12-03 Eli Zaretskii <eliz@gnu.org>
3027
3028 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
3029
3030 2009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
3031
3032 * process.c (Fmake_network_process): Fix up the tests for
3033 "connectionless socket", so they DTRT for seqpacket sockets as well.
3034
3035 2009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
3036
3037 * process.c (Qseqpacket): New symbol.
3038 (HAVE_SEQPACKET): New macro.
3039 (Fmake_network_process): Accept new :type `seqpacket'.
3040 (init_process): Add `seqpacket' feature when applicable.
3041 (syms_of_process): Initialize Qseqpacket.
3042
3043 2009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3044
3045 * font.c (font_load_for_lface, font_open_by_name): Don't store name
3046 if entity is Qnil.
3047
3048 2009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
3049
3050 * print.c (print_preprocess): Preprocess the key_and_value table of
3051 hashtables, even tho they're "hidden" (bug#5082).
3052
3053 2009-11-29 Jan Djärv <jan.h.d@swipnet.se>
3054
3055 * frame.c (frame_make_pointer_invisible)
3056 (frame_make_pointer_visible): Declare f before statements.
3057
3058 2009-11-28 Eli Zaretskii <eliz@gnu.org>
3059
3060 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
3061 omitted dependencies on lisp.h.
3062
3063 2009-11-27 Jan Djärv <jan.h.d@swipnet.se>
3064
3065 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
3066 is NULL.
3067
3068 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
3069
3070 * frame.c (frame_make_pointer_invisible)
3071 (frame_make_pointer_visible): Just return if there isn't any selected
3072 frame.
3073
3074 * search.c (simple_search): Remove warning by making *p const.
3075
3076 2009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
3077
3078 * xdisp.c (power_letter): Remove duplicate const.
3079
3080 2009-11-25 Jan Djärv <jan.h.d@swipnet.se>
3081
3082 * term.c (delete_tty): Remove check for last terminal (bug#4970).
3083
3084 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
3085 defaults (bug #5025).
3086
3087 2009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
3088
3089 * insdel.c (adjust_markers_for_delete): Move it in the
3090 right direction! (bug#4803)
3091
3092 2009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3093
3094 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
3095
3096 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
3097
3098 2009-11-24 Glenn Morris <rgm@gnu.org>
3099
3100 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
3101
3102 2009-11-23 Jan Djärv <jan.h.d@swipnet.se>
3103
3104 * Makefile.in: Must create deps for ecrt0.o in its rule.
3105
3106 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
3107 because that is what Gtk+ font dialog understands.
3108
3109 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
3110 of Fcopy_sequence.
3111 (font_open_by_name): Put name given into QCname for font-object returned.
3112
3113 * frame.c (x_set_font): Save original font name as frame parameter
3114 font-parameter.
3115
3116 * xsettings.c (set_default_xft_settings): New function.
3117 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
3118 is found.
3119
3120 2009-11-22 Andreas Schwab <schwab@linux-m68k.org>
3121
3122 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
3123 searching backwards through multibyte buffer.
3124
3125 2009-11-21 Jan Djärv <jan.h.d@swipnet.se>
3126
3127 * xterm.c: #include xgselect.h.
3128 (x_initialize): Call xgselect_initialize.
3129
3130 * xsettings.c (something_changedCB): C++ comments => C comments.
3131 (init_gconf): Do not deal with any GLib file descriptors, xg_select
3132 does that now.
3133
3134 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
3135 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
3136 (scroll_bar_button_cb): Remove.
3137 (create_menus): C++ comments => C comments. Don't bind grab-notify
3138 event.
3139 (xg_create_scroll_bar): Don't bind button-press-event and
3140 button-release-event.
3141
3142 * process.c: Include xgselect.h if defined (USE_GTK) ||
3143 defined (HAVE_GCONF).
3144 (wait_reading_process_output): Call xg_select for the same condition.
3145
3146 * xgselect.c (xg_select): New function to better integrate with
3147 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
3148
3149 * xgselect.h: New file, declare xg_select, xgselect_initialize.
3150
3151 * Makefile.in (XOBJ): Add xgselect.o.
3152
3153 2009-11-21 Andreas Schwab <schwab@linux-m68k.org>
3154
3155 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
3156 Remove ignored second argument. All callers changed.
3157 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
3158 (RE_STRING_CHAR_AND_LENGTH): Likewise.
3159 * xdisp.c (string_char_and_length): Likewise.
3160
3161 2009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
3162
3163 * xterm.c (x_new_font):
3164 * print.c (print_object):
3165 * cmds.c (Fself_insert_command): Move declarations before statements.
3166
3167 2009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
3168
3169 * s/cygwin.h: Remove unneeded linker flags.
3170
3171 2009-11-20 Jan Djärv <jan.h.d@swipnet.se>
3172
3173 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
3174
3175 * xsettings.h: Declare xsettings_get_system_font.
3176
3177 * xsettings.c (xsettings_get_system_font): New function.
3178 (init_gconf): No use initiating gconf unless we have Xft also.
3179 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
3180 HAVE_GCONF.
3181
3182 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
3183 add a blank entry so it doesn't collapse into nothing.
3184
3185 2009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
3186
3187 * lread.c (Funintern): Comment out last change.
3188
3189 2009-11-19 Richard Stallman <rms@gnu.org>
3190
3191 * lread.c (Funintern): Error if symbol is t or nil.
3192
3193 2009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
3194
3195 * insdel.c (make_gap_larger): Don't make as many assumptions about the
3196 representation of Lisp integers.
3197 Reported by MJ Chan <mjchan.inbox@gmail.com>.
3198
3199 2009-11-17 Andreas Schwab <schwab@linux-m68k.org>
3200
3201 * lisp.h: Remove declaration of Ffont_get_system_font.
3202 * xfns.c: Move include of "xsettings.h".
3203 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
3204
3205 2009-11-17 Jan Djärv <jan.h.d@swipnet.se>
3206
3207 * xsettings.c (something_changedCB, Ffont_get_system_font):
3208 Check use_system_font.
3209 (syms_of_xsettings): DEFVAR font-use-system-font.
3210
3211 2009-11-17 Andreas Schwab <schwab@linux-m68k.org>
3212
3213 * xfns.c (x_default_font_parameter): Remove dead assignment.
3214
3215 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
3216
3217 2009-11-17 Jan Djärv <jan.h.d@swipnet.se>
3218
3219 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
3220 not have FC_LCD_*. #define them if not there.
3221
3222 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
3223
3224 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
3225
3226 * xterm.c (handle_one_xevent): Call xft_settings_event for
3227 ClientMessage, PropertyNotify and DestroyNotify.
3228 (x_term_init): If we have XFT, get DPI from Xft.dpi.
3229 Call xsettings_initialize.
3230
3231 * xftfont.c (xftfont_fix_match): New function.
3232 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
3233 Call xftfont_fix_match after XftFontMatch.
3234
3235 * xfont.c (xfont_driver): Initialize all members.
3236
3237 * xfns.c (x_default_font_parameter):
3238 Try font from Ffont_get_system_font.
3239 Do not get font from x_default_parameter if we got one from
3240 Ffont_get_system_font.
3241 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
3242
3243 * w32font.c (w32font_driver): Initialize all members.
3244
3245 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
3246
3247 * lisp.h: Declare syms_of_xsettings.
3248
3249 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
3250 Handle CONFIG_CHANGED_EVENT.
3251
3252 * ftfont.c (ftfont_filter_properties): New function.
3253
3254 * frame.c (x_set_font): Remove unused variable lval.
3255
3256 * font.h (struct font_driver): Add filter_properties.
3257
3258 * font.c (font_put_extra): Don't return if val is nil, it means
3259 boolean option is off.
3260 (font_parse_fcname): Collect all extra properties in extra_props
3261 and call filter_properties for all drivers with extra_props and
3262 font as parameter.
3263 (font_open_entity): Do not use cache, it does not pick up new
3264 fontconfig settings like hinting.
3265 (font_load_for_lface): If spec had a name in it, store it in entity.
3266
3267 * emacs.c (main): Call syms_of_xsettings.
3268
3269 * config.in: HAVE_GCONF is new.
3270
3271 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
3272 xsettings.o is new.
3273
3274 2009-11-17 Kenichi Handa <handa@m17n.org>
3275
3276 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
3277 back to the default font in case that no suitable font is found.
3278
3279 2009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
3280
3281 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
3282 Suggested by Chad Brown <yandros@mit.edu>.
3283 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
3284
3285 2009-11-16 Jan Djärv <jan.h.d@swipnet.se>
3286
3287 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
3288
3289 2009-11-14 Andreas Schwab <schwab@linux-m68k.org>
3290
3291 * Makefile.in: Ignore errors from mkdir when creating deps directory.
3292
3293 2009-11-14 Jan Djärv <jan.h.d@swipnet.se>
3294
3295 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
3296 has a parent.
3297
3298 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
3299 dependency files in deps/. Include those files into Makefile.
3300
3301 * config.in: Generated (AUTO_DEPEND).
3302
3303 2009-11-13 Michael Albinus <michael.albinus@gmx.de>
3304
3305 * dbusbind.c (Vdbus_registered_objects_table): Rename from
3306 Vdbus_registered_functions_table, because it contains also
3307 properties. Fix docstring.
3308 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
3309
3310 2009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
3311
3312 * alloc.c (mark_object): Don't reprocess marked strings.
3313 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
3314 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
3315
3316 2009-11-13 Kenichi Handa <handa@m17n.org>
3317
3318 * category.c (word_boundary_p): Adjust for the change of the
3319 semantics of Vword_combining_categories.
3320 (Vword_combining_categories): Describe the slight change of the
3321 semantics.
3322
3323 2009-11-13 Eli Zaretskii <eliz@gnu.org>
3324
3325 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
3326
3327 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
3328
3329 2009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
3330
3331 * xdisp.c (syms_of_xdisp): Fix typo in last change.
3332
3333 2009-11-12 Juanma Barranquero <lekktu@gmail.com>
3334
3335 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
3336
3337 2009-11-11 David Reitter <david.reitter@gmail.com>
3338
3339 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
3340 variables to fix 2009-11-09 change.
3341
3342 2009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
3343
3344 * process.c (ifflag_def): Make flag_sym constant.
3345 (Fnetwork_interface_info): Use a constant pointer.
3346 (ifflag_table):
3347 * xfns.c (cursor_bits):
3348 * xdisp.c (power_letter):
3349 * termcap.c (speeds, esctab):
3350 * sysdep.c (baud_convert):
3351 * keyboard.c (lispy_accent_codes, modifier_names):
3352 * image.c (xbm_format, xpm_format, pbm_format, png_format)
3353 (jpeg_format, tiff_format, gif_format, svg_format)
3354 (interlace_start, interlace_increment, gs_format):
3355 * gtkutil.c (separator_names):
3356 * fringe.c (swap_nibble):
3357 * fns.c (base64_value_to_char, base64_char_to_value):
3358 * fileio.c (make_temp_name_tbl):
3359 * coding.c (suffixes): Make constant.
3360
3361 * frame.c (make_initial_frame):
3362 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
3363 build_string.
3364 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
3365
3366 * s/freebsd.h:
3367 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
3368
3369 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
3370 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
3371
3372 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
3373 * xterm.c (syms_of_xterm):
3374 * xfaces.c (syms_of_xfaces):
3375 * xdisp.c (syms_of_xdisp):
3376 * lread.c (syms_of_lread):
3377 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
3378 build_string.
3379
3380 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
3381
3382 2009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
3383
3384 * fns.c (Fplist_get): Merge the active and the commented out code.
3385
3386 2009-11-10 Jan Djärv <jan.h.d@swipnet.se>
3387
3388 * keyboard.h: Declare timer_check.
3389
3390 * keyboard.c (timer_check_2): New function that does what the old
3391 timer_check did.
3392 (timer_check): Call timer_check_2 until -1 or a non-zero time is
3393 returned, i.e. don't return -1 with timers pending.
3394
3395 * process.c: Remove extern declaration of timer_check.
3396
3397 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
3398 even if timer_check returned -1.
3399
3400 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
3401 xg_dialog_data.
3402 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
3403 the event loop.
3404 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
3405 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
3406 Destroy the dialog after xg_dialog_run.
3407
3408 2009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
3409
3410 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
3411
3412 2009-11-10 Jan Djärv <jan.h.d@swipnet.se>
3413
3414 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
3415
3416 2009-11-09 Juanma Barranquero <lekktu@gmail.com>
3417
3418 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
3419
3420 2009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
3421
3422 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
3423 w32menu.c, and nsmenu.m.
3424 Simplify the obsolete case where position is nil.
3425 (cleanup_popup_menu): New function, moved from nsmenu.m.
3426 (struct skp): Remove slot `notreal'.
3427 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
3428 adjust callers.
3429 (single_menu_item): Adjust call to parse_menu_item.
3430 (syms_of_menu): Defsubr x-popup-menu.
3431 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
3432 (keymap_panes): Don't export any more.
3433 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
3434 (xmenu_show): Declare.
3435 * keyboard.c (parse_menu_item): Remove arg `notreal'.
3436 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
3437 * keyboard.h (parse_menu_item): Update declaration.
3438 * xmenu.c (Fx_popup_menu): Remove.
3439 (syms_of_xmenu): Don't defsubr x-popup-menu.
3440 * w32menu.c (Fx_popup_menu): Remove.
3441 (syms_of_w32menu): Don't defsubr x-popup-menu.
3442 * nsmenu.m (cleanup_popup_menu): Remove.
3443 (ns_menu_show): Rename from ns_popup_menu and remove all the code
3444 moved to menu.c's Fx_popup_menu.
3445 (Fx_popup_menu): Remove.
3446 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
3447 menu_items (it's done in menu.c already).
3448
3449 2009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
3450
3451 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
3452 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
3453
3454 2009-11-08 Chong Yidong <cyd@stupidchicken.com>
3455
3456 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
3457 xmenu_show. Hide any tooltip before opening a menu.
3458 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
3459 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
3460
3461 2009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
3462
3463 Let integers use up 2 tags to give them one extra bit and thus double
3464 their range.
3465 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
3466 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
3467 New macros.
3468 (enum Lisp_Type): Use them. Give explicit values.
3469 (Lisp_Type_Limit): Remove.
3470 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
3471 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
3472 Pay attention to USE_2_TAGS_FOR_INTS.
3473 (INTEGERP): Use LISP_INT_TAG_P.
3474 * fns.c (internal_equal): Simplify the default case.
3475 (sxhash): Use case_Lisp_Int.
3476 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
3477 any more.
3478 (Ftype_of): Use case_Lisp_Int.
3479 (store_symval_forwarding): Take into account the fact that Ints can
3480 now have more than one tag.
3481 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
3482 buffer_slot_type_mismatch):
3483 * xfaces.c (face_attr_equal_p):
3484 * print.c (print_object):
3485 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
3486 Use case_Lisp_Int.
3487
3488 2009-11-06 Eli Zaretskii <eliz@gnu.org>
3489
3490 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
3491
3492 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
3493 warning.
3494
3495 2009-11-06 Jan Djärv <jan.h.d@swipnet.se>
3496
3497 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
3498
3499 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
3500
3501 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
3502 ButtonPressRelease and MotionNotify (bug#4870).
3503
3504 2009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
3505
3506 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
3507
3508 * xterm.c (syms_of_xterm):
3509 * xselect.c (syms_of_xselect):
3510 * xmenu.c (syms_of_xmenu):
3511 * xfns.c (syms_of_xfns):
3512 * xfaces.c (syms_of_xfaces):
3513 * xdisp.c (syms_of_xdisp):
3514 * window.c (syms_of_window):
3515 * w32fns.c (syms_of_w32fns):
3516 * undo.c (syms_of_undo):
3517 * textprop.c (syms_of_textprop):
3518 * terminal.c (syms_of_terminal):
3519 * syntax.c (syms_of_syntax):
3520 * sound.c (syms_of_sound):
3521 * search.c (syms_of_search):
3522 * print.c (syms_of_print):
3523 * minibuf.c (syms_of_minibuf):
3524 * macros.c (syms_of_macros):
3525 * keymap.c (syms_of_keymap, initial_define_key)
3526 (initial_define_lispy_key):
3527 * keyboard.c (syms_of_keyboard):
3528 * insdel.c (syms_of_insdel):
3529 * image.c (syms_of_image):
3530 * fringe.c (syms_of_fringe):
3531 * frame.c (syms_of_frame):
3532 * fontset.c (syms_of_fontset):
3533 * fns.c (syms_of_fns):
3534 * fns.c (syms_of_fns):
3535 * fileio.c (syms_of_fileio):
3536 * fileio.c (syms_of_fileio):
3537 * eval.c (syms_of_eval):
3538 * doc.c (syms_of_doc):
3539 * dispnew.c (syms_of_display):
3540 * dired.c (syms_of_dired):
3541 * dbusbind.c (syms_of_dbusbind):
3542 * data.c (syms_of_data):
3543 * composite.c (syms_of_composite):
3544 * coding.c (syms_of_coding):
3545 * cmds.c (syms_of_cmds):
3546 * charset.c (define_charset_internal, syms_of_character):
3547 * ccl.c (syms_of_ccl):
3548 * category.c (syms_of_category, init_category_once):
3549 * casetab.c (syms_of_casetab):
3550 * casefiddle.c (syms_of_casefiddle):
3551 * callint.c (syms_of_callint):
3552 * bytecode.c (syms_of_bytecode):
3553 * buffer.c (keys_of_buffer, syms_of_buffer):
3554 * alloc.c (syms_of_alloc):
3555 * process.c (syms_of_process, init_process):
3556 * lread.c (syms_of_lread, init_obarray):
3557 * font.c (build_style_table):
3558 * emacs.c (syms_of_emacs, main): Replace calls to intern with
3559 intern_c_string, calls to make_pure_string with
3560 make_pure_c_string. Use pure_cons instead of Fcons.
3561
3562 * process.c (socket_options): Make it const.
3563 (set_socket_option, init_process): Use a const pointer.
3564
3565 * lread.c (intern_c_string): New function.
3566 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
3567 (defvar_int): Uset it. Make the name const char*.
3568
3569 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
3570 (defvar_int): Update prototypes.
3571 (DEFUN, EXFUN): Support for prototypes is now required.
3572 (intern_c_string): New prototype.
3573 (struct Lisp_Subr): Make symbol_name constant.
3574
3575 * font.c (struct table_entry): Remove unused member. Make NAMES
3576 constant.
3577 (weight_table, slant_table, width_table): Make constant.
3578
3579 * emacs.c (struct standard_args): Make name and longname constant.
3580
3581 * character.h (DEFSYM): Use intern_c_string.
3582
3583 2009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
3584
3585 * alloc.c (make_pure_c_string): New function.
3586
3587 * eval.c (Fautoload): Purecopy all arguments.
3588
3589 2009-11-05 Kenichi Handa <handa@m17n.org>
3590
3591 * fileio.c (Finsert_file_contents): Be sure set coding-system of
3592 the buffer in case of replace.
3593
3594 2009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
3595
3596 * puresize.h (BASE_PURESIZE): Increase to 1620000.
3597
3598 2009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
3599
3600 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
3601 when applicable (bug#4851).
3602
3603 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
3604 (P_): Support for prototypes is now required.
3605
3606 2009-10-31 Chong Yidong <cyd@stupidchicken.com>
3607
3608 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
3609 (Bug#4827).
3610
3611 2009-10-30 Eli Zaretskii <eliz@gnu.org>
3612
3613 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
3614
3615 2009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
3616
3617 * puresize.h (BASE_PURESIZE): Increase to 1470000.
3618
3619 * lread.c (Fload): Purecopy the file name when building
3620 Vpreloaded_file_list.
3621
3622 2009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
3623
3624 * w32fns.c (syms_of_w32fns): Change default value of
3625 w32-scroll-lock-modifier to nil. (Bug#2827)
3626
3627 2009-10-26 Juanma Barranquero <lekktu@gmail.com>
3628
3629 * minibuf.c (Fall_completions): Fix typos in docstring.
3630
3631 2009-10-26 Andreas Schwab <schwab@redhat.com>
3632
3633 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
3634
3635 2009-10-26 Juanma Barranquero <lekktu@gmail.com>
3636
3637 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
3638 For delta < 0, skip check that only makes sense when the mini-window
3639 is going to be enlarged. (Bug#4534)
3640
3641 2009-10-25 Chong Yidong <cyd@stupidchicken.com>
3642
3643 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
3644 string in menu maps (Bug#4471).
3645
3646 2009-10-24 Chong Yidong <cyd@stupidchicken.com>
3647
3648 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
3649 FRAME_NS_VIEW on terminal frames (Bug#4765).
3650
3651 2009-10-24 Andreas Schwab <schwab@linux-m68k.org>
3652
3653 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
3654 DBUS_TYPE_UINTnn separately to get proper sign extension.
3655
3656 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
3657 can properly handle unsigned types.
3658 (make_uid, make_gid): Remove.
3659
3660 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
3661 types again.
3662
3663 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
3664 (system_process_attributes): Likewise.
3665
3666 2009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
3667
3668 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
3669
3670 * eval.c (Fautoload): Purecopy the filename. Simplify.
3671
3672 * category.c (Fdefine_category): Purecopy docstring.
3673
3674 2009-10-23 Andreas Schwab <schwab@linux-m68k.org>
3675
3676 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
3677
3678 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
3679
3680 2009-10-23 Chong Yidong <cyd@stupidchicken.com>
3681
3682 * window.c (Fwindow_edges, Fwindow_pixel_edges)
3683 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
3684 (Bug#4775).
3685
3686 2009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
3687
3688 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
3689 (init_fileio_once):
3690 * lisp.h (init_fileio_once): Remove.
3691 * emacs.c (main): Don't call init_fileio_once.
3692
3693 2009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
3694
3695 * puresize.h (BASE_PURESIZE): Increase to 1430000.
3696
3697 2009-10-21 Andreas Schwab <schwab@linux-m68k.org>
3698
3699 * doprnt.c (doprnt): Fix overflow check.
3700
3701 2009-10-21 Jan Djärv <jan.h.d@swipnet.se>
3702
3703 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
3704
3705 * xterm.h (x_wait_for_event): Declare it.
3706
3707 * xterm.c (pending_event_wait): New variable.
3708 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
3709 see pending_event_wait.eventtype.
3710 (handle_one_xevent): Don't change gravity when parent changes.
3711 (x_new_font): Call change_frame_size with new rows/columns before we
3712 try to resize the frame.
3713 (x_wait_for_event): New function.
3714 (x_set_window_size_1): Don't change gravity unless change_gravity
3715 is set.
3716 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
3717 don't change frame size, instead wait for the ConfigureNotify.
3718 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
3719 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
3720 (x_initialize): Initialize pending_event_wait.
3721
3722 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
3723 size.
3724
3725 * widget.c (EmacsFrameSetValues): Add comment.
3726 (EmacsFrameSetCharSize): Just call x_set_window_size.
3727
3728 * gtkutil.c (xg_frame_set_char_size): Flush events and call
3729 x_wait_for_event.
3730 (flush_and_sync): Remove again.
3731 (xg_get_font_name): Suggest monospace if no previous font is known.
3732
3733 2009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
3734
3735 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
3736 8th bit, since that only made sense in the ASCII world (bug#4751).
3737
3738 2009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3739
3740 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
3741 processing pending events when event is filtered for input method.
3742 (Bug#3681)
3743
3744 2009-10-20 Juanma Barranquero <lekktu@gmail.com>
3745
3746 * fns.c: Add #endif accidentally removed in previous change.
3747
3748 2009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
3749
3750 * fns.c: Remove code for unsupported system: MAC_OS.
3751 * image.c: Likewise. Include setjmp.h.
3752
3753 2009-10-19 Jan Djärv <jan.h.d@swipnet.se>
3754
3755 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
3756 pixel -1 (bug #4742).
3757
3758 2009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
3759
3760 * process.c (create_pty): Remove conditionals for no longer
3761 supported systems: UNIPLUS and RTU.
3762
3763 * xterm.c:
3764 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
3765
3766 * alloc.c: Do not define struct catchtag.
3767 * eval.c: Move struct catchtag definition ...
3768 * lisp.h: ... here.
3769
3770 * image.c: Move png.h #include earlier to avoid warnings.
3771
3772 * xterm.c:
3773 * xsmfns.c:
3774 * xselect.c:
3775 * xrdb.c:
3776 * xmenu.c:
3777 * xftfont.c:
3778 * xfont.c:
3779 * xfns.c:
3780 * xfaces.c:
3781 * xdisp.c:
3782 * window.c:
3783 * widget.c:
3784 * w32xfns.c:
3785 * w32uniscribe.c:
3786 * w32term.c:
3787 * w32select.c:
3788 * w32reg.c:
3789 * w32proc.c:
3790 * w32menu.c:
3791 * w32inevt.c:
3792 * w32heap.c:
3793 * w32font.c:
3794 * w32fns.c:
3795 * w32console.c:
3796 * w32.c:
3797 * w16select.c:
3798 * vm-limit.c:
3799 * unexsol.c:
3800 * unexec.c:
3801 * unexcw.c:
3802 * unexaix.c:
3803 * undo.c:
3804 * tparam.c:
3805 * textprop.c:
3806 * terminfo.c:
3807 * terminal.c:
3808 * termcap.c:
3809 * term.c:
3810 * syntax.c:
3811 * sound.c:
3812 * sheap.c:
3813 * search.c:
3814 * scroll.c:
3815 * region-cache.c:
3816 * regex.c:
3817 * ralloc.c:
3818 * process.c:
3819 * print.c:
3820 * nsterm.m:
3821 * nsselect.m:
3822 * nsmenu.m:
3823 * nsimage.m:
3824 * nsfont.m:
3825 * nsfns.m:
3826 * msdos.c:
3827 * minibuf.c:
3828 * menu.c:
3829 * marker.c:
3830 * macros.c:
3831 * keymap.c:
3832 * keyboard.c:
3833 * intervals.c:
3834 * insdel.c:
3835 * indent.c:
3836 * gtkutil.c:
3837 * ftxfont.c:
3838 * ftfont.c:
3839 * fringe.c:
3840 * frame.c:
3841 * fontset.c:
3842 * font.c:
3843 * fns.c:
3844 * floatfns.c:
3845 * filelock.c:
3846 * fileio.c:
3847 * emacs.c:
3848 * editfns.c:
3849 * dosfns.c:
3850 * doprnt.c:
3851 * doc.c:
3852 * dispnew.c:
3853 * dired.c:
3854 * dbusbind.c:
3855 * data.c:
3856 * composite.c:
3857 * coding.c:
3858 * cmds.c:
3859 * cm.c:
3860 * chartab.c:
3861 * charset.c:
3862 * character.c:
3863 * ccl.c:
3864 * category.c:
3865 * casetab.c:
3866 * casefiddle.c:
3867 * callproc.c:
3868 * callint.c:
3869 * bytecode.c:
3870 * buffer.c:
3871 * atimer.c: Include setjmp.h. (Bug#4643)
3872
3873 2009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
3874
3875 Remove leftover table unibyte_to_multibyte_table.
3876 * character.c (unibyte_to_multibyte_table): Remove.
3877 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
3878 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
3879 * character.h (UNIBYTE_TO_CHAR): New macro.
3880 (MAKE_CHAR_MULTIBYTE): Use it.
3881 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
3882 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
3883 (message_dolog, set_message_1):
3884 * search.c (Freplace_match):
3885 * editfns.c (Fcompare_buffer_substrings):
3886 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
3887 (concat):
3888 * insdel.c (copy_text, count_size_as_multibyte):
3889 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
3890 * term.c (produce_glyphs):
3891 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
3892 * regex.c (RE_CHAR_TO_MULTIBYTE):
3893 * cmds.c (internal_self_insert):
3894 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
3895
3896 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
3897
3898 2009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
3899
3900 * puresize.h (BASE_PURESIZE): Increase to 1310000.
3901
3902 2009-10-16 Juanma Barranquero <lekktu@gmail.com>
3903
3904 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
3905
3906 2009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
3907
3908 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
3909 still needed under Tiger.
3910
3911 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
3912
3913 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
3914 __Apple__.
3915
3916 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
3917
3918 2009-10-15 Kenichi Handa <handa@m17n.org>
3919
3920 * print.c (print_object): Escape a symbol like "2E10" too.
3921
3922 2009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
3923
3924 Cleanups and changes for 64-bit compile under Snow Leopard.
3925 Based on suggestions by Erik Charlebois.
3926
3927 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
3928
3929 * nsfont.m (ns_char_width): Replace deprecated call.
3930 (ns_findfonts, nsfont_list_family): Use long format in printf, and
3931 cast argument.
3932 (nsfont_open): Use ns_char_width() everywhere.
3933 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
3934
3935 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
3936
3937 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
3938 where appropriate.
3939
3940 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
3941 where appropriate.
3942 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
3943 Use stringWithUTF8String.
3944 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
3945
3946 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
3947 Add formal protocol mention to inheritance.
3948 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
3949
3950 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
3951 Fix printf format.
3952 (ns_query_color): Use CGFloat where appropriate.
3953 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
3954 (EmacsScroller-mouseDown:): Use long format in printf, and cast
3955 argument.
3956
3957 * config.in (NS_HAVE_NSINTEGER): Drop.
3958
3959 * dbusbind.c (dbus-method-return-internal)
3960 (dbus-method-error-internal): Use long format in printf, and cast
3961 argument.
3962
3963 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
3964 in printf, and cast argument.
3965
3966 * process.c (list_processes_1): Use long format in printf, and
3967 cast argument.
3968
3969 2009-10-11 Glenn Morris <rgm@gnu.org>
3970
3971 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
3972
3973 2009-10-08 Jan Djärv <jan.h.d@swipnet.se>
3974
3975 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
3976 menu bar with a small width so it doesn't enlarge the frame.
3977
3978 2009-10-08 Juanma Barranquero <lekktu@gmail.com>
3979
3980 * fontset.c (Fset_fontset_font): Fix typos in error messages.
3981
3982 2009-10-06 Glenn Morris <rgm@gnu.org>
3983
3984 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
3985 SOME_MACHINE_LISP (this enters indirectly via DOC).
3986
3987 2009-10-05 Eli Zaretskii <eliz@gnu.org>
3988
3989 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
3990
3991 2009-10-04 Eli Zaretskii <eliz@gnu.org>
3992
3993 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
3994 Doc fix.
3995
3996 2009-10-03 Martin Rudalics <rudalics@gmx.at>
3997
3998 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
3999
4000 2009-10-02 Michael Albinus <michael.albinus@gmx.de>
4001
4002 * lisp.h (Qdelete_directory_internal): Remove, because it is not
4003 used anymore outside fileio.c.
4004
4005 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
4006
4007 2009-10-01 Juanma Barranquero <lekktu@gmail.com>
4008
4009 * lisp.h (Qdelete_directory_internal):
4010 Declare, instead of Qdelete_directory.
4011
4012 * w32fns.c (Fsystem_move_file_to_trash): Use it.
4013
4014 2009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
4015
4016 * eval.c (Fcalled_interactively_p): Add `kind' argument.
4017
4018 2009-10-01 Michael Albinus <michael.albinus@gmx.de>
4019
4020 * fileio.c (Fdelete_directory_internal): Rename from
4021 Fdelete_directory. It is not a command anymore. It has no file
4022 name handler.
4023
4024 2009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
4025
4026 * xdisp.c (get_next_display_element): Use an enum in last change.
4027
4028 2009-09-28 Kenichi Handa <handa@m17n.org>
4029
4030 * xdisp.c (get_next_display_element): Pay attention to
4031 unibyte_display_via_language_environment in handling
4032 Vnobreak_char_display.
4033
4034 2009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
4035
4036 * nsterm.h (ns_app_name): New extern variable.
4037
4038 * nsterm.m (ns_app_name): New variable.
4039 (ns_term_init): Set and use it.
4040 (ns_term_shutdown): Use it.
4041
4042 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
4043 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
4044
4045 * nsfns.m (ns_set_name_iconic, ns_set_name)
4046 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
4047 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
4048
4049 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
4050 Remove double-casting in client_data comparison.
4051
4052 2009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4053
4054 * keyboard.c (make_lispy_event): Remember last wheel direction.
4055 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
4056
4057 2009-09-26 Glenn Morris <rgm@gnu.org>
4058
4059 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
4060 internal.elc. Add term/pc-win.elc.
4061 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
4062 term/x-win.elc.
4063 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
4064 term/w32-win.elc.
4065 (NS_SUPPORT): New.
4066 (lisp): Add NS_SUPPORT.
4067 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
4068
4069 2009-09-25 David Reitter <david.reitter@gmail.com>
4070
4071 * nsmenu.m (EmacsMenu-clear): Recognize application menu
4072 on Mac OS X 10.6+ (bug#4513).
4073
4074 2009-09-24 Juanma Barranquero <lekktu@gmail.com>
4075
4076 * frame.c (xrdb_get_resource): Return nil for empty string resources;
4077 some parts of Emacs code (like font selection) don't grok them.
4078 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
4079
4080 2009-09-24 Andreas Schwab <schwab@redhat.com>
4081
4082 * coding.c (decode_coding_iso_2022): Fix operator precedence.
4083
4084 2009-09-24 Juanma Barranquero <lekktu@gmail.com>
4085
4086 * dired.c (Fdirectory_files): Fix typo in docstring.
4087
4088 2009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
4089
4090 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
4091 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
4092 (EmacsScroller-setPosition:portion:whole:): Remove -display call
4093 under GNUstep.
4094 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
4095
4096 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
4097 glyph advancement.
4098
4099 2009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
4100
4101 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
4102 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
4103
4104 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
4105 deleted (bug #4492).
4106
4107 * nsfont.m (Vns_reg_to_script): New lisp variable.
4108 (syms_of_nsfont): Declare it.
4109 (ns_registry_to_script): New function.
4110 (ns_get_req_script): Call it.
4111 (ns_findfonts): Don't give up on non-unicode registry.
4112
4113 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
4114
4115 2009-09-20 Tom Tromey <tromey@redhat.com>
4116
4117 * eval.c (find_handler_clause): Make stack-trace-on-error work in
4118 batch mode (bug#4228).
4119
4120 2009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
4121
4122 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
4123 carefully. (Bug #4339)
4124
4125 2009-09-18 Chong Yidong <cyd@stupidchicken.com>
4126
4127 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
4128
4129 2009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
4130
4131 * emacs.c (inhibit_x_resources): Update doc string for NS.
4132 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
4133 legacy code for -NXHost. Fix error printf in daemon case.
4134
4135 * nsterm.h (ns_no_defaults): Remove.
4136
4137 * nsterm.m (ns_no_defaults): Remove.
4138 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
4139 (ns_use_qd_smoothing): Remove legacy variable.
4140 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
4141 don't update the NSWindow itself.
4142 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
4143 state detection and store user rect ourselves. (Bug #3581)
4144
4145 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
4146 ns_use_qd_smoothing.
4147
4148 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
4149 platform versions. Drop support for emacs-20-style face specs.
4150 (x-close-connection): Drop PSFlush() under OS X.
4151 (x-focus-frame): Activate the app first. (Bug #4180)
4152
4153 2009-09-17 Juanma Barranquero <lekktu@gmail.com>
4154
4155 * emacs.c (inhibit_x_resources): New variable.
4156 (main) [HAVE_NS]: Don't process --quick command line option.
4157 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
4158
4159 * lisp.h (inhibit_x_resources): Declare it extern.
4160
4161 * w32reg.c (x_get_string_resource):
4162 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
4163
4164 2009-09-17 Eli Zaretskii <eliz@gnu.org>
4165
4166 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
4167 Add lisp/term/internal.elc.
4168
4169 2009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
4170
4171 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
4172 (bug#4461).
4173
4174 2009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
4175
4176 * puresize.h (BASE_PURESIZE): Increase to 1290000.
4177
4178 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
4179 (OBJECTS_MACHINE): Remove, unused.
4180
4181 2009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
4182
4183 * frame.c (x_get_resource_string): Remove unused.
4184
4185 2009-09-15 Jan Djärv <jan.h.d@swipnet.se>
4186
4187 * xterm.c (x_new_font): Call change_frame_size before calling
4188 x_set_window_size, in case frame size won't change.
4189
4190 * frame.c (x_set_font): Remove dead code.
4191
4192 2009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
4193
4194 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
4195
4196 2009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
4197
4198 * lread.c (Fload): Don't output a message after loading an obsolete
4199 package any more (done in Lisp now).
4200
4201 2009-09-12 Chong Yidong <cyd@stupidchicken.com>
4202
4203 * fns.c (syms_of_fns): Doc fix (Bug#4227).
4204
4205 2009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
4206
4207 * keymap.c (Fwhere_is_internal): Use nconc2.
4208
4209 2009-09-11 Alan Mackenzie <acm@muc.de>
4210
4211 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
4212 batch mode.
4213
4214 2009-09-11 Andreas Schwab <schwab@linux-m68k.org>
4215
4216 * xdisp.c (display_mode_element): Detect cycles.
4217
4218 2009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
4219
4220 * keymap.c (where_is_internal): Don't erroneously return nil right after
4221 filling the cache.
4222 (where_is_internal_1): Fix up typo.
4223
4224 2009-09-11 Glenn Morris <rgm@gnu.org>
4225
4226 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
4227 share a common doc-string.
4228
4229 2009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
4230
4231 * keymap.c (get_keymap): Return the actual keymap symbol rather than
4232 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
4233
4234 * keymap.c (QCadvertised_binding): New constant.
4235 (syms_of_keymap): Initialize it.
4236 (Fwhere_is_internal): Try and use bindings from :advertised-binding
4237 if applicable.
4238
4239 2009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
4240
4241 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
4242 (parse_menu_item): Streamline since bindings are recomputed all the
4243 time anyway. Don't bother checking Vdefine_key_rebound_commands any
4244 more and don't support lmenu's menu-alias any more either.
4245
4246 * keymap.c (where_is_internal_data): Make noindirect a boolean.
4247 (where_is_internal): Strip it down to only traverse the keymaps.
4248 Move the cache handling from Fwhere_is_internal to here.
4249 (Fwhere_is_internal): Move the handling of remapping and the choice of
4250 the best binding from where_is_internal to here.
4251 Unify the cached/noncached paths, so remapping is also handled
4252 correctly when the cache is used, and so the cache can be used to
4253 speed up remap-handling when applicable.
4254 Give preference to non-remapped bindings.
4255 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
4256 non-remapped bindings.
4257 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
4258 command remapping.
4259
4260 * xdisp.c (display_mode_element): Move list length limit from 50 to
4261 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
4262
4263 2009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
4264
4265 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
4266
4267 2009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
4268
4269 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
4270 (Bug#4334)
4271
4272 * keymap.c (where_is_internal): Filter out shadowed remappings.
4273 Assume that where_is_internal returns unshadowed bindings to simplify
4274 the code and get rid of the gotos. Use ASIZE.
4275
4276 2009-09-04 Jan Djärv <jan.h.d@swipnet.se>
4277
4278 * xterm.c (x_focus_changed): If we get a focusout and pointer
4279 is invisible, make it visible.
4280
4281 * xterm.h: Remove condition for declaration of
4282 x_*_window_to_frame.
4283
4284 2009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
4285
4286 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
4287 initial terminal as well.
4288
4289 2009-09-02 Jan Djärv <jan.h.d@swipnet.se>
4290
4291 * xterm.h: Rename x_non_menubar_window_to_frame to
4292 x_menubar_window_to_frame.
4293
4294 * xterm.c: Remove declarations also in xterm.h.
4295 (XTmouse_position): Do not return valid positions
4296 for clicks in the menubar and the toolbar for Gtk+.
4297
4298 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
4299 if the widget for the event has the same top level as a frame,
4300 return the frame.
4301 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
4302 internal windows, bug #4122.
4303 (x_non_menubar_window_to_frame): Remove.
4304
4305 2009-09-02 Glenn Morris <rgm@gnu.org>
4306
4307 * buffer.c (default-major-mode): Move most of the doc from here...
4308 (major-mode): ... to here.
4309
4310 2009-08-30 Nick Roberts <nickrob@snap.net.nz>
4311
4312 * process.c (wait_reading_process_output): Keep the descriptor
4313 when pty is used by a non-child process, e.g., in I/O buffer of
4314 GDB this allows inferior to be restarted.
4315
4316 2009-08-29 Eli Zaretskii <eliz@gnu.org>
4317
4318 * xdisp.c (redisplay_internal): Remove redundant test and collapse
4319 both branches into one.
4320
4321 2009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
4322
4323 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
4324 (main): Use enable-multibyte-characters rather than
4325 default-enable-multibyte-characters. Output a warning message when
4326 running a unibyte session.
4327
4328 2009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4329
4330 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
4331 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
4332 (copy_data_segment): Also copy __program_vars section.
4333 (copy_dyld_info) [LC_DYLD_INFO]: New function.
4334 (dump_it) [LC_DYLD_INFO]: Use it.
4335
4336 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
4337
4338 2009-08-28 Eli Zaretskii <eliz@gnu.org>
4339
4340 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
4341 $(SRC)/buildobj.h.
4342 (buildobj.h): Renamed from $(SRC)/buildobj.h.
4343 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
4344 $(SRC)/buildobj.h.
4345 (clean): Add buildobj.h.
4346
4347 2009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
4348
4349 * print.c (print_object): Set escapeflag to 1 when printing
4350 hashtable keys and values.
4351
4352 2009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
4353
4354 * lread.c (read_integer): Use doubles (and potentially return a float
4355 number) as we do in string-to-number.
4356 (read1): Use strtol to read integers, signal errors on strtol's
4357 overflow and use floats if strtol's output is too large for
4358 Elisp integers.
4359
4360 2009-08-27 Eli Zaretskii <eliz@gnu.org>
4361
4362 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
4363 (make-buildobj-SH): Fix last change.
4364 (SRC): Move to before where it's first used.
4365
4366 2009-08-27 Kenichi Handa <handa@m17n.org>
4367
4368 * process.c (send_process): Use encode_coding_object instead of
4369 encode_coding_string to perform eol-conversion even if the string
4370 is unibyte.
4371
4372 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
4373 character.
4374
4375 * cmds.c (Fself_insert_command): Avoid unnecessay
4376 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
4377
4378 2009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
4379
4380 * callproc.c (Fcall_process): Remove always true #if.
4381
4382 * lisp.h: Replace #if 0 code for checking with text pointing to
4383 the --enable-checking configure flag.
4384
4385 * emacs.c (main): Mention the --enable-profiling configure flag
4386 instead of using CFLAGS.
4387
4388 2009-08-26 Ken Raeburn <raeburn@raeburn.org>
4389
4390 * Makefile.in (buildobj.h): New target.
4391 (doc.o): Depend on it.
4392 (temacs${EXEEXT}): Don't generate buildobj.lst.
4393 (mostlyclean): Delete buildobj.h, not buildobj.lst.
4394 * makefile.w32-in ($(SRC)/buildobj.h): New target.
4395 ($(BLD)/doc.$(O)): Depend on it.
4396 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
4397 provided by Eli Zaretskii.)
4398 ($(TEMACS)): Don't generate buildobj.lst.
4399 * doc.c: Include buildobj.h.
4400 (buildobj): New static variable.
4401 (Fsnarf_documentation): Use it, instead of opening and reading
4402 buildobj.lst.
4403
4404 2009-08-25 Michael Albinus <michael.albinus@gmx.de>
4405
4406 * dbusbind.c (Fdbus_call_method)
4407 (Fdbus_call_method_asynchronously): Use English numeric format for
4408 timeout values in doc string.
4409
4410 2009-08-25 Kenichi Handa <handa@m17n.org>
4411
4412 * alloc.c (mark_char_table): New function.
4413 (mark_object): Use mark_char_table for a char-table.
4414
4415 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
4416 (CHAR_TABLE_REF): Use it.
4417
4418 2009-08-23 Ken Raeburn <raeburn@raeburn.org>
4419
4420 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
4421 before invoking the newly build emacs to check for load-path
4422 shadowing.
4423
4424 2009-08-22 Glenn Morris <rgm@gnu.org>
4425
4426 * Makefile.in (bootstrap_exe): New variable.
4427 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
4428 Use ${bootstrap_exe}.
4429
4430 2009-08-22 Eli Zaretskii <eliz@gnu.org>
4431
4432 * coding.h (encode_coding_string): Don't encode unibyte strings.
4433 (Bug#4047)
4434
4435 2009-08-22 Michael Albinus <michael.albinus@gmx.de>
4436
4437 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
4438
4439 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
4440 intended as hotfix only.
4441 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
4442
4443 2009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
4444
4445 * nsterm.m (ns_get_color): Update documentation properly for last
4446 change, and clean up loose ends in the code left by it. Fix
4447 longstanding bug with 16-bit hex parsing, and add support for
4448 yet another X11 format (rgb:r/g/b) for compatibility.
4449 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
4450 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
4451
4452 2009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
4453
4454 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
4455
4456 2009-08-20 Michael Albinus <michael.albinus@gmx.de>
4457
4458 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
4459 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
4460 (xd_initialize, xd_pending_messages): Check, whether
4461 $DBUS_SESSION_BUS_ADDRESS is set.
4462
4463 2009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4464
4465 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
4466
4467 * nsterm.m (ns_get_color): Remove incompatible color formats again.
4468
4469 2009-08-20 Glenn Morris <rgm@gnu.org>
4470
4471 * emacs.c (system-type): Doc fix.
4472
4473 2009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
4474
4475 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
4476 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
4477
4478 2009-08-18 Michael Albinus <michael.albinus@gmx.de>
4479
4480 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
4481 New functions.
4482 (xd_initialize): Revert change from 2009-08-16.
4483
4484 2009-08-18 Kenichi Handa <handa@m17n.org>
4485
4486 * fontset.c (Ffontset_font): If a nil element is found in a
4487 font-group vector, return nil.
4488
4489 2009-08-17 Chong Yidong <cyd@stupidchicken.com>
4490
4491 * process.c (status_notify): Don't perform redisplay.
4492 (Fdelete_process, list_processes_1, process_send_signal):
4493 Expliticly perform redisplay.
4494 (wait_reading_process_output): Always check process status, but
4495 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
4496
4497 2009-08-17 Ken Raeburn <raeburn@raeburn.org>
4498
4499 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
4500 (XFLOAT_INIT): New macro for storing a float value.
4501 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
4502 * fns.c (sxhash): Copy out the value of a float in order to
4503 examine its bytes.
4504 * dbusbind.c (xd_append_arg): Likewise.
4505
4506 * emacs.c (main): Don't call syms_of_data twice.
4507
4508 2009-08-16 Michael Albinus <michael.albinus@gmx.de>
4509
4510 * dbusbind.c (xd_initialize): Add connection file descriptor to
4511 input_wait_mask, in order to let select() detect, whether a new
4512 message has been arrived.
4513 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
4514
4515 2009-08-15 Michael Albinus <michael.albinus@gmx.de>
4516
4517 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
4518 New functions.
4519
4520 * lisp.h (xd_pending_messages): Declare.
4521
4522 * keyboard.c (readable_events): Call xd_pending_messages.
4523
4524 2009-08-15 Chong Yidong <cyd@stupidchicken.com>
4525
4526 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
4527
4528 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
4529
4530 * buffer.c (set_buffer_internal_1)
4531 (swap_out_buffer_local_variables): Check for unbound local
4532 variables (Bug#4138).
4533
4534 2009-08-14 Eli Zaretskii <eliz@gnu.org>
4535
4536 * process.c (create_pty): Fix last change.
4537
4538 2009-08-13 Chong Yidong <cyd@stupidchicken.com>
4539
4540 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
4541 (xbm_load_image): Caller changed.
4542 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
4543
4544 2009-08-13 Nick Roberts <nickrob@snap.net.nz>
4545
4546 * process.c (create_pty): New function.
4547 (Fstart_process): Use it to allow Emacs to just associate a pty
4548 with the buffer. See associated change in gdb-mi.el.
4549 (list_processes_1): Deal with no program name.
4550 (start_process_unwind): Use pid == -2 to mean no process.
4551
4552 2009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
4553
4554 * cmds.c (nonundocount): New global variable.
4555 (keys_of_cmds): Initialize it.
4556 (Fself_insert_command): Use it to combine upto 20 sequential chars
4557 into a single undo entry, just like the Qself_insert_command code in
4558 keyboard.c does.
4559 Call frame_make_pointer_invisible, also like the Qself_insert_command
4560 code in keyboard.c does.
4561 * keyboard.c (command_loop_1): Use the new global nonundocount rather
4562 than its own local replacement for it.
4563
4564 2009-08-10 Ken Raeburn <raeburn@raeburn.org>
4565
4566 * fns.c (concat): Don't re-set string length to its current value.
4567
4568 * coding.h (decode_coding_string, encode_coding_string):
4569 Use SBYTES macro.
4570
4571 * doprnt.c (doprnt_lisp): Delete unused function.
4572 (doprnt): Merge with doprnt1, discarding lispstrings code.
4573 * lisp.h (doprnt_lisp): Don't declare.
4574
4575 2009-08-07 Juri Linkov <juri@jurta.org>
4576
4577 * puresize.h (BASE_PURESIZE): Increase to 1270000.
4578
4579 2009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
4580
4581 * print.c (syms_of_print): Undo previous change.
4582
4583 2009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
4584
4585 * lread.c (read1, syms_of_lread): Read hashtables back from the
4586 readable format.
4587
4588 * print.c (print_preprocess, print_object): Print hashtables fully
4589 and readably.
4590 (syms_of_print): Provide 'hashtable-print-readable.
4591
4592 2009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
4593
4594 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
4595 no family set.
4596 (nsfont_open): Handle case when entity has no family.
4597
4598 2009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
4599
4600 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
4601 element, not a list, for match case.
4602
4603 2009-07-28 Kenichi Handa <handa@m17n.org>
4604
4605 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
4606 rigidly.
4607
4608 * xfont.c (xfont_list_pattern): Don't ignore the return value of
4609 font_parse_xlfd. Check font properties more rigidly.
4610
4611 2009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
4612
4613 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
4614 bsd-common.h.
4615
4616 2009-07-27 Kenichi Handa <handa@m17n.org>
4617
4618 * xfaces.c (face_with_height): Call font_clear_prop.
4619
4620 2009-07-26 Chong Yidong <cyd@stupidchicken.com>
4621
4622 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
4623
4624 * xterm.c (x_term_init): Use Qx.
4625
4626 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
4627
4628 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4629 (ns_get_color): Revert 2009-07-16 change.
4630
4631 2009-07-25 Eli Zaretskii <eliz@gnu.org>
4632
4633 * lread.c (syms_of_lread) <force_load_messages>: New variable.
4634 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
4635
4636 2009-07-25 Ken Raeburn <raeburn@raeburn.org>
4637
4638 * coding.h (decode_coding_string, encode_coding_string):
4639 Use SCHARS macro.
4640
4641 * lread.c: Rewrite 2009-07-21 changes.
4642 (load_depth): Delete.
4643 (Qload_in_progress): New variable.
4644 (load_unwind): Don't reference load_depth or load_in_progress.
4645 (Fload): Likewise; specbind Qload_in_progress instead.
4646 (init_lread): Don't initialize load_depth.
4647 (syms_of_lread): Initialize and protect Qload_in_progress.
4648
4649 2009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
4650
4651 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
4652
4653 2009-07-23 Yavor Doganov <yavor@gnu.org>
4654
4655 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
4656
4657 2009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
4658
4659 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
4660 Bugs 3792, 3720, 2402.
4661 (ns_lookup_indexed_color): Check for bad index.
4662 (ns_index_color): Init unused slot to 0.
4663 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
4664 Bug 3714, possibly 3082.
4665
4666 2009-07-22 Jason Rumney <jasonr@gnu.org>
4667
4668 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
4669 Position IME window at cursor (Bug#2570).
4670 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
4671 (globals_of_w32fns): Dynamically load functions required above.
4672
4673 * w32term.c (w32_draw_window_cursor): Send message to reposition
4674 any IME window.
4675
4676 2009-07-21 Chong Yidong <cyd@stupidchicken.com>
4677
4678 * fileio.c: Revert 2009-07-16 changes.
4679 (Vauto_save_include_big_deletions): New variable.
4680 (Fdo_auto_save): Disable auto-save only if
4681 auto-save-include-big-deletions is nil.
4682
4683 2009-07-21 Chong Yidong <cyd@stupidchicken.com>
4684
4685 * xdisp.c (move_it_to): For continued lines ending in a tab, take
4686 the overflowed pixels into account (Bug#3879).
4687
4688 2009-07-21 Ken Raeburn <raeburn@raeburn.org>
4689
4690 * lread.c (load_depth): New variable.
4691 (Fload, load_unwind, init_lread): Set it to the load recursion
4692 depth; set load_in_progress as a simple boolean based on the
4693 current load_depth. (Bug#3892)
4694
4695 2009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
4696
4697 * nsfont.m (ns_has_attribute): Remove.
4698 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
4699
4700 2009-07-18 Juri Linkov <juri@jurta.org>
4701
4702 * process.c (Fset_process_query_on_exit_flag): Mention killing
4703 a buffer in docstring.
4704
4705 2009-07-17 Kenichi Handa <handa@m17n.org>
4706
4707 * casetab.c (shuffle): Fix the logic of setting up the cycle.
4708
4709 2009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4710
4711 * nsfns.m (Fns_set_alpha): Remove function.
4712 (syms_of_nsfns): Don't defsubr it.
4713
4714 * nsterm.m (ns_get_color): Remove incompatible color formats.
4715 (ns_color_to_lisp): Generate #rrggbb color format string.
4716
4717 2009-07-16 Richard Stallman <rms@gnu.org>
4718
4719 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
4720 (Fset_buffer_auto_saved): Handle save_length = -2.
4721
4722 2009-07-16 Chong Yidong <cyd@stupidchicken.com>
4723
4724 * xterm.c (Qx_gtk_map_stock): New var.
4725
4726 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
4727 of calling intern each time.
4728
4729 2009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4730
4731 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
4732 does tiling.
4733
4734 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
4735
4736 2009-07-14 Kenichi Handa <handa@m17n.org>
4737
4738 * font.c (font_vconcat_entity_vectors): New function.
4739 (struct font_sort_data): New member font_driver_preference.
4740 (font_compare): Check font_driver_preference.
4741 (font_sort_entities): The format of the first argument changed.
4742 (font_delete_unmatched): Likewise.
4743 (font_list_entities): The return type changed.
4744 (font_select_entity): The format of the second argument changed.
4745 (font_find_for_lface): Adjuste for the above changes.
4746 Don't suppress the checking of C even if the repertory supports it.
4747 (Flist_fonts): Adjust for the above changes.
4748
4749 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
4750 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
4751 Reject a font who has adstyle property that is different from a
4752 langname derived from registry property.
4753 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
4754
4755 2009-07-13 Eli Zaretskii <eliz@gnu.org>
4756
4757 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
4758 local copy of dirfilename.
4759
4760 2009-07-13 Kenichi Handa <handa@m17n.org>
4761
4762 * chartab.c (sub_char_table_ref_and_range): Fix the range check
4763 against max_char.
4764
4765 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
4766 calling XSYMBOL (sym).
4767
4768 2009-07-11 Eli Zaretskii <eliz@gnu.org>
4769
4770 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
4771 New function.
4772 (directory_files_internal) [WINDOWSNT]:
4773 Bind w32-get-true-file-attributes to either t or nil, depending whether
4774 the filesystem of the directory is fast or slow.
4775
4776 * w32.c (logon_network_drive): Don't assume PATH is an absolute
4777 file name.
4778 (is_slow_fs): New function.
4779 (stat): Use it to determine whether to issue more system calls to
4780 get accurate file attributes, when w32-get-true-file-attributes is
4781 `local'.
4782
4783 2009-07-10 Jan Djärv <jan.h.d@swipnet.se>
4784
4785 * xfns.c (Fx_select_font): Remember last font selected in
4786 x_last_font_name and use that the next time. Also try the frame
4787 parameter font-parameter as default to the font dialog.
4788
4789 2009-07-10 Kenichi Handa <handa@m17n.org>
4790
4791 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
4792
4793 2009-07-09 Eli Zaretskii <eliz@gnu.org>
4794
4795 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
4796
4797 * w32.c (stat): Treat UNC file names as residing on remote
4798 drives. (Bug#3542)
4799
4800 2009-07-09 Kenichi Handa <handa@m17n.org>
4801
4802 * fontset.c (fontset_find_font): Fix previous change.
4803
4804 2009-07-08 Michael Albinus <michael.albinus@gmx.de>
4805
4806 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
4807 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
4808 error flag.
4809
4810 2009-07-08 Kenichi Handa <handa@m17n.org>
4811
4812 * fontset.c (fontset_find_font): Fix the logic of handling
4813 charset_matched.
4814 (font_for_char): Delete unused var.
4815 (generate_ascii_font_name): Delete it.
4816
4817 * coding.h (JIS_TO_SJIS2): Fix the code range check.
4818
4819 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
4820 (encode_coding_sjis): Fix the code range check.
4821
4822 2009-07-07 Chong Yidong <cyd@stupidchicken.com>
4823
4824 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
4825 (Fexpand_file_name): Copy string data properly (Bug#3772).
4826
4827 2009-07-07 Jan Djärv <jan.h.d@swipnet.se>
4828
4829 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
4830 first MapNotify.
4831
4832 2009-07-07 Kenichi Handa <handa@m17n.org>
4833
4834 * character.h (unibyte_has_multibyte_table): Delete extern.
4835 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
4836
4837 * charset.c (Fset_charset_priority): Update charset_unibyte.
4838 (syms_of_charset): Initialize charset_unibyte.
4839
4840 * character.c (unibyte_has_multibyte_table): Delete it.
4841 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
4842 charset_unibyte.
4843 (multibyte_char_to_unibyte_safe): Likewise.
4844 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
4845
4846 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
4847 (x_produce_glyphs): Likewise.
4848
4849 * .gdbinit (xcharset): Fix the treating $arg0.
4850
4851 2009-07-04 Eli Zaretskii <eliz@gnu.org>
4852
4853 Emulation of `getloadavg' on MS-Windows.
4854 * w32.c: Include float.h.
4855 (g_b_init_get_native_system_info, g_b_init_get_system_times)
4856 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
4857 (get_native_system_info, get_system_times): New functions.
4858 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
4859 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
4860 (globals_of_w32): Initialize g_b_init_get_native_system_info,
4861 g_b_init_get_system_times, and num_of_processors.
4862
4863 2009-07-03 Jason Rumney <jasonr@gnu.org>
4864
4865 * w32term.c (w32_initialize): Use standard types.
4866
4867 2009-07-03 Eli Zaretskii <eliz@gnu.org>
4868
4869 * dired.c (Ffile_attributes): Decode user and group names by the
4870 locale's encoding. (Bug#3443)
4871
4872 2009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
4873
4874 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
4875 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
4876
4877 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
4878
4879 * term.c (init_tty): Remove spurious #ifdef.
4880
4881 * m/mips.h: Mention this file is also used for netbsd.
4882 * m/pmax.h: Remove file.
4883
4884 2009-07-03 Jan Djärv <jan.h.d@swipnet.se>
4885
4886 * xterm.h (struct x_display_info): Add invisible_cursor.
4887 (struct x_output): Add current_cursor.
4888
4889 * xterm.c (XTtoggle_invisible_pointer): New function.
4890 (x_define_frame_cursor): Don't define cursor if invisible or the
4891 same as before. Set current_cursor.
4892 (x_create_terminal): Set toggle_invisible_pointer_hook.
4893
4894 * xfns.c (make_invisible_cursor): New function.
4895 (x_set_mouse_color): Call make_invisible_cursor.
4896 Set current_cursor.
4897 (x_window): Set current_cursor.
4898
4899 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
4900
4901 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
4902 inserting a character.
4903 (read_avail_input): Call frame_make_pointer_visible.
4904
4905 * frame.c (Vmake_pointer_invisible): New variable.
4906 (frame_make_pointer_invisible, frame_make_pointer_visible):
4907 New functions.
4908 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
4909
4910 * frame.h: Declare frame_make_pointer_invisible and
4911 frame_make_pointer_visible.
4912 (struct frame): Add pointer_invisible.
4913
4914 2009-07-02 Jan Djärv <jan.h.d@swipnet.se>
4915
4916 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
4917 frame isn't visible.
4918 (xg_frame_resized): If width/height is -1, get size of window
4919 from X server.
4920
4921 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
4922 for MapNotify.
4923
4924 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
4925 here or call change_frame_size. Just call flush_and_sync.
4926 (flush_and_sync): Reintroduce.
4927
4928 2009-07-01 Jan Djärv <jan.h.d@swipnet.se>
4929
4930 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
4931
4932 * xterm.c (x_handle_net_wm_state): Also look for sticky.
4933 (x_term_init): Initialize Xatom_net_wm_state_sticky.
4934
4935 * frame.h: Declare Qsticky.
4936
4937 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
4938
4939 * nsfns.m (ns_frame_parm_handlers): Ditto.
4940
4941 * frame.c: Declare Qsticky.
4942 (frame_parms): Add sticky.
4943
4944 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
4945
4946 * xterm.h: Declare x_set_sticky.
4947
4948 * xterm.c (x_set_sticky): New function.
4949
4950 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
4951 (xg_tool_bar_menu_proxy): Attach enter/leave events to
4952 xg_tool_bar_proxy_help_callback.
4953
4954 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
4955
4956 * frame.c: Qmaximized is new.
4957 (x_set_frame_parameters): Do not handle fullscreen specially.
4958 Only set width and height if explicitly set.
4959 (x_set_fullscreen): Handle Qmaximized.
4960 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
4961 (syms_of_frame): Initialize Qmaximized.
4962
4963 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
4964 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
4965
4966 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
4967 for Expose event. Add call to x_check_fullscreen for MapNotify event.
4968 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
4969 set gravity to NorthWestGravity when USE_GTK.
4970 (set_wm_state): New function.
4971 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
4972 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
4973 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
4974 or the case when no window manager is running. That means remove calls
4975 to x_real_positions and x_fullscreen_adjust.
4976
4977 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
4978 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
4979 flush_and_sync.
4980 (xg_height_changed): New function.
4981 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
4982 and gtk_window_set_policy. Set frame gravity after parsing the
4983 geometry string.
4984 (xg_update_frame_menubar, free_frame_menubar)
4985 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
4986 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
4987 Remove calls to xg_frame_set_char_size.
4988
4989 2009-07-01 Kenichi Handa <handa@m17n.org>
4990
4991 * keyboard.c (decode_keyboard_code): New function.
4992 (tty_read_avail_input): Decode the input bytes if necessary.
4993
4994 * coding.c (setup_coding_system):
4995 Initialize coding->carryover_bytes to 0.
4996 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
4997 use Qno_conversion.
4998
4999 2009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5000
5001 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
5002
5003 2009-06-30 Chong Yidong <cyd@stupidchicken.com>
5004
5005 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
5006
5007 2009-06-30 Jason Rumney <jasonr@gnu.org>
5008
5009 * w32term.c (w32_initialize): Use GetModuleHandle for library that
5010 is already loaded.
5011 Set user model ID if supported (bug#1849).
5012
5013 2009-06-29 Jim Meyering <meyering@redhat.com>
5014
5015 Remove useless if-before-xfree test.
5016 * nsfont.m (nsfont_close): Remove useless test.
5017 * term.c (delete_tty): Likewise.
5018 * w32.c (system_process_attributes): Likewise.
5019 * w32font.c (w32font_close): Likewise.
5020 * xfaces.c (x_free_gc): Likewise.
5021 * xselect.c (buffer): Likewise.
5022
5023 2009-06-28 Andreas Schwab <schwab@linux-m68k.org>
5024
5025 * process.c (send_process): Keep decoded string in a local
5026 variable and protect it from GC. (Bug#3521)
5027
5028 2009-06-28 Eli Zaretskii <eliz@gnu.org>
5029
5030 * term.c (create_tty_output) [MSDOS]: #ifdef away.
5031 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
5032
5033 2009-06-28 Chong Yidong <cyd@stupidchicken.com>
5034
5035 * xdisp.c (start_display, handle_face_prop)
5036 (move_it_vertically_backward, cursor_row_fully_visible_p)
5037 (redisplay_window, try_window_id, produce_image_glyph):
5038 Delete some #ifdef-ed out code chunks that are now obsolete.
5039
5040 * xterm.c (x_update_window_begin, x_new_focus_frame)
5041 (x_scroll_bar_handle_click, handle_one_xevent)
5042 (handle_one_xevent, XTread_socket, x_focus_on_frame)
5043 (x_make_frame_visible, x_make_frame_invisible)
5044 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
5045 code chunks that are now obsolete.
5046
5047 2009-06-28 Michael Albinus <michael.albinus@gmx.de>
5048
5049 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
5050 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
5051 for hours, when optimzation is enabled.
5052 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
5053 (xd_read_message): Make them static.
5054
5055 2009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
5056
5057 * term.c (turn_on_face): Allow simultaneously bold and dim
5058 terminal faces (Bug#3530).
5059
5060 2009-06-27 Chong Yidong <cyd@stupidchicken.com>
5061
5062 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
5063
5064 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
5065 truncation glyphs (Bug#3686).
5066
5067 2009-06-27 Glenn Morris <rgm@gnu.org>
5068
5069 * m/pmax.h: Restore file, with only netbsd portions.
5070
5071 2009-06-26 David Reitter <david.reitter@gmail.com>
5072
5073 * nsterm.m (keydown): Avoid infinite loop.
5074
5075 2009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
5076
5077 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
5078 the arg FORCE_SYMBOL.
5079
5080 2009-06-25 Kenichi Handa <handa@m17n.org>
5081
5082 * fontset.c (fontset_find_font): When a usable rfont_def is found
5083 in a fallback font-group, make it the first element of the group.
5084
5085 2009-06-24 Chong Yidong <cyd@stupidchicken.com>
5086
5087 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
5088
5089 2009-06-24 Kenichi Handa <handa@m17n.org>
5090
5091 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
5092 set for C.
5093 (fontset_font): Record the availability of a font for C both in
5094 the realized fontsets of the current one and the default one.
5095
5096 2009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
5097
5098 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
5099 conditional, it is always defined on AIX.
5100
5101 2009-06-23 Miles Bader <miles@gnu.org>
5102
5103 * window.c (Vrecenter_redisplay): New variable.
5104 (syms_of_window): Initialize it.
5105 (Qtty): New extern declaration.
5106 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
5107
5108 2009-06-23 Jim Meyering <meyering@redhat.com>
5109
5110 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
5111 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
5112 pointer dereferences are guaranteed to be valid.
5113
5114 2009-06-23 Kenichi Handa <handa@m17n.org>
5115
5116 * emacs.c (main): Call init_font ().
5117
5118 * font.h (Vfont_log): Extern it.
5119 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
5120
5121 * font.c (font_sort_entities, font_list_entities)
5122 (font_matching_entity, font_open_entity)
5123 (font_close_object): Change font_add_log to FONT_ADD_LOG.
5124 (Vfont_log): Delete static.
5125 (font_log_env_checked): Delete this variable.
5126 (font_add_log): Don't check font_log_env_checked.
5127 (font_deferred_log): Check Vfont_log.
5128 (init_font): New function.
5129
5130 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
5131
5132 * w32font.c: Change font_add_log to FONT_ADD_LOG.
5133
5134 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
5135
5136 * xfont.c: Change font_add_log to FONT_ADD_LOG.
5137
5138 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
5139 (face_for_char): Don't call font_deferred_log here.
5140 (font_for_char): Likewise.
5141
5142 2009-06-22 Chong Yidong <cyd@stupidchicken.com>
5143
5144 * w32term.c (x_draw_glyph_string): Use the glyph string's width
5145 rather than its background_width for drawing the overline and
5146 underline (Bug#489).
5147
5148 * xterm.c (x_draw_glyph_string): Use the glyph string's width
5149 rather than its background_width for drawing the overline and
5150 underline (Bug#489).
5151 (xg_default_icon_file): New variable.
5152 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
5153 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
5154
5155 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
5156 (load_overlay_strings): Remove externs.
5157 (fast_find_position): Function deleted.
5158 (mouse_face_from_buffer_pos): New function, based on
5159 fast_find_position. Correctly handle before-strings,
5160 display-strings, and after-strings (Bug#1220).
5161 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
5162
5163 2009-06-21 Chong Yidong <cyd@stupidchicken.com>
5164
5165 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
5166 (move_it_in_display_line_to, move_it_in_display_line_to)
5167 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
5168
5169 2009-06-21 Chong Yidong <cyd@stupidchicken.com>
5170
5171 * Branch for 23.1.
5172
5173 2009-06-21 Jason Rumney <jasonr@gnu.org>
5174
5175 * w32term.c (keyboard_codepage): New static variable.
5176 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
5177 (w32_read_socket) [WM_CHAR]: Use it to decode character
5178 input (bug#3237).
5179 (w32_initialize): Initialize it.
5180 (codepage_for_locale): New function.
5181
5182 2009-06-20 Ken Raeburn <raeburn@raeburn.org>
5183
5184 * process.c (status_message): Pass Faset index argument as a lisp
5185 object, so as to work with USE_LISP_UNION_TYPE.
5186
5187 2009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5188
5189 * coding.c (Ffind_coding_systems_region_internal):
5190 Cache checked characters.
5191
5192 2009-06-18 Kenichi Handa <handa@m17n.org>
5193
5194 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
5195
5196 2009-06-18 Andreas Schwab <aschwab@redhat.com>
5197
5198 * xdisp.c (redisplay_internal): Check that the frame is still
5199 live after redisplay of its windows.
5200 (redisplay_windows): Check that the window is still live.
5201
5202 2009-06-17 Andreas Schwab <schwab@linux-m68k.org>
5203
5204 * coding.c (detect_coding_utf_16): Fix previous change.
5205
5206 2009-06-16 Kenichi Handa <handa@m17n.org>
5207
5208 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
5209 UTF-16 by checking the dispersion of Eth and Oth bytes.
5210
5211 2009-06-15 Andreas Schwab <schwab@linux-m68k.org>
5212
5213 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
5214
5215 2009-06-15 Kenichi Handa <handa@m17n.org>
5216
5217 * process.c (status_message): Fix previous change. Be sure to
5218 decode a localized string.
5219
5220 2009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5221
5222 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
5223 add comment explaining why.
5224
5225 2009-06-14 Sidney Markowitz <sidney@sidney.com>
5226
5227 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5228
5229 2009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
5230
5231 * nsfont.m (ns_attribute_value): Remove.
5232 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
5233 (ns_has_attribute): Shrink the normal range.
5234 (ns_findfonts): Don't worry about requested spec in determining
5235 need for synthItal.
5236 (ns_get_covering_families): Retain scriptToFamilies.
5237
5238 2009-06-14 Seiji Zenitani <zenitani@mac.com>
5239
5240 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
5241
5242 2009-06-11 Kenichi Handa <handa@m17n.org>
5243
5244 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
5245 overhang for the static composition case.
5246
5247 2009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5248
5249 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
5250 overhang for the automatic composition case.
5251
5252 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
5253 composition case.
5254
5255 2009-06-10 Chong Yidong <cyd@stupidchicken.com>
5256
5257 * xdisp.c (get_next_display_element): When handling wrap-prefix
5258 and line-prefix, treat \n as a control character (bug#3502).
5259
5260 2009-06-10 Kenichi Handa <handa@m17n.org>
5261
5262 * font.c (font_parse_family_registry): Fix for one-char foundry.
5263 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
5264
5265 2009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
5266
5267 * process.c (status_message): Fix handling of multibyte signal
5268 string (Bug#3499).
5269
5270 2009-06-09 Jim Meyering <meyering@redhat.com>
5271
5272 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
5273 color name is missing.
5274
5275 2009-06-09 Kenichi Handa <handa@m17n.org>
5276
5277 * charset.c (Fmap_charset_chars): In docstring, state clearly that
5278 FROM-CODE and TO-CODE are codepoints of CHARSET.
5279
5280 2009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
5281
5282 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
5283
5284 2009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
5285
5286 Changes to support :script/:lang/:otf in NS font driver.
5287 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
5288 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
5289 indicate not part of font driver interface, and change callers.
5290 (ns_get_family): Remove pointless null check.
5291 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
5292 ns_spec_to_descriptor, ns_descriptor_to_entity.
5293 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
5294 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
5295 (ns_spec_to_descriptor, ns_descriptor_to_entity)
5296 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
5297 (ns_get_req_script, ns_accumulate_script_ranges)
5298 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
5299 New functions.
5300 (nsfont_list, nsfont_match): Use ns_findfonts.
5301 (nsfont_open): Use font descriptor instead of traits.
5302 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
5303 (dump_glyphstring): Rename to ns_dump_glyphstring.
5304
5305 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
5306
5307 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
5308
5309 * fontset.c (fontset_from_font): Remove NS-specific code.
5310
5311 2009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
5312
5313 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
5314 nonactive windows.
5315
5316 2009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
5317
5318 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
5319
5320 2009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
5321
5322 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
5323
5324 2009-06-07 Chong Yidong <cyd@stupidchicken.com>
5325
5326 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
5327 account for the overflowing of newlines into the last glyph on the
5328 display line (Bug#3482).
5329
5330 2009-06-05 David Reitter <david.reitter@gmail.com>
5331
5332 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
5333 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
5334 Fns_selection_exists_p, Fns_selection_owner_p.
5335
5336 2009-06-03 Jason Rumney <jasonr@gnu.org>
5337
5338 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
5339 available. (Bug#3379)
5340
5341 2009-05-29 Kenichi Handa <handa@m17n.org>
5342
5343 * coding.c (get_translation_table):
5344 Check Venable_character_translation.
5345
5346 2009-05-26 David Reitter <david.reitter@gmail.com>
5347
5348 * nsterm.m (ns_raise_frame): Only raise frame if visible.
5349 (x_make_frame_visible): Move frame to front rather than calling
5350 ns_raise_frame().
5351 (keyDown:): Do not swallow events that aren't re-sent if frame
5352 isn't key window.
5353 (drawRect:): Do not set visibility/iconified flags because
5354 drawRect may be called by NSView even if the frame is hidden.
5355
5356 * nsfns.m (Fx_create_frame): Follow other ports in
5357 determining visibility; default to t. Ensure async_visible is set.
5358
5359 2009-05-23 Eli Zaretskii <eliz@gnu.org>
5360
5361 * dired.c (Ffile_attributes): Doc fix.
5362
5363 2009-05-22 Chong Yidong <cyd@stupidchicken.com>
5364
5365 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
5366
5367 2009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
5368
5369 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
5370 and xfont_scratch_props.
5371 (syms_of_xfont): Do it here instead.
5372 (xfont_find_ccl_program): Delete, unused.
5373 (xfont_open): Delete unused var `i'.
5374
5375 2009-05-21 Kenichi Handa <handa@m17n.org>
5376
5377 * fontset.c (Qlatin): Don't make it static.
5378
5379 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
5380 New functions.
5381 (xfont_scripts_cache, xfont_scratch_props): New variables.
5382 (Qlatin, Vscalable_fonts_allowed): Extern it.
5383 (xfont_list_pattern): Argument changed. Callers changed.
5384 Check Vscalable_fonts_allowed. Check the support of a script.
5385 (xfont_list): Don't reject a font spec with :script property.
5386 (xfont_has_char): Fix setting of encoding.
5387 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
5388 xfont_scratch_props.
5389
5390 2009-05-19 Kenichi Handa <handa@m17n.org>
5391
5392 * font.c (font_sort_entities): Rename from font_sort_entites.
5393 Callers changed.
5394
5395 2009-05-18 Kenichi Handa <handa@m17n.org>
5396
5397 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
5398
5399 2009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
5400
5401 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
5402 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
5403
5404 2009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5405
5406 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
5407 (x_delete_terminal): Dissociate resource database from display and
5408 then call XrmDestroyDatabase before closing display.
5409
5410 2009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
5411
5412 * nsterm.m (ns_read_socket): Remove unused variable.
5413 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
5414 whether selected frame is viable before raising it (based on patch
5415 by David Reitter), and improve commentary.
5416 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
5417
5418 2009-05-15 Kenichi Handa <handa@m17n.org>
5419
5420 * font.c (Ffont_spec): Check arguments.
5421
5422 2009-05-14 Chong Yidong <cyd@stupidchicken.com>
5423
5424 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
5425 weight when testing attributes (Bug#3282).
5426
5427 2009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5428
5429 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
5430 what we expect to get in the next ConfigureNotify event.
5431
5432 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
5433 before Xft one (Bug#1696).
5434
5435 2009-05-07 David Reitter <david.reitter@gmail.com>
5436
5437 * nsfns.m (Fx_display_planes): Compute bitplanes using
5438 NSBitsPerPixelFromDepth (Bug#3207).
5439
5440 2009-05-10 Chong Yidong <cyd@stupidchicken.com>
5441
5442 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
5443
5444 2009-05-10 Ulrich Mueller <ulm@gentoo.org>
5445
5446 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
5447
5448 2009-05-07 David Reitter <david.reitter@gmail.com>
5449
5450 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
5451 Respect mouse face background.
5452
5453 2009-05-07 David Reitter <david.reitter@gmail.com>
5454
5455 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
5456 Mouse movement/highlight: bracket drawing operations
5457 in ns_update_begin and ns_update_end.
5458
5459 2009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
5460
5461 * nsfns.m (ns_get_screen): Rewrite.
5462 Don't presume selected-frame is of type `ns'.
5463
5464 * font.c (font_update_drivers): Sanity fallback to avoid disabling
5465 all drivers.
5466
5467 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
5468
5469 2009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5470
5471 * keyboard.h (add_user_signal): Fix typo in extern.
5472
5473 * lisp.h (add_user_signal): Remove extern.
5474
5475 * unexelf.c (unexec): Consider a section to precede the .bss section
5476 if its addresses overlap that of .bss.
5477 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
5478 instead of dumping process.
5479
5480 2009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
5481
5482 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
5483
5484 2009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
5485
5486 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
5487
5488 2009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
5489
5490 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
5491 any statements.
5492
5493 2009-05-02 Andreas Schwab <schwab@linux-m68k.org>
5494
5495 * process.c (read_process_output): Make sure the current buffer is
5496 always restored.
5497
5498 * coding.c (record_conversion_result): Don't modify
5499 Vlast_code_conversion_error for successful result.
5500 (alloc_destination): Don't clobber conversion result. (Bug#1650)
5501
5502 2009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
5503
5504 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
5505 (load_charset_map): Remove unnecessary code.
5506
5507 2009-04-30 David Reitter <david.reitter@gmail.com>
5508
5509 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
5510 through f24.
5511
5512 2009-04-30 Chong Yidong <cyd@stupidchicken.com>
5513
5514 * xfaces.c (face_at_buffer_position): New arg base_face_id.
5515
5516 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
5517 face_at_buffer_position.
5518 (face_before_or_after_it_pos, get_next_display_element)
5519 (note_mouse_highlight): Update face_at_buffer_position call.
5520
5521 * term.c (term_mouse_highlight):
5522 * msdos.c (IT_note_mouse_highlight):
5523 * fontset.c (Finternal_char_font):
5524 * font.c (font_at, font_range): Update face_at_buffer_position call.
5525
5526 * dispextern.h (face_at_buffer_position): Update prototype.
5527
5528 2009-04-30 Kenichi Handa <handa@m17n.org>
5529
5530 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
5531
5532 2009-04-29 Andreas Schwab <schwab@linux-m68k.org>
5533
5534 * callproc.c (Fcall_process): Fix GC protection. Make sure
5535 current buffer is always restored.
5536
5537 2009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5538
5539 * atimer.c (init_atimer): Also clear stopped_atimers.
5540
5541 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
5542
5543 * process.c (create_process): Clean up merger residues of
5544 2008-07-17 change.
5545
5546 2009-04-29 Ulrich Mueller <ulm@gentoo.org>
5547
5548 * lread.c (Vread_circle): New variable.
5549 (read1): Disable recursive read if Vread_circle is nil.
5550
5551 2009-04-29 Kenichi Handa <handa@m17n.org>
5552
5553 * fontset.h (set_default_ascii_font): Delete extern.
5554
5555 * fontset.c (set_default_ascii_font): Delete this unused function.
5556
5557 * frame.c (x_set_font): When ARG is a font-object, check if the
5558 font-object matches with the ASCII font-spec of the frame's
5559 fontset. If not, create a new fontset for the frame. (Bug #3075)
5560
5561 2009-04-28 Andreas Schwab <schwab@linux-m68k.org>
5562
5563 * fns.c (Flocale_info): Protect vector from GC during decoding.
5564
5565 * process.c (Fstart_process): Protect argv strings from GC during
5566 encoding.
5567
5568 2009-04-27 Andreas Schwab <schwab@linux-m68k.org>
5569
5570 * sysdep.c: Include <ctype.h>.
5571
5572 2009-04-27 David Reitter <david.reitter@gmail.com>
5573
5574 * nsfont.m (nsfont_open): Remove unused variable shrink.
5575 Remove commented-out code.
5576
5577 2009-04-26 Johan Bockgård <bojohan@gnu.org>
5578
5579 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
5580
5581 2009-04-25 Jason Rumney <jasonr@gnu.org>
5582
5583 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
5584
5585 2009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5586
5587 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
5588 Swap bytes in short integer if fringe bitmap width > 8.
5589
5590 2009-04-23 Kenichi Handa <handa@m17n.org>
5591
5592 * xfaces.c (Fx_list_fonts): If a font size is specified in
5593 PATTERN, set it in returned scalable fonts.
5594
5595 2009-04-22 Chong Yidong <cyd@stupidchicken.com>
5596
5597 * keyboard.c (Fset_input_meta_mode): Doc fix.
5598
5599 * dispnew.c (Fsend_string_to_terminal): Doc fix.
5600
5601 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
5602
5603 * coding.c (Fterminal_coding_system): Doc fix.
5604
5605 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
5606 (Fx_display_pixel_height, Fx_display_planes)
5607 (Fx_display_color_cells, Fx_server_max_request_size)
5608 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
5609 (Fx_display_mm_height, Fx_display_mm_width)
5610 (Fx_display_backing_store, Fx_display_visual_class)
5611 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
5612 Doc fixes, replacing "terminal id" with "terminal object".
5613 (check_x_display_info): Handle terminal objects instead of
5614 terminal ids.
5615
5616 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
5617 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
5618 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
5619 Doc fixes, replacing "terminal id" with "terminal object".
5620
5621 2009-04-21 Kenichi Handa <handa@m17n.org>
5622
5623 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
5624 (font_score): Check AVGWIDTH too.
5625
5626 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
5627 worst case.
5628 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
5629 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
5630
5631 2009-04-19 Jason Rumney <jasonr@gnu.org>
5632
5633 The following changes fix Bug#3005 for wide glyphs on each platform,
5634 without reintroducing Bug#1258 for stretch glyphs.
5635
5636 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
5637 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
5638 get_phys_cursor_geometry.
5639
5640 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
5641 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
5642 using get_phys_cursor_geometry.
5643
5644 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
5645 correctly calculated.
5646
5647 2009-04-19 Jan Djärv <jan.h.d@swipnet.se>
5648
5649 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
5650 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
5651 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
5652 is deprecated.
5653
5654 2009-04-18 Andreas Schwab <schwab@linux-m68k.org>
5655
5656 * font.c (font_put_frame_data): Use xfree instead of free.
5657
5658 2009-04-17 Juanma Barranquero <lekktu@gmail.com>
5659
5660 * w32font.c (Qja, Qko): Remove declarations.
5661 (syms_of_w32font): Don't DEFSYM them.
5662
5663 2009-04-17 Chong Yidong <cyd@stupidchicken.com>
5664
5665 * font.c (Qja, Qko): Move definitions here from ftfont.c.
5666
5667 * font.h (Qja, Qko): Extern them.
5668
5669 * ftfont.c (Qja, Qko): Remove declarations.
5670
5671 * xfont.c (Qja, Qko): Remove declarations.
5672
5673 2009-04-17 Kenichi Handa <handa@m17n.org>
5674
5675 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
5676 string from a vector to handle Latin-1 characters correctly.
5677
5678 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
5679 entity even if the cache hits.
5680
5681 2009-04-16 Andreas Schwab <schwab@linux-m68k.org>
5682
5683 * search.c (boyer_moore): Use zero as marker value for a possible
5684 match instead of depending on overflow behavior. (Bug#2844)
5685
5686 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
5687 * lisp.h: Adjust prototypes.
5688
5689 2009-04-16 Chong Yidong <cyd@stupidchicken.com>
5690
5691 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
5692 change (Bug#3003).
5693
5694 2009-04-16 Kenichi Handa <handa@m17n.org>
5695
5696 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
5697
5698 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
5699 adstyle.
5700
5701 * ftfont.c (Qja, Qko): Don't make them static.
5702 (enum ftfont_cache_for): New enum.
5703 (fc_charset_table): Undo the previous change.
5704 (ftfont_get_latin1_charset): Delete it.
5705 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
5706 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
5707 non-scarable font, try to get AVERAGE_WIDTH.
5708 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
5709 Change ft_face_cache from a list of a hash-table. Don't check
5710 `ja' and `ko' adstyle here.
5711 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
5712 FTFONT_CACHE_FOR_CHARET.
5713 (ftfont_get_charset): Undo the previous change.
5714 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
5715 (ftfont_close): Likewise.
5716 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
5717
5718 * font.c (font_sort_entites): Change the meaning of the arg
5719 BEST-ONLY. Don't optimize for VEC of lenght 1.
5720 (font_select_entity): Just return the value of font_sort_entites.
5721
5722 * xfaces.c (merge_face_vectors): Reflect font properties in
5723 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
5724 font_clear_prop if a face attribute doesn't change.
5725
5726 * charset.h (charset_ksc5601): Extern it.
5727
5728 * charset.c (charset_ksc5601): New variable.
5729 (Fdefine_charset_internal): Set charset_ksc5601.
5730 (init_charset_once): Initialize charset_ksc5601 to -1.
5731
5732 2009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
5733
5734 * fileio.c (history_delete_duplicates): Remove unused declaration.
5735
5736 * callint.c (history_delete_duplicates): New declaration.
5737 (Fcall_interactively): Remove command history duplicates when
5738 history_delete_duplicates is true.
5739
5740 2009-04-14 Eli Zaretskii <eliz@gnu.org>
5741
5742 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
5743
5744 2009-04-14 Kenichi Handa <handa@m17n.org>
5745
5746 * font.c (Ffont_info): Fix docstring. Fix the second element of
5747 the returned value (bug#2949).
5748
5749 2009-04-14 Chong Yidong <cyd@stupidchicken.com>
5750
5751 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
5752
5753 2009-04-14 Kenichi Handa <handa@m17n.org>
5754
5755 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
5756 encoding charset is ascii_compatible.
5757
5758 * charset.c (Fdefine_charset_internal): Make charset
5759 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
5760 code_offset is 0, and covers all ASCII characters.
5761
5762 2009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
5763
5764 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
5765 (ns_string_to_pasteboard_internal):
5766 * nsmenu.m (process_dialog):
5767 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
5768 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
5769 * lisp.h (Fx_load_color_file): Declare.
5770
5771 2009-04-13 Kenichi Handa <handa@m17n.org>
5772
5773 * font.c (font_delete_unmatched): Preserve the order of list elements.
5774 (font_select_entity): Suppress the code to optimize for the same
5775 kind of fonts.
5776 (font_load_for_lface): Get a font that supports at least ASCII
5777 characters.
5778
5779 * ftfont.c (Qja, Qko): New variables.
5780 (fc_charset_table): Delete uniquifier data for iso8859-1.
5781 (ftfont_get_latin1_charset): New function.
5782 (get_adstyle_property): New function.
5783 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
5784 bitmap fonts.
5785 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
5786 Delete iso-8859-1 range from the charset of fonts whose adstyle is
5787 `ko' or `ja'.
5788 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
5789 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
5790 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
5791 property.
5792 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
5793 (syms_of_ftfont): DEFSYM Qja and Qko.
5794
5795 2009-04-09 Kenichi Handa <handa@m17n.org>
5796
5797 * charset.c (map_charset_chars): For a charset of `superset'
5798 method, fix calculation of code range.
5799
5800 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
5801 from the list of extra properties.
5802 (font_clear_prop): Be sure to delete `:name' font property.
5803
5804 2009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5805
5806 * dispnew.c (redraw_overlapping_rows): Fix detection of
5807 overlapping for topmost and bottommost rows.
5808
5809 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
5810
5811 2009-04-06 Jason Rumney <jasonr@gnu.org>
5812
5813 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
5814
5815 2009-04-06 Kenichi Handa <handa@m17n.org>
5816
5817 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
5818
5819 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
5820
5821 2009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5822
5823 * ftfont.c (ftfont_open): Fix checking of the return value of
5824 FT_Load_Char. Fix setting font->underline_thickness.
5825
5826 2009-04-04 Chong Yidong <cyd@stupidchicken.com>
5827
5828 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
5829 (Fterminal_parameters, Fterminal_parameter)
5830 (Fset_terminal_parameter): In doc string, refer to terminal
5831 objects rather than terminal ids.
5832
5833 2009-04-04 Eli Zaretskii <eliz@gnu.org>
5834
5835 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
5836 ret_lim_data. (Bug#2867)
5837
5838 2009-04-03 Chong Yidong <cyd@stupidchicken.com>
5839
5840 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
5841 so they don't get wider than the window, matching 2006-01-23
5842 change to the partner function in xdisp.c (Bug#2800).
5843
5844 2009-04-03 Kenichi Handa <handa@m17n.org>
5845
5846 * print.c (print_object): Make each lowest sub_char_table start a
5847 new line (Bug#2866).
5848
5849 2009-04-02 Kenichi Handa <handa@m17n.org>
5850
5851 * fontset.c (fontset_font): Record no-font when a fontset
5852 explicitly tells not to try another font-specs.
5853
5854 2009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
5855
5856 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
5857
5858 2009-03-30 Kenichi Handa <handa@m17n.org>
5859
5860 * fontset.c (fontset_from_font): Specify only registry in a
5861 font-spec for all characters supported by that registry.
5862
5863 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
5864 even if HAVE_M17N_FLT is not defined.
5865
5866 2009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
5867
5868 * ftfont.c: Conditionalize prototyping and use of
5869 ftfont_variation_glyphs.
5870
5871 2009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
5872
5873 * frame.c (delete_frame): Work around compiler bug.
5874
5875 * editfns.c (general_insert_function): Adjust to insdel.c changes.
5876 * insdel.c (prepare_to_modify_buffer, signal_before_change):
5877 Some more EMACS_INT.
5878 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
5879
5880 * xdisp.c (dump_glyph): Fix typo.
5881
5882 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
5883 (adjust_markers_gap_motion, adjust_markers_for_delete)
5884 (adjust_markers_for_insert, adjust_point)
5885 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
5886 (make_gap, copy_text, count_size_as_multibyte, insert)
5887 (insert_and_inherit, insert_before_markers)
5888 (insert_before_markers_and_inherit, insert_1)
5889 (count_combining_before, count_combining_after, insert_1_both)
5890 (insert_from_string, insert_from_string_before_markers)
5891 (insert_from_string_1, insert_from_gap, insert_from_buffer)
5892 (insert_from_buffer_1, adjust_after_replace)
5893 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
5894 (replace_range_2, del_range, del_range_1, del_range_byte)
5895 (del_range_both, del_range_2, modify_region)
5896 (prepare_to_modify_buffer, signal_before_change)
5897 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
5898 for buffer positions and sizes.
5899 * lisp.h: Adjust prototypes accordingly.
5900
5901 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
5902 (non_regular_inserted, non_regular_nbytes, read_non_regular)
5903 (Finsert_file_contents): Use EMACS_INT for buffer positions.
5904
5905 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
5906
5907 2009-03-27 Jan Djärv <jan.h.d@swipnet.se>
5908
5909 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
5910 lines and columns so we keep the same pixel height and width.
5911
5912 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
5913 the property _NET_WM_STATE has changed.
5914 (x_handle_net_wm_state): New function to update frame parameter
5915 fullscreen.
5916 (x_term_init): Initialize atoms for _NET_WM_STATE.
5917
5918 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
5919
5920 2009-03-27 Kevin Ryde <user42@zip.com.au>
5921
5922 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
5923 Gpm_GetEvent as an error that justifies closing the filedescriptor.
5924 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
5925 (Fgpm_mouse_stop): Pass that new parameter.
5926 * termhooks.h (close_gpm): Adjust prototype.
5927
5928 2009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
5929
5930 * lisp.h (Fx_focus_frame): Declare.
5931
5932 * callint.c (Fcall_interactively): For '^' just delegate the work to
5933 handle-shift-selection.
5934 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
5935
5936 2009-03-24 Chong Yidong <cyd@stupidchicken.com>
5937
5938 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
5939
5940 * data.c (Qinteractive_form): New variable.
5941 (Finteractive_form): Use it.
5942
5943 * eval.c (Fcommandp): Use Qinteractive_form.
5944
5945 2009-03-24 Jason Rumney <jasonr@gnu.org>
5946
5947 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
5948 Calculate total size precisely. Decode environment variables
5949 before substituting. (Bug#38)
5950
5951 2009-03-24 Kenichi Handa <handa@m17n.org>
5952
5953 * font.c (find_font_encoding): Return Qnil for unsupported
5954 encoding (Bug#2722).
5955
5956 2009-03-23 Jan Djärv <jan.h.d@swipnet.se>
5957
5958 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
5959 that gdpy is set.
5960
5961 2009-03-22 Alan Mackenzie <acm@muc.de>
5962
5963 * callint.c (Finteractive): Clarify the doc string - even
5964 promptless elements need \n separators.
5965
5966 2009-03-22 Jason Rumney <jasonr@gnu.org>
5967
5968 * w32term.c (syms_of_w32term): Doc fix for
5969 x-use-underline-position-properties.
5970
5971 2009-03-21 Eli Zaretskii <eliz@gnu.org>
5972
5973 * w32.c (getpwuid): Change argument type to unsigned.
5974 (struct w32_id): Change type of `rid' member to unsigned.
5975 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
5976 argument ID to unsigned. All callers changed.
5977 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
5978
5979 2009-03-20 Eli Zaretskii <eliz@gnu.org>
5980
5981 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
5982 negative, produce a float value.
5983
5984 * dired.c (make_uid, make_gid): New functions.
5985 (Ffile_attributes): Use them to avoid negative UID and GID.
5986
5987 2009-03-20 Juanma Barranquero <lekktu@gmail.com>
5988
5989 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
5990 (syms_of_keyboard) <command-hook-internal, input-method-function>:
5991 Fix typos in docstrings.
5992
5993 2009-03-19 Kenichi Handa <handa@m17n.org>
5994
5995 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
5996 changed, use font_load_for_lface to get a new font object.
5997 Call free_realized_fontset after handling ASCII font change.
5998
5999 * frame.c (x_set_font): Handle the case that ARG is a cons.
6000
6001 2009-03-19 Glenn Morris <rgm@gnu.org>
6002
6003 * fileio.c (Fsubstitute_in_file_name): Doc fix.
6004
6005 2009-03-19 Chong Yidong <cyd@stupidchicken.com>
6006
6007 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
6008
6009 2009-03-19 Kenichi Handa <handa@m17n.org>
6010
6011 * charset.c (load_charset_map_from_file): When a mapfile can't be
6012 loaded, signal an error.
6013
6014 2009-03-18 Eli Zaretskii <eliz@gnu.org>
6015
6016 * dired.c (Ffile_attributes): Make sure UID and GID are always
6017 positive, even if the value is too large for a positive EMACS_INT.
6018 Doc fix.
6019
6020 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
6021
6022 2009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6023
6024 * xmenu.c (xdialog_show): Move Fredisplay call ...
6025 (Fx_popup_dialog): ... here.
6026
6027 2009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
6028
6029 * dired.c (file_name_completion): Disable the first optimization just
6030 installed, since it is not implemented correctly.
6031
6032 2009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
6033
6034 * dired.c (file_name_completion): Check completion-ignored-extensions
6035 only if the entry can affect bestmatch.
6036 Stop the search early, as Ftry_completion already does.
6037
6038 2009-03-17 Chong Yidong <cyd@stupidchicken.com>
6039
6040 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
6041
6042 2009-03-15 Chong Yidong <cyd@stupidchicken.com>
6043
6044 * keyboard.c (parse_menu_item): Don't display remappings as menu
6045 equivalent bindings (Bug#788).
6046
6047 2009-03-15 Jason Rumney <jasonr@gnu.org>
6048
6049 * w32term.h (WM_EMACS_PAINT): New message.
6050 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
6051 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
6052 before passing to lisp thread. (Bug#950)
6053
6054 2009-03-14 David Reitter <david.reitter@gmail.com>
6055
6056 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
6057 variable as it was never reset.
6058 (ns_term_init): Remove initialization of Lisp-settable defaults
6059 and ns_expand_space.
6060 (-setPanelFromDefaultValues): Remove ns_expand_space.
6061 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
6062 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
6063 i.e. no additional spacing, similar to Carbon port.
6064
6065 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
6066 * nsfns.m (ns-popup-prefs-panel): Remove.
6067
6068 2009-03-14 Jan Djärv <jan.h.d@swipnet.se>
6069
6070 * sound.c (alsa_configure): Remove call to deprecated
6071 snd_pcm_sw_params_set_xfer_align.
6072
6073 2009-03-14 Stephen Berman <stephen.berman@gmx.net>
6074
6075 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
6076 after clicking in a detached tool bar.
6077 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
6078
6079 2009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
6080
6081 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
6082 int/Lisp_Object mixup).
6083
6084 2009-03-13 Kenichi Handa <handa@m17n.org>
6085
6086 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
6087 Handle NAME nil and t correctly. Callers changed.
6088 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
6089 (set_fontset_font): Change ARG to a vector. Handle range_list in
6090 ARG correctly.
6091 (Fset_fontset_font): Fix the case that TARGET is both a script
6092 name and charset name. Adjust the arg to set_fontset_font for
6093 the above change.
6094 (fontset_from_font): Fix previous change.
6095 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
6096 entry. If FONTSET is the default fontset, don't set the extra
6097 slot of the returning char-table.
6098
6099 2009-03-12 Juanma Barranquero <lekktu@gmail.com>
6100
6101 * nsfns.m (Fx_close_connection): Doc fix.
6102 (Fns_do_applescript): Reflow docstring.
6103 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
6104 (Fx_display_pixel_width, Fx_display_pixel_height)
6105 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
6106 Fix typos in docstrings.
6107 (Fns_set_alpha): Fix typos in error messages.
6108
6109 2009-03-12 David Reitter <david.reitter@gmail.com>
6110
6111 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
6112 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
6113 were used for such events.
6114
6115 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
6116 (toggleToolbar, performDragOperation, runHelp): Use it.
6117
6118 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
6119 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
6120
6121 2009-03-11 Kenichi Handa <handa@m17n.org>
6122
6123 * font.h (font_open_by_spec): Extern it.
6124
6125 * font.c (font_open_by_spec): New function.
6126 (font_open_by_name): Use font_open_by_spec.
6127
6128 * frame.c (x_set_font): When ARG is a font-object, don't alter the
6129 fontset of the frame.
6130
6131 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
6132 modify the default font of frames that use this fontset.
6133 (num_auto_fontsets): New variable.
6134 (fontset_from_font): Use num_auto_fontsets to decide a fontset
6135 name. Be sure to set FONTSET_ASCII to the correct font name.
6136 (update_auto_fontset_alist): New function.
6137
6138 2009-03-11 Juanma Barranquero <lekktu@gmail.com>
6139
6140 * makefile.w32-in: Update dependencies.
6141
6142 2009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
6143
6144 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
6145
6146 2009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
6147
6148 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
6149
6150 2009-03-10 Chong Yidong <cyd@stupidchicken.com>
6151
6152 * lread.c (Feval_buffer): Doc fix.
6153
6154 2009-03-09 Kenichi Handa <handa@m17n.org>
6155
6156 * charset.c (Qfile_name_handler_alist): Extern it.
6157 (load_charset_map_from_file): Temporarily bind
6158 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
6159
6160 2009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
6161
6162 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
6163 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
6164
6165 2009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
6166
6167 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
6168 (x_set_window_size): Change back to calculated method of setting
6169 toolbar height under Cocoa. (Bug#2546)
6170 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
6171 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
6172
6173 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
6174
6175 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
6176 accelerator in parens under GNUstep.
6177
6178 2009-03-06 Kenichi Handa <handa@m17n.org>
6179
6180 These changes are to detect incorrect composition sequence without
6181 looking ahead the source. (Bug#2370)
6182
6183 * coding.h: Include "composite.h".
6184 (enum compisition_state): New enum.
6185 (struct compisition_status): New struct.
6186 (struct iso_2022_spec): New member cmp_status.
6187 (struct emacs_mule_spec): New struct.
6188 (struct coding_system): New members ctext_extended_segment_len and
6189 embedded_utf_8. Change the union member
6190 spec.emacs_mule_full_support to spec.emacs_mule.
6191
6192 * coding.c (CODING_ISO_CMP_STATUS): New macro.
6193 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
6194 (MAX_ANNOTATION_LENGTH): Define to 5.
6195 (ADD_COMPOSITION_DATA): New arg nbytes.
6196 (emacs_mule_char): New arg cmp_status.
6197 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
6198 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
6199 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
6200 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
6201 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
6202 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
6203 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
6204 (EMACS_MULE_COMPOSITION_END): New macro.
6205 (emacs_mule_finish_composition): New function.
6206 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
6207 (decode_coding_emacs_mule): Avoid long looking ahead while
6208 handling composition.
6209 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
6210 (ENCODE_COMPOSITION_RULE): New macro.
6211 (finish_composition): New function.
6212 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
6213 (DECODE_COMPOSITION_START): New implementation.
6214 (DECODE_COMPOSITION_END): Likewise.
6215 (STORE_COMPOSITION_RULE): New macro.
6216 (decode_coding_iso_2022): Avoid long looking ahead while handling
6217 composition, CTEXT extended segment, and embedded UTF-8.
6218 (setup_coding_system): For a coding of type iso-2022, reset
6219 CODING_ISO_EXTSEGMENT_LEN (coding) and
6220 CODING_ISO_EMBEDDED_UTF_8 (coding).
6221 (get_translation): Delete arguments last_block, from_nchars,
6222 to_nchars. Callers changed.
6223 (produce_chars): Don't modify charbuf. Adjusted for the change of
6224 get_translation.
6225 (produce_composition): Adjust for the new annotation sequence.
6226 (handle_composition_annotation): Likewise.
6227 (consume_chars): Adjust for the change of get_translation.
6228
6229 2009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
6230
6231 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
6232
6233 2009-03-05 Kenichi Handa <handa@m17n.org>
6234
6235 * font.c (font_select_entity): New function.
6236 (font_find_for_lface): Use font_select_entity to select a font.
6237
6238 * fontset.c (fontset_find_font): If a font found without
6239 restricting to the characters C doesn't support C, try to find a
6240 font with C restriction.
6241
6242 2009-03-04 Nikolaj Schumacher <me@nschum.de>
6243
6244 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
6245
6246 2009-03-04 Jason Rumney <jasonr@gnu.org>
6247
6248 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
6249 characters that have already been read. (Bug#2569)
6250
6251 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
6252 Log an error message if check_image_size failed.
6253 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
6254 (gs_load): Mention max-image-size in size error message. (Bug#2560)
6255
6256 2009-03-02 Eli Zaretskii <eliz@gnu.org>
6257
6258 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
6259 when decoding process output.
6260
6261 2009-03-01 Richard M Stallman <rms@gnu.org>
6262
6263 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
6264
6265 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
6266
6267 2009-02-28 Eli Zaretskii <eliz@gnu.org>
6268
6269 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
6270 (decode_coding_emacs_mule, decode_coding_iso_2022)
6271 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
6272 (decode_coding_raw_text, decode_coding_charset)
6273 (setup_coding_system, decode_eol, decode_coding, consume_chars):
6274 Honor inhibit-eol-conversion. (Bug #2186)
6275
6276 2009-02-28 Jason Rumney <jasonr@gnu.org>
6277
6278 * coding.c (detect_coding_charset): If not checking latin extra,
6279 fail on characters between 0x80 and 0xA0. (Bug#2354)
6280
6281 2009-02-28 Eli Zaretskii <eliz@gnu.org>
6282
6283 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
6284 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
6285
6286 2009-02-27 Glenn Morris <rgm@gnu.org>
6287
6288 * callint.c (Finteractive): Doc fix.
6289
6290 2009-02-27 Kenichi Handa <handa@m17n.org>
6291
6292 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
6293
6294 2009-02-27 Chong Yidong <cyd@stupidchicken.com>
6295
6296 * font.c (font_style_to_value): Set value for unknown symbols to
6297 100 instead of 255.
6298 (weight_table, slant_table, width_table): Treat "unspecified" as
6299 the default value.
6300
6301 2009-02-26 Juanma Barranquero <lekktu@gmail.com>
6302
6303 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
6304
6305 2009-02-25 Juanma Barranquero <lekktu@gmail.com>
6306
6307 * lread.c (Fload): Stop checking Vloads_in_progress and signal
6308 error as soon as a recursive load is detected.
6309
6310 2009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
6311
6312 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
6313 before caching.
6314
6315 2009-02-24 Kenichi Handa <handa@m17n.org>
6316
6317 * fontset.c (fontset_find_font): Fix the condition for checking
6318 unavailable font.
6319
6320 2009-02-24 Glenn Morris <rgm@gnu.org>
6321
6322 * xfaces.c (Finternal_set_font_selection_order): Remove leading
6323 whitespace that confuses documentation.
6324
6325 2009-02-23 Miles Bader <miles@gnu.org>
6326
6327 * process.c (Flist_system_processes, Fprocess_attributes)
6328 (syms_of_process): Rename `system-process-attributes' to
6329 `process-attributes'.
6330
6331 2009-02-22 Andreas Schwab <schwab@linux-m68k.org>
6332
6333 * coding.h (struct coding_system): Make safe_charsets a pointer to
6334 unsigned char.
6335 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
6336 being 255.
6337 (SAFE_CHARSET_P): Likewise.
6338 (setup_iso_safe_charsets): Properly setup safe_charsets.
6339 (Fdefine_coding_system_internal): Likewise.
6340 (setup_coding_system): Likewise. Remove unneeded casts.
6341 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
6342 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
6343 unneeded casts.
6344
6345 * insdel.c (del_range_2): Don't modify gap contents when called
6346 from decode_coding_object. (Bug#1809)
6347
6348 2009-02-21 Chong Yidong <cyd@stupidchicken.com>
6349
6350 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
6351 Qfont_object.
6352 (Ftype_of): Recognize font objects.
6353
6354 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
6355
6356 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
6357 moved to data.c.
6358
6359 2009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
6360
6361 * nsterm.m (x_make_frame_invisible): Unset async_visible,
6362 async_iconified. Based on a patch by Christian Lynbech
6363 <christian.lynbech@tieto.com>.
6364 (EmacsView-windowDidMiniaturize:): Unset async_visible.
6365
6366 2009-02-20 Glenn Morris <rgm@gnu.org>
6367
6368 * syntax.c (Fskip_chars_forward): Fix doc typo.
6369
6370 2009-02-20 Chong Yidong <cyd@stupidchicken.com>
6371
6372 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
6373
6374 2009-02-19 Chong Yidong <cyd@stupidchicken.com>
6375
6376 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
6377
6378 2009-02-19 Kenichi Handa <handa@m17n.org>
6379
6380 * coding.c (detect_coding): Preserve coding->mode.
6381 Don't overflow coding->carryover. (Bug#2370)
6382
6383 2009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
6384
6385 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
6386
6387 2009-02-18 Kenichi Handa <handa@m17n.org>
6388
6389 * font.c (font_check_otf_features): Fix handling of `nil' element.
6390 (Ffont_spec): Describe :lang and :otf in the docstring.
6391
6392 2009-02-16 Andreas Schwab <schwab@suse.de>
6393
6394 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
6395 string.
6396
6397 2009-02-16 Kenichi Handa <handa@m17n.org>
6398
6399 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
6400 (Bug#1723)
6401
6402 2009-02-14 Chong Yidong <cyd@stupidchicken.com>
6403
6404 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
6405
6406 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
6407 (handle_line_prefix): Suppress wrapping of wrap prefixes.
6408
6409 2009-02-14 Eli Zaretskii <eliz@gnu.org>
6410
6411 * msdos.c (MAX_SCREEN_BUF): New macro.
6412 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
6413 Encode the entire run of glyphs sharing the same face, instead of
6414 doing that one glyph at a time (fixes a bug with displaying
6415 double-size characters).
6416
6417 2009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
6418
6419 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
6420
6421 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
6422 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
6423 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
6424
6425 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
6426 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
6427
6428 2009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
6429
6430 * keyboard.c (adjust_point_for_property): Allow stopping between two
6431 invisible areas.
6432
6433 2009-02-12 Jason Rumney <jasonr@gnu.org>
6434
6435 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
6436 (add_font_entity_to_list): Call check_face_name even when family
6437 is unspecified.
6438
6439 * w32term.c (x_display_pixel_height, x_display_pixel_width):
6440 Release DC when finished. Use NULL window to refer to desktop.
6441 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
6442
6443 * w32font.c (add_font_entity_to_list): Fix check for substituted
6444 raster fonts. (Bug#2219)
6445
6446 2009-02-12 Kenichi Handa <handa@m17n.org>
6447
6448 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
6449 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
6450 (autocmp_chars): Use fast_looking_at. Don't compose more
6451 characters than MAX_COMPOSITION_COMPONENTS.
6452 (find_automatic_composition): While looking forward and backward,
6453 check static composition. Fix where to stop looking forward.
6454 (composition_adjust_point): Fix checking of static composition.
6455 (Fcomposition_get_gstring): Pay attention to
6456 MAX_COMPOSITION_COMPONENTS.
6457
6458 * lisp.h (fast_looking_at): Extern it.
6459
6460 * search.c (fast_looking_at): New function.
6461
6462 * term.c (encode_terminal_code): Adjust for the change of
6463 <struct glyph>.u.cmp.to.
6464 (append_composite_glyph): Likewise.
6465
6466 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
6467 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
6468 composition.
6469 (append_composite_glyph): Adjust for the change of
6470 <strcut glyph>.u.cmp.to.
6471
6472 2009-02-11 Juanma Barranquero <lekktu@gmail.com>
6473
6474 * casetab.c (init_casetab_once):
6475 * coding.c (ALLOC_CONVERSION_WORK_AREA):
6476 * font.c (font_update_lface):
6477 * fontset.c (Fnew_fontset):
6478 * ftfont.c (ftfont_drive_otf):
6479 * xfont.c (xfont_open):
6480 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
6481
6482 2009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
6483
6484 * fileio.c (Fwrite_region): !NILP -> CONSP.
6485
6486 2009-02-10 Andreas Schwab <schwab@suse.de>
6487
6488 * process.c (send_process): Properly relocate pointer into data
6489 when using encoded data. (Bug#2272)
6490
6491 2009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
6492
6493 * coding.c (detect_coding_charset): Fix previous change.
6494
6495 2009-02-08 Jason Rumney <jasonr@gnu.org>
6496
6497 * w32fns.c (w32_hide_hourglass): Handle case where frame
6498 disappeared while hourglass was displayed. (Bug #2193)
6499
6500 2009-02-07 Andreas Schwab <schwab@suse.de>
6501
6502 * unexelf.c (unexec): Fix error message.
6503
6504 2009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
6505
6506 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
6507 when modal window is active. (Bug #2152)
6508 (applicationShouldTerminate:): Remove now-unneeded while loop
6509 around NSRunAlertPanel.
6510
6511 * nsmenu.m (popupSession): New file-global variable.
6512 (pop_down_menu): End the popupSession before closing dialog.
6513 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
6514 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
6515 don't query NSApp for events (just sleep instead).
6516
6517 2009-02-07 Eli Zaretskii <eliz@gnu.org>
6518
6519 * coding.c (syms_of_coding) <translation-table-for-input>:
6520 Modify doc string to discourage use for character code unification.
6521
6522 2009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6523
6524 * atimer.c (run_timers): Update pending_atimers.
6525
6526 2009-02-06 Chong Yidong <cyd@stupidchicken.com>
6527
6528 * image.c (svg_load_image): Fix last change.
6529
6530 * xfns.c (Fx_create_frame): Signal an error if no font is
6531 found (Bug#2147).
6532
6533 2009-02-05 Juanma Barranquero <lekktu@gmail.com>
6534
6535 * character.c (syms_of_character) <script-representative-chars>:
6536 Fix typo in docstring.
6537
6538 2009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
6539
6540 * nsmenu.m (pop_down_menu): New function.
6541 (ns_popup_dialog): Call it on unwind.
6542 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
6543 call timer_check() (Bug#2154).
6544 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
6545 handling_signal is set.
6546 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
6547
6548 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
6549
6550 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
6551
6552 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
6553
6554 * keyboard.c (poll_for_input_1, handle_async_input):
6555 Set handling_signal under HAVE_NS.
6556
6557 2009-02-04 Glenn Morris <rgm@gnu.org>
6558
6559 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
6560
6561 2009-02-04 Kenichi Handa <handa@m17n.org>
6562
6563 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
6564
6565 * charset.c (Fchar_charset): New optional arg restriction.
6566
6567 * coding.h (coding_system_charset_list): Extern it.
6568
6569 * coding.c (coding_system_charset_list): New function.
6570
6571 * composite.c: Include coding.h and termhooks.h.
6572 (composition_gstring_p): Fix for the terminal case.
6573 (composition_gstring_width): Likewise.
6574 (fill_gstring_body): Likewise.
6575 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
6576 the frame.
6577 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
6578 is within a composition.
6579 (Fcomposition_get_gstring): Fix the terminal case.
6580
6581 * term.c (encode_terminal_code): Fix handling of composition.
6582 (produce_composite_glyph): For static composition, get pixel_width
6583 from struct composition.
6584
6585 2009-02-02 Andreas Schwab <schwab@suse.de>
6586
6587 * unexelf.c (unexec): Handle unaligned bss offset.
6588
6589 2009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
6590
6591 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
6592 XT,w32read_socket changes to ns_read_socket.
6593
6594 * keyboard.c (handle_interrupt): Don't call
6595 quit_throw_to_read_char() under NS.
6596
6597 * blockinput.h: Remove NS-specific code.
6598
6599 2009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
6600
6601 * dispnew.c (window_change_signal): Don't try to get the size of a
6602 suspended tty frame.
6603 * term.c (Fresume_tty): Resize if the size has changed while the
6604 tty was suspended.
6605
6606 * alloc.c (mark_stack): Properly conditionalize previous change.
6607
6608 2009-01-30 Juanma Barranquero <lekktu@gmail.com>
6609
6610 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
6611 * w32term.c (w32_read_socket) [SYNC_INPUT]:
6612 Remove; this code is not used on Windows.
6613
6614 2009-01-30 Eli Zaretskii <eliz@gnu.org>
6615
6616 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
6617 EOLs that also has stray ^M characters.
6618
6619 2009-01-30 Juanma Barranquero <lekktu@gmail.com>
6620
6621 * atimer.c (run_timers, alarm_signal_handler):
6622 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
6623 * w32inevt.c (w32_console_read_socket):
6624 * w32term.c (w32_read_socket):
6625 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
6626
6627 2009-01-30 Chong Yidong <cyd@stupidchicken.com>
6628
6629 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
6630 Initialize it as a relative filename pattern.
6631 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
6632 (Fcall_process_region): Simplify temp file creation using
6633 temporary-file-directory.
6634
6635 2009-01-29 Eli Zaretskii <eliz@gnu.org>
6636
6637 * msdos.c: Rename pending_signals to msdos_pending_signals.
6638 (sig_suspender, sigprocmask): Adjust.
6639
6640 2009-01-29 Chong Yidong <cyd@stupidchicken.com>
6641
6642 * keyboard.c (pending_signals): New var.
6643 (poll_for_input, input_available_signal, init_keyboard): Set it.
6644 (process_pending_signals): New function.
6645
6646 * lisp.h (QUIT): Check pending_signals instead of
6647 interrupt_input_pending. Use process_pending_signals.
6648
6649 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
6650
6651 * process.c (wait_reading_process_output): Use process_pending_signals.
6652
6653 * sysdep.c (emacs_write): Use process_pending_signals.
6654
6655 * xterm.c (XTread_socket): Update pending_signals.
6656
6657 * w32term.c (w32_read_socket): Update pending_signals.
6658
6659 * w32inevt.c (w32_console_read_socket): Update pending_signals.
6660
6661 2009-01-29 Kenichi Handa <handa@m17n.org>
6662
6663 * xftfont.c (xftfont_has_char): New function.
6664 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
6665
6666 2009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
6667
6668 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
6669 under GNUstep.
6670 (ns_query_color): New declaration.
6671
6672 * nsterm.m (ns_confirm_quit): New variable.
6673 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
6674 (EmacsApp-applicationShouldTerminate:): Use it.
6675 (EmacsPrefsController): Let user set it.
6676 (ns_query_color): New function.
6677 (ns_defined_color): Use it.
6678 (ns_initialize): Drop.
6679 (ns_term_init): Add two lines from ns_initialize(), and set
6680 input_interrupt_mode to nil.
6681
6682 * image.c (svg_load_image): Don't right-shift background RGB when
6683 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
6684
6685 2009-01-28 Kenichi Handa <handa@m17n.org>
6686
6687 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
6688 (fontset_get_font_group): Remember that no font-group is specified
6689 for C.
6690
6691 2009-01-27 Chong Yidong <cyd@stupidchicken.com>
6692
6693 * fns.c (concat): Check for string overflow (bug#1787).
6694
6695 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
6696 Quadruple undo limits (bug#1501).
6697
6698 2009-01-27 Kenichi Handa <handa@m17n.org>
6699
6700 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
6701 directly use GT_Get_Char_index.
6702
6703 * xftfont.c (struct xftfont_info): New member `index'.
6704
6705 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
6706 (Ffontset_font): Adjust for the change of fontset entry.
6707
6708 2009-01-26 Kenichi Handa <handa@m17n.org>
6709
6710 * fontset.c (fontset_find_font): Fix handling of non-cons return
6711 value of fontset_get_font_group.
6712 (fontset_font): Revert last change.
6713
6714 2009-01-26 Jason Rumney <jasonr@gnu.org>
6715
6716 * w32font.c (w32font_list_internal): Return quickly if registry is
6717 unknown. Simplify final return.
6718 (add_font_entity_to_list): Break complex logic down into more
6719 manageable chunks. Move unknown registry check to
6720 w32font_list_internal.
6721
6722 2009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
6723
6724 Changes to remove Feval calls from GUI under NS.
6725
6726 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
6727 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
6728 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
6729
6730 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
6731 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
6732 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
6733 instead of NON_ASCII_KEYSTROKE_EVENT.
6734 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
6735 (EmacsApp-applicationShouldTerminate:): Query user.
6736 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
6737 instead of Feval.
6738
6739 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
6740
6741 * keyboard.c (kbd_buffer_get_event): Check for it.
6742 (keys_of_keyboard): Define lispy keys for
6743 ns-put/unput-working-text.
6744
6745 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
6746 versions.
6747 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
6748
6749 2009-01-25 Chong Yidong <cyd@stupidchicken.com>
6750
6751 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
6752 setting current_buffer directly. (Bug#2044)
6753
6754 2009-01-24 Chong Yidong <cyd@stupidchicken.com>
6755
6756 * fontset.c (fontset_font): If we know there is no font, don't do
6757 any work. (Bug#1952, bug#1990).
6758
6759 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
6760
6761 2009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
6762
6763 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
6764 (ns_no_defaults): New declaration.
6765 (main): Use it.
6766
6767 * nsterm.h (ns_no_defaults): New declaration.
6768
6769 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
6770
6771 * nsterm.m (ns_no_defaults): New variable.
6772 (ns_initialize): Don't read defaults when ns_no_defaults.
6773 (EmacsView-readSelectionFromPasteboard:)
6774 (writeSelectionToPasteboard:types:): New stubbed-out methods for
6775 NSServicesRequests protocol. (Bug#1435)
6776 (ns_dumpglyphs_stretch): New function.
6777 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
6778 of 2008-11-15 to other terms. (Bug#615)
6779
6780 * nsimage.m (setPixmapData:): Set to ignore image DPI.
6781
6782 2009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
6783
6784 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
6785 call for Sparc64.
6786
6787 2009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
6788
6789 * nsfns.m:
6790 * nsgui.h:
6791 * nsmenu.m:
6792 * nsselect.m:
6793 * nsterm.h:
6794 * nsterm.m: Remove '23' comments that indicated code added during
6795 update from emacs-20 -> emacs-23.
6796
6797 2009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
6798
6799 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
6800 ns_alternate_modifier. (Bug#1217)
6801
6802 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
6803 Display all shortcuts, including those w/o super modifier.
6804
6805 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
6806
6807 2009-01-22 Chong Yidong <cyd@stupidchicken.com>
6808
6809 * fileio.c (Vwrite_region_post_annotation_function)
6810 (Vwrite_region_annotation_buffers): New vars.
6811 (build_annotations_unwind): Just reset
6812 Vwrite_region_annotation_buffers.
6813 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
6814 Call write-region-post-annotation-function.
6815 (build_annotations): Add to Vwrite_region_annotation_buffers if
6816 buffer changes.
6817
6818 2009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
6819
6820 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
6821 Tiger.
6822 * nsfns.m (ns_do_applescript):
6823 Conditionalize typeUTF16ExternalRepresentation on Tiger.
6824
6825 2009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
6826
6827 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
6828
6829 2009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
6830
6831 * nsmenu.m (NSMENUPROFILE): Change #if style.
6832
6833 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
6834
6835 * nsterm.m (x_set_frame_alpha): Add prototype.
6836 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
6837 handle Ctrl-tab. (Bug#1841)
6838 (ns_get_color): Use unsigned long long for scanned hex string value.
6839 (ns_term_shutdown): Abort on non SIGTERM signals.
6840 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
6841 (EmacsPrefsController-setPanelFromDefaultValues): New function.
6842 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
6843 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
6844 (ns_defined_color): Fix settings of the XColor variable fields:
6845 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
6846
6847 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
6848 DPI. (Bug#1316)
6849 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
6850 values in onTiger section.
6851
6852 2009-01-19 Chong Yidong <cyd@stupidchicken.com>
6853
6854 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
6855 Check return value of font_spec_from_name.
6856 (Fx_list_fonts): Doc fix. (Bug#1951)
6857
6858 * font.c (font_spec_from_name): Return Qnil if font name could not
6859 be parsed.
6860 (font_parse_name): Treat a `?' character as part of an XLFD.
6861
6862 * fns.c (Fsubstring): Doc fix.
6863
6864 2009-01-19 Kenichi Handa <handa@m17n.org>
6865
6866 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
6867 (ftfont_list): Likewise.
6868
6869 2009-01-18 Juanma Barranquero <lekktu@gmail.com>
6870
6871 * dbusbind.c (Fdbus_register_signal):
6872 * process.c (conv_sockaddr_to_lisp):
6873 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
6874
6875 * callproc.c (Fgetenv_internal): Doc fix.
6876
6877 2009-01-16 Chong Yidong <cyd@stupidchicken.com>
6878
6879 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
6880 it is not even used.
6881
6882 2009-01-16 Glenn Morris <rgm@gnu.org>
6883
6884 * font.c (Ffont_variation_glyphs): Silence compiler.
6885
6886 2009-01-15 Juanma Barranquero <lekktu@gmail.com>
6887
6888 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
6889 Reported by David Robinow <drobinow@gmail.com>.
6890
6891 2009-01-15 Kenichi Handa <handa@m17n.org>
6892
6893 * coding.c (detect_coding_system): Fix handling of null_byte_found.
6894
6895 2009-01-14 Jason Rumney <jasonr@gnu.org>
6896
6897 * frame.c (x_set_font): Always store a font to the font parameter,
6898 never a fontset. (Bug#1562)
6899
6900 2009-01-14 Kenichi Handa <handa@m17n.org>
6901
6902 * coding.c (TWO_MORE_BYTES): New macro.
6903 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
6904
6905 2009-01-13 Chong Yidong <cyd@stupidchicken.com>
6906
6907 * font.c (font_clear_prop): If clearing the family, clear the font
6908 width index too.
6909
6910 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
6911
6912 2009-01-12 Juanma Barranquero <lekktu@gmail.com>
6913
6914 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
6915 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
6916 functions, use sizeof.
6917
6918 2009-01-12 Martin Rudalics <rudalics@gmx.at>
6919
6920 * keyboard.c (read_char): Fix case where last_nonmenu_event
6921 returned a bad value with submenus. (Bug#447)
6922
6923 2009-01-12 Chong Yidong <cyd@stupidchicken.com>
6924
6925 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
6926 family, clear the font width index too.
6927
6928 2009-01-11 Jason Rumney <jasonr@gnu.org>
6929
6930 * keyboard.c (cmd_error_internal): Exit when errors occur before
6931 frame creation and not in daemon mode. (Bug#1836)
6932
6933 2009-01-10 Chong Yidong <cyd@stupidchicken.com>
6934
6935 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
6936 of a display vector, backtrack.
6937 (try_window_reusing_current_matrix): Check glyph type before
6938 referencing charpos member.
6939
6940 2009-01-10 Eli Zaretskii <eliz@gnu.org>
6941
6942 Fix Bug #876:
6943
6944 * coding.c (inhibit_null_byte_detection): New variable.
6945 (detect_coding, detect_coding_system): Don't pay attention to null
6946 bytes if inhibit_null_byte_detection is non-zero.
6947 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
6948 <inhibit-iso-escape-detection>: Doc fix.
6949
6950 2009-01-09 Jason Rumney <jasonr@gnu.org>
6951
6952 * w32font.c (add_font_entity_to_list): Don't report unknown
6953 Windows charset as any unrecognized registry. (Bug#1548)
6954 Only report Unicode Plane 2 fonts as unicode-sip.
6955
6956 2009-01-09 Chong Yidong <cyd@stupidchicken.com>
6957
6958 * xfaces.c (Fx_font_family_list): Delete function.
6959 Move compatibility version to faces.el.
6960
6961 * font.c (Ffont_family_list): Return a list of strings, not symbols.
6962
6963 2009-01-09 Martin Rudalics <rudalics@gmx.at>
6964
6965 * frame.c (x_set_frame_parameters): Remember requested value for
6966 fullscreen before it's reset by the parameter handler.
6967
6968 2009-01-09 Glenn Morris <rgm@gnu.org>
6969
6970 * keyboard.c (last_command_char): For clarity, rename to...
6971 (last_command_event): ... and update all users.
6972 (last_input_char): For clarity, rename to...
6973 (last_input_event): ... and update all users.
6974 (last-command-char, last-input-char): Move to subr.el as aliases.
6975 * cmds.c, commands.h: Update for last_command_char rename.
6976
6977 2009-01-08 Chong Yidong <cyd@stupidchicken.com>
6978
6979 * font.c (font_open_for_lface): Handle unspecified height attribute.
6980
6981 2009-01-08 Jason Rumney <jasonr@gnu.org>
6982
6983 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
6984 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
6985 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
6986 Don't declare.
6987 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
6988 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
6989
6990 2009-01-07 Kenichi Handa <handa@m17n.org>
6991
6992 * fileio.c (Finsert_file_contents): In the case of replace,
6993 remember the coding system used for decoding in
6994 coding_system (Bug#1039).
6995
6996 * coding.c (decode_coding_utf_8): Check byte_after_cr before
6997 breaking the loop. (Bug#870)
6998 (decode_coding_utf_16, decode_coding_emacs_mule)
6999 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
7000 (decode_coding_charset): Likewise.
7001
7002 2009-01-05 Martin Rudalics <rudalics@gmx.at>
7003
7004 * frame.c (x_set_frame_parameters): Make sure height (width) get
7005 applied when fullwidth (fullheight) is set. (Bug#1522)
7006
7007 2009-01-04 Juanma Barranquero <lekktu@gmail.com>
7008
7009 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
7010 (utc_base): Declare as ULONGLONG, not long double.
7011 (convert_time_raw): Delete.
7012 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
7013 (initialize_utc_base): New function.
7014 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
7015 (convert_from_time_t): Use initialize_utc_base; compute result with
7016 64-bit arithmetic.
7017 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
7018
7019 2009-01-03 Eli Zaretskii <eliz@gnu.org>
7020
7021 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
7022 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
7023 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
7024 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
7025 [!subprocesses]: Define.
7026 (syms_of_process) [!subprocesses]: Intern and staticpro them.
7027 (Flist_system_processes, Fsystem_process_attributes)
7028 [!subprocesses]: Call list_system_processes and
7029 system_process_attributes instead of returning Qnil.
7030
7031 * dosfns.c (system_process_attributes, list_system_processes):
7032 New functions.
7033
7034 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
7035
7036 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
7037 Don't use the default (no-op) implementation.
7038
7039 2009-01-03 Jason Rumney <jasonr@gnu.org>
7040
7041 * keyboard.c (parse_modifiers_uncached): Wheel events are
7042 clicks (bug#687).
7043
7044 * w32term.c (x_query_colors, x_query_color): New functions.
7045
7046 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
7047 (svg_load_image): Cast returned pointers from dynamically loaded
7048 functions. Eliminate W32 specific code.
7049
7050 2009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
7051
7052 * nsfns.m (x_set_foreground_color, x_set_background_color)
7053 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
7054 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
7055 x_ prefix instead of ns_. Update references.
7056 (syms_of_nsfns): Add a FIXME comment.
7057
7058 * nsterm.m (x_set_cursor_type): New prototype.
7059 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
7060
7061 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
7062 for Solaris instead of incorrectly providing Qutime and Qcutime.
7063
7064 2009-01-02 Eli Zaretskii <eliz@gnu.org>
7065
7066 * w32.c (process_times): Compute sum of utime and stime.
7067 (system_process_attributes): Add Qtime to the alist.
7068
7069 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
7070 and add them to the alist.
7071
7072 * process.c (top level) <Qtime, Qctime>: New variables.
7073 (syms_of_process): staticpro them.
7074 (Fsystem_process_attributes): Add their documentation to the doc
7075 string.
7076
7077 * process.h: Declare Qtime and Qctime.
7078
7079 2009-01-02 Jason Rumney <jasonr@gnu.org>
7080
7081 * image.c (Qgobject): New symbol.
7082 (syms_of_image): Initialize it.
7083 (init_svg_functions): Load some functions from gobject library.
7084
7085 2009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
7086
7087 * frame.c (make_terminal_frame): Remove redundant code and useless
7088 block.
7089
7090 2009-01-01 Andreas Schwab <schwab@suse.de>
7091
7092 * process.c (conv_sockaddr_to_lisp): Add workaround for
7093 getsockname bug on BSD.
7094
7095 2009-01-01 Chong Yidong <cyd@stupidchicken.com>
7096
7097 * xfns.c (x_create_tip_frame): Set border width of the X window.
7098
7099 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
7100
7101 2009-01-01 Jason Rumney <jasonr@gnu.org>
7102
7103 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
7104 Don't block input, as per earlier xterm.c changes.
7105
7106 2008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
7107
7108 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
7109 (ns_appkit_version_int): New function.
7110 (x-server-version): Use ns_appkit_version_int and follow 21+
7111 convention of returning 3 integers.
7112
7113 2008-12-30 Kenichi Handa <handa@m17n.org>
7114
7115 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
7116 (CHAR_SURROGATE_PAIR_P): New macro.
7117
7118 * font.h (struct font_driver): New member get_variation_glyphs.
7119
7120 * font.c (font_range): Don't require a font for a variation selector.
7121 (Ffont_variation_glyphs): New function.
7122 (syms_of_font): Defsubr it.
7123
7124 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
7125 ftfont_variation_glyphs.
7126 (setup_otf_gstring): New function.
7127 (ftfont_drive_otf): Use it.
7128 (ftfont_shape_by_flt): Handle variation selector.
7129 (ftfont_variation_glyphs): New function.
7130
7131 2008-12-30 Martin Rudalics <rudalics@gmx.at>
7132
7133 * frame.c (Vemacs_iconified): Remove.
7134
7135 2008-12-30 Jason Rumney <jasonr@gnu.org>
7136
7137 * frame.c (store_frame_param, x_get_arg): Enable newer code on
7138 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7139
7140 2008-12-30 Chong Yidong <cyd@stupidchicken.com>
7141
7142 * indent.c (Fvertical_motion): Don't advance iterator if we have
7143 reseated to the desired position.
7144
7145 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
7146 checking for pos match.
7147
7148 2008-12-30 Kenichi Handa <handa@m17n.org>
7149
7150 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
7151 just get the low 8-bit of the code.
7152
7153 * font.c (font_intern_prop): Validate str as multibyte.
7154
7155 2008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
7156
7157 * dispextern.h (struct face): Move lface and hash from the middle
7158 of bitfields.
7159
7160 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
7161
7162 2008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
7163
7164 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
7165 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
7166 instead of intervals.h.
7167
7168 2008-12-26 Andreas Schwab <schwab@suse.de>
7169
7170 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
7171 cons.
7172
7173 2008-12-26 Martin Rudalics <rudalics@gmx.at>
7174
7175 * textprop.c (Qminibuffer_prompt): New variable.
7176 (syms_of_textprop): Initialize it.
7177 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
7178 in minibuffer-prompt face. (Bug#1662)
7179
7180 2008-12-25 Jason Rumney <jasonr@gnu.org>
7181
7182 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
7183
7184 2008-12-24 Jason Rumney <jasonr@gnu.org>
7185
7186 * ralloc.c (r_alloc_reset_variable): New function.
7187
7188 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
7189 record of what points where. (Bug#716)
7190
7191 2008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
7192
7193 * minibuf.c (read_minibuf): Follow the non-interactive case when
7194 running as a daemon, before detaching.
7195
7196 2008-12-22 Andreas Schwab <schwab@suse.de>
7197
7198 * buffer.c (init_buffer): Use realloc instead of xrealloc.
7199 * gtkutil.c (free_widget_value): Use xfree instead of free.
7200
7201 2008-12-22 Martin Rudalics <rudalics@gmx.at>
7202
7203 * frame.c (delete_frame): New function derived from
7204 Fdelete_frame to handle Qnoelisp value for FORCE argument.
7205 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
7206 (Fdelete_frame): Call delete_frame. Remove line from doc-string
7207 saying that FORCE non-nil doesn't run `delete-frame-functions'.
7208 * frame.h: Extern delete_frame.
7209 * window.c (window_loop):
7210 * terminal.c (delete_terminal):
7211 * xterm.c (x_connection_closed):
7212 * xfns.c (Fx_hide_tip):
7213 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
7214
7215 2008-12-21 Jason Rumney <jasonr@gnu.org>
7216
7217 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
7218 when character maps to .notdef character.
7219
7220 2008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
7221
7222 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
7223
7224 2008-12-20 Jason Rumney <jasonr@gnu.org>
7225
7226 * frame.c (Fmake_terminal_frame): Raise an error when called from
7227 a graphical frame on Windows. (Bug#1325)
7228
7229 2008-12-20 Jan Djärv <jan.h.d@swipnet.se>
7230
7231 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
7232
7233 2008-12-20 Chong Yidong <cyd@stupidchicken.com>
7234
7235 * minibuf.c (Fread_buffer): Doc fix.
7236
7237 2008-12-20 Jason Rumney <jasonr@gnu.org>
7238
7239 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
7240 server name in UNC paths. (Bug#719)
7241
7242 * coding.c (decode_coding): Clear chars_at_source flag when using
7243 charbuf. (Bug#1035)
7244
7245 2008-12-19 Daniel Engeler <engeler@gmail.com>
7246
7247 * sysdep.c (serial_configure): Fix typo.
7248
7249 2008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
7250
7251 * sysdep.c: Include alloca.h.
7252 (system_process_attributes): Add implementation for Solaris.
7253
7254 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
7255
7256 2008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
7257
7258 Reorganize implementation of Flist_system_processes and
7259 Fsystem_process_attributes. No functional changes.
7260 * process.c: Don't #include pwd.h, grp.h and limits.h.
7261 (Flist_system_processes): Just call list_system_processes.
7262 (Fsystem_process_attributes): Just call system_process_attributes.
7263 (procfs_list_system_processes, time_from_jiffies)
7264 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
7265 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
7266
7267 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
7268 (list_system_processes): Rename from
7269 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
7270 Provide a do nothing implementation.
7271 (system_process_attributes): Rename from
7272 procfs_list_system_processes.
7273 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
7274 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
7275
7276 * w32.c (list_system_processes): Rename from
7277 w32_list_system_processes.
7278 (system_process_attributes): Rename from
7279 w32_system_process_attributes.
7280
7281 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
7282
7283 * process.h (w32_list_system_processes)
7284 (w32_system_process_attributes): Remove.
7285 (list_system_processes, system_process_attributes):
7286 New prototypes.
7287
7288 2008-12-19 Kenichi Handa <handa@m17n.org>
7289
7290 * xfont.c (xfont_decode_coding_xlfd): New function.
7291 (xfont_encode_coding_xlfd): New function.
7292 (xfont_list_pattern): Decode XLFD by iso-8859-1.
7293 (xfont_list): Decode and encode XLFD by iso-8859-1.
7294 (xfont_match): Likewise.
7295 (xfont_list_family): Likewise.
7296 (xfont_open): Likewise.
7297
7298 * ftfont.c (ftfont_open): Generate a multibyte string if given
7299 names are utf-8.
7300
7301 * xftfont.c (xftfont_open): Generate a multibyte string if given
7302 names are utf-8.
7303
7304 2008-12-18 Jan Djärv <jan.h.d@swipnet.se>
7305
7306 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
7307 changed.
7308 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
7309 clicked on a detached tool bar button.
7310
7311 2008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
7312
7313 * emacs.c (main): Print and error and exit when no data is read
7314 from the pipe.
7315
7316 2008-12-17 Jason Rumney <jasonr@gnu.org>
7317
7318 * w32font.c (w32font_has_char): Always return -1.
7319
7320 2008-12-16 Kenichi Handa <handa@m17n.org>
7321
7322 * font.c (font_open_entity): Fix previous change.
7323
7324 2008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
7325
7326 * process.c: Include <limits.h>.
7327
7328 2008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
7329
7330 * font.c (font_update_drivers): Fix mistake in reconstructing the
7331 driver list.
7332
7333 2008-12-16 Chong Yidong <cyd@stupidchicken.com>
7334
7335 * font.c (font_clear_cache): Fix format of font cache data.
7336
7337 2008-12-15 Chong Yidong <cyd@stupidchicken.com>
7338
7339 * xftfont.c (xftfont_open): Free Xft font pattern if
7340 XftFontOpenPattern fails.
7341
7342 * xterm.c (x_free_frame_resources): Remove extraneous call to
7343 free_frame_faces.
7344
7345 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
7346
7347 * xterm.c (x_delete_display): Move xim_close_dpy call to
7348 x_delete_terminal.
7349 (x_delete_terminal): Call xim_close_dpy.
7350
7351 2008-12-13 Jason Rumney <jasonr@gnu.org>
7352
7353 * w32font.c (intern_font_name): New function.
7354 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
7355 (w32font_open_internal, Fx_select_font): Decode font name.
7356 (fill_in_logfont, list_all_matching_fonts): Encode font name.
7357
7358 * w32font.h (intern_font_name): Declare new function.
7359
7360 * w32uniscribe.c (add_opentype_font_name_to_list):
7361 Use intern_font_name.
7362
7363 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
7364
7365 * frame.c (Fdelete_frame): Call free_font_driver_list.
7366
7367 * font.c (free_font_driver_list): Implement missing function.
7368
7369 * w32term.c (w32_term_init): Don't initialize the image cache
7370 here; it will be done in init_frame_faces.
7371
7372 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
7373 (struct x_display_info): Remove unused member null_pixel. New
7374 member xim_callback_data.
7375
7376 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
7377 (xim_initialize): Save pointer to callback function data.
7378 (xim_close_dpy): Free callback function data. Call XCloseIM,
7379 reverting 2008-11-04 change by David Smith.
7380 (x_term_init): Don't initialize the image cache here; it will be
7381 done in init_frame_faces. Remove ancient "null_pixel" cruft.
7382 (x_delete_display): Free x_dnd_atoms member.
7383
7384 2008-12-13 Kenichi Handa <handa@m17n.org>
7385
7386 * font.c (font_rescale_ratio): Moved from xfaces.c.
7387 Argument type changed. Handle a font-spec too.
7388 (font_score): Check Vface_font_rescale_alist.
7389 (font_open_entity): Likewise. (Bug#1547)
7390
7391 * xfaces.c (font_rescale_ratio): Moved to font.c.
7392
7393 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
7394
7395 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
7396
7397 2008-12-12 Jason Rumney <jasonr@gnu.org>
7398
7399 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
7400 Vwindow_system_version to the real w32 major version.
7401
7402 2008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
7403
7404 * term.c (init_tty): Move setting the terminal name before the
7405 potential user: maybe_fatal.
7406
7407 2008-12-11 Chong Yidong <cyd@stupidchicken.com>
7408
7409 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
7410 all callers changed. Call free_frame_faces to free the face cache.
7411
7412 2008-12-11 Jason Rumney <jasonr@gnu.org>
7413
7414 * w32font.c (fill_in_logfont): Don't assume symbol script means
7415 SYMBOL_CHARSET. (Bug#547)
7416
7417 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
7418 size for surrogates. (Bug#1096, bug#872)
7419
7420 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
7421
7422 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
7423
7424 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
7425
7426 * process.c (Fsystem_process_attributes, syms_of_process):
7427 Fix typo in name of Ssystem_process_attributes.
7428 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
7429
7430 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
7431
7432 * syntax.c (Fmodify_syntax_entry): Doc fix.
7433
7434 2008-12-10 Juanma Barranquero <lekktu@gmail.com>
7435
7436 * font.c (Ffont_spec): Move usage to end of docstring.
7437
7438 2008-12-10 Jason Rumney <jasonr@gnu.org>
7439
7440 * w32font.c (Qcham): New symbol.
7441 (font_supported_scripts): Add cham, and comments for other new
7442 scripts in bitfield from OpenType spec.
7443 (add_font_entity_to_list): Limit unicode-sip fonts to those that
7444 contain characters beyond the bmp.
7445
7446 2008-12-10 Kenichi Handa <handa@m17n.org>
7447
7448 * ftfont.c (fc_charset_table): Add "unicode-sip".
7449 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7450 Qunicode_sip.
7451
7452 2008-12-10 Juanma Barranquero <lekktu@gmail.com>
7453
7454 * coding.c (QCdefault_char): Rename from QCdefalut_char.
7455 (Fcoding_system_put): Use QCdefault_char.
7456 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
7457
7458 2008-12-09 Chong Yidong <cyd@stupidchicken.com>
7459
7460 * xftfont.c (syms_of_xftfont): Fix typo.
7461
7462 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
7463
7464 2008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
7465
7466 * emacs.c (main): Close daemon_pipe on exec.
7467
7468 2008-12-08 Chong Yidong <cyd@stupidchicken.com>
7469
7470 * termchar.h (struct tty): New members termcap_term_buffer and
7471 termcap_strings_buffer.
7472
7473 * term.c (encode_terminal_code): Free any previous memory blocks
7474 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
7475 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
7476 All callers changed.
7477 (init_tty): Store termcap data and string buffers in new struct
7478 tty members termcap_term_buffer and termcap_strings_buffer.
7479 (delete_tty): Free them.
7480 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
7481
7482 2008-12-07 Seiji Zenitani <zenitani@mac.com>
7483
7484 * nsfns.m (ns_set_background_color): Remove code duplication.
7485 It was a substitute for face-transparency on OS X 10.3.
7486
7487 2008-12-06 Chong Yidong <cyd@stupidchicken.com>
7488
7489 * coding.c (make_conversion_work_buffer): Disable buffer
7490 modification hooks in the work buffer.
7491
7492 2008-12-05 Eli Zaretskii <eliz@gnu.org>
7493
7494 * process.c (procfs_system_process_attributes): If `nread' has a
7495 negative value, assign zero to it.
7496
7497 2008-12-05 Chong Yidong <cyd@stupidchicken.com>
7498
7499 * eval.c (Vdebug_on_error): Doc fix.
7500
7501 2008-12-05 Kenichi Handa <handa@m17n.org>
7502
7503 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
7504 second character is a combining character.
7505
7506 2008-12-05 Eli Zaretskii <eliz@gnu.org>
7507
7508 * process.c (procfs_system_process_attributes): Don't use cmd,
7509 cmdsize, and q without initializing them first.
7510
7511 2008-12-04 Jason Rumney <jasonr@gnu.org>
7512
7513 * w32font.c (w32font_draw): Initialize orig_clip before getting
7514 it, and delete it when finished.
7515
7516 2008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
7517
7518 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
7519 case when running as a daemon before detaching.
7520
7521 2008-12-03 Juanma Barranquero <lekktu@gmail.com>
7522
7523 * w32.c (init_environment): Don't unload library shell32.dll.
7524
7525 2008-12-03 Kenichi Handa <handa@m17n.org>
7526
7527 * font.c (font_at): Set `multibyte' at first.
7528
7529 * coding.c (decode_coding_charset): Check type of an element of
7530 vector VALIDS.
7531 (encode_coding_emacs_mule): Be sure to set `code'.
7532
7533 * fontset.c (face_for_char): Handle invalid charset property correctly.
7534 (font_for_char): Likewise.
7535
7536 2008-12-03 Chong Yidong <cyd@stupidchicken.com>
7537
7538 * font.c (Fopen_font): Compute pixel size correctly.
7539 (font_update_lface): Handle fonts with corrupted size specs,
7540 i.e. non-int and non-float.
7541
7542 * ftfont.c (ftfont_match): Initialize entity variable.
7543 (ftfont_resolve_generic_family): Avoid using uninitialized var.
7544 (ftfont_list_family): Initialize list var earlier.
7545
7546 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
7547
7548 * xterm.c (x_draw_glyph_string): Fall back on
7549 underline_minimum_offset for underline position.
7550
7551 2008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
7552
7553 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
7554
7555 * character.c (c_string_width): Specify the type for LEN.
7556
7557 2008-12-03 Kenichi Handa <handa@m17n.org>
7558
7559 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
7560 (decode_coding_utf_8): Likewise.
7561 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
7562 (produce_chars): Initialize consumed_chars to 0.
7563
7564 2008-12-02 Chong Yidong <cyd@stupidchicken.com>
7565
7566 * keyboard.c (make_lispy_position): Only use PT if the selected
7567 window is current.
7568
7569 2008-12-02 Andreas Schwab <schwab@suse.de>
7570
7571 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
7572
7573 * doprnt.c (doprnt1): Fix size of charbuf.
7574
7575 2008-12-02 Chong Yidong <cyd@stupidchicken.com>
7576
7577 * keyboard.c (timer_check): Revert last change.
7578
7579 2008-12-02 Juanma Barranquero <lekktu@gmail.com>
7580
7581 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
7582
7583 2008-12-01 Juanma Barranquero <lekktu@gmail.com>
7584
7585 * makefile.w32-in: Update dependencies.
7586 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
7587
7588 2008-12-01 Andreas Schwab <schwab@suse.de>
7589
7590 * font.c (register_font_driver): Use xmalloc.
7591 (font_put_frame_data): Likewise.
7592
7593 2008-12-01 Chong Yidong <cyd@stupidchicken.com>
7594
7595 * xfaces.c (realize_x_face): Make abort condition clearer.
7596
7597 * gtkutil.c (update_frame_tool_bar): Initialize variable.
7598
7599 2008-11-30 Chong Yidong <cyd@stupidchicken.com>
7600
7601 * keyboard.c (timer_check): After a timer runs, ensure that the
7602 selected window's buffer is current.
7603
7604 2008-11-30 Juanma Barranquero <lekktu@gmail.com>
7605
7606 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
7607 It was accidentally restored by the Unicode merge.
7608
7609 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
7610
7611 2008-11-29 Juanma Barranquero <lekktu@gmail.com>
7612
7613 * w32proc.c: Include "coding.h".
7614 (Fw32_short_file_name): Encode filename passed to Windows API.
7615 (Fw32_long_file_name): Encode filename passed to Windows API and
7616 decode back the result. (Bug#1433)
7617
7618 2008-11-29 Kenichi Handa <handa@m17n.org>
7619
7620 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
7621 not before accessing it.
7622
7623 * charset.c (Fdefine_charset_internal): After calculating
7624 min_char, max_char, and fastmap, copy the charset structure again.
7625 (encode_char): Fix the previous change.
7626
7627 2008-11-28 Seiji Zenitani <zenitani@mac.com>
7628
7629 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
7630
7631 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
7632
7633 * nsterm.m (x_set_frame_alpha): New function.
7634
7635 2008-11-27 Eli Zaretskii <eliz@gnu.org>
7636
7637 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
7638
7639 2008-11-27 Juanma Barranquero <lekktu@gmail.com>
7640
7641 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
7642 pointer to check_face_name.
7643
7644 2008-11-27 Kenichi Handa <handa@m17n.org>
7645
7646 * category.h (SET_CATEGORY_SET): Call set_category_set.
7647 (set_category_set): Extern it.
7648
7649 * category.c (hash_get_category_set): New function.
7650 (Fmodify_category_entry): Adjusted for the change of
7651 char_table_ref_and_range. Call hash_get_category_set to get a
7652 category set to store in the table.
7653
7654 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
7655 Funify_charset.
7656
7657 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
7658 (DECODE_CHAR): Check if the decoder vector is ready.
7659 (ENCODE_CHAR): Check if the encoder char-table is ready.
7660 (maybe_unify_char): Extern it.
7661
7662 * charset.c (Vchar_unified_charset_table): Delete it.
7663 (inhibit_load_charset_map): New variable.
7664 (temp_charset_work): New variable.
7665 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
7666 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
7667 New macros.
7668 (load_charset_map): Meaning of control_flag changed. If
7669 inhibit_load_charset_map is nonzero, setup a table in
7670 temp_charset_work.
7671 (load_charset): New argument control_flag.
7672 (map_charset_for_dump): New function.
7673 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
7674 map_charset_for_dump.
7675 (Fdefine_charset_internal): If the charset method is MAP, load
7676 mapping tables by calling load_charset.
7677 (Funify_charset): Don't load a mapping table but directly set
7678 Vchar_unify_table.
7679 (maybe_unify_char): New function.
7680 (decode_char): Don't handle the deleted method MAP_DEFERRED.
7681 Handle the case of inhibit_load_charset_map being nonzero.
7682 (encode_char): Don't handle the deleted method MAP_DEFERRED.
7683 Handle the case of inhibit_load_charset_map being nonzero.
7684 (Fclear_charset_maps): Just free temp_charset_work.
7685 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
7686 variable.
7687
7688 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
7689 change of char_table_ref_and_range.
7690 (char_table_ref_and_range): Change the meaning of argument FROM
7691 and TO. Now the caller must provide initial values for *FROM
7692 and *TO.
7693
7694 * fontset.c (fontset_add): Adjusted for the change of
7695 char_table_ref_and_range.
7696 (fontset_get_font_group): Likewise.
7697 (Ffontset_info): Likewise.
7698
7699 * keymap.c (describe_vector): Adjusted for the change of
7700 char_table_ref_and_range. For char-table, put boundary between
7701 non-ASCII and 8-bit characters.
7702
7703 * print.c (print_object): For bool-vector, delete unnecessary
7704 check of ASCII_BYTE_P.
7705
7706 2008-11-26 Jason Rumney <jasonr@gnu.org>
7707
7708 * w32font.c (w32font_open_internal): Don't include external
7709 leading in font height. (Bug#879)
7710
7711 2008-11-26 Glenn Morris <rgm@gnu.org>
7712
7713 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
7714 redefinition with ifdef. (Bug#1383)
7715
7716 2008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
7717
7718 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
7719
7720 2008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
7721
7722 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
7723 New EmacsView methods.
7724 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
7725 Fixes bug #1048,1357,1414.
7726
7727 2008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
7728
7729 Fix bug #1362.
7730 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
7731 is not an indexed color.
7732 * nsterm.m (free_indexed_color): Add argument checking.
7733 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
7734
7735 2008-11-24 Chong Yidong <cyd@stupidchicken.com>
7736
7737 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
7738 Document confirm-after-completion value for
7739 minibuffer-completion-confirm.
7740
7741 2008-11-24 Jason Rumney <jasonr@gnu.org>
7742
7743 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
7744 warning.
7745
7746 2008-11-23 Jason Rumney <jasonr@gnu.org>
7747
7748 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
7749 restored before returning.
7750
7751 * w32font.c (check_face_name): New function.
7752 (add_font_entity_to_list): Use it to filter out common substituted
7753 fonts. (Bug#642)
7754
7755 2008-11-22 Martin Rudalics <rudalics@gmx.at>
7756
7757 * buffer.c (Fswitch_to_buffer): Reword and mention new option
7758 confirm-nonexistent-file-or-buffer in doc-string.
7759
7760 2008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
7761
7762 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
7763 Fix copy/paste typo. Add checks.
7764
7765 2008-11-21 Kenichi Handa <handa@m17n.org>
7766
7767 * coding.c (detect_coding_iso_2022): Reject invalid composition
7768 sequence.
7769 (DECODE_COMPOSITION_START): If the current source is the last
7770 block, and the current composition doesn't end, regard this
7771 sequence as invalid.
7772 (decode_coding_iso_2022): Handle invalid composition sequence.
7773
7774 2008-11-20 Martin Rudalics <rudalics@gmx.at>
7775
7776 * window.c (coordinates_in_window): Don't return
7777 ON_VERTICAL_BORDER for the rightmost position of a mode/header
7778 line when the window is not the rightmost one. (Bug#1372)
7779
7780 2008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
7781
7782 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
7783
7784 2008-11-15 Eli Zaretskii <eliz@gnu.org>
7785
7786 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
7787 and bright_bg if noninteractive is non-zero.
7788
7789 2008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7790
7791 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
7792 x_draw_glyph_string_background.
7793
7794 * w32term.c (x_draw_glyph_string): Likewise.
7795
7796 2008-11-15 Chong Yidong <cyd@stupidchicken.com>
7797
7798 * xterm.c (x_draw_glyph_string): Stop drawing the background of
7799 the next glyph string once past the overhang width.
7800
7801 * nsterm.m (ns_draw_glyph_string): Likewise.
7802
7803 * w32term.c (x_draw_glyph_string): Likewise.
7804
7805 2008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
7806
7807 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
7808 double file close.
7809
7810 2008-11-14 Martin Rudalics <rudalics@gmx.at>
7811
7812 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
7813 dedicated status of window before attempting to display another
7814 buffer in it.
7815
7816 2008-11-14 Juanma Barranquero <lekktu@gmail.com>
7817
7818 * msdos.c (Fmsdos_long_file_names):
7819 (syms_of_msdos) <dos-unsupported-char-glyph>:
7820 * dosfns.c (Fint86): Fix typos in docstrings.
7821
7822 2008-11-14 Eli Zaretskii <eliz@gnu.org>
7823
7824 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
7825
7826 2008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
7827
7828 * puresize.h (BASE_PURESIZE): Increase to 1260000.
7829
7830 2008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
7831
7832 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
7833
7834 * frame.h: Negative alpha means "don't touch".
7835
7836 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
7837
7838 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
7839
7840 2008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
7841
7842 * hftctl.c:
7843 * chpdef.h:
7844 * acldef.h: Remove files used only for systems no longer supported.
7845
7846 * Makefile.in: Fix .o alphabetical ordering.
7847 (hftctl.o): Remove dependency, file removed.
7848 (keymap.o, print.o): Depend on charset.h.
7849
7850 2008-11-10 Kenichi Handa <handa@m17n.org>
7851
7852 * character.c (Fget_byte): Fix and make it faster for unibyte target.
7853
7854 2008-11-08 Chong Yidong <cyd@stupidchicken.com>
7855
7856 * dired.c (file_name_completion): If completion_ignore_case is
7857 enabled, ignore case when checking completion-regexp-list.
7858
7859 2008-11-08 Eli Zaretskii <eliz@gnu.org>
7860
7861 * vm-limit.c (get_lim_data): Fix last change.
7862
7863 2008-11-08 Kenichi Handa <handa@m17n.org>
7864
7865 * character.c (Fget_byte): New function.
7866 (syms_of_character): Defsubr Fget_byte.
7867
7868 2008-11-07 Chong Yidong <cyd@stupidchicken.com>
7869
7870 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
7871 cursor position is valid after scrolling.
7872
7873 2008-11-06 Juanma Barranquero <lekktu@gmail.com>
7874
7875 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
7876
7877 2008-11-06 Glenn Morris <rgm@gnu.org>
7878
7879 * xterm.c (handle_one_xevent): Don't let popup menus cause
7880 mouse-autoselect-window related window switching. (Bug#1261)
7881
7882 2008-11-04 David Smith <davidsmith@acm.org> (tiny change)
7883
7884 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
7885
7886 2008-11-04 Andreas Schwab <schwab@suse.de>
7887
7888 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
7889
7890 2008-11-03 Chong Yidong <cyd@stupidchicken.com>
7891
7892 * xfns.c (Fx_wm_set_size_hint): New function.
7893
7894 2008-11-03 Martin Rudalics <rudalics@gmx.at>
7895
7896 * textprop.c (Fprevious_single_char_property_change): Return 0
7897 when there's no change in a string. (Bug#1301)
7898
7899 2008-11-02 Martin Rudalics <rudalics@gmx.at>
7900
7901 * frame.c (do_switch_frame): New argument NORECORD passed to
7902 Fselect_window.
7903 (Fselect_frame): New argument NORECORD passed to
7904 do_switch_frame.
7905 (Fset_frame_selected_window): New argument NORECORD passed to
7906 Fselect_frame.
7907 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
7908 in call of do_switch_frame.
7909 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
7910 Handle NORECORD argument in call of Fselect_frame.
7911 * lisp.h (do_switch_frame, Fselect_frame)
7912 (Fset_frame_selected_window): Adjust declarations.
7913 * window.c (select_frame_norecord): New function.
7914 (run_window_configuration_change_hook): Use it and call
7915 Fselect_frame with NORECORD set.
7916 (Fselect_window): Pass NORECORD to Fselect_frame.
7917 (Fset_window_configuration): Handle NORECORD argument in call of
7918 do_switch_frame.
7919 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
7920 Fset_frame_selected_window.
7921 * keyboard.c (command_loop_1): Handle NORECORD in call of
7922 Fselect_frame (currently ifdefd).
7923
7924 2008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
7925
7926 * emacs.c (USAGE2): Untabify.
7927
7928 2008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
7929
7930 * composite.c (fill_gstring_header): Fix copy/paste typo.
7931
7932 2008-10-31 Martin Rudalics <rudalics@gmx.at>
7933
7934 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
7935 (Fother_window): Rename argument and rewrite doc-string.
7936 (select_window_norecord): Fix return value. (Bug#1276)
7937
7938 2008-10-30 Juanma Barranquero <lekktu@gmail.com>
7939
7940 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
7941 new frames overriding foreground for tooltips. Based on similar patch
7942 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
7943
7944 2008-10-29 Chong Yidong <cyd@stupidchicken.com>
7945
7946 * emacs.c (Fdaemon_initialized): Initialize nfd.
7947
7948 2008-10-29 Martin Rudalics <rudalics@gmx.at>
7949
7950 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
7951 (Fwindow_text_height): Clarify doc-strings.
7952 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
7953 doc-string of window-scroll-functions.
7954
7955 2008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
7956
7957 * category.c (syms_of_category): Fix typo in docstring.
7958
7959 2008-10-28 Juanma Barranquero <lekktu@gmail.com>
7960
7961 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
7962 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
7963 Fix typos in docstrings.
7964
7965 2008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
7966
7967 * emacs.c (daemon_pipe): Make non-static.
7968 (IS_DAEMON): Move definition ...
7969 * lisp.h (IS_DAEMON): ... here.
7970 (daemon_pipe): Declare.
7971 (is_daemon): Remove.
7972 * dispnew.c (init_display): Use IS_DAEMON.
7973
7974 2008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
7975
7976 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
7977 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
7978
7979 * emacs.c (is_daemon): Remove.
7980 (main): Don't set is_daemon.
7981 (IS_DAEMON): New macro.
7982 (Fdaemonp, Fdaemon_initialized): Use it.
7983 (Fdaemon_initialized): Write a char into the pipe to make sure the
7984 parent exits.
7985 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
7986
7987 2008-10-27 Chong Yidong <cyd@stupidchicken.com>
7988
7989 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
7990 over-sized glyph, draw it with the default glyph width.
7991
7992 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
7993 glyph, draw it with the default glyph width.
7994
7995 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
7996 glyph, draw it with the default glyph width.
7997
7998 * xdisp.c (try_scrolling): When computing the distance from the
7999 scroll margin to PT, try moving some distance past the window
8000 bottom before giving up.
8001
8002 2008-10-27 Martin Rudalics <rudalics@gmx.at>
8003
8004 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
8005 (Fset_window_buffer): Explain in doc-string that a window can be
8006 "strongly" dedicated to its buffer.
8007
8008 2008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
8009
8010 * emacs.c (daemon_name): New variable.
8011 (main): Deal with --daemon=SERVER_NAME.
8012 (Fdaemonp): Return a name if one was passed to --daemon.
8013
8014 2008-10-26 Romain Francoise <romain@orebokech.com>
8015
8016 * emacs.c (daemon_pipe): New variable.
8017 (main): Create a pipe before forking, make the parent exit only after
8018 the child has closed its end of the pipe. Move closing the
8019 descriptors ...
8020 (Fdaemon_initialized): ... here. New function.
8021
8022 2008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
8023
8024 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
8025 the previous unoptimized table.
8026
8027 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
8028 the distinction between non-nil and non-t value of `dedicated'.
8029
8030 2008-10-25 Chong Yidong <cyd@stupidchicken.com>
8031
8032 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
8033 read_char_minibuf_menu_text is large enough to hold the menu string.
8034
8035 2008-10-25 Martin Rudalics <rudalics@gmx.at>
8036
8037 * window.c (Fget_buffer_window, Fdelete_windows_on)
8038 (Freplace_buffer_in_windows): Make buffer argument optional and
8039 rename to buffer_or_name.
8040
8041 2008-10-24 Chong Yidong <cyd@stupidchicken.com>
8042
8043 * xdisp.c (handle_single_display_spec, handle_display_prop):
8044 Undo 2005-05-16 change.
8045 (handle_stop): Pop iterator if it's loaded with an empty string.
8046 (get_overlay_strings_1): Don't save iterator if it's loaded with
8047 an empty string (bug#1201).
8048
8049 2008-10-24 Kenichi Handa <handa@m17n.org>
8050
8051 * ftfont.c (ftfont_otf_features): Fix previous change.
8052 (ftfont_otf_capability): Check FeatureList.FeatureCount before
8053 calling ftfont_otf_features.
8054
8055 2008-10-24 Kenichi Handa <handa@m17n.org>
8056
8057 * font.c (font_match_p): Fix for the case that a vector of
8058 characters is in script-representative-chars.
8059
8060 2008-10-24 Michael Albinus <michael.albinus@gmx.de>
8061
8062 * dbusbind.c (xd_in_read_queued_messages): New variable.
8063 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
8064 (xd_read_queued_messages): Catch Qdbus_error from the macros.
8065 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
8066 macro. (Bug#1186)
8067
8068 2008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
8069
8070 * s/sol2-10.h: New file.
8071
8072 2008-10-23 Juanma Barranquero <lekktu@gmail.com>
8073
8074 * xdisp.c (fill_glyph_string): Fix typo in source (though the
8075 poor beast has survived 9+ years and the jump from xterm.c!).
8076
8077 2008-10-23 Martin Rudalics <rudalics@gmx.at>
8078
8079 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
8080 Reword doc-string.
8081 (Fbury_buffer): In doc-string say what happens to the buffer's window.
8082
8083 2008-10-23 Juanma Barranquero <lekktu@gmail.com>
8084
8085 * character.c (syms_of_character) <script-representative-chars>:
8086 <unicode-category-table>: Doc fixes.
8087
8088 2008-10-23 Noah Friedman <friedman@splode.com>
8089
8090 * coding.c (make_conversion_work_buffer): Check that
8091 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
8092 Fget_buffer_create.
8093
8094 2008-10-23 Kenichi Handa <handa@m17n.org>
8095
8096 * font.c (font_add_log): Check the values of extra properties.
8097
8098 2008-10-22 Martin Rudalics <rudalics@gmx.at>
8099
8100 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
8101 Reword doc-string.
8102 (Fset_window_parameter): Use NILP.
8103 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
8104 (Frecenter): Use "selected" instead of "current" window in doc-strings.
8105
8106 2008-10-22 Juanma Barranquero <lekktu@gmail.com>
8107
8108 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
8109
8110 2008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
8111
8112 * nsfns.m (ns_appkit_version): New function.
8113 (x-server-version): Use it.
8114 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
8115 (x-server-vendor): Don't check_ns().
8116
8117 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
8118
8119 2008-10-22 Juanma Barranquero <lekktu@gmail.com>
8120
8121 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
8122 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
8123
8124 2008-10-22 Kenichi Handa <handa@m17n.org>
8125
8126 * syntax.c (scan_words): Call word_boundary_p instead of comparing
8127 scripts.
8128
8129 * category.c (word_boundary_p): Check scripts instead of charset.
8130 Handle nil value in word-separating-categories and
8131 word-combining-categories.
8132 (syms_of_category): Fix docstrings of word-separating-categories
8133 and word-combining-categories.
8134
8135 2008-10-21 Eli Zaretskii <eliz@gnu.org>
8136
8137 * coding.c (Fencode_coding_region, Fdecode_coding_region)
8138 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
8139
8140 2008-10-21 Martin Rudalics <rudalics@gmx.at>
8141
8142 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
8143 Rename arg "buffer" to "buffer_or_name".
8144 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
8145 it optional.
8146 (no_switch_window): Remove since the return value is not used.
8147 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
8148 Consider window as dedicated when Fwindow_dedicated_p returns a
8149 non-nil value.
8150 * lisp.h: Remove prototype for no_switch_window.
8151
8152 2008-10-21 Jan Djärv <jan.h.d@swipnet.se>
8153
8154 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
8155 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
8156
8157 2008-10-21 Kenichi Handa <handa@m17n.org>
8158
8159 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
8160 check Vlatin_extra_code_table.
8161
8162 2008-10-20 Eli Zaretskii <eliz@gnu.org>
8163
8164 * fileio.c (Fset_file_modes): Doc fix.
8165
8166 2008-10-19 Michael Albinus <michael.albinus@gmx.de>
8167
8168 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
8169 in arrays.
8170
8171 2008-10-19 Martin Rudalics <rudalics@gmx.at>
8172
8173 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
8174 Mention kill-buffer in doc-string.
8175 (Fset_window_buffer): Reinsert tem check removed in last commit.
8176 (Fenlarge_window, Fshrink_window): Have argument names and
8177 doc-string follow Elisp manual more closely.
8178
8179 2008-10-18 Eli Zaretskii <eliz@gnu.org>
8180
8181 * fileio.c (Fset_file_modes): Doc fix.
8182
8183 2008-10-18 Martin Rudalics <rudalics@gmx.at>
8184
8185 * window.c (Fwindow_width, Fset_window_start)
8186 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
8187 (Fdelete_windows_on, Freplace_buffer_in_windows):
8188 Make doc-strings follow code and Elisp manual more closely.
8189 (Fwindow_dedicated_p): Make window argument optional.
8190 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
8191 (Fset_window_buffer): Respect any non-nil dedicated value for
8192 window. Rename "buffer" argument to "buffer_or_name".
8193
8194 2008-10-18 Ulrich Mueller <ulm@gentoo.org>
8195
8196 * m/sh3.h: New file, machine description for SuperH.
8197
8198 2008-10-17 Martin Rudalics <rudalics@gmx.at>
8199
8200 * window.c (Fsplit_window): Rename arg horflag to horizontal.
8201
8202 2008-10-17 Kenichi Handa <handa@m17n.org>
8203
8204 * ftfont.c (ftfont_otf_features): Fix indexing
8205 gsub_gpos->FeatureList.Feature. Check the validity of indices.
8206
8207 2008-10-16 Magnus Henoch <mange@freemail.hu>
8208
8209 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
8210 (Fdbus_call_method_asynchronously): Ditto.
8211 This change makes C-h f display the argument list.
8212
8213 2008-10-16 Chong Yidong <cyd@stupidchicken.com>
8214
8215 * fileio.c (Fexpand_file_name): Doc fix.
8216
8217 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
8218 of :foreground and :background equivalent to unspecified (20.x
8219 compatibility).
8220
8221 2008-10-15 Eli Zaretskii <eliz@gnu.org>
8222
8223 * buffer.c (syms_of_buffer): Doc fix.
8224
8225 2008-10-14 Kenichi Handa <handa@m17n.org>
8226
8227 * font.c (font_clear_prop): When clearing font width, clear the
8228 average width field too.
8229
8230 2008-10-12 Andreas Schwab <schwab@suse.de>
8231
8232 * ftfont.c (ftfont_shape_by_flt): Make static.
8233 * ftfont.h (ftfont_shape_by_flt): Don't declare.
8234
8235 * font.c: Don't include <m17n-flt.h>.
8236
8237 2008-10-10 Eli Zaretskii <eliz@gnu.org>
8238
8239 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
8240
8241 2008-10-09 Eli Zaretskii <eliz@gnu.org>
8242
8243 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
8244 away code.
8245
8246 2008-10-09 Chong Yidong <cyd@stupidchicken.com>
8247
8248 * dispnew.c (update_text_area): Avoid looping due to large glyph
8249 overhangs (bug#1070).
8250
8251 2008-10-09 Kenichi Handa <handa@m17n.org>
8252
8253 * fontset.c (face_for_char): If face->fontset is negative, just
8254 return ascii_face.
8255
8256 * font.c (font_delete_unmatched): Fix previous change.
8257 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
8258
8259 2008-10-09 Martin Rudalics <rudalics@gmx.at>
8260
8261 * frame.c (Fraise_frame): On text-only terminals select frame in
8262 order to make it visible. (Bug#1061)
8263
8264 2008-10-08 Chong Yidong <cyd@stupidchicken.com>
8265
8266 * fontset.c (fontset_find_font): Check frame validity.
8267
8268 2008-10-07 Chong Yidong <cyd@stupidchicken.com>
8269
8270 * gtkutil.c (xg_display_open): Reset default display if none exists.
8271 (xg_display_close): Allow Emacs to close all displays (bug#985).
8272
8273 2008-10-06 Andreas Schwab <schwab@suse.de>
8274
8275 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
8276
8277 2008-10-06 Chong Yidong <cyd@stupidchicken.com>
8278
8279 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
8280
8281 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
8282
8283 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
8284 during initialization.
8285
8286 2008-10-04 Eli Zaretskii <eliz@gnu.org>
8287
8288 * xdisp.c (redisplay_internal): If frame switched, redisplay the
8289 whole thing on MSDOS frames as well as on a TTY.
8290
8291 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
8292 well as for TTY.
8293 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
8294 well as on a TTY.
8295
8296 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
8297 as well as for TTY.
8298
8299 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
8300
8301 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
8302 MSDOS frames as well.
8303
8304 2008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
8305
8306 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
8307 correct arguments.
8308 * menu.c (find_and_return_menu_selection): Add cast.
8309
8310 2008-10-03 Glenn Morris <rgm@gnu.org>
8311
8312 * emacs.c (USAGE1): Add --daemon.
8313
8314 2008-10-02 Eli Zaretskii <eliz@gnu.org>
8315
8316 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
8317 100, so it's in percents as advertised.
8318
8319 2008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
8320
8321 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
8322 (ns_output.current_cursor, ns_output.desired_cursor)
8323 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
8324 (FRAME_NEW_CURSOR_COLOR): Remove.
8325
8326 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
8327 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
8328 enumeration (HOLLOW_BOX_CURSOR, etc.).
8329
8330 * nsterm.m (ns_frame_rehighlight): Remove commented code.
8331 (draw_window_cursor): Simplify code.
8332 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
8333 Don't change cursor type. In latter, call rehighlight instead of doing
8334 updates manually.
8335 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
8336 Use core Emacs cursor types.
8337
8338 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
8339
8340 2008-10-02 Martin Rudalics <rudalics@gmx.at>
8341
8342 * process.c (Faccept_process_output): Fix doc-string.
8343
8344 2008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
8345
8346 * gmalloc.c (__sbrk): Also define for uClibc.
8347
8348 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
8349 for uClibc.
8350
8351 2008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
8352
8353 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
8354 styles.
8355 (nsfont_open): Reenable the cache.
8356
8357 2008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
8358
8359 * font.c (font_matching_entity): Reflect ATTRS in font selection.
8360 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
8361
8362 2008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
8363
8364 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
8365 a suspended terminal.
8366
8367 2008-09-30 Michael Albinus <michael.albinus@gmx.de>
8368
8369 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
8370
8371 2008-09-30 Eli Zaretskii <eliz@gnu.org>
8372
8373 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
8374
8375 2008-09-30 Chong Yidong <cyd@stupidchicken.com>
8376
8377 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
8378 in a continued line coincides with a line beginning.
8379
8380 2008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
8381
8382 * nsfont.m (nsfont_trait_distance): Fix bug.
8383 (nsfont_list): Return a list rather than a vector (syncs with Handa
8384 changes of 2008-05-14).
8385 (nsfont_open): Improve logging.
8386
8387 2008-09-29 Andreas Schwab <schwab@suse.de>
8388
8389 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
8390
8391 2008-09-28 Martin Rudalics <rudalics@gmx.at>
8392
8393 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
8394 name as char-resolve-modifiers.
8395 Reported by: Markus Triska <markus.triska@gmx.at>
8396
8397 2008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
8398
8399 * dispnew.c (init_display): Return earlier when running as a daemon.
8400
8401 2008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
8402
8403 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
8404
8405 2008-09-27 Eli Zaretskii <eliz@gnu.org>
8406
8407 * composite.c (Fcomposition_get_gstring)
8408 (Fcompose_region_internal, Fcompose_string_internal)
8409 (Ffind_composition_internal): Doc fix.
8410 (syms_of_composite) <compose-chars-after-function>: Doc fix.
8411 (syms_of_composite) <auto-composition-function>: Doc fix.
8412 (syms_of_composite) <composition-function-table>: Doc fix.
8413
8414 2008-09-25 Chong Yidong <cyd@stupidchicken.com>
8415
8416 * search.c (wordify): New argument for lax word-ends.
8417 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
8418
8419 2008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
8420
8421 * lisp.h (is_daemon): Declare.
8422 * dispnew.c (init_display): Do not try to initialize the terminal
8423 when running as a daemon.
8424
8425 2008-09-22 Chong Yidong <cyd@stupidchicken.com>
8426
8427 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
8428 x_display_pixel_height.
8429
8430 2008-09-22 Martin Rudalics <rudalics@gmx.at>
8431
8432 * undo.c (record_point): Don't call Fundo_boundary for first
8433 change. (Bug#731)
8434
8435 2008-09-22 Juanma Barranquero <lekktu@gmail.com>
8436
8437 * emacs.c (Fdaemonp): Doc fix.
8438
8439 2008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
8440
8441 * emacs.c (main): Place #ifdef in the proper place.
8442
8443 2008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
8444
8445 * emacs.c (standard_args): Add --daemon.
8446 (main): Disconnect from the terminal when --daemon is passed.
8447 (is_daemon): New variable.
8448 (Fdaemonp): New function.
8449 (syms_of_emacs): Defsubr it.
8450
8451 2008-09-20 Chong Yidong <cyd@stupidchicken.com>
8452
8453 * xdisp.c (get_next_display_element): Handle string display
8454 correctly when checking for the end of a box run.
8455
8456 2008-09-20 Glenn Morris <rgm@gnu.org>
8457
8458 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
8459 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
8460 (Frename_file): Avoid copying to trash if a rename involves
8461 a delete. (Bug#964).
8462
8463 2008-09-20 Eli Zaretskii <eliz@gnu.org>
8464
8465 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
8466 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
8467 frames as well as termcap frames.
8468 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
8469 get_named_tty.
8470
8471 2008-09-19 Eli Zaretskii <eliz@gnu.org>
8472
8473 * process.c (procfs_system_process_attributes): Fix cmdline in
8474 case /proc/PID/cmdline is empty.
8475
8476 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
8477 x_display_pixel_height.
8478
8479 2008-09-19 Juanma Barranquero <lekktu@gmail.com>
8480
8481 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
8482
8483 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
8484 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
8485
8486 2008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
8487
8488 * dispextern.h (struct it): Move line_wrap away from the middle of
8489 bitfields. Move voffset in struct iterator_stack_entry after the
8490 bitfields. Move tab_width near after another short.
8491
8492 2008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
8493
8494 * frame.h (struct frame): Move alpha from the middle of bitfields.
8495
8496 * window.h (struct window): Move frozen_window_start_p after the
8497 rest of the bitfields to reduce padding.
8498
8499 2008-09-18 Chong Yidong <cyd@stupidchicken.com>
8500
8501 * xterm.h (x_display_info): Remove `height' and `width' members.
8502
8503 * nsterm.h (ns_display_info): Remove `height' and `width' members.
8504
8505 * w32term.h (w32_display_info): Remove `height', `width',
8506 `height_in', and `width_in' members.
8507
8508 * xterm.c (x_display_pixel_height, x_display_pixel_width):
8509 New functions.
8510 (x_calc_absolute_position): Use them.
8511 (x_term_init): Omit removed `height' and `width' members.
8512
8513 * w32term.c (x_display_pixel_height, x_display_pixel_width):
8514 New functions.
8515 (w32_read_socket, x_calc_absolute_position): Use them.
8516 (w32_initialize_display_info, w32_term_init): Omit removed members
8517 of w32_display_info.
8518
8519 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
8520 New functions.
8521 (ns_initialize_display_info): Omit removed members of ns_display_info.
8522
8523 * xterm.c (x_display_pixel_height, x_display_pixel_width):
8524 New functions.
8525 (x_calc_absolute_position): Use them.
8526 (x_term_init): Omit removed `height' and `width' members.
8527
8528 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
8529 (compute_tip_xy):
8530 * frame.c (x_fullscreen_adjust):
8531 * xmenu.c (menu_position_func): Use x_display_pixel_height and
8532 x_display_pixel_width.
8533
8534 2008-09-18 Kenichi Handa <handa@m17n.org>
8535
8536 * composite.c (fill_gstring_header): Don't check FROM and TO here.
8537 (composition_compute_stop_pos): Fix handling of static composition.
8538 (Fcomposition_get_gstring): Check FROM and TO at first.
8539
8540 2008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
8541
8542 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
8543 mixup (YAILOM).
8544
8545 2008-09-17 Chong Yidong <cyd@stupidchicken.com>
8546
8547 * indent.c (Fvertical_motion): Use position reported by iterator
8548 instead of PT for determining screen motion (bug#943).
8549
8550 2008-09-17 Romain Francoise <romain@orebokech.com>
8551
8552 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
8553
8554 2008-09-17 Kenichi Handa <handa@m17n.org>
8555
8556 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
8557
8558 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
8559 if necessary.
8560
8561 2008-09-16 Kenichi Handa <handa@m17n.org>
8562
8563 * coding.c (make_conversion_work_buffer): Avoid calling
8564 Fget_buffer_create if it is not necessary.
8565
8566 2008-09-15 Martin Rudalics <rudalics@gmx.at>
8567
8568 * window.c (Fselect_window): Don't update window_select_count and
8569 use_time when norecord is not nil.
8570
8571 2008-09-14 Kenichi Handa <handa@m17n.org>
8572
8573 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
8574 specpdl_ptr.
8575
8576 2008-09-12 Kenichi Handa <handa@m17n.org>
8577
8578 * indent.c (scan_for_column): Don't handle automatic composition
8579 if the current buffer is not associated with a window.
8580
8581 * composite.c (composition_reseat_it): If the current buffer is
8582 not associated with a window, ignore the automatic composition.
8583 (find_automatic_composition): Likewise.
8584
8585 2008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
8586
8587 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
8588 (Fgpm_mouse_stop): Use it.
8589 * termhooks.h (close_gpm): Declare.
8590 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
8591 connection if Gpm_GetEvent fails.
8592
8593 * window.c (set_window_buffer): Always preserve current-buffer.
8594
8595 2008-09-12 Glenn Morris <rgm@gnu.org>
8596
8597 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
8598
8599 2008-09-11 Glenn Morris <rgm@gnu.org>
8600
8601 * charset.c (charset-map-path): Doc fix.
8602
8603 2008-09-10 Kenichi Handa <handa@m17n.org>
8604
8605 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
8606
8607 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
8608 compose a grapheme cluster with the preceding base glyph.
8609
8610 * composite.c (composition_compute_stop_pos): Fix previous change.
8611 Reset cmp_it->id to -1 at first.
8612
8613 2008-09-10 Glenn Morris <rgm@gnu.org>
8614
8615 * Makefile.in (character.o, chartab.o): Fix config.h typo.
8616
8617 2008-09-09 Chong Yidong <cyd@stupidchicken.com>
8618
8619 * keyboard.c (read_key_sequence): Reapply translation maps when
8620 switching keyboards.
8621
8622 2008-09-09 Kenichi Handa <handa@m17n.org>
8623
8624 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
8625 characters.
8626
8627 * composite.c (FORWARD_CHAR): Fix calculation
8628 of (POSITION).pos_byte.
8629 (composition_compute_stop_pos): Limit the search of composition to
8630 at most 500 characters ahead. If we reach the limit or find a
8631 newline, set cmp_it->ch to -2 and return 0.
8632 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
8633
8634 2008-09-08 Kenichi Handa <handa@m17n.org>
8635
8636 * indent.c (Fvertical_motion): Be sure to set
8637 it_overshoot_expected if it.cmp_it.id is non-negative.
8638
8639 2008-09-07 Andreas Schwab <schwab@suse.de>
8640
8641 * callproc.c (Fcall_process): Don't hold references to string data
8642 across garbage collection. Move initialisation of new_argv down
8643 to avoid compiler bug.
8644
8645 2008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
8646
8647 * process.c (Fsystem_process_attributes): Doc fix.
8648
8649 2008-09-07 Chong Yidong <cyd@stupidchicken.com>
8650
8651 * callproc.c (Fcall_process): Canonicalize current directory name.
8652
8653 * xdisp.c (move_it_to): When moving by vpos, ensure that the
8654 iterator advances to the next line if the current line ends in a
8655 continued tab.
8656
8657 2008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
8658
8659 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
8660 member to point to cmp_from.
8661
8662 * xdisp.c: Doc fix for references to gidx data member.
8663
8664 2008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
8665
8666 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
8667
8668 2008-09-07 Kenichi Handa <handa@m17n.org>
8669
8670 * composite.c (FORWARD_CHAR): Check STOP after
8671 incrementing (POSITION).pos.
8672
8673 2008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
8674
8675 * process.c (Fsystem_process_attributes): Doc fix.
8676
8677 2008-09-06 Chong Yidong <cyd@stupidchicken.com>
8678
8679 * keyboard.c (Ftop_level): Doc fix.
8680
8681 2008-09-06 Eli Zaretskii <eliz@gnu.org>
8682
8683 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
8684 minibuffer, don't let lower part of menu invade the echo area.
8685
8686 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
8687 "char *q" to access menu text and advance through it. Revert the
8688 change that displayed ">" instead of ASCII character 0x10.
8689
8690 2008-09-05 Eli Zaretskii <eliz@gnu.org>
8691
8692 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
8693 toggle boxes and radio buttons on MS-DOS as well.
8694
8695 2008-09-05 Kenichi Handa <handa@m17n.org>
8696
8697 * composite.c (autocmp_chars): Check lookback count.
8698 (composition_compute_stop_pos): Set cmp_it->lookback.
8699 (composition_reseat_it): Check lookback count.
8700 (struct position_record): New struct.
8701 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
8702 (find_automatic_composition): New function.
8703 (composition_adjust_point): Use find_automatic_composition.
8704
8705 * dispextern.h (struct composition_it): New member lookback.
8706
8707 2008-09-02 Chong Yidong <cyd@stupidchicken.com>
8708
8709 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
8710 if moving by a single line.
8711
8712 2008-09-02 Andreas Schwab <schwab@suse.de>
8713
8714 * xterm.c (x_delete_display): Fix merge error.
8715
8716 * fileio.c (Fexpand_file_name): Remove unused variables.
8717
8718 2008-09-02 Eli Zaretskii <eliz@gnu.org>
8719
8720 * fileio.c (Fexpand_file_name): Copy argument `name' into local
8721 storage on all platforms, not just on DOS_NT.
8722
8723 2008-09-02 Jason Rumney <jasonr@gnu.org>
8724
8725 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
8726 Ensure mouse is not grabbed after menu is finished.
8727
8728 2008-09-01 Chong Yidong <cyd@stupidchicken.com>
8729
8730 * xfaces.c (Finternal_set_alternative_font_family_alist)
8731 (Finternal_set_alternative_font_registry_alist): Properly copy
8732 entire alist structure.
8733
8734 2008-09-01 Kenichi Handa <handa@m17n.org>
8735
8736 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
8737 representative chars of the script is a vector.
8738 (ftfont_list): Handle the case where the representative chars of
8739 the script is a vector.
8740
8741 * character.c (syms_of_character): Docstring of
8742 script-representative-chars fixed.
8743
8744 2008-08-31 Eli Zaretskii <eliz@gnu.org>
8745
8746 * msdos.c (BUILD_CHAR_GLYPH): New macro.
8747 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
8748 the menu. Allocate larger buffer for `text', to account for
8749 possible ^C characters.
8750
8751 2008-08-31 Martin Rudalics <rudalics@gmx.at>
8752
8753 * xdisp.c (prepare_menu_bars): Don't call
8754 Vwindow_size_change_functions with arg Qt.
8755
8756 2008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
8757
8758 * font.h (font_range):
8759 * fileio.c (report_file_error):
8760 * composite.c (composition_update_it): Yet another int/Lisp_Object
8761 mixup (YAILOM).
8762
8763 2008-08-30 Glenn Morris <rgm@gnu.org>
8764
8765 * data.c (Fmake_variable_frame_local): Doc fix.
8766
8767 * frame.c (Fmodify_frame_parameters): Doc fix.
8768
8769 2008-08-30 Eli Zaretskii <eliz@gnu.org>
8770
8771 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
8772 needed by GetTokenInformation.
8773 (w32_system_process_attributes): Check return values of all system
8774 APIs.
8775
8776 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
8777 only when the state changes.
8778 (IT_update_begin, IT_update_end): Add termscript trace.
8779
8780 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
8781 clipboard is unavailable. Set dst to NULL if it doesn't point to
8782 malloc'ed data.
8783 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
8784 passing random values to xfree.
8785
8786 * dispnew.c (init_display): Set `tty's association in frame's
8787 parameters alist to the name of the terminal device, if that is known.
8788
8789 2008-08-29 Jason Rumney <jasonr@gnu.org>
8790
8791 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
8792
8793 2008-08-29 Eli Zaretskii <eliz@gnu.org>
8794
8795 * composite.c (fill_gstring_body): Avoid compiler warnings.
8796
8797 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
8798 LGLYPH_SET_CODE to avoid compiler warnings.
8799
8800 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
8801
8802 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
8803
8804 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
8805 LGLYPH_SET_CODE.
8806
8807 2008-08-29 Kenichi Handa <handa@m17n.org>
8808
8809 * fileio.c (report_file_error): Don't downcase the first character
8810 of errstring if it is still unibyte.
8811
8812 2008-08-29 Kenichi Handa <handa@m17n.org>
8813
8814 These changes are to re-implement the automatic composition so
8815 that it doesn't use text properties.
8816
8817 * Makefile.in (ftfont.o): Depend on composite.h.
8818 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
8819
8820 * character.h (Vunicode_category_table): Extern it.
8821
8822 * character.c (Vunicode_category_table): New variable.
8823 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
8824
8825 * chartab.c (optimize_sub_char_table): Perform more greedy
8826 optimization.
8827
8828 * composite.h (enum composition_method):
8829 Delete COMPOSITION_WITH_GLYPH_STRING.
8830 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
8831 (Vcomposition_function_table): Extern it.
8832 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
8833 (composition_gstring_put_cache, composition_gstring_from_id)
8834 (composition_gstring_p, composition_gstring_width)
8835 (composition_compute_stop_pos, composition_reseat_it)
8836 (composition_update_it, composition_adjust_point): Extern them.
8837 (Fcomposition_get_gstring): EXFUN it.
8838
8839 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
8840 (Vcomposition_function_table)
8841 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
8842 (gstring_hash_table, gstring_work, gstring_work_headers):
8843 New variables.
8844 (gstring_lookup_cache, composition_gstring_put_cache)
8845 (composition_gstring_from_id, composition_gstring_p)
8846 (composition_gstring_width, fill_gstring_header)
8847 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
8848 (composition_reseat_it, composition_update_it)
8849 (composition_adjust_point, Fcomposition_get_gstring): New functions.
8850 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
8851 and gstring_work_headers. DEFVAR_LISP composition-function-table.
8852 Defsubr composition_get_gstring.
8853
8854 * dispextern.h (struct glyph): New union u.cmp. Delete the member
8855 cmp_id.
8856 (struct glyph_string): Delete the member gidx. New members
8857 cmp_id, cmp_from, and cmp_to.
8858 (enum it_method): Delete GET_FROM_COMPOSITION.
8859 (struct composition_it): New struct.
8860 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
8861 Delete c, len, cmp_id, cmp_len in u.comp.
8862
8863 * font.h (enum lgstring_indices): Delete it.
8864 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
8865 (enum lglyph_indices): Likewise.
8866 (font_range): Adjust extern.
8867 (font_fill_lglyph_metrics): Extern it.
8868
8869 * font.c (QCf): New variable.
8870 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
8871 (font_prepare_composition): Delete this function.
8872 (font_range): Type and arguments changed.
8873 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
8874 (font_fill_lglyph_metrics): New function.
8875 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
8876 (syms_of_font): DEFSYM QCf. Delete defsubr for
8877 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
8878 Defsubr Sfont_shape_gstring.
8879
8880 * fontset.h (font_for_char): Extern it.
8881
8882 * fontset.c (font_for_char): New function.
8883
8884 * ftfont.c: Include composite.h.
8885 (ftfont_resolve_generic_family): Add langset "en" to pattern.
8886 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
8887
8888 * indent.c: Include composite.h and dispextern.h.
8889 (check_composition): Delete this function.
8890 (scan_for_column): Handle composition by
8891 composition_compute_stop_pos, composition_reseat_it, and
8892 composition_update_it.
8893 (compute_motion): Likewise.
8894 (Fvertical_motion): Fix checking of composition.
8895
8896 * keyboard.c (adjust_point_for_property): Check composition by
8897 composition_adjust_point.
8898
8899 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
8900 struct glyph_string.
8901
8902 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
8903 (append_composite_glyph): Adjust for the change of struct it and
8904 struct glyph.
8905 (produce_composite_glyph): Likewise.
8906
8907 * w32term.c (x_draw_composite_glyph_string_foreground):
8908 Adjust for the change of struct glyph_string.
8909 (x_draw_glyph_string): Likewise.
8910
8911 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
8912 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
8913
8914 * xdisp.c: Include font.h.
8915 (it_props): Delete the entry for Qauto_composed.
8916 (init_iterator): Initialize it->cmp_it.id to -1.
8917 (compute_stop_pos): Call composition_compute_stop_pos.
8918 (face_before_or_after_it_pos): Adjust for the change of struct it.
8919 (handle_auto_composed_prop): Delete it.
8920 (handle_composition_prop): Handle only static composition.
8921 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
8922 from xassert. Initialize it->cmp_it.stop_pos.
8923 (push_it): Adjust for the change of struct it.
8924 (pop_it): Likewise.
8925 (get_next_element): Delete next_element_from_composition.
8926 (CHAR_COMPOSED_P): New macro.
8927 (get_next_display_element): For automatic composition, get a face
8928 from the font in the glyph-string.
8929 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
8930 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
8931 (next_element_from_string): Check if the character at the current
8932 position is composed by CHAR_COMPOSED_P.
8933 (next_element_from_buffer): Likewise.
8934 (next_element_from_composition): Adjust for the change of struct it.
8935 Update it->cmp_it.
8936 (dump_glyph): Adjust for the change of struct glyph.
8937 (fill_composite_glyph_string): Adjust for the change of struct
8938 it and struct glyph. Don't handle automatic composition here.
8939 (fill_gstring_glyph_string): New function.
8940 (x_get_glyph_overhangs): Handle automatic composition.
8941 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
8942 (BUILD_GSTRING_GLYPH_STRING): New macro.
8943 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
8944 automatic composition.
8945 (append_composite_glyph): Adjust for the change of struct it and
8946 struct glyph.
8947 (x_produce_glyphs): Adjust for the change of struct it.
8948
8949 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
8950 the change of struct glyph_string.
8951 (x_draw_glyph_string): Likewise.
8952
8953 2008-08-29 Glenn Morris <rgm@gnu.org>
8954
8955 * buffer.c (word-wrap): Doc fix.
8956 * xdisp.c (truncate-partial-width-windows): Doc fix.
8957 Increase default to 50.
8958
8959 2008-08-29 Chong Yidong <cyd@stupidchicken.com>
8960
8961 * xdisp.c (update_tool_bar_unwind): New function.
8962 (update_tool_bar): Temporarily set selected frame before building
8963 tool-bar items.
8964
8965 2008-08-28 Michael Albinus <michael.albinus@gmx.de>
8966
8967 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
8968 snprintf, respectively.
8969 (xd_append_arg): Convert strings with Fstring_make_unibyte.
8970
8971 2008-08-28 Chong Yidong <cyd@stupidchicken.com>
8972
8973 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
8974 LDFLAGS to GNUstep CC invocation.
8975
8976 2008-08-27 Chong Yidong <cyd@stupidchicken.com>
8977
8978 * indent.c (Fvertical_motion): Revert last change. Handle the
8979 general case where we are moving forward, and PT spans multiple
8980 screen lines.
8981
8982 * eval.c (find_handler_clause): Temporarily increase
8983 max-lisp-eval-depth while printing the backtrace buffer, to
8984 guarantee that help-mode code can run.
8985
8986 2008-08-27 Eli Zaretskii <eliz@gnu.org>
8987
8988 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
8989 colors under -rv.
8990 (IT_set_frame_parameters): Don't swap foreground and background
8991 colors if `(reverse . t)' is present in the frame properties.
8992 (internal_terminal_init): Call init_frame_faces only for the
8993 initial frame.
8994
8995 2008-08-27 Andreas Schwab <schwab@suse.de>
8996
8997 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
8998
8999 2008-08-27 Andreas Schwab <schwab@suse.de>
9000
9001 * search.c (search_buffer): Set char_base to zero only at the end.
9002
9003 2008-08-27 Kenichi Handa <handa@m17n.org>
9004
9005 * fileio.c (report_file_error): Fix handling of multibyte error string.
9006
9007 2008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
9008
9009 * xterm.c (x_term_init): Temporarily hide the partially
9010 initialized terminal while calling vendor-specific-keysyms.
9011
9012 2008-08-26 Eli Zaretskii <eliz@gnu.org>
9013
9014 * msdos.c (internal_terminal_init): Most initializations done only
9015 once, especially initial_screen_colors[] and termscript open.
9016
9017 2008-08-26 Chong Yidong <cyd@stupidchicken.com>
9018
9019 * eval.c (Fcondition_case): Doc fix.
9020
9021 * widgetprv.h (EmacsFramePart): Change font member to the new font
9022 struct.
9023
9024 * widget.c: Include character.h and font.h for XSETFONT.
9025 (setup_frame_gcs): Compute X font id from font struct, just once.
9026
9027 2008-08-26 Eli Zaretskii <eliz@gnu.org>
9028
9029 * term.c (get_named_tty): Fix last change.
9030
9031 2008-08-26 Chong Yidong <cyd@stupidchicken.com>
9032
9033 * indent.c (Fvertical_motion): If moving forward starting from a
9034 multi-line string, move the iterator to the last line of that string.
9035
9036 2008-08-25 Eli Zaretskii <eliz@gnu.org>
9037
9038 * frame.c (do_switch_frame): Mark previously displayed frame as
9039 obscured for FRAME_MSDOS_P frames as well.
9040
9041 2008-08-24 Eli Zaretskii <eliz@gnu.org>
9042
9043 * frame.c (make_terminal_frame): Initialize f->terminal,
9044 f->terminal->reference_count, and scroll bars on MS-DOS as well.
9045 Set the top frame to newly created frame.
9046 (Fmake_terminal_frame): Reuse the_only_display_info.
9047
9048 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
9049 estimating available memory.
9050
9051 2008-08-23 David Reitter <david.reitter@gmail.com>
9052
9053 * nsterm.m (ns_draw_window_cursor): Don't call
9054 NSDisableScreenUpdates and NSEnableScreenUpdates on
9055 non-NS_IMPL_COCOA systems.
9056
9057 2008-08-23 Andreas Schwab <schwab@suse.de>
9058
9059 * process.c (procfs_system_process_attributes): Fix use of
9060 uninitialized variables.
9061
9062 2008-08-23 Eli Zaretskii <eliz@gnu.org>
9063
9064 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
9065
9066 * dispnew.c (init_display): Remove MS-DOS specific conditions for
9067 calling tty-set-up-initial-frame-faces.
9068
9069 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
9070 Allow MSDOS frames along with X frames.
9071
9072 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
9073 addition to output_termcap.
9074
9075 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
9076
9077 * termchar.h (FRAME_TTY): Support output_msdos_raw.
9078 (struct tty_display_info) [MSDOS]: Add fields related to mouse
9079 highlight.
9080
9081 * process.c [!subprocesses]: Define QCname.
9082 (syms_of_process): Intern and staticpro it.
9083
9084 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
9085 Adjust for changes in encoding/decoding routines.
9086 Use encode_coding_object and decode_coding_object instead of
9087 encode_coding and decode_coding.
9088
9089 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
9090
9091 * dosfns.c: Include frame.h before termhooks.h.
9092 (dos_cleanup): Use CURTTY ()->termscript instead of a global
9093 variable termscript.
9094
9095 * s/msdos.h (USER_FULL_NAME): Define.
9096 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
9097
9098 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
9099 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
9100 pw->pw_gecos.
9101
9102 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
9103 SELECTED_FRAME as additional (1st) argument.
9104 (tty_read_avail_input): Handle output_msdos_raw in
9105 addition to output_termcap.
9106
9107 * msdos.c: Include frame.h before termhooks.h.
9108 (mouse_on, mouse_off, mouse_moveto, mouse_init)
9109 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
9110 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
9111 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
9112 (IT_set_terminal_modes, IT_reset_terminal_modes)
9113 (IT_set_frame_parameters): Use tty->termscript instead of a global
9114 variable termscript.
9115 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
9116 global variable terminal_coding. Don't refer to
9117 Vnonascii_translation_table.
9118 (internal_terminal_init): Set Vwindow_system in current_kboard.
9119 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
9120 Announce date and time of session start, if termscript is open.
9121 Don't zero out the_only_display_info (it is done in
9122 term.c:init_tty). Open termscript only of not already open.
9123 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
9124 here instead of dos_ttraw. Don't initialize display if this is an
9125 initial tty. Don't set FRAME_FONT.
9126 (Vwindow_system_version): Bump to 23.
9127 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
9128 is available, set up mouse_position_hook.
9129 (dos_ttraw, IT_set_terminal_modes): If called with initial
9130 terminal, do nothing.
9131 (IT_set_frame_parameters): Handle the Qtty_type frame
9132 parameter by calling internal_terminal_init.
9133 (dos_set_window_size, show_mouse_face)
9134 (clear_mouse_face, IT_note_mode_line_highlight)
9135 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
9136 (dos_rawgetc): Use tty_display_info instead of x_display_info.
9137 (initialize_msdos_display): New function.
9138 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
9139 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
9140 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
9141 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
9142 Accept additional argument: a pointer to a frame. Update all callers.
9143 (request_sigio, unrequest_sigio): Don't define, now defined on
9144 sysdep.c.
9145 (IT_write_glyphs): Rewrite to use encode_terminal_code.
9146
9147 * term.c [MSDOS]: Include msdos.h.
9148 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
9149 conditional to DOS_NT. Allow only one call to this function in a
9150 session. Don't allocate a new struct tty_display_info; instead,
9151 reuse the_only_display_info. Call get_tty_size to get screen
9152 dimensions. Call init_baud_rate to set bad_rate.
9153 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
9154 (Fsuspend_tty) [MSDOS]: Don't close input and output.
9155 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
9156 (get_tty_terminal, get_named_tty, Ftty_type)
9157 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
9158 output_termcap.
9159 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
9160 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
9161 only when subprocesses are supported.
9162
9163 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
9164 f->output_data.x.
9165 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
9166 terminal devices.
9167
9168 * msdos.h: Remove definition of struct x_display_info and struct
9169 x_output.
9170 (FRAME_FONT): Use output_data.tty.
9171 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
9172 (struct x_display_info): Rename from display_info. Update all users in
9173 msdos.c.
9174 (struct x_output): Remove background_pixel and foreground_pixel.
9175 (the_only_display_info): Rename from the_only_x_display.
9176 (dos_ttraw): Update prototype.
9177
9178 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
9179 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
9180
9181 2008-08-23 Jason Rumney <jasonr@gnu.org>
9182
9183 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
9184 (fn_TIFFSetDirectory): New library function used.
9185 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
9186 (tiff_load): Use :index to select among multiple images. Set count
9187 property when multiple images exist.
9188 (gif_format): Use :index, not :image.
9189
9190 2008-08-23 Chong Yidong <cyd@stupidchicken.com>
9191
9192 * xdisp.c (try_scrolling): Check INT_MAX instead of
9193 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
9194 to obtain INT_MAX.
9195
9196 2008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
9197
9198 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
9199
9200 2008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
9201
9202 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
9203 GNUstep library location.
9204
9205 2008-08-21 Chong Yidong <cyd@stupidchicken.com>
9206
9207 * xfaces.c (x_update_menu_appearance): Check validity of menu font
9208 before using it.
9209
9210 * puresize.h (BASE_PURESIZE): Increase to 1250000.
9211
9212 2008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
9213
9214 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
9215 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
9216 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
9217 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
9218 (EmacsApp-cursor_blink_handler): Remove declaration.
9219 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
9220 match 01 Feb 2008 changes in xterm.c.
9221 (ns_read_socket): Add cast to avoid warning.
9222 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
9223 GNUstep.
9224
9225 2008-08-20 Chong Yidong <cyd@stupidchicken.com>
9226
9227 * xselect.c (x_get_foreign_selection): Return nil if desired
9228 selection could not be obtained, instead of signalling an error.
9229
9230 2008-08-20 David Reitter <david.reitter@gmail.com>
9231
9232 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
9233 * nsterm.m: Remove ns-specific code for cursor blinking.
9234 (ns_draw_window_cursor): Clear cursor properly rather than
9235 redrawing the area. Respect width of bar cursors.
9236 These changes enable the use of generic blink-cursor-mode and
9237 generic cursor types in NS and support smooth cursor movements (do
9238 not blink off after command).
9239 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
9240 Nextstep, too.
9241
9242 2008-08-19 Kenichi Handa <handa@m17n.org>
9243
9244 * font.c (Vfont_log_deferred): New variable.
9245 (font_add_log): Check Vfont_log_deferred.
9246 (font_deferred_log): New function.
9247
9248 * font.h (font_deferred_log): Extern it.
9249
9250 * fontset.c (reorder_font_vector): Use encoding charset of fonts
9251 for sorting.
9252 (face_for_char): Use deferred log.
9253
9254 2008-08-18 Kenichi Handa <handa@m17n.org>
9255
9256 * fontset.c (face_for_char): Add font log.
9257
9258 * font.c (font_add_log): Add the font properties :script, :lang,
9259 and :otf in the log.
9260
9261 2008-08-17 Chong Yidong <cyd@stupidchicken.com>
9262
9263 * xdisp.c: Remove dead code.
9264 (handle_invisible_prop, next_overlay_string): Defer call to
9265 setup_for_ellipsis.
9266 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
9267
9268 2008-08-15 Chong Yidong <cyd@stupidchicken.com>
9269
9270 * xfaces.c (lookup_derived_face): Properly handle possible zero
9271 return value of get_lface_attributes.
9272 (merge_faces): Don't tell lookup_derived_face to signal an error
9273 if face is not found.
9274
9275 * dired.c (Fdirectory_files): Doc fix.
9276
9277 * process.c (make_process): Initialize kill_without_query struct
9278 member.
9279
9280 2008-08-15 Eli Zaretskii <eliz@gnu.org>
9281
9282 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
9283 Alternative calculation of totphys for Visual Studio 6.
9284
9285 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
9286
9287 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
9288 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
9289 All users changed.
9290 (stat): Only root directory passed to GetDriveType. Allow RAM
9291 disk as well as local fixed disk when w32-get-true-file-attributes
9292 is set to `local'.
9293 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
9294 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
9295 (w32_cached_id, w32_add_to_cache): New functions.
9296 (get_name_and_id): Look account names in the cache before calling
9297 lookup_account_sid.
9298 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
9299 New initialization flags.
9300 (globals_of_w32): Initialize them to zero.
9301 (w32_system_process_attributes): Use w32_cached_id and
9302 w32_add_to_cache.
9303
9304 2008-08-14 Lawrence Mitchell <wence@gmx.li>
9305
9306 * lread.c (Fread_char, Fread_char_exclusive): If no character
9307 event is read before timeout is reached, return nil, rather than
9308 converting to a number.
9309
9310 2008-08-14 Chong Yidong <cyd@stupidchicken.com>
9311
9312 * fns.c (use_dialog_box): Doc fix.
9313
9314 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
9315 on OS X.
9316
9317 2008-08-13 Chong Yidong <cyd@stupidchicken.com>
9318
9319 * frame.c (Qns_parse_geometry): New var.
9320 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
9321
9322 2008-08-11 Chong Yidong <cyd@stupidchicken.com>
9323
9324 * xdisp.c (x_produce_glyphs): Handle the case when font has no
9325 space character in calculating tabs.
9326
9327 2008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
9328
9329 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
9330
9331 2008-08-10 Glenn Morris <rgm@gnu.org>
9332
9333 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
9334 silence gcc "limited range of data type" warnings in some
9335 make_fixnum_or_float calls.
9336
9337 2008-08-09 Eli Zaretskii <eliz@gnu.org>
9338
9339 * w32.c (w32_system_process_attributes): If the process does not
9340 exist, return nil.
9341
9342 * w32.c: Include thelp32.h, psapi.h and coding.h.
9343 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
9344 declarations.
9345 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
9346 (Process32Next_Proc): New typedefs.
9347 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
9348 (g_b_init_process32_next, g_b_init_open_thread_token)
9349 (g_b_init_impersonate_self, g_b_init_revert_to_self)
9350 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
9351 (g_b_init_get_process_working_set_size)
9352 (g_b_init_global_memory_status_ex): New static variables.
9353 (globals_of_w32): Initialize them.
9354 (create_toolhelp32_snapshot, process32_first, process32_next)
9355 (open_thread_token, impersonate_self, revert_to_self)
9356 (get_process_memory_info, get_process_working_set_size)
9357 (global_memory_status, global_memory_status_ex): New wrapper
9358 functions.
9359 (w32_list_system_processes, w32_system_process_attributes)
9360 (enable_privilege, restore_privilege, ltime, process_times):
9361 New functions.
9362 (convert_time_raw): New function.
9363 (convert_time): Remove conversion of FILETIME into time in 100
9364 nsec units, call convert_time_raw instead.
9365
9366 * process.h (w32_list_system_processes, w32_system_process_attributes):
9367 Add prototypes.
9368 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
9369 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
9370 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
9371 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
9372
9373 * process.c (Fsystem_process_attributes): Doc fix.
9374
9375 2008-08-08 Chong Yidong <cyd@stupidchicken.com>
9376
9377 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
9378 a continued multi-char glyph; if so, advance to the actual glyph.
9379
9380 2008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
9381
9382 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
9383
9384 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
9385 (.m.o): Use it.
9386 * config.in: Regenerate.
9387
9388 2008-08-07 Chong Yidong <cyd@stupidchicken.com>
9389
9390 * xdisp.c (redisplay_window): Revert last change.
9391 (try_window): Check bottom scroll margin too.
9392
9393 2008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
9394
9395 * config.in: Regenerate.
9396
9397 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
9398 -list-load-path-shadows'.
9399 (nsgui.h): Reduce number of things depending on it.
9400
9401 2008-08-06 Chong Yidong <cyd@stupidchicken.com>
9402
9403 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
9404 instead of window-end which does the wrong thing at eob.
9405 (try_cursor_movement): Minor optimization.
9406 (redisplay_window): If scroll margin is defined, don't assume
9407 window doesn't need scrolling.
9408
9409 2008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
9410
9411 * config.in: Regenerate.
9412
9413 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
9414 (mostlyclean): Don't delete *.d under NS.
9415
9416 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
9417
9418 2008-08-06 Kenichi Handa <handa@m17n.org>
9419
9420 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
9421
9422 2008-08-06 Andreas Schwab <schwab@suse.de>
9423
9424 * config.in: Regenerate.
9425
9426 2008-08-05 Chong Yidong <cyd@stupidchicken.com>
9427
9428 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
9429 forcing a window start.
9430
9431 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
9432 (auto_save_1): Update modtime when auto-save-list-file-name is on.
9433
9434 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
9435
9436 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
9437 argument.
9438
9439 2008-08-05 Juanma Barranquero <lekktu@gmail.com>
9440
9441 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
9442 <scroll-down-aggressively, before-change-functions>:
9443 <after-change-functions>: Reflow docstrings.
9444
9445 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
9446 Ken Raeburn <raeburn@gnu.org>
9447
9448 Dock menu customization, based on a patch by Ken Raeburn, plus some
9449 other fixes.
9450 * nsmenu.m (dockMenu): New variable.
9451 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
9452
9453 * nsterm.h (dockMenu): Declare.
9454
9455 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
9456 (ns_term_init): Initialize dockMenu.
9457 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
9458 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
9459 left.
9460
9461 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
9462
9463 2008-08-04 Chong Yidong <cyd@stupidchicken.com>
9464
9465 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
9466
9467 * config.in: Regenerate.
9468
9469 2008-08-04 Seiji Zenitani <zenitani@mac.com>
9470
9471 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
9472
9473 2008-08-04 Chong Yidong <cyd@stupidchicken.com>
9474
9475 * nsterm.h (find_and_call_menu_selection): Fix prototype.
9476
9477 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
9478
9479 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
9480
9481 * keyboard.h: Comment an #endif.
9482
9483 * lisp.h (have_menus_p): Adjust comment.
9484
9485 * menu.c (find_and_return_menu_selection): Fix comparison with
9486 client_data.
9487
9488 * nsmenu.m (popup_activated_flag): New variable.
9489 (popup_activated): New function.
9490 (menu-or-popup-active-p): New exported lisp definition.
9491 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
9492 when popup done.
9493 (ns_popup_dialog): Set popup_activated_flag.
9494
9495 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
9496 version for GNUstep (handled by conditional typedef in nsterm.m).
9497 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
9498 in rgb.txt).
9499
9500 * process.c (init_process): Use DARWIN_OS, not DARWIN.
9501
9502 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
9503
9504 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
9505
9506 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
9507 shortcircuit if popup_activated like GTK and X toolkit.
9508
9509 * m/inter386.h: Change DARWIN to DARWIN_OS.
9510
9511 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
9512 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
9513 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
9514 comment on NO_SOCK_SIGIO.
9515
9516 2008-08-03 Chong Yidong <cyd@stupidchicken.com>
9517
9518 * nsterm.m (windowDidResize): Remove stopModal call.
9519
9520 2008-08-03 Andreas Schwab <schwab@suse.de>
9521
9522 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
9523 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
9524
9525 2008-08-02 Chong Yidong <cyd@stupidchicken.com>
9526
9527 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
9528 Don't use uninitialized pointer variable when using getrlimit.
9529
9530 2008-08-02 Jason Rumney <jasonr@gnu.org>
9531
9532 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
9533
9534 2008-08-02 Eli Zaretskii <eliz@gnu.org>
9535
9536 * alloc.c (NSTATICS): Bump to 0x640.
9537
9538 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
9539
9540 * lisp.h: Add prototype for directory_files_internal.
9541
9542 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
9543 New functions.
9544 (syms_of_process): Defsubr them. Add initializations for various
9545 Q* symbols used in procfs_system_process_attributes.
9546 (procfs_list_system_processes, procfs_system_process_attributes)
9547 [HAVE_PROCFS]: New functions.
9548 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
9549 (procfs_get_total_memory): New functions.
9550
9551 2008-08-01 Juanma Barranquero <lekktu@gmail.com>
9552
9553 * xfaces.c (Fx_load_color_file): Fix previous change;
9554 it is #ifdef WINDOWSNT, not WINDOWS_NT.
9555
9556 2008-08-01 Michael Albinus <michael.albinus@gmx.de>
9557
9558 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
9559
9560 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
9561
9562 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
9563
9564 2008-08-01 Chong Yidong <cyd@stupidchicken.com>
9565
9566 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
9567
9568 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
9569 define NSApplicationDelegateReplySuccess.
9570 (EmacsView -converstationIdentifier): Use long instead of
9571 NSInteger for GNUstep, since it doesn't have NSInteger.
9572
9573 * xmenu.c: Revert last change.
9574
9575 * keyboard.h: Fix last change.
9576
9577 2008-08-01 Juanma Barranquero <lekktu@gmail.com>
9578
9579 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
9580 on Windows.
9581
9582 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
9583
9584 Warning clearing and clean-up in NS port.
9585 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
9586 Add prototypes.
9587 * nsgui.h (FACE_DEFAULT): Remove, unused.
9588 (XGCValues): Change colors to unsigned long.
9589 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
9590 nsterm.m.
9591 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
9592 (ns_list_fonts): Remove, unused.
9593 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
9594 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
9595 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
9596 (nsfont_draw): Compare face colors to 0, not nil.
9597 * nsmenu.m (struct widget_value): Drop unneeded declaration.
9598 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
9599 (-addSubmenuWithTitle:): Use NSMenuItem class.
9600 (ns_popup_menu): Use NO, not NULL, for enabled setting.
9601 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
9602 (ns_clip_to_row): Make gc arg a BOOL.
9603 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
9604 ns_clip_to_row() call.
9605 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
9606 used). Cast FRAME_FONT assignments.
9607 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
9608 (ns_string_to_lispmod): Change arg to const char.
9609 (ns_term_init): Use NSMenuItem class.
9610 (EmacsApp -openFile:): Move to different section of file.
9611 (EmacsApp -application:openFiles:): Don't return a value, call
9612 -replyToOpenOrPrint:.
9613 (EmacsView -keyDown:): Fix up cast.
9614 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
9615 (EmacsView -menuDown:): Cast tag in call to
9616 find_and_call_menu_selection().
9617 (ns_list_fonts): Remove, unused.
9618 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
9619 (ns_fontname_to_xlfd): Make static.
9620 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
9621 Remove prototypes (now in keyboard.h).
9622 (next_menubar_widget_id): Remove, unused.
9623 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
9624 Remove prototypes (now in keyboard.h).
9625 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
9626
9627 2008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
9628
9629 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
9630 (floatfns.o): Depend on syssignal.h.
9631 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
9632
9633 * systty.h: Fix previous change that removed BSD_TERMIOS.
9634 Add comments to #ifdefs.
9635
9636 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
9637
9638 * w32fns.c (w32-load-color-file): Remove.
9639 (x-open-connection): Use renamed Fx_load_color_file.
9640 * xfaces.c (x-load-color-file): Add.
9641 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
9642 Emacs.clr.
9643 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
9644
9645 2008-07-31 Michael Albinus <michael.albinus@gmx.de>
9646
9647 * dbusbind.c (Fdbus_call_method_asynchronously)
9648 (Fdbus_method_error_internal): New defuns.
9649 (xd_read_message): Handle also reply messages.
9650 (Vdbus_registered_functions_table): Extend docstring.
9651
9652 2008-07-31 Juanma Barranquero <lekktu@gmail.com>
9653
9654 * keyboard.c (gobble_input): Fix previous change.
9655
9656 2008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
9657
9658 * bitmaps/README:
9659 * xfns.c:
9660 * termcap.c:
9661 * term.c:
9662 * syswait.h:
9663 * systty.h:
9664 * systime.h:
9665 * syssignal.h:
9666 * sysdep.c:
9667 * process.h:
9668 * process.c:
9669 * print.c:
9670 * ndir.h:
9671 * lread.c:
9672 * keyboard.c:
9673 * getpagesize.h:
9674 * floatfns.c:
9675 * fileio.c:
9676 * emacs.c:
9677 * doc.c:
9678 * dispnew.c:
9679 * dired.c:
9680 * data.c:
9681 * callproc.c:
9682 * buffer.c:
9683 * README:
9684 * Makefile.in:
9685 * s/template.h:
9686 * s/msdos.h:
9687 * m/vax.h: Remove VMS support.
9688 * s/vms.h:
9689 * vlimit.h:
9690 * uaf.h:
9691 * temacs.opt:
9692 * param.h:
9693 * ioctl.h: Remove file.
9694
9695 2008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
9696
9697 * s/ms-w32.h (MULTI_KBOARD): Remove.
9698 * xterm.c:
9699 * xselect.c:
9700 * xfns.c:
9701 * window.c:
9702 * w32term.c:
9703 * w32fns.c:
9704 * terminal.c:
9705 * termhooks.h:
9706 * term.c:
9707 * sysdep.c:
9708 * keyboard.h:
9709 * keyboard.c:
9710 * frame.h:
9711 * frame.c:
9712 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
9713 * config.in: Regenerate.
9714
9715 2008-07-30 Jason Rumney <jasonr@gnu.org>
9716
9717 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
9718
9719 * w32font.c (w32font_encode_char): Leave as unicode if in range.
9720 (w32font_open_internal): Get unicode version of textmetrics.
9721 Don't enable or disable glyph indices here.
9722 (w32font_open): Disable use of glyph indices.
9723
9724 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
9725
9726 2008-07-30 Chong Yidong <cyd@stupidchicken.com>
9727
9728 * minibuf.c (Vread_buffer_function): Doc fix.
9729
9730 2008-07-30 John Paul Wallington <jpw@pobox.com>
9731
9732 * minibuf.c (read_buffer_completion_ignore_case): New var.
9733 (Fread_buffer): Use it.
9734
9735 2008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
9736
9737 * systty.h (sensemode): Remove empty #if. Remove reference to
9738 BSD_TERMIOS, unused.
9739
9740 * sysdep.c: Remove reference to DGUX.
9741 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
9742
9743 * config.in: Regenerate.
9744
9745 2008-07-30 Jason Rumney <jasonr@gnu.org>
9746
9747 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
9748
9749 2008-07-29 Jason Rumney <jasonr@gnu.org>
9750
9751 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
9752 is populated.
9753 (uniscribe_encode_char): Always use uniscribe.
9754 Avoid using context if cache is populated.
9755
9756 2008-07-29 Jan Djärv <jan.h.d@swipnet.se>
9757
9758 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
9759 open menu.
9760
9761 * gtkutil.c (menu_nav_ended): Remove.
9762 (create_menus): Remove signal connect for menu_nav_ended.
9763
9764 2008-07-28 Chong Yidong <cyd@stupidchicken.com>
9765
9766 * xdisp.c (redisplay_window): Check return value of
9767 compute_window_start_on_continuation_line before forcing a window
9768 start.
9769
9770 2008-07-28 Jason Rumney <jasonr@gnu.org>
9771
9772 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
9773
9774 * w32term.c (w32_enable_unicode_output, cleartype_active):
9775 Remove obsolete display options.
9776 (x_draw_glyph_string_background): Don't use old cleartype_active
9777 workaround.
9778 (w32_initialize): Remove cleartype_active initialization.
9779 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
9780
9781 2008-07-28 Andreas Schwab <schwab@suse.de>
9782
9783 * lisp.h (init_weak_hash_tables, syms_of_font)
9784 (xd_read_queued_messages, syms_of_dbusbind): Declare.
9785 (remove_hash_entry): Don't declare.
9786 * eval.c (maybe_call_debugger): Make static and move before use.
9787 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
9788 * xdisp.c: Include "gtkutil.h" if USE_GTK.
9789 * xterm.h (x_set_frame_alpha): Declare.
9790
9791 2008-07-28 Jan Djärv <jan.h.d@swipnet.se>
9792
9793 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
9794 (create_menus): Connect selection-done to menu_nav_ended.
9795
9796 2008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
9797
9798 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
9799 Set Vx_resource_name to a fallback. Replace read of 'buffered'
9800 parameter with read of 'alpha' one.
9801 (Qns_frame_parameter): Remove.
9802 * nsselect.m (selection-coding-system)
9803 (next-selection-coding-system, Vselection_coding_system)
9804 (Vnext_selection_coding_system): Drop.
9805
9806 2008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
9807
9808 * nsfns.m (do-applescript, do_applescript): Rename to
9809 ns-do-applescript, ns_do_applescript, and move within file.
9810
9811 2008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
9812
9813 Remove support for Mac Carbon.
9814 * mactoolbox.c:
9815 * macterm.h:
9816 * macterm.c:
9817 * macselect.c:
9818 * macmenu.c:
9819 * macgui.h:
9820 * macfns.c:
9821 * mac.c: Remove file.
9822 * s/darwin.h:
9823 * m/intel386.h:
9824 * xfaces.c:
9825 * xdisp.c:
9826 * window.c:
9827 * tparam.c:
9828 * termhooks.h:
9829 * termcap.c:
9830 * term.c:
9831 * syssignal.h:
9832 * sysselect.h:
9833 * sysdep.c:
9834 * process.c:
9835 * lread.c:
9836 * lisp.h:
9837 * keyboard.c:
9838 * image.c:
9839 * fringe.c:
9840 * frame.h:
9841 * frame.c:
9842 * fontset.c:
9843 * font.h:
9844 * font.c:
9845 * fns.c:
9846 * fileio.c:
9847 * emacs.c:
9848 * dispnew.c:
9849 * dispextern.h:
9850 * config.in:
9851 * atimer.c:
9852 * Makefile.in: Remove code for Carbon.
9853
9854 2008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9855
9856 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
9857
9858 2008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9859
9860 * macterm.h (kCGBitmapByteOrder32Host): New define for
9861 non-universal SDKs.
9862
9863 * image.c (mac_create_cg_image_from_image, image_load_image_io)
9864 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
9865
9866 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
9867 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
9868
9869 2008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
9870
9871 * w32inevt.c: Include dispextern.h.
9872
9873 2008-07-26 Andreas Schwab <schwab@suse.de>
9874
9875 * print.c (print_object): Fix off-by-one in last change.
9876
9877 2008-07-25 Juanma Barranquero <lekktu@gmail.com>
9878
9879 * term.c (syms_of_term): Don't initialize default_orig_pair,
9880 default_set_foreground and default_set_background on Windows.
9881
9882 2008-07-25 Jason Rumney <jasonr@gnu.org>
9883
9884 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
9885 ScriptItemize. Clean up return value checking. Remove unused
9886 variables.
9887 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
9888 shaping engine.
9889
9890 * w32font.c (w32font_has_char): Handle the case where we can't
9891 determine the script for a character.
9892
9893 2008-07-25 Chong Yidong <cyd@stupidchicken.com>
9894
9895 * term.c (syms_of_term): Initialize default_orig_pair,
9896 default_set_foreground, and default_set_background.
9897
9898 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
9899 clash (bug#86).
9900 (getloadavg): Callers changed.
9901
9902 * image.c (svg_load_image): Fix last change.
9903 (svg_load_image): Use rsvg_handle_get_dimensions to check that
9904 image size is valid. Use g_object_unref instead of deprecated
9905 rsvg_handle_free to free rsvg handle.
9906 (x_from_xcolors): Don't initialize pixmap (silence compiler).
9907
9908 2008-07-25 Jason Rumney <jasonr@gnu.org>
9909
9910 * w32font.c (w32font_encode_char): Encode characters outside BMP as
9911 surrogates before looking up glyph index.
9912 (w32font_text_extents): Encode as surrogates if falling back to
9913 functions that need UTF-16 wide chars.
9914
9915 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
9916 BMP as surrogates before looking up glyph index.
9917
9918 2008-07-25 Chong Yidong <cyd@stupidchicken.com>
9919
9920 * image.c (svg_load_image): Check for failure in return value of
9921 rsvg_handle_get_pixbuf. Free rsvg handle when done.
9922
9923 2008-07-25 Jason Rumney <jasonr@gnu.org>
9924
9925 * w32font.c (Fx_select_font): Reverse sense of second arg.
9926
9927 2008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
9928
9929 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
9930 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
9931
9932 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
9933 (PURESIZE): Use it.
9934
9935 2008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
9936
9937 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
9938 * m/alpha.h (TEXT_END):
9939 * m/ibmrs6000.h (TEXT_END):
9940 * m/macppc.h (TEXT_END):
9941 * s/darwin.h (TEXT_END):
9942 * s/msdos.h (TEXT_END): Remove, unused.
9943 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
9944 * s/cygwin.h: Remove comment.
9945
9946 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
9947 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
9948 * m/intel386.h (DOT_GLOBAL_START):
9949 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
9950 (USG): Remove, file not used on USG platforms.
9951
9952 * Makefile.in (HAVE_X11): Remove empty #else.
9953
9954 2008-07-24 Andreas Schwab <schwab@suse.de>
9955
9956 * fileio.c (Finsert_file_contents): Properly adjust undo list
9957 after format conversion.
9958
9959 2008-07-24 Jan Djärv <jan.h.d@swipnet.se>
9960
9961 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
9962 (menu_nav_ended): Remove.
9963 (create_menus): Remove signal connect for menu_nav_ended.
9964 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
9965 create_menus.
9966 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
9967
9968 2008-07-23 Jason Rumney <jasonr@gnu.org>
9969
9970 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
9971 with opened font.
9972 (w32font_open): Set font type to gdi.
9973
9974 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
9975
9976 2008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
9977
9978 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
9979 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
9980 defines it.
9981 * unexec.c (ADDR_CORRECT): Define unconditionally.
9982
9983 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
9984
9985 * unexec.c: Remove code depending on !COFF and USG, the file is
9986 not used for such systems.
9987
9988 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
9989 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
9990 (LD_SWITCH_SYSTEM_1): Remove, update users.
9991
9992 * s/darwin.h (DATA_END):
9993 * m/intel386.h (DATA_END):
9994 * m/ibmrs6000.h (DATA_END):
9995 * m/alpha.h (DATA_END): Remove, unused.
9996
9997 * config.in: Regenerate.
9998 * s/ms-w32.h (subprocesses): Define unconditionally.
9999 * s/template.h (subprocesses): Update comment.
10000 * s/vms.h (subprocesses):
10001 * s/usg5-4.h (subprocesses):
10002 * s/hpux10-20.h (subprocesses):
10003 * s/gnu-linux.h (subprocesses):
10004 * s/cygwin.h (subprocesses):
10005 * s/bsd-common.h (subprocesses):
10006 * s/aix4-2.h (subprocesses):
10007 * s/darwin.h (subprocesses): Do not define, defined by default now.
10008
10009 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
10010 Remove all references.
10011 (temacs): Add GNUstep specific ld flags.
10012
10013 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
10014 similarly to what X does.
10015
10016 2008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
10017
10018 * nsfns.m (x-list-fonts): Remove.
10019 (syms_of_nsfns): Drop the x-list-fonts declaration.
10020 * nsterm.m: Get rid of remaining "//" comments.
10021
10022 2008-07-22 Chong Yidong <cyd@stupidchicken.com>
10023
10024 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
10025
10026 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
10027 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
10028 (Fns_own_selection_internal, Fx_disown_selection_internal)
10029 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
10030
10031 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
10032 ... */' style of docstrings. Doc fixes.
10033
10034 2008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
10035
10036 * terminfo.c (UP, BC, PC): Undo previous change.
10037
10038 * nsfns.m: Rename ns prefixed functions/variables to the
10039 corresponding x versions. Update references.
10040
10041 2008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
10042
10043 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
10044
10045 2008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
10046
10047 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
10048 Remove forwarding functions.
10049 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
10050 non-static.
10051 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
10052 non-static.
10053 (ns_frame_parm_handlers): Use the new names.
10054 (syms_of_nsfns): Move to the end of file.
10055
10056 * nsterm.m (syms_of_nsterm): Move to the end of file.
10057
10058 * dispnew.c (init_display): Remove code for X10.
10059
10060 2008-07-22 Jason Rumney <jasonr@gnu.org>
10061
10062 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
10063 bare drive.
10064
10065 2008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
10066
10067 * nsterm.m (syms_of_nsterm): Remove debugging println.
10068
10069 2008-07-22 David Reitter <david.reitter@gmail.com>
10070
10071 * nsfns.m (do_applescript, F_do_applescript): NS version of the
10072 Carbon implementation of the same functionality: execute arbitrary
10073 AppleScript code.
10074
10075 2008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
10076
10077 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
10078 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
10079 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
10080 (Fx_display_mm_height, Fx_display_mm_width)
10081 (Fx_display_backing_store, Fx_display_visual_class)
10082 (Fx_display_save_under, Fx_open_connection)
10083 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
10084 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
10085 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
10086 (Fx_display_pixel_width, Fx_display_pixel_height)
10087 (Fx_display_usable_bounds, Fx_display_planes)
10088 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
10089 ... */' style of docstrings.
10090
10091 2008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
10092
10093 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
10094 on this platform.
10095 (mips):
10096 * m/iris4d.h (mips): Do not define.
10097 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
10098
10099 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
10100
10101 * image.c:
10102 * nsfns.m:
10103 * nsselect.m:
10104 * nsterm.h:
10105 * nsterm.m: Rename ns prefixed functions/variables to the
10106 corresponding x versions. Update references.
10107
10108 * m/ibms390x.h (NO_REMAP): Do not undefine.
10109
10110 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
10111
10112 2008-07-21 Chong Yidong <cyd@stupidchicken.com>
10113
10114 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
10115 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
10116 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
10117 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
10118 (Fns_display_mm_height, Fns_display_mm_width)
10119 (Fns_display_backing_store, Fns_display_visual_class)
10120 (Fns_display_save_under, Fns_open_connection)
10121 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
10122 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
10123 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
10124 (Fns_display_pixel_width, Fns_display_pixel_height)
10125 (Fns_display_usable_bounds, Fx_display_planes)
10126 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
10127
10128 2008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
10129
10130 * print.c (print_object): Check print_depth before searching for
10131 circularities.
10132
10133 2008-07-21 Michael Albinus <michael.albinus@gmx.de>
10134
10135 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
10136 only sprintf.
10137
10138 2008-07-21 Kenichi Handa <handa@m17n.org>
10139
10140 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
10141
10142 2008-07-20 Andreas Schwab <schwab@suse.de>
10143
10144 * syntax.c (find_start_pos, find_start_value)
10145 (find_start_value_byte, find_start_begv, find_defun_start)
10146 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
10147
10148 2008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
10149
10150 * s/sol2-3.h: Insert contents of s/sol2.h.
10151 (LD_SWITCH_SYSTEM): Remove redundant definition.
10152 * s/sol2.h: Remove, unused.
10153
10154 2008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
10155
10156 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
10157
10158 2008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
10159
10160 * Makefile.in (ns_appdir): Fix typo in find command.
10161
10162 2008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
10163
10164 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
10165
10166 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
10167 added not supported anymore.
10168
10169 * s/usg5-4-2.h (LIBS_SYSTEM):
10170 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
10171
10172 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
10173 * s/lynxos.h (GETPGRP_NO_ARG):
10174 * s/hpux10-20.h (NO_SIOCTL_H):
10175 * s/gnu.h (GETPGRP_NO_ARG):
10176 * s/gnu-linux.h (NO_SIOCTL_H):
10177 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
10178 * s/cygwin.h (GETPGRP_NO_ARG):
10179 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
10180 (C_DEBUG_SWITCH): Remove duplicate definition.
10181
10182 * m/ibms390.h: Remove boilerplate comments.
10183
10184 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
10185
10186 * process.c (HAVE_SERIAL): Consolidate ifdefs.
10187 (wait_reading_process_output): Remove code for SunOS, platform not
10188 supported anymore. Use SOLARIS2 instead of sun.
10189
10190 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
10191
10192 * font.c (font_open_by_name): Under NS, default lface height to zero.
10193 (font_open_for_lface): Under NS, set size based on frame fontsize.
10194 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
10195 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
10196
10197 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
10198
10199 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
10200 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
10201 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
10202 YES/NO.
10203 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
10204 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
10205 * Makefile.in (clean): Clear out build destination dir.
10206
10207 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
10208
10209 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
10210 xterm, xselect.
10211 * lisp.h: Remove declaration of hash_remove.
10212 * nsgui.h: Remove redefinitions of hash_remove.
10213 * fns.c (hash_remove): Rename to hash_remove_from_table.
10214
10215 2008-07-19 Seiji Zenitani <zenitani@mac.com>
10216
10217 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
10218 strdup() the family UTF8String before modifying it.
10219
10220 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
10221
10222 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
10223 NS_FACE_BACKGROUND with 0 instead of nil.
10224 * nsfont.m (nsfont_draw): Same.
10225
10226 2008-07-19 Chong Yidong <cyd@stupidchicken.com>
10227
10228 * nsfns.m (ns_set_background_color): Fix crash.
10229
10230 2008-07-18 Chong Yidong <cyd@stupidchicken.com>
10231
10232 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
10233
10234 2008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
10235
10236 * puresize.h (BASE_PURESIZE): Increase to 1240000.
10237
10238 2008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10239
10240 * gtkutil.c: Include <config.h> instead of "config.h".
10241
10242 * lisp.h (Foverlay_buffer): Add EXFUN.
10243
10244 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
10245 child process to complete child_setup. Undo 2005-09-21 change.
10246
10247 * s/darwin.h: Mention setsid after vfork.
10248
10249 2008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10250
10251 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
10252 Depend on macgui.h.
10253
10254 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
10255 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
10256
10257 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
10258 and f19.
10259 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
10260
10261 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
10262 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
10263 Remove enumerators.
10264
10265 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
10266 Check if FACE_FROM_ID returns NULL.
10267
10268 2008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
10269
10270 * w32inevt.c (change_frame_size): Remove extern declaration.
10271 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
10272 change_frame_size.
10273
10274 2008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
10275
10276 * getloadavg.c: Revert last change (2008-07-15).
10277
10278 2008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
10279
10280 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
10281 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
10282 from configure.
10283
10284 2008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
10285
10286 * s/sol2.h:
10287 * s/sol2-4.h: Reorganize conditionals.
10288
10289 * ecrt0.c: Remove code depending on m68000, not used anymore.
10290
10291 * fns.c (hash_remove): Make static.
10292 * lisp.h (hash_remove): Don't prototype.
10293
10294 * m/ibmrs6000.h:
10295 * m/ibms390x.h:
10296 * m/macppc.h: Remove boilerplate comments.
10297
10298 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
10299 Solaris, which does not need them.
10300
10301 * m/vax.h: Remove comments about unsupported systems.
10302
10303 * s/darwin.h: Reorganize ifdefs.
10304
10305 2008-07-17 Andreas Schwab <schwab@suse.de>
10306
10307 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
10308
10309 2008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
10310
10311 Use SDATA. Follow coding convention of placing operators at
10312 beginning of next line rather than end of previous line, and placing
10313 spaces around infix operators.
10314
10315 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
10316 in case it was defined already.
10317 USE @GNUSTEP_MAKEFILES@ rather than envvars.
10318 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
10319 ns_default.
10320 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
10321 Lisp_Objects.
10322 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
10323 (ns_defined_color, ns_color_to_lisp): Declare.
10324 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
10325 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
10326 it's accepted even with USE_LISP_UNION_TYPE.
10327 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
10328 (update_frame_tool_bar): Remove apparently obsolete tests for
10329 non-integerness of f->tool_bar_lines.
10330 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
10331 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
10332 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
10333 (nsfont_open): Don't confuse NULL for Qnil.
10334 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
10335 * menu.h (find_and_call_menu_selection):
10336 * menu.c (find_and_call_menu_selection): Use just int for vector size.
10337 (find_and_return_menu_selection): Always return something.
10338 * frame.h: Include dispextern.h for Display_Info.
10339 (display_x_get_resource): Declare.
10340
10341 2008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
10342
10343 * syntax.c: Remove stdio.h include accidentally introduced in
10344 Emacs.app commit.
10345 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
10346 NS_IMPL_COCOA.
10347 * keyboard.c (handle_async_input, input_available_signal): Remove
10348 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
10349
10350 2008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
10351
10352 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
10353 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
10354 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
10355 Use SDATA.
10356
10357 * keymap.c: Remove all NS-specific code.
10358 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
10359 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
10360 where_is_preferred_modifier, return a different value depending on how
10361 preferred is the binding.
10362 (where_is_internal): Adjust accordingly.
10363 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
10364 Adjust to new preferred_sequence_p.
10365 (syms_of_keymap): Declare `where-is-preferred-modifier'.
10366 * keyboard.c (parse_solitary_modifier): Not static any more.
10367 * keyboard.h (parse_solitary_modifier): Declare.
10368
10369 2008-07-16 Andreas Schwab <schwab@suse.de>
10370
10371 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
10372 of easymenu.
10373
10374 2008-07-16 Chong Yidong <cyd@stupidchicken.com>
10375
10376 * xdisp.c (move_it_in_display_line): Account for word wrap, so
10377 that we don't move off the line.
10378
10379 2008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
10380
10381 * keyboard.c (Qsuper): Remove.
10382 (parse_menu_item): Don't call where_is_internal specially for NS.
10383
10384 2008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
10385
10386 * s/gnu-linux.h: Remove boilerplate comments.
10387
10388 * m/alpha.h (__ELF__): Consolidate conditions.
10389
10390 * m/m68k.h (linux): Use GNU_LINUX instead.
10391 Remove boilerplate comments.
10392
10393 * m/intel386.h: Undo refactoring from previous change.
10394 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
10395 too, remove dead code.
10396 (linux): Use GNU_LINUX instead.
10397
10398 2008-07-16 Jason Rumney <jasonr@gnu.org>
10399
10400 * w32gui.h: Repeat 26 June changes lost by last change.
10401
10402 2008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
10403
10404 * systty.h: Remove code for Aix on 386, unsupported platform.
10405
10406 * s/ms-w32.h: Remove boilerplate comments.
10407 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
10408
10409 * s/gnu-linux.h (TERM): Remove support.
10410 (HAVE_SYSVIPC): Remove, unused.
10411 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
10412 for this system.
10413
10414 * process.c: Remove support for IRIS, unused.
10415 Remove support for TERM, not relevant anymore.
10416
10417 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
10418 used with the definition.
10419
10420 * s/aix4-2.h (static): Do not undef.
10421
10422 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
10423 only used on Aix.
10424 (HAVE_SYSVIPC): Remove, unused.
10425
10426 * m/hp800.h (CANNOT_DUMP): Do not undef.
10427
10428 * m/alpha.h: Fix comment.
10429
10430 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
10431 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
10432 used by this configuration.
10433 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
10434 * unexec.c: Remove code depending on HPUX and
10435 USG_SHARED_LIBRARIES, not used with this file. Remove code
10436 depending on IRIS, unused. Remove if 0-ed code.
10437
10438 * s/template.h: Remove comments about static.
10439
10440 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
10441 Remove if 0-ed code.
10442 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
10443 were the same as the default.
10444 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
10445 Remove boilerplate comments.
10446 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
10447 (HAVE_SYSVIPC): Remove, unused.
10448 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
10449
10450 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
10451 Remove boilerplate comments.
10452 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
10453 Remove boilerplate comments.
10454 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
10455 Remove boilerplate comments.
10456 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
10457
10458 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
10459 USG systems which do not use DATA_SEG_BITS.
10460 Refactor code. Remove boilerplate comments.
10461
10462 * m/ibms390.h:
10463 * m/m68k.h:
10464 * s/bsd-common.h:
10465 * s/cygwin.h:
10466 * s/darwin.h:
10467 * s/freebsd.h:
10468 * s/gnu.h:
10469 * s/msdos.h: Remove boilerplate comments.
10470
10471 * m/iris4d.h: Remove boilerplate comments and code for systems that
10472 do not use this file.
10473 (IRIS_4D): Remove, unused.
10474
10475 * m/mips.h: Remove boilerplate comments and code for systems that
10476 do not use this file.
10477 (SIGN_EXTEND_CHAR):
10478 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
10479 * unexmips.c: Remove file, unused.
10480
10481 * editfns.c (Fuser_full_name): Replace the only use of
10482 USER_FULL_NAME with its value.
10483 * config.in: Regenerate.
10484
10485 2008-07-16 David Reitter <david.reitter@gmail.com>
10486
10487 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
10488 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
10489
10490 2008-07-16 Glenn Morris <rgm@gnu.org>
10491
10492 * emacs.c (system-type): Doc fix.
10493
10494 2008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
10495
10496 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
10497 If the cache doesn't work, let's fix it, rather than work around it.
10498
10499 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
10500
10501 * Makefile.in: Correct additions for nsfont.o in last commit.
10502 * nsfont.m: New file (forgot last commit).
10503
10504 2008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
10505
10506 * callproc.c (set_initial_environment): Initialize
10507 Vprocess_environment under CANNOT_DUMP (fixes crash when
10508 batch-compiling for bootstrap).
10509
10510 2008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
10511 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10512
10513 (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
10514 fix crash due to different init order.
10515
10516 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
10517
10518 Changes and additions for NeXTstep windowing system (Cocoa and
10519 GNUstep) support.
10520
10521 * Makefile.in:
10522 * config.in: Support defines and build commands for NS port.
10523 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
10524 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
10525 * dispextern.h: Include nsgui.h and add needed typedefs under NS
10526 windowing.
10527 (struct face): Add synth_ital field.
10528 * dispnew.c: Include nsterm.h when compiling under NS windowing.
10529 (init_display): Initialize Vinitial_window_system to "ns" when so
10530 compiled.
10531 * emacs.c: Include GSConfig.h when compiling under GNUstep.
10532 (display_arg): Use under NS.
10533 (main): Under NS, allocate autorelease pool and handle command line
10534 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
10535 (standard_args): Add NS-specific args.
10536 (shut_down_emacs): Shut down NS terminal if compiled under NS.
10537 * font.c (DEFAULT_ENCODING): New variable.
10538 (font_find_for_lface): Use it.
10539 (syms_of_font): Load syms_of_nsfont under NS.
10540 * font.h: Declare nsfont_driver when compiled under NS.
10541 * fontset.c: When compiling under NS, include nsterm.h.
10542 (fontset_from_font): Autoconstruct fontset under NS.
10543 * frame.c (various): Under NS, include nsterm.h, add Qns window system
10544 symbol, document and use it.
10545 (do_switch_frame): When for_deletion under Cocoa, add
10546 Fraise_frame(Qnil).
10547 (x_set_frame_parameters): Ensure font attribute changes are picked up.
10548 (x_get_arg): Allow "yes" and "no" as boolean values.
10549 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
10550 Qright under Cocoa.
10551 (focus-follows-mouse): Default to 0 under NS.
10552 * frame.h (enum output_method): Add output_ns.
10553 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
10554 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
10555 (FRAME_WINDOW_P): NS-specific definition.
10556 * fringe.c (max_used_fringe_bitmap): Make public.
10557 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
10558 (getloadavg): Use NeXT code under descendant OS's.
10559 * image.c (includes and header section, x_create_bitmap_from_data)
10560 (x_create_bitmap_from_file, free_bitmap_record, image_background)
10561 (image_background_transparent, x_clear_image_1)
10562 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
10563 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
10564 (x_to_xcolors, x_from_xcolors, x_disable_image)
10565 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
10566 other GUIs, including XPM support using code originally written for
10567 Carbon GUI.
10568 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
10569 using NS API.
10570 (image_ascent): Use font metrics macros instead of direct struct field
10571 access.
10572 * keyboard.c (includes): Add nsterm.h when compiling under NS.
10573 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
10574 Also, handle NS as GTK for menu bar purposes.
10575 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
10576 toolkit where they differ.
10577 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
10578 use cachelist, still needed under NS.
10579 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
10580 (struct widget_value): Define it here for menu.c.
10581 * keymap.c (includes): Include modifier internals.
10582 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
10583 NS.
10584 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
10585 support for preferring sequences using certain modifiers, specified by
10586 the FIRSTONLY argument.
10587 * lisp.h (hash_remove): Rename to avoid name clash when compiling
10588 under NS GNUstep implementation.
10589 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
10590 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
10591 * menu.c: Include nsterm.h under NS.
10592 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
10593 (free_menubar_widget_tree_value, update_submenu_strings)
10594 (find_and_call_menu_selection): Treat NS as X and NT.
10595 (find_and_return_menu_selection): New function, used for popup menus.
10596 * nsgui.h:
10597 * nsterm.h:
10598 * nsfns.m:
10599 * nsimage.m:
10600 * nsmenu.m:
10601 * nsselect.m:
10602 * nsterm.m: New files.
10603 * process.c (wait_reading_process_output): Under NS, call ns_select()
10604 instead of plain select().
10605 * syntax.c (char_quoted): Under NS, avoid a crash when called near
10606 beginning of buffer.
10607 * sysselect.h (init_process): Rename when compiling under Cocoa to
10608 avoid name conflict.
10609 * termhooks.h (display_info): Add ns_display_info to union.
10610 * terminal.c (Fterminal_live_p): Add ns to terminal types.
10611 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
10612 COCOA environment.
10613 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
10614 unexec() signature. (Note, this will dump, but the resulting file
10615 crashes; unexosx is used instead; keeping around for reference and
10616 possible aid in getting dump working under GNUstep.)
10617 * w32gui.h (button_type, widget_value): Remove definitions (now in
10618 keyboard.h).
10619 * window.c: Include nsterm.h when compiling under NS.
10620 * xdisp.c (includes): Include nsterm.h when compiling under NS.
10621 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
10622 other GUI windowing systems.
10623 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
10624 GTK.
10625 (x_consider_frame_title): Under NS, set icon type and frame
10626 modified-state indicator; use ns_set_name_as_filename() when using
10627 formatted title.
10628 (update_window_cursor): Make public when compiling under NS.
10629 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
10630 (hourglass_atimer, Vhourglass_delay
10631 * xfaces.c (header section, init_frame_faces, clear_font_table)
10632 (defined_color, unload_color, x_face_list_fonts)
10633 (prepare_face_for_display): Add NS support parallel to other GUIs.
10634 Emulate GCs like other non-X GUIs.
10635 (split_font_name): Don't lowercase font name under NS.
10636 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
10637 under NS.
10638 * s/darwin.h: Add support for compilation under NS.
10639
10640 2008-07-15 Jason Rumney <jasonr@gnu.org>
10641
10642 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
10643 (w32_show_hourglass): Rename from show_hourglass.
10644 (w32_hide_hourglass): Rename from hide_hourglass.
10645 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
10646 (Vhourglass_delay): Declare extern.
10647 (hourglass_started): Remove.
10648
10649 * xdisp.c (Vhourglass_delay): Remove static.
10650 (hourglass_started, start_hourglass, cancel_hourglass):
10651 Don't include these versions on WINDOWSNT.
10652
10653 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
10654
10655 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
10656 variables (formerly in xfns.c).
10657 (show_hourglass, hide_hourglass): New prototypes (same).
10658 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
10659 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
10660 in xfns.c).
10661 (syms_of_xdisp): Declare/initialize display-hourglass,
10662 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
10663 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
10664 formerly in xfns.c.
10665 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
10666 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
10667 (start_hourglass, cancel_hourglass): Remove.
10668 (show_hourglass, hide_hourglass): Remove prototypes and static
10669 modifiers.
10670 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
10671 hourglass_atimer, hourglass_shown_p declaration/initialization.
10672 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
10673 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
10674 (start_hourglass, cancel_hourglass): Remove.
10675 (show_hourglass, hide_hourglass): Remove prototypes and static
10676 modifiers.
10677 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
10678 hourglass_atimer, hourglass_shown_p declaration/initialization.
10679 * w32fns.c (display_hourglass_p, Vhourglass_delay)
10680 (DEFAULT_HOURGLASS_DELAY): Remove.
10681 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
10682 hourglass_shown_p declaration/initialization.
10683
10684 2008-07-14 Jason Rumney <jasonr@gnu.org>
10685
10686 * w32fns.c (w32_get_arg): Remove wrapper function.
10687 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
10688 directly.
10689 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
10690
10691 2008-07-14 Kenichi Handa <handa@m17n.org>
10692
10693 * xfont.c (xfont_open): Add workaround for X's bug.
10694
10695 2008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
10696
10697 * fontset.c: Include <stdio.h> unconditionally.
10698
10699 2008-07-13 Michael Albinus <michael.albinus@gmx.de>
10700
10701 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
10702 for filtering.
10703
10704 2008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
10705
10706 * s/vms.h: Use __GNUC__ instead of _GNUC_.
10707
10708 * m/macppc.h:
10709 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
10710
10711 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
10712 (SPECIAL_EMACS_INT):
10713 * m/ia64.h (SPECIAL_EMACS_INT):
10714 * m/amdx86-64.h (SPECIAL_EMACS_INT):
10715 * s/gnu.h (NLIST_STRUCT):
10716 * s/aix4-2.h (X11R5_INHIBIT_I18N):
10717 * s/gnu-linux.h (LINUX):
10718 * s/msdos.h (HAVE_FACES):
10719 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
10720
10721 * systty.h:
10722 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
10723 anymore.
10724
10725 2008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
10726
10727 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
10728 always defined as int.
10729
10730 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
10731 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
10732 * s/gnu-linux.h (HAVE_WAIT_HEADER):
10733 * s/freebsd.h (HAVE_WAIT_HEADER):
10734 * s/bsd-common.h (HAVE_UNION_WAIT):
10735 * s/aix4-2.h (HAVE_WAIT_HEADER):
10736 * m/mips.h (HAVE_UNION_WAIT):
10737 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
10738 (COFF, static): Do not define, they are undefined later in the file.
10739
10740 * process.c (update_status): Don't use a union.
10741 (status_convert):
10742 (sigchld_handler): Use int instead of WAITTYPE.
10743
10744 2008-07-12 Chong Yidong <cyd@stupidchicken.com>
10745
10746 * indent.c (Fvertical_motion): Restore hscroll before moving to
10747 goal column.
10748
10749 2008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
10750
10751 * lisp.h: Remove left over code.
10752
10753 2008-07-11 Andreas Schwab <schwab@suse.de>
10754
10755 * lisp.h: Fix logic in last change.
10756
10757 * menu.h: New file.
10758 * menu.c: Include it.
10759 * xmenu.c: Likewise.
10760 * Makefile.in: Update dependencies.
10761
10762 2008-07-11 Kenichi Handa <handa@m17n.org>
10763
10764 * fontset.c (fontset_from_font): Cancel the previous change.
10765
10766 2008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
10767
10768 * lisp.h:
10769 * w32heap.c:
10770 * emacs.c:
10771 * alloc.c: Replace all references of NO_UNION_TYPE with
10772 USE_LISP_UNION_TYPE.
10773
10774 * m/xtensa.h (NO_UNION_TYPE):
10775 * m/vax.h (NO_UNION_TYPE):
10776 * m/template.h (NO_UNION_TYPE):
10777 * m/sparc.h (NO_UNION_TYPE):
10778 * m/mips.h (NO_UNION_TYPE):
10779 * m/macppc.h (NO_UNION_TYPE):
10780 * m/m68k.h (NO_UNION_TYPE):
10781 * m/iris4d.h (NO_UNION_TYPE):
10782 * m/intel386.h (NO_UNION_TYPE):
10783 * m/ibms390x.h (NO_UNION_TYPE):
10784 * m/ibms390.h (NO_UNION_TYPE):
10785 * m/ibmrs6000.h (NO_UNION_TYPE):
10786 * m/ia64.h (NO_UNION_TYPE):
10787 * m/hp800.h (NO_UNION_TYPE):
10788 * m/arm.h (NO_UNION_TYPE):
10789 * m/amdx86-64.h (NO_UNION_TYPE):
10790 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
10791 defining it the same.
10792
10793 2008-07-10 Chong Yidong <cyd@stupidchicken.com>
10794
10795 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
10796
10797 2008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
10798
10799 * fileio.c:
10800 * sysdep.c:
10801 * systty.h:
10802 * m/ibmrs6000.h:
10803 * m/iris4d.h:
10804 * s/aix4-2.h:
10805 * s/freebsd.h:
10806 * s/gnu-linux.h:
10807 * s/hpux10-20.h:
10808 * s/hpux11.h:
10809 * s/netbsd.h:
10810 * s/sol2-3.h:
10811 * s/sol2-4.h:
10812 * s/sol2.h:
10813 * s/usg5-4.h:
10814 * s/vms.h: Remove references to unused variables.
10815
10816 2008-07-10 Andreas Schwab <schwab@suse.de>
10817
10818 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
10819 pattern before matching the generic family.
10820
10821 2008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
10822
10823 * unexec.c:
10824 * s/vms.h:
10825 * s/usg5-4-2.h:
10826 * s/sol2-5.h:
10827 * s/freebsd.h:
10828 * s/darwin.h: Remove dead code.
10829
10830 * m/template.h:
10831 * m/sparc.h:
10832 * m/mips.h:
10833 * m/m68k.h:
10834 * m/iris4d.h:
10835 * m/intel386.h:
10836 * m/ibms390x.h:
10837 * m/ibms390.h:
10838 * m/ia64.h:
10839 * m/hp800.h:
10840 * m/arm.h:
10841 * m/amdx86-64.h: Remove dead code and references to unused
10842 and compiler defined symbols.
10843
10844 * unexmips.c:
10845 * unexelf.c: Remove references to desupported systems.
10846
10847 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
10848
10849 * m/powermac.h: Remove boilerplate comments.
10850 (NO_REMAP): Remove unused definition.
10851
10852 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
10853 define them.
10854
10855 2008-07-10 Kenichi Handa <handa@m17n.org>
10856
10857 * xfont.c (xfont_open): Log the reason of failure.
10858
10859 2008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
10860
10861 * fontset.c (fontset_get_font_group):
10862 * font.c (font_check_otf): Specify argument types.
10863
10864 2008-07-09 Kenichi Handa <handa@m17n.org>
10865
10866 * coding.c (detect_coding_utf_8): Set detect_info->found only when
10867 non-ASCII char is found.
10868
10869 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
10870 (reorder_font_vector): Change the arg preferred_family to font.
10871 Prefer the spec matching with font.
10872 (fontset_get_font_group): New function.
10873 (fontset_find_font): Change the format of an element of a realized
10874 fontset. Use fontset_get_font_group.
10875 (fontset_font): Try the current fontset, the default fontset, the
10876 fallbacks of the current fontset, and the fallbacks of the default
10877 fontset in this order.
10878 (face_for_char): Delete the shortcut to use the current font.
10879 (fontset_from_font): Don't set fonts for Latin in the fontset.
10880
10881 * font.h (font_make_object, font_match_p): Adjust prototypes.
10882
10883 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
10884
10885 * font.c (font_make_object): New arg entity and pixelsize.
10886 (font_check_otf_features, font_check_otf): New functions.
10887 (font_match_p): Check :lang, :script, and :otf properties.
10888
10889 * xfont.c (xfont_open): Adjust it for the change of
10890 font_make_object.
10891 (xfont_text_extents): Fix initial setting of metrics.
10892
10893 * ftfont.c (struct ftfont_info): New member index, delete member
10894 fc_charset_idx. Make the member order compatible with struct
10895 xftfont_info.
10896 (fc_charset_table): Change charset names to registry names.
10897 (ftfont_pattern_entity): Delete the args registry and
10898 fc_charset_idx. Change the value of :font-entity property
10899 to (FONTNAME . INDEX). Always set :registry property to
10900 `iso10646-1'.
10901 (struct ftfont_cache_data): New struct.
10902 (ftfont_lookup_cache): New arg for_face.
10903 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
10904 (ftfont_driver): Set the member otf_capability.
10905 (ftfont_get_charset): Adjust it for the change of
10906 fc_charset_table.
10907 (OTF_TAG_SYM): New macro.
10908 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
10909 for the change of fc_charset_table.
10910 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
10911 ftfont_pattern_entity. Add FC_INDEX to objset.
10912 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
10913 and ftfont_pattern_entity.
10914 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
10915 font_make_object, struct ftfont_info.
10916 (ftfont_has_char): Use ftfont_get_fc_charset.
10917 (ftfont_otf_features, ftfont_otf_capability): New functions.
10918 (ftfont_shape): Use ftfont_get_otf.
10919 (ftfont_text_extents): Fix initial setting of metrics.
10920
10921 * xftfont.c (struct xftfont_info): New member ft_size. Make the
10922 member order compatible with struct ftfont_info.
10923 (xftfont_open): Add FC_CHARSET to the pattern. Set
10924 xftfont_info->ft_size. Don't unlock the face. Check BDF
10925 properties if appropriate.
10926 (xftfont_close): Unlock the face.
10927 (xftfont_anchor_point, xftfont_shape): Deleted.
10928 (syms_of_xftfont): Don't set members anchor_point and shape of
10929 xftfont_driver.
10930
10931 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
10932 font_make_object.
10933
10934 * w32font.c (w32font_open): Adjust it for the change of
10935 font_make_object.
10936 (w32font_open_internal): Don't set properties of font_object here.
10937
10938 2008-07-08 Chong Yidong <cyd@stupidchicken.com>
10939
10940 * macfns.c (x_create_tip_frame):
10941 * w32fns.c (x_create_tip_frame):
10942 * xfns.c (x_create_tip_frame): Pass parameter argument to
10943 face-set-after-frame-default.
10944
10945 * xfaces.c (Finternal_merge_in_global_face): Save merged
10946 attributes for the default face back into the face vector.
10947
10948 2008-07-08 Andreas Schwab <schwab@suse.de>
10949
10950 * fontset.h: Declare fontset_from_font. Don't declare
10951 new_fontset_from_font and fontset_from_font_name.
10952 * xterm.c: Include "fontset.h".
10953 * Makefile.in (xterm.o): Update dependencies.
10954
10955 2008-07-08 Glenn Morris <rgm@gnu.org>
10956
10957 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
10958 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
10959
10960 2008-07-07 Chong Yidong <cyd@stupidchicken.com>
10961
10962 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
10963 (x_set_frame_parameters): Don't bind it.
10964
10965 2008-07-07 Juanma Barranquero <lekktu@gmail.com>
10966
10967 * w32fns.c (map_w32_filename): Declare extern.
10968
10969 2008-07-07 Jason Rumney <jasonr@gnu.org>
10970
10971 * w32term.c (WS_EX_LAYERED): Define if not already.
10972
10973 2008-07-06 Chong Yidong <cyd@stupidchicken.com>
10974
10975 * xfaces.c (set_font_frame_param): Don't try to set the font
10976 parameter if it is still unspecified in the lface.
10977
10978 2008-07-05 Chong Yidong <cyd@stupidchicken.com>
10979
10980 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
10981 face if it didn't already exist.
10982
10983 * xdisp.c (try_window_id): Give up if word-wrapping is on.
10984
10985 2008-07-05 Andreas Schwab <schwab@suse.de>
10986
10987 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
10988
10989 2008-07-05 Chong Yidong <cyd@stupidchicken.com>
10990
10991 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
10992 word-wrapping.
10993 (IT_DISPLAYING_WHITESPACE): New macro.
10994 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
10995 when word-wrapping. Simplify word-wrapping logic. Use correct
10996 pixel positions when saving copies of the iterator.
10997 (display_line): Use proper wrap point if the last character on a
10998 line was preceded by whitespace.
10999
11000 2008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
11001
11002 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
11003
11004 2008-07-04 Kenichi Handa <handa@m17n.org>
11005
11006 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
11007
11008 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
11009
11010 2008-07-02 Jason Rumney <jasonr@gnu.org>
11011
11012 * xfns.c (syms_of_xfns): Only define x-select-font when both
11013 HAVE_FREETYPE and USE_GTK.
11014
11015 * xdisp.c (next_element_from_display_vector): Move assignment out
11016 of if statement.
11017
11018 2008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
11019
11020 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
11021
11022 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
11023 (syms_of_fileio): Initialize and export them.
11024 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
11025
11026 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
11027 (Fsystem_move_file_to_trash): New function.
11028 (syms_of_w32fns): Export it to lisp.
11029
11030 2008-07-01 Jason Rumney <jasonr@gnu.org>
11031
11032 * w32font.c (w32font_text_extents): Don't count overhang as part
11033 of width.
11034
11035 2008-06-30 Miles Bader <miles@gnu.org>
11036
11037 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
11038 Add `avoid_cursor_p' field.
11039
11040 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
11041 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
11042 (append_glyph, append_composite_glyph, produce_image_glyph)
11043 (append_stretch_glyph): Initialize avoid_cursor_p.
11044 (get_it_property): Rename from `get_line_height_property'.
11045 (x_produce_glyphs): Use get_it_property.
11046 (handle_line_prefix, push_display_prop): New functions.
11047 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
11048 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
11049 New variables.
11050 (syms_of_xdisp): Initialize them.
11051
11052 2008-06-30 Kenichi Handa <handa@m17n.org>
11053
11054 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
11055 XftDefaultSubstitute (they are called in XftFontMatch).
11056 (xftfont_open): Fix args to ftfont_font_format.
11057
11058 * ftfont.c (fc_charset_table): New member lang.
11059 (ftfont_resolve_generic_family): New arg pattern.
11060 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
11061 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
11062 (ftfont_open): Fix args to ftfont_font_format.
11063 (ftfont_font_format): New arg filename.
11064
11065 2008-06-30 Chong Yidong <cyd@stupidchicken.com>
11066
11067 * xfaces.c (Finternal_merge_in_global_face): If default face was
11068 modified, realize it again. Update the font face attribute.
11069
11070 2008-06-29 Jason Rumney <jasonr@gnu.org>
11071
11072 * w32term.c (x_set_frame_alpha): Fix logic.
11073
11074 2008-06-29 Kenichi Handa <handa@m17n.org>
11075
11076 * fontset.c (Finternal_char_font): Return font-object instead of
11077 font-name.
11078
11079 * composite.c (get_composition_id): Fix the width calculation for TAB.
11080
11081 2008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
11082
11083 * indent.c (Fvertical_motion): Properly handle float column arg.
11084
11085 2008-06-28 Jason Rumney <jasonr@gnu.org>
11086
11087 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
11088 (pfnSetLayeredWindowAttributes): New function pointer.
11089 (w32_initialize): Initialize it when supported.
11090 (x_set_frame_alpha): New function.
11091
11092 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
11093 (w32_frame_parm_handlers): Set alpha handler.
11094
11095 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
11096
11097 2008-06-27 Jason Rumney <jasonr@gnu.org>
11098
11099 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
11100 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
11101 (w32_to_x_charset, x_to_w32_charset)
11102 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
11103 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
11104 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
11105 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
11106 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
11107 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
11108 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
11109 (Qw32_charset_unicode): Remove.
11110 (syms_of_w32fns): Update for above changes.
11111
11112 * w32font.c (w32_to_x_charset, x_to_w32_charset)
11113 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
11114 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
11115 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
11116 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
11117 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
11118 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
11119 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
11120 (syms_of_w32font): Update for above changes.
11121
11122 2008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
11123
11124 * s/usg5-4.h: Fix previous change: keep the correct branch of a
11125 removed #if.
11126 (USG_SHARED_LIBRARIES): Remove duplicate definition.
11127
11128 2008-06-26 Juanma Barranquero <lekktu@gmail.com>
11129 Eli Zaretskii <eliz@gnu.org>
11130
11131 * makefile.w32-in (LOCAL_FLAGS):
11132 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
11133
11134 * sysdep.c (_spawnlp, _getpid):
11135 Declare with explicit _cdecl instead of _CRTAPI1.
11136
11137 * editfns.c (Fget_internal_run_time):
11138 Check for WINDOWSNT with #ifdef, not #if.
11139
11140 2008-06-26 Jason Rumney <jasonr@gnu.org>
11141
11142 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
11143
11144 * w32term.c (x_draw_glyph_string_foreground)
11145 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
11146 Use FONT_HANDLE macro.
11147 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
11148
11149 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
11150 (uniscribe_encode_char): Use FONT_HANDLE macro.
11151
11152 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
11153 (w32font_text_extents): Use precast w32_font.
11154 (w32font_close): Free cached metrics.
11155 (w32font_open_internal): Allocate space for name on stack.
11156
11157 2008-06-26 Chong Yidong <cyd@stupidchicken.com>
11158
11159 * xdisp.c (extend_face_to_end_of_line): Fix last change.
11160
11161 2008-06-26 Jason Rumney <jasonr@gnu.org>
11162
11163 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
11164 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
11165
11166 2008-06-26 Juanma Barranquero <lekktu@gmail.com>
11167
11168 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
11169
11170 2008-06-26 Jason Rumney <jasonr@gnu.org>
11171
11172 * w32bdf.c, w32bdf.h: Remove obsolete files.
11173
11174 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
11175
11176 * w32gui.h: Don't include w32bdf.h.
11177 (XCharStruct, enum w32_char_font_type, W32FontStruct):
11178 Remove obsolete font support.
11179
11180 * w32font.h (struct w32font_info): Remove compat_w32_font.
11181 Add hfont member.
11182 (FONT_COMPAT): Remove obsolete macro.
11183
11184 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
11185 (w32font_encode_char, w32font_text_extents): Use new hfont member.
11186 (w32font_open_internal): Remove compat code. Set new hfont member.
11187 (Fx_select_font): Use new hfont member.
11188
11189 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
11190 (uniscribe_encode_char): Use new hfont member.
11191
11192 * w32term.c (x_draw_glyph_string_foreground)
11193 (x_draw_composite_glyph_string_foreground): Use new hfont member.
11194 (x_draw_glyph_string): Use metrics in w32font_info.
11195
11196 2008-06-26 Kenichi Handa <handa@m17n.org>
11197
11198 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
11199
11200 2008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
11201
11202 * unexnext.c:
11203 * m/ews4800.h:
11204 * m/hp9000s300.h:
11205 * m/ibm370aix.h:
11206 * m/mips-siemens.h:
11207 * m/ncr386.h:
11208 * m/next.h:
11209 * m/pmax.h:
11210 * m/powerpcle.h:
11211 * m/tandem-s2.h:
11212 * s/386bsd.h:
11213 * s/bsd386.h:
11214 * s/bsd4-1.h:
11215 * s/bsd4-2.h:
11216 * s/bsdos2-1.h:
11217 * s/bsdos2.h:
11218 * s/bsdos3.h:
11219 * s/bsdos4.h:
11220 * s/nextstep.h:
11221 * s/ultrix4-3.h:
11222 * s/usg5-0.h:
11223 * s/usg5-2-2.h:
11224 * s/usg5-2.h:
11225 * s/usg5-4-3.h:
11226 * s/ux4800.h:
11227 * s/uxpds.h:
11228 * s/uxpv.h: Remove support for obsolete systems.
11229 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
11230 Remove, insert contents in s/hpux10-20.h.
11231 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
11232 Remove, insert contents in s/aix4-2.h.
11233 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
11234 * s/bsd4-3.h: Rename to ...
11235 * s/bsd-common.h: ... this.
11236 * data.c:
11237 * doc.c:
11238 * ecrt0.c:
11239 * emacs.c:
11240 * fileio.c:
11241 * floatfns.c:
11242 * keyboard.c:
11243 * mem-limits.h:
11244 * print.c:
11245 * process.c:
11246 * sysdep.c:
11247 * syssignal.h:
11248 * systty.h:
11249 * syswait.h:
11250 * term.c:
11251 * unexec.c:
11252 * unexelf.c:
11253 * unexhp9k800.c:
11254 * m/hp800.h:
11255 * m/ibmrs6000.h:
11256 * m/mips.h:
11257 * m/vax.h:
11258 * s/darwin.h:
11259 * s/freebsd.h:
11260 * s/gnu.h:
11261 * s/ms-w32.h:
11262 * s/msdos.h:
11263 * s/netbsd.h:
11264 * s/template.h: Remove references to obsolete variables.
11265
11266 * Makefile.in: Add dependencies for all unexec files.
11267 (admindir): Remove unused variable.
11268 (UNEXEC_SRC): Remove references.
11269
11270 2008-06-25 Chong Yidong <cyd@stupidchicken.com>
11271
11272 * xfns.c (x_default_font_parameter): If Xft is available, first
11273 try Monospace-12 for the default font.
11274
11275 2008-06-25 Jason Rumney <jasonr@gnu.org>
11276
11277 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
11278
11279 2008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
11280
11281 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
11282
11283 * buffer.c (syms_of_buffer): Remove default-word-wrap.
11284
11285 2008-06-25 Juanma Barranquero <lekktu@gmail.com>
11286
11287 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
11288 <scroll-conservatively>: Fix typo in docstring.
11289
11290 * xselect.c (Fx_send_client_event): Doc fix.
11291
11292 2008-06-25 Kenichi Handa <handa@m17n.org>
11293
11294 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
11295
11296 * font.c (font_parse_fcname): Remove unused variables.
11297 (font_sort_entites): Delete the arg SPEC. Caller changed.
11298 Fix for the case of ! best_only.
11299 (font_delete_unmatched): Check DPI and AVGWIDTH too.
11300
11301 * lisp.h (Fstring_to_unibyte): EXFUN it.
11302
11303 * character.h (str_to_unibyte): Extern it.
11304
11305 * character.c (str_to_unibyte): New function.
11306
11307 * fns.c (Fstring_to_unibyte): New function.
11308 (syms_of_fns): Defsubr it.
11309
11310 2008-06-24 Kenichi Handa <handa@m17n.org>
11311
11312 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
11313 DPI too.
11314 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
11315
11316 2008-06-24 Andreas Schwab <schwab@suse.de>
11317
11318 * Makefile.in (${lispsource}loaddefs.el): Rename from
11319 ../lisp/loaddefs.el.
11320 (bootstrap-clean): Do what distclean does but don't remove
11321 Makefile.
11322 (distclean): Depend on bootstrap-clean and remove Makefile.
11323
11324 2008-06-24 Chong Yidong <cyd@stupidchicken.com>
11325
11326 * buffer.h (struct buffer): New member word_wrap.
11327
11328 * buffer.c (syms_of_buffer): New variables default-word-wrap and
11329 word-wrap.
11330 (init_buffer_once): Initialize them.
11331
11332 * dispextern.h (struct it): Replace bool truncate_lines_p with a
11333 line_wrap enum possessing three possible values.
11334
11335 * termopts.h: Replace truncate_partial_width_windows with
11336 Vtruncate_partial_width_windows.
11337
11338 * dispnew.c (direct_output_for_insert): Avoid direct output when
11339 inserting a space with word wrap on.
11340
11341 * indent.c (compute_motion): Obey integer values of
11342 truncate-partial-width-windows.
11343
11344 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
11345 replacing truncate_partial_width_windows.
11346 (init_iterator): If Vtruncate_partial_width_windows is an integer,
11347 truncate only if the window width is below that integer.
11348 (start_display, resize_mini_window, produce_stretch_glyph)
11349 (display_string, move_it_in_display_line_to): Use line_wrap.
11350 (back_to_previous_visible_line_start, reseat_1): Reset
11351 string_from_display_prop_p.
11352 (display_line): Extend default face to end of line when wrapping.
11353
11354 2008-06-24 Kim F. Storm <storm@cua.dk>
11355
11356 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
11357 to wrap continued lines at word boundaries.
11358
11359 2008-06-24 Jason Rumney <jasonr@gnu.org>
11360
11361 * font.c (Ffont_face_attributes): Multiply pixel size before point
11362 conversion to avoid multiplying rounding error.
11363
11364 2008-06-23 Jason Rumney <jasonr@gnu.org>
11365
11366 * w32term.c (x_draw_glyph_string_background)
11367 (x_draw_glyph_string): Remove old bdf font code.
11368
11369 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
11370
11371 2008-06-22 Kenichi Handa <handa@m17n.org>
11372
11373 * font.c (font_find_for_lface): Try the adstyle specified in
11374 the property of LFACE_FONT of LFACE (if any).
11375
11376 2008-06-21 Seiji Zenitani <zenitani@mac.com>
11377 Ryo Yoshitake <ryo@shiftmode.net>
11378
11379 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
11380
11381 2008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
11382
11383 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
11384 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
11385 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
11386 (witness-emacs): Remove.
11387 (lisp, shortlisp): Move loaddefs.el earlier.
11388 (mostlyclean): Forget about witness-emacs.
11389
11390 2008-06-22 Glenn Morris <rgm@gnu.org>
11391
11392 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
11393 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
11394
11395 2008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
11396
11397 * Makefile.in (PRECOMP): Remove.
11398 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
11399 (witness-emacs): Run `compile-first'.
11400 (.el.elc): Use the new compile-onefile target.
11401
11402 2008-06-21 Kenichi Handa <handa@m17n.org>
11403
11404 * xftfont.c (xftfont_open): Handle QCembolden only when
11405 FC_EMBOLDEN is defined.
11406
11407 2008-06-21 Andreas Schwab <schwab@suse.de>
11408
11409 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
11410 (.el.elc): Likewise.
11411
11412 2008-06-21 Miles Bader <miles@gnu.org>
11413
11414 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
11415 build dir, not the lisp source dir.
11416
11417 2008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
11418
11419 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
11420 (bootstrapclean): Remove.
11421 (.el.elc): New rule.
11422 (PRECOMP): New var.
11423 (../lisp/subdirs.el): Remove.
11424 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
11425 (witness-emacs): New target.
11426 (mostlyclean): Remove witness-emacs as well.
11427 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
11428 Add witness-emacs dependency.
11429
11430 2008-06-20 Chong Yidong <cyd@stupidchicken.com>
11431
11432 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
11433 defined by the font.
11434
11435 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
11436
11437 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
11438 (bootstrap-clean): New target that keeps TAGS around.
11439 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
11440 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
11441
11442 2008-06-20 Jason Rumney <jasonr@gnu.org>
11443
11444 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
11445 Remove obsolete font code.
11446
11447 * w32font.c (font_matches_spec): Use csb bitfield from font signature
11448 to determine language support.
11449
11450 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
11451
11452 * sysdep.c (cfsetspeed): New fun extracted from the code.
11453 (cfmakeraw): Move before first use.
11454
11455 2008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
11456
11457 * sysdep.c (cfmakeraw): Provide fallback implementation.
11458 (serial_configure): Provide fallback implementation of cfsetspeed.
11459
11460 2008-06-20 Kenichi Handa <handa@m17n.org>
11461
11462 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
11463 the pattern.
11464
11465 * fontset.c (fontset_from_font): Copy font_spec before changing
11466 the elements.
11467
11468 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
11469
11470 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
11471
11472 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
11473 for explicit `font' parameters.
11474
11475 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
11476
11477 2008-06-19 Kenichi Handa <handa@m17n.org>
11478
11479 * frame.c: Include <ctype.h>.
11480 (x_set_font_backend): Allow spacing characters in the X resource
11481 for FontBackend.
11482
11483 2008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
11484
11485 * w32fns.c, xfns.c (Qfont_param): New var.
11486 (syms_of_w32fns): Initialize it.
11487 (x_default_font_parameter): Record explicit `font' into
11488 `font-parameter'.
11489
11490 2008-06-18 Kenichi Handa <handa@m17n.org>
11491
11492 * font.c (font_parse_xlfd): Fix previous change.
11493 (font_parse_fcname): Don't use :fc-unknown-spec.
11494 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
11495 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
11496 (font_add_log): Prepend the driver name to the resulting fonts.
11497
11498 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
11499 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
11500 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
11501
11502 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
11503 (QCembolden): New variables.
11504 (syms_of_xftfont): DEFSYM them.
11505 (xftfont_open): Call XftFontMatch. Don't trust the result of
11506 XftTextExtents8 if the pixel_size is less than 5.
11507
11508 2008-06-18 Andreas Schwab <schwab@suse.de>
11509
11510 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
11511 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
11512
11513 2008-06-18 Jason Rumney <jasonr@gnu.org>
11514
11515 * w32font.c (w32font_list, w32font_match): Add logging.
11516
11517 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
11518
11519 2008-06-17 Chong Yidong <cyd@stupidchicken.com>
11520
11521 * font.c (font_parse_fcname): Store divider characters for
11522 unknown-spec list. For known key symbols, intern using correct
11523 symbol name.
11524
11525 2008-06-17 Kenichi Handa <handa@m17n.org>
11526
11527 * xfaces.c (realize_default_face): If the frame is not on window
11528 system, set the fontset of face to nil.
11529
11530 2008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
11531
11532 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
11533
11534 2008-06-16 Juanma Barranquero <lekktu@gmail.com>
11535
11536 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
11537 (build_font_name_from_vector): Delete externs.
11538
11539 * xfaces.c (struct font_name): Don't declare.
11540
11541 2008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
11542
11543 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
11544
11545 2008-06-16 Chong Yidong <cyd@stupidchicken.com>
11546
11547 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
11548
11549 2008-06-16 Juanma Barranquero <lekktu@gmail.com>
11550
11551 * font.c (Ffont_spec): Fix usage in docstring.
11552 (Ffont_face_attributes): Doc fix.
11553
11554 2008-06-16 Andreas Schwab <schwab@suse.de>
11555
11556 * font.c (Ffont_face_attributes): Fix definition.
11557
11558 2008-06-16 Jason Rumney <jasonr@gnu.org>
11559
11560 * font.h (font_style_symbolic_from_value): Remove.
11561
11562 * font.c (font_style_symbolic_from_value): Remove.
11563 (font_style_symbolic): Revert to pre 2008-06-13 version.
11564
11565 * w32font.c (w32_to_fc_weight): New function.
11566 (w32font_full_name, logfont_to_fcname): Use it.
11567
11568 2008-06-16 Kenichi Handa <handa@m17n.org>
11569
11570 * font.c (font_check_object): Delete it.
11571 (font_clear_cache): Check if a font-object is alive.
11572 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
11573 font-object to nil.
11574 (font_close_object): Don't check FONT_CLOSE_OBJECT.
11575 (font_at): Don't call font_check_object.
11576 (Ffont_get): Return a symbol for :weight, :slant, and :width.
11577
11578 2008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
11579
11580 * puresize.h (BASE_PURESIZE): Increase to 1230000.
11581
11582 2008-06-16 Chong Yidong <cyd@stupidchicken.com>
11583
11584 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
11585
11586 2008-06-15 Chong Yidong <cyd@stupidchicken.com>
11587
11588 * font.c (font_parse_fcname): Only one decimal point.
11589 (font_unparse_fcname): Handle data in family and foundry indices
11590 as symbols, not strings.
11591 (font_unparse_gtkname, Ffont_face_attributes): New functions.
11592
11593 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
11594
11595 * font.h (font_unparse_gtkname): Add prototype.
11596
11597 2008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
11598
11599 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
11600
11601 2008-06-15 Andreas Schwab <schwab@suse.de>
11602
11603 * font.c (font_update_drivers): Fix crash when no drivers match.
11604
11605 2008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
11606
11607 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
11608 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
11609
11610 2008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
11611
11612 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
11613
11614 2008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
11615
11616 * process.c (Fserial_process_configure, Fprocess_send_eof):
11617 Use EQ to compare Lisp_Objects.
11618
11619 2008-06-13 Jason Rumney <jasonr@gnu.org>
11620
11621 * w32fns.c (Fw32_select_font): Remove old font API function.
11622
11623 * w32font.c (logfont_to_fcname): New function.
11624 (Fx_select_font): New font dialog function compatible with
11625 GTK/fontconfig version.
11626
11627 * font.c (font_style_symbolic_from_value): New function.
11628 (font_style_symbolic): Use it.
11629
11630 * font.h (font_style_symbolic_from_value): Declare new function.
11631
11632 2008-06-13 Juanma Barranquero <lekktu@gmail.com>
11633
11634 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
11635 <font-width-table>: Fix typos in docstrings.
11636
11637 2008-06-13 Daniel Engeler <engeler@gmail.com>
11638
11639 These changes add serial port access.
11640 * process.c: Add HAVE_SERIAL.
11641 (Fdelete_process, Fprocess_status, Fset_process_buffer)
11642 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
11643 (list_processes_1, select_wrapper, Fstop_process)
11644 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
11645 (status_notify): Modify to handle serial processes.
11646 [HAVE_SERIAL] (Fserial_process_configure)
11647 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
11648 New functions.
11649 * process.h (struct Lisp_Process): Add `type'.
11650 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
11651 New functions.
11652 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
11653 serial ports.
11654 (serial_open, serial_configure): New functions.
11655 * w32.h: Add FILE_SERIAL.
11656 (struct _child_process): Add ovl_read, ovl_write.
11657
11658 2008-06-13 Kenichi Handa <handa@m17n.org>
11659
11660 * dispextern.h (enum lface_attribute_index): New member
11661 LFACE_FOUNDRY_INDEX.
11662
11663 * font.c (font_score): Delete arg alternate_families. Check only
11664 weight, slant, width, and size. Ignore the difference of alias
11665 style symbols.
11666 (font_sort_entites): Adjust for the above change. Reflect the
11667 order of font-driver to scores.
11668 (font_list_entities): Don't check alternate_familes here.
11669 (font_clear_prop): Handle foundry.
11670 (font_update_lface): Don't parse "foundry-family" form here.
11671 Handle FONT_FOUNDRY_INDEX.
11672 (font_find_for_lface): Likewise. Handle alternate families here.
11673 If registry is nil, try iso8859-1 and ascii-0.
11674 (font_open_for_lface): Pay attention to size in ENTITY.
11675 (font_open_by_name): Simplify by calling font_load_for_lface.
11676 (free_font_driver_list): Delete it.
11677 (font_update_drivers): Preserve the order of backends.
11678 (syms_of_font): Setting of sort_shift_bits adjusted for the change
11679 of font_score and font_sort_entites.
11680 (font_update_sort_order): Likewise.
11681
11682 * xfaces.c (LFACE_FOUNDRY): New macro.
11683 (check_lface_attrs): Check foundry.
11684 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
11685 (merge_face_vectors): Check foundry.
11686 (merge_face_ref): Likewise.
11687 (Finternal_set_lisp_face_attribute): Likewise.
11688 (x_update_menu_appearance): Likewise.
11689 (Finternal_get_lisp_face_attribute): Likewise.
11690 (lface_hash): Likewise.
11691 (lface_same_font_attributes_p): Likewise.
11692 (x_supports_face_attributes_p): Likewise.
11693 (tty_supports_face_attributes_p): Likewise.
11694 (Finternal_set_alternative_font_family_alist): Intern strings.
11695 (Finternal_set_alternative_font_registry_alist): Downcase strings.
11696 (realize_default_face): Set LFACE_FOUNDRY (lface).
11697
11698 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
11699 font-driver at first.
11700
11701 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
11702
11703 2008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
11704
11705 * lread.c (Fload): Use xfree, not free on saved_doc_string.
11706
11707 2008-06-12 Jim Meyering <meyering@redhat.com>
11708
11709 Make unexec_free handle NULL the same way free does.
11710 * unexmacosx.c (unexec_free): Ignore a NULL argument.
11711
11712 2008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
11713
11714 * character.h (CHAR_TO_BYTE_SAFE): New macro.
11715 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
11716 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
11717 (WEAK_ALIAS): Simplify.
11718 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
11719 when searching a unibyte buffer.
11720
11721 2008-06-12 Chong Yidong <cyd@stupidchicken.com>
11722
11723 * xfns.c (Fx_select_font): Rename from x-font-dialog.
11724
11725 2008-06-12 Juanma Barranquero <lekktu@gmail.com>
11726
11727 * w32font.c: Include ctype.h.
11728
11729 2008-06-11 Jason Rumney <jasonr@gnu.org>
11730
11731 * w32font.c (w32font_encode_char): Detect missing glyphs that are
11732 misreported as space.
11733 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
11734 as aliases for registry iso10646-1.
11735
11736 2008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
11737
11738 * buffer.c (clone_per_buffer_values): Skip `name'.
11739
11740 2008-06-11 Chong Yidong <cyd@stupidchicken.com>
11741
11742 * font.c (font_parse_fcname): Fix last change; accept decimal
11743 points in font size.
11744
11745 2008-06-10 Jason Rumney <jasonr@gnu.org>
11746
11747 * w32uniscribe.c (add_opentype_font_name_to_list):
11748 Skip non unicode fonts.
11749
11750 2008-06-10 Chong Yidong <cyd@stupidchicken.com>
11751
11752 * xfns.c (Fx_font_dialog): New function.
11753
11754 * gtkutil.c (xg_dialog_response_cb): Rename from
11755 xg_file_response_callback.
11756 (pop_down_dialog): Rename from pop_down_file_dialog.
11757 (xg_get_file_name): Callers changed.
11758 (xg_get_font_name): New function.
11759
11760 * gtkutil.h (xg_get_font_name): Insert prototype.
11761
11762 2008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
11763
11764 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
11765 x_underline_minimum_display_offset.
11766 (syms_of_xdisp): Declare it here rather than in xterm.c.
11767 * dispextern.h (underline_minimum_offset): Declare it.
11768 * w32term.c (x_draw_glyph_string): Use it.
11769 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
11770 (syms_of_xterm): Don't declare it any more.
11771 (x_draw_glyph_string): Adjust to the new name.
11772
11773 2008-06-10 David De La Harpe Golden <david@harpegolden.net>
11774
11775 * xterm.c (x_underline_minimum_display_offset): New var.
11776 (x_draw_glyph_string): Use it.
11777 (syms_of_xterm): Declare it.
11778
11779 2008-06-10 Chong Yidong <cyd@stupidchicken.com>
11780
11781 * font.c (font_parse_fcname): Accept GTK-style font names too.
11782
11783 2008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
11784
11785 * dired.c (file_name_completion): Don't return t if the match is exact
11786 but with different capitalization.
11787 * minibuf.c (Ftry_completion): Simplify.
11788
11789 * window.c (Vwindow_point_insertion_type): New var.
11790 (set_window_buffer): Use it.
11791 (syms_of_window): Init and export it to Lisp.
11792
11793 2008-06-10 Kenichi Handa <handa@m17n.org>
11794
11795 * font.h (font_intern_prop): Prototype adjusted.
11796
11797 * font.c (font_intern_prop): New arg force_symbol.
11798 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
11799 Adjust for the change of font_intern_prop.
11800
11801 * ftfont.c (ftfont_pattern_entity):
11802 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
11803 (w32_registry):
11804 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
11805 the change of font_intern_prop.
11806
11807 2008-06-09 Juanma Barranquero <lekktu@gmail.com>
11808
11809 * w32menu.c (digest_single_submenu): Declare extern.
11810
11811 2008-06-09 Jason Rumney <jasonr@gnu.org>
11812
11813 * w32term.c (x_make_frame_visible): Use alternate restore flags.
11814
11815 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
11816 (parse_single_submenu): Remove.
11817 (digest_single_submenu): Remove.
11818 (syms_of_w32menu): Don't initialise variables that have moved
11819 to menu.c.
11820 (set_frame_menubar): Sync with version in xmenu.c.
11821 (w32_menu_show): Sync with xmenu_show in xmenu.c.
11822
11823 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
11824 Make static again.
11825
11826 2008-06-09 Jason Rumney <jasonr@gnu.org>
11827
11828 Changes to w32 files related to the move of common menu code
11829 to menu.c on 2008-06-08 by Chong Yidong.
11830
11831 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
11832 defs to w32gui.h.
11833 (single_keymap_panes, push_menu_item, push_menu_pane):
11834 Make globally visible.
11835
11836 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
11837 (local_free, malloc_widget_value, free_widget_value)
11838 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
11839 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
11840 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
11841 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
11842 (menu_items, menu_items_allocated, menu_items_used)
11843 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
11844 (init_menu_items, finish_menu_items, discard_menu_items)
11845 (grow_menu_items, push_submenu_start, push_submenu_end)
11846 (push_left_right_boundary, push_menu_pane, push_menu_item)
11847 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
11848 (free_menubar_widget_tree_value, parse_single_submenu)
11849 (update_submenu_strings): Remove functions.
11850 (xmalloc_widget_value): Remove and declare extern.
11851
11852 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
11853 (OBJ1): Build it.
11854
11855 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
11856 (local_heap, local_alloc, local_free, malloc_widget_value)
11857 (free_widget_value): Define here.
11858
11859 2008-06-09 Kenichi Handa <handa@m17n.org>
11860
11861 * font.h (Qascii_0): Extern it.
11862
11863 * font.c (Qascii_0): New variable.
11864 (syms_of_font): DEFSYM it.
11865 (font_open_by_name): If the registry "iso8859-1" fails, try also
11866 "ascii-0".
11867
11868 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
11869
11870 2008-06-08 Kenichi Handa <handa@m17n.org>
11871
11872 * .gdbinit (xfont): New command.
11873
11874 2008-06-08 Andreas Schwab <schwab@suse.de>
11875
11876 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
11877 * Makefile.in (menu.o): Update dependencies.
11878
11879 * Makefile.in (obj): Always add menu.o.
11880 * emacs.c (main): Always call syms_of_menu.
11881 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
11882
11883 2008-06-08 Chong Yidong <cyd@stupidchicken.com>
11884
11885 * Makefile.in: Compile menu.c.
11886
11887 * lisp.h: Declare syms_of_menu.
11888
11889 * emacs.c (main): Call syms_of_menu.
11890
11891 * keyboard.h: Relocate platform-independent menu definitions from
11892 xmenu.c.
11893
11894 * menu.c: New file. Relocate platform-independent menu
11895 definitions from xmenu.c. Suggested by Adrian Robert.
11896
11897 * xmenu.c: Remove platform-independent menu definitions.
11898 (menu_items, menu_items_inuse, menu_items_allocated)
11899 (menu_items_used, menu_items_n_panes)
11900 (menu_items_submenu_depth): Move to keyboard.h.
11901 (init_menu_items, finish_menu_items, unuse_menu_items)
11902 (discard_menu_items, restore_menu_items, save_menu_items)
11903 (grow_menu_items, push_submenu_start, push_submenu_end)
11904 (push_left_right_boundary, push_menu_pane, push_menu_item)
11905 (keymap_panes, single_keymap_panes, single_menu_item)
11906 (list_of_panes, list_of_items, find_and_call_menu_selection)
11907 (xmalloc_widget_value, free_menubar_widget_value_tree)
11908 (parse_single_submenu, digest_single_submenu)
11909 (update_submenu_strings): Move to menu.c.
11910
11911 2008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
11912
11913 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
11914
11915 2008-06-06 Miles Bader <miles@gnu.org>
11916
11917 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
11918 face, not frame default.
11919
11920 2008-06-05 Martin Rudalics <rudalics@gmx.at>
11921
11922 * window.c (pop_up_windows, pop_up_frames)
11923 (display_buffer_reuse_frames, Vpop_up_frame_function)
11924 (Vdisplay_buffer_function, Veven_window_heights)
11925 (Vspecial_display_buffer_names, Vspecial_display_regexps)
11926 (Vspecial_display_function, Vsame_window_buffer_names)
11927 (Vsame_window_regexps, split_height_threshold)
11928 (Vsplit_window_preferred_function): Move those vars to window.el.
11929 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
11930 (Fdisplay_buffer): Move those functions to window.el.
11931 (syms_of_window): Remove corresponding declarations.
11932 (display_buffer): New function.
11933 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
11934 * dispnew.c (Flast_nonminibuf_frame): New function.
11935 * buffer.c (Fpop_to_buffer): Move to window.el.
11936
11937 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
11938
11939 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
11940
11941 2008-06-05 Kenichi Handa <handa@m17n.org>
11942
11943 * coding.c (detect_coding): Fix previous change.
11944 (detect_coding_system): Likewise.
11945
11946 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
11947
11948 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
11949
11950 * keymap.c (Vminibuffer_local_filename_must_match_map):
11951 Rename from Vminibuffer_local_must_match_filename_map.
11952 (syms_of_keymap):
11953 * minibuf.c (Fcompleting_read): Adjust accordingly.
11954 * commands.h: Rename declaration as well.
11955
11956 2008-06-05 Kenichi Handa <handa@m17n.org>
11957
11958 * font.c (Ffont_spec): Don't use font_parse_family_registry for
11959 family name.
11960 (Ffont_put): Likewise.
11961
11962 * fontset.c (fontset_find_font): Call font_open_for_lface with the
11963 current font-spec.
11964
11965 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
11966 is unspecified.
11967
11968 * xfaces.c (realize_x_face): If the font-related face attributes
11969 are the same as those of default face, realize a new fontset from
11970 default->fontset.
11971 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
11972
11973 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
11974
11975 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
11976 (move_it_in_display_line): New wrapper.
11977
11978 * window.c (window_scroll_pixel_based_preserve_x)
11979 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
11980 (window_scroll_pixel_based, window_scroll_line_based):
11981 Use them to preserve column positions.
11982 (syms_of_window): Initialize them.
11983
11984 * indent.c (Fvertical_motion): Extend first arg to allow passing an
11985 (HPOS . VPOS) pair.
11986
11987 * dispextern.h (move_it_in_display_line): Declare.
11988
11989 2008-06-05 Juanma Barranquero <lekktu@gmail.com>
11990
11991 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
11992 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
11993 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
11994
11995 2008-06-04 Juanma Barranquero <lekktu@gmail.com>
11996
11997 * window.c (Fset_window_parameter): Doc fix.
11998 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
11999
12000 2008-06-04 Joakim Verona <joakim@verona.se>
12001
12002 * window.h (struct window): Add new member window_parameters.
12003
12004 * window.c (Fwindow_parameters, Fwindow_parameter)
12005 (Fset_window_parameter): New defuns.
12006 (syms_of_window): Defsubr the new defuns.
12007 (make_window): Initialize window_parameters to nil.
12008
12009 2008-06-04 John Paul Wallington <jpw@pobox.com>
12010
12011 * eval.c (Fdefmacro): Doc fix.
12012
12013 2008-06-04 Kenichi Handa <handa@m17n.org>
12014
12015 * coding.c (detect_coding): Fix handling of coding->head_ascii.
12016 Be sure to call setup_coding_system when we find a proper coding system.
12017 (detect_coding_system): Fix handling of coding->head_ascii.
12018
12019 2008-06-03 Andreas Schwab <schwab@suse.de>
12020
12021 * font.c (font_prop_validate_spacing): Fix last change.
12022
12023 2008-06-03 Kenichi Handa <handa@m17n.org>
12024
12025 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
12026 (font_parse_fcname): Fix handling of unknown key.
12027
12028 * xfont.c (xfont_list): Try an alias.
12029
12030 * charset.c (char_charset): Return NULL if the arg charset_list is
12031 specified and C doesn't belong to any of them.
12032
12033 2008-06-02 Chip Coldwell <coldwell@redhat.com>
12034
12035 * font.c (font_pixel_size): Don't take cdr of an integer.
12036
12037 2008-06-02 Jim Meyering <meyering@redhat.com>
12038
12039 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
12040 * alloc.c (xfree): Return right away for a NULL arg.
12041 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
12042 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
12043 * mac.c (create_apple_event_from_event_ref): Likewise.
12044 (create_apple_event_from_drag_ref, cfstring_create_normalized):
12045 Likewise.
12046 * doprnt.c (doprnt1): Likewise.
12047 * frame.c (frame): Likewise.
12048 * keyboard.c (wipe_kboard): Likewise.
12049 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
12050 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
12051 * term.c (tty_default_color_capabilities, maybe_fatal)
12052 (delete_tty): Likewise.
12053 * w16select.c (string): Likewise.
12054 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
12055 * w32bdf.c (w32_free_bdf_font): Likewise.
12056 * w32fns.c (w32_unload_font): Likewise.
12057 * w32font.c (w32font_close): Likewise.
12058 * window.c (size_window): Likewise.
12059 * xselect.c (receive_incremental_selection): Likewise.
12060 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
12061 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
12062 * w32.c (stat): Likewise.
12063
12064 Remove useless if-before-free tests.
12065 * editfns.c (Fset_time_zone_rule): Likewise.
12066 * lread.c (nosuffix): Likewise.
12067 * ralloc.c (get_bloc): Likewise.
12068 * regex.c (reg_free): Likewise.
12069 * xftfont.c (xftfont_open, xftfont_close): Likewise.
12070 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
12071 * xsmfns.c (smc_save_yourself_CB): Likewise.
12072
12073 2008-06-02 Kenichi Handa <handa@m17n.org>
12074
12075 * font.c (font_find_for_lface): Handle float font size.
12076 (font_open_for_lface): Likewise.
12077
12078 * xfaces.c (x_supports_face_attributes_p): Check face->font before
12079 comparing the properties.
12080
12081 2008-06-01 Jason Rumney <jasonr@gnu.org>
12082
12083 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
12084 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
12085 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
12086 Don't add empty script list.
12087 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
12088
12089 2008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
12090
12091 * Makefile.in (dot, dotdot): Remove, update users.
12092 ".." has been used elsewhere in the file for a long time.
12093 (LIBXT_STATIC): Remove conditional based on unused variable.
12094
12095 2008-06-01 Miles Bader <miles@gnu.org>
12096
12097 * xfaces.c (Vface_remapping_alist): New variable.
12098 (syms_of_xfaces): Initialize it.
12099 (enum named_merge_point_kind): New type.
12100 (struct named_merge_point): Add `named_merge_point_kind' field.
12101 (push_named_merge_point): Make cycle detection respect different
12102 named-merge-point kinds.
12103 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
12104 Remove face-name alias resolution.
12105 (lface_from_face_name): New definition using
12106 `lface_from_face_name_no_resolve'.
12107 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
12108 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
12109 (get_lface_attributes): New definition that layers face-remapping on
12110 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
12111 (lookup_basic_face): New function.
12112 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
12113 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
12114 `get_lface_attributes'.
12115 (face_at_buffer_position): Use `lookup_basic_face' to lookup
12116 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
12117 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
12118
12119 * xdisp.c (init_iterator): Pass base_face_id through
12120 `lookup_basic_face' when we actually use it as a face-id.
12121 (handle_single_display_prop): Use `lookup_basic_face' to lookup
12122 DEFAULT_FACE_ID.
12123
12124 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
12125 lookup the initial face-id.
12126
12127 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
12128
12129 2008-06-01 Juanma Barranquero <lekktu@gmail.com>
12130
12131 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
12132 (Fremove_text_properties): Fix typos in docstrings.
12133
12134 2008-05-31 Kenichi Handa <handa@m17n.org>
12135
12136 * font.c (font_list_entities): Fix the car part of data to be
12137 stored in the cache.
12138
12139 * ftfont.c (ftfont_font_format): Don't use strcasestr.
12140
12141 2008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
12142
12143 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
12144 Add a `test' argument so another predicate than `equal' can be used.
12145 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
12146 (map_char_table): Remove unused vars `c' and `i'.
12147 * lisp.h (Foptimize_char_table): Adjust declaration.
12148 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
12149
12150 2008-05-30 Kenichi Handa <handa@m17n.org>
12151
12152 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
12153 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
12154 defined.
12155
12156 2008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
12157
12158 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
12159 (Fmake_variable_frame_local): Disallow mixing buffer-local and
12160 frame-local settings for the same variable.
12161
12162 2008-05-30 Kenichi Handa <handa@m17n.org>
12163
12164 * fontset.c (Ffont_info): Move to font.c.
12165 (syms_of_fontset): Delete defsubr of Sfont_info.
12166
12167 * font.c (font_style_to_value, font_score): Delete casting of the
12168 args to xstcasecmp.
12169 (register_font_driver): Increment num_font_drivers only when
12170 registering the driver globally.
12171 (Ffont_info): Move from fontset.c. Handle a font object too.
12172 (syms_of_font): Defsubr Sfont_info.
12173
12174 2008-05-29 Kenichi Handa <handa@m17n.org>
12175
12176 * coding.h (enum define_coding_utf8_arg_index): New enum.
12177 (enum coding_attr_index): Change coding_attr_utf_16_bom to
12178 coding_attr_utf_bom.
12179 (enum utf_bom_type): Rename from utf_16_bom_type.
12180 (struct utf_16_spec): Adjust for the above change.
12181 (struct coding_system): Add utf_8_bom in `spec' union.
12182
12183 * coding.c (CODING_UTF_8_BOM): New macro.
12184 (enum coding_category): Delete coding_category_utf_8, add
12185 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
12186 coding_category_utf_8_sig.
12187 (CATEGORY_MASK_UTF_8): Delete it.
12188 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
12189 (CATEGORY_MASK_UTF_8_SIG): New macros.
12190 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
12191 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
12192 CATEGORY_MASK_UTF_8_SIG.
12193 (CATEGORY_MASK_UTF_8): New macro.
12194 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
12195 (detect_coding_utf_8): Check BOM.
12196 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
12197 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
12198 (encode_coding_utf_16): Likewise.
12199 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
12200 (detect_coding, detect_coding_system): Handle utf-8-auto.
12201 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
12202 (syms_of_coding): Fix setting up of Vcoding_category_table.
12203
12204 2008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
12205
12206 * process.c (Faccept_process_output): If `millisec' is non-nil,
12207 `seconds' default to 0.
12208 (wait_reading_process_output): Also return non-nil if we read output
12209 from a non-running process.
12210
12211 2008-05-29 Jason Rumney <jasonr@gnu.org>
12212
12213 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
12214 `raster' specified.
12215 (add_font_entity_to_list): Allow non-opentype truetype fonts back
12216 in the uniscribe backend, but disallow any font that has no
12217 unicode subrange support.
12218
12219 2008-05-29 Juanma Barranquero <lekktu@gmail.com>
12220
12221 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
12222 Fix typos in docstrings.
12223
12224 2008-05-29 Kenichi Handa <handa@m17n.org>
12225
12226 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
12227 (Fx_family_fonts): Set frame correctly.
12228
12229 2008-05-28 Jason Rumney <jasonr@gnu.org>
12230
12231 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
12232
12233 2008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
12234
12235 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
12236 calling build_annotations.
12237
12238 2008-05-28 Juanma Barranquero <lekktu@gmail.com>
12239
12240 * coding.c (Fdecode_coding_region, Fencode_coding_region)
12241 (Fencode_coding_string):
12242 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
12243 <latin-extra-code-table>: Fix typos in docstrings.
12244 (syms_of_coding) <coding-system-alist>: Doc fix.
12245 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
12246
12247 2008-05-28 Kenichi Handa <handa@m17n.org>
12248
12249 * fontset.c (Ffont_info): Don't call font_close_object.
12250
12251 * font.c (font_parse_family_registry): Use Ffont_put to validate
12252 foundry and family.
12253 (font_delete_unmatched): Don't check spacing.
12254 (font_list_entities): Add spacing to the spec to list fonts.
12255
12256 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
12257 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
12258
12259 * coding.c (encode_coding_raw_text): Fix previous change.
12260 (encode_coding_object): When the dst_object is a buffer and is
12261 different from src_object, move gap to PT.
12262
12263 2008-05-27 Chong Yidong <cyd@stupidchicken.com>
12264
12265 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
12266
12267 2008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
12268
12269 * coding.c (encode_coding_raw_text): Set coding->produced_char for
12270 all branches. Compute it differently.
12271
12272 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
12273
12274 2008-05-27 Juanma Barranquero <lekktu@gmail.com>
12275
12276 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
12277 into "else if () ... else ...".
12278
12279 2008-05-27 Jason Rumney <jasonr@gnu.org>
12280
12281 * w32font.c (w32font_open_internal): Determine if glyph indices
12282 are likely to work here.
12283
12284 2008-05-27 Chong Yidong <cyd@stupidchicken.com>
12285
12286 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
12287 draw overlap glyphs with appropriate highlighting.
12288
12289 2008-05-27 Kenichi Handa <handa@m17n.org>
12290
12291 * xfont.c (xfont_open): Fix calculation of font->average_width.
12292
12293 2008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
12294
12295 * casefiddle.c (casify_object): Try to guess better whether the
12296 argument is a byte or a char.
12297
12298 2008-05-26 Andreas Schwab <schwab@suse.de>
12299
12300 * xselect.c (x_reply_selection_request): Properly handle format == 32.
12301 Always send multiples of format size.
12302
12303 * xterm.c (x_set_frame_alpha): Fix type mismatch.
12304
12305 2008-05-26 Jason Rumney <jasonr@gnu.org>
12306
12307 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
12308 (compute_metrics): Don't set failure if we just cleared the cache.
12309 (w32_weight_table): Remove unused variable.
12310 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
12311 backwards compatibility.
12312
12313 2008-05-25 Kenichi Handa <handa@m17n.org>
12314
12315 * w32term.c (x_draw_glyph_string):
12316 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
12317
12318 * xfaces.c: Delete unused function prototypes.
12319 (xstrlwr, font_frame): Delete them.
12320 (clear_face_cache): Delete unused variable.
12321
12322 * xftfont.c (xftfont_open): Delete unused variable.
12323 If underline_thickness is not 1, adjust underline_position.
12324
12325 * ftxfont.c (ftxfont_open): Delete unused variable.
12326
12327 * fontset.c (face_for_char): Optimize for the case of no charset
12328 property.
12329
12330 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
12331 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
12332 (otf_open, font_otf_capability, generate_otf_features)
12333 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
12334 Comment out by surrounding "#if 0" and "#endif" for the moment.
12335 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
12336 (syms_of_font): Codes for accessing above commented out.
12337
12338 2008-05-24 Eli Zaretskii <eliz@gnu.org>
12339
12340 * w32proc.c: Include dispextern.h.
12341
12342 * w32.c: Include dispextern.h.
12343
12344 2008-05-23 Juanma Barranquero <lekktu@gmail.com>
12345
12346 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
12347 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
12348 Fix typos in docstrings.
12349
12350 2008-05-23 Jason Rumney <jasonr@gnu.org>
12351
12352 * xsmfns.c: Remove includes that are already included by config.h.
12353
12354 2008-05-23 Kenichi Handa <handa@m17n.org>
12355
12356 * charset.c (Qemacs, charset_emacs): New variables.
12357 (char_charset): Fix for non-Unicode characters.
12358 (syms_of_charset): Define charset_emacs.
12359
12360 * w32term.c (x_draw_glyph_string): Be sure to update
12361 s->underline_thickness and s->underline_position. Be sure to draw
12362 underline within the current line area.
12363
12364 * xterm.c (x_draw_glyph_string): Be sure to update
12365 s->underline_thickness and s->underline_position. Be sure to draw
12366 underline within the current line area.
12367
12368 * fontset.c: Delete unused variables and add casting for char *
12369 throughout the file.
12370 (fontset_font): Try the fallback fonts of the current fontset
12371 before consulting the default fontset.
12372
12373 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
12374
12375 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
12376
12377 2008-05-22 Jason Rumney <jasonr@gnu.org>
12378
12379 * font.c: Don't include strings.h.
12380
12381 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
12382
12383 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
12384 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
12385 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
12386 to call xstrcasecmp.
12387
12388 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
12389
12390 * fontset.c (fs_query_fontset): Use xstrcasecmp.
12391
12392 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
12393
12394 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
12395
12396 2008-05-22 Kenichi Handa <handa@m17n.org>
12397
12398 * puresize.h (BASE_PURESIZE): Increase to 1220000.
12399
12400 * font.c (font_prop_validate_style): Adjust for the format
12401 change of font_style_table.
12402
12403 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
12404 two args.
12405
12406 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
12407 two args.
12408
12409 2008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
12410
12411 * minibuf.c (keys_of_minibuf): Delete.
12412 * lisp.h (keys_of_minibuf): Delete.
12413 * emacs.c (main): Don't call keys_of_minibuf.
12414
12415 2008-05-22 Kenichi Handa <handa@m17n.org>
12416
12417 * ftfont.c (ftfont_resolve_generic_family): Rename from
12418 ftfont_list_generic_family. Return a single family for each
12419 generic family.
12420 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
12421 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
12422 Call font_add_log.
12423 (ftfont_match): Call font_add_log.
12424
12425 * font.h (Ffont_xlfd_name): EXFUN adjusted.
12426 (FONT_DEBUG): Define it.
12427 (font_add_log): Extern it.
12428 (font_assert): Rename from xassert.
12429
12430 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
12431 (xfont_list_family): Call font_add_log.
12432 (xfont_match): Likewise.
12433 (memq_no_quit): Delete.
12434
12435 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
12436 call of Ffont_xlfd_name.
12437
12438 * xfaces.c (struct table_entry, slant_table, weight_table)
12439 (swidth_table): Move to font.c.
12440
12441 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
12442 xassert are changed to font_assert. Delete many unused variables.
12443 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
12444 New variables.
12445 (struct table_entry): Move from xfaces.c and modified.
12446 (weight_table, slant_table, width_table): Move from xfaces.c and
12447 contents adjusted for the change of struct table_entry.
12448 (font_style_to_value, font_style_symbolic): Adjust for the
12449 format change of font_style_table.
12450 (font_parse_family_registry): Don't overwrite existing foundry and
12451 family of font_spec.
12452 (font_score): Fix calculation of diff for sizes.
12453 (font_sort_entites): Call font_add_log.
12454 (font_delete_unmatched): Return a newly created list.
12455 (font_list_entities): Fix previous change. Call font_add_log.
12456 (font_matching_entity, font_open_entity, font_close_entity):
12457 Call font_add_log.
12458 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
12459 (Finternal_set_font_style_table): Delete.
12460 (BUILD_STYLE_TABLE): New macro.
12461 (build_style_table): New function.
12462 (Vfont_log, font_log_env_checked): New variables.
12463 (font_add_log): New function.
12464 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
12465 Declare Lisp variables "font-weight-table", "font-slant-table",
12466 "font-width-table", and "font-log". Initialize font_style_table.
12467
12468 2008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
12469
12470 * xterm.c (x_set_frame_alpha): Move declarations before statements.
12471
12472 2008-05-21 Seiji Zenitani <zenitani@mac.com>
12473 Ryo Yoshitake <ryo@shiftmode.net>
12474
12475 * frame.c (Qalpha): Add a new frame parameter `alpha'.
12476 (Vframe_alpha_lower_limit): New variable.
12477 (x_set_alpha): New function.
12478
12479 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
12480
12481 * xfns.c (x-create-frame, Qalpha):
12482 Initialize the frame parameter `alpha'.
12483 * xterm.c (OPAQUE, OPACITY): New.
12484 (x_set_frame_alpha): New function.
12485 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
12486
12487 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
12488 * w32fns.c (w32_frame_parm_handlers): Likewise.
12489
12490 2008-05-20 Jason Rumney <jasonr@gnu.org>
12491
12492 * w32font.c (add_font_entity_to_list): Don't add non-opentype
12493 truetype fonts to opentype list.
12494
12495 2008-05-20 Juanma Barranquero <lekktu@gmail.com>
12496
12497 * fontset.c (Ffontset_info): Doc fix.
12498 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
12499 <ignore-relative-composition>: Fix typos in docstrings.
12500
12501 * font.c (syms-of-font) <font-encoding-alist>:
12502 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
12503 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
12504 (Ffont_otf_alternates): Doc fixes.
12505
12506 2008-05-20 Kenichi Handa <handa@m17n.org>
12507
12508 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
12509 font.h through out the file.
12510 (FONT_DRIVERS): Rename from FONTOBJ.
12511 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
12512 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
12513
12514 * emacs.c (main): Call syms_of_font unconditionally.
12515
12516 * font.h (find_font_encoding): Extern it.
12517
12518 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
12519 fontset.c.
12520 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
12521 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
12522 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
12523 only when HAVE_WINDOW_SYSTEM is defined.
12524 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
12525 when HAVE_WINDOW_SYSTEM is defined.
12526
12527 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
12528 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
12529
12530 * xfaces.c: Include font.h unconditionally.
12531 (merge_face_ref, merge_face_vectors)
12532 (Finternal_set_lisp_face_attribute): Cancel the previous change.
12533
12534 2008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
12535
12536 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
12537 indirect_variable.
12538 * eval.c (lisp_indirect_variable): New fun.
12539 (Fuser_variable_p): Use it.
12540
12541 2008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
12542
12543 * lisp.h (indirect_variable):
12544 * data.c (indirect_variable, let_shadows_buffer_binding_p):
12545 Use Lisp_Symbol pointers rather than Lisp_Object.
12546 Adjust callers.
12547 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
12548 To this end, change calling-convention.
12549
12550 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
12551 if some non-hidden buffers are selected by string&pred.
12552
12553 2008-05-19 Chong Yidong <cyd@stupidchicken.com>
12554
12555 * process.c (wait_reading_process_output): Always check status
12556 when in batch mode.
12557
12558 2008-05-19 Kenichi Handa <handa@m17n.org>
12559
12560 * font.c (font_list_entities): Fix handling of cache.
12561 (font_matching_entity): Likewise.
12562
12563 * ftfont.c (cs_iso8859_1): Delete.
12564 (ft_face_cache): New variable.
12565 (struct ftfont_info): New member fc_charset_idx.
12566 (ftfont_build_basic_charsets): Delete.
12567 (fc_charset_table): New variable.
12568 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
12569 . FC_CHARSET_IDX) as :font-entity property in the font entity.
12570 Callers changed.
12571 (ftfont_lookup_cache, ftfont_get_charset): New functions.
12572 (ftfont_spec_pattern): New argument fc_charset_idx.
12573 Check registry more rigidly. Change callers.
12574 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
12575 change of :font-entity property of the font.
12576
12577 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
12578 property of the font.
12579
12580 2008-05-18 Juanma Barranquero <lekktu@gmail.com>
12581
12582 * coding.c (Fcoding_system_p): Rename argument to match docstring.
12583 (Funencodable_char_position, Fcheck_coding_systems_region)
12584 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
12585 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
12586 (Ffind_operation_coding_system, Fset_coding_system_priority)
12587 (Fcoding_system_eol_type): Doc fixes.
12588
12589 2008-05-17 Glenn Morris <rgm@gnu.org>
12590
12591 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
12592
12593 2008-05-16 Eli Zaretskii <eliz@gnu.org>
12594
12595 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
12596 and st_gid.
12597
12598 * frame.c (Fdelete_frame): Don't call font_update_drivers if
12599 HAVE_WINDOW_SYSTEM is not defined.
12600
12601 * xfaces.c (merge_face_ref, merge_face_vectors)
12602 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
12603 HAVE_WINDOW_SYSTEM is defined.
12604 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
12605
12606 2008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
12607
12608 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
12609
12610 2008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12611
12612 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
12613
12614 2008-05-15 Kenichi Handa <handa@m17n.org>
12615
12616 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
12617 preference.
12618
12619 2008-05-15 Glenn Morris <rgm@gnu.org>
12620
12621 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
12622
12623 2008-05-15 Chong Yidong <cyd@stupidchicken.com>
12624
12625 * fns.c (init_fns): Don't initialize weak_hash_tables here.
12626 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
12627
12628 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
12629
12630 2008-05-15 Kenichi Handa <handa@m17n.org>
12631
12632 * ftfont.c (ftfont_list): Downcase family name to check generic
12633 families.
12634
12635 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
12636 font-spec for QCfont value.
12637
12638 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
12639 buffer. Check the return value of it.
12640
12641 2008-05-14 Jason Rumney <jasonr@gnu.org>
12642
12643 * w32term.c (w32_get_glyph_overhangs): Remove.
12644 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
12645
12646 2008-05-14 Kenichi Handa <handa@m17n.org>
12647
12648 * font.c (font_prop_validate): Make nil a valid value.
12649 (font_clear_cache): Check if the cached vector of entities is nil
12650 or not.
12651
12652 2008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12653
12654 * emacs.c (main_thread): Conditionalize on
12655 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
12656 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
12657
12658 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
12659 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
12660 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
12661
12662 2008-05-14 Kenichi Handa <handa@m17n.org>
12663
12664 * coding.c (detect_coding_iso_2022): Ignore a coding category that
12665 has no corresponding coding system.
12666
12667 2008-05-14 Jason Rumney <jasonr@gnu.org>
12668
12669 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
12670
12671 * w32font.h (w32font_open_internal): Update declaration.
12672
12673 * w32font.c (w32font_open_internal): Change last argument from
12674 w32font_info struct to font object. Fill in font object from
12675 font_entity. Get Outline metrics if possible. Use them to
12676 calculate underline position and thickness. Use xlfd name as name
12677 property. Don't set codepage.
12678 (w32font_open): Pass font_object to w32font_open_internal. Don't
12679 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
12680 (w32font_draw): Use s->font.
12681 (clear_cached_metrics): Don't clear non-existent blocks.
12682
12683 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
12684 font was not found.
12685 (x_draw_glyph_string): Use underline position and thickness from font.
12686
12687 * w32uniscribe.c (uniscribe_open): Pass font_object to
12688 w32font_open_internal.
12689
12690 2008-05-14 Kenichi Handa <handa@m17n.org>
12691
12692 These changes are to delete all legacy font-handling codes, and
12693 make Emacs use only font-backends.
12694
12695 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
12696 (frame.o, image.o, print.o): Depend on $(FONTSRC).
12697
12698 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
12699
12700 * charset.h (Vcharset_non_preferred_head)
12701 (Vcurrent_iso639_language): Extern them.
12702
12703 * charset.c (Vcharset_non_preferred_head): New variable.
12704 (Vcurrent_iso639_language): New variable.
12705 (syms_of_charset): Declare it as a Lisp variable.
12706 (char_charset): Don't check non preferred charsets. As a last
12707 resort, return charset_unicode.
12708 (Fset_charset_priority): Update Vcharset_non_preferred_head.
12709
12710 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
12711 conditionals. Don't check enable_font_backend. Delete all codes
12712 used only when USE_FONT_BACKEND is not defined.
12713
12714 * dispextern.h (struct glyph_string): Change type of `font' to
12715 `struct font *'.
12716 (struct glyph_string): New member underline_position and
12717 underline_thickness.
12718 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
12719 (struct face): Change type of `font' to `struct font *'. Remove
12720 members `font_name', `font_info_id'.
12721 (per_char_metric, encode_char): Delete externs.
12722 (calc_pixel_width_or_height): Adjust the prototype.
12723
12724 * emacs.c (enable_font_backend): Delete extern.
12725 (main): Don't set enable_font_backend. Don't check the command
12726 line argument "-disable-font-backend".
12727
12728 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
12729 (enum font_property_index): New members FONT_DPI_INDEX,
12730 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
12731 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
12732 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
12733 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
12734 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
12735 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
12736 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
12737 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
12738 (struct font_spec, struct font_entity): New structs.
12739 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
12740 (struct font): Many members from old "struct font_info" moved to
12741 here. Members font and entity deleted.
12742 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
12743 the new font-related objects.
12744 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
12745 (CHECK_FONT_GET_OBJECT): Likewise.
12746 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
12747 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
12748 (struct font_driver): New members case_sensitive anc check. Type
12749 of the member list and open changed.
12750 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
12751 (font_symbolic_width, font_find_object, font_get_spec)
12752 (font_set_lface_from_name): Delete extern.
12753 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
12754
12755 * font.c: Include <strings.h>.
12756 (enable_font_backend): Delete it.
12757 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
12758 (CHECK_VALIDATE_FONT_SPEC): Delete it.
12759 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
12760 (null_string): Delete it.
12761 (null_vector): Make it static.
12762 (font_family_alist): Delete it.
12763 (Qnormal): Extern it.
12764 (QCextra, QClanguage): Delete it.
12765 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
12766 (font_make_spec, font_make_entity, font_make_object)
12767 (font_intern_prop): Renamed from intern_downcase. Don't downcase
12768 the string. Callers changed.
12769 (font_pixel_size): Adjusted for the format change of font-related
12770 objects.
12771 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
12772 (font_style_to_value, font_style_symbolic): New function.
12773 (build_font_family_alist): Delete it.
12774 (font_registry_charsets): Use Fassoc_string instead of
12775 assq_no_quit.
12776 (font_prop_validate_symbol): Don't return null_string.
12777 (font_prop_validate_style): Adjusted for the change of
12778 style-related values in a font vector.
12779 (font_property_table): Delete entries for QClanguage and
12780 QCantialias, add entries for QCavgwidth.
12781 (get_font_prop_index): Delete the 2nd argument FROM.
12782 (font_prop_validate): Arguments changed.
12783 (font_put_extra): Adjusted for the change of font-related objects.
12784 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
12785 (font_parse_fcname, font_unparse_fcname)
12786 (font_prepare_composition): Likewise.
12787 (font_parse_family_registry): Renamed from font_merge_old_spec.
12788 (otf_open): Delete the 1st arg entity.
12789 (font_otf_capability): Adjusted for the above change.
12790 (font_score): New arg alternate_families. Adjusted for the change
12791 of font-related objects.
12792 (font_sort_entites): New arg best_only.
12793 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
12794 Delete them.
12795 (font_match_p): Check alternate families.
12796 (font_find_object): Delete it.
12797 (font_check_object): New function.
12798 (font_clear_cache): Adjusted for the change of font-related objects.
12799 (font_delete_unmatched): New arg.
12800 (font_list_entities): Call font_driver->list with a spec that
12801 doesn't specify style-related properties.
12802 (font_matching_entity): Arguments changed. Caller changed.
12803 (font_open_entity): Adjusted for the change of font-related objects.
12804 (font_close_object, font_has_char, font_encode_char)
12805 (font_get_name, font_get_spec): Likewise.
12806 (font_spec_from_name, font_clear_prop, font_update_lface):
12807 New functions.
12808 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
12809 (font_prepare_for_face, font_done_for_face, font_open_by_name)
12810 (font_at): Adjusted for the change of font-related objects.
12811 (font_range): New function.
12812 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
12813 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
12814 (Fcopy_font_spec, Fmerge_font_spec): New function.
12815 (Ffont_family_list): Renamed from list-families.
12816 (Finternal_set_font_style_table): Arguments changed.
12817 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
12818 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
12819 change of font-related objects.
12820 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
12821
12822 * fontset.h (struct font_info): Delete it. Most members go to
12823 struct font.
12824 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
12825 (enum FONT_SPEC_INDEX): Delete it.
12826 (font_info, list_fonts_func, load_font_func, query_font_func)
12827 (set_frame_fontset_func, find_ccl_program_func)
12828 (get_font_repertory_func, new_fontset_from_font_name): Delete
12829 externs.
12830 (fontset_from_font_name): Extern it.
12831 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
12832 (FONT_INFO_FROM_FACE): Deleted.
12833 (face_for_font): Adjust prototype.
12834
12835 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
12836 conditionals. Don't check enable_font_backend. Delete all codes
12837 used only when USE_FONT_BACKEND is not defined.
12838 (get_font_info_func, list_font_func, load_font_func)
12839 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
12840 (get_font_repertory_func): Delete them.
12841 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
12842 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
12843 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
12844 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
12845 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
12846 (fontset_compare_rfontdef): New function.
12847 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
12848 rfont-defs by qsort. Adjusted for the change of font-group vector.
12849 (load_font_get_repertory): Deleted.
12850 (fontset_find_font): Use new macros to ref/set elements of
12851 font-def and rfont-def.
12852 (fontset_font): Fix the timing of remembering that no font for C.
12853 (free_face_fontset): Do nothing if the face has no fontset.
12854 (face_suitable_for_char_p): Use new macros to ref/set elements of
12855 rfont-def.
12856 (face_for_char): Likewise. Call face_for_char with font_object.
12857 (fs_load_font): Delete. Delete #pragma surrounding it.
12858 (fs_query_fontset): Use strcasecmp instead of strcmp.
12859 (generate_ascii_font_name): Adjusted for the format change of
12860 font-spec.
12861 (Fset_fontset_font): Likewise. Use new macros to set elements of
12862 font-def.
12863 (Fnew_fontset): Use font_unparse_xlfd to generate
12864 FONTSET_ASCII (fontset).
12865 (new_fontset_from_font_name): Deleted.
12866 (fontset_from_font): Renamed from new_fontset_from_font. Check if
12867 a fontset is already created for the font. FIx updating of
12868 Vfontset_alias_alist.
12869 (fontset_ascii_font): Deleted.
12870 (Ffont_info): Adjusted for the format change of font-spec.
12871 (Finternal_char_font): Likewise.
12872 (Ffontset_info): Likewise.
12873 (syms_of_fontset): Don't check load_font_func.
12874
12875 * fns.c (internal_equal): Handle PREV_FONT.
12876
12877 * frame.h: Delete USE_FONT_BACKEND conditional.
12878
12879 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
12880 conditionals. Don't check enable_font_backend. Delete all codes
12881 used only when USE_FONT_BACKEND is not defined.
12882 (x_set_font): Call x_new_font, not x_new_fontset2.
12883 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
12884 already set for the frame.
12885
12886 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
12887 a font-entity by font_make_entity. Use font_intern_prop instead
12888 of intern_downcase. Use FONT_SET_STYLE to set a style-related
12889 font property. If a font is scalable, set avgwidth property to 0.
12890 Set font-entity property by font_put_extra.
12891 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
12892 (ffont_driver): Adjusted for the change of struct font_driver.
12893 (ftfont_spec_pattern): New function.
12894 (ftfont_list): Return a list, not vector.
12895 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
12896 (ftfont_list_family): Don't downcase names.
12897 (ftfont_free_entity): Deleted.
12898 (ftfont_open): Return a font-object. Adjusted for the change of
12899 struct font. Get underline_thickness and underline_position from
12900 font property. Don't update dpyinfo->smallest_font_height and
12901 dpyinfo->smallest_char_width.
12902 (ftfont_close): Don't free `struct font'.
12903 (ftfont_has_char): Adjusted for the format change of font-entity.
12904 (ftfont_encode_char, ftfont_text_extents): Likewise.
12905
12906 * ftxfont.c (ftxfont_list): Return a list, not vector.
12907 (ftxfont_open): Return a font-object. Adjusted for the change of
12908 struct font. Get underline_thickness and underline_position from
12909 font property. Don't update dpyinfo->smallest_font_height and
12910 dpyinfo->smallest_char_width.
12911 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
12912 (ftxfont_draw): Adjusted for the change of struct font.
12913
12914 * image.c (image_ascent): Don't include "charset.h". Include
12915 "character.h" and "font.h".
12916
12917 * lisp.h (enum pvec_type): New member PREV_FONT.
12918 (Fassoc_string): EXFUN it.
12919
12920 * print.c: Include font.h.
12921 (print_object): Handle font-related objects.
12922
12923 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
12924 conditionals. Don't check enable_font_backend. Delete all codes
12925 used only when USE_FONT_BACKEND is not defined.
12926 (handle_auto_composed_prop): Do nothing if it->f is not on a
12927 window system. Check how many following characters can be
12928 displayed by the same font.
12929 (calc_pixel_width_or_height): Type of the 4th arg is changed to
12930 'struct font *'.
12931 (get_char_face_and_encoding): Assign the whole encoding task to
12932 the `encode-char' method of a font driver.
12933 (fill_composite_glyph_string): Adjusted for the change of `struct
12934 face' and `struct glyph_string'.
12935 (fill_glyph_string): Likewise.
12936 (get_per_char_metric): Arguments changed.
12937 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
12938 and `struct glyph_string'.
12939 (produce_stretch_glyph, calc_line_height_property)
12940 (x_produce_glyphs): Likewise.
12941
12942 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
12943 conditionals. Don't check enable_font_backend. Delete all codes
12944 used only when USE_FONT_BACKEND is not defined. Use
12945 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
12946 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
12947 (Qp): Extern them.
12948 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
12949 Deleted.
12950 (struct font_name): Deleted.
12951 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
12952 (compare_fonts_by_sort_order): New function.
12953 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
12954 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
12955 Deleted.
12956 (Fx_family_fonts): Use font_list_entities, and sort fonts by
12957 compare_fonts_by_sort_order.
12958 (Fx_font_family_list): Call Ffont_family_list.
12959 (face_numeric_value, face_numeric_weight, face_numeric_slant)
12960 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
12961 (face_symbolic_slant, face_symbolic_swidth)
12962 (split_font_name_into_vector, build_font_name_from_vector)
12963 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
12964 (font_rescale_ratio, split_font_name, build_font_name)
12965 (free_font_names, sort_fonts, x_face_list_fonts)
12966 (face_font_available_p, sorted_font_list, cmp_font_names)
12967 (font_list_1, concat_font_list, font_list, remove_duplicates):
12968 Deleted.
12969 (Fx_list_fonts): Use Ffont_list.
12970 (LFACE_AVGWIDTH): Deleted.
12971 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
12972 by FONTP.
12973 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
12974 (set_lface_from_font_name): Delete it.
12975 (set_lface_from_font): Renamed from
12976 set_lface_from_font_and_fontset. Caller changed. Don't set
12977 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
12978 for face.
12979 (merge_face_vectors): Copy font-spec if necessary.
12980 Clear properties of the font-spec if necessary.
12981 (merge_face_ref): Clear properties of the font-spec if necessary.
12982 (Finternal_set_lisp_face_attribute): Likewise.
12983 (set_font_frame_param): Use font_load_for_lface to load a
12984 font-object, and call Fmodify_frame_parameters with it.
12985 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
12986 font name by Ffont_xlfd_name.
12987 (Finternal_lisp_face_attribute_values): Don't check QCweight,
12988 QCslant, and QCwidth.
12989 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
12990 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
12991 Compare fonts by EQ.
12992 (lookup_non_ascii_face): Deleted.
12993 (face_for_font): The 2nd argument changed.
12994 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
12995 Check atomic font properties by case insensitive.
12996 (realize_non_ascii_face): Set face->overstrike correctly.
12997 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
12998 (dump_realized_face): Get font name from
12999 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
13000
13001 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
13002 conditionals. Don't check enable_font_backend. Delete all codes
13003 used only when USE_FONT_BACKEND is not defined.
13004 (xic_create_xfontset): Original code deleted and renamed from
13005 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
13006 (x_make_gc): Don't set GCFont in GCs.
13007 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
13008 opened by "fixed".
13009 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
13010 find_ccl_program_func, query_font_func, set_frame_fontset_func,
13011 get_font_repertory_func.
13012
13013 * xfont.c: Include <stdlib.h> and "ccl.h".
13014 (struct xfont_info): New structure.
13015 (xfont_query_font): Deleted.
13016 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
13017 moved from xterm.c.
13018 (xfont_driver): Adjusted for the change of struct font_driver.
13019 (compare_font_names): New function.
13020 (xfont_list_pattern): Sort font names case insensitively. Make
13021 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
13022 (xfont_list): Return a list, not vector.
13023 (xfont_match): If the font doesn't have QCname property, generate
13024 a name from the other font properties.
13025 (xfont_open): Return a font-object. Adjusted for the change of
13026 struct font. Get underline_thickness and underline_position from
13027 font property. Don't update dpyinfo->smallest_font_height and
13028 dpyinfo->smallest_char_width.
13029 (xfont_close): Don't free struct font.
13030 (xfont_prepare_face): Adjusted for the change of struct font.
13031 (xfont_done_face): Deleted.
13032 (xfont_has_char): Adjusted for the change of struct font.
13033 (xfont_encode_char, xfont_draw): Likewise.
13034 (xfont_check): New function.
13035
13036 * xftfont.c (xftfont_list): Adjusted for the change of `list'
13037 callback function.
13038 (xftfont_match): Adjusted for the format change of font-entity.
13039 (xftfont_open): Adjusted for the format change of font-entity and
13040 font-object. Adjusted for the change of struct font. Return a
13041 font-object. Don't update dpyinfo->smallest_font_height and
13042 dpyinfo->smallest_char_width.
13043 (xftfont_close): Block input while calling XftFontClose.
13044 (xftfont_prepare_face): Don't block input while calling
13045 xftfont_get_colors. Adjusted for the change of struct font.
13046 (xftfont_shape): Return value of error case fixed.
13047
13048 * xrdb.c (x_load_resources): Don't setup a fontset resource.
13049
13050 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
13051 conditionals.
13052 (FONT_WIDTH): Return (f)->max_width.
13053 (struct x_display_info): Delete member `font'.
13054 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
13055 (x_find_ccl_program, x_get_font_repertory): Delete externs.
13056 (struct x_output): Change type of `font' to `struct font *'.
13057
13058 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
13059 conditionals. Don't check enable_font_backend. Delete all codes
13060 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
13061 (x_per_char_metric, x_encode_char): Deleted.
13062 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
13063 (x_compute_glyph_string_overhangs): Adjusted for the change of
13064 `struct face'.
13065 (x_draw_glyph_string_foreground)
13066 (x_draw_composite_glyph_string_foreground): Likewise.
13067 (x_draw_glyph_string): Likewise. Use font->underline_position and
13068 font->underline_thickness.
13069 (x_new_font): Renamed from x_new_fontset2.
13070 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
13071 (x_check_font): Call `check' method of a font driver.
13072 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
13073 (x_query_font, x_get_font_repertory): Deleted.
13074 (x_find_ccl_program): Renamed and moved to xfont.c.
13075 (x_redisplay_interface): Adjusted for the change of `struct
13076 redisplay_interface'.
13077
13078 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
13079 conditionals. Don't check enable_font_backend. Delete all codes
13080 used only when USE_FONT_BACKEND is not defined. Surround non-used
13081 code by "#ifdef OLD_FONT" and "endif".
13082 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
13083
13084 * w32font.h (struct w32font_info): New member.
13085 (FONT_COMPAT): New macro.
13086 (w32font_open_internal): Prototype adjusted.
13087
13088 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
13089 OLD_FONT" and "endif".
13090
13091 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
13092 conditionals. Don't check enable_font_backend. Delete all codes
13093 used only when USE_FONT_BACKEND is not defined.
13094 (w32font_open): Return a font-object. Make a font-object by
13095 font_make_object. Adjusted for the change of struct w32font_info.
13096 (w32font_close): Don't free struct font. Adjusted for the change
13097 of struct w32font_info.
13098 (w32font_encode_char, w32font_text_extents, w32font_draw):
13099 Adjusted for the change of struct w32font_info.
13100 (w32font_draw): Likewise.
13101 (w32font_list_internal): Return a list, not vector.
13102 (w32font_open_internal): Change the 4th arg to font-object.
13103 Adjusted for the change of struct w32font_info and font-object format.
13104 (add_font_name_to_list): Don't downcase names.
13105 (w32_enumfont_pattern_entity): Make a font-entity by
13106 font_make_entity. Adjusted for the format change of font-entity.
13107 Use FONT_SET_STYLE to set a style-related font property. If a
13108 font is scalable, set avgwidth property to 0. Set font-entity
13109 property by font_put_extra.
13110 (font_matches_spec): Adjusted for the format change of font-entity.
13111 (w32_weight_table, w32_decode_weight): New variables.
13112 (w32_encode_weight): New function.
13113 (fill_in_logfont): Adjusted for the format change of font-spec.
13114 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
13115 weight value.
13116 (w32font_driver): Adjusted for the change of struct font_driver.
13117
13118 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
13119 conditionals. Don't check enable_font_backend. Surround non-used
13120 code by "#ifdef OLD_FONT" and "endif".
13121 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
13122 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
13123
13124 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
13125 conditionals. Don't check enable_font_backend. Delete all codes
13126 used only when USE_FONT_BACKEND is not defined. Surround non-used
13127 code by "#ifdef OLD_FONT" and "endif".
13128
13129 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
13130 (uniscribe_open): Return value changed to font-object.
13131 Adjusted for the format change of font-object.
13132 (uniscribe_otf_capability): Adjusted for the change of struct font.
13133 (add_opentype_font_name_to_list): Don't downcase names.
13134 (uniscribe_font_driver): Adjusted for the change of struct
13135 font_driver.
13136
13137 2008-05-13 Chong Yidong <cyd@stupidchicken.com>
13138
13139 * dispnew.c (update_frame_1): Check if tty output is still valid
13140 before flushing it.
13141
13142 2008-05-13 Jan Djärv <jan.h.d@swipnet.se>
13143
13144 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
13145 to Gtk+ menus.
13146
13147 2008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
13148
13149 * dired.c (file_name_completion): Tweak the code so as to always do it
13150 in a single pass. Tighten the scope of some variables.
13151
13152 * dired.c (Qdefault_directory): New var.
13153 (file_name_completion): Use it instead of Fexpand_file_name.
13154 (syms_of_dired): Initialize it.
13155
13156 2008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
13157
13158 * fileio.c (double_dollars): Remove dead code.
13159
13160 2008-05-10 Eli Zaretskii <eliz@gnu.org>
13161
13162 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
13163 Mention w32-get-true-file-attributes in doc string.
13164
13165 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
13166
13167 2008-05-09 Glenn Morris <rgm@gnu.org>
13168
13169 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
13170 2008-04-23.
13171
13172 2008-05-09 Eli Zaretskii <eliz@gnu.org>
13173
13174 Support for reporting owner and group of each file on MS-Windows:
13175 * dired.c (stat_uname, stat_gname): New functions, with special
13176 implementation for w32.
13177 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
13178
13179 * w32.c: Rename the_passwd_* to dflt_passwd_*.
13180 (dflt_group_name): New static variable.
13181 (dflt_group): Rename from the_group.
13182 (init_user_info): Init dflt_group fields. Get user's group name
13183 from LookupAccountSid.
13184 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
13185 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
13186 New initialization states.
13187 (globals_of_w32): Initialize them to zero. Initialize the default
13188 group name to "None".
13189 (GetFileSecurity_Name): New global var, the name of the function
13190 to call for GetFileSecurity.
13191 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
13192 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
13193 (get_file_security, get_security_descriptor_owner)
13194 (get_security_descriptor_group, is_valid_sid)
13195 (get_file_security_desc, get_rid, get_name_and_id)
13196 (get_file_owner_and_group): New functions.
13197 (stat): Use get_file_security_desc and get_file_owner_and_group to
13198 report the owner and primary group of each file. Don't ignore the
13199 high 32 bits of file's size, now that st_size is 64-bit wide.
13200 Fix test when to get true file attributes.
13201 (init_user_info): Use get_rid instead of equivalent inline code.
13202 (fstat): Don't ignore the high 32 bits of file's size.
13203
13204 2008-05-09 Chong Yidong <cyd@stupidchicken.com>
13205
13206 * image.c (png_load): Use correct bit-depth for setting background
13207 color.
13208
13209 2008-05-08 Eli Zaretskii <eliz@gnu.org>
13210
13211 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
13212 epa-hook.elc.
13213
13214 2008-05-08 Juanma Barranquero <lekktu@gmail.com>
13215
13216 * font.c (Ffont_match_p): Don't use `iff' in docstring.
13217
13218 2008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
13219
13220 * macfns.c (Fx_create_frame): Make a copy of frame parameters
13221 because the original parameters are in pure storage now.
13222 (mac_window): Remove unused params. Update callers.
13223
13224 2008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
13225
13226 * lread.c (substitute_object_recurse): Use lower-level primitives.
13227 Don't signal errors when traversing sub-char-tables.
13228 Don't loop over all the possible characters when traversing char-tables.
13229
13230 * print.c (print_preprocess): Add sub-char-tables to the print-table,
13231 just like we do in print.c.
13232
13233 2008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
13234
13235 * minibuf.c (Ftry_completion): Remove code left over from when we used
13236 scmp instead of Fcompare_strings.
13237
13238 2008-05-04 Juanma Barranquero <lekktu@gmail.com>
13239
13240 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
13241
13242 2008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13243
13244 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
13245 Create bitmap context in native byte order.
13246
13247 * macterm.c (XDrawLine)
13248 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
13249 context in native byte order.
13250
13251 2008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13252
13253 * config.in: Regenerate.
13254
13255 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
13256 New definitions for Image I/O support.
13257 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
13258 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
13259 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
13260 (mac_data_provider_release_data, image_load_image_io)
13261 [USE_MAC_IMAGE_IO]: New functions.
13262 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
13263 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
13264 (init_image_func_pointer) [MAC_OSX]: Remove function.
13265 (image_load_quartz2d) [MAC_OSX]: Check availability of
13266 CGImageCreateWithPNGDataProvider at compile time.
13267 Use lowercase `false' for boolean constant.
13268 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
13269 Use image_load_image_io.
13270 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
13271 Don't check MyCGImageCreateWithPNGDataProvider.
13272 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
13273 Don't call init_image_func_pointer.
13274
13275 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
13276
13277 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
13278 Make variable non-static.
13279 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
13280 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
13281
13282 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
13283 (RED_FROM_ULONG): Mask off higher bits.
13284 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
13285
13286 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
13287 Include AvailabilityMacros.h.
13288 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
13289 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
13290
13291 2008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
13292
13293 * chartab.c (Fset_char_table_range): If range is t, really set all
13294 chars to that value.
13295
13296 2008-05-03 Eli Zaretskii <eliz@gnu.org>
13297
13298 * dired.c (Ffile_attributes): Don't allow the device number become
13299 negative.
13300
13301 2008-05-02 Daiki Ueno <ueno@unixuser.org>
13302
13303 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
13304
13305 2008-05-02 Juri Linkov <juri@jurta.org>
13306
13307 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
13308 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
13309 DEFAULT argument as a list of default values in docstrings.
13310
13311 2008-05-01 Chong Yidong <cyd@stupidchicken.com>
13312
13313 * puresize.h (BASE_PURESIZE): Increase to 1210000.
13314
13315 2008-05-01 Martin Rudalics <rudalics@gmx.at>
13316
13317 * dispnew.c (change_frame_size_1): Preserve small windows when
13318 shrinking frames by calling set_window_height|width with third
13319 arg 2.
13320
13321 * window.h (struct window): Replace field too_small_ok by field
13322 resize_proportionally.
13323
13324 * window.c (make_window): Initialize resize_proportionally.
13325 (enlarge_window): Temporarily set resize_proportionally to make
13326 sure that shrink_windows does scale the window proportionally.
13327 (shrink_windows): When window has resize_proportionally set try
13328 to shrink it proportionally by stealing from other windows.
13329 (struct saved_window, Fset_window_configuration)
13330 (compare_window_configurations): Handle resize_proportionally.
13331 (WINDOW_TOTAL_SIZE): New macro.
13332 (window_min_size, shrink_windows, size_window): Use it.
13333 (check_min_window_sizes): Remove. Invalid values of
13334 window-min-height|width are handled by window_min_size_2 now.
13335 (size_window, Fsplit_window, enlarge_window)
13336 (adjust_window_trailing_edge, grow_mini_window): Don't call
13337 check_min_window_sizes.
13338 (window_min_size_2, window_min_size_1, window_min_size):
13339 New argument safe_p for retrieving "safe" minimum sizes.
13340 (Fdisplay_buffer, Fsplit_window, enlarge_window)
13341 (adjust_window_trailing_edge, grow_mini_window):
13342 Adjust arguments of window_min_size... functions.
13343 (shrink_windows): Argument min_size removed. New argument
13344 safe_p allows shrinking windows to their safe minimum sizes.
13345 Calculate minimum size and decide whether a window shall be
13346 deleted for each window individually.
13347 (size_window): When nodelete_p equals 2, tell shrink_windows to
13348 delete windows only if their new minimum size is no more safe.
13349 (shrink_window_lowest_first): Call window_min_size_1 to make
13350 sure to preserve modeline of bottom-most window when resizing
13351 the minibuffer.
13352 (Fset_window_configuration, Fcurrent_window_configuration)
13353 (compare_window_configurations): Do not handle
13354 window-min-height|width any more.
13355 (syms_of_window): Clarify window-min-height|width doc-strings.
13356
13357 2008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
13358
13359 * dired.c (file_name_completion): Fix up the encoding/decoding issue
13360 some more. Copy some of the code from Ftry_completions.
13361 Remove special case code that dates back to initial revision when the
13362 slash was only added when necessary and that can't trigger nowadays.
13363
13364 2008-04-27 Kenichi Handa <handa@m17n.org>
13365
13366 * font.c (font_prop_validate): Signal `error' instead of `font'.
13367
13368 2008-04-29 Jason Rumney <jasonr@gnu.org>
13369
13370 * w32fns.c (Fw32_battery_status): New defun.
13371 (syms_of_w32fns): Defsubr it.
13372
13373 2008-04-28 Andreas Schwab <schwab@suse.de>
13374
13375 * dired.c (file_name_completion): Fix another mixing of encoded
13376 and decoded names.
13377
13378 2008-04-28 Juanma Barranquero <lekktu@gmail.com>
13379
13380 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
13381
13382 2008-04-27 Juanma Barranquero <lekktu@gmail.com>
13383
13384 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
13385
13386 2008-04-27 Andreas Schwab <schwab@suse.de>
13387
13388 * dired.c (file_name_completion): Fix inappropriate mixing of
13389 encoded and decoded names.
13390
13391 * xterm.c (XTread_socket): Fix use of uninitialized variable.
13392
13393 * puresize.h (BASE_PURESIZE): Increase to 1200000.
13394
13395 2008-04-26 Eli Zaretskii <eliz@gnu.org>
13396
13397 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
13398 2008-03-31, it's not needed anymore with `struct stat' definition
13399 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
13400 for the same reasons.
13401
13402 2008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
13403
13404 * m/sparc.h: Additional redefinitions for GNU/Linux.
13405
13406 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13407
13408 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
13409 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
13410 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
13411 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
13412 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
13413 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
13414 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
13415 Likewise.
13416
13417 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
13418 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
13419 (mac_ax_number_of_characters): Add externs.
13420 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
13421 [USE_MAC_TSM]: Likewise.
13422 (mac_handle_text_input_event) [MAC_OSX]:
13423 Handle kEventTextInputOffsetToPos for no active input area case.
13424 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
13425 (mac_handle_document_access_event)
13426 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
13427 (install_application_handler) [MAC_OSX]: Register handlers for
13428 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
13429 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
13430 Register mac_handle_document_access_event.
13431
13432 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
13433 Make functions non-static.
13434
13435 2008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
13436
13437 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
13438 (read_file_name_completion_ignore_case, insert_default_directory)
13439 (Qdefault_directory): Move to minibuffer.el.
13440 (Fread_file_name): Call the new `read-file-name' instead.
13441
13442 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13443
13444 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
13445 Make function non-static.
13446 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
13447 Remove function.
13448 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
13449 Move to mactoolbox.c.
13450 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
13451
13452 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
13453 (mac_rect_make): New macro.
13454
13455 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
13456 instead of float.
13457 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
13458 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
13459 (XSetBackground) [USE_CG_DRAWING]: Likewise.
13460 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
13461 CGRectMake.
13462 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
13463 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
13464 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
13465 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
13466 instead of WindowRef in argument type.
13467 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
13468 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
13469 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
13470 instead of DISPLAY. All uses changed.
13471 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
13472 (x_calc_absolute_position): Simplify so as not to use
13473 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
13474
13475 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
13476 instead of WindowRef in argument type.
13477 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
13478 [TARGET_API_MAC_CARBON]: Remove externs.
13479 (create_apple_event, mac_event_parameters_to_lisp)
13480 [TARGET_API_MAC_CARBON]: Add externs.
13481
13482 * mactoolbox.c (Vmac_ts_script_language_on_focus)
13483 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
13484 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
13485 is clicked.
13486 (x_activate_menubar): Remove extern for saved_menu_event_location.
13487 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
13488 Move from mac.c.
13489
13490 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13491
13492 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
13493 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
13494
13495 2008-04-23 Jason Rumney <jasonr@gnu.org>
13496
13497 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
13498 attributes only for local files.
13499
13500 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
13501 default to Qlocal.
13502
13503 2008-04-22 Juri Linkov <juri@jurta.org>
13504
13505 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
13506 read-buffer-to-switch instead of using the letter "B".
13507
13508 2008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
13509
13510 * fileio.c (Qdefault_directory): New variable.
13511 (Fread_file_name): Use it to pass `dir' to the completion functions.
13512
13513 2008-04-20 Chong Yidong <cyd@stupidchicken.com>
13514
13515 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
13516
13517 2008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
13518
13519 * keyboard.c (Vpre_help_message): Remove.
13520 (show_help_echo): Remove default C code.
13521
13522 * dired.c (directory_files_internal, file_name_completion):
13523 Only call ENCODE_FILE if the string is indeed decoded.
13524
13525 2008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
13526
13527 * Makefile.in (TOOLKIT_DEFINES): Remove.
13528 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
13529
13530 2008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13531
13532 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
13533 (mactoolbox.o): New target.
13534
13535 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
13536 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
13537
13538 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
13539 Use mac_set_frame_window_background instead of XSetWindowBackground.
13540 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
13541 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
13542 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
13543 instead of SetWindowTitleWithCFString.
13544 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
13545 Move function to mactoolbox.c.
13546 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
13547 Use mac_set_window_modified instead of SetWindowModified.
13548 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
13549 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
13550 (Fx_focus_frame): Use mac_front_non_floating_window instead of
13551 FrontNonFloatingWindow. Use mac_activate_window instead of
13552 ActivateWindow. Use mac_active_non_floating_window instead of
13553 ActiveNonFloatingWindow.
13554 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
13555 Use mac_show_hourglass and mac_hide_hourglass.
13556 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
13557 instead of GetGlobalMouse.
13558 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
13559 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
13560 Use mac_bring_window_to_front instead of BringToFront.
13561 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
13562 mactoolbox.c.
13563 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
13564 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
13565 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
13566 mactoolbox.c.
13567
13568 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
13569 (XtPointer): Move typedef from macmenu.c.
13570 (enum button_type): Move enum from macmenu.c.
13571 (widget_value): Move typedef from macmenu.c.
13572 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
13573 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
13574 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
13575 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
13576 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
13577 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
13578 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
13579 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
13580 (Selection): Move typedef from macselect.c.
13581 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
13582 macterm.c.
13583 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
13584 (mac_is_window_collapsed, mac_bring_window_to_front)
13585 (mac_send_window_behind, mac_hide_window, mac_show_window)
13586 (mac_collapse_window, mac_front_non_floating_window)
13587 (mac_active_non_floating_window, mac_activate_window)
13588 (mac_move_window_structure, mac_move_window, mac_size_window)
13589 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
13590
13591 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
13592 (enum mac_menu_kind): Move enum to mactoolbox.c.
13593 (min_menu_id): Move variable to mactoolbox.c.
13594 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
13595 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
13596 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
13597 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
13598 [TARGET_API_MAC_CARBON]: Likewise.
13599 (XtPointer): Move typedef to macgui.h.
13600 (enum button_type): Move enum to macgui.h.
13601 (widget_value): Move typedef to macgui.h.
13602 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
13603 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
13604 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
13605 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
13606 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
13607 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
13608 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
13609 (popup_activated_flag): Make variable non-static.
13610 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
13611 (add_menu_item, fill_menu, dispose_menus):
13612 Move functions to mactoolbox.c.
13613 (restore_show_help_function, menu_target_item_handler)
13614 (install_menu_target_item_handler, mac_handle_dialog_event)
13615 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
13616 [TARGET_API_MAC_CARBON]: Likewise.
13617 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
13618 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
13619 (find_and_call_menu_selection, name_is_separator): Make function
13620 non-static.
13621 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
13622 to mactoolbox.c.
13623 (set_frame_menubar): Don't call install_menu_quit_handler.
13624 (menu_item_selection): New variable.
13625 (mac_menu_show): Use create_and_show_popup_menu.
13626 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
13627 selection but set variable menu_item_selection. All uses changed.
13628 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
13629 Call install_menu_quit_handler. Move to mactoolbox.c.
13630
13631 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
13632 (Selection): Move typedef to macgui.h.
13633 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
13634 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
13635 Make variables non-static.
13636 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
13637 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
13638 Make functions non-static.
13639 (Vmac_service_selection) [MAC_OSX]: Likewise.
13640 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
13641 (mac_valid_selection_target_p, mac_clear_selection)
13642 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
13643 (mac_put_selection_value, mac_selection_has_target_p)
13644 (mac_get_selection_value, mac_get_selection_target_list)
13645 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
13646 Move functions to mactoolbox.c.
13647 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
13648 Likewise.
13649 (copy_scrap_flavor_data, mac_handle_service_event)
13650 (install_service_handler) [MAC_OSX]: Likewise.
13651 (syms_of_macselect) <Vmac_dnd_known_types>:
13652 Use mac_dnd_default_known_types.
13653
13654 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
13655 Move to mactoolbox.c.
13656 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
13657 (Fx_selection_owner_p): Add EXFUN.
13658 (install_window_handler, remove_window_handler, XSetWindowBackground):
13659 Remove externs.
13660 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
13661 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
13662 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
13663 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
13664 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
13665 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
13666 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
13667 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
13668 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
13669 (create_and_show_popup_menu, mac_get_selection_from_symbol)
13670 (mac_valid_selection_target_p, mac_clear_selection)
13671 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
13672 (mac_put_selection_value, mac_selection_has_target_p)
13673 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
13674 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
13675 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
13676 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
13677 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
13678 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
13679 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
13680 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
13681 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
13682
13683 * mactoolbox.c: New file.
13684
13685 2008-04-18 Jason Rumney <jasonr@gnu.org>
13686
13687 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
13688
13689 2008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
13690
13691 * character.c (Fmultibyte_char_to_unibyte):
13692 Return latin1 chars unchanged.
13693
13694 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
13695 relocated if it points to `name'.
13696
13697 2008-04-17 Kenichi Handa <handa@m17n.org>
13698
13699 * data.c (Faset): Allow setting a multibyte character in an
13700 ASCII-only unibyte string.
13701
13702 * lisp.h (STRING_SET_MULTIBYTE): New macro.
13703
13704 2008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
13705
13706 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
13707 done in config.h.
13708
13709 2008-04-16 Juanma Barranquero <lekktu@gmail.com>
13710
13711 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
13712 (Fchar_direction): Add usage in the docstring.
13713
13714 2008-04-15 Chong Yidong <cyd@stupidchicken.com>
13715
13716 * keyboard.c (read_key_sequence): Remove always-true checks.
13717
13718 2008-04-14 Jason Rumney <jasonr@gnu.org>
13719
13720 * w32font.c (w32font_open_internal): Set max_bounds.descent in
13721 compatibility struct, for better underline positioning.
13722
13723 2008-04-13 David Hansen <david.hansen@gmx.net>
13724
13725 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
13726 string.
13727
13728 2008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
13729
13730 * m/hp800.h (XUINT, XSET): Remove.
13731
13732 2008-04-12 Juanma Barranquero <lekktu@gmail.com>
13733
13734 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
13735 previous change.
13736
13737 2008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
13738
13739 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
13740 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
13741
13742 2008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
13743
13744 * keymap.h (map_keymap_canonical): Declare.
13745 * xmenu.c (single_keymap_panes): Use it.
13746
13747 2008-04-11 Glenn Morris <rgm@gnu.org>
13748
13749 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
13750 set the target's value to that of the alias.
13751
13752 2008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
13753
13754 * term.c (set_tty_color_mode): Left over typo.
13755
13756 2008-04-10 Michael Albinus <michael.albinus@gmx.de>
13757
13758 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
13759 only after check for file name handler functions. Signal, when
13760 native functionality is not supported.
13761 (syms_of_fileio): Declare it unconditionally.
13762
13763 2008-04-10 Jason Rumney <jasonr@gnu.org>
13764
13765 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
13766 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
13767
13768 * w32.c (logon_network_drive): Also logon to remote drives that
13769 are mapped to drive letters.
13770
13771 2008-04-10 Glenn Morris <rgm@gnu.org>
13772
13773 * xdisp.c (truncate-partial-width-windows): Doc fix.
13774
13775 2008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
13776
13777 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
13778 Move functions to minibuffer.el.
13779 (syms_of_fileio): Don't declare them.
13780
13781 2008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
13782
13783 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
13784 (syms_of_minibuf): Remove its initialization.
13785
13786 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
13787
13788 2008-04-09 Juanma Barranquero <lekktu@gmail.com>
13789
13790 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
13791
13792 2008-04-09 Jason Rumney <jasonr@gnu.org>
13793
13794 * makefile.w32-in (distclean): Delete makefile too.
13795 (maintainer-clean): New target.
13796
13797 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
13798
13799 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
13800 for new font backend and composite cases.
13801
13802 2008-04-09 Jan Djärv <jan.h.d@swipnet.se>
13803
13804 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
13805 Most of the code moved to run_timers.
13806 (do_pending_atimers): Call run_timers.
13807 (run_timers): New function.
13808
13809 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
13810 run atimers.
13811
13812 * process.c (wait_reading_process_output): The same as above.
13813
13814 2008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
13815
13816 * minibuf.c (last_exact_completion): Remove variable.
13817 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
13818 (complete_and_exit_1, complete_and_exit_2)
13819 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
13820 (Fdisplay_completion_list, display_completion_list_1)
13821 (Fminibuffer_completion_help, Fself_insert_and_exit)
13822 (Fexit_minibuffer, Fminibuffer_message): Move functions to
13823 minibuffer.el.
13824 (syms_of_minibuf): Remove corresponding initializations.
13825
13826 * keyboard.c (Qdeactivate_mark): New var.
13827 (command_loop_1): Use it to call `deactivate-mark'.
13828 (syms_of_keyboard): Initialize it.
13829
13830 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
13831 to another frame.
13832 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
13833 Don't call set_tty_color_mode.
13834 (store_frame_param): Reset previous_frame rather than call
13835 set_tty_color_mode.
13836 * term.c (set_tty_color_mode): Rewrite.
13837 * dispextern.h (set_tty_color_mode): New type.
13838 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
13839
13840 2008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
13841
13842 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
13843 for generic chars, which do not exist any more in emacs-unicode.
13844
13845 2008-04-08 Michael Albinus <michael.albinus@gmx.de>
13846
13847 * coding.c (detect_coding_emacs_mule)
13848 (Ffind_operation_coding_system): Fix typo.
13849
13850 2008-04-08 Jason Rumney <jasonr@gnu.org>
13851
13852 * w32uniscribe.c (SNAME): Extract only symbol name.
13853
13854 * w32font.h (struct w32_metric_cache): New struct.
13855 (w32font_info): Use it.
13856 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
13857 (CACHE_BLOCKSIZE): New constants.
13858
13859 * w32font.c (Qja, Qko, Qzh): New symbols.
13860 (syms_of_w32font): Initialise them.
13861 (font_matches_spec): Use them to filter by language.
13862 (recompute_cached_metrics): Remove function.
13863 (compute_metrics, clear_cached_metrics): New functions.
13864 (w32font_encode_char): Use them to manage metric cache.
13865 (w32font_text_extents): Cache metrics for all glyphs on demand.
13866 Delay converting glyph indices to WORD until needed.
13867 (w32font_open_internal): Initialize metric cache to empty.
13868 (registry_to_w32_charset): Charset should always be a symbol.
13869 (fill_in_logfont, list_all_matching_fonts): Family should
13870 always be a symbol.
13871
13872 2008-04-06 Jason Rumney <jasonr@gnu.org>
13873
13874 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
13875 Give up if glyph indices not supported. Use uniscribe obtained
13876 ABC widths for individual metrics. Map glyph clusters back to
13877 characters using fClusterStart flag. Return number of glyphs
13878 produced, not chars processed.
13879 (uniscribe_shape): Map char at FROM to current glyph.
13880
13881 2008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13882
13883 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
13884 Use SetMenuItemHierarchicalMenu.
13885
13886 2008-04-05 Jason Rumney <jasonr@gnu.org>
13887
13888 * image.c (pbm_load): Allow color values up to 65535.
13889 Throw an error if max_color_idx is outside the supported range.
13890 Report an error when image size is invalid.
13891 Read two bytes at a time when raw images have max_color_idx above 255.
13892
13893 2008-04-05 Eli Zaretskii <eliz@gnu.org>
13894
13895 * w32.c (readdir): If FindFirstFile/FindNextFile return in
13896 cFileName a file name that includes `?' characters, use the 8+3
13897 alias in cAlternateFileName instead.
13898
13899 2008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
13900
13901 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
13902 append "CCL: Quitted" when the CCL program is quitted.
13903 (setup_ccl_program): Initialize ccl->quit_silently to zero.
13904
13905 * ccl.h (struct ccl_program): New member quit_silently.
13906
13907 2008-04-05 Chong Yidong <cyd@stupidchicken.com>
13908
13909 * search.c (compile_pattern_1): Treat non-nil and non-string of
13910 search-spaces-regexp as nil.
13911
13912 * minibuf.c (Fassoc_string): Tweak docstring.
13913
13914 2008-04-05 Eli Zaretskii <eliz@gnu.org>
13915
13916 * dired.c (Ffile_attributes): Support inode numbers wider than 32
13917 bits. Remove ugly WINDOWSNT-specific kludge introduced on
13918 2008-03-14 to force inode be positive.
13919
13920 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
13921 _S_* ones, since we now use our own sys/stat.h.
13922 (stat, fstat): Don't mangle the inode number.
13923 (init_user_info): Don't restrict UID and GID to 0-60000 range.
13924
13925 2008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
13926
13927 * frame.h (struct frame): Give one more bit to `visible' since we use
13928 values larger than 1 to indicate obscured frames on ttys.
13929
13930 * keymap.c (Qkeymap_canonicalize): New var.
13931 (Fmap_keymap_internal): New fun.
13932 (describe_map): Use keymap-canonicalize.
13933
13934 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
13935 (Fundo_boundary): Set them.
13936 (syms_of_undo): Initialize them.
13937 (record_point): Use them instead of last_point_position*.
13938 (last_undo_buffer): Change type.
13939
13940 2008-04-04 Jason Rumney <jasonr@gnu.org>
13941
13942 * w32font.c (w32font_text_extents): Use font's ascent and descent.
13943 (recompute_cached_metrics): Don't set ascent and descent per char.
13944
13945 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
13946 (uniscribe_check_otf): Add GC protection before consing.
13947 Rearrange loop for counting features.
13948
13949 2008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
13950
13951 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
13952 buffer with byte-size of source buffer.
13953
13954 2008-04-03 Chong Yidong <cyd@stupidchicken.com>
13955
13956 * callint.c (Fcall_interactively): Handle temporary region even
13957 when shift-select-mode is off.
13958
13959 2008-04-03 Jason Rumney <jasonr@gnu.org>
13960
13961 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
13962
13963 2008-04-03 Kenichi Handa <handa@m17n.org>
13964
13965 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
13966 (CATEGORY_MASK_UTF_16): Likewise.
13967 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
13968 binary file.
13969 (detect_coding): Add null-byte detection for a binary file.
13970 (detect_coding_system): Likewise.
13971
13972 2008-04-03 Jason Rumney <jasonr@gnu.org>
13973
13974 * w32uniscribe.c: New file.
13975
13976 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
13977
13978 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
13979
13980 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
13981 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
13982 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
13983 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
13984 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
13985 (Qphonetic): New symbols.
13986 (syms_of_w32font): Initialize them.
13987 (font_supported_scripts): Use them.
13988 (w32font_list_family): List all charsets.
13989 (w32font_text_extents, recompute_cached_metrics): Fix metric
13990 calculations.
13991 (w32_enumfont_pattern_entity): Make full_type a DWORD.
13992 Give opentype fonts their own format.
13993 (font_matches_spec): New arguments backend and logfont.
13994 Handle :otf spec for uniscribe backend.
13995 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
13996 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
13997
13998 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
13999 font backend.
14000 (globals_of_w32fns): Initialize uniscribe font backend.
14001
14002 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
14003 dependencies.
14004 (w32uniscribe.$(O)): New file to build.
14005 (FONT_OBJ): Include w32uniscribe.$(O).
14006 (LIBS): Add uniscribe libraries.
14007
14008 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
14009
14010 2008-04-02 Chong Yidong <cyd@stupidchicken.com>
14011
14012 * callint.c (Vshift_select_mode): New var.
14013 (Finteractive): Document new ^ spec.
14014 (Fcall_interactively): Call handle-shift-selection if the ^ spec
14015 is present.
14016
14017 * keyboard.c (Vthis_command_keys_shift_translated): New var.
14018 (command_loop_1): Avoid running the direct display versions of
14019 forward-char and backward-char if shift-selection may occur.
14020 (read_key_sequence): Set Vthis_command_keys_shift_translated if
14021 shift-translation takes place.
14022
14023 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
14024 avoid clobbering by define-minor-mode.
14025
14026 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
14027 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
14028
14029 * syntax.c (Fforward_word): Add ^ interactive spec.
14030
14031 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
14032 (Fscroll_right): Add ^ interactive spec.
14033
14034 2008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
14035
14036 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
14037
14038 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
14039
14040 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
14041
14042 2008-03-31 Juri Linkov <juri@jurta.org>
14043
14044 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
14045
14046 2008-03-30 Jan Djärv <jan.h.d@swipnet.se>
14047
14048 * gtkutil.c (xg_set_geometry): Fix indentation.
14049 (xg_resize_outer_widget): Remove.
14050 (x_wm_size_hint_off): Fix indentation.
14051 (xg_frame_set_char_size): Call flush_and_sync after
14052 gtk_window_resize.
14053 (x_wm_set_size_hint): Pass NULL as geometry window to
14054 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
14055 Add menu bar and tool bar height to base height.
14056 (xg_update_frame_menubar, free_frame_menubar)
14057 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
14058 (update_frame_tool_bar, free_frame_tool_bar):
14059 Change xg_resize_outer_widget to xg_frame_set_char_size.
14060
14061 2008-03-30 Michael Albinus <michael.albinus@gmx.de>
14062
14063 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
14064 (Fdbus_call_method): New parameter TIMEOUT.
14065 (dbus-send-signal): Optimize UNGCPRO call.
14066
14067 2008-03-29 Juri Linkov <juri@jurta.org>
14068
14069 * window.c (Fdisplay_buffer): Move call to
14070 Vsplit_window_preferred_function out of conditions that check
14071 if window is eligible for vertical splitting.
14072 When Vsplit_window_preferred_function is non-nil, call it and use
14073 its non-nil return value as window. Otherwise, continue doing
14074 vertical splitting using Fsplit_window with arg horflag=nil.
14075 (syms_of_window) <Vsplit_window_preferred_function>: Change the
14076 default value from `split-window' to nil.
14077
14078 2008-03-29 Juri Linkov <juri@jurta.org>
14079
14080 * callint.c (Fcall_interactively): Revert 2008-03-16 change
14081 for interactive code letters 'b' and 'B'.
14082
14083 2008-03-29 Eli Zaretskii <eliz@gnu.org>
14084
14085 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
14086 multibyte string.
14087
14088 2008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
14089
14090 * keyboard.c (pending_funcalls): New var.
14091 (timer_check): Run it.
14092 (syms_of_keyboard): Initialize it.
14093 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
14094 (Vdelete_terminal_functions): New vars.
14095 (syms_of_terminal): Initialize them.
14096 (Fdelete_terminal): Run delete-terminal-functions.
14097 * xdisp.c (safe_eval): Rewrite.
14098 (safe_call2): New fun.
14099 * frame.c (Qdelete_frame_functions): New var.
14100 (syms_of_frame): Initialize it.
14101 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
14102 * lisp.h (safe_call2, pending_funcalls): Declare.
14103
14104 2008-03-28 Andreas Schwab <schwab@suse.de>
14105
14106 * indent.c (Fmove_to_column): Move declaration before statements.
14107
14108 2008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
14109
14110 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
14111 (struct frame): Use bit fields for boolean vars.
14112
14113 * process.c (server_accept_connection): Simplify naming.
14114 (emacs_get_tty_pgrp): Use SDATA.
14115
14116 * coding.c (decode_coding_object): Fix last change.
14117
14118 2008-03-27 Jason Rumney <jasonr@gnu.org>
14119
14120 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
14121
14122 2008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
14123
14124 * charset.c (Fdefine_charset_internal): Change the way of
14125 registering charsets in Vcharset_order_list.
14126 (syms_of_charset): Make the charset `eight-bit' supplementary.
14127
14128 2008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
14129
14130 * regex.c (EXTEND_BUFFER): Change order of pointer addition
14131 operations, to avoid having the difference between pointers
14132 overflow.
14133
14134 2008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
14135
14136 * indent.c (check_display_width): New fun.
14137 (scan_for_column): Use it.
14138
14139 * data.c (syms_of_data): Mark most-positive-fixnum and
14140 most-negative-fixnum as constants.
14141
14142 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
14143
14144 * indent.c (scan_for_column): Extract from current_column_1.
14145 Merge with the same code from Fmove_to_column.
14146 (current_column_1, Fmove_to_column): Use it.
14147
14148 2008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
14149
14150 * keymap.c (map_keymap_internal): New fun.
14151 (map_keymap): Use it.
14152 (Fmap_keymap_internal): New fun.
14153 (Fmap_keymap): Remove left-out test from before make_save_value.
14154
14155 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
14156
14157 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
14158 Use XCAR/XCDR.
14159
14160 * process.h (struct Lisp_Process): Remove filter_multibyte.
14161 * process.c (QCfilter_multibyte): Remove.
14162 (setup_process_coding_systems): Don't use filter_multibyte.
14163 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
14164 (read_process_output): Don't adjust multibyteness to filter_multibyte.
14165 (Fset_process_filter_multibyte): Change the coding-system to
14166 approximate the previous behavior.
14167 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
14168 coding-system.
14169
14170 * coding.c (decode_coding_object): When not decoding into a buffer,
14171 obey the coding system's preference of (uni|multi)byte.
14172
14173 2008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
14174
14175 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
14176 every char is changed and has a different byte-length.
14177 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
14178 Fix int -> EMACS_INT.
14179
14180 2008-03-23 David Hansen <david.hansen@gmx.net>
14181
14182 * dbusbind.c (xd_read_message): Remove extra copying of message
14183 strings. Check for NULL `interface' or `member'.
14184
14185 2008-03-22 Eli Zaretskii <eliz@gnu.org>
14186
14187 * w32.c (readdir): If FindFirstFile/FindNextFile return in
14188 cFileName a file name that includes `?' characters, use the 8+3
14189 alias in cAlternateFileName instead.
14190
14191 2008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
14192
14193 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
14194
14195 2008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
14196
14197 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
14198 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
14199 work on current_buffer only instead (that was already the case
14200 for some of the code anyway).
14201 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
14202 (temp_set_point, temp_set_point_both): Use EMACS_INT.
14203 (SET_PT, SET_PT_BOTH): Adjust.
14204 * intervals.h (set_point, temp_set_point, set_point_both)
14205 (temp_set_point_both): Remove redundant declarations.
14206
14207 2008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
14208
14209 * fileio.c (Finsert_file_contents):
14210 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
14211 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
14212 when buffer != current_buffer anyway.
14213
14214 2008-03-20 Andreas Schwab <schwab@suse.de>
14215
14216 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
14217 as default.
14218
14219 2008-03-19 Jason Rumney <jasonr@gnu.org>
14220
14221 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
14222 (syms_of_w32fns): Initialize them.
14223 (HOURGLASS_ID): New constant.
14224 (x_window_to_frame): Don't check hourglass_window.
14225 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
14226 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
14227 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
14228 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
14229 Only change the cursor if hourglass is not active.
14230 (Fx_create_frame): Initialize frame's current_cursor.
14231 (hourglass_atimer): Remove.
14232 (hourglass_started): New function.
14233 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
14234 (show_hourglass): Adapt to w32, changing argument to frame.
14235
14236 * w32term.h (struct w32_output): Remove hourglass_window.
14237 Add current_cursor.
14238
14239 * eval.c (call_debugger, Fsignal):
14240 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
14241 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
14242 (Fexecute_extended_command, cancel_hourglass_unwind):
14243 * minibuf.c (read_minibuf):
14244 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
14245
14246 2008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
14247
14248 * window.c (run_funs): New fun.
14249 (run_window_configuration_change_hook): Use it to run the buffer-local
14250 and the global part of the hook.
14251
14252 * xdisp.c (format_mode_line_unwind_data): Add window argument.
14253 (unwind_format_mode_line): Restore selected window.
14254 (x_consider_frame_title, Fformat_mode_line): Set selected window.
14255
14256 2008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
14257
14258 * editfns.c (Fchar_equal): Check they are valid characters.
14259
14260 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
14261
14262 2008-03-17 Andreas Schwab <schwab@suse.de>
14263
14264 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
14265 against a charset.
14266
14267 * lisp.h (Fbuffer_list): Declare.
14268
14269 2008-03-17 Jan Djärv <jan.h.d@swipnet.se>
14270
14271 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
14272 handlebox_widget is != 0.
14273
14274 2008-03-16 Juri Linkov <juri@jurta.org>
14275
14276 * callint.c (Fcall_interactively): For interactive code letters
14277 'b' and 'B' put the buffer list into the list of default "future"
14278 values of the minibuffer.
14279
14280 2008-03-16 Andreas Schwab <schwab@suse.de>
14281
14282 * keyboard.c (read_key_sequence): Fix downcasing of letters with
14283 modifiers.
14284
14285 * regex.c (re_match_2_internal): Correct matching of a charset
14286 against latin-1 characters.
14287
14288 2008-03-16 Kenichi Handa <handa@m17n.org>
14289
14290 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
14291 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
14292 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
14293 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
14294 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
14295 CHAR_STRING_ADVANCE.
14296 (produce_chars): Fix for the case that the source and the
14297 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
14298 instead of CHAR_STRING_ADVANCE.
14299 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
14300 STRING_CHAR_ADVANCE.
14301
14302 2008-03-15 Andreas Schwab <schwab@suse.de>
14303
14304 * regex.c (re_match_2_internal): Correct matching of eight bit
14305 characters in unibyte strings.
14306
14307 2008-03-15 Martin Rudalics <rudalics@gmx.at>
14308
14309 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
14310 at end of range when it coincides with the end of the buffer.
14311
14312 2008-03-14 Eli Zaretskii <eliz@gnu.org>
14313
14314 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
14315
14316 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
14317
14318 2008-03-14 Jason Rumney <jasonr@gnu.org>
14319
14320 * editfns.c (initial_tz): New variable.
14321 (syms_of_editfns): Initialize it.
14322 (Fset_time_zone_rule): Set it when first called.
14323 Use it when TZSTRING is nil.
14324
14325 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
14326 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
14327 (monitor_from_point_fn, get_monitor_info_fn): New globals.
14328 (globals_of_w32fns): Initialize them.
14329 (compute_tip_xy): Use them to position tooltips.
14330
14331 2008-03-14 Glenn Morris <rgm@gnu.org>
14332
14333 * emacs.c (main): Revert previous change.
14334 (standard_args): Revert -internal-script back to -scriptload,
14335 and remove the long-option form.
14336
14337 2008-03-13 Glenn Morris <rgm@gnu.org>
14338
14339 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
14340 Remove option -enable-font-backend.
14341
14342 2008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
14343
14344 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
14345
14346 2008-03-11 Jan Djärv <jan.h.d@swipnet.se>
14347
14348 * xterm.c (x_connection_closed): For GTK: If this is the last
14349 terminal just exit without closing the display.
14350
14351 2008-03-11 Jason Rumney <jasonr@gnu.org>
14352
14353 * w32font.c (w32font_full_name): Use floor to round.
14354
14355 2008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
14356
14357 * sound.c (alsa_configure): Declare vol at beginning of block.
14358
14359 * fontset.c (Ffontset_info): Remove extra semicolon.
14360
14361 2008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
14362
14363 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
14364 size of resulting string.
14365
14366 2008-03-10 Jason Rumney <jasonr@gnu.org>
14367
14368 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
14369
14370 2008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14371
14372 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
14373 Don't pretend as if characters with display property haven't been
14374 consumed for string-replacing-string case.
14375
14376 2008-03-08 Kim F. Storm <storm@cua.dk>
14377
14378 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
14379 (get_next_display_element, next_element_from_string)
14380 (next_element_from_ellipsis, next_element_from_buffer): Use it.
14381
14382 2008-03-08 Andreas Schwab <schwab@suse.de>
14383
14384 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
14385
14386 2008-03-06 Jason Rumney <jasonr@gnu.org>
14387
14388 * w32font.c (w32_registry): Take font_type argument. Use ANSI
14389 when charset not specified. Only translate ANSI to unicode when
14390 font_type is truetype.
14391 (w32font_coverage_ok): New function.
14392 (add_font_entity_to_list): Use it to filter unsuitable fonts.
14393
14394 2008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
14395
14396 * lread.c (Fread_char): Resolve modifiers.
14397 (Fread_char_exclusive): Likewise.
14398
14399 * character.c (char_resolve_modifier_mask): New function.
14400 (char_string): Use char_resolve_modifier_mask.
14401 (Fchar_resolve_modifiers): New function.
14402 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
14403 function.
14404
14405 2008-03-04 Jason Rumney <jasonr@gnu.org>
14406
14407 * makefile.w32-in: Always include w32font.c in the build.
14408 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
14409
14410 2008-03-04 Andreas Schwab <schwab@suse.de>
14411
14412 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
14413 (versionclean): Likewise.
14414
14415 2008-03-04 Juanma Barranquero <lekktu@gmail.com>
14416
14417 * .cvsignore: Add oo.
14418
14419 2008-03-03 Andreas Schwab <schwab@suse.de>
14420
14421 * coding.c (decode_coding_object): Inhibit gap shrinking while
14422 decoding in place.
14423
14424 2008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
14425
14426 * w32term.c: Remove unused include "gnu.h".
14427 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
14428
14429 * gnu.h: Rename to ...
14430 * emacs-icon.h: ... this.
14431 * xterm.c: Use emacs-icon.h instead of gnu.h.
14432 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
14433
14434 2008-03-03 Juanma Barranquero <lekktu@gmail.com>
14435
14436 * w32font.c: Include math.h.
14437
14438 2008-03-03 Jason Rumney <jasonr@gnu.org>
14439
14440 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
14441 Compute options separately.
14442 (w32font_open_internal): Set glyph_idx before caching metrics.
14443
14444 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
14445 Define if system headers don't.
14446 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
14447 (w32font_encode_char): Don't declare here.
14448
14449 * w32font.c (Quniscribe, QCformat): New symbols.
14450 (syms_of_w32font): Define them.
14451 (w32font_has_char): Indicate uncertainty.
14452 (w32font_encode_char): Encode as glyph point. Make static.
14453 (recompute_cached_metrics): New function.
14454 (w32font_open_internal): Use it. Set font to use glyph points
14455 initially. Set format based on type of font.
14456 (w32font_text_extents, w32font_draw): Optionally use glyph points.
14457 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
14458 on it. Set format based on information available here.
14459 (add_font_entity_to_list): Identify backend based on opentype_only.
14460
14461 2008-03-02 Andreas Schwab <schwab@suse.de>
14462
14463 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
14464
14465 * coding.c (decode_coding_big5, produce_chars):
14466 Fix typos in last change.
14467
14468 2008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
14469
14470 * gnu.h: New icon.
14471
14472 2008-03-02 Kenichi Handa <handa@m17n.org>
14473
14474 * coding.c (decode_coding_utf_8): When eol-type of CODING is
14475 `dos', don't decode '\r' if that is the last in the source.
14476 (decode_coding_utf_16, decode_coding_emacs_mule)
14477 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
14478 (decode_coding_raw_text, decode_coding_charset): Likewise.
14479 (produce_chars): Don't decode EOL here. Use EMACS_INT.
14480
14481 2008-03-01 Jason Rumney <jasonr@gnu.org>
14482
14483 * w32font.c (w32font_full_name): Report point size for scalable fonts.
14484
14485 2008-03-01 Kim F. Storm <storm@cua.dk>
14486
14487 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
14488
14489 2008-03-01 Jason Rumney <jasonr@gnu.org>
14490
14491 * w32font.c (w32font_full_name): New function.
14492 (w32font_open_internal): Use it.
14493
14494 2008-03-01 Kim F. Storm <storm@cua.dk>
14495
14496 * dispnew.c (line_draw_cost): Fix invalid glyph check.
14497
14498 2008-03-01 Jason Rumney <jasonr@gnu.org>
14499
14500 * font.c (font_unparse_fcname): Increase len when style is a symbol.
14501
14502 2008-03-01 Jan Djärv <jan.h.d@swipnet.se>
14503
14504 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
14505 xg_frame_resized when the event is for the edit widget.
14506
14507 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
14508
14509 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
14510 set_char_size.
14511 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
14512 operations on widgets here. Just set frame size if needed.
14513 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
14514 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
14515 (x_wm_set_size_hint): Set size hints on the edit widget only, not
14516 the whole frame.
14517 (xg_create_tool_bar): Move attachment of the tool bar to
14518 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
14519 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
14520
14521 2008-03-01 Jason Rumney <jasonr@gnu.org>
14522
14523 * w32fns.c (w32_msg_pump): Disable debug code.
14524
14525 2008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14526
14527 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
14528
14529 2008-02-29 Chong Yidong <cyd@stupidchicken.com>
14530
14531 * xdisp.c (next_overlay_string): Don't set
14532 overlay_strings_at_end_processed_p if we're currently reading from
14533 a display string.
14534
14535 2008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
14536
14537 * xdisp.c (get_overlay_strings_1): Fix typo.
14538
14539 2008-02-29 Chong Yidong <cyd@stupidchicken.com>
14540
14541 * xdisp.c (get_overlay_strings_1): Add missing argument type.
14542
14543 2008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
14544
14545 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
14546
14547 * xdisp.c (display_mode_element): Cancel the previous change.
14548 (decode_mode_spec): Likewise.
14549 (handle_auto_composed_prop): Don't make composition if it->string
14550 is a string.
14551
14552 2008-02-27 Kim F. Storm <storm@cua.dk>
14553
14554 * lisp.h (GLYPH): Change type from int to struct with separate char
14555 and face_id members.
14556 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
14557 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
14558 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
14559 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
14560 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
14561 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
14562 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
14563 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
14564 handle new Lisp glyph code encoding, either an integer or a cons.
14565
14566 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
14567 (GLYPH_ALIAS): Delete.
14568 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
14569 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
14570 (GLYPH_FROM_CHAR): Replace macro by ...
14571 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
14572
14573 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
14574 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
14575 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
14576 (GLYPH_INVALID_P): New macro.
14577 (spec_glyph_lookup_face): Update prototype.
14578
14579 * dispnew.c (line_draw_cost): Adapt to new glyph type.
14580 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
14581 new glyph code encoding.
14582 (spec_glyph_lookup_face): No return value; update passed glyph instead.
14583 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
14584
14585 * xdisp.c (get_next_display_element, next_element_from_display_vector):
14586 Adapt to new glyph type and new glyph code encoding.
14587
14588 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
14589
14590 * indent.c (current_column, current_column_1, Fmove_to_column)
14591 (compute_motion): Adapt to new glyph code encoding.
14592
14593 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
14594
14595 2008-02-27 Chong Yidong <cyd@stupidchicken.com>
14596
14597 * process.c (wait_reading_process_output): Check for window
14598 changes caused by timers.
14599 Suggested by Johan Bockgård.
14600
14601 2008-02-27 Glenn Morris <rgm@gnu.org>
14602
14603 * emacs.c (USAGE1): Add `--disable-font-backend'.
14604
14605 2008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
14606
14607 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
14608 is made to the buffer.
14609
14610 2008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
14611
14612 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
14613 (face_at_string_position):
14614 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
14615 (face_at_string_position):
14616 * xdisp.c (display_string, next_overlay_change):
14617 * buffer.h (overlays_at):
14618 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
14619 Update callers.
14620
14621 2008-02-26 Chong Yidong <cyd@stupidchicken.com>
14622
14623 * editfns.c (Fformat): Doc fix.
14624
14625 2008-02-26 Juanma Barranquero <lekktu@gmail.com>
14626
14627 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
14628 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
14629 (Ffont_otf_alternates, Fquery_font): Doc fixes.
14630
14631 2008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
14632
14633 * buffer.c (Fbuffer_swap_text): New function.
14634 (syms_of_buffer): Defsubr it.
14635
14636 2008-02-25 Chong Yidong <cyd@stupidchicken.com>
14637
14638 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
14639
14640 2008-02-25 Jason Rumney <jasonr@gnu.org>
14641
14642 * w32font.c (w32font_draw): Draw one character at a time when padding.
14643
14644 2008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
14645
14646 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
14647 Handle a nil arg. Use run_window_configuration_change_hook.
14648 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
14649 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
14650 Use run_window_configuration_change_hook.
14651
14652 2008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
14653
14654 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
14655 1-pixel width.
14656
14657 2008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
14658
14659 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
14660 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
14661 if the glyph in the font is zero pixel with.
14662
14663 * dispextern.h (struct glyph_string): New member padding_p.
14664
14665 * w32font.c (w32font_draw): Pay attention to s->padding_p.
14666
14667 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
14668
14669 * xfont.c (xfont_draw): Pay attention to s->padding_p.
14670
14671 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
14672
14673 * font.c: If the font driver doesn't have `shape' function, return Qnil.
14674
14675 2008-02-25 Jason Rumney <jasonr@gnu.org>
14676
14677 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
14678
14679 2008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
14680
14681 Allow fine-grained image-cache flushing.
14682 * dispextern.h (struct image): Add `dependencies' field.
14683 (clear_image_caches): Change arg to Lisp_Object.
14684 * image.c (make_image): Initialize `dependencies' field.
14685 (clear_image_cache): Change arg to allow fine-grained flushing.
14686 Perform the flush even if image-cache-eviction-delay is nil.
14687 (clear_image_caches): Change arg to Lisp_Object.
14688 (Fclear_image_cache): Expand meaning of the argument.
14689 (mark_image): Mark `dependencies' field.
14690 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
14691 (lface_hash): Use XHASH rather than XFASTINT.
14692 (face_at_buffer_position): Fix int -> EMACS_INT position.
14693 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
14694 (select_frame_for_redisplay): Remove code duplication.
14695 (redisplay_internal): Adapt arg to call to clear_image_caches.
14696
14697 2008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
14698
14699 * s/vms4-0.h:
14700 * s/vms4-2.h:
14701 * s/vms4-4.h:
14702 * s/vms5-5.h: Remove, unused.
14703
14704 * s/irix5-2.h:
14705 * s/irix6-0.h:
14706 * s/riscos5.h:
14707 * s/mach-bsd4-3.h:
14708 * m/mips4.h: Remove files for obsolete systems.
14709
14710 * Makefile.in:
14711 * filelock.c:
14712 * unexmips.c:
14713 * m/hp9000s300.h:
14714 * m/iris4d.h:
14715 * s/aix3-1.h:
14716 * s/hpux.h:
14717 * s/msdos.h:
14718 * s/usg5-0.h:
14719 * s/usg5-2-2.h:
14720 * s/usg5-2.h:
14721 * s/usg5-3.h: Remove references to obsolete variables.
14722
14723 * s/irix5-0.h: Remove, move all the contents ...
14724 * s/irix6-5.h: ... here. Simplify.
14725 * config.in: Regenerate.
14726
14727 2008-02-24 Jason Rumney <jasonr@gnu.org>
14728
14729 * w32term.c (x_draw_glyph_string_background): Clear the background
14730 manually when cleartype is in use.
14731 (x_draw_glyph_string_foreground): Draw text transparently when
14732 cleartype is in use.
14733
14734 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
14735 a font into it unless we have to.
14736
14737 2008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
14738
14739 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
14740 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
14741
14742 2008-02-18 Jason Rumney <jasonr@gnu.org>
14743
14744 * w32fns.c (Fw32_shell_execute): Encode parameters.
14745
14746 2008-02-09 Eli Zaretskii <eliz@gnu.org>
14747
14748 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
14749
14750 2008-02-05 Juanma Barranquero <lekktu@gmail.com>
14751
14752 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
14753
14754 2008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
14755
14756 * xterm.c (x_set_offset): Don't change the gravity if
14757 CHANGE_GRAVITY is -1.
14758
14759 2008-02-23 Chong Yidong <cyd@stupidchicken.com>
14760
14761 * fileio.c (auto_save_error_occurred): New var.
14762 (auto_save_error): Set it.
14763 (Fdo_auto_save): Don't overwrite the error message if an auto-save
14764 error occurred.
14765
14766 2008-02-23 Eli Zaretskii <eliz@gnu.org>
14767
14768 * w32.c (globals_of_w32): Add initializations for
14769 g_b_init_get_sid_sub_authority and
14770 g_b_init_get_sid_sub_authority_count.
14771
14772 2008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
14773
14774 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
14775 (font_parse_xlfd): Use them for sanity check.
14776 (Finternal_set_font_style_table): Make sure the table is bijective.
14777
14778 Consolidate the image_cache to the terminal struct.
14779 * termhooks.h (P_): Remove redundant def.
14780 (struct terminal): New field `image_cache'.
14781 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
14782 of FRAME_X_IMAGE_CACHE.
14783 * xterm.h (struct x_display_info): Remove image_cache field.
14784 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
14785 * w32term.h (struct w32_display_info): Remove image_cache field.
14786 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
14787 * macterm.h (struct mac_display_info): Remove image_cache field.
14788 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
14789 * xterm.c (x_term_init):
14790 * w32term.c (w32_term_init):
14791 * macterm.c (mac_term_init): Set the image_cache in the terminal.
14792 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
14793 Remove declarations.
14794 (clear_image_caches, mark_image_cache): New declarations.
14795 * xfaces.c (clear_face_cache):
14796 * xdisp.c (redisplay_internal): Use clear_image_caches.
14797 * image.c (clear_image_cache): Don't check that a frame is on
14798 a window-system before checking if it shares the same cache.
14799 (clear_image_caches): New function.
14800 (Fclear_image_cache): Use it.
14801 (mark_image): Move from allo.c.
14802 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
14803 * alloc.c (mark_image, mark_image_cache): Move to image.c.
14804 (mark_object): Don't call mark_image_cache for frames.
14805 (mark_terminals): Call mark_image_cache.
14806
14807 * lisp.h (Fdelete_terminal): Declare.
14808
14809 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
14810 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
14811 wrong_type_argument.
14812
14813 2008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
14814
14815 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
14816 malayalam.el, and tamil.el. Add sinhala.el.
14817
14818 2008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
14819
14820 * xterm.c (x_connection_closed): Consolidate identical tests.
14821 (x_delete_terminal): Don't crash if called via x_connection_closed.
14822
14823 2008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
14824
14825 * xdisp.c (decode_mode_spec): New arg string.
14826 (display_mode_element): Adjust for the above change.
14827
14828 2008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
14829
14830 * callint.c (Fcall_interactively): Use AREF.
14831
14832 2008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
14833
14834 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
14835
14836 2008-02-18 Jan Djärv <jan.h.d@swipnet.se>
14837
14838 * xfns.c (Fx_show_tip): Set string to " " if empty.
14839
14840 2008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
14841
14842 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
14843 with Qt.
14844
14845 2008-02-17 Kenichi Handa <handa@m17n.org>
14846
14847 * ftfont.c (ftfont_shape): Return Lispy number.
14848
14849 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
14850 for GCs.
14851 (Finternal_set_font_selection_order): Call font_update_sort_order
14852 only when enable_font_backend is set.
14853 (realize_x_face): Set face->font_info to that of default face only
14854 when enable_font_backend is set.
14855
14856 * xdisp.c (handle_composition_prop): Set it->c to the fist
14857 character of the composed region.
14858 (fill_composite_glyph_string): Set base_face->font_info to
14859 s->font_info. Get a face for ascii from base_face->ascii_face.
14860 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
14861 with a face already decided.
14862 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
14863 non-negative.
14864 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
14865 call font_prepare_composition unconditionally.
14866
14867 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
14868
14869 * xterm.h (struct x_display_info): New member font.
14870
14871 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
14872 (x_set_mouse_face_gc, x_new_font): Likewise.
14873 (x_term_init): Setup display_info->font.
14874 (x_delete_terminal): Free display_info->font.
14875
14876 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
14877
14878 * ftxfont.c (ftxfont_default_fid): Delete it.
14879 (ftxfont_open): Set xfont->fid to 0.
14880 (ftxfont_end_for_frame): Clear data specific to the frame and the
14881 font-driver.
14882
14883 * xftfont.c (xftfont_default_fid): Delete it.
14884 (xftfont_open): Set xfont->fid to 0.
14885
14886 * fontset.c (FONTSET_OBJLIST): New macro.
14887 (fontset_find_font): Update font-object list of the fontset.
14888 (free_realized_fontset): New function.
14889 (free_face_fontset): Call free_realized_fontset.
14890 (Ffont_info): Call font_close_object only when enable_font_backend
14891 is set.
14892
14893 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
14894 [HAVE_NTGUI]: Include w32term.h.
14895 [MAC_OS]: Include macterm.ch.
14896 (font_otf_ValueRecord): Use make_number.
14897 (font_finish_cache): Fix handling of reference count.
14898 (font_clear_cache): Update num_fonts.
14899 (font_open_entity): Update smallest_char_width and
14900 smallest_font_height of the frame.
14901 (font_close_object): Update num_fonts.
14902 (Fclear_font_cache): Fix finding the target cache data.
14903
14904 2008-02-16 Glenn Morris <rgm@gnu.org>
14905
14906 * fontset.c (Finternal_char_font): Fix compilation warning.
14907
14908 2008-02-16 Eli Zaretskii <eliz@gnu.org>
14909
14910 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
14911 instead of char arrays. Enlarge the size of array passed to
14912 get_token_information.
14913
14914 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
14915 warnings.
14916
14917 2008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
14918
14919 * .gdbinit: Don't set `args', it breaks gdb --args.
14920
14921 2008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
14922
14923 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
14924 within a narrowed buffer.
14925
14926 2008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
14927
14928 * coding.c (decode_coding_object, encode_coding_object):
14929 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
14930
14931 2008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
14932
14933 * coding.c (coding_set_destination): Use BEG_BYTE rather than
14934 hardcoding 1.
14935 (detect_coding_system):
14936 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
14937 (string_char_to_byte, string_byte_to_char, insert_from_gap):
14938 * insdel.c (insert_from_gap):
14939 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
14940 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
14941 (string_to_multibyte):
14942 * character.c (chars_in_text, multibyte_chars_in_text):
14943 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
14944
14945 * character.h (FETCH_STRING_CHAR_ADVANCE)
14946 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
14947 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
14948 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
14949
14950 * casefiddle.c (casify_region): Only call after-change and composition
14951 functions on the part of the region that was changed.
14952
14953 * keyboard.c (read_avail_input):
14954 * frame.c (Fdelete_frame): Call Fdelete_terminal.
14955
14956 2008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
14957
14958 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
14959 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
14960
14961 2008-02-11 Juanma Barranquero <lekktu@gmail.com>
14962
14963 * w32menu.c (push_submenu_start, push_submenu_end)
14964 (push_left_right_boundary, push_menu_pane, push_menu_item):
14965 * keyboard.c (read_key_sequence): Don't pass args with side effects
14966 to AREF, it fails when compiling with -DENABLE_CHECKING.
14967
14968 2008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
14969
14970 * Makefile.in (${lispsource}international/charprop.el):
14971 Delete this target.
14972
14973 * search.c (boyer_moore): Fix incorrect synching of the trunk and
14974 emacs-unicode-2.
14975
14976 2008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
14977
14978 * terminal.c (Fdelete_terminal): Clean up the `force' path.
14979
14980 2008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
14981
14982 * frame.c (Qnoelisp): New symbol.
14983 (syms_of_frame): Initialize it.
14984 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
14985 harmless Elisp code, from a strong `force' from x_connection_closed.
14986 * frame.h (Qnoelisp): Declare.
14987 * xterm.c (x_connection_closed): Pass `noelisp'.
14988
14989 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
14990 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
14991 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
14992 rather than `int' for the type of `type'.
14993
14994 2008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
14995
14996 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
14997
14998 * Makefile.in (GNUC): Remove support for gcc-1.x.
14999
15000 2008-02-10 Richard Stallman <rms@gnu.org>
15001
15002 * lisp.h (ASET): Use AREF, not ASLOT.
15003
15004 2008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
15005
15006 * lisp.h (ASET): Check bounds.
15007
15008 2008-02-10 Glenn Morris <rgm@gnu.org>
15009
15010 * buffer.c (mode-name): Doc fix.
15011
15012 2008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
15013
15014 * Makefile.in:
15015 * emacs.c:
15016 * gmalloc.c:
15017 * keyboard.c:
15018 * lisp.h:
15019 * m/ibm370aix.h:
15020 * process.c:
15021 * regex.c:
15022 * s/hpux.h:
15023 * sysdep.c:
15024 * sysselect.h:
15025 * systty.h:
15026 * unexec.c:
15027 * w32term.c:
15028 * xsmfns.c:
15029 * xterm.c: Remove code that deals with obsolete variables.
15030
15031 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
15032
15033 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
15034 nothing else needs it anymore.
15035
15036 2008-02-09 Eli Zaretskii <eliz@gnu.org>
15037
15038 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
15039 instead of unibyte_char_to_multibyte.
15040
15041 2008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
15042
15043 * s/gnu-linux.h: Remove commented out code.
15044
15045 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
15046
15047 * Makefile.in: Update what RMS says about using autoconf.
15048 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
15049 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
15050 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
15051 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
15052
15053 2008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
15054
15055 * keymap.c (Fkey_description): Move side effect outside of macro call.
15056
15057 * xfaces.c (Finternal_make_lisp_face):
15058 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
15059
15060 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
15061 (syms_of_fontset): Use ASET.
15062
15063 * fns.c (concat): Move side effect outside of macro call.
15064 (hash_clear): Use ASET.
15065
15066 2008-02-08 Richard Stallman <rms@gnu.org>
15067
15068 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
15069 If FORCE, and frame has a surrogate minibuffer for another frame,
15070 delete the other frame first.
15071
15072 2008-02-07 Timo Savola <timo.savola@iki.fi>
15073
15074 * xterm.c (x_detect_focus_change): Handle embed client message.
15075 (handle_one_xevent): Ditto.
15076 (handle_one_xevent): If embedded and we get a button press/release,
15077 request focus.
15078 (xembed_set_info, xembed_send_message): New functions.
15079 (x_make_frame_visible): Call xembed_set_info if embedded.
15080 (x_make_frame_invisible): Call xembed_set_info if embedded.
15081 (x_term_init): Initialize Xatom_XEMBED.
15082 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
15083 (x_iconify_frame): Ditto.
15084
15085 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
15086 (enum xembed_info, enum xembed_message, enum xembed_focus)
15087 (enum xembed_modifier, enum xembed_accelerator): New.
15088 (xembed_set_info, xembed_send_message): Declare.
15089 (FRAME_X_EMBEDDED_P): New.
15090
15091 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
15092 gtk_plug_new.
15093
15094 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
15095 window ID of a frame.
15096 (x_window): Reparent frame if embedded.
15097 (Fx_create_frame): Don't set border width if embedded.
15098
15099 * emacs.c (USAGE3): Add --parent-id.
15100 (standard_args): Ditto.
15101
15102 2008-02-07 Jan Djärv <jan.h.d@swipnet.se>
15103
15104 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
15105
15106 2008-02-07 Jim Meyering <meyering@redhat.com>
15107
15108 Use "do...while (0)", not "if (1)...else" in macro definitions.
15109 The latter provokes a warning from gcc about the empty else, when
15110 followed by ";". Also, without that trailing semicolon, it would
15111 silently swallow up any following statement.
15112 * syntax.h (SETUP_SYNTAX_TABLE)
15113 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
15114 * buffer.h (DECODE_POSITION): Likewise.
15115 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
15116 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
15117 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
15118 (FETCH_CHAR_ADVANCE): Likewise.
15119 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
15120
15121 2008-02-07 Jim Meyering <meyering@redhat.com>
15122
15123 * lread.c [lint]: Don't include <sys/inode.h>.
15124
15125 2008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
15126
15127 * xselect.c (x_handle_dnd_message):
15128 * xmenu.c (digest_single_submenu, xmenu_show):
15129 * xdisp.c (with_echo_area_buffer_unwind_data)
15130 (format_mode_line_unwind_data, unwind_format_mode_line)
15131 (display_menu_bar):
15132 * eval.c (Ffetch_bytecode):
15133 * doc.c (store_function_docstring):
15134 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
15135 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
15136 * buffer.c (add_overlay_mod_hooklist): Use ASET.
15137
15138 2008-02-07 Kenichi Handa <handa@m17n.org>
15139
15140 * ftxfont.c (ftxfont_open): Don't set
15141 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
15142
15143 * ftfont.c (ftfont_open): Fix previous change.
15144
15145 2008-02-06 Jason Rumney <jasonr@gnu.org>
15146
15147 * w32font.c (w32font_text_extents): Fill in lbearing metric.
15148 Use cached metrics for ASCII characters.
15149 (w32font_open_internal): Don't set font's owning_frame.
15150 Cache metrics for ASCII characters.
15151
15152 * w32font.h (struct w32font_info): Add ascii_metrics.
15153 Remove owning_frame.
15154
15155 2008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
15156
15157 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
15158 to negative value.
15159
15160 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
15161
15162 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
15163
15164 * charset.c (syms_of_charset): Set QCtest and Qeq.
15165
15166 2008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
15167
15168 * process.c (Fstart_process):
15169 * callproc.c (Fcall_process): Handle the case where
15170 Funhandled_file_name_directory returns nil.
15171
15172 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
15173 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
15174 * font.c (check_gstring): Use them and AREF to access the vector before
15175 we know it's really a gstring.
15176 (Ffont_shape_text): Fix typo.
15177 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
15178
15179 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
15180 Declare.
15181
15182 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
15183
15184 2008-02-05 Jason Rumney <jasonr@gnu.org>
15185
15186 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
15187 Set smallest_font_height and smallest_char_width in display info.
15188
15189 2008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
15190
15191 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
15192
15193 2008-02-05 Miles Bader <miles@gnu.org>
15194
15195 * xfaces.c (get_lface_attributes, merge_named_face)
15196 (lookup_named_face, lookup_derived_face, realize_named_face):
15197 Revert 2008-02-01 change by cyd@stupidchicken.com.
15198
15199 2008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
15200
15201 * fontset.c (Ffontset_info): Handle the case of inhibitting the
15202 fallback fonts.
15203 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
15204
15205 2008-02-04 Jason Rumney <jasonr@gnu.org>
15206
15207 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
15208 set full_name.
15209 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
15210
15211 2008-02-03 Jason Rumney <jasonr@gnu.org>
15212
15213 * makefile.w32-in (OBJ1): Include font.o here.
15214 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
15215
15216 2008-02-02 Jason Rumney <jasonr@gnu.org>
15217
15218 * makefile.w32-in (temacs): Bump EMHEAP to 21.
15219
15220 2008-02-01 Jason Rumney <jasonr@gnu.org>
15221
15222 * s/cygwin.h: Define VIRT_ADDR_VARIES.
15223
15224 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
15225
15226 2008-02-01 Andreas Schwab <schwab@suse.de>
15227
15228 * Makefile.in (shortlisp, lisp): Update for rename of
15229 ../lisp/language/myanmar.el.
15230
15231 2008-02-01 Chong Yidong <cyd@stupidchicken.com>
15232
15233 * xfaces.c (get_lface_attributes): Delete function.
15234 (merge_named_face, lookup_named_face, lookup_derived_face)
15235 (realize_named_face): Call lface_from_face_name directly, and use
15236 the fact that merge_face_vectors does not alter its FROM argument.
15237
15238 2008-02-01 Jason Rumney <jasonr@gnu.org>
15239
15240 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
15241 input in the default locale. Handle non-Unicode multibyte input.
15242
15243 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15244
15245 * fontset.c (reorder_font_vector): Exclude nil elements from the
15246 font group. Don't try multiple fonts.
15247 (fontset_font): Adjust for the above change.
15248 (Finternal_char_font): Return nil if the found font doesn't
15249 contain the character ch.
15250
15251 * Makefile.in (lisp, shortlisp): Add cham.el.
15252
15253 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15254
15255 * font.h (FONTP): Make it return 1 also for a font-object.
15256
15257 * .gdbinit (xfontset): New function.
15258
15259 * font.c (font_find_for_lface): Check if the character C is
15260 supported or not only for the first font.
15261
15262 * fontset.c (reorder_font_vector): Fix typo.
15263 (fontset_find_font): Don't add a font-spec specifying a script.
15264 Use 0 (not Qt) for the indication of empty font-group. Change the
15265 format of RFONT-DEF. Return Qt if no font in the font-group
15266 support the character.
15267 (fontset_font): Adjust for the above change. If no font was
15268 found the character, remember that.
15269 (face_for_char): Adjust for the change of RFONT-DEF.
15270 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
15271 no font for the target.
15272 (Finternal_char_font): Adjust for the change of RFONT-DEF.
15273
15274 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15275
15276 * font.c (font_load_for_face): Handle the case that the font in
15277 face->lface is a string.
15278
15279 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15280
15281 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
15282
15283 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15284
15285 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
15286 Fix previous change. If the frame is not on a window system,
15287 signal an error.
15288
15289 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15290
15291 * coding.c (decode_coding_object, encode_coding_object): Adjust
15292 marker positions after conversion.
15293
15294 * lisp.h (struct Lisp_Marker): New member need_adjustment.
15295
15296 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15297
15298 * font.c (font_find_for_lface): Fix the handling of the return
15299 value of font_has_char.
15300 (Ffont_shape_text): Fix previous change.
15301
15302 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
15303 (fontset_ref_and_range): Delete it.
15304 (fontset_find_font): Call char_table_ref_and_range instead of
15305 FONTSET_REF_AND_RANGE.
15306 (make_fontset): Don't setup font groups of Latin here.
15307 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
15308 (new_fontset_from_font): Make the specified font the default for
15309 all Latin characters.
15310
15311 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15312
15313 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
15314 is on a window system before accessing the fontset of the frame.
15315
15316 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15317
15318 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
15319
15320 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
15321 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
15322
15323 * font.c (Ffont_shape_text): If the font driver doesn't have a
15324 shaper function, make zero-width glyphs to have at least one-pixel
15325 width. Fix setting of `to' field of glyphs.
15326
15327 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15328
15329 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
15330 glyphs.
15331
15332 * font.h (struct font_driver): Improve docstring of member `shape'.
15333
15334 2008-02-01 Kenichi Handa <handa@m17n.org>
15335
15336 * composite.c (syms_of_composite): Fix docstring of
15337 auto-composition-function.
15338
15339 * font.h (LGLYPH_SIZE): New macro.
15340
15341 * font.c (Ffont_fill_gstring): Stop filling when a character not
15342 supported by the font is found.
15343 (Ffont_shape_text): When a shape callback function returns nil,
15344 try at most two more times with larger gstring.
15345 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
15346
15347 * xdisp.c (handle_auto_composed_prop): Change the argument to
15348 auto-composition-function.
15349
15350 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
15351 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
15352 Lispy glyph and store it in the lgstring.
15353
15354 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
15355
15356 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
15357
15358 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15359
15360 * font.c (Ffont_shape_text): Avoid unnecessary composition.
15361
15362 * fontset.c (Vfont_encoding_charset_alist): New variable.
15363 (syms_of_fontset): DEFVAR it.
15364 (reorder_font_vector, fontset_find_font): Optimize for the case of
15365 no need of reordering.
15366 (face_for_char): Map the charset property by
15367 Vfont_encoding_charset_alist.
15368
15369 2008-02-01 Jason Rumney <jasonr@gnu.org>
15370
15371 * w32font.c (logfonts_match): Don't check adstyle here.
15372 (font_matches_spec): Check here against physical font instead.
15373 (add_font_entity_to_list): Avoid some substitutions.
15374
15375 * font.c (font_parse_fcname): Default weight and slant to normal.
15376 (font_score): Prefer normal fonts if weight or slant unspecified.
15377 (font_score) [WINDOWSNT]: Scale weight difference down to closer
15378 match freetype scores.
15379
15380 2008-02-01 Jason Rumney <jasonr@gnu.org>
15381
15382 * w32font.c (w32font_text_extents): Don't use the frame stored in the
15383 font, as it may have been deleted.
15384 (w32_enumfont_pattern_entity): Map generic family to adstyle using
15385 most common hyphenless variation.
15386 (logfonts_match): Check generic family.
15387 (font_matches_spec): Don't check generic family here.
15388 (fill_in_logfont): Set generic family based on adstyle.
15389
15390 * w32font.h (w32font_get_cache): Update declaration.
15391
15392 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15393
15394 * ftfont.c (ftfont_get_cache): Adjust the argument type.
15395
15396 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
15397 If none of the new drivers are available, call font_update_drivers
15398 with the old drivers.
15399
15400 * w32font.c (w32font_get_cache): Adjust the argument type.
15401
15402 * xfont.c (xfont_get_cache): Adjust the argument type.
15403
15404 * font.h (struct font_driver): Change argument type of get_cache.
15405
15406 * xftfont.c (xftfont_start_for_frame): Delete prototype.
15407
15408 * font.c (Ffont_get): Fix arguments to Fassoc.
15409 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
15410 (font_clear_cache): New function.
15411 (font_list_entities, font_matching_entity): Use font_get_cache.
15412 (font_update_drivers): Call font_clear_cache when finishing a driver.
15413
15414 * fontset.c (fontset_find_font): Fix previous change.
15415
15416 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15417
15418 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
15419 dpyinfo->font_table.
15420 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
15421 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
15422
15423 * font.c (font_at): Handle the case that the arg C is negative.
15424 Handle the unibyte case.
15425 (Ffont_at): Call font_at with the arg C -1.
15426
15427 * xdisp.c (handle_auto_composed_prop): Don't get a character at
15428 the position here, and call font_at with the arg C -1.
15429 Don't check the range of the existing composition at the point.
15430
15431 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15432
15433 * fontset.c (fontset_add): New args charset_id and family.
15434 Change caller.
15435 (load_font_get_repertory, fontset_find_font): Assume that
15436 font_spec is always a font-spec object.
15437 (Fset_fontset_font): Always store a font-spec object in a fontset.
15438
15439 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
15440 instead of get_property_and_range.
15441
15442 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15443
15444 * xftfont.c (struct xftfont_info): Delete the member ft_face.
15445 (xftfont_open): Don't keep locking face.
15446 (xftfont_close): Don't unlock face.
15447 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
15448
15449 * fontset.c (fontset_find_font): Don't prefer a font of
15450 supplementary charset.
15451
15452 2008-02-01 Kenichi Handa <handa@m17n.org>
15453
15454 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
15455 script, langsys_tag to langsys, new member script.
15456 (OTF_TAG_STR): Terminate by '\0'.
15457 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
15458 listing to the script specified in that property. Fix arg to
15459 OTF_check_features.
15460
15461 2008-02-01 Jason Rumney <jasonr@gnu.org>
15462
15463 * w32font.h: New file.
15464
15465 * w32font.c: Include it.
15466 (struct w32font_info): Add owning_frame field. Move to w32font.h.
15467 (w32font_open): Set owning_frame.
15468 (w32font_text_extents): Use owning_frame.
15469 (struct font_callback_data): Add opentype_only field.
15470 (add_font_entity_to_list): Use it to filter fonts.
15471 Don't check against full name.
15472 (w32font_list_internal): New function.
15473 (w32font_list): Use it.
15474 (w32font_match_internal): New function.
15475 (w32font_match): Use it.
15476 (w32font_open_internal): New function.
15477 (w32font_open): Use it.
15478 (w32font_get_cache, w32font_close, w32font_has_char)
15479 (w32font_encode_char, w32font_text_extents, w32font_draw):
15480 Make non-static.
15481
15482 * makefile.w32-in (w32font.o): Depend on w32font.h.
15483
15484 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15485
15486 * charset.c (Fdefine_charset_internal): Record a supplementary
15487 charset at the tail of Vcharset_order_list.
15488
15489 * font.c (Ffont_shape_text): Fix the return value.
15490
15491 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
15492
15493 * xdisp.c (handle_auto_composed_prop): Fix previous change.
15494
15495 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15496
15497 * ftfont.c (struct OpenTypeSpec): New struct.
15498 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
15499 (ftfont_get_open_type_spec): New function.
15500 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
15501
15502 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
15503
15504 2008-02-01 Jason Rumney <jasonr@gnu.org>
15505
15506 * w32font.c (add_font_entity_to_list): Compare only the beginning
15507 of full name.
15508
15509 2008-02-01 Kenichi Handa <handa@m17n.org>
15510
15511 * xdisp.c (handle_auto_composed_prop): Simplify the code.
15512 Never return HANDLED_RECOMPUTE_PROPS.
15513
15514 2008-02-01 Kenichi Handa <handa@m17n.org>
15515
15516 * font.c (font_gstring_produce): Delete it.
15517
15518 * composite.h (COMPOSITION_METHOD):
15519 Handle COMPOSITION_WITH_GLYPH_STRING.
15520
15521 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15522
15523 * xfont.c (Qx): Delete.
15524 (syms_of_xfont): Don't initialize Qx.
15525
15526 * composite.h (enum composition_method):
15527 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
15528
15529 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15530
15531 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
15532 (choose_face_font): Accept new form of font-spec.
15533
15534 * frame.h (font_driver_list): Declare it unconditionally.
15535 (struct frame): Define members font_driver_list and font_data_list
15536 unconditionally.
15537
15538 * fontset.c: Include "font.h" unconditionally.
15539 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
15540 (Fset_fontset_font): Accept a font-spec object.
15541
15542 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
15543 PIXEL_SIZE part a wild card.
15544
15545 * dispextern.h (struct glyph_string): Define members clip and
15546 num_clips unconditionally.
15547 (struct face): Define members font_info and extra unconditionally.
15548
15549 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
15550 ftfont_info only when HAVE_LIBOTF is defined.
15551
15552 2008-02-01 Andreas Schwab <schwab@suse.de>
15553
15554 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
15555 and end.
15556
15557 2008-02-01 Jason Rumney <jasonr@gnu.org>
15558
15559 * w32font.c (w32font_driver): Add new fields.
15560
15561 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15562
15563 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
15564 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
15565 (LIBES): Add @M17N_FLT_CFLAGS@.
15566
15567 * composite.c (compose_text): Don't treat the new style
15568 composition specially.
15569
15570 * emacs.c (main): Call syms_of_font unconditionally.
15571
15572 * font.h (FONT_ENTITY_NOT_LOADABLE)
15573 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
15574 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
15575 (struct font_driver): New member shape.
15576 (font_registry_charsets): Extern it.
15577 (font_find_for_lface, font_prepare_composition): Adjust prototype.
15578 (font_otf_capability, font_drive_otf): Delete their externs.
15579
15580 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
15581 (font_charset_alist, font_registry_charsets): Move from xfont.c
15582 and rename.
15583 (font_prop_validate_otf): New function.
15584 (font_property_table): Register it for QCotf.
15585 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
15586 (font_drive_otf): Delete.
15587 (font_prepare_composition): New arg F. Adjust for the change of
15588 lispy gstring.
15589 (font_find_for_lface): New arg C.
15590 (font_load_for_face): Adjust for the change of font_find_for_lface.
15591 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
15592 lispy gstring.
15593 (Ffont_shape_text): New function.
15594 (Fopen_font): If the font size is not given, use 12-pixel.
15595 (Ffont_at): New arg STRING.
15596 (syms_of_font): Initalize font_charset_alist.
15597 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
15598 conditionally.
15599
15600 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
15601 fonts of the same font-spec. Change the format of RFONT-DEF.
15602 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
15603 Adjust for the change of RFONT-DEF.
15604 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
15605
15606 * ftfont.h: New file.
15607
15608 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
15609 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
15610 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
15611 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
15612 font_otf_capability and font_drive_otf, set ftfont_shape.
15613 (ftfont_list): Adjust for the change of :otf property value.
15614 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
15615 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
15616 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
15617 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
15618 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
15619 (otf_gstring, gstring, m17n_flt_initialized): New variables.
15620
15621 * w32term.c (x_draw_composite_glyph_string_foreground):
15622 Adjust for the change of lispy gstring.
15623
15624 * xdisp.c (handle_composition_prop): Adjust for the change of
15625 lispy gstring. Call a function for auto-composition with the
15626 third arg it->window.
15627 (fill_composite_glyph_string): Adjust for the change of lispy string.
15628 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
15629
15630 * xfaces.c (set_font_frame_param): Adjust for the change of
15631 font_find_for_lface.
15632
15633 * xfont.c (x_font_charset_alist): Move to font.c and rename.
15634 (xfont_registry_charsets): Likewise. Change caller.
15635 (syms_of_xfont): Don't handle x_font_charset_alist.
15636
15637 * xftfont.c: Include "ftfont.h".
15638 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
15639 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
15640 (xftfont_close) [HAVE_LIBOTF]: Close otf.
15641 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
15642 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
15643 Set xftfont_driver.shape to xftfont_shape.
15644
15645 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
15646 the change of lispy gstring.
15647
15648 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15649
15650 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
15651
15652 2008-02-01 Jason Rumney <jasonr@gnu.org>
15653
15654 * w32font.c (w32font_draw): Fill background manually.
15655
15656 2008-02-01 Jason Rumney <jasonr@gnu.org>
15657
15658 * font.c (Qfontp): Remove unused symbol.
15659 (QCantialias): New symbol.
15660 (syms_of_font): Define it.
15661 (font_property_table): Set a validator for QCantialias.
15662
15663 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
15664 Define if not already.
15665 (QCfamily): Share with xfaces.c.
15666 (Qstandard, Qsubpixel, Qnatural): New symbols.
15667 (syms_of_w32font): Define them. Don't define QCfamily here.
15668 (w32_antialias_type, lispy_antialias_type): New functions.
15669 (w32_enumfont_pattern_entity): New arg requested_font.
15670 Set antialias parameter if non-default was requested.
15671 (fill_in_logfont): Fill in lfQuality if :antialias specified.
15672
15673 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15674
15675 * lread.c (read1): Undo the previous change.
15676
15677 2008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
15678
15679 * frame.c (Fdelete_frame): Call font_update_drivers only when
15680 USE_FONT_BACKEND is defined.
15681
15682 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15683
15684 * font.h (struct font_bitmap): New member bits_per_pixel.
15685 (struct font_driver): New members start_for_frame and end_for_frame.
15686 (struct font_data_list): New struct.
15687 (font_put_frame_data, font_get_frame_data): Extern them.
15688
15689 * frame.h (struct frame): New member font_data_list.
15690
15691 * font.c (font_update_drivers): Call driver->start_for_frame and
15692 driver->end_for_frame at proper timings.
15693 (font_put_frame_data, font_get_frame_data): New functions.
15694 (Ffont_spec): Add usage in the docstring.
15695
15696 * frame.c (make_frame): Initialize f->font_data_list to NULL.
15697 (Fdelete_frame): Call font_update_drivers.
15698
15699 * xftfont.c (struct xftface_info): Delete the member xft_draw.
15700 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
15701 (xftfont_get_xft_draw): New function.
15702 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
15703 (xftfont_end_for_frame): New function.
15704 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
15705
15706 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
15707 Change argument. Cache GCs in the per-frame data.
15708 (struct ftxfont_frame_data): New struct.
15709 (ftxfont_draw_bitmap): New arg gc_fore and flush.
15710 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
15711 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
15712 (ftxfont_end_for_frame): New function.
15713 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
15714
15715 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
15716
15717 2008-02-01 Kenichi Handa <handa@m17n.org>
15718
15719 * xselect.c (Vselection_coding_system)
15720 (Vnext_selection_coding_system): Delete them.
15721 (syms_of_xselect): Don't declare selection-coding-system and
15722 next-selection-coding-system. They are declared in select.el.
15723
15724 2008-02-01 Jason Rumney <jasonr@gnu.org>
15725
15726 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
15727
15728 * w32fns.c: Include imm.h.
15729 (get_composition_string_fn, get_ime_context_fn): New optional
15730 system functions.
15731 (globals_of_w32fns): Load them from imm32.dll.
15732 (ignore_ime_char): New flag.
15733 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
15734 WM_IME_ENDCOMPOSITION messages.
15735
15736 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
15737 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
15738
15739 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15740
15741 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
15742 (READCHAR_REPORT_MULTIBYTE): New macro.
15743 (readchar): New 2nd arg MULTIBYTE.
15744 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
15745 Make symbol's name multibyte according to the multibyteness of the
15746 source.
15747
15748 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15749
15750 * xfaces.c (face_for_overlay_string): Call lookup_face with
15751 correct arguments (fix of synching with the trunk).
15752
15753 2008-02-01 Kenichi Handa <handa@m17n.org>
15754
15755 * font.c (font_prop_validate_symbol, font_prop_validate_style)
15756 (font_prop_validate_non_neg, font_prop_validate_spacing):
15757 Delete argument prop_index.
15758 (font_property_table): Change arguments to validater. Change Callers.
15759 (font_lispy_object): Delete.
15760 (font_at): Use font_find_object instead fo font_lispy_object.
15761
15762 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15763
15764 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
15765 and file names.
15766
15767 2008-02-01 Jason Rumney <jasonr@gnu.org>
15768
15769 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
15770 (font_matches_spec): Remove debug output.
15771 (add_font_entity_to_list): Avoid using substituted fonts.
15772
15773 2008-02-01 Jason Rumney <jasonr@gnu.org>
15774
15775 * doc.c (Fsnarf_documentation):
15776 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
15777
15778 2008-02-01 Miles Bader <miles@gnu.org>
15779
15780 * dispextern.h (struct glyph_row): Only define "clip" field if
15781 HAVE_WINDOW_SYSTEM is defined.
15782
15783 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
15784
15785 Fix up multi-tty merge.
15786
15787 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
15788 and indentation.
15789
15790 * xfaces.c (free_realized_face, clear_face_gcs):
15791 Include font_done_for_face in the input_blocked section, just in case.
15792
15793 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
15794 (get_char_face_and_encoding): Undo last change and remove the *other*
15795 duplicate definition (i.e. keep the one that's better scoped and that
15796 includes code for the font-backend).
15797
15798 * terminal.c (create_terminal): Default keyboard_coding to
15799 `no-conversion' and terminal_coding to `undecided'.
15800
15801 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
15802
15803 * fontset.c (free_realized_fontsets): Check that the table entry does
15804 contain a fontset before trying to compare it to `base'.
15805
15806 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
15807 syms_of_charset, and syms_of_coding earlier because init_window_once
15808 now needs Vcoding_system_hash_table to be setup.
15809
15810 * coding.h (default_buffer_file_coding): Remove.
15811
15812 * coding.c (default_buffer_file_coding): Remove.
15813 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
15814 than ->symbol, and use the terminal-local coding system.
15815 (syms_of_coding): Don't setup the coding-systems that are not
15816 terminal-local.
15817 (Fdefine_coding_system_internal): Use XCAR/XCDR.
15818
15819 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
15820 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
15821
15822 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
15823 in chartab.c and were re-added here by mistake.
15824 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
15825
15826 * doc.c (Fsnarf_documentation):
15827 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
15828 src to etc.
15829
15830 * ChangeLog.10: Add mistakenly removed entry.
15831
15832 2008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
15833
15834 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
15835
15836 2008-02-01 Miles Bader <miles@gnu.org>
15837
15838 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
15839 Add extra args to FACE_FOR_CHAR.
15840
15841 2008-02-01 Kenichi Handa <handa@m17n.org>
15842
15843 * keymap.c (where_is_internal_1): If key is a cons, store the copy
15844 in sequence.
15845
15846 * chartab.c (map_sub_char_table, map_char_table): If the range
15847 contains just one character, call the function with that character
15848 even if the depth is not 3.
15849
15850 2008-02-01 Jason Rumney <jasonr@gnu.org>
15851
15852 * w32font.c (w32font_text_extents): Calculate metrics for the
15853 whole string.
15854
15855 2008-02-01 Jason Rumney <jasonr@gnu.org>
15856
15857 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
15858
15859 2008-02-01 Jason Rumney <jasonr@gnu.org>
15860
15861 * w32term.c (x_set_glyph_string_clipping): Use
15862 get_glyph_string_clip_rects.
15863 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
15864 Adjust for the change of struct glyph_string.
15865
15866 * w32font.c (w32font_draw): Do clipping here.
15867
15868 2008-02-01 Kenichi Handa <handa@m17n.org>
15869
15870 * xftfont.c (xftfont_draw): Adjust for the change of struct
15871 glyph_string.
15872
15873 * xterm.c (x_set_glyph_string_clipping): Use
15874 get_glyph_string_clip_rects.
15875 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
15876 Adjust for the change of struct glyph_string.
15877
15878 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
15879 the resulting clip(s}.
15880 (expose_overlaps): Add arg r. Change callers. Set it to
15881 row->clip temporarily.
15882 (expose_window): Redraw rows overlapping the exposed area.
15883
15884 * dispextern.h (struct glyph_row): New member clip.
15885 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
15886 clip_height, new member clip, and num_clips.
15887
15888 2008-02-01 Kenichi Handa <handa@m17n.org>
15889
15890 * data.c (Fchar_or_string_p): Fix docstring.
15891
15892 2008-02-01 Kenichi Handa <handa@m17n.org>
15893
15894 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
15895 create a temporary XftDraw object.
15896
15897 2008-02-01 Kenichi Handa <handa@m17n.org>
15898
15899 * font.c (Ffontp): Fix docstring.
15900
15901 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
15902 strong evidence of ISO-2022.
15903
15904 2008-02-01 Kenichi Handa <handa@m17n.org>
15905
15906 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
15907 SYNTAX_ENTRY_FOLLOW_PARENT.
15908
15909 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
15910
15911 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
15912 its type.
15913 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
15914 Update to the new type of weak_hash_tables and next_weak.
15915
15916 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
15917 a plain C pointer to Lisp_Hash_Table.
15918
15919 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
15920 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
15921 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
15922 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
15923 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
15924 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
15925 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
15926 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
15927 (GC_EQ): Remove since they've been identical to their non-GC_
15928 alter-egos ever since the markbit was eradicated.
15929
15930 * alloc.c:
15931 * buffer.c:
15932 * buffer.h:
15933 * data.c:
15934 * fileio.c:
15935 * filelock.c:
15936 * fns.c:
15937 * frame.h:
15938 * lisp.h:
15939 * macterm.c:
15940 * print.c:
15941 * process.c:
15942 * w32fns.c:
15943 * w32menu.c:
15944 * w32term.c:
15945 * xfns.c:
15946 * xmenu.c:
15947 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
15948
15949 2008-02-01 Kenichi Handa <handa@m17n.org>
15950
15951 * chartab.c (map_sub_char_table): Make it work for the top-level
15952 char-table. Fix handling of parent char-table.
15953 (map_char_table): Adjust for the above change.
15954
15955 2008-02-01 Jason Rumney <jasonr@gnu.org>
15956
15957 * w32font.c (Qgdi): Rename from Qw32.
15958
15959 2008-02-01 Jason Rumney <jasonr@gnu.org>
15960
15961 * w32bdf.c (get_quoted_string): Make function static.
15962
15963 2008-02-01 Kenichi Handa <handa@m17n.org>
15964
15965 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
15966 bigger ascent and descent than those of the font, use them as
15967 font's ascent and descent.
15968
15969 2008-02-01 Kenichi Handa <handa@m17n.org>
15970
15971 * Makefile.in (${lispsource}international/charprop.el): Move this
15972 target within "#ifdef HAVE_UNIDATA" and "#endif".
15973
15974 2008-02-01 Kenichi Handa <handa@m17n.org>
15975
15976 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
15977 (shortlisp): Add ../lisp/language/tai-viet.el.
15978
15979 2008-02-01 Ulrich Mueller <ulm@gentoo.org>
15980
15981 * Makefile.in (${lispsource}international/charprop.el): Depend on
15982 temacs${EXEEXT}.
15983
15984 2008-02-01 Jason Rumney <jasonr@gnu.org>
15985
15986 * w32font.c (w32font_close): Delete the GDI font object.
15987
15988 * w32menu.c: Include character.h.
15989
15990 * w32proc.c: Likewise.
15991
15992 * w32select.c: Likewise.
15993
15994 * makefile.w32-in (w32proc.o): Depend on character.h.
15995
15996 2008-02-01 Jason Rumney <jasonr@gnu.org>
15997
15998 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
15999
16000 * w32menu.c (syms_of_w32menu): Likewise.
16001
16002 * w32proc.c (syms_of_ntproc): Likewise.
16003
16004 * w32select.c (syms_of_w32select): Likewise.
16005
16006 * w32term.c (syms_of_w32term): Likewise.
16007
16008 2008-02-01 Jason Rumney <jasonr@gnu.org>
16009
16010 * w32font.c (w32font_draw): Delete brush after using it.
16011
16012 2008-02-01 Jason Rumney <jasonr@gnu.org>
16013
16014 * w32font.c (w32font_open): Don't set font_idx.
16015 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
16016 to font settings.
16017 (w32font_draw): Fill background explicitly.
16018
16019 2008-02-01 Jason Rumney <jasonr@gnu.org>
16020
16021 * w32term.c (w32_initialize): Don't call w32font_initialize.
16022
16023 * w32font.c (w32font_info): Remove subranges.
16024 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
16025 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
16026 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
16027 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
16028 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
16029 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
16030 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
16031 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
16032 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
16033 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
16034 New symbols.
16035 (font_callback_data): New struct.
16036 (w32font_list, w32font_match): Use it.
16037 (w32font_open): Don't populate subranges.
16038 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
16039 (w32font_encode_char): Always return unicode code-point as-is.
16040 (w32font_text_extents): Supply a transformation matrix to
16041 GetGlyphOutline. Never look up by glyph index. Avoid looping
16042 twice. Use unicode version of GetTexExtentPoint32 instead of
16043 glyph index version.
16044 (set_fonts_frame): Remove.
16045 (w32_enumfont_pattern_entity): Add frame parameter, use it to
16046 set frame parameter. Use backward compatible fake foundries.
16047 Save generic family in extra slot under QCfamily. Make width slot
16048 constant. Save QCspacing value. Save list of scripts instead of
16049 binary subranges.
16050 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
16051 (add_font_entity_to_list): Use font_callback_data struct. Filter
16052 unwanted fonts.
16053 (add_one_font_entity_to_list): Use font_callback_data struct.
16054 (w32_registry): Default to iso10646_1.
16055 (fill_in_logfont): Use dpi from extra slot. Don't bother with
16056 string font registries. Don't fill in font name if it is a generic
16057 family name, fill family instead. Use spacing, family and script
16058 extra info to fill pitch, family and charset fields.
16059 (list_all_matching_fonts): Use font_callback_data struct.
16060 (unicode_range_for_char): Remove.
16061 (font_supported_scripts): New function.
16062 (w32font_initialize): Remove.
16063 (syms_of_w32font): Update which symbols are defined.
16064
16065 2008-02-01 Jason Rumney <jasonr@gnu.org>
16066
16067 * font.c (font_pixel_size): Reverse assq_no_quit args.
16068
16069 * w32term.h (FONT_WIDTH): Report max width, not average.
16070 (FONT_MAX_WIDTH): Remove.
16071 (FONT_AVG_WIDTH): New macro.
16072
16073 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
16074 redefinition of FONT_WIDTH.
16075
16076 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
16077 (w32_cache_char_metrics): Use FONT_WIDTH.
16078
16079 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
16080
16081 2008-02-01 Jason Rumney <jasonr@gnu.org>
16082
16083 * w32font.c (w32font_open): Make lfHeight negative.
16084
16085 * w32fns.c (x_default_font_parameter): Use new style font name.
16086 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
16087
16088 2008-02-01 Jason Rumney <jasonr@gnu.org>
16089
16090 * w32font.c (QCsubranges): New symbol.
16091 (w32font_open, w32font_has_char): Get subranges from subproperty
16092 of extra.
16093 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
16094 (syms_of_w32font): Define :subranges symbol.
16095
16096 * font.c (font_put_extra): Expose externally.
16097
16098 * font.h (font_put_extra): Move declaration from font.c.
16099
16100 * font.c (Ffont_get): Use font driver to determine otf capability.
16101 (adjust_anchor): Check if driver defines anchor_point before using.
16102
16103 * w32font.c (w32font_open): Handle size, height and pixel_size better.
16104 (w32font_draw): Use options.
16105 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
16106 Fix detection of truetype fonts.
16107 (registry_to_w32_charset): Handle charsets other than iso8859-1
16108 expressed as lisp symbols.
16109 (w32_registry): Express charset as lisp symbol.
16110 (fill_in_logfont): Reverse pixel and point height logic.
16111 Don't set width here. Set quality to default.
16112
16113 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
16114 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
16115
16116 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
16117 Remove redundant loop and allocation.
16118
16119 * makefile.w32-in (font.o, w32font.o): New objects.
16120 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
16121 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
16122
16123 * xdisp.c (fill_composite_glyph_string): Make the first arg to
16124 STORE_XCHARB a valid l-value.
16125
16126 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
16127 calculations for non-Truetype fonts.
16128 (x_draw_glyph_string): Sync with xterm.c.
16129 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
16130 Remove redundant code.
16131 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
16132
16133 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
16134 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
16135
16136 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
16137 (x_to_w32_charset, w32_to_x_charset): Expose externally.
16138
16139 * w32font.c: New file for w32 font backend.
16140
16141 2008-02-01 Kenichi Handa <handa@m17n.org>
16142
16143 * term.c: Don't include "buffer.h" twice.
16144
16145 2008-02-01 Kenichi Handa <handa@m17n.org>
16146
16147 * character.c (Funibyte_string): New function.
16148 (syms_of_character): Defsubr it.
16149
16150 2008-02-01 Jason Rumney <jasonr@gnu.org>
16151
16152 * w32term.c [USE_FONT_BACKEND]:
16153 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
16154 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
16155 (x_draw_glyph_string, x_draw_glyph_string_foreground)
16156 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
16157 (x_free_frame_resources): Sync with xterm.c.
16158
16159 2008-02-01 Andreas Schwab <schwab@suse.de>
16160
16161 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
16162 char-table size.
16163
16164 2008-02-01 Kenichi Handa <handa@m17n.org>
16165
16166 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
16167
16168 2008-02-01 Kenichi Handa <handa@m17n.org>
16169
16170 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
16171 font_otf_gpos, add font_drive_otf.
16172
16173 * fontset.c (fontset_find_font): Pay attention to font size
16174 specified for a font.
16175 (reorder_font_vector): Check contents of font_def.
16176
16177 * font.c (struct otf_list): Delete it.
16178 (otf_list): Make it a lisp variable.
16179 (otf_open): Use lispy otf_list.
16180 (generate_otf_features): Rename from parse_gsub_gpos_spec.
16181 (check_otf_features): New function.
16182 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
16183 New functions.
16184 (font_drive_otf): New function merging font_otf_gsub and
16185 font_otf_gpos.
16186 (font_open_for_lface): New arg spec. Change argument order.
16187 (font_load_for_face): Adjust for the change of font_open_for_lface.
16188 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
16189 Ffont_otf_gpos.
16190 (syms_of_font): Staticpro otf_list. Delete defsubr of
16191 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
16192
16193 * xfaces.c (set_font_frame_param): Adjust for the change of
16194 font_open_for_lface.
16195
16196 * font.h (font_open_for_lface): Adjust prototype.
16197 (struct font_driver): Delete members otf_gsub and otf_gpos, add
16198 member otf_drive.
16199 (font_otf_gsub, font_otf_gpos): Delete externs.
16200 (font_drive_otf): Extern it.
16201
16202 2008-02-01 Kenichi Handa <handa@m17n.org>
16203
16204 * font.c (font_at): If the window W is not on a window system,
16205 return Qnil.
16206
16207 * coding.c (produce_chars, encode_coding): Don't call
16208 insert_from_gap if no characters to produce.
16209
16210 2008-02-01 Kenichi Handa <handa@m17n.org>
16211
16212 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
16213 Fclear_face_cache.
16214
16215 * xfaces.c (face_for_font): Check also face->font==font->font.font.
16216
16217 2008-02-01 Miles Bader <miles@gnu.org>
16218
16219 * emacs.c (main): Change default value of `enable_font_backend' to 1.
16220 Parse "--disable-font-backend" option.
16221 (standard_args): Add "--disable-font-backend" option.
16222
16223 2008-02-01 Kenichi Handa <handa@m17n.org>
16224
16225 * fontset.c (fontset_find_font): New function.
16226 (fontset_font): Use fontset_find_font.
16227 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
16228 Register the specified font for all Latin characters.
16229 (new_fontset_from_font): Register the specified font for all Latin
16230 characters.
16231 (dump_fontset): For a realized fontset, include the base fontset
16232 name in the returned vector.
16233
16234 2008-02-01 Kenichi Handa <handa@m17n.org>
16235
16236 * character.h (CHAR_STRING): Cast C to unsigned on calling
16237 char_string.
16238
16239 * character.c (char_string): Type of arg C changed to unsigned.
16240 Signal an error if C is an invalid character code.
16241
16242 * editfns.c (general_insert_function, Fchar_to_string):
16243 Use CHARACTERP, not INTEGERP.
16244
16245 2008-02-01 Kenichi Handa <handa@m17n.org>
16246
16247 * character.h (MIN_MULTIBYTE_LEADING_CODE)
16248 (MAX_MULTIBYTE_LEADING_CODE): New macros.
16249
16250 * regex.c (analyse_first): Fix for multibyte characters in "case
16251 charset:" and "case categoryspec:".
16252
16253 2008-02-01 Andreas Schwab <schwab@suse.de>
16254
16255 * Makefile.in (LIBES): Move standard libraries to the end.
16256
16257 2008-02-01 Kenichi Handa <handa@m17n.org>
16258
16259 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
16260 nonzero, don't shrink the buffer nextb.
16261
16262 * buffer.h (struct buffer_text): New member inhibit_shrinking.
16263
16264 * coding.c (coding_alloc_by_making_gap): New arg offset.
16265 (alloc_destination): Call coding_alloc_by_making_gap with the arg
16266 offset.
16267 (decode_coding_iso_2022): Update coding->safe_charsets.
16268 (decode_coding_gap): Temporarily set
16269 current_buffer->text->inhibit_shrinking to 1.
16270
16271 2008-02-01 Kenichi Handa <handa@m17n.org>
16272
16273 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
16274 indexing into elements of s->cmp and s->char2b.
16275
16276 2008-02-01 Juanma Barranquero <lekktu@gmail.com>
16277
16278 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
16279
16280 2008-02-01 Kenichi Handa <handa@m17n.org>
16281
16282 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
16283 target_multibyte instead of multibyte.
16284 (re_match_2_internal): Call bcmp_translate with target_multibyte.
16285 (bcmp_translate): Change the argument name from multibyte to
16286 target_multibyte.
16287
16288 2008-02-01 Kenichi Handa <handa@m17n.org>
16289
16290 These changes are to compile a regexp into a pattern that can be
16291 used both for multibyte and unibyte targets.
16292
16293 * Makefile.in (search.o): Depend on charset.h.
16294
16295 * character.c (multibyte_char_to_unibyte_safe): New function.
16296
16297 * search.c: Include "charset.h".
16298 (compile_pattern_1): Delete argument multibyte. Don't set
16299 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
16300 (compile_pattern): Don't compare cp->buf.target_multibyte.
16301 Compare cp->buf.charset_unibyte.
16302 (compile_pattern): Set cp->buf.target_multibyte.
16303
16304 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
16305
16306 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
16307
16308 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
16309 multibyte. Change callers.
16310 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
16311 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
16312 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
16313 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
16314 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
16315 (regex_compile): Make the compiled pattern usable both for
16316 multibyte and unibyte targets.
16317 (analyse_first): Make the fastmap usable both for multibyte and
16318 unibyte targets.
16319 (TRANSLATE_VIA_MULTIBYTE): Delete.
16320 (re_match_2_internal): Pay attention to the case that the
16321 multibyteness of bufp and target may be different.
16322
16323 2008-02-01 Kenichi Handa <handa@m17n.org>
16324
16325 * xdisp.c (x_produce_glyphs): When a font is not found, make the
16326 empty box occupy at least one column width.
16327
16328 2008-02-01 Miles Bader <miles@gnu.org>
16329
16330 * Makefile.in: Remove redundant HAVE_XFT clause.
16331
16332 2008-02-01 Kenichi Handa <handa@m17n.org>
16333
16334 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
16335
16336 2008-02-01 Kenichi Handa <handa@m17n.org>
16337
16338 * fontset.c (Finternal_char_font): Fix for the case of POSITION
16339 being nil.
16340
16341 2008-02-01 Kenichi Handa <handa@m17n.org>
16342
16343 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
16344
16345 2008-02-01 Kenichi Handa <handa@m17n.org>
16346
16347 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
16348
16349 2008-02-01 Kenichi Handa <handa@m17n.org>
16350
16351 * search.c (simple_search): Fix previous change.
16352
16353 2008-02-01 Kenichi Handa <handa@m17n.org>
16354
16355 * xftfont.c (ftfont_font_format): Extern declaration.
16356
16357 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
16358
16359 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
16360 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
16361
16362 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
16363 (ftfont_font_format): Fix previous change.
16364
16365 * font.h (Ffont_xlfd_name): EXFUN it.
16366
16367 * font.c (font_parse_xlfd): Fix the array size of `f'.
16368 (register_font_driver): Use EQ to compare driver->type.
16369
16370 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
16371 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
16372 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
16373
16374 2008-02-01 Kenichi Handa <handa@m17n.org>
16375
16376 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
16377 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
16378
16379 2008-02-01 Kenichi Handa <handa@m17n.org>
16380
16381 * xfont.c (xfont_open): Set font->format.
16382
16383 * xftfont.c (xftfont_open): Set font->format.
16384
16385 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
16386 (ftfont_list): Include FC_FONTFORMAT in FcObject.
16387 (ftfont_open): Set font->format.
16388 (ftfont_font_format): New function.
16389
16390 * font.h (struct font): New member format.
16391
16392 * font.c (Qopentype): New variable.
16393 (syms_of_font): Defsym it.
16394 (Fquery_font): Change the format of the last element of the return
16395 value.
16396
16397 2008-02-01 Kenichi Handa <handa@m17n.org>
16398
16399 * xfns.c (xic_create_xfontset): Try the default fontset name as a
16400 last resort.
16401
16402 2008-02-01 Kenichi Handa <handa@m17n.org>
16403
16404 * coding.c (detect_coding_charset): Fix detection of multi-byte
16405 charset.
16406
16407 2008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
16408
16409 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
16410
16411 2008-02-01 Kenichi Handa <handa@m17n.org>
16412
16413 * xdisp.c (get_next_display_element): Set it->face_id for the
16414 first component of a composition.
16415 (x_produce_glyphs): Check if the font is changed or not for composition.
16416
16417 2008-02-01 Kenichi Handa <handa@m17n.org>
16418
16419 * fontset.c (Qlatin): New variable.
16420 (syms_of_fontset): Define it as a lisp symbol.
16421 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
16422
16423 2008-02-01 Kenichi Handa <handa@m17n.org>
16424
16425 * font.c (font_unparse_fcname): Pay attention to the case that
16426 some of font property is a null string.
16427
16428 2008-02-01 Kenichi Handa <handa@m17n.org>
16429
16430 * term.c: Include "composite.h".
16431 (encode_terminal_code): Output all components of composition.
16432 Check the size of encode_terminal_src.
16433 (produce_glyphs): For composition, call produce_composite_glyph.
16434 (append_composite_glyph, produce_composite_glyph): New functions.
16435
16436 * xdisp.c (x_produce_glyphs): In handling composition, if a font
16437 is not found, get font_info from the current ascii face.
16438
16439 2008-02-01 Kenichi Handa <handa@m17n.org>
16440
16441 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
16442 buffer-file-name to Qnil before calling insert_from_buffer.
16443
16444 * font.c (font_unparse_fcname): Pay attention to the case that
16445 foundry is a null string.
16446
16447 2008-02-01 Kenichi Handa <handa@m17n.org>
16448
16449 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
16450
16451 * font.c (Qunicode_sip): New variable.
16452 (syms_of_font): Declare it as a Lisp symbol.
16453
16454 * font.h (Qunicode_sip): Extern it.
16455
16456 2008-02-01 Kenichi Handa <handa@m17n.org>
16457
16458 * composite.c (get_composition_id): Pay attention to TAB component.
16459
16460 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
16461 TAB. Adjust for the change of s->char2b which always points to
16462 the first element of allocated memory.
16463
16464 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
16465
16466 * xdisp.c (handle_composition_prop): Set it->c to the first
16467 non-TAB component.
16468 (fill_composite_glyph_string): Change argument.
16469 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
16470 (x_produce_glyphs): Fix handling of left/right padding.
16471
16472 2008-02-01 Kenichi Handa <handa@m17n.org>
16473
16474 * coding.c (detect_coding_system): Fix for handling off
16475 inhibit_iso_escape_detection. Fix for the case that no coding
16476 system is defined for a specific coding category.
16477
16478 2008-02-01 Kenichi Handa <handa@m17n.org>
16479
16480 * font.c (font_matching_entity): Delete unused local var.
16481
16482 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
16483 opening a font.
16484
16485 * fileio.c (Finsert_file_contents): On recovering a file, assume
16486 Unix-like eol.
16487 (choose_write_coding_system): On auto-saving a file, force
16488 Unix-like eol.
16489
16490 * coding.c (setup_coding_system): Fix setting of
16491 coding->common_flags based on eol_type.
16492 (coding_inherit_eol_type): If PARENT is not nil, be sure to
16493 inherit from it.
16494
16495 2008-02-01 Kenichi Handa <handa@m17n.org>
16496
16497 * alloc.c (NSTATICS): Increas to 0x600.
16498
16499 2008-02-01 Kenichi Handa <handa@m17n.org>
16500
16501 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
16502 (ftfont_list): Don't check :name property.
16503 (ftfont_match): New function.
16504 (ftfont_pattern_entity): If the pattern doesn't contain
16505 FC_SPACING, don't assume FC_MONO.
16506
16507 * font.h (struct font_driver): New member `match'.
16508 (font_update_drivers): Adjust prototype.
16509
16510 * font.c (font_parse_fcname, font_parse_name): Don't change :name
16511 property of FONT.
16512 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
16513 them unconditionally.
16514 (font_matching_entity): New function.
16515 (font_open_by_name): Try font_matching_entity if exact match is
16516 not found.
16517 (font_update_drivers): Delete the arg FONT. Return a list of
16518 actually used backends. Don't free faces, font caches here.
16519 Don't store data in frame parameters. Don't call x_set_font.
16520 (Ffont_spec): Store :name property as is.
16521 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
16522 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
16523 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
16524 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
16525 Call font->driver->otf_gsub instead of font_otf_gsub.
16526
16527 * frame.c (x_set_font_backend): Do more works that were done in
16528 font_update_drivers before.
16529
16530 * xfont.c (xfont_match): New function.
16531 (xfont_driver): Set xfont_driver.match to xfont_match.
16532 (xfont_draw): Set font in GC if necessary.
16533
16534 * ftxfont.c (ftxfont_match): New function.
16535 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
16536
16537 * xftfont.c (xftfont_match): New function.
16538 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
16539
16540 2008-02-01 Kenichi Handa <handa@m17n.org>
16541
16542 * font.h (struct font): New member scalable.
16543 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
16544 (font_otf_gsub): Adjust prototype.
16545
16546 * font.c (font_otf_capability): Fix handling of the default langsys.
16547 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
16548 Check the contents of SPEC.
16549 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
16550 (check_gstring): New function.
16551 (REPLACEMENT_CHARACTER): New macro.
16552 (font_otf_gsub): New arg alternate_subst. Be sure to set all
16553 glyph codes of GSTRING.
16554 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
16555 (font_prepare_composition): Set cmp->glyph_len.
16556 (font_open_entity): Set font->scalable.
16557 (Ffont_get): Handle :otf property.
16558 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
16559 functions.
16560 (Fquery_font): Use font->font.full_name.
16561 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
16562 Sfont_otf_alternates.
16563
16564 * ftfont.c (ftfont_open): Set font->font.full_name and
16565 font->font.name properly. Fix calculation of font->font.height
16566 and font->min_width.
16567
16568 * ftxfont.c (ftxfont_create_gcs): New function.
16569 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
16570 (ftxfont_draw_backgrond): Fix filling region.
16571 (ftxfont_default_fid): New function.
16572 (ftxfont_open): Set xfont->fid to the return value of
16573 ftxfont_default_fid.
16574 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
16575 (ftxfont_done_face): Free only GCs that are created by
16576 ftxfont_create_gcs.
16577 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
16578
16579 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
16580 Clip to src->width, etc (not src->clip_XXX).
16581
16582 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
16583 FontBackend frame parameter.
16584
16585 2008-02-01 Kenichi Handa <handa@m17n.org>
16586
16587 * font.h (struct font_driver_list): New member `on'.
16588 (Fclear_font_cache): EXFUN it.
16589 (font_update_drivers): Extern it.
16590
16591 * font.c (font_unparse_fcname): Fix typo (swidth->width).
16592 (font_list_entities): Check driver_list->on.
16593 (register_font_driver): Initalize `on' member to 0.
16594 (font_update_drivers): New function.
16595 (Fclear_font_cache): Check driver_list->on.
16596
16597 * frame.h (Qfont_backend): Extern it.
16598 (x_set_font_backend): Extern it.
16599
16600 * frame.c (Qfont_backend): New variable.
16601 (frame_parms): New element for font-backend.
16602 (x_set_font_backend): New function.
16603
16604 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
16605 FontBackend frame parameter.
16606 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
16607 x_set_font_backend.
16608
16609 * xfont.c (xfont_list): Don't try listing by :name property if the
16610 name is not for XLFD.
16611
16612 2008-02-01 Kenichi Handa <handa@m17n.org>
16613
16614 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
16615 (LGLYPH_SET_TO): New macros.
16616 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
16617 element of G is vector or not.
16618 (font_at): Extern it.
16619
16620 * font.c: Include window.h.
16621 (font_lispy_object): New function.
16622 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
16623 end of valid glyph.
16624 (font_close_object): Fix getting (struct font *).
16625 (font_at): New function.
16626 (Ffont_get): If FONT is a font-object, get entity from it.
16627 (Ffont_make_gstring): Initialize elements of glyphs with nil.
16628 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
16629 range check.
16630 (Ffont_at): New function.
16631 (syms_of_font): Defsubr Sfont_at.
16632
16633 * xdisp.c (it_props): Move the entry for Qauto_composed to just
16634 before the entry for Qcomposition.
16635 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
16636 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
16637 the font in gstring.
16638 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
16639 LGLYPH_FORM (g) to detect the end of valid glyph.
16640 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
16641 we are composing with gstring.
16642
16643 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
16644 Check if adjustment is vector or not.
16645
16646 * Makefile.in (font.o): Make it depends on window.h.
16647
16648 2008-02-01 Kenichi Handa <handa@m17n.org>
16649
16650 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
16651 adjustment is vector or not.
16652
16653 2008-02-01 Miles Bader <miles@gnu.org>
16654
16655 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
16656
16657 2008-02-01 Kenichi Handa <handa@m17n.org>
16658
16659 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
16660 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
16661 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
16662
16663 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
16664 (DEVICE_DELTA): Fix typo.
16665 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
16666 LGLYPH format.
16667
16668 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
16669 the change of LGLYPH format.
16670
16671 2008-02-01 Kenichi Handa <handa@m17n.org>
16672
16673 * ftfont.c (ftfont_list): Fix typo.
16674 (ftfont_build_basic_charsets): Don't include letters with diacritics.
16675
16676 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
16677
16678 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
16679
16680 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
16681 xftface_info is non-NULL.
16682
16683 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
16684
16685 * ftfont.c (ftfont_list): Move misplaced #endif.
16686
16687 2008-02-01 Kenichi Handa <handa@m17n.org>
16688
16689 * ftfont.c (ftfont_list): Pay attention to the case that
16690 FC_CAPABILITY is not defined.
16691
16692 2008-02-01 Kenichi Handa <handa@m17n.org>
16693
16694 * xftfont.c (xftfont_open): Set charset related members to -1.
16695
16696 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
16697 QCname.
16698 (ftfont_open): Set charset related members to -1.
16699
16700 * fontset.c (Votf_script_alist): New variable.
16701 (syms_of_fontset): Initialize it.
16702 (fontset_font): Delete unused variable.
16703
16704 * fontset.h (Votf_script_alist): Extern it.
16705
16706 * font.c (font_find_for_lface): Optimize code.
16707
16708 * font.h (font_close_object, font_merge_old_spec): Extern them.
16709
16710 2008-02-01 Kenichi Handa <handa@m17n.org>
16711
16712 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
16713 (syms_of_font): Initialize them.
16714 (font_pixel_size): Allow float value in dpi.
16715 (font_prop_validate_type): Delete.
16716 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
16717 Change caller.
16718 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
16719 (font_prop_validate_extra): Delete.
16720 (font_prop_validate_spacing): New function.
16721 (font_property_table): Add elements for all known properties.
16722 (get_font_prop_index): Rename from check_font_prop_name. New
16723 argument FROM. Change caller.
16724 (font_prop_validate): Validate all known properties.
16725 (font_put_extra): Delete argument force. Change caller.
16726 (font_expand_wildcards): Make it static. Fix the way of shrinking
16727 the possible range.
16728 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
16729 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
16730 Change caller.
16731 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
16732 (font_parse_fcname): Delete argument merge. Fix parsing of point
16733 size. Don't validate properties values here. Change caller.
16734 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
16735 (font_open_by_name): Delete unused variable.
16736 (Ffont_spec): Likewise. Validate property values.
16737 (Ffont_match_p): New function.
16738
16739 * font.h (QCscalable): Extern it.
16740 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
16741
16742 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
16743
16744 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
16745 (xfont_list_pattern): New function.
16746 (xfont_list): Use xfont_list_pattern.
16747
16748 2008-02-01 Kenichi Handa <handa@m17n.org>
16749
16750 * font.h (Flist_fonts): EXFUN it.
16751
16752 2008-02-01 Jason Rumney <jasonr@gnu.org>
16753
16754 * w32term.c (w32_initialize): Add back smoothing_type and
16755 smoothing_enabled definitions.
16756
16757 2008-02-01 Kenichi Handa <handa@m17n.org>
16758
16759 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
16760 s->face->font on determining underline position.
16761
16762 2008-02-01 Kenichi Handa <handa@m17n.org>
16763
16764 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
16765 (font_has_char): Accept font-object too.
16766 (font_find_for_lface): Try at first with a size specified in face.
16767
16768 2008-02-01 Kenichi Handa <handa@m17n.org>
16769
16770 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
16771 font_open_by_name.
16772
16773 2008-02-01 Kenichi Handa <handa@m17n.org>
16774
16775 * font.h (QCspacing, QCdpi): Extern them.
16776 (enum font_spacing): New enum.
16777 (FONT_PIXEL_SIZE_QUANTUM): New macro.
16778
16779 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
16780 (QCspacing, QCdpi): New variables.
16781 (syms_of_font): Initialize them.
16782 (font_pixel_size): New function.
16783 (font_put_extra): New function.
16784 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
16785 in FONT_EXTRA.
16786 (font_parse_fcname): Handle enumerated values (e.g. bold).
16787 Fix handling font size. Add QCname property that contains only
16788 unknown properties.
16789 (font_score): Change argument. Change caller. Pay attention to
16790 FONT_PIXEL_SIZE_QUANTUM.
16791 (font_sort_entites, font_list_entities, font_find_for_lface)
16792 (font_open_for_lface, font_open_by_name): Fix handling of font size.
16793 (Ffont_spec): Add QCname property that contains only unknown properties.
16794
16795 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
16796 include weight in listing pattern, instead check weight of each
16797 listed font. Don't include scalable in pattern. Pay attention to
16798 FONT_PIXEL_SIZE_QUANTUM.
16799
16800 2008-02-01 Kenichi Handa <handa@m17n.org>
16801
16802 * font.c (font_parse_fcname): Fix parsing of point-size.
16803 (font_unparse_fcname): Produce symbolic names for style properties.
16804 (font_list_entities): Handle float size correctly.
16805 (font_open_by_name): Prefer `normal' property values if the name
16806 doesn't specify them.
16807
16808 * fontset.c (Finternal_char_font): Use font_get_name, not
16809 Ffont_xlfd_name.
16810
16811 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
16812 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
16813 pattern. Don't force scalable.
16814
16815 * xftfont.c (xftfont_open): For generating a name, start from
16816 96-byte buffer.
16817
16818 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
16819
16820 * frame.h (x_new_fontset2): Fix prototype.
16821
16822 2008-02-01 Kenichi Handa <handa@m17n.org>
16823
16824 * font.h (struct font_driver): Delete member parse_name.
16825 (font_match_p, font_get_spec, font_parse_fcname)
16826 (font_unparse_fcname): Extern them.
16827 (font_get_name): Adjust prototype.
16828
16829 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
16830 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
16831 (font_expand_wildcards): Fix handling ENCODING field. Avoid
16832 unnecessary checks for weight, slant, and swidth.
16833 (font_parse_fcname): New function.
16834 (font_unparse_fcname): New function.
16835 (font_parse_name): New function.
16836 (font_match_p): New function.
16837 (font_get_name): Change return value to Lisp string.
16838 (font_get_spec): New function.
16839 (Qunspecified, Qignore_defface): Don't extern them.
16840 (font_find_for_lface): Assume that LFACE is fully specified.
16841 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
16842 object, use it for FACE.
16843 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
16844 driver->parse_name.
16845 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
16846
16847 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
16848 prototype.
16849
16850 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
16851 argument F. Don't call Fnew_fontset. Instead, directly call
16852 make_fontset.
16853
16854 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
16855
16856 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
16857 of x_new_fontset2.
16858
16859 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
16860 (Qsans__serif): New variables.
16861 (ftfont_generic_family_list): New variable.
16862 (syms_of_ftfont): Initialize the above variables.
16863 (ftfont_pattern_entity): Delete argument NAME.
16864 (ftfont_list_generic_family): New function.
16865 (ftfont_parse_name): Delete this function.
16866 (ftfont_list): Try generic family only when FcFontList found no font.
16867 (ftfont_list_family): Fix args to FcObjectSetBuild.
16868
16869 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
16870 object in attrs[LFACE_FONT_INDEX].
16871 (set_lface_from_font_name): Cancel all changes for font-backend.
16872 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
16873 function.
16874 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
16875 font object in QCfont attribute.
16876 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
16877 (realize_default_face) [USE_FONT_BACKEND]: Call
16878 set_lface_from_font_and_fontset.
16879
16880 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
16881 "fixed", and signal error here if no suitable font was found.
16882
16883 * xfont.c (xfont_parse_name): Delete this function.
16884
16885 * xftfont.c (xftfont_open): Change coding style of error
16886 handling. Generate fontconfig's fontname pattern.
16887
16888 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
16889 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
16890
16891 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
16892 Both args FONTSET and FONT_OBJECT must be existing ones.
16893
16894 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16895
16896 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
16897
16898 2008-02-01 Kenichi Handa <handa@m17n.org>
16899
16900 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
16901
16902 * font.h (struct font): Fix typo.
16903
16904 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
16905 XLFD_XXX_INDEX.
16906 (enum xlfd_field_mask): New enum.
16907 (intern_font_field): Changed argument. Change caller. If digits
16908 are followed by non-digits, return a symbol.
16909 (font_expand_wildcards): New function.
16910 (font_parse_xlfd): Fix wildcard handling.
16911 (Ffont_spec): If :name is specified, reflect the info in the other
16912 properties.
16913
16914 * ftfont.c (ftfont_pattern_entity): Fix typo.
16915 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
16916 locale.
16917
16918 2008-02-01 Kenichi Handa <handa@m17n.org>
16919
16920 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
16921
16922 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
16923 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
16924 registry doesn't specify encoding part.
16925 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
16926 (font_open_by_name): At first try parsing the name.
16927 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
16928 as Lisp symbols.
16929
16930 * fontset.c (reorder_font_vector): Pay attention to the case that
16931 the 3rd element of font_def is nil.
16932 (fontset_font): For the default fontset, append one more fontset
16933 elements for a script-based font specification. Don't add script
16934 attribute on finding a font.
16935 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
16936 font name.
16937 (fontset_ascii_font): If a font can't be opened, return nil.
16938
16939 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
16940 (ftfont_pattern_entity): New function.
16941 (ftfont_get_cache): Assume that freetype_font_cache is already
16942 initialized.
16943 (ftfont_list): Handle the case that a file is specified in font
16944 name. Use ftfont_pattern_entity to generate entities.
16945 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
16946 (syms_of_ftfont): Initialize freetype_font_cache.
16947
16948 * xftfont.c (xftfont_open): Make the font name fontconfig's
16949 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
16950 (xftfont_close): Free font->font.name if not NULL.
16951
16952 * xfont.c (xfont_list): If script is specified for a font, return
16953 null_vector.
16954 (xfont_list_family): Declare argument type.
16955
16956 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
16957 name, set LFACE_FONT (lface) to nil.
16958
16959 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
16960 return Qnil.
16961
16962 2008-02-01 Kenichi Handa <handa@m17n.org>
16963
16964 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
16965 (standard_args): Add "-enable-font-backend".
16966
16967 2008-02-01 Kenichi Handa <handa@m17n.org>
16968
16969 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
16970 (struct xftdraw_list, xftdraw_list): Delete them.
16971 (register_xftdraw, check_xftdraw): Delete them.
16972 (xftfont_prepare_face): Don't call register_xftdraw.
16973 (xftfont_done_face): Don't call check_xftdraw.
16974 (xftfont_draw): Get background color only when with_background is
16975 nonzero.
16976
16977 * xfont.c (xfont_encode_char): Fix calculation of char2b.
16978
16979 2008-02-01 Kenichi Handa <handa@m17n.org>
16980
16981 These changes are for the new font handling codes.
16982
16983 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
16984 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
16985 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
16986 (FONTSRC, FONTOBJ): New variables.
16987 (obj): Add $(FONTOBJ).
16988 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
16989 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
16990 @LIBOTF_LIBS@.
16991 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
16992 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
16993
16994 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
16995
16996 * character.h (Vscript_representative_chars): Extern it.
16997
16998 * character.c (Vscript_representative_chars): New variable.
16999 (syms_of_character): Declare it as a Lisp variable.
17000
17001 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
17002 enable_font_backend is nonzero, accept the composition method
17003 COMPOSITION_WITH_GLYPH_STRING.
17004
17005 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
17006 enumeration COMPOSITION_WITH_GLYPH_STRING.
17007
17008 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
17009 members clip_x, clip_y, clip_width, and clip_height.
17010 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
17011
17012 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
17013 --enable-font-backend. Call syms_of_font.
17014
17015 * fns.c (assoc_no_quit): New function.
17016
17017 * fontset.h (FONT_INFO_FROM_FACE): New macro.
17018 (face_for_font, new_fontset_from_font)
17019 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
17020
17021 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
17022 (fontset_font, fontset_ascii, face_for_char)
17023 (make_fontset_for_ascii_face, Ffont_info)
17024 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
17025 is nonzero, use font-backend mechanism.
17026 (find_font_encoding): Make it non-static.
17027 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
17028 New functions.
17029
17030 * frame.h (struct frame): New members resx and resy.
17031 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
17032 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
17033
17034 * frame.c [USE_FONT_BACKEND]: Include "font.h".
17035 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
17036
17037 * lisp.h (assoc_no_quit): Extern it.
17038
17039 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
17040 Through out the file, use FONT_INFO_FROM_FACE instead of
17041 FONT_INFO_FROM_ID, use get_per_char_metric instead of
17042 rif->per_char_metric.
17043 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
17044 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
17045 (get_glyph_face_and_encoding, fill_composite_glyph_string)
17046 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
17047 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
17048 nonzero, use font-backend mechanism.
17049 (get_per_char_metric): New function.
17050
17051 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
17052 (set_lface_from_font_name)
17053 (set_font_frame_param, free_realized_face)
17054 (prepare_face_for_display, clear_face_gcs)
17055 (Finternal_set_font_selection_order, realize_x_face)
17056 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
17057 font-backend mechanism.
17058 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
17059 (load_face_font) [USE_FONT_BACKEND]: Abort.
17060 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
17061 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
17062
17063 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
17064 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
17065 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
17066 nonzero, register all available font drivers. Call
17067 x_default_font_parameter for deciding a font.
17068 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
17069
17070 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
17071 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
17072 (x_set_glyph_string_clipping_exactly)
17073 (x_compute_glyph_string_overhangs)
17074 (x_draw_glyph_string_foreground)
17075 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
17076 (x_free_frame_resources) [USE_FONT_BACKEND]: If
17077 enable_font_backend is nonzero, use font-backend mechanism.
17078 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
17079
17080 2008-02-01 Kenichi Handa <handa@m17n.org>
17081
17082 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
17083 system_eol_type.
17084 (syms_of_coding): Initialize system_eol_type.
17085
17086 * process.c (Fset_process_coding_system): Inherit system's eol
17087 format if necessary.
17088
17089 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17090
17091 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
17092
17093 2008-02-01 Kenichi Handa <handa@m17n.org>
17094
17095 * coding.c (decode_eol): Pay attention to buffer relocation in
17096 del_range_2.
17097 (decode_coding): Call decode_eol before restoring undo_list.
17098
17099 2008-02-01 Kenichi Handa <handa@m17n.org>
17100
17101 * charset.c (Fdefine_charset_internal): Fix setting of
17102 emacs_mule_bytes.
17103
17104 2008-02-01 Kenichi Handa <handa@m17n.org>
17105
17106 * keyboard.c (read_char): Check if C is a character or not before
17107 looking up Vkeyboard_translate_table.
17108
17109 2008-02-01 Kenichi Handa <handa@m17n.org>
17110
17111 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
17112 condition to terminate the loop.
17113
17114 2008-02-01 Kenichi Handa <handa@m17n.org>
17115
17116 * coding.c (produce_composition): Compare charbuf[i] instead of
17117 args[i] against 0.
17118 (Fterminal_coding_system): Use EQ to compare Lisp objects.
17119
17120 2008-02-01 Kenichi Handa <handa@m17n.org>
17121
17122 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
17123 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
17124 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
17125 detect_coding.
17126 (emacs_mule_char): Handle old style (Emacs 20) component character
17127 of a composition.
17128 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
17129 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
17130 composition rule.
17131 (decode_coding_emacs_mule): Handle invalid bytes correctly.
17132
17133 2008-02-01 Kenichi Handa <handa@m17n.org>
17134
17135 * coding.c (encode_coding_ccl): Allocate destination dynamically
17136 when necessary.
17137
17138 2008-02-01 Kenichi Handa <handa@m17n.org>
17139
17140 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
17141 the loop. When quitted, show a proper error message.
17142
17143 2008-02-01 Kenichi Handa <handa@m17n.org>
17144
17145 * xterm.c (x_set_glyph_string_clipping_exactly): Set
17146 src->clip_head and src->clip_tail temporarily instead of src->hl.
17147
17148 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
17149 character sequence.
17150 (Fccl_execute_on_string): Use ASET, not XSET.
17151
17152 2008-02-01 Kenichi Handa <handa@m17n.org>
17153
17154 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
17155
17156 2008-02-01 Kenichi Handa <handa@m17n.org>
17157
17158 * coding.c (decode_coding): Fix the condition of terminating the
17159 decoding loop.
17160
17161 2008-02-01 Kenichi Handa <handa@m17n.org>
17162
17163 * data.c (Faset): On setting a character bigger than 255 in a
17164 unibyte string, signal an error instead of make the string multibyte.
17165
17166 2008-02-01 Kenichi Handa <handa@m17n.org>
17167
17168 * charset.c (map_charset_chars): Fix for ascii-compatible charset
17169 made by a mapping table.
17170
17171 2008-02-01 Kenichi Handa <handa@m17n.org>
17172
17173 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
17174 not.
17175 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
17176 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
17177
17178 * xterm.c (x_draw_composite_glyph_string_foreground): Check
17179 s->face is NULL or not.
17180
17181 2008-02-01 Kenichi Handa <handa@m17n.org>
17182
17183 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
17184 (x_draw_glyph_string): Fix drawing of right_overhang and
17185 left_overhang around/on cursor.
17186
17187 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
17188
17189 2008-02-01 Kenichi Handa <handa@m17n.org>
17190
17191 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
17192
17193 2008-02-01 Kenichi Handa <handa@m17n.org>
17194
17195 * coding.c (Fdefine_coding_system_internal)
17196 (Fdefine_coding_system_alias): Avoid a duplicated element in
17197 Vcoding_system_alist.
17198
17199 2008-02-01 Kenichi Handa <handa@m17n.org>
17200
17201 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
17202
17203 * coding.c (Qcoding_system_define_form): New variable.
17204 (syms_of_coding): Intern and staticpro it.
17205 (Fcoding_system_p): Check Qcoding_system_define_form.
17206 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
17207
17208 * coding.h (CODING_SYSTEM_P): If ID is not available, call
17209 Fcoding_system_p.
17210 (CHECK_CODING_SYSTEM): If ID is not available, call
17211 Fcheck_coding_system.
17212 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
17213 Try also Fcheck_coding_system.
17214
17215 2008-02-01 Kenichi Handa <handa@m17n.org>
17216
17217 * coding.c (code_conversion_restore): GCPRO arg.
17218
17219 2008-02-01 Kenichi Handa <handa@m17n.org>
17220
17221 * character.c (lisp_string_width): Check multibyteness of STRING.
17222
17223 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17224
17225 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
17226 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
17227 (decode_mac_font_name): Use decode_coding_c_string instead of
17228 decode_coding.
17229 (x_load_font): Initialize fontp->fontset to -1. Set
17230 fontp->encoding_type.
17231
17232 2008-02-01 Kenichi Handa <handa@m17n.org>
17233
17234 * search.c (search_buffer): Give up BM search on case-fold-search
17235 if one of a target character has a case-equivalence of different
17236 byte length even if that target charcter is an ASCII.
17237 (simple_search): Fix calculation of byte length of matched text.
17238 (boyer_moore): Fix handling of case-equivalent multibyte characters.
17239
17240 2008-02-01 Kenichi Handa <handa@m17n.org>
17241
17242 * coding.c (decode_coding): Fix handling of invalid bytes.
17243
17244 2008-02-01 Kenichi Handa <handa@m17n.org>
17245
17246 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
17247 Unicode characters.
17248
17249 2008-02-01 Kenichi Handa <handa@m17n.org>
17250
17251 * coding.c (encode_coding_object): If a pre-write-conversion
17252 function makes a new buffer, kill it.
17253
17254 2008-02-01 Kenichi Handa <handa@m17n.org>
17255
17256 * coding.c (QCascii_compatible_p): New variable.
17257 (syms_of_coding): Initialize it.
17258 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
17259 calling string_char.
17260 (record_conversion_result): Add `default:' case.
17261 (coding_charset_list): Delete unused variable `coding_type'.
17262 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
17263 property in the plist of the coding system.
17264 (Fcoding_system_put): Check QCascii_compatible_p.
17265
17266 2008-02-01 Miles Bader <miles@gnu.org>
17267
17268 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
17269 removed calculation of frame `f', as it's now used.
17270
17271 2008-02-01 Kenichi Handa <handa@m17n.org>
17272
17273 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
17274 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
17275 (UNIDATA): New variable.
17276 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
17277 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
17278 $(RUN_TEMACS) unconditionally.
17279
17280 2008-02-01 Kenichi Handa <handa@m17n.org>
17281
17282 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
17283 (admindir): New variable.
17284 ($(lispsource)international/charprop.el): New target.
17285
17286 2008-02-01 Miles Bader <miles@gnu.org>
17287
17288 * character.c (chars-in-region): Remove obsolete function.
17289 (syms_of_character): Remove its initialization.
17290
17291 2008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
17292
17293 * w32select.c (validate_coding_system)
17294 (setup_windows_coding_system): New functions.
17295 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
17296 setup_windows_coding_system.
17297 (setup_config, Fw32_get_clipboard_data): Use
17298 validate_coding_system.
17299 (Fx_selection_exists): Move call to setup_config to a place
17300 where signals are allowed.
17301
17302 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
17303 (Fcheck_coding_system): Add declarations.
17304
17305 2008-02-01 Kenichi Handa <handa@m17n.org>
17306
17307 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
17308
17309 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17310
17311 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
17312 string as the second argument for x_new_fontset.
17313
17314 2008-02-01 Kenichi Handa <handa@m17n.org>
17315
17316 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
17317 (encode_coding_object): Use safe_call instead of call2.
17318
17319 2008-02-01 Kenichi Handa <handa@m17n.org>
17320
17321 * fontset.c (Fset_fontset_font): Check family element of a given vector.
17322
17323 * Makefile.in (lisp): Include charprop.el.
17324
17325 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17326
17327 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
17328 Not sure if it's unnecessary.
17329
17330 2008-02-01 Steven Tamm <steventamm@mac.com>
17331
17332 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
17333 some possibly unnecessary fontset checking code that crashed
17334 when creating a new frame.
17335
17336 2008-02-01 Kenichi Handa <handa@m17n.org>
17337
17338 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
17339 lookup_face.
17340
17341 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
17342
17343 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
17344
17345 2008-02-01 Kenichi Handa <handa@m17n.org>
17346
17347 * coding.c: Cancel the change done in HEAD on 2008-02-01.
17348 (coding_charset_list): New function.
17349
17350 * coding.h (coding_charset_list): Extern it.
17351
17352 2008-02-01 Kenichi Handa <handa@m17n.org>
17353
17354 * fontset.c (Fset_fontset_font): Call find_font_encoding with
17355 concatenation of family and registry.
17356
17357 2008-02-01 Kenichi Handa <handa@m17n.org>
17358
17359 * character.h (BYTE8_STRING): Fix typo.
17360
17361 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
17362 string to multibyte (sync to HEAD).
17363
17364 * casefiddle.c (casify_region): Handle changes in byte-length
17365 using replace_range_2 (sync to HEAD).
17366
17367 2008-02-01 Andreas Schwab <schwab@suse.de>
17368
17369 * chartab.c (map_char_table): GCPRO table and arg.
17370
17371 2008-02-01 Kenichi Handa <handa@m17n.org>
17372
17373 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
17374 already at limit.
17375
17376 2008-02-01 Kenichi Handa <handa@m17n.org>
17377
17378 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
17379 instead of fast_c_string_match_ignore_case.
17380 (find_font_encoding): Change argument to Lisp_Object. Use
17381 fast_string_match_ignore_case instead of
17382 fast_c_string_match_ignore_case. Change caller.
17383
17384 2008-02-01 Kenichi Handa <handa@m17n.org>
17385
17386 * xdisp.c (get_next_display_element): In unibyte case, decide to
17387 display in octal form by checking a character by
17388 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
17389
17390 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
17391
17392 * character.c (unibyte_has_multibyte_table): New variable.
17393
17394 * character.h (unibyte_has_multibyte_table): Extern it.
17395 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
17396
17397 2008-02-01 Kenichi Handa <handa@m17n.org>
17398
17399 * coding.c (encode_coding_iso_2022): Fix handling of charset
17400 annotation.
17401
17402 2008-02-01 Kenichi Handa <handa@m17n.org>
17403
17404 * coding.c (setup_coding_system): If coding_system is nil, use
17405 Qundecided.
17406 (Fterminal_coding_system): Return nil if terminal coding system is
17407 `undecided'.
17408 (syms_of_coding): Define coding-system `undecided' here. Setup
17409 terminal_coding as `undecided'.
17410
17411 2008-02-01 Kenichi Handa <handa@m17n.org>
17412
17413 * xdisp.c (message_dolog, set_message_1): Call
17414 unibyte_char_to_multibyte with arg type int.
17415
17416 * lread.c (read1): Fix reading of a char-table.
17417
17418 * print.c (print_object): Include sub char-table in circularities
17419 detection.
17420
17421 2008-02-01 Kenichi Handa <handa@m17n.org>
17422
17423 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
17424 Append the found sequences in car of ARGS instead of prepending.
17425
17426 2008-02-01 Kenichi Handa <handa@m17n.org>
17427
17428 * fileio.c (report_file_error): Make a unibyte string from
17429 strerror (errorno).
17430 (Fsubstitute_in_file_name): Fix the arg to
17431 unibyte_char_to_multibyte. It is evaluated twice.
17432
17433 2008-02-01 Kenichi Handa <handa@m17n.org>
17434
17435 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
17436
17437 2008-02-01 Kenichi Handa <handa@m17n.org>
17438
17439 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
17440 BOM is not found.
17441 (detect_coding, detect_coding_system): Optimization for ISO-2022
17442 when no 8-bit data is found.
17443
17444 2008-02-01 Jason Rumney <jasonr@gnu.org>
17445
17446 * w32fns.c (x_to_w32_font): Update to use new coding struct.
17447
17448 2008-02-01 Kenichi Handa <handa@m17n.org>
17449
17450 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
17451 CHARS.
17452
17453 2008-02-01 Steven Tamm <steventamm@mac.com>
17454
17455 * macterm.c (mac_encode_char): Add charset argument and update
17456 to use encoding_type.
17457 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
17458 switch to pure fontset.
17459 (decode_mac_font_name): Temporarily remove decoding.
17460 (x_font_name_to_mac_font_name): Temporarily remove encoding.
17461 (x_load_font): Temporarily remove encoding.
17462
17463 2008-02-01 Kenichi Handa <handa@m17n.org>
17464
17465 * xfaces.c (Fface_font): If frame is not on a window system,
17466 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
17467 refer to face->font.
17468 (split_font_name_into_vector, build_font_name_from_vector)
17469 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
17470 when HAVE_WINDOW_SYSTEM is defined.
17471
17472 2008-02-01 Kenichi Handa <handa@m17n.org>
17473
17474 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
17475 (x_produce_glyphs): Fix setting of members of cmp in case
17476 cmp->glyph_len is zero.
17477
17478 * fontset.c (Fset_fontset_font): Fix docstring.
17479 (Ffontset_info): Make it backward compatible. New arg ALL.
17480
17481 2008-02-01 Kim F. Storm <storm@cua.dk>
17482
17483 * process.c (read_process_output): Grow decoding_buf when needed;
17484 this could cause a crash in allocate_string and compact_small_strings.
17485
17486 2008-02-01 Kenichi Handa <handa@m17n.org>
17487
17488 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
17489
17490 2008-02-01 Kenichi Handa <handa@m17n.org>
17491
17492 * coding.c (setup_coding_system): Set coding->common_flags
17493 correctly for raw-text.
17494 (consume_chars): On encoding unibyte text by raw-text, don't check
17495 multibyte form.
17496 (encode_coding): On encoding by raw-text, never use translation tables.
17497
17498 * fileio.c (e_write): Short cut for the case of no encoding.
17499
17500 2008-02-01 Kenichi Handa <handa@m17n.org>
17501
17502 * coding.c (detect_coding, detect_coding_system): Delete unused
17503 variables.
17504
17505 2008-02-01 Kenichi Handa <handa@m17n.org>
17506
17507 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
17508 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
17509
17510 2008-02-01 Kenichi Handa <handa@m17n.org>
17511
17512 * coding.c (Ffind_coding_systems_region_internal): Include
17513 raw-text and no-conversion in the result.
17514
17515 2008-02-01 Kenichi Handa <handa@m17n.org>
17516
17517 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
17518 (load_font_get_repertory): Delete unnecessary check of ENCODING of
17519 FONT_DEF.
17520 (font_def_arg, add_arg, from_arg, to_arg): New args.
17521 (set_fontset_font): Change argument.
17522 (Fset_fontset_font): Fix for the case that TARGET is a script
17523 name and charset name.
17524 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
17525
17526 2008-02-01 Kenichi Handa <handa@m17n.org>
17527
17528 * fontset.c (fontset_font): Rename from fontset_face. Change return
17529 value.
17530 (face_suitable_for_char_p, face_for_char): Adjust for the change
17531 of fontset_font.
17532 (make_fontset_for_ascii_face): Fix setting of the fontset element
17533 for ASCII.
17534 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
17535 to get a font name.
17536 (Ffontset_info): Adjust for the change of fontset_font.
17537
17538 * coding.c (emacs_mule_char): Check invalid code more rigidly.
17539
17540 * character.h (LEADING_CODE_LATIN_1_MIN)
17541 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
17542
17543 2008-02-01 Kenichi Handa <handa@m17n.org>
17544
17545 * editfns.c (check_translation): New function.
17546 (Ftranslate_region_internal): Handle M:N mapping.
17547
17548 2008-02-01 Kenichi Handa <handa@m17n.org>
17549
17550 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
17551
17552 2008-02-01 Kenichi Handa <handa@m17n.org>
17553
17554 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
17555 goto invalid_code.
17556 (decode_coding_iso_2022): Fix handling of invalid designation.
17557
17558 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
17559 after calling code_conversion_save.
17560
17561 2008-02-01 Kenichi Handa <handa@m17n.org>
17562
17563 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
17564
17565 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
17566
17567 * fontset.c: Include "intervals.h".
17568 (fontset_face): Fix comparing of Lisp_Objects.
17569 (free_face_fontset, new_fontset_from_font_name): Fix
17570 Lisp_Object/int mixup.
17571
17572 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
17573
17574 * coding.c: Add many prototypes for static functions.
17575 (get_translation_table): Allow max_lookup to be NULL.
17576 (decode_coding, Ffind_coding_systems_region_internal)
17577 (Funencodable_char_position, Fcheck_coding_systems_region): Call
17578 get_translation_table with max_lookup NULL.
17579
17580 2008-02-01 Kenichi Handa <handa@m17n.org>
17581
17582 * coding.c (get_translation_table): Declare it as Lisp_Object.
17583 (LOOKUP_TRANSLATION_TABLE): New macro.
17584 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
17585 instead of CHAR_TABLE_REF.
17586
17587 2008-02-01 Kenichi Handa <handa@m17n.org>
17588
17589 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
17590 annotation data format.
17591 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
17592 Change arguments FROM and TO to single argument NCHARS. Change caller.
17593 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
17594 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
17595 (decode_coding_ccl, decode_coding_charset): Pay attention to
17596 coding->charbuf_used.
17597 (get_translation): New function.
17598 (produce_chars): New arguments translation_table and last_block.
17599 Translate characters here. Return number of carryover chars.
17600 Change caller.
17601 (produce_composition): New argument pos. Change caller.
17602 Adjust for the change of annotation data format.
17603 (produce_charset, produce_annotation): Likewise.
17604 (decode_coding, encode_coding): Don't call translate_chars.
17605 (consume_chars): New arg translation_table. Change caller.
17606 (translate_chars): Delete.
17607 (syms_of_coding): Make translation-table's number of extra slots 2.
17608
17609 2008-02-01 Kenichi Handa <handa@m17n.org>
17610
17611 * search.c (simple_search): Fix setting this_pos_byte in backward
17612 search.
17613
17614 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
17615 byte sequence.
17616 (detect_coding_ccl): Fix setting of the variable valids.
17617
17618 2008-02-01 Kenichi Handa <handa@m17n.org>
17619
17620 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
17621
17622 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
17623
17624 * editfns.c (Ftranslate_region_internal): Rename from
17625 Ftranslate_region. Accept a char-table in TABLE.
17626 (syms_of_editfns): Defsubr Stranslate_region_internal.
17627
17628 * xfaces.c (set_lface_from_font_name): If a font is specified for
17629 a frame, generate a fontset from the font.
17630 (build_scalable_font_name): If the scalable font is requested for
17631 a specific size, don't change that size.
17632 (try_font_list): Try a scalable font also in the case that a
17633 pattern string is specified.
17634
17635 2008-02-01 Kenichi Handa <handa@m17n.org>
17636
17637 * xfaces.c (Fface_font): New optional arg CHARACTER.
17638
17639 2008-02-01 Kenichi Handa <handa@m17n.org>
17640
17641 * charset.h (CHARSET_OFFSET): New macro.
17642
17643 2008-02-01 Kenichi Handa <handa@m17n.org>
17644
17645 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
17646
17647 * fontset.c (fontset_face): Handle the case that repertory is a
17648 char-table.
17649 (find_font_encoding): Return nil for unknown encoding.
17650 (Fset_fontset_font): Ignore a font of unknown encoding.
17651
17652 2008-02-01 Kenichi Handa <handa@m17n.org>
17653
17654 * keymap.c (describe_vector): Handle default value of a char table.
17655
17656 * fontset.c (fontset_face): Handle fallback fonts correctly.
17657 (Ffontset_info): Return infomation about fallback fonts.
17658
17659 2008-02-01 Kenichi Handa <handa@m17n.org>
17660
17661 * fontset.c (FONTSET_DEFAULT): New macro.
17662 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
17663 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
17664 the case that it is nil.
17665 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
17666 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
17667
17668 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
17669 subset or superset.
17670
17671 2008-02-01 Kenichi Handa <handa@m17n.org>
17672
17673 * emacs.c (main): Call init_charset after syms_of_XXX.
17674
17675 * charset.c (Vcharset_map_directory): Delete.
17676 (Vcharset_map_path): New variable.
17677 (load_charset_map_from_file): Use Vcharset_map_path instead.
17678 (init_charset): Initialize Vcharset_map_path.
17679 (syms_of_charset): Delete declaration of "charset-map-directory",
17680 add declaration of "charset-map-path".
17681
17682 2008-02-01 Kenichi Handa <handa@m17n.org>
17683
17684 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
17685 ASCII only string.
17686
17687 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
17688
17689 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
17690 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
17691
17692 2008-02-01 Kenichi Handa <handa@m17n.org>
17693
17694 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
17695
17696 * coding.c (QCmnemonic, QCdefalut_char)
17697 (QCdecode_translation_table, QCencode_translation_table)
17698 (QCpost_read_conversion, QCpre_write_conversion): New variables.
17699 (get_translation_table): Return a list of translation tables if
17700 necessary.
17701 (decode_coding): Call get_translation_table with ENCODEP 0.
17702 (char_encodable_p): If translation_table is non-nil, always call
17703 translate_char.
17704 (Fdefine_coding_system_internal): Accept list of translation
17705 tables as :encode-translation-table and :decode-translation-table.
17706 (Fcoding_system_put): New function.
17707 (syms_of_coding): Declare new symbols. Defsubr
17708 Scoding_system_put.
17709 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
17710 typically JISX0212.
17711
17712 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
17713 when the charset is superset type.
17714
17715 * character.c (translate_char): Accept list of translation tables.
17716
17717 2008-02-01 Kenichi Handa <handa@m17n.org>
17718
17719 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
17720 (CODING_ATTR_TRANS_TBL): New macro.
17721
17722 * coding.c (get_translation_table): New function.
17723 (translate_chars): Fix the bug of skipping annotation data.
17724 (decode_coding, encode_coding): Utilize get_translation_table.
17725 (char_encodable_p, Funencodable_char_position): Translate char if
17726 necessary.
17727 (Ffind_coding_systems_region_internal)
17728 (Fcheck_coding_systems_region): Setup translation table for encode
17729 in a coding system attribute vector in advance.
17730 (Fdefine_coding_system_internal): Allow a symbol as translation
17731 table. For shift-jis type coding system, allow 4th charset.
17732
17733 2008-02-01 Kenichi Handa <handa@m17n.org>
17734
17735 * coding.c (decode_coding_sjis): Check the first byte rigidly.
17736
17737 * xdisp.c (get_next_display_element): Pass -1 as POS to
17738 FACE_FOR_CHAR if displaying a C-string.
17739
17740 2008-02-01 Kenichi Handa <handa@m17n.org>
17741
17742 * composite.c (get_composition_id): Handle xoff and yoff in a
17743 composition rule.
17744
17745 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
17746 (struct composition): New member lbearing and rbearing.
17747
17748 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
17749 (x_get_glyph_overhangs): Handle a composition glyph.
17750 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
17751
17752 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
17753 composition glyph.
17754
17755 2008-02-01 Kenichi Handa <handa@m17n.org>
17756
17757 * print.c: Include charset.h.
17758 (Vprint_charset_text_property): New variable.
17759 (Qdefault): Extern it.
17760 (PRINT_STRING_NON_CHARSET_FOUND)
17761 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
17762 (print_check_string_result): New variable.
17763 (print_check_string_charset_prop): New function.
17764 (print_prune_charset_plist): New variable.
17765 (print_prune_string_charset): New function.
17766 (print_object): Call print_prune_string_charset if
17767 Vprint_charset_text_property is not t.
17768 (print_interval): Print nothing if interval->plist is nil.
17769 (syms_of_print): Declare Vprint_charset_text_property as a lisp
17770 variable. Init and staticpro print_prune_charset_plist.
17771
17772 2008-02-01 Kenichi Handa <handa@m17n.org>
17773
17774 * fontset.c (new_fontset_from_font_name): Use the specified font
17775 for all characters in the new fontset.
17776
17777 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
17778 OBJECT args.
17779
17780 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
17781 OBJECT args for composition too.
17782
17783 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
17784 OBJECT args.
17785
17786 2008-02-01 Kenichi Handa <handa@m17n.org>
17787
17788 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
17789
17790 * fontset.c (reorder_font_vector): Adjust for the change of
17791 FONT_DEF format.
17792 (fontset_face): New arg id. Change caller.
17793 (face_for_char): New args pos and object.
17794 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
17795 (fs_query_fontset): Check NAME by Fassoc too.
17796 (Fset_fontset_font): Allow non-XLFD font name.
17797 (Ffontset_info): Adjust for the change of FONT_DEF format.
17798
17799 * fontset.h (face_for_char): Adjust prototype.
17800
17801 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
17802 (append_space, extend_face_to_end_of_line)
17803 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
17804 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
17805
17806 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
17807 POS and OBJECT args.
17808
17809 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
17810 POS and OBJECT args.
17811
17812 2008-02-01 Jason Rumney <jasonr@gnu.org>
17813
17814 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
17815 of GlobalAlloc'ed memory.
17816
17817 2008-02-01 Kenichi Handa <handa@m17n.org>
17818
17819 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
17820
17821 * charset.h (charset_table_used): Delete extern.
17822
17823 * charset.c (charset_table_used): Make it static.
17824 (map_charset_chars): Fix args to c_function with.
17825
17826 * chartab.c (map_sub_char_table_for_charset): Fix args to
17827 c_function with.
17828
17829 * coding.h (enum coding_result_code): Delete
17830 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
17831
17832 * coding.c (Qinsufficient_source, Qinconsistent_eol)
17833 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
17834 (Vlast_code_conversion_error): New variables.
17835 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
17836 (ONE_MORE_BYTE): Record error if any instead of signaling an
17837 error. If non-ASCII multibyte char is found, return the negative
17838 value of the code. All callers changed to check it.
17839 (ONE_MORE_BYTE_NO_CHECK): Likewise.
17840 (record_conversion_result): New function. Change all codes setting
17841 coding->result to call this function.
17842 (detect_coding_utf_8, decode_coding_utf_8)
17843 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
17844 Don't use the local variable incomplete.
17845 (emacs_mule_char): Change the second arg to `const'.
17846 (decode_coding): Fix of flushing out unprocessed data.
17847 (make_conversion_work_buffer): Fix making of a work buffer.
17848 (decode_coding_object): Return coding->dst_object.
17849
17850 * fontset.c (set_fontset_font): Fix args.
17851
17852 * lisp.h (CHARACTERBITS): Define as 22.
17853
17854 * process.c (send_process): Be sure to set coding->src_multibyte.
17855
17856 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
17857
17858 2008-02-01 Kenichi Handa <handa@m17n.org>
17859
17860 * xdisp.c (handle_auto_composed_prop): Give limit to
17861 Fnext_single_char_property_change.
17862
17863 2008-02-01 Kenichi Handa <handa@m17n.org>
17864
17865 * composite.c (syms_of_composite): Don't make the composition hash
17866 table weak.
17867
17868 * fontset.c (Fset_fontset_font): Fix docstring.
17869
17870 * lisp.h (detect_coding_system): Adjust prototype.
17871
17872 * fileio.c (kill_workbuf_unwind): Delete this function.
17873 (Finsert_file_contents): Adjust the call of detect_coding_system.
17874 Get conversion_buffer by code_conversion_save. Use the macro
17875 CODING_MAY_REQUIRE_DECODING. After decoding, update
17876 coding_system.
17877
17878 * coding.h (make_conversion_work_buffer): Delete extern.
17879 (code_conversion_save): Extern it.
17880
17881 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
17882 (CODING_GET_INFO): Delete argument eol_type. Change callers.
17883 (decode_coding_utf_8): Don't do eol converion.
17884 (detect_coding_utf_16): Check coding->src_chars, not
17885 coding->src_bytes. Add heuristics for those that have no signature.
17886 (decode_coding_emacs_mule, decode_coding_iso_2022)
17887 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
17888 Don't do eol converion.
17889 (adjust_coding_eol_type): Return a new coding system.
17890 (detect_coding): Don't detect eol. Fix for utf-16 detection.
17891 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
17892 each change.
17893 (decode_coding): Pay attention to undo_list. Do eol conversion for
17894 all types of coding-systems (if necessary).
17895 (Vcode_conversion_work_buf_list): Delete it.
17896 (Vcode_conversion_reused_workbuf): Rename from
17897 Vcode_conversion_reused_work_buf.
17898 (Vcode_conversion_workbuf_name): New variable.
17899 (reused_workbuf_in_use): New variable.
17900 (make_conversion_work_buffer): Delete the arg DEPTH.
17901 (code_conversion_restore): Change argument to cons.
17902 (code_conversion_save): Delete the argument BUFFER. Change callers.
17903 (detect_coding_system): New argument src_chars. Change callers.
17904 Fix for utf-16 detection.
17905 (init_coding_once): Don't use ISO_carriage_return.
17906 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
17907 reused_workbuf_in_use.
17908
17909 2008-02-01 Kenichi Handa <handa@m17n.org>
17910
17911 * keymap.c (store_in_keymap): Pay attention to the case that idx
17912 is a cons specifying a character range.
17913
17914 2008-02-01 Kenichi Handa <handa@m17n.org>
17915
17916 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
17917 HANDLED_RECOMPUTE_PROPS.
17918
17919 * coding.c (Fdefine_coding_system_internal): Fix checking of
17920 ascii compatibility.
17921
17922 2008-02-01 Kenichi Handa <handa@m17n.org>
17923
17924 * charset.c (find_charsets_in_text): Delete unused locale variable.
17925 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
17926
17927 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
17928 Resync charset_list to Vemacs_mule_charset_list.
17929
17930 * keymap.c (store_in_keymap): Pay attention to the case that idx
17931 is a cons specifying a character range.
17932
17933 2008-02-01 Kenichi Handa <handa@m17n.org>
17934
17935 * composite.c (update_compositions): Bind inhibit-read-only, etc
17936 to t before calling remove-list-of-text-properties.
17937
17938 * print.c (print_object): Always print ASCII chars as is.
17939
17940 2008-02-01 Kenichi Handa <handa@m17n.org>
17941
17942 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
17943
17944 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
17945 is a char table.
17946
17947 2008-02-01 Kenichi Handa <handa@m17n.org>
17948
17949 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
17950
17951 2008-02-01 Kenichi Handa <handa@m17n.org>
17952
17953 * xfaces.c (set_lface_from_font_name): Fix for the case that
17954 FONTNAME is not fontset name.
17955
17956 2008-02-01 Kenichi Handa <handa@m17n.org>
17957
17958 * fns.c (base64_encode_1): Fix previous change.
17959
17960 2008-02-01 Kenichi Handa <handa@m17n.org>
17961
17962 * fontset.c (set_fontset_font): New function.
17963 (Fset_fontset_font): If a font is specified for a charset, use
17964 map_charset_chars to store the font spec in a fontset.
17965
17966 2008-02-01 Kenichi Handa <handa@m17n.org>
17967
17968 * fontset.c (fontset_face): Create a fallback fontset on demand.
17969 (make_fontset): Don't create a fallback fontset here.
17970 (free_face_fontset): Free a fallback fontset (if any) too.
17971 (n_auto_fontsets): Delete this variable.
17972 (auto_fontset_alist): New variable.
17973 (new_fontset_from_font_name): Check auto_fontset_alist.
17974 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
17975 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
17976 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
17977 Defsubr Sfontset_list_all.
17978
17979 2008-02-01 Kenichi Handa <handa@m17n.org>
17980
17981 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
17982
17983 2008-02-01 Kenichi Handa <handa@m17n.org>
17984
17985 * fontset.c (Fnew_fontset): Check NAME more rigidly.
17986
17987 2008-02-01 Kenichi Handa <handa@m17n.org>
17988
17989 * editfns.c (Fgoto_char): Fix docstring.
17990
17991 2008-02-01 Kenichi Handa <handa@m17n.org>
17992
17993 * insdel.c (insert_from_gap): Adjust intervals correctly.
17994
17995 2008-02-01 Jason Rumney <jasonr@gnu.org>
17996
17997 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
17998 (pfnGetFontUnicodeRanges): New dynamically loaded function.
17999 (w32_initialize): Try to load it.
18000 (x_get_font_repertory): Use it if available.
18001 (w32_encode_char): Add shortcut for unicode output.
18002
18003 * w32fns.c (w32_load_system_font): Default charset to -1.
18004 (x_to_w32_charset): Match all fonts for unicode.
18005 (w32_to_x_charset): New parameter matching. Don't return partial
18006 or wildcard charsets.
18007 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
18008 (w32_codepage_for_font): Return CP_UNICODE for unicode.
18009 (w32_to_x_font): Match charset to real charset.
18010 (enum_font_cb2): Always list unicode versions.
18011
18012 * makefile.w32-in (temacs): Increase EMHEAP.
18013
18014 2008-02-01 Jason Rumney <jasonr@gnu.org>
18015
18016 * w32term.c (w32_encode_char): New charset parameter.
18017 font_info.encoding becomes encoding_type.
18018 (x_get_font_repertory): New function. Warning: stub only!
18019 (x_new_font): Return quickly if font already set.
18020 (x_new_fontset): fontsetname parameter is Lisp_Object.
18021 Use new fs_query_fontset. Try new_fontset_from_font_name.
18022 Use fontset_name for return value.
18023
18024 * w32term.h: Declare x_get_font_repertory.
18025
18026 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
18027 place of find_charset_in_text. Use encode_coding_object in place
18028 of encode_coding.
18029 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
18030 decode_coding.
18031
18032 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
18033 of x_new_fontset.
18034 (w32_load_system_font): Initialize charset as unicode.
18035 font_info.encoding becomes encoding_type.
18036 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
18037 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
18038 (syms_of_w32fns): Set get_font_repertory_func.
18039
18040 * w32console.c: Include character.h. Use terminal_encode_buffer
18041 from term.c.
18042 (write_glyphs): Use new version of encode_terminal_code. Use
18043 encode_coding_object in place of encode_coding.
18044
18045 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
18046 encoding becomes encoding_type.
18047
18048 * term.c (terminal_encode_buffer): Make externally visible.
18049
18050 * makefile.w32-in: Add character.h dependancies.
18051 (character.o, chartab.o): New targets.
18052
18053 2008-02-01 Kenichi Handa <handa@m17n.org>
18054
18055 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
18056 CODING_ID_EOL_TYPE.
18057
18058 2008-02-01 Andreas Schwab <schwab@suse.de>
18059
18060 * coding.c (produce_chars): Revert last change.
18061
18062 2008-02-01 Kenichi Handa <handa@m17n.org>
18063
18064 * charset.h (charset_unicode): Extern it.
18065
18066 * charset.c (string_xstring_p): Check by (C >= 0x100).
18067 (find_charsets_in_text): Change format of the arc CHARSETS. New
18068 arg MULTIBYTE.
18069 (Ffind_charset_region, Ffind_charset_string): Adjust for the
18070 change of find_charsets_in_text.
18071 (Fsplit_char): Fix doc. Never return unknown.
18072
18073 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
18074
18075 * coding.c (Fdefine_coding_system_alias): Update
18076 Vcoding_system_list.
18077
18078 * fontset.c (load_font_get_repertory): Pay attention to the case
18079 that ENCODING of a font is specified by a char-table.
18080
18081 * xterm.c (x_get_font_repertory): Handle the case that the
18082 encoding of font is other than Unicode.
18083
18084 2008-02-01 Kenichi Handa <handa@m17n.org>
18085
18086 * term.c (encode_terminal_code): Don't handle glyph-table. Check
18087 if a character is encodable by the terminal coding system. If
18088 not, produces proper number of `?'s. Update
18089 terminal_encode_buffer and terminal_encode_buf_size if necessary.
18090 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
18091
18092 2008-02-01 Kenichi Handa <handa@m17n.org>
18093
18094 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
18095 variables.
18096 (encode_terminal_code): Change argument. Encode multiple
18097 characters at once. Store the result of encoding in
18098 terminal_encode_buffer.
18099 (write_glyphs, insert_glyphs): Adjust for the change of
18100 encode_terminal_code.
18101 (term_init): Initialize terminal_encode_buffer and
18102 terminal_encode_buf_size.
18103
18104 * coding.c (consume_chars): If coding->src_object is nil, don't
18105 check annotation.
18106
18107 2008-02-01 Kenichi Handa <handa@m17n.org>
18108
18109 * character.c (char_string): Use ASCII_CHAR_P instead of
18110 SINGLE_BYTE_CHAR_P.
18111
18112 2008-02-01 Kenichi Handa <handa@m17n.org>
18113
18114 * xdisp.c (handle_auto_composed_prop): Check if the last
18115 characters of auto-composed region is newly composed with the
18116 following characters.
18117 (handle_composition_prop): Fix checking of point being inside
18118 composition.
18119
18120 2008-02-01 Kenichi Handa <handa@m17n.org>
18121
18122 * fns.c (concat): Don't change multibyteness of the result by
18123 concatenating an 8-bit character.
18124
18125 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
18126 multibyteness of the result when newelt is an 8-bit character.
18127
18128 2008-02-01 Dave Love <fx@gnu.org>
18129
18130 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
18131 EMACS_INT.
18132
18133 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
18134
18135 * xfaces.c (face_numeric_value): Declare dim size_t.
18136 (Finternal_lisp_face_equal_p): Remove unused f.
18137
18138 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
18139 (MATRIX_ROW): Remove unused vars.
18140 (draw_glyphs, x_insert_glyphs, fast_find_position)
18141 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
18142 byte/char counts.
18143
18144 * regex.c (regex_compile): Remove unused var.
18145
18146 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
18147
18148 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
18149 (Faccessible_keymaps, where_is_internal): Remove unused vars.
18150
18151 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
18152
18153 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
18154
18155 * fileio.c (Fwrite_region): Remove unused var.
18156
18157 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
18158 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
18159
18160 * composite.c (Fremove_list_of_text_properties): Declare.
18161
18162 * coding.c (inhibit_pre_post_conversion): Remove (unused).
18163 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
18164 (coding_inherit_eol_type): Remove unused attrs.
18165 (detect_coding): Cast arg of detect_eol.
18166
18167 * charset.c (syms_of_charset): Remove unused var p.
18168 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
18169 byte/char counts.
18170
18171 * casetab.c (set_case_table): Remove unused var.
18172
18173 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
18174 unused vars.
18175
18176 2008-02-01 Dave Love <fx@gnu.org>
18177
18178 * xterm.c (x_bitmap_mask): Declare.
18179
18180 2008-02-01 Dave Love <fx@gnu.org>
18181
18182 * xterm.c (x_term_init): Fix type error.
18183
18184 * lisp.h: Add Funibyte_char_to_multibyte.
18185
18186 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
18187 (Fset_coding_system_priority): Doc fix.
18188
18189 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
18190
18191 * indent.c (check_composition): Make start and end EMACS_INT.
18192
18193 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
18194
18195 * xdisp.c (handle_composition_prop, check_point_in_composition):
18196 Make buffer positions EMACS_INT.
18197
18198 * composite.c (find_composition, run_composition_function)
18199 (update_compositions, Ffind_composition_internal): Make buffer
18200 positions EMACS_INT.
18201
18202 * composite.h (find_composition, update_compositions): Make
18203 position args EMACS_INT.
18204
18205 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
18206
18207 * intervals.c (get_property_and_range):
18208 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
18209
18210 * unexalpha.c: Don't include varargs.h.
18211
18212 2008-02-01 Dave Love <fx@gnu.org>
18213
18214 * coding.h (ENCODE_UTF_8): New.
18215
18216 * Makefile.in (gtkutil.o): Depend on coding.h.
18217
18218 * coding.c (Fset_coding_system_priority): Doc fix.
18219
18220 2008-02-01 Kenichi Handa <handa@m17n.org>
18221
18222 * fileio.c (Finsert_file_contents): Call setup_coding_system in
18223 the case of auto saving.
18224
18225 2008-02-01 Andreas Schwab <schwab@suse.de>
18226
18227 * chartab.c (map_char_table, map_char_table_for_charset): Protect
18228 `range' from GC.
18229
18230 2008-02-01 Kenichi Handa <handa@m17n.org>
18231
18232 * coding.c (decode_coding_sjis): Check bytes more rigidly.
18233
18234 2008-02-01 Kenichi Handa <handa@m17n.org>
18235
18236 * fileio.c (choose_write_coding_system): Return a decided coding system.
18237 (Fwrite_region): Set Vlast_coding_system_used to the return value
18238 of choose_write_coding_system.
18239
18240 2008-02-01 Kenichi Handa <handa@m17n.org>
18241
18242 * charset.c (Fset_charset_priority): Pay attention to duplicated
18243 arguments.
18244
18245 * coding.c (QCcategory): New variable.
18246 (syms_of_coding): Defsym it. Set all elements of
18247 Vcoding_category_table and their symbol values.
18248 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
18249 coding-category-XXX, and coding-category-list.
18250 (Fdefine_coding_system_internal): Add category in the plist.
18251
18252 2008-02-01 Kenichi Handa <handa@m17n.org>
18253
18254 * callproc.c (Fcall_process): Handle carryover correctly.
18255
18256 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
18257 (raw_text_coding_system): Check NILP (coding_system).
18258 (coding_inherit_eol_type): Check NILP (coding_system) and
18259 NILP (parent).
18260 (consume_chars): Fix for the case of raw-text.
18261
18262 * process.c (read_process_output): Handle carryover correctly.
18263
18264 2008-02-01 Dave Love <fx@gnu.org>
18265
18266 * regex.c (re_search_2): Fix last change.
18267
18268 2008-02-01 Kenichi Handa <handa@m17n.org>
18269
18270 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
18271 target_multibyte. Even in a unibyte case, return a converted
18272 multibyte char.
18273 (GET_CHAR_AFTER): New macro.
18274 (PATFETCH): Translate via multibyte char.
18275 (HANDLE_UNIBYTE_RANGE): Delete this macro.
18276 (SETUP_MULTIBYTE_RANGE): New macro.
18277 (regex_compile): Setup compiled code so that its multibyteness
18278 matches that of a target. Fix the handling of "[X-YZ]" using
18279 SETUP_MULTIBYTE_RANGE.
18280 (analyse_first) <charset>: For filling fastmap for all multibyte
18281 characters, don't check by BASE_LEADING_CODE_P.
18282 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
18283 the same as RE_MULTIBYTE_P (bufp) now.
18284 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
18285 (TARGET_CHAR_AND_LENGTH): Delete this macro.
18286 (TRANSLATE_VIA_MULTIBYTE): New macro.
18287 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
18288 It is the same as RE_MULTIBYTE_P (bufp) now.
18289 <exactn>: Translate via multibyte.
18290 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
18291 translate it.
18292 <charset, charset_not>: Fetch a character by
18293 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
18294 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
18295 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
18296 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
18297 by GET_CHAR_AFTER.
18298 (bcmp_translate): Likewise.
18299
18300 * search.c (compile_pattern): Check the member target_multibyte,
18301 not the member multibyte of buf.
18302
18303 * lread.c (read1): While reading a string, set force_singlebyte
18304 and force_multibyte correctly.
18305
18306 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
18307 up of unibyte_to_multibyte_table.
18308
18309 2008-02-01 Kenichi Handa <handa@m17n.org>
18310
18311 * coding.c (setup_coding_system): If coding has
18312 post-read-conversion or pre-write-conversion, set
18313 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
18314 respectively.
18315 (decode_coding_gap): Run post-read-conversion if any.
18316
18317 * fileio.c (Finsert_file_contents): Even if we read into a
18318 unibyte buffer, check if we must decode the result or not.
18319
18320 2008-02-01 Kenichi Handa <handa@m17n.org>
18321
18322 * coding.c (make_conversion_work_buffer): Change the work buffer
18323 name to the same one as that of Emacs 21.
18324
18325 2008-02-01 Kenichi Handa <handa@m17n.org>
18326
18327 * coding.h (make_conversion_work_buffer): Adjust prototype.
18328 (code_conversion_restore): Don't extern it.
18329
18330 * coding.c (detected_mask): Delete unused variable.
18331 (decode_coding_iso_2022): Pay attention to the byte sequence of
18332 CTEXT extended segment, and retain those bytes as is.
18333 (decode_coding_ccl): Delete unused variable `valids'.
18334 (setup_coding_system): Delete unused variable `category'.
18335 (consume_chars): Delete unused variable `category'. Make it work
18336 for non-multibyte case.
18337 (make_conversion_work_buffer): Change argument.
18338 (saved_coding): Delete unused variable.
18339 (code_conversion_restore): Don't check saved_coding->destination.
18340 (code_conversion_save): New function.
18341 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
18342 instead of record_unwind_protect.
18343 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
18344 (detect_coding_system): Delete unused variable `mask'.
18345 (Fdefine_coding_system_internal): Delete unused variable id.
18346
18347 * fileio.c (kill_workbuf_unwind): New function.
18348 (Finsert_file_contents): On replacing, call
18349 make_conversion_work_buffer with correct args, and call
18350 record_unwind_protect with the first arg kill_workbuf_unwind.
18351
18352 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
18353
18354 2008-02-01 Kenichi Handa <handa@m17n.org>
18355
18356 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
18357 (fontset_add): Fix for the case that TO is less than TO1.
18358 (Ffontset_info): Don't use fallback fontset on checking the
18359 default fontset.
18360 (dump_fontset): New function for debugging.
18361
18362 * coding.c (Fdefine_coding_system_internal): Fix for the case that
18363 coding_type is Qcharset.
18364
18365 2008-02-01 Kenichi Handa <handa@m17n.org>
18366
18367 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
18368 (map_char_table): Don't inherit the value from the parent on
18369 initializing VAL. Adjust for the above change.
18370
18371 2008-02-01 Kenichi Handa <handa@m17n.org>
18372
18373 * coding.c (Qsignature, Qendian): Delete these variables.
18374 (syms_of_coding): Don't initialize them.
18375 (CATEGORY_MASK_UTF_16_AUTO): New macro.
18376 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
18377 detect_info->found.
18378 (decode_coding_utf_16): Don't detect BOM here.
18379 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
18380 is NOT utf_16_without_bom.
18381 (setup_coding_system): For a coding system of type utf-16, check
18382 if the attribute :endian is Qbig or not (not nil or not), and set
18383 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
18384 (detect_coding): If coding type is utf-16 and BOM detection is
18385 required, detect it.
18386 (Fdefine_coding_system_internal): For a coding system of type
18387 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
18388
18389 2008-02-01 Kenichi Handa <handa@m17n.org>
18390
18391 * coding.c (coding_set_source): Fix for the case that the current
18392 buffer is different from coding->src_object.
18393 (decode_coding_object): Don't use the conversion work buffer if
18394 DST_OBJECT is a buffer.
18395
18396 2008-02-01 Dave Love <fx@gnu.org>
18397
18398 * lread.c (read_emacs_mule_char) [len==2]: Index
18399 emacs_mule_charset correctly.
18400
18401 2008-02-01 Dave Love <fx@gnu.org>
18402
18403 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
18404 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
18405 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
18406 treated specially.)
18407 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
18408 (detected_mask): Remove Big5 bits.
18409
18410 2008-02-01 Kenichi Handa <handa@m17n.org>
18411
18412 The following changes are to make the font rescaling facility
18413 compatible with Emacs 21.
18414
18415 * xfaces.c (Vface_font_rescale_alist): Rename from
18416 Vface_resizing_fonts.
18417 (struct font_name): Rename member resizing_ratio to rescale_ratio.
18418 (font_rescale_ratio): Rename from font_resizing_ratio.
18419 (split_font_name): Set font->rescale_ratio.
18420 (better_font_p): Pay attention to font->rescale_ratio.
18421 (build_scalable_font_name): Likewise. Change RESX, and RESY
18422 fields.
18423 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
18424
18425 2008-02-01 Kenichi Handa <handa@m17n.org>
18426
18427 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
18428 (Qutf_16_le): Remove these variables.
18429 (syms_of_coding): Don't DEFSYM them.
18430 (decode_coding_utf_16): Fix handling of BOM.
18431 (encode_coding_utf_16): Fix handling of BOM.
18432
18433 2008-02-01 Kenichi Handa <handa@m17n.org>
18434
18435 * fileio.c (Finsert_file_contents): On replacing, before decoding
18436 the file into the work buffer, set point of the work buffer to the end.
18437
18438 2008-02-01 Dave Love <fx@gnu.org>
18439
18440 * coding.c (Fcheck_coding_systems_region): Fix type errors.
18441
18442 2008-02-01 Dave Love <fx@gnu.org>
18443
18444 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
18445 and fix C types.
18446
18447 2008-02-01 Kenichi Handa <handa@m17n.org>
18448
18449 * xdisp.c (SKIP_GLYPHS): New macro.
18450 (set_cursor_from_row): Pay attention to string display properties.
18451
18452 * category.c (copy_category_entry): Fix for the case that RANGE
18453 is an integer.
18454
18455 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
18456
18457 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
18458
18459 2008-02-01 Kenichi Handa <handa@m17n.org>
18460
18461 * charset.c (Fcharset_id_internal): New function.
18462 (syms_of_charset): Defsubr it.
18463
18464 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
18465 with the last arg charset_list acquired from coding.
18466 (Fdefine_coding_system_internal): For ccl-based coding system, fix
18467 the attribute coding_attr_ccl_valids.
18468
18469 * coding.h (enum define_coding_ccl_arg_index): Set the first
18470 member coding_arg_ccl_decoder to coding_arg_max.
18471
18472 * ccl.h (ccl_driver): Adjust prototype.
18473
18474 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
18475 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
18476 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
18477 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
18478 last arg Qnil.
18479
18480 2008-02-01 Kenichi Handa <handa@m17n.org>
18481
18482 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
18483 call encode_char.
18484
18485 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
18486
18487 2008-02-01 Dave Love <fx@gnu.org>
18488
18489 * composite.c (syms_of_composite): Make composition_hash_table weak.
18490
18491 2008-02-01 Kenichi Handa <handa@m17n.org>
18492
18493 * dispextern.h (check_face_attributes, generate_ascii_font_name)
18494 (font_name_registry): Don't extern them.
18495 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
18496
18497 * fontset.h (Qfontset): Don't extern it.
18498 (new_fontset_from_font_name): Extern it.
18499
18500 * fontset.c: Give 8 extra slots to fontset objects.
18501 (Qfontset_info): New variable.
18502 (syms_of_fontset): Defsym it.
18503 (FONTSET_FALLBACK): New macro.
18504 (fontset_face): Try also the default fontset.
18505 (make_fontset): Realize a fallback fontset from the default fontset.
18506 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
18507 using split_font_name_into_vector and build_font_name_from_vector.
18508 (Fset_fontset_font): Access the elements of font_spec by enum
18509 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
18510 name by using split_font_name_into_vector.
18511 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
18512 generate a proper font name from the fontset name. Update
18513 Vfontset_alias_alist.
18514 (n_auto_fontsets): New variable.
18515 (new_fontset_from_font_name): New function.
18516 (Ffont_info): Store the information about fonts generated from the
18517 default fontset in the first extra slot of the returned char-table.
18518
18519 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
18520 (font_name_registry): Delete function.
18521 (split_font_name_into_vector): New function.
18522 (build_font_name_from_vector): New function.
18523 (font_list): The argument REGISTRY is now a list of registry names.
18524 (choose_face_font): If we are choosing an ASCII font, and ATTRS
18525 specifies an explicit font name, return the name as is. Make a
18526 list of registy names.
18527
18528 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
18529 of x_new_fontset.
18530 (Fx_create_frame): Don't call x_new_fontset here. Just use
18531 x_list_fonts to check the existence of fonts.
18532
18533 * xterm.h (x_new_fontset): Adjust prototype.
18534
18535 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
18536 string. Use new_fontset_from_font_name to create a fontset from a
18537 font name.
18538
18539 2008-02-01 Kenichi Handa <handa@m17n.org>
18540
18541 * syntax.c (Vfind_word_boundary_function_table): New name for
18542 Vnext_word_boundary_function_table.
18543 (find-word-boundary-function-table): New name for
18544 next-word-boundary-function-table.
18545
18546 2008-02-01 Dave Love <fx@gnu.org>
18547
18548 * Makefile.in: Fix some dependencies.
18549
18550 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
18551 set it to nil before returning.
18552
18553 * composite.c (update_compositions): Fix type error.
18554
18555 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
18556
18557 2008-02-01 Kenichi Handa <handa@m17n.org>
18558
18559 * xterm.c (x_new_font): Optimize for the case that the font is
18560 already set for the frame.
18561
18562 2008-02-01 Kenichi Handa <handa@m17n.org>
18563
18564 * chartab.c (char_table_ascii): Check if the char table contents
18565 is sub-char-table or not.
18566 (char_table_set, char_table_set_range): Fix argument to
18567 char_table_ascii.
18568
18569 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
18570 (detect_coding_utf_8, detect_coding_utf_16)
18571 (detect_coding_emacs_mule, detect_coding_iso_2022)
18572 (detect_coding_sjis, detect_coding_big5)
18573 (detect_coding_ccl, detect_coding_charset): Change argument MASK
18574 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
18575 sequence is valid in this coding system. Change callers.
18576 (MAX_ANNOTATION_LENGTH): New macro.
18577 (ADD_ANNOTATION_DATA): New macro.
18578 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
18579 ADD_ANNOTATION_DATA. Change the format of annotation data.
18580 (ADD_CHARSET_DATA): New macro.
18581 (emacs_mule_char): New argument ID. Change callers.
18582 (decode_coding_emacs_mule, decode_coding_iso_2022)
18583 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
18584 Produce charset annotation data in coding->charbuf.
18585 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
18586 to charset annotation data in coding->charbuf.
18587 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
18588 coding->common_flags if the coding system is iso-2022 based and
18589 uses designation.
18590 (produce_composition): Adjust for the new annotation data format.
18591 (produce_charset): New function.
18592 (produce_annotation): Handle charset annotation.
18593 (handle_composition_annotation, handle_charset_annotation): New
18594 functions.
18595 (consume_chars): Handle charset annotation. Utilize the above two
18596 functions.
18597 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
18598 buffer, get the deleted text as a string and set
18599 coding->src_object to that string.
18600 (detect_coding, detect_coding_system): Use the new struct
18601 coding_detection_info.
18602
18603 * coding.h (struct coding_detection_info): New structure.
18604 (struct coding_system): Adjust prototype of the member `detector'.
18605 (CODING_ANNOTATE_CHARSET_MASK): New macro.
18606
18607 2008-02-01 Kenichi Handa <handa@m17n.org>
18608
18609 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
18610
18611 2008-02-01 Dave Love <fx@gnu.org>
18612
18613 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
18614 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
18615 to new local and nullify apropos_accumulate before returning.
18616 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
18617
18618 2008-02-01 Kenichi Handa <handa@m17n.org>
18619
18620 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
18621 correctly.
18622
18623 2008-02-01 Dave Love <fx@gnu.org>
18624
18625 * fns.c (Flanginfo): Call synchronize_system_time_locale.
18626
18627 2008-02-01 Kenichi Handa <handa@m17n.org>
18628
18629 The following changes are to make character composition happen
18630 automatically on displaying.
18631
18632 * Makefile.in (lisp, shortlisp): Add composite.elc.
18633
18634 * composite.h (Qauto_composed, Vauto_composition_function)
18635 (Qauto_composition_function): Extern them.
18636
18637 * composite.c (Vcomposition_function_table)
18638 (Qcomposition_function_table): Delete variables.
18639 (Qauto_composed, Vauto_composition_function)
18640 (Qauto_composition_function): New variables.
18641 (run_composition_function): Don't call
18642 compose-chars-after-function.
18643 (update_compositions): Clear `auto-composed' text property.
18644 (compose_chars_in_text): Delete this function.
18645 (syms_of_composite): Staticpro Qauto_composed and
18646 Qauto_composition_function. Declare Vauto_composition_function as
18647 a Lisp variable.
18648
18649 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
18650
18651 * xdisp.c (it_props): Add an entry for Qauto_composed.
18652 (handle_auto_composed_prop): New function.
18653
18654 * xselect.c (selection_data_to_lisp_data): Don't call
18655 compose_chars_in_text.
18656
18657 2008-02-01 Dave Love <fx@gnu.org>
18658
18659 * keyboard.c (read_char): Modify checking around use of
18660 Vkeyboard_translate_table.
18661
18662 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
18663 and fix C types.
18664
18665 2008-02-01 Kenichi Handa <handa@m17n.org>
18666
18667 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
18668 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
18669 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
18670 the case that the last byte is '\r' correctly.
18671 (decode_coding): Flush out the unprocessed data correctly.
18672 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
18673
18674 2008-02-01 Dave Love <fx@gnu.org>
18675
18676 * xterm.c (XTread_socket): Fix changes for defined keysyms.
18677 Add XK_ISO... case.
18678 (xaw_scroll_callback): Revert last change.
18679
18680 2008-02-01 Kenichi Handa <handa@m17n.org>
18681
18682 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
18683
18684 2008-02-01 Kenichi Handa <handa@m17n.org>
18685
18686 * xfaces.c (Vface_resizing_fonts): New variable.
18687 (struct font_name): New member `resizing_ratio'.
18688 (font_resizing_ratio): New function.
18689 (split_font_name): Set font->resizing_ratio.
18690 (better_font_p): Pay attention to font->resizing_ratio.
18691 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
18692 RESX, and RESY fields.
18693 (try_alternative_families): Try scalable fonts if
18694 Vscalable_fonts_allowed is not Qt.
18695 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
18696
18697 2008-02-01 Dave Love <fx@gnu.org>
18698
18699 * xterm.c (xaw_scroll_callback): Cast correctly.
18700
18701 2008-02-01 Dave Love <fx@gnu.org>
18702
18703 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
18704 (lispy_kana_keys): Comment out.
18705 (make_lispy_event) [XK_kana_A]: Comment out.
18706
18707 * xterm.c (xaw_scroll_callback): Cast call_data.
18708 (XTread_socket): Deal with ASCII keysyms.
18709 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
18710
18711 2008-02-01 Dave Love <fx@gnu.org>
18712
18713 * xterm.c (Vx_keysym_table): New.
18714 (syms_of_xterm): Initialize it.
18715 (XTread_socket): Use it.
18716 From head: Eliminate incorrect optimization that tried to avoid
18717 decoding the output of X*LookupString.
18718 (x_get_font_repertory): Delete charset declaration.
18719
18720 2008-02-01 Kenichi Handa <handa@m17n.org>
18721
18722 * coding.c (detect_coding_charset): If only ASCII bytes are found,
18723 return 0.
18724 (Fdefine_coding_system_internal): Setup
18725 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
18726
18727 2008-02-01 Dave Love <fx@gnu.org>
18728
18729 * coding.c (Fcheck_coding_system): Doc fix.
18730
18731 * editfns.c (Finsert_byte): Return a proper value.
18732
18733 2008-02-01 Kenichi Handa <handa@m17n.org>
18734
18735 * coding.c (decode_coding): Fix args to translate_chars. Pay
18736 attention to Vstandard_translation_table_for_decode.
18737 (encode_coding): Fix args to translate_chars. Pay attention to
18738 Vstandard_translation_table_for_encode.
18739
18740 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
18741 SINGLE_BYTE_CHAR_P.
18742
18743 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
18744 not by SINGLE_BYTE_CHAR_P.
18745
18746 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
18747 SINGLE_BYTE_CHAR_P.
18748
18749 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
18750 SINGLE_BYTE_CHAR_P.
18751
18752 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
18753 by SINGLE_BYTE_CHAR_P.
18754
18755 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
18756 SINGLE_BYTE_CHAR_P.
18757
18758 2008-02-01 Dave Love <fx@gnu.org>
18759
18760 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
18761
18762 2008-02-01 Dave Love <fx@gnu.org>
18763
18764 * fns.c (Flanginfo): Fix typo.
18765
18766 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
18767
18768 2008-02-01 Kenichi Handa <handa@m17n.org>
18769
18770 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
18771 (detect_coding_emacs_mule, detect_coding_iso_2022)
18772 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
18773 incomplete byte sequence. Don't update *mask when correctly detected.
18774 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
18775 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
18776 (detect_coding, detect_coding_system): Adjust for the changes above.
18777
18778 2008-02-01 Kenichi Handa <handa@m17n.org>
18779
18780 * character.c (char_string): Rename from
18781 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
18782 (string_char): Rename from string_char.
18783
18784 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
18785 if C is greater than MAX_3_BYTE_CHAR.
18786 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
18787 string_char instead of string_char_with_unification.
18788
18789 2008-02-01 Dave Love <fx@gnu.org>
18790
18791 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
18792
18793 2008-02-01 Kenichi Handa <handa@m17n.org>
18794
18795 * keymap.c (push_key_description): Pay attention to force_multibyte.
18796
18797 * regex.c (re_search_2): Fix for the case of unibyte buffer.
18798
18799 2008-02-01 Dave Love <fx@gnu.org>
18800
18801 * charset.c (define_charset_internal): Rename `supprementary'.
18802
18803 * Makefile.in (lisp, shortlisp): Remove latin-N.
18804
18805 2008-02-01 Dave Love <fx@gnu.org>
18806
18807 * xfns.c (x_window, x_window): Use use_xim.
18808
18809 * xterm.c (use_xim): Initialize.
18810 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
18811 (x_term_init): Maybe set use_xim.
18812
18813 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
18814
18815 2008-02-01 Kenichi Handa <handa@m17n.org>
18816
18817 * search.c (search_buffer): Fix case-fold-search of multibyte
18818 characters.
18819 (boyer_moore): Rename the last argument to char_high_bits.
18820
18821 2008-02-01 Kenichi Handa <handa@m17n.org>
18822
18823 * xdisp.c (display_string): Fix for the case of zero width glyph.
18824
18825 * xfns.c (x_set_font): Change the error message of the case that
18826 x_new_fontset returns Qt.
18827
18828 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
18829 (Finternal_set_lisp_face_attribute): Use signal_error for the
18830 error of invalid fontset.
18831
18832 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
18833 fontset, return Qt.
18834
18835 2008-02-01 Dave Love <fx@gnu.org>
18836
18837 * unexelf.c (unexec): Make .got handling not SGI-specific.
18838
18839 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
18840
18841 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
18842
18843 * keyboard.c (read_key_sequence): Fix type error.
18844
18845 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
18846 type error.
18847
18848 * fontset.c (fontset_add): Return Lisp_Object.
18849
18850 2008-02-01 Dave Love <fx@gnu.org>
18851
18852 * charset.h (charset_ordered_list_tick): Declare extern.
18853
18854 2008-02-01 Kenichi Handa <handa@m17n.org>
18855
18856 The following changes (and some of 2008-02-01 changes of mine) are
18857 for handling syntax, category, and case conversion for unibyte
18858 characters by converting them to multibyte on the fly. With these
18859 changes, we don't have to setup syntax and case tables for unibyte
18860 characters in each language environment.
18861
18862 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
18863 multibyte if necessary.
18864
18865 * bytecode.c (Fbyte_code): Likewise.
18866
18867 * character.h (LEADING_CODE_LATIN_1_MIN)
18868 (LEADING_CODE_LATIN_1_MAX): New macros.
18869 (unibyte_to_multibyte_table): Extern it.
18870 (unibyte_char_to_multibyte): New macro.
18871 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
18872 (CHAR_LEADING_CODE): New macro.
18873 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
18874
18875 * character.c (unibyte_to_multibyte_table): New variable.
18876 (unibyte_char_to_multibyte): Move to character.h and define as macro.
18877 (multibyte_char_to_unibyte): If C is an eight-bit character,
18878 convert it to the corresponding byte value.
18879
18880 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
18881 not 1, signals an error. Update the elements of
18882 unibyte_to_multibyte_table.
18883 (init_charset_once): Initialize unibyte_to_multibyte_table.
18884 (syms_of_charset): Define the charset `iso-8859-1'.
18885
18886 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
18887 as is without converting it to unibyte. In a unibyte buffer,
18888 convert C to multibyte before checking the syntax.
18889
18890 * lisp.h (unibyte_char_to_multibyte): Delete extern.
18891
18892 * minibuf.c (Fminibuffer_complete_word): Use the macro
18893 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
18894
18895 * regex.h (struct re_pattern_buffer): New member target_multibyte.
18896
18897 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
18898 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
18899 that is zero, convert an eight-bit char to multibyte.
18900 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
18901 non-emacs case.
18902 (PATFETCH): Convert an eight-bit char to multibyte.
18903 (HANDLE_UNIBYTE_RANGE): New macro.
18904 (regex_compile): Setup the compiled pattern for multibyte chars
18905 even if the given regex string is unibyte. Use PATFETCH_RAW
18906 instead of PATFETCH in many places. To handle `charset'
18907 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
18908 only for ASCII chars.
18909 (analyse_first) <exactn>: Simplify because the compiled pattern
18910 is multibyte.
18911 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
18912 <charset>: Use CHAR_LEADING_CODE to get leading codes.
18913 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
18914 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
18915 multibyte always 1.
18916 (re_search_2): In emacs, set the locale variable multibyte to 1,
18917 otherwise to 0. New local variable target_multibyte. Check it
18918 to decide the multibyteness of STR1 and STR2. If
18919 target_multibyte is zero, convert unibyte chars to multibyte
18920 before translating and checking fastmap.
18921 (TARGET_CHAR_AND_LENGTH): New macro.
18922 (re_match_2_internal): In emacs, set the locale variable multibyte
18923 to 1, otherwise to 0. New local variable target_multibyte. Check
18924 it to decide the multibyteness of STR1 and STR2. Use
18925 TARGET_CHAR_AND_LENGTH to fetch a character from D.
18926 <charset, charset_not>: If multibyte is nonzero, check fastmap
18927 only for ASCII chars. Call bcmp_translate with
18928 target_multibyte, not with multibyte.
18929 <begline>: Declare the local variable C as `unsigned'.
18930 (bcmp_translate): Change the last arg name to target_multibyte.
18931
18932 * search.c (compile_pattern_1): Don't adjust the multibyteness of
18933 the regexp pattern and the matching target. Set cp->buf.multibyte
18934 to the multibyteness of the regexp pattern. Set
18935 cp->but.target_multibyte to the multibyteness of the matching target.
18936 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
18937 FETCH_STRING_CHAR_ADVANCE.
18938 (Freplace_match): Convert unibyte chars to multibyte.
18939
18940 * syntax.c (char_quoted, back_comment, scan_words)
18941 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
18942 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
18943 unibyte chars to multibyte.
18944 (skip_chars): Delete the arg syntaxp, and move the code for
18945 handling syntaxes to skip_syntaxes. Change callers.
18946 Fix the case that the multibyteness of STRING and the current
18947 buffer doesn't match.
18948 (skip_syntaxes): New function.
18949 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
18950 SINGLE_BYTE_CHAR_P.
18951
18952 2008-02-01 Kenichi Handa <handa@m17n.org>
18953
18954 * xfaces.c (QCfontset): New variable.
18955 (LFACE_FONTSET): New macro.
18956 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
18957 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
18958 (Finternal_set_lisp_face_attribute)
18959 (Finternal_get_lisp_face_attribute): Handle QCfontset.
18960 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
18961 check also LFACE_FONTSET_INDEX.
18962 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
18963 attrs[LFACE_FONT_INDEX].
18964 (syms_of_xfaces): Intern and staticpro QCfontset.
18965
18966 * dispextern.h (enum lface_attribute_index): New member
18967 LFACE_FONTSET_INDEX.
18968
18969 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
18970
18971 2008-02-01 Kenichi Handa <handa@m17n.org>
18972
18973 * coding.c (coding_set_destination): Fix coding->destination for
18974 the case converting a region.
18975 (encode_coding_utf_8): Encode eight-bit chars as single byte.
18976 (encode_coding_object): Fix coding->dst_pos and
18977 coding->dst_pos_byte for the case converting a region.
18978
18979 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
18980
18981 * character.h (BYTE8_STRING): New macro.
18982
18983 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
18984
18985 2008-02-01 Kenichi Handa <handa@m17n.org>
18986
18987 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
18988 characters by octal form.
18989
18990 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
18991
18992 * buffer.h (_fetch_multibyte_char_len): Delete extern.
18993 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
18994 _fetch_multibyte_char_len.
18995 (FETCH_CHAR_AS_MULTIBYTE): New macro.
18996
18997 * casetab.c (set_canon, set_identity, shuffle): Simplify.
18998
18999 * casefiddle.c (casify_object): Simplify. Handle the case that
19000 the case conversion change the byte length.
19001 (casify_region): Likewise.
19002
19003 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
19004
19005 * character.c (_fetch_multibyte_char_len): Delete this variable.
19006 (syms_of_character): Setup Vprintable_chars.
19007
19008 * editfns.c (Fchar_equal): Fix for the unibyte case.
19009 (Finsert_byte): New function.
19010 (syms_of_editfns): Defsubr it.
19011
19012 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
19013 of direct code 0x3ffff.
19014
19015 * search.c (Freplace_match): Fix for the unibyte case.
19016
19017 2008-02-01 Kenichi Handa <handa@m17n.org>
19018
19019 * lread.c (safe_to_load_p): Fix the logic.
19020
19021 * syntax.c (scan_words): Don't treat characters belonging to
19022 different scripts as constituting a word.
19023
19024 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
19025
19026 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
19027
19028 * emacs.c (main): In the case of --unibyte, instead of aborting on
19029 finding non-empty buffer, make it unibyte.
19030
19031 2008-02-01 Kenichi Handa <handa@m17n.org>
19032
19033 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
19034 to create a fontset.
19035
19036 2008-02-01 Dave Love <fx@gnu.org>
19037
19038 * character.c (Funibyte_char_to_multibyte): Doc fix.
19039
19040 * xfns.c [HAVE_STDLIB_H]: Fix last change.
19041
19042 2008-02-01 Kenichi Handa <handa@m17n.org>
19043
19044 * fontset.c (fontset_add): Make the type `int'.
19045 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
19046
19047 * character.c (unibyte_char_to_multibyte)
19048 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
19049 charset_unibyte, not charset_primary.
19050
19051 * charset.h (charset_unibyte): Extern it instead of charset_primary.
19052
19053 * charset.c (charset_unibyte): Rename from charset_primary.
19054 (Funibyte_charset): Rename from Fprimary_charset.
19055 (Fset_unibyte_charset): Rename from Fset_primary_charset.
19056 (syms_of_charset): Adjust for the above changes.
19057
19058 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
19059 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
19060 it->multibyte_p is zero.
19061
19062 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
19063 Delete extern.
19064
19065 2008-02-01 Kenichi Handa <handa@m17n.org>
19066
19067 * coding.c (Fdefine_coding_system_internal): Fix category setting
19068 for a coding system of type iso-2022.
19069
19070 2008-02-01 Kenichi Handa <handa@m17n.org>
19071
19072 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
19073
19074 2008-02-01 Kenichi Handa <handa@m17n.org>
19075
19076 * syntax.c (Vnext_word_boundary_function_table): New variable.
19077 (next-word-boundary-function-table): Declare it as a Lisp variable
19078 in syms_of_syntax.
19079 (scan_words): Call functions in Vnext_word_boundary_function_table
19080 if any.
19081
19082 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
19083
19084 * fontset.c (fs_load_font): If fontp->charset is not negative,
19085 return fontp without setting its members.
19086
19087 2008-02-01 Dave Love <fx@gnu.org>
19088
19089 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
19090
19091 * m/sparc.h (HAVE_ALLOCA): Delete.
19092
19093 * s/irix6-5.h: Don't include strings.h.
19094 (bcopy, bzero, bcmp): Don't undef.
19095
19096 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
19097
19098 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
19099 (TIOCSIGSEND): Don't test IRIX6.
19100 (bcopy, bzero, bcmp): Define conditionally.
19101
19102 2008-02-01 Kenichi Handa <handa@m17n.org>
19103
19104 * buffer.c (Qas, Qmake, Qto): New variables.
19105 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
19106 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
19107
19108 * callproc.c (Fcall_process): Don't call insert_1_both directly if
19109 we are inserting a process output into a multibyte buffer.
19110
19111 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
19112 multibyte_char_to_unibyte.
19113
19114 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
19115 by the primary charset, make it eight-bit char.
19116 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
19117
19118 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
19119 (charset_8_bit__control, charset_8_bit_graphic)
19120 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
19121 (define_charset_internal): New function.
19122 (syms_of_charset): Call define_charset_internal for pre-defined
19123 charsets.
19124
19125 * charset.h (charset_8_bit): Extern it.
19126
19127 * coding.c (make_conversion_work_buffer): Adjust for the change
19128 of Fset_buffer_multibyte.
19129 (encode_coding_raw_text): Increment p0 in the loop.
19130
19131 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
19132
19133 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
19134 for the change of Fset_buffer_multibyte.
19135
19136 * fns.c (Fstring_to_multibyte): New function.
19137 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
19138
19139 2008-02-01 Dave Love <fx@gnu.org>
19140
19141 * xfns.c (x_put_x_image): Declare args.
19142
19143 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
19144 (try_font_list): Declare an arg.
19145
19146 * xdisp.c (message2_nolog, set_message): Declare an arg.
19147
19148 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
19149
19150 * syntax.c (scan_sexps_forward): Declare an arg.
19151
19152 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
19153 Declare an arg.
19154
19155 * lisp.h (Fnew_fontset): Declare.
19156
19157 * keymap.c (push_key_description): Call CHARACTERP correctly.
19158
19159 * fontset.c (fontset_add): Declare args. Call make_number correctly.
19160 (face_for_char): Delete unused vars.
19161 (Fset_fontset_font): Doc fix. Delete unused vars.
19162
19163 * doc.c (Fsubstitute_command_keys): Delete unused vars.
19164
19165 * composite.c (update_compositions): Declare arg.
19166
19167 * cm.c (calccost, cmgoto): Declare args.
19168
19169 * charset.c: Remove `emacs' conditional. Doc fixes.
19170 (map_char_table_for_charset): Declare.
19171
19172 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
19173
19174 * ccl.c: Remove `emacs' conditional.
19175
19176 2008-02-01 Kenichi Handa <handa@m17n.org>
19177
19178 The following changes are to allow specifying multiple font
19179 patterns for a character range (specified by script or charset).
19180
19181 * Makefile.in (abbrev.o): Depend on syntax.h.
19182 (xfaces.o): Depend on charset.h.
19183
19184 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
19185 SINGLE_BYTE_CHAR_P.
19186
19187 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
19188
19189 * character.h (Vchar_script_table): Extern it.
19190
19191 * character.c (Vscript_alist): Delete.
19192 (Vchar_script_table, Qchar_script_table): New variable.
19193 (syms_of_character): Declare Vchar_script_table as a lisp variable
19194 and initialize it.
19195
19196 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
19197 have property char-table-extra-slots, make no extra slot.
19198
19199 * dispextern.h (struct face): Delete member `charset'.
19200 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
19201 SINGLE_BYTE_CHAR_P.
19202 (choose_face_font, lookup_non_ascii_face, font_name_registry):
19203 Add prototypes.
19204 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
19205 (generate_ascii_font_name): Rename from generate_ascii_font.
19206
19207 * fontset.h (get_font_repertory_func): New prototype.
19208 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
19209 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
19210
19211 * fontset.c (Qprepend, Qappend): New variables.
19212 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
19213 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
19214 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
19215 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
19216 (fontset_ref_and_range, fontset_add, reorder_font_vector)
19217 (load_font_get_repertory): New functions.
19218 (fontset_set): Delete.
19219 (fontset_face): New arg FACE. Return face ID, not face.
19220 Complete re-write to handle new fontset structure. Change caller.
19221 (free_face_fontset): Use ASET istead of AREF (X) = Y.
19222 (face_for_char): Don't call lookup_face.
19223 (make_fontset_for_ascii_face): New arg FACE.
19224 (fs_load_font): New arg CHARSET_ID. Don't check
19225 Vfont_encoding_alist here.
19226 (find_font_encoding): New function.
19227 (list_fontsets): Use STRINGP, not ! NILP.
19228 (accumulate_script_ranges): New function.
19229 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
19230 re-written to handle new fontset structure.
19231 (Ffontset_font): Return a copy of element.
19232 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
19233 docstring of font-encoding-alist.
19234
19235 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
19236 (Fset_fotset_font): Fix arguments to 5.
19237
19238 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
19239
19240 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
19241 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
19242 (highlight_trailing_whitespace): Adjust for the change of
19243 lookup_named_face.
19244
19245 * xfaces.c: Include charset.h.
19246 (load_face_font): Delete argument C. Change caller.
19247 (generate_ascii_font_name): Rename from generate_ascii_font.
19248 (font_name_registry): New function.
19249 (cache_face): Store ascii faces before non-ascii faces in buckets.
19250 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
19251 Lookup only ascii faces.
19252 (lookup_non_ascii_face): New function.
19253 (lookup_named_face): Delete argument C. Change caller.
19254 (lookup_derived_face): Delete argument C. Change caller.
19255 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
19256 a string, just call font_list with it.
19257 (choose_face_font): Delete arguments FACE and C. New arg
19258 FONT_SPEC. Change caller.
19259 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
19260 Change caller.
19261 (realize_non_ascii_face): New function.
19262 (realize_x_face): Call load_face_font here.
19263 (realize_tty_face): Delete argument C. Change caller.
19264 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
19265 get a face ID.
19266 (dump_realized_face): Don't print charset of FACE.
19267
19268 * xfns.c (x_set_font): Always call x_new_fontset and
19269 store_frame_parameter.
19270 (Fx_create_frame): Call x_new_fontset, not x_new_font.
19271 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
19272
19273 * xterm.h (x_get_font_repertory): Extern it.
19274
19275 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
19276 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
19277 it->multibyte_p is zero.
19278 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
19279 (x_new_fontset): If FONTSETNAME doesn't match any existing
19280 fontsets, create a new one.
19281 (x_get_font_repertory): New function.
19282
19283 2008-02-01 Kenichi Handa <handa@m17n.org>
19284
19285 * coding.c (Ffind_coding_systems_region_internal): Detect an
19286 ASCII only string correctly.
19287
19288 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
19289 version is 0.
19290
19291 2008-02-01 Kenichi Handa <handa@m17n.org>
19292
19293 * lread.c: Include "coding.h".
19294 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
19295 (load_each_byte, unread_char): New variables.
19296 (readchar_backlog): Delete.
19297 (readchar): Return a character unless load_each_byte is nonzero.
19298 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
19299 cons. If unread_char is not -1, simply return it.
19300 (unreadchar): Handle the case that readcharfun is
19301 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
19302 (read_multibyte): Delete.
19303 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
19304 (read_emacs_mule_char): New functions.
19305 (Fload): Even if the file doesn't have the extension ".elc", if
19306 safe_to_load_p returns a positive version number, assume that the
19307 file contains bytecompiled code. If the version is less than 22,
19308 load the file while decoding multibyte sequences by emacs-mule.
19309 (readevalloop): Don't use readchar_backlog.
19310 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
19311 (Fread_from_string): Pay attention to the case that STREAM is a cons.
19312 (read_escape): Delete the arg BYTEREP.
19313 (read1): Set load_each_byte to 1 temporarily while handling
19314 #@NUMBER. Don't call read_multibyte.
19315 (read_vector): Call Fread with a cons. If readcharfun is
19316 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
19317 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
19318 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
19319 and Qload_force_doc_strings.
19320
19321 2008-02-01 Kenichi Handa <handa@m17n.org>
19322
19323 * xdisp.c (face_before_or_after_it_pos): Call
19324 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
19325
19326 2008-02-01 Kenichi Handa <handa@m17n.org>
19327
19328 * character.h (TRAILING_CODE_P): New macro.
19329 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
19330 (string_char_with_unification): Fix prototype.
19331 (Vscript_alist): Extern it.
19332
19333 * character.c (Vscript_alist): New variable.
19334 (string_char_with_unification, str_as_unibyte)
19335 (string_escape_byte8): Add `const' to local variables.
19336 (syms_of_character): Declare script-alist as a Lisp variable.
19337
19338 * charset.h (Vcharset_ordered_list): Extern it.
19339 (charset_ordered_list_tick): Extern it.
19340 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
19341 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
19342 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
19343 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
19344 (Funify_charset): Adjust for the change of Funify_charset.
19345
19346 * charset.c (charset_ordered_list_tick): New variable.
19347 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
19348 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
19349 deunify intead of unify a charset.
19350 (string_xstring_p): Add `const' to local variables.
19351 (find_charsets_in_text): Add `const' to arguments and local variables.
19352 (encode_char): Adjust for the change of Funify_charset. Fix
19353 detecting of invalid code.
19354 (Fset_charset_priority): Increment charset_ordered_list_tick.
19355 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
19356 and TO_CODE.
19357
19358 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
19359 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
19360 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
19361 (decode_coding_ccl, consume_chars)
19362 (Ffind_coding_systems_region_internal)
19363 (Fcheck_coding_systems_region): Add `const' to local variables.
19364
19365 * print.c (print_object): Use octal form for printing the
19366 contents of a bool vector.
19367
19368 2008-02-01 Dave Love <fx@gnu.org>
19369
19370 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
19371 <version == 20>: Refuse to load.
19372
19373 2008-02-01 Dave Love <fx@gnu.org>
19374
19375 * fns.c: Move coding.h.
19376 (Qcodeset, Qdays, Qmonths): New.
19377 (concat): Use CHARACTERP instead of INTEGERP.
19378 (Flocale_codeset): Delete.
19379 (Flanginfo): New function.
19380 (syms_of_fns): Change accordingly.
19381
19382 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
19383
19384 2008-02-01 Dave Love <fx@gnu.org>
19385
19386 * casetab.c (init_casetab_once, init_casetab_once): Fix
19387 CHAR_TABLE_SET call.
19388
19389 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
19390
19391 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
19392
19393 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
19394 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
19395 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
19396
19397 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
19398
19399 * coding.c (ENCODE_DESIGNATION, decode_eol)
19400 (make_conversion_work_buffer, code_conversion_restore)
19401 (Fdefine_coding_system_internal): Convert Lisp types.
19402 (code_conversion_restore): Use EQ, not ==.
19403 (Fencode_coding_string): Fix code_convert_string call.
19404
19405 * coding.h (code_convert_region): Fix prototype.
19406
19407 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
19408
19409 * fontset.c (fontset_ref, fontset_set, fs_load_font)
19410 (Ffontset_info): Convert Lisp types.
19411
19412 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
19413
19414 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
19415
19416 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
19417
19418 * chartab.c: Include "...h", not <...h> in some cases.
19419
19420 * callproc.c (Fcall_process): Remove unused variables.
19421
19422 2008-02-01 Dave Love <fx@gnu.org>
19423
19424 * coding.c (Fset_coding_system_priority): Allow null arg list.
19425
19426 2008-02-01 Dave Love <fx@gnu.org>
19427
19428 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
19429 (Fself_insert_and_exit): Use CHARACTERP.
19430
19431 * callproc.c (Fcall_process): Remove unused vars.
19432
19433 * xterm.c (XTread_socket): Add extra dead keysyms.
19434
19435 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
19436
19437 * dispextern.h: Remove prototypes for redraw_frame,
19438 redraw_garbaged_frames.
19439
19440 * cmds.c (Fself_insert_command): Use CHARACTERP.
19441
19442 * chartab.c (make_sub_char_table): Remove unused var.
19443 (Fset_char_table_default, Fmap_char_table): Doc fix.
19444
19445 * keymap.c (access_keymap): Remove generic char code.
19446 (push_key_description): Use CHARACTERP.
19447
19448 2008-02-01 Dave Love <fx@gnu.org>
19449
19450 * charset.c: Doc fixes.
19451 (Funify_charset): Extra checking.
19452
19453 2008-02-01 Dave Love <fx@gnu.org>
19454
19455 * lread.c: Remove some unused variables.
19456 (safe_to_load_p): If safe, return the magic number version byte.
19457 (Fload): Maybe use load-with-code-conversion.
19458
19459 2008-02-01 Kenichi Handa <handa@m17n.org>
19460
19461 * category.c (Fmodify_category_entry): Don't modify the contents
19462 of category_set for characters out of the range. Avoid
19463 unnecessary modification.
19464
19465 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
19466 Vchar_unify_table. The default value of the table is now nil.
19467
19468 * character.c (syms_of_character): Setup Vchar_width_table for
19469 eight-bit-control and raw-byte chars.
19470
19471 * charset.h (enum define_charset_arg_index): Delete
19472 charset_arg_parents and add charset_arg_subset and
19473 charset_arg_superset.
19474 (enum charset_attr_index): Delete charset_parents and add
19475 charset_subset and charset_superset.
19476 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
19477 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
19478 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
19479 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
19480 (CHARSET_SUPERSET): New macros.
19481 (charset_work): Extern it.
19482 (ENCODE_CHAR): Use charset_work.
19483 (CHAR_CHARSET_P): Adjust for the change of encoder format.
19484 (map_charset_chars): Extern it.
19485
19486 * charset.c (load_charset_map): Set the default value of encoder
19487 and deunifier char-tables to nil.
19488 (map_charset_chars): Change argument. Change callers. Use
19489 map_char_table_for_charset instead of map_char_table.
19490 (Fmap_charset_chars): New optional args from_code and to_code.
19491 (Fdefine_charset_internal): Adjust for the change of
19492 `define-charset' (:parents -> :subset or :superset).
19493 (charset_work): New variable.
19494 (encode_char, syms_of_charset): Adjust for the change of
19495 Fdefine_charset_internal.
19496 (Ffind_charset_string): Setup the vector `charsets' correctly.
19497
19498 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
19499 the previous change.
19500 (char_table_ref_and_range): Adjust for the above change.
19501 (map_sub_char_table_for_charset): New function.
19502 (map_char_table_for_charset): New function.
19503
19504 * keymap.c (describe_vector): Handle a char-table directly here.
19505 (describe_char_table): Delete.
19506
19507 * lisp.h (map_charset_chars): Delete.
19508
19509 2008-02-01 Dave Love <fx@gnu.org>
19510
19511 * fns.c (count_combining): Comment out (unused).
19512 (Flocale_codeset): New.
19513 (syms_of_fns): Defsubr it.
19514
19515 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
19516 (size_t): Remove.
19517
19518 2008-02-01 Dave Love <fx@gnu.org>
19519
19520 * Makefile.in (chartab.o): Depend on charset.h.
19521
19522 2008-02-01 Kenichi Handa <handa@m17n.org>
19523
19524 * character.c (syms_of_character): Set the default value of
19525 Vprintable_chars to Qnil.
19526
19527 2008-02-01 Dave Love <fx@gnu.org>
19528
19529 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
19530
19531 2008-02-01 Kenichi Handa <handa@m17n.org>
19532
19533 * charset.c (load_charset_map): Handle the case that from < to
19534 correctly.
19535
19536 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
19537 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
19538 Pay attention to raw-8-bit chars.
19539
19540 2008-02-01 Kenichi Handa <handa@m17n.org>
19541
19542 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
19543 It is not bytecompiled now.
19544
19545 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
19546 (charset_jisx0208): New variables.
19547 (Fdefine_charset_internal): Setup them if appropriate.
19548 (init_charset_once): Initialize them to -1.
19549
19550 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
19551 (charset_jisx0208): Extern them.
19552
19553 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
19554 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
19555 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
19556 (setup_iso_safe_charsets): Fix arguments to Fassq.
19557 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
19558 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
19559 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
19560 (encode_coding_iso_2022): Change the 1st arg to
19561 ENCODE_ISO_CHARACTER to a variable.
19562
19563 2008-02-01 Kenichi Handa <handa@m17n.org>
19564
19565 * charset.h (enum define_charset_arg_index): New enums
19566 charset_arg_min_code and charset_arg_max_code.
19567 (struct charset): New member char_index_offset.
19568
19569 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
19570 Take charset->char_index_offset into account.
19571 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
19572 args[charset_arg_max_code]. Setup charset.char_index_offset.
19573 (syms_of_charset): Fix args to Fdefine_charset_internal.
19574
19575 2008-02-01 Dave Love <fx@gnu.org>
19576
19577 * coding.c (decode_coding_utf_8): Reject overlong sequences.
19578
19579 2008-02-01 Dave Love <fx@gnu.org>
19580
19581 * coding.c: Doc fixes.
19582 (Fcoding_system_aliases): Fix return value.
19583 (Qmac): Remove (duplicated) definition.
19584
19585 2008-02-01 Dave Love <fx@gnu.org>
19586
19587 * charset.c (Fcharset_priority_list, Fset_charset_priority):
19588 New functions.
19589
19590 * character.c (Fstring): Doc fix.
19591
19592 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
19593
19594 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
19595 (font-encoding-alist): Doc fix.
19596
19597 2008-02-01 Dave Love <fx@gnu.org>
19598
19599 * term.c (costs_set): Declare static, non-initialized for pcc.
19600 (encode_terminal_code): Remove unused var.
19601
19602 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
19603 for K&R.
19604
19605 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
19606
19607 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
19608 (suffixes): Move out of make_subsidiaries for K&R.
19609
19610 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
19611
19612 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
19613
19614 2008-02-01 Dave Love <fx@gnu.org>
19615
19616 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
19617
19618 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
19619
19620 2008-02-01 Yong Lu <lyongu@asia-infonet.com>
19621
19622 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
19623
19624 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
19625
19626 2008-02-01 Kenichi Handa <handa@m17n.org>
19627
19628 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
19629 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
19630
19631 2008-02-01 Kenichi Handa <handa@m17n.org>
19632
19633 * coding.c (decode_coding_charset): Adjust for the change of
19634 Fdefine_coding_system_internal.
19635 (Fdefine_coding_system_internal): For a coding system of
19636 `charset' type, store a list of charset IDs in
19637 `charset_attr_charset_valids' element of coding attributes.
19638
19639 2008-02-01 Kenichi Handa <handa@m17n.org>
19640
19641 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
19642 (emacs_mule_char): New arg src. Delete arg `composition'. Change
19643 caller. Handle 2-byte and 3-byte charsets correctly.
19644 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
19645 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
19646 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
19647 (DECODE_EMACS_MULE_21_COMPOSITION): Call
19648 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
19649 sequence.
19650 (decode_coding_emacs_mule): Handle composition correctly. Rewind
19651 `src' and `consumed_chars' correctly before calling emacs_mule_char.
19652 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
19653 and alt&rule composition.
19654 (decode_coding_iso_2022): Handle composition correctly.
19655 (init_coding_once): Setup emacs_mule_bytes for private charsets.
19656
19657 * charset.c (Fdefine_charset_internal): Fix bug for the case of
19658 re-defining a charset. If the charset has :emacs-mule-id, setup
19659 emacs_mule_bytes.
19660 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
19661
19662 2008-02-01 Kenichi Handa <handa@m17n.org>
19663
19664 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
19665 (encode_coding_big5, encode_coding_charset): If coding requires safe
19666 encoding, produce a character specified by
19667 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
19668
19669 2008-02-01 Dave Love <fx@gnu.org>
19670
19671 * xterm.c (XSetIMValues): Declare.
19672
19673 * process.c: Conditionally include sys/wait.h, pty.h.
19674
19675 * print.c (print_object): Fix print format for 64-bit systems.
19676
19677 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
19678
19679 * buffer.c (emacs_strerror): Declare.
19680
19681 * fontset.c (Fclear_face_cache): Declare.
19682 (accumulate_font_info): Comment-out (unused).
19683 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
19684 variables.
19685
19686 * character.h (string_escape_byte8): Declare.
19687
19688 * charset.c (load_charset_map, load_charset_map_from_file): Remove
19689 unused vars.
19690 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
19691 (Fmap_charset_chars): Doc fix.
19692
19693 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
19694 (Fset_coding_system_priority, Fset_coding_system_priority)
19695 (Fdefine_coding_system_internal): Doc fix.
19696
19697 2008-02-01 Dave Love <fx@gnu.org>
19698
19699 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
19700
19701 2008-02-01 Kenichi Handa <handa@m17n.org>
19702
19703 * character.c (string_escape_byte8): Make multibyte string with
19704 correct size.
19705
19706 * charset.c (Fmake_char): Delete unnecessary code.
19707
19708 2008-02-01 Kenichi Handa <handa@m17n.org>
19709
19710 * xfns.c (x_encode_text): Allocate coding.destination here, and
19711 call encode_coding_object with dst_object Qnil.
19712
19713 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
19714 multibyte form correctly.
19715
19716 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
19717 against Vfont_encoding_alist.
19718
19719 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
19720 handling of charset list.
19721 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
19722 (decode_coding_object): Move point to coding->dst_pos before
19723 calling post-read-conversion function.
19724 (encode_coding_object): Give correct arguments to
19725 pre-write-conversion. Ignore the return value of
19726 pre-write-conversion function. Pay attention to the case that
19727 pre-write-conversion changes the current buffer. If dst_object is
19728 Qt, even if coding->src_bytes is zero, allocate at least one byte
19729 to coding->destination.
19730
19731 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
19732
19733 * charset.c (Fmake_char): Make it more backward compatible.
19734 (Fmap_charset_chars): Fix docstring.
19735
19736 2008-02-01 Dave Love <fx@gnu.org>
19737
19738 * coding.c: Doc fixes.
19739 (Fdefine_coding_system_alias): Use names, not symbols, in
19740 coding-system-alist.
19741
19742 2008-02-01 Kenichi Handa <handa@m17n.org>
19743
19744 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
19745 of calling free_realized_face.
19746
19747 2008-02-01 Yong Lu <lyongu@asia-infonet.com>
19748
19749 * charset.c (read_hex): Don't treat SPC as a comment starter.
19750 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
19751 (Fdecode_char): Fix typo.
19752
19753 2008-02-01 Kenichi Handa <handa@m17n.org>
19754
19755 * charset.h (struct charset): New member `code_space_mask'.
19756
19757 * coding.c (coding_set_source): Delete the local variable beg_byte.
19758 (encode_coding_charset, Fdefine_coding_system_internal):
19759 Delete the local variable charset.
19760 (Fdefine_coding_system_internal): Setup
19761 attrs[coding_attr_charset_valids] correctly.
19762
19763 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
19764 member to check if CODE is valid or not.
19765 (Fdefine_charset_internal): Initialize `code_space_mask' member.
19766 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
19767 is within the range of charset->min_code and carset->max_code.
19768
19769 2008-02-01 Dave Love <fx@gnu.org>
19770
19771 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
19772
19773 * dispextern.h (generate_ascii_font): Fix return type.
19774
19775 * xfaces.c (generate_ascii_font): Fix arg declaration.
19776
19777 * coding.c (coding_inherit_eol_type)
19778 (Fset_terminal_coding_system_internal)
19779 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
19780
19781 2008-02-01 Kenichi Handa <handa@m17n.org>
19782
19783 * coding.c (decode_coding_charset, encode_coding_charset): Handle
19784 multiple charsets correctly.
19785
19786 2008-02-01 Kenichi Handa <handa@m17n.org>
19787
19788 * search.c (boyer_moore): Fix handling of multibyte character
19789 translation.
19790
19791 * xdisp.c (display_mode_element): When the variable `elt' is
19792 changed, update `this' and `lisp_string'.
19793
19794 2008-02-01 Kenichi Handa <handa@m17n.org>
19795
19796 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
19797
19798 * callproc.c (Fcall_process): Be sure to give the current buffer
19799 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
19800
19801 * charset.c (struct charset_map_entries): New struct.
19802 (load_charset_map): Rename from parse_charset_map. New args
19803 entries and n_entries. Change caller.
19804 (load_charset_map_from_file): Rename from load_charset_map.
19805 Change caller. New arg control_flag. Call load_charset_map at
19806 the tail.
19807 (load_charset_map_from_vector): New function.
19808 (Fdefine_charset_internal): Setup charset.compact_codes_p.
19809 (encode_char): If the charset is compact, change a character index
19810 to a code point.
19811
19812 * coding.c (coding_alloc_by_making_gap): Check the case that the
19813 source and destination are the same correctly.
19814 (decode_coding_raw_text): Set coding->consumed_char and
19815 coding->consumed to 0.
19816 (produce_chars): If coding->chars_at_source is nonzero, update
19817 coding->consumed_char and coding->consumed before calling
19818 alloc_destination.
19819 (Fdefine_coding_system_alias): Register ALIAS in
19820 Vcoding_system_alist.
19821 (syms_of_coding): Define `no-conversion' coding system at the tail.
19822
19823 * fileio.c (Finsert_file_contents): Set coding_system instead of
19824 val. If the current buffer is multibyte, always call
19825 decode_coding_gap.
19826
19827 * xfaces.c (try_font_list): Give higher priority to fontset's
19828 family than face's family.
19829
19830 2008-02-01 Kenichi Handa <handa@m17n.org>
19831
19832 * callproc.c (Fcall_process): Be sure to give the current buffer
19833 to decode_coding_c_string.
19834
19835 * xfaces.c (try_font_list): Give a family specified in a fontset
19836 higher priority than a family specified in a face.
19837
19838 2008-02-01 Kenichi Handa <handa@m17n.org>
19839
19840 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
19841 Fix arguments to insert_from_buffer.
19842
19843 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
19844
19845 2008-02-01 Kenichi Handa <handa@m17n.org>
19846
19847 * coding.c (produce_chars): Set the variable `multibytep' correctly.
19848 (decode_coding_gap): Set coding->dst_multibyte correctly.
19849
19850 2008-02-01 Kenichi Handa <handa@m17n.org>
19851
19852 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
19853 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
19854 (encode_coding_utf_16): Substitute coding->default_char for
19855 non-Unicode characters.
19856 (decode_coding): Don't call record_insert here.
19857 (setup_coding_system): Initialize `surrogate' of
19858 coding->spec.utf_16 to 0.
19859 (EMIT_ONE_BYTE): Fix for multibyte case.
19860
19861 * insdel.c (insert_from_gap): Call record_insert.
19862
19863 2008-02-01 Kenichi Handa <handa@m17n.org>
19864
19865 * casefiddle.c (casify_region): Fix multibyte case.
19866
19867 * character.c (c_string_width): Add return type `int'.
19868 (char_string_with_unification): Delete arg ADVANCED.
19869
19870 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
19871 (CHAR_STRING): Adjust for the change of char_string_with_unification.
19872 (CHAR_STRING_ADVANCE): Make it do-while statement.
19873
19874 * chartab.c (sub_char_table_set_range): Optimize for the case
19875 DEPTH == 3. Add workaround code for a GCC optimization bug.
19876
19877 * charset.c (parse_charset_map): Remove an unused variable.
19878
19879 * coding.c: Delete unused variables.
19880
19881 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
19882 earlier. If inserted is zero and the coding system doesn't
19883 require flushing, don't call decode_coding_gap.
19884
19885 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
19886
19887 2008-02-01 Kenichi Handa <handa@m17n.org>
19888
19889 The following changes are for using Unicode as an internal
19890 character model, and use UTF-8 format for buffer/string
19891 representation.
19892
19893 * .gdbinit (xchartable): Adjust for the change of char table structure.
19894 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
19895
19896 * Makefile.in (obj): Add character.o and chartab.o.
19897 (lisp, shortlisp): Remove utf-8.elc.
19898 (*.o): For many files, change dependency on charset.h to
19899 character.h, and add dependency on character.h.
19900 (character.o, chartab.o): New targets.
19901
19902 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
19903 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
19904 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
19905 of "charset.h".
19906
19907 * dired.c, filelock.c: Include "character.h".
19908
19909 * alloc.c: Include "character.h" instead of "charset.h".
19910 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
19911 (syms_of_alloc): Remove defsubr for Smake_char_table.
19912
19913 * buffer.c: Include "character.h" instead of "charset.h", don't
19914 include "coding.h".
19915 (Fset_buffer_multibyte): Adjust for UTF-8.
19916
19917 * buffer.h: EXFUN Fbuffer_live_p.
19918
19919 * callproc.c: Include "character.h" instead of "charset.h".
19920 (Fcall_process): Big change for the new code-conversion APIs.
19921
19922 * casetab.c: Include "character.h" instead of "charset.h".
19923 (set_canon, set_identity, shuffle): Adjust for the new
19924 map_char_table spec.
19925 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
19926 accessing the char table structure.
19927
19928 * chartab.c: New file that implements char table.
19929
19930 * category.c: Include "character.h".
19931 (copy_category_entry): New function.
19932 (copy_category_table): Call map_char_table and copy_category_entry.
19933 (Fmake_category_table): Initialize all top-level slots.
19934 (char_category_set): New function.
19935 (modify_lower_category_set): Delete.
19936 (Fmodify_category_entry): Call char_table_ref_and_range.
19937
19938 * category.h (CATEGORY_SET): Just call char_category_set.
19939
19940 * ccl.c: Include "character.h".
19941 (Qccl, Qcclp): New variables.
19942 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
19943 it's less than 256.
19944 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
19945 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
19946 and DST type.
19947 (ccl_driver): Change types of argument, adjust code accordingly.
19948 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
19949 ccl_driver.
19950 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
19951
19952 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
19953 New members src_multibyte, dst_multibyte, consumed, and produced.
19954 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
19955 (CODING_SPEC_CCL_PROGRAM): New macro.
19956 (ccl_driver): Update prototype.
19957 (Qccl, Qcclp, Fccl_program_p): Extern them.
19958 (CHECK_CCL_PROGRAM): New macro.
19959
19960 * character.c, character.h, chartab.c: New files.
19961
19962 * charset.c: Mostly re-written. Move character and multibyte sequence
19963 handling codes to character.c.
19964
19965 * charset.h: Mostly re-written. Move character and multibyte sequence
19966 handling codes to character.h.
19967
19968 * coding.c, coding.h: Mostly re-written.
19969
19970 * composite.c: Include "character.h" instead of "charset.h".
19971 (CHAR_WIDTH): Move to character.h.
19972 (HASH_KEY, HASH_VALUE): Delete.
19973
19974 * composite.h (enum composition_method): Change order of enumeration
19975 symbols.
19976
19977 * data.c: Include "character.h" instead of "charset.h".
19978 (Faref): Call CHAR_TABLE_REF for a char table.
19979 (Faset): Call CHAR_TABLE_SET for a char table.
19980
19981 * dispextern.h (free_realized_face, check_face_attribytes)
19982 (generate_ascii_font): Extern them.
19983 (free_realized_multibyte_face): Delete extern.
19984
19985 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
19986 table structure.
19987
19988 * editfns.c: Include "character.h" instead of "charset.h".
19989 (Fchar_to_string): Always call CHAR_STRING.
19990
19991 * emacs.c (main): Call init_charset_once, init_charset,
19992 syms_of_chartab, and syms_of_character.
19993
19994 * fileio.c: Include "character.h" instead of "charset.h".
19995 (Finsert_file_contents): Big change for the new code-conversion API.
19996 (choose_write_coding_system, Fwrite_region): Likewise.
19997 (build_annotations_2): Delete.
19998 (e_write): Big change for the new code-conversion API.
19999
20000 * fns.c: Include "character.h" instead of "charset.h".
20001 (copy_sub_char_table): Move to chartab.c.
20002 (Fcopy_sequence): Call copy_char_table for a char table.
20003 (concat): Delete codes calling count_multibyte.
20004 (string_char_to_byte, string_byte_to_char): Adjust for the new
20005 multibyte form.
20006 (internal_equal): Adjust for the change of char table structure.
20007 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
20008 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
20009 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
20010 (char_table_translate, optimize_sub_char_table)
20011 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
20012 chartab.c.
20013 (char_table_ref_and_index): Delete.
20014 (HASH_KEY, HASH_VALUE): Move to lisp.h.
20015 (Fmd5): Call preferred_coding_system instead of accessing
20016 Vcoding_category_list. Adjust for the new code-conversion API.
20017 (syms_of_fns): Move defsubr for char table related functions to
20018 chartab.c.
20019
20020 * fontset.c: Mostly re-written.
20021
20022 * fontset.h (struct font_info): Change type of the member encoding_type.
20023 (enum FONT_SPEC_INDEX): New enum.
20024 (fontset_font_pattern, fs_load_font): Update prototype.
20025 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
20026
20027 * indent.c: Include "character.h" instead of "charset.h".
20028 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
20029
20030 * insdel.c: Include "character.h" instead of "charset.h".
20031 (copy_text): Don't refer to Vnonascii_translation_table.
20032 (insert_from_gap): New function.
20033
20034 * keyboard.c: Include "character.h" instead of "charset.h".
20035 (command_loop_1): Never call direct_output_forward_char before
20036 a non-ASCII character.
20037 (read_char): If Vkeyboard_translate_table is a char table, always
20038 translate a character.
20039
20040 * keymap.c: Include "character.h".
20041 (store_in_keymap): Handle the case that IDX is a cons.
20042 (Fdefine_key): Handle the case that KEY is a cons and the car part
20043 is also a cons (range).
20044 (push_key_description): Adjust for the new character code.
20045 (describe_vector): Call describe_char_table for a char table.
20046 (describe_char_table): New function.
20047
20048 * keymap.h (describe_char_table): Extern it.
20049
20050 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
20051 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
20052 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
20053 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
20054 Delete.
20055 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
20056 structure.
20057 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
20058 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
20059 (CHARTAB_SIZE_BITS_3): New macros.
20060 (chartab_size): Extern it.
20061 (struct Lisp_Char_Table): Re-design.
20062 (struct Lisp_Sub_Char_Table): New structure.
20063 (HASH_KEY, HASH_VALUE): Move from fns.c.
20064 (CHARACTERBITS): Define as 22.
20065 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
20066 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
20067 (GC_SUB_CHAR_TABLE_P): New macro.
20068 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
20069 (code_convert_string_norecord): Deleted extern.
20070 (init_character_once, syms_of_character, init_charset)
20071 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
20072
20073 * lread.c: Include "character.h".
20074 (read_multibyte): New arg NBYTES.
20075 (read_escape): Change the meaning of returned *BYTEREP.
20076 (to_multibyte): Delete.
20077 (read1): Adjust the handling of char table and string.
20078
20079 * print.c: Include "character.h" instead of "charset.h".
20080 (print_string): Convert 8-bit raw bytes to octal form by
20081 string_escape_byte8.
20082 (print_object): Adjust for the new multibyte form. Print 8-bit
20083 raw bytes always in octal form. Handle sub char table correctly.
20084
20085 * process.c: Include "character.h" instead of "charset.h".
20086 (read_process_output, send_process): Adjust for the new
20087 code-conversion API.
20088
20089 * puresize.h (BASE_PURESIZE): Increase.
20090
20091 * regex.c: Include "character.h" instead of "charset.h".
20092 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
20093 (regex_compile): Accept a range whose starting and ending
20094 character have different leading bytes.
20095 (analyse_first): Adjust for the above change.
20096
20097 * search.c: Include "character.h" instead of "charset.h".
20098 (search_buffer, boyer_moore): Adjust for the new multibyte form.
20099 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
20100
20101 * syntax.c: Include "character.h" instead of "charset.h".
20102 (syntax_parent_lookup): Delete.
20103 (Fmodify_syntax_entry): Accept a cons as CHAR.
20104 (skip_chars): Adjust for the new multibyte form.
20105 (init_syntax_once): Call char_table_set_range instead of directly
20106 accessing the structure of a char table.
20107
20108 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
20109 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
20110 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
20111 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
20112
20113 * term.c: Include "buffer.h" and "character.h".
20114 (encode_terminal_code, write_glyphs): Adjust for the new
20115 code-conversion API.
20116 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
20117
20118 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
20119
20120 * xdisp.c: Include "character.h".
20121 (get_next_display_element): Adjust for the new multibyte form.
20122 (disp_char_vector): Adjust for the new char table structure.
20123 (decode_mode_spec_coding): Adjust for the new structure of
20124 coding system.
20125 (decode_mode_spec): Adjust for the new code-conversion API.
20126
20127 * xfaces.c: Include "character.h" instead of "charset.h".
20128 (load_face_font): Adjust for the change of choose_face_font and
20129 FS_LOAD_FONT.
20130 (generate_ascii_font): New function.
20131 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
20132 (set_font_frame_param): Adjust for the change of choose_face_font.
20133 (free_realized_face): Make it public.
20134 (free_realized_faces_for_fontset): Rename from
20135 free_realized_multibyte_face. Free also faces realized for ASCII.
20136 (choose_face_font): Change arguments. Adjust for the change of
20137 fontset_font_pattern and FS_LOAD_FONT.
20138
20139 * xfns.c: Include "character.h".
20140 (x_encode_text): Adjust for the new code-conversion API.
20141
20142 * xselect.c: Don't include "charset.h".
20143 (selection_data_to_lisp_data): Adjust for the new code conversion API.
20144
20145 * xterm.c: Include "character.h".
20146 (x_encode_char): New argument CHARSET. Change caller.
20147 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
20148 Call ENCODE_CHAR instead of SPLIT_CHAR.
20149 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
20150 CHAR_WIDTH instead of CHARSET_WIDTH.
20151 (XTread_socket): Adjust for the new code-conversion API.
20152 (x_new_font): Adjust for the change of FS_LOAD_FONT.
20153 (x_load_font): Adjust for the change of struct font.
20154
20155 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
20156
20157 * xfaces.c (face_at_buffer_position): Remove unused vars.
20158
20159 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20160
20161 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
20162 Fix overflow checking.
20163
20164 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20165
20166 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
20167 Cancel previous change.
20168
20169 2008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
20170
20171 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
20172 ccl->eight_bit_control. Fix check for buffer overflow.
20173 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
20174 (ccl_driver): Initialize extra_bytes to 0.
20175
20176 2008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
20177
20178 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
20179 return it ORed with ctrl_modifier.
20180
20181 2008-01-29 Miles Bader <miles@gnu.org>
20182
20183 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
20184
20185 2008-01-28 Jason Rumney <jasonr@gnu.org>
20186
20187 * w32.c (stat): Don't double check for networked drive.
20188
20189 2008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
20190
20191 * window.c (run_window_configuration_change_hook): New function.
20192 Code extracted from set_window_buffer. Set the selected frame.
20193 (set_window_buffer): Use it.
20194 * window.h (run_window_configuration_change_hook): Declare.
20195 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
20196
20197 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
20198
20199 2008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
20200
20201 * Makefile.in: Remove references to unused macros.
20202
20203 2008-01-26 Eli Zaretskii <eliz@gnu.org>
20204
20205 * w32.c (g_b_init_get_sid_sub_authority)
20206 (g_b_init_get_sid_sub_authority_count): New static variables.
20207 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
20208 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
20209 (init_user_info): Use them to retrieve uid and gid.
20210 Use 500/513, the Windows defaults, as Administrator's uid/gid.
20211 (fstat): Use pw_uid and pw_gid from the_passwd structure for
20212 st_uid and st_gid of the file.
20213
20214 2008-01-26 Jason Rumney <jasonr@gnu.org>
20215
20216 * w32.c (logon_network_drive): New function.
20217 (stat): Use it.
20218
20219 2008-01-26 Chong Yidong <cyd@stupidchicken.com>
20220
20221 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
20222 invisible text covered with an ellipsis.
20223
20224 2008-01-25 Richard Stallman <rms@gnu.org>
20225
20226 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
20227 jump back to beginning. Move some other initializations after that.
20228 (Qwindow_text_change_functions, Vwindow_text_change_functions):
20229 New variables.
20230 (syms_of_xdisp): Init them.
20231
20232 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
20233
20234 * buffer.c (reset_buffer_local_variables):
20235 Implement `permanent-local-hook'.
20236 (Qpermanent_local_hook): New variable.
20237 (syms_of_buffer): Init and staticpro it.
20238
20239 2008-01-25 Michael Albinus <michael.albinus@gmx.de>
20240
20241 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
20242
20243 2008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
20244
20245 * fns.c (Fclrhash): Return TABLE.
20246
20247 2008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20248
20249 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
20250 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
20251 is set even without positional changes.
20252 (x_scroll_bar_clear): Set bar->redraw_needed_p.
20253
20254 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
20255
20256 2008-01-23 Jason Rumney <jasonr@gnu.org>
20257
20258 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
20259
20260 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
20261 the unicode range available in MULE by locale-coding-system.
20262 Improve dbcs lead byte detection. Set event timestamp and modifiers
20263 earlier.
20264
20265 2008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20266
20267 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
20268 [MAC_OSX] (init_mac_osx_environment): Initialize it.
20269 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
20270 when used on child processes.
20271
20272 2008-01-21 Michael Albinus <michael.albinus@gmx.de>
20273
20274 * dbusbind.c (Fdbus_method_return_internal): Rename from
20275 Fdbus_method_return.
20276 (Fdbus_unregister_object): Move to dbus.el.
20277 (Fdbus_call_method, Fdbus_method_return_internal)
20278 (Fdbus_send_signal): Improve debug messages.
20279
20280 2008-01-20 Martin Rudalics <rudalics@gmx.at>
20281
20282 * undo.c (undo_inhibit_record_point): New variable.
20283 (syms_of_undo): Initialize it.
20284 (record_point): Don't record point when undo_inhibit_record_point
20285 is set.
20286
20287 2008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
20288
20289 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
20290
20291 * xdisp.c (Qauto_hscroll_mode): New var.
20292 (syms_of_xdisp): Initialize it.
20293 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
20294 window's buffer.
20295 (hscroll_windows): Don't check automatic_hscrolling_p here.
20296
20297 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
20298 vscroll if we're setting window-buffer to the value it already has.
20299
20300 2008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
20301
20302 * m/intel386.h: Remove references to XENIX.
20303
20304 2008-01-17 Andreas Schwab <schwab@suse.de>
20305
20306 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
20307 instead of HAVE_X86_64_LIB64_DIR.
20308 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
20309
20310 2008-01-17 Glenn Morris <rgm@gnu.org>
20311
20312 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
20313 to HAVE_X86_64_LIB64_DIR.
20314
20315 2008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
20316
20317 * s/irix3-3.h:
20318 * s/irix4-0.h:
20319 * s/386-ix.h:
20320 * s/domain.h:
20321 * s/hpux9-x11r4.h:
20322 * s/hpux9shxr4.h: Remove files for systems no longer supported.
20323
20324 * sysdep.c: Remove code containing references to symbols defined
20325 by unsupported systems.
20326
20327 2008-01-16 Glenn Morris <rgm@gnu.org>
20328
20329 * coding.c (select-safe-coding-system-function): Doc fix.
20330
20331 2008-01-15 Glenn Morris <rgm@gnu.org>
20332
20333 * config.in: Revert 2008-01-13 change: this is a generated file.
20334
20335 2008-01-13 Tom Tromey <tromey@redhat.com>
20336
20337 * lisp.h: Fix typo.
20338
20339 2008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
20340
20341 * m/sequent-ptx.h:
20342 * m/sequent.h:
20343 * s/ptx.h:
20344 * s/ptx4-2.h:
20345 * s/ptx4.h: Remove files for systems no longer supported.
20346
20347 * callproc.c (Fcall_process): Fix previous change.
20348
20349 2008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
20350
20351 * unexsunos4.c: Remove file, system not supported anymore.
20352
20353 * m/mips.h:
20354 * m/intel386.h:
20355 * callproc.c:
20356 * config.in:
20357 * ecrt0.c:
20358 * emacs.c:
20359 * fileio.c:
20360 * frame.c:
20361 * getpagesize.h:
20362 * keyboard.c:
20363 * lread.c:
20364 * process.c:
20365 * puresize.h:
20366 * sysdep.c:
20367 * systty.h:
20368 * syswait.h:
20369 * unexec.c:
20370 * xdisp.c:
20371 * alloc.c: Remove code containing references to symbols defined by
20372 unsupported systems.
20373
20374 2008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
20375
20376 * coding.c (detect_coding_mask): Fix previous change.
20377
20378 2008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
20379
20380 * coding.c (detect_coding_iso2022): New arg
20381 latin_extra_code_state. Allow Latin extra codes only
20382 when *latin_extra_code_state is nonzero.
20383 (detect_coding_mask): If there is a NULL byte, detect the encoding
20384 as UTF-16 or binary. If Latin extra codes exist, detect the
20385 encoding as ISO-2022 only when there's no other proper encoding is
20386 found.
20387
20388 2008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20389
20390 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
20391 #ifdef MAC_OS.
20392
20393 2008-01-08 Richard Stallman <rms@gnu.org>
20394
20395 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
20396
20397 2008-01-06 Nick Roberts <nickrob@snap.net.nz>
20398
20399 * keyboard.c (parse_menu_item): Don't enclose key bindings on
20400 menu bar in parentheses.
20401
20402 2008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
20403
20404 * m/7300.h:
20405 * m/acorn.h:
20406 * m/alliant-2800.h:
20407 * m/alliant.h:
20408 * m/alliant1.h:
20409 * m/alliant4.h:
20410 * m/altos.h:
20411 * m/amdahl.h:
20412 * m/apollo.h:
20413 * m/att3b.h:
20414 * m/aviion-intel.h:
20415 * m/aviion.h:
20416 * m/celerity.h:
20417 * m/clipper.h:
20418 * m/cnvrgnt.h:
20419 * m/convex.h:
20420 * m/cydra5.h:
20421 * m/delta88k.h:
20422 * m/dpx2.h:
20423 * m/dual.h:
20424 * m/elxsi.h:
20425 * m/f301.h:
20426 * m/gould-np1.h:
20427 * m/gould.h:
20428 * m/i860.h:
20429 * m/ibmps2-aix.h:
20430 * m/ibmrt-aix.h:
20431 * m/ibmrt.h:
20432 * m/irist.h:
20433 * m/is386.h:
20434 * m/isi-ov.h:
20435 * m/mega68.h:
20436 * m/mg1.h:
20437 * m/news-r6.h:
20438 * m/news-risc.h:
20439 * m/news.h:
20440 * m/nh3000.h:
20441 * m/nh4000.h:
20442 * m/ns16000.h:
20443 * m/ns32000.h:
20444 * m/nu.h:
20445 * m/orion.h:
20446 * m/orion105.h:
20447 * m/paragon.h:
20448 * m/pfa50.h:
20449 * m/plexus.h:
20450 * m/pyramid.h:
20451 * m/pyrmips.h:
20452 * m/sh3el.h:
20453 * m/sps7.h:
20454 * m/sr2k.h:
20455 * m/stride.h:
20456 * m/sun1.h:
20457 * m/sun2.h:
20458 * m/sun3-68881.h:
20459 * m/sun3-fpa.h:
20460 * m/sun3-soft.h:
20461 * m/sun3.h:
20462 * m/sun386.h:
20463 * m/symmetry.h:
20464 * m/tad68k.h:
20465 * m/tahoe.h:
20466 * m/targon31.h:
20467 * m/tek4300.h:
20468 * m/tekxd88.h:
20469 * m/tower32.h:
20470 * m/tower32v3.h:
20471 * m/ustation.h:
20472 * m/wicat.h:
20473 * m/xps100.h:
20474 * s/cxux.h:
20475 * s/cxux7.h:
20476 * s/dgux.h:
20477 * s/dgux4.h:
20478 * s/dgux5-4-3.h:
20479 * s/dgux5-4r2.h:
20480 * s/esix.h:
20481 * s/esix5r4.h:
20482 * s/hiuxmpp.h:
20483 * s/hiuxwe2.h:
20484 * s/iris3-5.h:
20485 * s/iris3-6.h:
20486 * s/isc2-2.h:
20487 * s/isc3-0.h:
20488 * s/isc4-0.h:
20489 * s/isc4-1.h:
20490 * s/newsos5.h:
20491 * s/newsos6.h:
20492 * s/osf1.h:
20493 * s/osf5-0.h:
20494 * s/riscix1-1.h:
20495 * s/riscix12.h:
20496 * s/sco4.h:
20497 * s/sco5.h:
20498 * s/sunos4-0.h:
20499 * s/sunos4-1.h:
20500 * s/sunos413.h:
20501 * s/sunos4shr.h:
20502 * s/umax.h:
20503 * s/unipl5-2.h:
20504 * s/xenix.h:
20505 * cxux-crt0.s:
20506 * unexapollo.c:
20507 * unexconvex.c:
20508 * unexenix.c:
20509 * unexsni.c: Remove files for systems no longer supported.
20510
20511 * m/intel386.h: Remove references to unsupported systems.
20512
20513 * w32.c (get_emacs_configuration): Remove reference to i860.
20514
20515 * sysdep.c: Remove dead code.
20516
20517 2008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
20518
20519 * s/rtu.h:
20520 * m/masscomp.h: Remove files. Platform is obsolete.
20521
20522 2008-01-04 Michael Albinus <michael.albinus@gmx.de>
20523
20524 * dbusbind.c (Fdbus_method_return): New function.
20525 (xd_read_message): Add the serial number to the event.
20526 (Fdbus_register_method): Activate the function.
20527
20528 2008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
20529
20530 * keyboard.c (read_key_sequence): Fix typo.
20531
20532 2008-01-03 Michael Albinus <michael.albinus@gmx.de>
20533
20534 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
20535 (xd_signature, xd_append_arg): Handle element type detection for
20536 empty arrays.
20537 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
20538 SDATA () calls; this must be solved more general.
20539 (Fdbus_register_signal): Use SBYTES instead of strlen.
20540
20541 2008-01-03 Magnus Henoch <magnus@zemdatav>
20542
20543 * dbusbind.c (xd_append_arg): Use unsigned char instead of
20544 unsigned int for byte values (necessary for big-endian platform).
20545 (Fdbus_call_method): Handle the case of no returned arguments.
20546
20547 2007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
20548
20549 * dbusbind.c (xd_read_message): Use non-static input_event struct.
20550
20551 2007-12-31 Magnus Henoch <mange@freemail.hu>
20552
20553 * dbusbind.c (xd_signature): Signature of variant is just "v".
20554
20555 2007-12-30 Michael Albinus <michael.albinus@gmx.de>
20556
20557 * dbusbind.c: Fix several errors and compiler warnings.
20558 Reported by Tom Tromey <tromey@redhat.com>.
20559 (XD_ERROR, XD_DEBUG_MESSAGE)
20560 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
20561 (xd_append_arg): Part for basic D-Bus types rewritten.
20562 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
20563 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
20564 appropriate.
20565 (xd_read_message): Return Qnil. Don't signal an error; it is not
20566 useful during event reading.
20567 (Fdbus_register_signal): Signal an error if the check for
20568 FUNCTIONP fails.
20569 (Fdbus_register_method): New function. The implementation is not
20570 complete, the call of the function signals an error therefore.
20571 (Fdbus_unregister_object): New function, renamed from
20572 Fdbus_unregister_signal. The initial check signals an error, if
20573 the object is not well formed.
20574
20575 2007-12-30 Richard Stallman <rms@gnu.org>
20576
20577 * textprop.c (get_char_property_and_overlay):
20578 Signal error if POSITION is out of range in a buffer.
20579
20580 2007-12-29 Martin Rudalics <rudalics@gmx.at>
20581
20582 * w32fns.c (Fx_create_frame): Make copy of frame parameters
20583 because the original parameters are in pure storage now.
20584
20585 2007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20586
20587 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
20588
20589 2007-12-22 Eli Zaretskii <eliz@gnu.org>
20590
20591 * callint.c (syms_of_callint) <command-history>: Add reference to
20592 history-length in the doc string.
20593
20594 2007-12-17 Jason Rumney <jasonr@gnu.org>
20595
20596 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
20597 before passing as wParam.
20598
20599 2007-12-22 Michael Albinus <michael.albinus@gmx.de>
20600
20601 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
20602 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
20603 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
20604 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
20605 as number.
20606 (Fdbus_call_method): Fix docstring.
20607
20608 2007-12-21 Michael Albinus <michael.albinus@gmx.de>
20609
20610 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
20611 New macros.
20612 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
20613 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
20614 Simplify.
20615 (xd_signature): New function.
20616 (xd_append_arg): Compute also signatures. Major rewrite.
20617 (xd_retrieve_arg): Make debug messages friendly.
20618 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
20619 Check for signatures of arguments.
20620
20621 2007-12-19 Michael Albinus <michael.albinus@gmx.de>
20622
20623 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
20624 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
20625 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
20626 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
20627 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
20628 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
20629 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
20630 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
20631 (xd_retrieve_value): Remove. Functionality included in ...
20632 (xd_append_arg): New function.
20633 (Fdbus_call_method, Fdbus_send_signal): Apply it.
20634
20635 2007-12-16 Michael Albinus <michael.albinus@gmx.de>
20636
20637 * dbusbind.c (top): Include <stdio.h>.
20638 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
20639 dbus_message_new_method_call and dbus_message_new_signal.
20640 (Fdbus_register_signal): Rename unique_name to uname.
20641 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
20642 non-existing unique name. Fix typos in matching rule. Return an
20643 object which is useful in Fdbus_unregister_signal.
20644 (Fdbus_unregister_signal): Reimplementation, in order to remove
20645 only the corresponding entry.
20646 (Vdbus_registered_functions_table): Change the order of entries.
20647 Apply these changes in xd_read_message and Fdbus_register_signal.
20648
20649 2007-12-16 Andreas Schwab <schwab@suse.de>
20650
20651 * fileio.c (Finsert_file_contents): Fix overflow check to not
20652 depend on undefined integer overflow.
20653
20654 2007-12-14 Jason Rumney <jasonr@gnu.org>
20655
20656 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
20657 for characters above 127.
20658
20659 2007-12-13 Jason Rumney <jasonr@gnu.org>
20660
20661 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
20662 before dereferencing array.
20663 (lookup_vk_code): Remove zero comparison.
20664
20665 2007-12-14 Michael Albinus <michael.albinus@gmx.de>
20666
20667 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
20668 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
20669 Use `unsigned int' instead of `uint'.
20670 (xd_read_message, Fdbus_register_signal): Split expressions into
20671 multiple lines before operators "&&" and "||", according to the
20672 GNU Coding Standards.
20673
20674 2007-12-14 Eli Zaretskii <eliz@gnu.org>
20675
20676 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
20677
20678 2007-12-12 Juri Linkov <juri@jurta.org>
20679
20680 * buffer.c (Frename_buffer): In interactive spec replace
20681 `read-buffer' with `read-string' that uses `buffer-name-history'
20682 as history, and the current buffer's name as default.
20683
20684 2007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
20685
20686 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
20687 manipulating the backtrace manually.
20688 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
20689 (struct backtrace, backtrace_list): Remove.
20690 (command_loop_1): Remove dead var `no_direct'.
20691
20692 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
20693 preserve non-built-in buffer-local variables.
20694 (Fkill_all_local_variables): Don't re-create&re-set permanent
20695 buffer-local variables.
20696
20697 2007-12-09 Juri Linkov <juri@jurta.org>
20698
20699 * buffer.c (Frename_buffer): Change interactive spec from "s" to
20700 Lisp code that uses `read-buffer' with current buffer as default.
20701
20702 2007-12-08 Michael Albinus <michael.albinus@gmx.de>
20703
20704 * dbusbind.c (xd_read_message): Generate an event for every
20705 registered handler. There might be several handlers registered
20706 for the same signal.
20707 (Fdbus_register_signal): Don't overwrite a registration for the
20708 same signal. Add a new registration if handlers are different.
20709 (Vdbus_registered_functions_table): Rework doc string.
20710
20711 2007-12-07 Michael Albinus <michael.albinus@gmx.de>
20712
20713 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
20714 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
20715 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
20716 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
20717 Unify argument lists.
20718 (xd_read_message, Fdbus_register_signal): Reorder and extend event
20719 arguments and hash table keys. Use unique name for service.
20720 (Fdbus_unregister_signal): Remove checks.
20721 (Vdbus_registered_functions_table): Fix doc string.
20722
20723 2007-12-05 Magnus Henoch <mange@freemail.hu>
20724
20725 * process.c (make_process): Initialize pty_flag to 0.
20726
20727 2007-12-05 Jason Rumney <jasonr@gnu.org>
20728
20729 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
20730 specified XBMs.
20731
20732 2007-12-05 Richard Stallman <rms@gnu.org>
20733
20734 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
20735
20736 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20737
20738 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
20739 New variable.
20740 (mac_try_close_socket) [MAC_OSX]: New function.
20741 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
20742 Update cfsockets_for_select. Replace invalid CFRunLoop source.
20743
20744 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
20745 Use mac_try_close_socket.
20746
20747 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20748
20749 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
20750 reloc_base.
20751 (copy_dysymtab): Compute relocation base here.
20752 (rebase_reloc_address) [__ppc64__]: New function.
20753 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
20754 changed.
20755
20756 2007-12-05 Jason Rumney <jasonr@gnu.org>
20757
20758 * w32proc.c (sys_spawnve): Quote args with wildcards.
20759
20760 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20761
20762 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
20763 __objc_* sections.
20764 (unrelocate) [_LP64]: Set relocation base to address of data segment.
20765
20766 2007-12-05 Michael Albinus <michael.albinus@gmx.de>
20767
20768 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
20769 Move check for Vdbus_registered_functions_table to
20770 xd_read_queued_messages.
20771 (xd_read_queued_messages): Protect xd_read_message calls by
20772 internal_condition_case_1.
20773
20774 2007-12-04 Michael Albinus <michael.albinus@gmx.de>
20775
20776 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
20777 Qdbus_system_bus and Qdbus_session_bus, respectively.
20778 (Vdbus_intern_symbols): Remove.
20779 (Vdbus_registered_functions_table): New hash table.
20780 (XD_SYMBOL_INTERN_SYMBOL): Remove.
20781 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
20782 Rewrite in order to manage registered functions by hash table
20783 Vdbus_registered_functions_table.
20784
20785 2007-12-03 Jan Djärv <jan.h.d@swipnet.se>
20786
20787 * xterm.c: Update URL to Window Manager Specification in comment.
20788
20789 2007-12-02 Michael Albinus <michael.albinus@gmx.de>
20790
20791 * config.in (HAVE_DBUS): Add.
20792
20793 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
20794 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
20795 (obj): Add $(DBUS_OBJ).
20796 (LIBES): Add $(DBUS_LIBS).
20797 (dbusbind.o): New target.
20798
20799 * dbusbind.c: New file.
20800
20801 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
20802
20803 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
20804 (Qdbus_event): New Lisp symbol.
20805 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
20806 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
20807 (keys_of_keyboard): Define dbus-event.
20808
20809 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
20810
20811 2007-12-01 Richard Stallman <rms@gnu.org>
20812
20813 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
20814
20815 2007-11-30 Jason Rumney <jasonr@gnu.org>
20816
20817 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
20818 (w32con_reset_terminal_modes): Clear screen buffer.
20819 (w32_face_attributes): Don't use color indexes that are out of range.
20820 Only reverse the default colors.
20821
20822 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
20823 WINDOWSNT.
20824
20825 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
20826
20827 2007-11-29 Jason Rumney <jasonr@gnu.org>
20828
20829 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
20830 (w32_face_attributes): Use Vtty_defined_color_alist to determine
20831 if the terminal colors are initialized.
20832 (unspecified_fg, unspecified_bg): Remove unused declarations.
20833
20834 2007-11-29 Andreas Schwab <schwab@suse.de>
20835
20836 * keyboard.c (apply_modifiers): Fix typo.
20837
20838 2007-11-29 Richard Stallman <rms@gnu.org>
20839
20840 * keymap.c (Fcurrent_local_map): Doc fix.
20841
20842 2007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
20843
20844 * s/gnu-kfreebsd.h: New file.
20845
20846 2007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
20847
20848 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
20849 Don't cast redundantly.
20850
20851 * keyboard.c (KEY_TO_CHAR): New macro.
20852 (parse_modifiers, apply_modifiers): Accept integer arguments.
20853 (read_key_sequence): Use them to unify the "shift->unshift" mapping
20854 for chars and symbol keys.
20855 After doing such remapping, apply function-key-map again.
20856
20857 2007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
20858
20859 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
20860 compiled anymore.
20861
20862 2007-11-26 Andreas Schwab <schwab@suse.de>
20863
20864 * process.c (list_processes_1): Fix indentation level of the
20865 command column.
20866
20867 2007-11-23 Andreas Schwab <schwab@suse.de>
20868
20869 * editfns.c (Fformat): Handle %c specially since it requires the
20870 argument to be of type int.
20871
20872 2007-11-23 Markus Triska <markus.triska@gmx.at>
20873
20874 * emacs.c (main): Call init_editfns before init_process, since
20875 init_process sets Vprocess_connection_type depending on OS release.
20876
20877 2007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
20878
20879 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
20880 (find_symbol_value): Use do_symval_forwarding.
20881
20882 * data.c (set_internal): Set the value in the `cons-cell' (for
20883 Buffer_Local_values) not only for frame-local variables.
20884
20885 2007-11-22 Andreas Schwab <schwab@suse.de>
20886
20887 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
20888 values to sprintf.
20889 * keymap.c (Fsingle_key_description): Likewise.
20890 * print.c (print_object): Likewise.
20891
20892 2007-11-22 Jan Djärv <jan.h.d@swipnet.se>
20893
20894 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
20895 file for image is nil.
20896
20897 2007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
20898
20899 * term.c: Include stdarg.h.
20900 (fatal): Implement using varargs.
20901 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
20902
20903 2007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
20904
20905 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
20906 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
20907 Update call to buffer_slot_type_mismatch.
20908 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
20909 (buffer_slot_type_mismatch): Update.
20910 * buffer.c (buffer_local_types): Remove.
20911 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
20912 (defvar_per_buffer): Set the type in the buffer_objfwd.
20913
20914 2007-11-21 Jason Rumney <jasonr@gnu.org>
20915
20916 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
20917 CreateFileMapping returns NULL on failure.
20918
20919 2007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
20920
20921 * search.c (Fset_match_data): Remove the `evaporate' feature.
20922 (unwind_set_match_data): Don't use the `evaporate' feature.
20923
20924 2007-11-21 Jason Rumney <jasonr@gnu.org>
20925
20926 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
20927
20928 * w32console.c (w32con_write_glyphs): Remove unused variables.
20929
20930 2007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
20931
20932 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
20933
20934 * s/darwin.h (MULTI_KBOARD): Remove.
20935
20936 * macfns.c (x_create_tip_frame, Fx_create_frame)
20937 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
20938
20939 2007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
20940
20941 * buffer.c (Fbuffer_local_value): Remove redundant test.
20942 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
20943 than in `current-buffer' to match the comment.
20944 Do the swap using swap_in_global_binding.
20945
20946 * data.c (store_symval_forwarding, set_internal):
20947 * eval.c (specbind): Remove dead code.
20948
20949 * coding.c (detect_coding, Fupdate_coding_systems_internal):
20950 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
20951 Since we do not want to see internal Lisp_*fwd objects here.
20952
20953 2007-11-18 Jan Djärv <jan.h.d@swipnet.se>
20954
20955 * sysdep.c (init_system_name): Use getaddrinfo if available.
20956
20957 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
20958 (x_scroll_bar_note_movement): start, end, with, height in struct
20959 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
20960
20961 2007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
20962
20963 * puresize.h (BASE_PURESIZE): Increase to 1190000.
20964
20965 2007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
20966
20967 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
20968 This undoes Richard's change of 14-Oct-2002.
20969
20970 * alloc.c (allocate_other_vector):
20971 * lisp.h (allocate_other_vector): Remove.
20972
20973 * window.c (struct save_window_data): Move non-lisp data to the end
20974 and make it `int' rather than Lisp_Object.
20975 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
20976 Done wrap/unwrap integer values.
20977 (Fset_window_configuration, compare_window_configurations):
20978 Update use of fields to their new types.
20979
20980 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
20981 Turn integer fields into `int'. Merge x_window_low and x_window_high.
20982 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
20983 (SET_SCROLL_BAR_X_WINDOW): Remove.
20984 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
20985 Access the new x_window field directly.
20986 * xterm.c (x_scroll_bar_create): Use a pseudovector.
20987 Don't wrap/unwrap integers into Lisp_Objects.
20988 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
20989 (x_scroll_bar_report_motion):
20990 Don't wrap/unwrap integers into Lisp_Objects.
20991 (x_term_init): Use SDATA.
20992 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
20993 (x_scroll_bar_set_handle, x_scroll_bar_remove)
20994 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
20995 (x_scroll_bar_report_motion, x_scroll_bar_clear):
20996 * xfns.c (x_set_background_color):
20997 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
20998 Access the new x_window field directly.
20999
21000 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
21001 (allocate_pseudovector): Make non-static.
21002
21003 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
21004 (allocate_pseudovector): Declare.
21005 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
21006
21007 2007-11-15 Andreas Schwab <schwab@suse.de>
21008
21009 * editfns.c (Fformat): Correctly format EMACS_INT values.
21010 Also take precision into account when formatting an integer.
21011
21012 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
21013
21014 2007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
21015
21016 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
21017 (syms_of_keyboard): Defsubr it.
21018
21019 * data.c (swap_in_global_binding): Fix longstanding bug where
21020 store_symval_forwarding was not called with the right second argument,
21021 thus causing objfwd-ing from being dropped.
21022
21023 2007-11-14 Juanma Barranquero <lekktu@gmail.com>
21024
21025 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
21026 (Fx_display_pixel_height, Fx_display_planes)
21027 (Fx_display_color_cells, Fx_server_max_request_size)
21028 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
21029 (Fx_display_visual_class, Fx_display_save_under):
21030 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
21031 (Fx_display_pixel_height, Fx_display_planes)
21032 (Fx_display_color_cells, Fx_server_max_request_size)
21033 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
21034 (Fx_display_mm_height, Fx_display_mm_width)
21035 (Fx_display_backing_store, Fx_display_visual_class)
21036 (Fw32_select_font, Fx_display_save_under):
21037 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
21038 (Fx_display_pixel_height, Fx_display_planes)
21039 (Fx_display_color_cells, Fx_server_max_request_size)
21040 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
21041 (Fx_display_save_under): Fix typos in docstrings.
21042
21043 2007-11-14 Juanma Barranquero <lekktu@gmail.com>
21044
21045 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
21046 corresponding to deleted entries; they are an implementation detail.
21047 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
21048 Remove variables.
21049 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
21050 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
21051 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
21052 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
21053 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
21054 (Fw32_define_rgb_color, Fw32_load_color_file)
21055 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
21056 Fix typos in docstrings.
21057 (Fx_server_version): Reflow docstring.
21058 (Fw32_shell_execute): Doc fixes.
21059
21060 2007-11-13 Juanma Barranquero <lekktu@gmail.com>
21061
21062 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
21063 if w32_parse_hot_key returned nil.
21064
21065 2007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
21066
21067 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
21068
21069 2007-11-09 Jason Rumney <jasonr@gnu.org>
21070
21071 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
21072
21073 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
21074
21075 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
21076 Remove W32_SCROLL_BAR_CLICK_EVENT.
21077
21078 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
21079 Add MULTIMEDIA_KEY_EVENT.
21080
21081 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
21082 (lispy_multimedia_keys) [WINDOWSNT]: New array.
21083 (make_lispy_event) [WINDOWSNT]: Use it to translate
21084 MULTIMEDIA_KEY_EVENT.
21085
21086 * w32term.h (WM_APPCOMMAND): Define if not already.
21087 (GET_APPCOMMAND_LPARAM): Likewise.
21088
21089 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
21090 WM_APPCOMMAND.
21091
21092 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
21093 (syms_of_w32fns): Export and initialize it.
21094 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
21095
21096 2007-11-09 Chong Yidong <cyd@stupidchicken.com>
21097
21098 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
21099 twice.
21100
21101 * xdisp.c (handle_face_prop): Fix last change.
21102
21103 2007-11-09 Richard Stallman <rms@gnu.org>
21104
21105 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
21106 not just for after-strings and before-strings.
21107 Call face_for_overlay_string and pass the overlay to it.
21108 (handle_display_prop): Determine whether property came from an overlay.
21109 Pass OVERLAY arg to handle_single_display_spec.
21110 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
21111 (load_overlay_strings): Fill in it->string_overlays.
21112 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
21113
21114 * xfaces.c (face_for_overlay_string): Function renamed from
21115 face_at_buffer_position_no_overlays, and add arg OVERLAY.
21116
21117 * dispextern.h (struct it): New elt string_overlays.
21118 New elt from_overlay, also in stack.
21119 Rearrange a few elements.
21120 (face_for_overlay_string): Decl renamed from
21121 face_at_buffer_position_no_overlays, and add argument.
21122
21123 2007-11-09 Richard Stallman <rms@gnu.org>
21124
21125 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
21126 to get the base face for an overlay string.
21127
21128 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
21129
21130 * xfaces.c (face_at_buffer_position_no_overlays): New function.
21131
21132 * xdisp.c (handle_stop): Move some code out of loop.
21133
21134 2007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21135
21136 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
21137 Fix conversion from Lisp object to ATSUFontID.
21138
21139 2007-11-09 Jason Rumney <jasonr@gnu.org>
21140
21141 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
21142
21143 2007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21144
21145 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
21146 Don't assume regions are aligned to page boundary.
21147 (print_load_command_name): Add LC_UUID if defined.
21148
21149 2007-11-09 Richard Stallman <rms@gnu.org>
21150
21151 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
21152
21153 2007-11-07 Jason Rumney <jasonr@gnu.org>
21154
21155 * s/windows95.h: Remove.
21156
21157 2007-11-06 Jan Djärv <jan.h.d@swipnet.se>
21158
21159 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
21160 abort with a message on unhandled store_type values.
21161
21162 2007-11-01 Jan Djärv <jan.h.d@swipnet.se>
21163
21164 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
21165 Remove HAVE_X11R5 and HAVE_X11R4.
21166
21167 2007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
21168
21169 * Makefile.in: Remove references to sunfns.c and sunfns.o.
21170
21171 2007-11-01 Johan Bockgård <bojohan@gnu.org>
21172
21173 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
21174 Don't set s->stippled_p here, since it has already been set by
21175 x_set_glyph_string_gc from x_draw_glyph_string.
21176
21177 2007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
21178
21179 * sunfns.c: Remove file.
21180
21181 * m/sun386.h:
21182 * m/sun2.h:
21183 * m/sparc.h: Remove Sun windows code.
21184
21185 2007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
21186
21187 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
21188 (init_keyboard): Set current_kboard's window-system to nil.
21189 (tty_read_avail_input): Typo.
21190 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
21191
21192 2007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
21193
21194 * s/usg5-4.h:
21195 * s/usg5-3.h:
21196 * s/ptx.h:
21197 * m/is386.h:
21198 * m/ibmps2-aix.h:
21199 * Makefile.in: Remove all mentions of X10.
21200
21201 * dispnew.c (syms_of_display): Don't mention version 10.
21202
21203 2007-10-28 Juanma Barranquero <lekktu@gmail.com>
21204
21205 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
21206 ($(BLD)/abbrev.$(O)): Remove.
21207
21208 2007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
21209
21210 Rewrite abbrev.c in Elisp.
21211 * image.c (Qcount): Don't declare as extern.
21212 (syms_of_image): Initialize and staticpro `Qcount'.
21213 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
21214 * emacs.c (main): Don't call syms_of_abbrev.
21215 * Makefile.in (obj): Remove abbrev.o.
21216 (abbrev.o): Remove.
21217 * abbrev.c: Remove.
21218
21219 2007-10-26 Martin Rudalics <rudalics@gmx.at>
21220
21221 * window.c (window_min_size_2): Don't count header-line.
21222
21223 2007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
21224
21225 * frame.h (struct frame): Move all bit fields after the first bit
21226 field to take advantage of the available space. Group all the
21227 chars together to reduce wasted space due to padding.
21228
21229 2007-10-26 Juanma Barranquero <lekktu@gmail.com>
21230
21231 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
21232
21233 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
21234 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
21235 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
21236 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
21237 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
21238 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
21239 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
21240 (last_marked, mark_object_loop_halt): Make static.
21241
21242 * frame.c (syms_of_frame) <delete-frame-functions>:
21243 Fix typo in docstring.
21244
21245 2007-10-25 Juanma Barranquero <lekktu@gmail.com>
21246
21247 * w32.c (init_environment): Fix tiny memory leak.
21248 (w32_get_resource): Remove unused variable `ok'.
21249
21250 2007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
21251
21252 Make `window-system' into a keyboard-local variable (rather than
21253 frame-local as done originally by multi-tty).
21254
21255 * keyboard.h (struct kboard): Add Vwindow_system.
21256 * keyboard.c (init_kboard): Set a default for Vwindow_system.
21257 (mark_kboards): Mark Vwindow_system.
21258
21259 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
21260 (init_display): Don't set the obsolete `window-system' frame-param.
21261
21262 * xterm.c (x_term_init):
21263 * w32term.c (w32_create_terminal):
21264 * term.c (init_tty): Set Vwindow_system.
21265 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
21266 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
21267
21268 * xfns.c (Fx_create_frame, x_create_tip_frame):
21269 * w32fns.c (Fx_create_frame, x_create_tip_frame):
21270 * macfns.c (Fx_create_frame):
21271 Don't set the obsolete `window-system' frame-param.
21272
21273 * frame.h (Qwindow_system): Remove.
21274 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
21275 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
21276
21277 2007-10-24 Richard Stallman <rms@gnu.org>
21278
21279 * frame.c (x_figure_window_size): For fullscreen case,
21280 set USPosition | PPosition without clobbering rest of window_prompting.
21281
21282 * keyboard.c (Fcurrent_idle_time): Doc fix.
21283
21284 * print.c (Fwith_output_to_temp_buffer): Doc fix.
21285
21286 2007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
21287
21288 * process.c (unwind_request_sigio): Only define if __ultrix__.
21289
21290 * callproc.c (child_setup): Remove spurious *.
21291
21292 * lisp.h (Fget_text_property): Declare.
21293 (have_menus_p): Declare it here rather than in sys-dep header files.
21294 * macterm.h (have_menus_p):
21295 * msdos.h (have_menus_p):
21296 * xterm.h (have_menus_p): Remove.
21297
21298 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
21299 (Fmake_variable_frame_local): Just check the variable's const-ness
21300 rather than checking nil or t.
21301
21302 2007-10-22 Jason Rumney <jasonr@gnu.org>
21303
21304 * w32fns.c: Include math.h.
21305 (w32_abort): Declaration moved to nt/config.nt.
21306
21307 * s/ms-w32.h (HAVE_STDLIB_H): Define.
21308 (abort): Redefinition moved to nt/config.nt.
21309
21310 * m/windowsnt.h: Remove.
21311
21312 2007-10-22 Juanma Barranquero <lekktu@gmail.com>
21313
21314 * emacs.c (Fdump_emacs): Fix typo in message.
21315 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
21316 <installation-directory>: Reflow docstring.
21317
21318 2007-10-22 Juri Linkov <juri@jurta.org>
21319
21320 * minibuf.c: Allow minibuffer default to be a list of default values.
21321 With empty input use the first element of this list as returned default.
21322 (string_to_object)
21323 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
21324 (read_minibuf): If defalt is cons, set histstring to its car.
21325 (Fread_string): If default_value is cons, set val to its car.
21326 (Fread_buffer): If def is cons, use its car.
21327 (Fcompleting_read): If defalt is cons, set val to its car.
21328
21329 2007-10-21 Michael Albinus <michael.albinus@gmx.de>
21330
21331 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
21332
21333 2007-10-20 Juanma Barranquero <lekktu@gmail.com>
21334
21335 * doc.c (Fdocumentation): Check for advice in all cases.
21336
21337 2007-10-19 Chong Yidong <cyd@stupidchicken.com>
21338
21339 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
21340
21341 2007-10-19 Richard Stallman <rms@gnu.org>
21342
21343 * doc.c (Fdocumentation): Check for and handle an advised function.
21344
21345 2007-10-19 Juanma Barranquero <lekktu@gmail.com>
21346
21347 * process.c (Fset_process_filter): Doc fix.
21348
21349 2007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
21350
21351 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
21352 which caused key-translation-map to applied repeatedly (thus breaking
21353 double-mode).
21354
21355 2007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
21356
21357 * xselect.c (x_own_selection, x_handle_selection_clear)
21358 (x_clear_frame_selections):
21359 * w32menu.c (list_of_panes, list_of_items):
21360 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
21361 * textprop.c (validate_plist, interval_has_all_properties)
21362 (interval_has_some_properties, interval_has_some_properties_list)
21363 (add_properties, text_property_list):
21364 * process.c (Fget_buffer_process, list_processes_1, status_notify):
21365 * minibuf.c (Fassoc_string):
21366 * macselect.c (x_own_selection, x_clear_frame_selections)
21367 (Fx_disown_selection_internal):
21368 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
21369 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
21370
21371 2007-10-17 Chong Yidong <cyd@stupidchicken.com>
21372
21373 * process.c: Link to libs for calling res_init() if available.
21374 (Fmake_network_process): Call res_init() before getaddrinfo or
21375 gethostbyname, if possible.
21376
21377 2007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
21378
21379 * lread.c (read1): Set pvectype for char_tables.
21380
21381 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
21382 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
21383 Add type checks.
21384 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
21385
21386 * alloc.c (free_misc): Use XMISCTYPE.
21387 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
21388
21389 2007-10-17 Glenn Morris <rgm@gnu.org>
21390
21391 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
21392 (syms_of_minibuf): Add Qcompletion_ignore_case.
21393 * dired.c (Qcompletion_ignore_case): Change to external.
21394 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
21395 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
21396 (Fread_file_name): Use it rather than intern'ing.
21397
21398 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
21399 (Fread_coding_system): Ignore case of user input.
21400
21401 2007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21402
21403 * xdisp.c (handle_display_prop): Ignore display specs after
21404 replacing one when string text is being replaced.
21405 (handle_single_display_spec): Pretend as if characters with display
21406 property haven't been consumed only when buffer text is being replaced.
21407
21408 2007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
21409
21410 * xfns.c (Fx_create_frame, Fx_display_list):
21411 * window.c (window_fixed_size_p, enlarge_window)
21412 (shrink_window_lowest_first):
21413 * macterm.c (init_font_name_table):
21414 * macfns.c (Fx_create_frame, Fx_display_list):
21415 * lread.c (close_load_descs):
21416 * keyboard.c (read_char_x_menu_prompt):
21417 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
21418 * coding.c (code_convert_region_unwind): Test the type of an object
21419 rather than just !NILP before extracting data from it.
21420
21421 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
21422
21423 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
21424 (XMISCANY): New macro.
21425 (XMISCTYPE): Use it.
21426 (struct Lisp_Misc_Any): New type.
21427 (union Lisp_Misc): Use it.
21428 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
21429 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
21430 (find_symbol_value, set_internal, default_value, Fset_default)
21431 (Fmake_variable_buffer_local, Fmake_local_variable)
21432 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
21433 (Flocal_variable_if_set_p, Fvariable_binding_locus):
21434 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
21435 * alloc.c (allocate_buffer): Set the size and tag.
21436 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
21437 Use XMISCANY.
21438 (die): Follow the GNU convention for error messages.
21439 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
21440 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
21441 tag any more.
21442 (set_buffer_internal_1):
21443 * frame.c (store_frame_param):
21444 * eval.c (specbind):
21445 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
21446
21447 * doc.c (Fsnarf_documentation): Simplify.
21448
21449 2007-10-14 Juanma Barranquero <lekktu@gmail.com>
21450
21451 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
21452 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
21453
21454 2007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
21455
21456 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
21457
21458 2007-10-14 Juanma Barranquero <lekktu@gmail.com>
21459
21460 * eval.c (do_autoload): Don't save autoloads.
21461
21462 * data.c (Ffset): Save autoload of the function being set.
21463
21464 2007-10-07 John Paul Wallington <jpw@pobox.com>
21465
21466 * xfns.c (x_create_tip_frame): Set the `display-type' frame
21467 parameter before setting up faces.
21468
21469 2007-10-13 Eli Zaretskii <eliz@gnu.org>
21470
21471 * ccl.c (Fregister_code_conversion_map):
21472 * keyboard.c (append_tool_bar_item): Reformat last change.
21473
21474 * lisp.h (eabs): Rename from `abs'. All callers changed.
21475
21476 2007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
21477
21478 * buffer.c (add_overlay_mod_hooklist):
21479 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
21480 * fontset.c (make_fontset):
21481 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
21482 (append_tool_bar_item):
21483 * macmenu.c (grow_menu_items):
21484 * w32menu.c (grow_menu_items):
21485 * xmenu.c (grow_menu_items): Use larger_vector.
21486
21487 2007-10-13 Eli Zaretskii <eliz@gnu.org>
21488
21489 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
21490 selected frame'' on MSDOS).
21491
21492 2007-10-12 Martin Rudalics <rudalics@gmx.at>
21493
21494 * frame.c (Qexplicit_name): New variable.
21495 (x_report_frame_params): Report it in parameter alist.
21496 (syms_of_frame): Intern and staticpro it.
21497
21498 2007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
21499
21500 * macfns.c (x_create_tip_frame): Set terminal for frame.
21501
21502 2007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
21503
21504 * frame.c (Qenvironment): Remove.
21505 (syms_of_frame) <Qenvironment>: Don't initialize.
21506 (Fdelete_frame): Don't treat the `environment' param specially.
21507 * frame.h (Qenvironment): Don't declare.
21508 * callproc.c (set_initial_environment): Don't set unused frame param.
21509
21510 * frame.c (Fframe_with_environment): Remove.
21511 (syms_of_frame) <Sframe_with_environment>: Don't declare.
21512
21513 * lisp.h (Fframe_with_environment): Don't declare.
21514
21515 2007-10-10 Juanma Barranquero <lekktu@gmail.com>
21516
21517 * indent.c (indent_tabs_mode, last_known_column)
21518 (last_known_column_modified): Make static.
21519 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
21520
21521 2007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
21522
21523 * puresize.h (BASE_PURESIZE): Increase to 1170000.
21524
21525 2007-10-09 Jason Rumney <jasonr@gnu.org>
21526
21527 * w32term.c (x_set_window_size): Disable code that attempts to tell
21528 Lisp code about a size change before it actually happens.
21529
21530 2007-10-09 Richard Stallman <rms@gnu.org>
21531
21532 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
21533 return HANDLED_RETURN.
21534
21535 2007-10-08 Martin Rudalics <rudalics@gmx.at>
21536
21537 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
21538 when there's an unread command event.
21539
21540 * frame.c (focus_follows_mouse): Move here from frame.el to allow
21541 window autoselection act appropriately when leaving selected frame.
21542 (syms_of_frame): Initialize focus_follows_mouse.
21543 * frame.h (focus_follows_mouse): Extern it.
21544 * macterm.c (XTread_socket): When focus_follows_mouse is nil
21545 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
21546 * msdos.c (dos_rawgetc): Likewise.
21547 * w32term.c (w32_read_socket): Likewise.
21548 * xterm.c (handle_one_xevent): Likewise.
21549 * xdisp.c (syms_of_xdisp): In doc-string of
21550 mouse-autoselect-window mention focus-follows-mouse.
21551
21552 2007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21553
21554 * macterm.c (mac_load_query_font): Fix missing return value.
21555 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
21556 Add BLOCK_INPUT.
21557
21558 2007-10-08 Richard Stallman <rms@gnu.org>
21559
21560 * xdisp.c (get_window_cursor_type): Implement documented behavior
21561 for cursor-in-non-selected-windows = t.
21562
21563 2007-10-08 Jason Rumney <jasonr@gnu.org>
21564
21565 * w32.c (w32_get_resource): Always close registry keys.
21566
21567 2007-10-08 Jason Rumney <jasonr@gnu.org>
21568
21569 * makefile.w32-in (LIBS): Add COMCTL32.
21570
21571 * w32fns.c (globals_of_w32fns): Init common controls.
21572
21573 2007-10-08 Richard Stallman <rms@gnu.org>
21574
21575 * image.c (our_memory_buffer): Rename from omfib_buffer.
21576
21577 2007-10-08 Richard Stallman <rms@gnu.org>
21578
21579 * buffer.c (Foverlays_at): Doc fix.
21580
21581 2007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
21582
21583 * fns.c (Fplist_put): Preserve uneven tail data.
21584
21585 2007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
21586
21587 * termhooks.h (enum event_kind): Remove trailing comma.
21588
21589 * frame.h (enum): Remove trailing comma.
21590
21591 2007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
21592
21593 * w32proc.c (delete_child): Don't terminate threads of zombies.
21594
21595 2007-10-08 Martin Rudalics <rudalics@gmx.at>
21596
21597 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
21598
21599 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
21600 last-repeatable-command.
21601 (init_kboard): Initialize Vlast_repeatable_command.
21602 (command_loop_1): Set it to real_this_command unless that was
21603 bound to an input event.
21604 (mark_kboards): Mark it.
21605
21606 2007-10-08 Richard Stallman <rms@gnu.org>
21607
21608 * eval.c (condition-case): Doc fix.
21609
21610 2007-10-08 Masatake YAMATO <jet@gyve.org>
21611
21612 * xfaces.c (tty_supports_face_attributes_p): Fix code
21613 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
21614 was copied and not edited.
21615
21616 2007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
21617
21618 Add new `input-decode-map' keymap and use it for terminal
21619 escape sequences.
21620 * keyboard.h (struct kboard): Add Vinput_decode_map.
21621 Remove Vlocal_key_translation_map.
21622 * keyboard.c (read_key_sequence): Add support for input-decode-map.
21623 (init_kboard): Init input-decode-map.
21624 Replace local-key-translation-map back with key-translation-map.
21625 (syms_of_keyboard): Declare input-decode-map.
21626 Remove local-key-translation-map. Update docstrings.
21627 (mark_kboards): Mark Vinput_decode_map.
21628 Don't mark Vlocal_key_translation_map.
21629 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
21630 Replace local-key-translation-map back with key-translation-map.
21631 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
21632 Bind in input-decode-map rather than function-key-map.
21633
21634 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
21635 This was made redundant by the previous introduction of XSETPVECTYPE.
21636
21637 2007-10-09 Richard Stallman <rms@gnu.org>
21638
21639 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
21640
21641 2007-09-29 Richard Stallman <rms@gnu.org>
21642
21643 * eval.c (internal_condition_case_2, internal_condition_case_1)
21644 (internal_condition_case): Reenable abort if x_catching_errors ()
21645 to see if that really happens and why.
21646
21647 2007-10-06 Andreas Schwab <schwab@suse.de>
21648
21649 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
21650
21651 2007-10-04 Juanma Barranquero <lekktu@gmail.com>
21652
21653 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
21654
21655 2007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
21656
21657 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
21658
21659 2007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
21660
21661 * window.h (struct window):
21662 * window.c (struct save_window_data, struct saved_window):
21663 * termhooks.h (struct terminal):
21664 * process.h (struct Lisp_Process):
21665 * frame.h (struct frame):
21666 * buffer.h (struct buffer):
21667 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
21668 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
21669 The size field of (pseudo)vectors is now unsigned.
21670 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
21671
21672 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
21673 Turn `count' into an integer.
21674
21675 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
21676 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
21677 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
21678 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
21679 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
21680
21681 * alloc.c (allocate_pseudovector): New fun.
21682 (ALLOCATE_PSEUDOVECTOR): New macro.
21683 (allocate_window, allocate_terminal, allocate_frame)
21684 (allocate_process): Use it.
21685 (mark_vectorlike): New function.
21686 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
21687 (mark_terminals): Use it.
21688 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
21689 (Fmake_byte_code): Use XSETPVECTYPE.
21690
21691 * frame.c (Fframe_parameters): Minor simplification.
21692
21693 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
21694
21695 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
21696
21697 * buffer.c (Fget_buffer_create, init_buffer_once):
21698 * lread.c (defsubr):
21699 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
21700
21701 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
21702 defined differently in the m/*.h files.
21703 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
21704 (XSETPVECTYPE): New macro.
21705 (XSETPSEUDOVECTOR): Use it.
21706
21707 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
21708 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
21709
21710 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
21711 * lread.c (defvar_per_buffer):
21712 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
21713
21714 * window.c (candidate_window_p): Only consider as visible frames that
21715 are on the same terminal.
21716
21717 * m/ibms390x.h (MARKBIT): Remove unused macro.
21718
21719 2007-10-01 Juanma Barranquero <lekktu@gmail.com>
21720
21721 * lread.c (Fload): Fix typo in docstring.
21722
21723 2007-10-01 Michaël Cadilhac <michael@cadilhac.name>
21724
21725 * floatfns.c (Fexpt): Manually check for overflows, so that a power
21726 of a non-zero value can't yield zero.
21727
21728 2007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
21729
21730 * term.c (term_clear_mouse_face, term_mouse_highlight)
21731 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
21732
21733 * print.c (safe_debug_print): Use XHASH.
21734
21735 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
21736 Lisp elements such as tags.
21737 (XHASH): New macro.
21738 (EQ): Use it.
21739 (SREF, SSET, STRING_COPYIN): Use SDATA.
21740 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
21741
21742 * alloc.c (mark_terminal): Remove left-over declaration.
21743 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
21744 (allocate_vectorlike): Remove type argument. Adjust callers.
21745 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
21746 Only handle the one remaining MEM_TYPE_VECTORLIKE.
21747
21748 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
21749 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
21750 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
21751 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
21752 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
21753 Use them.
21754
21755 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
21756 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
21757 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
21758
21759 2007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
21760
21761 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
21762 loaded by default.
21763
21764 2007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
21765
21766 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
21767 on this tty.
21768 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
21769
21770 * term.c (mouse_face_window): Rename from Qmouse_face_window.
21771 Update all users.
21772 (handle_one_term_event): Use Gpm_DrawPointer.
21773 (Fgpm_mouse_start): Rename from Fterm_open_connection.
21774 Signal errors instead of returning nil. Always return nil.
21775 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
21776 Make it a noop if gpm-mouse was not activated.
21777 (syms_of_term): Update names.
21778
21779 2007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
21780
21781 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
21782 (init_sys_modes): Check that gpm_tty is the current tty.
21783
21784 * alloc.c (allocate_terminal): Set the vector size to only count the
21785 lisp fields. Initialize those to nil.
21786 (mark_object): Don't treat terminals specially.
21787 (mark_terminal): Remove.
21788 (mark_terminals): Use mark_object instead.
21789
21790 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
21791 the GC to the beginning.
21792
21793 * indent.h:
21794 * indent.c: Use EMACS_INT for ints coming from Elisp data.
21795
21796 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
21797
21798 2007-09-25 Jason Rumney <jasonr@gnu.org>
21799
21800 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
21801
21802 * w32console.c (create_w32cons_output): Remove.
21803
21804 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
21805
21806 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
21807 (reset_sys_modes): Use reset_terminal_modes_hook.
21808
21809 2007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
21810
21811 * eval.c (do_autoload): Don't output any message.
21812
21813 2007-09-24 Juri Linkov <juri@jurta.org>
21814
21815 * emacs.c (standard_args): Change priority of "--no-splash"
21816 from 40 to 3. Add "--no-desktop" with the same priority.
21817
21818 2007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
21819
21820 * alloc.c (gc_sweep): Check cons cell mark bits word by word
21821 and optimize the case where they are all 1.
21822
21823 2007-09-23 Johannes Weiner <hannes@saeurebad.de>
21824
21825 * lisp.h (abs): Define if not defined.
21826 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
21827 Don't define `abs', since it's defined in lisp.h.
21828
21829 2007-09-22 Eli Zaretskii <eliz@gnu.org>
21830
21831 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
21832 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
21833 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
21834 (init_tty): Use DEV_TTY instead of "/dev/tty".
21835 [WINDOWSNT]: No need to protect from NAME arg being null.
21836
21837 2007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
21838
21839 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
21840 up the tty state.
21841
21842 2007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
21843
21844 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
21845 (gpm_tty): Change its type.
21846 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
21847 (gpm_tty): Change its type and initialize it.
21848 (Fterm_open_connection): Check the frame is indeed a tty.
21849 Use the new gpm_tty.
21850 (Fterm_close_connection): Use the new gpm_tty.
21851 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
21852 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
21853
21854 2007-09-21 Juanma Barranquero <lekktu@gmail.com>
21855
21856 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
21857 underline_color, to draw strike-through.
21858
21859 2007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
21860
21861 * lisp.h (allocate_terminal): Declare.
21862
21863 * window.c (candidate_window_p): Consider frames that are being placed
21864 by the user as somewhere between visible and iconified.
21865 (window_loop): Prefer windows on the current frame.
21866 (Fselect_window): Move the use of select-frame to the beginning so we
21867 can just delegate all the work (it'll call us back anyway).
21868
21869 * frame.c (Qdisplay_environment_variable):
21870 * frame.h (Qdisplay_environment_variable): Delete.
21871
21872 * .gdbinit (xbacktrace): Print the arg's address rather than the value
21873 of the first arg, since that value may be a union.
21874
21875 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
21876 parameter rather than Qdisplay_environment_variable. If all else
21877 fails, look for DISPLAY in initial-environment.
21878
21879 2007-09-21 Glenn Morris <rgm@gnu.org>
21880
21881 * Makefile.in (emacstool): Remove target.
21882 (lisp, shortlisp): Remove termdev.elc.
21883
21884 2007-09-21 Markus Triska <markus.triska@gmx.at>
21885
21886 * xterm.c (x_delete_display): Compile session management conditionally.
21887
21888 2007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
21889
21890 * callproc.c (getenv_internal_1): New function.
21891 (getenv_internal): Use it.
21892 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
21893
21894 * terminal.c (get_terminal): Don't accept ints to represent terminals.
21895 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
21896 (Fset_terminal_parameter): Work with dead terminals as well.
21897 (Fmodify_terminal_parameters): Remove.
21898
21899 * terminal.c (get_terminal): Handle terminals.
21900 Make sure the terminal returned is live.
21901 (create_terminal): Use allocate_terminal.
21902 (mark_terminals): Move to alloc.c.
21903 (delete_terminal): Use terminal->name as liveness status.
21904 NULL out fields after freeing their contents.
21905 Don't deallocate the object.
21906 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
21907 rather than an int.
21908 (Fterminal_live_p): Accept non-integer arguments.
21909 (Fterminal_list): Return terminal objects rather than an ints.
21910
21911 * alloc.c (enum mem_type): New member for `terminal' objects.
21912 (allocate_terminal): New function.
21913 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
21914 Handle terminals.
21915 (mark_terminal): New fun.
21916 (mark_terminals): Move from terminal.c.
21917
21918 * term.c (get_tty_terminal): Don't treat output_initial specially.
21919 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
21920 (delete_tty): Use terminal->name as liveness status.
21921
21922 * termhooks.h (struct terminal): Make it into a pseudovector.
21923 Remove `deleted' replaced by checking `name's nullness.
21924
21925 * print.c (print_object): Handle terminals.
21926
21927 * lisp.h (enum pvec_type): New `terminal' pseudovector.
21928 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
21929
21930 * frame.c (make_terminal_frame):
21931 * keyboard.c (tty_read_avail_input):
21932 * w32term.c (x_delete_terminal):
21933 * xfns.c (Fx_create_frame, x_create_tip_frame):
21934 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
21935
21936 2007-09-20 Glenn Morris <rgm@gnu.org>
21937
21938 * process.c (Fmake_network_process): Doc fix.
21939
21940 2007-09-19 Jason Rumney <jasonr@gnu.org>
21941
21942 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
21943
21944 2007-09-19 Michaël Cadilhac <michael@cadilhac.name>
21945
21946 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
21947 Fix a C warning regarding variable constness.
21948
21949 * xterm.c (handle_one_xevent): Fix a C warning.
21950
21951 2007-09-18 Jason Rumney <jasonr@gnu.org>
21952
21953 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
21954
21955 2007-09-17 Jan Djärv <jan.h.d@swipnet.se>
21956
21957 * gtkutil.c (gdpy_def): New variable.
21958 (xg_initialize): Initialize gdpy_def.
21959 (xg_display_close): If no other display exists, set gdpy_def to a
21960 new connection.
21961
21962 2007-09-16 Jan Djärv <jan.h.d@swipnet.se>
21963
21964 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
21965 when we have no file name for the icon.
21966 (xg_tool_bar_expose_callback): Remove.
21967 (xg_create_tool_bar): Don't connect expose signal to
21968 xg_tool_bar_expose_callback.
21969 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
21970
21971 2007-09-16 Andreas Schwab <schwab@suse.de>
21972
21973 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
21974 values instead of zapping them.
21975
21976 2007-09-14 Glenn Morris <rgm@gnu.org>
21977
21978 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
21979 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
21980 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
21981 scope and rename to omfib_buffer for clarity.
21982 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
21983
21984 2007-09-14 Kenichi Handa <handa@m17n.org>
21985
21986 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
21987
21988 2007-09-13 Jason Rumney <jasonr@gnu.org>
21989
21990 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
21991
21992 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
21993
21994 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
21995 (mac_term_init): Call here instead, passing rif.
21996
21997 2007-09-13 Glenn Morris <rgm@gnu.org>
21998
21999 * s/hpux.h: No longer define `static' as nothing.
22000
22001 2007-09-13 Johan Bockgård <bojohan@gnu.org>
22002
22003 * callint.c (Fcall_interactively): Remove unused var `fun'.
22004
22005 2007-09-12 Romain Francoise <romain@orebokech.com>
22006
22007 * window.c (prefer_window_split_horizontally, display_buffer):
22008 Revert 2007-09-08 change.
22009
22010 2007-09-12 Glenn Morris <rgm@gnu.org>
22011
22012 * alloca.c: Remove file.
22013 * Makefile.in (alloca): Do not undef.
22014 (allocaobj, alloca.o): Remove.
22015 (otherobj): Remove allocaobj.
22016 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
22017 * regex.c (C_ALLOCA): Remove all references and code that was only
22018 used when this was defined.
22019 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
22020 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
22021 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
22022
22023 * Makefile.in (SOURCES, unlock, relock): Delete.
22024
22025 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
22026 (menu_grab_callback): All uses changed.
22027
22028 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
22029 (x_reply_selection_request): All uses changed.
22030
22031 2007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
22032
22033 * lread.c (load_warn_old_style_backquotes): Change message to look
22034 better when it appears in the middle of byte-compiler messages.
22035
22036 2007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
22037
22038 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
22039
22040 * xterm.c (x_create_terminal): Add comment.
22041
22042 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
22043
22044 2007-09-10 Richard Stallman <rms@gnu.org>
22045
22046 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
22047
22048 2007-09-10 Michaël Cadilhac <michael@cadilhac.name>
22049
22050 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
22051 (DEFUN): Document `intspec', use it instead of `prompt'.
22052
22053 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
22054
22055 * data.c (Finteractive_form): If the interactive specification starts
22056 with a `(', use it as a Lisp form.
22057
22058 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
22059 name and file modes.
22060
22061 * callint.c (Fcall_interactively): Comment fixes.
22062
22063 2007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
22064
22065 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
22066 and compiled functions.
22067
22068 2007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
22069
22070 * window.c (prefer_window_split_horizontally): New variable.
22071 (display_buffer): Consider splitting window horizontally depending
22072 on prefer_window_split_horizontally.
22073
22074 2007-09-08 Eli Zaretskii <eliz@gnu.org>
22075
22076 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
22077
22078 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
22079
22080 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
22081
22082 * frame.c (x_set_frame_parameters): Check number is positive before
22083 using XFASTINT.
22084
22085 * window.c (freeze_window_start): Don't presume selected_window holds
22086 a window object.
22087 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
22088
22089 2007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
22090
22091 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
22092
22093 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
22094
22095 * window.c (Vsplit_window_preferred_function): New var.
22096 (Fdisplay_buffer): Use it.
22097 (syms_of_window): Export, and initialize it.
22098
22099 2007-09-06 Pixel <pixel@mandriva.com> (tiny change)
22100
22101 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
22102
22103 2007-09-06 Glenn Morris <rgm@gnu.org>
22104
22105 * gtkutil.c (menu_grab_callback) <cnt>:
22106 * xselect.c (x_reply_selection_request) <cnt>: Move static
22107 variable to file scope.
22108
22109 2007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
22110
22111 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
22112 consistent values of selected_frame and selected_window.
22113
22114 2007-09-04 Jason Rumney <jasonr@gnu.org>
22115
22116 * w32console.c (initialize_w32_display): Zero unused hooks.
22117
22118 2007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
22119
22120 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
22121 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
22122
22123 2007-09-04 Jason Rumney <jasonr@gnu.org>
22124
22125 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
22126 in w32console.c. Set up input. Remove XXX comments that have been
22127 confirmed as correct.
22128
22129 * s/ms-w32.h (MULTI_KBOARD): Define.
22130
22131 * w32console.c (one_and_only_w32cons): Remove.
22132 (initialize_w32_display): Take terminal argument.
22133
22134 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
22135 initialize_w32_display.
22136 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
22137
22138 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
22139
22140 * keyboard.c (discard_mouse_events): Discard it.
22141 (make_lispy_event): Translate it to a lisp event.
22142 (lispy_wheel_names): Add wheel-left and right events.
22143 (syms_of_keyboard): Enlarge wheel_syms.
22144
22145 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
22146 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
22147
22148 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
22149
22150 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
22151 from WM_MOUSEHWHEEL.
22152 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
22153
22154 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
22155 terminal.
22156
22157 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
22158 keyboard for the terminal.
22159
22160 2007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
22161
22162 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
22163 (Vresume_tty_hook): Rename from Vresume_tty_functions.
22164 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
22165 and resume-tty-function to resume-tty-hook.
22166 (Fsuspend_tty, Fresume_tty): Use new names.
22167
22168 2007-09-02 Jan Djärv <jan.h.d@swipnet.se>
22169
22170 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
22171 if it starts with "n:".
22172
22173 2007-08-31 Jan Djärv <jan.h.d@swipnet.se>
22174
22175 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
22176
22177 2007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
22178
22179 * frame.h:
22180 * frame.c (Qterm_environment_variable): Remove.
22181 (syms_of_frame): Don't init and staticpro it.
22182
22183 * callproc.c (getenv_internal): Remove special case for $TERM.
22184
22185 * callproc.c (Vinitial_environment): New variable.
22186 (set_initial_environment): Initialize it.
22187 (syms_of_callproc): Declare it.
22188 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
22189 TERM under which a process runs is never related to the TERM in which
22190 Emacs is running.
22191
22192 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
22193
22194 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
22195 * s/darwin.h: ... do it here.
22196
22197 2007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
22198
22199 * lisp.h (set_initial_environment): Rename from set_global_environment.
22200
22201 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
22202 removed by mistake on the multi-tty branch.
22203
22204 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
22205 (Fmodify_frame_parameters): Return a value.
22206
22207 * image.c (png_load): Comment-out var only used in commented-out code.
22208
22209 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
22210 before passing it to mark_object.
22211
22212 * xfaces.c (internal_resolve_face_name): Return a value.
22213 (internal_resolve_face_name, resolve_face_name_error): Comment out.
22214
22215 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
22216 (x_icon): Comment-out var only used in commented-out code.
22217
22218 2007-08-29 Romain Francoise <romain@orebokech.com>
22219
22220 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
22221 QUIT hasn't been provided.
22222
22223 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
22224
22225 * callproc.c (child_setup, getenv_internal): Use the
22226 display-environment-variable and term-environment-variable frame params.
22227 (set_initial_environment): Initialise Vprocess_environment.
22228
22229 * config.in: Disable multi-keyboard support on a mac.
22230
22231 * frame.c (Qterm_environment_variable)
22232 (Qdisplay_environment_variable): New variables.
22233 (syms_of_frame): Intern and staticpro them.
22234 (Fmake_terminal_frame): Disable output method test.
22235
22236 * frame.h: Declare them here.
22237
22238 * macfns.c (x_set_mouse_color): Get rif from the frame.
22239 (x_set_tool_bar_lines): Don't use updating_frame.
22240 (mac_window): Add 2 new parameters for consistency with other systems.
22241 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
22242 frame parameters following what is done in X11 and w32. Don't use
22243 FRAME_MAC_DISPLAY_INFO.
22244 (Fx_open_connection, start_hourglass): Remove window-system check.
22245 (x_create_tip_frame): Get the keyboard from the terminal.
22246
22247 * macmenu.c: Reorder includes.
22248 (Fx_popup_menu): Use terminal specific mouse_position_hook.
22249
22250 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
22251 terminal parameter.
22252 (x_clear_frame): Add a frame parameter.
22253 (note_mouse_movement): Get rif from the frame.
22254 (mac_term_init): Initialize the terminal.
22255 (mac_initialize): Make static and move terminal initialization ...
22256 (mac_create_terminal): ... to this new function.
22257
22258 * macterm.h (struct mac_display_info): Add terminal.
22259 (mac_initialize): Delete declaration.
22260
22261 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
22262
22263 * sysdep.c: Comment out text after #endif.
22264
22265 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
22266 is defined. Better initialize ttys in windows. Use terminal
22267 specific mouse_position_hook.
22268
22269 * termhooks.h (union display_info): Add mac_display_info.
22270
22271 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
22272 Set the default minibuffer frame, window_system and the rest of the
22273 frame parameters following what is done in X11.
22274
22275 * w32term.c (w32_initialize): Make static.
22276
22277 * xselect.c (x_handle_selection_clear): Only access
22278 terminal->kboard when MULTI_KBOARD is defined.
22279
22280 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
22281 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
22282
22283 2007-08-29 Jason Rumney <jasonr@gnu.org>
22284
22285 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
22286 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
22287
22288 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
22289 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
22290
22291 * keyboard.c (restore_kboard_configuration): Only define when
22292 MULTI_KBOARD defined.
22293
22294 * makefile.w32-in: Update dependancies from Makefile.in.
22295 (OBJ1): Add terminal.$(O)
22296
22297 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
22298 Don't define function body.
22299 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
22300
22301 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
22302
22303 * w32.c (request_sigio, unrequest_sigio): Remove.
22304
22305 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
22306 (w32con_clear_frame, w32con_clear_end_of_line)
22307 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
22308 (w32con_delete_glyphs, w32con_set_terminal_window)
22309 (scroll_line, w32_sys_ring_bell): Add frame arg.
22310 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
22311 Add terminal arg.
22312 (PICK_FRAME): Remove.
22313 (w32con_write_glyphs): Use frame specific terminal coding.
22314 (one_and_only_w32cons): New global variable.
22315 (initialize_w32_display): Use it for storing hooks.
22316 (create_w32cons_output): New function.
22317
22318 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
22319 arg a frame.
22320
22321 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
22322 Set window_system.
22323 (x_set_tool_bar_lines): Don't use updating_frame.
22324 (Fx_create_frame): Set terminal and ref count.
22325 (Fx_open_connection): Remove window-system check.
22326
22327 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
22328
22329 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
22330 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
22331 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
22332 Add frame arg.
22333 (x_delete_terminal, w32_create_terminal): New functions.
22334 (w32_term_init): Create a terminal.
22335 (w32_initialize): Move terminal specific initialization to
22336 w32_create_terminal.
22337
22338 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
22339 (w32_clear_rect, w32_clear_area): Use background from frame.
22340 (w32_display_info): Add terminal.
22341 (w32_sys_ring_bell, x_delete_display): Declare here.
22342
22343 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
22344
22345 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
22346
22347 2007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
22348
22349 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
22350 Fix get_named_tty calls for the controlling tty.
22351
22352 2007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
22353
22354 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
22355
22356 2007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
22357
22358 * term.c (tty_insert_glyphs): Add missing first parameter.
22359
22360 2007-08-29 Károly Lőrentey <karoly@lorentey.hu>
22361
22362 * buffer.c (Fbuffer_list, Fbury_buffer):
22363 Take frame->buried_buffer_list into account.
22364
22365 * cm.c (current_tty): New variable, for cmputc().
22366 (cmputc): Use it.
22367 (cmcheckmagic): Add tty parameter, look up terminal streams there.
22368 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
22369 (cmgoto): Add tty parameter. Pass it on to calccost().
22370 Use emacs_tputs() instead of tputs().
22371
22372 * cm.h (emacs_tputs): New macro to set current_tty, and then call
22373 tputs().
22374 (current_tty): New variable, for cmputc().
22375 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
22376
22377 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
22378 (internal_condition_case, internal_condition_case_1)
22379 (internal_condition_case_2): Don't abort when x_catching_errors.
22380
22381 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
22382 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
22383 prevent crashes caused by bogus longjmps in read_char.
22384
22385 * keymap.h (Fset_keymap_parent): Add EXFUN.
22386
22387 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
22388 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
22389 Remove redundant definition.
22390
22391 * macfns.c (x_set_mouse_color, x_make_gc):
22392 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
22393
22394 * w32term.c (x_free_frame_resources):
22395 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
22396 (w32_initialize): Use the accessor macros for terminal characteristics.
22397
22398 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
22399 Use the accessor macros for terminal characteristics.
22400 * msdos.c (internal_terminal_init): Use the accessor macros for
22401 terminal characteristics.
22402 (ScreenVisualBell, internal_terminal_init):
22403 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
22404
22405 * termopts.h (no_redraw_on_reenter): Declare.
22406
22407 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
22408 (mark_terminals, mark_ttys): Declare.
22409 (Fgarbage_collect): Call them.
22410 (mark_object): Mark buried_buffer_list.
22411
22412 * prefix-args.c: Include stdlib.h for exit.
22413
22414 * syssignal.h: Add comment.
22415
22416 * indent.c: Include stdio.h.
22417
22418 * window.h (Vinitial_window_system): Declare.
22419 (Vwindow_system): Delete declaration.
22420
22421 * fontset.c (Finternal_char_font): Use FRAME_RIF.
22422
22423 * image.c (lookup_image): Don't initialize `c' until the xasserts
22424 have been run.
22425
22426 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
22427 FRAME_FOREGROUND_PIXEL.
22428
22429 * print.c (print_preprocess): Don't lose print_depth levels while
22430 iterating.
22431
22432 * widget.c (update_from_various_frame_slots):
22433 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
22434
22435 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
22436 frames.
22437 (window_internal_height): Remove bogus make_number call.
22438 (init_window_once): Call make_terminal_frame with two zero parameters.
22439
22440 * fileio.c (Fread_file_name): Update comment.
22441
22442 * callint.c (Fcall_interactively):
22443 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
22444 Make sure it is correctly unwound.
22445
22446 * xsmfns.c (x_session_close): New function.
22447
22448 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
22449 Delete declarations.
22450
22451 * xterm.h: Remove declaration for x_fully_uncatch_errors.
22452 (x_output): Remove background_pixel and foreground_pixel fields.
22453 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
22454 (x_delete_device, x_session_close): Declare.
22455
22456 * lread.c: Include setjmp.h. Update declaration of `read_char'.
22457 (read_filtered_event): Call `read_char' with a local
22458 `wrong_kboard_jmpbuf'.
22459
22460 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
22461 Don't call single_kboard_state. Use FRAME_RIF.
22462
22463 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
22464 systems.
22465
22466 * lisp.h (set_process_environment): Rename to `set_global_environment'.
22467 (Fframe_with_environment, Fset_input_meta_mode)
22468 (Fset_quit_char): EXFUN.
22469 (x_create_device, tty_output, terminal, tty_display_info): Declare.
22470 (init_sys_modes, reset_sys_modes): Update prototypes.
22471 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
22472
22473 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
22474 Vlocal_key_translation_map, and Vkeyboard_translate_table.
22475 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
22476 Delete declarations.
22477 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
22478 (temporarily_switch_to_single_kboard, tty_read_avail_input):
22479 New declarations.
22480
22481 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
22482 already does that during init_display(). Call syms_of_keymap
22483 before syms_of_keyboard. Call `syms_of_terminal'.
22484 Call set_initial_environment, not set_process_environment.
22485 (shut_down_emacs): Call reset_all_sys_modes() instead of
22486 reset_sys_modes().
22487
22488 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
22489 (internal_resolve_face_name, resolve_face_name_error): New functions.
22490 (resolve_face_name): Protect against loops and errors thrown by Fget.
22491 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
22492 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
22493
22494 * scroll.c: Replace CURTTY() with local variables throughout the
22495 file (where applicable).
22496 (calculate_scrolling, calculate_direct_scrolling)
22497 (scrolling_1, scroll_cost): Use the accessor macros for terminal
22498 characteristics.
22499
22500 * keymap.c (Vfunction_key_map): Remove.
22501 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
22502 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
22503 (Vkey_translation_map): Remove.
22504 (syms_of_keymap): Remove DEFVAR for key-translation-map.
22505 (Fdescribe_buffer_bindings)
22506 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
22507 Update for terminal-local key-translation-map.
22508
22509 * Makefile.in (callproc.o): Update dependencies.
22510 (lisp, shortlisp): Add termdev.elc.
22511 (obj): Add terminal.o.
22512 (terminal.o): Add dependencies.
22513 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
22514 (data.o, fns.o): Add termhooks.h dependency.
22515 (SOME_MACHINE_LISP): Add dnd.elc.
22516 (minibuf.o): Fix typo.
22517 Update dependencies.
22518
22519 * data.c (do_symval_forwarding, store_symval_forwarding)
22520 (find_symbol_value): Use the selected frame's keyboard, not
22521 current_kboard.
22522
22523 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
22524 Vwindow_system.
22525
22526 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
22527 Fmenu_bar_open.
22528 (syms_of_xmenu): Update defsubr.
22529 (mouse_position_for_popup, Fx_popup_menu)
22530 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
22531 (set_frame_menubar, free_frame_menubar)
22532 (create_and_show_popup_menu, xmenu_show)
22533 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
22534 an X frame.
22535
22536 * xselect.c (x_own_selection): Abort if not an X frame.
22537 (some_frame_on_display): Check if it is an X frame.
22538 (x_handle_selection_clear): Deal with MULTI_KBOARD.
22539
22540 * coding.c: Include frame.h and termhooks.h.
22541 (terminal_coding, keyboard_coding): Delete.
22542 (Fset_terminal_coding_system_internal)
22543 (Fset_keyboard_coding_system_internal)
22544 (Fkeyboard_coding_system)
22545 (Fterminal_coding_system): Add a terminal parameter.
22546 Get terminal_coding from the terminal.
22547 (init_coding_once): Don't call setup_coding_system here.
22548
22549 * dispextern.h (set_scroll_region, turn_off_insert)
22550 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
22551 (tty_clear_end_of_line, tty_setup_colors)
22552 (delete_tty, updating_frame)
22553 (produce_special_glyphs, produce_glyphs, write_glyphs)
22554 (insert_glyphs): Remove.
22555 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
22556 (tty_turn_off_highlight, get_tty_size): Add declaration.
22557 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
22558
22559 * frame.h (enum output_method): Add output_initial.
22560 (struct x_output): Delete.
22561 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
22562 Access foreground_pixel and background_pixel directly from the frame.
22563 (tty_display): Delete.
22564 (struct frame): Add buried_buffer_list, foreground_pixel,
22565 background_pixel and terminal. Delete kboard.
22566 (union output_data): Add tty.
22567 (FRAME_KBOARD): Get the kboard from the terminal.
22568 (FRAME_INITIAL_P): New macro.
22569 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
22570 (Qterm_environment_variable, Qdisplay_environment_variable)
22571 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
22572 New declarations.
22573
22574 * termchar.h (tty_output, tty_display_info): New structures.
22575 (tty_list): Declare.
22576 (FRAME_TTY, CURTTY): New macros.
22577 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
22578 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
22579 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
22580 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
22581
22582 * callproc.c: Include frame.h and termhooks.h, for terminal
22583 parameters.
22584 (add_env): New function.
22585 (child_setup): Use it.
22586 (child_setup, getenv_internal): Handle the new Vprocess_environment.
22587 (getenv_internal): Fix get_terminal_param call.
22588 (Fgetenv_internal, egetenv): Update doc.
22589 (syms_of_callproc): Initialize Vprocess_environment to nil.
22590 Register and initialize them. Remove obsolete defvars. Update doc
22591 strings.
22592 (child_setup): Handle Vlocal_environment_variables.
22593 (getenv_internal): Add terminal parameter.
22594 Handle Vlocal_environment_variables.
22595 (Fgetenv_internal): Add terminal parameter.
22596 (child_setup, getenv_internal, Fgetenv_internal): Store the local
22597 environment in a frame (not terminal) parameter. Update doc strings.
22598 (set_initial_environment): Rename from set_global_environment.
22599 Store Emacs environment in initial frame parameter.
22600
22601 * xdisp.c (redisplay_internal): Update references to
22602 `previous_terminal_frame'.
22603 (display_mode_line, Fformat_mode_line): Replace calls to
22604 `push_frame_kboard' with `push_kboard'.
22605 (get_glyph_string_clip_rects): Add extra parentheses and
22606 braces to prevent compiler warnings.
22607 (calc_pixel_width_or_height): Add xassert to check that the
22608 frame is alive. Don't call `lookup_image' on a termcap frame.
22609 (message2_nolog, message3_nolog, redisplay_internal)
22610 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
22611 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
22612 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
22613 (Fx_display_pixel_width, Fx_display_pixel_height)
22614 (Fx_display_planes, Fx_display_color_cells)
22615 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
22616 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
22617 (Fx_display_backing_store, Fx_display_visual_class)
22618 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
22619 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
22620
22621 * xfns.c (x_set_foreground_color x_set_background_color)
22622 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
22623 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
22624 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
22625 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
22626 terminal that is being deleted.
22627 (Fx_create_frame): Use `store_frame_param' to set `window-system'
22628 frame parameter, and make sure it overrides any user-supplied setting.
22629 (Fx_close_connection, Fx_synchronize): Unify argument names with
22630 the rest of the DEFUNs.
22631
22632 * dispnew.c (Fsend_string_to_terminal): Update call to
22633 `get_tty_terminal'.
22634 (Fredraw_frame, Fsend_string_to_terminal)
22635 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
22636 FRAME_TERMCAP_P and FRAME_TTY.
22637 (window_change_signal): Don't believe width/height values that are
22638 impossibly small.
22639 (Vinitial_window_system): Rename from Vwindow_system.
22640 (termscript, Wcm, rif): Delete.
22641
22642 * termhooks.h (struct terminal): New struct containing the
22643 previously global text display hooks and new members NAME,
22644 DELETED and PARAM_ALIST.
22645 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
22646 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
22647 (FRAME_RIF): New macros.
22648 (get_terminal_param, get_device): New declarations.
22649 (termscript): Delete declaration.
22650
22651 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
22652 (XTflash, x_free_frame_resources, x_scroll_bar_create)
22653 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
22654 FRAME_FOREGROUND_PIXEL.
22655 (x_fully_uncatch_errors): Disable definition.
22656 (x_scroll_bar_expose): Fix reference to foreground pixel.
22657 (XTread_socket): Disable loop on all X displays.
22658 (x_delete_terminal): Don't set terminal->deleted and let
22659 delete_terminal delete the frames on the terminal.
22660 (x_delete_display): Doc update to reflect changes in
22661 delete_terminal.
22662 (x_display_info) <terminal>: Move member earlier in the struct.
22663 (deleting_tty): Remove old variable.
22664 (Fsuspend_tty): Call clear_tty_hooks.
22665 (Fresume_tty, init_tty): Call set_tty_hooks.
22666 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
22667 errors on X frames.
22668 (x_catch_errors_unwind): Abort if x_error_message is NULL.
22669 (handle_one_xevent): Initialize `f' to NULL.
22670 (x_delete_terminal, x_create_terminal): New functions.
22671 (XTset_terminal_modes, XTreset_terminal_modes)
22672 (XTread_socket, x_connection_closed, x_term_init)
22673 (x_term_init, x_delete_display): Add terminal parameter.
22674 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
22675 X connections.
22676
22677 * frame.c: Include termchar.h.
22678 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
22679 (Qwindow_system, Qenvironment, Qterm_environment_variable)
22680 (Qdisplay_environment_variable): New vars.
22681 (Fframep): Deal with output_initial.
22682 (Fframe-live-p): Doc fix.
22683 (Fwindow-system): New function.
22684 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
22685 (make_terminal_frame): Don't create frames on a terminal that is
22686 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
22687 (store_frame_param): Check for found_for_frame before calling XFRAME.
22688 (Fmake_terminal_frame): Handle NULL tty names correctly.
22689 (syms_of_frame): Enhance doc string of `default-frame-alist'.
22690 (Fdelete_frame): Remove unused variable `count'. Don't allow other
22691 frames to refer to a deleted frame in their 'environment parameter.
22692 (Fframe_with_environment): New function.
22693 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
22694 (get_future_frame_param): New function.
22695 (Fmake_terminal_frame): Use it.
22696 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
22697
22698 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
22699 * sysdep.c (reset_sys_modes): Update for renames.
22700
22701 * keyboard.c (tty_read_avail_input): New function.
22702 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
22703 (syms_of_keyboard): Defsubr them.
22704 (Fset_input_meta_mode, Fset_quit_char): New functions.
22705 (Fset_input_mode): Split to above functions.
22706 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
22707 parameter. Use it in call to `read_char'.
22708 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
22709 Set wrong_kboard_jmpbuf correctly in recursive calls.
22710 Use current_kboard to access Vkeyboard_translate_table.
22711 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
22712 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
22713 Update longjmp invocations. Remember the original current_kboard,
22714 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
22715 changes it. Comment out unnecessary calls to
22716 `record_single_kboard_state' and `any_kboard_state'.
22717 Update recursive calls.
22718 (wrong_kboard_jmpbuf): Remove global variable.
22719 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
22720 Handle deleted interrupted_kboards correctly; that is a legal
22721 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
22722 and read_char calls. Abort if interrupted_kboard died in read_char.
22723 (any_kboard_state, single_kboard_state)
22724 (push_frame_kboard): Remove function.
22725 (pop_kboard): Switch out of single_kboard mode if the kboard has
22726 been deleted. Remove unused variable. Help debugging by not
22727 changing current_kboard unnecessarily. Set current_kboard to the
22728 kboard of the selected frame when the stored kboard object has
22729 been deleted before pop_kboard.
22730 (temporarily_switch_to_single_kboard): Change first parameter to a
22731 frame pointer. Throw an error when caller wants to change kboards
22732 while in single_kboard mode. Don't push_kboard if we weren't in
22733 single kboard state. Don't pop_kboard if we popped into any
22734 kboard state.
22735 (restore_kboard_configuration): Abort if pop_kboard changed the
22736 kboard in single_kboard mode. Call pop_kboard only after setting
22737 up single_kboard mode.
22738 (Frecursive_edit): Switch to single_kboard mode only in nested
22739 command loops.
22740 (cmd_error, command_loop, command_loop_1, timer_check):
22741 Comment out unnecessary call to `any_kboard_state' and
22742 `record_single_kboard_state'.
22743 (delete_kboard): Exit single_kboard mode if we have just deleted
22744 that kboard. Use FRAME_KBOARD.
22745 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
22746 `fatal_error_signal'.
22747 (record_single_kboard_state): Don't push_kboard if we weren't in
22748 single kboard state. Don't pop_kboard if we popped into any
22749 kboard state.
22750 (push_frame_kboard): Rename to push_kboard.
22751 (kbd_buffer_get_event): Use FRAME_TERMINAL.
22752 (read_avail_input): Read input from all terminals.
22753 (mark_kboards): Also mark Vkeyboard_translate_table.
22754 (kbd_buffer_store_event_hold): Simplify condition.
22755 (read_key_sequence): Reinitialize fkey and keytran at each replay.
22756 (Vkeyboard_translate_table): Move to struct kboard.
22757 (init_kboard): Initialize Vkeyboard_translate_table.
22758 (syms_of_keyboard): Use DEFVAR_KBOARD to define
22759 Vkeyboard_translate_table. Update doc strings. Update docs of
22760 local-function-key-map and function-key-map.
22761
22762 * terminal.c: New file.
22763
22764 * term.c: Include errno.h.
22765 (Vring_bell_function, device_list, initial_device)
22766 (next_device_id, ring_bell, update_begin, update_end)
22767 (set_terminal_window, cursor_to, raw_cursor_to)
22768 (clear_to_end, clear_frame, clear_end_of_line)
22769 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
22770 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
22771 (syms_of_term): Move their initialization to terminal.c.
22772 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
22773 (Ftty_display_color_cells)
22774 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
22775 (clear_tty_hooks, set_tty_hooks)
22776 (init_tty, maybe_fatal): New functions.
22777 (Ftty_type): Return nil if terminal is not on a tty instead of
22778 throwing an error. Doc update.
22779 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
22780 Doc update. Initialize new subrs and variables.
22781 (delete_tty): Use terminal->deleted.
22782 (tty_set_terminal_modes): Rename from set_terminal_modes.
22783 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
22784 (set_scroll_region): Rename to `tty_set_scroll_region'.
22785 (turn_on_insert): Rename to `tty_turn_on_insert'.
22786 (turn_off_insert): Rename to `tty_turn_off_insert'.
22787 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
22788 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
22789 (toggle_highligh): Rename to `tty_toggle_highlight'.
22790 (background_highlight): Rename to `tty_background_highlight'.
22791 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
22792 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
22793 (tty_set_scroll_region, tty_background_highlight)
22794 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
22795 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
22796 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
22797 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
22798 Add static modifier.
22799 (tty_reset_terminal_modes, tty_set_terminal_window)
22800 (tty_set_scroll_region, tty_background_highlight)
22801 (tty_highlight_if_desired, tty_cursor_to)
22802 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
22803 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
22804 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
22805 renames.
22806
22807 2007-08-28 Jan Djärv <jan.h.d@swipnet.se>
22808
22809 * keyboard.c: Qrtl is new.
22810 (parse_tool_bar_item): Handle :rtl keyword.
22811 (syms_of_keyboard): Intern :rtl keyword.
22812
22813 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
22814
22815 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
22816 so no Lisp code is executed.
22817 (file_for_image, find_rtl_image): New functions.
22818 (xg_get_image_for_pixmap): Use file_for_image.
22819 (update_frame_tool_bar): If direction is RTL, use RTL image if
22820 defined. Use Gtk stock images if defined.
22821
22822 2007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22823
22824 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
22825 for nonexistent or zero-width glyph in composition glyph.
22826
22827 2007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
22828
22829 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
22830
22831 * xdisp.c (Finvisible_p): New function.
22832 (syms_of_xdisp): defsubr it.
22833
22834 2007-08-24 Juanma Barranquero <lekktu@gmail.com>
22835
22836 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
22837 Doc fixes.
22838
22839 2007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22840
22841 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
22842
22843 2007-08-24 Martin Rudalics <rudalics@gmx.at>
22844
22845 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
22846 whether decoding has modified buffer contents.
22847
22848 2007-08-24 Jason Rumney <jasonr@gnu.org>
22849
22850 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
22851 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
22852 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
22853 (init_svg_functions) [HAVE_NTGUI]: New function.
22854 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
22855 (svg_load_image): Use them.
22856 (svg_load_image) [HAVE_NTGUI]: Implement background.
22857
22858 2007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22859
22860 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
22861 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
22862 (LIBX): Remove @RSVG_LIBS@.
22863 (LIBES): Add $(RSVG_LIBS).
22864
22865 * image.c (svg_load_image): Blend with specified background if exists.
22866 Use IMAGE_BACKGROUND. Add Mac OS Support.
22867
22868 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
22869 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
22870 Remove macros.
22871 [MAC_OSX] (socket_callback): Do nothing.
22872 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
22873 ReceiveNextEvent.
22874 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
22875 socket_callback.
22876 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
22877
22878 2007-08-22 Glenn Morris <rgm@gnu.org>
22879
22880 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
22881
22882 2007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
22883
22884 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
22885
22886 * image.c: Add support for SVG images. Some additional comments
22887 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
22888 (svg_image_p): New function to test for SVG image.
22889 (svg_load): New function to load SVG image.
22890 (svg_load_image): New function, helper for svg_load.
22891 (Qsvg): New Lisp_object.
22892 (svg_keyword_index): New enum.
22893 (svg_format): New static `image_keyword' struct.
22894 (svg_type): New static `image_type' struct.
22895 (librsvg/rsvg.h): Include it.
22896
22897 2007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
22898
22899 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
22900
22901 2007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
22902
22903 * lread.c (Qold_style_backquotes): New var.
22904 (syms_of_lread): Init and staticpro it.
22905 (load_warn_old_style_backquotes): New fun.
22906 (Fload): Use them to warn about old style backquotes.
22907 (end_of_file_error, Fload): Remove unused vars.
22908
22909 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
22910
22911 * lread.c (Vold_style_backquotes): New var.
22912 (syms_of_lread): Init and export it to Elisp.
22913 (read1): Set it when we find an old-style (back)quote.
22914
22915 2007-08-22 Jason Rumney <jasonr@gnu.org>
22916
22917 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
22918
22919 2007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
22920
22921 * puresize.h (BASE_PURESIZE): Increase to 1140000.
22922
22923 2007-08-19 Richard Stallman <rms@gnu.org>
22924
22925 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
22926
22927 2007-08-19 Andreas Schwab <schwab@suse.de>
22928
22929 * alloc.c (pure): Round PURESIZE up.
22930
22931 2007-08-17 Jan Djärv <jan.h.d@swipnet.se>
22932
22933 * xterm.c (handle_one_xevent): Remove check that mouse click is in
22934 active frame.
22935
22936 2007-08-16 Richard Stallman <rms@gnu.org>
22937
22938 * eval.c (Fcommandp): Add parens to clarify.
22939
22940 * minibuf.c (Fall_completions): Use enum for type of table.
22941
22942 * emacs.c (USAGE2): Improve text.
22943
22944 2007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
22945
22946 * term.c (tty_default_color_capabilities): Declare static
22947 variables in file scope, to avoid HPUX compiler problem.
22948
22949 2007-08-13 Jan Djärv <jan.h.d@swipnet.se>
22950
22951 * gtkutil.c (update_frame_tool_bar): Use -1 as index
22952 to gtk_toolbar_insert.
22953
22954 2007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
22955
22956 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
22957
22958 * insdel.c (reset_var_on_error): New fun.
22959 (signal_before_change, signal_after_change):
22960 Use it to reset (after|before)-change-functions to nil in case of error.
22961 Bind inhibit-modification-hooks to t.
22962 Don't bind (after|before)-change-functions to nil while they run.
22963
22964 2007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22965
22966 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
22967 filling pixmap with stippled background.
22968
22969 2007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22970
22971 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
22972 Don't use invisible frame as parent window for repositioning.
22973
22974 2007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
22975
22976 * print.c (new_backquote_output): Rename from old_backquote_output.
22977 (print): Inverse its logic (according to its name) so as to match the
22978 behavior of new_backquote_flag in lread.c.
22979
22980 2007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22981
22982 * gmalloc.c (posix_memalign): New function.
22983
22984 * macterm.c (frame_highlight, frame_unhighlight): Don't call
22985 ActivateControl/DeactivateControl here.
22986 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
22987 frame-notice-user-settings is non-nil.
22988 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
22989 for kEventParamFMFontStyle.
22990 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
22991 mac_pass_command_to_system and mac_pass_control_to_system here.
22992 (XTread_socket): Call ActivateControl/DeactivateControl here.
22993 (XTread_socket) [TARGET_API_MAC_CARBON]:
22994 Check mac_pass_command_to_system and mac_pass_control_to_system here.
22995 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
22996 for window repositioning.
22997
22998 2007-08-08 Glenn Morris <rgm@gnu.org>
22999
23000 * Replace `iff' in doc-strings and comments.
23001
23002 2007-08-07 Chong Yidong <cyd@stupidchicken.com>
23003
23004 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
23005
23006 2007-08-07 Martin Rudalics <rudalics@gmx.at>
23007
23008 * fileio.c (Finsert_file_contents): Run format-decode and
23009 after_insert_file_functions on entire buffer when REPLACE is
23010 non-nil and inhibit modification_hooks and point_motion_hooks.
23011 For consistency, run after_insert_file_functions iff something
23012 got inserted. Move signal_after_change and update_compositions
23013 after code running after_insert_file_functions. Make sure that
23014 undo_list doesn't record intermediate steps of the decoding process.
23015
23016 2007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23017
23018 * emacs.c (main)
23019 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
23020 Call malloc_enable_thread on interactive startup.
23021
23022 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
23023 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
23024 [USE_PTHREAD]: Conditionalize with it.
23025 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
23026 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
23027 New functions.
23028
23029 2007-08-06 Chong Yidong <cyd@stupidchicken.com>
23030
23031 * xdisp.c (redisplay_window): When restoring original buffer
23032 position, make sure it is still valid.
23033
23034 * image.c (png_load): Ignore png-supplied background color.
23035
23036 2007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23037
23038 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
23039 Use kCFAbsoluteTimeIntervalSince1970.
23040
23041 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
23042 New variable.
23043 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
23044 event loop should be quit.
23045 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
23046 Quit dialog event loop if quit_dialog_event_loop is set.
23047
23048 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
23049 (Selection): New typedef. Use instead of ScrapRef.
23050 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
23051 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
23052 (mac_clear_selection): Rename from clear_scrap.
23053 (get_flavor_type_from_symbol): New argument SEL and subsume function of
23054 scrap_has_target_type. All uses changed.
23055 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
23056 (mac_selection_has_target_p): New functions.
23057 (mac_put_selection_value): Rename from put_scrap_string.
23058 (mac_get_selection_value): Rename from get_scrap_string.
23059 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
23060 (put_scrap_private_timestamp, scrap_has_target_type)
23061 (get_scrap_private_timestamp): Remove functions.
23062 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
23063 (x_own_selection, x_get_local_selection):
23064 Use mac_valid_selection_value_p.
23065 (x_own_selection): Don't use put_scrap_private_timestamp.
23066 Record OWNERSHIP-INFO into Vselection_alist instead.
23067 (x_get_local_selection): Don't check type if request is local.
23068 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
23069 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
23070
23071 2007-08-04 Jan Djärv <jan.h.d@swipnet.se>
23072
23073 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
23074 add comment explaining why.
23075
23076 2007-08-03 Richard Stallman <rms@gnu.org>
23077
23078 * fileio.c (Fvisited_file_modtime): Use make_time.
23079
23080 2007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
23081
23082 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
23083 build.
23084
23085 2007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
23086
23087 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
23088
23089 2007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
23090
23091 * puresize.h (BASE_PURESIZE): Increase to 1130000.
23092
23093 2007-07-30 Richard Stallman <rms@gnu.org>
23094
23095 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
23096
23097 2007-07-29 Jan Djärv <jan.h.d@swipnet.se>
23098
23099 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
23100
23101 2007-07-28 Nick Roberts <nickrob@snap.net.nz>
23102
23103 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
23104 remote default-directory.
23105
23106 * buffer.c (mode-line-format): Update doc string.
23107
23108 2007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23109
23110 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
23111 scroll bar gap.
23112 (x_scroll_bar_create): Set bar->fringe_extended_p.
23113 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
23114 on frame edge. Check fringe background extension. Don't clear
23115 extended fringe background area.
23116
23117 * w32term.h (struct scroll_bar): New member fringe_extended_p.
23118 (w32_fill_area): Enclose multiple statements with do ... while (0).
23119
23120 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
23121 Extend fringe background to scroll bar gap.
23122 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
23123 Set bar->fringe_extended_p.
23124 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
23125 Put leftmost/rightmost scroll bars on frame edge. Check fringe
23126 background extension. Don't clear extended fringe background area.
23127
23128 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
23129 New member fringe_extended_p.
23130
23131 2007-07-25 Glenn Morris <rgm@gnu.org>
23132
23133 * Relicense all FSF files to GPLv3 or later.
23134
23135 * COPYING: Switch to GPLv3.
23136
23137 2007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
23138
23139 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
23140
23141 * data.c (Finteractive_form): Check for the presence of an
23142 `interactive-form' symbol property more thoroughly.
23143
23144 * data.c (Finteractive_form): Use an `interactive-form' property if
23145 present, analogous to the function-documentation property.
23146
23147 2007-07-24 Jason Rumney <jasonr@gnu.org>
23148
23149 * w32fns.c (x_real_positions): Get real position from OS instead of
23150 calculating it.
23151
23152 2007-07-23 Jason Rumney <jasonr@gnu.org>
23153
23154 * filelock.c (current_lock_owner): Allow for @ sign in username.
23155
23156 2007-07-22 Nick Roberts <nickrob@snap.net.nz>
23157
23158 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
23159 remote default-directory.
23160
23161 * buffer.c (mode-line-format): Describe above case in doc string.
23162
23163 2007-07-20 Eli Zaretskii <eliz@gnu.org>
23164
23165 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
23166 Define if not defined.
23167
23168 2007-07-18 Jason Rumney <jasonr@gnu.org>
23169
23170 * w32proc.c (w32_executable_type): Handle 64 bit executables.
23171
23172 2007-07-18 Richard Stallman <rms@gnu.org>
23173
23174 * data.c (Fsetq_default): Doc fix.
23175
23176 * eval.c (Fsetq): Doc fix.
23177
23178 2007-07-18 Juanma Barranquero <lekktu@gmail.com>
23179
23180 * coding.c (Ffind_operation_coding_system):
23181 * eval.c (For, Fand): Doc fixes.
23182 Reported by Johan Bockgård.
23183
23184 2007-07-18 Jan Djärv <jan.h.d@swipnet.se>
23185
23186 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
23187
23188 * xterm.h: Declare x_ewmh_activate_frame.
23189
23190 * xterm.c (x_ewmh_activate_frame): New function.
23191 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
23192
23193 2007-07-17 Martin Rudalics <rudalics@gmx.at>
23194
23195 * window.c (Fdisplay_buffer): If largest or LRU window is the
23196 only window, split it even if it is not eligible for splitting.
23197 This restores the original behavior broken by the 2007-07-15
23198 change.
23199
23200 2007-07-17 Glenn Morris <rgm@gnu.org>
23201
23202 * abbrev.c (abbrev_check_chars): New function.
23203 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
23204 Call abbrev_check_chars to check abbrev characters are word
23205 constituents. Doc fix.
23206
23207 2007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
23208
23209 * process.c (Fstart_process, Fmake_network_process)
23210 (read_process_output): Fix up last changes.
23211
23212 2007-07-16 Eli Zaretskii <eliz@gnu.org>
23213
23214 * makefile.w32-in (clean): Don't delete *~.
23215
23216 2007-07-16 Andreas Schwab <schwab@suse.de>
23217
23218 * window.c (Fdisplay_buffer): Use NILP.
23219 (Fset_window_scroll_bars): Likewise.
23220
23221 2007-07-15 Martin Rudalics <rudalics@gmx.at>
23222
23223 * window.c (window_min_size_2): New function.
23224 (window_min_size_1, size_window, Fdisplay_buffer)
23225 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
23226 windows without mode- or header-lines when window-min-height is
23227 too small.
23228 (size_window): Reset nodelete_p after testing it, following an
23229 earlier note by Kim F. Storm.
23230 (display_buffer): Do not set split_height_threshold to twice the
23231 value of window_min_height to avoid changing the value of a
23232 customizable variable. Rather explicitly check whether the
23233 height of the window that shall be splitted is at least as large
23234 as split_height_threshold.
23235 (Fwindow_full_width_p): New defun.
23236 (syms_of_window): Defsubr it.
23237
23238 * window.h: Add EXFUN for Fwindow_full_width_p.
23239
23240 2007-07-14 Jason Rumney <jasonr@gnu.org>
23241
23242 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
23243
23244 2007-07-14 Richard Stallman <rms@gnu.org>
23245
23246 * eval.c (maybe_call_debugger): New function.
23247 (find_handler_clause): Use maybe_call_debugger.
23248 Call it when the handler says `debug'.
23249 Eliminate DEBUGGER_VALUE_PTR.
23250 (Fsignal): Eliminate debugger_value.
23251 (Qdebug): New variable.
23252 (syms_of_eval): Initialize it.
23253
23254 2007-07-14 Juanma Barranquero <lekktu@gmail.com>
23255
23256 * eval.c (Fprogn):
23257 * keyboard.c (Ftrack_mouse):
23258 * print.c (Fwith_output_to_temp_buffer):
23259 * window.c (Fsave_window_excursion): Doc fix.
23260
23261 2007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
23262
23263 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
23264
23265 2007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
23266
23267 * process.h (struct Lisp_Process): Turn slots infd, outfd,
23268 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
23269 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
23270 read_output_delay, and read_output_skip from Lisp_Objects to ints.
23271 Remove unused encoding_carryover.
23272 * process.c: Adjust all functions accordingly.
23273
23274 2007-07-12 Richard Stallman <rms@gnu.org>
23275
23276 * term.c: Include unistd.h only if HAVE_UNISTD_H.
23277
23278 2007-07-11 Jason Rumney <jasonr@gnu.org>
23279
23280 * makefile.w32-in (LIBS): Include OLE32.
23281
23282 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
23283 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
23284
23285 2007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
23286
23287 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
23288 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
23289 from a Lisp_Object into a bare pointer.
23290 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
23291 Adjust the code correspondingly.
23292
23293 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
23294
23295 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
23296 (term_show_mouse_face): Remove unused var `j'.
23297 (handle_one_term_event): Remove unused vars `i' and `j'.
23298 Don't cast return value of ttyname since it's not necessary.
23299
23300 2007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
23301
23302 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
23303 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
23304
23305 * fns.c (map_char_table): Use an array of int for `indices' rather than
23306 an array of Lisp_Objects (which are only ever integers anyway).
23307 (Fmap_char_table): Update caller.
23308 * lisp.h: Update prototype.
23309 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
23310 * fontset.c (Ffontset_info):
23311 * casetab.c (set_case_table): Update callers.
23312
23313 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
23314
23315 * keymap.c (struct accessible_keymaps_data)
23316 (struct where_is_internal_data): New structures.
23317 (accessible_keymaps_1, where_is_internal_1): Use them to change
23318 interface to adhere to the one used by map_keymap.
23319 (Faccessible_keymaps, where_is_internal): Use map_keymap.
23320 (accessible_keymaps_char_table, where_is_internal_2): Remove.
23321
23322 * keymap.h (map_keymap_function_t): More informative prototype.
23323
23324 2007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
23325
23326 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
23327 (looking_at_1): Don't change search_regs and last_thing_searched
23328 if `inhibit-changing-match-data' is non-nil.
23329 (string_match_1, search_buffer, set_search_regs): Likewise.
23330 (syms_of_search): Add Lisp level definition for
23331 `inhibit-changing-match-data' and set it to nil.
23332 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
23333 start and end of the match, instead of using values in search_regs.
23334
23335 2007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
23336
23337 * minibuf.c (Fcompleting_read): New value `confirm-only'
23338 for `require-match'.
23339
23340 2007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
23341
23342 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
23343 part of the 2007-06-27 change to syms_of_fileio.
23344
23345 2007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23346
23347 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
23348 Check WINDOWP before using XWINDOW. Consolidate return statements.
23349
23350 2007-06-27 Richard Stallman <rms@gnu.org>
23351
23352 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
23353
23354 2007-06-27 Juanma Barranquero <lekktu@gmail.com>
23355
23356 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
23357
23358 2007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23359
23360 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
23361 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
23362 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
23363 (_free_internal, memalign): Use them.
23364 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
23365 Initialize to PTHREAD_MUTEX_INITIALIZER.
23366 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
23367 (morecore_nolock): Rename from morecore. All uses changed.
23368 Use only nolock versions of internal allocation functions.
23369 (_malloc_internal_nolock, _realloc_internal_nolock)
23370 (_free_internal_nolock): New functions created from
23371 _malloc_internal, _realloc_internal, and _free_internal.
23372 (_malloc_internal, _realloc_internal, _free_internal): Use them.
23373 Copy hook value to automatic variable before its use.
23374 (memalign): Copy hook value to automatic variable before its use.
23375
23376 2007-06-26 Kenichi Handa <handa@m17n.org>
23377
23378 * coding.c (Ffind_operation_coding_system): Docstring improved.
23379 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
23380
23381 2007-06-25 David Kastrup <dak@gnu.org>
23382
23383 * keymap.c (Fcurrent_active_maps): Add `position' argument.
23384 (Fwhere_is_internal): Adjust call to `current-active-maps' to
23385 cater for additional parameter.
23386
23387 * keymap.h: Adjust number of parameters to `current-active-maps'.
23388
23389 * doc.c (Fsubstitute_command_keys): Adjust call of
23390 `current-active-maps'.
23391
23392 2007-06-25 David Kastrup <dak@gnu.org>
23393
23394 * callint.c (Fcall_interactively): Make the parsing of interactive
23395 specs somewhat more readable.
23396
23397 2007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23398
23399 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
23400 to scroll bar gap also when bitmap fills fringe. Draw only foreground
23401 if extended background has already been filled.
23402
23403 2007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23404
23405 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
23406 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
23407
23408 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
23409 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
23410 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
23411 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
23412 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
23413 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
23414 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
23415 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
23416 Run timers during dialog popup.
23417 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
23418
23419 2007-06-21 Jason Rumney <jasonr@gnu.org>
23420
23421 * image.c (convert_mono_to_color_image): Swap fore and background.
23422
23423 2007-06-20 Jason Rumney <jasonr@gnu.org>
23424
23425 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
23426 (w32_free_bdf_font): Unmap memory not handle.
23427
23428 2007-06-20 Sam Steingold <sds@gnu.org>
23429
23430 * gmalloc.c (__morecore): Fix the declaration to comply with the
23431 definition.
23432
23433 2007-06-20 Juanma Barranquero <lekktu@gmail.com>
23434
23435 * w32term.c (w32_delete_display): Remove leftover declaration.
23436 (w32_define_cursor, w32_initialize): Make static.
23437
23438 * w32.c (_wsa_errlist): Fix typo in error message.
23439 (init_environment): Ignore any environment variable from the
23440 registry having a null value.
23441
23442 2007-06-20 Glenn Morris <rgm@gnu.org>
23443
23444 * Makefile.in (LIBGIF): Default to -lgif.
23445
23446 2007-06-17 Jason Rumney <jasonr@gnu.org>
23447
23448 * w32menu.c (add_menu_item): Don't use multibyte string functions on
23449 unicode strings.
23450
23451 2007-06-16 Juanma Barranquero <lekktu@gmail.com>
23452
23453 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
23454 Fix typo in docstring.
23455
23456 2007-06-16 Eli Zaretskii <eliz@gnu.org>
23457
23458 * w32menu.c (add_menu_item): Escape `&' characters in menu items
23459 and their keybindings.
23460
23461 2007-06-15 Chong Yidong <cyd@stupidchicken.com>
23462
23463 * composite.c (update_compositions): Fix last fix.
23464
23465 2007-06-14 Jason Rumney <jasonr@gnu.org>
23466
23467 * w32.c (get_process_times_fn): New function pointer.
23468 (globals_of_w32): Intialize it if present in kernel32.dll.
23469 (w32_get_internal_run_time): New function.
23470
23471 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
23472
23473 2007-06-14 Kenichi Handa <handa@etlken.m17n.org>
23474
23475 * composite.c (update_compositions): Check the validness of
23476 compositions.
23477
23478 2007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23479
23480 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
23481 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
23482
23483 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
23484 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
23485
23486 * macgui.h (USE_MAC_TOOLBAR): New define.
23487
23488 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
23489 Return immediately unless popup is activated.
23490
23491 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
23492 background to scroll bar gap.
23493 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
23494 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
23495 scroll bars on frame edge. Check fringe background extension.
23496 Don't clear extended fringe background area.
23497 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
23498 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
23499 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
23500 [USE_MAC_TOOLBAR]: New macros.
23501 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
23502 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
23503 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
23504 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
23505 [USE_MAC_TOOLBAR]: New functions.
23506 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
23507 manually if previous repositioning has failed.
23508 (mac_handle_keyboard_event): Use precomputed event kind.
23509 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
23510 as tool bar item click. Handle mouse movement over tool bar items.
23511
23512 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
23513 toolbar_win_gravity.
23514 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
23515 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
23516 Add externs.
23517
23518 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
23519 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
23520
23521 2007-06-14 Chong Yidong <cyd@stupidchicken.com>
23522
23523 * image.c (search_image_cache): Remove unused variable.
23524
23525 2007-06-13 Chong Yidong <cyd@stupidchicken.com>
23526
23527 * xfns.c, xmenu.c: Link to xaw3d if available.
23528
23529 2007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23530
23531 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
23532 frame_foreground and frame_background.
23533
23534 * image.c (lookup_image): Save frame foreground and background colors.
23535 (search_image_cache): Check if saved and current frame colors match.
23536
23537 2007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
23538
23539 * regex.c (regex_compile): Remove the `regnum' counter.
23540 Use bufp->re_nsub instead. Add support for \(?N:RE\).
23541
23542 2007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
23543
23544 * term.c: Include intervals.h to declare Fget_text_property.
23545
23546 2007-06-10 Jason Rumney <jasonr@gnu.org>
23547
23548 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
23549
23550 2007-06-08 Juanma Barranquero <lekktu@gmail.com>
23551
23552 * callint.c (Fcall_interactively):
23553 * editfns.c (Fdelete_and_extract_region):
23554 * fileio.c (Fread_file_name):
23555 * fns.c (Fmapconcat):
23556 * keyboard.c (cmd_error_internal):
23557 * keymap.c (Fkey_description):
23558 * lread.c (openp):
23559 * minibuf.c (read_minibuf):
23560 * search.c (wordify):
23561 * sunfns.c (sel_read):
23562 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
23563 * xfns.c (x_default_scroll_bar_color_parameter):
23564 * xmenu.c (menu_help_callback):
23565 * xselect.c (Fx_get_atom_name):
23566 * xterm.c (x_term_init): Use empty_unibyte_string.
23567
23568 2007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
23569
23570 * alloc.c (init_strings): Initialize canonical empty strings.
23571 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
23572 canonical empty string when the requested size is 0.
23573
23574 * emacs.c (empty_unibyte_string): Rename from empty_string.
23575 (empty_multibyte_string): New canonical empty string.
23576 (syms_of_emacs): Don't initialize empty_string.
23577
23578 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
23579 string, if appropriate.
23580 (empty_unibyte_string, empty_multibyte_string): New externs.
23581 (empty_string): Remove extern.
23582
23583 * lread.c (syms_of_lread): Use empty_unibyte_string.
23584
23585 2007-06-07 Jason Rumney <jasonr@gnu.org>
23586
23587 * s/ms-w32.h: Don't define HAVE_TZNAME.
23588
23589 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
23590
23591 2007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23592
23593 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
23594
23595 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
23596 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
23597
23598 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
23599 Don't call next handler.
23600 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
23601 Remove argument. Install handler to application.
23602 (set_frame_menubar): Don't change deep_p.
23603 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
23604 FRAME_OUTER_TO_INNER_DIFF_Y.
23605 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
23606 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
23607 [HAVE_DIALOGS]: New macros.
23608 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
23609 Use them.
23610 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
23611
23612 * macselect.c [MAC_OSX] (install_service_handler): Rename from
23613 init_service_handler. All callers changed. Return OSStatus value.
23614
23615 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
23616 All callers changed so as not to call SetPortWindowPort.
23617 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
23618 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
23619 mac_draw_string_common.
23620 (mac_draw_image_string_qd): Likewise.
23621 (mac_draw_string_common): Use them. Add INLINE.
23622 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
23623 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
23624 GetGlobalMouse.
23625 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
23626 and FRAME_OUTER_TO_INNER_DIFF_Y.
23627 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
23628 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
23629 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
23630 repositioning window to mac_handle_window_event.
23631 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
23632 saving window location to mac_handle_window_event
23633 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
23634 (install_menu_target_item_handler): Remove argument in extern.
23635 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
23636 Also accept command events.
23637 (do_keystroke): New function created from XTread_socket.
23638 (init_command_handler): Remove functions.
23639 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
23640 and save window location by kEventWindowShowing and kEventWindowHiding
23641 handlers here. Don't call next handler for window state change and
23642 focus events.
23643 (mac_handle_application_event, mac_handle_keyboard_event)
23644 [TARGET_API_MAC_CARBON]: New functions.
23645 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
23646 kEventWindowShowing and kEventWindowHiding events. Move installation
23647 of mouse, font, text input and menu target item handlers to
23648 install_application_handler.
23649 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
23650 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
23651 New function.
23652 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
23653 Register it.
23654 (XTread_socket) [TARGET_API_MAC_CARBON]:
23655 Consolidate SendEventToEventTarget calls.
23656 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
23657 Move application activation handler to mac_handle_application_event.
23658 Move keyboard handler to mac_handle_keyboard_event.
23659 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
23660 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
23661 init_command_handler. Call install_application_handler.
23662
23663 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
23664 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
23665
23666 2007-06-07 Glenn Morris <rgm@gnu.org>
23667
23668 * emacs.c (main): Use `emacs-copyright' in --version output.
23669
23670 2007-06-06 Chong Yidong <cyd@stupidchicken.com>
23671
23672 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
23673
23674 2007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23675
23676 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
23677
23678 * macgui.h: Replace WindowPtr with WindowRef.
23679
23680 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
23681 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
23682 Replace ControlHandle with ControlRef.
23683 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
23684
23685 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
23686 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
23687 Replace ControlHandle with ControlRef.
23688 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
23689 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
23690
23691 * macterm.h (struct scroll_bar): Rename member control_handle_low
23692 and control_handle_high to control_ref_low and control_ref_high.
23693 All uses changed.
23694 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
23695 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
23696 respectively. All uses changed.
23697 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
23698 (install_window_handler, remove_window_handler): Replace WindowPtr
23699 with WindowRef in externs.
23700
23701 2007-06-05 Juanma Barranquero <lekktu@gmail.com>
23702
23703 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
23704
23705 2007-06-03 Nick Roberts <nickrob@snap.net.nz>
23706
23707 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
23708
23709 * frame.c (Fmouse_position, Fmouse_pixel_position):
23710 Condition on HAVE_GPM too.
23711
23712 * term.c (term_mouse_highlight): Remove unused variables.
23713 (Fterm_open_connection): Set gpm_zerobased to 1.
23714 (term_mouse_movement, term_mouse_click, handle_one_term_event):
23715 Use zero based co-ordinates.
23716 (handle_one_term_event): Report a drag as mouse movement too.
23717
23718 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
23719
23720 2007-06-03 Chong Yidong <cyd@stupidchicken.com>
23721
23722 * image.c (search_image_cache): New function. Require background
23723 color match if background color is unspecified in the image spec.
23724 (uncache_image, lookup_image): Use it.
23725
23726 2007-06-01 Juanma Barranquero <lekktu@gmail.com>
23727
23728 * window.c (Fshrink_window): Reflow docstring.
23729
23730 2007-06-02 Chong Yidong <cyd@stupidchicken.com>
23731
23732 * Version 22.1 released.
23733
23734 2007-06-01 Richard Stallman <rms@gnu.org>
23735
23736 * xfns.c (x_encode_text): Add GCPRO.
23737
23738 2007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23739
23740 * xfns.c (x_set_name_internal): Save encoded name before
23741 x_encode_text in case string data is relocated.
23742
23743 2007-05-31 Richard Stallman <rms@gnu.org>
23744
23745 * buffer.c (syms_of_buffer): Doc fix.
23746
23747 2007-05-30 Nick Roberts <nickrob@snap.net.nz>
23748
23749 * sysdep.c (init_sys_modes): Add rather than replace with
23750 O_NONBLOCK.
23751
23752 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
23753 term_mouse_moveto.
23754
23755 * termhooks.h (term_mouse_moveto): New extern.
23756
23757 * term.c (mouse_face_window): Rename...
23758 (Qmouse_face_window): ...to this.
23759 (term_show_mouse_face, term_clear_mouse_face)
23760 (term_mouse_highlight): Use Qmouse_face_window.
23761 (term_mouse_moveto): New function.
23762 (term_mouse_position): Make it work.
23763 (syms_of_term): Uncomment assignment to mouse_position_hook.
23764 Staticpro Qmouse_face_window.
23765
23766 2007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23767
23768 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
23769 around current_column call.
23770
23771 2007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
23772
23773 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
23774 * xdisp.c (next_element_from_buffer):
23775 * window.c (delete_window):
23776 * term.c (term_mouse_highlight):
23777 * msdos.c (getdefdir):
23778 * macterm.c (mac_create_bitmap_from_bitmap_data)
23779 (init_font_name_table):
23780 * fns.c (Fsxhash):
23781 * data.c (Fmake_local_variable):
23782 * ccl.c (ccl_driver): Likewise.
23783
23784 2007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23785
23786 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
23787 Call mac_wakeup_from_rne on window size change.
23788
23789 2007-05-25 Chong Yidong <cyd@stupidchicken.com>
23790
23791 * image.c (uncache_image): Fix typo.
23792
23793 2007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
23794
23795 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
23796
23797 2007-05-22 Richard Stallman <rms@gnu.org>
23798
23799 * xterm.c (x_connection_closed): Remove NO_RETURN.
23800
23801 2007-05-22 Martin Rudalics <rudalics@gmx.at>
23802
23803 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
23804
23805 2007-05-21 Chong Yidong <cyd@stupidchicken.com>
23806
23807 * image.c (uncache_image): New function.
23808 (Fimage_refresh): New function.
23809
23810 2007-05-20 Jan Djärv <jan.h.d@swipnet.se>
23811
23812 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
23813
23814 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
23815
23816 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
23817 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
23818
23819 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
23820
23821 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
23822 conditional on [HAVE_GPM_H].
23823
23824 2007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
23825
23826 * syntax.c (skip_chars): Update syntax-table only after we checked that
23827 the new location is valid.
23828
23829 2007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23830
23831 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
23832 mac_get_window_bounds.
23833
23834 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
23835
23836 * Makefile.in (LIBGPM): Allow it to be set from configure.
23837 If set then link Emacs with it.
23838
23839 * config.in: Regenerate.
23840
23841 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
23842 New externs.
23843
23844 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
23845 Include gpm.h.
23846 (handle_one_term_event, term_gpm): New externs.
23847
23848 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
23849 and allow it to be interrupted by SIGIO.
23850
23851 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
23852 (wait_reading_process_output): Wait on gpm_fd too.
23853 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
23854 (add_gpm_wait_descriptor_called_flag): New variable.
23855 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
23856
23857 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
23858 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
23859 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
23860 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
23861 (make_lispy_event): Add case GPM_CLICK_EVENT.
23862 (read_avail_input): Handle mouse input.
23863
23864 * term.c (write_glyphs_with_face): New function.
23865 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
23866 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
23867 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
23868 (mouse_face_face_id, term_gpm, pos_x, pos_y)
23869 (last_mouse_x, last_mouse_y): New variables.
23870 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
23871 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
23872 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
23873 (Fterm_close_connection): New functions.
23874 (term_init): Initialise mouse_face_window.
23875
23876 2007-05-19 Chong Yidong <cyd@stupidchicken.com>
23877
23878 * xdisp.c (redisplay_window): If first window line is a
23879 continuation line, recompute the new window start instead of
23880 recentering.
23881
23882 2007-05-18 Glenn Morris <rgm@gnu.org>
23883
23884 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
23885 Suggested by Alfred M. Szmidt <ams@gnu.org>.
23886
23887 2007-05-17 Glenn Morris <rgm@gnu.org>
23888
23889 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
23890
23891 2007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23892
23893 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
23894 dead key repeat and up events.
23895
23896 2007-05-14 Chong Yidong <cyd@stupidchicken.com>
23897
23898 * image.c (pbm_load): Check image size for monochrome pbm.
23899
23900 2007-05-13 Chong Yidong <cyd@stupidchicken.com>
23901
23902 * xterm.c (XTread_socket): Revert last change.
23903
23904 2007-05-12 Chong Yidong <cyd@stupidchicken.com>
23905
23906 * image.c (pbm_load): Correctly check image size for greyscale pbm.
23907
23908 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
23909
23910 2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
23911
23912 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
23913 mixup (YAILOM).
23914
23915 2007-05-07 Andreas Schwab <schwab@suse.de>
23916
23917 * keymap.c (Flookup_key): Fix typo in last change.
23918
23919 2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
23920
23921 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
23922 mapping for unibyte strings.
23923
23924 2007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23925
23926 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
23927 (Fx_popup_dialog) [MAC_OSX]: Likewise.
23928
23929 2007-04-29 Richard Stallman <rms@gnu.org>
23930
23931 * insdel.c (replace_range): For undo, record insertion first.
23932
23933 2007-04-29 Andreas Schwab <schwab@suse.de>
23934
23935 * lisp.h (VECSIZE): Use OFFSETOF.
23936
23937 2007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23938
23939 * xdisp.c (try_window_reusing_current_matrix): Fix number of
23940 disabled lines.
23941
23942 2007-04-28 Richard Stallman <rms@gnu.org>
23943
23944 * lread.c (read_escape): In a string, \s is always space.
23945
23946 2007-04-27 Jan Djärv <jan.h.d@swipnet.se>
23947
23948 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
23949
23950 * gtkutil.c (xg_update_menubar, create_menus): Create empty
23951 submenu for menu bar items.
23952
23953 See ChangeLog.10 for earlier changes.
23954
23955 ;; Local Variables:
23956 ;; coding: utf-8
23957 ;; add-log-time-zone-rule: t
23958 ;; End:
23959
23960 Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
23961
23962 This file is part of GNU Emacs.
23963
23964 GNU Emacs is free software: you can redistribute it and/or modify
23965 it under the terms of the GNU General Public License as published by
23966 the Free Software Foundation, either version 3 of the License, or
23967 (at your option) any later version.
23968
23969 GNU Emacs is distributed in the hope that it will be useful,
23970 but WITHOUT ANY WARRANTY; without even the implied warranty of
23971 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23972 GNU General Public License for more details.
23973
23974 You should have received a copy of the GNU General Public License
23975 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
23976
23977 ;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40