Fix crash reported in bug #6306.
[bpt/emacs.git] / src / ChangeLog
1 2010-05-30 Eli Zaretskii <eliz@gnu.org>
2
3 * bidi.c (bidi_move_to_visually_next): Make sure the sentinel
4 state is always cached (bug#6306).
5
6 2010-05-29 Eli Zaretskii <eliz@gnu.org>
7
8 Fix cursor motion in bidi-reordered continued lines.
9 * xdisp.c (try_cursor_movement): Backup to non-continuation line
10 only after finding point's row. Fix the logic. Rewrite the loop
11 over continuation lines in bidi-reordered buffers. Return
12 CURSOR_MOVEMENT_MUST_SCROLL upon failure to find a suitable row,
13 rather than CURSOR_MOVEMENT_CANNOT_BE_USED.
14
15 2010-05-28 Michael Albinus <michael.albinus@gmx.de>
16
17 * fileio.c (Fdelete_file): Pass TRASH arg to handler call.
18
19 2010-05-28 Kenichi Handa <handa@m17n.org>
20
21 * font.c (font_delete_unmatched): Check Vface_ignored_fonts.
22 Don't sheck SPEC if it is nil.
23 (font_list_entities): Call font_delete_unmatched if
24 Vface_ignored_fonts is non-nil.
25
26 2010-05-28 Glenn Morris <rgm@gnu.org>
27
28 * Makefile.in (LIBES): Remove $LOADLIBES, it is never set.
29
30 2010-05-27 Chong Yidong <cyd@stupidchicken.com>
31
32 * fileio.c (Fdelete_file): Change meaning of optional arg to mean
33 whether to trash.
34 (internal_delete_file, Frename_file): Callers changed.
35 (delete_by_moving_to_trash): Doc fix.
36 (Fdelete_directory_internal): Don't move to trash.
37
38 * callproc.c (delete_temp_file):
39 * buffer.c (Fkill_buffer): Callers changed.
40
41 * lisp.h: Update prototype.
42
43 2010-05-27 Chong Yidong <cyd@stupidchicken.com>
44
45 * xdisp.c (redisplay_window): After redisplay, check if point is
46 still valid before setting it (Bug#6177).
47
48 2010-05-27 Glenn Morris <rgm@gnu.org>
49
50 * Makefile.in, autodeps.mk, deps.mk, ns.mk:
51 Convert comments to Makefile format.
52
53 * Makefile.in (bootstrap-clean): No more Makefile.c.
54
55 2010-05-26 Glenn Morris <rgm@gnu.org>
56
57 * Makefile.in (YMF_PASS_LDFLAGS): Remove.
58 (temacs${EXEEXT}): Use PRE_EDIT_LDFLAGS, POST_EDIT_LDFLAGS.
59
60 * Makefile.in (NS_IMPL_GNUSTEP_INC, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
61 Remove.
62 (TEMACS_LDFLAGS): Do not use NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
63
64 2010-05-26 Kenichi Handa <handa@m17n.org>
65
66 * composite.c (composition_compute_stop_pos): Fix condition for
67 backward scanning.
68
69 2010-05-25 Glenn Morris <rgm@gnu.org>
70
71 * Makefile.in (@NS_IMPL_GNUSTEP_INC@, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
72 Move before TEMACS_LDFLAGS.
73 (TEMACS_LDFLAGS): Use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
74 (temacs${EXEEXT}): Do not use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
75
76 * Makefile.in (NOT_C_CODE): No longer define.
77 (config.h): No longer include.
78
79 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): Move definition after some
80 variables it may reference.
81
82 * Makefile.in (LD_SWITCH_SYSTEM_EXTRA): Remove.
83 (TEMACS_LDFLAGS): Remove LD_SWITCH_SYSTEM_EXTRA.
84
85 2010-05-25 Kenichi Handa <handa@m17n.org>
86
87 * dispextern.h (struct composition_it): New members rule_idx and
88 charpos.
89
90 * xdisp.c (set_iterator_to_next): While scanning backward, assume
91 that the character positions of IT point the last character of the
92 current grapheme cluster.
93 (next_element_from_composition): Don't change character positions
94 of IT.
95 (append_composite_glyph): Set glyph->charpos to
96 it->cmp_it.charpos.
97
98 * composite.c (autocmp_chars): Change the first argument to RULE,
99 and try composition with RULE only.
100 (composition_compute_stop_pos): Record the index number of the
101 composition rule in CMP_IT->rule_idx.
102 (composition_reseat_it): Call autocmp_chars repeatedly until the
103 correct rule of the composition is found.
104 (composition_update_it): Set CMP_IT->charpos. Assume the CHARPOS
105 is at the last character of the current grapheme cluster when
106 CMP_IT->reversed_p is nonzero.
107
108 2010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
109
110 * editfns.c (Fbyte_to_string): New function.
111
112 2010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
113
114 * process.c (Fmake_network_process): Set :host to nil if it's not used.
115 Suggested by Masatake YAMATO <yamato@redhat.com>.
116
117 2010-05-23 Eli Zaretskii <eliz@gnu.org>
118
119 * dispextern.h (init_iterator): Sync prototype with changed definition.
120
121 2010-05-19 Eli Zaretskii <eliz@gnu.org>
122
123 Redesign and reimplement bidi-aware edge positions of glyph rows.
124
125 * dispextern.h (struct glyph_row): New members minpos and maxpos.
126 (MATRIX_ROW_START_CHARPOS, MATRIX_ROW_START_BYTEPOS)
127 (MATRIX_ROW_END_CHARPOS, MATRIX_ROW_END_BYTEPOS): Reference minpos
128 and maxpos members instead of start.pos and end.pos, respectively.
129
130 * xdisp.c (display_line): Compare IT_CHARPOS with the position in
131 row->start.pos, rather than with MATRIX_ROW_START_CHARPOS.
132 (cursor_row_p): Use row->end.pos rather than MATRIX_ROW_END_CHARPOS.
133 (try_window_reusing_current_matrix, try_window_id):
134 Use ROW->minpos rather than ROW->start.pos.
135 (init_from_display_pos, init_iterator): Use EMACS_INT for
136 character and byte positions.
137 (find_row_edges): Rename from find_row_end. Accept additional
138 arguments for minimum and maximum buffer positions seen by
139 display_line for this row. Don't use iterator to find the
140 position following the maximum one; instead, increment the
141 position found by display_line directly. Fix logic; eol_pos
142 should be tested before the rest. Handle the case of characters
143 delivered from display vector (bug#6036). Fix tests related to
144 it->method. Handle the truncated_on_right_p rows.
145 (RECORD_MAX_MIN_POS): New macro.
146 (display_line): Use it to record the minimum and maximum buffer
147 positions for glyphs in the row being assembled. Record the
148 position of the newline that terminates the line. If word wrap is
149 in effect, restore minimum and maximum positions seen up to the
150 wrap point, when iterator returns to it.
151 (try_window_reusing_current_matrix): Give up if in bidi-reordered
152 row and cursor not already at point. Restore original pre-bidi
153 code for unidirectional buffers.
154
155 * dispnew.c (increment_row_positions, check_matrix_invariants):
156 Increment and check row->start.pos and row->end.pos, in addition
157 to MATRIX_ROW_START_CHARPOS and MATRIX_ROW_END_CHARPOS.
158
159 * .gdbinit (prowlims): Display row->minpos and row->maxpos.
160 Display truncated_on_left_p and truncated_on_right_p flags.
161 Formatting fixes.
162 (pmtxrows): Display the ordinal number of each row. Don't display
163 rows beyond the last one.
164
165 * bidi.c (bidi_cache_iterator_state): Don't zero out new_paragraph:
166 it is not copied by bidi_copy_it.
167
168 2010-05-22 Eli Zaretskii <eliz@gnu.org>
169
170 * w32.c (sys_write): Break writes into chunks smaller than 32MB.
171 (Bug#6237)
172
173 2010-05-22 Chong Yidong <cyd@stupidchicken.com>
174
175 * image.c (Fimage_flush): Rename from image-refresh.
176
177 2010-05-21 Chong Yidong <cyd@stupidchicken.com>
178
179 * xdisp.c (redisplay_internal): Clear caches even if redisplaying
180 just one window.
181
182 * image.c (Vimage_cache_eviction_delay): Decrease to 300.
183 (clear_image_cache): If the number of cached images is unusually
184 large, decrease the cache eviction delay (Bug#6230).
185
186 2010-05-21 Glenn Morris <rgm@gnu.org>
187
188 * Makefile.in (${ns_appdir}, ${ns_appbindir}Emacs, ns-app):
189 Move these rules to ns.mk.
190 * ns.mk: New file.
191
192 * Makefile.in (../src/$(OLDXMENU), $(OLDXMENU)): Always define rules.
193
194 * Makefile.in (CANNOT_DUMP): New, set by configure.
195 (emacs${EXEEXT}, bootstrap-emacs${EXEEXT}): Use $CANNOT_DUMP.
196
197 2010-05-20 Juri Linkov <juri@jurta.org>
198
199 * fileio.c (Fdelete_file): Change interative spec to use
200 `read-file-name' like in `find-file-read-args' where the default
201 value is `default-directory' instead of `buffer-file-name'.
202 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00533.html
203
204 2010-05-20 Kevin Ryde <user42@zip.com.au>
205
206 * keyboard.c (Vlast_command, Vkeyboard_translate_table)
207 (Voverriding_terminal_local_map, Vsystem_key_alist)
208 (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
209
210 2010-05-20 Glenn Morris <rgm@gnu.org>
211
212 * Makefile.in (DEPDIR): New constant.
213 (DEPFLAGS): Set with configure, not cpp.
214 (MKDEPDIR): New, set by configure.
215 (.c.o, .m.o, ecrt0.o): Use $MKDEPDIR.
216 (clean): Use $DEPDIR.
217 (deps_frag): Include from configure.
218 Move static/dynamic dependency stuff to deps.mk/autodeps.mk.
219 * deps.mk, autodeps.mk: New files, extracted from Makefile.in.
220
221 * bidi.c (bidi_cache_shrink, bidi_cache_iterator_state): Fix
222 reallocation of the cache. (Bug#6210)
223
224 2010-05-19 Glenn Morris <rgm@gnu.org>
225
226 * s/msdos.h (ORDINARY_LINK): Move to sed2v2.inp.
227
228 * Makefile.in (LD, YMF_PASS_LDFLAGS): Set with configure, not cpp.
229 (GNULIB_VAR): Remove.
230 (LIBES): Use LIB_GCC instead of GNULIB_VAR.
231
232 * m/ibms390x.h (LINKER):
233 * m/macppc.h (LINKER) [GNU_LINUX]:
234 * s/aix4-2.h (ORDINARY_LINK):
235 * s/cygwin.h (LINKER):
236 * s/darwin.h (ORDINARY_LINK):
237 * s/gnu.h (ORDINARY_LINK):
238 * s/netbsd.h (LINKER):
239 * s/usg5-4.h (ORDINARY_LINK):
240 Move to configure.
241
242 * s/aix4-2.h (LINKER): Remove; this file sets ORDINARY_LINK.
243
244 2010-05-18 Chong Yidong <cyd@stupidchicken.com>
245
246 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
247 prevent stack overflow if number of arguments is too large
248 (Bug#6214).
249
250 2010-05-18 Juanma Barranquero <lekktu@gmail.com>
251
252 * charset.c (load_charset_map_from_file): Don't call close after fclose.
253
254 2010-05-18 Glenn Morris <rgm@gnu.org>
255
256 * s/gnu-linux.h: Combine two conditionals.
257
258 * Makefile.in (otherobj): Include $(VMLIMIT_OBJ) separately from
259 $(POST_ALLOC_OBJ).
260
261 * Makefile.in (RALLOC_OBJ): New, set by configure.
262 (rallocobj): Replace with the previous variable.
263 (otherobj): Use $RALLOC_OBJ.
264
265 * s/gnu.h (REL_ALLOC) [DOUG_LEA_MALLOC]:
266 * s/gnu-linux.h (REL_ALLOC) [DOUG_LEA_MALLOC]: Move undef to configure.
267
268 * Makefile.in (GMALLOC_OBJ, VMLIMIT_OBJ): New, set by configure.
269 (gmallocobj, vmlimitobj): Replace with previous two variables.
270 (otherobj): Use $GMALLOC_OBJ, $VMLIMIT_OBJ.
271
272 2010-05-17 Glenn Morris <rgm@gnu.org>
273
274 * Makefile.in (OLDXMENU_DEPS): New, set by configure.
275 (stamp-oldxmenu): Use $OLDXMENU_DEPS.
276
277 2010-05-16 Glenn Morris <rgm@gnu.org>
278
279 * Makefile.in (${ns_appbindir}Emacs, ns-app): Always define these rules.
280
281 * Makefile.in (clean): Get rid of HAVE_NS conditional.
282
283 * Makefile.in (ns_appdir, ns_appbindir): Now configure adds the
284 trailing "/".
285
286 * Makefile.in (TEMACS_LDFLAGS2): New, set by configure.
287 (temacs${EXEEXT}): Combine the NS_IMPL_GNUSTEP case with the default.
288
289 * Makefile.in (GNUSTEP_SYSTEM_LIBRARIES): Remove, unused.
290 (NS_IMPL_GNUSTEP_TEMACS_LDFLAGS): New, set by configure.
291 (LD) [NS_IMPL_GNUSTEP]: Set to $(CC) -rdynamic.
292 (temacs${EXEEXT}): Remove $LOCALCPP, never defined or referenced.
293 Make most of the NS_IMPL_GNUSTEP case the same as the default case.
294
295 * Makefile.in (temacs${EXEEXT}) [!NS_IMPL_GNUSTEP]:
296 Remove ${STARTFLAGS}, nothing ever sets it.
297
298 2010-05-16 Dan Nicolaescu <dann@ics.uci.edu>
299
300 * m/ia64.h (UNEXEC): Remove, set in s/*.h.
301
302 2010-05-16 Glenn Morris <rgm@gnu.org>
303
304 * Makefile.in (LIBX_BASE): Always define.
305
306 * Makefile.in (LIBX_OTHER): Move out of cpp section.
307
308 * Makefile.in (LIBXT): Always define.
309
310 2010-05-15 Glenn Morris <rgm@gnu.org>
311
312 * Makefile.in (OLDXMENU, LIBXMENU, LIBX_OTHER): Always define.
313
314 * Makefile.in (FONT_DRIVERS): Remove, replace with $FONT_OBJ.
315 (obj, SOME_MACHINE_OBJECTS): Use $FONT_OBJ.
316
317 2010-05-15 Ken Raeburn <raeburn@raeburn.org>
318
319 * lisp.h (XFLOAT_DATA): Use "0?x:x" to generate an rvalue. (Bug#5916)
320 (LISP_MAKE_RVALUE) [!USE_LISP_UNION_TYPE && !__GNUC__]: Likewise.
321
322 * emacs.c (main): Initialize initial-environment and
323 process-environment before generating from env, not after.
324
325 Handle --version reasonably in CANNOT_DUMP configuration.
326 * emacs.c (emacs_version, emacs_copyright): New string variables.
327 (Vemacs_version, Vemacs_copyright): New Lisp_Object variables.
328 (syms_of_emacs): Defvar them, and initialize them from the C
329 string variables.
330 (main): If initialization hasn't been done, print initial version
331 info from the C strings, instead of starting an interactive session.
332
333 2010-05-15 Eli Zaretskii <eliz@gnu.org>
334
335 * bidi.c (bidi_paragraph_init): Don't leave alone garbage values
336 of bidi_it->paragraph_dir. Call bidi_initialize if needed.
337 (bidi_paragraph_init): Remove redundant assertion that we are at
338 the beginning of a line after call to bidi_find_paragraph_start.
339
340 * xdisp.c (Fcurrent_bidi_paragraph_direction): New function.
341 (syms_of_xdisp): Defsubr it.
342
343 * cmds.c (Fforward_char, Fbackward_char): Doc fix.
344
345 * Makefile.in: Fix MSDOS-related comments.
346
347 2010-05-15 Glenn Morris <rgm@gnu.org>
348
349 * Makefile.in (OLDXMENU_TARGET): New, set by configure.
350 (really-lwlib, really-oldXMenu): Always define.
351 ($OLDXMENU): Depend on $OLDXMENU_TARGET.
352
353 * Makefile.in: Simplify cpp conditional.
354
355 * Makefile.in (${ns_appdir}): Simplify using umask.
356
357 * Makefile.in (${ns_appdir}): Remove references to CVS-related files.
358
359 2010-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
360
361 * eval.c (specbind): Remove left-over duplicate test.
362 Disallow let-binding frame-local vars. Add comment.
363
364 2010-05-14 Eli Zaretskii <eliz@gnu.org>
365
366 Make the cache of bidi iterator states dynamically allocated.
367 * bidi.c (bidi_cache_shrink): New function.
368 (bidi_init_it): Call it.
369 (bidi_cache_iterator_state): Enlarge the cache if needed.
370
371 * bidi.c (bidi_move_to_visually_next): Rename from
372 bidi_get_next_char_visually. All callers changed.
373
374 2010-05-14 Kenichi Handa <handa@m17n.org>
375
376 * dispextern.h (struct composition_it): New member reversed_p.
377
378 * composite.c (composition_compute_stop_pos): Search backward if
379 ENDPOS < CHARPOS.
380 (composition_reseat_it): Handle the case that ENDPOS < CHARPOS.
381 Set CMP_IT->reversed_p.
382 (composition_update_it): Pay attention to CMP_IT->reversed_p.
383
384 * xdisp.c (set_iterator_to_next):
385 Call composition_compute_stop_pos with negative ENDPOS if we are
386 scanning backward. Call composition_compute_stop_pos if scan
387 direction is changed.
388 (next_element_from_buffer): Call composition_compute_stop_pos with
389 negative ENDPOS if we are scanning backward.
390 (next_element_from_composition): Pay attention to
391 IT->cmp_it.reversed_p.
392
393 2010-05-14 Kenichi Handa <handa@m17n.org>
394
395 * font.c (font_range): Return the range for the font found at first.
396
397 2010-05-14 Glenn Morris <rgm@gnu.org>
398
399 * Makefile.in (ns_appdir, ns_appbindir, ns_appsrc): Always define.
400
401 * Makefile.in (mktime, X11, register): Move undefs to configure.
402
403 * Makefile.in (MSDOS_OBJ): Default to empty, let msdos scripts set it.
404 (MSDOS_X_OBJ): New variable.
405 (MSDOS_SUPPORT_REAL): New constant.
406 (MSDOS_SUPPORT): Set as a variable, not with cpp.
407 (obj): Use MSDOS_X_OBJ.
408 (lisp): Use MSDOS_SUPPORT as a variable.
409
410 * Makefile.in (REAL_MOUSE_SUPPORT): New constant.
411 (GPM_MOUSE_SUPPORT): Now it's a constant.
412 (MOUSE_SUPPORT, TOOLTIP_SUPPORT, WINDOW_SUPPORT): Set with configure,
413 not cpp.
414
415 * Makefile.in (@NS_IMPL_GNUSTEP_INC@): Use in place of #ifdef.
416 (ns_appresdir): Remove, unused.
417
418 * Makefile.in (SHELL): Move outside cpp section.
419
420 * s/netbsd.h (AMPERSAND_FULL_NAME): Remove (defined in AH_BOTTOM).
421
422 2010-05-13 Glenn Morris <rgm@gnu.org>
423
424 * Makefile.in (FONT_DRIVERS): Place with other HAVE_X_WINDOWS stuff.
425 (TOOLTIP_SUPPORT): Place with other HAVE_WINDOW_SYSTEM stuff.
426
427 * Makefile.in (FONT_DRIVERS): If HAVE_X_WINDOWS is defined,
428 HAVE_WINDOW_SYSTEM must be too.
429
430 * Makefile.in (WINNT_SUPPORT): Remove, nt build does not use this file.
431 (lisp): Remove WINNT_SUPPORT.
432
433 * Makefile.in (OLDXMENU, LIBXMENU) [!HAVE_MENUS]:
434 Let configure set these variables (to empty) in this case as well.
435
436 * Makefile.in (LD_SWITCH_X_SITE): Define as a variable, not via cpp.
437 (LIBX_BASE): Use $LD_SWITCH_X_SITE.
438
439 * Makefile.in (C_SWITCH_X_SYSTEM, C_SWITCH_X_SITE, LIB_STANDARD)
440 (LIB_MATH, FONTCONFIG_CFLAGS, FONTCONFIG_LIBS, FREETYPE_CFLAGS)
441 (FREETYPE_LIBS, LIBOTF_CFLAGS, LIBOTF_LIBS, M17N_FLT_CFLAGS)
442 (M17N_FLT_LIBS, GNU_OBJC_CFLAGS, GNUSTEP_SYSTEM_LIBRARIES, LIBGPM)
443 (LIBRESOLV, UNEXEC_OBJ): For clarity, define variables to hold
444 the values output by configure.
445 (ALL_CFLAGS, obj, LIBES, temacs${EXEEXT}): Use the above variables.
446
447 2010-05-12 Glenn Morris <rgm@gnu.org>
448
449 * Makefile.in (YMF_PASS_LDFLAGS, LD, LINKER): Simplify the logic.
450 (LINKER_WAS_SPECIFIED): Remove.
451
452 * Makefile.in (LIB_GCC): Set using configure, not cpp.
453 (GNULIB_VAR) [!ORDINARY_LINK]: Always set to $LIB_GCC.
454 * m/arm.h (LIB_GCC) [GNU_LINUX]:
455 * s/cygwin.h (LIB_GCC):
456 * s/freebsd.h (LIB_GCC):
457 * s/gnu-linux.h (LIB_GCC):
458 * s/msdos.h (LIB_GCC):
459 * s/netbsd.h (LIB_GCC):
460 Move to configure.
461
462 2010-05-11 Karel Klic <kklic@redhat.com>
463
464 * ftfont.c: Fix incorrect parentheses of #if condition for
465 definining M17N_FLT_USE_NEW_FEATURE.
466
467 2010-05-11 Glenn Morris <rgm@gnu.org>
468
469 * Makefile.in (LIBS_SYSTEM) [MSDOS]: Do not reset.
470 * s/msdos.h (MSDOS_LIBS_SYSTEM): Remove.
471
472 2010-05-10 Eli Zaretskii <eliz@gnu.org>
473
474 * xdisp.c (init_iterator): Don't turn on bidi reordering in
475 unibyte buffers. See
476 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00263.html.
477
478 2010-05-10 Glenn Morris <rgm@gnu.org>
479
480 * Makefile.in (LIBS_SYSTEM): Set using configure, not cpp.
481 (LIBS_SYSTEM) [MSDOS]: Reset with MSDOS_LIBS_SYSTEM.
482 (LIBES): Use LIBS_SYSTEM as a variable.
483 * s/msdos.h (LIBS_SYSTEM): Rename to MSDOS_LIBS_SYSTEM. Always define.
484 * s/aix4-2.h (LIBS_SYSTEM):
485 * s/freebsd.h (LIBS_SYSTEM):
486 * s/hpux10-20.h (LIBS_SYSTEM):
487 * s/sol2-6.h (LIBS_SYSTEM):
488 * s/unixware.h (LIBS_SYSTEM):
489 Move to configure.
490
491 * s/aix4-2.h (MAIL_USE_LOCKF):
492 * s/bsd-common.h (MAIL_USE_FLOCK):
493 * s/darwin.h (MAIL_USE_FLOCK):
494 * s/gnu-linux.h (MAIL_USE_FLOCK):
495 * s/irix6-5.h (MAIL_USE_FLOCK):
496 * s/template.h (MAIL_USE_FLOCK):
497 Move to configure.
498
499 2010-05-08 Chong Yidong <cyd@stupidchicken.com>
500
501 * Version 23.2 released.
502
503 2010-05-08 Andreas Schwab <schwab@linux-m68k.org>
504
505 * composite.c (autocmp_chars): Save point as marker before calling
506 auto-composition-function (Bug#5984).
507
508 * lisp.h (restore_point_unwind): Add prototype.
509
510 * fileio.c (restore_point_unwind): Remove static attribute.
511
512 2010-05-08 Kenichi Handa <handa@m17n.org>
513
514 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
515 new feature of libotf and m17n-flt.
516 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
517 Call OTF_check_features even if no specific feature is given.
518 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
519 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
520 that OUT is NULL. Use OTF_drive_gsub_with_log and
521 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
522 OTF_drive_gpos.
523 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
524 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
525 Setup mflt_enable_new_feature and mflt_try_otf.
526
527 2010-05-08 Jan Djärv <jan.h.d@swipnet.se>
528
529 * xsettings.c (Ftool_bar_get_system_style): Correct comment.
530
531 * gtkutil.c (xg_pack_tool_bar): Change show_all to show for handle
532 box and toolbar (Bug #6139).
533 (xg_create_tool_bar): Remove comment (Bug #6139).
534 (xg_make_tool_item): Remove gtk_widget_show_all (Bug #6139).
535 (xg_show_toolbar_item): Add gtk_widget_show for weventbox (Bug #6139).
536
537 2010-05-08 Juanma Barranquero <lekktu@gmail.com>
538
539 * makefile.w32-in ($(BLD)/eval.$(O), $(BLD)/w32fns.$(O)):
540 Update dependencies.
541
542 2010-05-08 Eli Zaretskii <eliz@gnu.org>
543
544 * fringe.c (update_window_fringes): Set up truncation bitmaps for
545 R2L lines.
546
547 2010-05-08 Glenn Morris <rgm@gnu.org>
548
549 * Makefile.in (THIS_IS_MAKEFILE): Remove, unused.
550
551 * Makefile.in (LIBS_TERMCAP): Set with configure, not cpp.
552 (TERMCAP_OBJ): New, set by configure, replacing termcapobj.
553 (termcapobj): Replace with TERMCAP_OBJ.
554 (otherobj): Use $TERMCAP_OBJ instead of $termcapobj.
555 (LIBES): Use LIBS_TERMCAP as a variable.
556
557 * s/freebsd.h (osreldate.h): No longer include, since this file
558 does not use __FreeBSD_version any more.
559
560 * s/aix4-2.h (TERMINFO):
561 * s/cygwin.h (TERMINFO):
562 * s/darwin.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
563 * s/freebsd.h (TERMINFO, LIBS_TERMCAP):
564 * s/gnu-linux.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
565 * s/gnu.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
566 * s/hpux10-20.h (TERMINFO, LIBS_TERMCAP):
567 * s/irix6-5.h (TERMINFO):
568 * s/netbsd.h (LIBS_TERMCAP):
569 * s/openbsd.h (TERMINFO, LIBS_TERMCAP):
570 * s/sol2-6.h (LIBS_TERMCAP) [!TERMINFO]:
571 * s/usg5-4.h (TERMINFO):
572 Move to configure.
573
574 2010-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
575
576 * eval.c (unbind_to): Don't unbind a local binding into the global
577 binding when the local binding disappeared. Inversely, don't unbind
578 a global binding into a newly created local binding.
579 * data.c (set_internal): Make its `buf' arg into a `where' arg so we
580 can specify the frame to use, when applicable. Adjust callers.
581
582 2010-05-07 Vincent Belaïche <vincent.belaiche@gmail.com>
583 Stefan Monnier <monnier@iro.umontreal.ca>
584
585 * floatfns.c (Fisnan, Fcopysign, Ffrexp, Fldexp): New functions.
586
587 2010-05-07 Eli Zaretskii <eliz@gnu.org>
588
589 * w32fns.c: Include w32.h.
590 (Fw32_shell_execute): Decode the error message before passing it
591 to `error'. (Bug#6126)
592
593 * msdos.c (dos_set_window_size):
594 * w16select.c (Fx_selection_exists_p): Use `Fsymbol_value (foo)'
595 instead of `XSYMBOL (foo)->value'.
596
597 2010-05-07 Eli Zaretskii <eliz@gnu.org>
598
599 Fix the MS-DOS build, broken by autoconfiscation.
600
601 * Makefile.in: Don't use Make-style comments past the "start of
602 cpp stuff" line.
603 (MSDOS_OBJ): Remove xmenu.o (it is now defined by XMENU_OBJ).
604
605 * s/msdos.h (UNEXEC): Don't define (@unexec@ in Makefile.in is
606 edited directly by msdos/sed1v2.inp).
607
608 2010-05-07 Glenn Morris <rgm@gnu.org>
609
610 * Makefile.in (LD_SWITCH_SYSTEM): Set with configure, not cpp.
611 (LD_SWITCH_SYSTEM_EXTRA): New variable, set by configure.
612 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM and $LD_SWITCH_SYSTEM_EXTRA,
613 move out of cpp section.
614 * s/freebsd.h (LD_SWITCH_SYSTEM):
615 * s/gnu-linux.h (LD_SWITCH_SYSTEM):
616 * s/netbsd.h (LD_SWITCH_SYSTEM):
617 * s/openbsd.h (LD_SWITCH_SYSTEM): Move to configure.in.
618
619 2010-05-07 Dan Nicolaescu <dann@ics.uci.edu>
620
621 Define LIB_STANDARD and START_FILES using autoconf.
622 * s/usg5-4.h (LIB_STANDARD):
623 * s/netbsd.h (START_FILES):
624 * s/irix6-5.h (LIB_STANDARD):
625 * s/hpux10-20.h (LIB_STANDARD, START_FILES):
626 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
627 * s/freebsd.h (START_FILES):
628 * s/darwin.h (START_FILES):
629 * s/cygwin.h (START_FILES):
630 * s/aix4-2.h (LIB_STANDARD):
631 * m/ibmrs6000.h (START_FILES): Remove, move logic to configure.in.
632 * Makefile.in (STARTFILES): Rename to START_FILES, define using
633 autoconf, not cpp.
634
635 2010-05-06 Dan Nicolaescu <dann@ics.uci.edu>
636
637 Remove NEED_BSDTTY and NEED_UNISTD_H.
638 * s/hpux10-20.h (NEED_BSDTTY): Remove.
639 * s/aix4-2.h (NEED_UNISTD_H): Remove.
640 * systty.h: Simplify conditionals for including <sys/bsdtty.h>,
641 <sys/ptyio.h> and <unistd.h>.
642
643 * emacs.c (main): Remove NO_DIR_LIBRARY conditional, unused.
644
645 * Makefile.in (STARTFILES): Conditionally define to make the usage clear.
646 * s/gnu.h (START_FILES): Remove empty definition.
647
648 2010-05-06 Jan Djärv <jan.h.d@swipnet.se>
649
650 * xterm.c (x_draw_image_relief): Move declaration of extra to beginning.
651
652 2010-05-06 Glenn Morris <rgm@gnu.org>
653
654 * Makefile.in (CPP, LN_S): Remove unused variables.
655
656 2010-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
657
658 * syntax.c (Fchar_syntax): Check the arg is a character (bug#6080).
659
660 2010-05-05 Lawrence Mitchell <wence@gmx.li>
661
662 * m/sparc.h: Fix typo in earlier change.
663
664 2010-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
665
666 Misc tweaks.
667 * eval.c (Fdefvaralias): Remove unintended nested if.
668 (internal_condition_case_2, internal_condition_case_n): Use ANSI type.
669
670 2010-05-04 Bernhard Herzog <bh@intevation.de> (tiny change)
671
672 * xsmfns.c (smc_save_yourself_CB): strlen(client_id) => strlen(cwd).
673
674 2010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
675
676 Remove BSD_PGRPS.
677 * s/bsd-common.h (BSD_PGRPS): Remove undef.
678 * s/gnu-linux.h (BSD_PGRPS): Remove.
679 * term.c (dissociate_if_controlling_tty):
680 * sysdep.c (narrow_foreground_group, widen_foreground_group)
681 (init_sys_modes, reset_sys_modes):
682 * emacs.c (main):
683 * callproc.c (Fcall_process, child_setup): Remove code depending
684 on BSD_PGRPS.
685
686 Remove POSIX_SIGNALS.
687 * s/usg5-4.h (POSIX_SIGNALS):
688 * s/netbsd.h (POSIX_SIGNALS):
689 * s/msdos.h (POSIX_SIGNALS):
690 * s/ms-w32.h (POSIX_SIGNALS):
691 * s/hpux11.h (POSIX_SIGNALS):
692 * s/gnu.h (POSIX_SIGNALS):
693 * s/gnu-linux.h (POSIX_SIGNALS):
694 * s/freebsd.h (POSIX_SIGNALS):
695 * s/darwin.h (POSIX_SIGNALS):
696 * s/cygwin.h (POSIX_SIGNALS):
697 * s/aix4-2.h (POSIX_SIGNALS): Remove definition.
698 * s/unixware.h:
699 * s/sol2-6.h: Remove comments on POSIX_SIGNALS.
700 * process.c (create_process):
701 * syssignal.h:
702 * sysdep.c (wait_for_termination, init_signals):
703 * process.c (create_process):
704 * msdos.c: POSIX_SIGNALS is always defined on all platforms,
705 remove all code that assumes the contrary.
706
707 2010-05-04 Glenn Morris <rgm@gnu.org>
708
709 * s/gnu-linux.h (LD_SWITCH_SYSTEM): Use LD_SWITCH_X_SITE_AUX as a shell
710 variable.
711 * s/netbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
712 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH.
713 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
714 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH instead of
715 LD_SWITCH_SYSTEM_tmp.
716 * Makefile.in (LD_SWITCH_X_SITE_AUX, LD_SWITCH_X_SITE_AUX_RPATH):
717 New variables, set by configure.
718
719 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
720 * s/darwin.h (HEADERPAD_EXTRA, LIBS_NSGUI): Remove.
721 (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
722 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): New variable, set by configure.
723 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM_TEMACS.
724
725 * s/aix4-2.h (C_SWITCH_SYSTEM):
726 * m/alpha.h (C_SWITCH_MACHINE):
727 Move to configure.in.
728 * Makefile.in (C_SWITCH_MACHINE, C_SWITCH_SYSTEM):
729 New variables, set by configure.
730 (ALL_CFLAGS): Use $C_SWITCH_MACHINE and $C_SWITCH_SYSTEM in place of
731 $c_switch_machine and $c_switch_system.
732
733 2010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
734
735 * s/hpux10-20.h (LIB_STANDARD): New definition.
736 * Makefile.in (ORDINARY_LINK): Remove setting LIB_STANDARD based
737 on it, not used anymore.
738
739 2010-05-03 Chong Yidong <cyd@stupidchicken.com>
740
741 * eval.c (internal_condition_case_n): Rename from
742 internal_condition_case_2.
743 (internal_condition_case_2): New function.
744
745 * xdisp.c (safe_call): Use internal_condition_case_n.
746
747 * fileio.c (Fdelete_file, internal_delete_file): New arg FORCE.
748 (internal_delete_file, Frename_file): Callers changed.
749
750 * buffer.c (Fkill_buffer):
751 * callproc.c (delete_temp_file): Callers changed (Bug#6070).
752
753 * lisp.h: Update prototypes.
754
755 2010-05-03 Glenn Morris <rgm@gnu.org>
756
757 * Makefile.in (LIBX_EXTRA, LIBX_BASE): New variables.
758 (LIBXT_OTHER, LIBX_OTHER): New, set by configure.
759 (LIBXT): Set with configure, not cpp.
760 (LIBX): Remove.
761 (LIBES): Replace $LIBX with $LIBX_BASE and $LIBX_OTHER.
762
763 2010-05-02 Dan Nicolaescu <dann@ics.uci.edu>
764
765 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Remove.
766 The FreeBSD is not needed, the default works, Solaris version is
767 not needed, and the remaining case is not supported by configure.
768
769 2010-05-02 Jan Djärv <jan.h.d@swipnet.se>
770
771 * xsmfns.c (CHDIR_OPT): New define.
772 (smc_save_yourself_CB): Add CHDIR_OPT to options to use when
773 restarting emacs.
774
775 * xterm.c (x_connection_closed): Call Fkill_emacs instead of
776 shut_down_emacs.
777
778 * emacs.c (USAGE1): Mention --chdir.
779 (main): Handle --chdir.
780 (standard_args): Add --chdir.
781 (fatal_error_signal): Call Fkill_emacs for SIGTERM and SIGHUP (Bug
782 #5552).
783
784 2010-05-01 Dan Nicolaescu <dann@ics.uci.edu>
785
786 Remove LD_SWITCH_MACHINE.
787 * Makefile.in (LD_SWITCH_MACHINE): Remove definition, unused.
788 (TEMACS_LDFLAGS): Do not use LD_SWITCH_MACHINE.
789
790 Clean up IRIX code.
791 * m/iris4d.h (TERMINFO, FIRST_PTY_LETTER): Move definitions ...
792 * s/irix6-5.h (TERMINFO, FIRST_PTY_LETTER): ... here.
793
794 Clean up AIX code.
795 * m/ibmrs6000.inp: Remove file, unused.
796 * m/ibmrs6000.h (IBMR2AIX): Remove, unused.
797 (LD_SWITCH_MACHINE): Rename to LD_SWITCH_SYSTEM_TEMACS, and move
798 definition ...
799 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): ... here.
800
801 * sysdep.c (child_setup_tty, init_sys_modes): Remove !IBMR2AIX code,
802 unused.
803
804 2010-05-01 Eli Zaretskii <eliz@gnu.org>
805
806 Emulate POSIX_SIGNALS on MS-Windows.
807
808 * s/ms-w32.h (POSIX_SIGNALS, struct sigaction, SIG_BLOCK)
809 (SIG_SETMASK, SIG_UNBLOCK): Define.
810
811 * sysdep.c (sys_signal) [WINDOWSNT]: #ifdef away.
812 (wait_for_termination) [WINDOWSNT]: Move MS-Windows specific code
813 from non-POSIX_SIGNALS section to POSIX_SIGNALS section.
814
815 * w32.c (sigemptyset, sigaddset, sigfillset, sigprocmask):
816 New stubs.
817
818 Miscellaneous fixes of bidi display.
819
820 * xdisp.c (find_row_end): New function, refactored from display_line.
821 (display_line): Use it.
822 (extend_face_to_end_of_line): In almost-filled rows, extend only
823 if the row is R2L and not continued.
824 (display_line): Fix prepending of truncation glyphs to R2L rows.
825 Preserve overlay and string info in row->end.
826 (insert_left_trunc_glyphs): Support addition of left truncation
827 glyphs to R2L rows.
828 (set_cursor_from_row): Don't place cursor on the vertical border
829 glyph between adjacent windows. Fix a crash when a display string
830 is continued to the next line. Don't return zero if cursor was
831 found by `cursor' property of a display string.
832 (try_cursor_movement): Don't assume that row->end == (row+1)->start,
833 test for that explicitly.
834
835 2010-05-01 Glenn Morris <rgm@gnu.org>
836
837 * Makefile.in (gmallocobj, rallocobj, vmlimitobj): Initialize to null,
838 for clarity.
839 (OTHER_OBJ): Remove.
840 (PRE_ALLOC_OBJ, POST_ALLOC_OBJ): New, set by configure.
841 (otherobj): Use PRE_ALLOC_OBJ, POST_ALLOC_OBJ rather than OTHER_OBJ.
842
843 2010-05-01 Karel Klíč <kklic@redhat.com>
844
845 * fileio.c (Ffile_selinux_context): Context functions may return null.
846
847 2010-04-30 Dan Nicolaescu <dann@ics.uci.edu>
848
849 * s/gnu.h (POSIX_SIGNALS, START_FILES): New definitions.
850
851 2010-04-30 Glenn Morris <rgm@gnu.org>
852
853 * Makefile.in (vmlimitobj) [!SYSTEM_MALLOC]: New variable. (Bug#6065)
854 (OTHER_OBJ): Define as a separate variable, for clarity.
855
856 2010-04-30 Jan Djärv <jan.h.d@swipnet.se>
857
858 * xsettings.c: include limits.h and update file comment.
859
860 2010-04-30 Glenn Morris <rgm@gnu.org>
861
862 * Makefile.in (OLDXMENU, LIBXMENU) [HAVE_MENUS]:
863 Set with configure, not cpp.
864 (LIBW): Remove, replace with $TOOLKIT_LIBW.
865
866 * Makefile.in (mallocobj): Remove.
867 (otherobj): Simplify using @OTHER_OBJ@.
868
869 * Makefile.in (dispnew.o, frame.o, fringe.o, font.o, fontset.o)
870 (keyboard.o, window.o, xdisp.o, xfaces.o, menu.o):
871 Don't bother making nsgui.h dependency platform-specific.
872
873 * Makefile.in (nsfns.o): Remove duplicate nsgui.h dependency.
874
875 2010-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
876
877 * process.c (read_process_output, exec_sentinel): Don't burp if the
878 sentinel/filter kills the current buffer (bug#6060).
879
880 Fix wrong-docstring problem introduced with hash-consing. (Bug#6008)
881 * eval.c (Fautoload): Set doc to a unique number rather than to 0.
882 Remove unused var `args'.
883 * lisp.h (XSETCARFASTINT, XSETCDRFASTINT): Remove.
884 (LOADHIST_ATTACH): Wrap with do...while to avoid surprises for callers.
885 * doc.c (store_function_docstring): Use XSETCAR.
886
887 2010-04-28 Glenn Morris <rgm@gnu.org>
888
889 * Makefile.in (BASE_WINDOW_SUPPORT, X_WINDOW_SUPPORT): New variables.
890 (WINDOW_SUPPORT) [HAVE_WINDOW_SYSTEM]: Use them.
891
892 * Makefile.in (CYGWIN_OBJ): Set with configure, not cpp.
893
894 * Makefile.in (GPM_MOUSE_SUPPORT): New, set by configure.
895 (MOUSE_SUPPORT) [!HAVE_MOUSE]: Use $GPM_MOUSE_SUPPORT.
896
897 * Makefile.in (FONT_OBJ): New, set by configure.
898 (FONT_DRIVERS): Use $FONT_OBJ.
899
900 * Makefile.in (LIBXMU): Set with configure, not cpp.
901 * s/aix4-2.h (LIBXMU):
902 * s/hpux10-20.h (LIBXMU):
903 Remove definition, now set in configure.
904
905 * Makefile.in (NS_OBJ, NS_SUPPORT): Set with configure, not cpp.
906
907 * m/amdx86-64.h [i386]: Move this test to configure.in.
908
909 2010-04-27 Glenn Morris <rgm@gnu.org>
910
911 * Makefile.in (LIBXTR6): Set with configure, not cpp.
912 * s/unixware.h (NEED_LIBW): Remove definition.
913
914 * Makefile.in (LUCID_LIBW, MOTIF_LIBW): Remove, replacing by...
915 (TOOLKIT_LIBW): New, set by configure.
916 (@X_TOOLKIT_TYPE@): No longer define it.
917
918 * Makefile.in (LIBXP): Remove, since included in MOTIF_LIBW.
919 (MOTIF_LIBW): Set with configure, not cpp.
920 * s/aix4-2.h (LIB_MOTIF):
921 * s/gnu-linux.h (LIB_MOTIF):
922 * s/unixware.h (LIB_MOTIF): Move to configure.in.
923
924 2010-04-27 Dan Nicolaescu <dann@ics.uci.edu>
925
926 Reduce CPP usage.
927 * Makefile.in (LIB_X11_LIB): Remove, inline in the only user.
928 (obj): Use autoconf for unexec instead of cpp.
929 (C_SWITCH_SYSTEM, C_SWITCH_MACHINE, C_SWITCH_X_SITE): Remove
930 definitions and undefs. Inline definitions in the only user.
931 (ALL_CFLAGS): Substitute C_SWITCH_X_SYSTEM using autoconf.
932
933 2010-04-27 Glenn Morris <rgm@gnu.org>
934
935 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Change the logic around,
936 since the defaults (set by the system file) are fine in most cases.
937 [GNU_LINUX, __OpenBSD__, __NetBSD__, __APPLE__]: Remove sections.
938 * m/ibms390x.h (START_FILES, LIB_STANDARD):
939 * m/macppc.h (START_FILES, LIB_STANDARD) [GNU_LINUX]:
940 * m/sparc.h (START_FILES, LIB_STANDARD) [__linux__]:
941 Remove definitions, since they are set correctly in s/gnu-linux.h.
942 * s/freebsd.h (START_FILES, LIB_STANDARD):
943 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
944 * s/hpux10-20.h (START_FILES):
945 * s/netbsd.h (START_FILES, LIB_STANDARD, START_FILES_1, END_FILES_1):
946 Use $CRT_DIR in place of fixed /usr/lib, /lib directories.
947
948 * Makefile.in (LIBXP, LUCID_LIBW, WIDGET_OBJ): Set via configure.
949 (MOTIF_LIBW): Use $LIBXP.
950 (otherobj): Use $WIDGET_OBJ.
951
952 2010-04-26 Dan Nicolaescu <dann@ics.uci.edu>
953
954 * Makefile.in (LIBS_MACHINE): Remove, unused.
955
956 Use autoconf instead of cpp for LIB_MATH.
957 * s/darwin.h (LIB_MATH): Do not define here, move to configure.
958 * s/cygwin.h (LIB_MATH): Likewise.
959 * Makefile.in (LIB_MATH): Do not define with cpp.
960 (LIBES): Use autoconf for LIB_MATH.
961
962 2010-04-26 Kenichi Handa <handa@m17n.org>
963
964 * composite.c (Ffind_composition_internal): Fix the return value
965 for an automatic composition.
966
967 2010-04-25 Dan Nicolaescu <dann@ics.uci.edu>
968
969 Remove all NO_ARG_ARRAY uses.
970 * fns.c (concat2, concat3, nconc2):
971 * eval.c (apply1, call1, call2, call3, call4, call5, call6)
972 (call7): Remove NO_ARG_ARRAY usage, assume it's always true.
973 * m/xtensa.h (NO_ARG_ARRAY):
974 * m/template.h (NO_ARG_ARRAY):
975 * m/sparc.h (NO_ARG_ARRAY):
976 * m/sh3.h (NO_ARG_ARRAY):
977 * m/mips.h (NO_ARG_ARRAY):
978 * m/macppc.h (NO_ARG_ARRAY):
979 * m/iris4d.h (NO_ARG_ARRAY):
980 * m/intel386.h (NO_ARG_ARRAY):
981 * m/ibms390x.h (NO_ARG_ARRAY):
982 * m/ibms390.h (NO_ARG_ARRAY):
983 * m/ibmrs6000.h (NO_ARG_ARRAY):
984 * m/ia64.h (NO_ARG_ARRAY):
985 * m/hp800.h (NO_ARG_ARRAY):
986 * m/arm.h (NO_ARG_ARRAY):
987 * m/amdx86-64.h (NO_ARG_ARRAY):
988 * m/alpha.h (NO_ARG_ARRAY): Remove definition.
989
990 2010-04-25 Eli Zaretskii <eliz@gnu.org>
991
992 * xdisp.c (display_line): Don't assume 2nd call to
993 get_next_display_element cannot return zero. (Bug#6030)
994 (iterate_out_of_display_property): New function, body from pop_it.
995 (pop_it): Use it.
996
997 2010-04-24 Glenn Morris <rgm@gnu.org>
998
999 * m/amdx86-64.h (START_FILES, LIB_STANDARD) [__OpenBSD__]:
1000 For clarity, revert to using fixed /usr/lib rather than $CRT_DIR.
1001 (START_FILES, LIB_STANDARD) [__FreeBSD__]: Merge into the generic case,
1002 since CRT_DIR defaults to /usr/lib. Suggested by Dan Nicolaescu.
1003
1004 2010-04-24 Eli Zaretskii <eliz@gnu.org>
1005
1006 * xdisp.c (display_line): Use `reseat' instead of `reseat_1', and
1007 use `get_next_display_element' and `set_iterator_to_next' to
1008 advance to the next character, when looking for the character that
1009 begins the next row.
1010
1011 * .gdbinit: Add a "set Fmake_symbol" line to force GDB to load the
1012 definition of "struct Lisp_Symbol".
1013
1014 2010-04-24 Glenn Morris <rgm@gnu.org>
1015
1016 * Makefile.in (CRT_DIR): New variable, set by configure.
1017 * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
1018 Use $CRT_DIR rather than HAVE_LIB64_DIR. (Bug#5655)
1019
1020 2010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
1021
1022 * Makefile.in: Remove C_SWITCH_X_MACHINE, unused.
1023
1024 * s/cygwin.h (LIBS_DEBUG): Remove, unused.
1025
1026 Remove redundant flags.
1027 * s/freebsd.h (C_SWITCH_SYSTEM):
1028 * s/hpux10-20.h (C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
1029 * s/netbsd.h (C_SWITCH_SYSTEM):
1030 * s/openbsd.h (LD_SWITCH_X_DEFAULT): Remove, configure takes care
1031 of these.
1032
1033 Simplify m/intel386.h.
1034 * m/intel386.h (CRT0_DUMMIES): Remove, inline value in the only
1035 user: ecrt0.c.
1036 (SOLARIS2): Remove LOAD_AVE_TYPE, LOAD_AVE_CVT, LIBS_MACHINE, unused.
1037 (USG5_4): Move LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE definitions to
1038 the only user: s/unixware.h.
1039 * ecrt0.c: Remove #ifndef static. Inline CRT0_DUMMIES definition
1040 from m/intel386.h.
1041 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE): Definitions
1042 moved here from m/intel386.h.
1043
1044 * m/mips.h: Remove #if 0 code.
1045
1046 2010-04-23 Eli Zaretskii <eliz@gnu.org>
1047
1048 Fix display of composed characters from L2R scripts in bidi buffers.
1049 * xdisp.c (set_iterator_to_next, next_element_from_composition):
1050 After advancing IT past the composition, resync the bidi iterator
1051 with IT's position. (Bug#5977)
1052
1053 2010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
1054
1055 * Makefile.in (LD_SWITCH_MACHINE_TEMACS): Remove, unused.
1056 (TEMACS_LDFLAGS): Don't use LD_SWITCH_SYSTEM_TEMACS.
1057
1058 2010-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
1059
1060 * gtkutil.c: Include xsettings.h for Ftool_bar_get_system_style.
1061
1062 2010-04-23 Eli Zaretskii <eliz@gnu.org>
1063
1064 Support `display' text properties and overlay strings in bidi buffers.
1065 * xdisp.c (pop_it): When the stack is popped after displaying
1066 from a string, bidi-iterate to exit from the text portion covered
1067 by the `display' property or overlay. (Bug#5988, bug#5920)
1068
1069 2010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
1070
1071 * m/macppc.h (LD_SWITCH_SYSTEM_TEMACS): Remove #undef.
1072 (LD_SWITCH_MACHINE_TEMACS): Remove, configure sets nocombreloc.
1073
1074 * s/netbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure sets nocombreloc.
1075 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove.
1076
1077 Simplify STARTFILES definition.
1078 * s/hpux10-20.h (START_FILES): Explicitly define here instead of
1079 relying on Makefile.in to define it.
1080 * s/cygwin.h (START_FILES): Likewise.
1081 * Makefile.in (STARTFILES): Remove conditional code, not needed anymore.
1082
1083 Clean up Solaris code.
1084 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS, C_SWITCH_X_SYSTEM)
1085 (LIB_MOTIF): Remove, configure takes care of this.
1086 (NOT_USING_MOTIF): Remove, unused.
1087 * xrdb.c: Remove #if 0-ed #include.
1088 (SYSV): Remove conditional for old SysV.
1089 * sysdep.c (closedir): Remove conditional code for Solaris,
1090 Solaris has closedir.
1091
1092 2010-04-22 Jan Djärv <jan.h.d@swipnet.se>
1093
1094 * xsettings.c (read_and_apply_settings): Check if current_font is
1095 NULL before strcmp (Bug#6001).
1096
1097 2010-04-21 Dan Nicolaescu <dann@ics.uci.edu>
1098
1099 Clean up HP-UX files.
1100 * m/hp800.h (NO_REMAP, VIRT_ADDR_VARIES, DATA_SEG_BITS)
1101 (DATA_START, TEXT_START, LOAD_AVE_TYPE, LOAD_AVE_CVT)
1102 (LDAV_SYMBOL, index, rindex): Move definitions only used in HP-UX ...
1103 * s/hpux10-20.h: ... to the only user, here.
1104
1105 2010-04-21 Eli Zaretskii <eliz@gnu.org>
1106
1107 * bidi.c (bidi_find_paragraph_start, bidi_at_paragraph_end): Don't
1108 use buffer-local values of paragraph-start and paragraph-separate.
1109 <paragraph_start_re, paragraph_separate_re>: Rename from
1110 fallback_paragraph_start_re and fallback_paragraph_separate_re.
1111 (Bug#5992)
1112
1113 2010-04-21 Jan Djärv <jan.h.d@swipnet.se>
1114
1115 * xsettings.c: Qmonospace_font_name, Qtool_bar_style and
1116 current_tool_bar_style are new.
1117 (store_config_changed_event): Rename from store_font_changed_event.
1118 (XSETTINGS_TOOL_BAR_STYLE): New define.
1119 (SEEN_FONT, SEEN_TB_STYLE): New enum values.
1120 (struct xsettings): Add font and tb_style, set xft stuff inside #ifdef
1121 HAVE_XFT.
1122 (something_changedCB): store_font_changed_event is now
1123 store_config_changed_event
1124 (parse_settings): Rename from parse_xft_settings. Read
1125 non-xft xsettings outside #ifdef HAVE_XFT.
1126 (read_settings): Renamed from read_xft_settings.
1127 (apply_xft_settings): Take current settings as parameter. Do not
1128 call read_(xft)_settings.
1129 (read_and_apply_settings): New function.
1130 (xft_settings_event): Do non-xft stuff out of HAVE_XFT. Call
1131 read_and_apply_settings if there are settings to be read.
1132 (init_xsettings): Renamed from init_xfd_settings.
1133 Call read_and_apply_settings unconditionally.
1134 (xsettings_initialize): Call init_xsettings.
1135 (Ftool_bar_get_system_style): New function.
1136 (syms_of_xsettings): Define Qmonospace_font_name and
1137 Qtool_bar_style. Initialize current_tool_bar_style to nil.
1138 defsubr Stool_bar_get_system_style. Fprovide on
1139 dynamic-setting.
1140 Move misplaced HAVE_GCONF
1141
1142 * xsettings.h (Ftool_bar_get_system_style): Declare.
1143
1144 * xdisp.c: Vtool_bar_style, tool_bar_max_label_size,
1145 Qtext, Qboth, Qboth_horiz are new.
1146 (syms_of_xdisp): Intern Qtext, Qboth, Qboth_horiz, DEFVAR
1147 Vtool_bar_style, tool_bar_max_label_size.
1148
1149 * lisp.h: Extern declare Qtext, Qboth, Qboth_horiz.
1150
1151 * keyboard.c: QClabel is new.
1152 (parse_tool_bar_item): Take out QClabel from tool bar items.
1153 Try to construct a label if ther is no QClabel.
1154 (syms_of_keyboard): Intern :label as QClabel.
1155
1156 * dispextern.h (tool_bar_item_idx): TOOL_BAR_ITEM_LABEL is new.
1157 (Vtool_bar_style, tool_bar_max_label_size, DEFAULT_TOOL_BAR_LABEL_SIZE):
1158 New.
1159
1160 * Makefile.in (SOME_MACHINE_LISP): font-setting.el renamed to
1161 dynamic-setting.el.
1162
1163 * gtkutil.c (xg_tool_bar_menu_proxy): Handle label in tool bar item.
1164 (xg_make_tool_item, xg_show_toolbar_item): New function.
1165 (update_frame_tool_bar): Take label from TOOL_BAR_ITEM_LABEL.
1166 Call xg_make_tool_item to make a tool bar item.
1167 Call xg_show_toolbar_item. Use wtoolbar instead of x->toolbar_widget.
1168
1169 * xterm.c (x_draw_image_relief): Take Vtool_bar_button_margin
1170 into account for toolbars.
1171
1172 2010-04-21 Jan Djärv <jan.h.d@swipnet.se>
1173
1174 * data.c (make_blv): Declarations before code (Bug#5993).
1175
1176 2010-04-21 Glenn Morris <rgm@gnu.org>
1177
1178 * Makefile.in (DBUS_OBJ, GTK_OBJ, XMENU_OBJ, XOBJ):
1179 Define using autoconf, not cpp.
1180 (LIBXSM): New variable, set by autoconf.
1181 (LIBXT): Use $LIBXSM.
1182
1183 2010-04-21 Dan Nicolaescu <local_user@dannlt>
1184
1185 Remove NOMULTIPLEJOBS, unused.
1186 * s/template.h (NOMULTIPLEJOBS):
1187 * s/msdos.h (NOMULTIPLEJOBS): Remove, unused.
1188
1189 Simplify LD_SWITCH_SYSTEM_TEMACS usage.
1190 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS):
1191 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure
1192 detects -znocombreloc and passes it to the linker
1193 * s/hpux10-20.h (LD_SWITCH_SYSTEM_TEMACS): Remove, empty.
1194
1195 2010-04-21 Glenn Morris <rgm@gnu.org>
1196
1197 * Makefile.in (LIBSELINUX_LIBS): Move out of #ifdef.
1198
1199 2010-04-21 Karel Klíč <kklic@redhat.com>
1200
1201 * Makefile.in (LIBSELINUX_LIBS): New.
1202 (LIBES): Add $LIBSELINUX_LIBS.
1203 * eval.c, lisp.h (call7): New function.
1204 * fileio.c [HAVE_LIBSELINUX]: Include selinux headers.
1205 (Ffile_selinux_context, Fset_file_selinux_context):
1206 New functions.
1207 (Fcopy_file): New parameter preserve-selinux-context.
1208 (Frename_file): Preserve selinux context when renaming by copy-file.
1209
1210 2010-04-21 Juanma Barranquero <lekktu@gmail.com>
1211 Eli Zaretskii <eliz@gnu.org>
1212
1213 Don't depend on cm.c or termcap.c on Windows, use stubs.
1214 * makefile.w32-in (OBJ1): Remove cm.$(O) and termcap.$(O).
1215 ($(BLD)/cm.$(O), $(BLD)/termcap.$(O)): Remove.
1216 * w32console.c (current_tty, cost): New vars; lifted from cm.c.
1217 (evalcost, cmputc, cmcheckmagic, cmcostinit, cmgoto, Wcm_clear)
1218 (sys_tputs, sys_tgetstr): New stubs.
1219 * s/ms-w32.h (chcheckmagic, cmcostinit, cmgoto, cmputc, Wcm_clear)
1220 (tputs, tgetstr): New; define to sys_*.
1221
1222 2010-04-20 Juanma Barranquero <lekktu@gmail.com>
1223
1224 * buffer.c (syms_of_buffer) <bidi-display-reordering>: Doc fix.
1225
1226 2010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
1227
1228 * data.c (Fmake_variable_buffer_local, Fmake_local_variable):
1229 Just signal a warning rather than an error when inside a let.
1230 (Fmake_variable_frame_local): Add the same test.
1231
1232 * font.c (syms_of_font): Make the style table vars read-only.
1233
1234 * buffer.h (struct buffer): Remove unused var `direction_reversed'.
1235 * buffer.c (init_buffer_once, syms_of_buffer): Remove its initialization.
1236
1237 * bidi.c (bidi_initialize): Simplify fallback_paragraph_*_re init.
1238
1239 2010-04-20 Eli Zaretskii <eliz@gnu.org>
1240
1241 Fix R2L paragraph display on TTY.
1242
1243 * xdisp.c (unproduce_glyphs): New function.
1244 (display_line): Use it when produced glyphs are discarded from R2L
1245 glyph rows.
1246 (append_composite_glyph): In R2L rows, prepend the glyph rather
1247 than appending it.
1248
1249 * term.c (append_composite_glyph): In R2L rows, prepend the glyph
1250 rather than append it. Set up the resolved_level and bidi_type
1251 attributes of the appended glyph.
1252 (produce_special_glyphs): Mirror the backslash continuation
1253 character in R2L lines.
1254
1255 Implement display of R2L paragraphs in GUI sessions.
1256
1257 * xdisp.c [HAVE_WINDOW_SYSTEM]: Add prototype for
1258 append_stretch_glyph.
1259 (set_cursor_from_row) <cursor_x>: Remove unused variable. Fix
1260 off-by-one error in computing x at end of text in the row.
1261 (append_stretch_glyph): In reversed row, prepend the glyph rather
1262 than append it. Set resolved_level and bidi_type of the glyph.
1263 (extend_face_to_end_of_line): If the row is reversed, prepend a
1264 stretch glyph whose width is such that the rightmost glyph will be
1265 drawn at the right margin of the window. Fix off-by-one error on
1266 TTY frames in testing whether a line needs face extension. Fix
1267 face extension at ZV. If this is the last glyph row, use
1268 DEFAULT_FACE_ID, to avoid painting the rest of the window with the
1269 region face.
1270 (set_cursor_from_row, display_line): Use
1271 MATRIX_ROW_CONTINUATION_LINE_P instead of testing value of
1272 row->continuation_lines_width.
1273 (next_element_from_buffer): Don't call bidi_paragraph_init if we
1274 are at ZV. Fixes a crash when reseated to ZV by
1275 try_window_reusing_current_matrix.
1276 (display_and_set_cursor, erase_phys_cursor): Handle negative HPOS,
1277 which happens with R2L glyph rows. Fixes a crash when inserting a
1278 character at end of an R2L line.
1279 (set_cursor_from_row): Don't be fooled by truncated rows: don't
1280 treat them as having zero-width characters. Improve comments.
1281 Don't reverse pos_before and pos_after for reversed glyph rows.
1282 Set cursor.x to negative value when the cursor might be on the
1283 left fringe.
1284 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): For R2L lines, consider the
1285 left fringe, not the right one.
1286 (notice_overwritten_cursor, draw_phys_cursor_glyph)
1287 (erase_phys_cursor): For reversed cursor_row, support cursor on
1288 the left fringe.
1289
1290 * fringe.c (update_window_fringes): For R2L rows, swap the bitmaps
1291 of continuation indicators on the fringes.
1292 (draw_fringe_bitmap): For reversed glyph rows, allow cursor on the
1293 left fringe.
1294
1295 * w32term.c (w32_draw_window_cursor): For reversed glyph rows,
1296 draw cursor on the left fringe.
1297
1298 * xterm.c (x_draw_window_cursor): For reversed glyph rows, draw
1299 cursor on the left fringe.
1300
1301 * dispnew.c (update_text_area): Handle reversed desired rows when
1302 the cursor is on the left fringe.
1303 (set_window_cursor_after_update): Limit cursor's hpos by -1 from
1304 below, not by 0, for when the cursor is on the left fringe.
1305
1306 2010-04-20 Jan Djärv <jan.h.d@swipnet.se>
1307
1308 * gtkutil.c (xg_event_is_for_scrollbar): Check if grabbed
1309 widget is a scrollbar.
1310
1311 2010-04-20 Kenichi Handa <handa@m17n.org>
1312
1313 * charset.c (char_charset): Consider Vcharset_non_preferred_head
1314 only when the arg CHARSET_LIST is nil.
1315
1316 2010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
1317
1318 Make variable forwarding explicit rather the using special values.
1319 Basically, this makes the structure of buffer-local values and object
1320 forwarding explicit in the type of Lisp_Symbols rather than use
1321 special Lisp_Objects for that. This tends to lead to slightly more
1322 verbose code, but is more C-like, simpler, and makes it easier to make
1323 sure we handled all cases, among other things by letting the compiler
1324 help us check it.
1325 * lisp.h (enum Lisp_Misc_Type, union Lisp_Misc):
1326 Removing forwarding objects.
1327 (enum Lisp_Fwd_Type, enum symbol_redirect, union Lisp_Fwd): New types.
1328 (struct Lisp_Symbol): Make the various forms of variable-forwarding
1329 explicit rather than hiding them inside Lisp_Object "values".
1330 (XFWDTYPE): New macro.
1331 (XINTFWD, XBOOLFWD, XOBJFWD, XKBOARD_OBJFWD): Redefine.
1332 (XBUFFER_LOCAL_VALUE): Remove.
1333 (SYMBOL_VAL, SYMBOL_ALIAS, SYMBOL_BLV, SYMBOL_FWD, SET_SYMBOL_VAL)
1334 (SET_SYMBOL_ALIAS, SET_SYMBOL_BLV, SET_SYMBOL_FWD): New macros.
1335 (SYMBOL_VALUE, SET_SYMBOL_VALUE): Remove.
1336 (struct Lisp_Intfwd, struct Lisp_Boolfwd, struct Lisp_Objfwd)
1337 (struct Lisp_Buffer_Objfwd, struct Lisp_Kboard_Objfwd):
1338 Remove the Lisp_Misc_* header.
1339 (struct Lisp_Buffer_Local_Value): Redefine.
1340 (BLV_FOUND, SET_BLV_FOUND, BLV_VALUE, SET_BLV_VALUE): New macros.
1341 (struct Lisp_Misc_Any): Add filler to get the right size.
1342 (struct Lisp_Free): Use struct Lisp_Misc_Any rather than struct
1343 Lisp_Intfwd.
1344 (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL, DEFVAR_INT)
1345 (DEFVAR_KBOARD): Allocate a forwarding object.
1346 * data.c (do_blv_forwarding, store_blv_forwarding): New macros.
1347 (let_shadows_global_binding_p): New function.
1348 (union Lisp_Val_Fwd): New type.
1349 (make_blv): New function.
1350 (swap_in_symval_forwarding, indirect_variable, do_symval_forwarding)
1351 (store_symval_forwarding, swap_in_global_binding, Fboundp)
1352 (swap_in_symval_forwarding, find_symbol_value, Fset)
1353 (let_shadows_buffer_binding_p, set_internal, default_value)
1354 (Fset_default, Fmake_variable_buffer_local, Fmake_local_variable)
1355 (Fkill_local_variable, Fmake_variable_frame_local)
1356 (Flocal_variable_p, Flocal_variable_if_set_p)
1357 (Fvariable_binding_locus):
1358 * xdisp.c (select_frame_for_redisplay):
1359 * lread.c (Fintern, Funintern, init_obarray, defvar_int)
1360 (defvar_bool, defvar_lisp_nopro, defvar_lisp, defvar_kboard):
1361 * frame.c (store_frame_param):
1362 * eval.c (Fdefvaralias, Fuser_variable_p, specbind, unbind_to):
1363 * bytecode.c (Fbyte_code) <varref, varset>: Adapt to the new symbol
1364 value structure.
1365 * buffer.c (PER_BUFFER_SYMBOL): Move from buffer.h.
1366 (clone_per_buffer_values): Only adjust markers into the current buffer.
1367 (reset_buffer_local_variables): PER_BUFFER_IDX is never -2.
1368 (Fbuffer_local_value, set_buffer_internal_1)
1369 (swap_out_buffer_local_variables):
1370 Adapt to the new symbol value structure.
1371 (DEFVAR_PER_BUFFER): Allocate a Lisp_Buffer_Objfwd object.
1372 (defvar_per_buffer): Take a new arg for the fwd object.
1373 (buffer_lisp_local_variables): Return a proper alist (different fix
1374 for bug#4138).
1375 * alloc.c (Fmake_symbol): Use SET_SYMBOL_VAL.
1376 (Fgarbage_collect): Don't handle buffer_defaults specially.
1377 (mark_object): Handle new symbol value structure rather than the old
1378 special Lisp_Misc_* objects.
1379 (gc_sweep) <symbols>: Free also the buffer-local-value objects.
1380 * term.c (set_tty_color_mode):
1381 * bidi.c (bidi_initialize): Don't access the ->value field directly.
1382 * buffer.h (PER_BUFFER_VAR_OFFSET): Don't bother with
1383 a buffer_local_flags.
1384 * print.c (print_object): Get rid of impossible forwarding objects.
1385
1386 2010-04-19 Eli Zaretskii <eliz@gnu.org>
1387
1388 * bidi.c (bidi_get_type, bidi_get_category)
1389 (bidi_at_paragraph_end, bidi_resolve_weak, bidi_resolve_neutral)
1390 (bidi_type_of_next_char, bidi_level_of_next_char):
1391 Declare static. Use `INLINE' rather than `inline'.
1392
1393 2010-04-19 Juanma Barranquero <lekktu@gmail.com>
1394
1395 * dired.c (Ffile_attributes): Fix typo in docstring.
1396
1397 2010-04-19 Adrian Robert <Adrian.B.Robert@gmail.com>
1398
1399 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
1400 NSInteger (Bug#5811).
1401
1402 2010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1403
1404 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
1405 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
1406
1407 2010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1408
1409 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
1410
1411 2010-04-19 Chong Yidong <cyd@stupidchicken.com>
1412
1413 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
1414 terminal frames (Bug#5837).
1415
1416 2010-04-19 Eli Zaretskii <eliz@gnu.org>
1417
1418 * .gdbinit (xsubchartable): New command.
1419
1420 2010-04-19 Eli Zaretskii <eliz@gnu.org>
1421
1422 * xdisp.c (display_line): Don't write beyond the last glyph row in
1423 the desired matrix. Fixes a crash in "emacs -nw" (bug#5972), see
1424 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00075.html
1425 and
1426 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00213.html
1427
1428 2010-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
1429
1430 * alloc.c (Fpurecopy): Hash-cons if requested.
1431 (syms_of_alloc): Update purify-flag docstring.
1432
1433 2010-04-18 Jan Djärv <jan.h.d@swipnet.se>
1434
1435 * gtkutil.c (xg_set_geometry): Set size in geometry string also.
1436 (x_wm_set_size_hint): Set USER_POS in hint_flags (Bug#5968).
1437
1438 2010-04-17 Eli Zaretskii <eliz@gnu.org>
1439
1440 Fix a crash when an NSM character is inserted at BEGV.
1441
1442 * bidi.c (bidi_init_it): Fix initialization of bidi_it->prev.
1443 (bidi_resolve_weak): Don't use prev.type_after_w1 if it is
1444 NEUTRAL_B or UNKNOWN_BT.
1445
1446 2010-04-16 Eli Zaretskii <eliz@gnu.org>
1447
1448 * xdisp.c (set_cursor_from_row): Don't consider possibility of
1449 other rows with cursor unless they are different from this row and
1450 this row is part of a continued line. (Bug#5943)
1451
1452 2010-04-16 Dan Nicolaescu <dann@ics.uci.edu>
1453
1454 * s/freebsd.h: Restore osreldate.h include.
1455 Suggested by Naohiro Aota.
1456
1457 2010-04-16 Jan Djärv <jan.h.d@swipnet.se>
1458
1459 * xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used.
1460
1461 2010-04-16 Ken Brown <kbrown@cornell.edu> (tiny change)
1462
1463 * s/cygwin.h: Avoid linking against static libgcc.
1464
1465 2010-04-15 Juri Linkov <juri@jurta.org>
1466
1467 * window.c: Add Qscroll_command.
1468 Remove Vscroll_preserve_screen_position_commands.
1469 (window_scroll_pixel_based, window_scroll_line_based): Check the
1470 `scroll-command' property on the last command instead of searching
1471 the last command in Vscroll_preserve_screen_position_commands.
1472 (syms_of_window): Initialize and staticpro `Qscroll_command'.
1473 Put Qscroll_command property on Qscroll_up and Qscroll_down.
1474 (scroll-preserve-screen-position): Doc fix.
1475 (Vscroll_preserve_screen_position_commands): Remove variable.
1476
1477 2010-04-15 Dan Nicolaescu <dann@ics.uci.edu>
1478
1479 * xdisp.c (message): Do not use NO_ARG_ARRAY.
1480
1481 2010-04-14 Dan Nicolaescu <dann@ics.uci.edu>
1482
1483 Reduce cpp use in Makefile.in.
1484 * Makefile.in (DBUS_CFLAGS, DBUS_LIBS, GCONF_CFLAGS, GCONF_LIBS)
1485 (LIBSOUND, CFLAGS_SOUND, RSVG_LIBS, RSVG_CFLAGS, INTERVALS_H)
1486 (GETLOADAVG_LIBS, RUN_TEMACS): Move to the autoconf section.
1487 (ORDINARY_LINK): Remove, defined in src/s/gnu.h.
1488 (CRT0_COMPILE): Remove, inline it in the only user.
1489
1490 2010-04-14 Juri Linkov <juri@jurta.org>
1491
1492 * window.c (keys_of_window): Rebind `C-v' from `scroll-up' to
1493 `scroll-up-command' and `M-v' from `scroll-down' to
1494 `scroll-down-command'.
1495
1496 2010-04-14 Juri Linkov <juri@jurta.org>
1497
1498 * window.c (Vscroll_preserve_screen_position_commands): New variable
1499 with the default value as the list of Qscroll_down and Qscroll_up.
1500 (window_scroll_pixel_based, window_scroll_line_based): Search the
1501 last command in the list Vscroll_preserve_screen_position_commands
1502 instead of comparing with Qscroll_up and Qscroll_down.
1503
1504 2010-04-13 Jan Djärv <jan.h.d@swipnet.se>
1505
1506 * gtkutil.c (xg_set_geometry): Set geometry for PPosition also.
1507 (x_wm_set_size_hint): Dont set position flags, gtk_window_parse_geometry
1508 does that.
1509
1510 * xfns.c (Fx_create_frame, x_create_tip_frame): Set default border width
1511 to zero.
1512
1513 2010-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
1514
1515 * term.c (init_tty): Move common text outside of #ifdef TERMINFO.
1516
1517 Try to solve the problem of spurious EOF chars in long lines of text
1518 sent to interactive subprocesses.
1519 * sysdep.c (child_setup_tty): Do not enable ICANON any more.
1520 (system_process_attributes): Remove unused var `ttotal'.
1521 * process.c (send_process): Don't bother breaking long line with EOF
1522 chars when talking to ttys any more.
1523 (wait_reading_process_output): Output a warning when called in such
1524 a way that it could block without being interruptible.
1525
1526 Try to detect file modification within the same second.
1527 * buffer.h (struct buffer): New field modtime_size.
1528 * buffer.c (reset_buffer): Initialize it.
1529 * fileio.c (Finsert_file_contents, Fwrite_region): Set it.
1530 (Fverify_visited_file_modtime): Check it.
1531 (Fclear_visited_file_modtime, Fset_visited_file_modtime): Clear it.
1532 (Fset_visited_file_modtime): Set (or clear) it.
1533
1534 2010-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
1535
1536 * process.c (status_notify): Remove unused var `ro'.
1537
1538 2010-04-12 Jan Djärv <jan.h.d@swipnet.se>
1539
1540 * xfns.c (select_visual): Don't call error if XGetVisualInfo returns
1541 more than one visual (Bug#5938).
1542
1543 2010-04-12 Dan Nicolaescu <dann@ics.uci.edu>
1544
1545 * Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE):
1546 Undefine.
1547
1548 2010-04-11 Dan Nicolaescu <dann@ics.uci.edu>
1549
1550 Remove C_SWITCH_SYSTEM_TEMACS.
1551 * s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove.
1552 (malloc, realloc, free): Use emacs, not temacs for conditional
1553 definition.
1554
1555 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove.
1556 (ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.
1557
1558 Use autoconf, not cpp for some variables.
1559 * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
1560 (C_SWITCH_X_SITE): Define using autoconf, not cpp.
1561 (ALL_CFLAGS): Use them as make variables.
1562 (really-lwlib, really-oldXMenu): Do not pass them.
1563
1564 2010-04-11 Jan Djärv <jan.h.d@swipnet.se>
1565
1566 * xmenu.c (apply_systemfont_to_dialog): New.
1567 (create_and_show_dialog): Call apply_systemfont_to_dialog if HAVE_XFT.
1568
1569 2010-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
1570
1571 * process.c (exec_sentinel): Preserve current-buffer.
1572
1573 * process.c (read_process_output): Move the save-current-buffer to
1574 apply to both the filter and the non-filter branches.
1575
1576 2010-04-10 Dan Nicolaescu <dann@ics.uci.edu>
1577
1578 * s/msdos.h (UNEXEC): New definition.
1579
1580 2010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1581
1582 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
1583 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
1584
1585 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
1586 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
1587 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
1588 TRY_WINDOW_CHECK_MARGINS.
1589
1590 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
1591 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423). Subtract last glyph's
1592 width only when it is for padding.
1593
1594 2010-04-09 Jan Djärv <jan.h.d@swipnet.se>
1595
1596 * xfns.c (Fx_show_tip): Call try_window in a loop until
1597 fonts_changed_p is zero (Bug#2423).
1598
1599 2010-04-08 Eli Zaretskii <eliz@gnu.org>
1600
1601 * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
1602 the end of TEXT_AREA. (Bug#5856)
1603
1604 2010-04-08 Jan Djärv <jan.h.d@swipnet.se>
1605
1606 * xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of
1607 HAVE_GCONF.
1608
1609 2010-04-08 Eli Zaretskii <eliz@gnu.org>
1610
1611 * bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
1612 prev.orig_type, for resolving type of NSM. (Bug#5858)
1613
1614 2010-04-08 Jan Djärv <jan.h.d@swipnet.se>
1615
1616 * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
1617 (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
1618 in current_font.
1619 (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
1620 (Ffont_get_system_normal_font, xsettings_get_system_normal_font):
1621 New functions.
1622 (syms_of_xsettings): Initialize current_font.
1623 defsubr Sfont_get_system_normal_font.
1624
1625 * xsettings.h (Ffont_get_system_normal_font,
1626 xsettings_get_system_normal_font): Declare.
1627
1628 * xfns.c (extern xlwmenu_default_font): Remove.
1629 (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
1630 to xlwmenu.c.
1631
1632 * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
1633 menu items in UTF-8.
1634
1635 * xmenu.c: include xsettings.h and xlwmenu.h if USE_LUCID.
1636 (apply_systemfont_to_menu): New function.
1637 (set_frame_menubar, create_and_show_popup_menu): Call
1638 apply_systemfont_to_menu.
1639
1640 2010-04-07 Jan Djärv <jan.h.d@swipnet.se>
1641
1642 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
1643 FRAME_LINE_TO_PIXEL_Y.
1644
1645 * xterm.c (x_set_window_size_1): Don't add border_width/height to
1646 pixelwidth/height.
1647
1648 2010-04-07 Dan Nicolaescu <dann@ics.uci.edu>
1649
1650 Simplify code for HP machines.
1651 * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
1652 for GNU_LINUX, not needed.
1653 (UNEXEC, NEED_BSDTTY): Move definitions...
1654 * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
1655
1656 * m/iris4d.h (UNEXEC): Move definition ...
1657 * s/irix6-5.h (UNEXEC): ... here.
1658
1659 2010-04-04 Jan Djärv <jan.h.d@swipnet.se>
1660
1661 * xfns.c (set_machine_and_pid_properties): New function.
1662 (Fx_create_frame): Call set_machine_and_pid_properties.
1663
1664 2010-04-03 Eli Zaretskii <eliz@gnu.org>
1665
1666 * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char): Check
1667 bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
1668 BIDI_EOB. Fixes infloop with vertical cursor motion at ZV.
1669
1670 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
1671 in this function. (Bug#5703)
1672
1673 2010-04-03 Chong Yidong <cyd@stupidchicken.com>
1674
1675 * nsterm.h: Fix last change.
1676
1677 2010-04-03 Dan Nicolaescu <dann@ics.uci.edu>
1678
1679 * m/intel386.h (NO_REMAP): Move definition ...
1680 * s/msdos.h (NO_REMAP): ... here.
1681
1682 * m/vax.h (CRT0_DUMMIES): Remove, unused.
1683
1684 * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
1685 used on those platforms.
1686
1687 2010-04-02 Dan Nicolaescu <dann@ics.uci.edu>
1688
1689 Remove extern errno declarations.
1690 * xterm.c:
1691 * xrdb.c:
1692 * w32term.c:
1693 * unexec.c:
1694 * unexaix.c:
1695 * sysdep.c:
1696 * process.c:
1697 * lread.c:
1698 * keyboard.c:
1699 * floatfns.c:
1700 * filelock.c:
1701 * fileio.c:
1702 * emacs.c (main):
1703 * ecrt0.c:
1704 * dispnew.c:
1705 * callproc.c:
1706 * buffer.c: Remove errno extern declarations.
1707 * s/netbsd.h (NEED_ERRNO): Remove.
1708
1709 2010-04-01 Dan Nicolaescu <dann@ics.uci.edu>
1710
1711 Remove all uses of LIBX11_SYSTEM.
1712 * Makefile.in (LIBX11_SYSTEM): Remove.
1713 * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
1714 instead.
1715
1716 2010-04-01 Eli Zaretskii <eliz@gnu.org>
1717
1718 Remove support for DJGPP v1.x (bug#5813).
1719
1720 * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
1721 * s/msdos.h:
1722 * unexec.c (make_hdr, copy_text_and_data):
1723 * sysdep.c (wait_for_termination, sys_subshell):
1724 * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
1725 (IT_set_terminal_modes, __write, _rename, gethostname)
1726 (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
1727 (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
1728 the value of __DJGPP__.
1729 (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
1730 compatibility code.
1731 * lread.c:
1732 * gmalloc.c (memalign):
1733 * fileio.c (Fcopy_file, check_executable, Ffile_modes):
1734 * emacs.c (main):
1735 * dosfns.c (init_dosfns):
1736 * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
1737
1738 2010-04-01 Eli Zaretskii <eliz@gnu.org>
1739
1740 * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
1741 string with `cursor' property comes from an `after-string'
1742 overlay. (Bug#5816)
1743
1744 2010-04-01 Glenn Morris <rgm@gnu.org>
1745
1746 * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
1747 Define as Makefile variables.
1748 (LIBX): Use above variables rather than directly using autoconf.
1749
1750 2010-03-31 Dan Nicolaescu <dann@ics.uci.edu>
1751
1752 Clean up BSD_SYSTEM use.
1753 * xterm.c:
1754 * process.c:
1755 * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
1756 for including <sys/ioctl.h>.
1757 * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
1758 code is only used for MSDOS.
1759
1760 2010-03-31 Juri Linkov <juri@jurta.org>
1761
1762 * image.c: Add `Qextension_data'.
1763 (syms_of_image): Initialize and staticpro `Qextension_data'.
1764 (Fimage_metadata): Rename from `Fimage_extension_data'.
1765 (gif_load): Put GIF extension data to the property
1766 `Qextension_data'.
1767
1768 2010-04-05 Chong Yidong <cyd@stupidchicken.com>
1769
1770 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
1771 terminal frames (Bug#5837).
1772
1773 2010-03-31 Chong Yidong <cyd@stupidchicken.com>
1774
1775 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
1776 * nsterm.h: Fix prototype.
1777
1778 2010-03-31 Eli Zaretskii <eliz@gnu.org>
1779
1780 * xdisp.c (highlight_trailing_whitespace): Support highlight of
1781 trailing whitespace in right-to-left rows.
1782
1783 2010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
1784
1785 Get rid of the direct_output optimizations.
1786 * keyboard.c (nonundocount): Remove extern declaration.
1787 (command_loop_1): Remove brittle optimisation for cheap and
1788 common operations.
1789 * xdisp.c (redisplay_internal): Don't bother checking
1790 redisplay_performed_directly_p any more.
1791 * sysdep.c (init_sys_modes): Don't call direct_output_forward_char
1792 any more.
1793 * dispnew.c (redisplay_performed_directly_p)
1794 (direct_output_for_insert, direct_output_forward_char):
1795 * dispextern.h (redisplay_performed_directly_p)
1796 (direct_output_for_insert, direct_output_forward_char): Remove.
1797 * cmds.c (nonundocount): Make it static.
1798
1799 2010-03-31 Bernhard Herzog <bh@intevation.de> (tiny change)
1800
1801 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
1802
1803 2010-03-31 Jan Djärv <jan.h.d@swipnet.se>
1804
1805 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
1806 invisible (Bug#5766).
1807
1808 2010-03-31 Adrian Robert <adrian.b.robert@gmail.com>
1809
1810 * xdisp.c (x_consider_frame_title, update_window_cursor):
1811 Remove HAVE_NS conditionals.
1812 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
1813
1814 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
1815 filename for the title.
1816 (ns_set_doc_edited): Do nothing if the selected window is a
1817 minibuffer window.
1818
1819 * nsterm.h: Add prototypes for ns_set_name_as_filename and
1820 ns_set_doc_edited.
1821
1822 * nsterm.m: Remove unneeded prototype.
1823
1824 2010-03-31 Glenn Morris <rgm@gnu.org>
1825
1826 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
1827 in the DOC file. (Bug#5336)
1828
1829 2010-03-31 Chong Yidong <cyd@stupidchicken.com>
1830
1831 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
1832
1833 2010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
1834
1835 * window.c (keys_of_window): Remove redundant/overridden bindings.
1836
1837 2010-03-30 Eli Zaretskii <eliz@gnu.org>
1838
1839 * xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
1840 Restore original behavior when the iterator is not bidi_p.
1841
1842 2010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
1843
1844 * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
1845
1846 2010-03-30 Eli Zaretskii <eliz@gnu.org>
1847
1848 * bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
1849 are outside the range of cached character positions.
1850
1851 2010-03-30 Juanma Barranquero <lekktu@gmail.com>
1852
1853 * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
1854
1855 2010-03-30 Eli Zaretskii <eliz@gnu.org>
1856
1857 Initial support for bidirectional editing.
1858
1859 * Makefile.in (obj): Include bidi.o.
1860 (bidi.o): New target.
1861
1862 * makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
1863 ($(BLD)/bidi.$(O)): New target.
1864
1865 * bidi.c: New file.
1866
1867 * buffer.h (struct buffer): New members bidi_display_reordering
1868 and bidi_paragraph_direction.
1869
1870 * buffer.c (init_buffer_once): Initialize bidi_display_reordering
1871 and bidi_paragraph_direction.
1872 (syms_of_buffer): Declare Lisp variables bidi-display-reordering
1873 and bidi-paragraph-direction.
1874 (Fbuffer_swap_text): Swap the values of
1875 bidi_display_reordering and bidi_paragraph_direction.
1876
1877 * dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
1878 (bidi_type_t, bidi_dir_t): New types.
1879 (bidi_saved_info, bidi_stack, bidi_it): New structures.
1880 (struct it): New members bidi_p, bidi_it, paragraph_embedding,
1881 prev_stop, base_level_stop, and eol_pos.
1882 (bidi_init_it, bidi_get_next_char_visually): New prototypes.
1883 (IT_STACK_SIZE): Enlarge to 5.
1884 (struct glyph_row): New member reversed_p.
1885 <string_buffer_position>: Update prototype.
1886 (PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
1887 glyph_row if bidi_it.paragraph_dir == R2L.
1888 (struct glyph): New members resolved_level and bidi_type.
1889
1890 * dispnew.c (direct_output_forward_char): Give up if we need bidi
1891 processing or buffer's direction is right-to-left.
1892 (prepare_desired_row): Preserve the reversed_p flag.
1893 (row_equal_p): Compare the reversed_p attributes as well.
1894
1895 * xdisp.c (init_iterator): Initialize it->bidi_p. Call
1896 bidi_init_it and set it->paragraph_embedding from the current
1897 buffer's value of bidi_paragraph_direction.
1898 (reseat_1): Initialize bidi_it.first_elt.
1899 (set_iterator_to_next, next_element_from_buffer): Use the value of
1900 paragraph_embedding to determine the paragraph direction.
1901 (set_iterator_to_next): Under bidi reordering, call
1902 bidi_get_next_char_visually. Call bidi_paragraph_init if the
1903 new_paragraph flag is set in the bidi iterator.
1904 (next_element_from_buffer): If bidi_it.first_elt is set,
1905 initialize paragraph direction and find the first character to
1906 display in the visual order. If reseated to a middle of a line,
1907 prime the bidi iterator starting at the line's beginning. Handle
1908 the situation where we overstepped stop_charpos due to
1909 non-linearity of the bidi iteration. Likewise for when we back up
1910 beyond the previous stop_charpos. When moving across stop_charpos,
1911 record it in prev_stop.
1912 (display_line): Set row->end and it->start for the next row to the
1913 next character in logical order. Always extend reversed_p rows to
1914 the end of line, even if they end at ZV. Copy the reversed_p flag
1915 to the next glyph row. Keep calling set_cursor_from_row for
1916 bidi-reordered rows even if we already have a possible candidate
1917 for cursor position. Set row_end after all the row's glyphs have
1918 been produced, by looping over the glyphs. Record the position
1919 after EOL in it->eol_pos, and use it to set end_pos of the last
1920 row produced for a continued line.
1921 <Qright_to_left, Qleft_to_right>: New variables.
1922 (syms_of_xdisp): Initialize and staticpro them.
1923 (string_buffer_position_lim): New function.
1924 (string_buffer_position): Most of code moved to
1925 string_buffer_position_lim. Last argument and return value are
1926 now EMACS_INT; all callers changed.
1927 (set_cursor_from_row): Rewritten to support bidirectional text and
1928 reversed glyph rows.
1929 (text_outside_line_unchanged_p, try_window_id): Disable
1930 optimizations if we are reordering bidirectional text and the
1931 paragraph direction can be affected by the change.
1932 (append_glyph, append_composite_glyph)
1933 (produce_image_glyph, append_stretch_glyph): Set the
1934 resolved_level and bidi_type members of each glyph.
1935 (append_glyph): If the glyph row is reversed, prepend the glyph
1936 rather than appending it.
1937 (handle_stop_backwards): New function.
1938 (reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
1939 (reseat): call handle_stop_backwards to recompute prev_stop and
1940 base_level_stop for the new position.
1941 (handle_invisible_prop): Under bidi iteration, skip invisible text
1942 using bidi_get_next_char_visually. If we are `reseat'ed, init the
1943 paragraph direction. Update IT->prev_stop after skipping
1944 invisible text.
1945 (move_it_in_display_line_to): New variables prev_method
1946 and prev_pos. Compare for strict equality in
1947 BUFFER_POS_REACHED_P.
1948 (try_cursor_movement): Examine all the candidate rows that occlude
1949 point, to return the best match. If rows are bidi-reordered
1950 and point moved backwards, back up to the row that is not a
1951 continuation line, and start looking for a suitable row from
1952 there.
1953
1954 * term.c (append_glyph): Reverse glyphs by pre-pending them,
1955 rather than appending, if the glyph_row's reversed_p flag is set.
1956 Set the resolved_level and bidi_type members of each glyph.
1957
1958 * .gdbinit (pbiditype): New command.
1959 (pgx): Use it to display bidi level and type of the glyph.
1960 (pitx): Display some bidi information about the iterator.
1961 (prowlims, pmtxrows): New commands.
1962
1963 2010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
1964
1965 Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
1966 * s/usg5-4.h (LIBS_DEBUG):
1967 * s/irix6-5.h (C_DEBUG_SWITCH):
1968 * s/gnu-linux.h (LIBS_DEBUG):
1969 * s/darwin.h (LIBS_DEBUG):
1970 * s/bsd-common.h (LIBS_DEBUG):
1971 * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
1972 * m/iris4d.h (LIBS_DEBUG):
1973 * m/hp800.h (LIBS_DEBUG): Remove definitions.
1974
1975 * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
1976 (LIBS_DEBUG): Remove definition.
1977
1978 2010-03-27 Chong Yidong <cyd@stupidchicken.com>
1979
1980 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
1981 Windows.
1982
1983 2010-03-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1984
1985 * process.c (Fmake_network_process): Don't call turn_on_atimers around
1986 `connect' (Bug#5723).
1987
1988 2010-03-25 Helmut Eller <eller.helmut@gmail.com>
1989
1990 * process.c (Fmake_network_process): Call `select' for interrupted
1991 `connect' rather than creating new socket (Bug#5173).
1992
1993 2010-03-24 Jan Djärv <jan.h.d@swipnet.se>
1994
1995 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
1996
1997 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
1998
1999 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
2000
2001 2010-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2002
2003 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
2004 XLoadQueryFont.
2005
2006 2010-03-24 Kenichi Handa <handa@m17n.org>
2007
2008 * coding.c (decode_coding_ccl): Fix previous change for the
2009 multibyte case.
2010 (encode_coding_ccl): Don't setup ccl program here. Fix for the
2011 case that the output buffer is fullfilled.
2012 (encode_coding): Setup ccl program here.
2013
2014 2010-03-24 Andreas Politz <politza@fh-trier.de> (tiny change)
2015
2016 * editfns.c (Fformat): Account for string precision when computing
2017 field width (Bug#5710).
2018
2019 2010-03-23 Dan Nicolaescu <dann@ics.uci.edu>
2020
2021 * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
2022
2023 Simplify LIBS_MACHINE definitions.
2024 * m/hp800.h (LIBS_MACHINE): Remove, same as default.
2025 * m/iris4d.h (LIBS_MACHINE): Likewise.
2026 * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
2027 * s/aix4-2.h (LIBS_SYSTEM): ... here.
2028 * s/netbsd.h: Remove commented out code.
2029
2030 2010-03-22 Dan Nicolaescu <dann@ics.uci.edu>
2031
2032 Remove dead code dealing with POSIX_SIGNALS.
2033 * atimer.c (set_alarm): Remove dead code, all USG systems define
2034 POSIX_SIGNALS.
2035 * data.c (arith_error): Likewise.
2036 * keyboard.c (input_available_signal, handle_user_signal)
2037 (interrupt_signal): Likewise.
2038 * process.c (sigchld_handler): Likewise.
2039 (create_process): Remove if 0 code. Remove HPUX conditional when
2040 !defined (POSIX_SIGNALS), it cannot be true.
2041 * syssignal.h: Remove USG5_4 and USG conditionals when
2042 !POSIX_SIGNALS, they cannot be true.
2043
2044 * keyboard.c (Fset_input_interrupt_mode): Remove code depending on
2045 NO_SOCK_SIGIO, not used anymore.
2046
2047 2010-03-21 Dan Nicolaescu <dann@ics.uci.edu>
2048
2049 * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
2050 support vax on BSDs.
2051
2052 * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
2053 * s/aix4-2.h (ORDINARY_LINK): ... here.
2054
2055 2010-03-21 Andreas Schwab <schwab@linux-m68k.org>
2056
2057 * Makefile.in (abs_builddir): Define.
2058 (bootstrap_exe): Use it.
2059 (VPATH): Use $(srcdir) instead of @srcdir@.
2060
2061 2010-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
2062
2063 * Makefile.in (bootstrap_exe): Use an absolute name.
2064
2065 2010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
2066
2067 Remove support for old GNU/Linux using libc version 5.
2068 * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
2069 * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
2070
2071 Consolidate redundant definitions in s/bsd-common.h.
2072 * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
2073 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
2074 (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
2075 doing it in all files that include this one.
2076 * s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
2077 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
2078 (LDAV_SYMBOL, KERNEL_FILE): Remove.
2079 * s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
2080 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
2081 (LDAV_SYMBOL, KERNEL_FILE): Remove.
2082 * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
2083 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
2084 (LDAV_SYMBOL, KERNEL_FILE): Remove.
2085
2086 Consolidate redundant definitions.
2087 * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
2088 it's undefined in all files that include this one.
2089 (POSIX_SIGNALS): Define here instead of doing it in all files that
2090 include this one.
2091 * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
2092 (POSIX_SIGNALS): Do not define.
2093 * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
2094 (POSIX_SIGNALS): Do not define.
2095 * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
2096 (POSIX_SIGNALS): Do not define.
2097
2098 Remove support for old UNIX System V systems.
2099 * s/unixware.h: Add the contents of s/usg-5-4-2.h.
2100 * s/usg-5-4-2.h: Remove.
2101
2102 Remove support for Solaris on PPC and for old versions.
2103 * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
2104 (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
2105 that cancel each other.
2106 * s/sol2-3.h:
2107 * s/sol2-4.h:
2108 * s/sol2-5.h: Remove.
2109 * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
2110 (NO_REMAP): Remove, unused.
2111 (UNEXEC): Move definition ...
2112 * s/aix4-2.h (UNEXEC): ... here.
2113
2114 * s/openbsd.h: Remove support for non-ELF and for systems that do
2115 not support shared libraries.
2116 * s/netbsd.h:
2117 * s/freebsd.h: Likewise.
2118
2119 2010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
2120
2121 Remove non-working support for lynxos 3.0.
2122 * s/lynxos.h: Remove file.
2123
2124 * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
2125 COFF_BSD_SYMBOLS, nothing defines it anymore.
2126
2127 2010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
2128
2129 Remove obsolete uses of HAVE_SHM.
2130 * emacs.c (standard_args):
2131 (Fdump_emacs):
2132 (syms_of_emacs): Remove code depending on HAVE_SHM.
2133
2134 * alloc.c: Remove HAVE_SHM dependent definition.
2135
2136 * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
2137
2138 2010-03-18 Glenn Morris <rgm@gnu.org>
2139
2140 * emacs.c (USAGE4): Hard-code bug address.
2141 (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
2142 (bug_reporting_address): Remove.
2143 (main): Don't call bug_reporting_address.
2144
2145 * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
2146 (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
2147
2148 2010-03-15 Chong Yidong <cyd@stupidchicken.com>
2149
2150 * xfns.c (Fx_create_frame):
2151 * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
2152 on left.
2153
2154 2010-03-13 Andreas Politz <politza@fh-trier.de> (tiny change)
2155
2156 * editfns.c (Fformat): Account for string precision when computing
2157 field width (Bug#5710).
2158
2159 2010-03-12 Chong Yidong <cyd@stupidchicken.com>
2160
2161 * xfns.c (Fx_create_frame): Set default to Qright.
2162
2163 * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
2164 all window systems.
2165
2166 2010-03-12 Eli Zaretskii <eliz@gnu.org>
2167
2168 These changes remove termcap.c from the build on Posix platforms.
2169 * Makefile.in (termcapobj): Move termcap.o from here...
2170 (MSDOS_OBJ): ...to here.
2171 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
2172 now identical to when LIBS_TERMCAP is defined.
2173
2174 * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
2175
2176 * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
2177
2178 * config.in: Regenerated. (See top-level ChangeLog.)
2179
2180 2010-03-10 Chong Yidong <cyd@stupidchicken.com>
2181
2182 * Branch for 23.2.
2183
2184 2010-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
2185
2186 Cleanup setup of gl_state in various parts of the code.
2187 * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
2188 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
2189 * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
2190 (skip_chars):
2191 * regex.c (regex_compile): Use it.
2192 (re_compile_pattern): Don't set gl_state.current_syntax_table since
2193 it's now set in regex_compile when/if we need it.
2194
2195 2010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
2196
2197 Make it possible to C-g in a tight bytecode loop again (bug#5680).
2198 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
2199 (QUIT): Use it to consolidate code and remove redundancy.
2200 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
2201
2202 * regex.c (regex_compile): Setup gl_state as well.
2203
2204 * syntax.c (skip_chars): Setup gl_state (bug#3823).
2205 (in_classes): Use CONSP before XCAR/XCDR.
2206
2207 2010-03-03 Chong Yidong <cyd@stupidchicken.com>
2208
2209 * keymap.c (Fwhere_is_internal): Use Fequal to compare
2210 definitions, so that keyboard macros are correctly handled
2211 (Bug#5481).
2212
2213 2010-03-02 Eli Zaretskii <eliz@gnu.org>
2214
2215 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
2216 text that could be relocated inside the call to emacs_mule_char.
2217 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
2218 (CODING_DECODE_CHAR): Add a comment describing its purpose.
2219
2220 2010-03-02 Kenichi Handa <handa@m17n.org>
2221
2222 * character.c (parse_str_as_multibyte): Fix handling of the
2223 multibyte form of raw-bytes.
2224 (str_as_multibyte): Likewise.
2225
2226 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
2227 form of raw-bytes.
2228
2229 2010-02-28 Chong Yidong <cyd@stupidchicken.com>
2230
2231 * charset.c (load_charset_map_from_file)
2232 (load_charset_map_from_vector): Zero out allocated
2233 charset_map_entries before using them.
2234
2235 2010-02-27 Andreas Schwab <schwab@linux-m68k.org>
2236
2237 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
2238
2239 2010-02-27 Chong Yidong <cyd@stupidchicken.com>
2240
2241 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
2242 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
2243
2244 2010-02-26 Kenichi Handa <handa@m17n.org>
2245
2246 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
2247
2248 * xdisp.c (reseat_to_string): Fix previous change.
2249
2250 2010-02-26 David Reitter <david.reitter@gmail.com>
2251
2252 * nsfont.m (nsfont_draw): ns_antialias_text should be a
2253 Lisp_Object (Bug#4736).
2254
2255 2010-02-25 Kenichi Handa <handa@m17n.org>
2256
2257 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
2258
2259 2010-02-24 Jan Djärv <jan.h.d@swipnet.se>
2260
2261 * xterm.c (XTflash): Move declarations before statements.
2262
2263 * gtkutil.c (xg_get_gdk_display): Remove (unused).
2264 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
2265 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
2266 (xg_create_tool_bar): Remove unused variables.
2267 (x_wm_set_size_hint): Move declarations before statements.
2268 (xg_create_frame_widgets): Remove variable grav,
2269
2270 2010-02-21 Chong Yidong <cyd@stupidchicken.com>
2271
2272 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
2273
2274 2010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
2275
2276 * term.c (fatal): Add a final \n if needed (bug#5596).
2277
2278 2010-02-18 Chong Yidong <cyd@stupidchicken.com>
2279
2280 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
2281
2282 2010-02-18 Glenn Morris <rgm@gnu.org>
2283
2284 * callint.c (Finteractive): Doc fix.
2285
2286 2010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
2287
2288 * coding.c (record_conversion_result):
2289 Handle CODING_RESULT_INSUFFICIENT_DST.
2290 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
2291 memory allocation error.
2292
2293 2010-02-17 Kenichi Handa <handa@m17n.org>
2294
2295 * coding.c (decode_coding_ccl): Don't setup ccl program here.
2296 Fix for the case that the output buffer is fullfilled.
2297 (decode_coding): Setup ccl program here. Keep looping when the
2298 decoder stopped because the output buffer is
2299 fullfilled (bug#5534).
2300
2301 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
2302
2303 2010-02-13 Jan Djärv <jan.h.d@swipnet.se>
2304
2305 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
2306 bug #5571.
2307 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
2308 overdrawn.
2309
2310 2010-02-10 Jan Djärv <jan.h.d@swipnet.se>
2311
2312 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
2313 doing_interact here.
2314 (ice_connection_closed): New function.
2315 (x_session_check_input, smc_die_CB, ice_io_error_handler)
2316 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
2317 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
2318 returns I/O error.
2319 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
2320 bug #5512.
2321
2322 2010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
2323
2324 * nsfont.m (nsfont_open): The system's value for the font descent
2325 is negative, so round it down to avoid clipping.
2326
2327 2010-02-06 Chong Yidong <cyd@stupidchicken.com>
2328
2329 * charset.c (load_charset_map_from_file)
2330 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
2331 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
2332
2333 2010-02-05 Chong Yidong <cyd@stupidchicken.com>
2334
2335 * charset.c (load_charset_map_from_file): Allocate large
2336 charset_map_entries structure on the heap rather than the stack.
2337 (Bug#5526).
2338
2339 2010-01-31 Kenichi Handa <handa@m17n.org>
2340
2341 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
2342 size in NAME is invalid, return -1 (Bug#5396).
2343
2344 2010-01-31 Chong Yidong <cyd@stupidchicken.com>
2345
2346 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
2347 <deactivated@gmail.com> (Bug#3605).
2348
2349 2010-01-31 David De La Harpe Golden <david@harpegolden.net>
2350
2351 * fileio.c (Frename_file): Correctly rename symlinks to
2352 directories (Bug#5496).
2353
2354 2010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
2355
2356 * nsterm.m (ns_ring_bell): Handle visible bell like X.
2357
2358 2010-01-30 Andreas Schwab <schwab@linux-m68k.org>
2359
2360 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
2361
2362 2010-01-29 Chong Yidong <cyd@stupidchicken.com>
2363
2364 * frame.c (DEFAULT_ROWS): Change default to 35.
2365
2366 * xfns.c (x_default_font_parameter): Change default XFT font to
2367 monospace-10 (Bug#3643).
2368
2369 2010-01-29 Eli Zaretskii <eliz@gnu.org>
2370
2371 * w32inevt.c (key_event): Remove unnecessary comparison of
2372 event->uChar.AsciiChar with 128.
2373
2374 2010-01-28 Chong Yidong <cyd@stupidchicken.com>
2375
2376 * fileio.c (Frename_file): Fix last change (Bug#5487).
2377
2378 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
2379
2380 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
2381
2382 2010-01-28 Jan Djärv <jan.h.d@swipnet.se>
2383
2384 * xfns.c (Fx_create_frame): Remove window size matching code from
2385 2010-01-15.
2386 (x_get_current_desktop, x_get_desktop_workarea): Remove
2387
2388 2010-01-27 Jason Rumney <jasonr@gnu.org>
2389
2390 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
2391 (key_event): Use unicode for characters 128 and higher (Bug#4567).
2392
2393 2010-01-27 Kenichi Handa <handa@m17n.org>
2394
2395 * regex.c (analyse_first): Fix setting of fastmap for unibyte
2396 pattern string (Bug#4209).
2397
2398 2010-01-27 David De La Harpe Golden <david@harpegolden.net>
2399
2400 * fileio.c (Frename_file): Call copy-directory and
2401 delete-directory for directories, in order to handle cross-device
2402 renaming (Bug#3353).
2403
2404 2010-01-25 Jan Djärv <jan.h.d@swipnet.se>
2405
2406 * xfns.c (Fx_create_frame): If frame height is too big, try
2407 sizes 24 and 10. Bug #3643.
2408
2409 2010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
2410
2411 Try and fix bug#788, hopefully for real this time.
2412 * keymap.c (shadow_lookup): Add `remap' arg.
2413 (describe_map, describe_vector): Update calls to shadow_lookup.
2414 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
2415 `remapped' so this flag is applicable to `sequence'. Be careful to
2416 perform remapping during shadow_lookup check of remapped_sequences.
2417
2418 2010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
2419
2420 * image.c (png_load): Use png_sig_cmp instead of the obsolete
2421 png_check_sig, which has been removed in libpng 1.4.
2422
2423 2010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
2424
2425 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
2426 lacks this header file).
2427
2428 2010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2429
2430 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
2431 as in Emacs 22.
2432
2433 2010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2434
2435 * lisp.h (make_pure_string): String pointer arg now points to const.
2436
2437 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
2438 args now point to const.
2439
2440 2010-01-22 Eli Zaretskii <eliz@gnu.org>
2441
2442 * lread.c (Fload): Don't treat files without .elc extension as
2443 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
2444 them. (bug#5303)
2445
2446 2010-01-20 Kenichi Handa <handa@m17n.org>
2447
2448 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
2449 treat the source as actual byte sequence.
2450
2451 2010-01-19 Alan Mackenzie <acm@muc.de>
2452
2453 Fix spurious before-change-functions invocation from (insert ?\n).
2454 * textprop.c (set_text_properties): Rename parameter
2455 `signal_after_change_p' to `coherent_change_p', and make the
2456 invocation of `modify_region' conditional on it.
2457
2458 2010-01-19 Jan Djärv <jan.h.d@swipnet.se>
2459
2460 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
2461 for debug purpose.
2462 (syms_of_xsettings): Declare xft-settings.
2463
2464 2010-01-18 Chong Yidong <cyd@stupidchicken.com>
2465
2466 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
2467
2468 2010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
2469
2470 * xterm.c (event_handler_gdk): Block input (Bug#5037).
2471
2472 2010-01-16 Chong Yidong <cyd@stupidchicken.com>
2473
2474 * emacs.c (standard_args): Adjust arg priorities to reflect how
2475 they are processed in startup.el.
2476
2477 2010-01-16 Andreas Schwab <schwab@linux-m68k.org>
2478
2479 * Makefile.in (lisp, shortlisp): Update.
2480
2481 2010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
2482
2483 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
2484 code, link the new kboard into all_kboard before running Lisp code,
2485 and protect the new terminal with GCPRO (Bug#5365).
2486 (x_term_init): Remove unused var `atom'.
2487 (x_delete_display, x_delete_terminal): Remove unused var `i'.
2488
2489 2010-01-15 Jan Djärv <jan.h.d@swipnet.se>
2490
2491 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
2492 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
2493 to find out usable size of the desktop. Don't make frames larger than
2494 this. Bug #3643.
2495
2496 2010-01-15 Kenichi Handa <handa@m17n.org>
2497
2498 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
2499
2500 2010-01-15 Chong Yidong <cyd@stupidchicken.com>
2501
2502 * nsterm.m (Qnone): Define.
2503
2504 * nsfns.m (Qnone): Move definition to nsterm.m.
2505
2506 2010-01-14 Kenichi Handa <handa@m17n.org>
2507
2508 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
2509 systems.
2510
2511 2010-01-14 Kenichi Handa <handa@m17n.org>
2512
2513 Make auto-composition work on all buffers even if they are
2514 fundamental mode.
2515
2516 * composite.c (Vauto_composition_mode): New variable.
2517 (composition_compute_stop_pos): Check Vauto_composition_mode
2518 instead of Vauto_composition_function.
2519 (composition_adjust_point, Ffind_composition_internal): Likewise.
2520 (syms_of_composite): Declare Lisp variable
2521 "auto-composition-mode" here.
2522
2523 2010-01-13 Chong Yidong <cyd@stupidchicken.com>
2524
2525 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
2526 during call to vendor-specific-keysyms (Bug#5365).
2527
2528 2010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2529
2530 * keyboard.c (input_available_signal) [SYNC_INPUT]:
2531 Call SIGNAL_THREAD_CHECK (Bug#5333).
2532
2533 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
2534 Call SIGNAL_THREAD_CHECK.
2535
2536 2010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
2537
2538 Try to fix bug#5314. This is probably not the final word, tho.
2539 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
2540 recent-auto-save-p as a side-effect.
2541 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
2542 * buffer.c (Fkill_buffer, reset_buffer):
2543 * editfns.c (Fsubst_char_in_region):
2544 * fileio.c (Finsert_file_contents, Fdo_auto_save)
2545 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
2546
2547 2010-01-13 Kenichi Handa <handa@m17n.org>
2548
2549 Display buffer name, etc. in mode line by composing correctly.
2550
2551 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
2552 STRING is not nil.
2553 (display_mode_element): Adjust for the change of
2554 decode_mode_spec and display_line.
2555 (decode_mode_spec): Change arg MULTIBYTE to STRING.
2556 (display_string): Handle the case that STRING is non-null and
2557 LISP_STRING is not nil.
2558
2559 * xterm.c (x_draw_composite_glyph_string_foreground):
2560 Pay attention to s->face->overstrike.
2561
2562 * composite.c (composition_reseat_it): Don't check PT if STRING is
2563 non nil.
2564
2565 2010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2566
2567 * keyboard.c (read_char): Don't apply previous change when current
2568 buffer is unchanged by command execution.
2569
2570 2010-01-12 Jan Djärv <jan.h.d@swipnet.se>
2571
2572 * keyboard.c (read_char): Return after executing from special map.
2573
2574 2010-01-12 Glenn Morris <rgm@gnu.org>
2575
2576 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
2577 bug-gnu-emacs rather than emacs-pretest-bug.
2578
2579 2010-01-11 Chong Yidong <cyd@stupidchicken.com>
2580
2581 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
2582 initializing the Lisp variables that depend on them.
2583
2584 2010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2585
2586 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
2587 Clear areas that will not be updated after change of menu bar lines.
2588 Clear the menu bar window's current matrix when the window gets empty.
2589
2590 2010-01-09 Chong Yidong <cyd@stupidchicken.com>
2591
2592 * intervals.h, textprop.c (extend_property_ranges): Return value
2593 and args changed. Discard properties that begin at or after the
2594 new end (Bug#5306).
2595
2596 * editfns.c (Fformat): Caller changed.
2597
2598 * nsterm.m (ns_set_default_prefs): Delete function.
2599 (syms_of_nsterm): Initialize ns_command_modifier,
2600 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
2601 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
2602
2603 * xdisp.c (pos_visible_p): Check for invisible text at the correct
2604 position (Bug#4040).
2605
2606 2010-01-09 Eli Zaretskii <eliz@gnu.org>
2607
2608 * editfns.c (Ffloat_time): Doc fix.
2609
2610 2010-01-09 Jan Djärv <jan.h.d@swipnet.se>
2611
2612 * xfns.c (Fx_create_frame): Don't create frame larger than display
2613 by default bug#3643.
2614
2615 2010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2616
2617 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
2618 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
2619 windows above internal border.
2620
2621 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
2622 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
2623 windows above internal border.
2624
2625 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
2626 tool bar windows specially.
2627
2628 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
2629
2630 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
2631 specially.
2632 (XTflash): Take account of menu bar height.
2633
2634 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
2635 specially.
2636
2637 2010-01-08 Jan Djärv <jan.h.d@swipnet.se>
2638
2639 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
2640 also be true before we can return early (bug #5339).
2641
2642 2010-01-06 David Reitter <david.reitter@gmail.com>
2643
2644 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
2645 (Fns_display_usable_bounds): Rewrite, computing bounds properly
2646 (Bug#3233).
2647
2648 2010-01-06 Jan Djärv <jan.h.d@swipnet.se>
2649
2650 * font.c (font_open_entity): Enable chache and call cached_font_ok
2651 for the driver if defined.
2652 (QCuser_spec): New symbol.
2653 (font_spec_from_name): Save name as user-spec.
2654 (font_load_for_lface): Keep user-spec instead of name.
2655 (font_open_by_name): Save name as user-spec.
2656 (syms_of_font): Initialize QCuser_spec.
2657 (font_clear_prop): Clear name if it exists in font (bug#5157).
2658
2659 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
2660 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
2661 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
2662
2663 * font.h (struct font_driver): Add cached_font_ok.
2664
2665 * xterm.c (x_clear_frame): Queue draw for scroll bars.
2666
2667 2010-01-05 Jan Djärv <jan.h.d@swipnet.se>
2668
2669 * xterm.c (x_new_font): Move code for setting rows/cols before
2670 resizing ...
2671 (x_set_window_size): ... to here. Bug #2568.
2672
2673 * gtkutil.c (xg_clear_under_internal_border): New function.
2674 (xg_frame_resized, xg_frame_set_char_size):
2675 Call xg_clear_under_internal_border.
2676 (xg_update_scrollbar_pos): Clear under old scroll bar position.
2677
2678 2010-01-05 Chong Yidong <cyd@stupidchicken.com>
2679
2680 * keyboard.c (read_key_sequence): Catch keyboard switch after
2681 making a new tty frame (Bug#5095).
2682
2683 2010-01-05 Kenichi Handa <handa@m17n.org>
2684
2685 * fontset.c (fontset_find_font): Fix getting the frame pointer.
2686
2687 2010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
2688
2689 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
2690 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
2691 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
2692
2693 2010-01-03 Michael Albinus <michael.albinus@gmx.de>
2694
2695 * dbusbind.c (xd_add_watch): Improve debug message.
2696 (xd_remove_watch): Improve debug message. If DATA is the session
2697 bus, unset D-Bus session environment.
2698 (Fdbus_init_bus): Pass the bus as argument to
2699 dbus_connection_set_watch_functions. (Bug#5283)
2700
2701 2010-01-01 Chong Yidong <cyd@stupidchicken.com>
2702
2703 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
2704
2705 * lread.c (syms_of_lread): Make it clearer that these are the
2706 names of loaded files (Bug#5068).
2707
2708 * eval.c (run_hook_with_args): Handle the case where the global
2709 value has the obsolete single-function form (Bug#5026).
2710
2711 2009-12-27 Chong Yidong <cyd@stupidchicken.com>
2712
2713 * minibuf.c (Fall_completions): Minor optimization.
2714
2715 2009-12-26 Eli Zaretskii <eliz@gnu.org>
2716
2717 * .gdbinit (pgx): Fix display of composite glyphs.
2718 Display cmp.from and cmp.to as well.
2719 (pitx): Fix last change.
2720
2721 2009-12-25 Kenichi Handa <handa@m17n.org>
2722
2723 * composite.h (composition_adjust_point): Update prototype.
2724
2725 * composite.c (composition_reseat_it): Don't make a composition
2726 spanning over point.
2727 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
2728 composable characters.
2729 (composition_adjust_point): New arg NEW_PT. Callers changed.
2730
2731 * keyboard.c (command_loop_1): Force redisplay if the last point
2732 was within a composition.
2733 (adjust_point_for_property): Don't adjust point for automatic
2734 composition when called after buffer modification.
2735
2736 2009-12-19 Eli Zaretskii <eliz@gnu.org>
2737
2738 * .gdbinit (pitx): Don't use enum names, use their values.
2739 Remove reference to non-existing value GET_FROM_COMPOSITION.
2740 (pgx): Don't use enum names, use their values.
2741 (pitmethod): New helper command.
2742 (pitx): Use it to display iteration method.
2743 (pgrowit): New command.
2744
2745 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
2746
2747 Update dependencies in Makefile.in.
2748
2749 * Makefile.in (alloc.o): Depend on termhooks.h.
2750 (atimer.o): Depend on blockinput.h.
2751 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
2752 and frame.h.
2753 (callint.o): Depend on systime.h, coding.h, and composite.h.
2754 (callproc.o): Depend on buffer.h.
2755 (casefiddle.o): Don't depend on charset.h.
2756 (casetab.o): Depend on character.h.
2757 (ccl.o): Depend on composite.h.
2758 (chartab.o): Depend on ccl.h.
2759 (cm.o): Depend on dispextern.h.
2760 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
2761 (coding.o): Don't depend on $(INTERVALS_H).
2762 (composite.o): Don't depend on dispextern.h explicitly (it's in
2763 $(INTERVALS_H)). Depend on ccl.h.
2764 (data.o): Depend on systime.h, coding.h, composite.h,
2765 dispextern.h, font.h, and ccl.h.
2766 (dired.o): Depend on composite.h.
2767 (dispnew.o): Depend on coding.h. Don't depend explicitly on
2768 composite.h (it's in $(INTERVALS_H)).
2769 (doc.o): Depend on systime.h, coding.h, and composite.h.
2770 (editfns.o): Don't depend explicitly on dispextern.h.
2771 (emacs.o): Depend on frame.h and coding.h.
2772 (eval.o): Depend on coding.h, composite.h, and xterm.h.
2773 (fileio.o): Depend on frame.h and commands.h. Don't depend
2774 explicitly on dispextern.h.
2775 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
2776 composite.h.
2777 (fns.o): Don't depend on termhooks.h.
2778 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
2779 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
2780 coding.h, $(INTERVALS_H), window.h, xterm.h.
2781 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
2782 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
2783 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
2784 fontset.h, ccl.h, and ftfont.h.
2785 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
2786 (gtkutil.o): Depend on dispextern.h and composite.h.
2787 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
2788 termhooks.h, and ccl.h.
2789 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
2790 (intervals.o): Depend on systime.h and coding.h.
2791 (keyboard.o): Depend on composite.h and coding.h.
2792 (keymap.o): Depend on coding.h and frame.h.
2793 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
2794 (macros.o): Depend on systime.h, coding.h, and composite.h.
2795 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
2796 and atimer.h.
2797 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
2798 dispextern.h explicitly.
2799 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
2800 Don't depend explicitly on dispextern.h and composite.h.
2801 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
2802 (regex.o): Don't depend on charset.h.
2803 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
2804 (search.o): Don't depend explicitly on composite.h.
2805 (sound.o): Depend on atimer.h and systime.h.
2806 (syntax.o): Don't depend explicitly on composite.h.
2807 (sysdep.o): Depend on coding.h and composite.h.
2808 (term.o): Depend on xterm.h and buffer.h.
2809 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
2810 (textprop.o): Don't depend on dispextern.h explicitly.
2811 (undo.o): Depend on dispextern.h.
2812 (window.o): Depend on coding.h and termhooks.h. Don't depend on
2813 dispextern.h and composite.h explicitly.
2814 (xdisp.o): Depend on ccl.h.
2815 (xfaces.o): Depend on coding.h and ccl.h.
2816 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
2817 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
2818 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
2819 ftfont.h.
2820 (xgselect.o): New dependency.
2821 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
2822 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
2823 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
2824 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
2825 (xsmfns.o): Depend on frame.h and dispextern.h.
2826 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
2827 sysselect.h.
2828
2829 2009-12-19 Andreas Schwab <schwab@linux-m68k.org>
2830
2831 * font.c (Fclear_font_cache): Pass correct cache argument to
2832 font_clear_cache.
2833
2834 2009-12-16 Andreas Schwab <schwab@linux-m68k.org>
2835
2836 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
2837 twice.
2838
2839 2009-12-15 Chong Yidong <cyd@stupidchicken.com>
2840
2841 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
2842 calling file-remote-p. Reported by Jim Meyering.
2843
2844 2009-12-15 Michael Albinus <michael.albinus@gmx.de>
2845
2846 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
2847 avoid compiler warnings. (Bug #5217)
2848
2849 2009-12-14 Kenichi Handa <handa@m17n.org>
2850
2851 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
2852 in 8-bit encoding.
2853
2854 2009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
2855
2856 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
2857 tooltip windows.
2858
2859 2009-12-13 Jan Djärv <jan.h.d@swipnet.se>
2860
2861 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
2862 Xatom_net_window_type.
2863
2864 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
2865 Xatom_net_window_type.
2866
2867 * xterm.c (my_log_handler): New function.
2868 (x_term_init): Set my_log_handler as log handler during gtk_init
2869 so we can filter out buggy messages. (Bug #5120).
2870
2871 * xterm.c (xg_scroll_callback): Parameter list changed,
2872 use parameter GtkScrollType to determine scroll/line/page.
2873 Only allow dragging if a button < 4 is grabbed (bug #5177).
2874 (xg_end_scroll_callback): New function.
2875 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
2876 xg_create_scroll_bar.
2877
2878 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
2879 (scroll_end_callback): Remove.
2880 (xg_create_scroll_bar): Add parameter end_callback, bind it to
2881 button-release-event. Replace value-changed event with change-value,
2882 bug #5177,
2883 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
2884 bug #5177.
2885
2886 * gtkutil.h (XG_LAST_SB_DATA): Remove.
2887 (xg_create_scroll_bar): Add GCallback end_callback.
2888
2889 * xftfont.c (QClcdfilter): New variable.
2890 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
2891 (syms_of_xftfont): Initialize QClcdfilter.
2892
2893 2009-12-12 Jan Djärv <jan.h.d@swipnet.se>
2894
2895 * xsettings.c (struct xsettings): Add member seen.
2896 (parse_xft_settings): Update member seen with what we have read.
2897 Return non-zero if Xft-settings have been parsed, 0 otherwise.
2898 (apply_xft_settings): Only update Xft settings with what member seen
2899 indicates as new.
2900
2901 2009-12-12 Eli Zaretskii <eliz@gnu.org>
2902
2903 * dispextern.h (struct text_pos): Use EMACS_INT;
2904 (struct glyph): Use EMACS_INT for charpos.
2905 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
2906 region_beg_charpos, region_end_charpos,
2907 redisplay_end_trigger_charpos, and also for
2908 iterator_stack_entry.end_charpos and
2909 iterator_stack_entry.stop_charpos.
2910
2911 2009-12-12 Jan Djärv <jan.h.d@swipnet.se>
2912
2913 * gtkutil.c (scroll_end_callback): New function (bug #5177).
2914 (xg_create_scroll_bar): Call scroll_end_callback on button release
2915 event (bug #5177).
2916 (xg_event_is_for_scrollbar): != replaced with ==.
2917
2918 2009-12-12 Kenichi Handa <handa@m17n.org>
2919
2920 * ftfont.c (struct ftfont_info): New member matrix.
2921 (ftfont_open): Setup xftfont_info->matrix.
2922 (MFLTFontFT): New member matrix.
2923 (FLOOR, CEIL, ROUND): New macros.
2924 (ftfont_get_metrics): Handle matrix transformation.
2925 (ftfont_shape_by_flt): New arg matrix. Callers changed.
2926
2927 * xftfont.c (struct xftfont_info): New member matrix.
2928 (xftfont_open): Setup xftfont_info->matrix.
2929
2930 2009-12-10 Kenichi Handa <handa@m17n.org>
2931
2932 * xdisp.c (append_space_for_newline): Consider face-remapping.
2933
2934 2009-12-09 Andreas Schwab <schwab@linux-m68k.org>
2935
2936 * xsettings.c: Include "keyboard.h".
2937
2938 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
2939
2940 Fix implicit function declarations.
2941 * cmds.c: Include "frame.h".
2942 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
2943 * frame.h: Move declaration of delete_frame outside of
2944 HAVE_WINDOW_SYSTEM.
2945
2946 2009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
2947
2948 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
2949
2950 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
2951 GTK builds.
2952
2953 2009-12-07 Andreas Schwab <schwab@linux-m68k.org>
2954
2955 * unexelf.c (unexec): Don't search for .data twice.
2956
2957 2009-12-05 Chong Yidong <cyd@stupidchicken.com>
2958
2959 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
2960 if push failed.
2961 (handle_line_prefix): Set avoid_cursor_p here. Check return value
2962 of push_display_prop (Bug#5000).
2963
2964 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
2965 value of font_list_entities (Bug#5085).
2966
2967 2009-12-04 Juanma Barranquero <lekktu@gmail.com>
2968
2969 Fix `string-to-number' to deal consistently with integers and floats.
2970 * lread.c (isfloat_string): New argument ignore_trailing to accept all
2971 trailing characters, not just whitespace.
2972 (read1): Pass new arg 0 to keep old behavior.
2973 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
2974 trailing chars, as it is already done for integers. Doc fixes.
2975 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
2976
2977 2009-12-04 Eli Zaretskii <eliz@gnu.org>
2978
2979 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
2980 Delete unused enumeration value.
2981
2982 2009-12-03 Eli Zaretskii <eliz@gnu.org>
2983
2984 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
2985
2986 2009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
2987
2988 * process.c (Fmake_network_process): Fix up the tests for
2989 "connectionless socket", so they DTRT for seqpacket sockets as well.
2990
2991 2009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
2992
2993 * process.c (Qseqpacket): New symbol.
2994 (HAVE_SEQPACKET): New macro.
2995 (Fmake_network_process): Accept new :type `seqpacket'.
2996 (init_process): Add `seqpacket' feature when applicable.
2997 (syms_of_process): Initialize Qseqpacket.
2998
2999 2009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3000
3001 * font.c (font_load_for_lface, font_open_by_name): Don't store name
3002 if entity is Qnil.
3003
3004 2009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
3005
3006 * print.c (print_preprocess): Preprocess the key_and_value table of
3007 hashtables, even tho they're "hidden" (bug#5082).
3008
3009 2009-11-29 Jan Djärv <jan.h.d@swipnet.se>
3010
3011 * frame.c (frame_make_pointer_invisible)
3012 (frame_make_pointer_visible): Declare f before statements.
3013
3014 2009-11-28 Eli Zaretskii <eliz@gnu.org>
3015
3016 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
3017 omitted dependencies on lisp.h.
3018
3019 2009-11-27 Jan Djärv <jan.h.d@swipnet.se>
3020
3021 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
3022 is NULL.
3023
3024 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
3025
3026 * frame.c (frame_make_pointer_invisible)
3027 (frame_make_pointer_visible): Just return if there isn't any selected
3028 frame.
3029
3030 * search.c (simple_search): Remove warning by making *p const.
3031
3032 2009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
3033
3034 * xdisp.c (power_letter): Remove duplicate const.
3035
3036 2009-11-25 Jan Djärv <jan.h.d@swipnet.se>
3037
3038 * term.c (delete_tty): Remove check for last terminal (bug#4970).
3039
3040 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
3041 defaults (bug #5025).
3042
3043 2009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
3044
3045 * insdel.c (adjust_markers_for_delete): Move it in the
3046 right direction! (bug#4803)
3047
3048 2009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3049
3050 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
3051
3052 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
3053
3054 2009-11-24 Glenn Morris <rgm@gnu.org>
3055
3056 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
3057
3058 2009-11-23 Jan Djärv <jan.h.d@swipnet.se>
3059
3060 * Makefile.in: Must create deps for ecrt0.o in its rule.
3061
3062 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
3063 because that is what Gtk+ font dialog understands.
3064
3065 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
3066 of Fcopy_sequence.
3067 (font_open_by_name): Put name given into QCname for font-object returned.
3068
3069 * frame.c (x_set_font): Save original font name as frame parameter
3070 font-parameter.
3071
3072 * xsettings.c (set_default_xft_settings): New function.
3073 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
3074 is found.
3075
3076 2009-11-22 Andreas Schwab <schwab@linux-m68k.org>
3077
3078 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
3079 searching backwards through multibyte buffer.
3080
3081 2009-11-21 Jan Djärv <jan.h.d@swipnet.se>
3082
3083 * xterm.c: #include xgselect.h.
3084 (x_initialize): Call xgselect_initialize.
3085
3086 * xsettings.c (something_changedCB): C++ comments => C comments.
3087 (init_gconf): Do not deal with any GLib file descriptors, xg_select
3088 does that now.
3089
3090 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
3091 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
3092 (scroll_bar_button_cb): Remove.
3093 (create_menus): C++ comments => C comments. Don't bind grab-notify
3094 event.
3095 (xg_create_scroll_bar): Don't bind button-press-event and
3096 button-release-event.
3097
3098 * process.c: Include xgselect.h if defined (USE_GTK) ||
3099 defined (HAVE_GCONF).
3100 (wait_reading_process_output): Call xg_select for the same condition.
3101
3102 * xgselect.c (xg_select): New function to better integrate with
3103 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
3104
3105 * xgselect.h: New file, declare xg_select, xgselect_initialize.
3106
3107 * Makefile.in (XOBJ): Add xgselect.o.
3108
3109 2009-11-21 Andreas Schwab <schwab@linux-m68k.org>
3110
3111 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
3112 Remove ignored second argument. All callers changed.
3113 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
3114 (RE_STRING_CHAR_AND_LENGTH): Likewise.
3115 * xdisp.c (string_char_and_length): Likewise.
3116
3117 2009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
3118
3119 * xterm.c (x_new_font):
3120 * print.c (print_object):
3121 * cmds.c (Fself_insert_command): Move declarations before statements.
3122
3123 2009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
3124
3125 * s/cygwin.h: Remove unneeded linker flags.
3126
3127 2009-11-20 Jan Djärv <jan.h.d@swipnet.se>
3128
3129 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
3130
3131 * xsettings.h: Declare xsettings_get_system_font.
3132
3133 * xsettings.c (xsettings_get_system_font): New function.
3134 (init_gconf): No use initiating gconf unless we have Xft also.
3135 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
3136 HAVE_GCONF.
3137
3138 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
3139 add a blank entry so it doesn't collapse into nothing.
3140
3141 2009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
3142
3143 * lread.c (Funintern): Comment out last change.
3144
3145 2009-11-19 Richard Stallman <rms@gnu.org>
3146
3147 * lread.c (Funintern): Error if symbol is t or nil.
3148
3149 2009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
3150
3151 * insdel.c (make_gap_larger): Don't make as many assumptions about the
3152 representation of Lisp integers.
3153 Reported by MJ Chan <mjchan.inbox@gmail.com>.
3154
3155 2009-11-17 Andreas Schwab <schwab@linux-m68k.org>
3156
3157 * lisp.h: Remove declaration of Ffont_get_system_font.
3158 * xfns.c: Move include of "xsettings.h".
3159 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
3160
3161 2009-11-17 Jan Djärv <jan.h.d@swipnet.se>
3162
3163 * xsettings.c (something_changedCB, Ffont_get_system_font):
3164 Check use_system_font.
3165 (syms_of_xsettings): DEFVAR font-use-system-font.
3166
3167 2009-11-17 Andreas Schwab <schwab@linux-m68k.org>
3168
3169 * xfns.c (x_default_font_parameter): Remove dead assignment.
3170
3171 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
3172
3173 2009-11-17 Jan Djärv <jan.h.d@swipnet.se>
3174
3175 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
3176 not have FC_LCD_*. #define them if not there.
3177
3178 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
3179
3180 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
3181
3182 * xterm.c (handle_one_xevent): Call xft_settings_event for
3183 ClientMessage, PropertyNotify and DestroyNotify.
3184 (x_term_init): If we have XFT, get DPI from Xft.dpi.
3185 Call xsettings_initialize.
3186
3187 * xftfont.c (xftfont_fix_match): New function.
3188 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
3189 Call xftfont_fix_match after XftFontMatch.
3190
3191 * xfont.c (xfont_driver): Initialize all members.
3192
3193 * xfns.c (x_default_font_parameter):
3194 Try font from Ffont_get_system_font.
3195 Do not get font from x_default_parameter if we got one from
3196 Ffont_get_system_font.
3197 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
3198
3199 * w32font.c (w32font_driver): Initialize all members.
3200
3201 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
3202
3203 * lisp.h: Declare syms_of_xsettings.
3204
3205 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
3206 Handle CONFIG_CHANGED_EVENT.
3207
3208 * ftfont.c (ftfont_filter_properties): New function.
3209
3210 * frame.c (x_set_font): Remove unused variable lval.
3211
3212 * font.h (struct font_driver): Add filter_properties.
3213
3214 * font.c (font_put_extra): Don't return if val is nil, it means
3215 boolean option is off.
3216 (font_parse_fcname): Collect all extra properties in extra_props
3217 and call filter_properties for all drivers with extra_props and
3218 font as parameter.
3219 (font_open_entity): Do not use cache, it does not pick up new
3220 fontconfig settings like hinting.
3221 (font_load_for_lface): If spec had a name in it, store it in entity.
3222
3223 * emacs.c (main): Call syms_of_xsettings
3224
3225 * config.in: HAVE_GCONF is new.
3226
3227 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
3228 xsettings.o is new.
3229
3230 2009-11-17 Kenichi Handa <handa@m17n.org>
3231
3232 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
3233 back to the default font in case that no suitable font is found.
3234
3235 2009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
3236
3237 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
3238 Suggested by Chad Brown <yandros@mit.edu>.
3239 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
3240
3241 2009-11-16 Jan Djärv <jan.h.d@swipnet.se>
3242
3243 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
3244
3245 2009-11-14 Andreas Schwab <schwab@linux-m68k.org>
3246
3247 * Makefile.in: Ignore errors from mkdir when creating deps directory.
3248
3249 2009-11-14 Jan Djärv <jan.h.d@swipnet.se>
3250
3251 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
3252 has a parent.
3253
3254 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
3255 dependency files in deps/. Include those files into Makefile.
3256
3257 * config.in: Generated (AUTO_DEPEND).
3258
3259 2009-11-13 Michael Albinus <michael.albinus@gmx.de>
3260
3261 * dbusbind.c (Vdbus_registered_objects_table): Rename from
3262 Vdbus_registered_functions_table, because it contains also
3263 properties. Fix docstring.
3264 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
3265
3266 2009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
3267
3268 * alloc.c (mark_object): Don't reprocess marked strings.
3269 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
3270 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
3271
3272 2009-11-13 Kenichi Handa <handa@m17n.org>
3273
3274 * category.c (word_boundary_p): Adjust for the change of the
3275 semantics of Vword_combining_categories.
3276 (Vword_combining_categories): Describe the slight change of the
3277 semantics.
3278
3279 2009-11-13 Eli Zaretskii <eliz@gnu.org>
3280
3281 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
3282
3283 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
3284
3285 2009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
3286
3287 * xdisp.c (syms_of_xdisp): Fix typo in last change.
3288
3289 2009-11-12 Juanma Barranquero <lekktu@gmail.com>
3290
3291 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
3292
3293 2009-11-11 David Reitter <david.reitter@gmail.com>
3294
3295 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
3296 variables to fix 2009-11-09 change.
3297
3298 2009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
3299
3300 * process.c (ifflag_def): Make flag_sym constant.
3301 (Fnetwork_interface_info): Use a constant pointer.
3302 (ifflag_table):
3303 * xfns.c (cursor_bits):
3304 * xdisp.c (power_letter):
3305 * termcap.c (speeds, esctab):
3306 * sysdep.c (baud_convert):
3307 * keyboard.c (lispy_accent_codes, modifier_names):
3308 * image.c (xbm_format, xpm_format, pbm_format, png_format)
3309 (jpeg_format, tiff_format, gif_format, svg_format)
3310 (interlace_start, interlace_increment, gs_format):
3311 * gtkutil.c (separator_names):
3312 * fringe.c (swap_nibble):
3313 * fns.c (base64_value_to_char, base64_char_to_value):
3314 * fileio.c (make_temp_name_tbl):
3315 * coding.c (suffixes): Make constant.
3316
3317 * frame.c (make_initial_frame):
3318 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
3319 build_string.
3320 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
3321
3322 * s/freebsd.h:
3323 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
3324
3325 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
3326 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
3327
3328 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
3329 * xterm.c (syms_of_xterm):
3330 * xfaces.c (syms_of_xfaces):
3331 * xdisp.c (syms_of_xdisp):
3332 * lread.c (syms_of_lread):
3333 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
3334 build_string.
3335
3336 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
3337
3338 2009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
3339
3340 * fns.c (Fplist_get): Merge the active and the commented out code.
3341
3342 2009-11-10 Jan Djärv <jan.h.d@swipnet.se>
3343
3344 * keyboard.h: Declare timer_check.
3345
3346 * keyboard.c (timer_check_2): New function that does what the old
3347 timer_check did.
3348 (timer_check): Call timer_check_2 until -1 or a non-zero time is
3349 returned, i.e. don't return -1 with timers pending.
3350
3351 * process.c: Remove extern declaration of timer_check.
3352
3353 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
3354 even if timer_check returned -1.
3355
3356 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
3357 xg_dialog_data.
3358 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
3359 the event loop.
3360 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
3361 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
3362 Destroy the dialog after xg_dialog_run.
3363
3364 2009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
3365
3366 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
3367
3368 2009-11-10 Jan Djärv <jan.h.d@swipnet.se>
3369
3370 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
3371
3372 2009-11-09 Juanma Barranquero <lekktu@gmail.com>
3373
3374 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
3375
3376 2009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
3377
3378 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
3379 w32menu.c, and nsmenu.m.
3380 Simplify the obsolete case where position is nil.
3381 (cleanup_popup_menu): New function, moved from nsmenu.m.
3382 (struct skp): Remove slot `notreal'.
3383 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
3384 adjust callers.
3385 (single_menu_item): Adjust call to parse_menu_item.
3386 (syms_of_menu): Defsubr x-popup-menu.
3387 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
3388 (keymap_panes): Don't export any more.
3389 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
3390 (xmenu_show): Declare.
3391 * keyboard.c (parse_menu_item): Remove arg `notreal'.
3392 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
3393 * keyboard.h (parse_menu_item): Update declaration.
3394 * xmenu.c (Fx_popup_menu): Remove.
3395 (syms_of_xmenu): Don't defsubr x-popup-menu.
3396 * w32menu.c (Fx_popup_menu): Remove.
3397 (syms_of_w32menu): Don't defsubr x-popup-menu.
3398 * nsmenu.m (cleanup_popup_menu): Remove.
3399 (ns_menu_show): Rename from ns_popup_menu and remove all the code
3400 moved to menu.c's Fx_popup_menu.
3401 (Fx_popup_menu): Remove.
3402 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
3403 menu_items (it's done in menu.c already).
3404
3405 2009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
3406
3407 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
3408 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
3409
3410 2009-11-08 Chong Yidong <cyd@stupidchicken.com>
3411
3412 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
3413 xmenu_show. Hide any tooltip before opening a menu.
3414 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
3415 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
3416
3417 2009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
3418
3419 Let integers use up 2 tags to give them one extra bit and thus double
3420 their range.
3421 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
3422 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
3423 New macros.
3424 (enum Lisp_Type): Use them. Give explicit values.
3425 (Lisp_Type_Limit): Remove.
3426 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
3427 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
3428 Pay attention to USE_2_TAGS_FOR_INTS.
3429 (INTEGERP): Use LISP_INT_TAG_P.
3430 * fns.c (internal_equal): Simplify the default case.
3431 (sxhash): Use case_Lisp_Int.
3432 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
3433 any more.
3434 (Ftype_of): Use case_Lisp_Int.
3435 (store_symval_forwarding): Take into account the fact that Ints can
3436 now have more than one tag.
3437 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
3438 buffer_slot_type_mismatch):
3439 * xfaces.c (face_attr_equal_p):
3440 * print.c (print_object):
3441 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
3442 Use case_Lisp_Int.
3443
3444 2009-11-06 Eli Zaretskii <eliz@gnu.org>
3445
3446 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
3447
3448 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
3449 warning.
3450
3451 2009-11-06 Jan Djärv <jan.h.d@swipnet.se>
3452
3453 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
3454
3455 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
3456
3457 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
3458 ButtonPressRelease and MotionNotify (bug#4870).
3459
3460 2009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
3461
3462 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
3463
3464 * xterm.c (syms_of_xterm):
3465 * xselect.c (syms_of_xselect):
3466 * xmenu.c (syms_of_xmenu):
3467 * xfns.c (syms_of_xfns):
3468 * xfaces.c (syms_of_xfaces):
3469 * xdisp.c (syms_of_xdisp):
3470 * window.c (syms_of_window):
3471 * w32fns.c (syms_of_w32fns):
3472 * undo.c (syms_of_undo):
3473 * textprop.c (syms_of_textprop):
3474 * terminal.c (syms_of_terminal):
3475 * syntax.c (syms_of_syntax):
3476 * sound.c (syms_of_sound):
3477 * search.c (syms_of_search):
3478 * print.c (syms_of_print):
3479 * minibuf.c (syms_of_minibuf):
3480 * macros.c (syms_of_macros):
3481 * keymap.c (syms_of_keymap, initial_define_key)
3482 (initial_define_lispy_key):
3483 * keyboard.c (syms_of_keyboard):
3484 * insdel.c (syms_of_insdel):
3485 * image.c (syms_of_image):
3486 * fringe.c (syms_of_fringe):
3487 * frame.c (syms_of_frame):
3488 * fontset.c (syms_of_fontset):
3489 * fns.c (syms_of_fns):
3490 * fns.c (syms_of_fns):
3491 * fileio.c (syms_of_fileio):
3492 * fileio.c (syms_of_fileio):
3493 * eval.c (syms_of_eval):
3494 * doc.c (syms_of_doc):
3495 * dispnew.c (syms_of_display):
3496 * dired.c (syms_of_dired):
3497 * dbusbind.c (syms_of_dbusbind):
3498 * data.c (syms_of_data):
3499 * composite.c (syms_of_composite):
3500 * coding.c (syms_of_coding):
3501 * cmds.c (syms_of_cmds):
3502 * charset.c (define_charset_internal, syms_of_character):
3503 * ccl.c (syms_of_ccl):
3504 * category.c (syms_of_category, init_category_once):
3505 * casetab.c (syms_of_casetab):
3506 * casefiddle.c (syms_of_casefiddle):
3507 * callint.c (syms_of_callint):
3508 * bytecode.c (syms_of_bytecode):
3509 * buffer.c (keys_of_buffer, syms_of_buffer):
3510 * alloc.c (syms_of_alloc):
3511 * process.c (syms_of_process, init_process):
3512 * lread.c (syms_of_lread, init_obarray):
3513 * font.c (build_style_table):
3514 * emacs.c (syms_of_emacs, main): Replace calls to intern with
3515 intern_c_string, calls to make_pure_string with
3516 make_pure_c_string. Use pure_cons instead of Fcons.
3517
3518 * process.c (socket_options): Make it const.
3519 (set_socket_option, init_process): Use a const pointer.
3520
3521 * lread.c (intern_c_string): New function.
3522 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
3523 (defvar_int): Uset it. Make the name const char*.
3524
3525 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
3526 (defvar_int): Update prototypes.
3527 (DEFUN, EXFUN): Support for prototypes is now required.
3528 (intern_c_string): New prototype.
3529 (struct Lisp_Subr): Make symbol_name constant.
3530
3531 * font.c (struct table_entry): Remove unused member. Make NAMES
3532 constant.
3533 (weight_table, slant_table, width_table): Make constant.
3534
3535 * emacs.c (struct standard_args): Make name and longname constant.
3536
3537 * character.h (DEFSYM): Use intern_c_string.
3538
3539 2009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
3540
3541 * alloc.c (make_pure_c_string): New function.
3542
3543 * eval.c (Fautoload): Purecopy all arguments.
3544
3545 2009-11-05 Kenichi Handa <handa@m17n.org>
3546
3547 * fileio.c (Finsert_file_contents): Be sure set coding-system of
3548 the buffer in case of replace.
3549
3550 2009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
3551
3552 * puresize.h (BASE_PURESIZE): Increase to 1620000.
3553
3554 2009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
3555
3556 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
3557 when applicable (bug#4851).
3558
3559 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
3560 (P_): Support for prototypes is now required.
3561
3562 2009-10-31 Chong Yidong <cyd@stupidchicken.com>
3563
3564 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
3565 (Bug#4827).
3566
3567 2009-10-30 Eli Zaretskii <eliz@gnu.org>
3568
3569 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
3570
3571 2009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
3572
3573 * puresize.h (BASE_PURESIZE): Increase to 1470000.
3574
3575 * lread.c (Fload): Purecopy the file name when building
3576 Vpreloaded_file_list.
3577
3578 2009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
3579
3580 * w32fns.c (syms_of_w32fns): Change default value of
3581 w32-scroll-lock-modifier to nil. (Bug#2827)
3582
3583 2009-10-26 Juanma Barranquero <lekktu@gmail.com>
3584
3585 * minibuf.c (Fall_completions): Fix typos in docstring.
3586
3587 2009-10-26 Andreas Schwab <schwab@redhat.com>
3588
3589 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
3590
3591 2009-10-26 Juanma Barranquero <lekktu@gmail.com>
3592
3593 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
3594 For delta < 0, skip check that only makes sense when the mini-window
3595 is going to be enlarged. (Bug#4534)
3596
3597 2009-10-25 Chong Yidong <cyd@stupidchicken.com>
3598
3599 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
3600 string in menu maps (Bug#4471).
3601
3602 2009-10-24 Chong Yidong <cyd@stupidchicken.com>
3603
3604 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
3605 FRAME_NS_VIEW on terminal frames (Bug#4765).
3606
3607 2009-10-24 Andreas Schwab <schwab@linux-m68k.org>
3608
3609 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
3610 DBUS_TYPE_UINTnn separately to get proper sign extension.
3611
3612 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
3613 can properly handle unsigned types.
3614 (make_uid, make_gid): Remove.
3615
3616 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
3617 types again.
3618
3619 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
3620 (system_process_attributes): Likewise.
3621
3622 2009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
3623
3624 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
3625
3626 * eval.c (Fautoload): Purecopy the filename. Simplify.
3627
3628 * category.c (Fdefine_category): Purecopy docstring.
3629
3630 2009-10-23 Andreas Schwab <schwab@linux-m68k.org>
3631
3632 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
3633
3634 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
3635
3636 2009-10-23 Chong Yidong <cyd@stupidchicken.com>
3637
3638 * window.c (Fwindow_edges, Fwindow_pixel_edges)
3639 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
3640 (Bug#4775).
3641
3642 2009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
3643
3644 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
3645 (init_fileio_once):
3646 * lisp.h (init_fileio_once): Remove.
3647 * emacs.c (main): Don't call init_fileio_once.
3648
3649 2009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
3650
3651 * puresize.h (BASE_PURESIZE): Increase to 1430000.
3652
3653 2009-10-21 Andreas Schwab <schwab@linux-m68k.org>
3654
3655 * doprnt.c (doprnt): Fix overflow check.
3656
3657 2009-10-21 Jan Djärv <jan.h.d@swipnet.se>
3658
3659 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
3660
3661 * xterm.h (x_wait_for_event): Declare it.
3662
3663 * xterm.c (pending_event_wait): New variable.
3664 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
3665 see pending_event_wait.eventtype.
3666 (handle_one_xevent): Don't change gravity when parent changes.
3667 (x_new_font): Call change_frame_size with new rows/columns before we
3668 try to resize the frame.
3669 (x_wait_for_event): New function.
3670 (x_set_window_size_1): Don't change gravity unless change_gravity
3671 is set.
3672 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
3673 don't change frame size, instead wait for the ConfigureNotify.
3674 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
3675 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
3676 (x_initialize): Initialize pending_event_wait.
3677
3678 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
3679 size.
3680
3681 * widget.c (EmacsFrameSetValues): Add comment.
3682 (EmacsFrameSetCharSize): Just call x_set_window_size.
3683
3684 * gtkutil.c (xg_frame_set_char_size): Flush events and call
3685 x_wait_for_event.
3686 (flush_and_sync): Remove again.
3687 (xg_get_font_name): Suggest monospace if no previous font is known.
3688
3689 2009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
3690
3691 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
3692 8th bit, since that only made sense in the ASCII world (bug#4751).
3693
3694 2009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3695
3696 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
3697 processing pending events when event is filtered for input method.
3698 (Bug#3681)
3699
3700 2009-10-20 Juanma Barranquero <lekktu@gmail.com>
3701
3702 * fns.c: Add #endif accidentally removed in previous change.
3703
3704 2009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
3705
3706 * fns.c: Remove code for unsupported system: MAC_OS.
3707 * image.c: Likewise. Include setjmp.h.
3708
3709 2009-10-19 Jan Djärv <jan.h.d@swipnet.se>
3710
3711 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
3712 pixel -1 (bug #4742).
3713
3714 2009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
3715
3716 * process.c (create_pty): Remove conditionals for no longer
3717 supported systems: UNIPLUS and RTU.
3718
3719 * xterm.c:
3720 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
3721
3722 * alloc.c: Do not define struct catchtag.
3723 * eval.c: Move struct catchtag definition ...
3724 * lisp.h: ... here.
3725
3726 * image.c: Move png.h #include earlier to avoid warnings.
3727
3728 * xterm.c:
3729 * xsmfns.c:
3730 * xselect.c:
3731 * xrdb.c:
3732 * xmenu.c:
3733 * xftfont.c:
3734 * xfont.c:
3735 * xfns.c:
3736 * xfaces.c:
3737 * xdisp.c:
3738 * window.c:
3739 * widget.c:
3740 * w32xfns.c:
3741 * w32uniscribe.c:
3742 * w32term.c:
3743 * w32select.c:
3744 * w32reg.c:
3745 * w32proc.c:
3746 * w32menu.c:
3747 * w32inevt.c:
3748 * w32heap.c:
3749 * w32font.c:
3750 * w32fns.c:
3751 * w32console.c:
3752 * w32.c:
3753 * w16select.c:
3754 * vm-limit.c:
3755 * unexsol.c:
3756 * unexec.c:
3757 * unexcw.c:
3758 * unexaix.c:
3759 * undo.c:
3760 * tparam.c:
3761 * textprop.c:
3762 * terminfo.c:
3763 * terminal.c:
3764 * termcap.c:
3765 * term.c:
3766 * syntax.c:
3767 * sound.c:
3768 * sheap.c:
3769 * search.c:
3770 * scroll.c:
3771 * region-cache.c:
3772 * regex.c:
3773 * ralloc.c:
3774 * process.c:
3775 * print.c:
3776 * nsterm.m:
3777 * nsselect.m:
3778 * nsmenu.m:
3779 * nsimage.m:
3780 * nsfont.m:
3781 * nsfns.m:
3782 * msdos.c:
3783 * minibuf.c:
3784 * menu.c:
3785 * marker.c:
3786 * macros.c:
3787 * keymap.c:
3788 * keyboard.c:
3789 * intervals.c:
3790 * insdel.c:
3791 * indent.c:
3792 * gtkutil.c:
3793 * ftxfont.c:
3794 * ftfont.c:
3795 * fringe.c:
3796 * frame.c:
3797 * fontset.c:
3798 * font.c:
3799 * fns.c:
3800 * floatfns.c:
3801 * filelock.c:
3802 * fileio.c:
3803 * emacs.c:
3804 * editfns.c:
3805 * dosfns.c:
3806 * doprnt.c:
3807 * doc.c:
3808 * dispnew.c:
3809 * dired.c:
3810 * dbusbind.c:
3811 * data.c:
3812 * composite.c:
3813 * coding.c:
3814 * cmds.c:
3815 * cm.c:
3816 * chartab.c:
3817 * charset.c:
3818 * character.c:
3819 * ccl.c:
3820 * category.c:
3821 * casetab.c:
3822 * casefiddle.c:
3823 * callproc.c:
3824 * callint.c:
3825 * bytecode.c:
3826 * buffer.c:
3827 * atimer.c: Include setjmp.h. (Bug#4643)
3828
3829 2009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
3830
3831 Remove leftover table unibyte_to_multibyte_table.
3832 * character.c (unibyte_to_multibyte_table): Remove.
3833 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
3834 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
3835 * character.h (UNIBYTE_TO_CHAR): New macro.
3836 (MAKE_CHAR_MULTIBYTE): Use it.
3837 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
3838 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
3839 (message_dolog, set_message_1):
3840 * search.c (Freplace_match):
3841 * editfns.c (Fcompare_buffer_substrings):
3842 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
3843 (concat):
3844 * insdel.c (copy_text, count_size_as_multibyte):
3845 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
3846 * term.c (produce_glyphs):
3847 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
3848 * regex.c (RE_CHAR_TO_MULTIBYTE):
3849 * cmds.c (internal_self_insert):
3850 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
3851
3852 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
3853
3854 2009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
3855
3856 * puresize.h (BASE_PURESIZE): Increase to 1310000.
3857
3858 2009-10-16 Juanma Barranquero <lekktu@gmail.com>
3859
3860 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
3861
3862 2009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
3863
3864 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
3865 still needed under Tiger.
3866
3867 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
3868
3869 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
3870 __Apple__.
3871
3872 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
3873
3874 2009-10-15 Kenichi Handa <handa@m17n.org>
3875
3876 * print.c (print_object): Escape a symbol like "2E10" too.
3877
3878 2009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
3879
3880 Cleanups and changes for 64-bit compile under Snow Leopard.
3881 Based on suggestions by Erik Charlebois.
3882
3883 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
3884
3885 * nsfont.m (ns_char_width): Replace deprecated call.
3886 (ns_findfonts, nsfont_list_family): Use long format in printf, and
3887 cast argument.
3888 (nsfont_open): Use ns_char_width() everywhere.
3889 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
3890
3891 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
3892
3893 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
3894 where appropriate.
3895
3896 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
3897 where appropriate.
3898 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
3899 Use stringWithUTF8String.
3900 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
3901
3902 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
3903 Add formal protocol mention to inheritance.
3904 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
3905
3906 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
3907 Fix printf format.
3908 (ns_query_color): Use CGFloat where appropriate.
3909 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
3910 (EmacsScroller-mouseDown:): Use long format in printf, and cast
3911 argument.
3912
3913 * config.in (NS_HAVE_NSINTEGER): Drop.
3914
3915 * dbusbind.c (dbus-method-return-internal)
3916 (dbus-method-error-internal): Use long format in printf, and cast
3917 argument.
3918
3919 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
3920 in printf, and cast argument.
3921
3922 * process.c (list_processes_1): Use long format in printf, and
3923 cast argument.
3924
3925 2009-10-11 Glenn Morris <rgm@gnu.org>
3926
3927 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
3928
3929 2009-10-08 Jan Djärv <jan.h.d@swipnet.se>
3930
3931 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
3932 menu bar with a small width so it doesn't enlarge the frame.
3933
3934 2009-10-08 Juanma Barranquero <lekktu@gmail.com>
3935
3936 * fontset.c (Fset_fontset_font): Fix typos in error messages.
3937
3938 2009-10-06 Glenn Morris <rgm@gnu.org>
3939
3940 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
3941 SOME_MACHINE_LISP (this enters indirectly via DOC).
3942
3943 2009-10-05 Eli Zaretskii <eliz@gnu.org>
3944
3945 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
3946
3947 2009-10-04 Eli Zaretskii <eliz@gnu.org>
3948
3949 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
3950 Doc fix.
3951
3952 2009-10-03 Martin Rudalics <rudalics@gmx.at>
3953
3954 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
3955
3956 2009-10-02 Michael Albinus <michael.albinus@gmx.de>
3957
3958 * lisp.h (Qdelete_directory_internal): Remove, because it is not
3959 used anymore outside fileio.c.
3960
3961 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
3962
3963 2009-10-01 Juanma Barranquero <lekktu@gmail.com>
3964
3965 * lisp.h (Qdelete_directory_internal):
3966 Declare, instead of Qdelete_directory.
3967
3968 * w32fns.c (Fsystem_move_file_to_trash): Use it.
3969
3970 2009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
3971
3972 * eval.c (Fcalled_interactively_p): Add `kind' argument.
3973
3974 2009-10-01 Michael Albinus <michael.albinus@gmx.de>
3975
3976 * fileio.c (Fdelete_directory_internal): Rename from
3977 Fdelete_directory. It is not a command anymore. It has no file
3978 name handler.
3979
3980 2009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
3981
3982 * xdisp.c (get_next_display_element): Use an enum in last change.
3983
3984 2009-09-28 Kenichi Handa <handa@m17n.org>
3985
3986 * xdisp.c (get_next_display_element): Pay attention to
3987 unibyte_display_via_language_environment in handling
3988 Vnobreak_char_display.
3989
3990 2009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
3991
3992 * nsterm.h (ns_app_name): New extern variable.
3993
3994 * nsterm.m (ns_app_name): New variable.
3995 (ns_term_init): Set and use it.
3996 (ns_term_shutdown): Use it.
3997
3998 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
3999 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
4000
4001 * nsfns.m (ns_set_name_iconic, ns_set_name)
4002 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
4003 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
4004
4005 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
4006 Remove double-casting in client_data comparison.
4007
4008 2009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4009
4010 * keyboard.c (make_lispy_event): Remember last wheel direction.
4011 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
4012
4013 2009-09-26 Glenn Morris <rgm@gnu.org>
4014
4015 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
4016 internal.elc. Add term/pc-win.elc.
4017 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
4018 term/x-win.elc.
4019 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
4020 term/w32-win.elc.
4021 (NS_SUPPORT): New.
4022 (lisp): Add NS_SUPPORT.
4023 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
4024
4025 2009-09-25 David Reitter <david.reitter@gmail.com>
4026
4027 * nsmenu.m (EmacsMenu-clear): Recognize application menu
4028 on Mac OS X 10.6+ (bug#4513).
4029
4030 2009-09-24 Juanma Barranquero <lekktu@gmail.com>
4031
4032 * frame.c (xrdb_get_resource): Return nil for empty string resources;
4033 some parts of Emacs code (like font selection) don't grok them.
4034 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
4035
4036 2009-09-24 Andreas Schwab <schwab@redhat.com>
4037
4038 * coding.c (decode_coding_iso_2022): Fix operator precedence.
4039
4040 2009-09-24 Juanma Barranquero <lekktu@gmail.com>
4041
4042 * dired.c (Fdirectory_files): Fix typo in docstring.
4043
4044 2009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
4045
4046 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
4047 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
4048 (EmacsScroller-setPosition:portion:whole:): Remove -display call
4049 under GNUstep.
4050 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
4051
4052 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
4053 glyph advancement.
4054
4055 2009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
4056
4057 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
4058 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
4059
4060 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
4061 deleted (bug #4492).
4062
4063 * nsfont.m (Vns_reg_to_script): New lisp variable.
4064 (syms_of_nsfont): Declare it.
4065 (ns_registry_to_script): New function.
4066 (ns_get_req_script): Call it.
4067 (ns_findfonts): Don't give up on non-unicode registry.
4068
4069 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
4070
4071 2009-09-20 Tom Tromey <tromey@redhat.com>
4072
4073 * eval.c (find_handler_clause): Make stack-trace-on-error work in
4074 batch mode (bug#4228).
4075
4076 2009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
4077
4078 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
4079 carefully. (Bug #4339)
4080
4081 2009-09-18 Chong Yidong <cyd@stupidchicken.com>
4082
4083 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
4084
4085 2009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
4086
4087 * emacs.c (inhibit_x_resources): Update doc string for NS.
4088 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
4089 legacy code for -NXHost. Fix error printf in daemon case.
4090
4091 * nsterm.h (ns_no_defaults): Remove.
4092
4093 * nsterm.m (ns_no_defaults): Remove.
4094 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
4095 (ns_use_qd_smoothing): Remove legacy variable.
4096 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
4097 don't update the NSWindow itself.
4098 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
4099 state detection and store user rect ourselves. (Bug #3581)
4100
4101 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
4102 ns_use_qd_smoothing.
4103
4104 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
4105 platform versions. Drop support for emacs-20-style face specs.
4106 (x-close-connection): Drop PSFlush() under OS X.
4107 (x-focus-frame): Activate the app first. (Bug #4180)
4108
4109 2009-09-17 Juanma Barranquero <lekktu@gmail.com>
4110
4111 * emacs.c (inhibit_x_resources): New variable.
4112 (main) [HAVE_NS]: Don't process --quick command line option.
4113 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
4114
4115 * lisp.h (inhibit_x_resources): Declare it extern.
4116
4117 * w32reg.c (x_get_string_resource):
4118 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
4119
4120 2009-09-17 Eli Zaretskii <eliz@gnu.org>
4121
4122 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
4123 Add lisp/term/internal.elc.
4124
4125 2009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
4126
4127 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
4128 (bug#4461).
4129
4130 2009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
4131
4132 * puresize.h (BASE_PURESIZE): Increase to 1290000.
4133
4134 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
4135 (OBJECTS_MACHINE): Remove, unused.
4136
4137 2009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
4138
4139 * frame.c (x_get_resource_string): Remove unused.
4140
4141 2009-09-15 Jan Djärv <jan.h.d@swipnet.se>
4142
4143 * xterm.c (x_new_font): Call change_frame_size before calling
4144 x_set_window_size, in case frame size won't change.
4145
4146 * frame.c (x_set_font): Remove dead code.
4147
4148 2009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
4149
4150 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
4151
4152 2009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
4153
4154 * lread.c (Fload): Don't output a message after loading an obsolete
4155 package any more (done in Lisp now).
4156
4157 2009-09-12 Chong Yidong <cyd@stupidchicken.com>
4158
4159 * fns.c (syms_of_fns): Doc fix (Bug#4227).
4160
4161 2009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
4162
4163 * keymap.c (Fwhere_is_internal): Use nconc2.
4164
4165 2009-09-11 Alan Mackenzie <acm@muc.de>
4166
4167 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
4168 batch mode.
4169
4170 2009-09-11 Andreas Schwab <schwab@linux-m68k.org>
4171
4172 * xdisp.c (display_mode_element): Detect cycles.
4173
4174 2009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
4175
4176 * keymap.c (where_is_internal): Don't erroneously return nil right after
4177 filling the cache.
4178 (where_is_internal_1): Fix up typo.
4179
4180 2009-09-11 Glenn Morris <rgm@gnu.org>
4181
4182 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
4183 share a common doc-string.
4184
4185 2009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
4186
4187 * keymap.c (get_keymap): Return the actual keymap symbol rather than
4188 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
4189
4190 * keymap.c (QCadvertised_binding): New constant.
4191 (syms_of_keymap): Initialize it.
4192 (Fwhere_is_internal): Try and use bindings from :advertised-binding
4193 if applicable.
4194
4195 2009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
4196
4197 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
4198 (parse_menu_item): Streamline since bindings are recomputed all the
4199 time anyway. Don't bother checking Vdefine_key_rebound_commands any
4200 more and don't support lmenu's menu-alias any more either.
4201
4202 * keymap.c (where_is_internal_data): Make noindirect a boolean.
4203 (where_is_internal): Strip it down to only traverse the keymaps.
4204 Move the cache handling from Fwhere_is_internal to here.
4205 (Fwhere_is_internal): Move the handling of remapping and the choice of
4206 the best binding from where_is_internal to here.
4207 Unify the cached/noncached paths, so remapping is also handled
4208 correctly when the cache is used, and so the cache can be used to
4209 speed up remap-handling when applicable.
4210 Give preference to non-remapped bindings.
4211 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
4212 non-remapped bindings.
4213 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
4214 command remapping.
4215
4216 * xdisp.c (display_mode_element): Move list length limit from 50 to
4217 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
4218
4219 2009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
4220
4221 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
4222
4223 2009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
4224
4225 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
4226 (Bug#4334)
4227
4228 * keymap.c (where_is_internal): Filter out shadowed remappings.
4229 Assume that where_is_internal returns unshadowed bindings to simplify
4230 the code and get rid of the gotos. Use ASIZE.
4231
4232 2009-09-04 Jan Djärv <jan.h.d@swipnet.se>
4233
4234 * xterm.c (x_focus_changed): If we get a focusout and pointer
4235 is invisible, make it visible.
4236
4237 * xterm.h: Remove condition for declaration of
4238 x_*_window_to_frame.
4239
4240 2009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
4241
4242 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
4243 initial terminal as well.
4244
4245 2009-09-02 Jan Djärv <jan.h.d@swipnet.se>
4246
4247 * xterm.h: Rename x_non_menubar_window_to_frame to
4248 x_menubar_window_to_frame.
4249
4250 * xterm.c: Remove declarations also in xterm.h.
4251 (XTmouse_position): Do not return valid positions
4252 for clicks in the menubar and the toolbar for Gtk+.
4253
4254 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
4255 if the widget for the event has the same top level as a frame,
4256 return the frame.
4257 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
4258 internal windows, bug #4122.
4259 (x_non_menubar_window_to_frame): Remove.
4260
4261 2009-09-02 Glenn Morris <rgm@gnu.org>
4262
4263 * buffer.c (default-major-mode): Move most of the doc from here...
4264 (major-mode): ... to here.
4265
4266 2009-08-30 Nick Roberts <nickrob@snap.net.nz>
4267
4268 * process.c (wait_reading_process_output): Keep the descriptor
4269 when pty is used by a non-child process, e.g., in I/O buffer of
4270 GDB this allows inferior to be restarted.
4271
4272 2009-08-29 Eli Zaretskii <eliz@gnu.org>
4273
4274 * xdisp.c (redisplay_internal): Remove redundant test and collapse
4275 both branches into one.
4276
4277 2009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
4278
4279 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
4280 (main): Use enable-multibyte-characters rather than
4281 default-enable-multibyte-characters. Output a warning message when
4282 running a unibyte session.
4283
4284 2009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4285
4286 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
4287 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
4288 (copy_data_segment): Also copy __program_vars section.
4289 (copy_dyld_info) [LC_DYLD_INFO]: New function.
4290 (dump_it) [LC_DYLD_INFO]: Use it.
4291
4292 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
4293
4294 2009-08-28 Eli Zaretskii <eliz@gnu.org>
4295
4296 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
4297 $(SRC)/buildobj.h.
4298 (buildobj.h): Renamed from $(SRC)/buildobj.h.
4299 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
4300 $(SRC)/buildobj.h.
4301 (clean): Add buildobj.h.
4302
4303 2009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
4304
4305 * print.c (print_object): Set escapeflag to 1 when printing
4306 hashtable keys and values.
4307
4308 2009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
4309
4310 * lread.c (read_integer): Use doubles (and potentially return a float
4311 number) as we do in string-to-number.
4312 (read1): Use strtol to read integers, signal errors on strtol's
4313 overflow and use floats if strtol's output is too large for
4314 Elisp integers.
4315
4316 2009-08-27 Eli Zaretskii <eliz@gnu.org>
4317
4318 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
4319 (make-buildobj-SH): Fix last change.
4320 (SRC): Move to before where it's first used.
4321
4322 2009-08-27 Kenichi Handa <handa@m17n.org>
4323
4324 * process.c (send_process): Use encode_coding_object instead of
4325 encode_coding_string to perform eol-conversion even if the string
4326 is unibyte.
4327
4328 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
4329 character.
4330
4331 * cmds.c (Fself_insert_command): Avoid unnecessay
4332 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
4333
4334 2009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
4335
4336 * callproc.c (Fcall_process): Remove always true #if.
4337
4338 * lisp.h: Replace #if 0 code for checking with text pointing to
4339 the --enable-checking configure flag.
4340
4341 * emacs.c (main): Mention the --enable-profiling configure flag
4342 instead of using CFLAGS.
4343
4344 2009-08-26 Ken Raeburn <raeburn@raeburn.org>
4345
4346 * Makefile.in (buildobj.h): New target.
4347 (doc.o): Depend on it.
4348 (temacs${EXEEXT}): Don't generate buildobj.lst.
4349 (mostlyclean): Delete buildobj.h, not buildobj.lst.
4350 * makefile.w32-in ($(SRC)/buildobj.h): New target.
4351 ($(BLD)/doc.$(O)): Depend on it.
4352 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
4353 provided by Eli Zaretskii.)
4354 ($(TEMACS)): Don't generate buildobj.lst.
4355 * doc.c: Include buildobj.h.
4356 (buildobj): New static variable.
4357 (Fsnarf_documentation): Use it, instead of opening and reading
4358 buildobj.lst.
4359
4360 2009-08-25 Michael Albinus <michael.albinus@gmx.de>
4361
4362 * dbusbind.c (Fdbus_call_method)
4363 (Fdbus_call_method_asynchronously): Use English numeric format for
4364 timeout values in doc string.
4365
4366 2009-08-25 Kenichi Handa <handa@m17n.org>
4367
4368 * alloc.c (mark_char_table): New function.
4369 (mark_object): Use mark_char_table for a char-table.
4370
4371 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
4372 (CHAR_TABLE_REF): Use it.
4373
4374 2009-08-23 Ken Raeburn <raeburn@raeburn.org>
4375
4376 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
4377 before invoking the newly build emacs to check for load-path
4378 shadowing.
4379
4380 2009-08-22 Glenn Morris <rgm@gnu.org>
4381
4382 * Makefile.in (bootstrap_exe): New variable.
4383 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
4384 Use ${bootstrap_exe}.
4385
4386 2009-08-22 Eli Zaretskii <eliz@gnu.org>
4387
4388 * coding.h (encode_coding_string): Don't encode unibyte strings.
4389 (Bug#4047)
4390
4391 2009-08-22 Michael Albinus <michael.albinus@gmx.de>
4392
4393 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
4394
4395 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
4396 intended as hotfix only.
4397 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
4398
4399 2009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
4400
4401 * nsterm.m (ns_get_color): Update documentation properly for last
4402 change, and clean up loose ends in the code left by it. Fix
4403 longstanding bug with 16-bit hex parsing, and add support for
4404 yet another X11 format (rgb:r/g/b) for compatibility.
4405 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
4406 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
4407
4408 2009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
4409
4410 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
4411
4412 2009-08-20 Michael Albinus <michael.albinus@gmx.de>
4413
4414 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
4415 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
4416 (xd_initialize, xd_pending_messages): Check, whether
4417 $DBUS_SESSION_BUS_ADDRESS is set.
4418
4419 2009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4420
4421 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
4422
4423 * nsterm.m (ns_get_color): Remove incompatible color formats again.
4424
4425 2009-08-20 Glenn Morris <rgm@gnu.org>
4426
4427 * emacs.c (system-type): Doc fix.
4428
4429 2009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
4430
4431 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
4432 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
4433
4434 2009-08-18 Michael Albinus <michael.albinus@gmx.de>
4435
4436 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
4437 New functions.
4438 (xd_initialize): Revert change from 2009-08-16.
4439
4440 2009-08-18 Kenichi Handa <handa@m17n.org>
4441
4442 * fontset.c (Ffontset_font): If a nil element is found in a
4443 font-group vector, return nil.
4444
4445 2009-08-17 Chong Yidong <cyd@stupidchicken.com>
4446
4447 * process.c (status_notify): Don't perform redisplay.
4448 (Fdelete_process, list_processes_1, process_send_signal):
4449 Expliticly perform redisplay.
4450 (wait_reading_process_output): Always check process status, but
4451 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
4452
4453 2009-08-17 Ken Raeburn <raeburn@raeburn.org>
4454
4455 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
4456 (XFLOAT_INIT): New macro for storing a float value.
4457 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
4458 * fns.c (sxhash): Copy out the value of a float in order to
4459 examine its bytes.
4460 * dbusbind.c (xd_append_arg): Likewise.
4461
4462 * emacs.c (main): Don't call syms_of_data twice.
4463
4464 2009-08-16 Michael Albinus <michael.albinus@gmx.de>
4465
4466 * dbusbind.c (xd_initialize): Add connection file descriptor to
4467 input_wait_mask, in order to let select() detect, whether a new
4468 message has been arrived.
4469 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
4470
4471 2009-08-15 Michael Albinus <michael.albinus@gmx.de>
4472
4473 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
4474 New functions.
4475
4476 * lisp.h (xd_pending_messages): Declare.
4477
4478 * keyboard.c (readable_events): Call xd_pending_messages.
4479
4480 2009-08-15 Chong Yidong <cyd@stupidchicken.com>
4481
4482 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
4483
4484 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
4485
4486 * buffer.c (set_buffer_internal_1)
4487 (swap_out_buffer_local_variables): Check for unbound local
4488 variables (Bug#4138).
4489
4490 2009-08-14 Eli Zaretskii <eliz@gnu.org>
4491
4492 * process.c (create_pty): Fix last change.
4493
4494 2009-08-13 Chong Yidong <cyd@stupidchicken.com>
4495
4496 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
4497 (xbm_load_image): Caller changed.
4498 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
4499
4500 2009-08-13 Nick Roberts <nickrob@snap.net.nz>
4501
4502 * process.c (create_pty): New function.
4503 (Fstart_process): Use it to allow Emacs to just associate a pty
4504 with the buffer. See associated change in gdb-mi.el.
4505 (list_processes_1): Deal with no program name.
4506 (start_process_unwind): Use pid == -2 to mean no process.
4507
4508 2009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
4509
4510 * cmds.c (nonundocount): New global variable.
4511 (keys_of_cmds): Initialize it.
4512 (Fself_insert_command): Use it to combine upto 20 sequential chars
4513 into a single undo entry, just like the Qself_insert_command code in
4514 keyboard.c does.
4515 Call frame_make_pointer_invisible, also like the Qself_insert_command
4516 code in keyboard.c does.
4517 * keyboard.c (command_loop_1): Use the new global nonundocount rather
4518 than its own local replacement for it.
4519
4520 2009-08-10 Ken Raeburn <raeburn@raeburn.org>
4521
4522 * fns.c (concat): Don't re-set string length to its current value.
4523
4524 * coding.h (decode_coding_string, encode_coding_string):
4525 Use SBYTES macro.
4526
4527 * doprnt.c (doprnt_lisp): Delete unused function.
4528 (doprnt): Merge with doprnt1, discarding lispstrings code.
4529 * lisp.h (doprnt_lisp): Don't declare.
4530
4531 2009-08-07 Juri Linkov <juri@jurta.org>
4532
4533 * puresize.h (BASE_PURESIZE): Increase to 1270000.
4534
4535 2009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
4536
4537 * print.c (syms_of_print): Undo previous change.
4538
4539 2009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
4540
4541 * lread.c (read1, syms_of_lread): Read hashtables back from the
4542 readable format.
4543
4544 * print.c (print_preprocess, print_object): Print hashtables fully
4545 and readably.
4546 (syms_of_print): Provide 'hashtable-print-readable.
4547
4548 2009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
4549
4550 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
4551 no family set.
4552 (nsfont_open): Handle case when entity has no family.
4553
4554 2009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
4555
4556 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
4557 element, not a list, for match case.
4558
4559 2009-07-28 Kenichi Handa <handa@m17n.org>
4560
4561 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
4562 rigidly.
4563
4564 * xfont.c (xfont_list_pattern): Don't ignore the return value of
4565 font_parse_xlfd. Check font properties more rigidly.
4566
4567 2009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
4568
4569 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
4570 bsd-common.h.
4571
4572 2009-07-27 Kenichi Handa <handa@m17n.org>
4573
4574 * xfaces.c (face_with_height): Call font_clear_prop.
4575
4576 2009-07-26 Chong Yidong <cyd@stupidchicken.com>
4577
4578 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
4579
4580 * xterm.c (x_term_init): Use Qx.
4581
4582 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
4583
4584 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4585 (ns_get_color): Revert 2009-07-16 change.
4586
4587 2009-07-25 Eli Zaretskii <eliz@gnu.org>
4588
4589 * lread.c (syms_of_lread) <force_load_messages>: New variable.
4590 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
4591
4592 2009-07-25 Ken Raeburn <raeburn@raeburn.org>
4593
4594 * coding.h (decode_coding_string, encode_coding_string):
4595 Use SCHARS macro.
4596
4597 * lread.c: Rewrite 2009-07-21 changes.
4598 (load_depth): Delete.
4599 (Qload_in_progress): New variable.
4600 (load_unwind): Don't reference load_depth or load_in_progress.
4601 (Fload): Likewise; specbind Qload_in_progress instead.
4602 (init_lread): Don't initialize load_depth.
4603 (syms_of_lread): Initialize and protect Qload_in_progress.
4604
4605 2009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
4606
4607 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
4608
4609 2009-07-23 Yavor Doganov <yavor@gnu.org>
4610
4611 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
4612
4613 2009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
4614
4615 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
4616 Bugs 3792, 3720, 2402.
4617 (ns_lookup_indexed_color): Check for bad index.
4618 (ns_index_color): Init unused slot to 0.
4619 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
4620 Bug 3714, possibly 3082.
4621
4622 2009-07-22 Jason Rumney <jasonr@gnu.org>
4623
4624 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
4625 Position IME window at cursor (Bug#2570).
4626 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
4627 (globals_of_w32fns): Dynamically load functions required above.
4628
4629 * w32term.c (w32_draw_window_cursor): Send message to reposition
4630 any IME window.
4631
4632 2009-07-21 Chong Yidong <cyd@stupidchicken.com>
4633
4634 * fileio.c: Revert 2009-07-16 changes.
4635 (Vauto_save_include_big_deletions): New variable.
4636 (Fdo_auto_save): Disable auto-save only if
4637 auto-save-include-big-deletions is nil.
4638
4639 2009-07-21 Chong Yidong <cyd@stupidchicken.com>
4640
4641 * xdisp.c (move_it_to): For continued lines ending in a tab, take
4642 the overflowed pixels into account (Bug#3879).
4643
4644 2009-07-21 Ken Raeburn <raeburn@raeburn.org>
4645
4646 * lread.c (load_depth): New variable.
4647 (Fload, load_unwind, init_lread): Set it to the load recursion
4648 depth; set load_in_progress as a simple boolean based on the
4649 current load_depth. (Bug#3892)
4650
4651 2009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
4652
4653 * nsfont.m (ns_has_attribute): Remove.
4654 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
4655
4656 2009-07-18 Juri Linkov <juri@jurta.org>
4657
4658 * process.c (Fset_process_query_on_exit_flag): Mention killing
4659 a buffer in docstring.
4660
4661 2009-07-17 Kenichi Handa <handa@m17n.org>
4662
4663 * casetab.c (shuffle): Fix the logic of setting up the cycle.
4664
4665 2009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4666
4667 * nsfns.m (Fns_set_alpha): Remove function.
4668 (syms_of_nsfns): Don't defsubr it.
4669
4670 * nsterm.m (ns_get_color): Remove incompatible color formats.
4671 (ns_color_to_lisp): Generate #rrggbb color format string.
4672
4673 2009-07-16 Richard Stallman <rms@gnu.org>
4674
4675 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
4676 (Fset_buffer_auto_saved): Handle save_length = -2.
4677
4678 2009-07-16 Chong Yidong <cyd@stupidchicken.com>
4679
4680 * xterm.c (Qx_gtk_map_stock): New var.
4681
4682 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
4683 of calling intern each time.
4684
4685 2009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4686
4687 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
4688 does tiling.
4689
4690 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
4691
4692 2009-07-14 Kenichi Handa <handa@m17n.org>
4693
4694 * font.c (font_vconcat_entity_vectors): New function.
4695 (struct font_sort_data): New member font_driver_preference.
4696 (font_compare): Check font_driver_preference.
4697 (font_sort_entities): The format of the first argument changed.
4698 (font_delete_unmatched): Likewise.
4699 (font_list_entities): The return type changed.
4700 (font_select_entity): The format of the second argument changed.
4701 (font_find_for_lface): Adjuste for the above changes.
4702 Don't suppress the checking of C even if the repertory supports it.
4703 (Flist_fonts): Adjust for the above changes.
4704
4705 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
4706 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
4707 Reject a font who has adstyle property that is different from a
4708 langname derived from registry property.
4709 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
4710
4711 2009-07-13 Eli Zaretskii <eliz@gnu.org>
4712
4713 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
4714 local copy of dirfilename.
4715
4716 2009-07-13 Kenichi Handa <handa@m17n.org>
4717
4718 * chartab.c (sub_char_table_ref_and_range): Fix the range check
4719 against max_char.
4720
4721 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
4722 calling XSYMBOL (sym).
4723
4724 2009-07-11 Eli Zaretskii <eliz@gnu.org>
4725
4726 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
4727 New function.
4728 (directory_files_internal) [WINDOWSNT]:
4729 Bind w32-get-true-file-attributes to either t or nil, depending whether
4730 the filesystem of the directory is fast or slow.
4731
4732 * w32.c (logon_network_drive): Don't assume PATH is an absolute
4733 file name.
4734 (is_slow_fs): New function.
4735 (stat): Use it to determine whether to issue more system calls to
4736 get accurate file attributes, when w32-get-true-file-attributes is
4737 `local'.
4738
4739 2009-07-10 Jan Djärv <jan.h.d@swipnet.se>
4740
4741 * xfns.c (Fx_select_font): Remember last font selected in
4742 x_last_font_name and use that the next time. Also try the frame
4743 parameter font-parameter as default to the font dialog.
4744
4745 2009-07-10 Kenichi Handa <handa@m17n.org>
4746
4747 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
4748
4749 2009-07-09 Eli Zaretskii <eliz@gnu.org>
4750
4751 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
4752
4753 * w32.c (stat): Treat UNC file names as residing on remote
4754 drives. (Bug#3542)
4755
4756 2009-07-09 Kenichi Handa <handa@m17n.org>
4757
4758 * fontset.c (fontset_find_font): Fix previous change.
4759
4760 2009-07-08 Michael Albinus <michael.albinus@gmx.de>
4761
4762 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
4763 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
4764 error flag.
4765
4766 2009-07-08 Kenichi Handa <handa@m17n.org>
4767
4768 * fontset.c (fontset_find_font): Fix the logic of handling
4769 charset_matched.
4770 (font_for_char): Delete unused var.
4771 (generate_ascii_font_name): Delete it.
4772
4773 * coding.h (JIS_TO_SJIS2): Fix the code range check.
4774
4775 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
4776 (encode_coding_sjis): Fix the code range check.
4777
4778 2009-07-07 Chong Yidong <cyd@stupidchicken.com>
4779
4780 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
4781 (Fexpand_file_name): Copy string data properly (Bug#3772).
4782
4783 2009-07-07 Jan Djärv <jan.h.d@swipnet.se>
4784
4785 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
4786 first MapNotify.
4787
4788 2009-07-07 Kenichi Handa <handa@m17n.org>
4789
4790 * character.h (unibyte_has_multibyte_table): Delete extern.
4791 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
4792
4793 * charset.c (Fset_charset_priority): Update charset_unibyte.
4794 (syms_of_charset): Initialize charset_unibyte.
4795
4796 * character.c (unibyte_has_multibyte_table): Delete it.
4797 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
4798 charset_unibyte.
4799 (multibyte_char_to_unibyte_safe): Likewise.
4800 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
4801
4802 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
4803 (x_produce_glyphs): Likewise.
4804
4805 * .gdbinit (xcharset): Fix the treating $arg0.
4806
4807 2009-07-04 Eli Zaretskii <eliz@gnu.org>
4808
4809 Emulation of `getloadavg' on MS-Windows.
4810 * w32.c: Include float.h.
4811 (g_b_init_get_native_system_info, g_b_init_get_system_times)
4812 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
4813 (get_native_system_info, get_system_times): New functions.
4814 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
4815 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
4816 (globals_of_w32): Initialize g_b_init_get_native_system_info,
4817 g_b_init_get_system_times, and num_of_processors.
4818
4819 2009-07-03 Jason Rumney <jasonr@gnu.org>
4820
4821 * w32term.c (w32_initialize): Use standard types.
4822
4823 2009-07-03 Eli Zaretskii <eliz@gnu.org>
4824
4825 * dired.c (Ffile_attributes): Decode user and group names by the
4826 locale's encoding. (Bug#3443)
4827
4828 2009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
4829
4830 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
4831 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
4832
4833 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
4834
4835 * term.c (init_tty): Remove spurious #ifdef.
4836
4837 * m/mips.h: Mention this file is also used for netbsd.
4838 * m/pmax.h: Remove file.
4839
4840 2009-07-03 Jan Djärv <jan.h.d@swipnet.se>
4841
4842 * xterm.h (struct x_display_info): Add invisible_cursor.
4843 (struct x_output): Add current_cursor.
4844
4845 * xterm.c (XTtoggle_invisible_pointer): New function.
4846 (x_define_frame_cursor): Don't define cursor if invisible or the
4847 same as before. Set current_cursor.
4848 (x_create_terminal): Set toggle_invisible_pointer_hook.
4849
4850 * xfns.c (make_invisible_cursor): New function.
4851 (x_set_mouse_color): Call make_invisible_cursor.
4852 Set current_cursor.
4853 (x_window): Set current_cursor.
4854
4855 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
4856
4857 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
4858 inserting a character.
4859 (read_avail_input): Call frame_make_pointer_visible.
4860
4861 * frame.c (Vmake_pointer_invisible): New variable.
4862 (frame_make_pointer_invisible, frame_make_pointer_visible):
4863 New functions.
4864 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
4865
4866 * frame.h: Declare frame_make_pointer_invisible and
4867 frame_make_pointer_visible.
4868 (struct frame): Add pointer_invisible.
4869
4870 2009-07-02 Jan Djärv <jan.h.d@swipnet.se>
4871
4872 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
4873 frame isn't visible.
4874 (xg_frame_resized): If width/height is -1, get size of window
4875 from X server.
4876
4877 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
4878 for MapNotify.
4879
4880 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
4881 here or call change_frame_size. Just call flush_and_sync.
4882 (flush_and_sync): Reintroduce.
4883
4884 2009-07-01 Jan Djärv <jan.h.d@swipnet.se>
4885
4886 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
4887
4888 * xterm.c (x_handle_net_wm_state): Also look for sticky.
4889 (x_term_init): Initialize Xatom_net_wm_state_sticky.
4890
4891 * frame.h: Declare Qsticky.
4892
4893 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
4894
4895 * nsfns.m (ns_frame_parm_handlers): Ditto.
4896
4897 * frame.c: Declare Qsticky.
4898 (frame_parms): Add sticky.
4899
4900 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
4901
4902 * xterm.h: Declare x_set_sticky.
4903
4904 * xterm.c (x_set_sticky): New function.
4905
4906 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
4907 (xg_tool_bar_menu_proxy): Attach enter/leave events to
4908 xg_tool_bar_proxy_help_callback.
4909
4910 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
4911
4912 * frame.c: Qmaximized is new.
4913 (x_set_frame_parameters): Do not handle fullscreen specially.
4914 Only set width and height if explicitly set.
4915 (x_set_fullscreen): Handle Qmaximized.
4916 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
4917 (syms_of_frame): Initialize Qmaximized.
4918
4919 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
4920 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
4921
4922 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
4923 for Expose event. Add call to x_check_fullscreen for MapNotify event.
4924 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
4925 set gravity to NorthWestGravity when USE_GTK.
4926 (set_wm_state): New function.
4927 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
4928 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
4929 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
4930 or the case when no window manager is running. That means remove calls
4931 to x_real_positions and x_fullscreen_adjust.
4932
4933 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
4934 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
4935 flush_and_sync.
4936 (xg_height_changed): New function.
4937 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
4938 and gtk_window_set_policy. Set frame gravity after parsing the
4939 geometry string.
4940 (xg_update_frame_menubar, free_frame_menubar)
4941 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
4942 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
4943 Remove calls to xg_frame_set_char_size.
4944
4945 2009-07-01 Kenichi Handa <handa@m17n.org>
4946
4947 * keyboard.c (decode_keyboard_code): New function.
4948 (tty_read_avail_input): Decode the input bytes if necessary.
4949
4950 * coding.c (setup_coding_system):
4951 Initialize coding->carryover_bytes to 0.
4952 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
4953 use Qno_conversion.
4954
4955 2009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4956
4957 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
4958
4959 2009-06-30 Chong Yidong <cyd@stupidchicken.com>
4960
4961 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
4962
4963 2009-06-30 Jason Rumney <jasonr@gnu.org>
4964
4965 * w32term.c (w32_initialize): Use GetModuleHandle for library that
4966 is already loaded.
4967 Set user model ID if supported (bug#1849).
4968
4969 2009-06-29 Jim Meyering <meyering@redhat.com>
4970
4971 Remove useless if-before-xfree test.
4972 * nsfont.m (nsfont_close): Remove useless test.
4973 * term.c (delete_tty): Likewise.
4974 * w32.c (system_process_attributes): Likewise.
4975 * w32font.c (w32font_close): Likewise.
4976 * xfaces.c (x_free_gc): Likewise.
4977 * xselect.c (buffer): Likewise.
4978
4979 2009-06-28 Andreas Schwab <schwab@linux-m68k.org>
4980
4981 * process.c (send_process): Keep decoded string in a local
4982 variable and protect it from GC. (Bug#3521)
4983
4984 2009-06-28 Eli Zaretskii <eliz@gnu.org>
4985
4986 * term.c (create_tty_output) [MSDOS]: #ifdef away.
4987 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
4988
4989 2009-06-28 Chong Yidong <cyd@stupidchicken.com>
4990
4991 * xdisp.c (start_display, handle_face_prop)
4992 (move_it_vertically_backward, cursor_row_fully_visible_p)
4993 (redisplay_window, try_window_id, produce_image_glyph):
4994 Delete some #ifdef-ed out code chunks that are now obsolete.
4995
4996 * xterm.c (x_update_window_begin, x_new_focus_frame)
4997 (x_scroll_bar_handle_click, handle_one_xevent)
4998 (handle_one_xevent, XTread_socket, x_focus_on_frame)
4999 (x_make_frame_visible, x_make_frame_invisible)
5000 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
5001 code chunks that are now obsolete.
5002
5003 2009-06-28 Michael Albinus <michael.albinus@gmx.de>
5004
5005 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
5006 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
5007 for hours, when optimzation is enabled.
5008 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
5009 (xd_read_message): Make them static.
5010
5011 2009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
5012
5013 * term.c (turn_on_face): Allow simultaneously bold and dim
5014 terminal faces (Bug#3530).
5015
5016 2009-06-27 Chong Yidong <cyd@stupidchicken.com>
5017
5018 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
5019
5020 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
5021 truncation glyphs (Bug#3686).
5022
5023 2009-06-27 Glenn Morris <rgm@gnu.org>
5024
5025 * m/pmax.h: Restore file, with only netbsd portions.
5026
5027 2009-06-26 David Reitter <david.reitter@gmail.com>
5028
5029 * nsterm.m (keydown): Avoid infinite loop.
5030
5031 2009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
5032
5033 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
5034 the arg FORCE_SYMBOL.
5035
5036 2009-06-25 Kenichi Handa <handa@m17n.org>
5037
5038 * fontset.c (fontset_find_font): When a usable rfont_def is found
5039 in a fallback font-group, make it the first element of the group.
5040
5041 2009-06-24 Chong Yidong <cyd@stupidchicken.com>
5042
5043 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
5044
5045 2009-06-24 Kenichi Handa <handa@m17n.org>
5046
5047 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
5048 set for C.
5049 (fontset_font): Record the availability of a font for C both in
5050 the realized fontsets of the current one and the default one.
5051
5052 2009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
5053
5054 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
5055 conditional, it is always defined on AIX.
5056
5057 2009-06-23 Miles Bader <miles@gnu.org>
5058
5059 * window.c (Vrecenter_redisplay): New variable.
5060 (syms_of_window): Initialize it.
5061 (Qtty): New extern declaration.
5062 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
5063
5064 2009-06-23 Jim Meyering <meyering@redhat.com>
5065
5066 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
5067 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
5068 pointer dereferences are guaranteed to be valid.
5069
5070 2009-06-23 Kenichi Handa <handa@m17n.org>
5071
5072 * emacs.c (main): Call init_font ().
5073
5074 * font.h (Vfont_log): Extern it.
5075 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
5076
5077 * font.c (font_sort_entities, font_list_entities)
5078 (font_matching_entity, font_open_entity)
5079 (font_close_object): Change font_add_log to FONT_ADD_LOG.
5080 (Vfont_log): Delete static.
5081 (font_log_env_checked): Delete this variable.
5082 (font_add_log): Don't check font_log_env_checked.
5083 (font_deferred_log): Check Vfont_log.
5084 (init_font): New function.
5085
5086 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
5087
5088 * w32font.c: Change font_add_log to FONT_ADD_LOG.
5089
5090 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
5091
5092 * xfont.c: Change font_add_log to FONT_ADD_LOG.
5093
5094 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
5095 (face_for_char): Don't call font_deferred_log here.
5096 (font_for_char): Likewise.
5097
5098 2009-06-22 Chong Yidong <cyd@stupidchicken.com>
5099
5100 * w32term.c (x_draw_glyph_string): Use the glyph string's width
5101 rather than its background_width for drawing the overline and
5102 underline (Bug#489).
5103
5104 * xterm.c (x_draw_glyph_string): Use the glyph string's width
5105 rather than its background_width for drawing the overline and
5106 underline (Bug#489).
5107 (xg_default_icon_file): New variable.
5108 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
5109 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
5110
5111 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
5112 (load_overlay_strings): Remove externs.
5113 (fast_find_position): Function deleted.
5114 (mouse_face_from_buffer_pos): New function, based on
5115 fast_find_position. Correctly handle before-strings,
5116 display-strings, and after-strings (Bug#1220).
5117 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
5118
5119 2009-06-21 Chong Yidong <cyd@stupidchicken.com>
5120
5121 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
5122 (move_it_in_display_line_to, move_it_in_display_line_to)
5123 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
5124
5125 2009-06-21 Chong Yidong <cyd@stupidchicken.com>
5126
5127 * Branch for 23.1.
5128
5129 2009-06-21 Jason Rumney <jasonr@gnu.org>
5130
5131 * w32term.c (keyboard_codepage): New static variable.
5132 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
5133 (w32_read_socket) [WM_CHAR]: Use it to decode character
5134 input (bug#3237).
5135 (w32_initialize): Initialize it.
5136 (codepage_for_locale): New function.
5137
5138 2009-06-20 Ken Raeburn <raeburn@raeburn.org>
5139
5140 * process.c (status_message): Pass Faset index argument as a lisp
5141 object, so as to work with USE_LISP_UNION_TYPE.
5142
5143 2009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5144
5145 * coding.c (Ffind_coding_systems_region_internal):
5146 Cache checked characters.
5147
5148 2009-06-18 Kenichi Handa <handa@m17n.org>
5149
5150 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
5151
5152 2009-06-18 Andreas Schwab <aschwab@redhat.com>
5153
5154 * xdisp.c (redisplay_internal): Check that the frame is still
5155 live after redisplay of its windows.
5156 (redisplay_windows): Check that the window is still live.
5157
5158 2009-06-17 Andreas Schwab <schwab@linux-m68k.org>
5159
5160 * coding.c (detect_coding_utf_16): Fix previous change.
5161
5162 2009-06-16 Kenichi Handa <handa@m17n.org>
5163
5164 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
5165 UTF-16 by checking the dispersion of Eth and Oth bytes.
5166
5167 2009-06-15 Andreas Schwab <schwab@linux-m68k.org>
5168
5169 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
5170
5171 2009-06-15 Kenichi Handa <handa@m17n.org>
5172
5173 * process.c (status_message): Fix previous change. Be sure to
5174 decode a localized string.
5175
5176 2009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5177
5178 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
5179 add comment explaining why.
5180
5181 2009-06-14 Sidney Markowitz <sidney@sidney.com>
5182
5183 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5184
5185 2009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
5186
5187 * nsfont.m (ns_attribute_value): Remove.
5188 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
5189 (ns_has_attribute): Shrink the normal range.
5190 (ns_findfonts): Don't worry about requested spec in determining
5191 need for synthItal.
5192 (ns_get_covering_families): Retain scriptToFamilies.
5193
5194 2009-06-14 Seiji Zenitani <zenitani@mac.com>
5195
5196 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
5197
5198 2009-06-11 Kenichi Handa <handa@m17n.org>
5199
5200 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
5201 overhang for the static composition case.
5202
5203 2009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5204
5205 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
5206 overhang for the automatic composition case.
5207
5208 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
5209 composition case.
5210
5211 2009-06-10 Chong Yidong <cyd@stupidchicken.com>
5212
5213 * xdisp.c (get_next_display_element): When handling wrap-prefix
5214 and line-prefix, treat \n as a control character (bug#3502).
5215
5216 2009-06-10 Kenichi Handa <handa@m17n.org>
5217
5218 * font.c (font_parse_family_registry): Fix for one-char foundry.
5219 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
5220
5221 2009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
5222
5223 * process.c (status_message): Fix handling of multibyte signal
5224 string (Bug#3499).
5225
5226 2009-06-09 Jim Meyering <meyering@redhat.com>
5227
5228 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
5229 color name is missing.
5230
5231 2009-06-09 Kenichi Handa <handa@m17n.org>
5232
5233 * charset.c (Fmap_charset_chars): In docstring, state clearly that
5234 FROM-CODE and TO-CODE are codepoints of CHARSET.
5235
5236 2009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
5237
5238 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
5239
5240 2009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
5241
5242 Changes to support :script/:lang/:otf in NS font driver.
5243 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
5244 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
5245 indicate not part of font driver interface, and change callers.
5246 (ns_get_family): Remove pointless null check.
5247 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
5248 ns_spec_to_descriptor, ns_descriptor_to_entity.
5249 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
5250 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
5251 (ns_spec_to_descriptor, ns_descriptor_to_entity)
5252 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
5253 (ns_get_req_script, ns_accumulate_script_ranges)
5254 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
5255 New functions.
5256 (nsfont_list, nsfont_match): Use ns_findfonts.
5257 (nsfont_open): Use font descriptor instead of traits.
5258 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
5259 (dump_glyphstring): Rename to ns_dump_glyphstring.
5260
5261 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
5262
5263 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
5264
5265 * fontset.c (fontset_from_font): Remove NS-specific code.
5266
5267 2009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
5268
5269 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
5270 nonactive windows.
5271
5272 2009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
5273
5274 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
5275
5276 2009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
5277
5278 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
5279
5280 2009-06-07 Chong Yidong <cyd@stupidchicken.com>
5281
5282 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
5283 account for the overflowing of newlines into the last glyph on the
5284 display line (Bug#3482).
5285
5286 2009-06-05 David Reitter <david.reitter@gmail.com>
5287
5288 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
5289 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
5290 Fns_selection_exists_p, Fns_selection_owner_p.
5291
5292 2009-06-03 Jason Rumney <jasonr@gnu.org>
5293
5294 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
5295 available. (Bug#3379)
5296
5297 2009-05-29 Kenichi Handa <handa@m17n.org>
5298
5299 * coding.c (get_translation_table):
5300 Check Venable_character_translation.
5301
5302 2009-05-26 David Reitter <david.reitter@gmail.com>
5303
5304 * nsterm.m (ns_raise_frame): Only raise frame if visible.
5305 (x_make_frame_visible): Move frame to front rather than calling
5306 ns_raise_frame().
5307 (keyDown:): Do not swallow events that aren't re-sent if frame
5308 isn't key window.
5309 (drawRect:): Do not set visibility/iconified flags because
5310 drawRect may be called by NSView even if the frame is hidden.
5311
5312 * nsfns.m (Fx_create_frame): Follow other ports in
5313 determining visibility; default to t. Ensure async_visible is set.
5314
5315 2009-05-23 Eli Zaretskii <eliz@gnu.org>
5316
5317 * dired.c (Ffile_attributes): Doc fix.
5318
5319 2009-05-22 Chong Yidong <cyd@stupidchicken.com>
5320
5321 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
5322
5323 2009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
5324
5325 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
5326 and xfont_scratch_props.
5327 (syms_of_xfont): Do it here instead.
5328 (xfont_find_ccl_program): Delete, unused.
5329 (xfont_open): Delete unused var `i'.
5330
5331 2009-05-21 Kenichi Handa <handa@m17n.org>
5332
5333 * fontset.c (Qlatin): Don't make it static.
5334
5335 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
5336 New functions.
5337 (xfont_scripts_cache, xfont_scratch_props): New variables.
5338 (Qlatin, Vscalable_fonts_allowed): Extern it.
5339 (xfont_list_pattern): Argument changed. Callers changed.
5340 Check Vscalable_fonts_allowed. Check the support of a script.
5341 (xfont_list): Don't reject a font spec with :script property.
5342 (xfont_has_char): Fix setting of encoding.
5343 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
5344 xfont_scratch_props.
5345
5346 2009-05-19 Kenichi Handa <handa@m17n.org>
5347
5348 * font.c (font_sort_entities): Rename from font_sort_entites.
5349 Callers changed.
5350
5351 2009-05-18 Kenichi Handa <handa@m17n.org>
5352
5353 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
5354
5355 2009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
5356
5357 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
5358 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
5359
5360 2009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5361
5362 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
5363 (x_delete_terminal): Dissociate resource database from display and
5364 then call XrmDestroyDatabase before closing display.
5365
5366 2009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
5367
5368 * nsterm.m (ns_read_socket): Remove unused variable.
5369 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
5370 whether selected frame is viable before raising it (based on patch
5371 by David Reitter), and improve commentary.
5372 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
5373
5374 2009-05-15 Kenichi Handa <handa@m17n.org>
5375
5376 * font.c (Ffont_spec): Check arguments.
5377
5378 2009-05-14 Chong Yidong <cyd@stupidchicken.com>
5379
5380 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
5381 weight when testing attributes (Bug#3282).
5382
5383 2009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5384
5385 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
5386 what we expect to get in the next ConfigureNotify event.
5387
5388 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
5389 before Xft one (Bug#1696).
5390
5391 2009-05-07 David Reitter <david.reitter@gmail.com>
5392
5393 * nsfns.m (Fx_display_planes): Compute bitplanes using
5394 NSBitsPerPixelFromDepth (Bug#3207).
5395
5396 2009-05-10 Chong Yidong <cyd@stupidchicken.com>
5397
5398 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
5399
5400 2009-05-10 Ulrich Mueller <ulm@gentoo.org>
5401
5402 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
5403
5404 2009-05-07 David Reitter <david.reitter@gmail.com>
5405
5406 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
5407 Respect mouse face background.
5408
5409 2009-05-07 David Reitter <david.reitter@gmail.com>
5410
5411 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
5412 Mouse movement/highlight: bracket drawing operations
5413 in ns_update_begin and ns_update_end.
5414
5415 2009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
5416
5417 * nsfns.m (ns_get_screen): Rewrite.
5418 Don't presume selected-frame is of type `ns'.
5419
5420 * font.c (font_update_drivers): Sanity fallback to avoid disabling
5421 all drivers.
5422
5423 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
5424
5425 2009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5426
5427 * keyboard.h (add_user_signal): Fix typo in extern.
5428
5429 * lisp.h (add_user_signal): Remove extern.
5430
5431 * unexelf.c (unexec): Consider a section to precede the .bss section
5432 if its addresses overlap that of .bss.
5433 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
5434 instead of dumping process.
5435
5436 2009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
5437
5438 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
5439
5440 2009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
5441
5442 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
5443
5444 2009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
5445
5446 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
5447 any statements.
5448
5449 2009-05-02 Andreas Schwab <schwab@linux-m68k.org>
5450
5451 * process.c (read_process_output): Make sure the current buffer is
5452 always restored.
5453
5454 * coding.c (record_conversion_result): Don't modify
5455 Vlast_code_conversion_error for successful result.
5456 (alloc_destination): Don't clobber conversion result. (Bug#1650)
5457
5458 2009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
5459
5460 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
5461 (load_charset_map): Remove unnecessary code.
5462
5463 2009-04-30 David Reitter <david.reitter@gmail.com>
5464
5465 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
5466 through f24.
5467
5468 2009-04-30 Chong Yidong <cyd@stupidchicken.com>
5469
5470 * xfaces.c (face_at_buffer_position): New arg base_face_id.
5471
5472 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
5473 face_at_buffer_position.
5474 (face_before_or_after_it_pos, get_next_display_element)
5475 (note_mouse_highlight): Update face_at_buffer_position call.
5476
5477 * term.c (term_mouse_highlight):
5478 * msdos.c (IT_note_mouse_highlight):
5479 * fontset.c (Finternal_char_font):
5480 * font.c (font_at, font_range): Update face_at_buffer_position call.
5481
5482 * dispextern.h (face_at_buffer_position): Update prototype.
5483
5484 2009-04-30 Kenichi Handa <handa@m17n.org>
5485
5486 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
5487
5488 2009-04-29 Andreas Schwab <schwab@linux-m68k.org>
5489
5490 * callproc.c (Fcall_process): Fix GC protection. Make sure
5491 current buffer is always restored.
5492
5493 2009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5494
5495 * atimer.c (init_atimer): Also clear stopped_atimers.
5496
5497 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
5498
5499 * process.c (create_process): Clean up merger residues of
5500 2008-07-17 change.
5501
5502 2009-04-29 Ulrich Mueller <ulm@gentoo.org>
5503
5504 * lread.c (Vread_circle): New variable.
5505 (read1): Disable recursive read if Vread_circle is nil.
5506
5507 2009-04-29 Kenichi Handa <handa@m17n.org>
5508
5509 * fontset.h (set_default_ascii_font): Delete extern.
5510
5511 * fontset.c (set_default_ascii_font): Delete this unused function.
5512
5513 * frame.c (x_set_font): When ARG is a font-object, check if the
5514 font-object matches with the ASCII font-spec of the frame's
5515 fontset. If not, create a new fontset for the frame. (Bug #3075)
5516
5517 2009-04-28 Andreas Schwab <schwab@linux-m68k.org>
5518
5519 * fns.c (Flocale_info): Protect vector from GC during decoding.
5520
5521 * process.c (Fstart_process): Protect argv strings from GC during
5522 encoding.
5523
5524 2009-04-27 Andreas Schwab <schwab@linux-m68k.org>
5525
5526 * sysdep.c: Include <ctype.h>.
5527
5528 2009-04-27 David Reitter <david.reitter@gmail.com>
5529
5530 * nsfont.m (nsfont_open): Remove unused variable shrink.
5531 Remove commented-out code.
5532
5533 2009-04-26 Johan Bockgård <bojohan@gnu.org>
5534
5535 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
5536
5537 2009-04-25 Jason Rumney <jasonr@gnu.org>
5538
5539 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
5540
5541 2009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5542
5543 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
5544 Swap bytes in short integer if fringe bitmap width > 8.
5545
5546 2009-04-23 Kenichi Handa <handa@m17n.org>
5547
5548 * xfaces.c (Fx_list_fonts): If a font size is specified in
5549 PATTERN, set it in returned scalable fonts.
5550
5551 2009-04-22 Chong Yidong <cyd@stupidchicken.com>
5552
5553 * keyboard.c (Fset_input_meta_mode): Doc fix.
5554
5555 * dispnew.c (Fsend_string_to_terminal): Doc fix.
5556
5557 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
5558
5559 * coding.c (Fterminal_coding_system): Doc fix.
5560
5561 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
5562 (Fx_display_pixel_height, Fx_display_planes)
5563 (Fx_display_color_cells, Fx_server_max_request_size)
5564 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
5565 (Fx_display_mm_height, Fx_display_mm_width)
5566 (Fx_display_backing_store, Fx_display_visual_class)
5567 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
5568 Doc fixes, replacing "terminal id" with "terminal object".
5569 (check_x_display_info): Handle terminal objects instead of
5570 terminal ids.
5571
5572 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
5573 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
5574 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
5575 Doc fixes, replacing "terminal id" with "terminal object".
5576
5577 2009-04-21 Kenichi Handa <handa@m17n.org>
5578
5579 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
5580 (font_score): Check AVGWIDTH too.
5581
5582 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
5583 worst case.
5584 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
5585 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
5586
5587 2009-04-19 Jason Rumney <jasonr@gnu.org>
5588
5589 The following changes fix Bug#3005 for wide glyphs on each platform,
5590 without reintroducing Bug#1258 for stretch glyphs.
5591
5592 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
5593 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
5594 get_phys_cursor_geometry.
5595
5596 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
5597 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
5598 using get_phys_cursor_geometry.
5599
5600 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
5601 correctly calculated.
5602
5603 2009-04-19 Jan Djärv <jan.h.d@swipnet.se>
5604
5605 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
5606 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
5607 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
5608 is deprecated.
5609
5610 2009-04-18 Andreas Schwab <schwab@linux-m68k.org>
5611
5612 * font.c (font_put_frame_data): Use xfree instead of free.
5613
5614 2009-04-17 Juanma Barranquero <lekktu@gmail.com>
5615
5616 * w32font.c (Qja, Qko): Remove declarations.
5617 (syms_of_w32font): Don't DEFSYM them.
5618
5619 2009-04-17 Chong Yidong <cyd@stupidchicken.com>
5620
5621 * font.c (Qja, Qko): Move definitions here from ftfont.c.
5622
5623 * font.h (Qja, Qko): Extern them.
5624
5625 * ftfont.c (Qja, Qko): Remove declarations.
5626
5627 * xfont.c (Qja, Qko): Remove declarations.
5628
5629 2009-04-17 Kenichi Handa <handa@m17n.org>
5630
5631 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
5632 string from a vector to handle Latin-1 characters correctly.
5633
5634 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
5635 entity even if the cache hits.
5636
5637 2009-04-16 Andreas Schwab <schwab@linux-m68k.org>
5638
5639 * search.c (boyer_moore): Use zero as marker value for a possible
5640 match instead of depending on overflow behavior. (Bug#2844)
5641
5642 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
5643 * lisp.h: Adjust prototypes.
5644
5645 2009-04-16 Chong Yidong <cyd@stupidchicken.com>
5646
5647 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
5648 change (Bug#3003).
5649
5650 2009-04-16 Kenichi Handa <handa@m17n.org>
5651
5652 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
5653
5654 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
5655 adstyle.
5656
5657 * ftfont.c (Qja, Qko): Don't make them static.
5658 (enum ftfont_cache_for): New enum.
5659 (fc_charset_table): Undo the previous change.
5660 (ftfont_get_latin1_charset): Delete it.
5661 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
5662 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
5663 non-scarable font, try to get AVERAGE_WIDTH.
5664 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
5665 Change ft_face_cache from a list of a hash-table. Don't check
5666 `ja' and `ko' adstyle here.
5667 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
5668 FTFONT_CACHE_FOR_CHARET.
5669 (ftfont_get_charset): Undo the previous change.
5670 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
5671 (ftfont_close): Likewise.
5672 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
5673
5674 * font.c (font_sort_entites): Change the meaning of the arg
5675 BEST-ONLY. Don't optimize for VEC of lenght 1.
5676 (font_select_entity): Just return the value of font_sort_entites.
5677
5678 * xfaces.c (merge_face_vectors): Reflect font properties in
5679 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
5680 font_clear_prop if a face attribute doesn't change.
5681
5682 * charset.h (charset_ksc5601): Extern it.
5683
5684 * charset.c (charset_ksc5601): New variable.
5685 (Fdefine_charset_internal): Set charset_ksc5601.
5686 (init_charset_once): Initialize charset_ksc5601 to -1.
5687
5688 2009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
5689
5690 * fileio.c (history_delete_duplicates): Remove unused declaration.
5691
5692 * callint.c (history_delete_duplicates): New declaration.
5693 (Fcall_interactively): Remove command history duplicates when
5694 history_delete_duplicates is true.
5695
5696 2009-04-14 Eli Zaretskii <eliz@gnu.org>
5697
5698 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
5699
5700 2009-04-14 Kenichi Handa <handa@m17n.org>
5701
5702 * font.c (Ffont_info): Fix docstring. Fix the second element of
5703 the returned value (bug#2949).
5704
5705 2009-04-14 Chong Yidong <cyd@stupidchicken.com>
5706
5707 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
5708
5709 2009-04-14 Kenichi Handa <handa@m17n.org>
5710
5711 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
5712 encoding charset is ascii_compatible.
5713
5714 * charset.c (Fdefine_charset_internal): Make charset
5715 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
5716 code_offset is 0, and covers all ASCII characters.
5717
5718 2009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
5719
5720 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
5721 (ns_string_to_pasteboard_internal):
5722 * nsmenu.m (process_dialog):
5723 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
5724 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
5725 * lisp.h (Fx_load_color_file): Declare.
5726
5727 2009-04-13 Kenichi Handa <handa@m17n.org>
5728
5729 * font.c (font_delete_unmatched): Preserve the order of list elements.
5730 (font_select_entity): Suppress the code to optimize for the same
5731 kind of fonts.
5732 (font_load_for_lface): Get a font that supports at least ASCII
5733 characters.
5734
5735 * ftfont.c (Qja, Qko): New variables.
5736 (fc_charset_table): Delete uniquifier data for iso8859-1.
5737 (ftfont_get_latin1_charset): New function.
5738 (get_adstyle_property): New function.
5739 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
5740 bitmap fonts.
5741 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
5742 Delete iso-8859-1 range from the charset of fonts whose adstyle is
5743 `ko' or `ja'.
5744 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
5745 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
5746 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
5747 property.
5748 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
5749 (syms_of_ftfont): DEFSYM Qja and Qko.
5750
5751 2009-04-09 Kenichi Handa <handa@m17n.org>
5752
5753 * charset.c (map_charset_chars): For a charset of `superset'
5754 method, fix calculation of code range.
5755
5756 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
5757 from the list of extra properties.
5758 (font_clear_prop): Be sure to delete `:name' font property.
5759
5760 2009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5761
5762 * dispnew.c (redraw_overlapping_rows): Fix detection of
5763 overlapping for topmost and bottommost rows.
5764
5765 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
5766
5767 2009-04-06 Jason Rumney <jasonr@gnu.org>
5768
5769 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
5770
5771 2009-04-06 Kenichi Handa <handa@m17n.org>
5772
5773 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
5774
5775 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
5776
5777 2009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5778
5779 * ftfont.c (ftfont_open): Fix checking of the return value of
5780 FT_Load_Char. Fix setting font->underline_thickness.
5781
5782 2009-04-04 Chong Yidong <cyd@stupidchicken.com>
5783
5784 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
5785 (Fterminal_parameters, Fterminal_parameter)
5786 (Fset_terminal_parameter): In doc string, refer to terminal
5787 objects rather than terminal ids.
5788
5789 2009-04-04 Eli Zaretskii <eliz@gnu.org>
5790
5791 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
5792 ret_lim_data. (Bug#2867)
5793
5794 2009-04-03 Chong Yidong <cyd@stupidchicken.com>
5795
5796 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
5797 so they don't get wider than the window, matching 2006-01-23
5798 change to the partner function in xdisp.c (Bug#2800).
5799
5800 2009-04-03 Kenichi Handa <handa@m17n.org>
5801
5802 * print.c (print_object): Make each lowest sub_char_table start a
5803 new line (Bug#2866).
5804
5805 2009-04-02 Kenichi Handa <handa@m17n.org>
5806
5807 * fontset.c (fontset_font): Record no-font when a fontset
5808 explicitly tells not to try another font-specs.
5809
5810 2009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
5811
5812 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
5813
5814 2009-03-30 Kenichi Handa <handa@m17n.org>
5815
5816 * fontset.c (fontset_from_font): Specify only registry in a
5817 font-spec for all characters supported by that registry.
5818
5819 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
5820 even if HAVE_M17N_FLT is not defined.
5821
5822 2009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
5823
5824 * ftfont.c: Conditionalize prototyping and use of
5825 ftfont_variation_glyphs.
5826
5827 2009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
5828
5829 * frame.c (delete_frame): Work around compiler bug.
5830
5831 * editfns.c (general_insert_function): Adjust to insdel.c changes.
5832 * insdel.c (prepare_to_modify_buffer, signal_before_change):
5833 Some more EMACS_INT.
5834 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
5835
5836 * xdisp.c (dump_glyph): Fix typo.
5837
5838 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
5839 (adjust_markers_gap_motion, adjust_markers_for_delete)
5840 (adjust_markers_for_insert, adjust_point)
5841 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
5842 (make_gap, copy_text, count_size_as_multibyte, insert)
5843 (insert_and_inherit, insert_before_markers)
5844 (insert_before_markers_and_inherit, insert_1)
5845 (count_combining_before, count_combining_after, insert_1_both)
5846 (insert_from_string, insert_from_string_before_markers)
5847 (insert_from_string_1, insert_from_gap, insert_from_buffer)
5848 (insert_from_buffer_1, adjust_after_replace)
5849 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
5850 (replace_range_2, del_range, del_range_1, del_range_byte)
5851 (del_range_both, del_range_2, modify_region)
5852 (prepare_to_modify_buffer, signal_before_change)
5853 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
5854 for buffer positions and sizes.
5855 * lisp.h: Adjust prototypes accordingly.
5856
5857 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
5858 (non_regular_inserted, non_regular_nbytes, read_non_regular)
5859 (Finsert_file_contents): Use EMACS_INT for buffer positions.
5860
5861 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
5862
5863 2009-03-27 Jan Djärv <jan.h.d@swipnet.se>
5864
5865 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
5866 lines and columns so we keep the same pixel height and width.
5867
5868 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
5869 the property _NET_WM_STATE has changed.
5870 (x_handle_net_wm_state): New function to update frame parameter
5871 fullscreen.
5872 (x_term_init): Initialize atoms for _NET_WM_STATE.
5873
5874 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
5875
5876 2009-03-27 Kevin Ryde <user42@zip.com.au>
5877
5878 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
5879 Gpm_GetEvent as an error that justifies closing the filedescriptor.
5880 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
5881 (Fgpm_mouse_stop): Pass that new parameter.
5882 * termhooks.h (close_gpm): Adjust prototype.
5883
5884 2009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
5885
5886 * lisp.h (Fx_focus_frame): Declare.
5887
5888 * callint.c (Fcall_interactively): For '^' just delegate the work to
5889 handle-shift-selection.
5890 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
5891
5892 2009-03-24 Chong Yidong <cyd@stupidchicken.com>
5893
5894 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
5895
5896 * data.c (Qinteractive_form): New variable.
5897 (Finteractive_form): Use it.
5898
5899 * eval.c (Fcommandp): Use Qinteractive_form.
5900
5901 2009-03-24 Jason Rumney <jasonr@gnu.org>
5902
5903 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
5904 Calculate total size precisely. Decode environment variables
5905 before substituting. (Bug#38)
5906
5907 2009-03-24 Kenichi Handa <handa@m17n.org>
5908
5909 * font.c (find_font_encoding): Return Qnil for unsupported
5910 encoding (Bug#2722).
5911
5912 2009-03-23 Jan Djärv <jan.h.d@swipnet.se>
5913
5914 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
5915 that gdpy is set.
5916
5917 2009-03-22 Alan Mackenzie <acm@muc.de>
5918
5919 * callint.c (Finteractive): Clarify the doc string - even
5920 promptless elements need \n separators.
5921
5922 2009-03-22 Jason Rumney <jasonr@gnu.org>
5923
5924 * w32term.c (syms_of_w32term): Doc fix for
5925 x-use-underline-position-properties.
5926
5927 2009-03-21 Eli Zaretskii <eliz@gnu.org>
5928
5929 * w32.c (getpwuid): Change argument type to unsigned.
5930 (struct w32_id): Change type of `rid' member to unsigned.
5931 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
5932 argument ID to unsigned. All callers changed.
5933 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
5934
5935 2009-03-20 Eli Zaretskii <eliz@gnu.org>
5936
5937 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
5938 negative, produce a float value.
5939
5940 * dired.c (make_uid, make_gid): New functions.
5941 (Ffile_attributes): Use them to avoid negative UID and GID.
5942
5943 2009-03-20 Juanma Barranquero <lekktu@gmail.com>
5944
5945 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
5946 (syms_of_keyboard) <command-hook-internal, input-method-function>:
5947 Fix typos in docstrings.
5948
5949 2009-03-19 Kenichi Handa <handa@m17n.org>
5950
5951 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
5952 changed, use font_load_for_lface to get a new font object.
5953 Call free_realized_fontset after handling ASCII font change.
5954
5955 * frame.c (x_set_font): Handle the case that ARG is a cons.
5956
5957 2009-03-19 Glenn Morris <rgm@gnu.org>
5958
5959 * fileio.c (Fsubstitute_in_file_name): Doc fix.
5960
5961 2009-03-19 Chong Yidong <cyd@stupidchicken.com>
5962
5963 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
5964
5965 2009-03-19 Kenichi Handa <handa@m17n.org>
5966
5967 * charset.c (load_charset_map_from_file): When a mapfile can't be
5968 loaded, signal an error.
5969
5970 2009-03-18 Eli Zaretskii <eliz@gnu.org>
5971
5972 * dired.c (Ffile_attributes): Make sure UID and GID are always
5973 positive, even if the value is too large for a positive EMACS_INT.
5974 Doc fix.
5975
5976 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
5977
5978 2009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5979
5980 * xmenu.c (xdialog_show): Move Fredisplay call ...
5981 (Fx_popup_dialog): ... here.
5982
5983 2009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
5984
5985 * dired.c (file_name_completion): Disable the first optimization just
5986 installed, since it is not implemented correctly.
5987
5988 2009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
5989
5990 * dired.c (file_name_completion): Check completion-ignored-extensions
5991 only if the entry can affect bestmatch.
5992 Stop the search early, as Ftry_completion already does.
5993
5994 2009-03-17 Chong Yidong <cyd@stupidchicken.com>
5995
5996 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
5997
5998 2009-03-15 Chong Yidong <cyd@stupidchicken.com>
5999
6000 * keyboard.c (parse_menu_item): Don't display remappings as menu
6001 equivalent bindings (Bug#788).
6002
6003 2009-03-15 Jason Rumney <jasonr@gnu.org>
6004
6005 * w32term.h (WM_EMACS_PAINT): New message.
6006 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
6007 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
6008 before passing to lisp thread. (Bug#950)
6009
6010 2009-03-14 David Reitter <david.reitter@gmail.com>
6011
6012 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
6013 variable as it was never reset.
6014 (ns_term_init): Remove initialization of Lisp-settable defaults
6015 and ns_expand_space.
6016 (-setPanelFromDefaultValues): Remove ns_expand_space.
6017 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
6018 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
6019 i.e. no additional spacing, similar to Carbon port.
6020
6021 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
6022 * nsfns.m (ns-popup-prefs-panel): Remove.
6023
6024 2009-03-14 Jan Djärv <jan.h.d@swipnet.se>
6025
6026 * sound.c (alsa_configure): Remove call to deprecated
6027 snd_pcm_sw_params_set_xfer_align.
6028
6029 2009-03-14 Stephen Berman <stephen.berman@gmx.net>
6030
6031 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
6032 after clicking in a detached tool bar.
6033 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
6034
6035 2009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
6036
6037 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
6038 int/Lisp_Object mixup).
6039
6040 2009-03-13 Kenichi Handa <handa@m17n.org>
6041
6042 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
6043 Handle NAME nil and t correctly. Callers changed.
6044 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
6045 (set_fontset_font): Change ARG to a vector. Handle range_list in
6046 ARG correctly.
6047 (Fset_fontset_font): Fix the case that TARGET is both a script
6048 name and charset name. Adjust the arg to set_fontset_font for
6049 the above change.
6050 (fontset_from_font): Fix previous change.
6051 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
6052 entry. If FONTSET is the default fontset, don't set the extra
6053 slot of the returning char-table.
6054
6055 2009-03-12 Juanma Barranquero <lekktu@gmail.com>
6056
6057 * nsfns.m (Fx_close_connection): Doc fix.
6058 (Fns_do_applescript): Reflow docstring.
6059 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
6060 (Fx_display_pixel_width, Fx_display_pixel_height)
6061 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
6062 Fix typos in docstrings.
6063 (Fns_set_alpha): Fix typos in error messages.
6064
6065 2009-03-12 David Reitter <david.reitter@gmail.com>
6066
6067 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
6068 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
6069 were used for such events.
6070
6071 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
6072 (toggleToolbar, performDragOperation, runHelp): Use it.
6073
6074 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
6075 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
6076
6077 2009-03-11 Kenichi Handa <handa@m17n.org>
6078
6079 * font.h (font_open_by_spec): Extern it.
6080
6081 * font.c (font_open_by_spec): New function.
6082 (font_open_by_name): Use font_open_by_spec.
6083
6084 * frame.c (x_set_font): When ARG is a font-object, don't alter the
6085 fontset of the frame.
6086
6087 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
6088 modify the default font of frames that use this fontset.
6089 (num_auto_fontsets): New variable.
6090 (fontset_from_font): Use num_auto_fontsets to decide a fontset
6091 name. Be sure to set FONTSET_ASCII to the correct font name.
6092 (update_auto_fontset_alist): New function.
6093
6094 2009-03-11 Juanma Barranquero <lekktu@gmail.com>
6095
6096 * makefile.w32-in: Update dependencies.
6097
6098 2009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
6099
6100 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
6101
6102 2009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
6103
6104 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
6105
6106 2009-03-10 Chong Yidong <cyd@stupidchicken.com>
6107
6108 * lread.c (Feval_buffer): Doc fix.
6109
6110 2009-03-09 Kenichi Handa <handa@m17n.org>
6111
6112 * charset.c (Qfile_name_handler_alist): Extern it.
6113 (load_charset_map_from_file): Temporarily bind
6114 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
6115
6116 2009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
6117
6118 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
6119 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
6120
6121 2009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
6122
6123 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
6124 (x_set_window_size): Change back to calculated method of setting
6125 toolbar height under Cocoa. (Bug#2546)
6126 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
6127 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
6128
6129 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
6130
6131 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
6132 accelerator in parens under GNUstep.
6133
6134 2009-03-06 Kenichi Handa <handa@m17n.org>
6135
6136 These changes are to detect incorrect composition sequence without
6137 looking ahead the source. (Bug#2370)
6138
6139 * coding.h: Include "composite.h".
6140 (enum compisition_state): New enum.
6141 (struct compisition_status): New struct.
6142 (struct iso_2022_spec): New member cmp_status.
6143 (struct emacs_mule_spec): New struct.
6144 (struct coding_system): New members ctext_extended_segment_len and
6145 embedded_utf_8. Change the union member
6146 spec.emacs_mule_full_support to spec.emacs_mule.
6147
6148 * coding.c (CODING_ISO_CMP_STATUS): New macro.
6149 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
6150 (MAX_ANNOTATION_LENGTH): Define to 5.
6151 (ADD_COMPOSITION_DATA): New arg nbytes.
6152 (emacs_mule_char): New arg cmp_status.
6153 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
6154 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
6155 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
6156 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
6157 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
6158 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
6159 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
6160 (EMACS_MULE_COMPOSITION_END): New macro.
6161 (emacs_mule_finish_composition): New function.
6162 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
6163 (decode_coding_emacs_mule): Avoid long looking ahead while
6164 handling composition.
6165 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
6166 (ENCODE_COMPOSITION_RULE): New macro.
6167 (finish_composition): New function.
6168 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
6169 (DECODE_COMPOSITION_START): New implementation.
6170 (DECODE_COMPOSITION_END): Likewise.
6171 (STORE_COMPOSITION_RULE): New macro.
6172 (decode_coding_iso_2022): Avoid long looking ahead while handling
6173 composition, CTEXT extended segment, and embedded UTF-8.
6174 (setup_coding_system): For a coding of type iso-2022, reset
6175 CODING_ISO_EXTSEGMENT_LEN (coding) and
6176 CODING_ISO_EMBEDDED_UTF_8 (coding).
6177 (get_translation): Delete arguments last_block, from_nchars,
6178 to_nchars. Callers changed.
6179 (produce_chars): Don't modify charbuf. Adjusted for the change of
6180 get_translation.
6181 (produce_composition): Adjust for the new annotation sequence.
6182 (handle_composition_annotation): Likewise.
6183 (consume_chars): Adjust for the change of get_translation.
6184
6185 2009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
6186
6187 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
6188
6189 2009-03-05 Kenichi Handa <handa@m17n.org>
6190
6191 * font.c (font_select_entity): New function.
6192 (font_find_for_lface): Use font_select_entity to select a font.
6193
6194 * fontset.c (fontset_find_font): If a font found without
6195 restricting to the characters C doesn't support C, try to find a
6196 font with C restriction.
6197
6198 2009-03-04 Nikolaj Schumacher <me@nschum.de>
6199
6200 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
6201
6202 2009-03-04 Jason Rumney <jasonr@gnu.org>
6203
6204 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
6205 characters that have already been read. (Bug#2569)
6206
6207 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
6208 Log an error message if check_image_size failed.
6209 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
6210 (gs_load): Mention max-image-size in size error message. (Bug#2560)
6211
6212 2009-03-02 Eli Zaretskii <eliz@gnu.org>
6213
6214 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
6215 when decoding process output.
6216
6217 2009-03-01 Richard M Stallman <rms@gnu.org>
6218
6219 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
6220
6221 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
6222
6223 2009-02-28 Eli Zaretskii <eliz@gnu.org>
6224
6225 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
6226 (decode_coding_emacs_mule, decode_coding_iso_2022)
6227 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
6228 (decode_coding_raw_text, decode_coding_charset)
6229 (setup_coding_system, decode_eol, decode_coding, consume_chars):
6230 Honor inhibit-eol-conversion. (Bug #2186)
6231
6232 2009-02-28 Jason Rumney <jasonr@gnu.org>
6233
6234 * coding.c (detect_coding_charset): If not checking latin extra,
6235 fail on characters between 0x80 and 0xA0. (Bug#2354)
6236
6237 2009-02-28 Eli Zaretskii <eliz@gnu.org>
6238
6239 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
6240 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
6241
6242 2009-02-27 Glenn Morris <rgm@gnu.org>
6243
6244 * callint.c (Finteractive): Doc fix.
6245
6246 2009-02-27 Kenichi Handa <handa@m17n.org>
6247
6248 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
6249
6250 2009-02-27 Chong Yidong <cyd@stupidchicken.com>
6251
6252 * font.c (font_style_to_value): Set value for unknown symbols to
6253 100 instead of 255.
6254 (weight_table, slant_table, width_table): Treat "unspecified" as
6255 the default value.
6256
6257 2009-02-26 Juanma Barranquero <lekktu@gmail.com>
6258
6259 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
6260
6261 2009-02-25 Juanma Barranquero <lekktu@gmail.com>
6262
6263 * lread.c (Fload): Stop checking Vloads_in_progress and signal
6264 error as soon as a recursive load is detected.
6265
6266 2009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
6267
6268 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
6269 before caching.
6270
6271 2009-02-24 Kenichi Handa <handa@m17n.org>
6272
6273 * fontset.c (fontset_find_font): Fix the condition for checking
6274 unavailable font.
6275
6276 2009-02-24 Glenn Morris <rgm@gnu.org>
6277
6278 * xfaces.c (Finternal_set_font_selection_order): Remove leading
6279 whitespace that confuses documentation.
6280
6281 2009-02-23 Miles Bader <miles@gnu.org>
6282
6283 * process.c (Flist_system_processes, Fprocess_attributes)
6284 (syms_of_process): Rename `system-process-attributes' to
6285 `process-attributes'.
6286
6287 2009-02-22 Andreas Schwab <schwab@linux-m68k.org>
6288
6289 * coding.h (struct coding_system): Make safe_charsets a pointer to
6290 unsigned char.
6291 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
6292 being 255.
6293 (SAFE_CHARSET_P): Likewise.
6294 (setup_iso_safe_charsets): Properly setup safe_charsets.
6295 (Fdefine_coding_system_internal): Likewise.
6296 (setup_coding_system): Likewise. Remove unneeded casts.
6297 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
6298 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
6299 unneeded casts.
6300
6301 * insdel.c (del_range_2): Don't modify gap contents when called
6302 from decode_coding_object. (Bug#1809)
6303
6304 2009-02-21 Chong Yidong <cyd@stupidchicken.com>
6305
6306 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
6307 Qfont_object.
6308 (Ftype_of): Recognize font objects.
6309
6310 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
6311
6312 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
6313 moved to data.c.
6314
6315 2009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
6316
6317 * nsterm.m (x_make_frame_invisible): Unset async_visible,
6318 async_iconified. Based on a patch by Christian Lynbech
6319 <christian.lynbech@tieto.com>.
6320 (EmacsView-windowDidMiniaturize:): Unset async_visible.
6321
6322 2009-02-20 Glenn Morris <rgm@gnu.org>
6323
6324 * syntax.c (Fskip_chars_forward): Fix doc typo.
6325
6326 2009-02-20 Chong Yidong <cyd@stupidchicken.com>
6327
6328 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
6329
6330 2009-02-19 Chong Yidong <cyd@stupidchicken.com>
6331
6332 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
6333
6334 2009-02-19 Kenichi Handa <handa@m17n.org>
6335
6336 * coding.c (detect_coding): Preserve coding->mode.
6337 Don't overflow coding->carryover. (Bug#2370)
6338
6339 2009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
6340
6341 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
6342
6343 2009-02-18 Kenichi Handa <handa@m17n.org>
6344
6345 * font.c (font_check_otf_features): Fix handling of `nil' element.
6346 (Ffont_spec): Describe :lang and :otf in the docstring.
6347
6348 2009-02-16 Andreas Schwab <schwab@suse.de>
6349
6350 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
6351 string.
6352
6353 2009-02-16 Kenichi Handa <handa@m17n.org>
6354
6355 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
6356 (Bug#1723)
6357
6358 2009-02-14 Chong Yidong <cyd@stupidchicken.com>
6359
6360 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
6361
6362 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
6363 (handle_line_prefix): Suppress wrapping of wrap prefixes.
6364
6365 2009-02-14 Eli Zaretskii <eliz@gnu.org>
6366
6367 * msdos.c (MAX_SCREEN_BUF): New macro.
6368 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
6369 Encode the entire run of glyphs sharing the same face, instead of
6370 doing that one glyph at a time (fixes a bug with displaying
6371 double-size characters).
6372
6373 2009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
6374
6375 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
6376
6377 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
6378 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
6379 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
6380
6381 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
6382 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
6383
6384 2009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
6385
6386 * keyboard.c (adjust_point_for_property): Allow stopping between two
6387 invisible areas.
6388
6389 2009-02-12 Jason Rumney <jasonr@gnu.org>
6390
6391 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
6392 (add_font_entity_to_list): Call check_face_name even when family
6393 is unspecified.
6394
6395 * w32term.c (x_display_pixel_height, x_display_pixel_width):
6396 Release DC when finished. Use NULL window to refer to desktop.
6397 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
6398
6399 * w32font.c (add_font_entity_to_list): Fix check for substituted
6400 raster fonts. (Bug#2219)
6401
6402 2009-02-12 Kenichi Handa <handa@m17n.org>
6403
6404 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
6405 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
6406 (autocmp_chars): Use fast_looking_at. Don't compose more
6407 characters than MAX_COMPOSITION_COMPONENTS.
6408 (find_automatic_composition): While looking forward and backward,
6409 check static composition. Fix where to stop looking forward.
6410 (composition_adjust_point): Fix checking of static composition.
6411 (Fcomposition_get_gstring): Pay attention to
6412 MAX_COMPOSITION_COMPONENTS.
6413
6414 * lisp.h (fast_looking_at): Extern it.
6415
6416 * search.c (fast_looking_at): New function.
6417
6418 * term.c (encode_terminal_code): Adjust for the change of
6419 <struct glyph>.u.cmp.to.
6420 (append_composite_glyph): Likewise.
6421
6422 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
6423 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
6424 composition.
6425 (append_composite_glyph): Adjust for the change of
6426 <strcut glyph>.u.cmp.to.
6427
6428 2009-02-11 Juanma Barranquero <lekktu@gmail.com>
6429
6430 * casetab.c (init_casetab_once):
6431 * coding.c (ALLOC_CONVERSION_WORK_AREA):
6432 * font.c (font_update_lface):
6433 * fontset.c (Fnew_fontset):
6434 * ftfont.c (ftfont_drive_otf):
6435 * xfont.c (xfont_open):
6436 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
6437
6438 2009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
6439
6440 * fileio.c (Fwrite_region): !NILP -> CONSP.
6441
6442 2009-02-10 Andreas Schwab <schwab@suse.de>
6443
6444 * process.c (send_process): Properly relocate pointer into data
6445 when using encoded data. (Bug#2272)
6446
6447 2009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
6448
6449 * coding.c (detect_coding_charset): Fix previous change.
6450
6451 2009-02-08 Jason Rumney <jasonr@gnu.org>
6452
6453 * w32fns.c (w32_hide_hourglass): Handle case where frame
6454 disappeared while hourglass was displayed. (Bug #2193)
6455
6456 2009-02-07 Andreas Schwab <schwab@suse.de>
6457
6458 * unexelf.c (unexec): Fix error message.
6459
6460 2009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
6461
6462 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
6463 when modal window is active. (Bug #2152)
6464 (applicationShouldTerminate:): Remove now-unneeded while loop
6465 around NSRunAlertPanel.
6466
6467 * nsmenu.m (popupSession): New file-global variable.
6468 (pop_down_menu): End the popupSession before closing dialog.
6469 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
6470 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
6471 don't query NSApp for events (just sleep instead).
6472
6473 2009-02-07 Eli Zaretskii <eliz@gnu.org>
6474
6475 * coding.c (syms_of_coding) <translation-table-for-input>:
6476 Modify doc string to discourage use for character code unification.
6477
6478 2009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6479
6480 * atimer.c (run_timers): Update pending_atimers.
6481
6482 2009-02-06 Chong Yidong <cyd@stupidchicken.com>
6483
6484 * image.c (svg_load_image): Fix last change.
6485
6486 * xfns.c (Fx_create_frame): Signal an error if no font is
6487 found (Bug#2147).
6488
6489 2009-02-05 Juanma Barranquero <lekktu@gmail.com>
6490
6491 * character.c (syms_of_character) <script-representative-chars>:
6492 Fix typo in docstring.
6493
6494 2009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
6495
6496 * nsmenu.m (pop_down_menu): New function.
6497 (ns_popup_dialog): Call it on unwind.
6498 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
6499 call timer_check() (Bug#2154).
6500 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
6501 handling_signal is set.
6502 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
6503
6504 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
6505
6506 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
6507
6508 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
6509
6510 * keyboard.c (poll_for_input_1, handle_async_input):
6511 Set handling_signal under HAVE_NS.
6512
6513 2009-02-04 Glenn Morris <rgm@gnu.org>
6514
6515 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
6516
6517 2009-02-04 Kenichi Handa <handa@m17n.org>
6518
6519 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
6520
6521 * charset.c (Fchar_charset): New optional arg restriction.
6522
6523 * coding.h (coding_system_charset_list): Extern it.
6524
6525 * coding.c (coding_system_charset_list): New function.
6526
6527 * composite.c: Include coding.h and termhooks.h.
6528 (composition_gstring_p): Fix for the terminal case.
6529 (composition_gstring_width): Likewise.
6530 (fill_gstring_body): Likewise.
6531 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
6532 the frame.
6533 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
6534 is within a composition.
6535 (Fcomposition_get_gstring): Fix the terminal case.
6536
6537 * term.c (encode_terminal_code): Fix handling of composition.
6538 (produce_composite_glyph): For static composition, get pixel_width
6539 from struct composition.
6540
6541 2009-02-02 Andreas Schwab <schwab@suse.de>
6542
6543 * unexelf.c (unexec): Handle unaligned bss offset.
6544
6545 2009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
6546
6547 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
6548 XT,w32read_socket changes to ns_read_socket.
6549
6550 * keyboard.c (handle_interrupt): Don't call
6551 quit_throw_to_read_char() under NS.
6552
6553 * blockinput.h: Remove NS-specific code.
6554
6555 2009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
6556
6557 * dispnew.c (window_change_signal): Don't try to get the size of a
6558 suspended tty frame.
6559 * term.c (Fresume_tty): Resize if the size has changed while the
6560 tty was suspended.
6561
6562 * alloc.c (mark_stack): Properly conditionalize previous change.
6563
6564 2009-01-30 Juanma Barranquero <lekktu@gmail.com>
6565
6566 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
6567 * w32term.c (w32_read_socket) [SYNC_INPUT]:
6568 Remove; this code is not used on Windows.
6569
6570 2009-01-30 Eli Zaretskii <eliz@gnu.org>
6571
6572 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
6573 EOLs that also has stray ^M characters.
6574
6575 2009-01-30 Juanma Barranquero <lekktu@gmail.com>
6576
6577 * atimer.c (run_timers, alarm_signal_handler):
6578 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
6579 * w32inevt.c (w32_console_read_socket):
6580 * w32term.c (w32_read_socket):
6581 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
6582
6583 2009-01-30 Chong Yidong <cyd@stupidchicken.com>
6584
6585 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
6586 Initialize it as a relative filename pattern.
6587 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
6588 (Fcall_process_region): Simplify temp file creation using
6589 temporary-file-directory.
6590
6591 2009-01-29 Eli Zaretskii <eliz@gnu.org>
6592
6593 * msdos.c: Rename pending_signals to msdos_pending_signals.
6594 (sig_suspender, sigprocmask): Adjust.
6595
6596 2009-01-29 Chong Yidong <cyd@stupidchicken.com>
6597
6598 * keyboard.c (pending_signals): New var.
6599 (poll_for_input, input_available_signal, init_keyboard): Set it.
6600 (process_pending_signals): New function.
6601
6602 * lisp.h (QUIT): Check pending_signals instead of
6603 interrupt_input_pending. Use process_pending_signals.
6604
6605 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
6606
6607 * process.c (wait_reading_process_output): Use process_pending_signals.
6608
6609 * sysdep.c (emacs_write): Use process_pending_signals.
6610
6611 * xterm.c (XTread_socket): Update pending_signals.
6612
6613 * w32term.c (w32_read_socket): Update pending_signals.
6614
6615 * w32inevt.c (w32_console_read_socket): Update pending_signals.
6616
6617 2009-01-29 Kenichi Handa <handa@m17n.org>
6618
6619 * xftfont.c (xftfont_has_char): New function.
6620 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
6621
6622 2009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
6623
6624 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
6625 under GNUstep.
6626 (ns_query_color): New declaration.
6627
6628 * nsterm.m (ns_confirm_quit): New variable.
6629 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
6630 (EmacsApp-applicationShouldTerminate:): Use it.
6631 (EmacsPrefsController): Let user set it.
6632 (ns_query_color): New function.
6633 (ns_defined_color): Use it.
6634 (ns_initialize): Drop.
6635 (ns_term_init): Add two lines from ns_initialize(), and set
6636 input_interrupt_mode to nil.
6637
6638 * image.c (svg_load_image): Don't right-shift background RGB when
6639 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
6640
6641 2009-01-28 Kenichi Handa <handa@m17n.org>
6642
6643 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
6644 (fontset_get_font_group): Remember that no font-group is specified
6645 for C.
6646
6647 2009-01-27 Chong Yidong <cyd@stupidchicken.com>
6648
6649 * fns.c (concat): Check for string overflow (bug#1787).
6650
6651 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
6652 Quadruple undo limits (bug#1501).
6653
6654 2009-01-27 Kenichi Handa <handa@m17n.org>
6655
6656 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
6657 directly use GT_Get_Char_index.
6658
6659 * xftfont.c (struct xftfont_info): New member `index'.
6660
6661 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
6662 (Ffontset_font): Adjust for the change of fontset entry.
6663
6664 2009-01-26 Kenichi Handa <handa@m17n.org>
6665
6666 * fontset.c (fontset_find_font): Fix handling of non-cons return
6667 value of fontset_get_font_group.
6668 (fontset_font): Revert last change.
6669
6670 2009-01-26 Jason Rumney <jasonr@gnu.org>
6671
6672 * w32font.c (w32font_list_internal): Return quickly if registry is
6673 unknown. Simplify final return.
6674 (add_font_entity_to_list): Break complex logic down into more
6675 manageable chunks. Move unknown registry check to
6676 w32font_list_internal.
6677
6678 2009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
6679
6680 Changes to remove Feval calls from GUI under NS.
6681
6682 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
6683 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
6684 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
6685
6686 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
6687 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
6688 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
6689 instead of NON_ASCII_KEYSTROKE_EVENT.
6690 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
6691 (EmacsApp-applicationShouldTerminate:): Query user.
6692 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
6693 instead of Feval.
6694
6695 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
6696
6697 * keyboard.c (kbd_buffer_get_event): Check for it.
6698 (keys_of_keyboard): Define lispy keys for
6699 ns-put/unput-working-text.
6700
6701 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
6702 versions.
6703 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
6704
6705 2009-01-25 Chong Yidong <cyd@stupidchicken.com>
6706
6707 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
6708 setting current_buffer directly. (Bug#2044)
6709
6710 2009-01-24 Chong Yidong <cyd@stupidchicken.com>
6711
6712 * fontset.c (fontset_font): If we know there is no font, don't do
6713 any work. (Bug#1952, bug#1990).
6714
6715 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
6716
6717 2009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
6718
6719 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
6720 (ns_no_defaults): New declaration.
6721 (main): Use it.
6722
6723 * nsterm.h (ns_no_defaults): New declaration.
6724
6725 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
6726
6727 * nsterm.m (ns_no_defaults): New variable.
6728 (ns_initialize): Don't read defaults when ns_no_defaults.
6729 (EmacsView-readSelectionFromPasteboard:)
6730 (writeSelectionToPasteboard:types:): New stubbed-out methods for
6731 NSServicesRequests protocol. (Bug#1435)
6732 (ns_dumpglyphs_stretch): New function.
6733 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
6734 of 2008-11-15 to other terms. (Bug#615)
6735
6736 * nsimage.m (setPixmapData:): Set to ignore image DPI.
6737
6738 2009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
6739
6740 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
6741 call for Sparc64.
6742
6743 2009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
6744
6745 * nsfns.m:
6746 * nsgui.h:
6747 * nsmenu.m:
6748 * nsselect.m:
6749 * nsterm.h:
6750 * nsterm.m: Remove '23' comments that indicated code added during
6751 update from emacs-20 -> emacs-23.
6752
6753 2009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
6754
6755 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
6756 ns_alternate_modifier. (Bug#1217)
6757
6758 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
6759 Display all shortcuts, including those w/o super modifier.
6760
6761 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
6762
6763 2009-01-22 Chong Yidong <cyd@stupidchicken.com>
6764
6765 * fileio.c (Vwrite_region_post_annotation_function)
6766 (Vwrite_region_annotation_buffers): New vars.
6767 (build_annotations_unwind): Just reset
6768 Vwrite_region_annotation_buffers.
6769 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
6770 Call write-region-post-annotation-function.
6771 (build_annotations): Add to Vwrite_region_annotation_buffers if
6772 buffer changes.
6773
6774 2009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
6775
6776 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
6777 Tiger.
6778 * nsfns.m (ns_do_applescript):
6779 Conditionalize typeUTF16ExternalRepresentation on Tiger.
6780
6781 2009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
6782
6783 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
6784
6785 2009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
6786
6787 * nsmenu.m (NSMENUPROFILE): Change #if style.
6788
6789 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
6790
6791 * nsterm.m (x_set_frame_alpha): Add prototype.
6792 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
6793 handle Ctrl-tab. (Bug#1841)
6794 (ns_get_color): Use unsigned long long for scanned hex string value.
6795 (ns_term_shutdown): Abort on non SIGTERM signals.
6796 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
6797 (EmacsPrefsController-setPanelFromDefaultValues): New function.
6798 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
6799 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
6800 (ns_defined_color): Fix settings of the XColor variable fields:
6801 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
6802
6803 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
6804 DPI. (Bug#1316)
6805 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
6806 values in onTiger section.
6807
6808 2009-01-19 Chong Yidong <cyd@stupidchicken.com>
6809
6810 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
6811 Check return value of font_spec_from_name.
6812 (Fx_list_fonts): Doc fix. (Bug#1951)
6813
6814 * font.c (font_spec_from_name): Return Qnil if font name could not
6815 be parsed.
6816 (font_parse_name): Treat a `?' character as part of an XLFD.
6817
6818 * fns.c (Fsubstring): Doc fix.
6819
6820 2009-01-19 Kenichi Handa <handa@m17n.org>
6821
6822 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
6823 (ftfont_list): Likewise.
6824
6825 2009-01-18 Juanma Barranquero <lekktu@gmail.com>
6826
6827 * dbusbind.c (Fdbus_register_signal):
6828 * process.c (conv_sockaddr_to_lisp):
6829 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
6830
6831 * callproc.c (Fgetenv_internal): Doc fix.
6832
6833 2009-01-16 Chong Yidong <cyd@stupidchicken.com>
6834
6835 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
6836 it is not even used.
6837
6838 2009-01-16 Glenn Morris <rgm@gnu.org>
6839
6840 * font.c (Ffont_variation_glyphs): Silence compiler.
6841
6842 2009-01-15 Juanma Barranquero <lekktu@gmail.com>
6843
6844 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
6845 Reported by David Robinow <drobinow@gmail.com>.
6846
6847 2009-01-15 Kenichi Handa <handa@m17n.org>
6848
6849 * coding.c (detect_coding_system): Fix handling of null_byte_found.
6850
6851 2009-01-14 Jason Rumney <jasonr@gnu.org>
6852
6853 * frame.c (x_set_font): Always store a font to the font parameter,
6854 never a fontset. (Bug#1562)
6855
6856 2009-01-14 Kenichi Handa <handa@m17n.org>
6857
6858 * coding.c (TWO_MORE_BYTES): New macro.
6859 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
6860
6861 2009-01-13 Chong Yidong <cyd@stupidchicken.com>
6862
6863 * font.c (font_clear_prop): If clearing the family, clear the font
6864 width index too.
6865
6866 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
6867
6868 2009-01-12 Juanma Barranquero <lekktu@gmail.com>
6869
6870 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
6871 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
6872 functions, use sizeof.
6873
6874 2009-01-12 Martin Rudalics <rudalics@gmx.at>
6875
6876 * keyboard.c (read_char): Fix case where last_nonmenu_event
6877 returned a bad value with submenus. (Bug#447)
6878
6879 2009-01-12 Chong Yidong <cyd@stupidchicken.com>
6880
6881 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
6882 family, clear the font width index too.
6883
6884 2009-01-11 Jason Rumney <jasonr@gnu.org>
6885
6886 * keyboard.c (cmd_error_internal): Exit when errors occur before
6887 frame creation and not in daemon mode. (Bug#1836)
6888
6889 2009-01-10 Chong Yidong <cyd@stupidchicken.com>
6890
6891 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
6892 of a display vector, backtrack.
6893 (try_window_reusing_current_matrix): Check glyph type before
6894 referencing charpos member.
6895
6896 2009-01-10 Eli Zaretskii <eliz@gnu.org>
6897
6898 Fix Bug #876:
6899
6900 * coding.c (inhibit_null_byte_detection): New variable.
6901 (detect_coding, detect_coding_system): Don't pay attention to null
6902 bytes if inhibit_null_byte_detection is non-zero.
6903 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
6904 <inhibit-iso-escape-detection>: Doc fix.
6905
6906 2009-01-09 Jason Rumney <jasonr@gnu.org>
6907
6908 * w32font.c (add_font_entity_to_list): Don't report unknown
6909 Windows charset as any unrecognized registry. (Bug#1548)
6910 Only report Unicode Plane 2 fonts as unicode-sip.
6911
6912 2009-01-09 Chong Yidong <cyd@stupidchicken.com>
6913
6914 * xfaces.c (Fx_font_family_list): Delete function.
6915 Move compatibility version to faces.el.
6916
6917 * font.c (Ffont_family_list): Return a list of strings, not symbols.
6918
6919 2009-01-09 Martin Rudalics <rudalics@gmx.at>
6920
6921 * frame.c (x_set_frame_parameters): Remember requested value for
6922 fullscreen before it's reset by the parameter handler.
6923
6924 2009-01-09 Glenn Morris <rgm@gnu.org>
6925
6926 * keyboard.c (last_command_char): For clarity, rename to...
6927 (last_command_event): ... and update all users.
6928 (last_input_char): For clarity, rename to...
6929 (last_input_event): ... and update all users.
6930 (last-command-char, last-input-char): Move to subr.el as aliases.
6931 * cmds.c, commands.h: Update for last_command_char rename.
6932
6933 2009-01-08 Chong Yidong <cyd@stupidchicken.com>
6934
6935 * font.c (font_open_for_lface): Handle unspecified height attribute.
6936
6937 2009-01-08 Jason Rumney <jasonr@gnu.org>
6938
6939 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
6940 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
6941 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
6942 Don't declare.
6943 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
6944 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
6945
6946 2009-01-07 Kenichi Handa <handa@m17n.org>
6947
6948 * fileio.c (Finsert_file_contents): In the case of replace,
6949 remember the coding system used for decoding in
6950 coding_system (Bug#1039).
6951
6952 * coding.c (decode_coding_utf_8): Check byte_after_cr before
6953 breaking the loop. (Bug#870)
6954 (decode_coding_utf_16, decode_coding_emacs_mule)
6955 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
6956 (decode_coding_charset): Likewise.
6957
6958 2009-01-05 Martin Rudalics <rudalics@gmx.at>
6959
6960 * frame.c (x_set_frame_parameters): Make sure height (width) get
6961 applied when fullwidth (fullheight) is set. (Bug#1522)
6962
6963 2009-01-04 Juanma Barranquero <lekktu@gmail.com>
6964
6965 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
6966 (utc_base): Declare as ULONGLONG, not long double.
6967 (convert_time_raw): Delete.
6968 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
6969 (initialize_utc_base): New function.
6970 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
6971 (convert_from_time_t): Use initialize_utc_base; compute result with
6972 64-bit arithmetic.
6973 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
6974
6975 2009-01-03 Eli Zaretskii <eliz@gnu.org>
6976
6977 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
6978 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
6979 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
6980 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
6981 [!subprocesses]: Define.
6982 (syms_of_process) [!subprocesses]: Intern and staticpro them.
6983 (Flist_system_processes, Fsystem_process_attributes)
6984 [!subprocesses]: Call list_system_processes and
6985 system_process_attributes instead of returning Qnil.
6986
6987 * dosfns.c (system_process_attributes, list_system_processes):
6988 New functions.
6989
6990 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
6991
6992 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
6993 Don't use the default (no-op) implementation.
6994
6995 2009-01-03 Jason Rumney <jasonr@gnu.org>
6996
6997 * keyboard.c (parse_modifiers_uncached): Wheel events are
6998 clicks (bug#687).
6999
7000 * w32term.c (x_query_colors, x_query_color): New functions.
7001
7002 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
7003 (svg_load_image): Cast returned pointers from dynamically loaded
7004 functions. Eliminate W32 specific code.
7005
7006 2009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
7007
7008 * nsfns.m (x_set_foreground_color, x_set_background_color)
7009 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
7010 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
7011 x_ prefix instead of ns_. Update references.
7012 (syms_of_nsfns): Add a FIXME comment.
7013
7014 * nsterm.m (x_set_cursor_type): New prototype.
7015 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
7016
7017 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
7018 for Solaris instead of incorrectly providing Qutime and Qcutime.
7019
7020 2009-01-02 Eli Zaretskii <eliz@gnu.org>
7021
7022 * w32.c (process_times): Compute sum of utime and stime.
7023 (system_process_attributes): Add Qtime to the alist.
7024
7025 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
7026 and add them to the alist.
7027
7028 * process.c (top level) <Qtime, Qctime>: New variables.
7029 (syms_of_process): staticpro them.
7030 (Fsystem_process_attributes): Add their documentation to the doc
7031 string.
7032
7033 * process.h: Declare Qtime and Qctime.
7034
7035 2009-01-02 Jason Rumney <jasonr@gnu.org>
7036
7037 * image.c (Qgobject): New symbol.
7038 (syms_of_image): Initialize it.
7039 (init_svg_functions): Load some functions from gobject library.
7040
7041 2009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
7042
7043 * frame.c (make_terminal_frame): Remove redundant code and useless
7044 block.
7045
7046 2009-01-01 Andreas Schwab <schwab@suse.de>
7047
7048 * process.c (conv_sockaddr_to_lisp): Add workaround for
7049 getsockname bug on BSD.
7050
7051 2009-01-01 Chong Yidong <cyd@stupidchicken.com>
7052
7053 * xfns.c (x_create_tip_frame): Set border width of the X window.
7054
7055 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
7056
7057 2009-01-01 Jason Rumney <jasonr@gnu.org>
7058
7059 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
7060 Don't block input, as per earlier xterm.c changes.
7061
7062 2008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
7063
7064 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
7065 (ns_appkit_version_int): New function.
7066 (x-server-version): Use ns_appkit_version_int and follow 21+
7067 convention of returning 3 integers.
7068
7069 2008-12-30 Kenichi Handa <handa@m17n.org>
7070
7071 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
7072 (CHAR_SURROGATE_PAIR_P): New macro.
7073
7074 * font.h (struct font_driver): New member get_variation_glyphs.
7075
7076 * font.c (font_range): Don't require a font for a variation selector.
7077 (Ffont_variation_glyphs): New function.
7078 (syms_of_font): Defsubr it.
7079
7080 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
7081 ftfont_variation_glyphs.
7082 (setup_otf_gstring): New function.
7083 (ftfont_drive_otf): Use it.
7084 (ftfont_shape_by_flt): Handle variation selector.
7085 (ftfont_variation_glyphs): New function.
7086
7087 2008-12-30 Martin Rudalics <rudalics@gmx.at>
7088
7089 * frame.c (Vemacs_iconified): Remove.
7090
7091 2008-12-30 Jason Rumney <jasonr@gnu.org>
7092
7093 * frame.c (store_frame_param, x_get_arg): Enable newer code on
7094 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7095
7096 2008-12-30 Chong Yidong <cyd@stupidchicken.com>
7097
7098 * indent.c (Fvertical_motion): Don't advance iterator if we have
7099 reseated to the desired position.
7100
7101 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
7102 checking for pos match.
7103
7104 2008-12-30 Kenichi Handa <handa@m17n.org>
7105
7106 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
7107 just get the low 8-bit of the code.
7108
7109 * font.c (font_intern_prop): Validate str as multibyte.
7110
7111 2008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
7112
7113 * dispextern.h (struct face): Move lface and hash from the middle
7114 of bitfields.
7115
7116 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
7117
7118 2008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
7119
7120 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
7121 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
7122 instead of intervals.h.
7123
7124 2008-12-26 Andreas Schwab <schwab@suse.de>
7125
7126 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
7127 cons.
7128
7129 2008-12-26 Martin Rudalics <rudalics@gmx.at>
7130
7131 * textprop.c (Qminibuffer_prompt): New variable.
7132 (syms_of_textprop): Initialize it.
7133 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
7134 in minibuffer-prompt face. (Bug#1662)
7135
7136 2008-12-25 Jason Rumney <jasonr@gnu.org>
7137
7138 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
7139
7140 2008-12-24 Jason Rumney <jasonr@gnu.org>
7141
7142 * ralloc.c (r_alloc_reset_variable): New function.
7143
7144 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
7145 record of what points where. (Bug#716)
7146
7147 2008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
7148
7149 * minibuf.c (read_minibuf): Follow the non-interactive case when
7150 running as a daemon, before detaching.
7151
7152 2008-12-22 Andreas Schwab <schwab@suse.de>
7153
7154 * buffer.c (init_buffer): Use realloc instead of xrealloc.
7155 * gtkutil.c (free_widget_value): Use xfree instead of free.
7156
7157 2008-12-22 Martin Rudalics <rudalics@gmx.at>
7158
7159 * frame.c (delete_frame): New function derived from
7160 Fdelete_frame to handle Qnoelisp value for FORCE argument.
7161 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
7162 (Fdelete_frame): Call delete_frame. Remove line from doc-string
7163 saying that FORCE non-nil doesn't run `delete-frame-functions'.
7164 * frame.h: Extern delete_frame.
7165 * window.c (window_loop):
7166 * terminal.c (delete_terminal):
7167 * xterm.c (x_connection_closed):
7168 * xfns.c (Fx_hide_tip):
7169 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
7170
7171 2008-12-21 Jason Rumney <jasonr@gnu.org>
7172
7173 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
7174 when character maps to .notdef character.
7175
7176 2008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
7177
7178 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
7179
7180 2008-12-20 Jason Rumney <jasonr@gnu.org>
7181
7182 * frame.c (Fmake_terminal_frame): Raise an error when called from
7183 a graphical frame on Windows. (Bug#1325)
7184
7185 2008-12-20 Jan Djärv <jan.h.d@swipnet.se>
7186
7187 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
7188
7189 2008-12-20 Chong Yidong <cyd@stupidchicken.com>
7190
7191 * minibuf.c (Fread_buffer): Doc fix.
7192
7193 2008-12-20 Jason Rumney <jasonr@gnu.org>
7194
7195 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
7196 server name in UNC paths. (Bug#719)
7197
7198 * coding.c (decode_coding): Clear chars_at_source flag when using
7199 charbuf. (Bug#1035)
7200
7201 2008-12-19 Daniel Engeler <engeler@gmail.com>
7202
7203 * sysdep.c (serial_configure): Fix typo.
7204
7205 2008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
7206
7207 * sysdep.c: Include alloca.h.
7208 (system_process_attributes): Add implementation for Solaris.
7209
7210 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
7211
7212 2008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
7213
7214 Reorganize implementation of Flist_system_processes and
7215 Fsystem_process_attributes. No functional changes.
7216 * process.c: Don't #include pwd.h, grp.h and limits.h.
7217 (Flist_system_processes): Just call list_system_processes.
7218 (Fsystem_process_attributes): Just call system_process_attributes.
7219 (procfs_list_system_processes, time_from_jiffies)
7220 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
7221 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
7222
7223 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
7224 (list_system_processes): Rename from
7225 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
7226 Provide a do nothing implementation.
7227 (system_process_attributes): Rename from
7228 procfs_list_system_processes.
7229 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
7230 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
7231
7232 * w32.c (list_system_processes): Rename from
7233 w32_list_system_processes.
7234 (system_process_attributes): Rename from
7235 w32_system_process_attributes.
7236
7237 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
7238
7239 * process.h (w32_list_system_processes)
7240 (w32_system_process_attributes): Remove.
7241 (list_system_processes, system_process_attributes):
7242 New prototypes.
7243
7244 2008-12-19 Kenichi Handa <handa@m17n.org>
7245
7246 * xfont.c (xfont_decode_coding_xlfd): New function.
7247 (xfont_encode_coding_xlfd): New function.
7248 (xfont_list_pattern): Decode XLFD by iso-8859-1.
7249 (xfont_list): Decode and encode XLFD by iso-8859-1.
7250 (xfont_match): Likewise.
7251 (xfont_list_family): Likewise.
7252 (xfont_open): Likewise.
7253
7254 * ftfont.c (ftfont_open): Generate a multibyte string if given
7255 names are utf-8.
7256
7257 * xftfont.c (xftfont_open): Generate a multibyte string if given
7258 names are utf-8.
7259
7260 2008-12-18 Jan Djärv <jan.h.d@swipnet.se>
7261
7262 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
7263 changed.
7264 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
7265 clicked on a detached tool bar button.
7266
7267 2008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
7268
7269 * emacs.c (main): Print and error and exit when no data is read
7270 from the pipe.
7271
7272 2008-12-17 Jason Rumney <jasonr@gnu.org>
7273
7274 * w32font.c (w32font_has_char): Always return -1.
7275
7276 2008-12-16 Kenichi Handa <handa@m17n.org>
7277
7278 * font.c (font_open_entity): Fix previous change.
7279
7280 2008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
7281
7282 * process.c: Include <limits.h>.
7283
7284 2008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
7285
7286 * font.c (font_update_drivers): Fix mistake in reconstructing the
7287 driver list.
7288
7289 2008-12-16 Chong Yidong <cyd@stupidchicken.com>
7290
7291 * font.c (font_clear_cache): Fix format of font cache data.
7292
7293 2008-12-15 Chong Yidong <cyd@stupidchicken.com>
7294
7295 * xftfont.c (xftfont_open): Free Xft font pattern if
7296 XftFontOpenPattern fails.
7297
7298 * xterm.c (x_free_frame_resources): Remove extraneous call to
7299 free_frame_faces.
7300
7301 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
7302
7303 * xterm.c (x_delete_display): Move xim_close_dpy call to
7304 x_delete_terminal.
7305 (x_delete_terminal): Call xim_close_dpy.
7306
7307 2008-12-13 Jason Rumney <jasonr@gnu.org>
7308
7309 * w32font.c (intern_font_name): New function.
7310 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
7311 (w32font_open_internal, Fx_select_font): Decode font name.
7312 (fill_in_logfont, list_all_matching_fonts): Encode font name.
7313
7314 * w32font.h (intern_font_name): Declare new function.
7315
7316 * w32uniscribe.c (add_opentype_font_name_to_list):
7317 Use intern_font_name.
7318
7319 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
7320
7321 * frame.c (Fdelete_frame): Call free_font_driver_list.
7322
7323 * font.c (free_font_driver_list): Implement missing function.
7324
7325 * w32term.c (w32_term_init): Don't initialize the image cache
7326 here; it will be done in init_frame_faces.
7327
7328 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
7329 (struct x_display_info): Remove unused member null_pixel. New
7330 member xim_callback_data.
7331
7332 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
7333 (xim_initialize): Save pointer to callback function data.
7334 (xim_close_dpy): Free callback function data. Call XCloseIM,
7335 reverting 2008-11-04 change by David Smith.
7336 (x_term_init): Don't initialize the image cache here; it will be
7337 done in init_frame_faces. Remove ancient "null_pixel" cruft.
7338 (x_delete_display): Free x_dnd_atoms member.
7339
7340 2008-12-13 Kenichi Handa <handa@m17n.org>
7341
7342 * font.c (font_rescale_ratio): Moved from xfaces.c.
7343 Argument type changed. Handle a font-spec too.
7344 (font_score): Check Vface_font_rescale_alist.
7345 (font_open_entity): Likewise. (Bug#1547)
7346
7347 * xfaces.c (font_rescale_ratio): Moved to font.c.
7348
7349 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
7350
7351 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
7352
7353 2008-12-12 Jason Rumney <jasonr@gnu.org>
7354
7355 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
7356 Vwindow_system_version to the real w32 major version.
7357
7358 2008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
7359
7360 * term.c (init_tty): Move setting the terminal name before the
7361 potential user: maybe_fatal.
7362
7363 2008-12-11 Chong Yidong <cyd@stupidchicken.com>
7364
7365 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
7366 all callers changed. Call free_frame_faces to free the face cache.
7367
7368 2008-12-11 Jason Rumney <jasonr@gnu.org>
7369
7370 * w32font.c (fill_in_logfont): Don't assume symbol script means
7371 SYMBOL_CHARSET. (Bug#547)
7372
7373 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
7374 size for surrogates. (Bug#1096, bug#872)
7375
7376 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
7377
7378 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
7379
7380 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
7381
7382 * process.c (Fsystem_process_attributes, syms_of_process):
7383 Fix typo in name of Ssystem_process_attributes.
7384 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
7385
7386 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
7387
7388 * syntax.c (Fmodify_syntax_entry): Doc fix.
7389
7390 2008-12-10 Juanma Barranquero <lekktu@gmail.com>
7391
7392 * font.c (Ffont_spec): Move usage to end of docstring.
7393
7394 2008-12-10 Jason Rumney <jasonr@gnu.org>
7395
7396 * w32font.c (Qcham): New symbol.
7397 (font_supported_scripts): Add cham, and comments for other new
7398 scripts in bitfield from OpenType spec.
7399 (add_font_entity_to_list): Limit unicode-sip fonts to those that
7400 contain characters beyond the bmp.
7401
7402 2008-12-10 Kenichi Handa <handa@m17n.org>
7403
7404 * ftfont.c (fc_charset_table): Add "unicode-sip".
7405 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7406 Qunicode_sip.
7407
7408 2008-12-10 Juanma Barranquero <lekktu@gmail.com>
7409
7410 * coding.c (QCdefault_char): Rename from QCdefalut_char.
7411 (Fcoding_system_put): Use QCdefault_char.
7412 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
7413
7414 2008-12-09 Chong Yidong <cyd@stupidchicken.com>
7415
7416 * xftfont.c (syms_of_xftfont): Fix typo.
7417
7418 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
7419
7420 2008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
7421
7422 * emacs.c (main): Close daemon_pipe on exec.
7423
7424 2008-12-08 Chong Yidong <cyd@stupidchicken.com>
7425
7426 * termchar.h (struct tty): New members termcap_term_buffer and
7427 termcap_strings_buffer.
7428
7429 * term.c (encode_terminal_code): Free any previous memory blocks
7430 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
7431 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
7432 All callers changed.
7433 (init_tty): Store termcap data and string buffers in new struct
7434 tty members termcap_term_buffer and termcap_strings_buffer.
7435 (delete_tty): Free them.
7436 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
7437
7438 2008-12-07 Seiji Zenitani <zenitani@mac.com>
7439
7440 * nsfns.m (ns_set_background_color): Remove code duplication.
7441 It was a substitute for face-transparency on OS X 10.3.
7442
7443 2008-12-06 Chong Yidong <cyd@stupidchicken.com>
7444
7445 * coding.c (make_conversion_work_buffer): Disable buffer
7446 modification hooks in the work buffer.
7447
7448 2008-12-05 Eli Zaretskii <eliz@gnu.org>
7449
7450 * process.c (procfs_system_process_attributes): If `nread' has a
7451 negative value, assign zero to it.
7452
7453 2008-12-05 Chong Yidong <cyd@stupidchicken.com>
7454
7455 * eval.c (Vdebug_on_error): Doc fix.
7456
7457 2008-12-05 Kenichi Handa <handa@m17n.org>
7458
7459 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
7460 second character is a combining character.
7461
7462 2008-12-05 Eli Zaretskii <eliz@gnu.org>
7463
7464 * process.c (procfs_system_process_attributes): Don't use cmd,
7465 cmdsize, and q without initializing them first.
7466
7467 2008-12-04 Jason Rumney <jasonr@gnu.org>
7468
7469 * w32font.c (w32font_draw): Initialize orig_clip before getting
7470 it, and delete it when finished.
7471
7472 2008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
7473
7474 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
7475 case when running as a daemon before detaching.
7476
7477 2008-12-03 Juanma Barranquero <lekktu@gmail.com>
7478
7479 * w32.c (init_environment): Don't unload library shell32.dll.
7480
7481 2008-12-03 Kenichi Handa <handa@m17n.org>
7482
7483 * font.c (font_at): Set `multibyte' at first.
7484
7485 * coding.c (decode_coding_charset): Check type of an element of
7486 vector VALIDS.
7487 (encode_coding_emacs_mule): Be sure to set `code'.
7488
7489 * fontset.c (face_for_char): Handle invalid charset property correctly.
7490 (font_for_char): Likewise.
7491
7492 2008-12-03 Chong Yidong <cyd@stupidchicken.com>
7493
7494 * font.c (Fopen_font): Compute pixel size correctly.
7495 (font_update_lface): Handle fonts with corrupted size specs,
7496 i.e. non-int and non-float.
7497
7498 * ftfont.c (ftfont_match): Initialize entity variable.
7499 (ftfont_resolve_generic_family): Avoid using uninitialized var.
7500 (ftfont_list_family): Initialize list var earlier.
7501
7502 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
7503
7504 * xterm.c (x_draw_glyph_string): Fall back on
7505 underline_minimum_offset for underline position.
7506
7507 2008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
7508
7509 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
7510
7511 * character.c (c_string_width): Specify the type for LEN.
7512
7513 2008-12-03 Kenichi Handa <handa@m17n.org>
7514
7515 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
7516 (decode_coding_utf_8): Likewise.
7517 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
7518 (produce_chars): Initialize consumed_chars to 0.
7519
7520 2008-12-02 Chong Yidong <cyd@stupidchicken.com>
7521
7522 * keyboard.c (make_lispy_position): Only use PT if the selected
7523 window is current.
7524
7525 2008-12-02 Andreas Schwab <schwab@suse.de>
7526
7527 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
7528
7529 * doprnt.c (doprnt1): Fix size of charbuf.
7530
7531 2008-12-02 Chong Yidong <cyd@stupidchicken.com>
7532
7533 * keyboard.c (timer_check): Revert last change.
7534
7535 2008-12-02 Juanma Barranquero <lekktu@gmail.com>
7536
7537 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
7538
7539 2008-12-01 Juanma Barranquero <lekktu@gmail.com>
7540
7541 * makefile.w32-in: Update dependencies.
7542 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
7543
7544 2008-12-01 Andreas Schwab <schwab@suse.de>
7545
7546 * font.c (register_font_driver): Use xmalloc.
7547 (font_put_frame_data): Likewise.
7548
7549 2008-12-01 Chong Yidong <cyd@stupidchicken.com>
7550
7551 * xfaces.c (realize_x_face): Make abort condition clearer.
7552
7553 * gtkutil.c (update_frame_tool_bar): Initialize variable.
7554
7555 2008-11-30 Chong Yidong <cyd@stupidchicken.com>
7556
7557 * keyboard.c (timer_check): After a timer runs, ensure that the
7558 selected window's buffer is current.
7559
7560 2008-11-30 Juanma Barranquero <lekktu@gmail.com>
7561
7562 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
7563 It was accidentally restored by the Unicode merge.
7564
7565 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
7566
7567 2008-11-29 Juanma Barranquero <lekktu@gmail.com>
7568
7569 * w32proc.c: Include "coding.h".
7570 (Fw32_short_file_name): Encode filename passed to Windows API.
7571 (Fw32_long_file_name): Encode filename passed to Windows API and
7572 decode back the result. (Bug#1433)
7573
7574 2008-11-29 Kenichi Handa <handa@m17n.org>
7575
7576 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
7577 not before accessing it.
7578
7579 * charset.c (Fdefine_charset_internal): After calculating
7580 min_char, max_char, and fastmap, copy the charset structure again.
7581 (encode_char): Fix the previous change.
7582
7583 2008-11-28 Seiji Zenitani <zenitani@mac.com>
7584
7585 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
7586
7587 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
7588
7589 * nsterm.m (x_set_frame_alpha): New function.
7590
7591 2008-11-27 Eli Zaretskii <eliz@gnu.org>
7592
7593 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
7594
7595 2008-11-27 Juanma Barranquero <lekktu@gmail.com>
7596
7597 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
7598 pointer to check_face_name.
7599
7600 2008-11-27 Kenichi Handa <handa@m17n.org>
7601
7602 * category.h (SET_CATEGORY_SET): Call set_category_set.
7603 (set_category_set): Extern it.
7604
7605 * category.c (hash_get_category_set): New function.
7606 (Fmodify_category_entry): Adjusted for the change of
7607 char_table_ref_and_range. Call hash_get_category_set to get a
7608 category set to store in the table.
7609
7610 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
7611 Funify_charset.
7612
7613 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
7614 (DECODE_CHAR): Check if the decoder vector is ready.
7615 (ENCODE_CHAR): Check if the encoder char-table is ready.
7616 (maybe_unify_char): Extern it.
7617
7618 * charset.c (Vchar_unified_charset_table): Delete it.
7619 (inhibit_load_charset_map): New variable.
7620 (temp_charset_work): New variable.
7621 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
7622 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
7623 New macros.
7624 (load_charset_map): Meaning of control_flag changed. If
7625 inhibit_load_charset_map is nonzero, setup a table in
7626 temp_charset_work.
7627 (load_charset): New argument control_flag.
7628 (map_charset_for_dump): New function.
7629 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
7630 map_charset_for_dump.
7631 (Fdefine_charset_internal): If the charset method is MAP, load
7632 mapping tables by calling load_charset.
7633 (Funify_charset): Don't load a mapping table but directly set
7634 Vchar_unify_table.
7635 (maybe_unify_char): New function.
7636 (decode_char): Don't handle the deleted method MAP_DEFERRED.
7637 Handle the case of inhibit_load_charset_map being nonzero.
7638 (encode_char): Don't handle the deleted method MAP_DEFERRED.
7639 Handle the case of inhibit_load_charset_map being nonzero.
7640 (Fclear_charset_maps): Just free temp_charset_work.
7641 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
7642 variable.
7643
7644 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
7645 change of char_table_ref_and_range.
7646 (char_table_ref_and_range): Change the meaning of argument FROM
7647 and TO. Now the caller must provide initial values for *FROM
7648 and *TO.
7649
7650 * fontset.c (fontset_add): Adjusted for the change of
7651 char_table_ref_and_range.
7652 (fontset_get_font_group): Likewise.
7653 (Ffontset_info): Likewise.
7654
7655 * keymap.c (describe_vector): Adjusted for the change of
7656 char_table_ref_and_range. For char-table, put boundary between
7657 non-ASCII and 8-bit characters.
7658
7659 * print.c (print_object): For bool-vector, delete unnecessary
7660 check of ASCII_BYTE_P.
7661
7662 2008-11-26 Jason Rumney <jasonr@gnu.org>
7663
7664 * w32font.c (w32font_open_internal): Don't include external
7665 leading in font height. (Bug#879)
7666
7667 2008-11-26 Glenn Morris <rgm@gnu.org>
7668
7669 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
7670 redefinition with ifdef. (Bug#1383)
7671
7672 2008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
7673
7674 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
7675
7676 2008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
7677
7678 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
7679 New EmacsView methods.
7680 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
7681 Fixes bug #1048,1357,1414.
7682
7683 2008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
7684
7685 Fix bug #1362.
7686 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
7687 is not an indexed color.
7688 * nsterm.m (free_indexed_color): Add argument checking.
7689 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
7690
7691 2008-11-24 Chong Yidong <cyd@stupidchicken.com>
7692
7693 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
7694 Document confirm-after-completion value for
7695 minibuffer-completion-confirm.
7696
7697 2008-11-24 Jason Rumney <jasonr@gnu.org>
7698
7699 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
7700 warning.
7701
7702 2008-11-23 Jason Rumney <jasonr@gnu.org>
7703
7704 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
7705 restored before returning.
7706
7707 * w32font.c (check_face_name): New function.
7708 (add_font_entity_to_list): Use it to filter out common substituted
7709 fonts. (Bug#642)
7710
7711 2008-11-22 Martin Rudalics <rudalics@gmx.at>
7712
7713 * buffer.c (Fswitch_to_buffer): Reword and mention new option
7714 confirm-nonexistent-file-or-buffer in doc-string.
7715
7716 2008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
7717
7718 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
7719 Fix copy/paste typo. Add checks.
7720
7721 2008-11-21 Kenichi Handa <handa@m17n.org>
7722
7723 * coding.c (detect_coding_iso_2022): Reject invalid composition
7724 sequence.
7725 (DECODE_COMPOSITION_START): If the current source is the last
7726 block, and the current composition doesn't end, regard this
7727 sequence as invalid.
7728 (decode_coding_iso_2022): Handle invalid composition sequence.
7729
7730 2008-11-20 Martin Rudalics <rudalics@gmx.at>
7731
7732 * window.c (coordinates_in_window): Don't return
7733 ON_VERTICAL_BORDER for the rightmost position of a mode/header
7734 line when the window is not the rightmost one. (Bug#1372)
7735
7736 2008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
7737
7738 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
7739
7740 2008-11-15 Eli Zaretskii <eliz@gnu.org>
7741
7742 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
7743 and bright_bg if noninteractive is non-zero.
7744
7745 2008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7746
7747 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
7748 x_draw_glyph_string_background.
7749
7750 * w32term.c (x_draw_glyph_string): Likewise.
7751
7752 2008-11-15 Chong Yidong <cyd@stupidchicken.com>
7753
7754 * xterm.c (x_draw_glyph_string): Stop drawing the background of
7755 the next glyph string once past the overhang width.
7756
7757 * nsterm.m (ns_draw_glyph_string): Likewise.
7758
7759 * w32term.c (x_draw_glyph_string): Likewise.
7760
7761 2008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
7762
7763 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
7764 double file close.
7765
7766 2008-11-14 Martin Rudalics <rudalics@gmx.at>
7767
7768 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
7769 dedicated status of window before attempting to display another
7770 buffer in it.
7771
7772 2008-11-14 Juanma Barranquero <lekktu@gmail.com>
7773
7774 * msdos.c (Fmsdos_long_file_names):
7775 (syms_of_msdos) <dos-unsupported-char-glyph>:
7776 * dosfns.c (Fint86): Fix typos in docstrings.
7777
7778 2008-11-14 Eli Zaretskii <eliz@gnu.org>
7779
7780 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
7781
7782 2008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
7783
7784 * puresize.h (BASE_PURESIZE): Increase to 1260000.
7785
7786 2008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
7787
7788 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
7789
7790 * frame.h: Negative alpha means "don't touch".
7791
7792 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
7793
7794 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
7795
7796 2008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
7797
7798 * hftctl.c:
7799 * chpdef.h:
7800 * acldef.h: Remove files used only for systems no longer supported.
7801
7802 * Makefile.in: Fix .o alphabetical ordering.
7803 (hftctl.o): Remove dependency, file removed.
7804 (keymap.o, print.o): Depend on charset.h.
7805
7806 2008-11-10 Kenichi Handa <handa@m17n.org>
7807
7808 * character.c (Fget_byte): Fix and make it faster for unibyte target.
7809
7810 2008-11-08 Chong Yidong <cyd@stupidchicken.com>
7811
7812 * dired.c (file_name_completion): If completion_ignore_case is
7813 enabled, ignore case when checking completion-regexp-list.
7814
7815 2008-11-08 Eli Zaretskii <eliz@gnu.org>
7816
7817 * vm-limit.c (get_lim_data): Fix last change.
7818
7819 2008-11-08 Kenichi Handa <handa@m17n.org>
7820
7821 * character.c (Fget_byte): New function.
7822 (syms_of_character): Defsubr Fget_byte.
7823
7824 2008-11-07 Chong Yidong <cyd@stupidchicken.com>
7825
7826 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
7827 cursor position is valid after scrolling.
7828
7829 2008-11-06 Juanma Barranquero <lekktu@gmail.com>
7830
7831 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
7832
7833 2008-11-06 Glenn Morris <rgm@gnu.org>
7834
7835 * xterm.c (handle_one_xevent): Don't let popup menus cause
7836 mouse-autoselect-window related window switching. (Bug#1261)
7837
7838 2008-11-04 David Smith <davidsmith@acm.org> (tiny change)
7839
7840 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
7841
7842 2008-11-04 Andreas Schwab <schwab@suse.de>
7843
7844 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
7845
7846 2008-11-03 Chong Yidong <cyd@stupidchicken.com>
7847
7848 * xfns.c (Fx_wm_set_size_hint): New function.
7849
7850 2008-11-03 Martin Rudalics <rudalics@gmx.at>
7851
7852 * textprop.c (Fprevious_single_char_property_change): Return 0
7853 when there's no change in a string. (Bug#1301)
7854
7855 2008-11-02 Martin Rudalics <rudalics@gmx.at>
7856
7857 * frame.c (do_switch_frame): New argument NORECORD passed to
7858 Fselect_window.
7859 (Fselect_frame): New argument NORECORD passed to
7860 do_switch_frame.
7861 (Fset_frame_selected_window): New argument NORECORD passed to
7862 Fselect_frame.
7863 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
7864 in call of do_switch_frame.
7865 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
7866 Handle NORECORD argument in call of Fselect_frame.
7867 * lisp.h (do_switch_frame, Fselect_frame)
7868 (Fset_frame_selected_window): Adjust declarations.
7869 * window.c (select_frame_norecord): New function.
7870 (run_window_configuration_change_hook): Use it and call
7871 Fselect_frame with NORECORD set.
7872 (Fselect_window): Pass NORECORD to Fselect_frame.
7873 (Fset_window_configuration): Handle NORECORD argument in call of
7874 do_switch_frame.
7875 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
7876 Fset_frame_selected_window.
7877 * keyboard.c (command_loop_1): Handle NORECORD in call of
7878 Fselect_frame (currently ifdefd).
7879
7880 2008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
7881
7882 * emacs.c (USAGE2): Untabify.
7883
7884 2008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
7885
7886 * composite.c (fill_gstring_header): Fix copy/paste typo.
7887
7888 2008-10-31 Martin Rudalics <rudalics@gmx.at>
7889
7890 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
7891 (Fother_window): Rename argument and rewrite doc-string.
7892 (select_window_norecord): Fix return value. (Bug#1276)
7893
7894 2008-10-30 Juanma Barranquero <lekktu@gmail.com>
7895
7896 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
7897 new frames overriding foreground for tooltips. Based on similar patch
7898 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
7899
7900 2008-10-29 Chong Yidong <cyd@stupidchicken.com>
7901
7902 * emacs.c (Fdaemon_initialized): Initialize nfd.
7903
7904 2008-10-29 Martin Rudalics <rudalics@gmx.at>
7905
7906 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
7907 (Fwindow_text_height): Clarify doc-strings.
7908 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
7909 doc-string of window-scroll-functions.
7910
7911 2008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
7912
7913 * category.c (syms_of_category): Fix typo in docstring.
7914
7915 2008-10-28 Juanma Barranquero <lekktu@gmail.com>
7916
7917 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
7918 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
7919 Fix typos in docstrings.
7920
7921 2008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
7922
7923 * emacs.c (daemon_pipe): Make non-static.
7924 (IS_DAEMON): Move definition ...
7925 * lisp.h (IS_DAEMON): ... here.
7926 (daemon_pipe): Declare.
7927 (is_daemon): Remove.
7928 * dispnew.c (init_display): Use IS_DAEMON.
7929
7930 2008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
7931
7932 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
7933 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
7934
7935 * emacs.c (is_daemon): Remove.
7936 (main): Don't set is_daemon.
7937 (IS_DAEMON): New macro.
7938 (Fdaemonp, Fdaemon_initialized): Use it.
7939 (Fdaemon_initialized): Write a char into the pipe to make sure the
7940 parent exits.
7941 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
7942
7943 2008-10-27 Chong Yidong <cyd@stupidchicken.com>
7944
7945 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
7946 over-sized glyph, draw it with the default glyph width.
7947
7948 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
7949 glyph, draw it with the default glyph width.
7950
7951 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
7952 glyph, draw it with the default glyph width.
7953
7954 * xdisp.c (try_scrolling): When computing the distance from the
7955 scroll margin to PT, try moving some distance past the window
7956 bottom before giving up.
7957
7958 2008-10-27 Martin Rudalics <rudalics@gmx.at>
7959
7960 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
7961 (Fset_window_buffer): Explain in doc-string that a window can be
7962 "strongly" dedicated to its buffer.
7963
7964 2008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
7965
7966 * emacs.c (daemon_name): New variable.
7967 (main): Deal with --daemon=SERVER_NAME.
7968 (Fdaemonp): Return a name if one was passed to --daemon.
7969
7970 2008-10-26 Romain Francoise <romain@orebokech.com>
7971
7972 * emacs.c (daemon_pipe): New variable.
7973 (main): Create a pipe before forking, make the parent exit only after
7974 the child has closed its end of the pipe. Move closing the
7975 descriptors ...
7976 (Fdaemon_initialized): ... here. New function.
7977
7978 2008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
7979
7980 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
7981 the previous unoptimized table.
7982
7983 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
7984 the distinction between non-nil and non-t value of `dedicated'.
7985
7986 2008-10-25 Chong Yidong <cyd@stupidchicken.com>
7987
7988 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
7989 read_char_minibuf_menu_text is large enough to hold the menu string.
7990
7991 2008-10-25 Martin Rudalics <rudalics@gmx.at>
7992
7993 * window.c (Fget_buffer_window, Fdelete_windows_on)
7994 (Freplace_buffer_in_windows): Make buffer argument optional and
7995 rename to buffer_or_name.
7996
7997 2008-10-24 Chong Yidong <cyd@stupidchicken.com>
7998
7999 * xdisp.c (handle_single_display_spec, handle_display_prop):
8000 Undo 2005-05-16 change.
8001 (handle_stop): Pop iterator if it's loaded with an empty string.
8002 (get_overlay_strings_1): Don't save iterator if it's loaded with
8003 an empty string (bug#1201).
8004
8005 2008-10-24 Kenichi Handa <handa@m17n.org>
8006
8007 * ftfont.c (ftfont_otf_features): Fix previous change.
8008 (ftfont_otf_capability): Check FeatureList.FeatureCount before
8009 calling ftfont_otf_features.
8010
8011 2008-10-24 Kenichi Handa <handa@m17n.org>
8012
8013 * font.c (font_match_p): Fix for the case that a vector of
8014 characters is in script-representative-chars.
8015
8016 2008-10-24 Michael Albinus <michael.albinus@gmx.de>
8017
8018 * dbusbind.c (xd_in_read_queued_messages): New variable.
8019 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
8020 (xd_read_queued_messages): Catch Qdbus_error from the macros.
8021 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
8022 macro. (Bug#1186)
8023
8024 2008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
8025
8026 * s/sol2-10.h: New file.
8027
8028 2008-10-23 Juanma Barranquero <lekktu@gmail.com>
8029
8030 * xdisp.c (fill_glyph_string): Fix typo in source (though the
8031 poor beast has survived 9+ years and the jump from xterm.c!).
8032
8033 2008-10-23 Martin Rudalics <rudalics@gmx.at>
8034
8035 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
8036 Reword doc-string.
8037 (Fbury_buffer): In doc-string say what happens to the buffer's window.
8038
8039 2008-10-23 Juanma Barranquero <lekktu@gmail.com>
8040
8041 * character.c (syms_of_character) <script-representative-chars>:
8042 <unicode-category-table>: Doc fixes.
8043
8044 2008-10-23 Noah Friedman <friedman@splode.com>
8045
8046 * coding.c (make_conversion_work_buffer): Check that
8047 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
8048 Fget_buffer_create.
8049
8050 2008-10-23 Kenichi Handa <handa@m17n.org>
8051
8052 * font.c (font_add_log): Check the values of extra properties.
8053
8054 2008-10-22 Martin Rudalics <rudalics@gmx.at>
8055
8056 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
8057 Reword doc-string.
8058 (Fset_window_parameter): Use NILP.
8059 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
8060 (Frecenter): Use "selected" instead of "current" window in doc-strings.
8061
8062 2008-10-22 Juanma Barranquero <lekktu@gmail.com>
8063
8064 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
8065
8066 2008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
8067
8068 * nsfns.m (ns_appkit_version): New function.
8069 (x-server-version): Use it.
8070 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
8071 (x-server-vendor): Don't check_ns().
8072
8073 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
8074
8075 2008-10-22 Juanma Barranquero <lekktu@gmail.com>
8076
8077 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
8078 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
8079
8080 2008-10-22 Kenichi Handa <handa@m17n.org>
8081
8082 * syntax.c (scan_words): Call word_boundary_p instead of comparing
8083 scripts.
8084
8085 * category.c (word_boundary_p): Check scripts instead of charset.
8086 Handle nil value in word-separating-categories and
8087 word-combining-categories.
8088 (syms_of_category): Fix docstrings of word-separating-categories
8089 and word-combining-categories.
8090
8091 2008-10-21 Eli Zaretskii <eliz@gnu.org>
8092
8093 * coding.c (Fencode_coding_region, Fdecode_coding_region)
8094 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
8095
8096 2008-10-21 Martin Rudalics <rudalics@gmx.at>
8097
8098 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
8099 Rename arg "buffer" to "buffer_or_name".
8100 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
8101 it optional.
8102 (no_switch_window): Remove since the return value is not used.
8103 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
8104 Consider window as dedicated when Fwindow_dedicated_p returns a
8105 non-nil value.
8106 * lisp.h: Remove prototype for no_switch_window.
8107
8108 2008-10-21 Jan Djärv <jan.h.d@swipnet.se>
8109
8110 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
8111 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
8112
8113 2008-10-21 Kenichi Handa <handa@m17n.org>
8114
8115 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
8116 check Vlatin_extra_code_table.
8117
8118 2008-10-20 Eli Zaretskii <eliz@gnu.org>
8119
8120 * fileio.c (Fset_file_modes): Doc fix.
8121
8122 2008-10-19 Michael Albinus <michael.albinus@gmx.de>
8123
8124 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
8125 in arrays.
8126
8127 2008-10-19 Martin Rudalics <rudalics@gmx.at>
8128
8129 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
8130 Mention kill-buffer in doc-string.
8131 (Fset_window_buffer): Reinsert tem check removed in last commit.
8132 (Fenlarge_window, Fshrink_window): Have argument names and
8133 doc-string follow Elisp manual more closely.
8134
8135 2008-10-18 Eli Zaretskii <eliz@gnu.org>
8136
8137 * fileio.c (Fset_file_modes): Doc fix.
8138
8139 2008-10-18 Martin Rudalics <rudalics@gmx.at>
8140
8141 * window.c (Fwindow_width, Fset_window_start)
8142 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
8143 (Fdelete_windows_on, Freplace_buffer_in_windows):
8144 Make doc-strings follow code and Elisp manual more closely.
8145 (Fwindow_dedicated_p): Make window argument optional.
8146 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
8147 (Fset_window_buffer): Respect any non-nil dedicated value for
8148 window. Rename "buffer" argument to "buffer_or_name".
8149
8150 2008-10-18 Ulrich Mueller <ulm@gentoo.org>
8151
8152 * m/sh3.h: New file, machine description for SuperH.
8153
8154 2008-10-17 Martin Rudalics <rudalics@gmx.at>
8155
8156 * window.c (Fsplit_window): Rename arg horflag to horizontal.
8157
8158 2008-10-17 Kenichi Handa <handa@m17n.org>
8159
8160 * ftfont.c (ftfont_otf_features): Fix indexing
8161 gsub_gpos->FeatureList.Feature. Check the validity of indices.
8162
8163 2008-10-16 Magnus Henoch <mange@freemail.hu>
8164
8165 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
8166 (Fdbus_call_method_asynchronously): Ditto.
8167 This change makes C-h f display the argument list.
8168
8169 2008-10-16 Chong Yidong <cyd@stupidchicken.com>
8170
8171 * fileio.c (Fexpand_file_name): Doc fix.
8172
8173 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
8174 of :foreground and :background equivalent to unspecified (20.x
8175 compatibility).
8176
8177 2008-10-15 Eli Zaretskii <eliz@gnu.org>
8178
8179 * buffer.c (syms_of_buffer): Doc fix.
8180
8181 2008-10-14 Kenichi Handa <handa@m17n.org>
8182
8183 * font.c (font_clear_prop): When clearing font width, clear the
8184 average width field too.
8185
8186 2008-10-12 Andreas Schwab <schwab@suse.de>
8187
8188 * ftfont.c (ftfont_shape_by_flt): Make static.
8189 * ftfont.h (ftfont_shape_by_flt): Don't declare.
8190
8191 * font.c: Don't include <m17n-flt.h>.
8192
8193 2008-10-10 Eli Zaretskii <eliz@gnu.org>
8194
8195 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
8196
8197 2008-10-09 Eli Zaretskii <eliz@gnu.org>
8198
8199 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
8200 away code.
8201
8202 2008-10-09 Chong Yidong <cyd@stupidchicken.com>
8203
8204 * dispnew.c (update_text_area): Avoid looping due to large glyph
8205 overhangs (bug#1070).
8206
8207 2008-10-09 Kenichi Handa <handa@m17n.org>
8208
8209 * fontset.c (face_for_char): If face->fontset is negative, just
8210 return ascii_face.
8211
8212 * font.c (font_delete_unmatched): Fix previous change.
8213 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
8214
8215 2008-10-09 Martin Rudalics <rudalics@gmx.at>
8216
8217 * frame.c (Fraise_frame): On text-only terminals select frame in
8218 order to make it visible. (Bug#1061)
8219
8220 2008-10-08 Chong Yidong <cyd@stupidchicken.com>
8221
8222 * fontset.c (fontset_find_font): Check frame validity.
8223
8224 2008-10-07 Chong Yidong <cyd@stupidchicken.com>
8225
8226 * gtkutil.c (xg_display_open): Reset default display if none exists.
8227 (xg_display_close): Allow Emacs to close all displays (bug#985).
8228
8229 2008-10-06 Andreas Schwab <schwab@suse.de>
8230
8231 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
8232
8233 2008-10-06 Chong Yidong <cyd@stupidchicken.com>
8234
8235 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
8236
8237 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
8238
8239 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
8240 during initialization.
8241
8242 2008-10-04 Eli Zaretskii <eliz@gnu.org>
8243
8244 * xdisp.c (redisplay_internal): If frame switched, redisplay the
8245 whole thing on MSDOS frames as well as on a TTY.
8246
8247 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
8248 well as for TTY.
8249 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
8250 well as on a TTY.
8251
8252 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
8253 as well as for TTY.
8254
8255 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
8256
8257 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
8258 MSDOS frames as well.
8259
8260 2008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
8261
8262 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
8263 correct arguments.
8264 * menu.c (find_and_return_menu_selection): Add cast.
8265
8266 2008-10-03 Glenn Morris <rgm@gnu.org>
8267
8268 * emacs.c (USAGE1): Add --daemon.
8269
8270 2008-10-02 Eli Zaretskii <eliz@gnu.org>
8271
8272 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
8273 100, so it's in percents as advertised.
8274
8275 2008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
8276
8277 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
8278 (ns_output.current_cursor, ns_output.desired_cursor)
8279 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
8280 (FRAME_NEW_CURSOR_COLOR): Remove.
8281
8282 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
8283 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
8284 enumeration (HOLLOW_BOX_CURSOR, etc.).
8285
8286 * nsterm.m (ns_frame_rehighlight): Remove commented code.
8287 (draw_window_cursor): Simplify code.
8288 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
8289 Don't change cursor type. In latter, call rehighlight instead of doing
8290 updates manually.
8291 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
8292 Use core Emacs cursor types.
8293
8294 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
8295
8296 2008-10-02 Martin Rudalics <rudalics@gmx.at>
8297
8298 * process.c (Faccept_process_output): Fix doc-string.
8299
8300 2008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
8301
8302 * gmalloc.c (__sbrk): Also define for uClibc.
8303
8304 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
8305 for uClibc.
8306
8307 2008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
8308
8309 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
8310 styles.
8311 (nsfont_open): Reenable the cache.
8312
8313 2008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
8314
8315 * font.c (font_matching_entity): Reflect ATTRS in font selection.
8316 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
8317
8318 2008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
8319
8320 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
8321 a suspended terminal.
8322
8323 2008-09-30 Michael Albinus <michael.albinus@gmx.de>
8324
8325 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
8326
8327 2008-09-30 Eli Zaretskii <eliz@gnu.org>
8328
8329 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
8330
8331 2008-09-30 Chong Yidong <cyd@stupidchicken.com>
8332
8333 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
8334 in a continued line coincides with a line beginning.
8335
8336 2008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
8337
8338 * nsfont.m (nsfont_trait_distance): Fix bug.
8339 (nsfont_list): Return a list rather than a vector (syncs with Handa
8340 changes of 2008-05-14).
8341 (nsfont_open): Improve logging.
8342
8343 2008-09-29 Andreas Schwab <schwab@suse.de>
8344
8345 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
8346
8347 2008-09-28 Martin Rudalics <rudalics@gmx.at>
8348
8349 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
8350 name as char-resolve-modifiers.
8351 Reported by: Markus Triska <markus.triska@gmx.at>
8352
8353 2008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
8354
8355 * dispnew.c (init_display): Return earlier when running as a daemon.
8356
8357 2008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
8358
8359 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
8360
8361 2008-09-27 Eli Zaretskii <eliz@gnu.org>
8362
8363 * composite.c (Fcomposition_get_gstring)
8364 (Fcompose_region_internal, Fcompose_string_internal)
8365 (Ffind_composition_internal): Doc fix.
8366 (syms_of_composite) <compose-chars-after-function>: Doc fix.
8367 (syms_of_composite) <auto-composition-function>: Doc fix.
8368 (syms_of_composite) <composition-function-table>: Doc fix.
8369
8370 2008-09-25 Chong Yidong <cyd@stupidchicken.com>
8371
8372 * search.c (wordify): New argument for lax word-ends.
8373 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
8374
8375 2008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
8376
8377 * lisp.h (is_daemon): Declare.
8378 * dispnew.c (init_display): Do not try to initialize the terminal
8379 when running as a daemon.
8380
8381 2008-09-22 Chong Yidong <cyd@stupidchicken.com>
8382
8383 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
8384 x_display_pixel_height.
8385
8386 2008-09-22 Martin Rudalics <rudalics@gmx.at>
8387
8388 * undo.c (record_point): Don't call Fundo_boundary for first
8389 change. (Bug#731)
8390
8391 2008-09-22 Juanma Barranquero <lekktu@gmail.com>
8392
8393 * emacs.c (Fdaemonp): Doc fix.
8394
8395 2008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
8396
8397 * emacs.c (main): Place #ifdef in the proper place.
8398
8399 2008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
8400
8401 * emacs.c (standard_args): Add --daemon.
8402 (main): Disconnect from the terminal when --daemon is passed.
8403 (is_daemon): New variable.
8404 (Fdaemonp): New function.
8405 (syms_of_emacs): Defsubr it.
8406
8407 2008-09-20 Chong Yidong <cyd@stupidchicken.com>
8408
8409 * xdisp.c (get_next_display_element): Handle string display
8410 correctly when checking for the end of a box run.
8411
8412 2008-09-20 Glenn Morris <rgm@gnu.org>
8413
8414 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
8415 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
8416 (Frename_file): Avoid copying to trash if a rename involves
8417 a delete. (Bug#964).
8418
8419 2008-09-20 Eli Zaretskii <eliz@gnu.org>
8420
8421 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
8422 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
8423 frames as well as termcap frames.
8424 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
8425 get_named_tty.
8426
8427 2008-09-19 Eli Zaretskii <eliz@gnu.org>
8428
8429 * process.c (procfs_system_process_attributes): Fix cmdline in
8430 case /proc/PID/cmdline is empty.
8431
8432 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
8433 x_display_pixel_height.
8434
8435 2008-09-19 Juanma Barranquero <lekktu@gmail.com>
8436
8437 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
8438
8439 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
8440 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
8441
8442 2008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
8443
8444 * dispextern.h (struct it): Move line_wrap away from the middle of
8445 bitfields. Move voffset in struct iterator_stack_entry after the
8446 bitfields. Move tab_width near after another short.
8447
8448 2008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
8449
8450 * frame.h (struct frame): Move alpha from the middle of bitfields.
8451
8452 * window.h (struct window): Move frozen_window_start_p after the
8453 rest of the bitfields to reduce padding.
8454
8455 2008-09-18 Chong Yidong <cyd@stupidchicken.com>
8456
8457 * xterm.h (x_display_info): Remove `height' and `width' members.
8458
8459 * nsterm.h (ns_display_info): Remove `height' and `width' members.
8460
8461 * w32term.h (w32_display_info): Remove `height', `width',
8462 `height_in', and `width_in' members.
8463
8464 * xterm.c (x_display_pixel_height, x_display_pixel_width):
8465 New functions.
8466 (x_calc_absolute_position): Use them.
8467 (x_term_init): Omit removed `height' and `width' members.
8468
8469 * w32term.c (x_display_pixel_height, x_display_pixel_width):
8470 New functions.
8471 (w32_read_socket, x_calc_absolute_position): Use them.
8472 (w32_initialize_display_info, w32_term_init): Omit removed members
8473 of w32_display_info.
8474
8475 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
8476 New functions.
8477 (ns_initialize_display_info): Omit removed members of ns_display_info.
8478
8479 * xterm.c (x_display_pixel_height, x_display_pixel_width):
8480 New functions.
8481 (x_calc_absolute_position): Use them.
8482 (x_term_init): Omit removed `height' and `width' members.
8483
8484 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
8485 (compute_tip_xy):
8486 * frame.c (x_fullscreen_adjust):
8487 * xmenu.c (menu_position_func): Use x_display_pixel_height and
8488 x_display_pixel_width.
8489
8490 2008-09-18 Kenichi Handa <handa@m17n.org>
8491
8492 * composite.c (fill_gstring_header): Don't check FROM and TO here.
8493 (composition_compute_stop_pos): Fix handling of static composition.
8494 (Fcomposition_get_gstring): Check FROM and TO at first.
8495
8496 2008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
8497
8498 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
8499 mixup (YAILOM).
8500
8501 2008-09-17 Chong Yidong <cyd@stupidchicken.com>
8502
8503 * indent.c (Fvertical_motion): Use position reported by iterator
8504 instead of PT for determining screen motion (bug#943).
8505
8506 2008-09-17 Romain Francoise <romain@orebokech.com>
8507
8508 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
8509
8510 2008-09-17 Kenichi Handa <handa@m17n.org>
8511
8512 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
8513
8514 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
8515 if necessary.
8516
8517 2008-09-16 Kenichi Handa <handa@m17n.org>
8518
8519 * coding.c (make_conversion_work_buffer): Avoid calling
8520 Fget_buffer_create if it is not necessary.
8521
8522 2008-09-15 Martin Rudalics <rudalics@gmx.at>
8523
8524 * window.c (Fselect_window): Don't update window_select_count and
8525 use_time when norecord is not nil.
8526
8527 2008-09-14 Kenichi Handa <handa@m17n.org>
8528
8529 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
8530 specpdl_ptr.
8531
8532 2008-09-12 Kenichi Handa <handa@m17n.org>
8533
8534 * indent.c (scan_for_column): Don't handle automatic composition
8535 if the current buffer is not associated with a window.
8536
8537 * composite.c (composition_reseat_it): If the current buffer is
8538 not associated with a window, ignore the automatic composition.
8539 (find_automatic_composition): Likewise.
8540
8541 2008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
8542
8543 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
8544 (Fgpm_mouse_stop): Use it.
8545 * termhooks.h (close_gpm): Declare.
8546 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
8547 connection if Gpm_GetEvent fails.
8548
8549 * window.c (set_window_buffer): Always preserve current-buffer.
8550
8551 2008-09-12 Glenn Morris <rgm@gnu.org>
8552
8553 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
8554
8555 2008-09-11 Glenn Morris <rgm@gnu.org>
8556
8557 * charset.c (charset-map-path): Doc fix.
8558
8559 2008-09-10 Kenichi Handa <handa@m17n.org>
8560
8561 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
8562
8563 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
8564 compose a grapheme cluster with the preceding base glyph.
8565
8566 * composite.c (composition_compute_stop_pos): Fix previous change.
8567 Reset cmp_it->id to -1 at first.
8568
8569 2008-09-10 Glenn Morris <rgm@gnu.org>
8570
8571 * Makefile.in (character.o, chartab.o): Fix config.h typo.
8572
8573 2008-09-09 Chong Yidong <cyd@stupidchicken.com>
8574
8575 * keyboard.c (read_key_sequence): Reapply translation maps when
8576 switching keyboards.
8577
8578 2008-09-09 Kenichi Handa <handa@m17n.org>
8579
8580 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
8581 characters.
8582
8583 * composite.c (FORWARD_CHAR): Fix calculation
8584 of (POSITION).pos_byte.
8585 (composition_compute_stop_pos): Limit the search of composition to
8586 at most 500 characters ahead. If we reach the limit or find a
8587 newline, set cmp_it->ch to -2 and return 0.
8588 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
8589
8590 2008-09-08 Kenichi Handa <handa@m17n.org>
8591
8592 * indent.c (Fvertical_motion): Be sure to set
8593 it_overshoot_expected if it.cmp_it.id is non-negative.
8594
8595 2008-09-07 Andreas Schwab <schwab@suse.de>
8596
8597 * callproc.c (Fcall_process): Don't hold references to string data
8598 across garbage collection. Move initialisation of new_argv down
8599 to avoid compiler bug.
8600
8601 2008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
8602
8603 * process.c (Fsystem_process_attributes): Doc fix.
8604
8605 2008-09-07 Chong Yidong <cyd@stupidchicken.com>
8606
8607 * callproc.c (Fcall_process): Canonicalize current directory name.
8608
8609 * xdisp.c (move_it_to): When moving by vpos, ensure that the
8610 iterator advances to the next line if the current line ends in a
8611 continued tab.
8612
8613 2008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
8614
8615 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
8616 member to point to cmp_from.
8617
8618 * xdisp.c: Doc fix for references to gidx data member.
8619
8620 2008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
8621
8622 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
8623
8624 2008-09-07 Kenichi Handa <handa@m17n.org>
8625
8626 * composite.c (FORWARD_CHAR): Check STOP after
8627 incrementing (POSITION).pos.
8628
8629 2008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
8630
8631 * process.c (Fsystem_process_attributes): Doc fix.
8632
8633 2008-09-06 Chong Yidong <cyd@stupidchicken.com>
8634
8635 * keyboard.c (Ftop_level): Doc fix.
8636
8637 2008-09-06 Eli Zaretskii <eliz@gnu.org>
8638
8639 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
8640 minibuffer, don't let lower part of menu invade the echo area.
8641
8642 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
8643 "char *q" to access menu text and advance through it. Revert the
8644 change that displayed ">" instead of ASCII character 0x10.
8645
8646 2008-09-05 Eli Zaretskii <eliz@gnu.org>
8647
8648 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
8649 toggle boxes and radio buttons on MS-DOS as well.
8650
8651 2008-09-05 Kenichi Handa <handa@m17n.org>
8652
8653 * composite.c (autocmp_chars): Check lookback count.
8654 (composition_compute_stop_pos): Set cmp_it->lookback.
8655 (composition_reseat_it): Check lookback count.
8656 (struct position_record): New struct.
8657 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
8658 (find_automatic_composition): New function.
8659 (composition_adjust_point): Use find_automatic_composition.
8660
8661 * dispextern.h (struct composition_it): New member lookback.
8662
8663 2008-09-02 Chong Yidong <cyd@stupidchicken.com>
8664
8665 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
8666 if moving by a single line.
8667
8668 2008-09-02 Andreas Schwab <schwab@suse.de>
8669
8670 * xterm.c (x_delete_display): Fix merge error.
8671
8672 * fileio.c (Fexpand_file_name): Remove unused variables.
8673
8674 2008-09-02 Eli Zaretskii <eliz@gnu.org>
8675
8676 * fileio.c (Fexpand_file_name): Copy argument `name' into local
8677 storage on all platforms, not just on DOS_NT.
8678
8679 2008-09-02 Jason Rumney <jasonr@gnu.org>
8680
8681 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
8682 Ensure mouse is not grabbed after menu is finished.
8683
8684 2008-09-01 Chong Yidong <cyd@stupidchicken.com>
8685
8686 * xfaces.c (Finternal_set_alternative_font_family_alist)
8687 (Finternal_set_alternative_font_registry_alist): Properly copy
8688 entire alist structure.
8689
8690 2008-09-01 Kenichi Handa <handa@m17n.org>
8691
8692 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
8693 representative chars of the script is a vector.
8694 (ftfont_list): Handle the case where the representative chars of
8695 the script is a vector.
8696
8697 * character.c (syms_of_character): Docstring of
8698 script-representative-chars fixed.
8699
8700 2008-08-31 Eli Zaretskii <eliz@gnu.org>
8701
8702 * msdos.c (BUILD_CHAR_GLYPH): New macro.
8703 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
8704 the menu. Allocate larger buffer for `text', to account for
8705 possible ^C characters.
8706
8707 2008-08-31 Martin Rudalics <rudalics@gmx.at>
8708
8709 * xdisp.c (prepare_menu_bars): Don't call
8710 Vwindow_size_change_functions with arg Qt.
8711
8712 2008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
8713
8714 * font.h (font_range):
8715 * fileio.c (report_file_error):
8716 * composite.c (composition_update_it): Yet another int/Lisp_Object
8717 mixup (YAILOM).
8718
8719 2008-08-30 Glenn Morris <rgm@gnu.org>
8720
8721 * data.c (Fmake_variable_frame_local): Doc fix.
8722
8723 * frame.c (Fmodify_frame_parameters): Doc fix.
8724
8725 2008-08-30 Eli Zaretskii <eliz@gnu.org>
8726
8727 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
8728 needed by GetTokenInformation.
8729 (w32_system_process_attributes): Check return values of all system
8730 APIs.
8731
8732 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
8733 only when the state changes.
8734 (IT_update_begin, IT_update_end): Add termscript trace.
8735
8736 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
8737 clipboard is unavailable. Set dst to NULL if it doesn't point to
8738 malloc'ed data.
8739 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
8740 passing random values to xfree.
8741
8742 * dispnew.c (init_display): Set `tty's association in frame's
8743 parameters alist to the name of the terminal device, if that is known.
8744
8745 2008-08-29 Jason Rumney <jasonr@gnu.org>
8746
8747 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
8748
8749 2008-08-29 Eli Zaretskii <eliz@gnu.org>
8750
8751 * composite.c (fill_gstring_body): Avoid compiler warnings.
8752
8753 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
8754 LGLYPH_SET_CODE to avoid compiler warnings.
8755
8756 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
8757
8758 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
8759
8760 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
8761 LGLYPH_SET_CODE.
8762
8763 2008-08-29 Kenichi Handa <handa@m17n.org>
8764
8765 * fileio.c (report_file_error): Don't downcase the first character
8766 of errstring if it is still unibyte.
8767
8768 2008-08-29 Kenichi Handa <handa@m17n.org>
8769
8770 These changes are to re-implement the automatic composition so
8771 that it doesn't use text properties.
8772
8773 * Makefile.in (ftfont.o): Depend on composite.h.
8774 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
8775
8776 * character.h (Vunicode_category_table): Extern it.
8777
8778 * character.c (Vunicode_category_table): New variable.
8779 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
8780
8781 * chartab.c (optimize_sub_char_table): Perform more greedy
8782 optimization.
8783
8784 * composite.h (enum composition_method):
8785 Delete COMPOSITION_WITH_GLYPH_STRING.
8786 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
8787 (Vcomposition_function_table): Extern it.
8788 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
8789 (composition_gstring_put_cache, composition_gstring_from_id)
8790 (composition_gstring_p, composition_gstring_width)
8791 (composition_compute_stop_pos, composition_reseat_it)
8792 (composition_update_it, composition_adjust_point): Extern them.
8793 (Fcomposition_get_gstring): EXFUN it.
8794
8795 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
8796 (Vcomposition_function_table)
8797 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
8798 (gstring_hash_table, gstring_work, gstring_work_headers):
8799 New variables.
8800 (gstring_lookup_cache, composition_gstring_put_cache)
8801 (composition_gstring_from_id, composition_gstring_p)
8802 (composition_gstring_width, fill_gstring_header)
8803 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
8804 (composition_reseat_it, composition_update_it)
8805 (composition_adjust_point, Fcomposition_get_gstring): New functions.
8806 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
8807 and gstring_work_headers. DEFVAR_LISP composition-function-table.
8808 Defsubr compostion_get_gstring.
8809
8810 * dispextern.h (struct glyph): New union u.cmp. Delete the member
8811 cmp_id.
8812 (struct glyph_string): Delete the member gidx. New members
8813 cmp_id, cmp_from, and cmp_to.
8814 (enum it_method): Delete GET_FROM_COMPOSITION.
8815 (struct composition_it): New struct.
8816 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
8817 Delete c, len, cmp_id, cmp_len in u.comp.
8818
8819 * font.h (enum lgstring_indices): Delete it.
8820 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
8821 (enum lglyph_indices): Likewise.
8822 (font_range): Adjust extern.
8823 (font_fill_lglyph_metrics): Extern it.
8824
8825 * font.c (QCf): New variable.
8826 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
8827 (font_prepare_composition): Delete this function.
8828 (font_range): Type and arguments changed.
8829 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
8830 (font_fill_lglyph_metrics): New function.
8831 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
8832 (syms_of_font): DEFSYM QCf. Delete defsubr for
8833 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
8834 Defsubr Sfont_shape_gstring.
8835
8836 * fontset.h (font_for_char): Extern it.
8837
8838 * fontset.c (font_for_char): New function.
8839
8840 * ftfont.c: Include composite.h.
8841 (ftfont_resolve_generic_family): Add langset "en" to pattern.
8842 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
8843
8844 * indent.c: Include composite.h and dispextern.h.
8845 (check_composition): Delete this function.
8846 (scan_for_column): Handle composition by
8847 composition_compute_stop_pos, composition_reseat_it, and
8848 composition_update_it.
8849 (compute_motion): Likewise.
8850 (Fvertical_motion): Fix checking of composition.
8851
8852 * keyboard.c (adjust_point_for_property): Check composition by
8853 composition_adjust_point.
8854
8855 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
8856 struct glyph_string.
8857
8858 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
8859 (append_composite_glyph): Adjust for the change of struct it and
8860 struct glyph.
8861 (produce_composite_glyph): Likewise.
8862
8863 * w32term.c (x_draw_composite_glyph_string_foreground):
8864 Adjust for the change of struct glyph_string.
8865 (x_draw_glyph_string): Likewise.
8866
8867 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
8868 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
8869
8870 * xdisp.c: Include font.h.
8871 (it_props): Delete the entry for Qauto_composed.
8872 (init_iterator): Initialize it->cmp_it.id to -1.
8873 (compute_stop_pos): Call composition_compute_stop_pos.
8874 (face_before_or_after_it_pos): Adjust for the change of struct it.
8875 (handle_auto_composed_prop): Delete it.
8876 (handle_composition_prop): Handle only static composition.
8877 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
8878 from xassert. Initialize it->cmp_it.stop_pos.
8879 (push_it): Adjust for the change of struct it.
8880 (pop_it): Likewise.
8881 (get_next_element): Delete next_element_from_composition.
8882 (CHAR_COMPOSED_P): New macro.
8883 (get_next_display_element): For automatic composition, get a face
8884 from the font in the glyph-string.
8885 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
8886 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
8887 (next_element_from_string): Check if the character at the current
8888 position is composed by CHAR_COMPOSED_P.
8889 (next_element_from_buffer): Likewise.
8890 (next_element_from_composition): Adjust for the change of struct it.
8891 Update it->cmp_it.
8892 (dump_glyph): Adjust for the change of struct glyph.
8893 (fill_composite_glyph_string): Adjust for the change of struct
8894 it and struct glyph. Don't handle automatic composition here.
8895 (fill_gstring_glyph_string): New function.
8896 (x_get_glyph_overhangs): Handle automatic composition.
8897 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
8898 (BUILD_GSTRING_GLYPH_STRING): New macro.
8899 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
8900 automatic composition.
8901 (append_composite_glyph): Adjust for the change of struct it and
8902 struct glyph.
8903 (x_produce_glyphs): Adjust for the change of struct it.
8904
8905 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
8906 the change of struct glyph_string.
8907 (x_draw_glyph_string): Likewise.
8908
8909 2008-08-29 Glenn Morris <rgm@gnu.org>
8910
8911 * buffer.c (word-wrap): Doc fix.
8912 * xdisp.c (truncate-partial-width-windows): Doc fix.
8913 Increase default to 50.
8914
8915 2008-08-29 Chong Yidong <cyd@stupidchicken.com>
8916
8917 * xdisp.c (update_tool_bar_unwind): New function.
8918 (update_tool_bar): Temporarily set selected frame before building
8919 tool-bar items.
8920
8921 2008-08-28 Michael Albinus <michael.albinus@gmx.de>
8922
8923 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
8924 snprintf, respectively.
8925 (xd_append_arg): Convert strings with Fstring_make_unibyte.
8926
8927 2008-08-28 Chong Yidong <cyd@stupidchicken.com>
8928
8929 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
8930 LDFLAGS to GNUstep CC invocation.
8931
8932 2008-08-27 Chong Yidong <cyd@stupidchicken.com>
8933
8934 * indent.c (Fvertical_motion): Revert last change. Handle the
8935 general case where we are moving forward, and PT spans multiple
8936 screen lines.
8937
8938 * eval.c (find_handler_clause): Temporarily increase
8939 max-lisp-eval-depth while printing the backtrace buffer, to
8940 guarantee that help-mode code can run.
8941
8942 2008-08-27 Eli Zaretskii <eliz@gnu.org>
8943
8944 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
8945 colors under -rv.
8946 (IT_set_frame_parameters): Don't swap foreground and background
8947 colors if `(reverse . t)' is present in the frame properties.
8948 (internal_terminal_init): Call init_frame_faces only for the
8949 initial frame.
8950
8951 2008-08-27 Andreas Schwab <schwab@suse.de>
8952
8953 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
8954
8955 2008-08-27 Andreas Schwab <schwab@suse.de>
8956
8957 * search.c (search_buffer): Set char_base to zero only at the end.
8958
8959 2008-08-27 Kenichi Handa <handa@m17n.org>
8960
8961 * fileio.c (report_file_error): Fix handling of multibyte error string.
8962
8963 2008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
8964
8965 * xterm.c (x_term_init): Temporarily hide the partially
8966 initialized terminal while calling vendor-specific-keysyms.
8967
8968 2008-08-26 Eli Zaretskii <eliz@gnu.org>
8969
8970 * msdos.c (internal_terminal_init): Most initializations done only
8971 once, especially initial_screen_colors[] and termscript open.
8972
8973 2008-08-26 Chong Yidong <cyd@stupidchicken.com>
8974
8975 * eval.c (Fcondition_case): Doc fix.
8976
8977 * widgetprv.h (EmacsFramePart): Change font member to the new font
8978 struct.
8979
8980 * widget.c: Include character.h and font.h for XSETFONT.
8981 (setup_frame_gcs): Compute X font id from font struct, just once.
8982
8983 2008-08-26 Eli Zaretskii <eliz@gnu.org>
8984
8985 * term.c (get_named_tty): Fix last change.
8986
8987 2008-08-26 Chong Yidong <cyd@stupidchicken.com>
8988
8989 * indent.c (Fvertical_motion): If moving forward starting from a
8990 multi-line string, move the iterator to the last line of that string.
8991
8992 2008-08-25 Eli Zaretskii <eliz@gnu.org>
8993
8994 * frame.c (do_switch_frame): Mark previously displayed frame as
8995 obscured for FRAME_MSDOS_P frames as well.
8996
8997 2008-08-24 Eli Zaretskii <eliz@gnu.org>
8998
8999 * frame.c (make_terminal_frame): Initialize f->terminal,
9000 f->terminal->reference_count, and scroll bars on MS-DOS as well.
9001 Set the top frame to newly created frame.
9002 (Fmake_terminal_frame): Reuse the_only_display_info.
9003
9004 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
9005 estimating available memory.
9006
9007 2008-08-23 David Reitter <david.reitter@gmail.com>
9008
9009 * nsterm.m (ns_draw_window_cursor): Don't call
9010 NSDisableScreenUpdates and NSEnableScreenUpdates on
9011 non-NS_IMPL_COCOA systems.
9012
9013 2008-08-23 Andreas Schwab <schwab@suse.de>
9014
9015 * process.c (procfs_system_process_attributes): Fix use of
9016 uninitialized variables.
9017
9018 2008-08-23 Eli Zaretskii <eliz@gnu.org>
9019
9020 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
9021
9022 * dispnew.c (init_display): Remove MS-DOS specific conditions for
9023 calling tty-set-up-initial-frame-faces.
9024
9025 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
9026 Allow MSDOS frames along with X frames.
9027
9028 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
9029 addition to output_termcap.
9030
9031 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
9032
9033 * termchar.h (FRAME_TTY): Support output_msdos_raw.
9034 (struct tty_display_info) [MSDOS]: Add fields related to mouse
9035 highlight.
9036
9037 * process.c [!subprocesses]: Define QCname.
9038 (syms_of_process): Intern and staticpro it.
9039
9040 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
9041 Adjust for changes in encoding/decoding routines.
9042 Use encode_coding_object and decode_coding_object instead of
9043 encode_coding and decode_coding.
9044
9045 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
9046
9047 * dosfns.c: Include frame.h before termhooks.h.
9048 (dos_cleanup): Use CURTTY ()->termscript instead of a global
9049 variable termscript.
9050
9051 * s/msdos.h (USER_FULL_NAME): Define.
9052 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
9053
9054 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
9055 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
9056 pw->pw_gecos.
9057
9058 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
9059 SELECTED_FRAME as additional (1st) argument.
9060 (tty_read_avail_input): Handle output_msdos_raw in
9061 addition to output_termcap.
9062
9063 * msdos.c: Include frame.h before termhooks.h.
9064 (mouse_on, mouse_off, mouse_moveto, mouse_init)
9065 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
9066 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
9067 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
9068 (IT_set_terminal_modes, IT_reset_terminal_modes)
9069 (IT_set_frame_parameters): Use tty->termscript instead of a global
9070 variable termscript.
9071 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
9072 global variable terminal_coding. Don't refer to
9073 Vnonascii_translation_table.
9074 (internal_terminal_init): Set Vwindow_system in current_kboard.
9075 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
9076 Announce date and time of session start, if termscript is open.
9077 Don't zero out the_only_display_info (it is done in
9078 term.c:init_tty). Open termscript only of not already open.
9079 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
9080 here instead of dos_ttraw. Don't initialize display if this is an
9081 initial tty. Don't set FRAME_FONT.
9082 (Vwindow_system_version): Bump to 23.
9083 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
9084 is available, set up mouse_position_hook.
9085 (dos_ttraw, IT_set_terminal_modes): If called with initial
9086 terminal, do nothing.
9087 (IT_set_frame_parameters): Handle the Qtty_type frame
9088 parameter by calling internal_terminal_init.
9089 (dos_set_window_size, show_mouse_face)
9090 (clear_mouse_face, IT_note_mode_line_highlight)
9091 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
9092 (dos_rawgetc): Use tty_display_info instead of x_display_info.
9093 (initialize_msdos_display): New function.
9094 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
9095 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
9096 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
9097 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
9098 Accept additional argument: a pointer to a frame. Update all callers.
9099 (request_sigio, unrequest_sigio): Don't define, now defined on
9100 sysdep.c.
9101 (IT_write_glyphs): Rewrite to use encode_terminal_code.
9102
9103 * term.c [MSDOS]: Include msdos.h.
9104 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
9105 conditional to DOS_NT. Allow only one call to this function in a
9106 session. Don't allocate a new struct tty_display_info; instead,
9107 reuse the_only_display_info. Call get_tty_size to get screen
9108 dimensions. Call init_baud_rate to set bad_rate.
9109 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
9110 (Fsuspend_tty) [MSDOS]: Don't close input and output.
9111 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
9112 (get_tty_terminal, get_named_tty, Ftty_type)
9113 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
9114 output_termcap.
9115 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
9116 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
9117 only when subprocesses are supported.
9118
9119 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
9120 f->output_data.x.
9121 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
9122 terminal devices.
9123
9124 * msdos.h: Remove definition of struct x_display_info and struct
9125 x_output.
9126 (FRAME_FONT): Use output_data.tty.
9127 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
9128 (struct x_display_info): Rename from display_info. Update all users in
9129 msdos.c.
9130 (struct x_output): Remove background_pixel and foreground_pixel.
9131 (the_only_display_info): Rename from the_only_x_display.
9132 (dos_ttraw): Update prototype.
9133
9134 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
9135 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
9136
9137 2008-08-23 Jason Rumney <jasonr@gnu.org>
9138
9139 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
9140 (fn_TIFFSetDirectory): New library function used.
9141 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
9142 (tiff_load): Use :index to select among multiple images. Set count
9143 property when multiple images exist.
9144 (gif_format): Use :index, not :image.
9145
9146 2008-08-23 Chong Yidong <cyd@stupidchicken.com>
9147
9148 * xdisp.c (try_scrolling): Check INT_MAX instead of
9149 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
9150 to obtain INT_MAX.
9151
9152 2008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
9153
9154 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
9155
9156 2008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
9157
9158 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
9159 GNUstep library location.
9160
9161 2008-08-21 Chong Yidong <cyd@stupidchicken.com>
9162
9163 * xfaces.c (x_update_menu_appearance): Check validity of menu font
9164 before using it.
9165
9166 * puresize.h (BASE_PURESIZE): Increase to 1250000.
9167
9168 2008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
9169
9170 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
9171 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
9172 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
9173 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
9174 (EmacsApp-cursor_blink_handler): Remove declaration.
9175 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
9176 match 01 Feb 2008 changes in xterm.c.
9177 (ns_read_socket): Add cast to avoid warning.
9178 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
9179 GNUstep.
9180
9181 2008-08-20 Chong Yidong <cyd@stupidchicken.com>
9182
9183 * xselect.c (x_get_foreign_selection): Return nil if desired
9184 selection could not be obtained, instead of signalling an error.
9185
9186 2008-08-20 David Reitter <david.reitter@gmail.com>
9187
9188 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
9189 * nsterm.m: Remove ns-specific code for cursor blinking.
9190 (ns_draw_window_cursor): Clear cursor properly rather than
9191 redrawing the area. Respect width of bar cursors.
9192 These changes enable the use of generic blink-cursor-mode and
9193 generic cursor types in NS and support smooth cursor movements (do
9194 not blink off after command).
9195 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
9196 Nextstep, too.
9197
9198 2008-08-19 Kenichi Handa <handa@m17n.org>
9199
9200 * font.c (Vfont_log_deferred): New variable.
9201 (font_add_log): Check Vfont_log_deferred.
9202 (font_deferred_log): New function.
9203
9204 * font.h (font_deferred_log): Extern it.
9205
9206 * fontset.c (reorder_font_vector): Use encoding charset of fonts
9207 for sorting.
9208 (face_for_char): Use deferred log.
9209
9210 2008-08-18 Kenichi Handa <handa@m17n.org>
9211
9212 * fontset.c (face_for_char): Add font log.
9213
9214 * font.c (font_add_log): Add the font properties :script, :lang,
9215 and :otf in the log.
9216
9217 2008-08-17 Chong Yidong <cyd@stupidchicken.com>
9218
9219 * xdisp.c: Remove dead code.
9220 (handle_invisible_prop, next_overlay_string): Defer call to
9221 setup_for_ellipsis.
9222 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
9223
9224 2008-08-15 Chong Yidong <cyd@stupidchicken.com>
9225
9226 * xfaces.c (lookup_derived_face): Properly handle possible zero
9227 return value of get_lface_attributes.
9228 (merge_faces): Don't tell lookup_derived_face to signal an error
9229 if face is not found.
9230
9231 * dired.c (Fdirectory_files): Doc fix.
9232
9233 * process.c (make_process): Initialize kill_without_query struct
9234 member.
9235
9236 2008-08-15 Eli Zaretskii <eliz@gnu.org>
9237
9238 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
9239 Alternative calculation of totphys for Visual Studio 6.
9240
9241 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
9242
9243 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
9244 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
9245 All users changed.
9246 (stat): Only root directory passed to GetDriveType. Allow RAM
9247 disk as well as local fixed disk when w32-get-true-file-attributes
9248 is set to `local'.
9249 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
9250 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
9251 (w32_cached_id, w32_add_to_cache): New functions.
9252 (get_name_and_id): Look account names in the cache before calling
9253 lookup_account_sid.
9254 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
9255 New initialization flags.
9256 (globals_of_w32): Initialize them to zero.
9257 (w32_system_process_attributes): Use w32_cached_id and
9258 w32_add_to_cache.
9259
9260 2008-08-14 Lawrence Mitchell <wence@gmx.li>
9261
9262 * lread.c (Fread_char, Fread_char_exclusive): If no character
9263 event is read before timeout is reached, return nil, rather than
9264 converting to a number.
9265
9266 2008-08-14 Chong Yidong <cyd@stupidchicken.com>
9267
9268 * fns.c (use_dialog_box): Doc fix.
9269
9270 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
9271 on OS X.
9272
9273 2008-08-13 Chong Yidong <cyd@stupidchicken.com>
9274
9275 * frame.c (Qns_parse_geometry): New var.
9276 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
9277
9278 2008-08-11 Chong Yidong <cyd@stupidchicken.com>
9279
9280 * xdisp.c (x_produce_glyphs): Handle the case when font has no
9281 space character in calculating tabs.
9282
9283 2008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
9284
9285 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
9286
9287 2008-08-10 Glenn Morris <rgm@gnu.org>
9288
9289 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
9290 silence gcc "limited range of data type" warnings in some
9291 make_fixnum_or_float calls.
9292
9293 2008-08-09 Eli Zaretskii <eliz@gnu.org>
9294
9295 * w32.c (w32_system_process_attributes): If the process does not
9296 exist, return nil.
9297
9298 * w32.c: Include thelp32.h, psapi.h and coding.h.
9299 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
9300 declarations.
9301 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
9302 (Process32Next_Proc): New typedefs.
9303 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
9304 (g_b_init_process32_next, g_b_init_open_thread_token)
9305 (g_b_init_impersonate_self, g_b_init_revert_to_self)
9306 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
9307 (g_b_init_get_process_working_set_size)
9308 (g_b_init_global_memory_status_ex): New static variables.
9309 (globals_of_w32): Initialize them.
9310 (create_toolhelp32_snapshot, process32_first, process32_next)
9311 (open_thread_token, impersonate_self, revert_to_self)
9312 (get_process_memory_info, get_process_working_set_size)
9313 (global_memory_status, global_memory_status_ex): New wrapper
9314 functions.
9315 (w32_list_system_processes, w32_system_process_attributes)
9316 (enable_privilege, restore_privilege, ltime, process_times):
9317 New functions.
9318 (convert_time_raw): New function.
9319 (convert_time): Remove conversion of FILETIME into time in 100
9320 nsec units, call convert_time_raw instead.
9321
9322 * process.h (w32_list_system_processes, w32_system_process_attributes):
9323 Add prototypes.
9324 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
9325 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
9326 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
9327 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
9328
9329 * process.c (Fsystem_process_attributes): Doc fix.
9330
9331 2008-08-08 Chong Yidong <cyd@stupidchicken.com>
9332
9333 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
9334 a continued multi-char glyph; if so, advance to the actual glyph.
9335
9336 2008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
9337
9338 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
9339
9340 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
9341 (.m.o): Use it.
9342 * config.in: Regenerate.
9343
9344 2008-08-07 Chong Yidong <cyd@stupidchicken.com>
9345
9346 * xdisp.c (redisplay_window): Revert last change.
9347 (try_window): Check bottom scroll margin too.
9348
9349 2008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
9350
9351 * config.in: Regenerate.
9352
9353 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
9354 -list-load-path-shadows'.
9355 (nsgui.h): Reduce number of things depending on it.
9356
9357 2008-08-06 Chong Yidong <cyd@stupidchicken.com>
9358
9359 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
9360 instead of window-end which does the wrong thing at eob.
9361 (try_cursor_movement): Minor optimization.
9362 (redisplay_window): If scroll margin is defined, don't assume
9363 window doesn't need scrolling.
9364
9365 2008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
9366
9367 * config.in: Regenerate.
9368
9369 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
9370 (mostlyclean): Don't delete *.d under NS.
9371
9372 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
9373
9374 2008-08-06 Kenichi Handa <handa@m17n.org>
9375
9376 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
9377
9378 2008-08-06 Andreas Schwab <schwab@suse.de>
9379
9380 * config.in: Regenerate.
9381
9382 2008-08-05 Chong Yidong <cyd@stupidchicken.com>
9383
9384 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
9385 forcing a window start.
9386
9387 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
9388 (auto_save_1): Update modtime when auto-save-list-file-name is on.
9389
9390 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
9391
9392 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
9393 argument.
9394
9395 2008-08-05 Juanma Barranquero <lekktu@gmail.com>
9396
9397 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
9398 <scroll-down-aggressively, before-change-functions>:
9399 <after-change-functions>: Reflow docstrings.
9400
9401 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
9402 Ken Raeburn <raeburn@gnu.org>
9403
9404 Dock menu customization, based on a patch by Ken Raeburn, plus some
9405 other fixes.
9406 * nsmenu.m (dockMenu): New variable.
9407 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
9408
9409 * nsterm.h (dockMenu): Declare.
9410
9411 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
9412 (ns_term_init): Initialize dockMenu.
9413 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
9414 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
9415 left.
9416
9417 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
9418
9419 2008-08-04 Chong Yidong <cyd@stupidchicken.com>
9420
9421 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
9422
9423 * config.in: Regenerate.
9424
9425 2008-08-04 Seiji Zenitani <zenitani@mac.com>
9426
9427 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
9428
9429 2008-08-04 Chong Yidong <cyd@stupidchicken.com>
9430
9431 * nsterm.h (find_and_call_menu_selection): Fix prototype.
9432
9433 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
9434
9435 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
9436
9437 * keyboard.h: Comment an #endif.
9438
9439 * lisp.h (have_menus_p): Adjust comment.
9440
9441 * menu.c (find_and_return_menu_selection): Fix comparison with
9442 client_data.
9443
9444 * nsmenu.m (popup_activated_flag): New variable.
9445 (popup_activated): New function.
9446 (menu-or-popup-active-p): New exported lisp definition.
9447 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
9448 when popup done.
9449 (ns_popup_dialog): Set popup_activated_flag.
9450
9451 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
9452 version for GNUstep (handled by conditional typedef in nsterm.m).
9453 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
9454 in rgb.txt).
9455
9456 * process.c (init_process): Use DARWIN_OS, not DARWIN.
9457
9458 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
9459
9460 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
9461
9462 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
9463 shortcircuit if popup_activated like GTK and X toolkit.
9464
9465 * m/inter386.h: Change DARWIN to DARWIN_OS.
9466
9467 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
9468 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
9469 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
9470 comment on NO_SOCK_SIGIO.
9471
9472 2008-08-03 Chong Yidong <cyd@stupidchicken.com>
9473
9474 * nsterm.m (windowDidResize): Remove stopModal call.
9475
9476 2008-08-03 Andreas Schwab <schwab@suse.de>
9477
9478 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
9479 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
9480
9481 2008-08-02 Chong Yidong <cyd@stupidchicken.com>
9482
9483 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
9484 Don't use uninitialized pointer variable when using getrlimit.
9485
9486 2008-08-02 Jason Rumney <jasonr@gnu.org>
9487
9488 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
9489
9490 2008-08-02 Eli Zaretskii <eliz@gnu.org>
9491
9492 * alloc.c (NSTATICS): Bump to 0x640.
9493
9494 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
9495
9496 * lisp.h: Add prototype for directory_files_internal.
9497
9498 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
9499 New functions.
9500 (syms_of_process): Defsubr them. Add initializations for various
9501 Q* symbols used in procfs_system_process_attributes.
9502 (procfs_list_system_processes, procfs_system_process_attributes)
9503 [HAVE_PROCFS]: New functions.
9504 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
9505 (procfs_get_total_memory): New functions.
9506
9507 2008-08-01 Juanma Barranquero <lekktu@gmail.com>
9508
9509 * xfaces.c (Fx_load_color_file): Fix previous change;
9510 it is #ifdef WINDOWSNT, not WINDOWS_NT.
9511
9512 2008-08-01 Michael Albinus <michael.albinus@gmx.de>
9513
9514 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
9515
9516 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
9517
9518 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
9519
9520 2008-08-01 Chong Yidong <cyd@stupidchicken.com>
9521
9522 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
9523
9524 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
9525 define NSApplicationDelegateReplySuccess.
9526 (EmacsView -converstationIdentifier): Use long instead of
9527 NSInteger for GNUstep, since it doesn't have NSInteger.
9528
9529 * xmenu.c: Revert last change.
9530
9531 * keyboard.h: Fix last change.
9532
9533 2008-08-01 Juanma Barranquero <lekktu@gmail.com>
9534
9535 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
9536 on Windows.
9537
9538 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
9539
9540 Warning clearing and clean-up in NS port.
9541 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
9542 Add prototypes.
9543 * nsgui.h (FACE_DEFAULT): Remove, unused.
9544 (XGCValues): Change colors to unsigned long.
9545 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
9546 nsterm.m.
9547 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
9548 (ns_list_fonts): Remove, unused.
9549 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
9550 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
9551 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
9552 (nsfont_draw): Compare face colors to 0, not nil.
9553 * nsmenu.m (struct widget_value): Drop unneeded declaration.
9554 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
9555 (-addSubmenuWithTitle:): Use NSMenuItem class.
9556 (ns_popup_menu): Use NO, not NULL, for enabled setting.
9557 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
9558 (ns_clip_to_row): Make gc arg a BOOL.
9559 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
9560 ns_clip_to_row() call.
9561 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
9562 used). Cast FRAME_FONT assignments.
9563 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
9564 (ns_string_to_lispmod): Change arg to const char.
9565 (ns_term_init): Use NSMenuItem class.
9566 (EmacsApp -openFile:): Move to different section of file.
9567 (EmacsApp -application:openFiles:): Don't return a value, call
9568 -replyToOpenOrPrint:.
9569 (EmacsView -keyDown:): Fix up cast.
9570 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
9571 (EmacsView -menuDown:): Cast tag in call to
9572 find_and_call_menu_selection().
9573 (ns_list_fonts): Remove, unused.
9574 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
9575 (ns_fontname_to_xlfd): Make static.
9576 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
9577 Remove prototypes (now in keyboard.h).
9578 (next_menubar_widget_id): Remove, unused.
9579 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
9580 Remove prototypes (now in keyboard.h).
9581 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
9582
9583 2008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
9584
9585 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
9586 (floatfns.o): Depend on syssignal.h.
9587 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
9588
9589 * systty.h: Fix previous change that removed BSD_TERMIOS.
9590 Add comments to #ifdefs.
9591
9592 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
9593
9594 * w32fns.c (w32-load-color-file): Remove.
9595 (x-open-connection): Use renamed Fx_load_color_file.
9596 * xfaces.c (x-load-color-file): Add.
9597 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
9598 Emacs.clr.
9599 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
9600
9601 2008-07-31 Michael Albinus <michael.albinus@gmx.de>
9602
9603 * dbusbind.c (Fdbus_call_method_asynchronously)
9604 (Fdbus_method_error_internal): New defuns.
9605 (xd_read_message): Handle also reply messages.
9606 (Vdbus_registered_functions_table): Extend docstring.
9607
9608 2008-07-31 Juanma Barranquero <lekktu@gmail.com>
9609
9610 * keyboard.c (gobble_input): Fix previous change.
9611
9612 2008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
9613
9614 * bitmaps/README:
9615 * xfns.c:
9616 * termcap.c:
9617 * term.c:
9618 * syswait.h:
9619 * systty.h:
9620 * systime.h:
9621 * syssignal.h:
9622 * sysdep.c:
9623 * process.h:
9624 * process.c:
9625 * print.c:
9626 * ndir.h:
9627 * lread.c:
9628 * keyboard.c:
9629 * getpagesize.h:
9630 * floatfns.c:
9631 * fileio.c:
9632 * emacs.c:
9633 * doc.c:
9634 * dispnew.c:
9635 * dired.c:
9636 * data.c:
9637 * callproc.c:
9638 * buffer.c:
9639 * README:
9640 * Makefile.in:
9641 * s/template.h:
9642 * s/msdos.h:
9643 * m/vax.h: Remove VMS support.
9644 * s/vms.h:
9645 * vlimit.h:
9646 * uaf.h:
9647 * temacs.opt:
9648 * param.h:
9649 * ioctl.h: Remove file.
9650
9651 2008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
9652
9653 * s/ms-w32.h (MULTI_KBOARD): Remove.
9654 * xterm.c:
9655 * xselect.c:
9656 * xfns.c:
9657 * window.c:
9658 * w32term.c:
9659 * w32fns.c:
9660 * terminal.c:
9661 * termhooks.h:
9662 * term.c:
9663 * sysdep.c:
9664 * keyboard.h:
9665 * keyboard.c:
9666 * frame.h:
9667 * frame.c:
9668 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
9669 * config.in: Regenerate.
9670
9671 2008-07-30 Jason Rumney <jasonr@gnu.org>
9672
9673 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
9674
9675 * w32font.c (w32font_encode_char): Leave as unicode if in range.
9676 (w32font_open_internal): Get unicode version of textmetrics.
9677 Don't enable or disable glyph indices here.
9678 (w32font_open): Disable use of glyph indices.
9679
9680 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
9681
9682 2008-07-30 Chong Yidong <cyd@stupidchicken.com>
9683
9684 * minibuf.c (Vread_buffer_function): Doc fix.
9685
9686 2008-07-30 John Paul Wallington <jpw@pobox.com>
9687
9688 * minibuf.c (read_buffer_completion_ignore_case): New var.
9689 (Fread_buffer): Use it.
9690
9691 2008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
9692
9693 * systty.h (sensemode): Remove empty #if. Remove reference to
9694 BSD_TERMIOS, unused.
9695
9696 * sysdep.c: Remove reference to DGUX.
9697 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
9698
9699 * config.in: Regenerate.
9700
9701 2008-07-30 Jason Rumney <jasonr@gnu.org>
9702
9703 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
9704
9705 2008-07-29 Jason Rumney <jasonr@gnu.org>
9706
9707 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
9708 is populated.
9709 (uniscribe_encode_char): Always use uniscribe.
9710 Avoid using context if cache is populated.
9711
9712 2008-07-29 Jan Djärv <jan.h.d@swipnet.se>
9713
9714 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
9715 open menu.
9716
9717 * gtkutil.c (menu_nav_ended): Remove.
9718 (create_menus): Remove signal connect for menu_nav_ended.
9719
9720 2008-07-28 Chong Yidong <cyd@stupidchicken.com>
9721
9722 * xdisp.c (redisplay_window): Check return value of
9723 compute_window_start_on_continuation_line before forcing a window
9724 start.
9725
9726 2008-07-28 Jason Rumney <jasonr@gnu.org>
9727
9728 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
9729
9730 * w32term.c (w32_enable_unicode_output, cleartype_active):
9731 Remove obsolete display options.
9732 (x_draw_glyph_string_background): Don't use old cleartype_active
9733 workaround.
9734 (w32_initialize): Remove cleartype_active initialization.
9735 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
9736
9737 2008-07-28 Andreas Schwab <schwab@suse.de>
9738
9739 * lisp.h (init_weak_hash_tables, syms_of_font)
9740 (xd_read_queued_messages, syms_of_dbusbind): Declare.
9741 (remove_hash_entry): Don't declare.
9742 * eval.c (maybe_call_debugger): Make static and move before use.
9743 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
9744 * xdisp.c: Include "gtkutil.h" if USE_GTK.
9745 * xterm.h (x_set_frame_alpha): Declare.
9746
9747 2008-07-28 Jan Djärv <jan.h.d@swipnet.se>
9748
9749 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
9750 (create_menus): Connect selection-done to menu_nav_ended.
9751
9752 2008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
9753
9754 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
9755 Set Vx_resource_name to a fallback. Replace read of 'buffered'
9756 parameter with read of 'alpha' one.
9757 (Qns_frame_parameter): Remove.
9758 * nsselect.m (selection-coding-system)
9759 (next-selection-coding-system, Vselection_coding_system)
9760 (Vnext_selection_coding_system): Drop.
9761
9762 2008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
9763
9764 * nsfns.m (do-applescript, do_applescript): Rename to
9765 ns-do-applescript, ns_do_applescript, and move within file.
9766
9767 2008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
9768
9769 Remove support for Mac Carbon.
9770 * mactoolbox.c:
9771 * macterm.h:
9772 * macterm.c:
9773 * macselect.c:
9774 * macmenu.c:
9775 * macgui.h:
9776 * macfns.c:
9777 * mac.c: Remove file.
9778 * s/darwin.h:
9779 * m/intel386.h:
9780 * xfaces.c:
9781 * xdisp.c:
9782 * window.c:
9783 * tparam.c:
9784 * termhooks.h:
9785 * termcap.c:
9786 * term.c:
9787 * syssignal.h:
9788 * sysselect.h:
9789 * sysdep.c:
9790 * process.c:
9791 * lread.c:
9792 * lisp.h:
9793 * keyboard.c:
9794 * image.c:
9795 * fringe.c:
9796 * frame.h:
9797 * frame.c:
9798 * fontset.c:
9799 * font.h:
9800 * font.c:
9801 * fns.c:
9802 * fileio.c:
9803 * emacs.c:
9804 * dispnew.c:
9805 * dispextern.h:
9806 * config.in:
9807 * atimer.c:
9808 * Makefile.in: Remove code for Carbon.
9809
9810 2008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9811
9812 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
9813
9814 2008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9815
9816 * macterm.h (kCGBitmapByteOrder32Host): New define for
9817 non-universal SDKs.
9818
9819 * image.c (mac_create_cg_image_from_image, image_load_image_io)
9820 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
9821
9822 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
9823 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
9824
9825 2008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
9826
9827 * w32inevt.c: Include dispextern.h.
9828
9829 2008-07-26 Andreas Schwab <schwab@suse.de>
9830
9831 * print.c (print_object): Fix off-by-one in last change.
9832
9833 2008-07-25 Juanma Barranquero <lekktu@gmail.com>
9834
9835 * term.c (syms_of_term): Don't initialize default_orig_pair,
9836 default_set_foreground and default_set_background on Windows.
9837
9838 2008-07-25 Jason Rumney <jasonr@gnu.org>
9839
9840 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
9841 ScriptItemize. Clean up return value checking. Remove unused
9842 variables.
9843 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
9844 shaping engine.
9845
9846 * w32font.c (w32font_has_char): Handle the case where we can't
9847 determine the script for a character.
9848
9849 2008-07-25 Chong Yidong <cyd@stupidchicken.com>
9850
9851 * term.c (syms_of_term): Initialize default_orig_pair,
9852 default_set_foreground, and default_set_background.
9853
9854 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
9855 clash (bug#86).
9856 (getloadavg): Callers changed.
9857
9858 * image.c (svg_load_image): Fix last change.
9859 (svg_load_image): Use rsvg_handle_get_dimensions to check that
9860 image size is valid. Use g_object_unref instead of deprecated
9861 rsvg_handle_free to free rsvg handle.
9862 (x_from_xcolors): Don't initialize pixmap (silence compiler).
9863
9864 2008-07-25 Jason Rumney <jasonr@gnu.org>
9865
9866 * w32font.c (w32font_encode_char): Encode characters outside BMP as
9867 surrogates before looking up glyph index.
9868 (w32font_text_extents): Encode as surrogates if falling back to
9869 functions that need UTF-16 wide chars.
9870
9871 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
9872 BMP as surrogates before looking up glyph index.
9873
9874 2008-07-25 Chong Yidong <cyd@stupidchicken.com>
9875
9876 * image.c (svg_load_image): Check for failure in return value of
9877 rsvg_handle_get_pixbuf. Free rsvg handle when done.
9878
9879 2008-07-25 Jason Rumney <jasonr@gnu.org>
9880
9881 * w32font.c (Fx_select_font): Reverse sense of second arg.
9882
9883 2008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
9884
9885 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
9886 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
9887
9888 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
9889 (PURESIZE): Use it.
9890
9891 2008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
9892
9893 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
9894 * m/alpha.h (TEXT_END):
9895 * m/ibmrs6000.h (TEXT_END):
9896 * m/macppc.h (TEXT_END):
9897 * s/darwin.h (TEXT_END):
9898 * s/msdos.h (TEXT_END): Remove, unused.
9899 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
9900 * s/cygwin.h: Remove comment.
9901
9902 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
9903 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
9904 * m/intel386.h (DOT_GLOBAL_START):
9905 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
9906 (USG): Remove, file not used on USG platforms.
9907
9908 * Makefile.in (HAVE_X11): Remove empty #else.
9909
9910 2008-07-24 Andreas Schwab <schwab@suse.de>
9911
9912 * fileio.c (Finsert_file_contents): Properly adjust undo list
9913 after format conversion.
9914
9915 2008-07-24 Jan Djärv <jan.h.d@swipnet.se>
9916
9917 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
9918 (menu_nav_ended): Remove.
9919 (create_menus): Remove signal connect for menu_nav_ended.
9920 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
9921 create_menus.
9922 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
9923
9924 2008-07-23 Jason Rumney <jasonr@gnu.org>
9925
9926 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
9927 with opened font.
9928 (w32font_open): Set font type to gdi.
9929
9930 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
9931
9932 2008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
9933
9934 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
9935 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
9936 defines it.
9937 * unexec.c (ADDR_CORRECT): Define unconditionally.
9938
9939 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
9940
9941 * unexec.c: Remove code depending on !COFF and USG, the file is
9942 not used for such systems.
9943
9944 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
9945 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
9946 (LD_SWITCH_SYSTEM_1): Remove, update users.
9947
9948 * s/darwin.h (DATA_END):
9949 * m/intel386.h (DATA_END):
9950 * m/ibmrs6000.h (DATA_END):
9951 * m/alpha.h (DATA_END): Remove, unused.
9952
9953 * config.in: Regenerate.
9954 * s/ms-w32.h (subprocesses): Define unconditionally.
9955 * s/template.h (subprocesses): Update comment.
9956 * s/vms.h (subprocesses):
9957 * s/usg5-4.h (subprocesses):
9958 * s/hpux10-20.h (subprocesses):
9959 * s/gnu-linux.h (subprocesses):
9960 * s/cygwin.h (subprocesses):
9961 * s/bsd-common.h (subprocesses):
9962 * s/aix4-2.h (subprocesses):
9963 * s/darwin.h (subprocesses): Do not define, defined by default now.
9964
9965 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
9966 Remove all references.
9967 (temacs): Add GNUstep specific ld flags.
9968
9969 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
9970 similarly to what X does.
9971
9972 2008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
9973
9974 * nsfns.m (x-list-fonts): Remove.
9975 (syms_of_nsfns): Drop the x-list-fonts declaration.
9976 * nsterm.m: Get rid of remaining "//" comments.
9977
9978 2008-07-22 Chong Yidong <cyd@stupidchicken.com>
9979
9980 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
9981
9982 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
9983 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
9984 (Fns_own_selection_internal, Fx_disown_selection_internal)
9985 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
9986
9987 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
9988 ... */' style of docstrings. Doc fixes.
9989
9990 2008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
9991
9992 * terminfo.c (UP, BC, PC): Undo previous change.
9993
9994 * nsfns.m: Rename ns prefixed functions/variables to the
9995 corresponding x versions. Update references.
9996
9997 2008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
9998
9999 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
10000
10001 2008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
10002
10003 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
10004 Remove forwarding functions.
10005 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
10006 non-static.
10007 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
10008 non-static.
10009 (ns_frame_parm_handlers): Use the new names.
10010 (syms_of_nsfns): Move to the end of file.
10011
10012 * nsterm.m (syms_of_nsterm): Move to the end of file.
10013
10014 * dispnew.c (init_display): Remove code for X10.
10015
10016 2008-07-22 Jason Rumney <jasonr@gnu.org>
10017
10018 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
10019 bare drive.
10020
10021 2008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
10022
10023 * nsterm.m (syms_of_nsterm): Remove debugging println.
10024
10025 2008-07-22 David Reitter <david.reitter@gmail.com>
10026
10027 * nsfns.m (do_applescript, F_do_applescript): NS version of the
10028 Carbon implementation of the same functionality: execute arbitrary
10029 AppleScript code.
10030
10031 2008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
10032
10033 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
10034 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
10035 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
10036 (Fx_display_mm_height, Fx_display_mm_width)
10037 (Fx_display_backing_store, Fx_display_visual_class)
10038 (Fx_display_save_under, Fx_open_connection)
10039 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
10040 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
10041 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
10042 (Fx_display_pixel_width, Fx_display_pixel_height)
10043 (Fx_display_usable_bounds, Fx_display_planes)
10044 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
10045 ... */' style of docstrings.
10046
10047 2008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
10048
10049 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
10050 on this platform.
10051 (mips):
10052 * m/iris4d.h (mips): Do not define.
10053 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
10054
10055 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
10056
10057 * image.c:
10058 * nsfns.m:
10059 * nsselect.m:
10060 * nsterm.h:
10061 * nsterm.m: Rename ns prefixed functions/variables to the
10062 corresponding x versions. Update references.
10063
10064 * m/ibms390x.h (NO_REMAP): Do not undefine.
10065
10066 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
10067
10068 2008-07-21 Chong Yidong <cyd@stupidchicken.com>
10069
10070 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
10071 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
10072 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
10073 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
10074 (Fns_display_mm_height, Fns_display_mm_width)
10075 (Fns_display_backing_store, Fns_display_visual_class)
10076 (Fns_display_save_under, Fns_open_connection)
10077 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
10078 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
10079 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
10080 (Fns_display_pixel_width, Fns_display_pixel_height)
10081 (Fns_display_usable_bounds, Fx_display_planes)
10082 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
10083
10084 2008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
10085
10086 * print.c (print_object): Check print_depth before searching for
10087 circularities.
10088
10089 2008-07-21 Michael Albinus <michael.albinus@gmx.de>
10090
10091 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
10092 only sprintf.
10093
10094 2008-07-21 Kenichi Handa <handa@m17n.org>
10095
10096 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
10097
10098 2008-07-20 Andreas Schwab <schwab@suse.de>
10099
10100 * syntax.c (find_start_pos, find_start_value)
10101 (find_start_value_byte, find_start_begv, find_defun_start)
10102 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
10103
10104 2008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
10105
10106 * s/sol2-3.h: Insert contents of s/sol2.h.
10107 (LD_SWITCH_SYSTEM): Remove redundant definition.
10108 * s/sol2.h: Remove, unused.
10109
10110 2008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
10111
10112 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
10113
10114 2008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
10115
10116 * Makefile.in (ns_appdir): Fix typo in find command.
10117
10118 2008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
10119
10120 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
10121
10122 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
10123 added not supported anymore.
10124
10125 * s/usg5-4-2.h (LIBS_SYSTEM):
10126 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
10127
10128 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
10129 * s/lynxos.h (GETPGRP_NO_ARG):
10130 * s/hpux10-20.h (NO_SIOCTL_H):
10131 * s/gnu.h (GETPGRP_NO_ARG):
10132 * s/gnu-linux.h (NO_SIOCTL_H):
10133 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
10134 * s/cygwin.h (GETPGRP_NO_ARG):
10135 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
10136 (C_DEBUG_SWITCH): Remove duplicate definition.
10137
10138 * m/ibms390.h: Remove boilerplate comments.
10139
10140 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
10141
10142 * process.c (HAVE_SERIAL): Consolidate ifdefs.
10143 (wait_reading_process_output): Remove code for SunOS, platform not
10144 supported anymore. Use SOLARIS2 instead of sun.
10145
10146 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
10147
10148 * font.c (font_open_by_name): Under NS, default lface height to zero.
10149 (font_open_for_lface): Under NS, set size based on frame fontsize.
10150 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
10151 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
10152
10153 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
10154
10155 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
10156 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
10157 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
10158 YES/NO.
10159 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
10160 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
10161 * Makefile.in (clean): Clear out build destination dir.
10162
10163 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
10164
10165 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
10166 xterm, xselect.
10167 * lisp.h: Remove declaration of hash_remove.
10168 * nsgui.h: Remove redefinitions of hash_remove.
10169 * fns.c (hash_remove): Rename to hash_remove_from_table.
10170
10171 2008-07-19 Seiji Zenitani <zenitani@mac.com>
10172
10173 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
10174 strdup() the family UTF8String before modifying it.
10175
10176 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
10177
10178 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
10179 NS_FACE_BACKGROUND with 0 instead of nil.
10180 * nsfont.m (nsfont_draw): Same.
10181
10182 2008-07-19 Chong Yidong <cyd@stupidchicken.com>
10183
10184 * nsfns.m (ns_set_background_color): Fix crash.
10185
10186 2008-07-18 Chong Yidong <cyd@stupidchicken.com>
10187
10188 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
10189
10190 2008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
10191
10192 * puresize.h (BASE_PURESIZE): Increase to 1240000.
10193
10194 2008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10195
10196 * gtkutil.c: Include <config.h> instead of "config.h".
10197
10198 * lisp.h (Foverlay_buffer): Add EXFUN.
10199
10200 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
10201 child process to complete child_setup. Undo 2005-09-21 change.
10202
10203 * s/darwin.h: Mention setsid after vfork.
10204
10205 2008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10206
10207 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
10208 Depend on macgui.h.
10209
10210 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
10211 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
10212
10213 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
10214 and f19.
10215 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
10216
10217 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
10218 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
10219 Remove enumerators.
10220
10221 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
10222 Check if FACE_FROM_ID returns NULL.
10223
10224 2008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
10225
10226 * w32inevt.c (change_frame_size): Remove extern declaration.
10227 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
10228 change_frame_size.
10229
10230 2008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
10231
10232 * getloadavg.c: Revert last change (2008-07-15).
10233
10234 2008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
10235
10236 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
10237 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
10238 from configure.
10239
10240 2008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
10241
10242 * s/sol2.h:
10243 * s/sol2-4.h: Reorganize conditionals.
10244
10245 * ecrt0.c: Remove code depending on m68000, not used anymore.
10246
10247 * fns.c (hash_remove): Make static.
10248 * lisp.h (hash_remove): Don't prototype.
10249
10250 * m/ibmrs6000.h:
10251 * m/ibms390x.h:
10252 * m/macppc.h: Remove boilerplate comments.
10253
10254 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
10255 Solaris, which does not need them.
10256
10257 * m/vax.h: Remove comments about unsupported systems.
10258
10259 * s/darwin.h: Reorganize ifdefs.
10260
10261 2008-07-17 Andreas Schwab <schwab@suse.de>
10262
10263 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
10264
10265 2008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
10266
10267 Use SDATA. Follow coding convention of placing operators at
10268 beginning of next line rather than end of previous line, and placing
10269 spaces around infix operators.
10270
10271 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
10272 in case it was defined already.
10273 USE @GNUSTEP_MAKEFILES@ rather than envvars.
10274 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
10275 ns_default.
10276 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
10277 Lisp_Objects.
10278 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
10279 (ns_defined_color, ns_color_to_lisp): Declare.
10280 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
10281 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
10282 it's accepted even with USE_LISP_UNION_TYPE.
10283 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
10284 (update_frame_tool_bar): Remove apparently obsolete tests for
10285 non-integerness of f->tool_bar_lines.
10286 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
10287 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
10288 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
10289 (nsfont_open): Don't confuse NULL for Qnil.
10290 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
10291 * menu.h (find_and_call_menu_selection):
10292 * menu.c (find_and_call_menu_selection): Use just int for vector size.
10293 (find_and_return_menu_selection): Always return something.
10294 * frame.h: Include dispextern.h for Display_Info.
10295 (display_x_get_resource): Declare.
10296
10297 2008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
10298
10299 * syntax.c: Remove stdio.h include accidentally introduced in
10300 Emacs.app commit.
10301 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
10302 NS_IMPL_COCOA.
10303 * keyboard.c (handle_async_input, input_available_signal): Remove
10304 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
10305
10306 2008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
10307
10308 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
10309 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
10310 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
10311 Use SDATA.
10312
10313 * keymap.c: Remove all NS-specific code.
10314 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
10315 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
10316 where_is_preferred_modifier, return a different value depending on how
10317 preferred is the binding.
10318 (where_is_internal): Adjust accordingly.
10319 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
10320 Adjust to new preferred_sequence_p.
10321 (syms_of_keymap): Declare `where-is-preferred-modifier'.
10322 * keyboard.c (parse_solitary_modifier): Not static any more.
10323 * keyboard.h (parse_solitary_modifier): Declare.
10324
10325 2008-07-16 Andreas Schwab <schwab@suse.de>
10326
10327 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
10328 of easymenu.
10329
10330 2008-07-16 Chong Yidong <cyd@stupidchicken.com>
10331
10332 * xdisp.c (move_it_in_display_line): Account for word wrap, so
10333 that we don't move off the line.
10334
10335 2008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
10336
10337 * keyboard.c (Qsuper): Remove.
10338 (parse_menu_item): Don't call where_is_internal specially for NS.
10339
10340 2008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
10341
10342 * s/gnu-linux.h: Remove boilerplate comments.
10343
10344 * m/alpha.h (__ELF__): Consolidate conditions.
10345
10346 * m/m68k.h (linux): Use GNU_LINUX instead.
10347 Remove boilerplate comments.
10348
10349 * m/intel386.h: Undo refactoring from previous change.
10350 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
10351 too, remove dead code.
10352 (linux): Use GNU_LINUX instead.
10353
10354 2008-07-16 Jason Rumney <jasonr@gnu.org>
10355
10356 * w32gui.h: Repeat 26 June changes lost by last change.
10357
10358 2008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
10359
10360 * systty.h: Remove code for Aix on 386, unsupported platform.
10361
10362 * s/ms-w32.h: Remove boilerplate comments.
10363 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
10364
10365 * s/gnu-linux.h (TERM): Remove support.
10366 (HAVE_SYSVIPC): Remove, unused.
10367 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
10368 for this system.
10369
10370 * process.c: Remove support for IRIS, unused.
10371 Remove support for TERM, not relevant anymore.
10372
10373 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
10374 used with the definition.
10375
10376 * s/aix4-2.h (static): Do not undef.
10377
10378 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
10379 only used on Aix.
10380 (HAVE_SYSVIPC): Remove, unused.
10381
10382 * m/hp800.h (CANNOT_DUMP): Do not undef.
10383
10384 * m/alpha.h: Fix comment.
10385
10386 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
10387 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
10388 used by this configuration.
10389 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
10390 * unexec.c: Remove code depending on HPUX and
10391 USG_SHARED_LIBRARIES, not used with this file. Remove code
10392 depending on IRIS, unused. Remove if 0-ed code.
10393
10394 * s/template.h: Remove comments about static.
10395
10396 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
10397 Remove if 0-ed code.
10398 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
10399 were the same as the default.
10400 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
10401 Remove boilerplate comments.
10402 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
10403 (HAVE_SYSVIPC): Remove, unused.
10404 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
10405
10406 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
10407 Remove boilerplate comments.
10408 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
10409 Remove boilerplate comments.
10410 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
10411 Remove boilerplate comments.
10412 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
10413
10414 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
10415 USG systems which do not use DATA_SEG_BITS.
10416 Refactor code. Remove boilerplate comments.
10417
10418 * m/ibms390.h:
10419 * m/m68k.h:
10420 * s/bsd-common.h:
10421 * s/cygwin.h:
10422 * s/darwin.h:
10423 * s/freebsd.h:
10424 * s/gnu.h:
10425 * s/msdos.h: Remove boilerplate comments.
10426
10427 * m/iris4d.h: Remove boilerplate comments and code for systems that
10428 do not use this file.
10429 (IRIS_4D): Remove, unused.
10430
10431 * m/mips.h: Remove boilerplate comments and code for systems that
10432 do not use this file.
10433 (SIGN_EXTEND_CHAR):
10434 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
10435 * unexmips.c: Remove file, unused.
10436
10437 * editfns.c (Fuser_full_name): Replace the only use of
10438 USER_FULL_NAME with its value.
10439 * config.in: Regenerate.
10440
10441 2008-07-16 David Reitter <david.reitter@gmail.com>
10442
10443 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
10444 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
10445
10446 2008-07-16 Glenn Morris <rgm@gnu.org>
10447
10448 * emacs.c (system-type): Doc fix.
10449
10450 2008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
10451
10452 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
10453 If the cache doesn't work, let's fix it, rather than work around it.
10454
10455 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
10456
10457 * Makefile.in: Correct additions for nsfont.o in last commit.
10458 * nsfont.m: New file (forgot last commit).
10459
10460 2008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
10461
10462 * callproc.c (set_initial_environment): Initialize
10463 Vprocess_environment under CANNOT_DUMP (fixes crash when
10464 batch-compiling for bootstrap).
10465
10466 2008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
10467 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10468
10469 (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
10470 fix crash due to different init order.
10471
10472 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
10473
10474 Changes and additions for NeXTstep windowing system (Cocoa and
10475 GNUstep) support.
10476
10477 * Makefile.in:
10478 * config.in: Support defines and build commands for NS port.
10479 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
10480 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
10481 * dispextern.h: Include nsgui.h and add needed typedefs under NS
10482 windowing.
10483 (struct face): Add synth_ital field.
10484 * dispnew.c: Include nsterm.h when compiling under NS windowing.
10485 (init_display): Initialize Vinitial_window_system to "ns" when so
10486 compiled.
10487 * emacs.c: Include GSConfig.h when compiling under GNUstep.
10488 (display_arg): Use under NS.
10489 (main): Under NS, allocate autorelease pool and handle command line
10490 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
10491 (standard_args): Add NS-specific args.
10492 (shut_down_emacs): Shut down NS terminal if compiled under NS.
10493 * font.c (DEFAULT_ENCODING): New variable.
10494 (font_find_for_lface): Use it.
10495 (syms_of_font): Load syms_of_nsfont under NS.
10496 * font.h: Declare nsfont_driver when compiled under NS.
10497 * fontset.c: When compiling under NS, include nsterm.h.
10498 (fontset_from_font): Autoconstruct fontset under NS.
10499 * frame.c (various): Under NS, include nsterm.h, add Qns window system
10500 symbol, document and use it.
10501 (do_switch_frame): When for_deletion under Cocoa, add
10502 Fraise_frame(Qnil).
10503 (x_set_frame_parameters): Ensure font attribute changes are picked up.
10504 (x_get_arg): Allow "yes" and "no" as boolean values.
10505 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
10506 Qright under Cocoa.
10507 (focus-follows-mouse): Default to 0 under NS.
10508 * frame.h (enum output_method): Add output_ns.
10509 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
10510 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
10511 (FRAME_WINDOW_P): NS-specific definition.
10512 * fringe.c (max_used_fringe_bitmap): Make public.
10513 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
10514 (getloadavg): Use NeXT code under descendant OS's.
10515 * image.c (includes and header section, x_create_bitmap_from_data)
10516 (x_create_bitmap_from_file, free_bitmap_record, image_background)
10517 (image_background_transparent, x_clear_image_1)
10518 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
10519 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
10520 (x_to_xcolors, x_from_xcolors, x_disable_image)
10521 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
10522 other GUIs, including XPM support using code originally written for
10523 Carbon GUI.
10524 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
10525 using NS API.
10526 (image_ascent): Use font metrics macros instead of direct struct field
10527 access.
10528 * keyboard.c (includes): Add nsterm.h when compiling under NS.
10529 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
10530 Also, handle NS as GTK for menu bar purposes.
10531 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
10532 toolkit where they differ.
10533 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
10534 use cachelist, still needed under NS.
10535 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
10536 (struct widget_value): Define it here for menu.c.
10537 * keymap.c (includes): Include modifier internals.
10538 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
10539 NS.
10540 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
10541 support for preferring sequences using certain modifiers, specified by
10542 the FIRSTONLY argument.
10543 * lisp.h (hash_remove): Rename to avoid name clash when compiling
10544 under NS GNUstep implementation.
10545 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
10546 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
10547 * menu.c: Include nsterm.h under NS.
10548 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
10549 (free_menubar_widget_tree_value, update_submenu_strings)
10550 (find_and_call_menu_selection): Treat NS as X and NT.
10551 (find_and_return_menu_selection): New function, used for popup menus.
10552 * nsgui.h:
10553 * nsterm.h:
10554 * nsfns.m:
10555 * nsimage.m:
10556 * nsmenu.m:
10557 * nsselect.m:
10558 * nsterm.m: New files.
10559 * process.c (wait_reading_process_output): Under NS, call ns_select()
10560 instead of plain select().
10561 * syntax.c (char_quoted): Under NS, avoid a crash when called near
10562 beginning of buffer.
10563 * sysselect.h (init_process): Rename when compiling under Cocoa to
10564 avoid name conflict.
10565 * termhooks.h (display_info): Add ns_display_info to union.
10566 * terminal.c (Fterminal_live_p): Add ns to terminal types.
10567 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
10568 COCOA environment.
10569 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
10570 unexec() signature. (Note, this will dump, but the resulting file
10571 crashes; unexosx is used instead; keeping around for reference and
10572 possible aid in getting dump working under GNUstep.)
10573 * w32gui.h (button_type, widget_value): Remove definitions (now in
10574 keyboard.h).
10575 * window.c: Include nsterm.h when compiling under NS.
10576 * xdisp.c (includes): Include nsterm.h when compiling under NS.
10577 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
10578 other GUI windowing systems.
10579 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
10580 GTK.
10581 (x_consider_frame_title): Under NS, set icon type and frame
10582 modified-state indicator; use ns_set_name_as_filename() when using
10583 formatted title.
10584 (update_window_cursor): Make public when compiling under NS.
10585 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
10586 (hourglass_atimer, Vhourglass_delay
10587 * xfaces.c (header section, init_frame_faces, clear_font_table)
10588 (defined_color, unload_color, x_face_list_fonts)
10589 (prepare_face_for_display): Add NS support parallel to other GUIs.
10590 Emulate GCs like other non-X GUIs.
10591 (split_font_name): Don't lowercase font name under NS.
10592 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
10593 under NS.
10594 * s/darwin.h: Add support for compilation under NS.
10595
10596 2008-07-15 Jason Rumney <jasonr@gnu.org>
10597
10598 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
10599 (w32_show_hourglass): Rename from show_hourglass.
10600 (w32_hide_hourglass): Rename from hide_hourglass.
10601 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
10602 (Vhourglass_delay): Declare extern.
10603 (hourglass_started): Remove.
10604
10605 * xdisp.c (Vhourglass_delay): Remove static.
10606 (hourglass_started, start_hourglass, cancel_hourglass):
10607 Don't include these versions on WINDOWSNT.
10608
10609 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
10610
10611 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
10612 variables (formerly in xfns.c).
10613 (show_hourglass, hide_hourglass): New prototypes (same).
10614 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
10615 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
10616 in xfns.c).
10617 (syms_of_xdisp): Declare/initialize display-hourglass,
10618 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
10619 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
10620 formerly in xfns.c.
10621 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
10622 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
10623 (start_hourglass, cancel_hourglass): Remove.
10624 (show_hourglass, hide_hourglass): Remove prototypes and static
10625 modifiers.
10626 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
10627 hourglass_atimer, hourglass_shown_p declaration/initialization.
10628 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
10629 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
10630 (start_hourglass, cancel_hourglass): Remove.
10631 (show_hourglass, hide_hourglass): Remove prototypes and static
10632 modifiers.
10633 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
10634 hourglass_atimer, hourglass_shown_p declaration/initialization.
10635 * w32fns.c (display_hourglass_p, Vhourglass_delay)
10636 (DEFAULT_HOURGLASS_DELAY): Remove.
10637 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
10638 hourglass_shown_p declaration/initialization.
10639
10640 2008-07-14 Jason Rumney <jasonr@gnu.org>
10641
10642 * w32fns.c (w32_get_arg): Remove wrapper function.
10643 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
10644 directly.
10645 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
10646
10647 2008-07-14 Kenichi Handa <handa@m17n.org>
10648
10649 * xfont.c (xfont_open): Add workaround for X's bug.
10650
10651 2008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
10652
10653 * fontset.c: Include <stdio.h> unconditionally.
10654
10655 2008-07-13 Michael Albinus <michael.albinus@gmx.de>
10656
10657 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
10658 for filtering.
10659
10660 2008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
10661
10662 * s/vms.h: Use __GNUC__ instead of _GNUC_.
10663
10664 * m/macppc.h:
10665 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
10666
10667 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
10668 (SPECIAL_EMACS_INT):
10669 * m/ia64.h (SPECIAL_EMACS_INT):
10670 * m/amdx86-64.h (SPECIAL_EMACS_INT):
10671 * s/gnu.h (NLIST_STRUCT):
10672 * s/aix4-2.h (X11R5_INHIBIT_I18N):
10673 * s/gnu-linux.h (LINUX):
10674 * s/msdos.h (HAVE_FACES):
10675 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
10676
10677 * systty.h:
10678 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
10679 anymore.
10680
10681 2008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
10682
10683 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
10684 always defined as int.
10685
10686 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
10687 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
10688 * s/gnu-linux.h (HAVE_WAIT_HEADER):
10689 * s/freebsd.h (HAVE_WAIT_HEADER):
10690 * s/bsd-common.h (HAVE_UNION_WAIT):
10691 * s/aix4-2.h (HAVE_WAIT_HEADER):
10692 * m/mips.h (HAVE_UNION_WAIT):
10693 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
10694 (COFF, static): Do not define, they are undefined later in the file.
10695
10696 * process.c (update_status): Don't use a union.
10697 (status_convert):
10698 (sigchld_handler): Use int instead of WAITTYPE.
10699
10700 2008-07-12 Chong Yidong <cyd@stupidchicken.com>
10701
10702 * indent.c (Fvertical_motion): Restore hscroll before moving to
10703 goal column.
10704
10705 2008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
10706
10707 * lisp.h: Remove left over code.
10708
10709 2008-07-11 Andreas Schwab <schwab@suse.de>
10710
10711 * lisp.h: Fix logic in last change.
10712
10713 * menu.h: New file.
10714 * menu.c: Include it.
10715 * xmenu.c: Likewise.
10716 * Makefile.in: Update dependencies.
10717
10718 2008-07-11 Kenichi Handa <handa@m17n.org>
10719
10720 * fontset.c (fontset_from_font): Cancel the previous change.
10721
10722 2008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
10723
10724 * lisp.h:
10725 * w32heap.c:
10726 * emacs.c:
10727 * alloc.c: Replace all references of NO_UNION_TYPE with
10728 USE_LISP_UNION_TYPE.
10729
10730 * m/xtensa.h (NO_UNION_TYPE):
10731 * m/vax.h (NO_UNION_TYPE):
10732 * m/template.h (NO_UNION_TYPE):
10733 * m/sparc.h (NO_UNION_TYPE):
10734 * m/mips.h (NO_UNION_TYPE):
10735 * m/macppc.h (NO_UNION_TYPE):
10736 * m/m68k.h (NO_UNION_TYPE):
10737 * m/iris4d.h (NO_UNION_TYPE):
10738 * m/intel386.h (NO_UNION_TYPE):
10739 * m/ibms390x.h (NO_UNION_TYPE):
10740 * m/ibms390.h (NO_UNION_TYPE):
10741 * m/ibmrs6000.h (NO_UNION_TYPE):
10742 * m/ia64.h (NO_UNION_TYPE):
10743 * m/hp800.h (NO_UNION_TYPE):
10744 * m/arm.h (NO_UNION_TYPE):
10745 * m/amdx86-64.h (NO_UNION_TYPE):
10746 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
10747 defining it the same.
10748
10749 2008-07-10 Chong Yidong <cyd@stupidchicken.com>
10750
10751 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
10752
10753 2008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
10754
10755 * fileio.c:
10756 * sysdep.c:
10757 * systty.h:
10758 * m/ibmrs6000.h:
10759 * m/iris4d.h:
10760 * s/aix4-2.h:
10761 * s/freebsd.h:
10762 * s/gnu-linux.h:
10763 * s/hpux10-20.h:
10764 * s/hpux11.h:
10765 * s/netbsd.h:
10766 * s/sol2-3.h:
10767 * s/sol2-4.h:
10768 * s/sol2.h:
10769 * s/usg5-4.h:
10770 * s/vms.h: Remove references to unused variables.
10771
10772 2008-07-10 Andreas Schwab <schwab@suse.de>
10773
10774 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
10775 pattern before matching the generic family.
10776
10777 2008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
10778
10779 * unexec.c:
10780 * s/vms.h:
10781 * s/usg5-4-2.h:
10782 * s/sol2-5.h:
10783 * s/freebsd.h:
10784 * s/darwin.h: Remove dead code.
10785
10786 * m/template.h:
10787 * m/sparc.h:
10788 * m/mips.h:
10789 * m/m68k.h:
10790 * m/iris4d.h:
10791 * m/intel386.h:
10792 * m/ibms390x.h:
10793 * m/ibms390.h:
10794 * m/ia64.h:
10795 * m/hp800.h:
10796 * m/arm.h:
10797 * m/amdx86-64.h: Remove dead code and references to unused
10798 and compiler defined symbols.
10799
10800 * unexmips.c:
10801 * unexelf.c: Remove references to desupported systems.
10802
10803 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
10804
10805 * m/powermac.h: Remove boilerplate comments.
10806 (NO_REMAP): Remove unused definition.
10807
10808 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
10809 define them.
10810
10811 2008-07-10 Kenichi Handa <handa@m17n.org>
10812
10813 * xfont.c (xfont_open): Log the reason of failure.
10814
10815 2008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
10816
10817 * fontset.c (fontset_get_font_group):
10818 * font.c (font_check_otf): Specify argument types.
10819
10820 2008-07-09 Kenichi Handa <handa@m17n.org>
10821
10822 * coding.c (detect_coding_utf_8): Set detect_info->found only when
10823 non-ASCII char is found.
10824
10825 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
10826 (reorder_font_vector): Change the arg preferred_family to font.
10827 Prefer the spec matching with font.
10828 (fontset_get_font_group): New function.
10829 (fontset_find_font): Change the format of an element of a realized
10830 fontset. Use fontset_get_font_group.
10831 (fontset_font): Try the current fontset, the default fontset, the
10832 fallbacks of the current fontset, and the fallbacks of the default
10833 fontset in this order.
10834 (face_for_char): Delete the shortcut to use the current font.
10835 (fontset_from_font): Don't set fonts for Latin in the fontset.
10836
10837 * font.h (font_make_object, font_match_p): Adjust prototypes.
10838
10839 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
10840
10841 * font.c (font_make_object): New arg entity and pixelsize.
10842 (font_check_otf_features, font_check_otf): New functions.
10843 (font_match_p): Check :lang, :script, and :otf properties.
10844
10845 * xfont.c (xfont_open): Adjust it for the change of
10846 font_make_object.
10847 (xfont_text_extents): Fix initial setting of metrics.
10848
10849 * ftfont.c (struct ftfont_info): New member index, delete member
10850 fc_charset_idx. Make the member order compatible with struct
10851 xftfont_info.
10852 (fc_charset_table): Change charset names to registry names.
10853 (ftfont_pattern_entity): Delete the args registry and
10854 fc_charset_idx. Change the value of :font-entity property
10855 to (FONTNAME . INDEX). Always set :registry property to
10856 `iso10646-1'.
10857 (struct ftfont_cache_data): New struct.
10858 (ftfont_lookup_cache): New arg for_face.
10859 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
10860 (ftfont_driver): Set the member otf_capability.
10861 (ftfont_get_charset): Adjust it for the change of
10862 fc_charset_table.
10863 (OTF_TAG_SYM): New macro.
10864 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
10865 for the change of fc_charset_table.
10866 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
10867 ftfont_pattern_entity. Add FC_INDEX to objset.
10868 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
10869 and ftfont_pattern_entity.
10870 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
10871 font_make_object, struct ftfont_info.
10872 (ftfont_has_char): Use ftfont_get_fc_charset.
10873 (ftfont_otf_features, ftfont_otf_capability): New functions.
10874 (ftfont_shape): Use ftfont_get_otf.
10875 (ftfont_text_extents): Fix initial setting of metrics.
10876
10877 * xftfont.c (struct xftfont_info): New member ft_size. Make the
10878 member order compatible with struct ftfont_info.
10879 (xftfont_open): Add FC_CHARSET to the pattern. Set
10880 xftfont_info->ft_size. Don't unlock the face. Check BDF
10881 properties if appropriate.
10882 (xftfont_close): Unlock the face.
10883 (xftfont_anchor_point, xftfont_shape): Deleted.
10884 (syms_of_xftfont): Don't set members anchor_point and shape of
10885 xftfont_driver.
10886
10887 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
10888 font_make_object.
10889
10890 * w32font.c (w32font_open): Adjust it for the change of
10891 font_make_object.
10892 (w32font_open_internal): Don't set properties of font_object here.
10893
10894 2008-07-08 Chong Yidong <cyd@stupidchicken.com>
10895
10896 * macfns.c (x_create_tip_frame):
10897 * w32fns.c (x_create_tip_frame):
10898 * xfns.c (x_create_tip_frame): Pass parameter argument to
10899 face-set-after-frame-default.
10900
10901 * xfaces.c (Finternal_merge_in_global_face): Save merged
10902 attributes for the default face back into the face vector.
10903
10904 2008-07-08 Andreas Schwab <schwab@suse.de>
10905
10906 * fontset.h: Declare fontset_from_font. Don't declare
10907 new_fontset_from_font and fontset_from_font_name.
10908 * xterm.c: Include "fontset.h".
10909 * Makefile.in (xterm.o): Update dependencies.
10910
10911 2008-07-08 Glenn Morris <rgm@gnu.org>
10912
10913 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
10914 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
10915
10916 2008-07-07 Chong Yidong <cyd@stupidchicken.com>
10917
10918 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
10919 (x_set_frame_parameters): Don't bind it.
10920
10921 2008-07-07 Juanma Barranquero <lekktu@gmail.com>
10922
10923 * w32fns.c (map_w32_filename): Declare extern.
10924
10925 2008-07-07 Jason Rumney <jasonr@gnu.org>
10926
10927 * w32term.c (WS_EX_LAYERED): Define if not already.
10928
10929 2008-07-06 Chong Yidong <cyd@stupidchicken.com>
10930
10931 * xfaces.c (set_font_frame_param): Don't try to set the font
10932 parameter if it is still unspecified in the lface.
10933
10934 2008-07-05 Chong Yidong <cyd@stupidchicken.com>
10935
10936 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
10937 face if it didn't already exist.
10938
10939 * xdisp.c (try_window_id): Give up if word-wrapping is on.
10940
10941 2008-07-05 Andreas Schwab <schwab@suse.de>
10942
10943 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
10944
10945 2008-07-05 Chong Yidong <cyd@stupidchicken.com>
10946
10947 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
10948 word-wrapping.
10949 (IT_DISPLAYING_WHITESPACE): New macro.
10950 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
10951 when word-wrapping. Simplify word-wrapping logic. Use correct
10952 pixel positions when saving copies of the iterator.
10953 (display_line): Use proper wrap point if the last character on a
10954 line was preceded by whitespace.
10955
10956 2008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
10957
10958 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
10959
10960 2008-07-04 Kenichi Handa <handa@m17n.org>
10961
10962 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
10963
10964 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
10965
10966 2008-07-02 Jason Rumney <jasonr@gnu.org>
10967
10968 * xfns.c (syms_of_xfns): Only define x-select-font when both
10969 HAVE_FREETYPE and USE_GTK.
10970
10971 * xdisp.c (next_element_from_display_vector): Move assignment out
10972 of if statement.
10973
10974 2008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
10975
10976 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
10977
10978 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
10979 (syms_of_fileio): Initialize and export them.
10980 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
10981
10982 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
10983 (Fsystem_move_file_to_trash): New function.
10984 (syms_of_w32fns): Export it to lisp.
10985
10986 2008-07-01 Jason Rumney <jasonr@gnu.org>
10987
10988 * w32font.c (w32font_text_extents): Don't count overhang as part
10989 of width.
10990
10991 2008-06-30 Miles Bader <miles@gnu.org>
10992
10993 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
10994 Add `avoid_cursor_p' field.
10995
10996 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
10997 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
10998 (append_glyph, append_composite_glyph, produce_image_glyph)
10999 (append_stretch_glyph): Initialize avoid_cursor_p.
11000 (get_it_property): Rename from `get_line_height_property'.
11001 (x_produce_glyphs): Use get_it_property.
11002 (handle_line_prefix, push_display_prop): New functions.
11003 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
11004 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
11005 New variables.
11006 (syms_of_xdisp): Initialize them.
11007
11008 2008-06-30 Kenichi Handa <handa@m17n.org>
11009
11010 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
11011 XftDefaultSubstitute (they are called in XftFontMatch).
11012 (xftfont_open): Fix args to ftfont_font_format.
11013
11014 * ftfont.c (fc_charset_table): New member lang.
11015 (ftfont_resolve_generic_family): New arg pattern.
11016 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
11017 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
11018 (ftfont_open): Fix args to ftfont_font_format.
11019 (ftfont_font_format): New arg filename.
11020
11021 2008-06-30 Chong Yidong <cyd@stupidchicken.com>
11022
11023 * xfaces.c (Finternal_merge_in_global_face): If default face was
11024 modified, realize it again. Update the font face attribute.
11025
11026 2008-06-29 Jason Rumney <jasonr@gnu.org>
11027
11028 * w32term.c (x_set_frame_alpha): Fix logic.
11029
11030 2008-06-29 Kenichi Handa <handa@m17n.org>
11031
11032 * fontset.c (Finternal_char_font): Return font-object instead of
11033 font-name.
11034
11035 * composite.c (get_composition_id): Fix the width calculation for TAB.
11036
11037 2008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
11038
11039 * indent.c (Fvertical_motion): Properly handle float column arg.
11040
11041 2008-06-28 Jason Rumney <jasonr@gnu.org>
11042
11043 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
11044 (pfnSetLayeredWindowAttributes): New function pointer.
11045 (w32_initialize): Initialize it when supported.
11046 (x_set_frame_alpha): New function.
11047
11048 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
11049 (w32_frame_parm_handlers): Set alpha handler.
11050
11051 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
11052
11053 2008-06-27 Jason Rumney <jasonr@gnu.org>
11054
11055 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
11056 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
11057 (w32_to_x_charset, x_to_w32_charset)
11058 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
11059 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
11060 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
11061 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
11062 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
11063 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
11064 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
11065 (Qw32_charset_unicode): Remove.
11066 (syms_of_w32fns): Update for above changes.
11067
11068 * w32font.c (w32_to_x_charset, x_to_w32_charset)
11069 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
11070 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
11071 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
11072 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
11073 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
11074 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
11075 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
11076 (syms_of_w32font): Update for above changes.
11077
11078 2008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
11079
11080 * s/usg5-4.h: Fix previous change: keep the correct branch of a
11081 removed #if.
11082 (USG_SHARED_LIBRARIES): Remove duplicate definition.
11083
11084 2008-06-26 Juanma Barranquero <lekktu@gmail.com>
11085 Eli Zaretskii <eliz@gnu.org>
11086
11087 * makefile.w32-in (LOCAL_FLAGS):
11088 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
11089
11090 * sysdep.c (_spawnlp, _getpid):
11091 Declare with explicit _cdecl instead of _CRTAPI1.
11092
11093 * editfns.c (Fget_internal_run_time):
11094 Check for WINDOWSNT with #ifdef, not #if.
11095
11096 2008-06-26 Jason Rumney <jasonr@gnu.org>
11097
11098 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
11099
11100 * w32term.c (x_draw_glyph_string_foreground)
11101 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
11102 Use FONT_HANDLE macro.
11103 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
11104
11105 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
11106 (uniscribe_encode_char): Use FONT_HANDLE macro.
11107
11108 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
11109 (w32font_text_extents): Use precast w32_font.
11110 (w32font_close): Free cached metrics.
11111 (w32font_open_internal): Allocate space for name on stack.
11112
11113 2008-06-26 Chong Yidong <cyd@stupidchicken.com>
11114
11115 * xdisp.c (extend_face_to_end_of_line): Fix last change.
11116
11117 2008-06-26 Jason Rumney <jasonr@gnu.org>
11118
11119 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
11120 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
11121
11122 2008-06-26 Juanma Barranquero <lekktu@gmail.com>
11123
11124 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
11125
11126 2008-06-26 Jason Rumney <jasonr@gnu.org>
11127
11128 * w32bdf.c, w32bdf.h: Remove obsolete files.
11129
11130 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
11131
11132 * w32gui.h: Don't include w32bdf.h.
11133 (XCharStruct, enum w32_char_font_type, W32FontStruct):
11134 Remove obsolete font support.
11135
11136 * w32font.h (struct w32font_info): Remove compat_w32_font.
11137 Add hfont member.
11138 (FONT_COMPAT): Remove obsolete macro.
11139
11140 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
11141 (w32font_encode_char, w32font_text_extents): Use new hfont member.
11142 (w32font_open_internal): Remove compat code. Set new hfont member.
11143 (Fx_select_font): Use new hfont member.
11144
11145 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
11146 (uniscribe_encode_char): Use new hfont member.
11147
11148 * w32term.c (x_draw_glyph_string_foreground)
11149 (x_draw_composite_glyph_string_foreground): Use new hfont member.
11150 (x_draw_glyph_string): Use metrics in w32font_info.
11151
11152 2008-06-26 Kenichi Handa <handa@m17n.org>
11153
11154 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
11155
11156 2008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
11157
11158 * unexnext.c:
11159 * m/ews4800.h:
11160 * m/hp9000s300.h:
11161 * m/ibm370aix.h:
11162 * m/mips-siemens.h:
11163 * m/ncr386.h:
11164 * m/next.h:
11165 * m/pmax.h:
11166 * m/powerpcle.h:
11167 * m/tandem-s2.h:
11168 * s/386bsd.h:
11169 * s/bsd386.h:
11170 * s/bsd4-1.h:
11171 * s/bsd4-2.h:
11172 * s/bsdos2-1.h:
11173 * s/bsdos2.h:
11174 * s/bsdos3.h:
11175 * s/bsdos4.h:
11176 * s/nextstep.h:
11177 * s/ultrix4-3.h:
11178 * s/usg5-0.h:
11179 * s/usg5-2-2.h:
11180 * s/usg5-2.h:
11181 * s/usg5-4-3.h:
11182 * s/ux4800.h:
11183 * s/uxpds.h:
11184 * s/uxpv.h: Remove support for obsolete systems.
11185 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
11186 Remove, insert contents in s/hpux10-20.h.
11187 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
11188 Remove, insert contents in s/aix4-2.h.
11189 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
11190 * s/bsd4-3.h: Rename to ...
11191 * s/bsd-common.h: ... this.
11192 * data.c:
11193 * doc.c:
11194 * ecrt0.c:
11195 * emacs.c:
11196 * fileio.c:
11197 * floatfns.c:
11198 * keyboard.c:
11199 * mem-limits.h:
11200 * print.c:
11201 * process.c:
11202 * sysdep.c:
11203 * syssignal.h:
11204 * systty.h:
11205 * syswait.h:
11206 * term.c:
11207 * unexec.c:
11208 * unexelf.c:
11209 * unexhp9k800.c:
11210 * m/hp800.h:
11211 * m/ibmrs6000.h:
11212 * m/mips.h:
11213 * m/vax.h:
11214 * s/darwin.h:
11215 * s/freebsd.h:
11216 * s/gnu.h:
11217 * s/ms-w32.h:
11218 * s/msdos.h:
11219 * s/netbsd.h:
11220 * s/template.h: Remove references to obsolete variables.
11221
11222 * Makefile.in: Add dependencies for all unexec files.
11223 (admindir): Remove unused variable.
11224 (UNEXEC_SRC): Remove references.
11225
11226 2008-06-25 Chong Yidong <cyd@stupidchicken.com>
11227
11228 * xfns.c (x_default_font_parameter): If Xft is available, first
11229 try Monospace-12 for the default font.
11230
11231 2008-06-25 Jason Rumney <jasonr@gnu.org>
11232
11233 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
11234
11235 2008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
11236
11237 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
11238
11239 * buffer.c (syms_of_buffer): Remove default-word-wrap.
11240
11241 2008-06-25 Juanma Barranquero <lekktu@gmail.com>
11242
11243 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
11244 <scroll-conservatively>: Fix typo in docstring.
11245
11246 * xselect.c (Fx_send_client_event): Doc fix.
11247
11248 2008-06-25 Kenichi Handa <handa@m17n.org>
11249
11250 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
11251
11252 * font.c (font_parse_fcname): Remove unused variables.
11253 (font_sort_entites): Delete the arg SPEC. Caller changed.
11254 Fix for the case of ! best_only.
11255 (font_delete_unmatched): Check DPI and AVGWIDTH too.
11256
11257 * lisp.h (Fstring_to_unibyte): EXFUN it.
11258
11259 * character.h (str_to_unibyte): Extern it.
11260
11261 * character.c (str_to_unibyte): New function.
11262
11263 * fns.c (Fstring_to_unibyte): New function.
11264 (syms_of_fns): Defsubr it.
11265
11266 2008-06-24 Kenichi Handa <handa@m17n.org>
11267
11268 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
11269 DPI too.
11270 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
11271
11272 2008-06-24 Andreas Schwab <schwab@suse.de>
11273
11274 * Makefile.in (${lispsource}loaddefs.el): Rename from
11275 ../lisp/loaddefs.el.
11276 (bootstrap-clean): Do what distclean does but don't remove
11277 Makefile.
11278 (distclean): Depend on bootstrap-clean and remove Makefile.
11279
11280 2008-06-24 Chong Yidong <cyd@stupidchicken.com>
11281
11282 * buffer.h (struct buffer): New member word_wrap.
11283
11284 * buffer.c (syms_of_buffer): New variables default-word-wrap and
11285 word-wrap.
11286 (init_buffer_once): Initialize them.
11287
11288 * dispextern.h (struct it): Replace bool truncate_lines_p with a
11289 line_wrap enum possessing three possible values.
11290
11291 * termopts.h: Replace truncate_partial_width_windows with
11292 Vtruncate_partial_width_windows.
11293
11294 * dispnew.c (direct_output_for_insert): Avoid direct output when
11295 inserting a space with word wrap on.
11296
11297 * indent.c (compute_motion): Obey integer values of
11298 truncate-partial-width-windows.
11299
11300 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
11301 replacing truncate_partial_width_windows.
11302 (init_iterator): If Vtruncate_partial_width_windows is an integer,
11303 truncate only if the window width is below that integer.
11304 (start_display, resize_mini_window, produce_stretch_glyph)
11305 (display_string, move_it_in_display_line_to): Use line_wrap.
11306 (back_to_previous_visible_line_start, reseat_1): Reset
11307 string_from_display_prop_p.
11308 (display_line): Extend default face to end of line when wrapping.
11309
11310 2008-06-24 Kim F. Storm <storm@cua.dk>
11311
11312 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
11313 to wrap continued lines at word boundaries.
11314
11315 2008-06-24 Jason Rumney <jasonr@gnu.org>
11316
11317 * font.c (Ffont_face_attributes): Multiply pixel size before point
11318 conversion to avoid multiplying rounding error.
11319
11320 2008-06-23 Jason Rumney <jasonr@gnu.org>
11321
11322 * w32term.c (x_draw_glyph_string_background)
11323 (x_draw_glyph_string): Remove old bdf font code.
11324
11325 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
11326
11327 2008-06-22 Kenichi Handa <handa@m17n.org>
11328
11329 * font.c (font_find_for_lface): Try the adstyle specified in
11330 the property of LFACE_FONT of LFACE (if any).
11331
11332 2008-06-21 Seiji Zenitani <zenitani@mac.com>
11333 Ryo Yoshitake <ryo@shiftmode.net>
11334
11335 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
11336
11337 2008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
11338
11339 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
11340 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
11341 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
11342 (witness-emacs): Remove.
11343 (lisp, shortlisp): Move loaddefs.el earlier.
11344 (mostlyclean): Forget about witness-emacs.
11345
11346 2008-06-22 Glenn Morris <rgm@gnu.org>
11347
11348 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
11349 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
11350
11351 2008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
11352
11353 * Makefile.in (PRECOMP): Remove.
11354 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
11355 (witness-emacs): Run `compile-first'.
11356 (.el.elc): Use the new compile-onefile target.
11357
11358 2008-06-21 Kenichi Handa <handa@m17n.org>
11359
11360 * xftfont.c (xftfont_open): Handle QCembolden only when
11361 FC_EMBOLDEN is defined.
11362
11363 2008-06-21 Andreas Schwab <schwab@suse.de>
11364
11365 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
11366 (.el.elc): Likewise.
11367
11368 2008-06-21 Miles Bader <miles@gnu.org>
11369
11370 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
11371 build dir, not the lisp source dir.
11372
11373 2008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
11374
11375 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
11376 (bootstrapclean): Remove.
11377 (.el.elc): New rule.
11378 (PRECOMP): New var.
11379 (../lisp/subdirs.el): Remove.
11380 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
11381 (witness-emacs): New target.
11382 (mostlyclean): Remove witness-emacs as well.
11383 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
11384 Add witness-emacs dependency.
11385
11386 2008-06-20 Chong Yidong <cyd@stupidchicken.com>
11387
11388 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
11389 defined by the font.
11390
11391 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
11392
11393 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
11394 (bootstrap-clean): New target that keeps TAGS around.
11395 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
11396 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
11397
11398 2008-06-20 Jason Rumney <jasonr@gnu.org>
11399
11400 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
11401 Remove obsolete font code.
11402
11403 * w32font.c (font_matches_spec): Use csb bitfield from font signature
11404 to determine language support.
11405
11406 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
11407
11408 * sysdep.c (cfsetspeed): New fun extracted from the code.
11409 (cfmakeraw): Move before first use.
11410
11411 2008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
11412
11413 * sysdep.c (cfmakeraw): Provide fallback implementation.
11414 (serial_configure): Provide fallback implementation of cfsetspeed.
11415
11416 2008-06-20 Kenichi Handa <handa@m17n.org>
11417
11418 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
11419 the pattern.
11420
11421 * fontset.c (fontset_from_font): Copy font_spec before changing
11422 the elements.
11423
11424 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
11425
11426 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
11427
11428 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
11429 for explicit `font' parameters.
11430
11431 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
11432
11433 2008-06-19 Kenichi Handa <handa@m17n.org>
11434
11435 * frame.c: Include <ctype.h>.
11436 (x_set_font_backend): Allow spacing characters in the X resource
11437 for FontBackend.
11438
11439 2008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
11440
11441 * w32fns.c, xfns.c (Qfont_param): New var.
11442 (syms_of_w32fns): Initialize it.
11443 (x_default_font_parameter): Record explicit `font' into
11444 `font-parameter'.
11445
11446 2008-06-18 Kenichi Handa <handa@m17n.org>
11447
11448 * font.c (font_parse_xlfd): Fix previous change.
11449 (font_parse_fcname): Don't use :fc-unknown-spec.
11450 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
11451 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
11452 (font_add_log): Prepend the driver name to the resulting fonts.
11453
11454 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
11455 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
11456 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
11457
11458 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
11459 (QCembolden): New variables.
11460 (syms_of_xftfont): DEFSYM them.
11461 (xftfont_open): Call XftFontMatch. Don't trust the result of
11462 XftTextExtents8 if the pixel_size is less than 5.
11463
11464 2008-06-18 Andreas Schwab <schwab@suse.de>
11465
11466 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
11467 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
11468
11469 2008-06-18 Jason Rumney <jasonr@gnu.org>
11470
11471 * w32font.c (w32font_list, w32font_match): Add logging.
11472
11473 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
11474
11475 2008-06-17 Chong Yidong <cyd@stupidchicken.com>
11476
11477 * font.c (font_parse_fcname): Store divider characters for
11478 unknown-spec list. For known key symbols, intern using correct
11479 symbol name.
11480
11481 2008-06-17 Kenichi Handa <handa@m17n.org>
11482
11483 * xfaces.c (realize_default_face): If the frame is not on window
11484 system, set the fontset of face to nil.
11485
11486 2008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
11487
11488 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
11489
11490 2008-06-16 Juanma Barranquero <lekktu@gmail.com>
11491
11492 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
11493 (build_font_name_from_vector): Delete externs.
11494
11495 * xfaces.c (struct font_name): Don't declare.
11496
11497 2008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
11498
11499 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
11500
11501 2008-06-16 Chong Yidong <cyd@stupidchicken.com>
11502
11503 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
11504
11505 2008-06-16 Juanma Barranquero <lekktu@gmail.com>
11506
11507 * font.c (Ffont_spec): Fix usage in docstring.
11508 (Ffont_face_attributes): Doc fix.
11509
11510 2008-06-16 Andreas Schwab <schwab@suse.de>
11511
11512 * font.c (Ffont_face_attributes): Fix definition.
11513
11514 2008-06-16 Jason Rumney <jasonr@gnu.org>
11515
11516 * font.h (font_style_symbolic_from_value): Remove.
11517
11518 * font.c (font_style_symbolic_from_value): Remove.
11519 (font_style_symbolic): Revert to pre 2008-06-13 version.
11520
11521 * w32font.c (w32_to_fc_weight): New function.
11522 (w32font_full_name, logfont_to_fcname): Use it.
11523
11524 2008-06-16 Kenichi Handa <handa@m17n.org>
11525
11526 * font.c (font_check_object): Delete it.
11527 (font_clear_cache): Check if a font-object is alive.
11528 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
11529 font-object to nil.
11530 (font_close_object): Don't check FONT_CLOSE_OBJECT.
11531 (font_at): Don't call font_check_object.
11532 (Ffont_get): Return a symbol for :weight, :slant, and :width.
11533
11534 2008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
11535
11536 * puresize.h (BASE_PURESIZE): Increase to 1230000.
11537
11538 2008-06-16 Chong Yidong <cyd@stupidchicken.com>
11539
11540 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
11541
11542 2008-06-15 Chong Yidong <cyd@stupidchicken.com>
11543
11544 * font.c (font_parse_fcname): Only one decimal point.
11545 (font_unparse_fcname): Handle data in family and foundry indices
11546 as symbols, not strings.
11547 (font_unparse_gtkname, Ffont_face_attributes): New functions.
11548
11549 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
11550
11551 * font.h (font_unparse_gtkname): Add prototype.
11552
11553 2008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
11554
11555 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
11556
11557 2008-06-15 Andreas Schwab <schwab@suse.de>
11558
11559 * font.c (font_update_drivers): Fix crash when no drivers match.
11560
11561 2008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
11562
11563 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
11564 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
11565
11566 2008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
11567
11568 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
11569
11570 2008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
11571
11572 * process.c (Fserial_process_configure, Fprocess_send_eof):
11573 Use EQ to compare Lisp_Objects.
11574
11575 2008-06-13 Jason Rumney <jasonr@gnu.org>
11576
11577 * w32fns.c (Fw32_select_font): Remove old font API function.
11578
11579 * w32font.c (logfont_to_fcname): New function.
11580 (Fx_select_font): New font dialog function compatible with
11581 GTK/fontconfig version.
11582
11583 * font.c (font_style_symbolic_from_value): New function.
11584 (font_style_symbolic): Use it.
11585
11586 * font.h (font_style_symbolic_from_value): Declare new function.
11587
11588 2008-06-13 Juanma Barranquero <lekktu@gmail.com>
11589
11590 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
11591 <font-width-table>: Fix typos in docstrings.
11592
11593 2008-06-13 Daniel Engeler <engeler@gmail.com>
11594
11595 These changes add serial port access.
11596 * process.c: Add HAVE_SERIAL.
11597 (Fdelete_process, Fprocess_status, Fset_process_buffer)
11598 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
11599 (list_processes_1, select_wrapper, Fstop_process)
11600 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
11601 (status_notify): Modify to handle serial processes.
11602 [HAVE_SERIAL] (Fserial_process_configure)
11603 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
11604 New functions.
11605 * process.h (struct Lisp_Process): Add `type'.
11606 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
11607 New functions.
11608 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
11609 serial ports.
11610 (serial_open, serial_configure): New functions.
11611 * w32.h: Add FILE_SERIAL.
11612 (struct _child_process): Add ovl_read, ovl_write.
11613
11614 2008-06-13 Kenichi Handa <handa@m17n.org>
11615
11616 * dispextern.h (enum lface_attribute_index): New member
11617 LFACE_FOUNDRY_INDEX.
11618
11619 * font.c (font_score): Delete arg alternate_families. Check only
11620 weight, slant, width, and size. Ignore the difference of alias
11621 style symbols.
11622 (font_sort_entites): Adjust for the above change. Reflect the
11623 order of font-driver to scores.
11624 (font_list_entities): Don't check alternate_familes here.
11625 (font_clear_prop): Handle foundry.
11626 (font_update_lface): Don't parse "foundry-family" form here.
11627 Handle FONT_FOUNDRY_INDEX.
11628 (font_find_for_lface): Likewise. Handle alternate families here.
11629 If registry is nil, try iso8859-1 and ascii-0.
11630 (font_open_for_lface): Pay attention to size in ENTITY.
11631 (font_open_by_name): Simplify by calling font_load_for_lface.
11632 (free_font_driver_list): Delete it.
11633 (font_update_drivers): Preserve the order of backends.
11634 (syms_of_font): Setting of sort_shift_bits adjusted for the change
11635 of font_score and font_sort_entites.
11636 (font_update_sort_order): Likewise.
11637
11638 * xfaces.c (LFACE_FOUNDRY): New macro.
11639 (check_lface_attrs): Check foundry.
11640 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
11641 (merge_face_vectors): Check foundry.
11642 (merge_face_ref): Likewise.
11643 (Finternal_set_lisp_face_attribute): Likewise.
11644 (x_update_menu_appearance): Likewise.
11645 (Finternal_get_lisp_face_attribute): Likewise.
11646 (lface_hash): Likewise.
11647 (lface_same_font_attributes_p): Likewise.
11648 (x_supports_face_attributes_p): Likewise.
11649 (tty_supports_face_attributes_p): Likewise.
11650 (Finternal_set_alternative_font_family_alist): Intern strings.
11651 (Finternal_set_alternative_font_registry_alist): Downcase strings.
11652 (realize_default_face): Set LFACE_FOUNDRY (lface).
11653
11654 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
11655 font-driver at first.
11656
11657 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
11658
11659 2008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
11660
11661 * lread.c (Fload): Use xfree, not free on saved_doc_string.
11662
11663 2008-06-12 Jim Meyering <meyering@redhat.com>
11664
11665 Make unexec_free handle NULL the same way free does.
11666 * unexmacosx.c (unexec_free): Ignore a NULL argument.
11667
11668 2008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
11669
11670 * character.h (CHAR_TO_BYTE_SAFE): New macro.
11671 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
11672 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
11673 (WEAK_ALIAS): Simplify.
11674 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
11675 when searching a unibyte buffer.
11676
11677 2008-06-12 Chong Yidong <cyd@stupidchicken.com>
11678
11679 * xfns.c (Fx_select_font): Rename from x-font-dialog.
11680
11681 2008-06-12 Juanma Barranquero <lekktu@gmail.com>
11682
11683 * w32font.c: Include ctype.h.
11684
11685 2008-06-11 Jason Rumney <jasonr@gnu.org>
11686
11687 * w32font.c (w32font_encode_char): Detect missing glyphs that are
11688 misreported as space.
11689 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
11690 as aliases for registry iso10646-1.
11691
11692 2008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
11693
11694 * buffer.c (clone_per_buffer_values): Skip `name'.
11695
11696 2008-06-11 Chong Yidong <cyd@stupidchicken.com>
11697
11698 * font.c (font_parse_fcname): Fix last change; accept decimal
11699 points in font size.
11700
11701 2008-06-10 Jason Rumney <jasonr@gnu.org>
11702
11703 * w32uniscribe.c (add_opentype_font_name_to_list):
11704 Skip non unicode fonts.
11705
11706 2008-06-10 Chong Yidong <cyd@stupidchicken.com>
11707
11708 * xfns.c (Fx_font_dialog): New function.
11709
11710 * gtkutil.c (xg_dialog_response_cb): Rename from
11711 xg_file_response_callback.
11712 (pop_down_dialog): Rename from pop_down_file_dialog.
11713 (xg_get_file_name): Callers changed.
11714 (xg_get_font_name): New function.
11715
11716 * gtkutil.h (xg_get_font_name): Insert prototype.
11717
11718 2008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
11719
11720 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
11721 x_underline_minimum_display_offset.
11722 (syms_of_xdisp): Declare it here rather than in xterm.c.
11723 * dispextern.h (underline_minimum_offset): Declare it.
11724 * w32term.c (x_draw_glyph_string): Use it.
11725 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
11726 (syms_of_xterm): Don't declare it any more.
11727 (x_draw_glyph_string): Adjust to the new name.
11728
11729 2008-06-10 David De La Harpe Golden <david@harpegolden.net>
11730
11731 * xterm.c (x_underline_minimum_display_offset): New var.
11732 (x_draw_glyph_string): Use it.
11733 (syms_of_xterm): Declare it.
11734
11735 2008-06-10 Chong Yidong <cyd@stupidchicken.com>
11736
11737 * font.c (font_parse_fcname): Accept GTK-style font names too.
11738
11739 2008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
11740
11741 * dired.c (file_name_completion): Don't return t if the match is exact
11742 but with different capitalization.
11743 * minibuf.c (Ftry_completion): Simplify.
11744
11745 * window.c (Vwindow_point_insertion_type): New var.
11746 (set_window_buffer): Use it.
11747 (syms_of_window): Init and export it to Lisp.
11748
11749 2008-06-10 Kenichi Handa <handa@m17n.org>
11750
11751 * font.h (font_intern_prop): Prototype adjusted.
11752
11753 * font.c (font_intern_prop): New arg force_symbol.
11754 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
11755 Adjust for the change of font_intern_prop.
11756
11757 * ftfont.c (ftfont_pattern_entity):
11758 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
11759 (w32_registry):
11760 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
11761 the change of font_intern_prop.
11762
11763 2008-06-09 Juanma Barranquero <lekktu@gmail.com>
11764
11765 * w32menu.c (digest_single_submenu): Declare extern.
11766
11767 2008-06-09 Jason Rumney <jasonr@gnu.org>
11768
11769 * w32term.c (x_make_frame_visible): Use alternate restore flags.
11770
11771 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
11772 (parse_single_submenu): Remove.
11773 (digest_single_submenu): Remove.
11774 (syms_of_w32menu): Don't initialise variables that have moved
11775 to menu.c.
11776 (set_frame_menubar): Sync with version in xmenu.c.
11777 (w32_menu_show): Sync with xmenu_show in xmenu.c.
11778
11779 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
11780 Make static again.
11781
11782 2008-06-09 Jason Rumney <jasonr@gnu.org>
11783
11784 Changes to w32 files related to the move of common menu code
11785 to menu.c on 2008-06-08 by Chong Yidong.
11786
11787 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
11788 defs to w32gui.h.
11789 (single_keymap_panes, push_menu_item, push_menu_pane):
11790 Make globally visible.
11791
11792 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
11793 (local_free, malloc_widget_value, free_widget_value)
11794 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
11795 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
11796 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
11797 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
11798 (menu_items, menu_items_allocated, menu_items_used)
11799 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
11800 (init_menu_items, finish_menu_items, discard_menu_items)
11801 (grow_menu_items, push_submenu_start, push_submenu_end)
11802 (push_left_right_boundary, push_menu_pane, push_menu_item)
11803 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
11804 (free_menubar_widget_tree_value, parse_single_submenu)
11805 (update_submenu_strings): Remove functions.
11806 (xmalloc_widget_value): Remove and declare extern.
11807
11808 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
11809 (OBJ1): Build it.
11810
11811 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
11812 (local_heap, local_alloc, local_free, malloc_widget_value)
11813 (free_widget_value): Define here.
11814
11815 2008-06-09 Kenichi Handa <handa@m17n.org>
11816
11817 * font.h (Qascii_0): Extern it.
11818
11819 * font.c (Qascii_0): New variable.
11820 (syms_of_font): DEFSYM it.
11821 (font_open_by_name): If the registry "iso8859-1" fails, try also
11822 "ascii-0".
11823
11824 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
11825
11826 2008-06-08 Kenichi Handa <handa@m17n.org>
11827
11828 * .gdbinit (xfont): New command.
11829
11830 2008-06-08 Andreas Schwab <schwab@suse.de>
11831
11832 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
11833 * Makefile.in (menu.o): Update dependencies.
11834
11835 * Makefile.in (obj): Always add menu.o.
11836 * emacs.c (main): Always call syms_of_menu.
11837 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
11838
11839 2008-06-08 Chong Yidong <cyd@stupidchicken.com>
11840
11841 * Makefile.in: Compile menu.c.
11842
11843 * lisp.h: Declare syms_of_menu.
11844
11845 * emacs.c (main): Call syms_of_menu.
11846
11847 * keyboard.h: Relocate platform-independent menu definitions from
11848 xmenu.c.
11849
11850 * menu.c: New file. Relocate platform-independent menu
11851 definitions from xmenu.c. Suggested by Adrian Robert.
11852
11853 * xmenu.c: Remove platform-independent menu definitions.
11854 (menu_items, menu_items_inuse, menu_items_allocated)
11855 (menu_items_used, menu_items_n_panes)
11856 (menu_items_submenu_depth): Move to keyboard.h.
11857 (init_menu_items, finish_menu_items, unuse_menu_items)
11858 (discard_menu_items, restore_menu_items, save_menu_items)
11859 (grow_menu_items, push_submenu_start, push_submenu_end)
11860 (push_left_right_boundary, push_menu_pane, push_menu_item)
11861 (keymap_panes, single_keymap_panes, single_menu_item)
11862 (list_of_panes, list_of_items, find_and_call_menu_selection)
11863 (xmalloc_widget_value, free_menubar_widget_value_tree)
11864 (parse_single_submenu, digest_single_submenu)
11865 (update_submenu_strings): Move to menu.c.
11866
11867 2008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
11868
11869 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
11870
11871 2008-06-06 Miles Bader <miles@gnu.org>
11872
11873 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
11874 face, not frame default.
11875
11876 2008-06-05 Martin Rudalics <rudalics@gmx.at>
11877
11878 * window.c (pop_up_windows, pop_up_frames)
11879 (display_buffer_reuse_frames, Vpop_up_frame_function)
11880 (Vdisplay_buffer_function, Veven_window_heights)
11881 (Vspecial_display_buffer_names, Vspecial_display_regexps)
11882 (Vspecial_display_function, Vsame_window_buffer_names)
11883 (Vsame_window_regexps, split_height_threshold)
11884 (Vsplit_window_preferred_function): Move those vars to window.el.
11885 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
11886 (Fdisplay_buffer): Move those functions to window.el.
11887 (syms_of_window): Remove corresponding declarations.
11888 (display_buffer): New function.
11889 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
11890 * dispnew.c (Flast_nonminibuf_frame): New function.
11891 * buffer.c (Fpop_to_buffer): Move to window.el.
11892
11893 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
11894
11895 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
11896
11897 2008-06-05 Kenichi Handa <handa@m17n.org>
11898
11899 * coding.c (detect_coding): Fix previous change.
11900 (detect_coding_system): Likewise.
11901
11902 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
11903
11904 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
11905
11906 * keymap.c (Vminibuffer_local_filename_must_match_map):
11907 Rename from Vminibuffer_local_must_match_filename_map.
11908 (syms_of_keymap):
11909 * minibuf.c (Fcompleting_read): Adjust accordingly.
11910 * commands.h: Rename declaration as well.
11911
11912 2008-06-05 Kenichi Handa <handa@m17n.org>
11913
11914 * font.c (Ffont_spec): Don't use font_parse_family_registry for
11915 family name.
11916 (Ffont_put): Likewise.
11917
11918 * fontset.c (fontset_find_font): Call font_open_for_lface with the
11919 current font-spec.
11920
11921 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
11922 is unspecified.
11923
11924 * xfaces.c (realize_x_face): If the font-related face attributes
11925 are the same as those of default face, realize a new fontset from
11926 default->fontset.
11927 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
11928
11929 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
11930
11931 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
11932 (move_it_in_display_line): New wrapper.
11933
11934 * window.c (window_scroll_pixel_based_preserve_x)
11935 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
11936 (window_scroll_pixel_based, window_scroll_line_based):
11937 Use them to preserve column positions.
11938 (syms_of_window): Initialize them.
11939
11940 * indent.c (Fvertical_motion): Extend first arg to allow passing an
11941 (HPOS . VPOS) pair.
11942
11943 * dispextern.h (move_it_in_display_line): Declare.
11944
11945 2008-06-05 Juanma Barranquero <lekktu@gmail.com>
11946
11947 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
11948 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
11949 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
11950
11951 2008-06-04 Juanma Barranquero <lekktu@gmail.com>
11952
11953 * window.c (Fset_window_parameter): Doc fix.
11954 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
11955
11956 2008-06-04 Joakim Verona <joakim@verona.se>
11957
11958 * window.h (struct window): Add new member window_parameters.
11959
11960 * window.c (Fwindow_parameters, Fwindow_parameter)
11961 (Fset_window_parameter): New defuns.
11962 (syms_of_window): Defsubr the new defuns.
11963 (make_window): Initialize window_parameters to nil.
11964
11965 2008-06-04 John Paul Wallington <jpw@pobox.com>
11966
11967 * eval.c (Fdefmacro): Doc fix.
11968
11969 2008-06-04 Kenichi Handa <handa@m17n.org>
11970
11971 * coding.c (detect_coding): Fix handling of coding->head_ascii.
11972 Be sure to call setup_coding_system when we find a proper coding system.
11973 (detect_coding_system): Fix handling of coding->head_ascii.
11974
11975 2008-06-03 Andreas Schwab <schwab@suse.de>
11976
11977 * font.c (font_prop_validate_spacing): Fix last change.
11978
11979 2008-06-03 Kenichi Handa <handa@m17n.org>
11980
11981 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
11982 (font_parse_fcname): Fix handling of unknown key.
11983
11984 * xfont.c (xfont_list): Try an alias.
11985
11986 * charset.c (char_charset): Return NULL if the arg charset_list is
11987 specified and C doesn't belong to any of them.
11988
11989 2008-06-02 Chip Coldwell <coldwell@redhat.com>
11990
11991 * font.c (font_pixel_size): Don't take cdr of an integer.
11992
11993 2008-06-02 Jim Meyering <meyering@redhat.com>
11994
11995 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
11996 * alloc.c (xfree): Return right away for a NULL arg.
11997 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
11998 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
11999 * mac.c (create_apple_event_from_event_ref): Likewise.
12000 (create_apple_event_from_drag_ref, cfstring_create_normalized):
12001 Likewise.
12002 * doprnt.c (doprnt1): Likewise.
12003 * frame.c (frame): Likewise.
12004 * keyboard.c (wipe_kboard): Likewise.
12005 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
12006 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
12007 * term.c (tty_default_color_capabilities, maybe_fatal)
12008 (delete_tty): Likewise.
12009 * w16select.c (string): Likewise.
12010 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
12011 * w32bdf.c (w32_free_bdf_font): Likewise.
12012 * w32fns.c (w32_unload_font): Likewise.
12013 * w32font.c (w32font_close): Likewise.
12014 * window.c (size_window): Likewise.
12015 * xselect.c (receive_incremental_selection): Likewise.
12016 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
12017 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
12018 * w32.c (stat): Likewise.
12019
12020 Remove useless if-before-free tests.
12021 * editfns.c (Fset_time_zone_rule): Likewise.
12022 * lread.c (nosuffix): Likewise.
12023 * ralloc.c (get_bloc): Likewise.
12024 * regex.c (reg_free): Likewise.
12025 * xftfont.c (xftfont_open, xftfont_close): Likewise.
12026 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
12027 * xsmfns.c (smc_save_yourself_CB): Likewise.
12028
12029 2008-06-02 Kenichi Handa <handa@m17n.org>
12030
12031 * font.c (font_find_for_lface): Handle float font size.
12032 (font_open_for_lface): Likewise.
12033
12034 * xfaces.c (x_supports_face_attributes_p): Check face->font before
12035 comparing the properties.
12036
12037 2008-06-01 Jason Rumney <jasonr@gnu.org>
12038
12039 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
12040 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
12041 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
12042 Don't add empty script list.
12043 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
12044
12045 2008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
12046
12047 * Makefile.in (dot, dotdot): Remove, update users.
12048 ".." has been used elsewhere in the file for a long time.
12049 (LIBXT_STATIC): Remove conditional based on unused variable.
12050
12051 2008-06-01 Miles Bader <miles@gnu.org>
12052
12053 * xfaces.c (Vface_remapping_alist): New variable.
12054 (syms_of_xfaces): Initialize it.
12055 (enum named_merge_point_kind): New type.
12056 (struct named_merge_point): Add `named_merge_point_kind' field.
12057 (push_named_merge_point): Make cycle detection respect different
12058 named-merge-point kinds.
12059 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
12060 Remove face-name alias resolution.
12061 (lface_from_face_name): New definition using
12062 `lface_from_face_name_no_resolve'.
12063 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
12064 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
12065 (get_lface_attributes): New definition that layers face-remapping on
12066 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
12067 (lookup_basic_face): New function.
12068 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
12069 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
12070 `get_lface_attributes'.
12071 (face_at_buffer_position): Use `lookup_basic_face' to lookup
12072 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
12073 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
12074
12075 * xdisp.c (init_iterator): Pass base_face_id through
12076 `lookup_basic_face' when we actually use it as a face-id.
12077 (handle_single_display_prop): Use `lookup_basic_face' to lookup
12078 DEFAULT_FACE_ID.
12079
12080 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
12081 lookup the initial face-id.
12082
12083 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
12084
12085 2008-06-01 Juanma Barranquero <lekktu@gmail.com>
12086
12087 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
12088 (Fremove_text_properties): Fix typos in docstrings.
12089
12090 2008-05-31 Kenichi Handa <handa@m17n.org>
12091
12092 * font.c (font_list_entities): Fix the car part of data to be
12093 stored in the cache.
12094
12095 * ftfont.c (ftfont_font_format): Don't use strcasestr.
12096
12097 2008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
12098
12099 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
12100 Add a `test' argument so another predicate than `equal' can be used.
12101 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
12102 (map_char_table): Remove unused vars `c' and `i'.
12103 * lisp.h (Foptimize_char_table): Adjust declaration.
12104 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
12105
12106 2008-05-30 Kenichi Handa <handa@m17n.org>
12107
12108 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
12109 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
12110 defined.
12111
12112 2008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
12113
12114 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
12115 (Fmake_variable_frame_local): Disallow mixing buffer-local and
12116 frame-local settings for the same variable.
12117
12118 2008-05-30 Kenichi Handa <handa@m17n.org>
12119
12120 * fontset.c (Ffont_info): Move to font.c.
12121 (syms_of_fontset): Delete defsubr of Sfont_info.
12122
12123 * font.c (font_style_to_value, font_score): Delete casting of the
12124 args to xstcasecmp.
12125 (register_font_driver): Increment num_font_drivers only when
12126 registering the driver globally.
12127 (Ffont_info): Move from fontset.c. Handle a font object too.
12128 (syms_of_font): Defsubr Sfont_info.
12129
12130 2008-05-29 Kenichi Handa <handa@m17n.org>
12131
12132 * coding.h (enum define_coding_utf8_arg_index): New enum.
12133 (enum coding_attr_index): Change coding_attr_utf_16_bom to
12134 coding_attr_utf_bom.
12135 (enum utf_bom_type): Rename from utf_16_bom_type.
12136 (struct utf_16_spec): Adjust for the above change.
12137 (struct coding_system): Add utf_8_bom in `spec' union.
12138
12139 * coding.c (CODING_UTF_8_BOM): New macro.
12140 (enum coding_category): Delete coding_category_utf_8, add
12141 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
12142 coding_category_utf_8_sig.
12143 (CATEGORY_MASK_UTF_8): Delete it.
12144 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
12145 (CATEGORY_MASK_UTF_8_SIG): New macros.
12146 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
12147 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
12148 CATEGORY_MASK_UTF_8_SIG.
12149 (CATEGORY_MASK_UTF_8): New macro.
12150 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
12151 (detect_coding_utf_8): Check BOM.
12152 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
12153 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
12154 (encode_coding_utf_16): Likewise.
12155 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
12156 (detect_coding, detect_coding_system): Handle utf-8-auto.
12157 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
12158 (syms_of_coding): Fix setting up of Vcoding_category_table.
12159
12160 2008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
12161
12162 * process.c (Faccept_process_output): If `millisec' is non-nil,
12163 `seconds' default to 0.
12164 (wait_reading_process_output): Also return non-nil if we read output
12165 from a non-running process.
12166
12167 2008-05-29 Jason Rumney <jasonr@gnu.org>
12168
12169 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
12170 `raster' specified.
12171 (add_font_entity_to_list): Allow non-opentype truetype fonts back
12172 in the uniscribe backend, but disallow any font that has no
12173 unicode subrange support.
12174
12175 2008-05-29 Juanma Barranquero <lekktu@gmail.com>
12176
12177 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
12178 Fix typos in docstrings.
12179
12180 2008-05-29 Kenichi Handa <handa@m17n.org>
12181
12182 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
12183 (Fx_family_fonts): Set frame correctly.
12184
12185 2008-05-28 Jason Rumney <jasonr@gnu.org>
12186
12187 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
12188
12189 2008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
12190
12191 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
12192 calling build_annotations.
12193
12194 2008-05-28 Juanma Barranquero <lekktu@gmail.com>
12195
12196 * coding.c (Fdecode_coding_region, Fencode_coding_region)
12197 (Fencode_coding_string):
12198 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
12199 <latin-extra-code-table>: Fix typos in docstrings.
12200 (syms_of_coding) <coding-system-alist>: Doc fix.
12201 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
12202
12203 2008-05-28 Kenichi Handa <handa@m17n.org>
12204
12205 * fontset.c (Ffont_info): Don't call font_close_object.
12206
12207 * font.c (font_parse_family_registry): Use Ffont_put to validate
12208 foundry and family.
12209 (font_delete_unmatched): Don't check spacing.
12210 (font_list_entities): Add spacing to the spec to list fonts.
12211
12212 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
12213 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
12214
12215 * coding.c (encode_coding_raw_text): Fix previous change.
12216 (encode_coding_object): When the dst_object is a buffer and is
12217 different from src_object, move gap to PT.
12218
12219 2008-05-27 Chong Yidong <cyd@stupidchicken.com>
12220
12221 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
12222
12223 2008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
12224
12225 * coding.c (encode_coding_raw_text): Set coding->produced_char for
12226 all branches. Compute it differently.
12227
12228 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
12229
12230 2008-05-27 Juanma Barranquero <lekktu@gmail.com>
12231
12232 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
12233 into "else if () ... else ...".
12234
12235 2008-05-27 Jason Rumney <jasonr@gnu.org>
12236
12237 * w32font.c (w32font_open_internal): Determine if glyph indices
12238 are likely to work here.
12239
12240 2008-05-27 Chong Yidong <cyd@stupidchicken.com>
12241
12242 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
12243 draw overlap glyphs with appropriate highlighting.
12244
12245 2008-05-27 Kenichi Handa <handa@m17n.org>
12246
12247 * xfont.c (xfont_open): Fix calculation of font->average_width.
12248
12249 2008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
12250
12251 * casefiddle.c (casify_object): Try to guess better whether the
12252 argument is a byte or a char.
12253
12254 2008-05-26 Andreas Schwab <schwab@suse.de>
12255
12256 * xselect.c (x_reply_selection_request): Properly handle format == 32.
12257 Always send multiples of format size.
12258
12259 * xterm.c (x_set_frame_alpha): Fix type mismatch.
12260
12261 2008-05-26 Jason Rumney <jasonr@gnu.org>
12262
12263 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
12264 (compute_metrics): Don't set failure if we just cleared the cache.
12265 (w32_weight_table): Remove unused variable.
12266 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
12267 backwards compatibility.
12268
12269 2008-05-25 Kenichi Handa <handa@m17n.org>
12270
12271 * w32term.c (x_draw_glyph_string):
12272 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
12273
12274 * xfaces.c: Delete unused function prototypes.
12275 (xstrlwr, font_frame): Delete them.
12276 (clear_face_cache): Delete unused variable.
12277
12278 * xftfont.c (xftfont_open): Delete unused variable.
12279 If underline_thickness is not 1, adjust underline_position.
12280
12281 * ftxfont.c (ftxfont_open): Delete unused variable.
12282
12283 * fontset.c (face_for_char): Optimize for the case of no charset
12284 property.
12285
12286 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
12287 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
12288 (otf_open, font_otf_capability, generate_otf_features)
12289 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
12290 Comment out by surrounding "#if 0" and "#endif" for the moment.
12291 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
12292 (syms_of_font): Codes for accessing above commented out.
12293
12294 2008-05-24 Eli Zaretskii <eliz@gnu.org>
12295
12296 * w32proc.c: Include dispextern.h.
12297
12298 * w32.c: Include dispextern.h.
12299
12300 2008-05-23 Juanma Barranquero <lekktu@gmail.com>
12301
12302 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
12303 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
12304 Fix typos in docstrings.
12305
12306 2008-05-23 Jason Rumney <jasonr@gnu.org>
12307
12308 * xsmfns.c: Remove includes that are already included by config.h.
12309
12310 2008-05-23 Kenichi Handa <handa@m17n.org>
12311
12312 * charset.c (Qemacs, charset_emacs): New variables.
12313 (char_charset): Fix for non-Unicode characters.
12314 (syms_of_charset): Define charset_emacs.
12315
12316 * w32term.c (x_draw_glyph_string): Be sure to update
12317 s->underline_thickness and s->underline_position. Be sure to draw
12318 underline within the current line area.
12319
12320 * xterm.c (x_draw_glyph_string): Be sure to update
12321 s->underline_thickness and s->underline_position. Be sure to draw
12322 underline within the current line area.
12323
12324 * fontset.c: Delete unused variables and add casting for char *
12325 throughout the file.
12326 (fontset_font): Try the fallback fonts of the current fontset
12327 before consulting the default fontset.
12328
12329 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
12330
12331 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
12332
12333 2008-05-22 Jason Rumney <jasonr@gnu.org>
12334
12335 * font.c: Don't include strings.h.
12336
12337 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
12338
12339 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
12340 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
12341 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
12342 to call xstrcasecmp.
12343
12344 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
12345
12346 * fontset.c (fs_query_fontset): Use xstrcasecmp.
12347
12348 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
12349
12350 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
12351
12352 2008-05-22 Kenichi Handa <handa@m17n.org>
12353
12354 * puresize.h (BASE_PURESIZE): Increase to 1220000.
12355
12356 * font.c (font_prop_validate_style): Adjust for the format
12357 change of font_style_table.
12358
12359 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
12360 two args.
12361
12362 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
12363 two args.
12364
12365 2008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
12366
12367 * minibuf.c (keys_of_minibuf): Delete.
12368 * lisp.h (keys_of_minibuf): Delete.
12369 * emacs.c (main): Don't call keys_of_minibuf.
12370
12371 2008-05-22 Kenichi Handa <handa@m17n.org>
12372
12373 * ftfont.c (ftfont_resolve_generic_family): Rename from
12374 ftfont_list_generic_family. Return a single family for each
12375 generic family.
12376 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
12377 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
12378 Call font_add_log.
12379 (ftfont_match): Call font_add_log.
12380
12381 * font.h (Ffont_xlfd_name): EXFUN adjusted.
12382 (FONT_DEBUG): Define it.
12383 (font_add_log): Extern it.
12384 (font_assert): Rename from xassert.
12385
12386 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
12387 (xfont_list_family): Call font_add_log.
12388 (xfont_match): Likewise.
12389 (memq_no_quit): Delete.
12390
12391 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
12392 call of Ffont_xlfd_name.
12393
12394 * xfaces.c (struct table_entry, slant_table, weight_table)
12395 (swidth_table): Move to font.c.
12396
12397 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
12398 xassert are changed to font_assert. Delete many unused variables.
12399 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
12400 New variables.
12401 (struct table_entry): Move from xfaces.c and modified.
12402 (weight_table, slant_table, width_table): Move from xfaces.c and
12403 contents adjusted for the change of struct table_entry.
12404 (font_style_to_value, font_style_symbolic): Adjust for the
12405 format change of font_style_table.
12406 (font_parse_family_registry): Don't overwrite existing foundry and
12407 family of font_spec.
12408 (font_score): Fix calculation of diff for sizes.
12409 (font_sort_entites): Call font_add_log.
12410 (font_delete_unmatched): Return a newly created list.
12411 (font_list_entities): Fix previous change. Call font_add_log.
12412 (font_matching_entity, font_open_entity, font_close_entity):
12413 Call font_add_log.
12414 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
12415 (Finternal_set_font_style_table): Delete.
12416 (BUILD_STYLE_TABLE): New macro.
12417 (build_style_table): New function.
12418 (Vfont_log, font_log_env_checked): New variables.
12419 (font_add_log): New function.
12420 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
12421 Declare Lisp variables "font-weight-table", "font-slant-table",
12422 "font-width-table", and "font-log". Initialize font_style_table.
12423
12424 2008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
12425
12426 * xterm.c (x_set_frame_alpha): Move declarations before statements.
12427
12428 2008-05-21 Seiji Zenitani <zenitani@mac.com>
12429 Ryo Yoshitake <ryo@shiftmode.net>
12430
12431 * frame.c (Qalpha): Add a new frame parameter `alpha'.
12432 (Vframe_alpha_lower_limit): New variable.
12433 (x_set_alpha): New function.
12434
12435 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
12436
12437 * xfns.c (x-create-frame, Qalpha):
12438 Initialize the frame parameter `alpha'.
12439 * xterm.c (OPAQUE, OPACITY): New.
12440 (x_set_frame_alpha): New function.
12441 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
12442
12443 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
12444 * w32fns.c (w32_frame_parm_handlers): Likewise.
12445
12446 2008-05-20 Jason Rumney <jasonr@gnu.org>
12447
12448 * w32font.c (add_font_entity_to_list): Don't add non-opentype
12449 truetype fonts to opentype list.
12450
12451 2008-05-20 Juanma Barranquero <lekktu@gmail.com>
12452
12453 * fontset.c (Ffontset_info): Doc fix.
12454 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
12455 <ignore-relative-composition>: Fix typos in docstrings.
12456
12457 * font.c (syms-of-font) <font-encoding-alist>:
12458 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
12459 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
12460 (Ffont_otf_alternates): Doc fixes.
12461
12462 2008-05-20 Kenichi Handa <handa@m17n.org>
12463
12464 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
12465 font.h through out the file.
12466 (FONT_DRIVERS): Rename from FONTOBJ.
12467 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
12468 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
12469
12470 * emacs.c (main): Call syms_of_font unconditionally.
12471
12472 * font.h (find_font_encoding): Extern it.
12473
12474 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
12475 fontset.c.
12476 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
12477 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
12478 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
12479 only when HAVE_WINDOW_SYSTEM is defined.
12480 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
12481 when HAVE_WINDOW_SYSTEM is defined.
12482
12483 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
12484 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
12485
12486 * xfaces.c: Include font.h unconditionally.
12487 (merge_face_ref, merge_face_vectors)
12488 (Finternal_set_lisp_face_attribute): Cancel the previous change.
12489
12490 2008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
12491
12492 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
12493 indirect_variable.
12494 * eval.c (lisp_indirect_variable): New fun.
12495 (Fuser_variable_p): Use it.
12496
12497 2008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
12498
12499 * lisp.h (indirect_variable):
12500 * data.c (indirect_variable, let_shadows_buffer_binding_p):
12501 Use Lisp_Symbol pointers rather than Lisp_Object.
12502 Adjust callers.
12503 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
12504 To this end, change calling-convention.
12505
12506 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
12507 if some non-hidden buffers are selected by string&pred.
12508
12509 2008-05-19 Chong Yidong <cyd@stupidchicken.com>
12510
12511 * process.c (wait_reading_process_output): Always check status
12512 when in batch mode.
12513
12514 2008-05-19 Kenichi Handa <handa@m17n.org>
12515
12516 * font.c (font_list_entities): Fix handling of cache.
12517 (font_matching_entity): Likewise.
12518
12519 * ftfont.c (cs_iso8859_1): Delete.
12520 (ft_face_cache): New variable.
12521 (struct ftfont_info): New member fc_charset_idx.
12522 (ftfont_build_basic_charsets): Delete.
12523 (fc_charset_table): New variable.
12524 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
12525 . FC_CHARSET_IDX) as :font-entity property in the font entity.
12526 Callers changed.
12527 (ftfont_lookup_cache, ftfont_get_charset): New functions.
12528 (ftfont_spec_pattern): New argument fc_charset_idx.
12529 Check registry more rigidly. Change callers.
12530 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
12531 change of :font-entity property of the font.
12532
12533 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
12534 property of the font.
12535
12536 2008-05-18 Juanma Barranquero <lekktu@gmail.com>
12537
12538 * coding.c (Fcoding_system_p): Rename argument to match docstring.
12539 (Funencodable_char_position, Fcheck_coding_systems_region)
12540 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
12541 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
12542 (Ffind_operation_coding_system, Fset_coding_system_priority)
12543 (Fcoding_system_eol_type): Doc fixes.
12544
12545 2008-05-17 Glenn Morris <rgm@gnu.org>
12546
12547 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
12548
12549 2008-05-16 Eli Zaretskii <eliz@gnu.org>
12550
12551 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
12552 and st_gid.
12553
12554 * frame.c (Fdelete_frame): Don't call font_update_drivers if
12555 HAVE_WINDOW_SYSTEM is not defined.
12556
12557 * xfaces.c (merge_face_ref, merge_face_vectors)
12558 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
12559 HAVE_WINDOW_SYSTEM is defined.
12560 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
12561
12562 2008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
12563
12564 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
12565
12566 2008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12567
12568 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
12569
12570 2008-05-15 Kenichi Handa <handa@m17n.org>
12571
12572 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
12573 preference.
12574
12575 2008-05-15 Glenn Morris <rgm@gnu.org>
12576
12577 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
12578
12579 2008-05-15 Chong Yidong <cyd@stupidchicken.com>
12580
12581 * fns.c (init_fns): Don't initialize weak_hash_tables here.
12582 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
12583
12584 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
12585
12586 2008-05-15 Kenichi Handa <handa@m17n.org>
12587
12588 * ftfont.c (ftfont_list): Downcase family name to check generic
12589 families.
12590
12591 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
12592 font-spec for QCfont value.
12593
12594 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
12595 buffer. Check the return value of it.
12596
12597 2008-05-14 Jason Rumney <jasonr@gnu.org>
12598
12599 * w32term.c (w32_get_glyph_overhangs): Remove.
12600 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
12601
12602 2008-05-14 Kenichi Handa <handa@m17n.org>
12603
12604 * font.c (font_prop_validate): Make nil a valid value.
12605 (font_clear_cache): Check if the cached vector of entities is nil
12606 or not.
12607
12608 2008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12609
12610 * emacs.c (main_thread): Conditionalize on
12611 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
12612 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
12613
12614 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
12615 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
12616 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
12617
12618 2008-05-14 Kenichi Handa <handa@m17n.org>
12619
12620 * coding.c (detect_coding_iso_2022): Ignore a coding category that
12621 has no corresponding coding system.
12622
12623 2008-05-14 Jason Rumney <jasonr@gnu.org>
12624
12625 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
12626
12627 * w32font.h (w32font_open_internal): Update declaration.
12628
12629 * w32font.c (w32font_open_internal): Change last argument from
12630 w32font_info struct to font object. Fill in font object from
12631 font_entity. Get Outline metrics if possible. Use them to
12632 calculate underline position and thickness. Use xlfd name as name
12633 property. Don't set codepage.
12634 (w32font_open): Pass font_object to w32font_open_internal. Don't
12635 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
12636 (w32font_draw): Use s->font.
12637 (clear_cached_metrics): Don't clear non-existent blocks.
12638
12639 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
12640 font was not found.
12641 (x_draw_glyph_string): Use underline position and thickness from font.
12642
12643 * w32uniscribe.c (uniscribe_open): Pass font_object to
12644 w32font_open_internal.
12645
12646 2008-05-14 Kenichi Handa <handa@m17n.org>
12647
12648 These changes are to delete all legacy font-handling codes, and
12649 make Emacs use only font-backends.
12650
12651 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
12652 (frame.o, image.o, print.o): Depend on $(FONTSRC).
12653
12654 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
12655
12656 * charset.h (Vcharset_non_preferred_head)
12657 (Vcurrent_iso639_language): Extern them.
12658
12659 * charset.c (Vcharset_non_preferred_head): New variable.
12660 (Vcurrent_iso639_language): New variable.
12661 (syms_of_charset): Declare it as a Lisp variable.
12662 (char_charset): Don't check non preferred charsets. As a last
12663 resort, return charset_unicode.
12664 (Fset_charset_priority): Update Vcharset_non_preferred_head.
12665
12666 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
12667 conditionals. Don't check enable_font_backend. Delete all codes
12668 used only when USE_FONT_BACKEND is not defined.
12669
12670 * dispextern.h (struct glyph_string): Change type of `font' to
12671 `struct font *'.
12672 (struct glyph_string): New member underline_position and
12673 underline_thickness.
12674 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
12675 (struct face): Change type of `font' to `struct font *'. Remove
12676 members `font_name', `font_info_id'.
12677 (per_char_metric, encode_char): Delete externs.
12678 (calc_pixel_width_or_height): Adjust the prototype.
12679
12680 * emacs.c (enable_font_backend): Delete extern.
12681 (main): Don't set enable_font_backend. Don't check the command
12682 line argument "-disable-font-backend".
12683
12684 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
12685 (enum font_property_index): New members FONT_DPI_INDEX,
12686 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
12687 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
12688 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
12689 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
12690 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
12691 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
12692 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
12693 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
12694 (struct font_spec, struct font_entity): New structs.
12695 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
12696 (struct font): Many members from old "struct font_info" moved to
12697 here. Members font and entity deleted.
12698 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
12699 the new font-related objects.
12700 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
12701 (CHECK_FONT_GET_OBJECT): Likewise.
12702 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
12703 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
12704 (struct font_driver): New members case_sensitive anc check. Type
12705 of the member list and open changed.
12706 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
12707 (font_symbolic_width, font_find_object, font_get_spec)
12708 (font_set_lface_from_name): Delete extern.
12709 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
12710
12711 * font.c: Include <strings.h>.
12712 (enable_font_backend): Delete it.
12713 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
12714 (CHECK_VALIDATE_FONT_SPEC): Delete it.
12715 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
12716 (null_string): Delete it.
12717 (null_vector): Make it static.
12718 (font_family_alist): Delete it.
12719 (Qnormal): Extern it.
12720 (QCextra, QClanguage): Delete it.
12721 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
12722 (font_make_spec, font_make_entity, font_make_object)
12723 (font_intern_prop): Renamed from intern_downcase. Don't downcase
12724 the string. Callers changed.
12725 (font_pixel_size): Adjusted for the format change of font-related
12726 objects.
12727 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
12728 (font_style_to_value, font_style_symbolic): New function.
12729 (build_font_family_alist): Delete it.
12730 (font_registry_charsets): Use Fassoc_string instead of
12731 assq_no_quit.
12732 (font_prop_validate_symbol): Don't return null_string.
12733 (font_prop_validate_style): Adjusted for the change of
12734 style-related values in a font vector.
12735 (font_property_table): Delete entries for QClanguage and
12736 QCantialias, add entries for QCavgwidth.
12737 (get_font_prop_index): Delete the 2nd argument FROM.
12738 (font_prop_validate): Arguments changed.
12739 (font_put_extra): Adjusted for the change of font-related objects.
12740 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
12741 (font_parse_fcname, font_unparse_fcname)
12742 (font_prepare_composition): Likewise.
12743 (font_parse_family_registry): Renamed from font_merge_old_spec.
12744 (otf_open): Delete the 1st arg entity.
12745 (font_otf_capability): Adjusted for the above change.
12746 (font_score): New arg alternate_families. Adjusted for the change
12747 of font-related objects.
12748 (font_sort_entites): New arg best_only.
12749 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
12750 Delete them.
12751 (font_match_p): Check alternate families.
12752 (font_find_object): Delete it.
12753 (font_check_object): New function.
12754 (font_clear_cache): Adjusted for the change of font-related objects.
12755 (font_delete_unmatched): New arg.
12756 (font_list_entities): Call font_driver->list with a spec that
12757 doesn't specify style-related properties.
12758 (font_matching_entity): Arguments changed. Caller changed.
12759 (font_open_entity): Adjusted for the change of font-related objects.
12760 (font_close_object, font_has_char, font_encode_char)
12761 (font_get_name, font_get_spec): Likewise.
12762 (font_spec_from_name, font_clear_prop, font_update_lface):
12763 New functions.
12764 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
12765 (font_prepare_for_face, font_done_for_face, font_open_by_name)
12766 (font_at): Adjusted for the change of font-related objects.
12767 (font_range): New function.
12768 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
12769 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
12770 (Fcopy_font_spec, Fmerge_font_spec): New function.
12771 (Ffont_family_list): Renamed from list-families.
12772 (Finternal_set_font_style_table): Arguments changed.
12773 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
12774 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
12775 change of font-related objects.
12776 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
12777
12778 * fontset.h (struct font_info): Delete it. Most members go to
12779 struct font.
12780 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
12781 (enum FONT_SPEC_INDEX): Delete it.
12782 (font_info, list_fonts_func, load_font_func, query_font_func)
12783 (set_frame_fontset_func, find_ccl_program_func)
12784 (get_font_repertory_func, new_fontset_from_font_name): Delete
12785 externs.
12786 (fontset_from_font_name): Extern it.
12787 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
12788 (FONT_INFO_FROM_FACE): Deleted.
12789 (face_for_font): Adjust prototype.
12790
12791 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
12792 conditionals. Don't check enable_font_backend. Delete all codes
12793 used only when USE_FONT_BACKEND is not defined.
12794 (get_font_info_func, list_font_func, load_font_func)
12795 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
12796 (get_font_repertory_func): Delete them.
12797 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
12798 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
12799 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
12800 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
12801 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
12802 (fontset_compare_rfontdef): New function.
12803 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
12804 rfont-defs by qsort. Adjusted for the change of font-group vector.
12805 (load_font_get_repertory): Deleted.
12806 (fontset_find_font): Use new macros to ref/set elements of
12807 font-def and rfont-def.
12808 (fontset_font): Fix the timing of remembering that no font for C.
12809 (free_face_fontset): Do nothing if the face has no fontset.
12810 (face_suitable_for_char_p): Use new macros to ref/set elements of
12811 rfont-def.
12812 (face_for_char): Likewise. Call face_for_char with font_object.
12813 (fs_load_font): Delete. Delete #pragma surrounding it.
12814 (fs_query_fontset): Use strcasecmp instead of strcmp.
12815 (generate_ascii_font_name): Adjusted for the format change of
12816 font-spec.
12817 (Fset_fontset_font): Likewise. Use new macros to set elements of
12818 font-def.
12819 (Fnew_fontset): Use font_unparse_xlfd to generate
12820 FONTSET_ASCII (fontset).
12821 (new_fontset_from_font_name): Deleted.
12822 (fontset_from_font): Renamed from new_fontset_from_font. Check if
12823 a fontset is already created for the font. FIx updating of
12824 Vfontset_alias_alist.
12825 (fontset_ascii_font): Deleted.
12826 (Ffont_info): Adjusted for the format change of font-spec.
12827 (Finternal_char_font): Likewise.
12828 (Ffontset_info): Likewise.
12829 (syms_of_fontset): Don't check load_font_func.
12830
12831 * fns.c (internal_equal): Handle PREV_FONT.
12832
12833 * frame.h: Delete USE_FONT_BACKEND conditional.
12834
12835 * frame.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 (x_set_font): Call x_new_font, not x_new_fontset2.
12839 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
12840 already set for the frame.
12841
12842 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
12843 a font-entity by font_make_entity. Use font_intern_prop instead
12844 of intern_downcase. Use FONT_SET_STYLE to set a style-related
12845 font property. If a font is scalable, set avgwidth property to 0.
12846 Set font-entity property by font_put_extra.
12847 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
12848 (ffont_driver): Adjusted for the change of struct font_driver.
12849 (ftfont_spec_pattern): New function.
12850 (ftfont_list): Return a list, not vector.
12851 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
12852 (ftfont_list_family): Don't downcase names.
12853 (ftfont_free_entity): Deleted.
12854 (ftfont_open): Return a font-object. Adjusted for the change of
12855 struct font. Get underline_thickness and underline_position from
12856 font property. Don't update dpyinfo->smallest_font_height and
12857 dpyinfo->smallest_char_width.
12858 (ftfont_close): Don't free `struct font'.
12859 (ftfont_has_char): Adjusted for the format change of font-entity.
12860 (ftfont_encode_char, ftfont_text_extents): Likewise.
12861
12862 * ftxfont.c (ftxfont_list): Return a list, not vector.
12863 (ftxfont_open): Return a font-object. Adjusted for the change of
12864 struct font. Get underline_thickness and underline_position from
12865 font property. Don't update dpyinfo->smallest_font_height and
12866 dpyinfo->smallest_char_width.
12867 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
12868 (ftxfont_draw): Adjusted for the change of struct font.
12869
12870 * image.c (image_ascent): Don't include "charset.h". Include
12871 "character.h" and "font.h".
12872
12873 * lisp.h (enum pvec_type): New member PREV_FONT.
12874 (Fassoc_string): EXFUN it.
12875
12876 * print.c: Include font.h.
12877 (print_object): Handle font-related objects.
12878
12879 * xdisp.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 (handle_auto_composed_prop): Do nothing if it->f is not on a
12883 window system. Check how many following characters can be
12884 displayed by the same font.
12885 (calc_pixel_width_or_height): Type of the 4th arg is changed to
12886 'struct font *'.
12887 (get_char_face_and_encoding): Assign the whole encoding task to
12888 the `encode-char' method of a font driver.
12889 (fill_composite_glyph_string): Adjusted for the change of `struct
12890 face' and `struct glyph_string'.
12891 (fill_glyph_string): Likewise.
12892 (get_per_char_metric): Arguments changed.
12893 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
12894 and `struct glyph_string'.
12895 (produce_stretch_glyph, calc_line_height_property)
12896 (x_produce_glyphs): Likewise.
12897
12898 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
12899 conditionals. Don't check enable_font_backend. Delete all codes
12900 used only when USE_FONT_BACKEND is not defined. Use
12901 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
12902 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
12903 (Qp): Extern them.
12904 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
12905 Deleted.
12906 (struct font_name): Deleted.
12907 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
12908 (compare_fonts_by_sort_order): New function.
12909 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
12910 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
12911 Deleted.
12912 (Fx_family_fonts): Use font_list_entities, and sort fonts by
12913 compare_fonts_by_sort_order.
12914 (Fx_font_family_list): Call Ffont_family_list.
12915 (face_numeric_value, face_numeric_weight, face_numeric_slant)
12916 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
12917 (face_symbolic_slant, face_symbolic_swidth)
12918 (split_font_name_into_vector, build_font_name_from_vector)
12919 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
12920 (font_rescale_ratio, split_font_name, build_font_name)
12921 (free_font_names, sort_fonts, x_face_list_fonts)
12922 (face_font_available_p, sorted_font_list, cmp_font_names)
12923 (font_list_1, concat_font_list, font_list, remove_duplicates):
12924 Deleted.
12925 (Fx_list_fonts): Use Ffont_list.
12926 (LFACE_AVGWIDTH): Deleted.
12927 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
12928 by FONTP.
12929 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
12930 (set_lface_from_font_name): Delete it.
12931 (set_lface_from_font): Renamed from
12932 set_lface_from_font_and_fontset. Caller changed. Don't set
12933 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
12934 for face.
12935 (merge_face_vectors): Copy font-spec if necessary.
12936 Clear properties of the font-spec if necessary.
12937 (merge_face_ref): Clear properties of the font-spec if necessary.
12938 (Finternal_set_lisp_face_attribute): Likewise.
12939 (set_font_frame_param): Use font_load_for_lface to load a
12940 font-object, and call Fmodify_frame_parameters with it.
12941 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
12942 font name by Ffont_xlfd_name.
12943 (Finternal_lisp_face_attribute_values): Don't check QCweight,
12944 QCslant, and QCwidth.
12945 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
12946 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
12947 Compare fonts by EQ.
12948 (lookup_non_ascii_face): Deleted.
12949 (face_for_font): The 2nd argument changed.
12950 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
12951 Check atomic font properties by case insensitive.
12952 (realize_non_ascii_face): Set face->overstrike correctly.
12953 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
12954 (dump_realized_face): Get font name from
12955 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
12956
12957 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
12958 conditionals. Don't check enable_font_backend. Delete all codes
12959 used only when USE_FONT_BACKEND is not defined.
12960 (xic_create_xfontset): Original code deleted and renamed from
12961 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
12962 (x_make_gc): Don't set GCFont in GCs.
12963 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
12964 opened by "fixed".
12965 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
12966 find_ccl_program_func, query_font_func, set_frame_fontset_func,
12967 get_font_repertory_func.
12968
12969 * xfont.c: Include <stdlib.h> and "ccl.h".
12970 (struct xfont_info): New structure.
12971 (xfont_query_font): Deleted.
12972 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
12973 moved from xterm.c.
12974 (xfont_driver): Adjusted for the change of struct font_driver.
12975 (compare_font_names): New function.
12976 (xfont_list_pattern): Sort font names case insensitively. Make
12977 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
12978 (xfont_list): Return a list, not vector.
12979 (xfont_match): If the font doesn't have QCname property, generate
12980 a name from the other font properties.
12981 (xfont_open): Return a font-object. Adjusted for the change of
12982 struct font. Get underline_thickness and underline_position from
12983 font property. Don't update dpyinfo->smallest_font_height and
12984 dpyinfo->smallest_char_width.
12985 (xfont_close): Don't free struct font.
12986 (xfont_prepare_face): Adjusted for the change of struct font.
12987 (xfont_done_face): Deleted.
12988 (xfont_has_char): Adjusted for the change of struct font.
12989 (xfont_encode_char, xfont_draw): Likewise.
12990 (xfont_check): New function.
12991
12992 * xftfont.c (xftfont_list): Adjusted for the change of `list'
12993 callback function.
12994 (xftfont_match): Adjusted for the format change of font-entity.
12995 (xftfont_open): Adjusted for the format change of font-entity and
12996 font-object. Adjusted for the change of struct font. Return a
12997 font-object. Don't update dpyinfo->smallest_font_height and
12998 dpyinfo->smallest_char_width.
12999 (xftfont_close): Block input while calling XftFontClose.
13000 (xftfont_prepare_face): Don't block input while calling
13001 xftfont_get_colors. Adjusted for the change of struct font.
13002 (xftfont_shape): Return value of error case fixed.
13003
13004 * xrdb.c (x_load_resources): Don't setup a fontset resource.
13005
13006 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
13007 conditionals.
13008 (FONT_WIDTH): Return (f)->max_width.
13009 (struct x_display_info): Delete member `font'.
13010 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
13011 (x_find_ccl_program, x_get_font_repertory): Delete externs.
13012 (struct x_output): Change type of `font' to `struct font *'.
13013
13014 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
13015 conditionals. Don't check enable_font_backend. Delete all codes
13016 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
13017 (x_per_char_metric, x_encode_char): Deleted.
13018 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
13019 (x_compute_glyph_string_overhangs): Adjusted for the change of
13020 `struct face'.
13021 (x_draw_glyph_string_foreground)
13022 (x_draw_composite_glyph_string_foreground): Likewise.
13023 (x_draw_glyph_string): Likewise. Use font->underline_position and
13024 font->underline_thickness.
13025 (x_new_font): Renamed from x_new_fontset2.
13026 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
13027 (x_check_font): Call `check' method of a font driver.
13028 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
13029 (x_query_font, x_get_font_repertory): Deleted.
13030 (x_find_ccl_program): Renamed and moved to xfont.c.
13031 (x_redisplay_interface): Adjusted for the change of `struct
13032 redisplay_interface'.
13033
13034 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
13035 conditionals. Don't check enable_font_backend. Delete all codes
13036 used only when USE_FONT_BACKEND is not defined. Surround non-used
13037 code by "#ifdef OLD_FONT" and "endif".
13038 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
13039
13040 * w32font.h (struct w32font_info): New member.
13041 (FONT_COMPAT): New macro.
13042 (w32font_open_internal): Prototype adjusted.
13043
13044 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
13045 OLD_FONT" and "endif".
13046
13047 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
13048 conditionals. Don't check enable_font_backend. Delete all codes
13049 used only when USE_FONT_BACKEND is not defined.
13050 (w32font_open): Return a font-object. Make a font-object by
13051 font_make_object. Adjusted for the change of struct w32font_info.
13052 (w32font_close): Don't free struct font. Adjusted for the change
13053 of struct w32font_info.
13054 (w32font_encode_char, w32font_text_extents, w32font_draw):
13055 Adjusted for the change of struct w32font_info.
13056 (w32font_draw): Likewise.
13057 (w32font_list_internal): Return a list, not vector.
13058 (w32font_open_internal): Change the 4th arg to font-object.
13059 Adjusted for the change of struct w32font_info and font-object format.
13060 (add_font_name_to_list): Don't downcase names.
13061 (w32_enumfont_pattern_entity): Make a font-entity by
13062 font_make_entity. Adjusted for the format change of font-entity.
13063 Use FONT_SET_STYLE to set a style-related font property. If a
13064 font is scalable, set avgwidth property to 0. Set font-entity
13065 property by font_put_extra.
13066 (font_matches_spec): Adjusted for the format change of font-entity.
13067 (w32_weight_table, w32_decode_weight): New variables.
13068 (w32_encode_weight): New function.
13069 (fill_in_logfont): Adjusted for the format change of font-spec.
13070 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
13071 weight value.
13072 (w32font_driver): Adjusted for the change of struct font_driver.
13073
13074 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
13075 conditionals. Don't check enable_font_backend. Surround non-used
13076 code by "#ifdef OLD_FONT" and "endif".
13077 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
13078 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
13079
13080 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
13081 conditionals. Don't check enable_font_backend. Delete all codes
13082 used only when USE_FONT_BACKEND is not defined. Surround non-used
13083 code by "#ifdef OLD_FONT" and "endif".
13084
13085 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
13086 (uniscribe_open): Return value changed to font-object.
13087 Adjusted for the format change of font-object.
13088 (uniscribe_otf_capability): Adjusted for the change of struct font.
13089 (add_opentype_font_name_to_list): Don't downcase names.
13090 (uniscribe_font_driver): Adjusted for the change of struct
13091 font_driver.
13092
13093 2008-05-13 Chong Yidong <cyd@stupidchicken.com>
13094
13095 * dispnew.c (update_frame_1): Check if tty output is still valid
13096 before flushing it.
13097
13098 2008-05-13 Jan Djärv <jan.h.d@swipnet.se>
13099
13100 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
13101 to Gtk+ menus.
13102
13103 2008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
13104
13105 * dired.c (file_name_completion): Tweak the code so as to always do it
13106 in a single pass. Tighten the scope of some variables.
13107
13108 * dired.c (Qdefault_directory): New var.
13109 (file_name_completion): Use it instead of Fexpand_file_name.
13110 (syms_of_dired): Initialize it.
13111
13112 2008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
13113
13114 * fileio.c (double_dollars): Remove dead code.
13115
13116 2008-05-10 Eli Zaretskii <eliz@gnu.org>
13117
13118 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
13119 Mention w32-get-true-file-attributes in doc string.
13120
13121 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
13122
13123 2008-05-09 Glenn Morris <rgm@gnu.org>
13124
13125 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
13126 2008-04-23.
13127
13128 2008-05-09 Eli Zaretskii <eliz@gnu.org>
13129
13130 Support for reporting owner and group of each file on MS-Windows:
13131 * dired.c (stat_uname, stat_gname): New functions, with special
13132 implementation for w32.
13133 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
13134
13135 * w32.c: Rename the_passwd_* to dflt_passwd_*.
13136 (dflt_group_name): New static variable.
13137 (dflt_group): Rename from the_group.
13138 (init_user_info): Init dflt_group fields. Get user's group name
13139 from LookupAccountSid.
13140 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
13141 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
13142 New initialization states.
13143 (globals_of_w32): Initialize them to zero. Initialize the default
13144 group name to "None".
13145 (GetFileSecurity_Name): New global var, the name of the function
13146 to call for GetFileSecurity.
13147 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
13148 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
13149 (get_file_security, get_security_descriptor_owner)
13150 (get_security_descriptor_group, is_valid_sid)
13151 (get_file_security_desc, get_rid, get_name_and_id)
13152 (get_file_owner_and_group): New functions.
13153 (stat): Use get_file_security_desc and get_file_owner_and_group to
13154 report the owner and primary group of each file. Don't ignore the
13155 high 32 bits of file's size, now that st_size is 64-bit wide.
13156 Fix test when to get true file attributes.
13157 (init_user_info): Use get_rid instead of equivalent inline code.
13158 (fstat): Don't ignore the high 32 bits of file's size.
13159
13160 2008-05-09 Chong Yidong <cyd@stupidchicken.com>
13161
13162 * image.c (png_load): Use correct bit-depth for setting background
13163 color.
13164
13165 2008-05-08 Eli Zaretskii <eliz@gnu.org>
13166
13167 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
13168 epa-hook.elc.
13169
13170 2008-05-08 Juanma Barranquero <lekktu@gmail.com>
13171
13172 * font.c (Ffont_match_p): Don't use `iff' in docstring.
13173
13174 2008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
13175
13176 * macfns.c (Fx_create_frame): Make a copy of frame parameters
13177 because the original parameters are in pure storage now.
13178 (mac_window): Remove unused params. Update callers.
13179
13180 2008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
13181
13182 * lread.c (substitute_object_recurse): Use lower-level primitives.
13183 Don't signal errors when traversing sub-char-tables.
13184 Don't loop over all the possible characters when traversing char-tables.
13185
13186 * print.c (print_preprocess): Add sub-char-tables to the print-table,
13187 just like we do in print.c.
13188
13189 2008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
13190
13191 * minibuf.c (Ftry_completion): Remove code left over from when we used
13192 scmp instead of Fcompare_strings.
13193
13194 2008-05-04 Juanma Barranquero <lekktu@gmail.com>
13195
13196 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
13197
13198 2008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13199
13200 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
13201 Create bitmap context in native byte order.
13202
13203 * macterm.c (XDrawLine)
13204 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
13205 context in native byte order.
13206
13207 2008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13208
13209 * config.in: Regenerate.
13210
13211 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
13212 New definitions for Image I/O support.
13213 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
13214 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
13215 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
13216 (mac_data_provider_release_data, image_load_image_io)
13217 [USE_MAC_IMAGE_IO]: New functions.
13218 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
13219 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
13220 (init_image_func_pointer) [MAC_OSX]: Remove function.
13221 (image_load_quartz2d) [MAC_OSX]: Check availability of
13222 CGImageCreateWithPNGDataProvider at compile time.
13223 Use lowercase `false' for boolean constant.
13224 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
13225 Use image_load_image_io.
13226 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
13227 Don't check MyCGImageCreateWithPNGDataProvider.
13228 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
13229 Don't call init_image_func_pointer.
13230
13231 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
13232
13233 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
13234 Make variable non-static.
13235 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
13236 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
13237
13238 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
13239 (RED_FROM_ULONG): Mask off higher bits.
13240 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
13241
13242 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
13243 Include AvailabilityMacros.h.
13244 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
13245 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
13246
13247 2008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
13248
13249 * chartab.c (Fset_char_table_range): If range is t, really set all
13250 chars to that value.
13251
13252 2008-05-03 Eli Zaretskii <eliz@gnu.org>
13253
13254 * dired.c (Ffile_attributes): Don't allow the device number become
13255 negative.
13256
13257 2008-05-02 Daiki Ueno <ueno@unixuser.org>
13258
13259 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
13260
13261 2008-05-02 Juri Linkov <juri@jurta.org>
13262
13263 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
13264 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
13265 DEFAULT argument as a list of default values in docstrings.
13266
13267 2008-05-01 Chong Yidong <cyd@stupidchicken.com>
13268
13269 * puresize.h (BASE_PURESIZE): Increase to 1210000.
13270
13271 2008-05-01 Martin Rudalics <rudalics@gmx.at>
13272
13273 * dispnew.c (change_frame_size_1): Preserve small windows when
13274 shrinking frames by calling set_window_height|width with third
13275 arg 2.
13276
13277 * window.h (struct window): Replace field too_small_ok by field
13278 resize_proportionally.
13279
13280 * window.c (make_window): Initialize resize_proportionally.
13281 (enlarge_window): Temporarily set resize_proportionally to make
13282 sure that shrink_windows does scale the window proportionally.
13283 (shrink_windows): When window has resize_proportionally set try
13284 to shrink it proportionally by stealing from other windows.
13285 (struct saved_window, Fset_window_configuration)
13286 (compare_window_configurations): Handle resize_proportionally.
13287 (WINDOW_TOTAL_SIZE): New macro.
13288 (window_min_size, shrink_windows, size_window): Use it.
13289 (check_min_window_sizes): Remove. Invalid values of
13290 window-min-height|width are handled by window_min_size_2 now.
13291 (size_window, Fsplit_window, enlarge_window)
13292 (adjust_window_trailing_edge, grow_mini_window): Don't call
13293 check_min_window_sizes.
13294 (window_min_size_2, window_min_size_1, window_min_size):
13295 New argument safe_p for retrieving "safe" minimum sizes.
13296 (Fdisplay_buffer, Fsplit_window, enlarge_window)
13297 (adjust_window_trailing_edge, grow_mini_window):
13298 Adjust arguments of window_min_size... functions.
13299 (shrink_windows): Argument min_size removed. New argument
13300 safe_p allows shrinking windows to their safe minimum sizes.
13301 Calculate minimum size and decide whether a window shall be
13302 deleted for each window individually.
13303 (size_window): When nodelete_p equals 2, tell shrink_windows to
13304 delete windows only if their new minimum size is no more safe.
13305 (shrink_window_lowest_first): Call window_min_size_1 to make
13306 sure to preserve modeline of bottom-most window when resizing
13307 the minibuffer.
13308 (Fset_window_configuration, Fcurrent_window_configuration)
13309 (compare_window_configurations): Do not handle
13310 window-min-height|width any more.
13311 (syms_of_window): Clarify window-min-height|width doc-strings.
13312
13313 2008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
13314
13315 * dired.c (file_name_completion): Fix up the encoding/decoding issue
13316 some more. Copy some of the code from Ftry_completions.
13317 Remove special case code that dates back to initial revision when the
13318 slash was only added when necessary and that can't trigger nowadays.
13319
13320 2008-04-27 Kenichi Handa <handa@m17n.org>
13321
13322 * font.c (font_prop_validate): Signal `error' instead of `font'.
13323
13324 2008-04-29 Jason Rumney <jasonr@gnu.org>
13325
13326 * w32fns.c (Fw32_battery_status): New defun.
13327 (syms_of_w32fns): Defsubr it.
13328
13329 2008-04-28 Andreas Schwab <schwab@suse.de>
13330
13331 * dired.c (file_name_completion): Fix another mixing of encoded
13332 and decoded names.
13333
13334 2008-04-28 Juanma Barranquero <lekktu@gmail.com>
13335
13336 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
13337
13338 2008-04-27 Juanma Barranquero <lekktu@gmail.com>
13339
13340 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
13341
13342 2008-04-27 Andreas Schwab <schwab@suse.de>
13343
13344 * dired.c (file_name_completion): Fix inappropriate mixing of
13345 encoded and decoded names.
13346
13347 * xterm.c (XTread_socket): Fix use of uninitialized variable.
13348
13349 * puresize.h (BASE_PURESIZE): Increase to 1200000.
13350
13351 2008-04-26 Eli Zaretskii <eliz@gnu.org>
13352
13353 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
13354 2008-03-31, it's not needed anymore with `struct stat' definition
13355 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
13356 for the same reasons.
13357
13358 2008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
13359
13360 * m/sparc.h: Additional redefinitions for GNU/Linux.
13361
13362 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13363
13364 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
13365 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
13366 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
13367 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
13368 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
13369 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
13370 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
13371 Likewise.
13372
13373 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
13374 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
13375 (mac_ax_number_of_characters): Add externs.
13376 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
13377 [USE_MAC_TSM]: Likewise.
13378 (mac_handle_text_input_event) [MAC_OSX]:
13379 Handle kEventTextInputOffsetToPos for no active input area case.
13380 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
13381 (mac_handle_document_access_event)
13382 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
13383 (install_application_handler) [MAC_OSX]: Register handlers for
13384 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
13385 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
13386 Register mac_handle_document_access_event.
13387
13388 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
13389 Make functions non-static.
13390
13391 2008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
13392
13393 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
13394 (read_file_name_completion_ignore_case, insert_default_directory)
13395 (Qdefault_directory): Move to minibuffer.el.
13396 (Fread_file_name): Call the new `read-file-name' instead.
13397
13398 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13399
13400 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
13401 Make function non-static.
13402 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
13403 Remove function.
13404 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
13405 Move to mactoolbox.c.
13406 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
13407
13408 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
13409 (mac_rect_make): New macro.
13410
13411 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
13412 instead of float.
13413 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
13414 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
13415 (XSetBackground) [USE_CG_DRAWING]: Likewise.
13416 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
13417 CGRectMake.
13418 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
13419 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
13420 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
13421 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
13422 instead of WindowRef in argument type.
13423 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
13424 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
13425 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
13426 instead of DISPLAY. All uses changed.
13427 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
13428 (x_calc_absolute_position): Simplify so as not to use
13429 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
13430
13431 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
13432 instead of WindowRef in argument type.
13433 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
13434 [TARGET_API_MAC_CARBON]: Remove externs.
13435 (create_apple_event, mac_event_parameters_to_lisp)
13436 [TARGET_API_MAC_CARBON]: Add externs.
13437
13438 * mactoolbox.c (Vmac_ts_script_language_on_focus)
13439 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
13440 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
13441 is clicked.
13442 (x_activate_menubar): Remove extern for saved_menu_event_location.
13443 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
13444 Move from mac.c.
13445
13446 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13447
13448 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
13449 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
13450
13451 2008-04-23 Jason Rumney <jasonr@gnu.org>
13452
13453 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
13454 attributes only for local files.
13455
13456 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
13457 default to Qlocal.
13458
13459 2008-04-22 Juri Linkov <juri@jurta.org>
13460
13461 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
13462 read-buffer-to-switch instead of using the letter "B".
13463
13464 2008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
13465
13466 * fileio.c (Qdefault_directory): New variable.
13467 (Fread_file_name): Use it to pass `dir' to the completion functions.
13468
13469 2008-04-20 Chong Yidong <cyd@stupidchicken.com>
13470
13471 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
13472
13473 2008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
13474
13475 * keyboard.c (Vpre_help_message): Remove.
13476 (show_help_echo): Remove default C code.
13477
13478 * dired.c (directory_files_internal, file_name_completion):
13479 Only call ENCODE_FILE if the string is indeed decoded.
13480
13481 2008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
13482
13483 * Makefile.in (TOOLKIT_DEFINES): Remove.
13484 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
13485
13486 2008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13487
13488 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
13489 (mactoolbox.o): New target.
13490
13491 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
13492 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
13493
13494 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
13495 Use mac_set_frame_window_background instead of XSetWindowBackground.
13496 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
13497 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
13498 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
13499 instead of SetWindowTitleWithCFString.
13500 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
13501 Move function to mactoolbox.c.
13502 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
13503 Use mac_set_window_modified instead of SetWindowModified.
13504 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
13505 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
13506 (Fx_focus_frame): Use mac_front_non_floating_window instead of
13507 FrontNonFloatingWindow. Use mac_activate_window instead of
13508 ActivateWindow. Use mac_active_non_floating_window instead of
13509 ActiveNonFloatingWindow.
13510 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
13511 Use mac_show_hourglass and mac_hide_hourglass.
13512 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
13513 instead of GetGlobalMouse.
13514 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
13515 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
13516 Use mac_bring_window_to_front instead of BringToFront.
13517 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
13518 mactoolbox.c.
13519 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
13520 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
13521 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
13522 mactoolbox.c.
13523
13524 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
13525 (XtPointer): Move typedef from macmenu.c.
13526 (enum button_type): Move enum from macmenu.c.
13527 (widget_value): Move typedef from macmenu.c.
13528 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
13529 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
13530 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
13531 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
13532 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
13533 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
13534 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
13535 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
13536 (Selection): Move typedef from macselect.c.
13537 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
13538 macterm.c.
13539 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
13540 (mac_is_window_collapsed, mac_bring_window_to_front)
13541 (mac_send_window_behind, mac_hide_window, mac_show_window)
13542 (mac_collapse_window, mac_front_non_floating_window)
13543 (mac_active_non_floating_window, mac_activate_window)
13544 (mac_move_window_structure, mac_move_window, mac_size_window)
13545 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
13546
13547 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
13548 (enum mac_menu_kind): Move enum to mactoolbox.c.
13549 (min_menu_id): Move variable to mactoolbox.c.
13550 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
13551 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
13552 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
13553 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
13554 [TARGET_API_MAC_CARBON]: Likewise.
13555 (XtPointer): Move typedef to macgui.h.
13556 (enum button_type): Move enum to macgui.h.
13557 (widget_value): Move typedef to macgui.h.
13558 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
13559 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
13560 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
13561 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
13562 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
13563 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
13564 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
13565 (popup_activated_flag): Make variable non-static.
13566 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
13567 (add_menu_item, fill_menu, dispose_menus):
13568 Move functions to mactoolbox.c.
13569 (restore_show_help_function, menu_target_item_handler)
13570 (install_menu_target_item_handler, mac_handle_dialog_event)
13571 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
13572 [TARGET_API_MAC_CARBON]: Likewise.
13573 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
13574 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
13575 (find_and_call_menu_selection, name_is_separator): Make function
13576 non-static.
13577 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
13578 to mactoolbox.c.
13579 (set_frame_menubar): Don't call install_menu_quit_handler.
13580 (menu_item_selection): New variable.
13581 (mac_menu_show): Use create_and_show_popup_menu.
13582 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
13583 selection but set variable menu_item_selection. All uses changed.
13584 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
13585 Call install_menu_quit_handler. Move to mactoolbox.c.
13586
13587 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
13588 (Selection): Move typedef to macgui.h.
13589 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
13590 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
13591 Make variables non-static.
13592 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
13593 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
13594 Make functions non-static.
13595 (Vmac_service_selection) [MAC_OSX]: Likewise.
13596 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
13597 (mac_valid_selection_target_p, mac_clear_selection)
13598 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
13599 (mac_put_selection_value, mac_selection_has_target_p)
13600 (mac_get_selection_value, mac_get_selection_target_list)
13601 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
13602 Move functions to mactoolbox.c.
13603 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
13604 Likewise.
13605 (copy_scrap_flavor_data, mac_handle_service_event)
13606 (install_service_handler) [MAC_OSX]: Likewise.
13607 (syms_of_macselect) <Vmac_dnd_known_types>:
13608 Use mac_dnd_default_known_types.
13609
13610 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
13611 Move to mactoolbox.c.
13612 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
13613 (Fx_selection_owner_p): Add EXFUN.
13614 (install_window_handler, remove_window_handler, XSetWindowBackground):
13615 Remove externs.
13616 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
13617 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
13618 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
13619 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
13620 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
13621 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
13622 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
13623 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
13624 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
13625 (create_and_show_popup_menu, mac_get_selection_from_symbol)
13626 (mac_valid_selection_target_p, mac_clear_selection)
13627 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
13628 (mac_put_selection_value, mac_selection_has_target_p)
13629 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
13630 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
13631 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
13632 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
13633 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
13634 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
13635 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
13636 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
13637 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
13638
13639 * mactoolbox.c: New file.
13640
13641 2008-04-18 Jason Rumney <jasonr@gnu.org>
13642
13643 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
13644
13645 2008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
13646
13647 * character.c (Fmultibyte_char_to_unibyte):
13648 Return latin1 chars unchanged.
13649
13650 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
13651 relocated if it points to `name'.
13652
13653 2008-04-17 Kenichi Handa <handa@m17n.org>
13654
13655 * data.c (Faset): Allow setting a multibyte character in an
13656 ASCII-only unibyte string.
13657
13658 * lisp.h (STRING_SET_MULTIBYTE): New macro.
13659
13660 2008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
13661
13662 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
13663 done in config.h.
13664
13665 2008-04-16 Juanma Barranquero <lekktu@gmail.com>
13666
13667 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
13668 (Fchar_direction): Add usage in the docstring.
13669
13670 2008-04-15 Chong Yidong <cyd@stupidchicken.com>
13671
13672 * keyboard.c (read_key_sequence): Remove always-true checks.
13673
13674 2008-04-14 Jason Rumney <jasonr@gnu.org>
13675
13676 * w32font.c (w32font_open_internal): Set max_bounds.descent in
13677 compatibility struct, for better underline positioning.
13678
13679 2008-04-13 David Hansen <david.hansen@gmx.net>
13680
13681 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
13682 string.
13683
13684 2008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
13685
13686 * m/hp800.h (XUINT, XSET): Remove.
13687
13688 2008-04-12 Juanma Barranquero <lekktu@gmail.com>
13689
13690 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
13691 previous change.
13692
13693 2008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
13694
13695 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
13696 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
13697
13698 2008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
13699
13700 * keymap.h (map_keymap_canonical): Declare.
13701 * xmenu.c (single_keymap_panes): Use it.
13702
13703 2008-04-11 Glenn Morris <rgm@gnu.org>
13704
13705 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
13706 set the target's value to that of the alias.
13707
13708 2008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
13709
13710 * term.c (set_tty_color_mode): Left over typo.
13711
13712 2008-04-10 Michael Albinus <michael.albinus@gmx.de>
13713
13714 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
13715 only after check for file name handler functions. Signal, when
13716 native functionality is not supported.
13717 (syms_of_fileio): Declare it unconditionally.
13718
13719 2008-04-10 Jason Rumney <jasonr@gnu.org>
13720
13721 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
13722 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
13723
13724 * w32.c (logon_network_drive): Also logon to remote drives that
13725 are mapped to drive letters.
13726
13727 2008-04-10 Glenn Morris <rgm@gnu.org>
13728
13729 * xdisp.c (truncate-partial-width-windows): Doc fix.
13730
13731 2008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
13732
13733 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
13734 Move functions to minibuffer.el.
13735 (syms_of_fileio): Don't declare them.
13736
13737 2008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
13738
13739 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
13740 (syms_of_minibuf): Remove its initialization.
13741
13742 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
13743
13744 2008-04-09 Juanma Barranquero <lekktu@gmail.com>
13745
13746 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
13747
13748 2008-04-09 Jason Rumney <jasonr@gnu.org>
13749
13750 * makefile.w32-in (distclean): Delete makefile too.
13751 (maintainer-clean): New target.
13752
13753 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
13754
13755 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
13756 for new font backend and composite cases.
13757
13758 2008-04-09 Jan Djärv <jan.h.d@swipnet.se>
13759
13760 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
13761 Most of the code moved to run_timers.
13762 (do_pending_atimers): Call run_timers.
13763 (run_timers): New function.
13764
13765 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
13766 run atimers.
13767
13768 * process.c (wait_reading_process_output): The same as above.
13769
13770 2008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
13771
13772 * minibuf.c (last_exact_completion): Remove variable.
13773 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
13774 (complete_and_exit_1, complete_and_exit_2)
13775 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
13776 (Fdisplay_completion_list, display_completion_list_1)
13777 (Fminibuffer_completion_help, Fself_insert_and_exit)
13778 (Fexit_minibuffer, Fminibuffer_message): Move functions to
13779 minibuffer.el.
13780 (syms_of_minibuf): Remove corresponding initializations.
13781
13782 * keyboard.c (Qdeactivate_mark): New var.
13783 (command_loop_1): Use it to call `deactivate-mark'.
13784 (syms_of_keyboard): Initialize it.
13785
13786 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
13787 to another frame.
13788 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
13789 Don't call set_tty_color_mode.
13790 (store_frame_param): Reset previous_frame rather than call
13791 set_tty_color_mode.
13792 * term.c (set_tty_color_mode): Rewrite.
13793 * dispextern.h (set_tty_color_mode): New type.
13794 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
13795
13796 2008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
13797
13798 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
13799 for generic chars, which do not exist any more in emacs-unicode.
13800
13801 2008-04-08 Michael Albinus <michael.albinus@gmx.de>
13802
13803 * coding.c (detect_coding_emacs_mule)
13804 (Ffind_operation_coding_system): Fix typo.
13805
13806 2008-04-08 Jason Rumney <jasonr@gnu.org>
13807
13808 * w32uniscribe.c (SNAME): Extract only symbol name.
13809
13810 * w32font.h (struct w32_metric_cache): New struct.
13811 (w32font_info): Use it.
13812 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
13813 (CACHE_BLOCKSIZE): New constants.
13814
13815 * w32font.c (Qja, Qko, Qzh): New symbols.
13816 (syms_of_w32font): Initialise them.
13817 (font_matches_spec): Use them to filter by language.
13818 (recompute_cached_metrics): Remove function.
13819 (compute_metrics, clear_cached_metrics): New functions.
13820 (w32font_encode_char): Use them to manage metric cache.
13821 (w32font_text_extents): Cache metrics for all glyphs on demand.
13822 Delay converting glyph indices to WORD until needed.
13823 (w32font_open_internal): Initialize metric cache to empty.
13824 (registry_to_w32_charset): Charset should always be a symbol.
13825 (fill_in_logfont, list_all_matching_fonts): Family should
13826 always be a symbol.
13827
13828 2008-04-06 Jason Rumney <jasonr@gnu.org>
13829
13830 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
13831 Give up if glyph indices not supported. Use uniscribe obtained
13832 ABC widths for individual metrics. Map glyph clusters back to
13833 characters using fClusterStart flag. Return number of glyphs
13834 produced, not chars processed.
13835 (uniscribe_shape): Map char at FROM to current glyph.
13836
13837 2008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13838
13839 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
13840 Use SetMenuItemHierarchicalMenu.
13841
13842 2008-04-05 Jason Rumney <jasonr@gnu.org>
13843
13844 * image.c (pbm_load): Allow color values up to 65535.
13845 Throw an error if max_color_idx is outside the supported range.
13846 Report an error when image size is invalid.
13847 Read two bytes at a time when raw images have max_color_idx above 255.
13848
13849 2008-04-05 Eli Zaretskii <eliz@gnu.org>
13850
13851 * w32.c (readdir): If FindFirstFile/FindNextFile return in
13852 cFileName a file name that includes `?' characters, use the 8+3
13853 alias in cAlternateFileName instead.
13854
13855 2008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
13856
13857 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
13858 append "CCL: Quitted" when the CCL program is quitted.
13859 (setup_ccl_program): Initialize ccl->quit_silently to zero.
13860
13861 * ccl.h (struct ccl_program): New member quit_silently.
13862
13863 2008-04-05 Chong Yidong <cyd@stupidchicken.com>
13864
13865 * search.c (compile_pattern_1): Treat non-nil and non-string of
13866 search-spaces-regexp as nil.
13867
13868 * minibuf.c (Fassoc_string): Tweak docstring.
13869
13870 2008-04-05 Eli Zaretskii <eliz@gnu.org>
13871
13872 * dired.c (Ffile_attributes): Support inode numbers wider than 32
13873 bits. Remove ugly WINDOWSNT-specific kludge introduced on
13874 2008-03-14 to force inode be positive.
13875
13876 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
13877 _S_* ones, since we now use our own sys/stat.h.
13878 (stat, fstat): Don't mangle the inode number.
13879 (init_user_info): Don't restrict UID and GID to 0-60000 range.
13880
13881 2008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
13882
13883 * frame.h (struct frame): Give one more bit to `visible' since we use
13884 values larger than 1 to indicate obscured frames on ttys.
13885
13886 * keymap.c (Qkeymap_canonicalize): New var.
13887 (Fmap_keymap_internal): New fun.
13888 (describe_map): Use keymap-canonicalize.
13889
13890 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
13891 (Fundo_boundary): Set them.
13892 (syms_of_undo): Initialize them.
13893 (record_point): Use them instead of last_point_position*.
13894 (last_undo_buffer): Change type.
13895
13896 2008-04-04 Jason Rumney <jasonr@gnu.org>
13897
13898 * w32font.c (w32font_text_extents): Use font's ascent and descent.
13899 (recompute_cached_metrics): Don't set ascent and descent per char.
13900
13901 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
13902 (uniscribe_check_otf): Add GC protection before consing.
13903 Rearrange loop for counting features.
13904
13905 2008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
13906
13907 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
13908 buffer with byte-size of source buffer.
13909
13910 2008-04-03 Chong Yidong <cyd@stupidchicken.com>
13911
13912 * callint.c (Fcall_interactively): Handle temporary region even
13913 when shift-select-mode is off.
13914
13915 2008-04-03 Jason Rumney <jasonr@gnu.org>
13916
13917 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
13918
13919 2008-04-03 Kenichi Handa <handa@m17n.org>
13920
13921 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
13922 (CATEGORY_MASK_UTF_16): Likewise.
13923 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
13924 binary file.
13925 (detect_coding): Add null-byte detection for a binary file.
13926 (detect_coding_system): Likewise.
13927
13928 2008-04-03 Jason Rumney <jasonr@gnu.org>
13929
13930 * w32uniscribe.c: New file.
13931
13932 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
13933
13934 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
13935
13936 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
13937 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
13938 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
13939 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
13940 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
13941 (Qphonetic): New symbols.
13942 (syms_of_w32font): Initialize them.
13943 (font_supported_scripts): Use them.
13944 (w32font_list_family): List all charsets.
13945 (w32font_text_extents, recompute_cached_metrics): Fix metric
13946 calculations.
13947 (w32_enumfont_pattern_entity): Make full_type a DWORD.
13948 Give opentype fonts their own format.
13949 (font_matches_spec): New arguments backend and logfont.
13950 Handle :otf spec for uniscribe backend.
13951 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
13952 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
13953
13954 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
13955 font backend.
13956 (globals_of_w32fns): Initialize uniscribe font backend.
13957
13958 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
13959 dependencies.
13960 (w32uniscribe.$(O)): New file to build.
13961 (FONT_OBJ): Include w32uniscribe.$(O).
13962 (LIBS): Add uniscribe libraries.
13963
13964 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
13965
13966 2008-04-02 Chong Yidong <cyd@stupidchicken.com>
13967
13968 * callint.c (Vshift_select_mode): New var.
13969 (Finteractive): Document new ^ spec.
13970 (Fcall_interactively): Call handle-shift-selection if the ^ spec
13971 is present.
13972
13973 * keyboard.c (Vthis_command_keys_shift_translated): New var.
13974 (command_loop_1): Avoid running the direct display versions of
13975 forward-char and backward-char if shift-selection may occur.
13976 (read_key_sequence): Set Vthis_command_keys_shift_translated if
13977 shift-translation takes place.
13978
13979 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
13980 avoid clobbering by define-minor-mode.
13981
13982 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
13983 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
13984
13985 * syntax.c (Fforward_word): Add ^ interactive spec.
13986
13987 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
13988 (Fscroll_right): Add ^ interactive spec.
13989
13990 2008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
13991
13992 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
13993
13994 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
13995
13996 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
13997
13998 2008-03-31 Juri Linkov <juri@jurta.org>
13999
14000 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
14001
14002 2008-03-30 Jan Djärv <jan.h.d@swipnet.se>
14003
14004 * gtkutil.c (xg_set_geometry): Fix indentation.
14005 (xg_resize_outer_widget): Remove.
14006 (x_wm_size_hint_off): Fix indentation.
14007 (xg_frame_set_char_size): Call flush_and_sync after
14008 gtk_window_resize.
14009 (x_wm_set_size_hint): Pass NULL as geometry window to
14010 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
14011 Add menu bar and tool bar height to base height.
14012 (xg_update_frame_menubar, free_frame_menubar)
14013 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
14014 (update_frame_tool_bar, free_frame_tool_bar):
14015 Change xg_resize_outer_widget to xg_frame_set_char_size.
14016
14017 2008-03-30 Michael Albinus <michael.albinus@gmx.de>
14018
14019 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
14020 (Fdbus_call_method): New parameter TIMEOUT.
14021 (dbus-send-signal): Optimize UNGCPRO call.
14022
14023 2008-03-29 Juri Linkov <juri@jurta.org>
14024
14025 * window.c (Fdisplay_buffer): Move call to
14026 Vsplit_window_preferred_function out of conditions that check
14027 if window is eligible for vertical splitting.
14028 When Vsplit_window_preferred_function is non-nil, call it and use
14029 its non-nil return value as window. Otherwise, continue doing
14030 vertical splitting using Fsplit_window with arg horflag=nil.
14031 (syms_of_window) <Vsplit_window_preferred_function>: Change the
14032 default value from `split-window' to nil.
14033
14034 2008-03-29 Juri Linkov <juri@jurta.org>
14035
14036 * callint.c (Fcall_interactively): Revert 2008-03-16 change
14037 for interactive code letters 'b' and 'B'.
14038
14039 2008-03-29 Eli Zaretskii <eliz@gnu.org>
14040
14041 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
14042 multibyte string.
14043
14044 2008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
14045
14046 * keyboard.c (pending_funcalls): New var.
14047 (timer_check): Run it.
14048 (syms_of_keyboard): Initialize it.
14049 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
14050 (Vdelete_terminal_functions): New vars.
14051 (syms_of_terminal): Initialize them.
14052 (Fdelete_terminal): Run delete-terminal-functions.
14053 * xdisp.c (safe_eval): Rewrite.
14054 (safe_call2): New fun.
14055 * frame.c (Qdelete_frame_functions): New var.
14056 (syms_of_frame): Initialize it.
14057 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
14058 * lisp.h (safe_call2, pending_funcalls): Declare.
14059
14060 2008-03-28 Andreas Schwab <schwab@suse.de>
14061
14062 * indent.c (Fmove_to_column): Move declaration before statements.
14063
14064 2008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
14065
14066 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
14067 (struct frame): Use bit fields for boolean vars.
14068
14069 * process.c (server_accept_connection): Simplify naming.
14070 (emacs_get_tty_pgrp): Use SDATA.
14071
14072 * coding.c (decode_coding_object): Fix last change.
14073
14074 2008-03-27 Jason Rumney <jasonr@gnu.org>
14075
14076 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
14077
14078 2008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
14079
14080 * charset.c (Fdefine_charset_internal): Change the way of
14081 registering charsets in Vcharset_order_list.
14082 (syms_of_charset): Make the charset `eight-bit' supplementary.
14083
14084 2008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
14085
14086 * regex.c (EXTEND_BUFFER): Change order of pointer addition
14087 operations, to avoid having the difference between pointers
14088 overflow.
14089
14090 2008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
14091
14092 * indent.c (check_display_width): New fun.
14093 (scan_for_column): Use it.
14094
14095 * data.c (syms_of_data): Mark most-positive-fixnum and
14096 most-negative-fixnum as constants.
14097
14098 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
14099
14100 * indent.c (scan_for_column): Extract from current_column_1.
14101 Merge with the same code from Fmove_to_column.
14102 (current_column_1, Fmove_to_column): Use it.
14103
14104 2008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
14105
14106 * keymap.c (map_keymap_internal): New fun.
14107 (map_keymap): Use it.
14108 (Fmap_keymap_internal): New fun.
14109 (Fmap_keymap): Remove left-out test from before make_save_value.
14110
14111 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
14112
14113 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
14114 Use XCAR/XCDR.
14115
14116 * process.h (struct Lisp_Process): Remove filter_multibyte.
14117 * process.c (QCfilter_multibyte): Remove.
14118 (setup_process_coding_systems): Don't use filter_multibyte.
14119 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
14120 (read_process_output): Don't adjust multibyteness to filter_multibyte.
14121 (Fset_process_filter_multibyte): Change the coding-system to
14122 approximate the previous behavior.
14123 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
14124 coding-system.
14125
14126 * coding.c (decode_coding_object): When not decoding into a buffer,
14127 obey the coding system's preference of (uni|multi)byte.
14128
14129 2008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
14130
14131 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
14132 every char is changed and has a different byte-length.
14133 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
14134 Fix int -> EMACS_INT.
14135
14136 2008-03-23 David Hansen <david.hansen@gmx.net>
14137
14138 * dbusbind.c (xd_read_message): Remove extra copying of message
14139 strings. Check for NULL `interface' or `member'.
14140
14141 2008-03-22 Eli Zaretskii <eliz@gnu.org>
14142
14143 * w32.c (readdir): If FindFirstFile/FindNextFile return in
14144 cFileName a file name that includes `?' characters, use the 8+3
14145 alias in cAlternateFileName instead.
14146
14147 2008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
14148
14149 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
14150
14151 2008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
14152
14153 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
14154 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
14155 work on current_buffer only instead (that was already the case
14156 for some of the code anyway).
14157 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
14158 (temp_set_point, temp_set_point_both): Use EMACS_INT.
14159 (SET_PT, SET_PT_BOTH): Adjust.
14160 * intervals.h (set_point, temp_set_point, set_point_both)
14161 (temp_set_point_both): Remove redundant declarations.
14162
14163 2008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
14164
14165 * fileio.c (Finsert_file_contents):
14166 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
14167 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
14168 when buffer != current_buffer anyway.
14169
14170 2008-03-20 Andreas Schwab <schwab@suse.de>
14171
14172 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
14173 as default.
14174
14175 2008-03-19 Jason Rumney <jasonr@gnu.org>
14176
14177 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
14178 (syms_of_w32fns): Initialize them.
14179 (HOURGLASS_ID): New constant.
14180 (x_window_to_frame): Don't check hourglass_window.
14181 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
14182 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
14183 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
14184 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
14185 Only change the cursor if hourglass is not active.
14186 (Fx_create_frame): Initialize frame's current_cursor.
14187 (hourglass_atimer): Remove.
14188 (hourglass_started): New function.
14189 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
14190 (show_hourglass): Adapt to w32, changing argument to frame.
14191
14192 * w32term.h (struct w32_output): Remove hourglass_window.
14193 Add current_cursor.
14194
14195 * eval.c (call_debugger, Fsignal):
14196 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
14197 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
14198 (Fexecute_extended_command, cancel_hourglass_unwind):
14199 * minibuf.c (read_minibuf):
14200 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
14201
14202 2008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
14203
14204 * window.c (run_funs): New fun.
14205 (run_window_configuration_change_hook): Use it to run the buffer-local
14206 and the global part of the hook.
14207
14208 * xdisp.c (format_mode_line_unwind_data): Add window argument.
14209 (unwind_format_mode_line): Restore selected window.
14210 (x_consider_frame_title, Fformat_mode_line): Set selected window.
14211
14212 2008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
14213
14214 * editfns.c (Fchar_equal): Check they are valid characters.
14215
14216 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
14217
14218 2008-03-17 Andreas Schwab <schwab@suse.de>
14219
14220 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
14221 against a charset.
14222
14223 * lisp.h (Fbuffer_list): Declare.
14224
14225 2008-03-17 Jan Djärv <jan.h.d@swipnet.se>
14226
14227 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
14228 handlebox_widget is != 0.
14229
14230 2008-03-16 Juri Linkov <juri@jurta.org>
14231
14232 * callint.c (Fcall_interactively): For interactive code letters
14233 'b' and 'B' put the buffer list into the list of default "future"
14234 values of the minibuffer.
14235
14236 2008-03-16 Andreas Schwab <schwab@suse.de>
14237
14238 * keyboard.c (read_key_sequence): Fix downcasing of letters with
14239 modifiers.
14240
14241 * regex.c (re_match_2_internal): Correct matching of a charset
14242 against latin-1 characters.
14243
14244 2008-03-16 Kenichi Handa <handa@m17n.org>
14245
14246 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
14247 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
14248 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
14249 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
14250 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
14251 CHAR_STRING_ADVANCE.
14252 (produce_chars): Fix for the case that the source and the
14253 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
14254 instead of CHAR_STRING_ADVANCE.
14255 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
14256 STRING_CHAR_ADVANCE.
14257
14258 2008-03-15 Andreas Schwab <schwab@suse.de>
14259
14260 * regex.c (re_match_2_internal): Correct matching of eight bit
14261 characters in unibyte strings.
14262
14263 2008-03-15 Martin Rudalics <rudalics@gmx.at>
14264
14265 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
14266 at end of range when it coincides with the end of the buffer.
14267
14268 2008-03-14 Eli Zaretskii <eliz@gnu.org>
14269
14270 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
14271
14272 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
14273
14274 2008-03-14 Jason Rumney <jasonr@gnu.org>
14275
14276 * editfns.c (initial_tz): New variable.
14277 (syms_of_editfns): Initialize it.
14278 (Fset_time_zone_rule): Set it when first called.
14279 Use it when TZSTRING is nil.
14280
14281 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
14282 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
14283 (monitor_from_point_fn, get_monitor_info_fn): New globals.
14284 (globals_of_w32fns): Initialize them.
14285 (compute_tip_xy): Use them to position tooltips.
14286
14287 2008-03-14 Glenn Morris <rgm@gnu.org>
14288
14289 * emacs.c (main): Revert previous change.
14290 (standard_args): Revert -internal-script back to -scriptload,
14291 and remove the long-option form.
14292
14293 2008-03-13 Glenn Morris <rgm@gnu.org>
14294
14295 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
14296 Remove option -enable-font-backend.
14297
14298 2008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
14299
14300 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
14301
14302 2008-03-11 Jan Djärv <jan.h.d@swipnet.se>
14303
14304 * xterm.c (x_connection_closed): For GTK: If this is the last
14305 terminal just exit without closing the display.
14306
14307 2008-03-11 Jason Rumney <jasonr@gnu.org>
14308
14309 * w32font.c (w32font_full_name): Use floor to round.
14310
14311 2008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
14312
14313 * sound.c (alsa_configure): Declare vol at beginning of block.
14314
14315 * fontset.c (Ffontset_info): Remove extra semicolon.
14316
14317 2008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
14318
14319 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
14320 size of resulting string.
14321
14322 2008-03-10 Jason Rumney <jasonr@gnu.org>
14323
14324 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
14325
14326 2008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14327
14328 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
14329 Don't pretend as if characters with display property haven't been
14330 consumed for string-replacing-string case.
14331
14332 2008-03-08 Kim F. Storm <storm@cua.dk>
14333
14334 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
14335 (get_next_display_element, next_element_from_string)
14336 (next_element_from_ellipsis, next_element_from_buffer): Use it.
14337
14338 2008-03-08 Andreas Schwab <schwab@suse.de>
14339
14340 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
14341
14342 2008-03-06 Jason Rumney <jasonr@gnu.org>
14343
14344 * w32font.c (w32_registry): Take font_type argument. Use ANSI
14345 when charset not specified. Only translate ANSI to unicode when
14346 font_type is truetype.
14347 (w32font_coverage_ok): New function.
14348 (add_font_entity_to_list): Use it to filter unsuitable fonts.
14349
14350 2008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
14351
14352 * lread.c (Fread_char): Resolve modifiers.
14353 (Fread_char_exclusive): Likewise.
14354
14355 * character.c (char_resolve_modifier_mask): New function.
14356 (char_string): Use char_resolve_modifier_mask.
14357 (Fchar_resolve_modifiers): New function.
14358 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
14359 function.
14360
14361 2008-03-04 Jason Rumney <jasonr@gnu.org>
14362
14363 * makefile.w32-in: Always include w32font.c in the build.
14364 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
14365
14366 2008-03-04 Andreas Schwab <schwab@suse.de>
14367
14368 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
14369 (versionclean): Likewise.
14370
14371 2008-03-04 Juanma Barranquero <lekktu@gmail.com>
14372
14373 * .cvsignore: Add oo.
14374
14375 2008-03-03 Andreas Schwab <schwab@suse.de>
14376
14377 * coding.c (decode_coding_object): Inhibit gap shrinking while
14378 decoding in place.
14379
14380 2008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
14381
14382 * w32term.c: Remove unused include "gnu.h".
14383 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
14384
14385 * gnu.h: Rename to ...
14386 * emacs-icon.h: ... this.
14387 * xterm.c: Use emacs-icon.h instead of gnu.h.
14388 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
14389
14390 2008-03-03 Juanma Barranquero <lekktu@gmail.com>
14391
14392 * w32font.c: Include math.h.
14393
14394 2008-03-03 Jason Rumney <jasonr@gnu.org>
14395
14396 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
14397 Compute options separately.
14398 (w32font_open_internal): Set glyph_idx before caching metrics.
14399
14400 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
14401 Define if system headers don't.
14402 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
14403 (w32font_encode_char): Don't declare here.
14404
14405 * w32font.c (Quniscribe, QCformat): New symbols.
14406 (syms_of_w32font): Define them.
14407 (w32font_has_char): Indicate uncertainty.
14408 (w32font_encode_char): Encode as glyph point. Make static.
14409 (recompute_cached_metrics): New function.
14410 (w32font_open_internal): Use it. Set font to use glyph points
14411 initially. Set format based on type of font.
14412 (w32font_text_extents, w32font_draw): Optionally use glyph points.
14413 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
14414 on it. Set format based on information available here.
14415 (add_font_entity_to_list): Identify backend based on opentype_only.
14416
14417 2008-03-02 Andreas Schwab <schwab@suse.de>
14418
14419 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
14420
14421 * coding.c (decode_coding_big5, produce_chars):
14422 Fix typos in last change.
14423
14424 2008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
14425
14426 * gnu.h: New icon.
14427
14428 2008-03-02 Kenichi Handa <handa@m17n.org>
14429
14430 * coding.c (decode_coding_utf_8): When eol-type of CODING is
14431 `dos', don't decode '\r' if that is the last in the source.
14432 (decode_coding_utf_16, decode_coding_emacs_mule)
14433 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
14434 (decode_coding_raw_text, decode_coding_charset): Likewise.
14435 (produce_chars): Don't decode EOL here. Use EMACS_INT.
14436
14437 2008-03-01 Jason Rumney <jasonr@gnu.org>
14438
14439 * w32font.c (w32font_full_name): Report point size for scalable fonts.
14440
14441 2008-03-01 Kim F. Storm <storm@cua.dk>
14442
14443 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
14444
14445 2008-03-01 Jason Rumney <jasonr@gnu.org>
14446
14447 * w32font.c (w32font_full_name): New function.
14448 (w32font_open_internal): Use it.
14449
14450 2008-03-01 Kim F. Storm <storm@cua.dk>
14451
14452 * dispnew.c (line_draw_cost): Fix invalid glyph check.
14453
14454 2008-03-01 Jason Rumney <jasonr@gnu.org>
14455
14456 * font.c (font_unparse_fcname): Increase len when style is a symbol.
14457
14458 2008-03-01 Jan Djärv <jan.h.d@swipnet.se>
14459
14460 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
14461 xg_frame_resized when the event is for the edit widget.
14462
14463 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
14464
14465 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
14466 set_char_size.
14467 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
14468 operations on widgets here. Just set frame size if needed.
14469 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
14470 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
14471 (x_wm_set_size_hint): Set size hints on the edit widget only, not
14472 the whole frame.
14473 (xg_create_tool_bar): Move attachment of the tool bar to
14474 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
14475 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
14476
14477 2008-03-01 Jason Rumney <jasonr@gnu.org>
14478
14479 * w32fns.c (w32_msg_pump): Disable debug code.
14480
14481 2008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14482
14483 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
14484
14485 2008-02-29 Chong Yidong <cyd@stupidchicken.com>
14486
14487 * xdisp.c (next_overlay_string): Don't set
14488 overlay_strings_at_end_processed_p if we're currently reading from
14489 a display string.
14490
14491 2008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
14492
14493 * xdisp.c (get_overlay_strings_1): Fix typo.
14494
14495 2008-02-29 Chong Yidong <cyd@stupidchicken.com>
14496
14497 * xdisp.c (get_overlay_strings_1): Add missing argument type.
14498
14499 2008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
14500
14501 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
14502
14503 * xdisp.c (display_mode_element): Cancel the previous change.
14504 (decode_mode_spec): Likewise.
14505 (handle_auto_composed_prop): Don't make composition if it->string
14506 is a string.
14507
14508 2008-02-27 Kim F. Storm <storm@cua.dk>
14509
14510 * lisp.h (GLYPH): Change type from int to struct with separate char
14511 and face_id members.
14512 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
14513 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
14514 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
14515 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
14516 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
14517 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
14518 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
14519 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
14520 handle new Lisp glyph code encoding, either an integer or a cons.
14521
14522 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
14523 (GLYPH_ALIAS): Delete.
14524 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
14525 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
14526 (GLYPH_FROM_CHAR): Replace macro by ...
14527 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
14528
14529 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
14530 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
14531 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
14532 (GLYPH_INVALID_P): New macro.
14533 (spec_glyph_lookup_face): Update prototype.
14534
14535 * dispnew.c (line_draw_cost): Adapt to new glyph type.
14536 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
14537 new glyph code encoding.
14538 (spec_glyph_lookup_face): No return value; update passed glyph instead.
14539 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
14540
14541 * xdisp.c (get_next_display_element, next_element_from_display_vector):
14542 Adapt to new glyph type and new glyph code encoding.
14543
14544 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
14545
14546 * indent.c (current_column, current_column_1, Fmove_to_column)
14547 (compute_motion): Adapt to new glyph code encoding.
14548
14549 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
14550
14551 2008-02-27 Chong Yidong <cyd@stupidchicken.com>
14552
14553 * process.c (wait_reading_process_output): Check for window
14554 changes caused by timers.
14555 Suggested by Johan Bockgård.
14556
14557 2008-02-27 Glenn Morris <rgm@gnu.org>
14558
14559 * emacs.c (USAGE1): Add `--disable-font-backend'.
14560
14561 2008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
14562
14563 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
14564 is made to the buffer.
14565
14566 2008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
14567
14568 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
14569 (face_at_string_position):
14570 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
14571 (face_at_string_position):
14572 * xdisp.c (display_string, next_overlay_change):
14573 * buffer.h (overlays_at):
14574 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
14575 Update callers.
14576
14577 2008-02-26 Chong Yidong <cyd@stupidchicken.com>
14578
14579 * editfns.c (Fformat): Doc fix.
14580
14581 2008-02-26 Juanma Barranquero <lekktu@gmail.com>
14582
14583 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
14584 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
14585 (Ffont_otf_alternates, Fquery_font): Doc fixes.
14586
14587 2008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
14588
14589 * buffer.c (Fbuffer_swap_text): New function.
14590 (syms_of_buffer): Defsubr it.
14591
14592 2008-02-25 Chong Yidong <cyd@stupidchicken.com>
14593
14594 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
14595
14596 2008-02-25 Jason Rumney <jasonr@gnu.org>
14597
14598 * w32font.c (w32font_draw): Draw one character at a time when padding.
14599
14600 2008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
14601
14602 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
14603 Handle a nil arg. Use run_window_configuration_change_hook.
14604 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
14605 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
14606 Use run_window_configuration_change_hook.
14607
14608 2008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
14609
14610 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
14611 1-pixel width.
14612
14613 2008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
14614
14615 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
14616 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
14617 if the glyph in the font is zero pixel with.
14618
14619 * dispextern.h (struct glyph_string): New member padding_p.
14620
14621 * w32font.c (w32font_draw): Pay attention to s->padding_p.
14622
14623 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
14624
14625 * xfont.c (xfont_draw): Pay attention to s->padding_p.
14626
14627 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
14628
14629 * font.c: If the font driver doesn't have `shape' function, return Qnil.
14630
14631 2008-02-25 Jason Rumney <jasonr@gnu.org>
14632
14633 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
14634
14635 2008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
14636
14637 Allow fine-grained image-cache flushing.
14638 * dispextern.h (struct image): Add `dependencies' field.
14639 (clear_image_caches): Change arg to Lisp_Object.
14640 * image.c (make_image): Initialize `dependencies' field.
14641 (clear_image_cache): Change arg to allow fine-grained flushing.
14642 Perform the flush even if image-cache-eviction-delay is nil.
14643 (clear_image_caches): Change arg to Lisp_Object.
14644 (Fclear_image_cache): Expand meaning of the argument.
14645 (mark_image): Mark `dependencies' field.
14646 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
14647 (lface_hash): Use XHASH rather than XFASTINT.
14648 (face_at_buffer_position): Fix int -> EMACS_INT position.
14649 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
14650 (select_frame_for_redisplay): Remove code duplication.
14651 (redisplay_internal): Adapt arg to call to clear_image_caches.
14652
14653 2008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
14654
14655 * s/vms4-0.h:
14656 * s/vms4-2.h:
14657 * s/vms4-4.h:
14658 * s/vms5-5.h: Remove, unused.
14659
14660 * s/irix5-2.h:
14661 * s/irix6-0.h:
14662 * s/riscos5.h:
14663 * s/mach-bsd4-3.h:
14664 * m/mips4.h: Remove files for obsolete systems.
14665
14666 * Makefile.in:
14667 * filelock.c:
14668 * unexmips.c:
14669 * m/hp9000s300.h:
14670 * m/iris4d.h:
14671 * s/aix3-1.h:
14672 * s/hpux.h:
14673 * s/msdos.h:
14674 * s/usg5-0.h:
14675 * s/usg5-2-2.h:
14676 * s/usg5-2.h:
14677 * s/usg5-3.h: Remove references to obsolete variables.
14678
14679 * s/irix5-0.h: Remove, move all the contents ...
14680 * s/irix6-5.h: ... here. Simplify.
14681 * config.in: Regenerate.
14682
14683 2008-02-24 Jason Rumney <jasonr@gnu.org>
14684
14685 * w32term.c (x_draw_glyph_string_background): Clear the background
14686 manually when cleartype is in use.
14687 (x_draw_glyph_string_foreground): Draw text transparently when
14688 cleartype is in use.
14689
14690 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
14691 a font into it unless we have to.
14692
14693 2008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
14694
14695 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
14696 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
14697
14698 2008-02-18 Jason Rumney <jasonr@gnu.org>
14699
14700 * w32fns.c (Fw32_shell_execute): Encode parameters.
14701
14702 2008-02-09 Eli Zaretskii <eliz@gnu.org>
14703
14704 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
14705
14706 2008-02-05 Juanma Barranquero <lekktu@gmail.com>
14707
14708 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
14709
14710 2008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
14711
14712 * xterm.c (x_set_offset): Don't change the gravity if
14713 CHANGE_GRAVITY is -1.
14714
14715 2008-02-23 Chong Yidong <cyd@stupidchicken.com>
14716
14717 * fileio.c (auto_save_error_occurred): New var.
14718 (auto_save_error): Set it.
14719 (Fdo_auto_save): Don't overwrite the error message if an auto-save
14720 error occurred.
14721
14722 2008-02-23 Eli Zaretskii <eliz@gnu.org>
14723
14724 * w32.c (globals_of_w32): Add initializations for
14725 g_b_init_get_sid_sub_authority and
14726 g_b_init_get_sid_sub_authority_count.
14727
14728 2008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
14729
14730 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
14731 (font_parse_xlfd): Use them for sanity check.
14732 (Finternal_set_font_style_table): Make sure the table is bijective.
14733
14734 Consolidate the image_cache to the terminal struct.
14735 * termhooks.h (P_): Remove redundant def.
14736 (struct terminal): New field `image_cache'.
14737 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
14738 of FRAME_X_IMAGE_CACHE.
14739 * xterm.h (struct x_display_info): Remove image_cache field.
14740 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
14741 * w32term.h (struct w32_display_info): Remove image_cache field.
14742 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
14743 * macterm.h (struct mac_display_info): Remove image_cache field.
14744 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
14745 * xterm.c (x_term_init):
14746 * w32term.c (w32_term_init):
14747 * macterm.c (mac_term_init): Set the image_cache in the terminal.
14748 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
14749 Remove declarations.
14750 (clear_image_caches, mark_image_cache): New declarations.
14751 * xfaces.c (clear_face_cache):
14752 * xdisp.c (redisplay_internal): Use clear_image_caches.
14753 * image.c (clear_image_cache): Don't check that a frame is on
14754 a window-system before checking if it shares the same cache.
14755 (clear_image_caches): New function.
14756 (Fclear_image_cache): Use it.
14757 (mark_image): Move from allo.c.
14758 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
14759 * alloc.c (mark_image, mark_image_cache): Move to image.c.
14760 (mark_object): Don't call mark_image_cache for frames.
14761 (mark_terminals): Call mark_image_cache.
14762
14763 * lisp.h (Fdelete_terminal): Declare.
14764
14765 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
14766 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
14767 wrong_type_argument.
14768
14769 2008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
14770
14771 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
14772 malayalam.el, and tamil.el. Add sinhala.el.
14773
14774 2008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
14775
14776 * xterm.c (x_connection_closed): Consolidate identical tests.
14777 (x_delete_terminal): Don't crash if called via x_connection_closed.
14778
14779 2008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
14780
14781 * xdisp.c (decode_mode_spec): New arg string.
14782 (display_mode_element): Adjust for the above change.
14783
14784 2008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
14785
14786 * callint.c (Fcall_interactively): Use AREF.
14787
14788 2008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
14789
14790 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
14791
14792 2008-02-18 Jan Djärv <jan.h.d@swipnet.se>
14793
14794 * xfns.c (Fx_show_tip): Set string to " " if empty.
14795
14796 2008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
14797
14798 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
14799 with Qt.
14800
14801 2008-02-17 Kenichi Handa <handa@m17n.org>
14802
14803 * ftfont.c (ftfont_shape): Return Lispy number.
14804
14805 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
14806 for GCs.
14807 (Finternal_set_font_selection_order): Call font_update_sort_order
14808 only when enable_font_backend is set.
14809 (realize_x_face): Set face->font_info to that of default face only
14810 when enable_font_backend is set.
14811
14812 * xdisp.c (handle_composition_prop): Set it->c to the fist
14813 character of the composed region.
14814 (fill_composite_glyph_string): Set base_face->font_info to
14815 s->font_info. Get a face for ascii from base_face->ascii_face.
14816 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
14817 with a face already decided.
14818 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
14819 non-negative.
14820 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
14821 call font_prepare_composition unconditionally.
14822
14823 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
14824
14825 * xterm.h (struct x_display_info): New member font.
14826
14827 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
14828 (x_set_mouse_face_gc, x_new_font): Likewise.
14829 (x_term_init): Setup display_info->font.
14830 (x_delete_terminal): Free display_info->font.
14831
14832 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
14833
14834 * ftxfont.c (ftxfont_default_fid): Delete it.
14835 (ftxfont_open): Set xfont->fid to 0.
14836 (ftxfont_end_for_frame): Clear data specific to the frame and the
14837 font-driver.
14838
14839 * xftfont.c (xftfont_default_fid): Delete it.
14840 (xftfont_open): Set xfont->fid to 0.
14841
14842 * fontset.c (FONTSET_OBJLIST): New macro.
14843 (fontset_find_font): Update font-object list of the fontset.
14844 (free_realized_fontset): New function.
14845 (free_face_fontset): Call free_realized_fontset.
14846 (Ffont_info): Call font_close_object only when enable_font_backend
14847 is set.
14848
14849 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
14850 [HAVE_NTGUI]: Include w32term.h.
14851 [MAC_OS]: Include macterm.ch.
14852 (font_otf_ValueRecord): Use make_number.
14853 (font_finish_cache): Fix handling of reference count.
14854 (font_clear_cache): Update num_fonts.
14855 (font_open_entity): Update smallest_char_width and
14856 smallest_font_height of the frame.
14857 (font_close_object): Update num_fonts.
14858 (Fclear_font_cache): Fix finding the target cache data.
14859
14860 2008-02-16 Glenn Morris <rgm@gnu.org>
14861
14862 * fontset.c (Finternal_char_font): Fix compilation warning.
14863
14864 2008-02-16 Eli Zaretskii <eliz@gnu.org>
14865
14866 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
14867 instead of char arrays. Enlarge the size of array passed to
14868 get_token_information.
14869
14870 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
14871 warnings.
14872
14873 2008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
14874
14875 * .gdbinit: Don't set `args', it breaks gdb --args.
14876
14877 2008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
14878
14879 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
14880 within a narrowed buffer.
14881
14882 2008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
14883
14884 * coding.c (decode_coding_object, encode_coding_object):
14885 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
14886
14887 2008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
14888
14889 * coding.c (coding_set_destination): Use BEG_BYTE rather than
14890 hardcoding 1.
14891 (detect_coding_system):
14892 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
14893 (string_char_to_byte, string_byte_to_char, insert_from_gap):
14894 * insdel.c (insert_from_gap):
14895 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
14896 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
14897 (string_to_multibyte):
14898 * character.c (chars_in_text, multibyte_chars_in_text):
14899 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
14900
14901 * character.h (FETCH_STRING_CHAR_ADVANCE)
14902 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
14903 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
14904 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
14905
14906 * casefiddle.c (casify_region): Only call after-change and composition
14907 functions on the part of the region that was changed.
14908
14909 * keyboard.c (read_avail_input):
14910 * frame.c (Fdelete_frame): Call Fdelete_terminal.
14911
14912 2008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
14913
14914 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
14915 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
14916
14917 2008-02-11 Juanma Barranquero <lekktu@gmail.com>
14918
14919 * w32menu.c (push_submenu_start, push_submenu_end)
14920 (push_left_right_boundary, push_menu_pane, push_menu_item):
14921 * keyboard.c (read_key_sequence): Don't pass args with side effects
14922 to AREF, it fails when compiling with -DENABLE_CHECKING.
14923
14924 2008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
14925
14926 * Makefile.in (${lispsource}international/charprop.el):
14927 Delete this target.
14928
14929 * search.c (boyer_moore): Fix incorrect synching of the trunk and
14930 emacs-unicode-2.
14931
14932 2008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
14933
14934 * terminal.c (Fdelete_terminal): Clean up the `force' path.
14935
14936 2008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
14937
14938 * frame.c (Qnoelisp): New symbol.
14939 (syms_of_frame): Initialize it.
14940 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
14941 harmless Elisp code, from a strong `force' from x_connection_closed.
14942 * frame.h (Qnoelisp): Declare.
14943 * xterm.c (x_connection_closed): Pass `noelisp'.
14944
14945 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
14946 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
14947 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
14948 rather than `int' for the type of `type'.
14949
14950 2008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
14951
14952 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
14953
14954 * Makefile.in (GNUC): Remove support for gcc-1.x.
14955
14956 2008-02-10 Richard Stallman <rms@gnu.org>
14957
14958 * lisp.h (ASET): Use AREF, not ASLOT.
14959
14960 2008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
14961
14962 * lisp.h (ASET): Check bounds.
14963
14964 2008-02-10 Glenn Morris <rgm@gnu.org>
14965
14966 * buffer.c (mode-name): Doc fix.
14967
14968 2008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
14969
14970 * Makefile.in:
14971 * emacs.c:
14972 * gmalloc.c:
14973 * keyboard.c:
14974 * lisp.h:
14975 * m/ibm370aix.h:
14976 * process.c:
14977 * regex.c:
14978 * s/hpux.h:
14979 * sysdep.c:
14980 * sysselect.h:
14981 * systty.h:
14982 * unexec.c:
14983 * w32term.c:
14984 * xsmfns.c:
14985 * xterm.c: Remove code that deals with obsolete variables.
14986
14987 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
14988
14989 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
14990 nothing else needs it anymore.
14991
14992 2008-02-09 Eli Zaretskii <eliz@gnu.org>
14993
14994 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
14995 instead of unibyte_char_to_multibyte.
14996
14997 2008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
14998
14999 * s/gnu-linux.h: Remove commented out code.
15000
15001 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
15002
15003 * Makefile.in: Update what RMS says about using autoconf.
15004 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
15005 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
15006 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
15007 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
15008
15009 2008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
15010
15011 * keymap.c (Fkey_description): Move side effect outside of macro call.
15012
15013 * xfaces.c (Finternal_make_lisp_face):
15014 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
15015
15016 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
15017 (syms_of_fontset): Use ASET.
15018
15019 * fns.c (concat): Move side effect outside of macro call.
15020 (hash_clear): Use ASET.
15021
15022 2008-02-08 Richard Stallman <rms@gnu.org>
15023
15024 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
15025 If FORCE, and frame has a surrogate minibuffer for another frame,
15026 delete the other frame first.
15027
15028 2008-02-07 Timo Savola <timo.savola@iki.fi>
15029
15030 * xterm.c (x_detect_focus_change): Handle embed client message.
15031 (handle_one_xevent): Ditto.
15032 (handle_one_xevent): If embedded and we get a button press/release,
15033 request focus.
15034 (xembed_set_info, xembed_send_message): New functions.
15035 (x_make_frame_visible): Call xembed_set_info if embedded.
15036 (x_make_frame_invisible): Call xembed_set_info if embedded.
15037 (x_term_init): Initialize Xatom_XEMBED.
15038 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
15039 (x_iconify_frame): Ditto.
15040
15041 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
15042 (enum xembed_info, enum xembed_message, enum xembed_focus)
15043 (enum xembed_modifier, enum xembed_accelerator): New.
15044 (xembed_set_info, xembed_send_message): Declare.
15045 (FRAME_X_EMBEDDED_P): New.
15046
15047 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
15048 gtk_plug_new.
15049
15050 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
15051 window ID of a frame.
15052 (x_window): Reparent frame if embedded.
15053 (Fx_create_frame): Don't set border width if embedded.
15054
15055 * emacs.c (USAGE3): Add --parent-id.
15056 (standard_args): Ditto.
15057
15058 2008-02-07 Jan Djärv <jan.h.d@swipnet.se>
15059
15060 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
15061
15062 2008-02-07 Jim Meyering <meyering@redhat.com>
15063
15064 Use "do...while (0)", not "if (1)...else" in macro definitions.
15065 The latter provokes a warning from gcc about the empty else, when
15066 followed by ";". Also, without that trailing semicolon, it would
15067 silently swallow up any following statement.
15068 * syntax.h (SETUP_SYNTAX_TABLE)
15069 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
15070 * buffer.h (DECODE_POSITION): Likewise.
15071 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
15072 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
15073 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
15074 (FETCH_CHAR_ADVANCE): Likewise.
15075 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
15076
15077 2008-02-07 Jim Meyering <meyering@redhat.com>
15078
15079 * lread.c [lint]: Don't include <sys/inode.h>.
15080
15081 2008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
15082
15083 * xselect.c (x_handle_dnd_message):
15084 * xmenu.c (digest_single_submenu, xmenu_show):
15085 * xdisp.c (with_echo_area_buffer_unwind_data)
15086 (format_mode_line_unwind_data, unwind_format_mode_line)
15087 (display_menu_bar):
15088 * eval.c (Ffetch_bytecode):
15089 * doc.c (store_function_docstring):
15090 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
15091 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
15092 * buffer.c (add_overlay_mod_hooklist): Use ASET.
15093
15094 2008-02-07 Kenichi Handa <handa@m17n.org>
15095
15096 * ftxfont.c (ftxfont_open): Don't set
15097 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
15098
15099 * ftfont.c (ftfont_open): Fix previous change.
15100
15101 2008-02-06 Jason Rumney <jasonr@gnu.org>
15102
15103 * w32font.c (w32font_text_extents): Fill in lbearing metric.
15104 Use cached metrics for ASCII characters.
15105 (w32font_open_internal): Don't set font's owning_frame.
15106 Cache metrics for ASCII characters.
15107
15108 * w32font.h (struct w32font_info): Add ascii_metrics.
15109 Remove owning_frame.
15110
15111 2008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
15112
15113 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
15114 to negative value.
15115
15116 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
15117
15118 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
15119
15120 * charset.c (syms_of_charset): Set QCtest and Qeq.
15121
15122 2008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
15123
15124 * process.c (Fstart_process):
15125 * callproc.c (Fcall_process): Handle the case where
15126 Funhandled_file_name_directory returns nil.
15127
15128 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
15129 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
15130 * font.c (check_gstring): Use them and AREF to access the vector before
15131 we know it's really a gstring.
15132 (Ffont_shape_text): Fix typo.
15133 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
15134
15135 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
15136 Declare.
15137
15138 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
15139
15140 2008-02-05 Jason Rumney <jasonr@gnu.org>
15141
15142 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
15143 Set smallest_font_height and smallest_char_width in display info.
15144
15145 2008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
15146
15147 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
15148
15149 2008-02-05 Miles Bader <miles@gnu.org>
15150
15151 * xfaces.c (get_lface_attributes, merge_named_face)
15152 (lookup_named_face, lookup_derived_face, realize_named_face):
15153 Revert 2008-02-01 change by cyd@stupidchicken.com.
15154
15155 2008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
15156
15157 * fontset.c (Ffontset_info): Handle the case of inhibitting the
15158 fallback fonts.
15159 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
15160
15161 2008-02-04 Jason Rumney <jasonr@gnu.org>
15162
15163 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
15164 set full_name.
15165 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
15166
15167 2008-02-03 Jason Rumney <jasonr@gnu.org>
15168
15169 * makefile.w32-in (OBJ1): Include font.o here.
15170 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
15171
15172 2008-02-02 Jason Rumney <jasonr@gnu.org>
15173
15174 * makefile.w32-in (temacs): Bump EMHEAP to 21.
15175
15176 2008-02-01 Jason Rumney <jasonr@gnu.org>
15177
15178 * s/cygwin.h: Define VIRT_ADDR_VARIES.
15179
15180 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
15181
15182 2008-02-01 Andreas Schwab <schwab@suse.de>
15183
15184 * Makefile.in (shortlisp, lisp): Update for rename of
15185 ../lisp/language/myanmar.el.
15186
15187 2008-02-01 Chong Yidong <cyd@stupidchicken.com>
15188
15189 * xfaces.c (get_lface_attributes): Delete function.
15190 (merge_named_face, lookup_named_face, lookup_derived_face)
15191 (realize_named_face): Call lface_from_face_name directly, and use
15192 the fact that merge_face_vectors does not alter its FROM argument.
15193
15194 2008-02-01 Jason Rumney <jasonr@gnu.org>
15195
15196 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
15197 input in the default locale. Handle non-Unicode multibyte input.
15198
15199 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15200
15201 * fontset.c (reorder_font_vector): Exclude nil elements from the
15202 font group. Don't try multiple fonts.
15203 (fontset_font): Adjust for the above change.
15204 (Finternal_char_font): Return nil if the found font doesn't
15205 contain the character ch.
15206
15207 * Makefile.in (lisp, shortlisp): Add cham.el.
15208
15209 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15210
15211 * font.h (FONTP): Make it return 1 also for a font-object.
15212
15213 * .gdbinit (xfontset): New function.
15214
15215 * font.c (font_find_for_lface): Check if the character C is
15216 supported or not only for the first font.
15217
15218 * fontset.c (reorder_font_vector): Fix typo.
15219 (fontset_find_font): Don't add a font-spec specifying a script.
15220 Use 0 (not Qt) for the indication of empty font-group. Change the
15221 format of RFONT-DEF. Return Qt if no font in the font-group
15222 support the character.
15223 (fontset_font): Adjust for the above change. If no font was
15224 found the character, remember that.
15225 (face_for_char): Adjust for the change of RFONT-DEF.
15226 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
15227 no font for the target.
15228 (Finternal_char_font): Adjust for the change of RFONT-DEF.
15229
15230 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15231
15232 * font.c (font_load_for_face): Handle the case that the font in
15233 face->lface is a string.
15234
15235 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15236
15237 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
15238
15239 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15240
15241 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
15242 Fix previous change. If the frame is not on a window system,
15243 signal an error.
15244
15245 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15246
15247 * coding.c (decode_coding_object, encode_coding_object): Adjust
15248 marker positions after conversion.
15249
15250 * lisp.h (struct Lisp_Marker): New member need_adjustment.
15251
15252 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15253
15254 * font.c (font_find_for_lface): Fix the handling of the return
15255 value of font_has_char.
15256 (Ffont_shape_text): Fix previous change.
15257
15258 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
15259 (fontset_ref_and_range): Delete it.
15260 (fontset_find_font): Call char_table_ref_and_range instead of
15261 FONTSET_REF_AND_RANGE.
15262 (make_fontset): Don't setup font groups of Latin here.
15263 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
15264 (new_fontset_from_font): Make the specified font the default for
15265 all Latin characters.
15266
15267 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15268
15269 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
15270 is on a window system before accessing the fontset of the frame.
15271
15272 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15273
15274 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
15275
15276 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
15277 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
15278
15279 * font.c (Ffont_shape_text): If the font driver doesn't have a
15280 shaper function, make zero-width glyphs to have at least one-pixel
15281 width. Fix setting of `to' field of glyphs.
15282
15283 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15284
15285 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
15286 glyphs.
15287
15288 * font.h (struct font_driver): Improve docstring of member `shape'.
15289
15290 2008-02-01 Kenichi Handa <handa@m17n.org>
15291
15292 * composite.c (syms_of_composite): Fix docstring of
15293 auto-composition-function.
15294
15295 * font.h (LGLYPH_SIZE): New macro.
15296
15297 * font.c (Ffont_fill_gstring): Stop filling when a character not
15298 supported by the font is found.
15299 (Ffont_shape_text): When a shape callback function returns nil,
15300 try at most two more times with larger gstring.
15301 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
15302
15303 * xdisp.c (handle_auto_composed_prop): Change the argument to
15304 auto-composition-function.
15305
15306 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
15307 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
15308 Lispy glyph and store it in the lgstring.
15309
15310 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
15311
15312 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
15313
15314 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15315
15316 * font.c (Ffont_shape_text): Avoid unnecessary composition.
15317
15318 * fontset.c (Vfont_encoding_charset_alist): New variable.
15319 (syms_of_fontset): DEFVAR it.
15320 (reorder_font_vector, fontset_find_font): Optimize for the case of
15321 no need of reordering.
15322 (face_for_char): Map the charset property by
15323 Vfont_encoding_charset_alist.
15324
15325 2008-02-01 Jason Rumney <jasonr@gnu.org>
15326
15327 * w32font.c (logfonts_match): Don't check adstyle here.
15328 (font_matches_spec): Check here against physical font instead.
15329 (add_font_entity_to_list): Avoid some substitutions.
15330
15331 * font.c (font_parse_fcname): Default weight and slant to normal.
15332 (font_score): Prefer normal fonts if weight or slant unspecified.
15333 (font_score) [WINDOWSNT]: Scale weight difference down to closer
15334 match freetype scores.
15335
15336 2008-02-01 Jason Rumney <jasonr@gnu.org>
15337
15338 * w32font.c (w32font_text_extents): Don't use the frame stored in the
15339 font, as it may have been deleted.
15340 (w32_enumfont_pattern_entity): Map generic family to adstyle using
15341 most common hyphenless variation.
15342 (logfonts_match): Check generic family.
15343 (font_matches_spec): Don't check generic family here.
15344 (fill_in_logfont): Set generic family based on adstyle.
15345
15346 * w32font.h (w32font_get_cache): Update declaration.
15347
15348 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15349
15350 * ftfont.c (ftfont_get_cache): Adjust the argument type.
15351
15352 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
15353 If none of the new drivers are available, call font_update_drivers
15354 with the old drivers.
15355
15356 * w32font.c (w32font_get_cache): Adjust the argument type.
15357
15358 * xfont.c (xfont_get_cache): Adjust the argument type.
15359
15360 * font.h (struct font_driver): Change argument type of get_cache.
15361
15362 * xftfont.c (xftfont_start_for_frame): Delete prototype.
15363
15364 * font.c (Ffont_get): Fix arguments to Fassoc.
15365 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
15366 (font_clear_cache): New function.
15367 (font_list_entities, font_matching_entity): Use font_get_cache.
15368 (font_update_drivers): Call font_clear_cache when finishing a driver.
15369
15370 * fontset.c (fontset_find_font): Fix previous change.
15371
15372 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15373
15374 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
15375 dpyinfo->font_table.
15376 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
15377 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
15378
15379 * font.c (font_at): Handle the case that the arg C is negative.
15380 Handle the unibyte case.
15381 (Ffont_at): Call font_at with the arg C -1.
15382
15383 * xdisp.c (handle_auto_composed_prop): Don't get a character at
15384 the position here, and call font_at with the arg C -1.
15385 Don't check the range of the existing composition at the point.
15386
15387 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15388
15389 * fontset.c (fontset_add): New args charset_id and family.
15390 Change caller.
15391 (load_font_get_repertory, fontset_find_font): Assume that
15392 font_spec is always a font-spec object.
15393 (Fset_fontset_font): Always store a font-spec object in a fontset.
15394
15395 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
15396 instead of get_property_and_range.
15397
15398 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15399
15400 * xftfont.c (struct xftfont_info): Delete the member ft_face.
15401 (xftfont_open): Don't keep locking face.
15402 (xftfont_close): Don't unlock face.
15403 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
15404
15405 * fontset.c (fontset_find_font): Don't prefer a font of
15406 supplementary charset.
15407
15408 2008-02-01 Kenichi Handa <handa@m17n.org>
15409
15410 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
15411 script, langsys_tag to langsys, new member script.
15412 (OTF_TAG_STR): Terminate by '\0'.
15413 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
15414 listing to the script specified in that property. Fix arg to
15415 OTF_check_features.
15416
15417 2008-02-01 Jason Rumney <jasonr@gnu.org>
15418
15419 * w32font.h: New file.
15420
15421 * w32font.c: Include it.
15422 (struct w32font_info): Add owning_frame field. Move to w32font.h.
15423 (w32font_open): Set owning_frame.
15424 (w32font_text_extents): Use owning_frame.
15425 (struct font_callback_data): Add opentype_only field.
15426 (add_font_entity_to_list): Use it to filter fonts.
15427 Don't check against full name.
15428 (w32font_list_internal): New function.
15429 (w32font_list): Use it.
15430 (w32font_match_internal): New function.
15431 (w32font_match): Use it.
15432 (w32font_open_internal): New function.
15433 (w32font_open): Use it.
15434 (w32font_get_cache, w32font_close, w32font_has_char)
15435 (w32font_encode_char, w32font_text_extents, w32font_draw):
15436 Make non-static.
15437
15438 * makefile.w32-in (w32font.o): Depend on w32font.h.
15439
15440 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15441
15442 * charset.c (Fdefine_charset_internal): Record a supplementary
15443 charset at the tail of Vcharset_order_list.
15444
15445 * font.c (Ffont_shape_text): Fix the return value.
15446
15447 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
15448
15449 * xdisp.c (handle_auto_composed_prop): Fix previous change.
15450
15451 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15452
15453 * ftfont.c (struct OpenTypeSpec): New struct.
15454 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
15455 (ftfont_get_open_type_spec): New function.
15456 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
15457
15458 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
15459
15460 2008-02-01 Jason Rumney <jasonr@gnu.org>
15461
15462 * w32font.c (add_font_entity_to_list): Compare only the beginning
15463 of full name.
15464
15465 2008-02-01 Kenichi Handa <handa@m17n.org>
15466
15467 * xdisp.c (handle_auto_composed_prop): Simplify the code.
15468 Never return HANDLED_RECOMPUTE_PROPS.
15469
15470 2008-02-01 Kenichi Handa <handa@m17n.org>
15471
15472 * font.c (font_gstring_produce): Delete it.
15473
15474 * composite.h (COMPOSITION_METHOD):
15475 Handle COMPOSITION_WITH_GLYPH_STRING.
15476
15477 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15478
15479 * xfont.c (Qx): Delete.
15480 (syms_of_xfont): Don't initialize Qx.
15481
15482 * composite.h (enum composition_method):
15483 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
15484
15485 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15486
15487 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
15488 (choose_face_font): Accept new form of font-spec.
15489
15490 * frame.h (font_driver_list): Declare it unconditionally.
15491 (struct frame): Define members font_driver_list and font_data_list
15492 unconditionally.
15493
15494 * fontset.c: Include "font.h" unconditionally.
15495 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
15496 (Fset_fontset_font): Accept a font-spec object.
15497
15498 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
15499 PIXEL_SIZE part a wild card.
15500
15501 * dispextern.h (struct glyph_string): Define members clip and
15502 num_clips unconditionally.
15503 (struct face): Define members font_info and extra unconditionally.
15504
15505 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
15506 ftfont_info only when HAVE_LIBOTF is defined.
15507
15508 2008-02-01 Andreas Schwab <schwab@suse.de>
15509
15510 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
15511 and end.
15512
15513 2008-02-01 Jason Rumney <jasonr@gnu.org>
15514
15515 * w32font.c (w32font_driver): Add new fields.
15516
15517 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15518
15519 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
15520 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
15521 (LIBES): Add @M17N_FLT_CFLAGS@.
15522
15523 * composite.c (compose_text): Don't treat the new style
15524 composition specially.
15525
15526 * emacs.c (main): Call syms_of_font unconditionally.
15527
15528 * font.h (FONT_ENTITY_NOT_LOADABLE)
15529 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
15530 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
15531 (struct font_driver): New member shape.
15532 (font_registry_charsets): Extern it.
15533 (font_find_for_lface, font_prepare_composition): Adjust prototype.
15534 (font_otf_capability, font_drive_otf): Delete their externs.
15535
15536 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
15537 (font_charset_alist, font_registry_charsets): Move from xfont.c
15538 and rename.
15539 (font_prop_validate_otf): New function.
15540 (font_property_table): Register it for QCotf.
15541 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
15542 (font_drive_otf): Delete.
15543 (font_prepare_composition): New arg F. Adjust for the change of
15544 lispy gstring.
15545 (font_find_for_lface): New arg C.
15546 (font_load_for_face): Adjust for the change of font_find_for_lface.
15547 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
15548 lispy gstring.
15549 (Ffont_shape_text): New function.
15550 (Fopen_font): If the font size is not given, use 12-pixel.
15551 (Ffont_at): New arg STRING.
15552 (syms_of_font): Initalize font_charset_alist.
15553 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
15554 conditionally.
15555
15556 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
15557 fonts of the same font-spec. Change the format of RFONT-DEF.
15558 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
15559 Adjust for the change of RFONT-DEF.
15560 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
15561
15562 * ftfont.h: New file.
15563
15564 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
15565 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
15566 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
15567 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
15568 font_otf_capability and font_drive_otf, set ftfont_shape.
15569 (ftfont_list): Adjust for the change of :otf property value.
15570 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
15571 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
15572 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
15573 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
15574 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
15575 (otf_gstring, gstring, m17n_flt_initialized): New variables.
15576
15577 * w32term.c (x_draw_composite_glyph_string_foreground):
15578 Adjust for the change of lispy gstring.
15579
15580 * xdisp.c (handle_composition_prop): Adjust for the change of
15581 lispy gstring. Call a function for auto-composition with the
15582 third arg it->window.
15583 (fill_composite_glyph_string): Adjust for the change of lispy string.
15584 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
15585
15586 * xfaces.c (set_font_frame_param): Adjust for the change of
15587 font_find_for_lface.
15588
15589 * xfont.c (x_font_charset_alist): Move to font.c and rename.
15590 (xfont_registry_charsets): Likewise. Change caller.
15591 (syms_of_xfont): Don't handle x_font_charset_alist.
15592
15593 * xftfont.c: Include "ftfont.h".
15594 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
15595 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
15596 (xftfont_close) [HAVE_LIBOTF]: Close otf.
15597 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
15598 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
15599 Set xftfont_driver.shape to xftfont_shape.
15600
15601 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
15602 the change of lispy gstring.
15603
15604 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15605
15606 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
15607
15608 2008-02-01 Jason Rumney <jasonr@gnu.org>
15609
15610 * w32font.c (w32font_draw): Fill background manually.
15611
15612 2008-02-01 Jason Rumney <jasonr@gnu.org>
15613
15614 * font.c (Qfontp): Remove unused symbol.
15615 (QCantialias): New symbol.
15616 (syms_of_font): Define it.
15617 (font_property_table): Set a validator for QCantialias.
15618
15619 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
15620 Define if not already.
15621 (QCfamily): Share with xfaces.c.
15622 (Qstandard, Qsubpixel, Qnatural): New symbols.
15623 (syms_of_w32font): Define them. Don't define QCfamily here.
15624 (w32_antialias_type, lispy_antialias_type): New functions.
15625 (w32_enumfont_pattern_entity): New arg requested_font.
15626 Set antialias parameter if non-default was requested.
15627 (fill_in_logfont): Fill in lfQuality if :antialias specified.
15628
15629 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15630
15631 * lread.c (read1): Undo the previous change.
15632
15633 2008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
15634
15635 * frame.c (Fdelete_frame): Call font_update_drivers only when
15636 USE_FONT_BACKEND is defined.
15637
15638 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15639
15640 * font.h (struct font_bitmap): New member bits_per_pixel.
15641 (struct font_driver): New members start_for_frame and end_for_frame.
15642 (struct font_data_list): New struct.
15643 (font_put_frame_data, font_get_frame_data): Extern them.
15644
15645 * frame.h (struct frame): New member font_data_list.
15646
15647 * font.c (font_update_drivers): Call driver->start_for_frame and
15648 driver->end_for_frame at proper timings.
15649 (font_put_frame_data, font_get_frame_data): New functions.
15650 (Ffont_spec): Add usage in the docstring.
15651
15652 * frame.c (make_frame): Initialize f->font_data_list to NULL.
15653 (Fdelete_frame): Call font_update_drivers.
15654
15655 * xftfont.c (struct xftface_info): Delete the member xft_draw.
15656 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
15657 (xftfont_get_xft_draw): New function.
15658 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
15659 (xftfont_end_for_frame): New function.
15660 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
15661
15662 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
15663 Change argument. Cache GCs in the per-frame data.
15664 (struct ftxfont_frame_data): New struct.
15665 (ftxfont_draw_bitmap): New arg gc_fore and flush.
15666 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
15667 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
15668 (ftxfont_end_for_frame): New function.
15669 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
15670
15671 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
15672
15673 2008-02-01 Kenichi Handa <handa@m17n.org>
15674
15675 * xselect.c (Vselection_coding_system)
15676 (Vnext_selection_coding_system): Delete them.
15677 (syms_of_xselect): Don't declare selection-coding-system and
15678 next-selection-coding-system. They are declared in select.el.
15679
15680 2008-02-01 Jason Rumney <jasonr@gnu.org>
15681
15682 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
15683
15684 * w32fns.c: Include imm.h.
15685 (get_composition_string_fn, get_ime_context_fn): New optional
15686 system functions.
15687 (globals_of_w32fns): Load them from imm32.dll.
15688 (ignore_ime_char): New flag.
15689 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
15690 WM_IME_ENDCOMPOSITION messages.
15691
15692 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
15693 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
15694
15695 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15696
15697 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
15698 (READCHAR_REPORT_MULTIBYTE): New macro.
15699 (readchar): New 2nd arg MULTIBYTE.
15700 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
15701 Make symbol's name multibyte according to the multibyteness of the
15702 source.
15703
15704 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15705
15706 * xfaces.c (face_for_overlay_string): Call lookup_face with
15707 correct arguments (fix of synching with the trunk).
15708
15709 2008-02-01 Kenichi Handa <handa@m17n.org>
15710
15711 * font.c (font_prop_validate_symbol, font_prop_validate_style)
15712 (font_prop_validate_non_neg, font_prop_validate_spacing):
15713 Delete argument prop_index.
15714 (font_property_table): Change arguments to validater. Change Callers.
15715 (font_lispy_object): Delete.
15716 (font_at): Use font_find_object instead fo font_lispy_object.
15717
15718 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15719
15720 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
15721 and file names.
15722
15723 2008-02-01 Jason Rumney <jasonr@gnu.org>
15724
15725 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
15726 (font_matches_spec): Remove debug output.
15727 (add_font_entity_to_list): Avoid using substituted fonts.
15728
15729 2008-02-01 Jason Rumney <jasonr@gnu.org>
15730
15731 * doc.c (Fsnarf_documentation):
15732 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
15733
15734 2008-02-01 Miles Bader <miles@gnu.org>
15735
15736 * dispextern.h (struct glyph_row): Only define "clip" field if
15737 HAVE_WINDOW_SYSTEM is defined.
15738
15739 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
15740
15741 Fix up multi-tty merge.
15742
15743 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
15744 and indentation.
15745
15746 * xfaces.c (free_realized_face, clear_face_gcs):
15747 Include font_done_for_face in the input_blocked section, just in case.
15748
15749 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
15750 (get_char_face_and_encoding): Undo last change and remove the *other*
15751 duplicate definition (i.e. keep the one that's better scoped and that
15752 includes code for the font-backend).
15753
15754 * terminal.c (create_terminal): Default keyboard_coding to
15755 `no-conversion' and terminal_coding to `undecided'.
15756
15757 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
15758
15759 * fontset.c (free_realized_fontsets): Check that the table entry does
15760 contain a fontset before trying to compare it to `base'.
15761
15762 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
15763 syms_of_charset, and syms_of_coding earlier because init_window_once
15764 now needs Vcoding_system_hash_table to be setup.
15765
15766 * coding.h (default_buffer_file_coding): Remove.
15767
15768 * coding.c (default_buffer_file_coding): Remove.
15769 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
15770 than ->symbol, and use the terminal-local coding system.
15771 (syms_of_coding): Don't setup the coding-systems that are not
15772 terminal-local.
15773 (Fdefine_coding_system_internal): Use XCAR/XCDR.
15774
15775 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
15776 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
15777
15778 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
15779 in chartab.c and were re-added here by mistake.
15780 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
15781
15782 * doc.c (Fsnarf_documentation):
15783 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
15784 src to etc.
15785
15786 * ChangeLog.10: Add mistakenly removed entry.
15787
15788 2008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
15789
15790 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
15791
15792 2008-02-01 Miles Bader <miles@gnu.org>
15793
15794 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
15795 Add extra args to FACE_FOR_CHAR.
15796
15797 2008-02-01 Kenichi Handa <handa@m17n.org>
15798
15799 * keymap.c (where_is_internal_1): If key is a cons, store the copy
15800 in sequence.
15801
15802 * chartab.c (map_sub_char_table, map_char_table): If the range
15803 contains just one character, call the function with that character
15804 even if the depth is not 3.
15805
15806 2008-02-01 Jason Rumney <jasonr@gnu.org>
15807
15808 * w32font.c (w32font_text_extents): Calculate metrics for the
15809 whole string.
15810
15811 2008-02-01 Jason Rumney <jasonr@gnu.org>
15812
15813 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
15814
15815 2008-02-01 Jason Rumney <jasonr@gnu.org>
15816
15817 * w32term.c (x_set_glyph_string_clipping): Use
15818 get_glyph_string_clip_rects.
15819 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
15820 Adjust for the change of struct glyph_string.
15821
15822 * w32font.c (w32font_draw): Do clipping here.
15823
15824 2008-02-01 Kenichi Handa <handa@m17n.org>
15825
15826 * xftfont.c (xftfont_draw): Adjust for the change of struct
15827 glyph_string.
15828
15829 * xterm.c (x_set_glyph_string_clipping): Use
15830 get_glyph_string_clip_rects.
15831 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
15832 Adjust for the change of struct glyph_string.
15833
15834 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
15835 the resulting clip(s}.
15836 (expose_overlaps): Add arg r. Change callers. Set it to
15837 row->clip temporarily.
15838 (expose_window): Redraw rows overlapping the exposed area.
15839
15840 * dispextern.h (struct glyph_row): New member clip.
15841 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
15842 clip_height, new member clip, and num_clips.
15843
15844 2008-02-01 Kenichi Handa <handa@m17n.org>
15845
15846 * data.c (Fchar_or_string_p): Fix docstring.
15847
15848 2008-02-01 Kenichi Handa <handa@m17n.org>
15849
15850 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
15851 create a temporary XftDraw object.
15852
15853 2008-02-01 Kenichi Handa <handa@m17n.org>
15854
15855 * font.c (Ffontp): Fix docstring.
15856
15857 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
15858 strong evidence of ISO-2022.
15859
15860 2008-02-01 Kenichi Handa <handa@m17n.org>
15861
15862 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
15863 SYNTAX_ENTRY_FOLLOW_PARENT.
15864
15865 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
15866
15867 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
15868 its type.
15869 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
15870 Update to the new type of weak_hash_tables and next_weak.
15871
15872 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
15873 a plain C pointer to Lisp_Hash_Table.
15874
15875 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
15876 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
15877 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
15878 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
15879 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
15880 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
15881 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
15882 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
15883 (GC_EQ): Remove since they've been identical to their non-GC_
15884 alter-egos ever since the markbit was eradicated.
15885
15886 * alloc.c:
15887 * buffer.c:
15888 * buffer.h:
15889 * data.c:
15890 * fileio.c:
15891 * filelock.c:
15892 * fns.c:
15893 * frame.h:
15894 * lisp.h:
15895 * macterm.c:
15896 * print.c:
15897 * process.c:
15898 * w32fns.c:
15899 * w32menu.c:
15900 * w32term.c:
15901 * xfns.c:
15902 * xmenu.c:
15903 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
15904
15905 2008-02-01 Kenichi Handa <handa@m17n.org>
15906
15907 * chartab.c (map_sub_char_table): Make it work for the top-level
15908 char-table. Fix handling of parent char-table.
15909 (map_char_table): Adjust for the above change.
15910
15911 2008-02-01 Jason Rumney <jasonr@gnu.org>
15912
15913 * w32font.c (Qgdi): Rename from Qw32.
15914
15915 2008-02-01 Jason Rumney <jasonr@gnu.org>
15916
15917 * w32bdf.c (get_quoted_string): Make function static.
15918
15919 2008-02-01 Kenichi Handa <handa@m17n.org>
15920
15921 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
15922 bigger ascent and descent than those of the font, use them as
15923 font's ascent and descent.
15924
15925 2008-02-01 Kenichi Handa <handa@m17n.org>
15926
15927 * Makefile.in (${lispsource}international/charprop.el): Move this
15928 target within "#ifdef HAVE_UNIDATA" and "#endif".
15929
15930 2008-02-01 Kenichi Handa <handa@m17n.org>
15931
15932 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
15933 (shortlisp): Add ../lisp/language/tai-viet.el.
15934
15935 2008-02-01 Ulrich Mueller <ulm@gentoo.org>
15936
15937 * Makefile.in (${lispsource}international/charprop.el): Depend on
15938 temacs${EXEEXT}.
15939
15940 2008-02-01 Jason Rumney <jasonr@gnu.org>
15941
15942 * w32font.c (w32font_close): Delete the GDI font object.
15943
15944 * w32menu.c: Include character.h.
15945
15946 * w32proc.c: Likewise.
15947
15948 * w32select.c: Likewise.
15949
15950 * makefile.w32-in (w32proc.o): Depend on character.h.
15951
15952 2008-02-01 Jason Rumney <jasonr@gnu.org>
15953
15954 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
15955
15956 * w32menu.c (syms_of_w32menu): Likewise.
15957
15958 * w32proc.c (syms_of_ntproc): Likewise.
15959
15960 * w32select.c (syms_of_w32select): Likewise.
15961
15962 * w32term.c (syms_of_w32term): Likewise.
15963
15964 2008-02-01 Jason Rumney <jasonr@gnu.org>
15965
15966 * w32font.c (w32font_draw): Delete brush after using it.
15967
15968 2008-02-01 Jason Rumney <jasonr@gnu.org>
15969
15970 * w32font.c (w32font_open): Don't set font_idx.
15971 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
15972 to font settings.
15973 (w32font_draw): Fill background explicitly.
15974
15975 2008-02-01 Jason Rumney <jasonr@gnu.org>
15976
15977 * w32term.c (w32_initialize): Don't call w32font_initialize.
15978
15979 * w32font.c (w32font_info): Remove subranges.
15980 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
15981 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
15982 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
15983 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
15984 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
15985 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
15986 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
15987 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
15988 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
15989 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
15990 New symbols.
15991 (font_callback_data): New struct.
15992 (w32font_list, w32font_match): Use it.
15993 (w32font_open): Don't populate subranges.
15994 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
15995 (w32font_encode_char): Always return unicode code-point as-is.
15996 (w32font_text_extents): Supply a transformation matrix to
15997 GetGlyphOutline. Never look up by glyph index. Avoid looping
15998 twice. Use unicode version of GetTexExtentPoint32 instead of
15999 glyph index version.
16000 (set_fonts_frame): Remove.
16001 (w32_enumfont_pattern_entity): Add frame parameter, use it to
16002 set frame parameter. Use backward compatible fake foundries.
16003 Save generic family in extra slot under QCfamily. Make width slot
16004 constant. Save QCspacing value. Save list of scripts instead of
16005 binary subranges.
16006 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
16007 (add_font_entity_to_list): Use font_callback_data struct. Filter
16008 unwanted fonts.
16009 (add_one_font_entity_to_list): Use font_callback_data struct.
16010 (w32_registry): Default to iso10646_1.
16011 (fill_in_logfont): Use dpi from extra slot. Don't bother with
16012 string font registries. Don't fill in font name if it is a generic
16013 family name, fill family instead. Use spacing, family and script
16014 extra info to fill pitch, family and charset fields.
16015 (list_all_matching_fonts): Use font_callback_data struct.
16016 (unicode_range_for_char): Remove.
16017 (font_supported_scripts): New function.
16018 (w32font_initialize): Remove.
16019 (syms_of_w32font): Update which symbols are defined.
16020
16021 2008-02-01 Jason Rumney <jasonr@gnu.org>
16022
16023 * font.c (font_pixel_size): Reverse assq_no_quit args.
16024
16025 * w32term.h (FONT_WIDTH): Report max width, not average.
16026 (FONT_MAX_WIDTH): Remove.
16027 (FONT_AVG_WIDTH): New macro.
16028
16029 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
16030 redefinition of FONT_WIDTH.
16031
16032 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
16033 (w32_cache_char_metrics): Use FONT_WIDTH.
16034
16035 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
16036
16037 2008-02-01 Jason Rumney <jasonr@gnu.org>
16038
16039 * w32font.c (w32font_open): Make lfHeight negative.
16040
16041 * w32fns.c (x_default_font_parameter): Use new style font name.
16042 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
16043
16044 2008-02-01 Jason Rumney <jasonr@gnu.org>
16045
16046 * w32font.c (QCsubranges): New symbol.
16047 (w32font_open, w32font_has_char): Get subranges from subproperty
16048 of extra.
16049 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
16050 (syms_of_w32font): Define :subranges symbol.
16051
16052 * font.c (font_put_extra): Expose externally.
16053
16054 * font.h (font_put_extra): Move declaration from font.c.
16055
16056 * font.c (Ffont_get): Use font driver to determine otf capability.
16057 (adjust_anchor): Check if driver defines anchor_point before using.
16058
16059 * w32font.c (w32font_open): Handle size, height and pixel_size better.
16060 (w32font_draw): Use options.
16061 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
16062 Fix detection of truetype fonts.
16063 (registry_to_w32_charset): Handle charsets other than iso8859-1
16064 expressed as lisp symbols.
16065 (w32_registry): Express charset as lisp symbol.
16066 (fill_in_logfont): Reverse pixel and point height logic.
16067 Don't set width here. Set quality to default.
16068
16069 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
16070 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
16071
16072 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
16073 Remove redundant loop and allocation.
16074
16075 * makefile.w32-in (font.o, w32font.o): New objects.
16076 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
16077 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
16078
16079 * xdisp.c (fill_composite_glyph_string): Make the first arg to
16080 STORE_XCHARB a valid l-value.
16081
16082 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
16083 calculations for non-Truetype fonts.
16084 (x_draw_glyph_string): Sync with xterm.c.
16085 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
16086 Remove redundant code.
16087 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
16088
16089 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
16090 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
16091
16092 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
16093 (x_to_w32_charset, w32_to_x_charset): Expose externally.
16094
16095 * w32font.c: New file for w32 font backend.
16096
16097 2008-02-01 Kenichi Handa <handa@m17n.org>
16098
16099 * term.c: Don't include "buffer.h" twice.
16100
16101 2008-02-01 Kenichi Handa <handa@m17n.org>
16102
16103 * character.c (Funibyte_string): New function.
16104 (syms_of_character): Defsubr it.
16105
16106 2008-02-01 Jason Rumney <jasonr@gnu.org>
16107
16108 * w32term.c [USE_FONT_BACKEND]:
16109 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
16110 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
16111 (x_draw_glyph_string, x_draw_glyph_string_foreground)
16112 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
16113 (x_free_frame_resources): Sync with xterm.c.
16114
16115 2008-02-01 Andreas Schwab <schwab@suse.de>
16116
16117 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
16118 char-table size.
16119
16120 2008-02-01 Kenichi Handa <handa@m17n.org>
16121
16122 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
16123
16124 2008-02-01 Kenichi Handa <handa@m17n.org>
16125
16126 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
16127 font_otf_gpos, add font_drive_otf.
16128
16129 * fontset.c (fontset_find_font): Pay attention to font size
16130 specified for a font.
16131 (reorder_font_vector): Check contents of font_def.
16132
16133 * font.c (struct otf_list): Delete it.
16134 (otf_list): Make it a lisp variable.
16135 (otf_open): Use lispy otf_list.
16136 (generate_otf_features): Rename from parse_gsub_gpos_spec.
16137 (check_otf_features): New function.
16138 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
16139 New functions.
16140 (font_drive_otf): New function merging font_otf_gsub and
16141 font_otf_gpos.
16142 (font_open_for_lface): New arg spec. Change argument order.
16143 (font_load_for_face): Adjust for the change of font_open_for_lface.
16144 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
16145 Ffont_otf_gpos.
16146 (syms_of_font): Staticpro otf_list. Delete defsubr of
16147 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
16148
16149 * xfaces.c (set_font_frame_param): Adjust for the change of
16150 font_open_for_lface.
16151
16152 * font.h (font_open_for_lface): Adjust prototype.
16153 (struct font_driver): Delete members otf_gsub and otf_gpos, add
16154 member otf_drive.
16155 (font_otf_gsub, font_otf_gpos): Delete externs.
16156 (font_drive_otf): Extern it.
16157
16158 2008-02-01 Kenichi Handa <handa@m17n.org>
16159
16160 * font.c (font_at): If the window W is not on a window system,
16161 return Qnil.
16162
16163 * coding.c (produce_chars, encode_coding): Don't call
16164 insert_from_gap if no characters to produce.
16165
16166 2008-02-01 Kenichi Handa <handa@m17n.org>
16167
16168 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
16169 Fclear_face_cache.
16170
16171 * xfaces.c (face_for_font): Check also face->font==font->font.font.
16172
16173 2008-02-01 Miles Bader <miles@gnu.org>
16174
16175 * emacs.c (main): Change default value of `enable_font_backend' to 1.
16176 Parse "--disable-font-backend" option.
16177 (standard_args): Add "--disable-font-backend" option.
16178
16179 2008-02-01 Kenichi Handa <handa@m17n.org>
16180
16181 * fontset.c (fontset_find_font): New function.
16182 (fontset_font): Use fontset_find_font.
16183 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
16184 Register the specified font for all Latin characters.
16185 (new_fontset_from_font): Register the specified font for all Latin
16186 characters.
16187 (dump_fontset): For a realized fontset, include the base fontset
16188 name in the returned vector.
16189
16190 2008-02-01 Kenichi Handa <handa@m17n.org>
16191
16192 * character.h (CHAR_STRING): Cast C to unsigned on calling
16193 char_string.
16194
16195 * character.c (char_string): Type of arg C changed to unsigned.
16196 Signal an error if C is an invalid character code.
16197
16198 * editfns.c (general_insert_function, Fchar_to_string):
16199 Use CHARACTERP, not INTEGERP.
16200
16201 2008-02-01 Kenichi Handa <handa@m17n.org>
16202
16203 * character.h (MIN_MULTIBYTE_LEADING_CODE)
16204 (MAX_MULTIBYTE_LEADING_CODE): New macros.
16205
16206 * regex.c (analyse_first): Fix for multibyte characters in "case
16207 charset:" and "case categoryspec:".
16208
16209 2008-02-01 Andreas Schwab <schwab@suse.de>
16210
16211 * Makefile.in (LIBES): Move standard libraries to the end.
16212
16213 2008-02-01 Kenichi Handa <handa@m17n.org>
16214
16215 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
16216 nonzero, don't shrink the buffer nextb.
16217
16218 * buffer.h (struct buffer_text): New member inhibit_shrinking.
16219
16220 * coding.c (coding_alloc_by_making_gap): New arg offset.
16221 (alloc_destination): Call coding_alloc_by_making_gap with the arg
16222 offset.
16223 (decode_coding_iso_2022): Update coding->safe_charsets.
16224 (decode_coding_gap): Temporarily set
16225 current_buffer->text->inhibit_shrinking to 1.
16226
16227 2008-02-01 Kenichi Handa <handa@m17n.org>
16228
16229 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
16230 indexing into elements of s->cmp and s->char2b.
16231
16232 2008-02-01 Juanma Barranquero <lekktu@gmail.com>
16233
16234 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
16235
16236 2008-02-01 Kenichi Handa <handa@m17n.org>
16237
16238 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
16239 target_multibyte instead of multibyte.
16240 (re_match_2_internal): Call bcmp_translate with target_multibyte.
16241 (bcmp_translate): Change the argument name from multibyte to
16242 target_multibyte.
16243
16244 2008-02-01 Kenichi Handa <handa@m17n.org>
16245
16246 These changes are to compile a regexp into a pattern that can be
16247 used both for multibyte and unibyte targets.
16248
16249 * Makefile.in (search.o): Depend on charset.h.
16250
16251 * character.c (multibyte_char_to_unibyte_safe): New function.
16252
16253 * search.c: Include "charset.h".
16254 (compile_pattern_1): Delete argument multibyte. Don't set
16255 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
16256 (compile_pattern): Don't compare cp->buf.target_multibyte.
16257 Compare cp->buf.charset_unibyte.
16258 (compile_pattern): Set cp->buf.target_multibyte.
16259
16260 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
16261
16262 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
16263
16264 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
16265 multibyte. Change callers.
16266 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
16267 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
16268 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
16269 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
16270 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
16271 (regex_compile): Make the compiled pattern usable both for
16272 multibyte and unibyte targets.
16273 (analyse_first): Make the fastmap usable both for multibyte and
16274 unibyte targets.
16275 (TRANSLATE_VIA_MULTIBYTE): Delete.
16276 (re_match_2_internal): Pay attention to the case that the
16277 multibyteness of bufp and target may be different.
16278
16279 2008-02-01 Kenichi Handa <handa@m17n.org>
16280
16281 * xdisp.c (x_produce_glyphs): When a font is not found, make the
16282 empty box occupy at least one column width.
16283
16284 2008-02-01 Miles Bader <miles@gnu.org>
16285
16286 * Makefile.in: Remove redundant HAVE_XFT clause.
16287
16288 2008-02-01 Kenichi Handa <handa@m17n.org>
16289
16290 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
16291
16292 2008-02-01 Kenichi Handa <handa@m17n.org>
16293
16294 * fontset.c (Finternal_char_font): Fix for the case of POSITION
16295 being nil.
16296
16297 2008-02-01 Kenichi Handa <handa@m17n.org>
16298
16299 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
16300
16301 2008-02-01 Kenichi Handa <handa@m17n.org>
16302
16303 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
16304
16305 2008-02-01 Kenichi Handa <handa@m17n.org>
16306
16307 * search.c (simple_search): Fix previous change.
16308
16309 2008-02-01 Kenichi Handa <handa@m17n.org>
16310
16311 * xftfont.c (ftfont_font_format): Extern declaration.
16312
16313 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
16314
16315 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
16316 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
16317
16318 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
16319 (ftfont_font_format): Fix previous change.
16320
16321 * font.h (Ffont_xlfd_name): EXFUN it.
16322
16323 * font.c (font_parse_xlfd): Fix the array size of `f'.
16324 (register_font_driver): Use EQ to compare driver->type.
16325
16326 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
16327 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
16328 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
16329
16330 2008-02-01 Kenichi Handa <handa@m17n.org>
16331
16332 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
16333 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
16334
16335 2008-02-01 Kenichi Handa <handa@m17n.org>
16336
16337 * xfont.c (xfont_open): Set font->format.
16338
16339 * xftfont.c (xftfont_open): Set font->format.
16340
16341 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
16342 (ftfont_list): Include FC_FONTFORMAT in FcObject.
16343 (ftfont_open): Set font->format.
16344 (ftfont_font_format): New function.
16345
16346 * font.h (struct font): New member format.
16347
16348 * font.c (Qopentype): New variable.
16349 (syms_of_font): Defsym it.
16350 (Fquery_font): Change the format of the last element of the return
16351 value.
16352
16353 2008-02-01 Kenichi Handa <handa@m17n.org>
16354
16355 * xfns.c (xic_create_xfontset): Try the default fontset name as a
16356 last resort.
16357
16358 2008-02-01 Kenichi Handa <handa@m17n.org>
16359
16360 * coding.c (detect_coding_charset): Fix detection of multi-byte
16361 charset.
16362
16363 2008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
16364
16365 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
16366
16367 2008-02-01 Kenichi Handa <handa@m17n.org>
16368
16369 * xdisp.c (get_next_display_element): Set it->face_id for the
16370 first component of a composition.
16371 (x_produce_glyphs): Check if the font is changed or not for composition.
16372
16373 2008-02-01 Kenichi Handa <handa@m17n.org>
16374
16375 * fontset.c (Qlatin): New variable.
16376 (syms_of_fontset): Define it as a lisp symbol.
16377 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
16378
16379 2008-02-01 Kenichi Handa <handa@m17n.org>
16380
16381 * font.c (font_unparse_fcname): Pay attention to the case that
16382 some of font property is a null string.
16383
16384 2008-02-01 Kenichi Handa <handa@m17n.org>
16385
16386 * term.c: Include "composite.h".
16387 (encode_terminal_code): Output all components of composition.
16388 Check the size of encode_terminal_src.
16389 (produce_glyphs): For composition, call produce_composite_glyph.
16390 (append_composite_glyph, produce_composite_glyph): New functions.
16391
16392 * xdisp.c (x_produce_glyphs): In handling composition, if a font
16393 is not found, get font_info from the current ascii face.
16394
16395 2008-02-01 Kenichi Handa <handa@m17n.org>
16396
16397 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
16398 buffer-file-name to Qnil before calling insert_from_buffer.
16399
16400 * font.c (font_unparse_fcname): Pay attention to the case that
16401 foundry is a null string.
16402
16403 2008-02-01 Kenichi Handa <handa@m17n.org>
16404
16405 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
16406
16407 * font.c (Qunicode_sip): New variable.
16408 (syms_of_font): Declare it as a Lisp symbol.
16409
16410 * font.h (Qunicode_sip): Extern it.
16411
16412 2008-02-01 Kenichi Handa <handa@m17n.org>
16413
16414 * composite.c (get_composition_id): Pay attention to TAB component.
16415
16416 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
16417 TAB. Adjust for the change of s->char2b which always points to
16418 the first element of allocated memory.
16419
16420 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
16421
16422 * xdisp.c (handle_composition_prop): Set it->c to the first
16423 non-TAB component.
16424 (fill_composite_glyph_string): Change argument.
16425 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
16426 (x_produce_glyphs): Fix handling of left/right padding.
16427
16428 2008-02-01 Kenichi Handa <handa@m17n.org>
16429
16430 * coding.c (detect_coding_system): Fix for handling off
16431 inhibit_iso_escape_detection. Fix for the case that no coding
16432 system is defined for a specific coding category.
16433
16434 2008-02-01 Kenichi Handa <handa@m17n.org>
16435
16436 * font.c (font_matching_entity): Delete unused local var.
16437
16438 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
16439 opening a font.
16440
16441 * fileio.c (Finsert_file_contents): On recovering a file, assume
16442 Unix-like eol.
16443 (choose_write_coding_system): On auto-saving a file, force
16444 Unix-like eol.
16445
16446 * coding.c (setup_coding_system): Fix setting of
16447 coding->common_flags based on eol_type.
16448 (coding_inherit_eol_type): If PARENT is not nil, be sure to
16449 inherit from it.
16450
16451 2008-02-01 Kenichi Handa <handa@m17n.org>
16452
16453 * alloc.c (NSTATICS): Increas to 0x600.
16454
16455 2008-02-01 Kenichi Handa <handa@m17n.org>
16456
16457 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
16458 (ftfont_list): Don't check :name property.
16459 (ftfont_match): New function.
16460 (ftfont_pattern_entity): If the pattern doesn't contain
16461 FC_SPACING, don't assume FC_MONO.
16462
16463 * font.h (struct font_driver): New member `match'.
16464 (font_update_drivers): Adjust prototype.
16465
16466 * font.c (font_parse_fcname, font_parse_name): Don't change :name
16467 property of FONT.
16468 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
16469 them unconditionally.
16470 (font_matching_entity): New function.
16471 (font_open_by_name): Try font_matching_entity if exact match is
16472 not found.
16473 (font_update_drivers): Delete the arg FONT. Return a list of
16474 actually used backends. Don't free faces, font caches here.
16475 Don't store data in frame parameters. Don't call x_set_font.
16476 (Ffont_spec): Store :name property as is.
16477 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
16478 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
16479 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
16480 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
16481 Call font->driver->otf_gsub instead of font_otf_gsub.
16482
16483 * frame.c (x_set_font_backend): Do more works that were done in
16484 font_update_drivers before.
16485
16486 * xfont.c (xfont_match): New function.
16487 (xfont_driver): Set xfont_driver.match to xfont_match.
16488 (xfont_draw): Set font in GC if necessary.
16489
16490 * ftxfont.c (ftxfont_match): New function.
16491 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
16492
16493 * xftfont.c (xftfont_match): New function.
16494 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
16495
16496 2008-02-01 Kenichi Handa <handa@m17n.org>
16497
16498 * font.h (struct font): New member scalable.
16499 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
16500 (font_otf_gsub): Adjust prototype.
16501
16502 * font.c (font_otf_capability): Fix handling of the default langsys.
16503 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
16504 Check the contents of SPEC.
16505 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
16506 (check_gstring): New function.
16507 (REPLACEMENT_CHARACTER): New macro.
16508 (font_otf_gsub): New arg alternate_subst. Be sure to set all
16509 glyph codes of GSTRING.
16510 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
16511 (font_prepare_composition): Set cmp->glyph_len.
16512 (font_open_entity): Set font->scalable.
16513 (Ffont_get): Handle :otf property.
16514 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
16515 functions.
16516 (Fquery_font): Use font->font.full_name.
16517 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
16518 Sfont_otf_alternates.
16519
16520 * ftfont.c (ftfont_open): Set font->font.full_name and
16521 font->font.name properly. Fix calculation of font->font.height
16522 and font->min_width.
16523
16524 * ftxfont.c (ftxfont_create_gcs): New function.
16525 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
16526 (ftxfont_draw_backgrond): Fix filling region.
16527 (ftxfont_default_fid): New function.
16528 (ftxfont_open): Set xfont->fid to the return value of
16529 ftxfont_default_fid.
16530 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
16531 (ftxfont_done_face): Free only GCs that are created by
16532 ftxfont_create_gcs.
16533 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
16534
16535 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
16536 Clip to src->width, etc (not src->clip_XXX).
16537
16538 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
16539 FontBackend frame parameter.
16540
16541 2008-02-01 Kenichi Handa <handa@m17n.org>
16542
16543 * font.h (struct font_driver_list): New member `on'.
16544 (Fclear_font_cache): EXFUN it.
16545 (font_update_drivers): Extern it.
16546
16547 * font.c (font_unparse_fcname): Fix typo (swidth->width).
16548 (font_list_entities): Check driver_list->on.
16549 (register_font_driver): Initalize `on' member to 0.
16550 (font_update_drivers): New function.
16551 (Fclear_font_cache): Check driver_list->on.
16552
16553 * frame.h (Qfont_backend): Extern it.
16554 (x_set_font_backend): Extern it.
16555
16556 * frame.c (Qfont_backend): New variable.
16557 (frame_parms): New element for font-backend.
16558 (x_set_font_backend): New function.
16559
16560 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
16561 FontBackend frame parameter.
16562 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
16563 x_set_font_backend.
16564
16565 * xfont.c (xfont_list): Don't try listing by :name property if the
16566 name is not for XLFD.
16567
16568 2008-02-01 Kenichi Handa <handa@m17n.org>
16569
16570 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
16571 (LGLYPH_SET_TO): New macros.
16572 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
16573 element of G is vector or not.
16574 (font_at): Extern it.
16575
16576 * font.c: Include window.h.
16577 (font_lispy_object): New function.
16578 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
16579 end of valid glyph.
16580 (font_close_object): Fix getting (struct font *).
16581 (font_at): New function.
16582 (Ffont_get): If FONT is a font-object, get entity from it.
16583 (Ffont_make_gstring): Initialize elements of glyphs with nil.
16584 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
16585 range check.
16586 (Ffont_at): New function.
16587 (syms_of_font): Defsubr Sfont_at.
16588
16589 * xdisp.c (it_props): Move the entry for Qauto_composed to just
16590 before the entry for Qcomposition.
16591 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
16592 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
16593 the font in gstring.
16594 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
16595 LGLYPH_FORM (g) to detect the end of valid glyph.
16596 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
16597 we are composing with gstring.
16598
16599 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
16600 Check if adjustment is vector or not.
16601
16602 * Makefile.in (font.o): Make it depends on window.h.
16603
16604 2008-02-01 Kenichi Handa <handa@m17n.org>
16605
16606 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
16607 adjustment is vector or not.
16608
16609 2008-02-01 Miles Bader <miles@gnu.org>
16610
16611 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
16612
16613 2008-02-01 Kenichi Handa <handa@m17n.org>
16614
16615 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
16616 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
16617 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
16618
16619 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
16620 (DEVICE_DELTA): Fix typo.
16621 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
16622 LGLYPH format.
16623
16624 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
16625 the change of LGLYPH format.
16626
16627 2008-02-01 Kenichi Handa <handa@m17n.org>
16628
16629 * ftfont.c (ftfont_list): Fix typo.
16630 (ftfont_build_basic_charsets): Don't include letters with diacritics.
16631
16632 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
16633
16634 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
16635
16636 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
16637 xftface_info is non-NULL.
16638
16639 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
16640
16641 * ftfont.c (ftfont_list): Move misplaced #endif.
16642
16643 2008-02-01 Kenichi Handa <handa@m17n.org>
16644
16645 * ftfont.c (ftfont_list): Pay attention to the case that
16646 FC_CAPABILITY is not defined.
16647
16648 2008-02-01 Kenichi Handa <handa@m17n.org>
16649
16650 * xftfont.c (xftfont_open): Set charset related members to -1.
16651
16652 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
16653 QCname.
16654 (ftfont_open): Set charset related members to -1.
16655
16656 * fontset.c (Votf_script_alist): New variable.
16657 (syms_of_fontset): Initialize it.
16658 (fontset_font): Delete unused variable.
16659
16660 * fontset.h (Votf_script_alist): Extern it.
16661
16662 * font.c (font_find_for_lface): Optimize code.
16663
16664 * font.h (font_close_object, font_merge_old_spec): Extern them.
16665
16666 2008-02-01 Kenichi Handa <handa@m17n.org>
16667
16668 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
16669 (syms_of_font): Initialize them.
16670 (font_pixel_size): Allow float value in dpi.
16671 (font_prop_validate_type): Delete.
16672 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
16673 Change caller.
16674 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
16675 (font_prop_validate_extra): Delete.
16676 (font_prop_validate_spacing): New function.
16677 (font_property_table): Add elements for all known properties.
16678 (get_font_prop_index): Rename from check_font_prop_name. New
16679 argument FROM. Change caller.
16680 (font_prop_validate): Validate all known properties.
16681 (font_put_extra): Delete argument force. Change caller.
16682 (font_expand_wildcards): Make it static. Fix the way of shrinking
16683 the possible range.
16684 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
16685 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
16686 Change caller.
16687 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
16688 (font_parse_fcname): Delete argument merge. Fix parsing of point
16689 size. Don't validate properties values here. Change caller.
16690 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
16691 (font_open_by_name): Delete unused variable.
16692 (Ffont_spec): Likewise. Validate property values.
16693 (Ffont_match_p): New function.
16694
16695 * font.h (QCscalable): Extern it.
16696 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
16697
16698 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
16699
16700 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
16701 (xfont_list_pattern): New function.
16702 (xfont_list): Use xfont_list_pattern.
16703
16704 2008-02-01 Kenichi Handa <handa@m17n.org>
16705
16706 * font.h (Flist_fonts): EXFUN it.
16707
16708 2008-02-01 Jason Rumney <jasonr@gnu.org>
16709
16710 * w32term.c (w32_initialize): Add back smoothing_type and
16711 smoothing_enabled definitions.
16712
16713 2008-02-01 Kenichi Handa <handa@m17n.org>
16714
16715 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
16716 s->face->font on determining underline position.
16717
16718 2008-02-01 Kenichi Handa <handa@m17n.org>
16719
16720 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
16721 (font_has_char): Accept font-object too.
16722 (font_find_for_lface): Try at first with a size specified in face.
16723
16724 2008-02-01 Kenichi Handa <handa@m17n.org>
16725
16726 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
16727 font_open_by_name.
16728
16729 2008-02-01 Kenichi Handa <handa@m17n.org>
16730
16731 * font.h (QCspacing, QCdpi): Extern them.
16732 (enum font_spacing): New enum.
16733 (FONT_PIXEL_SIZE_QUANTUM): New macro.
16734
16735 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
16736 (QCspacing, QCdpi): New variables.
16737 (syms_of_font): Initialize them.
16738 (font_pixel_size): New function.
16739 (font_put_extra): New function.
16740 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
16741 in FONT_EXTRA.
16742 (font_parse_fcname): Handle enumerated values (e.g. bold).
16743 Fix handling font size. Add QCname property that contains only
16744 unknown properties.
16745 (font_score): Change argument. Change caller. Pay attention to
16746 FONT_PIXEL_SIZE_QUANTUM.
16747 (font_sort_entites, font_list_entities, font_find_for_lface)
16748 (font_open_for_lface, font_open_by_name): Fix handling of font size.
16749 (Ffont_spec): Add QCname property that contains only unknown properties.
16750
16751 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
16752 include weight in listing pattern, instead check weight of each
16753 listed font. Don't include scalable in pattern. Pay attention to
16754 FONT_PIXEL_SIZE_QUANTUM.
16755
16756 2008-02-01 Kenichi Handa <handa@m17n.org>
16757
16758 * font.c (font_parse_fcname): Fix parsing of point-size.
16759 (font_unparse_fcname): Produce symbolic names for style properties.
16760 (font_list_entities): Handle float size correctly.
16761 (font_open_by_name): Prefer `normal' property values if the name
16762 doesn't specify them.
16763
16764 * fontset.c (Finternal_char_font): Use font_get_name, not
16765 Ffont_xlfd_name.
16766
16767 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
16768 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
16769 pattern. Don't force scalable.
16770
16771 * xftfont.c (xftfont_open): For generating a name, start from
16772 96-byte buffer.
16773
16774 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
16775
16776 * frame.h (x_new_fontset2): Fix prototype.
16777
16778 2008-02-01 Kenichi Handa <handa@m17n.org>
16779
16780 * font.h (struct font_driver): Delete member parse_name.
16781 (font_match_p, font_get_spec, font_parse_fcname)
16782 (font_unparse_fcname): Extern them.
16783 (font_get_name): Adjust prototype.
16784
16785 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
16786 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
16787 (font_expand_wildcards): Fix handling ENCODING field. Avoid
16788 unnecessary checks for weight, slant, and swidth.
16789 (font_parse_fcname): New function.
16790 (font_unparse_fcname): New function.
16791 (font_parse_name): New function.
16792 (font_match_p): New function.
16793 (font_get_name): Change return value to Lisp string.
16794 (font_get_spec): New function.
16795 (Qunspecified, Qignore_defface): Don't extern them.
16796 (font_find_for_lface): Assume that LFACE is fully specified.
16797 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
16798 object, use it for FACE.
16799 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
16800 driver->parse_name.
16801 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
16802
16803 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
16804 prototype.
16805
16806 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
16807 argument F. Don't call Fnew_fontset. Instead, directly call
16808 make_fontset.
16809
16810 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
16811
16812 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
16813 of x_new_fontset2.
16814
16815 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
16816 (Qsans__serif): New variables.
16817 (ftfont_generic_family_list): New variable.
16818 (syms_of_ftfont): Initialize the above variables.
16819 (ftfont_pattern_entity): Delete argument NAME.
16820 (ftfont_list_generic_family): New function.
16821 (ftfont_parse_name): Delete this function.
16822 (ftfont_list): Try generic family only when FcFontList found no font.
16823 (ftfont_list_family): Fix args to FcObjectSetBuild.
16824
16825 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
16826 object in attrs[LFACE_FONT_INDEX].
16827 (set_lface_from_font_name): Cancel all changes for font-backend.
16828 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
16829 function.
16830 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
16831 font object in QCfont attribute.
16832 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
16833 (realize_default_face) [USE_FONT_BACKEND]: Call
16834 set_lface_from_font_and_fontset.
16835
16836 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
16837 "fixed", and signal error here if no suitable font was found.
16838
16839 * xfont.c (xfont_parse_name): Delete this function.
16840
16841 * xftfont.c (xftfont_open): Change coding style of error
16842 handling. Generate fontconfig's fontname pattern.
16843
16844 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
16845 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
16846
16847 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
16848 Both args FONTSET and FONT_OBJECT must be existing ones.
16849
16850 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16851
16852 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
16853
16854 2008-02-01 Kenichi Handa <handa@m17n.org>
16855
16856 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
16857
16858 * font.h (struct font): Fix typo.
16859
16860 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
16861 XLFD_XXX_INDEX.
16862 (enum xlfd_field_mask): New enum.
16863 (intern_font_field): Changed argument. Change caller. If digits
16864 are followed by non-digits, return a symbol.
16865 (font_expand_wildcards): New function.
16866 (font_parse_xlfd): Fix wildcard handling.
16867 (Ffont_spec): If :name is specified, reflect the info in the other
16868 properties.
16869
16870 * ftfont.c (ftfont_pattern_entity): Fix typo.
16871 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
16872 locale.
16873
16874 2008-02-01 Kenichi Handa <handa@m17n.org>
16875
16876 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
16877
16878 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
16879 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
16880 registry doesn't specify encoding part.
16881 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
16882 (font_open_by_name): At first try parsing the name.
16883 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
16884 as Lisp symbols.
16885
16886 * fontset.c (reorder_font_vector): Pay attention to the case that
16887 the 3rd element of font_def is nil.
16888 (fontset_font): For the default fontset, append one more fontset
16889 elements for a script-based font specification. Don't add script
16890 attribute on finding a font.
16891 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
16892 font name.
16893 (fontset_ascii_font): If a font can't be opened, return nil.
16894
16895 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
16896 (ftfont_pattern_entity): New function.
16897 (ftfont_get_cache): Assume that freetype_font_cache is already
16898 initialized.
16899 (ftfont_list): Handle the case that a file is specified in font
16900 name. Use ftfont_pattern_entity to generate entities.
16901 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
16902 (syms_of_ftfont): Initialize freetype_font_cache.
16903
16904 * xftfont.c (xftfont_open): Make the font name fontconfig's
16905 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
16906 (xftfont_close): Free font->font.name if not NULL.
16907
16908 * xfont.c (xfont_list): If script is specified for a font, return
16909 null_vector.
16910 (xfont_list_family): Declare argument type.
16911
16912 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
16913 name, set LFACE_FONT (lface) to nil.
16914
16915 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
16916 return Qnil.
16917
16918 2008-02-01 Kenichi Handa <handa@m17n.org>
16919
16920 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
16921 (standard_args): Add "-enable-font-backend".
16922
16923 2008-02-01 Kenichi Handa <handa@m17n.org>
16924
16925 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
16926 (struct xftdraw_list, xftdraw_list): Delete them.
16927 (register_xftdraw, check_xftdraw): Delete them.
16928 (xftfont_prepare_face): Don't call register_xftdraw.
16929 (xftfont_done_face): Don't call check_xftdraw.
16930 (xftfont_draw): Get background color only when with_background is
16931 nonzero.
16932
16933 * xfont.c (xfont_encode_char): Fix calculation of char2b.
16934
16935 2008-02-01 Kenichi Handa <handa@m17n.org>
16936
16937 These changes are for the new font handling codes.
16938
16939 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
16940 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
16941 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
16942 (FONTSRC, FONTOBJ): New variables.
16943 (obj): Add $(FONTOBJ).
16944 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
16945 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
16946 @LIBOTF_LIBS@.
16947 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
16948 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
16949
16950 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
16951
16952 * character.h (Vscript_representative_chars): Extern it.
16953
16954 * character.c (Vscript_representative_chars): New variable.
16955 (syms_of_character): Declare it as a Lisp variable.
16956
16957 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
16958 enable_font_backend is nonzero, accept the composition method
16959 COMPOSITION_WITH_GLYPH_STRING.
16960
16961 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
16962 enumeration COMPOSITION_WITH_GLYPH_STRING.
16963
16964 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
16965 members clip_x, clip_y, clip_width, and clip_height.
16966 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
16967
16968 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
16969 --enable-font-backend. Call syms_of_font.
16970
16971 * fns.c (assoc_no_quit): New function.
16972
16973 * fontset.h (FONT_INFO_FROM_FACE): New macro.
16974 (face_for_font, new_fontset_from_font)
16975 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
16976
16977 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
16978 (fontset_font, fontset_ascii, face_for_char)
16979 (make_fontset_for_ascii_face, Ffont_info)
16980 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
16981 is nonzero, use font-backend mechanism.
16982 (find_font_encoding): Make it non-static.
16983 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
16984 New functions.
16985
16986 * frame.h (struct frame): New members resx and resy.
16987 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
16988 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
16989
16990 * frame.c [USE_FONT_BACKEND]: Include "font.h".
16991 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
16992
16993 * lisp.h (assoc_no_quit): Extern it.
16994
16995 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
16996 Through out the file, use FONT_INFO_FROM_FACE instead of
16997 FONT_INFO_FROM_ID, use get_per_char_metric instead of
16998 rif->per_char_metric.
16999 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
17000 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
17001 (get_glyph_face_and_encoding, fill_composite_glyph_string)
17002 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
17003 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
17004 nonzero, use font-backend mechanism.
17005 (get_per_char_metric): New function.
17006
17007 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
17008 (set_lface_from_font_name)
17009 (set_font_frame_param, free_realized_face)
17010 (prepare_face_for_display, clear_face_gcs)
17011 (Finternal_set_font_selection_order, realize_x_face)
17012 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
17013 font-backend mechanism.
17014 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
17015 (load_face_font) [USE_FONT_BACKEND]: Abort.
17016 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
17017 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
17018
17019 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
17020 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
17021 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
17022 nonzero, register all available font drivers. Call
17023 x_default_font_parameter for deciding a font.
17024 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
17025
17026 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
17027 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
17028 (x_set_glyph_string_clipping_exactly)
17029 (x_compute_glyph_string_overhangs)
17030 (x_draw_glyph_string_foreground)
17031 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
17032 (x_free_frame_resources) [USE_FONT_BACKEND]: If
17033 enable_font_backend is nonzero, use font-backend mechanism.
17034 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
17035
17036 2008-02-01 Kenichi Handa <handa@m17n.org>
17037
17038 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
17039 system_eol_type.
17040 (syms_of_coding): Initialize system_eol_type.
17041
17042 * process.c (Fset_process_coding_system): Inherit system's eol
17043 format if necessary.
17044
17045 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17046
17047 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
17048
17049 2008-02-01 Kenichi Handa <handa@m17n.org>
17050
17051 * coding.c (decode_eol): Pay attention to buffer relocation in
17052 del_range_2.
17053 (decode_coding): Call decode_eol before restoring undo_list.
17054
17055 2008-02-01 Kenichi Handa <handa@m17n.org>
17056
17057 * charset.c (Fdefine_charset_internal): Fix setting of
17058 emacs_mule_bytes.
17059
17060 2008-02-01 Kenichi Handa <handa@m17n.org>
17061
17062 * keyboard.c (read_char): Check if C is a character or not before
17063 looking up Vkeyboard_translate_table.
17064
17065 2008-02-01 Kenichi Handa <handa@m17n.org>
17066
17067 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
17068 condition to terminate the loop.
17069
17070 2008-02-01 Kenichi Handa <handa@m17n.org>
17071
17072 * coding.c (produce_composition): Compare charbuf[i] instead of
17073 args[i] against 0.
17074 (Fterminal_coding_system): Use EQ to compare Lisp objects.
17075
17076 2008-02-01 Kenichi Handa <handa@m17n.org>
17077
17078 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
17079 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
17080 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
17081 detect_coding.
17082 (emacs_mule_char): Handle old style (Emacs 20) component character
17083 of a composition.
17084 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
17085 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
17086 composition rule.
17087 (decode_coding_emacs_mule): Handle invalid bytes correctly.
17088
17089 2008-02-01 Kenichi Handa <handa@m17n.org>
17090
17091 * coding.c (encode_coding_ccl): Allocate destination dynamically
17092 when necessary.
17093
17094 2008-02-01 Kenichi Handa <handa@m17n.org>
17095
17096 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
17097 the loop. When quitted, show a proper error message.
17098
17099 2008-02-01 Kenichi Handa <handa@m17n.org>
17100
17101 * xterm.c (x_set_glyph_string_clipping_exactly): Set
17102 src->clip_head and src->clip_tail temporarily instead of src->hl.
17103
17104 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
17105 character sequence.
17106 (Fccl_execute_on_string): Use ASET, not XSET.
17107
17108 2008-02-01 Kenichi Handa <handa@m17n.org>
17109
17110 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
17111
17112 2008-02-01 Kenichi Handa <handa@m17n.org>
17113
17114 * coding.c (decode_coding): Fix the condition of terminating the
17115 decoding loop.
17116
17117 2008-02-01 Kenichi Handa <handa@m17n.org>
17118
17119 * data.c (Faset): On setting a character bigger than 255 in a
17120 unibyte string, signal an error instead of make the string multibyte.
17121
17122 2008-02-01 Kenichi Handa <handa@m17n.org>
17123
17124 * charset.c (map_charset_chars): Fix for ascii-compatible charset
17125 made by a mapping table.
17126
17127 2008-02-01 Kenichi Handa <handa@m17n.org>
17128
17129 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
17130 not.
17131 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
17132 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
17133
17134 * xterm.c (x_draw_composite_glyph_string_foreground): Check
17135 s->face is NULL or not.
17136
17137 2008-02-01 Kenichi Handa <handa@m17n.org>
17138
17139 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
17140 (x_draw_glyph_string): Fix drawing of right_overhang and
17141 left_overhang around/on cursor.
17142
17143 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
17144
17145 2008-02-01 Kenichi Handa <handa@m17n.org>
17146
17147 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
17148
17149 2008-02-01 Kenichi Handa <handa@m17n.org>
17150
17151 * coding.c (Fdefine_coding_system_internal)
17152 (Fdefine_coding_system_alias): Avoid a duplicated element in
17153 Vcoding_system_alist.
17154
17155 2008-02-01 Kenichi Handa <handa@m17n.org>
17156
17157 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
17158
17159 * coding.c (Qcoding_system_define_form): New variable.
17160 (syms_of_coding): Intern and staticpro it.
17161 (Fcoding_system_p): Check Qcoding_system_define_form.
17162 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
17163
17164 * coding.h (CODING_SYSTEM_P): If ID is not available, call
17165 Fcoding_system_p.
17166 (CHECK_CODING_SYSTEM): If ID is not available, call
17167 Fcheck_coding_system.
17168 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
17169 Try also Fcheck_coding_system.
17170
17171 2008-02-01 Kenichi Handa <handa@m17n.org>
17172
17173 * coding.c (code_conversion_restore): GCPRO arg.
17174
17175 2008-02-01 Kenichi Handa <handa@m17n.org>
17176
17177 * character.c (lisp_string_width): Check multibyteness of STRING.
17178
17179 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17180
17181 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
17182 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
17183 (decode_mac_font_name): Use decode_coding_c_string instead of
17184 decode_coding.
17185 (x_load_font): Initialize fontp->fontset to -1. Set
17186 fontp->encoding_type.
17187
17188 2008-02-01 Kenichi Handa <handa@m17n.org>
17189
17190 * search.c (search_buffer): Give up BM search on case-fold-search
17191 if one of a target character has a case-equivalence of different
17192 byte length even if that target charcter is an ASCII.
17193 (simple_search): Fix calculation of byte length of matched text.
17194 (boyer_moore): Fix handling of case-equivalent multibyte characters.
17195
17196 2008-02-01 Kenichi Handa <handa@m17n.org>
17197
17198 * coding.c (decode_coding): Fix handling of invalid bytes.
17199
17200 2008-02-01 Kenichi Handa <handa@m17n.org>
17201
17202 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
17203 Unicode characters.
17204
17205 2008-02-01 Kenichi Handa <handa@m17n.org>
17206
17207 * coding.c (encode_coding_object): If a pre-write-conversion
17208 function makes a new buffer, kill it.
17209
17210 2008-02-01 Kenichi Handa <handa@m17n.org>
17211
17212 * coding.c (QCascii_compatible_p): New variable.
17213 (syms_of_coding): Initialize it.
17214 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
17215 calling string_char.
17216 (record_conversion_result): Add `default:' case.
17217 (coding_charset_list): Delete unused variable `coding_type'.
17218 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
17219 property in the plist of the coding system.
17220 (Fcoding_system_put): Check QCascii_compatible_p.
17221
17222 2008-02-01 Miles Bader <miles@gnu.org>
17223
17224 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
17225 removed calculation of frame `f', as it's now used.
17226
17227 2008-02-01 Kenichi Handa <handa@m17n.org>
17228
17229 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
17230 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
17231 (UNIDATA): New variable.
17232 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
17233 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
17234 $(RUN_TEMACS) unconditionally.
17235
17236 2008-02-01 Kenichi Handa <handa@m17n.org>
17237
17238 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
17239 (admindir): New variable.
17240 ($(lispsource)international/charprop.el): New target.
17241
17242 2008-02-01 Miles Bader <miles@gnu.org>
17243
17244 * character.c (chars-in-region): Remove obsolete function.
17245 (syms_of_character): Remove its initialization.
17246
17247 2008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
17248
17249 * w32select.c (validate_coding_system)
17250 (setup_windows_coding_system): New functions.
17251 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
17252 setup_windows_coding_system.
17253 (setup_config, Fw32_get_clipboard_data): Use
17254 validate_coding_system.
17255 (Fx_selection_exists): Move call to setup_config to a place
17256 where signals are allowed.
17257
17258 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
17259 (Fcheck_coding_system): Add declarations.
17260
17261 2008-02-01 Kenichi Handa <handa@m17n.org>
17262
17263 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
17264
17265 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17266
17267 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
17268 string as the second argument for x_new_fontset.
17269
17270 2008-02-01 Kenichi Handa <handa@m17n.org>
17271
17272 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
17273 (encode_coding_object): Use safe_call instead of call2.
17274
17275 2008-02-01 Kenichi Handa <handa@m17n.org>
17276
17277 * fontset.c (Fset_fontset_font): Check family element of a given vector.
17278
17279 * Makefile.in (lisp): Include charprop.el.
17280
17281 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17282
17283 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
17284 Not sure if it's unnecessary.
17285
17286 2008-02-01 Steven Tamm <steventamm@mac.com>
17287
17288 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
17289 some possibly unnecessary fontset checking code that crashed
17290 when creating a new frame.
17291
17292 2008-02-01 Kenichi Handa <handa@m17n.org>
17293
17294 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
17295 lookup_face.
17296
17297 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
17298
17299 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
17300
17301 2008-02-01 Kenichi Handa <handa@m17n.org>
17302
17303 * coding.c: Cancel the change done in HEAD on 2008-02-01.
17304 (coding_charset_list): New function.
17305
17306 * coding.h (coding_charset_list): Extern it.
17307
17308 2008-02-01 Kenichi Handa <handa@m17n.org>
17309
17310 * fontset.c (Fset_fontset_font): Call find_font_encoding with
17311 concatenation of family and registry.
17312
17313 2008-02-01 Kenichi Handa <handa@m17n.org>
17314
17315 * character.h (BYTE8_STRING): Fix typo.
17316
17317 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
17318 string to multibyte (sync to HEAD).
17319
17320 * casefiddle.c (casify_region): Handle changes in byte-length
17321 using replace_range_2 (sync to HEAD).
17322
17323 2008-02-01 Andreas Schwab <schwab@suse.de>
17324
17325 * chartab.c (map_char_table): GCPRO table and arg.
17326
17327 2008-02-01 Kenichi Handa <handa@m17n.org>
17328
17329 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
17330 already at limit.
17331
17332 2008-02-01 Kenichi Handa <handa@m17n.org>
17333
17334 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
17335 instead of fast_c_string_match_ignore_case.
17336 (find_font_encoding): Change argument to Lisp_Object. Use
17337 fast_string_match_ignore_case instead of
17338 fast_c_string_match_ignore_case. Change caller.
17339
17340 2008-02-01 Kenichi Handa <handa@m17n.org>
17341
17342 * xdisp.c (get_next_display_element): In unibyte case, decide to
17343 display in octal form by checking a character by
17344 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
17345
17346 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
17347
17348 * character.c (unibyte_has_multibyte_table): New variable.
17349
17350 * character.h (unibyte_has_multibyte_table): Extern it.
17351 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
17352
17353 2008-02-01 Kenichi Handa <handa@m17n.org>
17354
17355 * coding.c (encode_coding_iso_2022): Fix handling of charset
17356 annotation.
17357
17358 2008-02-01 Kenichi Handa <handa@m17n.org>
17359
17360 * coding.c (setup_coding_system): If coding_system is nil, use
17361 Qundecided.
17362 (Fterminal_coding_system): Return nil if terminal coding system is
17363 `undecided'.
17364 (syms_of_coding): Define coding-system `undecided' here. Setup
17365 terminal_coding as `undecided'.
17366
17367 2008-02-01 Kenichi Handa <handa@m17n.org>
17368
17369 * xdisp.c (message_dolog, set_message_1): Call
17370 unibyte_char_to_multibyte with arg type int.
17371
17372 * lread.c (read1): Fix reading of a char-table.
17373
17374 * print.c (print_object): Include sub char-table in circularities
17375 detection.
17376
17377 2008-02-01 Kenichi Handa <handa@m17n.org>
17378
17379 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
17380 Append the found sequences in car of ARGS instead of prepending.
17381
17382 2008-02-01 Kenichi Handa <handa@m17n.org>
17383
17384 * fileio.c (report_file_error): Make a unibyte string from
17385 strerror (errorno).
17386 (Fsubstitute_in_file_name): Fix the arg to
17387 unibyte_char_to_multibyte. It is evaluated twice.
17388
17389 2008-02-01 Kenichi Handa <handa@m17n.org>
17390
17391 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
17392
17393 2008-02-01 Kenichi Handa <handa@m17n.org>
17394
17395 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
17396 BOM is not found.
17397 (detect_coding, detect_coding_system): Optimization for ISO-2022
17398 when no 8-bit data is found.
17399
17400 2008-02-01 Jason Rumney <jasonr@gnu.org>
17401
17402 * w32fns.c (x_to_w32_font): Update to use new coding struct.
17403
17404 2008-02-01 Kenichi Handa <handa@m17n.org>
17405
17406 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
17407 CHARS.
17408
17409 2008-02-01 Steven Tamm <steventamm@mac.com>
17410
17411 * macterm.c (mac_encode_char): Add charset argument and update
17412 to use encoding_type.
17413 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
17414 switch to pure fontset.
17415 (decode_mac_font_name): Temporarily remove decoding.
17416 (x_font_name_to_mac_font_name): Temporarily remove encoding.
17417 (x_load_font): Temporarily remove encoding.
17418
17419 2008-02-01 Kenichi Handa <handa@m17n.org>
17420
17421 * xfaces.c (Fface_font): If frame is not on a window system,
17422 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
17423 refer to face->font.
17424 (split_font_name_into_vector, build_font_name_from_vector)
17425 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
17426 when HAVE_WINDOW_SYSTEM is defined.
17427
17428 2008-02-01 Kenichi Handa <handa@m17n.org>
17429
17430 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
17431 (x_produce_glyphs): Fix setting of members of cmp in case
17432 cmp->glyph_len is zero.
17433
17434 * fontset.c (Fset_fontset_font): Fix docstring.
17435 (Ffontset_info): Make it backward compatible. New arg ALL.
17436
17437 2008-02-01 Kim F. Storm <storm@cua.dk>
17438
17439 * process.c (read_process_output): Grow decoding_buf when needed;
17440 this could cause a crash in allocate_string and compact_small_strings.
17441
17442 2008-02-01 Kenichi Handa <handa@m17n.org>
17443
17444 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
17445
17446 2008-02-01 Kenichi Handa <handa@m17n.org>
17447
17448 * coding.c (setup_coding_system): Set coding->common_flags
17449 correctly for raw-text.
17450 (consume_chars): On encoding unibyte text by raw-text, don't check
17451 multibyte form.
17452 (encode_coding): On encoding by raw-text, never use translation tables.
17453
17454 * fileio.c (e_write): Short cut for the case of no encoding.
17455
17456 2008-02-01 Kenichi Handa <handa@m17n.org>
17457
17458 * coding.c (detect_coding, detect_coding_system): Delete unused
17459 variables.
17460
17461 2008-02-01 Kenichi Handa <handa@m17n.org>
17462
17463 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
17464 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
17465
17466 2008-02-01 Kenichi Handa <handa@m17n.org>
17467
17468 * coding.c (Ffind_coding_systems_region_internal): Include
17469 raw-text and no-conversion in the result.
17470
17471 2008-02-01 Kenichi Handa <handa@m17n.org>
17472
17473 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
17474 (load_font_get_repertory): Delete unnecessary check of ENCODING of
17475 FONT_DEF.
17476 (font_def_arg, add_arg, from_arg, to_arg): New args.
17477 (set_fontset_font): Change argument.
17478 (Fset_fontset_font): Fix for the case that TARGET is a script
17479 name and charset name.
17480 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
17481
17482 2008-02-01 Kenichi Handa <handa@m17n.org>
17483
17484 * fontset.c (fontset_font): Rename from fontset_face. Change return
17485 value.
17486 (face_suitable_for_char_p, face_for_char): Adjust for the change
17487 of fontset_font.
17488 (make_fontset_for_ascii_face): Fix setting of the fontset element
17489 for ASCII.
17490 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
17491 to get a font name.
17492 (Ffontset_info): Adjust for the change of fontset_font.
17493
17494 * coding.c (emacs_mule_char): Check invalid code more rigidly.
17495
17496 * character.h (LEADING_CODE_LATIN_1_MIN)
17497 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
17498
17499 2008-02-01 Kenichi Handa <handa@m17n.org>
17500
17501 * editfns.c (check_translation): New function.
17502 (Ftranslate_region_internal): Handle M:N mapping.
17503
17504 2008-02-01 Kenichi Handa <handa@m17n.org>
17505
17506 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
17507
17508 2008-02-01 Kenichi Handa <handa@m17n.org>
17509
17510 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
17511 goto invalid_code.
17512 (decode_coding_iso_2022): Fix handling of invalid designation.
17513
17514 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
17515 after calling code_conversion_save.
17516
17517 2008-02-01 Kenichi Handa <handa@m17n.org>
17518
17519 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
17520
17521 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
17522
17523 * fontset.c: Include "intervals.h".
17524 (fontset_face): Fix comparing of Lisp_Objects.
17525 (free_face_fontset, new_fontset_from_font_name): Fix
17526 Lisp_Object/int mixup.
17527
17528 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
17529
17530 * coding.c: Add many prototypes for static functions.
17531 (get_translation_table): Allow max_lookup to be NULL.
17532 (decode_coding, Ffind_coding_systems_region_internal)
17533 (Funencodable_char_position, Fcheck_coding_systems_region): Call
17534 get_translation_table with max_lookup NULL.
17535
17536 2008-02-01 Kenichi Handa <handa@m17n.org>
17537
17538 * coding.c (get_translation_table): Declare it as Lisp_Object.
17539 (LOOKUP_TRANSLATION_TABLE): New macro.
17540 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
17541 instead of CHAR_TABLE_REF.
17542
17543 2008-02-01 Kenichi Handa <handa@m17n.org>
17544
17545 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
17546 annotation data format.
17547 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
17548 Change arguments FROM and TO to single argument NCHARS. Change caller.
17549 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
17550 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
17551 (decode_coding_ccl, decode_coding_charset): Pay attention to
17552 coding->charbuf_used.
17553 (get_translation): New function.
17554 (produce_chars): New arguments translation_table and last_block.
17555 Translate characters here. Return number of carryover chars.
17556 Change caller.
17557 (produce_composition): New argument pos. Change caller.
17558 Adjust for the change of annotation data format.
17559 (produce_charset, produce_annotation): Likewise.
17560 (decode_coding, encode_coding): Don't call translate_chars.
17561 (consume_chars): New arg translation_table. Change caller.
17562 (translate_chars): Delete.
17563 (syms_of_coding): Make translation-table's number of extra slots 2.
17564
17565 2008-02-01 Kenichi Handa <handa@m17n.org>
17566
17567 * search.c (simple_search): Fix setting this_pos_byte in backward
17568 search.
17569
17570 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
17571 byte sequence.
17572 (detect_coding_ccl): Fix setting of the variable valids.
17573
17574 2008-02-01 Kenichi Handa <handa@m17n.org>
17575
17576 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
17577
17578 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
17579
17580 * editfns.c (Ftranslate_region_internal): Rename from
17581 Ftranslate_region. Accept a char-table in TABLE.
17582 (syms_of_editfns): Defsubr Stranslate_region_internal.
17583
17584 * xfaces.c (set_lface_from_font_name): If a font is specified for
17585 a frame, generate a fontset from the font.
17586 (build_scalable_font_name): If the scalable font is requested for
17587 a specific size, don't change that size.
17588 (try_font_list): Try a scalable font also in the case that a
17589 pattern string is specified.
17590
17591 2008-02-01 Kenichi Handa <handa@m17n.org>
17592
17593 * xfaces.c (Fface_font): New optional arg CHARACTER.
17594
17595 2008-02-01 Kenichi Handa <handa@m17n.org>
17596
17597 * charset.h (CHARSET_OFFSET): New macro.
17598
17599 2008-02-01 Kenichi Handa <handa@m17n.org>
17600
17601 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
17602
17603 * fontset.c (fontset_face): Handle the case that repertory is a
17604 char-table.
17605 (find_font_encoding): Return nil for unknown encoding.
17606 (Fset_fontset_font): Ignore a font of unknown encoding.
17607
17608 2008-02-01 Kenichi Handa <handa@m17n.org>
17609
17610 * keymap.c (describe_vector): Handle default value of a char table.
17611
17612 * fontset.c (fontset_face): Handle fallback fonts correctly.
17613 (Ffontset_info): Return infomation about fallback fonts.
17614
17615 2008-02-01 Kenichi Handa <handa@m17n.org>
17616
17617 * fontset.c (FONTSET_DEFAULT): New macro.
17618 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
17619 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
17620 the case that it is nil.
17621 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
17622 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
17623
17624 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
17625 subset or superset.
17626
17627 2008-02-01 Kenichi Handa <handa@m17n.org>
17628
17629 * emacs.c (main): Call init_charset after syms_of_XXX.
17630
17631 * charset.c (Vcharset_map_directory): Delete.
17632 (Vcharset_map_path): New variable.
17633 (load_charset_map_from_file): Use Vcharset_map_path instead.
17634 (init_charset): Initialize Vcharset_map_path.
17635 (syms_of_charset): Delete declaration of "charset-map-directory",
17636 add declaration of "charset-map-path".
17637
17638 2008-02-01 Kenichi Handa <handa@m17n.org>
17639
17640 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
17641 ASCII only string.
17642
17643 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
17644
17645 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
17646 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
17647
17648 2008-02-01 Kenichi Handa <handa@m17n.org>
17649
17650 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
17651
17652 * coding.c (QCmnemonic, QCdefalut_char)
17653 (QCdecode_translation_table, QCencode_translation_table)
17654 (QCpost_read_conversion, QCpre_write_conversion): New variables.
17655 (get_translation_table): Return a list of translation tables if
17656 necessary.
17657 (decode_coding): Call get_translation_table with ENCODEP 0.
17658 (char_encodable_p): If translation_table is non-nil, always call
17659 translate_char.
17660 (Fdefine_coding_system_internal): Accept list of translation
17661 tables as :encode-translation-table and :decode-translation-table.
17662 (Fcoding_system_put): New function.
17663 (syms_of_coding): Declare new symbols. Defsubr
17664 Scoding_system_put.
17665 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
17666 typically JISX0212.
17667
17668 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
17669 when the charset is superset type.
17670
17671 * character.c (translate_char): Accept list of translation tables.
17672
17673 2008-02-01 Kenichi Handa <handa@m17n.org>
17674
17675 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
17676 (CODING_ATTR_TRANS_TBL): New macro.
17677
17678 * coding.c (get_translation_table): New function.
17679 (translate_chars): Fix the bug of skipping annotation data.
17680 (decode_coding, encode_coding): Utilize get_translation_table.
17681 (char_encodable_p, Funencodable_char_position): Translate char if
17682 necessary.
17683 (Ffind_coding_systems_region_internal)
17684 (Fcheck_coding_systems_region): Setup translation table for encode
17685 in a coding system attribute vector in advance.
17686 (Fdefine_coding_system_internal): Allow a symbol as translation
17687 table. For shift-jis type coding system, allow 4th charset.
17688
17689 2008-02-01 Kenichi Handa <handa@m17n.org>
17690
17691 * coding.c (decode_coding_sjis): Check the first byte rigidly.
17692
17693 * xdisp.c (get_next_display_element): Pass -1 as POS to
17694 FACE_FOR_CHAR if displaying a C-string.
17695
17696 2008-02-01 Kenichi Handa <handa@m17n.org>
17697
17698 * composite.c (get_composition_id): Handle xoff and yoff in a
17699 composition rule.
17700
17701 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
17702 (struct composition): New member lbearing and rbearing.
17703
17704 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
17705 (x_get_glyph_overhangs): Handle a composition glyph.
17706 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
17707
17708 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
17709 composition glyph.
17710
17711 2008-02-01 Kenichi Handa <handa@m17n.org>
17712
17713 * print.c: Include charset.h.
17714 (Vprint_charset_text_property): New variable.
17715 (Qdefault): Extern it.
17716 (PRINT_STRING_NON_CHARSET_FOUND)
17717 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
17718 (print_check_string_result): New variable.
17719 (print_check_string_charset_prop): New function.
17720 (print_prune_charset_plist): New variable.
17721 (print_prune_string_charset): New function.
17722 (print_object): Call print_prune_string_charset if
17723 Vprint_charset_text_property is not t.
17724 (print_interval): Print nothing if interval->plist is nil.
17725 (syms_of_print): Declare Vprint_charset_text_property as a lisp
17726 variable. Init and staticpro print_prune_charset_plist.
17727
17728 2008-02-01 Kenichi Handa <handa@m17n.org>
17729
17730 * fontset.c (new_fontset_from_font_name): Use the specified font
17731 for all characters in the new fontset.
17732
17733 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
17734 OBJECT args.
17735
17736 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
17737 OBJECT args for composition too.
17738
17739 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
17740 OBJECT args.
17741
17742 2008-02-01 Kenichi Handa <handa@m17n.org>
17743
17744 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
17745
17746 * fontset.c (reorder_font_vector): Adjust for the change of
17747 FONT_DEF format.
17748 (fontset_face): New arg id. Change caller.
17749 (face_for_char): New args pos and object.
17750 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
17751 (fs_query_fontset): Check NAME by Fassoc too.
17752 (Fset_fontset_font): Allow non-XLFD font name.
17753 (Ffontset_info): Adjust for the change of FONT_DEF format.
17754
17755 * fontset.h (face_for_char): Adjust prototype.
17756
17757 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
17758 (append_space, extend_face_to_end_of_line)
17759 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
17760 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
17761
17762 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
17763 POS and OBJECT args.
17764
17765 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
17766 POS and OBJECT args.
17767
17768 2008-02-01 Jason Rumney <jasonr@gnu.org>
17769
17770 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
17771 of GlobalAlloc'ed memory.
17772
17773 2008-02-01 Kenichi Handa <handa@m17n.org>
17774
17775 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
17776
17777 * charset.h (charset_table_used): Delete extern.
17778
17779 * charset.c (charset_table_used): Make it static.
17780 (map_charset_chars): Fix args to c_function with.
17781
17782 * chartab.c (map_sub_char_table_for_charset): Fix args to
17783 c_function with.
17784
17785 * coding.h (enum coding_result_code): Delete
17786 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
17787
17788 * coding.c (Qinsufficient_source, Qinconsistent_eol)
17789 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
17790 (Vlast_code_conversion_error): New variables.
17791 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
17792 (ONE_MORE_BYTE): Record error if any instead of signaling an
17793 error. If non-ASCII multibyte char is found, return the negative
17794 value of the code. All callers changed to check it.
17795 (ONE_MORE_BYTE_NO_CHECK): Likewise.
17796 (record_conversion_result): New function. Change all codes setting
17797 coding->result to call this function.
17798 (detect_coding_utf_8, decode_coding_utf_8)
17799 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
17800 Don't use the local variable incomplete.
17801 (emacs_mule_char): Change the second arg to `const'.
17802 (decode_coding): Fix of flushing out unprocessed data.
17803 (make_conversion_work_buffer): Fix making of a work buffer.
17804 (decode_coding_object): Return coding->dst_object.
17805
17806 * fontset.c (set_fontset_font): Fix args.
17807
17808 * lisp.h (CHARACTERBITS): Define as 22.
17809
17810 * process.c (send_process): Be sure to set coding->src_multibyte.
17811
17812 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
17813
17814 2008-02-01 Kenichi Handa <handa@m17n.org>
17815
17816 * xdisp.c (handle_auto_composed_prop): Give limit to
17817 Fnext_single_char_property_change.
17818
17819 2008-02-01 Kenichi Handa <handa@m17n.org>
17820
17821 * composite.c (syms_of_composite): Don't make the composition hash
17822 table weak.
17823
17824 * fontset.c (Fset_fontset_font): Fix docstring.
17825
17826 * lisp.h (detect_coding_system): Adjust prototype.
17827
17828 * fileio.c (kill_workbuf_unwind): Delete this function.
17829 (Finsert_file_contents): Adjust the call of detect_coding_system.
17830 Get conversion_buffer by code_conversion_save. Use the macro
17831 CODING_MAY_REQUIRE_DECODING. After decoding, update
17832 coding_system.
17833
17834 * coding.h (make_conversion_work_buffer): Delete extern.
17835 (code_conversion_save): Extern it.
17836
17837 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
17838 (CODING_GET_INFO): Delete argument eol_type. Change callers.
17839 (decode_coding_utf_8): Don't do eol converion.
17840 (detect_coding_utf_16): Check coding->src_chars, not
17841 coding->src_bytes. Add heuristics for those that have no signature.
17842 (decode_coding_emacs_mule, decode_coding_iso_2022)
17843 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
17844 Don't do eol converion.
17845 (adjust_coding_eol_type): Return a new coding system.
17846 (detect_coding): Don't detect eol. Fix for utf-16 detection.
17847 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
17848 each change.
17849 (decode_coding): Pay attention to undo_list. Do eol conversion for
17850 all types of coding-systems (if necessary).
17851 (Vcode_conversion_work_buf_list): Delete it.
17852 (Vcode_conversion_reused_workbuf): Rename from
17853 Vcode_conversion_reused_work_buf.
17854 (Vcode_conversion_workbuf_name): New variable.
17855 (reused_workbuf_in_use): New variable.
17856 (make_conversion_work_buffer): Delete the arg DEPTH.
17857 (code_conversion_restore): Change argument to cons.
17858 (code_conversion_save): Delete the argument BUFFER. Change callers.
17859 (detect_coding_system): New argument src_chars. Change callers.
17860 Fix for utf-16 detection.
17861 (init_coding_once): Don't use ISO_carriage_return.
17862 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
17863 reused_workbuf_in_use.
17864
17865 2008-02-01 Kenichi Handa <handa@m17n.org>
17866
17867 * keymap.c (store_in_keymap): Pay attention to the case that idx
17868 is a cons specifying a character range.
17869
17870 2008-02-01 Kenichi Handa <handa@m17n.org>
17871
17872 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
17873 HANDLED_RECOMPUTE_PROPS.
17874
17875 * coding.c (Fdefine_coding_system_internal): Fix checking of
17876 ascii compatibility.
17877
17878 2008-02-01 Kenichi Handa <handa@m17n.org>
17879
17880 * charset.c (find_charsets_in_text): Delete unused locale variable.
17881 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
17882
17883 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
17884 Resync charset_list to Vemacs_mule_charset_list.
17885
17886 * keymap.c (store_in_keymap): Pay attention to the case that idx
17887 is a cons specifying a character range.
17888
17889 2008-02-01 Kenichi Handa <handa@m17n.org>
17890
17891 * composite.c (update_compositions): Bind inhibit-read-only, etc
17892 to t before calling remove-list-of-text-properties.
17893
17894 * print.c (print_object): Always print ASCII chars as is.
17895
17896 2008-02-01 Kenichi Handa <handa@m17n.org>
17897
17898 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
17899
17900 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
17901 is a char table.
17902
17903 2008-02-01 Kenichi Handa <handa@m17n.org>
17904
17905 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
17906
17907 2008-02-01 Kenichi Handa <handa@m17n.org>
17908
17909 * xfaces.c (set_lface_from_font_name): Fix for the case that
17910 FONTNAME is not fontset name.
17911
17912 2008-02-01 Kenichi Handa <handa@m17n.org>
17913
17914 * fns.c (base64_encode_1): Fix previous change.
17915
17916 2008-02-01 Kenichi Handa <handa@m17n.org>
17917
17918 * fontset.c (set_fontset_font): New function.
17919 (Fset_fontset_font): If a font is specified for a charset, use
17920 map_charset_chars to store the font spec in a fontset.
17921
17922 2008-02-01 Kenichi Handa <handa@m17n.org>
17923
17924 * fontset.c (fontset_face): Create a fallback fontset on demand.
17925 (make_fontset): Don't create a fallback fontset here.
17926 (free_face_fontset): Free a fallback fontset (if any) too.
17927 (n_auto_fontsets): Delete this variable.
17928 (auto_fontset_alist): New variable.
17929 (new_fontset_from_font_name): Check auto_fontset_alist.
17930 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
17931 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
17932 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
17933 Defsubr Sfontset_list_all.
17934
17935 2008-02-01 Kenichi Handa <handa@m17n.org>
17936
17937 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
17938
17939 2008-02-01 Kenichi Handa <handa@m17n.org>
17940
17941 * fontset.c (Fnew_fontset): Check NAME more rigidly.
17942
17943 2008-02-01 Kenichi Handa <handa@m17n.org>
17944
17945 * editfns.c (Fgoto_char): Fix docstring.
17946
17947 2008-02-01 Kenichi Handa <handa@m17n.org>
17948
17949 * insdel.c (insert_from_gap): Adjust intervals correctly.
17950
17951 2008-02-01 Jason Rumney <jasonr@gnu.org>
17952
17953 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
17954 (pfnGetFontUnicodeRanges): New dynamically loaded function.
17955 (w32_initialize): Try to load it.
17956 (x_get_font_repertory): Use it if available.
17957 (w32_encode_char): Add shortcut for unicode output.
17958
17959 * w32fns.c (w32_load_system_font): Default charset to -1.
17960 (x_to_w32_charset): Match all fonts for unicode.
17961 (w32_to_x_charset): New parameter matching. Don't return partial
17962 or wildcard charsets.
17963 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
17964 (w32_codepage_for_font): Return CP_UNICODE for unicode.
17965 (w32_to_x_font): Match charset to real charset.
17966 (enum_font_cb2): Always list unicode versions.
17967
17968 * makefile.w32-in (temacs): Increase EMHEAP.
17969
17970 2008-02-01 Jason Rumney <jasonr@gnu.org>
17971
17972 * w32term.c (w32_encode_char): New charset parameter.
17973 font_info.encoding becomes encoding_type.
17974 (x_get_font_repertory): New function. Warning: stub only!
17975 (x_new_font): Return quickly if font already set.
17976 (x_new_fontset): fontsetname parameter is Lisp_Object.
17977 Use new fs_query_fontset. Try new_fontset_from_font_name.
17978 Use fontset_name for return value.
17979
17980 * w32term.h: Declare x_get_font_repertory.
17981
17982 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
17983 place of find_charset_in_text. Use encode_coding_object in place
17984 of encode_coding.
17985 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
17986 decode_coding.
17987
17988 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
17989 of x_new_fontset.
17990 (w32_load_system_font): Initialize charset as unicode.
17991 font_info.encoding becomes encoding_type.
17992 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
17993 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
17994 (syms_of_w32fns): Set get_font_repertory_func.
17995
17996 * w32console.c: Include character.h. Use terminal_encode_buffer
17997 from term.c.
17998 (write_glyphs): Use new version of encode_terminal_code. Use
17999 encode_coding_object in place of encode_coding.
18000
18001 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
18002 encoding becomes encoding_type.
18003
18004 * term.c (terminal_encode_buffer): Make externally visible.
18005
18006 * makefile.w32-in: Add character.h dependancies.
18007 (character.o, chartab.o): New targets.
18008
18009 2008-02-01 Kenichi Handa <handa@m17n.org>
18010
18011 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
18012 CODING_ID_EOL_TYPE.
18013
18014 2008-02-01 Andreas Schwab <schwab@suse.de>
18015
18016 * coding.c (produce_chars): Revert last change.
18017
18018 2008-02-01 Kenichi Handa <handa@m17n.org>
18019
18020 * charset.h (charset_unicode): Extern it.
18021
18022 * charset.c (string_xstring_p): Check by (C >= 0x100).
18023 (find_charsets_in_text): Change format of the arc CHARSETS. New
18024 arg MULTIBYTE.
18025 (Ffind_charset_region, Ffind_charset_string): Adjust for the
18026 change of find_charsets_in_text.
18027 (Fsplit_char): Fix doc. Never return unknown.
18028
18029 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
18030
18031 * coding.c (Fdefine_coding_system_alias): Update
18032 Vcoding_system_list.
18033
18034 * fontset.c (load_font_get_repertory): Pay attention to the case
18035 that ENCODING of a font is specified by a char-table.
18036
18037 * xterm.c (x_get_font_repertory): Handle the case that the
18038 encoding of font is other than Unicode.
18039
18040 2008-02-01 Kenichi Handa <handa@m17n.org>
18041
18042 * term.c (encode_terminal_code): Don't handle glyph-table. Check
18043 if a character is encodable by the terminal coding system. If
18044 not, produces proper number of `?'s. Update
18045 terminal_encode_buffer and terminal_encode_buf_size if necessary.
18046 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
18047
18048 2008-02-01 Kenichi Handa <handa@m17n.org>
18049
18050 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
18051 variables.
18052 (encode_terminal_code): Change argument. Encode multiple
18053 characters at once. Store the result of encoding in
18054 terminal_encode_buffer.
18055 (write_glyphs, insert_glyphs): Adjust for the change of
18056 encode_terminal_code.
18057 (term_init): Initialize terminal_encode_buffer and
18058 terminal_encode_buf_size.
18059
18060 * coding.c (consume_chars): If coding->src_object is nil, don't
18061 check annotation.
18062
18063 2008-02-01 Kenichi Handa <handa@m17n.org>
18064
18065 * character.c (char_string): Use ASCII_CHAR_P instead of
18066 SINGLE_BYTE_CHAR_P.
18067
18068 2008-02-01 Kenichi Handa <handa@m17n.org>
18069
18070 * xdisp.c (handle_auto_composed_prop): Check if the last
18071 characters of auto-composed region is newly composed with the
18072 following characters.
18073 (handle_composition_prop): Fix checking of point being inside
18074 composition.
18075
18076 2008-02-01 Kenichi Handa <handa@m17n.org>
18077
18078 * fns.c (concat): Don't change multibyteness of the result by
18079 concatenating an 8-bit character.
18080
18081 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
18082 multibyteness of the result when newelt is an 8-bit character.
18083
18084 2008-02-01 Dave Love <fx@gnu.org>
18085
18086 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
18087 EMACS_INT.
18088
18089 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
18090
18091 * xfaces.c (face_numeric_value): Declare dim size_t.
18092 (Finternal_lisp_face_equal_p): Remove unused f.
18093
18094 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
18095 (MATRIX_ROW): Remove unused vars.
18096 (draw_glyphs, x_insert_glyphs, fast_find_position)
18097 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
18098 byte/char counts.
18099
18100 * regex.c (regex_compile): Remove unused var.
18101
18102 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
18103
18104 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
18105 (Faccessible_keymaps, where_is_internal): Remove unused vars.
18106
18107 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
18108
18109 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
18110
18111 * fileio.c (Fwrite_region): Remove unused var.
18112
18113 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
18114 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
18115
18116 * composite.c (Fremove_list_of_text_properties): Declare.
18117
18118 * coding.c (inhibit_pre_post_conversion): Remove (unused).
18119 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
18120 (coding_inherit_eol_type): Remove unused attrs.
18121 (detect_coding): Cast arg of detect_eol.
18122
18123 * charset.c (syms_of_charset): Remove unused var p.
18124 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
18125 byte/char counts.
18126
18127 * casetab.c (set_case_table): Remove unused var.
18128
18129 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
18130 unused vars.
18131
18132 2008-02-01 Dave Love <fx@gnu.org>
18133
18134 * xterm.c (x_bitmap_mask): Declare.
18135
18136 2008-02-01 Dave Love <fx@gnu.org>
18137
18138 * xterm.c (x_term_init): Fix type error.
18139
18140 * lisp.h: Add Funibyte_char_to_multibyte.
18141
18142 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
18143 (Fset_coding_system_priority): Doc fix.
18144
18145 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
18146
18147 * indent.c (check_composition): Make start and end EMACS_INT.
18148
18149 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
18150
18151 * xdisp.c (handle_composition_prop, check_point_in_composition):
18152 Make buffer positions EMACS_INT.
18153
18154 * composite.c (find_composition, run_composition_function)
18155 (update_compositions, Ffind_composition_internal): Make buffer
18156 positions EMACS_INT.
18157
18158 * composite.h (find_composition, update_compositions): Make
18159 position args EMACS_INT.
18160
18161 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
18162
18163 * intervals.c (get_property_and_range):
18164 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
18165
18166 * unexalpha.c: Don't include varargs.h.
18167
18168 2008-02-01 Dave Love <fx@gnu.org>
18169
18170 * coding.h (ENCODE_UTF_8): New.
18171
18172 * Makefile.in (gtkutil.o): Depend on coding.h.
18173
18174 * coding.c (Fset_coding_system_priority): Doc fix.
18175
18176 2008-02-01 Kenichi Handa <handa@m17n.org>
18177
18178 * fileio.c (Finsert_file_contents): Call setup_coding_system in
18179 the case of auto saving.
18180
18181 2008-02-01 Andreas Schwab <schwab@suse.de>
18182
18183 * chartab.c (map_char_table, map_char_table_for_charset): Protect
18184 `range' from GC.
18185
18186 2008-02-01 Kenichi Handa <handa@m17n.org>
18187
18188 * coding.c (decode_coding_sjis): Check bytes more rigidly.
18189
18190 2008-02-01 Kenichi Handa <handa@m17n.org>
18191
18192 * fileio.c (choose_write_coding_system): Return a decided coding system.
18193 (Fwrite_region): Set Vlast_coding_system_used to the return value
18194 of choose_write_coding_system.
18195
18196 2008-02-01 Kenichi Handa <handa@m17n.org>
18197
18198 * charset.c (Fset_charset_priority): Pay attention to duplicated
18199 arguments.
18200
18201 * coding.c (QCcategory): New variable.
18202 (syms_of_coding): Defsym it. Set all elements of
18203 Vcoding_category_table and their symbol values.
18204 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
18205 coding-category-XXX, and coding-category-list.
18206 (Fdefine_coding_system_internal): Add category in the plist.
18207
18208 2008-02-01 Kenichi Handa <handa@m17n.org>
18209
18210 * callproc.c (Fcall_process): Handle carryover correctly.
18211
18212 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
18213 (raw_text_coding_system): Check NILP (coding_system).
18214 (coding_inherit_eol_type): Check NILP (coding_system) and
18215 NILP (parent).
18216 (consume_chars): Fix for the case of raw-text.
18217
18218 * process.c (read_process_output): Handle carryover correctly.
18219
18220 2008-02-01 Dave Love <fx@gnu.org>
18221
18222 * regex.c (re_search_2): Fix last change.
18223
18224 2008-02-01 Kenichi Handa <handa@m17n.org>
18225
18226 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
18227 target_multibyte. Even in a unibyte case, return a converted
18228 multibyte char.
18229 (GET_CHAR_AFTER): New macro.
18230 (PATFETCH): Translate via multibyte char.
18231 (HANDLE_UNIBYTE_RANGE): Delete this macro.
18232 (SETUP_MULTIBYTE_RANGE): New macro.
18233 (regex_compile): Setup compiled code so that its multibyteness
18234 matches that of a target. Fix the handling of "[X-YZ]" using
18235 SETUP_MULTIBYTE_RANGE.
18236 (analyse_first) <charset>: For filling fastmap for all multibyte
18237 characters, don't check by BASE_LEADING_CODE_P.
18238 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
18239 the same as RE_MULTIBYTE_P (bufp) now.
18240 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
18241 (TARGET_CHAR_AND_LENGTH): Delete this macro.
18242 (TRANSLATE_VIA_MULTIBYTE): New macro.
18243 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
18244 It is the same as RE_MULTIBYTE_P (bufp) now.
18245 <exactn>: Translate via multibyte.
18246 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
18247 translate it.
18248 <charset, charset_not>: Fetch a character by
18249 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
18250 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
18251 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
18252 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
18253 by GET_CHAR_AFTER.
18254 (bcmp_translate): Likewise.
18255
18256 * search.c (compile_pattern): Check the member target_multibyte,
18257 not the member multibyte of buf.
18258
18259 * lread.c (read1): While reading a string, set force_singlebyte
18260 and force_multibyte correctly.
18261
18262 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
18263 up of unibyte_to_multibyte_table.
18264
18265 2008-02-01 Kenichi Handa <handa@m17n.org>
18266
18267 * coding.c (setup_coding_system): If coding has
18268 post-read-conversion or pre-write-conversion, set
18269 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
18270 respectively.
18271 (decode_coding_gap): Run post-read-conversion if any.
18272
18273 * fileio.c (Finsert_file_contents): Even if we read into a
18274 unibyte buffer, check if we must decode the result or not.
18275
18276 2008-02-01 Kenichi Handa <handa@m17n.org>
18277
18278 * coding.c (make_conversion_work_buffer): Change the work buffer
18279 name to the same one as that of Emacs 21.
18280
18281 2008-02-01 Kenichi Handa <handa@m17n.org>
18282
18283 * coding.h (make_conversion_work_buffer): Adjust prototype.
18284 (code_conversion_restore): Don't extern it.
18285
18286 * coding.c (detected_mask): Delete unused variable.
18287 (decode_coding_iso_2022): Pay attention to the byte sequence of
18288 CTEXT extended segment, and retain those bytes as is.
18289 (decode_coding_ccl): Delete unused variable `valids'.
18290 (setup_coding_system): Delete unused variable `category'.
18291 (consume_chars): Delete unused variable `category'. Make it work
18292 for non-multibyte case.
18293 (make_conversion_work_buffer): Change argument.
18294 (saved_coding): Delete unused variable.
18295 (code_conversion_restore): Don't check saved_coding->destination.
18296 (code_conversion_save): New function.
18297 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
18298 instead of record_unwind_protect.
18299 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
18300 (detect_coding_system): Delete unused variable `mask'.
18301 (Fdefine_coding_system_internal): Delete unused variable id.
18302
18303 * fileio.c (kill_workbuf_unwind): New function.
18304 (Finsert_file_contents): On replacing, call
18305 make_conversion_work_buffer with correct args, and call
18306 record_unwind_protect with the first arg kill_workbuf_unwind.
18307
18308 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
18309
18310 2008-02-01 Kenichi Handa <handa@m17n.org>
18311
18312 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
18313 (fontset_add): Fix for the case that TO is less than TO1.
18314 (Ffontset_info): Don't use fallback fontset on checking the
18315 default fontset.
18316 (dump_fontset): New function for debugging.
18317
18318 * coding.c (Fdefine_coding_system_internal): Fix for the case that
18319 coding_type is Qcharset.
18320
18321 2008-02-01 Kenichi Handa <handa@m17n.org>
18322
18323 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
18324 (map_char_table): Don't inherit the value from the parent on
18325 initializing VAL. Adjust for the above change.
18326
18327 2008-02-01 Kenichi Handa <handa@m17n.org>
18328
18329 * coding.c (Qsignature, Qendian): Delete these variables.
18330 (syms_of_coding): Don't initialize them.
18331 (CATEGORY_MASK_UTF_16_AUTO): New macro.
18332 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
18333 detect_info->found.
18334 (decode_coding_utf_16): Don't detect BOM here.
18335 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
18336 is NOT utf_16_without_bom.
18337 (setup_coding_system): For a coding system of type utf-16, check
18338 if the attribute :endian is Qbig or not (not nil or not), and set
18339 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
18340 (detect_coding): If coding type is utf-16 and BOM detection is
18341 required, detect it.
18342 (Fdefine_coding_system_internal): For a coding system of type
18343 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
18344
18345 2008-02-01 Kenichi Handa <handa@m17n.org>
18346
18347 * coding.c (coding_set_source): Fix for the case that the current
18348 buffer is different from coding->src_object.
18349 (decode_coding_object): Don't use the conversion work buffer if
18350 DST_OBJECT is a buffer.
18351
18352 2008-02-01 Dave Love <fx@gnu.org>
18353
18354 * lread.c (read_emacs_mule_char) [len==2]: Index
18355 emacs_mule_charset correctly.
18356
18357 2008-02-01 Dave Love <fx@gnu.org>
18358
18359 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
18360 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
18361 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
18362 treated specially.)
18363 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
18364 (detected_mask): Remove Big5 bits.
18365
18366 2008-02-01 Kenichi Handa <handa@m17n.org>
18367
18368 The following changes are to make the font rescaling facility
18369 compatible with Emacs 21.
18370
18371 * xfaces.c (Vface_font_rescale_alist): Rename from
18372 Vface_resizing_fonts.
18373 (struct font_name): Rename member resizing_ratio to rescale_ratio.
18374 (font_rescale_ratio): Rename from font_resizing_ratio.
18375 (split_font_name): Set font->rescale_ratio.
18376 (better_font_p): Pay attention to font->rescale_ratio.
18377 (build_scalable_font_name): Likewise. Change RESX, and RESY
18378 fields.
18379 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
18380
18381 2008-02-01 Kenichi Handa <handa@m17n.org>
18382
18383 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
18384 (Qutf_16_le): Remove these variables.
18385 (syms_of_coding): Don't DEFSYM them.
18386 (decode_coding_utf_16): Fix handling of BOM.
18387 (encode_coding_utf_16): Fix handling of BOM.
18388
18389 2008-02-01 Kenichi Handa <handa@m17n.org>
18390
18391 * fileio.c (Finsert_file_contents): On replacing, before decoding
18392 the file into the work buffer, set point of the work buffer to the end.
18393
18394 2008-02-01 Dave Love <fx@gnu.org>
18395
18396 * coding.c (Fcheck_coding_systems_region): Fix type errors.
18397
18398 2008-02-01 Dave Love <fx@gnu.org>
18399
18400 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
18401 and fix C types.
18402
18403 2008-02-01 Kenichi Handa <handa@m17n.org>
18404
18405 * xdisp.c (SKIP_GLYPHS): New macro.
18406 (set_cursor_from_row): Pay attention to string display properties.
18407
18408 * category.c (copy_category_entry): Fix for the case that RANGE
18409 is an integer.
18410
18411 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
18412
18413 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
18414
18415 2008-02-01 Kenichi Handa <handa@m17n.org>
18416
18417 * charset.c (Fcharset_id_internal): New function.
18418 (syms_of_charset): Defsubr it.
18419
18420 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
18421 with the last arg charset_list acquired from coding.
18422 (Fdefine_coding_system_internal): For ccl-based coding system, fix
18423 the attribute coding_attr_ccl_valids.
18424
18425 * coding.h (enum define_coding_ccl_arg_index): Set the first
18426 member coding_arg_ccl_decoder to coding_arg_max.
18427
18428 * ccl.h (ccl_driver): Adjust prototype.
18429
18430 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
18431 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
18432 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
18433 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
18434 last arg Qnil.
18435
18436 2008-02-01 Kenichi Handa <handa@m17n.org>
18437
18438 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
18439 call encode_char.
18440
18441 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
18442
18443 2008-02-01 Dave Love <fx@gnu.org>
18444
18445 * composite.c (syms_of_composite): Make composition_hash_table weak.
18446
18447 2008-02-01 Kenichi Handa <handa@m17n.org>
18448
18449 * dispextern.h (check_face_attributes, generate_ascii_font_name)
18450 (font_name_registry): Don't extern them.
18451 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
18452
18453 * fontset.h (Qfontset): Don't extern it.
18454 (new_fontset_from_font_name): Extern it.
18455
18456 * fontset.c: Give 8 extra slots to fontset objects.
18457 (Qfontset_info): New variable.
18458 (syms_of_fontset): Defsym it.
18459 (FONTSET_FALLBACK): New macro.
18460 (fontset_face): Try also the default fontset.
18461 (make_fontset): Realize a fallback fontset from the default fontset.
18462 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
18463 using split_font_name_into_vector and build_font_name_from_vector.
18464 (Fset_fontset_font): Access the elements of font_spec by enum
18465 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
18466 name by using split_font_name_into_vector.
18467 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
18468 generate a proper font name from the fontset name. Update
18469 Vfontset_alias_alist.
18470 (n_auto_fontsets): New variable.
18471 (new_fontset_from_font_name): New function.
18472 (Ffont_info): Store the information about fonts generated from the
18473 default fontset in the first extra slot of the returned char-table.
18474
18475 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
18476 (font_name_registry): Delete function.
18477 (split_font_name_into_vector): New function.
18478 (build_font_name_from_vector): New function.
18479 (font_list): The argument REGISTRY is now a list of registry names.
18480 (choose_face_font): If we are choosing an ASCII font, and ATTRS
18481 specifies an explicit font name, return the name as is. Make a
18482 list of registy names.
18483
18484 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
18485 of x_new_fontset.
18486 (Fx_create_frame): Don't call x_new_fontset here. Just use
18487 x_list_fonts to check the existence of fonts.
18488
18489 * xterm.h (x_new_fontset): Adjust prototype.
18490
18491 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
18492 string. Use new_fontset_from_font_name to create a fontset from a
18493 font name.
18494
18495 2008-02-01 Kenichi Handa <handa@m17n.org>
18496
18497 * syntax.c (Vfind_word_boundary_function_table): New name for
18498 Vnext_word_boundary_function_table.
18499 (find-word-boundary-function-table): New name for
18500 next-word-boundary-function-table.
18501
18502 2008-02-01 Dave Love <fx@gnu.org>
18503
18504 * Makefile.in: Fix some dependencies.
18505
18506 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
18507 set it to nil before returning.
18508
18509 * composite.c (update_compositions): Fix type error.
18510
18511 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
18512
18513 2008-02-01 Kenichi Handa <handa@m17n.org>
18514
18515 * xterm.c (x_new_font): Optimize for the case that the font is
18516 already set for the frame.
18517
18518 2008-02-01 Kenichi Handa <handa@m17n.org>
18519
18520 * chartab.c (char_table_ascii): Check if the char table contents
18521 is sub-char-table or not.
18522 (char_table_set, char_table_set_range): Fix argument to
18523 char_table_ascii.
18524
18525 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
18526 (detect_coding_utf_8, detect_coding_utf_16)
18527 (detect_coding_emacs_mule, detect_coding_iso_2022)
18528 (detect_coding_sjis, detect_coding_big5)
18529 (detect_coding_ccl, detect_coding_charset): Change argument MASK
18530 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
18531 sequence is valid in this coding system. Change callers.
18532 (MAX_ANNOTATION_LENGTH): New macro.
18533 (ADD_ANNOTATION_DATA): New macro.
18534 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
18535 ADD_ANNOTATION_DATA. Change the format of annotation data.
18536 (ADD_CHARSET_DATA): New macro.
18537 (emacs_mule_char): New argument ID. Change callers.
18538 (decode_coding_emacs_mule, decode_coding_iso_2022)
18539 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
18540 Produce charset annotation data in coding->charbuf.
18541 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
18542 to charset annotation data in coding->charbuf.
18543 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
18544 coding->common_flags if the coding system is iso-2022 based and
18545 uses designation.
18546 (produce_composition): Adjust for the new annotation data format.
18547 (produce_charset): New function.
18548 (produce_annotation): Handle charset annotation.
18549 (handle_composition_annotation, handle_charset_annotation): New
18550 functions.
18551 (consume_chars): Handle charset annotation. Utilize the above two
18552 functions.
18553 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
18554 buffer, get the deleted text as a string and set
18555 coding->src_object to that string.
18556 (detect_coding, detect_coding_system): Use the new struct
18557 coding_detection_info.
18558
18559 * coding.h (struct coding_detection_info): New structure.
18560 (struct coding_system): Adjust prototype of the member `detector'.
18561 (CODING_ANNOTATE_CHARSET_MASK): New macro.
18562
18563 2008-02-01 Kenichi Handa <handa@m17n.org>
18564
18565 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
18566
18567 2008-02-01 Dave Love <fx@gnu.org>
18568
18569 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
18570 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
18571 to new local and nullify apropos_accumulate before returning.
18572 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
18573
18574 2008-02-01 Kenichi Handa <handa@m17n.org>
18575
18576 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
18577 correctly.
18578
18579 2008-02-01 Dave Love <fx@gnu.org>
18580
18581 * fns.c (Flanginfo): Call synchronize_system_time_locale.
18582
18583 2008-02-01 Kenichi Handa <handa@m17n.org>
18584
18585 The following changes are to make character composition happen
18586 automatically on displaying.
18587
18588 * Makefile.in (lisp, shortlisp): Add composite.elc.
18589
18590 * composite.h (Qauto_composed, Vauto_composition_function)
18591 (Qauto_composition_function): Extern them.
18592
18593 * composite.c (Vcomposition_function_table)
18594 (Qcomposition_function_table): Delete variables.
18595 (Qauto_composed, Vauto_composition_function)
18596 (Qauto_composition_function): New variables.
18597 (run_composition_function): Don't call
18598 compose-chars-after-function.
18599 (update_compositions): Clear `auto-composed' text property.
18600 (compose_chars_in_text): Delete this function.
18601 (syms_of_composite): Staticpro Qauto_composed and
18602 Qauto_composition_function. Declare Vauto_composition_function as
18603 a Lisp variable.
18604
18605 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
18606
18607 * xdisp.c (it_props): Add an entry for Qauto_composed.
18608 (handle_auto_composed_prop): New function.
18609
18610 * xselect.c (selection_data_to_lisp_data): Don't call
18611 compose_chars_in_text.
18612
18613 2008-02-01 Dave Love <fx@gnu.org>
18614
18615 * keyboard.c (read_char): Modify checking around use of
18616 Vkeyboard_translate_table.
18617
18618 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
18619 and fix C types.
18620
18621 2008-02-01 Kenichi Handa <handa@m17n.org>
18622
18623 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
18624 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
18625 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
18626 the case that the last byte is '\r' correctly.
18627 (decode_coding): Flush out the unprocessed data correctly.
18628 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
18629
18630 2008-02-01 Dave Love <fx@gnu.org>
18631
18632 * xterm.c (XTread_socket): Fix changes for defined keysyms.
18633 Add XK_ISO... case.
18634 (xaw_scroll_callback): Revert last change.
18635
18636 2008-02-01 Kenichi Handa <handa@m17n.org>
18637
18638 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
18639
18640 2008-02-01 Kenichi Handa <handa@m17n.org>
18641
18642 * xfaces.c (Vface_resizing_fonts): New variable.
18643 (struct font_name): New member `resizing_ratio'.
18644 (font_resizing_ratio): New function.
18645 (split_font_name): Set font->resizing_ratio.
18646 (better_font_p): Pay attention to font->resizing_ratio.
18647 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
18648 RESX, and RESY fields.
18649 (try_alternative_families): Try scalable fonts if
18650 Vscalable_fonts_allowed is not Qt.
18651 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
18652
18653 2008-02-01 Dave Love <fx@gnu.org>
18654
18655 * xterm.c (xaw_scroll_callback): Cast correctly.
18656
18657 2008-02-01 Dave Love <fx@gnu.org>
18658
18659 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
18660 (lispy_kana_keys): Comment out.
18661 (make_lispy_event) [XK_kana_A]: Comment out.
18662
18663 * xterm.c (xaw_scroll_callback): Cast call_data.
18664 (XTread_socket): Deal with ASCII keysyms.
18665 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
18666
18667 2008-02-01 Dave Love <fx@gnu.org>
18668
18669 * xterm.c (Vx_keysym_table): New.
18670 (syms_of_xterm): Initialize it.
18671 (XTread_socket): Use it.
18672 From head: Eliminate incorrect optimization that tried to avoid
18673 decoding the output of X*LookupString.
18674 (x_get_font_repertory): Delete charset declaration.
18675
18676 2008-02-01 Kenichi Handa <handa@m17n.org>
18677
18678 * coding.c (detect_coding_charset): If only ASCII bytes are found,
18679 return 0.
18680 (Fdefine_coding_system_internal): Setup
18681 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
18682
18683 2008-02-01 Dave Love <fx@gnu.org>
18684
18685 * coding.c (Fcheck_coding_system): Doc fix.
18686
18687 * editfns.c (Finsert_byte): Return a proper value.
18688
18689 2008-02-01 Kenichi Handa <handa@m17n.org>
18690
18691 * coding.c (decode_coding): Fix args to translate_chars. Pay
18692 attention to Vstandard_translation_table_for_decode.
18693 (encode_coding): Fix args to translate_chars. Pay attention to
18694 Vstandard_translation_table_for_encode.
18695
18696 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
18697 SINGLE_BYTE_CHAR_P.
18698
18699 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
18700 not by SINGLE_BYTE_CHAR_P.
18701
18702 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
18703 SINGLE_BYTE_CHAR_P.
18704
18705 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
18706 SINGLE_BYTE_CHAR_P.
18707
18708 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
18709 by SINGLE_BYTE_CHAR_P.
18710
18711 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
18712 SINGLE_BYTE_CHAR_P.
18713
18714 2008-02-01 Dave Love <fx@gnu.org>
18715
18716 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
18717
18718 2008-02-01 Dave Love <fx@gnu.org>
18719
18720 * fns.c (Flanginfo): Fix typo.
18721
18722 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
18723
18724 2008-02-01 Kenichi Handa <handa@m17n.org>
18725
18726 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
18727 (detect_coding_emacs_mule, detect_coding_iso_2022)
18728 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
18729 incomplete byte sequence. Don't update *mask when correctly detected.
18730 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
18731 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
18732 (detect_coding, detect_coding_system): Adjust for the changes above.
18733
18734 2008-02-01 Kenichi Handa <handa@m17n.org>
18735
18736 * character.c (char_string): Rename from
18737 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
18738 (string_char): Rename from string_char.
18739
18740 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
18741 if C is greater than MAX_3_BYTE_CHAR.
18742 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
18743 string_char instead of string_char_with_unification.
18744
18745 2008-02-01 Dave Love <fx@gnu.org>
18746
18747 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
18748
18749 2008-02-01 Kenichi Handa <handa@m17n.org>
18750
18751 * keymap.c (push_key_description): Pay attention to force_multibyte.
18752
18753 * regex.c (re_search_2): Fix for the case of unibyte buffer.
18754
18755 2008-02-01 Dave Love <fx@gnu.org>
18756
18757 * charset.c (define_charset_internal): Rename `supprementary'.
18758
18759 * Makefile.in (lisp, shortlisp): Remove latin-N.
18760
18761 2008-02-01 Dave Love <fx@gnu.org>
18762
18763 * xfns.c (x_window, x_window): Use use_xim.
18764
18765 * xterm.c (use_xim): Initialize.
18766 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
18767 (x_term_init): Maybe set use_xim.
18768
18769 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
18770
18771 2008-02-01 Kenichi Handa <handa@m17n.org>
18772
18773 * search.c (search_buffer): Fix case-fold-search of multibyte
18774 characters.
18775 (boyer_moore): Rename the last argument to char_high_bits.
18776
18777 2008-02-01 Kenichi Handa <handa@m17n.org>
18778
18779 * xdisp.c (display_string): Fix for the case of zero width glyph.
18780
18781 * xfns.c (x_set_font): Change the error message of the case that
18782 x_new_fontset returns Qt.
18783
18784 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
18785 (Finternal_set_lisp_face_attribute): Use signal_error for the
18786 error of invalid fontset.
18787
18788 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
18789 fontset, return Qt.
18790
18791 2008-02-01 Dave Love <fx@gnu.org>
18792
18793 * unexelf.c (unexec): Make .got handling not SGI-specific.
18794
18795 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
18796
18797 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
18798
18799 * keyboard.c (read_key_sequence): Fix type error.
18800
18801 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
18802 type error.
18803
18804 * fontset.c (fontset_add): Return Lisp_Object.
18805
18806 2008-02-01 Dave Love <fx@gnu.org>
18807
18808 * charset.h (charset_ordered_list_tick): Declare extern.
18809
18810 2008-02-01 Kenichi Handa <handa@m17n.org>
18811
18812 The following changes (and some of 2008-02-01 changes of mine) are
18813 for handling syntax, category, and case conversion for unibyte
18814 characters by converting them to multibyte on the fly. With these
18815 changes, we don't have to setup syntax and case tables for unibyte
18816 characters in each language environment.
18817
18818 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
18819 multibyte if necessary.
18820
18821 * bytecode.c (Fbyte_code): Likewise.
18822
18823 * character.h (LEADING_CODE_LATIN_1_MIN)
18824 (LEADING_CODE_LATIN_1_MAX): New macros.
18825 (unibyte_to_multibyte_table): Extern it.
18826 (unibyte_char_to_multibyte): New macro.
18827 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
18828 (CHAR_LEADING_CODE): New macro.
18829 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
18830
18831 * character.c (unibyte_to_multibyte_table): New variable.
18832 (unibyte_char_to_multibyte): Move to character.h and define as macro.
18833 (multibyte_char_to_unibyte): If C is an eight-bit character,
18834 convert it to the corresponding byte value.
18835
18836 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
18837 not 1, signals an error. Update the elements of
18838 unibyte_to_multibyte_table.
18839 (init_charset_once): Initialize unibyte_to_multibyte_table.
18840 (syms_of_charset): Define the charset `iso-8859-1'.
18841
18842 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
18843 as is without converting it to unibyte. In a unibyte buffer,
18844 convert C to multibyte before checking the syntax.
18845
18846 * lisp.h (unibyte_char_to_multibyte): Delete extern.
18847
18848 * minibuf.c (Fminibuffer_complete_word): Use the macro
18849 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
18850
18851 * regex.h (struct re_pattern_buffer): New member target_multibyte.
18852
18853 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
18854 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
18855 that is zero, convert an eight-bit char to multibyte.
18856 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
18857 non-emacs case.
18858 (PATFETCH): Convert an eight-bit char to multibyte.
18859 (HANDLE_UNIBYTE_RANGE): New macro.
18860 (regex_compile): Setup the compiled pattern for multibyte chars
18861 even if the given regex string is unibyte. Use PATFETCH_RAW
18862 instead of PATFETCH in many places. To handle `charset'
18863 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
18864 only for ASCII chars.
18865 (analyse_first) <exactn>: Simplify because the compiled pattern
18866 is multibyte.
18867 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
18868 <charset>: Use CHAR_LEADING_CODE to get leading codes.
18869 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
18870 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
18871 multibyte always 1.
18872 (re_search_2): In emacs, set the locale variable multibyte to 1,
18873 otherwise to 0. New local variable target_multibyte. Check it
18874 to decide the multibyteness of STR1 and STR2. If
18875 target_multibyte is zero, convert unibyte chars to multibyte
18876 before translating and checking fastmap.
18877 (TARGET_CHAR_AND_LENGTH): New macro.
18878 (re_match_2_internal): In emacs, set the locale variable multibyte
18879 to 1, otherwise to 0. New local variable target_multibyte. Check
18880 it to decide the multibyteness of STR1 and STR2. Use
18881 TARGET_CHAR_AND_LENGTH to fetch a character from D.
18882 <charset, charset_not>: If multibyte is nonzero, check fastmap
18883 only for ASCII chars. Call bcmp_translate with
18884 target_multibyte, not with multibyte.
18885 <begline>: Declare the local variable C as `unsigned'.
18886 (bcmp_translate): Change the last arg name to target_multibyte.
18887
18888 * search.c (compile_pattern_1): Don't adjust the multibyteness of
18889 the regexp pattern and the matching target. Set cp->buf.multibyte
18890 to the multibyteness of the regexp pattern. Set
18891 cp->but.target_multibyte to the multibyteness of the matching target.
18892 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
18893 FETCH_STRING_CHAR_ADVANCE.
18894 (Freplace_match): Convert unibyte chars to multibyte.
18895
18896 * syntax.c (char_quoted, back_comment, scan_words)
18897 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
18898 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
18899 unibyte chars to multibyte.
18900 (skip_chars): Delete the arg syntaxp, and move the code for
18901 handling syntaxes to skip_syntaxes. Change callers.
18902 Fix the case that the multibyteness of STRING and the current
18903 buffer doesn't match.
18904 (skip_syntaxes): New function.
18905 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
18906 SINGLE_BYTE_CHAR_P.
18907
18908 2008-02-01 Kenichi Handa <handa@m17n.org>
18909
18910 * xfaces.c (QCfontset): New variable.
18911 (LFACE_FONTSET): New macro.
18912 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
18913 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
18914 (Finternal_set_lisp_face_attribute)
18915 (Finternal_get_lisp_face_attribute): Handle QCfontset.
18916 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
18917 check also LFACE_FONTSET_INDEX.
18918 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
18919 attrs[LFACE_FONT_INDEX].
18920 (syms_of_xfaces): Intern and staticpro QCfontset.
18921
18922 * dispextern.h (enum lface_attribute_index): New member
18923 LFACE_FONTSET_INDEX.
18924
18925 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
18926
18927 2008-02-01 Kenichi Handa <handa@m17n.org>
18928
18929 * coding.c (coding_set_destination): Fix coding->destination for
18930 the case converting a region.
18931 (encode_coding_utf_8): Encode eight-bit chars as single byte.
18932 (encode_coding_object): Fix coding->dst_pos and
18933 coding->dst_pos_byte for the case converting a region.
18934
18935 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
18936
18937 * character.h (BYTE8_STRING): New macro.
18938
18939 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
18940
18941 2008-02-01 Kenichi Handa <handa@m17n.org>
18942
18943 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
18944 characters by octal form.
18945
18946 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
18947
18948 * buffer.h (_fetch_multibyte_char_len): Delete extern.
18949 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
18950 _fetch_multibyte_char_len.
18951 (FETCH_CHAR_AS_MULTIBYTE): New macro.
18952
18953 * casetab.c (set_canon, set_identity, shuffle): Simplify.
18954
18955 * casefiddle.c (casify_object): Simplify. Handle the case that
18956 the case conversion change the byte length.
18957 (casify_region): Likewise.
18958
18959 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
18960
18961 * character.c (_fetch_multibyte_char_len): Delete this variable.
18962 (syms_of_character): Setup Vprintable_chars.
18963
18964 * editfns.c (Fchar_equal): Fix for the unibyte case.
18965 (Finsert_byte): New function.
18966 (syms_of_editfns): Defsubr it.
18967
18968 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
18969 of direct code 0x3ffff.
18970
18971 * search.c (Freplace_match): Fix for the unibyte case.
18972
18973 2008-02-01 Kenichi Handa <handa@m17n.org>
18974
18975 * lread.c (safe_to_load_p): Fix the logic.
18976
18977 * syntax.c (scan_words): Don't treat characters belonging to
18978 different scripts as constituting a word.
18979
18980 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
18981
18982 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
18983
18984 * emacs.c (main): In the case of --unibyte, instead of aborting on
18985 finding non-empty buffer, make it unibyte.
18986
18987 2008-02-01 Kenichi Handa <handa@m17n.org>
18988
18989 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
18990 to create a fontset.
18991
18992 2008-02-01 Dave Love <fx@gnu.org>
18993
18994 * character.c (Funibyte_char_to_multibyte): Doc fix.
18995
18996 * xfns.c [HAVE_STDLIB_H]: Fix last change.
18997
18998 2008-02-01 Kenichi Handa <handa@m17n.org>
18999
19000 * fontset.c (fontset_add): Make the type `int'.
19001 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
19002
19003 * character.c (unibyte_char_to_multibyte)
19004 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
19005 charset_unibyte, not charset_primary.
19006
19007 * charset.h (charset_unibyte): Extern it instead of charset_primary.
19008
19009 * charset.c (charset_unibyte): Rename from charset_primary.
19010 (Funibyte_charset): Rename from Fprimary_charset.
19011 (Fset_unibyte_charset): Rename from Fset_primary_charset.
19012 (syms_of_charset): Adjust for the above changes.
19013
19014 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
19015 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
19016 it->multibyte_p is zero.
19017
19018 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
19019 Delete extern.
19020
19021 2008-02-01 Kenichi Handa <handa@m17n.org>
19022
19023 * coding.c (Fdefine_coding_system_internal): Fix category setting
19024 for a coding system of type iso-2022.
19025
19026 2008-02-01 Kenichi Handa <handa@m17n.org>
19027
19028 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
19029
19030 2008-02-01 Kenichi Handa <handa@m17n.org>
19031
19032 * syntax.c (Vnext_word_boundary_function_table): New variable.
19033 (next-word-boundary-function-table): Declare it as a Lisp variable
19034 in syms_of_syntax.
19035 (scan_words): Call functions in Vnext_word_boundary_function_table
19036 if any.
19037
19038 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
19039
19040 * fontset.c (fs_load_font): If fontp->charset is not negative,
19041 return fontp without setting its members.
19042
19043 2008-02-01 Dave Love <fx@gnu.org>
19044
19045 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
19046
19047 * m/sparc.h (HAVE_ALLOCA): Delete.
19048
19049 * s/irix6-5.h: Don't include strings.h.
19050 (bcopy, bzero, bcmp): Don't undef.
19051
19052 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
19053
19054 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
19055 (TIOCSIGSEND): Don't test IRIX6.
19056 (bcopy, bzero, bcmp): Define conditionally.
19057
19058 2008-02-01 Kenichi Handa <handa@m17n.org>
19059
19060 * buffer.c (Qas, Qmake, Qto): New variables.
19061 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
19062 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
19063
19064 * callproc.c (Fcall_process): Don't call insert_1_both directly if
19065 we are inserting a process output into a multibyte buffer.
19066
19067 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
19068 multibyte_char_to_unibyte.
19069
19070 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
19071 by the primary charset, make it eight-bit char.
19072 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
19073
19074 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
19075 (charset_8_bit__control, charset_8_bit_graphic)
19076 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
19077 (define_charset_internal): New function.
19078 (syms_of_charset): Call define_charset_internal for pre-defined
19079 charsets.
19080
19081 * charset.h (charset_8_bit): Extern it.
19082
19083 * coding.c (make_conversion_work_buffer): Adjust for the change
19084 of Fset_buffer_multibyte.
19085 (encode_coding_raw_text): Increment p0 in the loop.
19086
19087 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
19088
19089 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
19090 for the change of Fset_buffer_multibyte.
19091
19092 * fns.c (Fstring_to_multibyte): New function.
19093 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
19094
19095 2008-02-01 Dave Love <fx@gnu.org>
19096
19097 * xfns.c (x_put_x_image): Declare args.
19098
19099 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
19100 (try_font_list): Declare an arg.
19101
19102 * xdisp.c (message2_nolog, set_message): Declare an arg.
19103
19104 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
19105
19106 * syntax.c (scan_sexps_forward): Declare an arg.
19107
19108 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
19109 Declare an arg.
19110
19111 * lisp.h (Fnew_fontset): Declare.
19112
19113 * keymap.c (push_key_description): Call CHARACTERP correctly.
19114
19115 * fontset.c (fontset_add): Declare args. Call make_number correctly.
19116 (face_for_char): Delete unused vars.
19117 (Fset_fontset_font): Doc fix. Delete unused vars.
19118
19119 * doc.c (Fsubstitute_command_keys): Delete unused vars.
19120
19121 * composite.c (update_compositions): Declare arg.
19122
19123 * cm.c (calccost, cmgoto): Declare args.
19124
19125 * charset.c: Remove `emacs' conditional. Doc fixes.
19126 (map_char_table_for_charset): Declare.
19127
19128 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
19129
19130 * ccl.c: Remove `emacs' conditional.
19131
19132 2008-02-01 Kenichi Handa <handa@m17n.org>
19133
19134 The following changes are to allow specifying multiple font
19135 patterns for a character range (specified by script or charset).
19136
19137 * Makefile.in (abbrev.o): Depend on syntax.h.
19138 (xfaces.o): Depend on charset.h.
19139
19140 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
19141 SINGLE_BYTE_CHAR_P.
19142
19143 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
19144
19145 * character.h (Vchar_script_table): Extern it.
19146
19147 * character.c (Vscript_alist): Delete.
19148 (Vchar_script_table, Qchar_script_table): New variable.
19149 (syms_of_character): Declare Vchar_script_table as a lisp variable
19150 and initialize it.
19151
19152 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
19153 have property char-table-extra-slots, make no extra slot.
19154
19155 * dispextern.h (struct face): Delete member `charset'.
19156 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
19157 SINGLE_BYTE_CHAR_P.
19158 (choose_face_font, lookup_non_ascii_face, font_name_registry):
19159 Add prototypes.
19160 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
19161 (generate_ascii_font_name): Rename from generate_ascii_font.
19162
19163 * fontset.h (get_font_repertory_func): New prototype.
19164 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
19165 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
19166
19167 * fontset.c (Qprepend, Qappend): New variables.
19168 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
19169 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
19170 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
19171 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
19172 (fontset_ref_and_range, fontset_add, reorder_font_vector)
19173 (load_font_get_repertory): New functions.
19174 (fontset_set): Delete.
19175 (fontset_face): New arg FACE. Return face ID, not face.
19176 Complete re-write to handle new fontset structure. Change caller.
19177 (free_face_fontset): Use ASET istead of AREF (X) = Y.
19178 (face_for_char): Don't call lookup_face.
19179 (make_fontset_for_ascii_face): New arg FACE.
19180 (fs_load_font): New arg CHARSET_ID. Don't check
19181 Vfont_encoding_alist here.
19182 (find_font_encoding): New function.
19183 (list_fontsets): Use STRINGP, not ! NILP.
19184 (accumulate_script_ranges): New function.
19185 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
19186 re-written to handle new fontset structure.
19187 (Ffontset_font): Return a copy of element.
19188 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
19189 docstring of font-encoding-alist.
19190
19191 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
19192 (Fset_fotset_font): Fix arguments to 5.
19193
19194 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
19195
19196 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
19197 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
19198 (highlight_trailing_whitespace): Adjust for the change of
19199 lookup_named_face.
19200
19201 * xfaces.c: Include charset.h.
19202 (load_face_font): Delete argument C. Change caller.
19203 (generate_ascii_font_name): Rename from generate_ascii_font.
19204 (font_name_registry): New function.
19205 (cache_face): Store ascii faces before non-ascii faces in buckets.
19206 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
19207 Lookup only ascii faces.
19208 (lookup_non_ascii_face): New function.
19209 (lookup_named_face): Delete argument C. Change caller.
19210 (lookup_derived_face): Delete argument C. Change caller.
19211 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
19212 a string, just call font_list with it.
19213 (choose_face_font): Delete arguments FACE and C. New arg
19214 FONT_SPEC. Change caller.
19215 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
19216 Change caller.
19217 (realize_non_ascii_face): New function.
19218 (realize_x_face): Call load_face_font here.
19219 (realize_tty_face): Delete argument C. Change caller.
19220 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
19221 get a face ID.
19222 (dump_realized_face): Don't print charset of FACE.
19223
19224 * xfns.c (x_set_font): Always call x_new_fontset and
19225 store_frame_parameter.
19226 (Fx_create_frame): Call x_new_fontset, not x_new_font.
19227 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
19228
19229 * xterm.h (x_get_font_repertory): Extern it.
19230
19231 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
19232 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
19233 it->multibyte_p is zero.
19234 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
19235 (x_new_fontset): If FONTSETNAME doesn't match any existing
19236 fontsets, create a new one.
19237 (x_get_font_repertory): New function.
19238
19239 2008-02-01 Kenichi Handa <handa@m17n.org>
19240
19241 * coding.c (Ffind_coding_systems_region_internal): Detect an
19242 ASCII only string correctly.
19243
19244 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
19245 version is 0.
19246
19247 2008-02-01 Kenichi Handa <handa@m17n.org>
19248
19249 * lread.c: Include "coding.h".
19250 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
19251 (load_each_byte, unread_char): New variables.
19252 (readchar_backlog): Delete.
19253 (readchar): Return a character unless load_each_byte is nonzero.
19254 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
19255 cons. If unread_char is not -1, simply return it.
19256 (unreadchar): Handle the case that readcharfun is
19257 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
19258 (read_multibyte): Delete.
19259 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
19260 (read_emacs_mule_char): New functions.
19261 (Fload): Even if the file doesn't have the extension ".elc", if
19262 safe_to_load_p returns a positive version number, assume that the
19263 file contains bytecompiled code. If the version is less than 22,
19264 load the file while decoding multibyte sequences by emacs-mule.
19265 (readevalloop): Don't use readchar_backlog.
19266 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
19267 (Fread_from_string): Pay attention to the case that STREAM is a cons.
19268 (read_escape): Delete the arg BYTEREP.
19269 (read1): Set load_each_byte to 1 temporarily while handling
19270 #@NUMBER. Don't call read_multibyte.
19271 (read_vector): Call Fread with a cons. If readcharfun is
19272 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
19273 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
19274 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
19275 and Qload_force_doc_strings.
19276
19277 2008-02-01 Kenichi Handa <handa@m17n.org>
19278
19279 * xdisp.c (face_before_or_after_it_pos): Call
19280 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
19281
19282 2008-02-01 Kenichi Handa <handa@m17n.org>
19283
19284 * character.h (TRAILING_CODE_P): New macro.
19285 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
19286 (string_char_with_unification): Fix prototype.
19287 (Vscript_alist): Extern it.
19288
19289 * character.c (Vscript_alist): New variable.
19290 (string_char_with_unification, str_as_unibyte)
19291 (string_escape_byte8): Add `const' to local variables.
19292 (syms_of_character): Declare script-alist as a Lisp variable.
19293
19294 * charset.h (Vcharset_ordered_list): Extern it.
19295 (charset_ordered_list_tick): Extern it.
19296 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
19297 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
19298 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
19299 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
19300 (Funify_charset): Adjust for the change of Funify_charset.
19301
19302 * charset.c (charset_ordered_list_tick): New variable.
19303 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
19304 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
19305 deunify intead of unify a charset.
19306 (string_xstring_p): Add `const' to local variables.
19307 (find_charsets_in_text): Add `const' to arguments and local variables.
19308 (encode_char): Adjust for the change of Funify_charset. Fix
19309 detecting of invalid code.
19310 (Fset_charset_priority): Increment charset_ordered_list_tick.
19311 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
19312 and TO_CODE.
19313
19314 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
19315 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
19316 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
19317 (decode_coding_ccl, consume_chars)
19318 (Ffind_coding_systems_region_internal)
19319 (Fcheck_coding_systems_region): Add `const' to local variables.
19320
19321 * print.c (print_object): Use octal form for printing the
19322 contents of a bool vector.
19323
19324 2008-02-01 Dave Love <fx@gnu.org>
19325
19326 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
19327 <version == 20>: Refuse to load.
19328
19329 2008-02-01 Dave Love <fx@gnu.org>
19330
19331 * fns.c: Move coding.h.
19332 (Qcodeset, Qdays, Qmonths): New.
19333 (concat): Use CHARACTERP instead of INTEGERP.
19334 (Flocale_codeset): Delete.
19335 (Flanginfo): New function.
19336 (syms_of_fns): Change accordingly.
19337
19338 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
19339
19340 2008-02-01 Dave Love <fx@gnu.org>
19341
19342 * casetab.c (init_casetab_once, init_casetab_once): Fix
19343 CHAR_TABLE_SET call.
19344
19345 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
19346
19347 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
19348
19349 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
19350 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
19351 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
19352
19353 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
19354
19355 * coding.c (ENCODE_DESIGNATION, decode_eol)
19356 (make_conversion_work_buffer, code_conversion_restore)
19357 (Fdefine_coding_system_internal): Convert Lisp types.
19358 (code_conversion_restore): Use EQ, not ==.
19359 (Fencode_coding_string): Fix code_convert_string call.
19360
19361 * coding.h (code_convert_region): Fix prototype.
19362
19363 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
19364
19365 * fontset.c (fontset_ref, fontset_set, fs_load_font)
19366 (Ffontset_info): Convert Lisp types.
19367
19368 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
19369
19370 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
19371
19372 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
19373
19374 * chartab.c: Include "...h", not <...h> in some cases.
19375
19376 * callproc.c (Fcall_process): Remove unused variables.
19377
19378 2008-02-01 Dave Love <fx@gnu.org>
19379
19380 * coding.c (Fset_coding_system_priority): Allow null arg list.
19381
19382 2008-02-01 Dave Love <fx@gnu.org>
19383
19384 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
19385 (Fself_insert_and_exit): Use CHARACTERP.
19386
19387 * callproc.c (Fcall_process): Remove unused vars.
19388
19389 * xterm.c (XTread_socket): Add extra dead keysyms.
19390
19391 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
19392
19393 * dispextern.h: Remove prototypes for redraw_frame,
19394 redraw_garbaged_frames.
19395
19396 * cmds.c (Fself_insert_command): Use CHARACTERP.
19397
19398 * chartab.c (make_sub_char_table): Remove unused var.
19399 (Fset_char_table_default, Fmap_char_table): Doc fix.
19400
19401 * keymap.c (access_keymap): Remove generic char code.
19402 (push_key_description): Use CHARACTERP.
19403
19404 2008-02-01 Dave Love <fx@gnu.org>
19405
19406 * charset.c: Doc fixes.
19407 (Funify_charset): Extra checking.
19408
19409 2008-02-01 Dave Love <fx@gnu.org>
19410
19411 * lread.c: Remove some unused variables.
19412 (safe_to_load_p): If safe, return the magic number version byte.
19413 (Fload): Maybe use load-with-code-conversion.
19414
19415 2008-02-01 Kenichi Handa <handa@m17n.org>
19416
19417 * category.c (Fmodify_category_entry): Don't modify the contents
19418 of category_set for characters out of the range. Avoid
19419 unnecessary modification.
19420
19421 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
19422 Vchar_unify_table. The default value of the table is now nil.
19423
19424 * character.c (syms_of_character): Setup Vchar_width_table for
19425 eight-bit-control and raw-byte chars.
19426
19427 * charset.h (enum define_charset_arg_index): Delete
19428 charset_arg_parents and add charset_arg_subset and
19429 charset_arg_superset.
19430 (enum charset_attr_index): Delete charset_parents and add
19431 charset_subset and charset_superset.
19432 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
19433 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
19434 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
19435 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
19436 (CHARSET_SUPERSET): New macros.
19437 (charset_work): Extern it.
19438 (ENCODE_CHAR): Use charset_work.
19439 (CHAR_CHARSET_P): Adjust for the change of encoder format.
19440 (map_charset_chars): Extern it.
19441
19442 * charset.c (load_charset_map): Set the default value of encoder
19443 and deunifier char-tables to nil.
19444 (map_charset_chars): Change argument. Change callers. Use
19445 map_char_table_for_charset instead of map_char_table.
19446 (Fmap_charset_chars): New optional args from_code and to_code.
19447 (Fdefine_charset_internal): Adjust for the change of
19448 `define-charset' (:parents -> :subset or :superset).
19449 (charset_work): New variable.
19450 (encode_char, syms_of_charset): Adjust for the change of
19451 Fdefine_charset_internal.
19452 (Ffind_charset_string): Setup the vector `charsets' correctly.
19453
19454 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
19455 the previous change.
19456 (char_table_ref_and_range): Adjust for the above change.
19457 (map_sub_char_table_for_charset): New function.
19458 (map_char_table_for_charset): New function.
19459
19460 * keymap.c (describe_vector): Handle a char-table directly here.
19461 (describe_char_table): Delete.
19462
19463 * lisp.h (map_charset_chars): Delete.
19464
19465 2008-02-01 Dave Love <fx@gnu.org>
19466
19467 * fns.c (count_combining): Comment out (unused).
19468 (Flocale_codeset): New.
19469 (syms_of_fns): Defsubr it.
19470
19471 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
19472 (size_t): Remove.
19473
19474 2008-02-01 Dave Love <fx@gnu.org>
19475
19476 * Makefile.in (chartab.o): Depend on charset.h.
19477
19478 2008-02-01 Kenichi Handa <handa@m17n.org>
19479
19480 * character.c (syms_of_character): Set the default value of
19481 Vprintable_chars to Qnil.
19482
19483 2008-02-01 Dave Love <fx@gnu.org>
19484
19485 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
19486
19487 2008-02-01 Kenichi Handa <handa@m17n.org>
19488
19489 * charset.c (load_charset_map): Handle the case that from < to
19490 correctly.
19491
19492 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
19493 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
19494 Pay attention to raw-8-bit chars.
19495
19496 2008-02-01 Kenichi Handa <handa@m17n.org>
19497
19498 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
19499 It is not bytecompiled now.
19500
19501 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
19502 (charset_jisx0208): New variables.
19503 (Fdefine_charset_internal): Setup them if appropriate.
19504 (init_charset_once): Initialize them to -1.
19505
19506 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
19507 (charset_jisx0208): Extern them.
19508
19509 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
19510 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
19511 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
19512 (setup_iso_safe_charsets): Fix arguments to Fassq.
19513 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
19514 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
19515 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
19516 (encode_coding_iso_2022): Change the 1st arg to
19517 ENCODE_ISO_CHARACTER to a variable.
19518
19519 2008-02-01 Kenichi Handa <handa@m17n.org>
19520
19521 * charset.h (enum define_charset_arg_index): New enums
19522 charset_arg_min_code and charset_arg_max_code.
19523 (struct charset): New member char_index_offset.
19524
19525 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
19526 Take charset->char_index_offset into account.
19527 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
19528 args[charset_arg_max_code]. Setup charset.char_index_offset.
19529 (syms_of_charset): Fix args to Fdefine_charset_internal.
19530
19531 2008-02-01 Dave Love <fx@gnu.org>
19532
19533 * coding.c (decode_coding_utf_8): Reject overlong sequences.
19534
19535 2008-02-01 Dave Love <fx@gnu.org>
19536
19537 * coding.c: Doc fixes.
19538 (Fcoding_system_aliases): Fix return value.
19539 (Qmac): Remove (duplicated) definition.
19540
19541 2008-02-01 Dave Love <fx@gnu.org>
19542
19543 * charset.c (Fcharset_priority_list, Fset_charset_priority):
19544 New functions.
19545
19546 * character.c (Fstring): Doc fix.
19547
19548 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
19549
19550 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
19551 (font-encoding-alist): Doc fix.
19552
19553 2008-02-01 Dave Love <fx@gnu.org>
19554
19555 * term.c (costs_set): Declare static, non-initialized for pcc.
19556 (encode_terminal_code): Remove unused var.
19557
19558 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
19559 for K&R.
19560
19561 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
19562
19563 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
19564 (suffixes): Move out of make_subsidiaries for K&R.
19565
19566 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
19567
19568 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
19569
19570 2008-02-01 Dave Love <fx@gnu.org>
19571
19572 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
19573
19574 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
19575
19576 2008-02-01 Yong Lu <lyongu@asia-infonet.com>
19577
19578 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
19579
19580 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
19581
19582 2008-02-01 Kenichi Handa <handa@m17n.org>
19583
19584 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
19585 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
19586
19587 2008-02-01 Kenichi Handa <handa@m17n.org>
19588
19589 * coding.c (decode_coding_charset): Adjust for the change of
19590 Fdefine_coding_system_internal.
19591 (Fdefine_coding_system_internal): For a coding system of
19592 `charset' type, store a list of charset IDs in
19593 `charset_attr_charset_valids' element of coding attributes.
19594
19595 2008-02-01 Kenichi Handa <handa@m17n.org>
19596
19597 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
19598 (emacs_mule_char): New arg src. Delete arg `composition'. Change
19599 caller. Handle 2-byte and 3-byte charsets correctly.
19600 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
19601 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
19602 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
19603 (DECODE_EMACS_MULE_21_COMPOSITION): Call
19604 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
19605 sequence.
19606 (decode_coding_emacs_mule): Handle composition correctly. Rewind
19607 `src' and `consumed_chars' correctly before calling emacs_mule_char.
19608 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
19609 and alt&rule composition.
19610 (decode_coding_iso_2022): Handle composition correctly.
19611 (init_coding_once): Setup emacs_mule_bytes for private charsets.
19612
19613 * charset.c (Fdefine_charset_internal): Fix bug for the case of
19614 re-defining a charset. If the charset has :emacs-mule-id, setup
19615 emacs_mule_bytes.
19616 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
19617
19618 2008-02-01 Kenichi Handa <handa@m17n.org>
19619
19620 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
19621 (encode_coding_big5, encode_coding_charset): If coding requires safe
19622 encoding, produce a character specified by
19623 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
19624
19625 2008-02-01 Dave Love <fx@gnu.org>
19626
19627 * xterm.c (XSetIMValues): Declare.
19628
19629 * process.c: Conditionally include sys/wait.h, pty.h.
19630
19631 * print.c (print_object): Fix print format for 64-bit systems.
19632
19633 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
19634
19635 * buffer.c (emacs_strerror): Declare.
19636
19637 * fontset.c (Fclear_face_cache): Declare.
19638 (accumulate_font_info): Comment-out (unused).
19639 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
19640 variables.
19641
19642 * character.h (string_escape_byte8): Declare.
19643
19644 * charset.c (load_charset_map, load_charset_map_from_file): Remove
19645 unused vars.
19646 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
19647 (Fmap_charset_chars): Doc fix.
19648
19649 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
19650 (Fset_coding_system_priority, Fset_coding_system_priority)
19651 (Fdefine_coding_system_internal): Doc fix.
19652
19653 2008-02-01 Dave Love <fx@gnu.org>
19654
19655 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
19656
19657 2008-02-01 Kenichi Handa <handa@m17n.org>
19658
19659 * character.c (string_escape_byte8): Make multibyte string with
19660 correct size.
19661
19662 * charset.c (Fmake_char): Delete unnecessary code.
19663
19664 2008-02-01 Kenichi Handa <handa@m17n.org>
19665
19666 * xfns.c (x_encode_text): Allocate coding.destination here, and
19667 call encode_coding_object with dst_object Qnil.
19668
19669 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
19670 multibyte form correctly.
19671
19672 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
19673 against Vfont_encoding_alist.
19674
19675 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
19676 handling of charset list.
19677 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
19678 (decode_coding_object): Move point to coding->dst_pos before
19679 calling post-read-conversion function.
19680 (encode_coding_object): Give correct arguments to
19681 pre-write-conversion. Ignore the return value of
19682 pre-write-conversion function. Pay attention to the case that
19683 pre-write-conversion changes the current buffer. If dst_object is
19684 Qt, even if coding->src_bytes is zero, allocate at least one byte
19685 to coding->destination.
19686
19687 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
19688
19689 * charset.c (Fmake_char): Make it more backward compatible.
19690 (Fmap_charset_chars): Fix docstring.
19691
19692 2008-02-01 Dave Love <fx@gnu.org>
19693
19694 * coding.c: Doc fixes.
19695 (Fdefine_coding_system_alias): Use names, not symbols, in
19696 coding-system-alist.
19697
19698 2008-02-01 Kenichi Handa <handa@m17n.org>
19699
19700 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
19701 of calling free_realized_face.
19702
19703 2008-02-01 Yong Lu <lyongu@asia-infonet.com>
19704
19705 * charset.c (read_hex): Don't treat SPC as a comment starter.
19706 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
19707 (Fdecode_char): Fix typo.
19708
19709 2008-02-01 Kenichi Handa <handa@m17n.org>
19710
19711 * charset.h (struct charset): New member `code_space_mask'.
19712
19713 * coding.c (coding_set_source): Delete the local variable beg_byte.
19714 (encode_coding_charset, Fdefine_coding_system_internal):
19715 Delete the local variable charset.
19716 (Fdefine_coding_system_internal): Setup
19717 attrs[coding_attr_charset_valids] correctly.
19718
19719 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
19720 member to check if CODE is valid or not.
19721 (Fdefine_charset_internal): Initialize `code_space_mask' member.
19722 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
19723 is within the range of charset->min_code and carset->max_code.
19724
19725 2008-02-01 Dave Love <fx@gnu.org>
19726
19727 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
19728
19729 * dispextern.h (generate_ascii_font): Fix return type.
19730
19731 * xfaces.c (generate_ascii_font): Fix arg declaration.
19732
19733 * coding.c (coding_inherit_eol_type)
19734 (Fset_terminal_coding_system_internal)
19735 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
19736
19737 2008-02-01 Kenichi Handa <handa@m17n.org>
19738
19739 * coding.c (decode_coding_charset, encode_coding_charset): Handle
19740 multiple charsets correctly.
19741
19742 2008-02-01 Kenichi Handa <handa@m17n.org>
19743
19744 * search.c (boyer_moore): Fix handling of multibyte character
19745 translation.
19746
19747 * xdisp.c (display_mode_element): When the variable `elt' is
19748 changed, update `this' and `lisp_string'.
19749
19750 2008-02-01 Kenichi Handa <handa@m17n.org>
19751
19752 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
19753
19754 * callproc.c (Fcall_process): Be sure to give the current buffer
19755 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
19756
19757 * charset.c (struct charset_map_entries): New struct.
19758 (load_charset_map): Rename from parse_charset_map. New args
19759 entries and n_entries. Change caller.
19760 (load_charset_map_from_file): Rename from load_charset_map.
19761 Change caller. New arg control_flag. Call load_charset_map at
19762 the tail.
19763 (load_charset_map_from_vector): New function.
19764 (Fdefine_charset_internal): Setup charset.compact_codes_p.
19765 (encode_char): If the charset is compact, change a character index
19766 to a code point.
19767
19768 * coding.c (coding_alloc_by_making_gap): Check the case that the
19769 source and destination are the same correctly.
19770 (decode_coding_raw_text): Set coding->consumed_char and
19771 coding->consumed to 0.
19772 (produce_chars): If coding->chars_at_source is nonzero, update
19773 coding->consumed_char and coding->consumed before calling
19774 alloc_destination.
19775 (Fdefine_coding_system_alias): Register ALIAS in
19776 Vcoding_system_alist.
19777 (syms_of_coding): Define `no-conversion' coding system at the tail.
19778
19779 * fileio.c (Finsert_file_contents): Set coding_system instead of
19780 val. If the current buffer is multibyte, always call
19781 decode_coding_gap.
19782
19783 * xfaces.c (try_font_list): Give higher priority to fontset's
19784 family than face's family.
19785
19786 2008-02-01 Kenichi Handa <handa@m17n.org>
19787
19788 * callproc.c (Fcall_process): Be sure to give the current buffer
19789 to decode_coding_c_string.
19790
19791 * xfaces.c (try_font_list): Give a family specified in a fontset
19792 higher priority than a family specified in a face.
19793
19794 2008-02-01 Kenichi Handa <handa@m17n.org>
19795
19796 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
19797 Fix arguments to insert_from_buffer.
19798
19799 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
19800
19801 2008-02-01 Kenichi Handa <handa@m17n.org>
19802
19803 * coding.c (produce_chars): Set the variable `multibytep' correctly.
19804 (decode_coding_gap): Set coding->dst_multibyte correctly.
19805
19806 2008-02-01 Kenichi Handa <handa@m17n.org>
19807
19808 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
19809 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
19810 (encode_coding_utf_16): Substitute coding->default_char for
19811 non-Unicode characters.
19812 (decode_coding): Don't call record_insert here.
19813 (setup_coding_system): Initialize `surrogate' of
19814 coding->spec.utf_16 to 0.
19815 (EMIT_ONE_BYTE): Fix for multibyte case.
19816
19817 * insdel.c (insert_from_gap): Call record_insert.
19818
19819 2008-02-01 Kenichi Handa <handa@m17n.org>
19820
19821 * casefiddle.c (casify_region): Fix multibyte case.
19822
19823 * character.c (c_string_width): Add return type `int'.
19824 (char_string_with_unification): Delete arg ADVANCED.
19825
19826 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
19827 (CHAR_STRING): Adjust for the change of char_string_with_unification.
19828 (CHAR_STRING_ADVANCE): Make it do-while statement.
19829
19830 * chartab.c (sub_char_table_set_range): Optimize for the case
19831 DEPTH == 3. Add workaround code for a GCC optimization bug.
19832
19833 * charset.c (parse_charset_map): Remove an unused variable.
19834
19835 * coding.c: Delete unused variables.
19836
19837 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
19838 earlier. If inserted is zero and the coding system doesn't
19839 require flushing, don't call decode_coding_gap.
19840
19841 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
19842
19843 2008-02-01 Kenichi Handa <handa@m17n.org>
19844
19845 The following changes are for using Unicode as an internal
19846 character model, and use UTF-8 format for buffer/string
19847 representation.
19848
19849 * .gdbinit (xchartable): Adjust for the change of char table structure.
19850 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
19851
19852 * Makefile.in (obj): Add character.o and chartab.o.
19853 (lisp, shortlisp): Remove utf-8.elc.
19854 (*.o): For many files, change dependency on charset.h to
19855 character.h, and add dependency on character.h.
19856 (character.o, chartab.o): New targets.
19857
19858 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
19859 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
19860 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
19861 of "charset.h".
19862
19863 * dired.c, filelock.c: Include "character.h".
19864
19865 * alloc.c: Include "character.h" instead of "charset.h".
19866 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
19867 (syms_of_alloc): Remove defsubr for Smake_char_table.
19868
19869 * buffer.c: Include "character.h" instead of "charset.h", don't
19870 include "coding.h".
19871 (Fset_buffer_multibyte): Adjust for UTF-8.
19872
19873 * buffer.h: EXFUN Fbuffer_live_p.
19874
19875 * callproc.c: Include "character.h" instead of "charset.h".
19876 (Fcall_process): Big change for the new code-conversion APIs.
19877
19878 * casetab.c: Include "character.h" instead of "charset.h".
19879 (set_canon, set_identity, shuffle): Adjust for the new
19880 map_char_table spec.
19881 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
19882 accessing the char table structure.
19883
19884 * chartab.c: New file that implements char table.
19885
19886 * category.c: Include "character.h".
19887 (copy_category_entry): New function.
19888 (copy_category_table): Call map_char_table and copy_category_entry.
19889 (Fmake_category_table): Initialize all top-level slots.
19890 (char_category_set): New function.
19891 (modify_lower_category_set): Delete.
19892 (Fmodify_category_entry): Call char_table_ref_and_range.
19893
19894 * category.h (CATEGORY_SET): Just call char_category_set.
19895
19896 * ccl.c: Include "character.h".
19897 (Qccl, Qcclp): New variables.
19898 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
19899 it's less than 256.
19900 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
19901 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
19902 and DST type.
19903 (ccl_driver): Change types of argument, adjust code accordingly.
19904 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
19905 ccl_driver.
19906 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
19907
19908 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
19909 New members src_multibyte, dst_multibyte, consumed, and produced.
19910 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
19911 (CODING_SPEC_CCL_PROGRAM): New macro.
19912 (ccl_driver): Update prototype.
19913 (Qccl, Qcclp, Fccl_program_p): Extern them.
19914 (CHECK_CCL_PROGRAM): New macro.
19915
19916 * character.c, character.h, chartab.c: New files.
19917
19918 * charset.c: Mostly re-written. Move character and multibyte sequence
19919 handling codes to character.c.
19920
19921 * charset.h: Mostly re-written. Move character and multibyte sequence
19922 handling codes to character.h.
19923
19924 * coding.c, coding.h: Mostly re-written.
19925
19926 * composite.c: Include "character.h" instead of "charset.h".
19927 (CHAR_WIDTH): Move to character.h.
19928 (HASH_KEY, HASH_VALUE): Delete.
19929
19930 * composite.h (enum composition_method): Change order of enumeration
19931 symbols.
19932
19933 * data.c: Include "character.h" instead of "charset.h".
19934 (Faref): Call CHAR_TABLE_REF for a char table.
19935 (Faset): Call CHAR_TABLE_SET for a char table.
19936
19937 * dispextern.h (free_realized_face, check_face_attribytes)
19938 (generate_ascii_font): Extern them.
19939 (free_realized_multibyte_face): Delete extern.
19940
19941 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
19942 table structure.
19943
19944 * editfns.c: Include "character.h" instead of "charset.h".
19945 (Fchar_to_string): Always call CHAR_STRING.
19946
19947 * emacs.c (main): Call init_charset_once, init_charset,
19948 syms_of_chartab, and syms_of_character.
19949
19950 * fileio.c: Include "character.h" instead of "charset.h".
19951 (Finsert_file_contents): Big change for the new code-conversion API.
19952 (choose_write_coding_system, Fwrite_region): Likewise.
19953 (build_annotations_2): Delete.
19954 (e_write): Big change for the new code-conversion API.
19955
19956 * fns.c: Include "character.h" instead of "charset.h".
19957 (copy_sub_char_table): Move to chartab.c.
19958 (Fcopy_sequence): Call copy_char_table for a char table.
19959 (concat): Delete codes calling count_multibyte.
19960 (string_char_to_byte, string_byte_to_char): Adjust for the new
19961 multibyte form.
19962 (internal_equal): Adjust for the change of char table structure.
19963 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
19964 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
19965 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
19966 (char_table_translate, optimize_sub_char_table)
19967 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
19968 chartab.c.
19969 (char_table_ref_and_index): Delete.
19970 (HASH_KEY, HASH_VALUE): Move to lisp.h.
19971 (Fmd5): Call preferred_coding_system instead of accessing
19972 Vcoding_category_list. Adjust for the new code-conversion API.
19973 (syms_of_fns): Move defsubr for char table related functions to
19974 chartab.c.
19975
19976 * fontset.c: Mostly re-written.
19977
19978 * fontset.h (struct font_info): Change type of the member encoding_type.
19979 (enum FONT_SPEC_INDEX): New enum.
19980 (fontset_font_pattern, fs_load_font): Update prototype.
19981 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
19982
19983 * indent.c: Include "character.h" instead of "charset.h".
19984 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
19985
19986 * insdel.c: Include "character.h" instead of "charset.h".
19987 (copy_text): Don't refer to Vnonascii_translation_table.
19988 (insert_from_gap): New function.
19989
19990 * keyboard.c: Include "character.h" instead of "charset.h".
19991 (command_loop_1): Never call direct_output_forward_char before
19992 a non-ASCII character.
19993 (read_char): If Vkeyboard_translate_table is a char table, always
19994 translate a character.
19995
19996 * keymap.c: Include "character.h".
19997 (store_in_keymap): Handle the case that IDX is a cons.
19998 (Fdefine_key): Handle the case that KEY is a cons and the car part
19999 is also a cons (range).
20000 (push_key_description): Adjust for the new character code.
20001 (describe_vector): Call describe_char_table for a char table.
20002 (describe_char_table): New function.
20003
20004 * keymap.h (describe_char_table): Extern it.
20005
20006 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
20007 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
20008 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
20009 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
20010 Delete.
20011 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
20012 structure.
20013 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
20014 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
20015 (CHARTAB_SIZE_BITS_3): New macros.
20016 (chartab_size): Extern it.
20017 (struct Lisp_Char_Table): Re-design.
20018 (struct Lisp_Sub_Char_Table): New structure.
20019 (HASH_KEY, HASH_VALUE): Move from fns.c.
20020 (CHARACTERBITS): Define as 22.
20021 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
20022 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
20023 (GC_SUB_CHAR_TABLE_P): New macro.
20024 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
20025 (code_convert_string_norecord): Deleted extern.
20026 (init_character_once, syms_of_character, init_charset)
20027 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
20028
20029 * lread.c: Include "character.h".
20030 (read_multibyte): New arg NBYTES.
20031 (read_escape): Change the meaning of returned *BYTEREP.
20032 (to_multibyte): Delete.
20033 (read1): Adjust the handling of char table and string.
20034
20035 * print.c: Include "character.h" instead of "charset.h".
20036 (print_string): Convert 8-bit raw bytes to octal form by
20037 string_escape_byte8.
20038 (print_object): Adjust for the new multibyte form. Print 8-bit
20039 raw bytes always in octal form. Handle sub char table correctly.
20040
20041 * process.c: Include "character.h" instead of "charset.h".
20042 (read_process_output, send_process): Adjust for the new
20043 code-conversion API.
20044
20045 * puresize.h (BASE_PURESIZE): Increase.
20046
20047 * regex.c: Include "character.h" instead of "charset.h".
20048 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
20049 (regex_compile): Accept a range whose starting and ending
20050 character have different leading bytes.
20051 (analyse_first): Adjust for the above change.
20052
20053 * search.c: Include "character.h" instead of "charset.h".
20054 (search_buffer, boyer_moore): Adjust for the new multibyte form.
20055 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
20056
20057 * syntax.c: Include "character.h" instead of "charset.h".
20058 (syntax_parent_lookup): Delete.
20059 (Fmodify_syntax_entry): Accept a cons as CHAR.
20060 (skip_chars): Adjust for the new multibyte form.
20061 (init_syntax_once): Call char_table_set_range instead of directly
20062 accessing the structure of a char table.
20063
20064 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
20065 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
20066 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
20067 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
20068
20069 * term.c: Include "buffer.h" and "character.h".
20070 (encode_terminal_code, write_glyphs): Adjust for the new
20071 code-conversion API.
20072 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
20073
20074 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
20075
20076 * xdisp.c: Include "character.h".
20077 (get_next_display_element): Adjust for the new multibyte form.
20078 (disp_char_vector): Adjust for the new char table structure.
20079 (decode_mode_spec_coding): Adjust for the new structure of
20080 coding system.
20081 (decode_mode_spec): Adjust for the new code-conversion API.
20082
20083 * xfaces.c: Include "character.h" instead of "charset.h".
20084 (load_face_font): Adjust for the change of choose_face_font and
20085 FS_LOAD_FONT.
20086 (generate_ascii_font): New function.
20087 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
20088 (set_font_frame_param): Adjust for the change of choose_face_font.
20089 (free_realized_face): Make it public.
20090 (free_realized_faces_for_fontset): Rename from
20091 free_realized_multibyte_face. Free also faces realized for ASCII.
20092 (choose_face_font): Change arguments. Adjust for the change of
20093 fontset_font_pattern and FS_LOAD_FONT.
20094
20095 * xfns.c: Include "character.h".
20096 (x_encode_text): Adjust for the new code-conversion API.
20097
20098 * xselect.c: Don't include "charset.h".
20099 (selection_data_to_lisp_data): Adjust for the new code conversion API.
20100
20101 * xterm.c: Include "character.h".
20102 (x_encode_char): New argument CHARSET. Change caller.
20103 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
20104 Call ENCODE_CHAR instead of SPLIT_CHAR.
20105 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
20106 CHAR_WIDTH instead of CHARSET_WIDTH.
20107 (XTread_socket): Adjust for the new code-conversion API.
20108 (x_new_font): Adjust for the change of FS_LOAD_FONT.
20109 (x_load_font): Adjust for the change of struct font.
20110
20111 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
20112
20113 * xfaces.c (face_at_buffer_position): Remove unused vars.
20114
20115 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20116
20117 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
20118 Fix overflow checking.
20119
20120 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20121
20122 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
20123 Cancel previous change.
20124
20125 2008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
20126
20127 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
20128 ccl->eight_bit_control. Fix check for buffer overflow.
20129 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
20130 (ccl_driver): Initialize extra_bytes to 0.
20131
20132 2008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
20133
20134 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
20135 return it ORed with ctrl_modifier.
20136
20137 2008-01-29 Miles Bader <miles@gnu.org>
20138
20139 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
20140
20141 2008-01-28 Jason Rumney <jasonr@gnu.org>
20142
20143 * w32.c (stat): Don't double check for networked drive.
20144
20145 2008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
20146
20147 * window.c (run_window_configuration_change_hook): New function.
20148 Code extracted from set_window_buffer. Set the selected frame.
20149 (set_window_buffer): Use it.
20150 * window.h (run_window_configuration_change_hook): Declare.
20151 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
20152
20153 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
20154
20155 2008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
20156
20157 * Makefile.in: Remove references to unused macros.
20158
20159 2008-01-26 Eli Zaretskii <eliz@gnu.org>
20160
20161 * w32.c (g_b_init_get_sid_sub_authority)
20162 (g_b_init_get_sid_sub_authority_count): New static variables.
20163 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
20164 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
20165 (init_user_info): Use them to retrieve uid and gid.
20166 Use 500/513, the Windows defaults, as Administrator's uid/gid.
20167 (fstat): Use pw_uid and pw_gid from the_passwd structure for
20168 st_uid and st_gid of the file.
20169
20170 2008-01-26 Jason Rumney <jasonr@gnu.org>
20171
20172 * w32.c (logon_network_drive): New function.
20173 (stat): Use it.
20174
20175 2008-01-26 Chong Yidong <cyd@stupidchicken.com>
20176
20177 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
20178 invisible text covered with an ellipsis.
20179
20180 2008-01-25 Richard Stallman <rms@gnu.org>
20181
20182 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
20183 jump back to beginning. Move some other initializations after that.
20184 (Qwindow_text_change_functions, Vwindow_text_change_functions):
20185 New variables.
20186 (syms_of_xdisp): Init them.
20187
20188 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
20189
20190 * buffer.c (reset_buffer_local_variables):
20191 Implement `permanent-local-hook'.
20192 (Qpermanent_local_hook): New variable.
20193 (syms_of_buffer): Init and staticpro it.
20194
20195 2008-01-25 Michael Albinus <michael.albinus@gmx.de>
20196
20197 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
20198
20199 2008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
20200
20201 * fns.c (Fclrhash): Return TABLE.
20202
20203 2008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20204
20205 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
20206 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
20207 is set even without positional changes.
20208 (x_scroll_bar_clear): Set bar->redraw_needed_p.
20209
20210 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
20211
20212 2008-01-23 Jason Rumney <jasonr@gnu.org>
20213
20214 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
20215
20216 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
20217 the unicode range available in MULE by locale-coding-system.
20218 Improve dbcs lead byte detection. Set event timestamp and modifiers
20219 earlier.
20220
20221 2008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20222
20223 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
20224 [MAC_OSX] (init_mac_osx_environment): Initialize it.
20225 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
20226 when used on child processes.
20227
20228 2008-01-21 Michael Albinus <michael.albinus@gmx.de>
20229
20230 * dbusbind.c (Fdbus_method_return_internal): Rename from
20231 Fdbus_method_return.
20232 (Fdbus_unregister_object): Move to dbus.el.
20233 (Fdbus_call_method, Fdbus_method_return_internal)
20234 (Fdbus_send_signal): Improve debug messages.
20235
20236 2008-01-20 Martin Rudalics <rudalics@gmx.at>
20237
20238 * undo.c (undo_inhibit_record_point): New variable.
20239 (syms_of_undo): Initialize it.
20240 (record_point): Don't record point when undo_inhibit_record_point
20241 is set.
20242
20243 2008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
20244
20245 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
20246
20247 * xdisp.c (Qauto_hscroll_mode): New var.
20248 (syms_of_xdisp): Initialize it.
20249 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
20250 window's buffer.
20251 (hscroll_windows): Don't check automatic_hscrolling_p here.
20252
20253 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
20254 vscroll if we're setting window-buffer to the value it already has.
20255
20256 2008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
20257
20258 * m/intel386.h: Remove references to XENIX.
20259
20260 2008-01-17 Andreas Schwab <schwab@suse.de>
20261
20262 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
20263 instead of HAVE_X86_64_LIB64_DIR.
20264 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
20265
20266 2008-01-17 Glenn Morris <rgm@gnu.org>
20267
20268 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
20269 to HAVE_X86_64_LIB64_DIR.
20270
20271 2008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
20272
20273 * s/irix3-3.h:
20274 * s/irix4-0.h:
20275 * s/386-ix.h:
20276 * s/domain.h:
20277 * s/hpux9-x11r4.h:
20278 * s/hpux9shxr4.h: Remove files for systems no longer supported.
20279
20280 * sysdep.c: Remove code containing references to symbols defined
20281 by unsupported systems.
20282
20283 2008-01-16 Glenn Morris <rgm@gnu.org>
20284
20285 * coding.c (select-safe-coding-system-function): Doc fix.
20286
20287 2008-01-15 Glenn Morris <rgm@gnu.org>
20288
20289 * config.in: Revert 2008-01-13 change: this is a generated file.
20290
20291 2008-01-13 Tom Tromey <tromey@redhat.com>
20292
20293 * lisp.h: Fix typo.
20294
20295 2008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
20296
20297 * m/sequent-ptx.h:
20298 * m/sequent.h:
20299 * s/ptx.h:
20300 * s/ptx4-2.h:
20301 * s/ptx4.h: Remove files for systems no longer supported.
20302
20303 * callproc.c (Fcall_process): Fix previous change.
20304
20305 2008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
20306
20307 * unexsunos4.c: Remove file, system not supported anymore.
20308
20309 * m/mips.h:
20310 * m/intel386.h:
20311 * callproc.c:
20312 * config.in:
20313 * ecrt0.c:
20314 * emacs.c:
20315 * fileio.c:
20316 * frame.c:
20317 * getpagesize.h:
20318 * keyboard.c:
20319 * lread.c:
20320 * process.c:
20321 * puresize.h:
20322 * sysdep.c:
20323 * systty.h:
20324 * syswait.h:
20325 * unexec.c:
20326 * xdisp.c:
20327 * alloc.c: Remove code containing references to symbols defined by
20328 unsupported systems.
20329
20330 2008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
20331
20332 * coding.c (detect_coding_mask): Fix previous change.
20333
20334 2008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
20335
20336 * coding.c (detect_coding_iso2022): New arg
20337 latin_extra_code_state. Allow Latin extra codes only
20338 when *latin_extra_code_state is nonzero.
20339 (detect_coding_mask): If there is a NULL byte, detect the encoding
20340 as UTF-16 or binary. If Latin extra codes exist, detect the
20341 encoding as ISO-2022 only when there's no other proper encoding is
20342 found.
20343
20344 2008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20345
20346 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
20347 #ifdef MAC_OS.
20348
20349 2008-01-08 Richard Stallman <rms@gnu.org>
20350
20351 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
20352
20353 2008-01-06 Nick Roberts <nickrob@snap.net.nz>
20354
20355 * keyboard.c (parse_menu_item): Don't enclose key bindings on
20356 menu bar in parentheses.
20357
20358 2008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
20359
20360 * m/7300.h:
20361 * m/acorn.h:
20362 * m/alliant-2800.h:
20363 * m/alliant.h:
20364 * m/alliant1.h:
20365 * m/alliant4.h:
20366 * m/altos.h:
20367 * m/amdahl.h:
20368 * m/apollo.h:
20369 * m/att3b.h:
20370 * m/aviion-intel.h:
20371 * m/aviion.h:
20372 * m/celerity.h:
20373 * m/clipper.h:
20374 * m/cnvrgnt.h:
20375 * m/convex.h:
20376 * m/cydra5.h:
20377 * m/delta88k.h:
20378 * m/dpx2.h:
20379 * m/dual.h:
20380 * m/elxsi.h:
20381 * m/f301.h:
20382 * m/gould-np1.h:
20383 * m/gould.h:
20384 * m/i860.h:
20385 * m/ibmps2-aix.h:
20386 * m/ibmrt-aix.h:
20387 * m/ibmrt.h:
20388 * m/irist.h:
20389 * m/is386.h:
20390 * m/isi-ov.h:
20391 * m/mega68.h:
20392 * m/mg1.h:
20393 * m/news-r6.h:
20394 * m/news-risc.h:
20395 * m/news.h:
20396 * m/nh3000.h:
20397 * m/nh4000.h:
20398 * m/ns16000.h:
20399 * m/ns32000.h:
20400 * m/nu.h:
20401 * m/orion.h:
20402 * m/orion105.h:
20403 * m/paragon.h:
20404 * m/pfa50.h:
20405 * m/plexus.h:
20406 * m/pyramid.h:
20407 * m/pyrmips.h:
20408 * m/sh3el.h:
20409 * m/sps7.h:
20410 * m/sr2k.h:
20411 * m/stride.h:
20412 * m/sun1.h:
20413 * m/sun2.h:
20414 * m/sun3-68881.h:
20415 * m/sun3-fpa.h:
20416 * m/sun3-soft.h:
20417 * m/sun3.h:
20418 * m/sun386.h:
20419 * m/symmetry.h:
20420 * m/tad68k.h:
20421 * m/tahoe.h:
20422 * m/targon31.h:
20423 * m/tek4300.h:
20424 * m/tekxd88.h:
20425 * m/tower32.h:
20426 * m/tower32v3.h:
20427 * m/ustation.h:
20428 * m/wicat.h:
20429 * m/xps100.h:
20430 * s/cxux.h:
20431 * s/cxux7.h:
20432 * s/dgux.h:
20433 * s/dgux4.h:
20434 * s/dgux5-4-3.h:
20435 * s/dgux5-4r2.h:
20436 * s/esix.h:
20437 * s/esix5r4.h:
20438 * s/hiuxmpp.h:
20439 * s/hiuxwe2.h:
20440 * s/iris3-5.h:
20441 * s/iris3-6.h:
20442 * s/isc2-2.h:
20443 * s/isc3-0.h:
20444 * s/isc4-0.h:
20445 * s/isc4-1.h:
20446 * s/newsos5.h:
20447 * s/newsos6.h:
20448 * s/osf1.h:
20449 * s/osf5-0.h:
20450 * s/riscix1-1.h:
20451 * s/riscix12.h:
20452 * s/sco4.h:
20453 * s/sco5.h:
20454 * s/sunos4-0.h:
20455 * s/sunos4-1.h:
20456 * s/sunos413.h:
20457 * s/sunos4shr.h:
20458 * s/umax.h:
20459 * s/unipl5-2.h:
20460 * s/xenix.h:
20461 * cxux-crt0.s:
20462 * unexapollo.c:
20463 * unexconvex.c:
20464 * unexenix.c:
20465 * unexsni.c: Remove files for systems no longer supported.
20466
20467 * m/intel386.h: Remove references to unsupported systems.
20468
20469 * w32.c (get_emacs_configuration): Remove reference to i860.
20470
20471 * sysdep.c: Remove dead code.
20472
20473 2008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
20474
20475 * s/rtu.h:
20476 * m/masscomp.h: Remove files. Platform is obsolete.
20477
20478 2008-01-04 Michael Albinus <michael.albinus@gmx.de>
20479
20480 * dbusbind.c (Fdbus_method_return): New function.
20481 (xd_read_message): Add the serial number to the event.
20482 (Fdbus_register_method): Activate the function.
20483
20484 2008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
20485
20486 * keyboard.c (read_key_sequence): Fix typo.
20487
20488 2008-01-03 Michael Albinus <michael.albinus@gmx.de>
20489
20490 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
20491 (xd_signature, xd_append_arg): Handle element type detection for
20492 empty arrays.
20493 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
20494 SDATA () calls; this must be solved more general.
20495 (Fdbus_register_signal): Use SBYTES instead of strlen.
20496
20497 2008-01-03 Magnus Henoch <magnus@zemdatav>
20498
20499 * dbusbind.c (xd_append_arg): Use unsigned char instead of
20500 unsigned int for byte values (necessary for big-endian platform).
20501 (Fdbus_call_method): Handle the case of no returned arguments.
20502
20503 2007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
20504
20505 * dbusbind.c (xd_read_message): Use non-static input_event struct.
20506
20507 2007-12-31 Magnus Henoch <mange@freemail.hu>
20508
20509 * dbusbind.c (xd_signature): Signature of variant is just "v".
20510
20511 2007-12-30 Michael Albinus <michael.albinus@gmx.de>
20512
20513 * dbusbind.c: Fix several errors and compiler warnings.
20514 Reported by Tom Tromey <tromey@redhat.com>.
20515 (XD_ERROR, XD_DEBUG_MESSAGE)
20516 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
20517 (xd_append_arg): Part for basic D-Bus types rewritten.
20518 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
20519 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
20520 appropriate.
20521 (xd_read_message): Return Qnil. Don't signal an error; it is not
20522 useful during event reading.
20523 (Fdbus_register_signal): Signal an error if the check for
20524 FUNCTIONP fails.
20525 (Fdbus_register_method): New function. The implementation is not
20526 complete, the call of the function signals an error therefore.
20527 (Fdbus_unregister_object): New function, renamed from
20528 Fdbus_unregister_signal. The initial check signals an error, if
20529 the object is not well formed.
20530
20531 2007-12-30 Richard Stallman <rms@gnu.org>
20532
20533 * textprop.c (get_char_property_and_overlay):
20534 Signal error if POSITION is out of range in a buffer.
20535
20536 2007-12-29 Martin Rudalics <rudalics@gmx.at>
20537
20538 * w32fns.c (Fx_create_frame): Make copy of frame parameters
20539 because the original parameters are in pure storage now.
20540
20541 2007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20542
20543 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
20544
20545 2007-12-22 Eli Zaretskii <eliz@gnu.org>
20546
20547 * callint.c (syms_of_callint) <command-history>: Add reference to
20548 history-length in the doc string.
20549
20550 2007-12-17 Jason Rumney <jasonr@gnu.org>
20551
20552 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
20553 before passing as wParam.
20554
20555 2007-12-22 Michael Albinus <michael.albinus@gmx.de>
20556
20557 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
20558 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
20559 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
20560 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
20561 as number.
20562 (Fdbus_call_method): Fix docstring.
20563
20564 2007-12-21 Michael Albinus <michael.albinus@gmx.de>
20565
20566 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
20567 New macros.
20568 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
20569 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
20570 Simplify.
20571 (xd_signature): New function.
20572 (xd_append_arg): Compute also signatures. Major rewrite.
20573 (xd_retrieve_arg): Make debug messages friendly.
20574 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
20575 Check for signatures of arguments.
20576
20577 2007-12-19 Michael Albinus <michael.albinus@gmx.de>
20578
20579 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
20580 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
20581 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
20582 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
20583 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
20584 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
20585 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
20586 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
20587 (xd_retrieve_value): Remove. Functionality included in ...
20588 (xd_append_arg): New function.
20589 (Fdbus_call_method, Fdbus_send_signal): Apply it.
20590
20591 2007-12-16 Michael Albinus <michael.albinus@gmx.de>
20592
20593 * dbusbind.c (top): Include <stdio.h>.
20594 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
20595 dbus_message_new_method_call and dbus_message_new_signal.
20596 (Fdbus_register_signal): Rename unique_name to uname.
20597 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
20598 non-existing unique name. Fix typos in matching rule. Return an
20599 object which is useful in Fdbus_unregister_signal.
20600 (Fdbus_unregister_signal): Reimplementation, in order to remove
20601 only the corresponding entry.
20602 (Vdbus_registered_functions_table): Change the order of entries.
20603 Apply these changes in xd_read_message and Fdbus_register_signal.
20604
20605 2007-12-16 Andreas Schwab <schwab@suse.de>
20606
20607 * fileio.c (Finsert_file_contents): Fix overflow check to not
20608 depend on undefined integer overflow.
20609
20610 2007-12-14 Jason Rumney <jasonr@gnu.org>
20611
20612 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
20613 for characters above 127.
20614
20615 2007-12-13 Jason Rumney <jasonr@gnu.org>
20616
20617 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
20618 before dereferencing array.
20619 (lookup_vk_code): Remove zero comparison.
20620
20621 2007-12-14 Michael Albinus <michael.albinus@gmx.de>
20622
20623 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
20624 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
20625 Use `unsigned int' instead of `uint'.
20626 (xd_read_message, Fdbus_register_signal): Split expressions into
20627 multiple lines before operators "&&" and "||", according to the
20628 GNU Coding Standards.
20629
20630 2007-12-14 Eli Zaretskii <eliz@gnu.org>
20631
20632 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
20633
20634 2007-12-12 Juri Linkov <juri@jurta.org>
20635
20636 * buffer.c (Frename_buffer): In interactive spec replace
20637 `read-buffer' with `read-string' that uses `buffer-name-history'
20638 as history, and the current buffer's name as default.
20639
20640 2007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
20641
20642 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
20643 manipulating the backtrace manually.
20644 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
20645 (struct backtrace, backtrace_list): Remove.
20646 (command_loop_1): Remove dead var `no_direct'.
20647
20648 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
20649 preserve non-built-in buffer-local variables.
20650 (Fkill_all_local_variables): Don't re-create&re-set permanent
20651 buffer-local variables.
20652
20653 2007-12-09 Juri Linkov <juri@jurta.org>
20654
20655 * buffer.c (Frename_buffer): Change interactive spec from "s" to
20656 Lisp code that uses `read-buffer' with current buffer as default.
20657
20658 2007-12-08 Michael Albinus <michael.albinus@gmx.de>
20659
20660 * dbusbind.c (xd_read_message): Generate an event for every
20661 registered handler. There might be several handlers registered
20662 for the same signal.
20663 (Fdbus_register_signal): Don't overwrite a registration for the
20664 same signal. Add a new registration if handlers are different.
20665 (Vdbus_registered_functions_table): Rework doc string.
20666
20667 2007-12-07 Michael Albinus <michael.albinus@gmx.de>
20668
20669 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
20670 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
20671 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
20672 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
20673 Unify argument lists.
20674 (xd_read_message, Fdbus_register_signal): Reorder and extend event
20675 arguments and hash table keys. Use unique name for service.
20676 (Fdbus_unregister_signal): Remove checks.
20677 (Vdbus_registered_functions_table): Fix doc string.
20678
20679 2007-12-05 Magnus Henoch <mange@freemail.hu>
20680
20681 * process.c (make_process): Initialize pty_flag to 0.
20682
20683 2007-12-05 Jason Rumney <jasonr@gnu.org>
20684
20685 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
20686 specified XBMs.
20687
20688 2007-12-05 Richard Stallman <rms@gnu.org>
20689
20690 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
20691
20692 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20693
20694 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
20695 New variable.
20696 (mac_try_close_socket) [MAC_OSX]: New function.
20697 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
20698 Update cfsockets_for_select. Replace invalid CFRunLoop source.
20699
20700 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
20701 Use mac_try_close_socket.
20702
20703 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20704
20705 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
20706 reloc_base.
20707 (copy_dysymtab): Compute relocation base here.
20708 (rebase_reloc_address) [__ppc64__]: New function.
20709 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
20710 changed.
20711
20712 2007-12-05 Jason Rumney <jasonr@gnu.org>
20713
20714 * w32proc.c (sys_spawnve): Quote args with wildcards.
20715
20716 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20717
20718 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
20719 __objc_* sections.
20720 (unrelocate) [_LP64]: Set relocation base to address of data segment.
20721
20722 2007-12-05 Michael Albinus <michael.albinus@gmx.de>
20723
20724 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
20725 Move check for Vdbus_registered_functions_table to
20726 xd_read_queued_messages.
20727 (xd_read_queued_messages): Protect xd_read_message calls by
20728 internal_condition_case_1.
20729
20730 2007-12-04 Michael Albinus <michael.albinus@gmx.de>
20731
20732 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
20733 Qdbus_system_bus and Qdbus_session_bus, respectively.
20734 (Vdbus_intern_symbols): Remove.
20735 (Vdbus_registered_functions_table): New hash table.
20736 (XD_SYMBOL_INTERN_SYMBOL): Remove.
20737 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
20738 Rewrite in order to manage registered functions by hash table
20739 Vdbus_registered_functions_table.
20740
20741 2007-12-03 Jan Djärv <jan.h.d@swipnet.se>
20742
20743 * xterm.c: Update URL to Window Manager Specification in comment.
20744
20745 2007-12-02 Michael Albinus <michael.albinus@gmx.de>
20746
20747 * config.in (HAVE_DBUS): Add.
20748
20749 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
20750 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
20751 (obj): Add $(DBUS_OBJ).
20752 (LIBES): Add $(DBUS_LIBS).
20753 (dbusbind.o): New target.
20754
20755 * dbusbind.c: New file.
20756
20757 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
20758
20759 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
20760 (Qdbus_event): New Lisp symbol.
20761 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
20762 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
20763 (keys_of_keyboard): Define dbus-event.
20764
20765 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
20766
20767 2007-12-01 Richard Stallman <rms@gnu.org>
20768
20769 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
20770
20771 2007-11-30 Jason Rumney <jasonr@gnu.org>
20772
20773 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
20774 (w32con_reset_terminal_modes): Clear screen buffer.
20775 (w32_face_attributes): Don't use color indexes that are out of range.
20776 Only reverse the default colors.
20777
20778 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
20779 WINDOWSNT.
20780
20781 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
20782
20783 2007-11-29 Jason Rumney <jasonr@gnu.org>
20784
20785 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
20786 (w32_face_attributes): Use Vtty_defined_color_alist to determine
20787 if the terminal colors are initialized.
20788 (unspecified_fg, unspecified_bg): Remove unused declarations.
20789
20790 2007-11-29 Andreas Schwab <schwab@suse.de>
20791
20792 * keyboard.c (apply_modifiers): Fix typo.
20793
20794 2007-11-29 Richard Stallman <rms@gnu.org>
20795
20796 * keymap.c (Fcurrent_local_map): Doc fix.
20797
20798 2007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
20799
20800 * s/gnu-kfreebsd.h: New file.
20801
20802 2007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
20803
20804 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
20805 Don't cast redundantly.
20806
20807 * keyboard.c (KEY_TO_CHAR): New macro.
20808 (parse_modifiers, apply_modifiers): Accept integer arguments.
20809 (read_key_sequence): Use them to unify the "shift->unshift" mapping
20810 for chars and symbol keys.
20811 After doing such remapping, apply function-key-map again.
20812
20813 2007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
20814
20815 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
20816 compiled anymore.
20817
20818 2007-11-26 Andreas Schwab <schwab@suse.de>
20819
20820 * process.c (list_processes_1): Fix indentation level of the
20821 command column.
20822
20823 2007-11-23 Andreas Schwab <schwab@suse.de>
20824
20825 * editfns.c (Fformat): Handle %c specially since it requires the
20826 argument to be of type int.
20827
20828 2007-11-23 Markus Triska <markus.triska@gmx.at>
20829
20830 * emacs.c (main): Call init_editfns before init_process, since
20831 init_process sets Vprocess_connection_type depending on OS release.
20832
20833 2007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
20834
20835 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
20836 (find_symbol_value): Use do_symval_forwarding.
20837
20838 * data.c (set_internal): Set the value in the `cons-cell' (for
20839 Buffer_Local_values) not only for frame-local variables.
20840
20841 2007-11-22 Andreas Schwab <schwab@suse.de>
20842
20843 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
20844 values to sprintf.
20845 * keymap.c (Fsingle_key_description): Likewise.
20846 * print.c (print_object): Likewise.
20847
20848 2007-11-22 Jan Djärv <jan.h.d@swipnet.se>
20849
20850 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
20851 file for image is nil.
20852
20853 2007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
20854
20855 * term.c: Include stdarg.h.
20856 (fatal): Implement using varargs.
20857 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
20858
20859 2007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
20860
20861 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
20862 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
20863 Update call to buffer_slot_type_mismatch.
20864 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
20865 (buffer_slot_type_mismatch): Update.
20866 * buffer.c (buffer_local_types): Remove.
20867 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
20868 (defvar_per_buffer): Set the type in the buffer_objfwd.
20869
20870 2007-11-21 Jason Rumney <jasonr@gnu.org>
20871
20872 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
20873 CreateFileMapping returns NULL on failure.
20874
20875 2007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
20876
20877 * search.c (Fset_match_data): Remove the `evaporate' feature.
20878 (unwind_set_match_data): Don't use the `evaporate' feature.
20879
20880 2007-11-21 Jason Rumney <jasonr@gnu.org>
20881
20882 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
20883
20884 * w32console.c (w32con_write_glyphs): Remove unused variables.
20885
20886 2007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
20887
20888 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
20889
20890 * s/darwin.h (MULTI_KBOARD): Remove.
20891
20892 * macfns.c (x_create_tip_frame, Fx_create_frame)
20893 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
20894
20895 2007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
20896
20897 * buffer.c (Fbuffer_local_value): Remove redundant test.
20898 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
20899 than in `current-buffer' to match the comment.
20900 Do the swap using swap_in_global_binding.
20901
20902 * data.c (store_symval_forwarding, set_internal):
20903 * eval.c (specbind): Remove dead code.
20904
20905 * coding.c (detect_coding, Fupdate_coding_systems_internal):
20906 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
20907 Since we do not want to see internal Lisp_*fwd objects here.
20908
20909 2007-11-18 Jan Djärv <jan.h.d@swipnet.se>
20910
20911 * sysdep.c (init_system_name): Use getaddrinfo if available.
20912
20913 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
20914 (x_scroll_bar_note_movement): start, end, with, height in struct
20915 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
20916
20917 2007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
20918
20919 * puresize.h (BASE_PURESIZE): Increase to 1190000.
20920
20921 2007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
20922
20923 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
20924 This undoes Richard's change of 14-Oct-2002.
20925
20926 * alloc.c (allocate_other_vector):
20927 * lisp.h (allocate_other_vector): Remove.
20928
20929 * window.c (struct save_window_data): Move non-lisp data to the end
20930 and make it `int' rather than Lisp_Object.
20931 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
20932 Done wrap/unwrap integer values.
20933 (Fset_window_configuration, compare_window_configurations):
20934 Update use of fields to their new types.
20935
20936 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
20937 Turn integer fields into `int'. Merge x_window_low and x_window_high.
20938 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
20939 (SET_SCROLL_BAR_X_WINDOW): Remove.
20940 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
20941 Access the new x_window field directly.
20942 * xterm.c (x_scroll_bar_create): Use a pseudovector.
20943 Don't wrap/unwrap integers into Lisp_Objects.
20944 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
20945 (x_scroll_bar_report_motion):
20946 Don't wrap/unwrap integers into Lisp_Objects.
20947 (x_term_init): Use SDATA.
20948 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
20949 (x_scroll_bar_set_handle, x_scroll_bar_remove)
20950 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
20951 (x_scroll_bar_report_motion, x_scroll_bar_clear):
20952 * xfns.c (x_set_background_color):
20953 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
20954 Access the new x_window field directly.
20955
20956 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
20957 (allocate_pseudovector): Make non-static.
20958
20959 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
20960 (allocate_pseudovector): Declare.
20961 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
20962
20963 2007-11-15 Andreas Schwab <schwab@suse.de>
20964
20965 * editfns.c (Fformat): Correctly format EMACS_INT values.
20966 Also take precision into account when formatting an integer.
20967
20968 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
20969
20970 2007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
20971
20972 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
20973 (syms_of_keyboard): Defsubr it.
20974
20975 * data.c (swap_in_global_binding): Fix longstanding bug where
20976 store_symval_forwarding was not called with the right second argument,
20977 thus causing objfwd-ing from being dropped.
20978
20979 2007-11-14 Juanma Barranquero <lekktu@gmail.com>
20980
20981 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
20982 (Fx_display_pixel_height, Fx_display_planes)
20983 (Fx_display_color_cells, Fx_server_max_request_size)
20984 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
20985 (Fx_display_visual_class, Fx_display_save_under):
20986 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
20987 (Fx_display_pixel_height, Fx_display_planes)
20988 (Fx_display_color_cells, Fx_server_max_request_size)
20989 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
20990 (Fx_display_mm_height, Fx_display_mm_width)
20991 (Fx_display_backing_store, Fx_display_visual_class)
20992 (Fw32_select_font, Fx_display_save_under):
20993 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
20994 (Fx_display_pixel_height, Fx_display_planes)
20995 (Fx_display_color_cells, Fx_server_max_request_size)
20996 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
20997 (Fx_display_save_under): Fix typos in docstrings.
20998
20999 2007-11-14 Juanma Barranquero <lekktu@gmail.com>
21000
21001 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
21002 corresponding to deleted entries; they are an implementation detail.
21003 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
21004 Remove variables.
21005 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
21006 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
21007 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
21008 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
21009 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
21010 (Fw32_define_rgb_color, Fw32_load_color_file)
21011 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
21012 Fix typos in docstrings.
21013 (Fx_server_version): Reflow docstring.
21014 (Fw32_shell_execute): Doc fixes.
21015
21016 2007-11-13 Juanma Barranquero <lekktu@gmail.com>
21017
21018 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
21019 if w32_parse_hot_key returned nil.
21020
21021 2007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
21022
21023 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
21024
21025 2007-11-09 Jason Rumney <jasonr@gnu.org>
21026
21027 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
21028
21029 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
21030
21031 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
21032 Remove W32_SCROLL_BAR_CLICK_EVENT.
21033
21034 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
21035 Add MULTIMEDIA_KEY_EVENT.
21036
21037 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
21038 (lispy_multimedia_keys) [WINDOWSNT]: New array.
21039 (make_lispy_event) [WINDOWSNT]: Use it to translate
21040 MULTIMEDIA_KEY_EVENT.
21041
21042 * w32term.h (WM_APPCOMMAND): Define if not already.
21043 (GET_APPCOMMAND_LPARAM): Likewise.
21044
21045 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
21046 WM_APPCOMMAND.
21047
21048 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
21049 (syms_of_w32fns): Export and initialize it.
21050 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
21051
21052 2007-11-09 Chong Yidong <cyd@stupidchicken.com>
21053
21054 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
21055 twice.
21056
21057 * xdisp.c (handle_face_prop): Fix last change.
21058
21059 2007-11-09 Richard Stallman <rms@gnu.org>
21060
21061 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
21062 not just for after-strings and before-strings.
21063 Call face_for_overlay_string and pass the overlay to it.
21064 (handle_display_prop): Determine whether property came from an overlay.
21065 Pass OVERLAY arg to handle_single_display_spec.
21066 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
21067 (load_overlay_strings): Fill in it->string_overlays.
21068 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
21069
21070 * xfaces.c (face_for_overlay_string): Function renamed from
21071 face_at_buffer_position_no_overlays, and add arg OVERLAY.
21072
21073 * dispextern.h (struct it): New elt string_overlays.
21074 New elt from_overlay, also in stack.
21075 Rearrange a few elements.
21076 (face_for_overlay_string): Decl renamed from
21077 face_at_buffer_position_no_overlays, and add argument.
21078
21079 2007-11-09 Richard Stallman <rms@gnu.org>
21080
21081 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
21082 to get the base face for an overlay string.
21083
21084 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
21085
21086 * xfaces.c (face_at_buffer_position_no_overlays): New function.
21087
21088 * xdisp.c (handle_stop): Move some code out of loop.
21089
21090 2007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21091
21092 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
21093 Fix conversion from Lisp object to ATSUFontID.
21094
21095 2007-11-09 Jason Rumney <jasonr@gnu.org>
21096
21097 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
21098
21099 2007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21100
21101 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
21102 Don't assume regions are aligned to page boundary.
21103 (print_load_command_name): Add LC_UUID if defined.
21104
21105 2007-11-09 Richard Stallman <rms@gnu.org>
21106
21107 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
21108
21109 2007-11-07 Jason Rumney <jasonr@gnu.org>
21110
21111 * s/windows95.h: Remove.
21112
21113 2007-11-06 Jan Djärv <jan.h.d@swipnet.se>
21114
21115 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
21116 abort with a message on unhandled store_type values.
21117
21118 2007-11-01 Jan Djärv <jan.h.d@swipnet.se>
21119
21120 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
21121 Remove HAVE_X11R5 and HAVE_X11R4.
21122
21123 2007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
21124
21125 * Makefile.in: Remove references to sunfns.c and sunfns.o.
21126
21127 2007-11-01 Johan Bockgård <bojohan@gnu.org>
21128
21129 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
21130 Don't set s->stippled_p here, since it has already been set by
21131 x_set_glyph_string_gc from x_draw_glyph_string.
21132
21133 2007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
21134
21135 * sunfns.c: Remove file.
21136
21137 * m/sun386.h:
21138 * m/sun2.h:
21139 * m/sparc.h: Remove Sun windows code.
21140
21141 2007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
21142
21143 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
21144 (init_keyboard): Set current_kboard's window-system to nil.
21145 (tty_read_avail_input): Typo.
21146 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
21147
21148 2007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
21149
21150 * s/usg5-4.h:
21151 * s/usg5-3.h:
21152 * s/ptx.h:
21153 * m/is386.h:
21154 * m/ibmps2-aix.h:
21155 * Makefile.in: Remove all mentions of X10.
21156
21157 * dispnew.c (syms_of_display): Don't mention version 10.
21158
21159 2007-10-28 Juanma Barranquero <lekktu@gmail.com>
21160
21161 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
21162 ($(BLD)/abbrev.$(O)): Remove.
21163
21164 2007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
21165
21166 Rewrite abbrev.c in Elisp.
21167 * image.c (Qcount): Don't declare as extern.
21168 (syms_of_image): Initialize and staticpro `Qcount'.
21169 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
21170 * emacs.c (main): Don't call syms_of_abbrev.
21171 * Makefile.in (obj): Remove abbrev.o.
21172 (abbrev.o): Remove.
21173 * abbrev.c: Remove.
21174
21175 2007-10-26 Martin Rudalics <rudalics@gmx.at>
21176
21177 * window.c (window_min_size_2): Don't count header-line.
21178
21179 2007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
21180
21181 * frame.h (struct frame): Move all bit fields after the first bit
21182 field to take advantage of the available space. Group all the
21183 chars together to reduce wasted space due to padding.
21184
21185 2007-10-26 Juanma Barranquero <lekktu@gmail.com>
21186
21187 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
21188
21189 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
21190 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
21191 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
21192 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
21193 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
21194 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
21195 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
21196 (last_marked, mark_object_loop_halt): Make static.
21197
21198 * frame.c (syms_of_frame) <delete-frame-functions>:
21199 Fix typo in docstring.
21200
21201 2007-10-25 Juanma Barranquero <lekktu@gmail.com>
21202
21203 * w32.c (init_environment): Fix tiny memory leak.
21204 (w32_get_resource): Remove unused variable `ok'.
21205
21206 2007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
21207
21208 Make `window-system' into a keyboard-local variable (rather than
21209 frame-local as done originally by multi-tty).
21210
21211 * keyboard.h (struct kboard): Add Vwindow_system.
21212 * keyboard.c (init_kboard): Set a default for Vwindow_system.
21213 (mark_kboards): Mark Vwindow_system.
21214
21215 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
21216 (init_display): Don't set the obsolete `window-system' frame-param.
21217
21218 * xterm.c (x_term_init):
21219 * w32term.c (w32_create_terminal):
21220 * term.c (init_tty): Set Vwindow_system.
21221 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
21222 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
21223
21224 * xfns.c (Fx_create_frame, x_create_tip_frame):
21225 * w32fns.c (Fx_create_frame, x_create_tip_frame):
21226 * macfns.c (Fx_create_frame):
21227 Don't set the obsolete `window-system' frame-param.
21228
21229 * frame.h (Qwindow_system): Remove.
21230 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
21231 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
21232
21233 2007-10-24 Richard Stallman <rms@gnu.org>
21234
21235 * frame.c (x_figure_window_size): For fullscreen case,
21236 set USPosition | PPosition without clobbering rest of window_prompting.
21237
21238 * keyboard.c (Fcurrent_idle_time): Doc fix.
21239
21240 * print.c (Fwith_output_to_temp_buffer): Doc fix.
21241
21242 2007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
21243
21244 * process.c (unwind_request_sigio): Only define if __ultrix__.
21245
21246 * callproc.c (child_setup): Remove spurious *.
21247
21248 * lisp.h (Fget_text_property): Declare.
21249 (have_menus_p): Declare it here rather than in sys-dep header files.
21250 * macterm.h (have_menus_p):
21251 * msdos.h (have_menus_p):
21252 * xterm.h (have_menus_p): Remove.
21253
21254 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
21255 (Fmake_variable_frame_local): Just check the variable's const-ness
21256 rather than checking nil or t.
21257
21258 2007-10-22 Jason Rumney <jasonr@gnu.org>
21259
21260 * w32fns.c: Include math.h.
21261 (w32_abort): Declaration moved to nt/config.nt.
21262
21263 * s/ms-w32.h (HAVE_STDLIB_H): Define.
21264 (abort): Redefinition moved to nt/config.nt.
21265
21266 * m/windowsnt.h: Remove.
21267
21268 2007-10-22 Juanma Barranquero <lekktu@gmail.com>
21269
21270 * emacs.c (Fdump_emacs): Fix typo in message.
21271 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
21272 <installation-directory>: Reflow docstring.
21273
21274 2007-10-22 Juri Linkov <juri@jurta.org>
21275
21276 * minibuf.c: Allow minibuffer default to be a list of default values.
21277 With empty input use the first element of this list as returned default.
21278 (string_to_object)
21279 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
21280 (read_minibuf): If defalt is cons, set histstring to its car.
21281 (Fread_string): If default_value is cons, set val to its car.
21282 (Fread_buffer): If def is cons, use its car.
21283 (Fcompleting_read): If defalt is cons, set val to its car.
21284
21285 2007-10-21 Michael Albinus <michael.albinus@gmx.de>
21286
21287 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
21288
21289 2007-10-20 Juanma Barranquero <lekktu@gmail.com>
21290
21291 * doc.c (Fdocumentation): Check for advice in all cases.
21292
21293 2007-10-19 Chong Yidong <cyd@stupidchicken.com>
21294
21295 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
21296
21297 2007-10-19 Richard Stallman <rms@gnu.org>
21298
21299 * doc.c (Fdocumentation): Check for and handle an advised function.
21300
21301 2007-10-19 Juanma Barranquero <lekktu@gmail.com>
21302
21303 * process.c (Fset_process_filter): Doc fix.
21304
21305 2007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
21306
21307 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
21308 which caused key-translation-map to applied repeatedly (thus breaking
21309 double-mode).
21310
21311 2007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
21312
21313 * xselect.c (x_own_selection, x_handle_selection_clear)
21314 (x_clear_frame_selections):
21315 * w32menu.c (list_of_panes, list_of_items):
21316 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
21317 * textprop.c (validate_plist, interval_has_all_properties)
21318 (interval_has_some_properties, interval_has_some_properties_list)
21319 (add_properties, text_property_list):
21320 * process.c (Fget_buffer_process, list_processes_1, status_notify):
21321 * minibuf.c (Fassoc_string):
21322 * macselect.c (x_own_selection, x_clear_frame_selections)
21323 (Fx_disown_selection_internal):
21324 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
21325 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
21326
21327 2007-10-17 Chong Yidong <cyd@stupidchicken.com>
21328
21329 * process.c: Link to libs for calling res_init() if available.
21330 (Fmake_network_process): Call res_init() before getaddrinfo or
21331 gethostbyname, if possible.
21332
21333 2007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
21334
21335 * lread.c (read1): Set pvectype for char_tables.
21336
21337 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
21338 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
21339 Add type checks.
21340 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
21341
21342 * alloc.c (free_misc): Use XMISCTYPE.
21343 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
21344
21345 2007-10-17 Glenn Morris <rgm@gnu.org>
21346
21347 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
21348 (syms_of_minibuf): Add Qcompletion_ignore_case.
21349 * dired.c (Qcompletion_ignore_case): Change to external.
21350 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
21351 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
21352 (Fread_file_name): Use it rather than intern'ing.
21353
21354 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
21355 (Fread_coding_system): Ignore case of user input.
21356
21357 2007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21358
21359 * xdisp.c (handle_display_prop): Ignore display specs after
21360 replacing one when string text is being replaced.
21361 (handle_single_display_spec): Pretend as if characters with display
21362 property haven't been consumed only when buffer text is being replaced.
21363
21364 2007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
21365
21366 * xfns.c (Fx_create_frame, Fx_display_list):
21367 * window.c (window_fixed_size_p, enlarge_window)
21368 (shrink_window_lowest_first):
21369 * macterm.c (init_font_name_table):
21370 * macfns.c (Fx_create_frame, Fx_display_list):
21371 * lread.c (close_load_descs):
21372 * keyboard.c (read_char_x_menu_prompt):
21373 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
21374 * coding.c (code_convert_region_unwind): Test the type of an object
21375 rather than just !NILP before extracting data from it.
21376
21377 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
21378
21379 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
21380 (XMISCANY): New macro.
21381 (XMISCTYPE): Use it.
21382 (struct Lisp_Misc_Any): New type.
21383 (union Lisp_Misc): Use it.
21384 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
21385 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
21386 (find_symbol_value, set_internal, default_value, Fset_default)
21387 (Fmake_variable_buffer_local, Fmake_local_variable)
21388 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
21389 (Flocal_variable_if_set_p, Fvariable_binding_locus):
21390 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
21391 * alloc.c (allocate_buffer): Set the size and tag.
21392 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
21393 Use XMISCANY.
21394 (die): Follow the GNU convention for error messages.
21395 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
21396 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
21397 tag any more.
21398 (set_buffer_internal_1):
21399 * frame.c (store_frame_param):
21400 * eval.c (specbind):
21401 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
21402
21403 * doc.c (Fsnarf_documentation): Simplify.
21404
21405 2007-10-14 Juanma Barranquero <lekktu@gmail.com>
21406
21407 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
21408 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
21409
21410 2007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
21411
21412 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
21413
21414 2007-10-14 Juanma Barranquero <lekktu@gmail.com>
21415
21416 * eval.c (do_autoload): Don't save autoloads.
21417
21418 * data.c (Ffset): Save autoload of the function being set.
21419
21420 2007-10-07 John Paul Wallington <jpw@pobox.com>
21421
21422 * xfns.c (x_create_tip_frame): Set the `display-type' frame
21423 parameter before setting up faces.
21424
21425 2007-10-13 Eli Zaretskii <eliz@gnu.org>
21426
21427 * ccl.c (Fregister_code_conversion_map):
21428 * keyboard.c (append_tool_bar_item): Reformat last change.
21429
21430 * lisp.h (eabs): Rename from `abs'. All callers changed.
21431
21432 2007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
21433
21434 * buffer.c (add_overlay_mod_hooklist):
21435 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
21436 * fontset.c (make_fontset):
21437 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
21438 (append_tool_bar_item):
21439 * macmenu.c (grow_menu_items):
21440 * w32menu.c (grow_menu_items):
21441 * xmenu.c (grow_menu_items): Use larger_vector.
21442
21443 2007-10-13 Eli Zaretskii <eliz@gnu.org>
21444
21445 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
21446 selected frame'' on MSDOS).
21447
21448 2007-10-12 Martin Rudalics <rudalics@gmx.at>
21449
21450 * frame.c (Qexplicit_name): New variable.
21451 (x_report_frame_params): Report it in parameter alist.
21452 (syms_of_frame): Intern and staticpro it.
21453
21454 2007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
21455
21456 * macfns.c (x_create_tip_frame): Set terminal for frame.
21457
21458 2007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
21459
21460 * frame.c (Qenvironment): Remove.
21461 (syms_of_frame) <Qenvironment>: Don't initialize.
21462 (Fdelete_frame): Don't treat the `environment' param specially.
21463 * frame.h (Qenvironment): Don't declare.
21464 * callproc.c (set_initial_environment): Don't set unused frame param.
21465
21466 * frame.c (Fframe_with_environment): Remove.
21467 (syms_of_frame) <Sframe_with_environment>: Don't declare.
21468
21469 * lisp.h (Fframe_with_environment): Don't declare.
21470
21471 2007-10-10 Juanma Barranquero <lekktu@gmail.com>
21472
21473 * indent.c (indent_tabs_mode, last_known_column)
21474 (last_known_column_modified): Make static.
21475 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
21476
21477 2007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
21478
21479 * puresize.h (BASE_PURESIZE): Increase to 1170000.
21480
21481 2007-10-09 Jason Rumney <jasonr@gnu.org>
21482
21483 * w32term.c (x_set_window_size): Disable code that attempts to tell
21484 Lisp code about a size change before it actually happens.
21485
21486 2007-10-09 Richard Stallman <rms@gnu.org>
21487
21488 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
21489 return HANDLED_RETURN.
21490
21491 2007-10-08 Martin Rudalics <rudalics@gmx.at>
21492
21493 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
21494 when there's an unread command event.
21495
21496 * frame.c (focus_follows_mouse): Move here from frame.el to allow
21497 window autoselection act appropriately when leaving selected frame.
21498 (syms_of_frame): Initialize focus_follows_mouse.
21499 * frame.h (focus_follows_mouse): Extern it.
21500 * macterm.c (XTread_socket): When focus_follows_mouse is nil
21501 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
21502 * msdos.c (dos_rawgetc): Likewise.
21503 * w32term.c (w32_read_socket): Likewise.
21504 * xterm.c (handle_one_xevent): Likewise.
21505 * xdisp.c (syms_of_xdisp): In doc-string of
21506 mouse-autoselect-window mention focus-follows-mouse.
21507
21508 2007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21509
21510 * macterm.c (mac_load_query_font): Fix missing return value.
21511 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
21512 Add BLOCK_INPUT.
21513
21514 2007-10-08 Richard Stallman <rms@gnu.org>
21515
21516 * xdisp.c (get_window_cursor_type): Implement documented behavior
21517 for cursor-in-non-selected-windows = t.
21518
21519 2007-10-08 Jason Rumney <jasonr@gnu.org>
21520
21521 * w32.c (w32_get_resource): Always close registry keys.
21522
21523 2007-10-08 Jason Rumney <jasonr@gnu.org>
21524
21525 * makefile.w32-in (LIBS): Add COMCTL32.
21526
21527 * w32fns.c (globals_of_w32fns): Init common controls.
21528
21529 2007-10-08 Richard Stallman <rms@gnu.org>
21530
21531 * image.c (our_memory_buffer): Rename from omfib_buffer.
21532
21533 2007-10-08 Richard Stallman <rms@gnu.org>
21534
21535 * buffer.c (Foverlays_at): Doc fix.
21536
21537 2007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
21538
21539 * fns.c (Fplist_put): Preserve uneven tail data.
21540
21541 2007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
21542
21543 * termhooks.h (enum event_kind): Remove trailing comma.
21544
21545 * frame.h (enum): Remove trailing comma.
21546
21547 2007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
21548
21549 * w32proc.c (delete_child): Don't terminate threads of zombies.
21550
21551 2007-10-08 Martin Rudalics <rudalics@gmx.at>
21552
21553 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
21554
21555 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
21556 last-repeatable-command.
21557 (init_kboard): Initialize Vlast_repeatable_command.
21558 (command_loop_1): Set it to real_this_command unless that was
21559 bound to an input event.
21560 (mark_kboards): Mark it.
21561
21562 2007-10-08 Richard Stallman <rms@gnu.org>
21563
21564 * eval.c (condition-case): Doc fix.
21565
21566 2007-10-08 Masatake YAMATO <jet@gyve.org>
21567
21568 * xfaces.c (tty_supports_face_attributes_p): Fix code
21569 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
21570 was copied and not edited.
21571
21572 2007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
21573
21574 Add new `input-decode-map' keymap and use it for terminal
21575 escape sequences.
21576 * keyboard.h (struct kboard): Add Vinput_decode_map.
21577 Remove Vlocal_key_translation_map.
21578 * keyboard.c (read_key_sequence): Add support for input-decode-map.
21579 (init_kboard): Init input-decode-map.
21580 Replace local-key-translation-map back with key-translation-map.
21581 (syms_of_keyboard): Declare input-decode-map.
21582 Remove local-key-translation-map. Update docstrings.
21583 (mark_kboards): Mark Vinput_decode_map.
21584 Don't mark Vlocal_key_translation_map.
21585 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
21586 Replace local-key-translation-map back with key-translation-map.
21587 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
21588 Bind in input-decode-map rather than function-key-map.
21589
21590 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
21591 This was made redundant by the previous introduction of XSETPVECTYPE.
21592
21593 2007-10-09 Richard Stallman <rms@gnu.org>
21594
21595 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
21596
21597 2007-09-29 Richard Stallman <rms@gnu.org>
21598
21599 * eval.c (internal_condition_case_2, internal_condition_case_1)
21600 (internal_condition_case): Reenable abort if x_catching_errors ()
21601 to see if that really happens and why.
21602
21603 2007-10-06 Andreas Schwab <schwab@suse.de>
21604
21605 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
21606
21607 2007-10-04 Juanma Barranquero <lekktu@gmail.com>
21608
21609 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
21610
21611 2007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
21612
21613 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
21614
21615 2007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
21616
21617 * window.h (struct window):
21618 * window.c (struct save_window_data, struct saved_window):
21619 * termhooks.h (struct terminal):
21620 * process.h (struct Lisp_Process):
21621 * frame.h (struct frame):
21622 * buffer.h (struct buffer):
21623 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
21624 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
21625 The size field of (pseudo)vectors is now unsigned.
21626 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
21627
21628 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
21629 Turn `count' into an integer.
21630
21631 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
21632 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
21633 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
21634 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
21635 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
21636
21637 * alloc.c (allocate_pseudovector): New fun.
21638 (ALLOCATE_PSEUDOVECTOR): New macro.
21639 (allocate_window, allocate_terminal, allocate_frame)
21640 (allocate_process): Use it.
21641 (mark_vectorlike): New function.
21642 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
21643 (mark_terminals): Use it.
21644 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
21645 (Fmake_byte_code): Use XSETPVECTYPE.
21646
21647 * frame.c (Fframe_parameters): Minor simplification.
21648
21649 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
21650
21651 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
21652
21653 * buffer.c (Fget_buffer_create, init_buffer_once):
21654 * lread.c (defsubr):
21655 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
21656
21657 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
21658 defined differently in the m/*.h files.
21659 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
21660 (XSETPVECTYPE): New macro.
21661 (XSETPSEUDOVECTOR): Use it.
21662
21663 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
21664 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
21665
21666 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
21667 * lread.c (defvar_per_buffer):
21668 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
21669
21670 * window.c (candidate_window_p): Only consider as visible frames that
21671 are on the same terminal.
21672
21673 * m/ibms390x.h (MARKBIT): Remove unused macro.
21674
21675 2007-10-01 Juanma Barranquero <lekktu@gmail.com>
21676
21677 * lread.c (Fload): Fix typo in docstring.
21678
21679 2007-10-01 Michaël Cadilhac <michael@cadilhac.name>
21680
21681 * floatfns.c (Fexpt): Manually check for overflows, so that a power
21682 of a non-zero value can't yield zero.
21683
21684 2007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
21685
21686 * term.c (term_clear_mouse_face, term_mouse_highlight)
21687 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
21688
21689 * print.c (safe_debug_print): Use XHASH.
21690
21691 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
21692 Lisp elements such as tags.
21693 (XHASH): New macro.
21694 (EQ): Use it.
21695 (SREF, SSET, STRING_COPYIN): Use SDATA.
21696 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
21697
21698 * alloc.c (mark_terminal): Remove left-over declaration.
21699 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
21700 (allocate_vectorlike): Remove type argument. Adjust callers.
21701 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
21702 Only handle the one remaining MEM_TYPE_VECTORLIKE.
21703
21704 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
21705 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
21706 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
21707 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
21708 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
21709 Use them.
21710
21711 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
21712 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
21713 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
21714
21715 2007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
21716
21717 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
21718 loaded by default.
21719
21720 2007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
21721
21722 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
21723 on this tty.
21724 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
21725
21726 * term.c (mouse_face_window): Rename from Qmouse_face_window.
21727 Update all users.
21728 (handle_one_term_event): Use Gpm_DrawPointer.
21729 (Fgpm_mouse_start): Rename from Fterm_open_connection.
21730 Signal errors instead of returning nil. Always return nil.
21731 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
21732 Make it a noop if gpm-mouse was not activated.
21733 (syms_of_term): Update names.
21734
21735 2007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
21736
21737 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
21738 (init_sys_modes): Check that gpm_tty is the current tty.
21739
21740 * alloc.c (allocate_terminal): Set the vector size to only count the
21741 lisp fields. Initialize those to nil.
21742 (mark_object): Don't treat terminals specially.
21743 (mark_terminal): Remove.
21744 (mark_terminals): Use mark_object instead.
21745
21746 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
21747 the GC to the beginning.
21748
21749 * indent.h:
21750 * indent.c: Use EMACS_INT for ints coming from Elisp data.
21751
21752 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
21753
21754 2007-09-25 Jason Rumney <jasonr@gnu.org>
21755
21756 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
21757
21758 * w32console.c (create_w32cons_output): Remove.
21759
21760 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
21761
21762 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
21763 (reset_sys_modes): Use reset_terminal_modes_hook.
21764
21765 2007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
21766
21767 * eval.c (do_autoload): Don't output any message.
21768
21769 2007-09-24 Juri Linkov <juri@jurta.org>
21770
21771 * emacs.c (standard_args): Change priority of "--no-splash"
21772 from 40 to 3. Add "--no-desktop" with the same priority.
21773
21774 2007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
21775
21776 * alloc.c (gc_sweep): Check cons cell mark bits word by word
21777 and optimize the case where they are all 1.
21778
21779 2007-09-23 Johannes Weiner <hannes@saeurebad.de>
21780
21781 * lisp.h (abs): Define if not defined.
21782 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
21783 Don't define `abs', since it's defined in lisp.h.
21784
21785 2007-09-22 Eli Zaretskii <eliz@gnu.org>
21786
21787 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
21788 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
21789 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
21790 (init_tty): Use DEV_TTY instead of "/dev/tty".
21791 [WINDOWSNT]: No need to protect from NAME arg being null.
21792
21793 2007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
21794
21795 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
21796 up the tty state.
21797
21798 2007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
21799
21800 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
21801 (gpm_tty): Change its type.
21802 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
21803 (gpm_tty): Change its type and initialize it.
21804 (Fterm_open_connection): Check the frame is indeed a tty.
21805 Use the new gpm_tty.
21806 (Fterm_close_connection): Use the new gpm_tty.
21807 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
21808 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
21809
21810 2007-09-21 Juanma Barranquero <lekktu@gmail.com>
21811
21812 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
21813 underline_color, to draw strike-through.
21814
21815 2007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
21816
21817 * lisp.h (allocate_terminal): Declare.
21818
21819 * window.c (candidate_window_p): Consider frames that are being placed
21820 by the user as somewhere between visible and iconified.
21821 (window_loop): Prefer windows on the current frame.
21822 (Fselect_window): Move the use of select-frame to the beginning so we
21823 can just delegate all the work (it'll call us back anyway).
21824
21825 * frame.c (Qdisplay_environment_variable):
21826 * frame.h (Qdisplay_environment_variable): Delete.
21827
21828 * .gdbinit (xbacktrace): Print the arg's address rather than the value
21829 of the first arg, since that value may be a union.
21830
21831 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
21832 parameter rather than Qdisplay_environment_variable. If all else
21833 fails, look for DISPLAY in initial-environment.
21834
21835 2007-09-21 Glenn Morris <rgm@gnu.org>
21836
21837 * Makefile.in (emacstool): Remove target.
21838 (lisp, shortlisp): Remove termdev.elc.
21839
21840 2007-09-21 Markus Triska <markus.triska@gmx.at>
21841
21842 * xterm.c (x_delete_display): Compile session management conditionally.
21843
21844 2007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
21845
21846 * callproc.c (getenv_internal_1): New function.
21847 (getenv_internal): Use it.
21848 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
21849
21850 * terminal.c (get_terminal): Don't accept ints to represent terminals.
21851 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
21852 (Fset_terminal_parameter): Work with dead terminals as well.
21853 (Fmodify_terminal_parameters): Remove.
21854
21855 * terminal.c (get_terminal): Handle terminals.
21856 Make sure the terminal returned is live.
21857 (create_terminal): Use allocate_terminal.
21858 (mark_terminals): Move to alloc.c.
21859 (delete_terminal): Use terminal->name as liveness status.
21860 NULL out fields after freeing their contents.
21861 Don't deallocate the object.
21862 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
21863 rather than an int.
21864 (Fterminal_live_p): Accept non-integer arguments.
21865 (Fterminal_list): Return terminal objects rather than an ints.
21866
21867 * alloc.c (enum mem_type): New member for `terminal' objects.
21868 (allocate_terminal): New function.
21869 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
21870 Handle terminals.
21871 (mark_terminal): New fun.
21872 (mark_terminals): Move from terminal.c.
21873
21874 * term.c (get_tty_terminal): Don't treat output_initial specially.
21875 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
21876 (delete_tty): Use terminal->name as liveness status.
21877
21878 * termhooks.h (struct terminal): Make it into a pseudovector.
21879 Remove `deleted' replaced by checking `name's nullness.
21880
21881 * print.c (print_object): Handle terminals.
21882
21883 * lisp.h (enum pvec_type): New `terminal' pseudovector.
21884 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
21885
21886 * frame.c (make_terminal_frame):
21887 * keyboard.c (tty_read_avail_input):
21888 * w32term.c (x_delete_terminal):
21889 * xfns.c (Fx_create_frame, x_create_tip_frame):
21890 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
21891
21892 2007-09-20 Glenn Morris <rgm@gnu.org>
21893
21894 * process.c (Fmake_network_process): Doc fix.
21895
21896 2007-09-19 Jason Rumney <jasonr@gnu.org>
21897
21898 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
21899
21900 2007-09-19 Michaël Cadilhac <michael@cadilhac.name>
21901
21902 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
21903 Fix a C warning regarding variable constness.
21904
21905 * xterm.c (handle_one_xevent): Fix a C warning.
21906
21907 2007-09-18 Jason Rumney <jasonr@gnu.org>
21908
21909 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
21910
21911 2007-09-17 Jan Djärv <jan.h.d@swipnet.se>
21912
21913 * gtkutil.c (gdpy_def): New variable.
21914 (xg_initialize): Initialize gdpy_def.
21915 (xg_display_close): If no other display exists, set gdpy_def to a
21916 new connection.
21917
21918 2007-09-16 Jan Djärv <jan.h.d@swipnet.se>
21919
21920 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
21921 when we have no file name for the icon.
21922 (xg_tool_bar_expose_callback): Remove.
21923 (xg_create_tool_bar): Don't connect expose signal to
21924 xg_tool_bar_expose_callback.
21925 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
21926
21927 2007-09-16 Andreas Schwab <schwab@suse.de>
21928
21929 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
21930 values instead of zapping them.
21931
21932 2007-09-14 Glenn Morris <rgm@gnu.org>
21933
21934 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
21935 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
21936 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
21937 scope and rename to omfib_buffer for clarity.
21938 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
21939
21940 2007-09-14 Kenichi Handa <handa@m17n.org>
21941
21942 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
21943
21944 2007-09-13 Jason Rumney <jasonr@gnu.org>
21945
21946 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
21947
21948 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
21949
21950 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
21951 (mac_term_init): Call here instead, passing rif.
21952
21953 2007-09-13 Glenn Morris <rgm@gnu.org>
21954
21955 * s/hpux.h: No longer define `static' as nothing.
21956
21957 2007-09-13 Johan Bockgård <bojohan@gnu.org>
21958
21959 * callint.c (Fcall_interactively): Remove unused var `fun'.
21960
21961 2007-09-12 Romain Francoise <romain@orebokech.com>
21962
21963 * window.c (prefer_window_split_horizontally, display_buffer):
21964 Revert 2007-09-08 change.
21965
21966 2007-09-12 Glenn Morris <rgm@gnu.org>
21967
21968 * alloca.c: Remove file.
21969 * Makefile.in (alloca): Do not undef.
21970 (allocaobj, alloca.o): Remove.
21971 (otherobj): Remove allocaobj.
21972 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
21973 * regex.c (C_ALLOCA): Remove all references and code that was only
21974 used when this was defined.
21975 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
21976 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
21977 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
21978
21979 * Makefile.in (SOURCES, unlock, relock): Delete.
21980
21981 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
21982 (menu_grab_callback): All uses changed.
21983
21984 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
21985 (x_reply_selection_request): All uses changed.
21986
21987 2007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
21988
21989 * lread.c (load_warn_old_style_backquotes): Change message to look
21990 better when it appears in the middle of byte-compiler messages.
21991
21992 2007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
21993
21994 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
21995
21996 * xterm.c (x_create_terminal): Add comment.
21997
21998 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
21999
22000 2007-09-10 Richard Stallman <rms@gnu.org>
22001
22002 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
22003
22004 2007-09-10 Michaël Cadilhac <michael@cadilhac.name>
22005
22006 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
22007 (DEFUN): Document `intspec', use it instead of `prompt'.
22008
22009 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
22010
22011 * data.c (Finteractive_form): If the interactive specification starts
22012 with a `(', use it as a Lisp form.
22013
22014 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
22015 name and file modes.
22016
22017 * callint.c (Fcall_interactively): Comment fixes.
22018
22019 2007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
22020
22021 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
22022 and compiled functions.
22023
22024 2007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
22025
22026 * window.c (prefer_window_split_horizontally): New variable.
22027 (display_buffer): Consider splitting window horizontally depending
22028 on prefer_window_split_horizontally.
22029
22030 2007-09-08 Eli Zaretskii <eliz@gnu.org>
22031
22032 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
22033
22034 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
22035
22036 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
22037
22038 * frame.c (x_set_frame_parameters): Check number is positive before
22039 using XFASTINT.
22040
22041 * window.c (freeze_window_start): Don't presume selected_window holds
22042 a window object.
22043 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
22044
22045 2007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
22046
22047 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
22048
22049 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
22050
22051 * window.c (Vsplit_window_preferred_function): New var.
22052 (Fdisplay_buffer): Use it.
22053 (syms_of_window): Export, and initialize it.
22054
22055 2007-09-06 Pixel <pixel@mandriva.com> (tiny change)
22056
22057 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
22058
22059 2007-09-06 Glenn Morris <rgm@gnu.org>
22060
22061 * gtkutil.c (menu_grab_callback) <cnt>:
22062 * xselect.c (x_reply_selection_request) <cnt>: Move static
22063 variable to file scope.
22064
22065 2007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
22066
22067 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
22068 consistent values of selected_frame and selected_window.
22069
22070 2007-09-04 Jason Rumney <jasonr@gnu.org>
22071
22072 * w32console.c (initialize_w32_display): Zero unused hooks.
22073
22074 2007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
22075
22076 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
22077 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
22078
22079 2007-09-04 Jason Rumney <jasonr@gnu.org>
22080
22081 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
22082 in w32console.c. Set up input. Remove XXX comments that have been
22083 confirmed as correct.
22084
22085 * s/ms-w32.h (MULTI_KBOARD): Define.
22086
22087 * w32console.c (one_and_only_w32cons): Remove.
22088 (initialize_w32_display): Take terminal argument.
22089
22090 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
22091 initialize_w32_display.
22092 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
22093
22094 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
22095
22096 * keyboard.c (discard_mouse_events): Discard it.
22097 (make_lispy_event): Translate it to a lisp event.
22098 (lispy_wheel_names): Add wheel-left and right events.
22099 (syms_of_keyboard): Enlarge wheel_syms.
22100
22101 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
22102 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
22103
22104 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
22105
22106 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
22107 from WM_MOUSEHWHEEL.
22108 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
22109
22110 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
22111 terminal.
22112
22113 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
22114 keyboard for the terminal.
22115
22116 2007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
22117
22118 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
22119 (Vresume_tty_hook): Rename from Vresume_tty_functions.
22120 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
22121 and resume-tty-function to resume-tty-hook.
22122 (Fsuspend_tty, Fresume_tty): Use new names.
22123
22124 2007-09-02 Jan Djärv <jan.h.d@swipnet.se>
22125
22126 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
22127 if it starts with "n:".
22128
22129 2007-08-31 Jan Djärv <jan.h.d@swipnet.se>
22130
22131 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
22132
22133 2007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
22134
22135 * frame.h:
22136 * frame.c (Qterm_environment_variable): Remove.
22137 (syms_of_frame): Don't init and staticpro it.
22138
22139 * callproc.c (getenv_internal): Remove special case for $TERM.
22140
22141 * callproc.c (Vinitial_environment): New variable.
22142 (set_initial_environment): Initialize it.
22143 (syms_of_callproc): Declare it.
22144 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
22145 TERM under which a process runs is never related to the TERM in which
22146 Emacs is running.
22147
22148 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
22149
22150 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
22151 * s/darwin.h: ... do it here.
22152
22153 2007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
22154
22155 * lisp.h (set_initial_environment): Rename from set_global_environment.
22156
22157 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
22158 removed by mistake on the multi-tty branch.
22159
22160 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
22161 (Fmodify_frame_parameters): Return a value.
22162
22163 * image.c (png_load): Comment-out var only used in commented-out code.
22164
22165 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
22166 before passing it to mark_object.
22167
22168 * xfaces.c (internal_resolve_face_name): Return a value.
22169 (internal_resolve_face_name, resolve_face_name_error): Comment out.
22170
22171 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
22172 (x_icon): Comment-out var only used in commented-out code.
22173
22174 2007-08-29 Romain Francoise <romain@orebokech.com>
22175
22176 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
22177 QUIT hasn't been provided.
22178
22179 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
22180
22181 * callproc.c (child_setup, getenv_internal): Use the
22182 display-environment-variable and term-environment-variable frame params.
22183 (set_initial_environment): Initialise Vprocess_environment.
22184
22185 * config.in: Disable multi-keyboard support on a mac.
22186
22187 * frame.c (Qterm_environment_variable)
22188 (Qdisplay_environment_variable): New variables.
22189 (syms_of_frame): Intern and staticpro them.
22190 (Fmake_terminal_frame): Disable output method test.
22191
22192 * frame.h: Declare them here.
22193
22194 * macfns.c (x_set_mouse_color): Get rif from the frame.
22195 (x_set_tool_bar_lines): Don't use updating_frame.
22196 (mac_window): Add 2 new parameters for consistency with other systems.
22197 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
22198 frame parameters following what is done in X11 and w32. Don't use
22199 FRAME_MAC_DISPLAY_INFO.
22200 (Fx_open_connection, start_hourglass): Remove window-system check.
22201 (x_create_tip_frame): Get the keyboard from the terminal.
22202
22203 * macmenu.c: Reorder includes.
22204 (Fx_popup_menu): Use terminal specific mouse_position_hook.
22205
22206 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
22207 terminal parameter.
22208 (x_clear_frame): Add a frame parameter.
22209 (note_mouse_movement): Get rif from the frame.
22210 (mac_term_init): Initialize the terminal.
22211 (mac_initialize): Make static and move terminal initialization ...
22212 (mac_create_terminal): ... to this new function.
22213
22214 * macterm.h (struct mac_display_info): Add terminal.
22215 (mac_initialize): Delete declaration.
22216
22217 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
22218
22219 * sysdep.c: Comment out text after #endif.
22220
22221 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
22222 is defined. Better initialize ttys in windows. Use terminal
22223 specific mouse_position_hook.
22224
22225 * termhooks.h (union display_info): Add mac_display_info.
22226
22227 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
22228 Set the default minibuffer frame, window_system and the rest of the
22229 frame parameters following what is done in X11.
22230
22231 * w32term.c (w32_initialize): Make static.
22232
22233 * xselect.c (x_handle_selection_clear): Only access
22234 terminal->kboard when MULTI_KBOARD is defined.
22235
22236 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
22237 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
22238
22239 2007-08-29 Jason Rumney <jasonr@gnu.org>
22240
22241 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
22242 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
22243
22244 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
22245 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
22246
22247 * keyboard.c (restore_kboard_configuration): Only define when
22248 MULTI_KBOARD defined.
22249
22250 * makefile.w32-in: Update dependancies from Makefile.in.
22251 (OBJ1): Add terminal.$(O)
22252
22253 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
22254 Don't define function body.
22255 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
22256
22257 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
22258
22259 * w32.c (request_sigio, unrequest_sigio): Remove.
22260
22261 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
22262 (w32con_clear_frame, w32con_clear_end_of_line)
22263 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
22264 (w32con_delete_glyphs, w32con_set_terminal_window)
22265 (scroll_line, w32_sys_ring_bell): Add frame arg.
22266 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
22267 Add terminal arg.
22268 (PICK_FRAME): Remove.
22269 (w32con_write_glyphs): Use frame specific terminal coding.
22270 (one_and_only_w32cons): New global variable.
22271 (initialize_w32_display): Use it for storing hooks.
22272 (create_w32cons_output): New function.
22273
22274 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
22275 arg a frame.
22276
22277 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
22278 Set window_system.
22279 (x_set_tool_bar_lines): Don't use updating_frame.
22280 (Fx_create_frame): Set terminal and ref count.
22281 (Fx_open_connection): Remove window-system check.
22282
22283 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
22284
22285 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
22286 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
22287 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
22288 Add frame arg.
22289 (x_delete_terminal, w32_create_terminal): New functions.
22290 (w32_term_init): Create a terminal.
22291 (w32_initialize): Move terminal specific initialization to
22292 w32_create_terminal.
22293
22294 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
22295 (w32_clear_rect, w32_clear_area): Use background from frame.
22296 (w32_display_info): Add terminal.
22297 (w32_sys_ring_bell, x_delete_display): Declare here.
22298
22299 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
22300
22301 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
22302
22303 2007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
22304
22305 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
22306 Fix get_named_tty calls for the controlling tty.
22307
22308 2007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
22309
22310 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
22311
22312 2007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
22313
22314 * term.c (tty_insert_glyphs): Add missing first parameter.
22315
22316 2007-08-29 Károly Lőrentey <karoly@lorentey.hu>
22317
22318 * buffer.c (Fbuffer_list, Fbury_buffer):
22319 Take frame->buried_buffer_list into account.
22320
22321 * cm.c (current_tty): New variable, for cmputc().
22322 (cmputc): Use it.
22323 (cmcheckmagic): Add tty parameter, look up terminal streams there.
22324 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
22325 (cmgoto): Add tty parameter. Pass it on to calccost().
22326 Use emacs_tputs() instead of tputs().
22327
22328 * cm.h (emacs_tputs): New macro to set current_tty, and then call
22329 tputs().
22330 (current_tty): New variable, for cmputc().
22331 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
22332
22333 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
22334 (internal_condition_case, internal_condition_case_1)
22335 (internal_condition_case_2): Don't abort when x_catching_errors.
22336
22337 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
22338 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
22339 prevent crashes caused by bogus longjmps in read_char.
22340
22341 * keymap.h (Fset_keymap_parent): Add EXFUN.
22342
22343 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
22344 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
22345 Remove redundant definition.
22346
22347 * macfns.c (x_set_mouse_color, x_make_gc):
22348 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
22349
22350 * w32term.c (x_free_frame_resources):
22351 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
22352 (w32_initialize): Use the accessor macros for terminal characteristics.
22353
22354 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
22355 Use the accessor macros for terminal characteristics.
22356 * msdos.c (internal_terminal_init): Use the accessor macros for
22357 terminal characteristics.
22358 (ScreenVisualBell, internal_terminal_init):
22359 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
22360
22361 * termopts.h (no_redraw_on_reenter): Declare.
22362
22363 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
22364 (mark_terminals, mark_ttys): Declare.
22365 (Fgarbage_collect): Call them.
22366 (mark_object): Mark buried_buffer_list.
22367
22368 * prefix-args.c: Include stdlib.h for exit.
22369
22370 * syssignal.h: Add comment.
22371
22372 * indent.c: Include stdio.h.
22373
22374 * window.h (Vinitial_window_system): Declare.
22375 (Vwindow_system): Delete declaration.
22376
22377 * fontset.c (Finternal_char_font): Use FRAME_RIF.
22378
22379 * image.c (lookup_image): Don't initialize `c' until the xasserts
22380 have been run.
22381
22382 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
22383 FRAME_FOREGROUND_PIXEL.
22384
22385 * print.c (print_preprocess): Don't lose print_depth levels while
22386 iterating.
22387
22388 * widget.c (update_from_various_frame_slots):
22389 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
22390
22391 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
22392 frames.
22393 (window_internal_height): Remove bogus make_number call.
22394 (init_window_once): Call make_terminal_frame with two zero parameters.
22395
22396 * fileio.c (Fread_file_name): Update comment.
22397
22398 * callint.c (Fcall_interactively):
22399 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
22400 Make sure it is correctly unwound.
22401
22402 * xsmfns.c (x_session_close): New function.
22403
22404 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
22405 Delete declarations.
22406
22407 * xterm.h: Remove declaration for x_fully_uncatch_errors.
22408 (x_output): Remove background_pixel and foreground_pixel fields.
22409 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
22410 (x_delete_device, x_session_close): Declare.
22411
22412 * lread.c: Include setjmp.h. Update declaration of `read_char'.
22413 (read_filtered_event): Call `read_char' with a local
22414 `wrong_kboard_jmpbuf'.
22415
22416 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
22417 Don't call single_kboard_state. Use FRAME_RIF.
22418
22419 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
22420 systems.
22421
22422 * lisp.h (set_process_environment): Rename to `set_global_environment'.
22423 (Fframe_with_environment, Fset_input_meta_mode)
22424 (Fset_quit_char): EXFUN.
22425 (x_create_device, tty_output, terminal, tty_display_info): Declare.
22426 (init_sys_modes, reset_sys_modes): Update prototypes.
22427 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
22428
22429 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
22430 Vlocal_key_translation_map, and Vkeyboard_translate_table.
22431 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
22432 Delete declarations.
22433 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
22434 (temporarily_switch_to_single_kboard, tty_read_avail_input):
22435 New declarations.
22436
22437 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
22438 already does that during init_display(). Call syms_of_keymap
22439 before syms_of_keyboard. Call `syms_of_terminal'.
22440 Call set_initial_environment, not set_process_environment.
22441 (shut_down_emacs): Call reset_all_sys_modes() instead of
22442 reset_sys_modes().
22443
22444 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
22445 (internal_resolve_face_name, resolve_face_name_error): New functions.
22446 (resolve_face_name): Protect against loops and errors thrown by Fget.
22447 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
22448 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
22449
22450 * scroll.c: Replace CURTTY() with local variables throughout the
22451 file (where applicable).
22452 (calculate_scrolling, calculate_direct_scrolling)
22453 (scrolling_1, scroll_cost): Use the accessor macros for terminal
22454 characteristics.
22455
22456 * keymap.c (Vfunction_key_map): Remove.
22457 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
22458 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
22459 (Vkey_translation_map): Remove.
22460 (syms_of_keymap): Remove DEFVAR for key-translation-map.
22461 (Fdescribe_buffer_bindings)
22462 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
22463 Update for terminal-local key-translation-map.
22464
22465 * Makefile.in (callproc.o): Update dependencies.
22466 (lisp, shortlisp): Add termdev.elc.
22467 (obj): Add terminal.o.
22468 (terminal.o): Add dependencies.
22469 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
22470 (data.o, fns.o): Add termhooks.h dependency.
22471 (SOME_MACHINE_LISP): Add dnd.elc.
22472 (minibuf.o): Fix typo.
22473 Update dependencies.
22474
22475 * data.c (do_symval_forwarding, store_symval_forwarding)
22476 (find_symbol_value): Use the selected frame's keyboard, not
22477 current_kboard.
22478
22479 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
22480 Vwindow_system.
22481
22482 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
22483 Fmenu_bar_open.
22484 (syms_of_xmenu): Update defsubr.
22485 (mouse_position_for_popup, Fx_popup_menu)
22486 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
22487 (set_frame_menubar, free_frame_menubar)
22488 (create_and_show_popup_menu, xmenu_show)
22489 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
22490 an X frame.
22491
22492 * xselect.c (x_own_selection): Abort if not an X frame.
22493 (some_frame_on_display): Check if it is an X frame.
22494 (x_handle_selection_clear): Deal with MULTI_KBOARD.
22495
22496 * coding.c: Include frame.h and termhooks.h.
22497 (terminal_coding, keyboard_coding): Delete.
22498 (Fset_terminal_coding_system_internal)
22499 (Fset_keyboard_coding_system_internal)
22500 (Fkeyboard_coding_system)
22501 (Fterminal_coding_system): Add a terminal parameter.
22502 Get terminal_coding from the terminal.
22503 (init_coding_once): Don't call setup_coding_system here.
22504
22505 * dispextern.h (set_scroll_region, turn_off_insert)
22506 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
22507 (tty_clear_end_of_line, tty_setup_colors)
22508 (delete_tty, updating_frame)
22509 (produce_special_glyphs, produce_glyphs, write_glyphs)
22510 (insert_glyphs): Remove.
22511 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
22512 (tty_turn_off_highlight, get_tty_size): Add declaration.
22513 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
22514
22515 * frame.h (enum output_method): Add output_initial.
22516 (struct x_output): Delete.
22517 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
22518 Access foreground_pixel and background_pixel directly from the frame.
22519 (tty_display): Delete.
22520 (struct frame): Add buried_buffer_list, foreground_pixel,
22521 background_pixel and terminal. Delete kboard.
22522 (union output_data): Add tty.
22523 (FRAME_KBOARD): Get the kboard from the terminal.
22524 (FRAME_INITIAL_P): New macro.
22525 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
22526 (Qterm_environment_variable, Qdisplay_environment_variable)
22527 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
22528 New declarations.
22529
22530 * termchar.h (tty_output, tty_display_info): New structures.
22531 (tty_list): Declare.
22532 (FRAME_TTY, CURTTY): New macros.
22533 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
22534 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
22535 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
22536 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
22537
22538 * callproc.c: Include frame.h and termhooks.h, for terminal
22539 parameters.
22540 (add_env): New function.
22541 (child_setup): Use it.
22542 (child_setup, getenv_internal): Handle the new Vprocess_environment.
22543 (getenv_internal): Fix get_terminal_param call.
22544 (Fgetenv_internal, egetenv): Update doc.
22545 (syms_of_callproc): Initialize Vprocess_environment to nil.
22546 Register and initialize them. Remove obsolete defvars. Update doc
22547 strings.
22548 (child_setup): Handle Vlocal_environment_variables.
22549 (getenv_internal): Add terminal parameter.
22550 Handle Vlocal_environment_variables.
22551 (Fgetenv_internal): Add terminal parameter.
22552 (child_setup, getenv_internal, Fgetenv_internal): Store the local
22553 environment in a frame (not terminal) parameter. Update doc strings.
22554 (set_initial_environment): Rename from set_global_environment.
22555 Store Emacs environment in initial frame parameter.
22556
22557 * xdisp.c (redisplay_internal): Update references to
22558 `previous_terminal_frame'.
22559 (display_mode_line, Fformat_mode_line): Replace calls to
22560 `push_frame_kboard' with `push_kboard'.
22561 (get_glyph_string_clip_rects): Add extra parentheses and
22562 braces to prevent compiler warnings.
22563 (calc_pixel_width_or_height): Add xassert to check that the
22564 frame is alive. Don't call `lookup_image' on a termcap frame.
22565 (message2_nolog, message3_nolog, redisplay_internal)
22566 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
22567 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
22568 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
22569 (Fx_display_pixel_width, Fx_display_pixel_height)
22570 (Fx_display_planes, Fx_display_color_cells)
22571 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
22572 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
22573 (Fx_display_backing_store, Fx_display_visual_class)
22574 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
22575 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
22576
22577 * xfns.c (x_set_foreground_color x_set_background_color)
22578 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
22579 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
22580 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
22581 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
22582 terminal that is being deleted.
22583 (Fx_create_frame): Use `store_frame_param' to set `window-system'
22584 frame parameter, and make sure it overrides any user-supplied setting.
22585 (Fx_close_connection, Fx_synchronize): Unify argument names with
22586 the rest of the DEFUNs.
22587
22588 * dispnew.c (Fsend_string_to_terminal): Update call to
22589 `get_tty_terminal'.
22590 (Fredraw_frame, Fsend_string_to_terminal)
22591 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
22592 FRAME_TERMCAP_P and FRAME_TTY.
22593 (window_change_signal): Don't believe width/height values that are
22594 impossibly small.
22595 (Vinitial_window_system): Rename from Vwindow_system.
22596 (termscript, Wcm, rif): Delete.
22597
22598 * termhooks.h (struct terminal): New struct containing the
22599 previously global text display hooks and new members NAME,
22600 DELETED and PARAM_ALIST.
22601 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
22602 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
22603 (FRAME_RIF): New macros.
22604 (get_terminal_param, get_device): New declarations.
22605 (termscript): Delete declaration.
22606
22607 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
22608 (XTflash, x_free_frame_resources, x_scroll_bar_create)
22609 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
22610 FRAME_FOREGROUND_PIXEL.
22611 (x_fully_uncatch_errors): Disable definition.
22612 (x_scroll_bar_expose): Fix reference to foreground pixel.
22613 (XTread_socket): Disable loop on all X displays.
22614 (x_delete_terminal): Don't set terminal->deleted and let
22615 delete_terminal delete the frames on the terminal.
22616 (x_delete_display): Doc update to reflect changes in
22617 delete_terminal.
22618 (x_display_info) <terminal>: Move member earlier in the struct.
22619 (deleting_tty): Remove old variable.
22620 (Fsuspend_tty): Call clear_tty_hooks.
22621 (Fresume_tty, init_tty): Call set_tty_hooks.
22622 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
22623 errors on X frames.
22624 (x_catch_errors_unwind): Abort if x_error_message is NULL.
22625 (handle_one_xevent): Initialize `f' to NULL.
22626 (x_delete_terminal, x_create_terminal): New functions.
22627 (XTset_terminal_modes, XTreset_terminal_modes)
22628 (XTread_socket, x_connection_closed, x_term_init)
22629 (x_term_init, x_delete_display): Add terminal parameter.
22630 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
22631 X connections.
22632
22633 * frame.c: Include termchar.h.
22634 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
22635 (Qwindow_system, Qenvironment, Qterm_environment_variable)
22636 (Qdisplay_environment_variable): New vars.
22637 (Fframep): Deal with output_initial.
22638 (Fframe-live-p): Doc fix.
22639 (Fwindow-system): New function.
22640 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
22641 (make_terminal_frame): Don't create frames on a terminal that is
22642 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
22643 (store_frame_param): Check for found_for_frame before calling XFRAME.
22644 (Fmake_terminal_frame): Handle NULL tty names correctly.
22645 (syms_of_frame): Enhance doc string of `default-frame-alist'.
22646 (Fdelete_frame): Remove unused variable `count'. Don't allow other
22647 frames to refer to a deleted frame in their 'environment parameter.
22648 (Fframe_with_environment): New function.
22649 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
22650 (get_future_frame_param): New function.
22651 (Fmake_terminal_frame): Use it.
22652 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
22653
22654 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
22655 * sysdep.c (reset_sys_modes): Update for renames.
22656
22657 * keyboard.c (tty_read_avail_input): New function.
22658 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
22659 (syms_of_keyboard): Defsubr them.
22660 (Fset_input_meta_mode, Fset_quit_char): New functions.
22661 (Fset_input_mode): Split to above functions.
22662 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
22663 parameter. Use it in call to `read_char'.
22664 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
22665 Set wrong_kboard_jmpbuf correctly in recursive calls.
22666 Use current_kboard to access Vkeyboard_translate_table.
22667 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
22668 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
22669 Update longjmp invocations. Remember the original current_kboard,
22670 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
22671 changes it. Comment out unnecessary calls to
22672 `record_single_kboard_state' and `any_kboard_state'.
22673 Update recursive calls.
22674 (wrong_kboard_jmpbuf): Remove global variable.
22675 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
22676 Handle deleted interrupted_kboards correctly; that is a legal
22677 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
22678 and read_char calls. Abort if interrupted_kboard died in read_char.
22679 (any_kboard_state, single_kboard_state)
22680 (push_frame_kboard): Remove function.
22681 (pop_kboard): Switch out of single_kboard mode if the kboard has
22682 been deleted. Remove unused variable. Help debugging by not
22683 changing current_kboard unnecessarily. Set current_kboard to the
22684 kboard of the selected frame when the stored kboard object has
22685 been deleted before pop_kboard.
22686 (temporarily_switch_to_single_kboard): Change first parameter to a
22687 frame pointer. Throw an error when caller wants to change kboards
22688 while in single_kboard mode. Don't push_kboard if we weren't in
22689 single kboard state. Don't pop_kboard if we popped into any
22690 kboard state.
22691 (restore_kboard_configuration): Abort if pop_kboard changed the
22692 kboard in single_kboard mode. Call pop_kboard only after setting
22693 up single_kboard mode.
22694 (Frecursive_edit): Switch to single_kboard mode only in nested
22695 command loops.
22696 (cmd_error, command_loop, command_loop_1, timer_check):
22697 Comment out unnecessary call to `any_kboard_state' and
22698 `record_single_kboard_state'.
22699 (delete_kboard): Exit single_kboard mode if we have just deleted
22700 that kboard. Use FRAME_KBOARD.
22701 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
22702 `fatal_error_signal'.
22703 (record_single_kboard_state): Don't push_kboard if we weren't in
22704 single kboard state. Don't pop_kboard if we popped into any
22705 kboard state.
22706 (push_frame_kboard): Rename to push_kboard.
22707 (kbd_buffer_get_event): Use FRAME_TERMINAL.
22708 (read_avail_input): Read input from all terminals.
22709 (mark_kboards): Also mark Vkeyboard_translate_table.
22710 (kbd_buffer_store_event_hold): Simplify condition.
22711 (read_key_sequence): Reinitialize fkey and keytran at each replay.
22712 (Vkeyboard_translate_table): Move to struct kboard.
22713 (init_kboard): Initialize Vkeyboard_translate_table.
22714 (syms_of_keyboard): Use DEFVAR_KBOARD to define
22715 Vkeyboard_translate_table. Update doc strings. Update docs of
22716 local-function-key-map and function-key-map.
22717
22718 * terminal.c: New file.
22719
22720 * term.c: Include errno.h.
22721 (Vring_bell_function, device_list, initial_device)
22722 (next_device_id, ring_bell, update_begin, update_end)
22723 (set_terminal_window, cursor_to, raw_cursor_to)
22724 (clear_to_end, clear_frame, clear_end_of_line)
22725 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
22726 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
22727 (syms_of_term): Move their initialization to terminal.c.
22728 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
22729 (Ftty_display_color_cells)
22730 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
22731 (clear_tty_hooks, set_tty_hooks)
22732 (init_tty, maybe_fatal): New functions.
22733 (Ftty_type): Return nil if terminal is not on a tty instead of
22734 throwing an error. Doc update.
22735 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
22736 Doc update. Initialize new subrs and variables.
22737 (delete_tty): Use terminal->deleted.
22738 (tty_set_terminal_modes): Rename from set_terminal_modes.
22739 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
22740 (set_scroll_region): Rename to `tty_set_scroll_region'.
22741 (turn_on_insert): Rename to `tty_turn_on_insert'.
22742 (turn_off_insert): Rename to `tty_turn_off_insert'.
22743 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
22744 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
22745 (toggle_highligh): Rename to `tty_toggle_highlight'.
22746 (background_highlight): Rename to `tty_background_highlight'.
22747 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
22748 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
22749 (tty_set_scroll_region, tty_background_highlight)
22750 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
22751 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
22752 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
22753 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
22754 Add static modifier.
22755 (tty_reset_terminal_modes, tty_set_terminal_window)
22756 (tty_set_scroll_region, tty_background_highlight)
22757 (tty_highlight_if_desired, tty_cursor_to)
22758 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
22759 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
22760 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
22761 renames.
22762
22763 2007-08-28 Jan Djärv <jan.h.d@swipnet.se>
22764
22765 * keyboard.c: Qrtl is new.
22766 (parse_tool_bar_item): Handle :rtl keyword.
22767 (syms_of_keyboard): Intern :rtl keyword.
22768
22769 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
22770
22771 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
22772 so no Lisp code is executed.
22773 (file_for_image, find_rtl_image): New functions.
22774 (xg_get_image_for_pixmap): Use file_for_image.
22775 (update_frame_tool_bar): If direction is RTL, use RTL image if
22776 defined. Use Gtk stock images if defined.
22777
22778 2007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22779
22780 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
22781 for nonexistent or zero-width glyph in composition glyph.
22782
22783 2007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
22784
22785 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
22786
22787 * xdisp.c (Finvisible_p): New function.
22788 (syms_of_xdisp): defsubr it.
22789
22790 2007-08-24 Juanma Barranquero <lekktu@gmail.com>
22791
22792 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
22793 Doc fixes.
22794
22795 2007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22796
22797 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
22798
22799 2007-08-24 Martin Rudalics <rudalics@gmx.at>
22800
22801 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
22802 whether decoding has modified buffer contents.
22803
22804 2007-08-24 Jason Rumney <jasonr@gnu.org>
22805
22806 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
22807 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
22808 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
22809 (init_svg_functions) [HAVE_NTGUI]: New function.
22810 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
22811 (svg_load_image): Use them.
22812 (svg_load_image) [HAVE_NTGUI]: Implement background.
22813
22814 2007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22815
22816 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
22817 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
22818 (LIBX): Remove @RSVG_LIBS@.
22819 (LIBES): Add $(RSVG_LIBS).
22820
22821 * image.c (svg_load_image): Blend with specified background if exists.
22822 Use IMAGE_BACKGROUND. Add Mac OS Support.
22823
22824 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
22825 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
22826 Remove macros.
22827 [MAC_OSX] (socket_callback): Do nothing.
22828 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
22829 ReceiveNextEvent.
22830 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
22831 socket_callback.
22832 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
22833
22834 2007-08-22 Glenn Morris <rgm@gnu.org>
22835
22836 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
22837
22838 2007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
22839
22840 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
22841
22842 * image.c: Add support for SVG images. Some additional comments
22843 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
22844 (svg_image_p): New function to test for SVG image.
22845 (svg_load): New function to load SVG image.
22846 (svg_load_image): New function, helper for svg_load.
22847 (Qsvg): New Lisp_object.
22848 (svg_keyword_index): New enum.
22849 (svg_format): New static `image_keyword' struct.
22850 (svg_type): New static `image_type' struct.
22851 (librsvg/rsvg.h): Include it.
22852
22853 2007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
22854
22855 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
22856
22857 2007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
22858
22859 * lread.c (Qold_style_backquotes): New var.
22860 (syms_of_lread): Init and staticpro it.
22861 (load_warn_old_style_backquotes): New fun.
22862 (Fload): Use them to warn about old style backquotes.
22863 (end_of_file_error, Fload): Remove unused vars.
22864
22865 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
22866
22867 * lread.c (Vold_style_backquotes): New var.
22868 (syms_of_lread): Init and export it to Elisp.
22869 (read1): Set it when we find an old-style (back)quote.
22870
22871 2007-08-22 Jason Rumney <jasonr@gnu.org>
22872
22873 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
22874
22875 2007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
22876
22877 * puresize.h (BASE_PURESIZE): Increase to 1140000.
22878
22879 2007-08-19 Richard Stallman <rms@gnu.org>
22880
22881 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
22882
22883 2007-08-19 Andreas Schwab <schwab@suse.de>
22884
22885 * alloc.c (pure): Round PURESIZE up.
22886
22887 2007-08-17 Jan Djärv <jan.h.d@swipnet.se>
22888
22889 * xterm.c (handle_one_xevent): Remove check that mouse click is in
22890 active frame.
22891
22892 2007-08-16 Richard Stallman <rms@gnu.org>
22893
22894 * eval.c (Fcommandp): Add parens to clarify.
22895
22896 * minibuf.c (Fall_completions): Use enum for type of table.
22897
22898 * emacs.c (USAGE2): Improve text.
22899
22900 2007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
22901
22902 * term.c (tty_default_color_capabilities): Declare static
22903 variables in file scope, to avoid HPUX compiler problem.
22904
22905 2007-08-13 Jan Djärv <jan.h.d@swipnet.se>
22906
22907 * gtkutil.c (update_frame_tool_bar): Use -1 as index
22908 to gtk_toolbar_insert.
22909
22910 2007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
22911
22912 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
22913
22914 * insdel.c (reset_var_on_error): New fun.
22915 (signal_before_change, signal_after_change):
22916 Use it to reset (after|before)-change-functions to nil in case of error.
22917 Bind inhibit-modification-hooks to t.
22918 Don't bind (after|before)-change-functions to nil while they run.
22919
22920 2007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22921
22922 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
22923 filling pixmap with stippled background.
22924
22925 2007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22926
22927 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
22928 Don't use invisible frame as parent window for repositioning.
22929
22930 2007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
22931
22932 * print.c (new_backquote_output): Rename from old_backquote_output.
22933 (print): Inverse its logic (according to its name) so as to match the
22934 behavior of new_backquote_flag in lread.c.
22935
22936 2007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22937
22938 * gmalloc.c (posix_memalign): New function.
22939
22940 * macterm.c (frame_highlight, frame_unhighlight): Don't call
22941 ActivateControl/DeactivateControl here.
22942 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
22943 frame-notice-user-settings is non-nil.
22944 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
22945 for kEventParamFMFontStyle.
22946 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
22947 mac_pass_command_to_system and mac_pass_control_to_system here.
22948 (XTread_socket): Call ActivateControl/DeactivateControl here.
22949 (XTread_socket) [TARGET_API_MAC_CARBON]:
22950 Check mac_pass_command_to_system and mac_pass_control_to_system here.
22951 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
22952 for window repositioning.
22953
22954 2007-08-08 Glenn Morris <rgm@gnu.org>
22955
22956 * Replace `iff' in doc-strings and comments.
22957
22958 2007-08-07 Chong Yidong <cyd@stupidchicken.com>
22959
22960 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
22961
22962 2007-08-07 Martin Rudalics <rudalics@gmx.at>
22963
22964 * fileio.c (Finsert_file_contents): Run format-decode and
22965 after_insert_file_functions on entire buffer when REPLACE is
22966 non-nil and inhibit modification_hooks and point_motion_hooks.
22967 For consistency, run after_insert_file_functions iff something
22968 got inserted. Move signal_after_change and update_compositions
22969 after code running after_insert_file_functions. Make sure that
22970 undo_list doesn't record intermediate steps of the decoding process.
22971
22972 2007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22973
22974 * emacs.c (main)
22975 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
22976 Call malloc_enable_thread on interactive startup.
22977
22978 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
22979 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
22980 [USE_PTHREAD]: Conditionalize with it.
22981 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
22982 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
22983 New functions.
22984
22985 2007-08-06 Chong Yidong <cyd@stupidchicken.com>
22986
22987 * xdisp.c (redisplay_window): When restoring original buffer
22988 position, make sure it is still valid.
22989
22990 * image.c (png_load): Ignore png-supplied background color.
22991
22992 2007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22993
22994 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
22995 Use kCFAbsoluteTimeIntervalSince1970.
22996
22997 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
22998 New variable.
22999 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
23000 event loop should be quit.
23001 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
23002 Quit dialog event loop if quit_dialog_event_loop is set.
23003
23004 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
23005 (Selection): New typedef. Use instead of ScrapRef.
23006 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
23007 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
23008 (mac_clear_selection): Rename from clear_scrap.
23009 (get_flavor_type_from_symbol): New argument SEL and subsume function of
23010 scrap_has_target_type. All uses changed.
23011 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
23012 (mac_selection_has_target_p): New functions.
23013 (mac_put_selection_value): Rename from put_scrap_string.
23014 (mac_get_selection_value): Rename from get_scrap_string.
23015 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
23016 (put_scrap_private_timestamp, scrap_has_target_type)
23017 (get_scrap_private_timestamp): Remove functions.
23018 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
23019 (x_own_selection, x_get_local_selection):
23020 Use mac_valid_selection_value_p.
23021 (x_own_selection): Don't use put_scrap_private_timestamp.
23022 Record OWNERSHIP-INFO into Vselection_alist instead.
23023 (x_get_local_selection): Don't check type if request is local.
23024 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
23025 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
23026
23027 2007-08-04 Jan Djärv <jan.h.d@swipnet.se>
23028
23029 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
23030 add comment explaining why.
23031
23032 2007-08-03 Richard Stallman <rms@gnu.org>
23033
23034 * fileio.c (Fvisited_file_modtime): Use make_time.
23035
23036 2007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
23037
23038 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
23039 build.
23040
23041 2007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
23042
23043 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
23044
23045 2007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
23046
23047 * puresize.h (BASE_PURESIZE): Increase to 1130000.
23048
23049 2007-07-30 Richard Stallman <rms@gnu.org>
23050
23051 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
23052
23053 2007-07-29 Jan Djärv <jan.h.d@swipnet.se>
23054
23055 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
23056
23057 2007-07-28 Nick Roberts <nickrob@snap.net.nz>
23058
23059 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
23060 remote default-directory.
23061
23062 * buffer.c (mode-line-format): Update doc string.
23063
23064 2007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23065
23066 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
23067 scroll bar gap.
23068 (x_scroll_bar_create): Set bar->fringe_extended_p.
23069 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
23070 on frame edge. Check fringe background extension. Don't clear
23071 extended fringe background area.
23072
23073 * w32term.h (struct scroll_bar): New member fringe_extended_p.
23074 (w32_fill_area): Enclose multiple statements with do ... while (0).
23075
23076 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
23077 Extend fringe background to scroll bar gap.
23078 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
23079 Set bar->fringe_extended_p.
23080 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
23081 Put leftmost/rightmost scroll bars on frame edge. Check fringe
23082 background extension. Don't clear extended fringe background area.
23083
23084 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
23085 New member fringe_extended_p.
23086
23087 2007-07-25 Glenn Morris <rgm@gnu.org>
23088
23089 * Relicense all FSF files to GPLv3 or later.
23090
23091 * COPYING: Switch to GPLv3.
23092
23093 2007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
23094
23095 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
23096
23097 * data.c (Finteractive_form): Check for the presence of an
23098 `interactive-form' symbol property more thoroughly.
23099
23100 * data.c (Finteractive_form): Use an `interactive-form' property if
23101 present, analogous to the function-documentation property.
23102
23103 2007-07-24 Jason Rumney <jasonr@gnu.org>
23104
23105 * w32fns.c (x_real_positions): Get real position from OS instead of
23106 calculating it.
23107
23108 2007-07-23 Jason Rumney <jasonr@gnu.org>
23109
23110 * filelock.c (current_lock_owner): Allow for @ sign in username.
23111
23112 2007-07-22 Nick Roberts <nickrob@snap.net.nz>
23113
23114 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
23115 remote default-directory.
23116
23117 * buffer.c (mode-line-format): Describe above case in doc string.
23118
23119 2007-07-20 Eli Zaretskii <eliz@gnu.org>
23120
23121 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
23122 Define if not defined.
23123
23124 2007-07-18 Jason Rumney <jasonr@gnu.org>
23125
23126 * w32proc.c (w32_executable_type): Handle 64 bit executables.
23127
23128 2007-07-18 Richard Stallman <rms@gnu.org>
23129
23130 * data.c (Fsetq_default): Doc fix.
23131
23132 * eval.c (Fsetq): Doc fix.
23133
23134 2007-07-18 Juanma Barranquero <lekktu@gmail.com>
23135
23136 * coding.c (Ffind_operation_coding_system):
23137 * eval.c (For, Fand): Doc fixes.
23138 Reported by Johan Bockgård.
23139
23140 2007-07-18 Jan Djärv <jan.h.d@swipnet.se>
23141
23142 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
23143
23144 * xterm.h: Declare x_ewmh_activate_frame.
23145
23146 * xterm.c (x_ewmh_activate_frame): New function.
23147 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
23148
23149 2007-07-17 Martin Rudalics <rudalics@gmx.at>
23150
23151 * window.c (Fdisplay_buffer): If largest or LRU window is the
23152 only window, split it even if it is not eligible for splitting.
23153 This restores the original behavior broken by the 2007-07-15
23154 change.
23155
23156 2007-07-17 Glenn Morris <rgm@gnu.org>
23157
23158 * abbrev.c (abbrev_check_chars): New function.
23159 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
23160 Call abbrev_check_chars to check abbrev characters are word
23161 constituents. Doc fix.
23162
23163 2007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
23164
23165 * process.c (Fstart_process, Fmake_network_process)
23166 (read_process_output): Fix up last changes.
23167
23168 2007-07-16 Eli Zaretskii <eliz@gnu.org>
23169
23170 * makefile.w32-in (clean): Don't delete *~.
23171
23172 2007-07-16 Andreas Schwab <schwab@suse.de>
23173
23174 * window.c (Fdisplay_buffer): Use NILP.
23175 (Fset_window_scroll_bars): Likewise.
23176
23177 2007-07-15 Martin Rudalics <rudalics@gmx.at>
23178
23179 * window.c (window_min_size_2): New function.
23180 (window_min_size_1, size_window, Fdisplay_buffer)
23181 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
23182 windows without mode- or header-lines when window-min-height is
23183 too small.
23184 (size_window): Reset nodelete_p after testing it, following an
23185 earlier note by Kim F. Storm.
23186 (display_buffer): Do not set split_height_threshold to twice the
23187 value of window_min_height to avoid changing the value of a
23188 customizable variable. Rather explicitly check whether the
23189 height of the window that shall be splitted is at least as large
23190 as split_height_threshold.
23191 (Fwindow_full_width_p): New defun.
23192 (syms_of_window): Defsubr it.
23193
23194 * window.h: Add EXFUN for Fwindow_full_width_p.
23195
23196 2007-07-14 Jason Rumney <jasonr@gnu.org>
23197
23198 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
23199
23200 2007-07-14 Richard Stallman <rms@gnu.org>
23201
23202 * eval.c (maybe_call_debugger): New function.
23203 (find_handler_clause): Use maybe_call_debugger.
23204 Call it when the handler says `debug'.
23205 Eliminate DEBUGGER_VALUE_PTR.
23206 (Fsignal): Eliminate debugger_value.
23207 (Qdebug): New variable.
23208 (syms_of_eval): Initialize it.
23209
23210 2007-07-14 Juanma Barranquero <lekktu@gmail.com>
23211
23212 * eval.c (Fprogn):
23213 * keyboard.c (Ftrack_mouse):
23214 * print.c (Fwith_output_to_temp_buffer):
23215 * window.c (Fsave_window_excursion): Doc fix.
23216
23217 2007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
23218
23219 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
23220
23221 2007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
23222
23223 * process.h (struct Lisp_Process): Turn slots infd, outfd,
23224 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
23225 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
23226 read_output_delay, and read_output_skip from Lisp_Objects to ints.
23227 Remove unused encoding_carryover.
23228 * process.c: Adjust all functions accordingly.
23229
23230 2007-07-12 Richard Stallman <rms@gnu.org>
23231
23232 * term.c: Include unistd.h only if HAVE_UNISTD_H.
23233
23234 2007-07-11 Jason Rumney <jasonr@gnu.org>
23235
23236 * makefile.w32-in (LIBS): Include OLE32.
23237
23238 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
23239 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
23240
23241 2007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
23242
23243 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
23244 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
23245 from a Lisp_Object into a bare pointer.
23246 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
23247 Adjust the code correspondingly.
23248
23249 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
23250
23251 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
23252 (term_show_mouse_face): Remove unused var `j'.
23253 (handle_one_term_event): Remove unused vars `i' and `j'.
23254 Don't cast return value of ttyname since it's not necessary.
23255
23256 2007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
23257
23258 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
23259 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
23260
23261 * fns.c (map_char_table): Use an array of int for `indices' rather than
23262 an array of Lisp_Objects (which are only ever integers anyway).
23263 (Fmap_char_table): Update caller.
23264 * lisp.h: Update prototype.
23265 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
23266 * fontset.c (Ffontset_info):
23267 * casetab.c (set_case_table): Update callers.
23268
23269 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
23270
23271 * keymap.c (struct accessible_keymaps_data)
23272 (struct where_is_internal_data): New structures.
23273 (accessible_keymaps_1, where_is_internal_1): Use them to change
23274 interface to adhere to the one used by map_keymap.
23275 (Faccessible_keymaps, where_is_internal): Use map_keymap.
23276 (accessible_keymaps_char_table, where_is_internal_2): Remove.
23277
23278 * keymap.h (map_keymap_function_t): More informative prototype.
23279
23280 2007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
23281
23282 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
23283 (looking_at_1): Don't change search_regs and last_thing_searched
23284 if `inhibit-changing-match-data' is non-nil.
23285 (string_match_1, search_buffer, set_search_regs): Likewise.
23286 (syms_of_search): Add Lisp level definition for
23287 `inhibit-changing-match-data' and set it to nil.
23288 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
23289 start and end of the match, instead of using values in search_regs.
23290
23291 2007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
23292
23293 * minibuf.c (Fcompleting_read): New value `confirm-only'
23294 for `require-match'.
23295
23296 2007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
23297
23298 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
23299 part of the 2007-06-27 change to syms_of_fileio.
23300
23301 2007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23302
23303 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
23304 Check WINDOWP before using XWINDOW. Consolidate return statements.
23305
23306 2007-06-27 Richard Stallman <rms@gnu.org>
23307
23308 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
23309
23310 2007-06-27 Juanma Barranquero <lekktu@gmail.com>
23311
23312 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
23313
23314 2007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23315
23316 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
23317 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
23318 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
23319 (_free_internal, memalign): Use them.
23320 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
23321 Initialize to PTHREAD_MUTEX_INITIALIZER.
23322 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
23323 (morecore_nolock): Rename from morecore. All uses changed.
23324 Use only nolock versions of internal allocation functions.
23325 (_malloc_internal_nolock, _realloc_internal_nolock)
23326 (_free_internal_nolock): New functions created from
23327 _malloc_internal, _realloc_internal, and _free_internal.
23328 (_malloc_internal, _realloc_internal, _free_internal): Use them.
23329 Copy hook value to automatic variable before its use.
23330 (memalign): Copy hook value to automatic variable before its use.
23331
23332 2007-06-26 Kenichi Handa <handa@m17n.org>
23333
23334 * coding.c (Ffind_operation_coding_system): Docstring improved.
23335 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
23336
23337 2007-06-25 David Kastrup <dak@gnu.org>
23338
23339 * keymap.c (Fcurrent_active_maps): Add `position' argument.
23340 (Fwhere_is_internal): Adjust call to `current-active-maps' to
23341 cater for additional parameter.
23342
23343 * keymap.h: Adjust number of parameters to `current-active-maps'.
23344
23345 * doc.c (Fsubstitute_command_keys): Adjust call of
23346 `current-active-maps'.
23347
23348 2007-06-25 David Kastrup <dak@gnu.org>
23349
23350 * callint.c (Fcall_interactively): Make the parsing of interactive
23351 specs somewhat more readable.
23352
23353 2007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23354
23355 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
23356 to scroll bar gap also when bitmap fills fringe. Draw only foreground
23357 if extended background has already been filled.
23358
23359 2007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23360
23361 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
23362 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
23363
23364 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
23365 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
23366 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
23367 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
23368 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
23369 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
23370 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
23371 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
23372 Run timers during dialog popup.
23373 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
23374
23375 2007-06-21 Jason Rumney <jasonr@gnu.org>
23376
23377 * image.c (convert_mono_to_color_image): Swap fore and background.
23378
23379 2007-06-20 Jason Rumney <jasonr@gnu.org>
23380
23381 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
23382 (w32_free_bdf_font): Unmap memory not handle.
23383
23384 2007-06-20 Sam Steingold <sds@gnu.org>
23385
23386 * gmalloc.c (__morecore): Fix the declaration to comply with the
23387 definition.
23388
23389 2007-06-20 Juanma Barranquero <lekktu@gmail.com>
23390
23391 * w32term.c (w32_delete_display): Remove leftover declaration.
23392 (w32_define_cursor, w32_initialize): Make static.
23393
23394 * w32.c (_wsa_errlist): Fix typo in error message.
23395 (init_environment): Ignore any environment variable from the
23396 registry having a null value.
23397
23398 2007-06-20 Glenn Morris <rgm@gnu.org>
23399
23400 * Makefile.in (LIBGIF): Default to -lgif.
23401
23402 2007-06-17 Jason Rumney <jasonr@gnu.org>
23403
23404 * w32menu.c (add_menu_item): Don't use multibyte string functions on
23405 unicode strings.
23406
23407 2007-06-16 Juanma Barranquero <lekktu@gmail.com>
23408
23409 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
23410 Fix typo in docstring.
23411
23412 2007-06-16 Eli Zaretskii <eliz@gnu.org>
23413
23414 * w32menu.c (add_menu_item): Escape `&' characters in menu items
23415 and their keybindings.
23416
23417 2007-06-15 Chong Yidong <cyd@stupidchicken.com>
23418
23419 * composite.c (update_compositions): Fix last fix.
23420
23421 2007-06-14 Jason Rumney <jasonr@gnu.org>
23422
23423 * w32.c (get_process_times_fn): New function pointer.
23424 (globals_of_w32): Intialize it if present in kernel32.dll.
23425 (w32_get_internal_run_time): New function.
23426
23427 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
23428
23429 2007-06-14 Kenichi Handa <handa@etlken.m17n.org>
23430
23431 * composite.c (update_compositions): Check the validness of
23432 compositions.
23433
23434 2007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23435
23436 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
23437 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
23438
23439 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
23440 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
23441
23442 * macgui.h (USE_MAC_TOOLBAR): New define.
23443
23444 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
23445 Return immediately unless popup is activated.
23446
23447 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
23448 background to scroll bar gap.
23449 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
23450 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
23451 scroll bars on frame edge. Check fringe background extension.
23452 Don't clear extended fringe background area.
23453 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
23454 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
23455 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
23456 [USE_MAC_TOOLBAR]: New macros.
23457 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
23458 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
23459 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
23460 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
23461 [USE_MAC_TOOLBAR]: New functions.
23462 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
23463 manually if previous repositioning has failed.
23464 (mac_handle_keyboard_event): Use precomputed event kind.
23465 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
23466 as tool bar item click. Handle mouse movement over tool bar items.
23467
23468 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
23469 toolbar_win_gravity.
23470 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
23471 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
23472 Add externs.
23473
23474 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
23475 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
23476
23477 2007-06-14 Chong Yidong <cyd@stupidchicken.com>
23478
23479 * image.c (search_image_cache): Remove unused variable.
23480
23481 2007-06-13 Chong Yidong <cyd@stupidchicken.com>
23482
23483 * xfns.c, xmenu.c: Link to xaw3d if available.
23484
23485 2007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23486
23487 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
23488 frame_foreground and frame_background.
23489
23490 * image.c (lookup_image): Save frame foreground and background colors.
23491 (search_image_cache): Check if saved and current frame colors match.
23492
23493 2007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
23494
23495 * regex.c (regex_compile): Remove the `regnum' counter.
23496 Use bufp->re_nsub instead. Add support for \(?N:RE\).
23497
23498 2007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
23499
23500 * term.c: Include intervals.h to declare Fget_text_property.
23501
23502 2007-06-10 Jason Rumney <jasonr@gnu.org>
23503
23504 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
23505
23506 2007-06-08 Juanma Barranquero <lekktu@gmail.com>
23507
23508 * callint.c (Fcall_interactively):
23509 * editfns.c (Fdelete_and_extract_region):
23510 * fileio.c (Fread_file_name):
23511 * fns.c (Fmapconcat):
23512 * keyboard.c (cmd_error_internal):
23513 * keymap.c (Fkey_description):
23514 * lread.c (openp):
23515 * minibuf.c (read_minibuf):
23516 * search.c (wordify):
23517 * sunfns.c (sel_read):
23518 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
23519 * xfns.c (x_default_scroll_bar_color_parameter):
23520 * xmenu.c (menu_help_callback):
23521 * xselect.c (Fx_get_atom_name):
23522 * xterm.c (x_term_init): Use empty_unibyte_string.
23523
23524 2007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
23525
23526 * alloc.c (init_strings): Initialize canonical empty strings.
23527 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
23528 canonical empty string when the requested size is 0.
23529
23530 * emacs.c (empty_unibyte_string): Rename from empty_string.
23531 (empty_multibyte_string): New canonical empty string.
23532 (syms_of_emacs): Don't initialize empty_string.
23533
23534 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
23535 string, if appropriate.
23536 (empty_unibyte_string, empty_multibyte_string): New externs.
23537 (empty_string): Remove extern.
23538
23539 * lread.c (syms_of_lread): Use empty_unibyte_string.
23540
23541 2007-06-07 Jason Rumney <jasonr@gnu.org>
23542
23543 * s/ms-w32.h: Don't define HAVE_TZNAME.
23544
23545 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
23546
23547 2007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23548
23549 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
23550
23551 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
23552 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
23553
23554 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
23555 Don't call next handler.
23556 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
23557 Remove argument. Install handler to application.
23558 (set_frame_menubar): Don't change deep_p.
23559 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
23560 FRAME_OUTER_TO_INNER_DIFF_Y.
23561 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
23562 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
23563 [HAVE_DIALOGS]: New macros.
23564 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
23565 Use them.
23566 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
23567
23568 * macselect.c [MAC_OSX] (install_service_handler): Rename from
23569 init_service_handler. All callers changed. Return OSStatus value.
23570
23571 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
23572 All callers changed so as not to call SetPortWindowPort.
23573 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
23574 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
23575 mac_draw_string_common.
23576 (mac_draw_image_string_qd): Likewise.
23577 (mac_draw_string_common): Use them. Add INLINE.
23578 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
23579 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
23580 GetGlobalMouse.
23581 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
23582 and FRAME_OUTER_TO_INNER_DIFF_Y.
23583 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
23584 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
23585 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
23586 repositioning window to mac_handle_window_event.
23587 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
23588 saving window location to mac_handle_window_event
23589 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
23590 (install_menu_target_item_handler): Remove argument in extern.
23591 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
23592 Also accept command events.
23593 (do_keystroke): New function created from XTread_socket.
23594 (init_command_handler): Remove functions.
23595 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
23596 and save window location by kEventWindowShowing and kEventWindowHiding
23597 handlers here. Don't call next handler for window state change and
23598 focus events.
23599 (mac_handle_application_event, mac_handle_keyboard_event)
23600 [TARGET_API_MAC_CARBON]: New functions.
23601 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
23602 kEventWindowShowing and kEventWindowHiding events. Move installation
23603 of mouse, font, text input and menu target item handlers to
23604 install_application_handler.
23605 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
23606 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
23607 New function.
23608 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
23609 Register it.
23610 (XTread_socket) [TARGET_API_MAC_CARBON]:
23611 Consolidate SendEventToEventTarget calls.
23612 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
23613 Move application activation handler to mac_handle_application_event.
23614 Move keyboard handler to mac_handle_keyboard_event.
23615 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
23616 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
23617 init_command_handler. Call install_application_handler.
23618
23619 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
23620 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
23621
23622 2007-06-07 Glenn Morris <rgm@gnu.org>
23623
23624 * emacs.c (main): Use `emacs-copyright' in --version output.
23625
23626 2007-06-06 Chong Yidong <cyd@stupidchicken.com>
23627
23628 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
23629
23630 2007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23631
23632 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
23633
23634 * macgui.h: Replace WindowPtr with WindowRef.
23635
23636 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
23637 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
23638 Replace ControlHandle with ControlRef.
23639 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
23640
23641 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
23642 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
23643 Replace ControlHandle with ControlRef.
23644 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
23645 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
23646
23647 * macterm.h (struct scroll_bar): Rename member control_handle_low
23648 and control_handle_high to control_ref_low and control_ref_high.
23649 All uses changed.
23650 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
23651 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
23652 respectively. All uses changed.
23653 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
23654 (install_window_handler, remove_window_handler): Replace WindowPtr
23655 with WindowRef in externs.
23656
23657 2007-06-05 Juanma Barranquero <lekktu@gmail.com>
23658
23659 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
23660
23661 2007-06-03 Nick Roberts <nickrob@snap.net.nz>
23662
23663 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
23664
23665 * frame.c (Fmouse_position, Fmouse_pixel_position):
23666 Condition on HAVE_GPM too.
23667
23668 * term.c (term_mouse_highlight): Remove unused variables.
23669 (Fterm_open_connection): Set gpm_zerobased to 1.
23670 (term_mouse_movement, term_mouse_click, handle_one_term_event):
23671 Use zero based co-ordinates.
23672 (handle_one_term_event): Report a drag as mouse movement too.
23673
23674 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
23675
23676 2007-06-03 Chong Yidong <cyd@stupidchicken.com>
23677
23678 * image.c (search_image_cache): New function. Require background
23679 color match if background color is unspecified in the image spec.
23680 (uncache_image, lookup_image): Use it.
23681
23682 2007-06-01 Juanma Barranquero <lekktu@gmail.com>
23683
23684 * window.c (Fshrink_window): Reflow docstring.
23685
23686 2007-06-02 Chong Yidong <cyd@stupidchicken.com>
23687
23688 * Version 22.1 released.
23689
23690 2007-06-01 Richard Stallman <rms@gnu.org>
23691
23692 * xfns.c (x_encode_text): Add GCPRO.
23693
23694 2007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23695
23696 * xfns.c (x_set_name_internal): Save encoded name before
23697 x_encode_text in case string data is relocated.
23698
23699 2007-05-31 Richard Stallman <rms@gnu.org>
23700
23701 * buffer.c (syms_of_buffer): Doc fix.
23702
23703 2007-05-30 Nick Roberts <nickrob@snap.net.nz>
23704
23705 * sysdep.c (init_sys_modes): Add rather than replace with
23706 O_NONBLOCK.
23707
23708 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
23709 term_mouse_moveto.
23710
23711 * termhooks.h (term_mouse_moveto): New extern.
23712
23713 * term.c (mouse_face_window): Rename...
23714 (Qmouse_face_window): ...to this.
23715 (term_show_mouse_face, term_clear_mouse_face)
23716 (term_mouse_highlight): Use Qmouse_face_window.
23717 (term_mouse_moveto): New function.
23718 (term_mouse_position): Make it work.
23719 (syms_of_term): Uncomment assignment to mouse_position_hook.
23720 Staticpro Qmouse_face_window.
23721
23722 2007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23723
23724 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
23725 around current_column call.
23726
23727 2007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
23728
23729 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
23730 * xdisp.c (next_element_from_buffer):
23731 * window.c (delete_window):
23732 * term.c (term_mouse_highlight):
23733 * msdos.c (getdefdir):
23734 * macterm.c (mac_create_bitmap_from_bitmap_data)
23735 (init_font_name_table):
23736 * fns.c (Fsxhash):
23737 * data.c (Fmake_local_variable):
23738 * ccl.c (ccl_driver): Likewise.
23739
23740 2007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23741
23742 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
23743 Call mac_wakeup_from_rne on window size change.
23744
23745 2007-05-25 Chong Yidong <cyd@stupidchicken.com>
23746
23747 * image.c (uncache_image): Fix typo.
23748
23749 2007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
23750
23751 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
23752
23753 2007-05-22 Richard Stallman <rms@gnu.org>
23754
23755 * xterm.c (x_connection_closed): Remove NO_RETURN.
23756
23757 2007-05-22 Martin Rudalics <rudalics@gmx.at>
23758
23759 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
23760
23761 2007-05-21 Chong Yidong <cyd@stupidchicken.com>
23762
23763 * image.c (uncache_image): New function.
23764 (Fimage_refresh): New function.
23765
23766 2007-05-20 Jan Djärv <jan.h.d@swipnet.se>
23767
23768 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
23769
23770 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
23771
23772 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
23773 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
23774
23775 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
23776
23777 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
23778 conditional on [HAVE_GPM_H].
23779
23780 2007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
23781
23782 * syntax.c (skip_chars): Update syntax-table only after we checked that
23783 the new location is valid.
23784
23785 2007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23786
23787 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
23788 mac_get_window_bounds.
23789
23790 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
23791
23792 * Makefile.in (LIBGPM): Allow it to be set from configure.
23793 If set then link Emacs with it.
23794
23795 * config.in: Regenerate.
23796
23797 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
23798 New externs.
23799
23800 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
23801 Include gpm.h.
23802 (handle_one_term_event, term_gpm): New externs.
23803
23804 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
23805 and allow it to be interrupted by SIGIO.
23806
23807 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
23808 (wait_reading_process_output): Wait on gpm_fd too.
23809 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
23810 (add_gpm_wait_descriptor_called_flag): New variable.
23811 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
23812
23813 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
23814 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
23815 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
23816 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
23817 (make_lispy_event): Add case GPM_CLICK_EVENT.
23818 (read_avail_input): Handle mouse input.
23819
23820 * term.c (write_glyphs_with_face): New function.
23821 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
23822 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
23823 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
23824 (mouse_face_face_id, term_gpm, pos_x, pos_y)
23825 (last_mouse_x, last_mouse_y): New variables.
23826 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
23827 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
23828 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
23829 (Fterm_close_connection): New functions.
23830 (term_init): Initialise mouse_face_window.
23831
23832 2007-05-19 Chong Yidong <cyd@stupidchicken.com>
23833
23834 * xdisp.c (redisplay_window): If first window line is a
23835 continuation line, recompute the new window start instead of
23836 recentering.
23837
23838 2007-05-18 Glenn Morris <rgm@gnu.org>
23839
23840 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
23841 Suggested by Alfred M. Szmidt <ams@gnu.org>.
23842
23843 2007-05-17 Glenn Morris <rgm@gnu.org>
23844
23845 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
23846
23847 2007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23848
23849 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
23850 dead key repeat and up events.
23851
23852 2007-05-14 Chong Yidong <cyd@stupidchicken.com>
23853
23854 * image.c (pbm_load): Check image size for monochrome pbm.
23855
23856 2007-05-13 Chong Yidong <cyd@stupidchicken.com>
23857
23858 * xterm.c (XTread_socket): Revert last change.
23859
23860 2007-05-12 Chong Yidong <cyd@stupidchicken.com>
23861
23862 * image.c (pbm_load): Correctly check image size for greyscale pbm.
23863
23864 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
23865
23866 2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
23867
23868 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
23869 mixup (YAILOM).
23870
23871 2007-05-07 Andreas Schwab <schwab@suse.de>
23872
23873 * keymap.c (Flookup_key): Fix typo in last change.
23874
23875 2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
23876
23877 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
23878 mapping for unibyte strings.
23879
23880 2007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23881
23882 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
23883 (Fx_popup_dialog) [MAC_OSX]: Likewise.
23884
23885 2007-04-29 Richard Stallman <rms@gnu.org>
23886
23887 * insdel.c (replace_range): For undo, record insertion first.
23888
23889 2007-04-29 Andreas Schwab <schwab@suse.de>
23890
23891 * lisp.h (VECSIZE): Use OFFSETOF.
23892
23893 2007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23894
23895 * xdisp.c (try_window_reusing_current_matrix): Fix number of
23896 disabled lines.
23897
23898 2007-04-28 Richard Stallman <rms@gnu.org>
23899
23900 * lread.c (read_escape): In a string, \s is always space.
23901
23902 2007-04-27 Jan Djärv <jan.h.d@swipnet.se>
23903
23904 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
23905
23906 * gtkutil.c (xg_update_menubar, create_menus): Create empty
23907 submenu for menu bar items.
23908
23909 See ChangeLog.10 for earlier changes.
23910
23911 ;; Local Variables:
23912 ;; coding: utf-8
23913 ;; add-log-time-zone-rule: t
23914 ;; End:
23915
23916 Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
23917
23918 This file is part of GNU Emacs.
23919
23920 GNU Emacs is free software: you can redistribute it and/or modify
23921 it under the terms of the GNU General Public License as published by
23922 the Free Software Foundation, either version 3 of the License, or
23923 (at your option) any later version.
23924
23925 GNU Emacs is distributed in the hope that it will be useful,
23926 but WITHOUT ANY WARRANTY; without even the implied warranty of
23927 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23928 GNU General Public License for more details.
23929
23930 You should have received a copy of the GNU General Public License
23931 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
23932
23933 ;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40