728a442e86b53de3662016316f23e1d348b1006a
[bpt/emacs.git] / src / ChangeLog
1 2010-06-03 Dan Nicolaescu <dann@ics.uci.edu>
2
3 Move UNEXEC definition to autoconf.
4 * s/usg5-4.h (UNEXEC): Remove, move to configure.in.
5 * s/sol2-10.h (UNEXEC):
6 * s/irix6-5.h (UNEXEC):
7 * s/hpux10-20.h (UNEXEC):
8 * s/gnu-linux.h (UNEXEC):
9 * s/darwin.h (UNEXEC):
10 * s/cygwin.h (UNEXEC):
11 * s/bsd-common.h (UNEXEC):
12 * s/aix4-2.h (UNEXEC):
13 * m/alpha.h (UNEXEC): Likewise.
14 * Makefile.in (UNEXEC_OBJ): Define using @UNEXEC_OBJ@.
15
16 2010-06-03 Juanma Barranquero <lekktu@gmail.com>
17
18 Remove obsolete pre-unicode2 macros.
19 * character.h (MULTIBYTE_FORM_LENGTH, PARSE_MULTIBYTE_SEQ): Remove.
20 * composite.c (composition_reseat_it):
21 * data.c (Faset):
22 * fns.c (Ffillarray):
23 * regex.c (re_search_2): Use BYTES_BY_CHAR_HEAD.
24 [!emacs] (BYTES_BY_CHAR_HEAD): Define instead of MULTIBYTE_FORM_LENGTH.
25
26 2010-06-03 Juri Linkov <juri@jurta.org>
27
28 * buffer.c (Fother_buffer): Add CHECK_FRAME.
29 (Fswitch_to_buffer): Remove unused variable `err'.
30
31 2010-06-03 Glenn Morris <rgm@gnu.org>
32
33 * m/template.h (NO_SOCK_SIGIO): Remove, no longer used.
34
35 * m/hp800.h (alloca) [__NetBSD__ && __GNUC__]: No need to define it,
36 now that AH_BOTTOM does it.
37
38 * m/hp800.h (HAVE_ALLOCA):
39 * m/ibms390x.h (HAVE_ALLOCA): Do not define, no longer needed.
40
41 * m/ia64.h, s/gnu-linux.h, s/gnu.h, s/netbsd.h, s/usg5-4.h:
42 Remove NOT_C_CODE tests, it is always true now.
43
44 2010-06-02 Dan Nicolaescu <dann@ics.uci.edu>
45
46 Fix config.h includes.
47 * xsettings.c:
48 * xgselect.c:
49 * nsterm.m:
50 * nsselect.m:
51 * nsimage.m:
52 * nsfont.m:
53 * nsfns.m:
54 * dbusbind.c: Use #include <config.h> instead of "config.h" as all
55 other files do.
56
57 * gmalloc.c: Remove BROKEN_PROTOTYPES reference, unused.
58
59 * s/sol2-6.h: Remove obsolete comments.
60
61 Remove unnecessary alloca.h includes.
62 * keymap.c: Do not include alloca.h, config.h does that.
63 * sysdep.c: Likewise. Do not define fwrite, not used.
64
65 2010-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
66
67 * sysdep.c (child_setup_tty): Move the non-canonical initialization to
68 the HAVE_TERMIO where it belongs (bug#6149).
69
70 2010-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
71
72 * keymap.c (Fwhere_is_internal): Fix handling of remapping (in thread
73 of bug#6305).
74
75 2010-05-30 Eli Zaretskii <eliz@gnu.org>
76
77 * bidi.c (bidi_move_to_visually_next): Make sure the sentinel
78 state is always cached (bug#6306).
79
80 2010-05-29 Eli Zaretskii <eliz@gnu.org>
81
82 Fix cursor motion in bidi-reordered continued lines.
83 * xdisp.c (try_cursor_movement): Backup to non-continuation line
84 only after finding point's row. Fix the logic. Rewrite the loop
85 over continuation lines in bidi-reordered buffers. Return
86 CURSOR_MOVEMENT_MUST_SCROLL upon failure to find a suitable row,
87 rather than CURSOR_MOVEMENT_CANNOT_BE_USED.
88
89 2010-05-28 Michael Albinus <michael.albinus@gmx.de>
90
91 * fileio.c (Fdelete_file): Pass TRASH arg to handler call.
92
93 2010-05-28 Kenichi Handa <handa@m17n.org>
94
95 * font.c (font_delete_unmatched): Check Vface_ignored_fonts.
96 Don't sheck SPEC if it is nil.
97 (font_list_entities): Call font_delete_unmatched if
98 Vface_ignored_fonts is non-nil. (Bug#6287)
99
100 2010-05-28 Glenn Morris <rgm@gnu.org>
101
102 * Makefile.in (LIBES): Remove $LOADLIBES, it is never set.
103
104 2010-05-27 Chong Yidong <cyd@stupidchicken.com>
105
106 * fileio.c (Fdelete_file): Change meaning of optional arg to mean
107 whether to trash.
108 (internal_delete_file, Frename_file): Callers changed.
109 (delete_by_moving_to_trash): Doc fix.
110 (Fdelete_directory_internal): Don't move to trash.
111
112 * callproc.c (delete_temp_file):
113 * buffer.c (Fkill_buffer): Callers changed.
114
115 * lisp.h: Update prototype.
116
117 2010-05-27 Chong Yidong <cyd@stupidchicken.com>
118
119 * xdisp.c (redisplay_window): After redisplay, check if point is
120 still valid before setting it (Bug#6177).
121
122 2010-05-27 Glenn Morris <rgm@gnu.org>
123
124 * Makefile.in, autodeps.mk, deps.mk, ns.mk:
125 Convert comments to Makefile format.
126
127 * Makefile.in (bootstrap-clean): No more Makefile.c.
128
129 2010-05-26 Glenn Morris <rgm@gnu.org>
130
131 * Makefile.in (YMF_PASS_LDFLAGS): Remove.
132 (temacs${EXEEXT}): Use PRE_EDIT_LDFLAGS, POST_EDIT_LDFLAGS.
133
134 * Makefile.in (NS_IMPL_GNUSTEP_INC, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
135 Remove.
136 (TEMACS_LDFLAGS): Do not use NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
137
138 2010-05-26 Kenichi Handa <handa@m17n.org>
139
140 * composite.c (composition_compute_stop_pos): Fix condition for
141 backward scanning.
142
143 2010-05-25 Glenn Morris <rgm@gnu.org>
144
145 * Makefile.in (@NS_IMPL_GNUSTEP_INC@, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
146 Move before TEMACS_LDFLAGS.
147 (TEMACS_LDFLAGS): Use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
148 (temacs${EXEEXT}): Do not use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
149
150 * Makefile.in (NOT_C_CODE): No longer define.
151 (config.h): No longer include.
152
153 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): Move definition after some
154 variables it may reference.
155
156 * Makefile.in (LD_SWITCH_SYSTEM_EXTRA): Remove.
157 (TEMACS_LDFLAGS): Remove LD_SWITCH_SYSTEM_EXTRA.
158
159 2010-05-25 Kenichi Handa <handa@m17n.org>
160
161 * dispextern.h (struct composition_it): New members rule_idx and
162 charpos.
163
164 * xdisp.c (set_iterator_to_next): While scanning backward, assume
165 that the character positions of IT point the last character of the
166 current grapheme cluster.
167 (next_element_from_composition): Don't change character positions
168 of IT.
169 (append_composite_glyph): Set glyph->charpos to
170 it->cmp_it.charpos.
171
172 * composite.c (autocmp_chars): Change the first argument to RULE,
173 and try composition with RULE only.
174 (composition_compute_stop_pos): Record the index number of the
175 composition rule in CMP_IT->rule_idx.
176 (composition_reseat_it): Call autocmp_chars repeatedly until the
177 correct rule of the composition is found.
178 (composition_update_it): Set CMP_IT->charpos. Assume the CHARPOS
179 is at the last character of the current grapheme cluster when
180 CMP_IT->reversed_p is nonzero.
181
182 2010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
183
184 * editfns.c (Fbyte_to_string): New function.
185
186 2010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
187
188 * process.c (Fmake_network_process): Set :host to nil if it's not used.
189 Suggested by Masatake YAMATO <yamato@redhat.com>.
190
191 2010-05-23 Eli Zaretskii <eliz@gnu.org>
192
193 * dispextern.h (init_iterator): Sync prototype with changed definition.
194
195 2010-05-20 enami tsugutomo <tsugutomo.enami@jp.sony.com>
196
197 * s/netbsd.h: If terminfo is found, use it in preference to
198 termcap. (Bug#6190) [Backport from trunk]
199
200 2010-05-19 Eli Zaretskii <eliz@gnu.org>
201
202 Redesign and reimplement bidi-aware edge positions of glyph rows.
203
204 * dispextern.h (struct glyph_row): New members minpos and maxpos.
205 (MATRIX_ROW_START_CHARPOS, MATRIX_ROW_START_BYTEPOS)
206 (MATRIX_ROW_END_CHARPOS, MATRIX_ROW_END_BYTEPOS): Reference minpos
207 and maxpos members instead of start.pos and end.pos, respectively.
208
209 * xdisp.c (display_line): Compare IT_CHARPOS with the position in
210 row->start.pos, rather than with MATRIX_ROW_START_CHARPOS.
211 (cursor_row_p): Use row->end.pos rather than MATRIX_ROW_END_CHARPOS.
212 (try_window_reusing_current_matrix, try_window_id):
213 Use ROW->minpos rather than ROW->start.pos.
214 (init_from_display_pos, init_iterator): Use EMACS_INT for
215 character and byte positions.
216 (find_row_edges): Rename from find_row_end. Accept additional
217 arguments for minimum and maximum buffer positions seen by
218 display_line for this row. Don't use iterator to find the
219 position following the maximum one; instead, increment the
220 position found by display_line directly. Fix logic; eol_pos
221 should be tested before the rest. Handle the case of characters
222 delivered from display vector (bug#6036). Fix tests related to
223 it->method. Handle the truncated_on_right_p rows.
224 (RECORD_MAX_MIN_POS): New macro.
225 (display_line): Use it to record the minimum and maximum buffer
226 positions for glyphs in the row being assembled. Record the
227 position of the newline that terminates the line. If word wrap is
228 in effect, restore minimum and maximum positions seen up to the
229 wrap point, when iterator returns to it.
230 (try_window_reusing_current_matrix): Give up if in bidi-reordered
231 row and cursor not already at point. Restore original pre-bidi
232 code for unidirectional buffers.
233
234 * dispnew.c (increment_row_positions, check_matrix_invariants):
235 Increment and check row->start.pos and row->end.pos, in addition
236 to MATRIX_ROW_START_CHARPOS and MATRIX_ROW_END_CHARPOS.
237
238 * .gdbinit (prowlims): Display row->minpos and row->maxpos.
239 Display truncated_on_left_p and truncated_on_right_p flags.
240 Formatting fixes.
241 (pmtxrows): Display the ordinal number of each row. Don't display
242 rows beyond the last one.
243
244 * bidi.c (bidi_cache_iterator_state): Don't zero out new_paragraph:
245 it is not copied by bidi_copy_it.
246
247 2010-05-22 Eli Zaretskii <eliz@gnu.org>
248
249 * w32.c (sys_write): Break writes into chunks smaller than 32MB.
250 (Bug#6237)
251
252 2010-05-22 Chong Yidong <cyd@stupidchicken.com>
253
254 * image.c (Fimage_flush): Rename from image-refresh.
255
256 2010-05-21 Chong Yidong <cyd@stupidchicken.com>
257
258 * xdisp.c (redisplay_internal): Clear caches even if redisplaying
259 just one window.
260
261 * image.c (Vimage_cache_eviction_delay): Decrease to 300.
262 (clear_image_cache): If the number of cached images is unusually
263 large, decrease the cache eviction delay (Bug#6230).
264
265 2010-05-21 Glenn Morris <rgm@gnu.org>
266
267 * Makefile.in (${ns_appdir}, ${ns_appbindir}Emacs, ns-app):
268 Move these rules to ns.mk.
269 * ns.mk: New file.
270
271 * Makefile.in (../src/$(OLDXMENU), $(OLDXMENU)): Always define rules.
272
273 * Makefile.in (CANNOT_DUMP): New, set by configure.
274 (emacs${EXEEXT}, bootstrap-emacs${EXEEXT}): Use $CANNOT_DUMP.
275
276 2010-05-20 Juri Linkov <juri@jurta.org>
277
278 * fileio.c (Fdelete_file): Change interative spec to use
279 `read-file-name' like in `find-file-read-args' where the default
280 value is `default-directory' instead of `buffer-file-name'.
281 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00533.html
282
283 2010-05-20 Kevin Ryde <user42@zip.com.au>
284
285 * keyboard.c (Vlast_command, Vkeyboard_translate_table)
286 (Voverriding_terminal_local_map, Vsystem_key_alist)
287 (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
288
289 2010-05-20 Glenn Morris <rgm@gnu.org>
290
291 * Makefile.in (DEPDIR): New constant.
292 (DEPFLAGS): Set with configure, not cpp.
293 (MKDEPDIR): New, set by configure.
294 (.c.o, .m.o, ecrt0.o): Use $MKDEPDIR.
295 (clean): Use $DEPDIR.
296 (deps_frag): Include from configure.
297 Move static/dynamic dependency stuff to deps.mk/autodeps.mk.
298 * deps.mk, autodeps.mk: New files, extracted from Makefile.in.
299
300 * bidi.c (bidi_cache_shrink, bidi_cache_iterator_state): Fix
301 reallocation of the cache. (Bug#6210)
302
303 2010-05-19 Glenn Morris <rgm@gnu.org>
304
305 * s/msdos.h (ORDINARY_LINK): Move to sed2v2.inp.
306
307 * Makefile.in (LD, YMF_PASS_LDFLAGS): Set with configure, not cpp.
308 (GNULIB_VAR): Remove.
309 (LIBES): Use LIB_GCC instead of GNULIB_VAR.
310
311 * m/ibms390x.h (LINKER):
312 * m/macppc.h (LINKER) [GNU_LINUX]:
313 * s/aix4-2.h (ORDINARY_LINK):
314 * s/cygwin.h (LINKER):
315 * s/darwin.h (ORDINARY_LINK):
316 * s/gnu.h (ORDINARY_LINK):
317 * s/netbsd.h (LINKER):
318 * s/usg5-4.h (ORDINARY_LINK):
319 Move to configure.
320
321 * s/aix4-2.h (LINKER): Remove; this file sets ORDINARY_LINK.
322
323 2010-05-18 Chong Yidong <cyd@stupidchicken.com>
324
325 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
326 prevent stack overflow if number of arguments is too large
327 (Bug#6214).
328
329 2010-05-18 Juanma Barranquero <lekktu@gmail.com>
330
331 * charset.c (load_charset_map_from_file): Don't call close after fclose.
332
333 2010-05-18 Glenn Morris <rgm@gnu.org>
334
335 * s/gnu-linux.h: Combine two conditionals.
336
337 * Makefile.in (otherobj): Include $(VMLIMIT_OBJ) separately from
338 $(POST_ALLOC_OBJ).
339
340 * Makefile.in (RALLOC_OBJ): New, set by configure.
341 (rallocobj): Replace with the previous variable.
342 (otherobj): Use $RALLOC_OBJ.
343
344 * s/gnu.h (REL_ALLOC) [DOUG_LEA_MALLOC]:
345 * s/gnu-linux.h (REL_ALLOC) [DOUG_LEA_MALLOC]: Move undef to configure.
346
347 * Makefile.in (GMALLOC_OBJ, VMLIMIT_OBJ): New, set by configure.
348 (gmallocobj, vmlimitobj): Replace with previous two variables.
349 (otherobj): Use $GMALLOC_OBJ, $VMLIMIT_OBJ.
350
351 2010-05-17 Glenn Morris <rgm@gnu.org>
352
353 * Makefile.in (OLDXMENU_DEPS): New, set by configure.
354 (stamp-oldxmenu): Use $OLDXMENU_DEPS.
355
356 2010-05-16 Glenn Morris <rgm@gnu.org>
357
358 * Makefile.in (${ns_appbindir}Emacs, ns-app): Always define these rules.
359
360 * Makefile.in (clean): Get rid of HAVE_NS conditional.
361
362 * Makefile.in (ns_appdir, ns_appbindir): Now configure adds the
363 trailing "/".
364
365 * Makefile.in (TEMACS_LDFLAGS2): New, set by configure.
366 (temacs${EXEEXT}): Combine the NS_IMPL_GNUSTEP case with the default.
367
368 * Makefile.in (GNUSTEP_SYSTEM_LIBRARIES): Remove, unused.
369 (NS_IMPL_GNUSTEP_TEMACS_LDFLAGS): New, set by configure.
370 (LD) [NS_IMPL_GNUSTEP]: Set to $(CC) -rdynamic.
371 (temacs${EXEEXT}): Remove $LOCALCPP, never defined or referenced.
372 Make most of the NS_IMPL_GNUSTEP case the same as the default case.
373
374 * Makefile.in (temacs${EXEEXT}) [!NS_IMPL_GNUSTEP]:
375 Remove ${STARTFLAGS}, nothing ever sets it.
376
377 2010-05-16 Dan Nicolaescu <dann@ics.uci.edu>
378
379 * m/ia64.h (UNEXEC): Remove, set in s/*.h.
380
381 2010-05-16 Glenn Morris <rgm@gnu.org>
382
383 * Makefile.in (LIBX_BASE): Always define.
384
385 * Makefile.in (LIBX_OTHER): Move out of cpp section.
386
387 * Makefile.in (LIBXT): Always define.
388
389 2010-05-15 Glenn Morris <rgm@gnu.org>
390
391 * Makefile.in (OLDXMENU, LIBXMENU, LIBX_OTHER): Always define.
392
393 * Makefile.in (FONT_DRIVERS): Remove, replace with $FONT_OBJ.
394 (obj, SOME_MACHINE_OBJECTS): Use $FONT_OBJ.
395
396 2010-05-15 Ken Raeburn <raeburn@raeburn.org>
397
398 * lisp.h (XFLOAT_DATA): Use "0?x:x" to generate an rvalue. (Bug#5916)
399 (LISP_MAKE_RVALUE) [!USE_LISP_UNION_TYPE && !__GNUC__]: Likewise.
400
401 * emacs.c (main): Initialize initial-environment and
402 process-environment before generating from env, not after.
403
404 Handle --version reasonably in CANNOT_DUMP configuration.
405 * emacs.c (emacs_version, emacs_copyright): New string variables.
406 (Vemacs_version, Vemacs_copyright): New Lisp_Object variables.
407 (syms_of_emacs): Defvar them, and initialize them from the C
408 string variables.
409 (main): If initialization hasn't been done, print initial version
410 info from the C strings, instead of starting an interactive session.
411
412 2010-05-15 Eli Zaretskii <eliz@gnu.org>
413
414 * bidi.c (bidi_paragraph_init): Don't leave alone garbage values
415 of bidi_it->paragraph_dir. Call bidi_initialize if needed.
416 (bidi_paragraph_init): Remove redundant assertion that we are at
417 the beginning of a line after call to bidi_find_paragraph_start.
418
419 * xdisp.c (Fcurrent_bidi_paragraph_direction): New function.
420 (syms_of_xdisp): Defsubr it.
421
422 * cmds.c (Fforward_char, Fbackward_char): Doc fix.
423
424 * Makefile.in: Fix MSDOS-related comments.
425
426 2010-05-15 Glenn Morris <rgm@gnu.org>
427
428 * Makefile.in (OLDXMENU_TARGET): New, set by configure.
429 (really-lwlib, really-oldXMenu): Always define.
430 ($OLDXMENU): Depend on $OLDXMENU_TARGET.
431
432 * Makefile.in: Simplify cpp conditional.
433
434 * Makefile.in (${ns_appdir}): Simplify using umask.
435
436 * Makefile.in (${ns_appdir}): Remove references to CVS-related files.
437
438 2010-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
439
440 * eval.c (specbind): Remove left-over duplicate test.
441 Disallow let-binding frame-local vars. Add comment.
442
443 2010-05-14 Eli Zaretskii <eliz@gnu.org>
444
445 Make the cache of bidi iterator states dynamically allocated.
446 * bidi.c (bidi_cache_shrink): New function.
447 (bidi_init_it): Call it.
448 (bidi_cache_iterator_state): Enlarge the cache if needed.
449
450 * bidi.c (bidi_move_to_visually_next): Rename from
451 bidi_get_next_char_visually. All callers changed.
452
453 2010-05-14 Kenichi Handa <handa@m17n.org>
454
455 * dispextern.h (struct composition_it): New member reversed_p.
456
457 * composite.c (composition_compute_stop_pos): Search backward if
458 ENDPOS < CHARPOS.
459 (composition_reseat_it): Handle the case that ENDPOS < CHARPOS.
460 Set CMP_IT->reversed_p.
461 (composition_update_it): Pay attention to CMP_IT->reversed_p.
462
463 * xdisp.c (set_iterator_to_next):
464 Call composition_compute_stop_pos with negative ENDPOS if we are
465 scanning backward. Call composition_compute_stop_pos if scan
466 direction is changed.
467 (next_element_from_buffer): Call composition_compute_stop_pos with
468 negative ENDPOS if we are scanning backward.
469 (next_element_from_composition): Pay attention to
470 IT->cmp_it.reversed_p.
471
472 2010-05-14 Kenichi Handa <handa@m17n.org>
473
474 * font.c (font_range): Return the range for the font found at first.
475
476 2010-05-14 Glenn Morris <rgm@gnu.org>
477
478 * Makefile.in (ns_appdir, ns_appbindir, ns_appsrc): Always define.
479
480 * Makefile.in (mktime, X11, register): Move undefs to configure.
481
482 * Makefile.in (MSDOS_OBJ): Default to empty, let msdos scripts set it.
483 (MSDOS_X_OBJ): New variable.
484 (MSDOS_SUPPORT_REAL): New constant.
485 (MSDOS_SUPPORT): Set as a variable, not with cpp.
486 (obj): Use MSDOS_X_OBJ.
487 (lisp): Use MSDOS_SUPPORT as a variable.
488
489 * Makefile.in (REAL_MOUSE_SUPPORT): New constant.
490 (GPM_MOUSE_SUPPORT): Now it's a constant.
491 (MOUSE_SUPPORT, TOOLTIP_SUPPORT, WINDOW_SUPPORT): Set with configure,
492 not cpp.
493
494 * Makefile.in (@NS_IMPL_GNUSTEP_INC@): Use in place of #ifdef.
495 (ns_appresdir): Remove, unused.
496
497 * Makefile.in (SHELL): Move outside cpp section.
498
499 * s/netbsd.h (AMPERSAND_FULL_NAME): Remove (defined in AH_BOTTOM).
500
501 2010-05-13 Glenn Morris <rgm@gnu.org>
502
503 * Makefile.in (FONT_DRIVERS): Place with other HAVE_X_WINDOWS stuff.
504 (TOOLTIP_SUPPORT): Place with other HAVE_WINDOW_SYSTEM stuff.
505
506 * Makefile.in (FONT_DRIVERS): If HAVE_X_WINDOWS is defined,
507 HAVE_WINDOW_SYSTEM must be too.
508
509 * Makefile.in (WINNT_SUPPORT): Remove, nt build does not use this file.
510 (lisp): Remove WINNT_SUPPORT.
511
512 * Makefile.in (OLDXMENU, LIBXMENU) [!HAVE_MENUS]:
513 Let configure set these variables (to empty) in this case as well.
514
515 * Makefile.in (LD_SWITCH_X_SITE): Define as a variable, not via cpp.
516 (LIBX_BASE): Use $LD_SWITCH_X_SITE.
517
518 * Makefile.in (C_SWITCH_X_SYSTEM, C_SWITCH_X_SITE, LIB_STANDARD)
519 (LIB_MATH, FONTCONFIG_CFLAGS, FONTCONFIG_LIBS, FREETYPE_CFLAGS)
520 (FREETYPE_LIBS, LIBOTF_CFLAGS, LIBOTF_LIBS, M17N_FLT_CFLAGS)
521 (M17N_FLT_LIBS, GNU_OBJC_CFLAGS, GNUSTEP_SYSTEM_LIBRARIES, LIBGPM)
522 (LIBRESOLV, UNEXEC_OBJ): For clarity, define variables to hold
523 the values output by configure.
524 (ALL_CFLAGS, obj, LIBES, temacs${EXEEXT}): Use the above variables.
525
526 2010-05-12 Glenn Morris <rgm@gnu.org>
527
528 * Makefile.in (YMF_PASS_LDFLAGS, LD, LINKER): Simplify the logic.
529 (LINKER_WAS_SPECIFIED): Remove.
530
531 * Makefile.in (LIB_GCC): Set using configure, not cpp.
532 (GNULIB_VAR) [!ORDINARY_LINK]: Always set to $LIB_GCC.
533 * m/arm.h (LIB_GCC) [GNU_LINUX]:
534 * s/cygwin.h (LIB_GCC):
535 * s/freebsd.h (LIB_GCC):
536 * s/gnu-linux.h (LIB_GCC):
537 * s/msdos.h (LIB_GCC):
538 * s/netbsd.h (LIB_GCC):
539 Move to configure.
540
541 2010-05-11 Karel Klic <kklic@redhat.com>
542
543 * ftfont.c: Fix incorrect parentheses of #if condition for
544 definining M17N_FLT_USE_NEW_FEATURE.
545
546 2010-05-11 Glenn Morris <rgm@gnu.org>
547
548 * Makefile.in (LIBS_SYSTEM) [MSDOS]: Do not reset.
549 * s/msdos.h (MSDOS_LIBS_SYSTEM): Remove.
550
551 2010-05-10 Eli Zaretskii <eliz@gnu.org>
552
553 * xdisp.c (init_iterator): Don't turn on bidi reordering in
554 unibyte buffers. See
555 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00263.html.
556
557 2010-05-10 Glenn Morris <rgm@gnu.org>
558
559 * Makefile.in (LIBS_SYSTEM): Set using configure, not cpp.
560 (LIBS_SYSTEM) [MSDOS]: Reset with MSDOS_LIBS_SYSTEM.
561 (LIBES): Use LIBS_SYSTEM as a variable.
562 * s/msdos.h (LIBS_SYSTEM): Rename to MSDOS_LIBS_SYSTEM. Always define.
563 * s/aix4-2.h (LIBS_SYSTEM):
564 * s/freebsd.h (LIBS_SYSTEM):
565 * s/hpux10-20.h (LIBS_SYSTEM):
566 * s/sol2-6.h (LIBS_SYSTEM):
567 * s/unixware.h (LIBS_SYSTEM):
568 Move to configure.
569
570 * s/aix4-2.h (MAIL_USE_LOCKF):
571 * s/bsd-common.h (MAIL_USE_FLOCK):
572 * s/darwin.h (MAIL_USE_FLOCK):
573 * s/gnu-linux.h (MAIL_USE_FLOCK):
574 * s/irix6-5.h (MAIL_USE_FLOCK):
575 * s/template.h (MAIL_USE_FLOCK):
576 Move to configure.
577
578 2010-05-08 Chong Yidong <cyd@stupidchicken.com>
579
580 * Version 23.2 released.
581
582 2010-05-08 Andreas Schwab <schwab@linux-m68k.org>
583
584 * composite.c (autocmp_chars): Save point as marker before calling
585 auto-composition-function (Bug#5984).
586
587 * lisp.h (restore_point_unwind): Add prototype.
588
589 * fileio.c (restore_point_unwind): Remove static attribute.
590
591 2010-05-08 Kenichi Handa <handa@m17n.org>
592
593 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
594 new feature of libotf and m17n-flt.
595 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
596 Call OTF_check_features even if no specific feature is given.
597 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
598 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
599 that OUT is NULL. Use OTF_drive_gsub_with_log and
600 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
601 OTF_drive_gpos.
602 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
603 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
604 Setup mflt_enable_new_feature and mflt_try_otf.
605
606 2010-05-08 Jan Djärv <jan.h.d@swipnet.se>
607
608 * xsettings.c (Ftool_bar_get_system_style): Correct comment.
609
610 * gtkutil.c (xg_pack_tool_bar): Change show_all to show for handle
611 box and toolbar (Bug #6139).
612 (xg_create_tool_bar): Remove comment (Bug #6139).
613 (xg_make_tool_item): Remove gtk_widget_show_all (Bug #6139).
614 (xg_show_toolbar_item): Add gtk_widget_show for weventbox (Bug #6139).
615
616 2010-05-08 Juanma Barranquero <lekktu@gmail.com>
617
618 * makefile.w32-in ($(BLD)/eval.$(O), $(BLD)/w32fns.$(O)):
619 Update dependencies.
620
621 2010-05-08 Eli Zaretskii <eliz@gnu.org>
622
623 * fringe.c (update_window_fringes): Set up truncation bitmaps for
624 R2L lines.
625
626 2010-05-08 Glenn Morris <rgm@gnu.org>
627
628 * Makefile.in (THIS_IS_MAKEFILE): Remove, unused.
629
630 * Makefile.in (LIBS_TERMCAP): Set with configure, not cpp.
631 (TERMCAP_OBJ): New, set by configure, replacing termcapobj.
632 (termcapobj): Replace with TERMCAP_OBJ.
633 (otherobj): Use $TERMCAP_OBJ instead of $termcapobj.
634 (LIBES): Use LIBS_TERMCAP as a variable.
635
636 * s/freebsd.h (osreldate.h): No longer include, since this file
637 does not use __FreeBSD_version any more.
638
639 * s/aix4-2.h (TERMINFO):
640 * s/cygwin.h (TERMINFO):
641 * s/darwin.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
642 * s/freebsd.h (TERMINFO, LIBS_TERMCAP):
643 * s/gnu-linux.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
644 * s/gnu.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
645 * s/hpux10-20.h (TERMINFO, LIBS_TERMCAP):
646 * s/irix6-5.h (TERMINFO):
647 * s/netbsd.h (LIBS_TERMCAP):
648 * s/openbsd.h (TERMINFO, LIBS_TERMCAP):
649 * s/sol2-6.h (LIBS_TERMCAP) [!TERMINFO]:
650 * s/usg5-4.h (TERMINFO):
651 Move to configure.
652
653 2010-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
654
655 * eval.c (unbind_to): Don't unbind a local binding into the global
656 binding when the local binding disappeared. Inversely, don't unbind
657 a global binding into a newly created local binding.
658 * data.c (set_internal): Make its `buf' arg into a `where' arg so we
659 can specify the frame to use, when applicable. Adjust callers.
660
661 2010-05-07 Vincent Belaïche <vincent.belaiche@gmail.com>
662 Stefan Monnier <monnier@iro.umontreal.ca>
663
664 * floatfns.c (Fisnan, Fcopysign, Ffrexp, Fldexp): New functions.
665
666 2010-05-07 Eli Zaretskii <eliz@gnu.org>
667
668 * w32fns.c: Include w32.h.
669 (Fw32_shell_execute): Decode the error message before passing it
670 to `error'. (Bug#6126)
671
672 * msdos.c (dos_set_window_size):
673 * w16select.c (Fx_selection_exists_p): Use `Fsymbol_value (foo)'
674 instead of `XSYMBOL (foo)->value'.
675
676 2010-05-07 Eli Zaretskii <eliz@gnu.org>
677
678 Fix the MS-DOS build, broken by autoconfiscation.
679
680 * Makefile.in: Don't use Make-style comments past the "start of
681 cpp stuff" line.
682 (MSDOS_OBJ): Remove xmenu.o (it is now defined by XMENU_OBJ).
683
684 * s/msdos.h (UNEXEC): Don't define (@unexec@ in Makefile.in is
685 edited directly by msdos/sed1v2.inp).
686
687 2010-05-07 Glenn Morris <rgm@gnu.org>
688
689 * Makefile.in (LD_SWITCH_SYSTEM): Set with configure, not cpp.
690 (LD_SWITCH_SYSTEM_EXTRA): New variable, set by configure.
691 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM and $LD_SWITCH_SYSTEM_EXTRA,
692 move out of cpp section.
693 * s/freebsd.h (LD_SWITCH_SYSTEM):
694 * s/gnu-linux.h (LD_SWITCH_SYSTEM):
695 * s/netbsd.h (LD_SWITCH_SYSTEM):
696 * s/openbsd.h (LD_SWITCH_SYSTEM): Move to configure.in.
697
698 2010-05-07 Dan Nicolaescu <dann@ics.uci.edu>
699
700 Define LIB_STANDARD and START_FILES using autoconf.
701 * s/usg5-4.h (LIB_STANDARD):
702 * s/netbsd.h (START_FILES):
703 * s/irix6-5.h (LIB_STANDARD):
704 * s/hpux10-20.h (LIB_STANDARD, START_FILES):
705 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
706 * s/freebsd.h (START_FILES):
707 * s/darwin.h (START_FILES):
708 * s/cygwin.h (START_FILES):
709 * s/aix4-2.h (LIB_STANDARD):
710 * m/ibmrs6000.h (START_FILES): Remove, move logic to configure.in.
711 * Makefile.in (STARTFILES): Rename to START_FILES, define using
712 autoconf, not cpp.
713
714 2010-05-06 Dan Nicolaescu <dann@ics.uci.edu>
715
716 Remove NEED_BSDTTY and NEED_UNISTD_H.
717 * s/hpux10-20.h (NEED_BSDTTY): Remove.
718 * s/aix4-2.h (NEED_UNISTD_H): Remove.
719 * systty.h: Simplify conditionals for including <sys/bsdtty.h>,
720 <sys/ptyio.h> and <unistd.h>.
721
722 * emacs.c (main): Remove NO_DIR_LIBRARY conditional, unused.
723
724 * Makefile.in (STARTFILES): Conditionally define to make the usage clear.
725 * s/gnu.h (START_FILES): Remove empty definition.
726
727 2010-05-06 Jan Djärv <jan.h.d@swipnet.se>
728
729 * xterm.c (x_draw_image_relief): Move declaration of extra to beginning.
730
731 2010-05-06 Glenn Morris <rgm@gnu.org>
732
733 * Makefile.in (CPP, LN_S): Remove unused variables.
734
735 2010-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
736
737 * syntax.c (Fchar_syntax): Check the arg is a character (bug#6080).
738
739 2010-05-05 Lawrence Mitchell <wence@gmx.li>
740
741 * m/sparc.h: Fix typo in earlier change.
742
743 2010-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
744
745 Misc tweaks.
746 * eval.c (Fdefvaralias): Remove unintended nested if.
747 (internal_condition_case_2, internal_condition_case_n): Use ANSI type.
748
749 2010-05-04 Bernhard Herzog <bh@intevation.de> (tiny change)
750
751 * xsmfns.c (smc_save_yourself_CB): strlen(client_id) => strlen(cwd).
752
753 2010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
754
755 Remove BSD_PGRPS.
756 * s/bsd-common.h (BSD_PGRPS): Remove undef.
757 * s/gnu-linux.h (BSD_PGRPS): Remove.
758 * term.c (dissociate_if_controlling_tty):
759 * sysdep.c (narrow_foreground_group, widen_foreground_group)
760 (init_sys_modes, reset_sys_modes):
761 * emacs.c (main):
762 * callproc.c (Fcall_process, child_setup): Remove code depending
763 on BSD_PGRPS.
764
765 Remove POSIX_SIGNALS.
766 * s/usg5-4.h (POSIX_SIGNALS):
767 * s/netbsd.h (POSIX_SIGNALS):
768 * s/msdos.h (POSIX_SIGNALS):
769 * s/ms-w32.h (POSIX_SIGNALS):
770 * s/hpux11.h (POSIX_SIGNALS):
771 * s/gnu.h (POSIX_SIGNALS):
772 * s/gnu-linux.h (POSIX_SIGNALS):
773 * s/freebsd.h (POSIX_SIGNALS):
774 * s/darwin.h (POSIX_SIGNALS):
775 * s/cygwin.h (POSIX_SIGNALS):
776 * s/aix4-2.h (POSIX_SIGNALS): Remove definition.
777 * s/unixware.h:
778 * s/sol2-6.h: Remove comments on POSIX_SIGNALS.
779 * process.c (create_process):
780 * syssignal.h:
781 * sysdep.c (wait_for_termination, init_signals):
782 * process.c (create_process):
783 * msdos.c: POSIX_SIGNALS is always defined on all platforms,
784 remove all code that assumes the contrary.
785
786 2010-05-04 Glenn Morris <rgm@gnu.org>
787
788 * s/gnu-linux.h (LD_SWITCH_SYSTEM): Use LD_SWITCH_X_SITE_AUX as a shell
789 variable.
790 * s/netbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
791 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH.
792 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
793 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH instead of
794 LD_SWITCH_SYSTEM_tmp.
795 * Makefile.in (LD_SWITCH_X_SITE_AUX, LD_SWITCH_X_SITE_AUX_RPATH):
796 New variables, set by configure.
797
798 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
799 * s/darwin.h (HEADERPAD_EXTRA, LIBS_NSGUI): Remove.
800 (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
801 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): New variable, set by configure.
802 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM_TEMACS.
803
804 * s/aix4-2.h (C_SWITCH_SYSTEM):
805 * m/alpha.h (C_SWITCH_MACHINE):
806 Move to configure.in.
807 * Makefile.in (C_SWITCH_MACHINE, C_SWITCH_SYSTEM):
808 New variables, set by configure.
809 (ALL_CFLAGS): Use $C_SWITCH_MACHINE and $C_SWITCH_SYSTEM in place of
810 $c_switch_machine and $c_switch_system.
811
812 2010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
813
814 * s/hpux10-20.h (LIB_STANDARD): New definition.
815 * Makefile.in (ORDINARY_LINK): Remove setting LIB_STANDARD based
816 on it, not used anymore.
817
818 2010-05-03 Chong Yidong <cyd@stupidchicken.com>
819
820 * eval.c (internal_condition_case_n): Rename from
821 internal_condition_case_2.
822 (internal_condition_case_2): New function.
823
824 * xdisp.c (safe_call): Use internal_condition_case_n.
825
826 * fileio.c (Fdelete_file, internal_delete_file): New arg FORCE.
827 (internal_delete_file, Frename_file): Callers changed.
828
829 * buffer.c (Fkill_buffer):
830 * callproc.c (delete_temp_file): Callers changed (Bug#6070).
831
832 * lisp.h: Update prototypes.
833
834 2010-05-03 Glenn Morris <rgm@gnu.org>
835
836 * Makefile.in (LIBX_EXTRA, LIBX_BASE): New variables.
837 (LIBXT_OTHER, LIBX_OTHER): New, set by configure.
838 (LIBXT): Set with configure, not cpp.
839 (LIBX): Remove.
840 (LIBES): Replace $LIBX with $LIBX_BASE and $LIBX_OTHER.
841
842 2010-05-02 Dan Nicolaescu <dann@ics.uci.edu>
843
844 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Remove.
845 The FreeBSD is not needed, the default works, Solaris version is
846 not needed, and the remaining case is not supported by configure.
847
848 2010-05-02 Jan Djärv <jan.h.d@swipnet.se>
849
850 * xsmfns.c (CHDIR_OPT): New define.
851 (smc_save_yourself_CB): Add CHDIR_OPT to options to use when
852 restarting emacs.
853
854 * xterm.c (x_connection_closed): Call Fkill_emacs instead of
855 shut_down_emacs.
856
857 * emacs.c (USAGE1): Mention --chdir.
858 (main): Handle --chdir.
859 (standard_args): Add --chdir.
860 (fatal_error_signal): Call Fkill_emacs for SIGTERM and SIGHUP (Bug
861 #5552).
862
863 2010-05-01 Dan Nicolaescu <dann@ics.uci.edu>
864
865 Remove LD_SWITCH_MACHINE.
866 * Makefile.in (LD_SWITCH_MACHINE): Remove definition, unused.
867 (TEMACS_LDFLAGS): Do not use LD_SWITCH_MACHINE.
868
869 Clean up IRIX code.
870 * m/iris4d.h (TERMINFO, FIRST_PTY_LETTER): Move definitions ...
871 * s/irix6-5.h (TERMINFO, FIRST_PTY_LETTER): ... here.
872
873 Clean up AIX code.
874 * m/ibmrs6000.inp: Remove file, unused.
875 * m/ibmrs6000.h (IBMR2AIX): Remove, unused.
876 (LD_SWITCH_MACHINE): Rename to LD_SWITCH_SYSTEM_TEMACS, and move
877 definition ...
878 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): ... here.
879
880 * sysdep.c (child_setup_tty, init_sys_modes): Remove !IBMR2AIX code,
881 unused.
882
883 2010-05-01 Eli Zaretskii <eliz@gnu.org>
884
885 Emulate POSIX_SIGNALS on MS-Windows.
886
887 * s/ms-w32.h (POSIX_SIGNALS, struct sigaction, SIG_BLOCK)
888 (SIG_SETMASK, SIG_UNBLOCK): Define.
889
890 * sysdep.c (sys_signal) [WINDOWSNT]: #ifdef away.
891 (wait_for_termination) [WINDOWSNT]: Move MS-Windows specific code
892 from non-POSIX_SIGNALS section to POSIX_SIGNALS section.
893
894 * w32.c (sigemptyset, sigaddset, sigfillset, sigprocmask):
895 New stubs.
896
897 Miscellaneous fixes of bidi display.
898
899 * xdisp.c (find_row_end): New function, refactored from display_line.
900 (display_line): Use it.
901 (extend_face_to_end_of_line): In almost-filled rows, extend only
902 if the row is R2L and not continued.
903 (display_line): Fix prepending of truncation glyphs to R2L rows.
904 Preserve overlay and string info in row->end.
905 (insert_left_trunc_glyphs): Support addition of left truncation
906 glyphs to R2L rows.
907 (set_cursor_from_row): Don't place cursor on the vertical border
908 glyph between adjacent windows. Fix a crash when a display string
909 is continued to the next line. Don't return zero if cursor was
910 found by `cursor' property of a display string.
911 (try_cursor_movement): Don't assume that row->end == (row+1)->start,
912 test for that explicitly.
913
914 2010-05-01 Glenn Morris <rgm@gnu.org>
915
916 * Makefile.in (gmallocobj, rallocobj, vmlimitobj): Initialize to null,
917 for clarity.
918 (OTHER_OBJ): Remove.
919 (PRE_ALLOC_OBJ, POST_ALLOC_OBJ): New, set by configure.
920 (otherobj): Use PRE_ALLOC_OBJ, POST_ALLOC_OBJ rather than OTHER_OBJ.
921
922 2010-05-01 Karel Klíč <kklic@redhat.com>
923
924 * fileio.c (Ffile_selinux_context): Context functions may return null.
925
926 2010-04-30 Dan Nicolaescu <dann@ics.uci.edu>
927
928 * s/gnu.h (POSIX_SIGNALS, START_FILES): New definitions.
929
930 2010-04-30 Glenn Morris <rgm@gnu.org>
931
932 * Makefile.in (vmlimitobj) [!SYSTEM_MALLOC]: New variable. (Bug#6065)
933 (OTHER_OBJ): Define as a separate variable, for clarity.
934
935 2010-04-30 Jan Djärv <jan.h.d@swipnet.se>
936
937 * xsettings.c: include limits.h and update file comment.
938
939 2010-04-30 Glenn Morris <rgm@gnu.org>
940
941 * Makefile.in (OLDXMENU, LIBXMENU) [HAVE_MENUS]:
942 Set with configure, not cpp.
943 (LIBW): Remove, replace with $TOOLKIT_LIBW.
944
945 * Makefile.in (mallocobj): Remove.
946 (otherobj): Simplify using @OTHER_OBJ@.
947
948 * Makefile.in (dispnew.o, frame.o, fringe.o, font.o, fontset.o)
949 (keyboard.o, window.o, xdisp.o, xfaces.o, menu.o):
950 Don't bother making nsgui.h dependency platform-specific.
951
952 * Makefile.in (nsfns.o): Remove duplicate nsgui.h dependency.
953
954 2010-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
955
956 * process.c (read_process_output, exec_sentinel): Don't burp if the
957 sentinel/filter kills the current buffer (bug#6060).
958
959 Fix wrong-docstring problem introduced with hash-consing. (Bug#6008)
960 * eval.c (Fautoload): Set doc to a unique number rather than to 0.
961 Remove unused var `args'.
962 * lisp.h (XSETCARFASTINT, XSETCDRFASTINT): Remove.
963 (LOADHIST_ATTACH): Wrap with do...while to avoid surprises for callers.
964 * doc.c (store_function_docstring): Use XSETCAR.
965
966 2010-04-28 Glenn Morris <rgm@gnu.org>
967
968 * Makefile.in (BASE_WINDOW_SUPPORT, X_WINDOW_SUPPORT): New variables.
969 (WINDOW_SUPPORT) [HAVE_WINDOW_SYSTEM]: Use them.
970
971 * Makefile.in (CYGWIN_OBJ): Set with configure, not cpp.
972
973 * Makefile.in (GPM_MOUSE_SUPPORT): New, set by configure.
974 (MOUSE_SUPPORT) [!HAVE_MOUSE]: Use $GPM_MOUSE_SUPPORT.
975
976 * Makefile.in (FONT_OBJ): New, set by configure.
977 (FONT_DRIVERS): Use $FONT_OBJ.
978
979 * Makefile.in (LIBXMU): Set with configure, not cpp.
980 * s/aix4-2.h (LIBXMU):
981 * s/hpux10-20.h (LIBXMU):
982 Remove definition, now set in configure.
983
984 * Makefile.in (NS_OBJ, NS_SUPPORT): Set with configure, not cpp.
985
986 * m/amdx86-64.h [i386]: Move this test to configure.in.
987
988 2010-04-27 Glenn Morris <rgm@gnu.org>
989
990 * Makefile.in (LIBXTR6): Set with configure, not cpp.
991 * s/unixware.h (NEED_LIBW): Remove definition.
992
993 * Makefile.in (LUCID_LIBW, MOTIF_LIBW): Remove, replacing by...
994 (TOOLKIT_LIBW): New, set by configure.
995 (@X_TOOLKIT_TYPE@): No longer define it.
996
997 * Makefile.in (LIBXP): Remove, since included in MOTIF_LIBW.
998 (MOTIF_LIBW): Set with configure, not cpp.
999 * s/aix4-2.h (LIB_MOTIF):
1000 * s/gnu-linux.h (LIB_MOTIF):
1001 * s/unixware.h (LIB_MOTIF): Move to configure.in.
1002
1003 2010-04-27 Dan Nicolaescu <dann@ics.uci.edu>
1004
1005 Reduce CPP usage.
1006 * Makefile.in (LIB_X11_LIB): Remove, inline in the only user.
1007 (obj): Use autoconf for unexec instead of cpp.
1008 (C_SWITCH_SYSTEM, C_SWITCH_MACHINE, C_SWITCH_X_SITE): Remove
1009 definitions and undefs. Inline definitions in the only user.
1010 (ALL_CFLAGS): Substitute C_SWITCH_X_SYSTEM using autoconf.
1011
1012 2010-04-27 Glenn Morris <rgm@gnu.org>
1013
1014 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Change the logic around,
1015 since the defaults (set by the system file) are fine in most cases.
1016 [GNU_LINUX, __OpenBSD__, __NetBSD__, __APPLE__]: Remove sections.
1017 * m/ibms390x.h (START_FILES, LIB_STANDARD):
1018 * m/macppc.h (START_FILES, LIB_STANDARD) [GNU_LINUX]:
1019 * m/sparc.h (START_FILES, LIB_STANDARD) [__linux__]:
1020 Remove definitions, since they are set correctly in s/gnu-linux.h.
1021 * s/freebsd.h (START_FILES, LIB_STANDARD):
1022 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
1023 * s/hpux10-20.h (START_FILES):
1024 * s/netbsd.h (START_FILES, LIB_STANDARD, START_FILES_1, END_FILES_1):
1025 Use $CRT_DIR in place of fixed /usr/lib, /lib directories.
1026
1027 * Makefile.in (LIBXP, LUCID_LIBW, WIDGET_OBJ): Set via configure.
1028 (MOTIF_LIBW): Use $LIBXP.
1029 (otherobj): Use $WIDGET_OBJ.
1030
1031 2010-04-26 Dan Nicolaescu <dann@ics.uci.edu>
1032
1033 * Makefile.in (LIBS_MACHINE): Remove, unused.
1034
1035 Use autoconf instead of cpp for LIB_MATH.
1036 * s/darwin.h (LIB_MATH): Do not define here, move to configure.
1037 * s/cygwin.h (LIB_MATH): Likewise.
1038 * Makefile.in (LIB_MATH): Do not define with cpp.
1039 (LIBES): Use autoconf for LIB_MATH.
1040
1041 2010-04-26 Kenichi Handa <handa@m17n.org>
1042
1043 * composite.c (Ffind_composition_internal): Fix the return value
1044 for an automatic composition.
1045
1046 2010-04-25 Dan Nicolaescu <dann@ics.uci.edu>
1047
1048 Remove all NO_ARG_ARRAY uses.
1049 * fns.c (concat2, concat3, nconc2):
1050 * eval.c (apply1, call1, call2, call3, call4, call5, call6)
1051 (call7): Remove NO_ARG_ARRAY usage, assume it's always true.
1052 * m/xtensa.h (NO_ARG_ARRAY):
1053 * m/template.h (NO_ARG_ARRAY):
1054 * m/sparc.h (NO_ARG_ARRAY):
1055 * m/sh3.h (NO_ARG_ARRAY):
1056 * m/mips.h (NO_ARG_ARRAY):
1057 * m/macppc.h (NO_ARG_ARRAY):
1058 * m/iris4d.h (NO_ARG_ARRAY):
1059 * m/intel386.h (NO_ARG_ARRAY):
1060 * m/ibms390x.h (NO_ARG_ARRAY):
1061 * m/ibms390.h (NO_ARG_ARRAY):
1062 * m/ibmrs6000.h (NO_ARG_ARRAY):
1063 * m/ia64.h (NO_ARG_ARRAY):
1064 * m/hp800.h (NO_ARG_ARRAY):
1065 * m/arm.h (NO_ARG_ARRAY):
1066 * m/amdx86-64.h (NO_ARG_ARRAY):
1067 * m/alpha.h (NO_ARG_ARRAY): Remove definition.
1068
1069 2010-04-25 Eli Zaretskii <eliz@gnu.org>
1070
1071 * xdisp.c (display_line): Don't assume 2nd call to
1072 get_next_display_element cannot return zero. (Bug#6030)
1073 (iterate_out_of_display_property): New function, body from pop_it.
1074 (pop_it): Use it.
1075
1076 2010-04-24 Glenn Morris <rgm@gnu.org>
1077
1078 * m/amdx86-64.h (START_FILES, LIB_STANDARD) [__OpenBSD__]:
1079 For clarity, revert to using fixed /usr/lib rather than $CRT_DIR.
1080 (START_FILES, LIB_STANDARD) [__FreeBSD__]: Merge into the generic case,
1081 since CRT_DIR defaults to /usr/lib. Suggested by Dan Nicolaescu.
1082
1083 2010-04-24 Eli Zaretskii <eliz@gnu.org>
1084
1085 * xdisp.c (display_line): Use `reseat' instead of `reseat_1', and
1086 use `get_next_display_element' and `set_iterator_to_next' to
1087 advance to the next character, when looking for the character that
1088 begins the next row.
1089
1090 * .gdbinit: Add a "set Fmake_symbol" line to force GDB to load the
1091 definition of "struct Lisp_Symbol".
1092
1093 2010-04-24 Glenn Morris <rgm@gnu.org>
1094
1095 * Makefile.in (CRT_DIR): New variable, set by configure.
1096 * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
1097 Use $CRT_DIR rather than HAVE_LIB64_DIR. (Bug#5655)
1098
1099 2010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
1100
1101 * Makefile.in: Remove C_SWITCH_X_MACHINE, unused.
1102
1103 * s/cygwin.h (LIBS_DEBUG): Remove, unused.
1104
1105 Remove redundant flags.
1106 * s/freebsd.h (C_SWITCH_SYSTEM):
1107 * s/hpux10-20.h (C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
1108 * s/netbsd.h (C_SWITCH_SYSTEM):
1109 * s/openbsd.h (LD_SWITCH_X_DEFAULT): Remove, configure takes care
1110 of these.
1111
1112 Simplify m/intel386.h.
1113 * m/intel386.h (CRT0_DUMMIES): Remove, inline value in the only
1114 user: ecrt0.c.
1115 (SOLARIS2): Remove LOAD_AVE_TYPE, LOAD_AVE_CVT, LIBS_MACHINE, unused.
1116 (USG5_4): Move LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE definitions to
1117 the only user: s/unixware.h.
1118 * ecrt0.c: Remove #ifndef static. Inline CRT0_DUMMIES definition
1119 from m/intel386.h.
1120 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE): Definitions
1121 moved here from m/intel386.h.
1122
1123 * m/mips.h: Remove #if 0 code.
1124
1125 2010-04-23 Eli Zaretskii <eliz@gnu.org>
1126
1127 Fix display of composed characters from L2R scripts in bidi buffers.
1128 * xdisp.c (set_iterator_to_next, next_element_from_composition):
1129 After advancing IT past the composition, resync the bidi iterator
1130 with IT's position. (Bug#5977)
1131
1132 2010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
1133
1134 * Makefile.in (LD_SWITCH_MACHINE_TEMACS): Remove, unused.
1135 (TEMACS_LDFLAGS): Don't use LD_SWITCH_SYSTEM_TEMACS.
1136
1137 2010-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
1138
1139 * gtkutil.c: Include xsettings.h for Ftool_bar_get_system_style.
1140
1141 2010-04-23 Eli Zaretskii <eliz@gnu.org>
1142
1143 Support `display' text properties and overlay strings in bidi buffers.
1144 * xdisp.c (pop_it): When the stack is popped after displaying
1145 from a string, bidi-iterate to exit from the text portion covered
1146 by the `display' property or overlay. (Bug#5988, bug#5920)
1147
1148 2010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
1149
1150 * m/macppc.h (LD_SWITCH_SYSTEM_TEMACS): Remove #undef.
1151 (LD_SWITCH_MACHINE_TEMACS): Remove, configure sets nocombreloc.
1152
1153 * s/netbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure sets nocombreloc.
1154 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove.
1155
1156 Simplify STARTFILES definition.
1157 * s/hpux10-20.h (START_FILES): Explicitly define here instead of
1158 relying on Makefile.in to define it.
1159 * s/cygwin.h (START_FILES): Likewise.
1160 * Makefile.in (STARTFILES): Remove conditional code, not needed anymore.
1161
1162 Clean up Solaris code.
1163 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS, C_SWITCH_X_SYSTEM)
1164 (LIB_MOTIF): Remove, configure takes care of this.
1165 (NOT_USING_MOTIF): Remove, unused.
1166 * xrdb.c: Remove #if 0-ed #include.
1167 (SYSV): Remove conditional for old SysV.
1168 * sysdep.c (closedir): Remove conditional code for Solaris,
1169 Solaris has closedir.
1170
1171 2010-04-22 Jan Djärv <jan.h.d@swipnet.se>
1172
1173 * xsettings.c (read_and_apply_settings): Check if current_font is
1174 NULL before strcmp (Bug#6001).
1175
1176 2010-04-21 Dan Nicolaescu <dann@ics.uci.edu>
1177
1178 Clean up HP-UX files.
1179 * m/hp800.h (NO_REMAP, VIRT_ADDR_VARIES, DATA_SEG_BITS)
1180 (DATA_START, TEXT_START, LOAD_AVE_TYPE, LOAD_AVE_CVT)
1181 (LDAV_SYMBOL, index, rindex): Move definitions only used in HP-UX ...
1182 * s/hpux10-20.h: ... to the only user, here.
1183
1184 2010-04-21 Eli Zaretskii <eliz@gnu.org>
1185
1186 * bidi.c (bidi_find_paragraph_start, bidi_at_paragraph_end): Don't
1187 use buffer-local values of paragraph-start and paragraph-separate.
1188 <paragraph_start_re, paragraph_separate_re>: Rename from
1189 fallback_paragraph_start_re and fallback_paragraph_separate_re.
1190 (Bug#5992)
1191
1192 2010-04-21 Jan Djärv <jan.h.d@swipnet.se>
1193
1194 * xsettings.c: Qmonospace_font_name, Qtool_bar_style and
1195 current_tool_bar_style are new.
1196 (store_config_changed_event): Rename from store_font_changed_event.
1197 (XSETTINGS_TOOL_BAR_STYLE): New define.
1198 (SEEN_FONT, SEEN_TB_STYLE): New enum values.
1199 (struct xsettings): Add font and tb_style, set xft stuff inside #ifdef
1200 HAVE_XFT.
1201 (something_changedCB): store_font_changed_event is now
1202 store_config_changed_event
1203 (parse_settings): Rename from parse_xft_settings. Read
1204 non-xft xsettings outside #ifdef HAVE_XFT.
1205 (read_settings): Renamed from read_xft_settings.
1206 (apply_xft_settings): Take current settings as parameter. Do not
1207 call read_(xft)_settings.
1208 (read_and_apply_settings): New function.
1209 (xft_settings_event): Do non-xft stuff out of HAVE_XFT. Call
1210 read_and_apply_settings if there are settings to be read.
1211 (init_xsettings): Renamed from init_xfd_settings.
1212 Call read_and_apply_settings unconditionally.
1213 (xsettings_initialize): Call init_xsettings.
1214 (Ftool_bar_get_system_style): New function.
1215 (syms_of_xsettings): Define Qmonospace_font_name and
1216 Qtool_bar_style. Initialize current_tool_bar_style to nil.
1217 defsubr Stool_bar_get_system_style. Fprovide on
1218 dynamic-setting.
1219 Move misplaced HAVE_GCONF
1220
1221 * xsettings.h (Ftool_bar_get_system_style): Declare.
1222
1223 * xdisp.c: Vtool_bar_style, tool_bar_max_label_size,
1224 Qtext, Qboth, Qboth_horiz are new.
1225 (syms_of_xdisp): Intern Qtext, Qboth, Qboth_horiz, DEFVAR
1226 Vtool_bar_style, tool_bar_max_label_size.
1227
1228 * lisp.h: Extern declare Qtext, Qboth, Qboth_horiz.
1229
1230 * keyboard.c: QClabel is new.
1231 (parse_tool_bar_item): Take out QClabel from tool bar items.
1232 Try to construct a label if ther is no QClabel.
1233 (syms_of_keyboard): Intern :label as QClabel.
1234
1235 * dispextern.h (tool_bar_item_idx): TOOL_BAR_ITEM_LABEL is new.
1236 (Vtool_bar_style, tool_bar_max_label_size, DEFAULT_TOOL_BAR_LABEL_SIZE):
1237 New.
1238
1239 * Makefile.in (SOME_MACHINE_LISP): font-setting.el renamed to
1240 dynamic-setting.el.
1241
1242 * gtkutil.c (xg_tool_bar_menu_proxy): Handle label in tool bar item.
1243 (xg_make_tool_item, xg_show_toolbar_item): New function.
1244 (update_frame_tool_bar): Take label from TOOL_BAR_ITEM_LABEL.
1245 Call xg_make_tool_item to make a tool bar item.
1246 Call xg_show_toolbar_item. Use wtoolbar instead of x->toolbar_widget.
1247
1248 * xterm.c (x_draw_image_relief): Take Vtool_bar_button_margin
1249 into account for toolbars.
1250
1251 2010-04-21 Jan Djärv <jan.h.d@swipnet.se>
1252
1253 * data.c (make_blv): Declarations before code (Bug#5993).
1254
1255 2010-04-21 Glenn Morris <rgm@gnu.org>
1256
1257 * Makefile.in (DBUS_OBJ, GTK_OBJ, XMENU_OBJ, XOBJ):
1258 Define using autoconf, not cpp.
1259 (LIBXSM): New variable, set by autoconf.
1260 (LIBXT): Use $LIBXSM.
1261
1262 2010-04-21 Dan Nicolaescu <local_user@dannlt>
1263
1264 Remove NOMULTIPLEJOBS, unused.
1265 * s/template.h (NOMULTIPLEJOBS):
1266 * s/msdos.h (NOMULTIPLEJOBS): Remove, unused.
1267
1268 Simplify LD_SWITCH_SYSTEM_TEMACS usage.
1269 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS):
1270 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure
1271 detects -znocombreloc and passes it to the linker
1272 * s/hpux10-20.h (LD_SWITCH_SYSTEM_TEMACS): Remove, empty.
1273
1274 2010-04-21 Glenn Morris <rgm@gnu.org>
1275
1276 * Makefile.in (LIBSELINUX_LIBS): Move out of #ifdef.
1277
1278 2010-04-21 Karel Klíč <kklic@redhat.com>
1279
1280 * Makefile.in (LIBSELINUX_LIBS): New.
1281 (LIBES): Add $LIBSELINUX_LIBS.
1282 * eval.c, lisp.h (call7): New function.
1283 * fileio.c [HAVE_LIBSELINUX]: Include selinux headers.
1284 (Ffile_selinux_context, Fset_file_selinux_context):
1285 New functions.
1286 (Fcopy_file): New parameter preserve-selinux-context.
1287 (Frename_file): Preserve selinux context when renaming by copy-file.
1288
1289 2010-04-21 Juanma Barranquero <lekktu@gmail.com>
1290 Eli Zaretskii <eliz@gnu.org>
1291
1292 Don't depend on cm.c or termcap.c on Windows, use stubs.
1293 * makefile.w32-in (OBJ1): Remove cm.$(O) and termcap.$(O).
1294 ($(BLD)/cm.$(O), $(BLD)/termcap.$(O)): Remove.
1295 * w32console.c (current_tty, cost): New vars; lifted from cm.c.
1296 (evalcost, cmputc, cmcheckmagic, cmcostinit, cmgoto, Wcm_clear)
1297 (sys_tputs, sys_tgetstr): New stubs.
1298 * s/ms-w32.h (chcheckmagic, cmcostinit, cmgoto, cmputc, Wcm_clear)
1299 (tputs, tgetstr): New; define to sys_*.
1300
1301 2010-04-20 Juanma Barranquero <lekktu@gmail.com>
1302
1303 * buffer.c (syms_of_buffer) <bidi-display-reordering>: Doc fix.
1304
1305 2010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
1306
1307 * data.c (Fmake_variable_buffer_local, Fmake_local_variable):
1308 Just signal a warning rather than an error when inside a let.
1309 (Fmake_variable_frame_local): Add the same test.
1310
1311 * font.c (syms_of_font): Make the style table vars read-only.
1312
1313 * buffer.h (struct buffer): Remove unused var `direction_reversed'.
1314 * buffer.c (init_buffer_once, syms_of_buffer): Remove its initialization.
1315
1316 * bidi.c (bidi_initialize): Simplify fallback_paragraph_*_re init.
1317
1318 2010-04-20 Eli Zaretskii <eliz@gnu.org>
1319
1320 Fix R2L paragraph display on TTY.
1321
1322 * xdisp.c (unproduce_glyphs): New function.
1323 (display_line): Use it when produced glyphs are discarded from R2L
1324 glyph rows.
1325 (append_composite_glyph): In R2L rows, prepend the glyph rather
1326 than appending it.
1327
1328 * term.c (append_composite_glyph): In R2L rows, prepend the glyph
1329 rather than append it. Set up the resolved_level and bidi_type
1330 attributes of the appended glyph.
1331 (produce_special_glyphs): Mirror the backslash continuation
1332 character in R2L lines.
1333
1334 Implement display of R2L paragraphs in GUI sessions.
1335
1336 * xdisp.c [HAVE_WINDOW_SYSTEM]: Add prototype for
1337 append_stretch_glyph.
1338 (set_cursor_from_row) <cursor_x>: Remove unused variable. Fix
1339 off-by-one error in computing x at end of text in the row.
1340 (append_stretch_glyph): In reversed row, prepend the glyph rather
1341 than append it. Set resolved_level and bidi_type of the glyph.
1342 (extend_face_to_end_of_line): If the row is reversed, prepend a
1343 stretch glyph whose width is such that the rightmost glyph will be
1344 drawn at the right margin of the window. Fix off-by-one error on
1345 TTY frames in testing whether a line needs face extension. Fix
1346 face extension at ZV. If this is the last glyph row, use
1347 DEFAULT_FACE_ID, to avoid painting the rest of the window with the
1348 region face.
1349 (set_cursor_from_row, display_line): Use
1350 MATRIX_ROW_CONTINUATION_LINE_P instead of testing value of
1351 row->continuation_lines_width.
1352 (next_element_from_buffer): Don't call bidi_paragraph_init if we
1353 are at ZV. Fixes a crash when reseated to ZV by
1354 try_window_reusing_current_matrix.
1355 (display_and_set_cursor, erase_phys_cursor): Handle negative HPOS,
1356 which happens with R2L glyph rows. Fixes a crash when inserting a
1357 character at end of an R2L line.
1358 (set_cursor_from_row): Don't be fooled by truncated rows: don't
1359 treat them as having zero-width characters. Improve comments.
1360 Don't reverse pos_before and pos_after for reversed glyph rows.
1361 Set cursor.x to negative value when the cursor might be on the
1362 left fringe.
1363 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): For R2L lines, consider the
1364 left fringe, not the right one.
1365 (notice_overwritten_cursor, draw_phys_cursor_glyph)
1366 (erase_phys_cursor): For reversed cursor_row, support cursor on
1367 the left fringe.
1368
1369 * fringe.c (update_window_fringes): For R2L rows, swap the bitmaps
1370 of continuation indicators on the fringes.
1371 (draw_fringe_bitmap): For reversed glyph rows, allow cursor on the
1372 left fringe.
1373
1374 * w32term.c (w32_draw_window_cursor): For reversed glyph rows,
1375 draw cursor on the left fringe.
1376
1377 * xterm.c (x_draw_window_cursor): For reversed glyph rows, draw
1378 cursor on the left fringe.
1379
1380 * dispnew.c (update_text_area): Handle reversed desired rows when
1381 the cursor is on the left fringe.
1382 (set_window_cursor_after_update): Limit cursor's hpos by -1 from
1383 below, not by 0, for when the cursor is on the left fringe.
1384
1385 2010-04-20 Jan Djärv <jan.h.d@swipnet.se>
1386
1387 * gtkutil.c (xg_event_is_for_scrollbar): Check if grabbed
1388 widget is a scrollbar.
1389
1390 2010-04-20 Kenichi Handa <handa@m17n.org>
1391
1392 * charset.c (char_charset): Consider Vcharset_non_preferred_head
1393 only when the arg CHARSET_LIST is nil.
1394
1395 2010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
1396
1397 Make variable forwarding explicit rather the using special values.
1398 Basically, this makes the structure of buffer-local values and object
1399 forwarding explicit in the type of Lisp_Symbols rather than use
1400 special Lisp_Objects for that. This tends to lead to slightly more
1401 verbose code, but is more C-like, simpler, and makes it easier to make
1402 sure we handled all cases, among other things by letting the compiler
1403 help us check it.
1404 * lisp.h (enum Lisp_Misc_Type, union Lisp_Misc):
1405 Removing forwarding objects.
1406 (enum Lisp_Fwd_Type, enum symbol_redirect, union Lisp_Fwd): New types.
1407 (struct Lisp_Symbol): Make the various forms of variable-forwarding
1408 explicit rather than hiding them inside Lisp_Object "values".
1409 (XFWDTYPE): New macro.
1410 (XINTFWD, XBOOLFWD, XOBJFWD, XKBOARD_OBJFWD): Redefine.
1411 (XBUFFER_LOCAL_VALUE): Remove.
1412 (SYMBOL_VAL, SYMBOL_ALIAS, SYMBOL_BLV, SYMBOL_FWD, SET_SYMBOL_VAL)
1413 (SET_SYMBOL_ALIAS, SET_SYMBOL_BLV, SET_SYMBOL_FWD): New macros.
1414 (SYMBOL_VALUE, SET_SYMBOL_VALUE): Remove.
1415 (struct Lisp_Intfwd, struct Lisp_Boolfwd, struct Lisp_Objfwd)
1416 (struct Lisp_Buffer_Objfwd, struct Lisp_Kboard_Objfwd):
1417 Remove the Lisp_Misc_* header.
1418 (struct Lisp_Buffer_Local_Value): Redefine.
1419 (BLV_FOUND, SET_BLV_FOUND, BLV_VALUE, SET_BLV_VALUE): New macros.
1420 (struct Lisp_Misc_Any): Add filler to get the right size.
1421 (struct Lisp_Free): Use struct Lisp_Misc_Any rather than struct
1422 Lisp_Intfwd.
1423 (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL, DEFVAR_INT)
1424 (DEFVAR_KBOARD): Allocate a forwarding object.
1425 * data.c (do_blv_forwarding, store_blv_forwarding): New macros.
1426 (let_shadows_global_binding_p): New function.
1427 (union Lisp_Val_Fwd): New type.
1428 (make_blv): New function.
1429 (swap_in_symval_forwarding, indirect_variable, do_symval_forwarding)
1430 (store_symval_forwarding, swap_in_global_binding, Fboundp)
1431 (swap_in_symval_forwarding, find_symbol_value, Fset)
1432 (let_shadows_buffer_binding_p, set_internal, default_value)
1433 (Fset_default, Fmake_variable_buffer_local, Fmake_local_variable)
1434 (Fkill_local_variable, Fmake_variable_frame_local)
1435 (Flocal_variable_p, Flocal_variable_if_set_p)
1436 (Fvariable_binding_locus):
1437 * xdisp.c (select_frame_for_redisplay):
1438 * lread.c (Fintern, Funintern, init_obarray, defvar_int)
1439 (defvar_bool, defvar_lisp_nopro, defvar_lisp, defvar_kboard):
1440 * frame.c (store_frame_param):
1441 * eval.c (Fdefvaralias, Fuser_variable_p, specbind, unbind_to):
1442 * bytecode.c (Fbyte_code) <varref, varset>: Adapt to the new symbol
1443 value structure.
1444 * buffer.c (PER_BUFFER_SYMBOL): Move from buffer.h.
1445 (clone_per_buffer_values): Only adjust markers into the current buffer.
1446 (reset_buffer_local_variables): PER_BUFFER_IDX is never -2.
1447 (Fbuffer_local_value, set_buffer_internal_1)
1448 (swap_out_buffer_local_variables):
1449 Adapt to the new symbol value structure.
1450 (DEFVAR_PER_BUFFER): Allocate a Lisp_Buffer_Objfwd object.
1451 (defvar_per_buffer): Take a new arg for the fwd object.
1452 (buffer_lisp_local_variables): Return a proper alist (different fix
1453 for bug#4138).
1454 * alloc.c (Fmake_symbol): Use SET_SYMBOL_VAL.
1455 (Fgarbage_collect): Don't handle buffer_defaults specially.
1456 (mark_object): Handle new symbol value structure rather than the old
1457 special Lisp_Misc_* objects.
1458 (gc_sweep) <symbols>: Free also the buffer-local-value objects.
1459 * term.c (set_tty_color_mode):
1460 * bidi.c (bidi_initialize): Don't access the ->value field directly.
1461 * buffer.h (PER_BUFFER_VAR_OFFSET): Don't bother with
1462 a buffer_local_flags.
1463 * print.c (print_object): Get rid of impossible forwarding objects.
1464
1465 2010-04-19 Eli Zaretskii <eliz@gnu.org>
1466
1467 * bidi.c (bidi_get_type, bidi_get_category)
1468 (bidi_at_paragraph_end, bidi_resolve_weak, bidi_resolve_neutral)
1469 (bidi_type_of_next_char, bidi_level_of_next_char):
1470 Declare static. Use `INLINE' rather than `inline'.
1471
1472 2010-04-19 Juanma Barranquero <lekktu@gmail.com>
1473
1474 * dired.c (Ffile_attributes): Fix typo in docstring.
1475
1476 2010-04-19 Adrian Robert <Adrian.B.Robert@gmail.com>
1477
1478 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
1479 NSInteger (Bug#5811).
1480
1481 2010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1482
1483 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
1484 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
1485
1486 2010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1487
1488 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
1489
1490 2010-04-19 Chong Yidong <cyd@stupidchicken.com>
1491
1492 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
1493 terminal frames (Bug#5837).
1494
1495 2010-04-19 Eli Zaretskii <eliz@gnu.org>
1496
1497 * .gdbinit (xsubchartable): New command.
1498
1499 2010-04-19 Eli Zaretskii <eliz@gnu.org>
1500
1501 * xdisp.c (display_line): Don't write beyond the last glyph row in
1502 the desired matrix. Fixes a crash in "emacs -nw" (bug#5972), see
1503 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00075.html
1504 and
1505 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00213.html
1506
1507 2010-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
1508
1509 * alloc.c (Fpurecopy): Hash-cons if requested.
1510 (syms_of_alloc): Update purify-flag docstring.
1511
1512 2010-04-18 Jan Djärv <jan.h.d@swipnet.se>
1513
1514 * gtkutil.c (xg_set_geometry): Set size in geometry string also.
1515 (x_wm_set_size_hint): Set USER_POS in hint_flags (Bug#5968).
1516
1517 2010-04-17 Eli Zaretskii <eliz@gnu.org>
1518
1519 Fix a crash when an NSM character is inserted at BEGV.
1520
1521 * bidi.c (bidi_init_it): Fix initialization of bidi_it->prev.
1522 (bidi_resolve_weak): Don't use prev.type_after_w1 if it is
1523 NEUTRAL_B or UNKNOWN_BT.
1524
1525 2010-04-16 Eli Zaretskii <eliz@gnu.org>
1526
1527 * xdisp.c (set_cursor_from_row): Don't consider possibility of
1528 other rows with cursor unless they are different from this row and
1529 this row is part of a continued line. (Bug#5943)
1530
1531 2010-04-16 Dan Nicolaescu <dann@ics.uci.edu>
1532
1533 * s/freebsd.h: Restore osreldate.h include.
1534 Suggested by Naohiro Aota.
1535
1536 2010-04-16 Jan Djärv <jan.h.d@swipnet.se>
1537
1538 * xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used.
1539
1540 2010-04-16 Ken Brown <kbrown@cornell.edu> (tiny change)
1541
1542 * s/cygwin.h: Avoid linking against static libgcc.
1543
1544 2010-04-15 Juri Linkov <juri@jurta.org>
1545
1546 * window.c: Add Qscroll_command.
1547 Remove Vscroll_preserve_screen_position_commands.
1548 (window_scroll_pixel_based, window_scroll_line_based): Check the
1549 `scroll-command' property on the last command instead of searching
1550 the last command in Vscroll_preserve_screen_position_commands.
1551 (syms_of_window): Initialize and staticpro `Qscroll_command'.
1552 Put Qscroll_command property on Qscroll_up and Qscroll_down.
1553 (scroll-preserve-screen-position): Doc fix.
1554 (Vscroll_preserve_screen_position_commands): Remove variable.
1555
1556 2010-04-15 Dan Nicolaescu <dann@ics.uci.edu>
1557
1558 * xdisp.c (message): Do not use NO_ARG_ARRAY.
1559
1560 2010-04-14 Dan Nicolaescu <dann@ics.uci.edu>
1561
1562 Reduce cpp use in Makefile.in.
1563 * Makefile.in (DBUS_CFLAGS, DBUS_LIBS, GCONF_CFLAGS, GCONF_LIBS)
1564 (LIBSOUND, CFLAGS_SOUND, RSVG_LIBS, RSVG_CFLAGS, INTERVALS_H)
1565 (GETLOADAVG_LIBS, RUN_TEMACS): Move to the autoconf section.
1566 (ORDINARY_LINK): Remove, defined in src/s/gnu.h.
1567 (CRT0_COMPILE): Remove, inline it in the only user.
1568
1569 2010-04-14 Juri Linkov <juri@jurta.org>
1570
1571 * window.c (keys_of_window): Rebind `C-v' from `scroll-up' to
1572 `scroll-up-command' and `M-v' from `scroll-down' to
1573 `scroll-down-command'.
1574
1575 2010-04-14 Juri Linkov <juri@jurta.org>
1576
1577 * window.c (Vscroll_preserve_screen_position_commands): New variable
1578 with the default value as the list of Qscroll_down and Qscroll_up.
1579 (window_scroll_pixel_based, window_scroll_line_based): Search the
1580 last command in the list Vscroll_preserve_screen_position_commands
1581 instead of comparing with Qscroll_up and Qscroll_down.
1582
1583 2010-04-13 Jan Djärv <jan.h.d@swipnet.se>
1584
1585 * gtkutil.c (xg_set_geometry): Set geometry for PPosition also.
1586 (x_wm_set_size_hint): Dont set position flags, gtk_window_parse_geometry
1587 does that.
1588
1589 * xfns.c (Fx_create_frame, x_create_tip_frame): Set default border width
1590 to zero.
1591
1592 2010-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
1593
1594 * term.c (init_tty): Move common text outside of #ifdef TERMINFO.
1595
1596 Try to solve the problem of spurious EOF chars in long lines of text
1597 sent to interactive subprocesses.
1598 * sysdep.c (child_setup_tty): Do not enable ICANON any more.
1599 (system_process_attributes): Remove unused var `ttotal'.
1600 * process.c (send_process): Don't bother breaking long line with EOF
1601 chars when talking to ttys any more.
1602 (wait_reading_process_output): Output a warning when called in such
1603 a way that it could block without being interruptible.
1604
1605 Try to detect file modification within the same second.
1606 * buffer.h (struct buffer): New field modtime_size.
1607 * buffer.c (reset_buffer): Initialize it.
1608 * fileio.c (Finsert_file_contents, Fwrite_region): Set it.
1609 (Fverify_visited_file_modtime): Check it.
1610 (Fclear_visited_file_modtime, Fset_visited_file_modtime): Clear it.
1611 (Fset_visited_file_modtime): Set (or clear) it.
1612
1613 2010-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
1614
1615 * process.c (status_notify): Remove unused var `ro'.
1616
1617 2010-04-12 Jan Djärv <jan.h.d@swipnet.se>
1618
1619 * xfns.c (select_visual): Don't call error if XGetVisualInfo returns
1620 more than one visual (Bug#5938).
1621
1622 2010-04-12 Dan Nicolaescu <dann@ics.uci.edu>
1623
1624 * Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE):
1625 Undefine.
1626
1627 2010-04-11 Dan Nicolaescu <dann@ics.uci.edu>
1628
1629 Remove C_SWITCH_SYSTEM_TEMACS.
1630 * s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove.
1631 (malloc, realloc, free): Use emacs, not temacs for conditional
1632 definition.
1633
1634 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove.
1635 (ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.
1636
1637 Use autoconf, not cpp for some variables.
1638 * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
1639 (C_SWITCH_X_SITE): Define using autoconf, not cpp.
1640 (ALL_CFLAGS): Use them as make variables.
1641 (really-lwlib, really-oldXMenu): Do not pass them.
1642
1643 2010-04-11 Jan Djärv <jan.h.d@swipnet.se>
1644
1645 * xmenu.c (apply_systemfont_to_dialog): New.
1646 (create_and_show_dialog): Call apply_systemfont_to_dialog if HAVE_XFT.
1647
1648 2010-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
1649
1650 * process.c (exec_sentinel): Preserve current-buffer.
1651
1652 * process.c (read_process_output): Move the save-current-buffer to
1653 apply to both the filter and the non-filter branches.
1654
1655 2010-04-10 Dan Nicolaescu <dann@ics.uci.edu>
1656
1657 * s/msdos.h (UNEXEC): New definition.
1658
1659 2010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1660
1661 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
1662 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
1663
1664 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
1665 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
1666 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
1667 TRY_WINDOW_CHECK_MARGINS.
1668
1669 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
1670 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423). Subtract last glyph's
1671 width only when it is for padding.
1672
1673 2010-04-09 Jan Djärv <jan.h.d@swipnet.se>
1674
1675 * xfns.c (Fx_show_tip): Call try_window in a loop until
1676 fonts_changed_p is zero (Bug#2423).
1677
1678 2010-04-08 Eli Zaretskii <eliz@gnu.org>
1679
1680 * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
1681 the end of TEXT_AREA. (Bug#5856)
1682
1683 2010-04-08 Jan Djärv <jan.h.d@swipnet.se>
1684
1685 * xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of
1686 HAVE_GCONF.
1687
1688 2010-04-08 Eli Zaretskii <eliz@gnu.org>
1689
1690 * bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
1691 prev.orig_type, for resolving type of NSM. (Bug#5858)
1692
1693 2010-04-08 Jan Djärv <jan.h.d@swipnet.se>
1694
1695 * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
1696 (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
1697 in current_font.
1698 (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
1699 (Ffont_get_system_normal_font, xsettings_get_system_normal_font):
1700 New functions.
1701 (syms_of_xsettings): Initialize current_font.
1702 defsubr Sfont_get_system_normal_font.
1703
1704 * xsettings.h (Ffont_get_system_normal_font,
1705 xsettings_get_system_normal_font): Declare.
1706
1707 * xfns.c (extern xlwmenu_default_font): Remove.
1708 (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
1709 to xlwmenu.c.
1710
1711 * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
1712 menu items in UTF-8.
1713
1714 * xmenu.c: include xsettings.h and xlwmenu.h if USE_LUCID.
1715 (apply_systemfont_to_menu): New function.
1716 (set_frame_menubar, create_and_show_popup_menu): Call
1717 apply_systemfont_to_menu.
1718
1719 2010-04-07 Jan Djärv <jan.h.d@swipnet.se>
1720
1721 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
1722 FRAME_LINE_TO_PIXEL_Y.
1723
1724 * xterm.c (x_set_window_size_1): Don't add border_width/height to
1725 pixelwidth/height.
1726
1727 2010-04-07 Dan Nicolaescu <dann@ics.uci.edu>
1728
1729 Simplify code for HP machines.
1730 * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
1731 for GNU_LINUX, not needed.
1732 (UNEXEC, NEED_BSDTTY): Move definitions...
1733 * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
1734
1735 * m/iris4d.h (UNEXEC): Move definition ...
1736 * s/irix6-5.h (UNEXEC): ... here.
1737
1738 2010-04-04 Jan Djärv <jan.h.d@swipnet.se>
1739
1740 * xfns.c (set_machine_and_pid_properties): New function.
1741 (Fx_create_frame): Call set_machine_and_pid_properties.
1742
1743 2010-04-03 Eli Zaretskii <eliz@gnu.org>
1744
1745 * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char): Check
1746 bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
1747 BIDI_EOB. Fixes infloop with vertical cursor motion at ZV.
1748
1749 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
1750 in this function. (Bug#5703)
1751
1752 2010-04-03 Chong Yidong <cyd@stupidchicken.com>
1753
1754 * nsterm.h: Fix last change.
1755
1756 2010-04-03 Dan Nicolaescu <dann@ics.uci.edu>
1757
1758 * m/intel386.h (NO_REMAP): Move definition ...
1759 * s/msdos.h (NO_REMAP): ... here.
1760
1761 * m/vax.h (CRT0_DUMMIES): Remove, unused.
1762
1763 * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
1764 used on those platforms.
1765
1766 2010-04-02 Dan Nicolaescu <dann@ics.uci.edu>
1767
1768 Remove extern errno declarations.
1769 * xterm.c:
1770 * xrdb.c:
1771 * w32term.c:
1772 * unexec.c:
1773 * unexaix.c:
1774 * sysdep.c:
1775 * process.c:
1776 * lread.c:
1777 * keyboard.c:
1778 * floatfns.c:
1779 * filelock.c:
1780 * fileio.c:
1781 * emacs.c (main):
1782 * ecrt0.c:
1783 * dispnew.c:
1784 * callproc.c:
1785 * buffer.c: Remove errno extern declarations.
1786 * s/netbsd.h (NEED_ERRNO): Remove.
1787
1788 2010-04-01 Dan Nicolaescu <dann@ics.uci.edu>
1789
1790 Remove all uses of LIBX11_SYSTEM.
1791 * Makefile.in (LIBX11_SYSTEM): Remove.
1792 * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
1793 instead.
1794
1795 2010-04-01 Eli Zaretskii <eliz@gnu.org>
1796
1797 Remove support for DJGPP v1.x (bug#5813).
1798
1799 * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
1800 * s/msdos.h:
1801 * unexec.c (make_hdr, copy_text_and_data):
1802 * sysdep.c (wait_for_termination, sys_subshell):
1803 * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
1804 (IT_set_terminal_modes, __write, _rename, gethostname)
1805 (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
1806 (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
1807 the value of __DJGPP__.
1808 (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
1809 compatibility code.
1810 * lread.c:
1811 * gmalloc.c (memalign):
1812 * fileio.c (Fcopy_file, check_executable, Ffile_modes):
1813 * emacs.c (main):
1814 * dosfns.c (init_dosfns):
1815 * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
1816
1817 2010-04-01 Eli Zaretskii <eliz@gnu.org>
1818
1819 * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
1820 string with `cursor' property comes from an `after-string'
1821 overlay. (Bug#5816)
1822
1823 2010-04-01 Glenn Morris <rgm@gnu.org>
1824
1825 * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
1826 Define as Makefile variables.
1827 (LIBX): Use above variables rather than directly using autoconf.
1828
1829 2010-03-31 Dan Nicolaescu <dann@ics.uci.edu>
1830
1831 Clean up BSD_SYSTEM use.
1832 * xterm.c:
1833 * process.c:
1834 * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
1835 for including <sys/ioctl.h>.
1836 * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
1837 code is only used for MSDOS.
1838
1839 2010-03-31 Juri Linkov <juri@jurta.org>
1840
1841 * image.c: Add `Qextension_data'.
1842 (syms_of_image): Initialize and staticpro `Qextension_data'.
1843 (Fimage_metadata): Rename from `Fimage_extension_data'.
1844 (gif_load): Put GIF extension data to the property
1845 `Qextension_data'.
1846
1847 2010-04-05 Chong Yidong <cyd@stupidchicken.com>
1848
1849 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
1850 terminal frames (Bug#5837).
1851
1852 2010-03-31 Chong Yidong <cyd@stupidchicken.com>
1853
1854 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
1855 * nsterm.h: Fix prototype.
1856
1857 2010-03-31 Eli Zaretskii <eliz@gnu.org>
1858
1859 * xdisp.c (highlight_trailing_whitespace): Support highlight of
1860 trailing whitespace in right-to-left rows.
1861
1862 2010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
1863
1864 Get rid of the direct_output optimizations.
1865 * keyboard.c (nonundocount): Remove extern declaration.
1866 (command_loop_1): Remove brittle optimisation for cheap and
1867 common operations.
1868 * xdisp.c (redisplay_internal): Don't bother checking
1869 redisplay_performed_directly_p any more.
1870 * sysdep.c (init_sys_modes): Don't call direct_output_forward_char
1871 any more.
1872 * dispnew.c (redisplay_performed_directly_p)
1873 (direct_output_for_insert, direct_output_forward_char):
1874 * dispextern.h (redisplay_performed_directly_p)
1875 (direct_output_for_insert, direct_output_forward_char): Remove.
1876 * cmds.c (nonundocount): Make it static.
1877
1878 2010-03-31 Bernhard Herzog <bh@intevation.de> (tiny change)
1879
1880 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
1881
1882 2010-03-31 Jan Djärv <jan.h.d@swipnet.se>
1883
1884 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
1885 invisible (Bug#5766).
1886
1887 2010-03-31 Adrian Robert <adrian.b.robert@gmail.com>
1888
1889 * xdisp.c (x_consider_frame_title, update_window_cursor):
1890 Remove HAVE_NS conditionals.
1891 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
1892
1893 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
1894 filename for the title.
1895 (ns_set_doc_edited): Do nothing if the selected window is a
1896 minibuffer window.
1897
1898 * nsterm.h: Add prototypes for ns_set_name_as_filename and
1899 ns_set_doc_edited.
1900
1901 * nsterm.m: Remove unneeded prototype.
1902
1903 2010-03-31 Glenn Morris <rgm@gnu.org>
1904
1905 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
1906 in the DOC file. (Bug#5336)
1907
1908 2010-03-31 Chong Yidong <cyd@stupidchicken.com>
1909
1910 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
1911
1912 2010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
1913
1914 * window.c (keys_of_window): Remove redundant/overridden bindings.
1915
1916 2010-03-30 Eli Zaretskii <eliz@gnu.org>
1917
1918 * xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
1919 Restore original behavior when the iterator is not bidi_p.
1920
1921 2010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
1922
1923 * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
1924
1925 2010-03-30 Eli Zaretskii <eliz@gnu.org>
1926
1927 * bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
1928 are outside the range of cached character positions.
1929
1930 2010-03-30 Juanma Barranquero <lekktu@gmail.com>
1931
1932 * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
1933
1934 2010-03-30 Eli Zaretskii <eliz@gnu.org>
1935
1936 Initial support for bidirectional editing.
1937
1938 * Makefile.in (obj): Include bidi.o.
1939 (bidi.o): New target.
1940
1941 * makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
1942 ($(BLD)/bidi.$(O)): New target.
1943
1944 * bidi.c: New file.
1945
1946 * buffer.h (struct buffer): New members bidi_display_reordering
1947 and bidi_paragraph_direction.
1948
1949 * buffer.c (init_buffer_once): Initialize bidi_display_reordering
1950 and bidi_paragraph_direction.
1951 (syms_of_buffer): Declare Lisp variables bidi-display-reordering
1952 and bidi-paragraph-direction.
1953 (Fbuffer_swap_text): Swap the values of
1954 bidi_display_reordering and bidi_paragraph_direction.
1955
1956 * dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
1957 (bidi_type_t, bidi_dir_t): New types.
1958 (bidi_saved_info, bidi_stack, bidi_it): New structures.
1959 (struct it): New members bidi_p, bidi_it, paragraph_embedding,
1960 prev_stop, base_level_stop, and eol_pos.
1961 (bidi_init_it, bidi_get_next_char_visually): New prototypes.
1962 (IT_STACK_SIZE): Enlarge to 5.
1963 (struct glyph_row): New member reversed_p.
1964 <string_buffer_position>: Update prototype.
1965 (PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
1966 glyph_row if bidi_it.paragraph_dir == R2L.
1967 (struct glyph): New members resolved_level and bidi_type.
1968
1969 * dispnew.c (direct_output_forward_char): Give up if we need bidi
1970 processing or buffer's direction is right-to-left.
1971 (prepare_desired_row): Preserve the reversed_p flag.
1972 (row_equal_p): Compare the reversed_p attributes as well.
1973
1974 * xdisp.c (init_iterator): Initialize it->bidi_p. Call
1975 bidi_init_it and set it->paragraph_embedding from the current
1976 buffer's value of bidi_paragraph_direction.
1977 (reseat_1): Initialize bidi_it.first_elt.
1978 (set_iterator_to_next, next_element_from_buffer): Use the value of
1979 paragraph_embedding to determine the paragraph direction.
1980 (set_iterator_to_next): Under bidi reordering, call
1981 bidi_get_next_char_visually. Call bidi_paragraph_init if the
1982 new_paragraph flag is set in the bidi iterator.
1983 (next_element_from_buffer): If bidi_it.first_elt is set,
1984 initialize paragraph direction and find the first character to
1985 display in the visual order. If reseated to a middle of a line,
1986 prime the bidi iterator starting at the line's beginning. Handle
1987 the situation where we overstepped stop_charpos due to
1988 non-linearity of the bidi iteration. Likewise for when we back up
1989 beyond the previous stop_charpos. When moving across stop_charpos,
1990 record it in prev_stop.
1991 (display_line): Set row->end and it->start for the next row to the
1992 next character in logical order. Always extend reversed_p rows to
1993 the end of line, even if they end at ZV. Copy the reversed_p flag
1994 to the next glyph row. Keep calling set_cursor_from_row for
1995 bidi-reordered rows even if we already have a possible candidate
1996 for cursor position. Set row_end after all the row's glyphs have
1997 been produced, by looping over the glyphs. Record the position
1998 after EOL in it->eol_pos, and use it to set end_pos of the last
1999 row produced for a continued line.
2000 <Qright_to_left, Qleft_to_right>: New variables.
2001 (syms_of_xdisp): Initialize and staticpro them.
2002 (string_buffer_position_lim): New function.
2003 (string_buffer_position): Most of code moved to
2004 string_buffer_position_lim. Last argument and return value are
2005 now EMACS_INT; all callers changed.
2006 (set_cursor_from_row): Rewritten to support bidirectional text and
2007 reversed glyph rows.
2008 (text_outside_line_unchanged_p, try_window_id): Disable
2009 optimizations if we are reordering bidirectional text and the
2010 paragraph direction can be affected by the change.
2011 (append_glyph, append_composite_glyph)
2012 (produce_image_glyph, append_stretch_glyph): Set the
2013 resolved_level and bidi_type members of each glyph.
2014 (append_glyph): If the glyph row is reversed, prepend the glyph
2015 rather than appending it.
2016 (handle_stop_backwards): New function.
2017 (reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
2018 (reseat): call handle_stop_backwards to recompute prev_stop and
2019 base_level_stop for the new position.
2020 (handle_invisible_prop): Under bidi iteration, skip invisible text
2021 using bidi_get_next_char_visually. If we are `reseat'ed, init the
2022 paragraph direction. Update IT->prev_stop after skipping
2023 invisible text.
2024 (move_it_in_display_line_to): New variables prev_method
2025 and prev_pos. Compare for strict equality in
2026 BUFFER_POS_REACHED_P.
2027 (try_cursor_movement): Examine all the candidate rows that occlude
2028 point, to return the best match. If rows are bidi-reordered
2029 and point moved backwards, back up to the row that is not a
2030 continuation line, and start looking for a suitable row from
2031 there.
2032
2033 * term.c (append_glyph): Reverse glyphs by pre-pending them,
2034 rather than appending, if the glyph_row's reversed_p flag is set.
2035 Set the resolved_level and bidi_type members of each glyph.
2036
2037 * .gdbinit (pbiditype): New command.
2038 (pgx): Use it to display bidi level and type of the glyph.
2039 (pitx): Display some bidi information about the iterator.
2040 (prowlims, pmtxrows): New commands.
2041
2042 2010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
2043
2044 Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
2045 * s/usg5-4.h (LIBS_DEBUG):
2046 * s/irix6-5.h (C_DEBUG_SWITCH):
2047 * s/gnu-linux.h (LIBS_DEBUG):
2048 * s/darwin.h (LIBS_DEBUG):
2049 * s/bsd-common.h (LIBS_DEBUG):
2050 * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
2051 * m/iris4d.h (LIBS_DEBUG):
2052 * m/hp800.h (LIBS_DEBUG): Remove definitions.
2053
2054 * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
2055 (LIBS_DEBUG): Remove definition.
2056
2057 2010-03-27 Chong Yidong <cyd@stupidchicken.com>
2058
2059 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
2060 Windows.
2061
2062 2010-03-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2063
2064 * process.c (Fmake_network_process): Don't call turn_on_atimers around
2065 `connect' (Bug#5723).
2066
2067 2010-03-25 Helmut Eller <eller.helmut@gmail.com>
2068
2069 * process.c (Fmake_network_process): Call `select' for interrupted
2070 `connect' rather than creating new socket (Bug#5173).
2071
2072 2010-03-24 Jan Djärv <jan.h.d@swipnet.se>
2073
2074 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
2075
2076 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
2077
2078 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
2079
2080 2010-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2081
2082 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
2083 XLoadQueryFont.
2084
2085 2010-03-24 Kenichi Handa <handa@m17n.org>
2086
2087 * coding.c (decode_coding_ccl): Fix previous change for the
2088 multibyte case.
2089 (encode_coding_ccl): Don't setup ccl program here. Fix for the
2090 case that the output buffer is fullfilled.
2091 (encode_coding): Setup ccl program here.
2092
2093 2010-03-24 Andreas Politz <politza@fh-trier.de> (tiny change)
2094
2095 * editfns.c (Fformat): Account for string precision when computing
2096 field width (Bug#5710).
2097
2098 2010-03-23 Dan Nicolaescu <dann@ics.uci.edu>
2099
2100 * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
2101
2102 Simplify LIBS_MACHINE definitions.
2103 * m/hp800.h (LIBS_MACHINE): Remove, same as default.
2104 * m/iris4d.h (LIBS_MACHINE): Likewise.
2105 * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
2106 * s/aix4-2.h (LIBS_SYSTEM): ... here.
2107 * s/netbsd.h: Remove commented out code.
2108
2109 2010-03-22 Dan Nicolaescu <dann@ics.uci.edu>
2110
2111 Remove dead code dealing with POSIX_SIGNALS.
2112 * atimer.c (set_alarm): Remove dead code, all USG systems define
2113 POSIX_SIGNALS.
2114 * data.c (arith_error): Likewise.
2115 * keyboard.c (input_available_signal, handle_user_signal)
2116 (interrupt_signal): Likewise.
2117 * process.c (sigchld_handler): Likewise.
2118 (create_process): Remove if 0 code. Remove HPUX conditional when
2119 !defined (POSIX_SIGNALS), it cannot be true.
2120 * syssignal.h: Remove USG5_4 and USG conditionals when
2121 !POSIX_SIGNALS, they cannot be true.
2122
2123 * keyboard.c (Fset_input_interrupt_mode): Remove code depending on
2124 NO_SOCK_SIGIO, not used anymore.
2125
2126 2010-03-21 Dan Nicolaescu <dann@ics.uci.edu>
2127
2128 * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
2129 support vax on BSDs.
2130
2131 * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
2132 * s/aix4-2.h (ORDINARY_LINK): ... here.
2133
2134 2010-03-21 Andreas Schwab <schwab@linux-m68k.org>
2135
2136 * Makefile.in (abs_builddir): Define.
2137 (bootstrap_exe): Use it.
2138 (VPATH): Use $(srcdir) instead of @srcdir@.
2139
2140 2010-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
2141
2142 * Makefile.in (bootstrap_exe): Use an absolute name.
2143
2144 2010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
2145
2146 Remove support for old GNU/Linux using libc version 5.
2147 * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
2148 * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
2149
2150 Consolidate redundant definitions in s/bsd-common.h.
2151 * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
2152 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
2153 (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
2154 doing it in all files that include this one.
2155 * s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
2156 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
2157 (LDAV_SYMBOL, KERNEL_FILE): Remove.
2158 * s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
2159 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
2160 (LDAV_SYMBOL, KERNEL_FILE): Remove.
2161 * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
2162 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
2163 (LDAV_SYMBOL, KERNEL_FILE): Remove.
2164
2165 Consolidate redundant definitions.
2166 * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
2167 it's undefined in all files that include this one.
2168 (POSIX_SIGNALS): Define here instead of doing it in all files that
2169 include this one.
2170 * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
2171 (POSIX_SIGNALS): Do not define.
2172 * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
2173 (POSIX_SIGNALS): Do not define.
2174 * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
2175 (POSIX_SIGNALS): Do not define.
2176
2177 Remove support for old UNIX System V systems.
2178 * s/unixware.h: Add the contents of s/usg-5-4-2.h.
2179 * s/usg-5-4-2.h: Remove.
2180
2181 Remove support for Solaris on PPC and for old versions.
2182 * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
2183 (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
2184 that cancel each other.
2185 * s/sol2-3.h:
2186 * s/sol2-4.h:
2187 * s/sol2-5.h: Remove.
2188 * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
2189 (NO_REMAP): Remove, unused.
2190 (UNEXEC): Move definition ...
2191 * s/aix4-2.h (UNEXEC): ... here.
2192
2193 * s/openbsd.h: Remove support for non-ELF and for systems that do
2194 not support shared libraries.
2195 * s/netbsd.h:
2196 * s/freebsd.h: Likewise.
2197
2198 2010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
2199
2200 Remove non-working support for lynxos 3.0.
2201 * s/lynxos.h: Remove file.
2202
2203 * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
2204 COFF_BSD_SYMBOLS, nothing defines it anymore.
2205
2206 2010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
2207
2208 Remove obsolete uses of HAVE_SHM.
2209 * emacs.c (standard_args):
2210 (Fdump_emacs):
2211 (syms_of_emacs): Remove code depending on HAVE_SHM.
2212
2213 * alloc.c: Remove HAVE_SHM dependent definition.
2214
2215 * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
2216
2217 2010-03-18 Glenn Morris <rgm@gnu.org>
2218
2219 * emacs.c (USAGE4): Hard-code bug address.
2220 (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
2221 (bug_reporting_address): Remove.
2222 (main): Don't call bug_reporting_address.
2223
2224 * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
2225 (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
2226
2227 2010-03-15 Chong Yidong <cyd@stupidchicken.com>
2228
2229 * xfns.c (Fx_create_frame):
2230 * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
2231 on left.
2232
2233 2010-03-13 Andreas Politz <politza@fh-trier.de> (tiny change)
2234
2235 * editfns.c (Fformat): Account for string precision when computing
2236 field width (Bug#5710).
2237
2238 2010-03-12 Chong Yidong <cyd@stupidchicken.com>
2239
2240 * xfns.c (Fx_create_frame): Set default to Qright.
2241
2242 * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
2243 all window systems.
2244
2245 2010-03-12 Eli Zaretskii <eliz@gnu.org>
2246
2247 These changes remove termcap.c from the build on Posix platforms.
2248 * Makefile.in (termcapobj): Move termcap.o from here...
2249 (MSDOS_OBJ): ...to here.
2250 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
2251 now identical to when LIBS_TERMCAP is defined.
2252
2253 * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
2254
2255 * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
2256
2257 * config.in: Regenerated. (See top-level ChangeLog.)
2258
2259 2010-03-10 Chong Yidong <cyd@stupidchicken.com>
2260
2261 * Branch for 23.2.
2262
2263 2010-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
2264
2265 Cleanup setup of gl_state in various parts of the code.
2266 * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
2267 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
2268 * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
2269 (skip_chars):
2270 * regex.c (regex_compile): Use it.
2271 (re_compile_pattern): Don't set gl_state.current_syntax_table since
2272 it's now set in regex_compile when/if we need it.
2273
2274 2010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
2275
2276 Make it possible to C-g in a tight bytecode loop again (bug#5680).
2277 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
2278 (QUIT): Use it to consolidate code and remove redundancy.
2279 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
2280
2281 * regex.c (regex_compile): Setup gl_state as well.
2282
2283 * syntax.c (skip_chars): Setup gl_state (bug#3823).
2284 (in_classes): Use CONSP before XCAR/XCDR.
2285
2286 2010-03-03 Chong Yidong <cyd@stupidchicken.com>
2287
2288 * keymap.c (Fwhere_is_internal): Use Fequal to compare
2289 definitions, so that keyboard macros are correctly handled
2290 (Bug#5481).
2291
2292 2010-03-02 Eli Zaretskii <eliz@gnu.org>
2293
2294 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
2295 text that could be relocated inside the call to emacs_mule_char.
2296 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
2297 (CODING_DECODE_CHAR): Add a comment describing its purpose.
2298
2299 2010-03-02 Kenichi Handa <handa@m17n.org>
2300
2301 * character.c (parse_str_as_multibyte): Fix handling of the
2302 multibyte form of raw-bytes.
2303 (str_as_multibyte): Likewise.
2304
2305 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
2306 form of raw-bytes.
2307
2308 2010-02-28 Chong Yidong <cyd@stupidchicken.com>
2309
2310 * charset.c (load_charset_map_from_file)
2311 (load_charset_map_from_vector): Zero out allocated
2312 charset_map_entries before using them.
2313
2314 2010-02-27 Andreas Schwab <schwab@linux-m68k.org>
2315
2316 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
2317
2318 2010-02-27 Chong Yidong <cyd@stupidchicken.com>
2319
2320 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
2321 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
2322
2323 2010-02-26 Kenichi Handa <handa@m17n.org>
2324
2325 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
2326
2327 * xdisp.c (reseat_to_string): Fix previous change.
2328
2329 2010-02-26 David Reitter <david.reitter@gmail.com>
2330
2331 * nsfont.m (nsfont_draw): ns_antialias_text should be a
2332 Lisp_Object (Bug#4736).
2333
2334 2010-02-25 Kenichi Handa <handa@m17n.org>
2335
2336 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
2337
2338 2010-02-24 Jan Djärv <jan.h.d@swipnet.se>
2339
2340 * xterm.c (XTflash): Move declarations before statements.
2341
2342 * gtkutil.c (xg_get_gdk_display): Remove (unused).
2343 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
2344 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
2345 (xg_create_tool_bar): Remove unused variables.
2346 (x_wm_set_size_hint): Move declarations before statements.
2347 (xg_create_frame_widgets): Remove variable grav.
2348
2349 2010-02-21 Chong Yidong <cyd@stupidchicken.com>
2350
2351 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
2352
2353 2010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
2354
2355 * term.c (fatal): Add a final \n if needed (bug#5596).
2356
2357 2010-02-18 Chong Yidong <cyd@stupidchicken.com>
2358
2359 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
2360
2361 2010-02-18 Glenn Morris <rgm@gnu.org>
2362
2363 * callint.c (Finteractive): Doc fix.
2364
2365 2010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
2366
2367 * coding.c (record_conversion_result):
2368 Handle CODING_RESULT_INSUFFICIENT_DST.
2369 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
2370 memory allocation error.
2371
2372 2010-02-17 Kenichi Handa <handa@m17n.org>
2373
2374 * coding.c (decode_coding_ccl): Don't setup ccl program here.
2375 Fix for the case that the output buffer is fullfilled.
2376 (decode_coding): Setup ccl program here. Keep looping when the
2377 decoder stopped because the output buffer is
2378 fullfilled (bug#5534).
2379
2380 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
2381
2382 2010-02-13 Jan Djärv <jan.h.d@swipnet.se>
2383
2384 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
2385 bug #5571.
2386 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
2387 overdrawn.
2388
2389 2010-02-10 Jan Djärv <jan.h.d@swipnet.se>
2390
2391 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
2392 doing_interact here.
2393 (ice_connection_closed): New function.
2394 (x_session_check_input, smc_die_CB, ice_io_error_handler)
2395 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
2396 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
2397 returns I/O error.
2398 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
2399 bug #5512.
2400
2401 2010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
2402
2403 * nsfont.m (nsfont_open): The system's value for the font descent
2404 is negative, so round it down to avoid clipping.
2405
2406 2010-02-06 Chong Yidong <cyd@stupidchicken.com>
2407
2408 * charset.c (load_charset_map_from_file)
2409 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
2410 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
2411
2412 2010-02-05 Chong Yidong <cyd@stupidchicken.com>
2413
2414 * charset.c (load_charset_map_from_file): Allocate large
2415 charset_map_entries structure on the heap rather than the stack.
2416 (Bug#5526).
2417
2418 2010-01-31 Kenichi Handa <handa@m17n.org>
2419
2420 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
2421 size in NAME is invalid, return -1 (Bug#5396).
2422
2423 2010-01-31 Chong Yidong <cyd@stupidchicken.com>
2424
2425 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
2426 <deactivated@gmail.com> (Bug#3605).
2427
2428 2010-01-31 David De La Harpe Golden <david@harpegolden.net>
2429
2430 * fileio.c (Frename_file): Correctly rename symlinks to
2431 directories (Bug#5496).
2432
2433 2010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
2434
2435 * nsterm.m (ns_ring_bell): Handle visible bell like X.
2436
2437 2010-01-30 Andreas Schwab <schwab@linux-m68k.org>
2438
2439 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
2440
2441 2010-01-29 Chong Yidong <cyd@stupidchicken.com>
2442
2443 * frame.c (DEFAULT_ROWS): Change default to 35.
2444
2445 * xfns.c (x_default_font_parameter): Change default XFT font to
2446 monospace-10 (Bug#3643).
2447
2448 2010-01-29 Eli Zaretskii <eliz@gnu.org>
2449
2450 * w32inevt.c (key_event): Remove unnecessary comparison of
2451 event->uChar.AsciiChar with 128.
2452
2453 2010-01-28 Chong Yidong <cyd@stupidchicken.com>
2454
2455 * fileio.c (Frename_file): Fix last change (Bug#5487).
2456
2457 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
2458
2459 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
2460
2461 2010-01-28 Jan Djärv <jan.h.d@swipnet.se>
2462
2463 * xfns.c (Fx_create_frame): Remove window size matching code from
2464 2010-01-15.
2465 (x_get_current_desktop, x_get_desktop_workarea): Remove.
2466
2467 2010-01-27 Jason Rumney <jasonr@gnu.org>
2468
2469 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
2470 (key_event): Use unicode for characters 128 and higher (Bug#4567).
2471
2472 2010-01-27 Kenichi Handa <handa@m17n.org>
2473
2474 * regex.c (analyse_first): Fix setting of fastmap for unibyte
2475 pattern string (Bug#4209).
2476
2477 2010-01-27 David De La Harpe Golden <david@harpegolden.net>
2478
2479 * fileio.c (Frename_file): Call copy-directory and
2480 delete-directory for directories, in order to handle cross-device
2481 renaming (Bug#3353).
2482
2483 2010-01-25 Jan Djärv <jan.h.d@swipnet.se>
2484
2485 * xfns.c (Fx_create_frame): If frame height is too big, try
2486 sizes 24 and 10. Bug #3643.
2487
2488 2010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
2489
2490 Try and fix bug#788, hopefully for real this time.
2491 * keymap.c (shadow_lookup): Add `remap' arg.
2492 (describe_map, describe_vector): Update calls to shadow_lookup.
2493 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
2494 `remapped' so this flag is applicable to `sequence'. Be careful to
2495 perform remapping during shadow_lookup check of remapped_sequences.
2496
2497 2010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
2498
2499 * image.c (png_load): Use png_sig_cmp instead of the obsolete
2500 png_check_sig, which has been removed in libpng 1.4.
2501
2502 2010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
2503
2504 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
2505 lacks this header file).
2506
2507 2010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2508
2509 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
2510 as in Emacs 22.
2511
2512 2010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2513
2514 * lisp.h (make_pure_string): String pointer arg now points to const.
2515
2516 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
2517 args now point to const.
2518
2519 2010-01-22 Eli Zaretskii <eliz@gnu.org>
2520
2521 * lread.c (Fload): Don't treat files without .elc extension as
2522 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
2523 them. (bug#5303)
2524
2525 2010-01-20 Kenichi Handa <handa@m17n.org>
2526
2527 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
2528 treat the source as actual byte sequence.
2529
2530 2010-01-19 Alan Mackenzie <acm@muc.de>
2531
2532 Fix spurious before-change-functions invocation from (insert ?\n).
2533 * textprop.c (set_text_properties): Rename parameter
2534 `signal_after_change_p' to `coherent_change_p', and make the
2535 invocation of `modify_region' conditional on it.
2536
2537 2010-01-19 Jan Djärv <jan.h.d@swipnet.se>
2538
2539 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
2540 for debug purpose.
2541 (syms_of_xsettings): Declare xft-settings.
2542
2543 2010-01-18 Chong Yidong <cyd@stupidchicken.com>
2544
2545 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
2546
2547 2010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
2548
2549 * xterm.c (event_handler_gdk): Block input (Bug#5037).
2550
2551 2010-01-16 Chong Yidong <cyd@stupidchicken.com>
2552
2553 * emacs.c (standard_args): Adjust arg priorities to reflect how
2554 they are processed in startup.el.
2555
2556 2010-01-16 Andreas Schwab <schwab@linux-m68k.org>
2557
2558 * Makefile.in (lisp, shortlisp): Update.
2559
2560 2010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
2561
2562 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
2563 code, link the new kboard into all_kboard before running Lisp code,
2564 and protect the new terminal with GCPRO (Bug#5365).
2565 (x_term_init): Remove unused var `atom'.
2566 (x_delete_display, x_delete_terminal): Remove unused var `i'.
2567
2568 2010-01-15 Jan Djärv <jan.h.d@swipnet.se>
2569
2570 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
2571 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
2572 to find out usable size of the desktop. Don't make frames larger than
2573 this. Bug #3643.
2574
2575 2010-01-15 Kenichi Handa <handa@m17n.org>
2576
2577 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
2578
2579 2010-01-15 Chong Yidong <cyd@stupidchicken.com>
2580
2581 * nsterm.m (Qnone): Define.
2582
2583 * nsfns.m (Qnone): Move definition to nsterm.m.
2584
2585 2010-01-14 Kenichi Handa <handa@m17n.org>
2586
2587 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
2588 systems.
2589
2590 2010-01-14 Kenichi Handa <handa@m17n.org>
2591
2592 Make auto-composition work on all buffers even if they are
2593 fundamental mode.
2594
2595 * composite.c (Vauto_composition_mode): New variable.
2596 (composition_compute_stop_pos): Check Vauto_composition_mode
2597 instead of Vauto_composition_function.
2598 (composition_adjust_point, Ffind_composition_internal): Likewise.
2599 (syms_of_composite): Declare Lisp variable
2600 "auto-composition-mode" here.
2601
2602 2010-01-13 Chong Yidong <cyd@stupidchicken.com>
2603
2604 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
2605 during call to vendor-specific-keysyms (Bug#5365).
2606
2607 2010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2608
2609 * keyboard.c (input_available_signal) [SYNC_INPUT]:
2610 Call SIGNAL_THREAD_CHECK (Bug#5333).
2611
2612 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
2613 Call SIGNAL_THREAD_CHECK.
2614
2615 2010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
2616
2617 Try to fix bug#5314. This is probably not the final word, tho.
2618 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
2619 recent-auto-save-p as a side-effect.
2620 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
2621 * buffer.c (Fkill_buffer, reset_buffer):
2622 * editfns.c (Fsubst_char_in_region):
2623 * fileio.c (Finsert_file_contents, Fdo_auto_save)
2624 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
2625
2626 2010-01-13 Kenichi Handa <handa@m17n.org>
2627
2628 Display buffer name, etc. in mode line by composing correctly.
2629
2630 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
2631 STRING is not nil.
2632 (display_mode_element): Adjust for the change of
2633 decode_mode_spec and display_line.
2634 (decode_mode_spec): Change arg MULTIBYTE to STRING.
2635 (display_string): Handle the case that STRING is non-null and
2636 LISP_STRING is not nil.
2637
2638 * xterm.c (x_draw_composite_glyph_string_foreground):
2639 Pay attention to s->face->overstrike.
2640
2641 * composite.c (composition_reseat_it): Don't check PT if STRING is
2642 non nil.
2643
2644 2010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2645
2646 * keyboard.c (read_char): Don't apply previous change when current
2647 buffer is unchanged by command execution.
2648
2649 2010-01-12 Jan Djärv <jan.h.d@swipnet.se>
2650
2651 * keyboard.c (read_char): Return after executing from special map.
2652
2653 2010-01-12 Glenn Morris <rgm@gnu.org>
2654
2655 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
2656 bug-gnu-emacs rather than emacs-pretest-bug.
2657
2658 2010-01-11 Chong Yidong <cyd@stupidchicken.com>
2659
2660 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
2661 initializing the Lisp variables that depend on them.
2662
2663 2010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2664
2665 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
2666 Clear areas that will not be updated after change of menu bar lines.
2667 Clear the menu bar window's current matrix when the window gets empty.
2668
2669 2010-01-09 Chong Yidong <cyd@stupidchicken.com>
2670
2671 * intervals.h, textprop.c (extend_property_ranges): Return value
2672 and args changed. Discard properties that begin at or after the
2673 new end (Bug#5306).
2674
2675 * editfns.c (Fformat): Caller changed.
2676
2677 * nsterm.m (ns_set_default_prefs): Delete function.
2678 (syms_of_nsterm): Initialize ns_command_modifier,
2679 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
2680 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
2681
2682 * xdisp.c (pos_visible_p): Check for invisible text at the correct
2683 position (Bug#4040).
2684
2685 2010-01-09 Eli Zaretskii <eliz@gnu.org>
2686
2687 * editfns.c (Ffloat_time): Doc fix.
2688
2689 2010-01-09 Jan Djärv <jan.h.d@swipnet.se>
2690
2691 * xfns.c (Fx_create_frame): Don't create frame larger than display
2692 by default bug#3643.
2693
2694 2010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2695
2696 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
2697 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
2698 windows above internal border.
2699
2700 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
2701 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
2702 windows above internal border.
2703
2704 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
2705 tool bar windows specially.
2706
2707 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
2708
2709 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
2710 specially.
2711 (XTflash): Take account of menu bar height.
2712
2713 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
2714 specially.
2715
2716 2010-01-08 Jan Djärv <jan.h.d@swipnet.se>
2717
2718 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
2719 also be true before we can return early (bug #5339).
2720
2721 2010-01-06 David Reitter <david.reitter@gmail.com>
2722
2723 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
2724 (Fns_display_usable_bounds): Rewrite, computing bounds properly
2725 (Bug#3233).
2726
2727 2010-01-06 Jan Djärv <jan.h.d@swipnet.se>
2728
2729 * font.c (font_open_entity): Enable chache and call cached_font_ok
2730 for the driver if defined.
2731 (QCuser_spec): New symbol.
2732 (font_spec_from_name): Save name as user-spec.
2733 (font_load_for_lface): Keep user-spec instead of name.
2734 (font_open_by_name): Save name as user-spec.
2735 (syms_of_font): Initialize QCuser_spec.
2736 (font_clear_prop): Clear name if it exists in font (bug#5157).
2737
2738 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
2739 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
2740 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
2741
2742 * font.h (struct font_driver): Add cached_font_ok.
2743
2744 * xterm.c (x_clear_frame): Queue draw for scroll bars.
2745
2746 2010-01-05 Jan Djärv <jan.h.d@swipnet.se>
2747
2748 * xterm.c (x_new_font): Move code for setting rows/cols before
2749 resizing ...
2750 (x_set_window_size): ... to here. Bug #2568.
2751
2752 * gtkutil.c (xg_clear_under_internal_border): New function.
2753 (xg_frame_resized, xg_frame_set_char_size):
2754 Call xg_clear_under_internal_border.
2755 (xg_update_scrollbar_pos): Clear under old scroll bar position.
2756
2757 2010-01-05 Chong Yidong <cyd@stupidchicken.com>
2758
2759 * keyboard.c (read_key_sequence): Catch keyboard switch after
2760 making a new tty frame (Bug#5095).
2761
2762 2010-01-05 Kenichi Handa <handa@m17n.org>
2763
2764 * fontset.c (fontset_find_font): Fix getting the frame pointer.
2765
2766 2010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
2767
2768 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
2769 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
2770 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
2771
2772 2010-01-03 Michael Albinus <michael.albinus@gmx.de>
2773
2774 * dbusbind.c (xd_add_watch): Improve debug message.
2775 (xd_remove_watch): Improve debug message. If DATA is the session
2776 bus, unset D-Bus session environment.
2777 (Fdbus_init_bus): Pass the bus as argument to
2778 dbus_connection_set_watch_functions. (Bug#5283)
2779
2780 2010-01-01 Chong Yidong <cyd@stupidchicken.com>
2781
2782 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
2783
2784 * lread.c (syms_of_lread): Make it clearer that these are the
2785 names of loaded files (Bug#5068).
2786
2787 * eval.c (run_hook_with_args): Handle the case where the global
2788 value has the obsolete single-function form (Bug#5026).
2789
2790 2009-12-27 Chong Yidong <cyd@stupidchicken.com>
2791
2792 * minibuf.c (Fall_completions): Minor optimization.
2793
2794 2009-12-26 Eli Zaretskii <eliz@gnu.org>
2795
2796 * .gdbinit (pgx): Fix display of composite glyphs.
2797 Display cmp.from and cmp.to as well.
2798 (pitx): Fix last change.
2799
2800 2009-12-25 Kenichi Handa <handa@m17n.org>
2801
2802 * composite.h (composition_adjust_point): Update prototype.
2803
2804 * composite.c (composition_reseat_it): Don't make a composition
2805 spanning over point.
2806 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
2807 composable characters.
2808 (composition_adjust_point): New arg NEW_PT. Callers changed.
2809
2810 * keyboard.c (command_loop_1): Force redisplay if the last point
2811 was within a composition.
2812 (adjust_point_for_property): Don't adjust point for automatic
2813 composition when called after buffer modification.
2814
2815 2009-12-19 Eli Zaretskii <eliz@gnu.org>
2816
2817 * .gdbinit (pitx): Don't use enum names, use their values.
2818 Remove reference to non-existing value GET_FROM_COMPOSITION.
2819 (pgx): Don't use enum names, use their values.
2820 (pitmethod): New helper command.
2821 (pitx): Use it to display iteration method.
2822 (pgrowit): New command.
2823
2824 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
2825
2826 Update dependencies in Makefile.in.
2827
2828 * Makefile.in (alloc.o): Depend on termhooks.h.
2829 (atimer.o): Depend on blockinput.h.
2830 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
2831 and frame.h.
2832 (callint.o): Depend on systime.h, coding.h, and composite.h.
2833 (callproc.o): Depend on buffer.h.
2834 (casefiddle.o): Don't depend on charset.h.
2835 (casetab.o): Depend on character.h.
2836 (ccl.o): Depend on composite.h.
2837 (chartab.o): Depend on ccl.h.
2838 (cm.o): Depend on dispextern.h.
2839 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
2840 (coding.o): Don't depend on $(INTERVALS_H).
2841 (composite.o): Don't depend on dispextern.h explicitly (it's in
2842 $(INTERVALS_H)). Depend on ccl.h.
2843 (data.o): Depend on systime.h, coding.h, composite.h,
2844 dispextern.h, font.h, and ccl.h.
2845 (dired.o): Depend on composite.h.
2846 (dispnew.o): Depend on coding.h. Don't depend explicitly on
2847 composite.h (it's in $(INTERVALS_H)).
2848 (doc.o): Depend on systime.h, coding.h, and composite.h.
2849 (editfns.o): Don't depend explicitly on dispextern.h.
2850 (emacs.o): Depend on frame.h and coding.h.
2851 (eval.o): Depend on coding.h, composite.h, and xterm.h.
2852 (fileio.o): Depend on frame.h and commands.h. Don't depend
2853 explicitly on dispextern.h.
2854 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
2855 composite.h.
2856 (fns.o): Don't depend on termhooks.h.
2857 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
2858 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
2859 coding.h, $(INTERVALS_H), window.h, xterm.h.
2860 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
2861 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
2862 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
2863 fontset.h, ccl.h, and ftfont.h.
2864 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
2865 (gtkutil.o): Depend on dispextern.h and composite.h.
2866 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
2867 termhooks.h, and ccl.h.
2868 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
2869 (intervals.o): Depend on systime.h and coding.h.
2870 (keyboard.o): Depend on composite.h and coding.h.
2871 (keymap.o): Depend on coding.h and frame.h.
2872 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
2873 (macros.o): Depend on systime.h, coding.h, and composite.h.
2874 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
2875 and atimer.h.
2876 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
2877 dispextern.h explicitly.
2878 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
2879 Don't depend explicitly on dispextern.h and composite.h.
2880 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
2881 (regex.o): Don't depend on charset.h.
2882 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
2883 (search.o): Don't depend explicitly on composite.h.
2884 (sound.o): Depend on atimer.h and systime.h.
2885 (syntax.o): Don't depend explicitly on composite.h.
2886 (sysdep.o): Depend on coding.h and composite.h.
2887 (term.o): Depend on xterm.h and buffer.h.
2888 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
2889 (textprop.o): Don't depend on dispextern.h explicitly.
2890 (undo.o): Depend on dispextern.h.
2891 (window.o): Depend on coding.h and termhooks.h. Don't depend on
2892 dispextern.h and composite.h explicitly.
2893 (xdisp.o): Depend on ccl.h.
2894 (xfaces.o): Depend on coding.h and ccl.h.
2895 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
2896 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
2897 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
2898 ftfont.h.
2899 (xgselect.o): New dependency.
2900 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
2901 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
2902 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
2903 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
2904 (xsmfns.o): Depend on frame.h and dispextern.h.
2905 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
2906 sysselect.h.
2907
2908 2009-12-19 Andreas Schwab <schwab@linux-m68k.org>
2909
2910 * font.c (Fclear_font_cache): Pass correct cache argument to
2911 font_clear_cache.
2912
2913 2009-12-16 Andreas Schwab <schwab@linux-m68k.org>
2914
2915 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
2916 twice.
2917
2918 2009-12-15 Chong Yidong <cyd@stupidchicken.com>
2919
2920 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
2921 calling file-remote-p. Reported by Jim Meyering.
2922
2923 2009-12-15 Michael Albinus <michael.albinus@gmx.de>
2924
2925 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
2926 avoid compiler warnings. (Bug #5217)
2927
2928 2009-12-14 Kenichi Handa <handa@m17n.org>
2929
2930 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
2931 in 8-bit encoding.
2932
2933 2009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
2934
2935 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
2936 tooltip windows.
2937
2938 2009-12-13 Jan Djärv <jan.h.d@swipnet.se>
2939
2940 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
2941 Xatom_net_window_type.
2942
2943 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
2944 Xatom_net_window_type.
2945
2946 * xterm.c (my_log_handler): New function.
2947 (x_term_init): Set my_log_handler as log handler during gtk_init
2948 so we can filter out buggy messages. (Bug #5120).
2949
2950 * xterm.c (xg_scroll_callback): Parameter list changed,
2951 use parameter GtkScrollType to determine scroll/line/page.
2952 Only allow dragging if a button < 4 is grabbed (bug #5177).
2953 (xg_end_scroll_callback): New function.
2954 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
2955 xg_create_scroll_bar.
2956
2957 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
2958 (scroll_end_callback): Remove.
2959 (xg_create_scroll_bar): Add parameter end_callback, bind it to
2960 button-release-event. Replace value-changed event with change-value,
2961 bug #5177,
2962 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
2963 bug #5177.
2964
2965 * gtkutil.h (XG_LAST_SB_DATA): Remove.
2966 (xg_create_scroll_bar): Add GCallback end_callback.
2967
2968 * xftfont.c (QClcdfilter): New variable.
2969 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
2970 (syms_of_xftfont): Initialize QClcdfilter.
2971
2972 2009-12-12 Jan Djärv <jan.h.d@swipnet.se>
2973
2974 * xsettings.c (struct xsettings): Add member seen.
2975 (parse_xft_settings): Update member seen with what we have read.
2976 Return non-zero if Xft-settings have been parsed, 0 otherwise.
2977 (apply_xft_settings): Only update Xft settings with what member seen
2978 indicates as new.
2979
2980 2009-12-12 Eli Zaretskii <eliz@gnu.org>
2981
2982 * dispextern.h (struct text_pos): Use EMACS_INT;
2983 (struct glyph): Use EMACS_INT for charpos.
2984 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
2985 region_beg_charpos, region_end_charpos,
2986 redisplay_end_trigger_charpos, and also for
2987 iterator_stack_entry.end_charpos and
2988 iterator_stack_entry.stop_charpos.
2989
2990 2009-12-12 Jan Djärv <jan.h.d@swipnet.se>
2991
2992 * gtkutil.c (scroll_end_callback): New function (bug #5177).
2993 (xg_create_scroll_bar): Call scroll_end_callback on button release
2994 event (bug #5177).
2995 (xg_event_is_for_scrollbar): != replaced with ==.
2996
2997 2009-12-12 Kenichi Handa <handa@m17n.org>
2998
2999 * ftfont.c (struct ftfont_info): New member matrix.
3000 (ftfont_open): Setup xftfont_info->matrix.
3001 (MFLTFontFT): New member matrix.
3002 (FLOOR, CEIL, ROUND): New macros.
3003 (ftfont_get_metrics): Handle matrix transformation.
3004 (ftfont_shape_by_flt): New arg matrix. Callers changed.
3005
3006 * xftfont.c (struct xftfont_info): New member matrix.
3007 (xftfont_open): Setup xftfont_info->matrix.
3008
3009 2009-12-10 Kenichi Handa <handa@m17n.org>
3010
3011 * xdisp.c (append_space_for_newline): Consider face-remapping.
3012
3013 2009-12-09 Andreas Schwab <schwab@linux-m68k.org>
3014
3015 * xsettings.c: Include "keyboard.h".
3016
3017 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
3018
3019 Fix implicit function declarations.
3020 * cmds.c: Include "frame.h".
3021 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
3022 * frame.h: Move declaration of delete_frame outside of
3023 HAVE_WINDOW_SYSTEM.
3024
3025 2009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
3026
3027 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
3028
3029 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
3030 GTK builds.
3031
3032 2009-12-07 Andreas Schwab <schwab@linux-m68k.org>
3033
3034 * unexelf.c (unexec): Don't search for .data twice.
3035
3036 2009-12-05 Chong Yidong <cyd@stupidchicken.com>
3037
3038 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
3039 if push failed.
3040 (handle_line_prefix): Set avoid_cursor_p here. Check return value
3041 of push_display_prop (Bug#5000).
3042
3043 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
3044 value of font_list_entities (Bug#5085).
3045
3046 2009-12-04 Juanma Barranquero <lekktu@gmail.com>
3047
3048 Fix `string-to-number' to deal consistently with integers and floats.
3049 * lread.c (isfloat_string): New argument ignore_trailing to accept all
3050 trailing characters, not just whitespace.
3051 (read1): Pass new arg 0 to keep old behavior.
3052 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
3053 trailing chars, as it is already done for integers. Doc fixes.
3054 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
3055
3056 2009-12-04 Eli Zaretskii <eliz@gnu.org>
3057
3058 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
3059 Delete unused enumeration value.
3060
3061 2009-12-03 Eli Zaretskii <eliz@gnu.org>
3062
3063 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
3064
3065 2009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
3066
3067 * process.c (Fmake_network_process): Fix up the tests for
3068 "connectionless socket", so they DTRT for seqpacket sockets as well.
3069
3070 2009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
3071
3072 * process.c (Qseqpacket): New symbol.
3073 (HAVE_SEQPACKET): New macro.
3074 (Fmake_network_process): Accept new :type `seqpacket'.
3075 (init_process): Add `seqpacket' feature when applicable.
3076 (syms_of_process): Initialize Qseqpacket.
3077
3078 2009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3079
3080 * font.c (font_load_for_lface, font_open_by_name): Don't store name
3081 if entity is Qnil.
3082
3083 2009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
3084
3085 * print.c (print_preprocess): Preprocess the key_and_value table of
3086 hashtables, even tho they're "hidden" (bug#5082).
3087
3088 2009-11-29 Jan Djärv <jan.h.d@swipnet.se>
3089
3090 * frame.c (frame_make_pointer_invisible)
3091 (frame_make_pointer_visible): Declare f before statements.
3092
3093 2009-11-28 Eli Zaretskii <eliz@gnu.org>
3094
3095 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
3096 omitted dependencies on lisp.h.
3097
3098 2009-11-27 Jan Djärv <jan.h.d@swipnet.se>
3099
3100 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
3101 is NULL.
3102
3103 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
3104
3105 * frame.c (frame_make_pointer_invisible)
3106 (frame_make_pointer_visible): Just return if there isn't any selected
3107 frame.
3108
3109 * search.c (simple_search): Remove warning by making *p const.
3110
3111 2009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
3112
3113 * xdisp.c (power_letter): Remove duplicate const.
3114
3115 2009-11-25 Jan Djärv <jan.h.d@swipnet.se>
3116
3117 * term.c (delete_tty): Remove check for last terminal (bug#4970).
3118
3119 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
3120 defaults (bug #5025).
3121
3122 2009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
3123
3124 * insdel.c (adjust_markers_for_delete): Move it in the
3125 right direction! (bug#4803)
3126
3127 2009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3128
3129 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
3130
3131 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
3132
3133 2009-11-24 Glenn Morris <rgm@gnu.org>
3134
3135 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
3136
3137 2009-11-23 Jan Djärv <jan.h.d@swipnet.se>
3138
3139 * Makefile.in: Must create deps for ecrt0.o in its rule.
3140
3141 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
3142 because that is what Gtk+ font dialog understands.
3143
3144 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
3145 of Fcopy_sequence.
3146 (font_open_by_name): Put name given into QCname for font-object returned.
3147
3148 * frame.c (x_set_font): Save original font name as frame parameter
3149 font-parameter.
3150
3151 * xsettings.c (set_default_xft_settings): New function.
3152 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
3153 is found.
3154
3155 2009-11-22 Andreas Schwab <schwab@linux-m68k.org>
3156
3157 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
3158 searching backwards through multibyte buffer.
3159
3160 2009-11-21 Jan Djärv <jan.h.d@swipnet.se>
3161
3162 * xterm.c: #include xgselect.h.
3163 (x_initialize): Call xgselect_initialize.
3164
3165 * xsettings.c (something_changedCB): C++ comments => C comments.
3166 (init_gconf): Do not deal with any GLib file descriptors, xg_select
3167 does that now.
3168
3169 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
3170 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
3171 (scroll_bar_button_cb): Remove.
3172 (create_menus): C++ comments => C comments. Don't bind grab-notify
3173 event.
3174 (xg_create_scroll_bar): Don't bind button-press-event and
3175 button-release-event.
3176
3177 * process.c: Include xgselect.h if defined (USE_GTK) ||
3178 defined (HAVE_GCONF).
3179 (wait_reading_process_output): Call xg_select for the same condition.
3180
3181 * xgselect.c (xg_select): New function to better integrate with
3182 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
3183
3184 * xgselect.h: New file, declare xg_select, xgselect_initialize.
3185
3186 * Makefile.in (XOBJ): Add xgselect.o.
3187
3188 2009-11-21 Andreas Schwab <schwab@linux-m68k.org>
3189
3190 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
3191 Remove ignored second argument. All callers changed.
3192 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
3193 (RE_STRING_CHAR_AND_LENGTH): Likewise.
3194 * xdisp.c (string_char_and_length): Likewise.
3195
3196 2009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
3197
3198 * xterm.c (x_new_font):
3199 * print.c (print_object):
3200 * cmds.c (Fself_insert_command): Move declarations before statements.
3201
3202 2009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
3203
3204 * s/cygwin.h: Remove unneeded linker flags.
3205
3206 2009-11-20 Jan Djärv <jan.h.d@swipnet.se>
3207
3208 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
3209
3210 * xsettings.h: Declare xsettings_get_system_font.
3211
3212 * xsettings.c (xsettings_get_system_font): New function.
3213 (init_gconf): No use initiating gconf unless we have Xft also.
3214 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
3215 HAVE_GCONF.
3216
3217 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
3218 add a blank entry so it doesn't collapse into nothing.
3219
3220 2009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
3221
3222 * lread.c (Funintern): Comment out last change.
3223
3224 2009-11-19 Richard Stallman <rms@gnu.org>
3225
3226 * lread.c (Funintern): Error if symbol is t or nil.
3227
3228 2009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
3229
3230 * insdel.c (make_gap_larger): Don't make as many assumptions about the
3231 representation of Lisp integers.
3232 Reported by MJ Chan <mjchan.inbox@gmail.com>.
3233
3234 2009-11-17 Andreas Schwab <schwab@linux-m68k.org>
3235
3236 * lisp.h: Remove declaration of Ffont_get_system_font.
3237 * xfns.c: Move include of "xsettings.h".
3238 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
3239
3240 2009-11-17 Jan Djärv <jan.h.d@swipnet.se>
3241
3242 * xsettings.c (something_changedCB, Ffont_get_system_font):
3243 Check use_system_font.
3244 (syms_of_xsettings): DEFVAR font-use-system-font.
3245
3246 2009-11-17 Andreas Schwab <schwab@linux-m68k.org>
3247
3248 * xfns.c (x_default_font_parameter): Remove dead assignment.
3249
3250 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
3251
3252 2009-11-17 Jan Djärv <jan.h.d@swipnet.se>
3253
3254 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
3255 not have FC_LCD_*. #define them if not there.
3256
3257 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
3258
3259 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
3260
3261 * xterm.c (handle_one_xevent): Call xft_settings_event for
3262 ClientMessage, PropertyNotify and DestroyNotify.
3263 (x_term_init): If we have XFT, get DPI from Xft.dpi.
3264 Call xsettings_initialize.
3265
3266 * xftfont.c (xftfont_fix_match): New function.
3267 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
3268 Call xftfont_fix_match after XftFontMatch.
3269
3270 * xfont.c (xfont_driver): Initialize all members.
3271
3272 * xfns.c (x_default_font_parameter):
3273 Try font from Ffont_get_system_font.
3274 Do not get font from x_default_parameter if we got one from
3275 Ffont_get_system_font.
3276 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
3277
3278 * w32font.c (w32font_driver): Initialize all members.
3279
3280 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
3281
3282 * lisp.h: Declare syms_of_xsettings.
3283
3284 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
3285 Handle CONFIG_CHANGED_EVENT.
3286
3287 * ftfont.c (ftfont_filter_properties): New function.
3288
3289 * frame.c (x_set_font): Remove unused variable lval.
3290
3291 * font.h (struct font_driver): Add filter_properties.
3292
3293 * font.c (font_put_extra): Don't return if val is nil, it means
3294 boolean option is off.
3295 (font_parse_fcname): Collect all extra properties in extra_props
3296 and call filter_properties for all drivers with extra_props and
3297 font as parameter.
3298 (font_open_entity): Do not use cache, it does not pick up new
3299 fontconfig settings like hinting.
3300 (font_load_for_lface): If spec had a name in it, store it in entity.
3301
3302 * emacs.c (main): Call syms_of_xsettings.
3303
3304 * config.in: HAVE_GCONF is new.
3305
3306 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
3307 xsettings.o is new.
3308
3309 2009-11-17 Kenichi Handa <handa@m17n.org>
3310
3311 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
3312 back to the default font in case that no suitable font is found.
3313
3314 2009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
3315
3316 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
3317 Suggested by Chad Brown <yandros@mit.edu>.
3318 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
3319
3320 2009-11-16 Jan Djärv <jan.h.d@swipnet.se>
3321
3322 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
3323
3324 2009-11-14 Andreas Schwab <schwab@linux-m68k.org>
3325
3326 * Makefile.in: Ignore errors from mkdir when creating deps directory.
3327
3328 2009-11-14 Jan Djärv <jan.h.d@swipnet.se>
3329
3330 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
3331 has a parent.
3332
3333 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
3334 dependency files in deps/. Include those files into Makefile.
3335
3336 * config.in: Generated (AUTO_DEPEND).
3337
3338 2009-11-13 Michael Albinus <michael.albinus@gmx.de>
3339
3340 * dbusbind.c (Vdbus_registered_objects_table): Rename from
3341 Vdbus_registered_functions_table, because it contains also
3342 properties. Fix docstring.
3343 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
3344
3345 2009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
3346
3347 * alloc.c (mark_object): Don't reprocess marked strings.
3348 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
3349 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
3350
3351 2009-11-13 Kenichi Handa <handa@m17n.org>
3352
3353 * category.c (word_boundary_p): Adjust for the change of the
3354 semantics of Vword_combining_categories.
3355 (Vword_combining_categories): Describe the slight change of the
3356 semantics.
3357
3358 2009-11-13 Eli Zaretskii <eliz@gnu.org>
3359
3360 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
3361
3362 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
3363
3364 2009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
3365
3366 * xdisp.c (syms_of_xdisp): Fix typo in last change.
3367
3368 2009-11-12 Juanma Barranquero <lekktu@gmail.com>
3369
3370 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
3371
3372 2009-11-11 David Reitter <david.reitter@gmail.com>
3373
3374 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
3375 variables to fix 2009-11-09 change.
3376
3377 2009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
3378
3379 * process.c (ifflag_def): Make flag_sym constant.
3380 (Fnetwork_interface_info): Use a constant pointer.
3381 (ifflag_table):
3382 * xfns.c (cursor_bits):
3383 * xdisp.c (power_letter):
3384 * termcap.c (speeds, esctab):
3385 * sysdep.c (baud_convert):
3386 * keyboard.c (lispy_accent_codes, modifier_names):
3387 * image.c (xbm_format, xpm_format, pbm_format, png_format)
3388 (jpeg_format, tiff_format, gif_format, svg_format)
3389 (interlace_start, interlace_increment, gs_format):
3390 * gtkutil.c (separator_names):
3391 * fringe.c (swap_nibble):
3392 * fns.c (base64_value_to_char, base64_char_to_value):
3393 * fileio.c (make_temp_name_tbl):
3394 * coding.c (suffixes): Make constant.
3395
3396 * frame.c (make_initial_frame):
3397 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
3398 build_string.
3399 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
3400
3401 * s/freebsd.h:
3402 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
3403
3404 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
3405 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
3406
3407 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
3408 * xterm.c (syms_of_xterm):
3409 * xfaces.c (syms_of_xfaces):
3410 * xdisp.c (syms_of_xdisp):
3411 * lread.c (syms_of_lread):
3412 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
3413 build_string.
3414
3415 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
3416
3417 2009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
3418
3419 * fns.c (Fplist_get): Merge the active and the commented out code.
3420
3421 2009-11-10 Jan Djärv <jan.h.d@swipnet.se>
3422
3423 * keyboard.h: Declare timer_check.
3424
3425 * keyboard.c (timer_check_2): New function that does what the old
3426 timer_check did.
3427 (timer_check): Call timer_check_2 until -1 or a non-zero time is
3428 returned, i.e. don't return -1 with timers pending.
3429
3430 * process.c: Remove extern declaration of timer_check.
3431
3432 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
3433 even if timer_check returned -1.
3434
3435 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
3436 xg_dialog_data.
3437 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
3438 the event loop.
3439 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
3440 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
3441 Destroy the dialog after xg_dialog_run.
3442
3443 2009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
3444
3445 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
3446
3447 2009-11-10 Jan Djärv <jan.h.d@swipnet.se>
3448
3449 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
3450
3451 2009-11-09 Juanma Barranquero <lekktu@gmail.com>
3452
3453 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
3454
3455 2009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
3456
3457 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
3458 w32menu.c, and nsmenu.m.
3459 Simplify the obsolete case where position is nil.
3460 (cleanup_popup_menu): New function, moved from nsmenu.m.
3461 (struct skp): Remove slot `notreal'.
3462 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
3463 adjust callers.
3464 (single_menu_item): Adjust call to parse_menu_item.
3465 (syms_of_menu): Defsubr x-popup-menu.
3466 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
3467 (keymap_panes): Don't export any more.
3468 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
3469 (xmenu_show): Declare.
3470 * keyboard.c (parse_menu_item): Remove arg `notreal'.
3471 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
3472 * keyboard.h (parse_menu_item): Update declaration.
3473 * xmenu.c (Fx_popup_menu): Remove.
3474 (syms_of_xmenu): Don't defsubr x-popup-menu.
3475 * w32menu.c (Fx_popup_menu): Remove.
3476 (syms_of_w32menu): Don't defsubr x-popup-menu.
3477 * nsmenu.m (cleanup_popup_menu): Remove.
3478 (ns_menu_show): Rename from ns_popup_menu and remove all the code
3479 moved to menu.c's Fx_popup_menu.
3480 (Fx_popup_menu): Remove.
3481 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
3482 menu_items (it's done in menu.c already).
3483
3484 2009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
3485
3486 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
3487 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
3488
3489 2009-11-08 Chong Yidong <cyd@stupidchicken.com>
3490
3491 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
3492 xmenu_show. Hide any tooltip before opening a menu.
3493 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
3494 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
3495
3496 2009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
3497
3498 Let integers use up 2 tags to give them one extra bit and thus double
3499 their range.
3500 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
3501 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
3502 New macros.
3503 (enum Lisp_Type): Use them. Give explicit values.
3504 (Lisp_Type_Limit): Remove.
3505 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
3506 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
3507 Pay attention to USE_2_TAGS_FOR_INTS.
3508 (INTEGERP): Use LISP_INT_TAG_P.
3509 * fns.c (internal_equal): Simplify the default case.
3510 (sxhash): Use case_Lisp_Int.
3511 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
3512 any more.
3513 (Ftype_of): Use case_Lisp_Int.
3514 (store_symval_forwarding): Take into account the fact that Ints can
3515 now have more than one tag.
3516 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
3517 buffer_slot_type_mismatch):
3518 * xfaces.c (face_attr_equal_p):
3519 * print.c (print_object):
3520 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
3521 Use case_Lisp_Int.
3522
3523 2009-11-06 Eli Zaretskii <eliz@gnu.org>
3524
3525 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
3526
3527 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
3528 warning.
3529
3530 2009-11-06 Jan Djärv <jan.h.d@swipnet.se>
3531
3532 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
3533
3534 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
3535
3536 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
3537 ButtonPressRelease and MotionNotify (bug#4870).
3538
3539 2009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
3540
3541 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
3542
3543 * xterm.c (syms_of_xterm):
3544 * xselect.c (syms_of_xselect):
3545 * xmenu.c (syms_of_xmenu):
3546 * xfns.c (syms_of_xfns):
3547 * xfaces.c (syms_of_xfaces):
3548 * xdisp.c (syms_of_xdisp):
3549 * window.c (syms_of_window):
3550 * w32fns.c (syms_of_w32fns):
3551 * undo.c (syms_of_undo):
3552 * textprop.c (syms_of_textprop):
3553 * terminal.c (syms_of_terminal):
3554 * syntax.c (syms_of_syntax):
3555 * sound.c (syms_of_sound):
3556 * search.c (syms_of_search):
3557 * print.c (syms_of_print):
3558 * minibuf.c (syms_of_minibuf):
3559 * macros.c (syms_of_macros):
3560 * keymap.c (syms_of_keymap, initial_define_key)
3561 (initial_define_lispy_key):
3562 * keyboard.c (syms_of_keyboard):
3563 * insdel.c (syms_of_insdel):
3564 * image.c (syms_of_image):
3565 * fringe.c (syms_of_fringe):
3566 * frame.c (syms_of_frame):
3567 * fontset.c (syms_of_fontset):
3568 * fns.c (syms_of_fns):
3569 * fns.c (syms_of_fns):
3570 * fileio.c (syms_of_fileio):
3571 * fileio.c (syms_of_fileio):
3572 * eval.c (syms_of_eval):
3573 * doc.c (syms_of_doc):
3574 * dispnew.c (syms_of_display):
3575 * dired.c (syms_of_dired):
3576 * dbusbind.c (syms_of_dbusbind):
3577 * data.c (syms_of_data):
3578 * composite.c (syms_of_composite):
3579 * coding.c (syms_of_coding):
3580 * cmds.c (syms_of_cmds):
3581 * charset.c (define_charset_internal, syms_of_character):
3582 * ccl.c (syms_of_ccl):
3583 * category.c (syms_of_category, init_category_once):
3584 * casetab.c (syms_of_casetab):
3585 * casefiddle.c (syms_of_casefiddle):
3586 * callint.c (syms_of_callint):
3587 * bytecode.c (syms_of_bytecode):
3588 * buffer.c (keys_of_buffer, syms_of_buffer):
3589 * alloc.c (syms_of_alloc):
3590 * process.c (syms_of_process, init_process):
3591 * lread.c (syms_of_lread, init_obarray):
3592 * font.c (build_style_table):
3593 * emacs.c (syms_of_emacs, main): Replace calls to intern with
3594 intern_c_string, calls to make_pure_string with
3595 make_pure_c_string. Use pure_cons instead of Fcons.
3596
3597 * process.c (socket_options): Make it const.
3598 (set_socket_option, init_process): Use a const pointer.
3599
3600 * lread.c (intern_c_string): New function.
3601 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
3602 (defvar_int): Uset it. Make the name const char*.
3603
3604 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
3605 (defvar_int): Update prototypes.
3606 (DEFUN, EXFUN): Support for prototypes is now required.
3607 (intern_c_string): New prototype.
3608 (struct Lisp_Subr): Make symbol_name constant.
3609
3610 * font.c (struct table_entry): Remove unused member. Make NAMES
3611 constant.
3612 (weight_table, slant_table, width_table): Make constant.
3613
3614 * emacs.c (struct standard_args): Make name and longname constant.
3615
3616 * character.h (DEFSYM): Use intern_c_string.
3617
3618 2009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
3619
3620 * alloc.c (make_pure_c_string): New function.
3621
3622 * eval.c (Fautoload): Purecopy all arguments.
3623
3624 2009-11-05 Kenichi Handa <handa@m17n.org>
3625
3626 * fileio.c (Finsert_file_contents): Be sure set coding-system of
3627 the buffer in case of replace.
3628
3629 2009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
3630
3631 * puresize.h (BASE_PURESIZE): Increase to 1620000.
3632
3633 2009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
3634
3635 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
3636 when applicable (bug#4851).
3637
3638 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
3639 (P_): Support for prototypes is now required.
3640
3641 2009-10-31 Chong Yidong <cyd@stupidchicken.com>
3642
3643 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
3644 (Bug#4827).
3645
3646 2009-10-30 Eli Zaretskii <eliz@gnu.org>
3647
3648 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
3649
3650 2009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
3651
3652 * puresize.h (BASE_PURESIZE): Increase to 1470000.
3653
3654 * lread.c (Fload): Purecopy the file name when building
3655 Vpreloaded_file_list.
3656
3657 2009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
3658
3659 * w32fns.c (syms_of_w32fns): Change default value of
3660 w32-scroll-lock-modifier to nil. (Bug#2827)
3661
3662 2009-10-26 Juanma Barranquero <lekktu@gmail.com>
3663
3664 * minibuf.c (Fall_completions): Fix typos in docstring.
3665
3666 2009-10-26 Andreas Schwab <schwab@redhat.com>
3667
3668 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
3669
3670 2009-10-26 Juanma Barranquero <lekktu@gmail.com>
3671
3672 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
3673 For delta < 0, skip check that only makes sense when the mini-window
3674 is going to be enlarged. (Bug#4534)
3675
3676 2009-10-25 Chong Yidong <cyd@stupidchicken.com>
3677
3678 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
3679 string in menu maps (Bug#4471).
3680
3681 2009-10-24 Chong Yidong <cyd@stupidchicken.com>
3682
3683 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
3684 FRAME_NS_VIEW on terminal frames (Bug#4765).
3685
3686 2009-10-24 Andreas Schwab <schwab@linux-m68k.org>
3687
3688 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
3689 DBUS_TYPE_UINTnn separately to get proper sign extension.
3690
3691 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
3692 can properly handle unsigned types.
3693 (make_uid, make_gid): Remove.
3694
3695 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
3696 types again.
3697
3698 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
3699 (system_process_attributes): Likewise.
3700
3701 2009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
3702
3703 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
3704
3705 * eval.c (Fautoload): Purecopy the filename. Simplify.
3706
3707 * category.c (Fdefine_category): Purecopy docstring.
3708
3709 2009-10-23 Andreas Schwab <schwab@linux-m68k.org>
3710
3711 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
3712
3713 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
3714
3715 2009-10-23 Chong Yidong <cyd@stupidchicken.com>
3716
3717 * window.c (Fwindow_edges, Fwindow_pixel_edges)
3718 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
3719 (Bug#4775).
3720
3721 2009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
3722
3723 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
3724 (init_fileio_once):
3725 * lisp.h (init_fileio_once): Remove.
3726 * emacs.c (main): Don't call init_fileio_once.
3727
3728 2009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
3729
3730 * puresize.h (BASE_PURESIZE): Increase to 1430000.
3731
3732 2009-10-21 Andreas Schwab <schwab@linux-m68k.org>
3733
3734 * doprnt.c (doprnt): Fix overflow check.
3735
3736 2009-10-21 Jan Djärv <jan.h.d@swipnet.se>
3737
3738 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
3739
3740 * xterm.h (x_wait_for_event): Declare it.
3741
3742 * xterm.c (pending_event_wait): New variable.
3743 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
3744 see pending_event_wait.eventtype.
3745 (handle_one_xevent): Don't change gravity when parent changes.
3746 (x_new_font): Call change_frame_size with new rows/columns before we
3747 try to resize the frame.
3748 (x_wait_for_event): New function.
3749 (x_set_window_size_1): Don't change gravity unless change_gravity
3750 is set.
3751 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
3752 don't change frame size, instead wait for the ConfigureNotify.
3753 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
3754 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
3755 (x_initialize): Initialize pending_event_wait.
3756
3757 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
3758 size.
3759
3760 * widget.c (EmacsFrameSetValues): Add comment.
3761 (EmacsFrameSetCharSize): Just call x_set_window_size.
3762
3763 * gtkutil.c (xg_frame_set_char_size): Flush events and call
3764 x_wait_for_event.
3765 (flush_and_sync): Remove again.
3766 (xg_get_font_name): Suggest monospace if no previous font is known.
3767
3768 2009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
3769
3770 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
3771 8th bit, since that only made sense in the ASCII world (bug#4751).
3772
3773 2009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3774
3775 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
3776 processing pending events when event is filtered for input method.
3777 (Bug#3681)
3778
3779 2009-10-20 Juanma Barranquero <lekktu@gmail.com>
3780
3781 * fns.c: Add #endif accidentally removed in previous change.
3782
3783 2009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
3784
3785 * fns.c: Remove code for unsupported system: MAC_OS.
3786 * image.c: Likewise. Include setjmp.h.
3787
3788 2009-10-19 Jan Djärv <jan.h.d@swipnet.se>
3789
3790 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
3791 pixel -1 (bug #4742).
3792
3793 2009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
3794
3795 * process.c (create_pty): Remove conditionals for no longer
3796 supported systems: UNIPLUS and RTU.
3797
3798 * xterm.c:
3799 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
3800
3801 * alloc.c: Do not define struct catchtag.
3802 * eval.c: Move struct catchtag definition ...
3803 * lisp.h: ... here.
3804
3805 * image.c: Move png.h #include earlier to avoid warnings.
3806
3807 * xterm.c:
3808 * xsmfns.c:
3809 * xselect.c:
3810 * xrdb.c:
3811 * xmenu.c:
3812 * xftfont.c:
3813 * xfont.c:
3814 * xfns.c:
3815 * xfaces.c:
3816 * xdisp.c:
3817 * window.c:
3818 * widget.c:
3819 * w32xfns.c:
3820 * w32uniscribe.c:
3821 * w32term.c:
3822 * w32select.c:
3823 * w32reg.c:
3824 * w32proc.c:
3825 * w32menu.c:
3826 * w32inevt.c:
3827 * w32heap.c:
3828 * w32font.c:
3829 * w32fns.c:
3830 * w32console.c:
3831 * w32.c:
3832 * w16select.c:
3833 * vm-limit.c:
3834 * unexsol.c:
3835 * unexec.c:
3836 * unexcw.c:
3837 * unexaix.c:
3838 * undo.c:
3839 * tparam.c:
3840 * textprop.c:
3841 * terminfo.c:
3842 * terminal.c:
3843 * termcap.c:
3844 * term.c:
3845 * syntax.c:
3846 * sound.c:
3847 * sheap.c:
3848 * search.c:
3849 * scroll.c:
3850 * region-cache.c:
3851 * regex.c:
3852 * ralloc.c:
3853 * process.c:
3854 * print.c:
3855 * nsterm.m:
3856 * nsselect.m:
3857 * nsmenu.m:
3858 * nsimage.m:
3859 * nsfont.m:
3860 * nsfns.m:
3861 * msdos.c:
3862 * minibuf.c:
3863 * menu.c:
3864 * marker.c:
3865 * macros.c:
3866 * keymap.c:
3867 * keyboard.c:
3868 * intervals.c:
3869 * insdel.c:
3870 * indent.c:
3871 * gtkutil.c:
3872 * ftxfont.c:
3873 * ftfont.c:
3874 * fringe.c:
3875 * frame.c:
3876 * fontset.c:
3877 * font.c:
3878 * fns.c:
3879 * floatfns.c:
3880 * filelock.c:
3881 * fileio.c:
3882 * emacs.c:
3883 * editfns.c:
3884 * dosfns.c:
3885 * doprnt.c:
3886 * doc.c:
3887 * dispnew.c:
3888 * dired.c:
3889 * dbusbind.c:
3890 * data.c:
3891 * composite.c:
3892 * coding.c:
3893 * cmds.c:
3894 * cm.c:
3895 * chartab.c:
3896 * charset.c:
3897 * character.c:
3898 * ccl.c:
3899 * category.c:
3900 * casetab.c:
3901 * casefiddle.c:
3902 * callproc.c:
3903 * callint.c:
3904 * bytecode.c:
3905 * buffer.c:
3906 * atimer.c: Include setjmp.h. (Bug#4643)
3907
3908 2009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
3909
3910 Remove leftover table unibyte_to_multibyte_table.
3911 * character.c (unibyte_to_multibyte_table): Remove.
3912 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
3913 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
3914 * character.h (UNIBYTE_TO_CHAR): New macro.
3915 (MAKE_CHAR_MULTIBYTE): Use it.
3916 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
3917 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
3918 (message_dolog, set_message_1):
3919 * search.c (Freplace_match):
3920 * editfns.c (Fcompare_buffer_substrings):
3921 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
3922 (concat):
3923 * insdel.c (copy_text, count_size_as_multibyte):
3924 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
3925 * term.c (produce_glyphs):
3926 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
3927 * regex.c (RE_CHAR_TO_MULTIBYTE):
3928 * cmds.c (internal_self_insert):
3929 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
3930
3931 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
3932
3933 2009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
3934
3935 * puresize.h (BASE_PURESIZE): Increase to 1310000.
3936
3937 2009-10-16 Juanma Barranquero <lekktu@gmail.com>
3938
3939 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
3940
3941 2009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
3942
3943 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
3944 still needed under Tiger.
3945
3946 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
3947
3948 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
3949 __Apple__.
3950
3951 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
3952
3953 2009-10-15 Kenichi Handa <handa@m17n.org>
3954
3955 * print.c (print_object): Escape a symbol like "2E10" too.
3956
3957 2009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
3958
3959 Cleanups and changes for 64-bit compile under Snow Leopard.
3960 Based on suggestions by Erik Charlebois.
3961
3962 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
3963
3964 * nsfont.m (ns_char_width): Replace deprecated call.
3965 (ns_findfonts, nsfont_list_family): Use long format in printf, and
3966 cast argument.
3967 (nsfont_open): Use ns_char_width() everywhere.
3968 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
3969
3970 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
3971
3972 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
3973 where appropriate.
3974
3975 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
3976 where appropriate.
3977 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
3978 Use stringWithUTF8String.
3979 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
3980
3981 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
3982 Add formal protocol mention to inheritance.
3983 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
3984
3985 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
3986 Fix printf format.
3987 (ns_query_color): Use CGFloat where appropriate.
3988 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
3989 (EmacsScroller-mouseDown:): Use long format in printf, and cast
3990 argument.
3991
3992 * config.in (NS_HAVE_NSINTEGER): Drop.
3993
3994 * dbusbind.c (dbus-method-return-internal)
3995 (dbus-method-error-internal): Use long format in printf, and cast
3996 argument.
3997
3998 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
3999 in printf, and cast argument.
4000
4001 * process.c (list_processes_1): Use long format in printf, and
4002 cast argument.
4003
4004 2009-10-11 Glenn Morris <rgm@gnu.org>
4005
4006 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
4007
4008 2009-10-08 Jan Djärv <jan.h.d@swipnet.se>
4009
4010 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
4011 menu bar with a small width so it doesn't enlarge the frame.
4012
4013 2009-10-08 Juanma Barranquero <lekktu@gmail.com>
4014
4015 * fontset.c (Fset_fontset_font): Fix typos in error messages.
4016
4017 2009-10-06 Glenn Morris <rgm@gnu.org>
4018
4019 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
4020 SOME_MACHINE_LISP (this enters indirectly via DOC).
4021
4022 2009-10-05 Eli Zaretskii <eliz@gnu.org>
4023
4024 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
4025
4026 2009-10-04 Eli Zaretskii <eliz@gnu.org>
4027
4028 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
4029 Doc fix.
4030
4031 2009-10-03 Martin Rudalics <rudalics@gmx.at>
4032
4033 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
4034
4035 2009-10-02 Michael Albinus <michael.albinus@gmx.de>
4036
4037 * lisp.h (Qdelete_directory_internal): Remove, because it is not
4038 used anymore outside fileio.c.
4039
4040 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
4041
4042 2009-10-01 Juanma Barranquero <lekktu@gmail.com>
4043
4044 * lisp.h (Qdelete_directory_internal):
4045 Declare, instead of Qdelete_directory.
4046
4047 * w32fns.c (Fsystem_move_file_to_trash): Use it.
4048
4049 2009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
4050
4051 * eval.c (Fcalled_interactively_p): Add `kind' argument.
4052
4053 2009-10-01 Michael Albinus <michael.albinus@gmx.de>
4054
4055 * fileio.c (Fdelete_directory_internal): Rename from
4056 Fdelete_directory. It is not a command anymore. It has no file
4057 name handler.
4058
4059 2009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
4060
4061 * xdisp.c (get_next_display_element): Use an enum in last change.
4062
4063 2009-09-28 Kenichi Handa <handa@m17n.org>
4064
4065 * xdisp.c (get_next_display_element): Pay attention to
4066 unibyte_display_via_language_environment in handling
4067 Vnobreak_char_display.
4068
4069 2009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
4070
4071 * nsterm.h (ns_app_name): New extern variable.
4072
4073 * nsterm.m (ns_app_name): New variable.
4074 (ns_term_init): Set and use it.
4075 (ns_term_shutdown): Use it.
4076
4077 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
4078 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
4079
4080 * nsfns.m (ns_set_name_iconic, ns_set_name)
4081 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
4082 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
4083
4084 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
4085 Remove double-casting in client_data comparison.
4086
4087 2009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4088
4089 * keyboard.c (make_lispy_event): Remember last wheel direction.
4090 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
4091
4092 2009-09-26 Glenn Morris <rgm@gnu.org>
4093
4094 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
4095 internal.elc. Add term/pc-win.elc.
4096 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
4097 term/x-win.elc.
4098 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
4099 term/w32-win.elc.
4100 (NS_SUPPORT): New.
4101 (lisp): Add NS_SUPPORT.
4102 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
4103
4104 2009-09-25 David Reitter <david.reitter@gmail.com>
4105
4106 * nsmenu.m (EmacsMenu-clear): Recognize application menu
4107 on Mac OS X 10.6+ (bug#4513).
4108
4109 2009-09-24 Juanma Barranquero <lekktu@gmail.com>
4110
4111 * frame.c (xrdb_get_resource): Return nil for empty string resources;
4112 some parts of Emacs code (like font selection) don't grok them.
4113 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
4114
4115 2009-09-24 Andreas Schwab <schwab@redhat.com>
4116
4117 * coding.c (decode_coding_iso_2022): Fix operator precedence.
4118
4119 2009-09-24 Juanma Barranquero <lekktu@gmail.com>
4120
4121 * dired.c (Fdirectory_files): Fix typo in docstring.
4122
4123 2009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
4124
4125 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
4126 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
4127 (EmacsScroller-setPosition:portion:whole:): Remove -display call
4128 under GNUstep.
4129 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
4130
4131 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
4132 glyph advancement.
4133
4134 2009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
4135
4136 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
4137 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
4138
4139 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
4140 deleted (bug #4492).
4141
4142 * nsfont.m (Vns_reg_to_script): New lisp variable.
4143 (syms_of_nsfont): Declare it.
4144 (ns_registry_to_script): New function.
4145 (ns_get_req_script): Call it.
4146 (ns_findfonts): Don't give up on non-unicode registry.
4147
4148 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
4149
4150 2009-09-20 Tom Tromey <tromey@redhat.com>
4151
4152 * eval.c (find_handler_clause): Make stack-trace-on-error work in
4153 batch mode (bug#4228).
4154
4155 2009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
4156
4157 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
4158 carefully. (Bug #4339)
4159
4160 2009-09-18 Chong Yidong <cyd@stupidchicken.com>
4161
4162 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
4163
4164 2009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
4165
4166 * emacs.c (inhibit_x_resources): Update doc string for NS.
4167 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
4168 legacy code for -NXHost. Fix error printf in daemon case.
4169
4170 * nsterm.h (ns_no_defaults): Remove.
4171
4172 * nsterm.m (ns_no_defaults): Remove.
4173 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
4174 (ns_use_qd_smoothing): Remove legacy variable.
4175 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
4176 don't update the NSWindow itself.
4177 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
4178 state detection and store user rect ourselves. (Bug #3581)
4179
4180 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
4181 ns_use_qd_smoothing.
4182
4183 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
4184 platform versions. Drop support for emacs-20-style face specs.
4185 (x-close-connection): Drop PSFlush() under OS X.
4186 (x-focus-frame): Activate the app first. (Bug #4180)
4187
4188 2009-09-17 Juanma Barranquero <lekktu@gmail.com>
4189
4190 * emacs.c (inhibit_x_resources): New variable.
4191 (main) [HAVE_NS]: Don't process --quick command line option.
4192 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
4193
4194 * lisp.h (inhibit_x_resources): Declare it extern.
4195
4196 * w32reg.c (x_get_string_resource):
4197 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
4198
4199 2009-09-17 Eli Zaretskii <eliz@gnu.org>
4200
4201 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
4202 Add lisp/term/internal.elc.
4203
4204 2009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
4205
4206 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
4207 (bug#4461).
4208
4209 2009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
4210
4211 * puresize.h (BASE_PURESIZE): Increase to 1290000.
4212
4213 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
4214 (OBJECTS_MACHINE): Remove, unused.
4215
4216 2009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
4217
4218 * frame.c (x_get_resource_string): Remove unused.
4219
4220 2009-09-15 Jan Djärv <jan.h.d@swipnet.se>
4221
4222 * xterm.c (x_new_font): Call change_frame_size before calling
4223 x_set_window_size, in case frame size won't change.
4224
4225 * frame.c (x_set_font): Remove dead code.
4226
4227 2009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
4228
4229 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
4230
4231 2009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
4232
4233 * lread.c (Fload): Don't output a message after loading an obsolete
4234 package any more (done in Lisp now).
4235
4236 2009-09-12 Chong Yidong <cyd@stupidchicken.com>
4237
4238 * fns.c (syms_of_fns): Doc fix (Bug#4227).
4239
4240 2009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
4241
4242 * keymap.c (Fwhere_is_internal): Use nconc2.
4243
4244 2009-09-11 Alan Mackenzie <acm@muc.de>
4245
4246 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
4247 batch mode.
4248
4249 2009-09-11 Andreas Schwab <schwab@linux-m68k.org>
4250
4251 * xdisp.c (display_mode_element): Detect cycles.
4252
4253 2009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
4254
4255 * keymap.c (where_is_internal): Don't erroneously return nil right after
4256 filling the cache.
4257 (where_is_internal_1): Fix up typo.
4258
4259 2009-09-11 Glenn Morris <rgm@gnu.org>
4260
4261 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
4262 share a common doc-string.
4263
4264 2009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
4265
4266 * keymap.c (get_keymap): Return the actual keymap symbol rather than
4267 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
4268
4269 * keymap.c (QCadvertised_binding): New constant.
4270 (syms_of_keymap): Initialize it.
4271 (Fwhere_is_internal): Try and use bindings from :advertised-binding
4272 if applicable.
4273
4274 2009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
4275
4276 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
4277 (parse_menu_item): Streamline since bindings are recomputed all the
4278 time anyway. Don't bother checking Vdefine_key_rebound_commands any
4279 more and don't support lmenu's menu-alias any more either.
4280
4281 * keymap.c (where_is_internal_data): Make noindirect a boolean.
4282 (where_is_internal): Strip it down to only traverse the keymaps.
4283 Move the cache handling from Fwhere_is_internal to here.
4284 (Fwhere_is_internal): Move the handling of remapping and the choice of
4285 the best binding from where_is_internal to here.
4286 Unify the cached/noncached paths, so remapping is also handled
4287 correctly when the cache is used, and so the cache can be used to
4288 speed up remap-handling when applicable.
4289 Give preference to non-remapped bindings.
4290 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
4291 non-remapped bindings.
4292 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
4293 command remapping.
4294
4295 * xdisp.c (display_mode_element): Move list length limit from 50 to
4296 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
4297
4298 2009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
4299
4300 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
4301
4302 2009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
4303
4304 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
4305 (Bug#4334)
4306
4307 * keymap.c (where_is_internal): Filter out shadowed remappings.
4308 Assume that where_is_internal returns unshadowed bindings to simplify
4309 the code and get rid of the gotos. Use ASIZE.
4310
4311 2009-09-04 Jan Djärv <jan.h.d@swipnet.se>
4312
4313 * xterm.c (x_focus_changed): If we get a focusout and pointer
4314 is invisible, make it visible.
4315
4316 * xterm.h: Remove condition for declaration of
4317 x_*_window_to_frame.
4318
4319 2009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
4320
4321 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
4322 initial terminal as well.
4323
4324 2009-09-02 Jan Djärv <jan.h.d@swipnet.se>
4325
4326 * xterm.h: Rename x_non_menubar_window_to_frame to
4327 x_menubar_window_to_frame.
4328
4329 * xterm.c: Remove declarations also in xterm.h.
4330 (XTmouse_position): Do not return valid positions
4331 for clicks in the menubar and the toolbar for Gtk+.
4332
4333 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
4334 if the widget for the event has the same top level as a frame,
4335 return the frame.
4336 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
4337 internal windows, bug #4122.
4338 (x_non_menubar_window_to_frame): Remove.
4339
4340 2009-09-02 Glenn Morris <rgm@gnu.org>
4341
4342 * buffer.c (default-major-mode): Move most of the doc from here...
4343 (major-mode): ... to here.
4344
4345 2009-08-30 Nick Roberts <nickrob@snap.net.nz>
4346
4347 * process.c (wait_reading_process_output): Keep the descriptor
4348 when pty is used by a non-child process, e.g., in I/O buffer of
4349 GDB this allows inferior to be restarted.
4350
4351 2009-08-29 Eli Zaretskii <eliz@gnu.org>
4352
4353 * xdisp.c (redisplay_internal): Remove redundant test and collapse
4354 both branches into one.
4355
4356 2009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
4357
4358 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
4359 (main): Use enable-multibyte-characters rather than
4360 default-enable-multibyte-characters. Output a warning message when
4361 running a unibyte session.
4362
4363 2009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4364
4365 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
4366 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
4367 (copy_data_segment): Also copy __program_vars section.
4368 (copy_dyld_info) [LC_DYLD_INFO]: New function.
4369 (dump_it) [LC_DYLD_INFO]: Use it.
4370
4371 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
4372
4373 2009-08-28 Eli Zaretskii <eliz@gnu.org>
4374
4375 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
4376 $(SRC)/buildobj.h.
4377 (buildobj.h): Renamed from $(SRC)/buildobj.h.
4378 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
4379 $(SRC)/buildobj.h.
4380 (clean): Add buildobj.h.
4381
4382 2009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
4383
4384 * print.c (print_object): Set escapeflag to 1 when printing
4385 hashtable keys and values.
4386
4387 2009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
4388
4389 * lread.c (read_integer): Use doubles (and potentially return a float
4390 number) as we do in string-to-number.
4391 (read1): Use strtol to read integers, signal errors on strtol's
4392 overflow and use floats if strtol's output is too large for
4393 Elisp integers.
4394
4395 2009-08-27 Eli Zaretskii <eliz@gnu.org>
4396
4397 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
4398 (make-buildobj-SH): Fix last change.
4399 (SRC): Move to before where it's first used.
4400
4401 2009-08-27 Kenichi Handa <handa@m17n.org>
4402
4403 * process.c (send_process): Use encode_coding_object instead of
4404 encode_coding_string to perform eol-conversion even if the string
4405 is unibyte.
4406
4407 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
4408 character.
4409
4410 * cmds.c (Fself_insert_command): Avoid unnecessay
4411 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
4412
4413 2009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
4414
4415 * callproc.c (Fcall_process): Remove always true #if.
4416
4417 * lisp.h: Replace #if 0 code for checking with text pointing to
4418 the --enable-checking configure flag.
4419
4420 * emacs.c (main): Mention the --enable-profiling configure flag
4421 instead of using CFLAGS.
4422
4423 2009-08-26 Ken Raeburn <raeburn@raeburn.org>
4424
4425 * Makefile.in (buildobj.h): New target.
4426 (doc.o): Depend on it.
4427 (temacs${EXEEXT}): Don't generate buildobj.lst.
4428 (mostlyclean): Delete buildobj.h, not buildobj.lst.
4429 * makefile.w32-in ($(SRC)/buildobj.h): New target.
4430 ($(BLD)/doc.$(O)): Depend on it.
4431 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
4432 provided by Eli Zaretskii.)
4433 ($(TEMACS)): Don't generate buildobj.lst.
4434 * doc.c: Include buildobj.h.
4435 (buildobj): New static variable.
4436 (Fsnarf_documentation): Use it, instead of opening and reading
4437 buildobj.lst.
4438
4439 2009-08-25 Michael Albinus <michael.albinus@gmx.de>
4440
4441 * dbusbind.c (Fdbus_call_method)
4442 (Fdbus_call_method_asynchronously): Use English numeric format for
4443 timeout values in doc string.
4444
4445 2009-08-25 Kenichi Handa <handa@m17n.org>
4446
4447 * alloc.c (mark_char_table): New function.
4448 (mark_object): Use mark_char_table for a char-table.
4449
4450 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
4451 (CHAR_TABLE_REF): Use it.
4452
4453 2009-08-23 Ken Raeburn <raeburn@raeburn.org>
4454
4455 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
4456 before invoking the newly build emacs to check for load-path
4457 shadowing.
4458
4459 2009-08-22 Glenn Morris <rgm@gnu.org>
4460
4461 * Makefile.in (bootstrap_exe): New variable.
4462 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
4463 Use ${bootstrap_exe}.
4464
4465 2009-08-22 Eli Zaretskii <eliz@gnu.org>
4466
4467 * coding.h (encode_coding_string): Don't encode unibyte strings.
4468 (Bug#4047)
4469
4470 2009-08-22 Michael Albinus <michael.albinus@gmx.de>
4471
4472 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
4473
4474 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
4475 intended as hotfix only.
4476 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
4477
4478 2009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
4479
4480 * nsterm.m (ns_get_color): Update documentation properly for last
4481 change, and clean up loose ends in the code left by it. Fix
4482 longstanding bug with 16-bit hex parsing, and add support for
4483 yet another X11 format (rgb:r/g/b) for compatibility.
4484 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
4485 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
4486
4487 2009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
4488
4489 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
4490
4491 2009-08-20 Michael Albinus <michael.albinus@gmx.de>
4492
4493 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
4494 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
4495 (xd_initialize, xd_pending_messages): Check, whether
4496 $DBUS_SESSION_BUS_ADDRESS is set.
4497
4498 2009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4499
4500 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
4501
4502 * nsterm.m (ns_get_color): Remove incompatible color formats again.
4503
4504 2009-08-20 Glenn Morris <rgm@gnu.org>
4505
4506 * emacs.c (system-type): Doc fix.
4507
4508 2009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
4509
4510 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
4511 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
4512
4513 2009-08-18 Michael Albinus <michael.albinus@gmx.de>
4514
4515 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
4516 New functions.
4517 (xd_initialize): Revert change from 2009-08-16.
4518
4519 2009-08-18 Kenichi Handa <handa@m17n.org>
4520
4521 * fontset.c (Ffontset_font): If a nil element is found in a
4522 font-group vector, return nil.
4523
4524 2009-08-17 Chong Yidong <cyd@stupidchicken.com>
4525
4526 * process.c (status_notify): Don't perform redisplay.
4527 (Fdelete_process, list_processes_1, process_send_signal):
4528 Expliticly perform redisplay.
4529 (wait_reading_process_output): Always check process status, but
4530 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
4531
4532 2009-08-17 Ken Raeburn <raeburn@raeburn.org>
4533
4534 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
4535 (XFLOAT_INIT): New macro for storing a float value.
4536 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
4537 * fns.c (sxhash): Copy out the value of a float in order to
4538 examine its bytes.
4539 * dbusbind.c (xd_append_arg): Likewise.
4540
4541 * emacs.c (main): Don't call syms_of_data twice.
4542
4543 2009-08-16 Michael Albinus <michael.albinus@gmx.de>
4544
4545 * dbusbind.c (xd_initialize): Add connection file descriptor to
4546 input_wait_mask, in order to let select() detect, whether a new
4547 message has been arrived.
4548 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
4549
4550 2009-08-15 Michael Albinus <michael.albinus@gmx.de>
4551
4552 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
4553 New functions.
4554
4555 * lisp.h (xd_pending_messages): Declare.
4556
4557 * keyboard.c (readable_events): Call xd_pending_messages.
4558
4559 2009-08-15 Chong Yidong <cyd@stupidchicken.com>
4560
4561 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
4562
4563 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
4564
4565 * buffer.c (set_buffer_internal_1)
4566 (swap_out_buffer_local_variables): Check for unbound local
4567 variables (Bug#4138).
4568
4569 2009-08-14 Eli Zaretskii <eliz@gnu.org>
4570
4571 * process.c (create_pty): Fix last change.
4572
4573 2009-08-13 Chong Yidong <cyd@stupidchicken.com>
4574
4575 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
4576 (xbm_load_image): Caller changed.
4577 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
4578
4579 2009-08-13 Nick Roberts <nickrob@snap.net.nz>
4580
4581 * process.c (create_pty): New function.
4582 (Fstart_process): Use it to allow Emacs to just associate a pty
4583 with the buffer. See associated change in gdb-mi.el.
4584 (list_processes_1): Deal with no program name.
4585 (start_process_unwind): Use pid == -2 to mean no process.
4586
4587 2009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
4588
4589 * cmds.c (nonundocount): New global variable.
4590 (keys_of_cmds): Initialize it.
4591 (Fself_insert_command): Use it to combine upto 20 sequential chars
4592 into a single undo entry, just like the Qself_insert_command code in
4593 keyboard.c does.
4594 Call frame_make_pointer_invisible, also like the Qself_insert_command
4595 code in keyboard.c does.
4596 * keyboard.c (command_loop_1): Use the new global nonundocount rather
4597 than its own local replacement for it.
4598
4599 2009-08-10 Ken Raeburn <raeburn@raeburn.org>
4600
4601 * fns.c (concat): Don't re-set string length to its current value.
4602
4603 * coding.h (decode_coding_string, encode_coding_string):
4604 Use SBYTES macro.
4605
4606 * doprnt.c (doprnt_lisp): Delete unused function.
4607 (doprnt): Merge with doprnt1, discarding lispstrings code.
4608 * lisp.h (doprnt_lisp): Don't declare.
4609
4610 2009-08-07 Juri Linkov <juri@jurta.org>
4611
4612 * puresize.h (BASE_PURESIZE): Increase to 1270000.
4613
4614 2009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
4615
4616 * print.c (syms_of_print): Undo previous change.
4617
4618 2009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
4619
4620 * lread.c (read1, syms_of_lread): Read hashtables back from the
4621 readable format.
4622
4623 * print.c (print_preprocess, print_object): Print hashtables fully
4624 and readably.
4625 (syms_of_print): Provide 'hashtable-print-readable.
4626
4627 2009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
4628
4629 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
4630 no family set.
4631 (nsfont_open): Handle case when entity has no family.
4632
4633 2009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
4634
4635 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
4636 element, not a list, for match case.
4637
4638 2009-07-28 Kenichi Handa <handa@m17n.org>
4639
4640 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
4641 rigidly.
4642
4643 * xfont.c (xfont_list_pattern): Don't ignore the return value of
4644 font_parse_xlfd. Check font properties more rigidly.
4645
4646 2009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
4647
4648 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
4649 bsd-common.h.
4650
4651 2009-07-27 Kenichi Handa <handa@m17n.org>
4652
4653 * xfaces.c (face_with_height): Call font_clear_prop.
4654
4655 2009-07-26 Chong Yidong <cyd@stupidchicken.com>
4656
4657 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
4658
4659 * xterm.c (x_term_init): Use Qx.
4660
4661 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
4662
4663 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4664 (ns_get_color): Revert 2009-07-16 change.
4665
4666 2009-07-25 Eli Zaretskii <eliz@gnu.org>
4667
4668 * lread.c (syms_of_lread) <force_load_messages>: New variable.
4669 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
4670
4671 2009-07-25 Ken Raeburn <raeburn@raeburn.org>
4672
4673 * coding.h (decode_coding_string, encode_coding_string):
4674 Use SCHARS macro.
4675
4676 * lread.c: Rewrite 2009-07-21 changes.
4677 (load_depth): Delete.
4678 (Qload_in_progress): New variable.
4679 (load_unwind): Don't reference load_depth or load_in_progress.
4680 (Fload): Likewise; specbind Qload_in_progress instead.
4681 (init_lread): Don't initialize load_depth.
4682 (syms_of_lread): Initialize and protect Qload_in_progress.
4683
4684 2009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
4685
4686 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
4687
4688 2009-07-23 Yavor Doganov <yavor@gnu.org>
4689
4690 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
4691
4692 2009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
4693
4694 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
4695 Bugs 3792, 3720, 2402.
4696 (ns_lookup_indexed_color): Check for bad index.
4697 (ns_index_color): Init unused slot to 0.
4698 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
4699 Bug 3714, possibly 3082.
4700
4701 2009-07-22 Jason Rumney <jasonr@gnu.org>
4702
4703 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
4704 Position IME window at cursor (Bug#2570).
4705 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
4706 (globals_of_w32fns): Dynamically load functions required above.
4707
4708 * w32term.c (w32_draw_window_cursor): Send message to reposition
4709 any IME window.
4710
4711 2009-07-21 Chong Yidong <cyd@stupidchicken.com>
4712
4713 * fileio.c: Revert 2009-07-16 changes.
4714 (Vauto_save_include_big_deletions): New variable.
4715 (Fdo_auto_save): Disable auto-save only if
4716 auto-save-include-big-deletions is nil.
4717
4718 2009-07-21 Chong Yidong <cyd@stupidchicken.com>
4719
4720 * xdisp.c (move_it_to): For continued lines ending in a tab, take
4721 the overflowed pixels into account (Bug#3879).
4722
4723 2009-07-21 Ken Raeburn <raeburn@raeburn.org>
4724
4725 * lread.c (load_depth): New variable.
4726 (Fload, load_unwind, init_lread): Set it to the load recursion
4727 depth; set load_in_progress as a simple boolean based on the
4728 current load_depth. (Bug#3892)
4729
4730 2009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
4731
4732 * nsfont.m (ns_has_attribute): Remove.
4733 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
4734
4735 2009-07-18 Juri Linkov <juri@jurta.org>
4736
4737 * process.c (Fset_process_query_on_exit_flag): Mention killing
4738 a buffer in docstring.
4739
4740 2009-07-17 Kenichi Handa <handa@m17n.org>
4741
4742 * casetab.c (shuffle): Fix the logic of setting up the cycle.
4743
4744 2009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4745
4746 * nsfns.m (Fns_set_alpha): Remove function.
4747 (syms_of_nsfns): Don't defsubr it.
4748
4749 * nsterm.m (ns_get_color): Remove incompatible color formats.
4750 (ns_color_to_lisp): Generate #rrggbb color format string.
4751
4752 2009-07-16 Richard Stallman <rms@gnu.org>
4753
4754 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
4755 (Fset_buffer_auto_saved): Handle save_length = -2.
4756
4757 2009-07-16 Chong Yidong <cyd@stupidchicken.com>
4758
4759 * xterm.c (Qx_gtk_map_stock): New var.
4760
4761 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
4762 of calling intern each time.
4763
4764 2009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4765
4766 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
4767 does tiling.
4768
4769 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
4770
4771 2009-07-14 Kenichi Handa <handa@m17n.org>
4772
4773 * font.c (font_vconcat_entity_vectors): New function.
4774 (struct font_sort_data): New member font_driver_preference.
4775 (font_compare): Check font_driver_preference.
4776 (font_sort_entities): The format of the first argument changed.
4777 (font_delete_unmatched): Likewise.
4778 (font_list_entities): The return type changed.
4779 (font_select_entity): The format of the second argument changed.
4780 (font_find_for_lface): Adjuste for the above changes.
4781 Don't suppress the checking of C even if the repertory supports it.
4782 (Flist_fonts): Adjust for the above changes.
4783
4784 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
4785 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
4786 Reject a font who has adstyle property that is different from a
4787 langname derived from registry property.
4788 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
4789
4790 2009-07-13 Eli Zaretskii <eliz@gnu.org>
4791
4792 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
4793 local copy of dirfilename.
4794
4795 2009-07-13 Kenichi Handa <handa@m17n.org>
4796
4797 * chartab.c (sub_char_table_ref_and_range): Fix the range check
4798 against max_char.
4799
4800 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
4801 calling XSYMBOL (sym).
4802
4803 2009-07-11 Eli Zaretskii <eliz@gnu.org>
4804
4805 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
4806 New function.
4807 (directory_files_internal) [WINDOWSNT]:
4808 Bind w32-get-true-file-attributes to either t or nil, depending whether
4809 the filesystem of the directory is fast or slow.
4810
4811 * w32.c (logon_network_drive): Don't assume PATH is an absolute
4812 file name.
4813 (is_slow_fs): New function.
4814 (stat): Use it to determine whether to issue more system calls to
4815 get accurate file attributes, when w32-get-true-file-attributes is
4816 `local'.
4817
4818 2009-07-10 Jan Djärv <jan.h.d@swipnet.se>
4819
4820 * xfns.c (Fx_select_font): Remember last font selected in
4821 x_last_font_name and use that the next time. Also try the frame
4822 parameter font-parameter as default to the font dialog.
4823
4824 2009-07-10 Kenichi Handa <handa@m17n.org>
4825
4826 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
4827
4828 2009-07-09 Eli Zaretskii <eliz@gnu.org>
4829
4830 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
4831
4832 * w32.c (stat): Treat UNC file names as residing on remote
4833 drives. (Bug#3542)
4834
4835 2009-07-09 Kenichi Handa <handa@m17n.org>
4836
4837 * fontset.c (fontset_find_font): Fix previous change.
4838
4839 2009-07-08 Michael Albinus <michael.albinus@gmx.de>
4840
4841 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
4842 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
4843 error flag.
4844
4845 2009-07-08 Kenichi Handa <handa@m17n.org>
4846
4847 * fontset.c (fontset_find_font): Fix the logic of handling
4848 charset_matched.
4849 (font_for_char): Delete unused var.
4850 (generate_ascii_font_name): Delete it.
4851
4852 * coding.h (JIS_TO_SJIS2): Fix the code range check.
4853
4854 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
4855 (encode_coding_sjis): Fix the code range check.
4856
4857 2009-07-07 Chong Yidong <cyd@stupidchicken.com>
4858
4859 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
4860 (Fexpand_file_name): Copy string data properly (Bug#3772).
4861
4862 2009-07-07 Jan Djärv <jan.h.d@swipnet.se>
4863
4864 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
4865 first MapNotify.
4866
4867 2009-07-07 Kenichi Handa <handa@m17n.org>
4868
4869 * character.h (unibyte_has_multibyte_table): Delete extern.
4870 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
4871
4872 * charset.c (Fset_charset_priority): Update charset_unibyte.
4873 (syms_of_charset): Initialize charset_unibyte.
4874
4875 * character.c (unibyte_has_multibyte_table): Delete it.
4876 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
4877 charset_unibyte.
4878 (multibyte_char_to_unibyte_safe): Likewise.
4879 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
4880
4881 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
4882 (x_produce_glyphs): Likewise.
4883
4884 * .gdbinit (xcharset): Fix the treating $arg0.
4885
4886 2009-07-04 Eli Zaretskii <eliz@gnu.org>
4887
4888 Emulation of `getloadavg' on MS-Windows.
4889 * w32.c: Include float.h.
4890 (g_b_init_get_native_system_info, g_b_init_get_system_times)
4891 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
4892 (get_native_system_info, get_system_times): New functions.
4893 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
4894 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
4895 (globals_of_w32): Initialize g_b_init_get_native_system_info,
4896 g_b_init_get_system_times, and num_of_processors.
4897
4898 2009-07-03 Jason Rumney <jasonr@gnu.org>
4899
4900 * w32term.c (w32_initialize): Use standard types.
4901
4902 2009-07-03 Eli Zaretskii <eliz@gnu.org>
4903
4904 * dired.c (Ffile_attributes): Decode user and group names by the
4905 locale's encoding. (Bug#3443)
4906
4907 2009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
4908
4909 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
4910 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
4911
4912 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
4913
4914 * term.c (init_tty): Remove spurious #ifdef.
4915
4916 * m/mips.h: Mention this file is also used for netbsd.
4917 * m/pmax.h: Remove file.
4918
4919 2009-07-03 Jan Djärv <jan.h.d@swipnet.se>
4920
4921 * xterm.h (struct x_display_info): Add invisible_cursor.
4922 (struct x_output): Add current_cursor.
4923
4924 * xterm.c (XTtoggle_invisible_pointer): New function.
4925 (x_define_frame_cursor): Don't define cursor if invisible or the
4926 same as before. Set current_cursor.
4927 (x_create_terminal): Set toggle_invisible_pointer_hook.
4928
4929 * xfns.c (make_invisible_cursor): New function.
4930 (x_set_mouse_color): Call make_invisible_cursor.
4931 Set current_cursor.
4932 (x_window): Set current_cursor.
4933
4934 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
4935
4936 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
4937 inserting a character.
4938 (read_avail_input): Call frame_make_pointer_visible.
4939
4940 * frame.c (Vmake_pointer_invisible): New variable.
4941 (frame_make_pointer_invisible, frame_make_pointer_visible):
4942 New functions.
4943 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
4944
4945 * frame.h: Declare frame_make_pointer_invisible and
4946 frame_make_pointer_visible.
4947 (struct frame): Add pointer_invisible.
4948
4949 2009-07-02 Jan Djärv <jan.h.d@swipnet.se>
4950
4951 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
4952 frame isn't visible.
4953 (xg_frame_resized): If width/height is -1, get size of window
4954 from X server.
4955
4956 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
4957 for MapNotify.
4958
4959 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
4960 here or call change_frame_size. Just call flush_and_sync.
4961 (flush_and_sync): Reintroduce.
4962
4963 2009-07-01 Jan Djärv <jan.h.d@swipnet.se>
4964
4965 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
4966
4967 * xterm.c (x_handle_net_wm_state): Also look for sticky.
4968 (x_term_init): Initialize Xatom_net_wm_state_sticky.
4969
4970 * frame.h: Declare Qsticky.
4971
4972 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
4973
4974 * nsfns.m (ns_frame_parm_handlers): Ditto.
4975
4976 * frame.c: Declare Qsticky.
4977 (frame_parms): Add sticky.
4978
4979 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
4980
4981 * xterm.h: Declare x_set_sticky.
4982
4983 * xterm.c (x_set_sticky): New function.
4984
4985 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
4986 (xg_tool_bar_menu_proxy): Attach enter/leave events to
4987 xg_tool_bar_proxy_help_callback.
4988
4989 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
4990
4991 * frame.c: Qmaximized is new.
4992 (x_set_frame_parameters): Do not handle fullscreen specially.
4993 Only set width and height if explicitly set.
4994 (x_set_fullscreen): Handle Qmaximized.
4995 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
4996 (syms_of_frame): Initialize Qmaximized.
4997
4998 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
4999 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
5000
5001 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
5002 for Expose event. Add call to x_check_fullscreen for MapNotify event.
5003 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
5004 set gravity to NorthWestGravity when USE_GTK.
5005 (set_wm_state): New function.
5006 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
5007 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
5008 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
5009 or the case when no window manager is running. That means remove calls
5010 to x_real_positions and x_fullscreen_adjust.
5011
5012 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
5013 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
5014 flush_and_sync.
5015 (xg_height_changed): New function.
5016 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
5017 and gtk_window_set_policy. Set frame gravity after parsing the
5018 geometry string.
5019 (xg_update_frame_menubar, free_frame_menubar)
5020 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
5021 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
5022 Remove calls to xg_frame_set_char_size.
5023
5024 2009-07-01 Kenichi Handa <handa@m17n.org>
5025
5026 * keyboard.c (decode_keyboard_code): New function.
5027 (tty_read_avail_input): Decode the input bytes if necessary.
5028
5029 * coding.c (setup_coding_system):
5030 Initialize coding->carryover_bytes to 0.
5031 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
5032 use Qno_conversion.
5033
5034 2009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5035
5036 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
5037
5038 2009-06-30 Chong Yidong <cyd@stupidchicken.com>
5039
5040 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
5041
5042 2009-06-30 Jason Rumney <jasonr@gnu.org>
5043
5044 * w32term.c (w32_initialize): Use GetModuleHandle for library that
5045 is already loaded.
5046 Set user model ID if supported (bug#1849).
5047
5048 2009-06-29 Jim Meyering <meyering@redhat.com>
5049
5050 Remove useless if-before-xfree test.
5051 * nsfont.m (nsfont_close): Remove useless test.
5052 * term.c (delete_tty): Likewise.
5053 * w32.c (system_process_attributes): Likewise.
5054 * w32font.c (w32font_close): Likewise.
5055 * xfaces.c (x_free_gc): Likewise.
5056 * xselect.c (buffer): Likewise.
5057
5058 2009-06-28 Andreas Schwab <schwab@linux-m68k.org>
5059
5060 * process.c (send_process): Keep decoded string in a local
5061 variable and protect it from GC. (Bug#3521)
5062
5063 2009-06-28 Eli Zaretskii <eliz@gnu.org>
5064
5065 * term.c (create_tty_output) [MSDOS]: #ifdef away.
5066 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
5067
5068 2009-06-28 Chong Yidong <cyd@stupidchicken.com>
5069
5070 * xdisp.c (start_display, handle_face_prop)
5071 (move_it_vertically_backward, cursor_row_fully_visible_p)
5072 (redisplay_window, try_window_id, produce_image_glyph):
5073 Delete some #ifdef-ed out code chunks that are now obsolete.
5074
5075 * xterm.c (x_update_window_begin, x_new_focus_frame)
5076 (x_scroll_bar_handle_click, handle_one_xevent)
5077 (handle_one_xevent, XTread_socket, x_focus_on_frame)
5078 (x_make_frame_visible, x_make_frame_invisible)
5079 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
5080 code chunks that are now obsolete.
5081
5082 2009-06-28 Michael Albinus <michael.albinus@gmx.de>
5083
5084 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
5085 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
5086 for hours, when optimzation is enabled.
5087 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
5088 (xd_read_message): Make them static.
5089
5090 2009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
5091
5092 * term.c (turn_on_face): Allow simultaneously bold and dim
5093 terminal faces (Bug#3530).
5094
5095 2009-06-27 Chong Yidong <cyd@stupidchicken.com>
5096
5097 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
5098
5099 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
5100 truncation glyphs (Bug#3686).
5101
5102 2009-06-27 Glenn Morris <rgm@gnu.org>
5103
5104 * m/pmax.h: Restore file, with only netbsd portions.
5105
5106 2009-06-26 David Reitter <david.reitter@gmail.com>
5107
5108 * nsterm.m (keydown): Avoid infinite loop.
5109
5110 2009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
5111
5112 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
5113 the arg FORCE_SYMBOL.
5114
5115 2009-06-25 Kenichi Handa <handa@m17n.org>
5116
5117 * fontset.c (fontset_find_font): When a usable rfont_def is found
5118 in a fallback font-group, make it the first element of the group.
5119
5120 2009-06-24 Chong Yidong <cyd@stupidchicken.com>
5121
5122 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
5123
5124 2009-06-24 Kenichi Handa <handa@m17n.org>
5125
5126 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
5127 set for C.
5128 (fontset_font): Record the availability of a font for C both in
5129 the realized fontsets of the current one and the default one.
5130
5131 2009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
5132
5133 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
5134 conditional, it is always defined on AIX.
5135
5136 2009-06-23 Miles Bader <miles@gnu.org>
5137
5138 * window.c (Vrecenter_redisplay): New variable.
5139 (syms_of_window): Initialize it.
5140 (Qtty): New extern declaration.
5141 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
5142
5143 2009-06-23 Jim Meyering <meyering@redhat.com>
5144
5145 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
5146 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
5147 pointer dereferences are guaranteed to be valid.
5148
5149 2009-06-23 Kenichi Handa <handa@m17n.org>
5150
5151 * emacs.c (main): Call init_font ().
5152
5153 * font.h (Vfont_log): Extern it.
5154 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
5155
5156 * font.c (font_sort_entities, font_list_entities)
5157 (font_matching_entity, font_open_entity)
5158 (font_close_object): Change font_add_log to FONT_ADD_LOG.
5159 (Vfont_log): Delete static.
5160 (font_log_env_checked): Delete this variable.
5161 (font_add_log): Don't check font_log_env_checked.
5162 (font_deferred_log): Check Vfont_log.
5163 (init_font): New function.
5164
5165 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
5166
5167 * w32font.c: Change font_add_log to FONT_ADD_LOG.
5168
5169 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
5170
5171 * xfont.c: Change font_add_log to FONT_ADD_LOG.
5172
5173 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
5174 (face_for_char): Don't call font_deferred_log here.
5175 (font_for_char): Likewise.
5176
5177 2009-06-22 Chong Yidong <cyd@stupidchicken.com>
5178
5179 * w32term.c (x_draw_glyph_string): Use the glyph string's width
5180 rather than its background_width for drawing the overline and
5181 underline (Bug#489).
5182
5183 * xterm.c (x_draw_glyph_string): Use the glyph string's width
5184 rather than its background_width for drawing the overline and
5185 underline (Bug#489).
5186 (xg_default_icon_file): New variable.
5187 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
5188 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
5189
5190 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
5191 (load_overlay_strings): Remove externs.
5192 (fast_find_position): Function deleted.
5193 (mouse_face_from_buffer_pos): New function, based on
5194 fast_find_position. Correctly handle before-strings,
5195 display-strings, and after-strings (Bug#1220).
5196 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
5197
5198 2009-06-21 Chong Yidong <cyd@stupidchicken.com>
5199
5200 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
5201 (move_it_in_display_line_to, move_it_in_display_line_to)
5202 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
5203
5204 2009-06-21 Chong Yidong <cyd@stupidchicken.com>
5205
5206 * Branch for 23.1.
5207
5208 2009-06-21 Jason Rumney <jasonr@gnu.org>
5209
5210 * w32term.c (keyboard_codepage): New static variable.
5211 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
5212 (w32_read_socket) [WM_CHAR]: Use it to decode character
5213 input (bug#3237).
5214 (w32_initialize): Initialize it.
5215 (codepage_for_locale): New function.
5216
5217 2009-06-20 Ken Raeburn <raeburn@raeburn.org>
5218
5219 * process.c (status_message): Pass Faset index argument as a lisp
5220 object, so as to work with USE_LISP_UNION_TYPE.
5221
5222 2009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5223
5224 * coding.c (Ffind_coding_systems_region_internal):
5225 Cache checked characters.
5226
5227 2009-06-18 Kenichi Handa <handa@m17n.org>
5228
5229 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
5230
5231 2009-06-18 Andreas Schwab <aschwab@redhat.com>
5232
5233 * xdisp.c (redisplay_internal): Check that the frame is still
5234 live after redisplay of its windows.
5235 (redisplay_windows): Check that the window is still live.
5236
5237 2009-06-17 Andreas Schwab <schwab@linux-m68k.org>
5238
5239 * coding.c (detect_coding_utf_16): Fix previous change.
5240
5241 2009-06-16 Kenichi Handa <handa@m17n.org>
5242
5243 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
5244 UTF-16 by checking the dispersion of Eth and Oth bytes.
5245
5246 2009-06-15 Andreas Schwab <schwab@linux-m68k.org>
5247
5248 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
5249
5250 2009-06-15 Kenichi Handa <handa@m17n.org>
5251
5252 * process.c (status_message): Fix previous change. Be sure to
5253 decode a localized string.
5254
5255 2009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5256
5257 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
5258 add comment explaining why.
5259
5260 2009-06-14 Sidney Markowitz <sidney@sidney.com>
5261
5262 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5263
5264 2009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
5265
5266 * nsfont.m (ns_attribute_value): Remove.
5267 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
5268 (ns_has_attribute): Shrink the normal range.
5269 (ns_findfonts): Don't worry about requested spec in determining
5270 need for synthItal.
5271 (ns_get_covering_families): Retain scriptToFamilies.
5272
5273 2009-06-14 Seiji Zenitani <zenitani@mac.com>
5274
5275 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
5276
5277 2009-06-11 Kenichi Handa <handa@m17n.org>
5278
5279 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
5280 overhang for the static composition case.
5281
5282 2009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5283
5284 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
5285 overhang for the automatic composition case.
5286
5287 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
5288 composition case.
5289
5290 2009-06-10 Chong Yidong <cyd@stupidchicken.com>
5291
5292 * xdisp.c (get_next_display_element): When handling wrap-prefix
5293 and line-prefix, treat \n as a control character (bug#3502).
5294
5295 2009-06-10 Kenichi Handa <handa@m17n.org>
5296
5297 * font.c (font_parse_family_registry): Fix for one-char foundry.
5298 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
5299
5300 2009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
5301
5302 * process.c (status_message): Fix handling of multibyte signal
5303 string (Bug#3499).
5304
5305 2009-06-09 Jim Meyering <meyering@redhat.com>
5306
5307 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
5308 color name is missing.
5309
5310 2009-06-09 Kenichi Handa <handa@m17n.org>
5311
5312 * charset.c (Fmap_charset_chars): In docstring, state clearly that
5313 FROM-CODE and TO-CODE are codepoints of CHARSET.
5314
5315 2009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
5316
5317 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
5318
5319 2009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
5320
5321 Changes to support :script/:lang/:otf in NS font driver.
5322 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
5323 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
5324 indicate not part of font driver interface, and change callers.
5325 (ns_get_family): Remove pointless null check.
5326 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
5327 ns_spec_to_descriptor, ns_descriptor_to_entity.
5328 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
5329 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
5330 (ns_spec_to_descriptor, ns_descriptor_to_entity)
5331 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
5332 (ns_get_req_script, ns_accumulate_script_ranges)
5333 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
5334 New functions.
5335 (nsfont_list, nsfont_match): Use ns_findfonts.
5336 (nsfont_open): Use font descriptor instead of traits.
5337 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
5338 (dump_glyphstring): Rename to ns_dump_glyphstring.
5339
5340 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
5341
5342 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
5343
5344 * fontset.c (fontset_from_font): Remove NS-specific code.
5345
5346 2009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
5347
5348 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
5349 nonactive windows.
5350
5351 2009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
5352
5353 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
5354
5355 2009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
5356
5357 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
5358
5359 2009-06-07 Chong Yidong <cyd@stupidchicken.com>
5360
5361 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
5362 account for the overflowing of newlines into the last glyph on the
5363 display line (Bug#3482).
5364
5365 2009-06-05 David Reitter <david.reitter@gmail.com>
5366
5367 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
5368 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
5369 Fns_selection_exists_p, Fns_selection_owner_p.
5370
5371 2009-06-03 Jason Rumney <jasonr@gnu.org>
5372
5373 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
5374 available. (Bug#3379)
5375
5376 2009-05-29 Kenichi Handa <handa@m17n.org>
5377
5378 * coding.c (get_translation_table):
5379 Check Venable_character_translation.
5380
5381 2009-05-26 David Reitter <david.reitter@gmail.com>
5382
5383 * nsterm.m (ns_raise_frame): Only raise frame if visible.
5384 (x_make_frame_visible): Move frame to front rather than calling
5385 ns_raise_frame().
5386 (keyDown:): Do not swallow events that aren't re-sent if frame
5387 isn't key window.
5388 (drawRect:): Do not set visibility/iconified flags because
5389 drawRect may be called by NSView even if the frame is hidden.
5390
5391 * nsfns.m (Fx_create_frame): Follow other ports in
5392 determining visibility; default to t. Ensure async_visible is set.
5393
5394 2009-05-23 Eli Zaretskii <eliz@gnu.org>
5395
5396 * dired.c (Ffile_attributes): Doc fix.
5397
5398 2009-05-22 Chong Yidong <cyd@stupidchicken.com>
5399
5400 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
5401
5402 2009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
5403
5404 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
5405 and xfont_scratch_props.
5406 (syms_of_xfont): Do it here instead.
5407 (xfont_find_ccl_program): Delete, unused.
5408 (xfont_open): Delete unused var `i'.
5409
5410 2009-05-21 Kenichi Handa <handa@m17n.org>
5411
5412 * fontset.c (Qlatin): Don't make it static.
5413
5414 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
5415 New functions.
5416 (xfont_scripts_cache, xfont_scratch_props): New variables.
5417 (Qlatin, Vscalable_fonts_allowed): Extern it.
5418 (xfont_list_pattern): Argument changed. Callers changed.
5419 Check Vscalable_fonts_allowed. Check the support of a script.
5420 (xfont_list): Don't reject a font spec with :script property.
5421 (xfont_has_char): Fix setting of encoding.
5422 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
5423 xfont_scratch_props.
5424
5425 2009-05-19 Kenichi Handa <handa@m17n.org>
5426
5427 * font.c (font_sort_entities): Rename from font_sort_entites.
5428 Callers changed.
5429
5430 2009-05-18 Kenichi Handa <handa@m17n.org>
5431
5432 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
5433
5434 2009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
5435
5436 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
5437 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
5438
5439 2009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5440
5441 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
5442 (x_delete_terminal): Dissociate resource database from display and
5443 then call XrmDestroyDatabase before closing display.
5444
5445 2009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
5446
5447 * nsterm.m (ns_read_socket): Remove unused variable.
5448 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
5449 whether selected frame is viable before raising it (based on patch
5450 by David Reitter), and improve commentary.
5451 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
5452
5453 2009-05-15 Kenichi Handa <handa@m17n.org>
5454
5455 * font.c (Ffont_spec): Check arguments.
5456
5457 2009-05-14 Chong Yidong <cyd@stupidchicken.com>
5458
5459 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
5460 weight when testing attributes (Bug#3282).
5461
5462 2009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5463
5464 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
5465 what we expect to get in the next ConfigureNotify event.
5466
5467 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
5468 before Xft one (Bug#1696).
5469
5470 2009-05-07 David Reitter <david.reitter@gmail.com>
5471
5472 * nsfns.m (Fx_display_planes): Compute bitplanes using
5473 NSBitsPerPixelFromDepth (Bug#3207).
5474
5475 2009-05-10 Chong Yidong <cyd@stupidchicken.com>
5476
5477 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
5478
5479 2009-05-10 Ulrich Mueller <ulm@gentoo.org>
5480
5481 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
5482
5483 2009-05-07 David Reitter <david.reitter@gmail.com>
5484
5485 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
5486 Respect mouse face background.
5487
5488 2009-05-07 David Reitter <david.reitter@gmail.com>
5489
5490 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
5491 Mouse movement/highlight: bracket drawing operations
5492 in ns_update_begin and ns_update_end.
5493
5494 2009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
5495
5496 * nsfns.m (ns_get_screen): Rewrite.
5497 Don't presume selected-frame is of type `ns'.
5498
5499 * font.c (font_update_drivers): Sanity fallback to avoid disabling
5500 all drivers.
5501
5502 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
5503
5504 2009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5505
5506 * keyboard.h (add_user_signal): Fix typo in extern.
5507
5508 * lisp.h (add_user_signal): Remove extern.
5509
5510 * unexelf.c (unexec): Consider a section to precede the .bss section
5511 if its addresses overlap that of .bss.
5512 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
5513 instead of dumping process.
5514
5515 2009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
5516
5517 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
5518
5519 2009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
5520
5521 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
5522
5523 2009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
5524
5525 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
5526 any statements.
5527
5528 2009-05-02 Andreas Schwab <schwab@linux-m68k.org>
5529
5530 * process.c (read_process_output): Make sure the current buffer is
5531 always restored.
5532
5533 * coding.c (record_conversion_result): Don't modify
5534 Vlast_code_conversion_error for successful result.
5535 (alloc_destination): Don't clobber conversion result. (Bug#1650)
5536
5537 2009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
5538
5539 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
5540 (load_charset_map): Remove unnecessary code.
5541
5542 2009-04-30 David Reitter <david.reitter@gmail.com>
5543
5544 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
5545 through f24.
5546
5547 2009-04-30 Chong Yidong <cyd@stupidchicken.com>
5548
5549 * xfaces.c (face_at_buffer_position): New arg base_face_id.
5550
5551 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
5552 face_at_buffer_position.
5553 (face_before_or_after_it_pos, get_next_display_element)
5554 (note_mouse_highlight): Update face_at_buffer_position call.
5555
5556 * term.c (term_mouse_highlight):
5557 * msdos.c (IT_note_mouse_highlight):
5558 * fontset.c (Finternal_char_font):
5559 * font.c (font_at, font_range): Update face_at_buffer_position call.
5560
5561 * dispextern.h (face_at_buffer_position): Update prototype.
5562
5563 2009-04-30 Kenichi Handa <handa@m17n.org>
5564
5565 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
5566
5567 2009-04-29 Andreas Schwab <schwab@linux-m68k.org>
5568
5569 * callproc.c (Fcall_process): Fix GC protection. Make sure
5570 current buffer is always restored.
5571
5572 2009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5573
5574 * atimer.c (init_atimer): Also clear stopped_atimers.
5575
5576 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
5577
5578 * process.c (create_process): Clean up merger residues of
5579 2008-07-17 change.
5580
5581 2009-04-29 Ulrich Mueller <ulm@gentoo.org>
5582
5583 * lread.c (Vread_circle): New variable.
5584 (read1): Disable recursive read if Vread_circle is nil.
5585
5586 2009-04-29 Kenichi Handa <handa@m17n.org>
5587
5588 * fontset.h (set_default_ascii_font): Delete extern.
5589
5590 * fontset.c (set_default_ascii_font): Delete this unused function.
5591
5592 * frame.c (x_set_font): When ARG is a font-object, check if the
5593 font-object matches with the ASCII font-spec of the frame's
5594 fontset. If not, create a new fontset for the frame. (Bug #3075)
5595
5596 2009-04-28 Andreas Schwab <schwab@linux-m68k.org>
5597
5598 * fns.c (Flocale_info): Protect vector from GC during decoding.
5599
5600 * process.c (Fstart_process): Protect argv strings from GC during
5601 encoding.
5602
5603 2009-04-27 Andreas Schwab <schwab@linux-m68k.org>
5604
5605 * sysdep.c: Include <ctype.h>.
5606
5607 2009-04-27 David Reitter <david.reitter@gmail.com>
5608
5609 * nsfont.m (nsfont_open): Remove unused variable shrink.
5610 Remove commented-out code.
5611
5612 2009-04-26 Johan Bockgård <bojohan@gnu.org>
5613
5614 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
5615
5616 2009-04-25 Jason Rumney <jasonr@gnu.org>
5617
5618 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
5619
5620 2009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5621
5622 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
5623 Swap bytes in short integer if fringe bitmap width > 8.
5624
5625 2009-04-23 Kenichi Handa <handa@m17n.org>
5626
5627 * xfaces.c (Fx_list_fonts): If a font size is specified in
5628 PATTERN, set it in returned scalable fonts.
5629
5630 2009-04-22 Chong Yidong <cyd@stupidchicken.com>
5631
5632 * keyboard.c (Fset_input_meta_mode): Doc fix.
5633
5634 * dispnew.c (Fsend_string_to_terminal): Doc fix.
5635
5636 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
5637
5638 * coding.c (Fterminal_coding_system): Doc fix.
5639
5640 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
5641 (Fx_display_pixel_height, Fx_display_planes)
5642 (Fx_display_color_cells, Fx_server_max_request_size)
5643 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
5644 (Fx_display_mm_height, Fx_display_mm_width)
5645 (Fx_display_backing_store, Fx_display_visual_class)
5646 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
5647 Doc fixes, replacing "terminal id" with "terminal object".
5648 (check_x_display_info): Handle terminal objects instead of
5649 terminal ids.
5650
5651 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
5652 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
5653 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
5654 Doc fixes, replacing "terminal id" with "terminal object".
5655
5656 2009-04-21 Kenichi Handa <handa@m17n.org>
5657
5658 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
5659 (font_score): Check AVGWIDTH too.
5660
5661 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
5662 worst case.
5663 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
5664 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
5665
5666 2009-04-19 Jason Rumney <jasonr@gnu.org>
5667
5668 The following changes fix Bug#3005 for wide glyphs on each platform,
5669 without reintroducing Bug#1258 for stretch glyphs.
5670
5671 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
5672 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
5673 get_phys_cursor_geometry.
5674
5675 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
5676 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
5677 using get_phys_cursor_geometry.
5678
5679 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
5680 correctly calculated.
5681
5682 2009-04-19 Jan Djärv <jan.h.d@swipnet.se>
5683
5684 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
5685 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
5686 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
5687 is deprecated.
5688
5689 2009-04-18 Andreas Schwab <schwab@linux-m68k.org>
5690
5691 * font.c (font_put_frame_data): Use xfree instead of free.
5692
5693 2009-04-17 Juanma Barranquero <lekktu@gmail.com>
5694
5695 * w32font.c (Qja, Qko): Remove declarations.
5696 (syms_of_w32font): Don't DEFSYM them.
5697
5698 2009-04-17 Chong Yidong <cyd@stupidchicken.com>
5699
5700 * font.c (Qja, Qko): Move definitions here from ftfont.c.
5701
5702 * font.h (Qja, Qko): Extern them.
5703
5704 * ftfont.c (Qja, Qko): Remove declarations.
5705
5706 * xfont.c (Qja, Qko): Remove declarations.
5707
5708 2009-04-17 Kenichi Handa <handa@m17n.org>
5709
5710 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
5711 string from a vector to handle Latin-1 characters correctly.
5712
5713 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
5714 entity even if the cache hits.
5715
5716 2009-04-16 Andreas Schwab <schwab@linux-m68k.org>
5717
5718 * search.c (boyer_moore): Use zero as marker value for a possible
5719 match instead of depending on overflow behavior. (Bug#2844)
5720
5721 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
5722 * lisp.h: Adjust prototypes.
5723
5724 2009-04-16 Chong Yidong <cyd@stupidchicken.com>
5725
5726 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
5727 change (Bug#3003).
5728
5729 2009-04-16 Kenichi Handa <handa@m17n.org>
5730
5731 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
5732
5733 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
5734 adstyle.
5735
5736 * ftfont.c (Qja, Qko): Don't make them static.
5737 (enum ftfont_cache_for): New enum.
5738 (fc_charset_table): Undo the previous change.
5739 (ftfont_get_latin1_charset): Delete it.
5740 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
5741 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
5742 non-scarable font, try to get AVERAGE_WIDTH.
5743 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
5744 Change ft_face_cache from a list of a hash-table. Don't check
5745 `ja' and `ko' adstyle here.
5746 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
5747 FTFONT_CACHE_FOR_CHARET.
5748 (ftfont_get_charset): Undo the previous change.
5749 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
5750 (ftfont_close): Likewise.
5751 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
5752
5753 * font.c (font_sort_entites): Change the meaning of the arg
5754 BEST-ONLY. Don't optimize for VEC of lenght 1.
5755 (font_select_entity): Just return the value of font_sort_entites.
5756
5757 * xfaces.c (merge_face_vectors): Reflect font properties in
5758 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
5759 font_clear_prop if a face attribute doesn't change.
5760
5761 * charset.h (charset_ksc5601): Extern it.
5762
5763 * charset.c (charset_ksc5601): New variable.
5764 (Fdefine_charset_internal): Set charset_ksc5601.
5765 (init_charset_once): Initialize charset_ksc5601 to -1.
5766
5767 2009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
5768
5769 * fileio.c (history_delete_duplicates): Remove unused declaration.
5770
5771 * callint.c (history_delete_duplicates): New declaration.
5772 (Fcall_interactively): Remove command history duplicates when
5773 history_delete_duplicates is true.
5774
5775 2009-04-14 Eli Zaretskii <eliz@gnu.org>
5776
5777 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
5778
5779 2009-04-14 Kenichi Handa <handa@m17n.org>
5780
5781 * font.c (Ffont_info): Fix docstring. Fix the second element of
5782 the returned value (bug#2949).
5783
5784 2009-04-14 Chong Yidong <cyd@stupidchicken.com>
5785
5786 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
5787
5788 2009-04-14 Kenichi Handa <handa@m17n.org>
5789
5790 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
5791 encoding charset is ascii_compatible.
5792
5793 * charset.c (Fdefine_charset_internal): Make charset
5794 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
5795 code_offset is 0, and covers all ASCII characters.
5796
5797 2009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
5798
5799 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
5800 (ns_string_to_pasteboard_internal):
5801 * nsmenu.m (process_dialog):
5802 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
5803 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
5804 * lisp.h (Fx_load_color_file): Declare.
5805
5806 2009-04-13 Kenichi Handa <handa@m17n.org>
5807
5808 * font.c (font_delete_unmatched): Preserve the order of list elements.
5809 (font_select_entity): Suppress the code to optimize for the same
5810 kind of fonts.
5811 (font_load_for_lface): Get a font that supports at least ASCII
5812 characters.
5813
5814 * ftfont.c (Qja, Qko): New variables.
5815 (fc_charset_table): Delete uniquifier data for iso8859-1.
5816 (ftfont_get_latin1_charset): New function.
5817 (get_adstyle_property): New function.
5818 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
5819 bitmap fonts.
5820 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
5821 Delete iso-8859-1 range from the charset of fonts whose adstyle is
5822 `ko' or `ja'.
5823 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
5824 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
5825 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
5826 property.
5827 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
5828 (syms_of_ftfont): DEFSYM Qja and Qko.
5829
5830 2009-04-09 Kenichi Handa <handa@m17n.org>
5831
5832 * charset.c (map_charset_chars): For a charset of `superset'
5833 method, fix calculation of code range.
5834
5835 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
5836 from the list of extra properties.
5837 (font_clear_prop): Be sure to delete `:name' font property.
5838
5839 2009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5840
5841 * dispnew.c (redraw_overlapping_rows): Fix detection of
5842 overlapping for topmost and bottommost rows.
5843
5844 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
5845
5846 2009-04-06 Jason Rumney <jasonr@gnu.org>
5847
5848 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
5849
5850 2009-04-06 Kenichi Handa <handa@m17n.org>
5851
5852 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
5853
5854 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
5855
5856 2009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5857
5858 * ftfont.c (ftfont_open): Fix checking of the return value of
5859 FT_Load_Char. Fix setting font->underline_thickness.
5860
5861 2009-04-04 Chong Yidong <cyd@stupidchicken.com>
5862
5863 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
5864 (Fterminal_parameters, Fterminal_parameter)
5865 (Fset_terminal_parameter): In doc string, refer to terminal
5866 objects rather than terminal ids.
5867
5868 2009-04-04 Eli Zaretskii <eliz@gnu.org>
5869
5870 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
5871 ret_lim_data. (Bug#2867)
5872
5873 2009-04-03 Chong Yidong <cyd@stupidchicken.com>
5874
5875 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
5876 so they don't get wider than the window, matching 2006-01-23
5877 change to the partner function in xdisp.c (Bug#2800).
5878
5879 2009-04-03 Kenichi Handa <handa@m17n.org>
5880
5881 * print.c (print_object): Make each lowest sub_char_table start a
5882 new line (Bug#2866).
5883
5884 2009-04-02 Kenichi Handa <handa@m17n.org>
5885
5886 * fontset.c (fontset_font): Record no-font when a fontset
5887 explicitly tells not to try another font-specs.
5888
5889 2009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
5890
5891 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
5892
5893 2009-03-30 Kenichi Handa <handa@m17n.org>
5894
5895 * fontset.c (fontset_from_font): Specify only registry in a
5896 font-spec for all characters supported by that registry.
5897
5898 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
5899 even if HAVE_M17N_FLT is not defined.
5900
5901 2009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
5902
5903 * ftfont.c: Conditionalize prototyping and use of
5904 ftfont_variation_glyphs.
5905
5906 2009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
5907
5908 * frame.c (delete_frame): Work around compiler bug.
5909
5910 * editfns.c (general_insert_function): Adjust to insdel.c changes.
5911 * insdel.c (prepare_to_modify_buffer, signal_before_change):
5912 Some more EMACS_INT.
5913 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
5914
5915 * xdisp.c (dump_glyph): Fix typo.
5916
5917 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
5918 (adjust_markers_gap_motion, adjust_markers_for_delete)
5919 (adjust_markers_for_insert, adjust_point)
5920 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
5921 (make_gap, copy_text, count_size_as_multibyte, insert)
5922 (insert_and_inherit, insert_before_markers)
5923 (insert_before_markers_and_inherit, insert_1)
5924 (count_combining_before, count_combining_after, insert_1_both)
5925 (insert_from_string, insert_from_string_before_markers)
5926 (insert_from_string_1, insert_from_gap, insert_from_buffer)
5927 (insert_from_buffer_1, adjust_after_replace)
5928 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
5929 (replace_range_2, del_range, del_range_1, del_range_byte)
5930 (del_range_both, del_range_2, modify_region)
5931 (prepare_to_modify_buffer, signal_before_change)
5932 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
5933 for buffer positions and sizes.
5934 * lisp.h: Adjust prototypes accordingly.
5935
5936 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
5937 (non_regular_inserted, non_regular_nbytes, read_non_regular)
5938 (Finsert_file_contents): Use EMACS_INT for buffer positions.
5939
5940 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
5941
5942 2009-03-27 Jan Djärv <jan.h.d@swipnet.se>
5943
5944 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
5945 lines and columns so we keep the same pixel height and width.
5946
5947 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
5948 the property _NET_WM_STATE has changed.
5949 (x_handle_net_wm_state): New function to update frame parameter
5950 fullscreen.
5951 (x_term_init): Initialize atoms for _NET_WM_STATE.
5952
5953 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
5954
5955 2009-03-27 Kevin Ryde <user42@zip.com.au>
5956
5957 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
5958 Gpm_GetEvent as an error that justifies closing the filedescriptor.
5959 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
5960 (Fgpm_mouse_stop): Pass that new parameter.
5961 * termhooks.h (close_gpm): Adjust prototype.
5962
5963 2009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
5964
5965 * lisp.h (Fx_focus_frame): Declare.
5966
5967 * callint.c (Fcall_interactively): For '^' just delegate the work to
5968 handle-shift-selection.
5969 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
5970
5971 2009-03-24 Chong Yidong <cyd@stupidchicken.com>
5972
5973 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
5974
5975 * data.c (Qinteractive_form): New variable.
5976 (Finteractive_form): Use it.
5977
5978 * eval.c (Fcommandp): Use Qinteractive_form.
5979
5980 2009-03-24 Jason Rumney <jasonr@gnu.org>
5981
5982 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
5983 Calculate total size precisely. Decode environment variables
5984 before substituting. (Bug#38)
5985
5986 2009-03-24 Kenichi Handa <handa@m17n.org>
5987
5988 * font.c (find_font_encoding): Return Qnil for unsupported
5989 encoding (Bug#2722).
5990
5991 2009-03-23 Jan Djärv <jan.h.d@swipnet.se>
5992
5993 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
5994 that gdpy is set.
5995
5996 2009-03-22 Alan Mackenzie <acm@muc.de>
5997
5998 * callint.c (Finteractive): Clarify the doc string - even
5999 promptless elements need \n separators.
6000
6001 2009-03-22 Jason Rumney <jasonr@gnu.org>
6002
6003 * w32term.c (syms_of_w32term): Doc fix for
6004 x-use-underline-position-properties.
6005
6006 2009-03-21 Eli Zaretskii <eliz@gnu.org>
6007
6008 * w32.c (getpwuid): Change argument type to unsigned.
6009 (struct w32_id): Change type of `rid' member to unsigned.
6010 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
6011 argument ID to unsigned. All callers changed.
6012 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
6013
6014 2009-03-20 Eli Zaretskii <eliz@gnu.org>
6015
6016 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
6017 negative, produce a float value.
6018
6019 * dired.c (make_uid, make_gid): New functions.
6020 (Ffile_attributes): Use them to avoid negative UID and GID.
6021
6022 2009-03-20 Juanma Barranquero <lekktu@gmail.com>
6023
6024 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
6025 (syms_of_keyboard) <command-hook-internal, input-method-function>:
6026 Fix typos in docstrings.
6027
6028 2009-03-19 Kenichi Handa <handa@m17n.org>
6029
6030 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
6031 changed, use font_load_for_lface to get a new font object.
6032 Call free_realized_fontset after handling ASCII font change.
6033
6034 * frame.c (x_set_font): Handle the case that ARG is a cons.
6035
6036 2009-03-19 Glenn Morris <rgm@gnu.org>
6037
6038 * fileio.c (Fsubstitute_in_file_name): Doc fix.
6039
6040 2009-03-19 Chong Yidong <cyd@stupidchicken.com>
6041
6042 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
6043
6044 2009-03-19 Kenichi Handa <handa@m17n.org>
6045
6046 * charset.c (load_charset_map_from_file): When a mapfile can't be
6047 loaded, signal an error.
6048
6049 2009-03-18 Eli Zaretskii <eliz@gnu.org>
6050
6051 * dired.c (Ffile_attributes): Make sure UID and GID are always
6052 positive, even if the value is too large for a positive EMACS_INT.
6053 Doc fix.
6054
6055 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
6056
6057 2009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6058
6059 * xmenu.c (xdialog_show): Move Fredisplay call ...
6060 (Fx_popup_dialog): ... here.
6061
6062 2009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
6063
6064 * dired.c (file_name_completion): Disable the first optimization just
6065 installed, since it is not implemented correctly.
6066
6067 2009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
6068
6069 * dired.c (file_name_completion): Check completion-ignored-extensions
6070 only if the entry can affect bestmatch.
6071 Stop the search early, as Ftry_completion already does.
6072
6073 2009-03-17 Chong Yidong <cyd@stupidchicken.com>
6074
6075 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
6076
6077 2009-03-15 Chong Yidong <cyd@stupidchicken.com>
6078
6079 * keyboard.c (parse_menu_item): Don't display remappings as menu
6080 equivalent bindings (Bug#788).
6081
6082 2009-03-15 Jason Rumney <jasonr@gnu.org>
6083
6084 * w32term.h (WM_EMACS_PAINT): New message.
6085 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
6086 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
6087 before passing to lisp thread. (Bug#950)
6088
6089 2009-03-14 David Reitter <david.reitter@gmail.com>
6090
6091 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
6092 variable as it was never reset.
6093 (ns_term_init): Remove initialization of Lisp-settable defaults
6094 and ns_expand_space.
6095 (-setPanelFromDefaultValues): Remove ns_expand_space.
6096 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
6097 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
6098 i.e. no additional spacing, similar to Carbon port.
6099
6100 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
6101 * nsfns.m (ns-popup-prefs-panel): Remove.
6102
6103 2009-03-14 Jan Djärv <jan.h.d@swipnet.se>
6104
6105 * sound.c (alsa_configure): Remove call to deprecated
6106 snd_pcm_sw_params_set_xfer_align.
6107
6108 2009-03-14 Stephen Berman <stephen.berman@gmx.net>
6109
6110 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
6111 after clicking in a detached tool bar.
6112 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
6113
6114 2009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
6115
6116 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
6117 int/Lisp_Object mixup).
6118
6119 2009-03-13 Kenichi Handa <handa@m17n.org>
6120
6121 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
6122 Handle NAME nil and t correctly. Callers changed.
6123 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
6124 (set_fontset_font): Change ARG to a vector. Handle range_list in
6125 ARG correctly.
6126 (Fset_fontset_font): Fix the case that TARGET is both a script
6127 name and charset name. Adjust the arg to set_fontset_font for
6128 the above change.
6129 (fontset_from_font): Fix previous change.
6130 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
6131 entry. If FONTSET is the default fontset, don't set the extra
6132 slot of the returning char-table.
6133
6134 2009-03-12 Juanma Barranquero <lekktu@gmail.com>
6135
6136 * nsfns.m (Fx_close_connection): Doc fix.
6137 (Fns_do_applescript): Reflow docstring.
6138 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
6139 (Fx_display_pixel_width, Fx_display_pixel_height)
6140 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
6141 Fix typos in docstrings.
6142 (Fns_set_alpha): Fix typos in error messages.
6143
6144 2009-03-12 David Reitter <david.reitter@gmail.com>
6145
6146 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
6147 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
6148 were used for such events.
6149
6150 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
6151 (toggleToolbar, performDragOperation, runHelp): Use it.
6152
6153 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
6154 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
6155
6156 2009-03-11 Kenichi Handa <handa@m17n.org>
6157
6158 * font.h (font_open_by_spec): Extern it.
6159
6160 * font.c (font_open_by_spec): New function.
6161 (font_open_by_name): Use font_open_by_spec.
6162
6163 * frame.c (x_set_font): When ARG is a font-object, don't alter the
6164 fontset of the frame.
6165
6166 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
6167 modify the default font of frames that use this fontset.
6168 (num_auto_fontsets): New variable.
6169 (fontset_from_font): Use num_auto_fontsets to decide a fontset
6170 name. Be sure to set FONTSET_ASCII to the correct font name.
6171 (update_auto_fontset_alist): New function.
6172
6173 2009-03-11 Juanma Barranquero <lekktu@gmail.com>
6174
6175 * makefile.w32-in: Update dependencies.
6176
6177 2009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
6178
6179 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
6180
6181 2009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
6182
6183 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
6184
6185 2009-03-10 Chong Yidong <cyd@stupidchicken.com>
6186
6187 * lread.c (Feval_buffer): Doc fix.
6188
6189 2009-03-09 Kenichi Handa <handa@m17n.org>
6190
6191 * charset.c (Qfile_name_handler_alist): Extern it.
6192 (load_charset_map_from_file): Temporarily bind
6193 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
6194
6195 2009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
6196
6197 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
6198 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
6199
6200 2009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
6201
6202 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
6203 (x_set_window_size): Change back to calculated method of setting
6204 toolbar height under Cocoa. (Bug#2546)
6205 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
6206 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
6207
6208 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
6209
6210 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
6211 accelerator in parens under GNUstep.
6212
6213 2009-03-06 Kenichi Handa <handa@m17n.org>
6214
6215 These changes are to detect incorrect composition sequence without
6216 looking ahead the source. (Bug#2370)
6217
6218 * coding.h: Include "composite.h".
6219 (enum compisition_state): New enum.
6220 (struct compisition_status): New struct.
6221 (struct iso_2022_spec): New member cmp_status.
6222 (struct emacs_mule_spec): New struct.
6223 (struct coding_system): New members ctext_extended_segment_len and
6224 embedded_utf_8. Change the union member
6225 spec.emacs_mule_full_support to spec.emacs_mule.
6226
6227 * coding.c (CODING_ISO_CMP_STATUS): New macro.
6228 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
6229 (MAX_ANNOTATION_LENGTH): Define to 5.
6230 (ADD_COMPOSITION_DATA): New arg nbytes.
6231 (emacs_mule_char): New arg cmp_status.
6232 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
6233 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
6234 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
6235 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
6236 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
6237 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
6238 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
6239 (EMACS_MULE_COMPOSITION_END): New macro.
6240 (emacs_mule_finish_composition): New function.
6241 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
6242 (decode_coding_emacs_mule): Avoid long looking ahead while
6243 handling composition.
6244 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
6245 (ENCODE_COMPOSITION_RULE): New macro.
6246 (finish_composition): New function.
6247 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
6248 (DECODE_COMPOSITION_START): New implementation.
6249 (DECODE_COMPOSITION_END): Likewise.
6250 (STORE_COMPOSITION_RULE): New macro.
6251 (decode_coding_iso_2022): Avoid long looking ahead while handling
6252 composition, CTEXT extended segment, and embedded UTF-8.
6253 (setup_coding_system): For a coding of type iso-2022, reset
6254 CODING_ISO_EXTSEGMENT_LEN (coding) and
6255 CODING_ISO_EMBEDDED_UTF_8 (coding).
6256 (get_translation): Delete arguments last_block, from_nchars,
6257 to_nchars. Callers changed.
6258 (produce_chars): Don't modify charbuf. Adjusted for the change of
6259 get_translation.
6260 (produce_composition): Adjust for the new annotation sequence.
6261 (handle_composition_annotation): Likewise.
6262 (consume_chars): Adjust for the change of get_translation.
6263
6264 2009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
6265
6266 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
6267
6268 2009-03-05 Kenichi Handa <handa@m17n.org>
6269
6270 * font.c (font_select_entity): New function.
6271 (font_find_for_lface): Use font_select_entity to select a font.
6272
6273 * fontset.c (fontset_find_font): If a font found without
6274 restricting to the characters C doesn't support C, try to find a
6275 font with C restriction.
6276
6277 2009-03-04 Nikolaj Schumacher <me@nschum.de>
6278
6279 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
6280
6281 2009-03-04 Jason Rumney <jasonr@gnu.org>
6282
6283 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
6284 characters that have already been read. (Bug#2569)
6285
6286 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
6287 Log an error message if check_image_size failed.
6288 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
6289 (gs_load): Mention max-image-size in size error message. (Bug#2560)
6290
6291 2009-03-02 Eli Zaretskii <eliz@gnu.org>
6292
6293 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
6294 when decoding process output.
6295
6296 2009-03-01 Richard M Stallman <rms@gnu.org>
6297
6298 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
6299
6300 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
6301
6302 2009-02-28 Eli Zaretskii <eliz@gnu.org>
6303
6304 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
6305 (decode_coding_emacs_mule, decode_coding_iso_2022)
6306 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
6307 (decode_coding_raw_text, decode_coding_charset)
6308 (setup_coding_system, decode_eol, decode_coding, consume_chars):
6309 Honor inhibit-eol-conversion. (Bug #2186)
6310
6311 2009-02-28 Jason Rumney <jasonr@gnu.org>
6312
6313 * coding.c (detect_coding_charset): If not checking latin extra,
6314 fail on characters between 0x80 and 0xA0. (Bug#2354)
6315
6316 2009-02-28 Eli Zaretskii <eliz@gnu.org>
6317
6318 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
6319 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
6320
6321 2009-02-27 Glenn Morris <rgm@gnu.org>
6322
6323 * callint.c (Finteractive): Doc fix.
6324
6325 2009-02-27 Kenichi Handa <handa@m17n.org>
6326
6327 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
6328
6329 2009-02-27 Chong Yidong <cyd@stupidchicken.com>
6330
6331 * font.c (font_style_to_value): Set value for unknown symbols to
6332 100 instead of 255.
6333 (weight_table, slant_table, width_table): Treat "unspecified" as
6334 the default value.
6335
6336 2009-02-26 Juanma Barranquero <lekktu@gmail.com>
6337
6338 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
6339
6340 2009-02-25 Juanma Barranquero <lekktu@gmail.com>
6341
6342 * lread.c (Fload): Stop checking Vloads_in_progress and signal
6343 error as soon as a recursive load is detected.
6344
6345 2009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
6346
6347 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
6348 before caching.
6349
6350 2009-02-24 Kenichi Handa <handa@m17n.org>
6351
6352 * fontset.c (fontset_find_font): Fix the condition for checking
6353 unavailable font.
6354
6355 2009-02-24 Glenn Morris <rgm@gnu.org>
6356
6357 * xfaces.c (Finternal_set_font_selection_order): Remove leading
6358 whitespace that confuses documentation.
6359
6360 2009-02-23 Miles Bader <miles@gnu.org>
6361
6362 * process.c (Flist_system_processes, Fprocess_attributes)
6363 (syms_of_process): Rename `system-process-attributes' to
6364 `process-attributes'.
6365
6366 2009-02-22 Andreas Schwab <schwab@linux-m68k.org>
6367
6368 * coding.h (struct coding_system): Make safe_charsets a pointer to
6369 unsigned char.
6370 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
6371 being 255.
6372 (SAFE_CHARSET_P): Likewise.
6373 (setup_iso_safe_charsets): Properly setup safe_charsets.
6374 (Fdefine_coding_system_internal): Likewise.
6375 (setup_coding_system): Likewise. Remove unneeded casts.
6376 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
6377 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
6378 unneeded casts.
6379
6380 * insdel.c (del_range_2): Don't modify gap contents when called
6381 from decode_coding_object. (Bug#1809)
6382
6383 2009-02-21 Chong Yidong <cyd@stupidchicken.com>
6384
6385 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
6386 Qfont_object.
6387 (Ftype_of): Recognize font objects.
6388
6389 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
6390
6391 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
6392 moved to data.c.
6393
6394 2009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
6395
6396 * nsterm.m (x_make_frame_invisible): Unset async_visible,
6397 async_iconified. Based on a patch by Christian Lynbech
6398 <christian.lynbech@tieto.com>.
6399 (EmacsView-windowDidMiniaturize:): Unset async_visible.
6400
6401 2009-02-20 Glenn Morris <rgm@gnu.org>
6402
6403 * syntax.c (Fskip_chars_forward): Fix doc typo.
6404
6405 2009-02-20 Chong Yidong <cyd@stupidchicken.com>
6406
6407 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
6408
6409 2009-02-19 Chong Yidong <cyd@stupidchicken.com>
6410
6411 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
6412
6413 2009-02-19 Kenichi Handa <handa@m17n.org>
6414
6415 * coding.c (detect_coding): Preserve coding->mode.
6416 Don't overflow coding->carryover. (Bug#2370)
6417
6418 2009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
6419
6420 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
6421
6422 2009-02-18 Kenichi Handa <handa@m17n.org>
6423
6424 * font.c (font_check_otf_features): Fix handling of `nil' element.
6425 (Ffont_spec): Describe :lang and :otf in the docstring.
6426
6427 2009-02-16 Andreas Schwab <schwab@suse.de>
6428
6429 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
6430 string.
6431
6432 2009-02-16 Kenichi Handa <handa@m17n.org>
6433
6434 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
6435 (Bug#1723)
6436
6437 2009-02-14 Chong Yidong <cyd@stupidchicken.com>
6438
6439 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
6440
6441 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
6442 (handle_line_prefix): Suppress wrapping of wrap prefixes.
6443
6444 2009-02-14 Eli Zaretskii <eliz@gnu.org>
6445
6446 * msdos.c (MAX_SCREEN_BUF): New macro.
6447 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
6448 Encode the entire run of glyphs sharing the same face, instead of
6449 doing that one glyph at a time (fixes a bug with displaying
6450 double-size characters).
6451
6452 2009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
6453
6454 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
6455
6456 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
6457 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
6458 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
6459
6460 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
6461 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
6462
6463 2009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
6464
6465 * keyboard.c (adjust_point_for_property): Allow stopping between two
6466 invisible areas.
6467
6468 2009-02-12 Jason Rumney <jasonr@gnu.org>
6469
6470 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
6471 (add_font_entity_to_list): Call check_face_name even when family
6472 is unspecified.
6473
6474 * w32term.c (x_display_pixel_height, x_display_pixel_width):
6475 Release DC when finished. Use NULL window to refer to desktop.
6476 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
6477
6478 * w32font.c (add_font_entity_to_list): Fix check for substituted
6479 raster fonts. (Bug#2219)
6480
6481 2009-02-12 Kenichi Handa <handa@m17n.org>
6482
6483 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
6484 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
6485 (autocmp_chars): Use fast_looking_at. Don't compose more
6486 characters than MAX_COMPOSITION_COMPONENTS.
6487 (find_automatic_composition): While looking forward and backward,
6488 check static composition. Fix where to stop looking forward.
6489 (composition_adjust_point): Fix checking of static composition.
6490 (Fcomposition_get_gstring): Pay attention to
6491 MAX_COMPOSITION_COMPONENTS.
6492
6493 * lisp.h (fast_looking_at): Extern it.
6494
6495 * search.c (fast_looking_at): New function.
6496
6497 * term.c (encode_terminal_code): Adjust for the change of
6498 <struct glyph>.u.cmp.to.
6499 (append_composite_glyph): Likewise.
6500
6501 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
6502 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
6503 composition.
6504 (append_composite_glyph): Adjust for the change of
6505 <strcut glyph>.u.cmp.to.
6506
6507 2009-02-11 Juanma Barranquero <lekktu@gmail.com>
6508
6509 * casetab.c (init_casetab_once):
6510 * coding.c (ALLOC_CONVERSION_WORK_AREA):
6511 * font.c (font_update_lface):
6512 * fontset.c (Fnew_fontset):
6513 * ftfont.c (ftfont_drive_otf):
6514 * xfont.c (xfont_open):
6515 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
6516
6517 2009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
6518
6519 * fileio.c (Fwrite_region): !NILP -> CONSP.
6520
6521 2009-02-10 Andreas Schwab <schwab@suse.de>
6522
6523 * process.c (send_process): Properly relocate pointer into data
6524 when using encoded data. (Bug#2272)
6525
6526 2009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
6527
6528 * coding.c (detect_coding_charset): Fix previous change.
6529
6530 2009-02-08 Jason Rumney <jasonr@gnu.org>
6531
6532 * w32fns.c (w32_hide_hourglass): Handle case where frame
6533 disappeared while hourglass was displayed. (Bug #2193)
6534
6535 2009-02-07 Andreas Schwab <schwab@suse.de>
6536
6537 * unexelf.c (unexec): Fix error message.
6538
6539 2009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
6540
6541 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
6542 when modal window is active. (Bug #2152)
6543 (applicationShouldTerminate:): Remove now-unneeded while loop
6544 around NSRunAlertPanel.
6545
6546 * nsmenu.m (popupSession): New file-global variable.
6547 (pop_down_menu): End the popupSession before closing dialog.
6548 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
6549 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
6550 don't query NSApp for events (just sleep instead).
6551
6552 2009-02-07 Eli Zaretskii <eliz@gnu.org>
6553
6554 * coding.c (syms_of_coding) <translation-table-for-input>:
6555 Modify doc string to discourage use for character code unification.
6556
6557 2009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6558
6559 * atimer.c (run_timers): Update pending_atimers.
6560
6561 2009-02-06 Chong Yidong <cyd@stupidchicken.com>
6562
6563 * image.c (svg_load_image): Fix last change.
6564
6565 * xfns.c (Fx_create_frame): Signal an error if no font is
6566 found (Bug#2147).
6567
6568 2009-02-05 Juanma Barranquero <lekktu@gmail.com>
6569
6570 * character.c (syms_of_character) <script-representative-chars>:
6571 Fix typo in docstring.
6572
6573 2009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
6574
6575 * nsmenu.m (pop_down_menu): New function.
6576 (ns_popup_dialog): Call it on unwind.
6577 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
6578 call timer_check() (Bug#2154).
6579 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
6580 handling_signal is set.
6581 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
6582
6583 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
6584
6585 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
6586
6587 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
6588
6589 * keyboard.c (poll_for_input_1, handle_async_input):
6590 Set handling_signal under HAVE_NS.
6591
6592 2009-02-04 Glenn Morris <rgm@gnu.org>
6593
6594 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
6595
6596 2009-02-04 Kenichi Handa <handa@m17n.org>
6597
6598 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
6599
6600 * charset.c (Fchar_charset): New optional arg restriction.
6601
6602 * coding.h (coding_system_charset_list): Extern it.
6603
6604 * coding.c (coding_system_charset_list): New function.
6605
6606 * composite.c: Include coding.h and termhooks.h.
6607 (composition_gstring_p): Fix for the terminal case.
6608 (composition_gstring_width): Likewise.
6609 (fill_gstring_body): Likewise.
6610 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
6611 the frame.
6612 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
6613 is within a composition.
6614 (Fcomposition_get_gstring): Fix the terminal case.
6615
6616 * term.c (encode_terminal_code): Fix handling of composition.
6617 (produce_composite_glyph): For static composition, get pixel_width
6618 from struct composition.
6619
6620 2009-02-02 Andreas Schwab <schwab@suse.de>
6621
6622 * unexelf.c (unexec): Handle unaligned bss offset.
6623
6624 2009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
6625
6626 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
6627 XT,w32read_socket changes to ns_read_socket.
6628
6629 * keyboard.c (handle_interrupt): Don't call
6630 quit_throw_to_read_char() under NS.
6631
6632 * blockinput.h: Remove NS-specific code.
6633
6634 2009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
6635
6636 * dispnew.c (window_change_signal): Don't try to get the size of a
6637 suspended tty frame.
6638 * term.c (Fresume_tty): Resize if the size has changed while the
6639 tty was suspended.
6640
6641 * alloc.c (mark_stack): Properly conditionalize previous change.
6642
6643 2009-01-30 Juanma Barranquero <lekktu@gmail.com>
6644
6645 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
6646 * w32term.c (w32_read_socket) [SYNC_INPUT]:
6647 Remove; this code is not used on Windows.
6648
6649 2009-01-30 Eli Zaretskii <eliz@gnu.org>
6650
6651 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
6652 EOLs that also has stray ^M characters.
6653
6654 2009-01-30 Juanma Barranquero <lekktu@gmail.com>
6655
6656 * atimer.c (run_timers, alarm_signal_handler):
6657 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
6658 * w32inevt.c (w32_console_read_socket):
6659 * w32term.c (w32_read_socket):
6660 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
6661
6662 2009-01-30 Chong Yidong <cyd@stupidchicken.com>
6663
6664 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
6665 Initialize it as a relative filename pattern.
6666 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
6667 (Fcall_process_region): Simplify temp file creation using
6668 temporary-file-directory.
6669
6670 2009-01-29 Eli Zaretskii <eliz@gnu.org>
6671
6672 * msdos.c: Rename pending_signals to msdos_pending_signals.
6673 (sig_suspender, sigprocmask): Adjust.
6674
6675 2009-01-29 Chong Yidong <cyd@stupidchicken.com>
6676
6677 * keyboard.c (pending_signals): New var.
6678 (poll_for_input, input_available_signal, init_keyboard): Set it.
6679 (process_pending_signals): New function.
6680
6681 * lisp.h (QUIT): Check pending_signals instead of
6682 interrupt_input_pending. Use process_pending_signals.
6683
6684 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
6685
6686 * process.c (wait_reading_process_output): Use process_pending_signals.
6687
6688 * sysdep.c (emacs_write): Use process_pending_signals.
6689
6690 * xterm.c (XTread_socket): Update pending_signals.
6691
6692 * w32term.c (w32_read_socket): Update pending_signals.
6693
6694 * w32inevt.c (w32_console_read_socket): Update pending_signals.
6695
6696 2009-01-29 Kenichi Handa <handa@m17n.org>
6697
6698 * xftfont.c (xftfont_has_char): New function.
6699 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
6700
6701 2009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
6702
6703 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
6704 under GNUstep.
6705 (ns_query_color): New declaration.
6706
6707 * nsterm.m (ns_confirm_quit): New variable.
6708 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
6709 (EmacsApp-applicationShouldTerminate:): Use it.
6710 (EmacsPrefsController): Let user set it.
6711 (ns_query_color): New function.
6712 (ns_defined_color): Use it.
6713 (ns_initialize): Drop.
6714 (ns_term_init): Add two lines from ns_initialize(), and set
6715 input_interrupt_mode to nil.
6716
6717 * image.c (svg_load_image): Don't right-shift background RGB when
6718 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
6719
6720 2009-01-28 Kenichi Handa <handa@m17n.org>
6721
6722 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
6723 (fontset_get_font_group): Remember that no font-group is specified
6724 for C.
6725
6726 2009-01-27 Chong Yidong <cyd@stupidchicken.com>
6727
6728 * fns.c (concat): Check for string overflow (bug#1787).
6729
6730 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
6731 Quadruple undo limits (bug#1501).
6732
6733 2009-01-27 Kenichi Handa <handa@m17n.org>
6734
6735 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
6736 directly use GT_Get_Char_index.
6737
6738 * xftfont.c (struct xftfont_info): New member `index'.
6739
6740 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
6741 (Ffontset_font): Adjust for the change of fontset entry.
6742
6743 2009-01-26 Kenichi Handa <handa@m17n.org>
6744
6745 * fontset.c (fontset_find_font): Fix handling of non-cons return
6746 value of fontset_get_font_group.
6747 (fontset_font): Revert last change.
6748
6749 2009-01-26 Jason Rumney <jasonr@gnu.org>
6750
6751 * w32font.c (w32font_list_internal): Return quickly if registry is
6752 unknown. Simplify final return.
6753 (add_font_entity_to_list): Break complex logic down into more
6754 manageable chunks. Move unknown registry check to
6755 w32font_list_internal.
6756
6757 2009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
6758
6759 Changes to remove Feval calls from GUI under NS.
6760
6761 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
6762 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
6763 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
6764
6765 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
6766 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
6767 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
6768 instead of NON_ASCII_KEYSTROKE_EVENT.
6769 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
6770 (EmacsApp-applicationShouldTerminate:): Query user.
6771 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
6772 instead of Feval.
6773
6774 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
6775
6776 * keyboard.c (kbd_buffer_get_event): Check for it.
6777 (keys_of_keyboard): Define lispy keys for
6778 ns-put/unput-working-text.
6779
6780 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
6781 versions.
6782 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
6783
6784 2009-01-25 Chong Yidong <cyd@stupidchicken.com>
6785
6786 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
6787 setting current_buffer directly. (Bug#2044)
6788
6789 2009-01-24 Chong Yidong <cyd@stupidchicken.com>
6790
6791 * fontset.c (fontset_font): If we know there is no font, don't do
6792 any work. (Bug#1952, bug#1990).
6793
6794 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
6795
6796 2009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
6797
6798 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
6799 (ns_no_defaults): New declaration.
6800 (main): Use it.
6801
6802 * nsterm.h (ns_no_defaults): New declaration.
6803
6804 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
6805
6806 * nsterm.m (ns_no_defaults): New variable.
6807 (ns_initialize): Don't read defaults when ns_no_defaults.
6808 (EmacsView-readSelectionFromPasteboard:)
6809 (writeSelectionToPasteboard:types:): New stubbed-out methods for
6810 NSServicesRequests protocol. (Bug#1435)
6811 (ns_dumpglyphs_stretch): New function.
6812 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
6813 of 2008-11-15 to other terms. (Bug#615)
6814
6815 * nsimage.m (setPixmapData:): Set to ignore image DPI.
6816
6817 2009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
6818
6819 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
6820 call for Sparc64.
6821
6822 2009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
6823
6824 * nsfns.m:
6825 * nsgui.h:
6826 * nsmenu.m:
6827 * nsselect.m:
6828 * nsterm.h:
6829 * nsterm.m: Remove '23' comments that indicated code added during
6830 update from emacs-20 -> emacs-23.
6831
6832 2009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
6833
6834 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
6835 ns_alternate_modifier. (Bug#1217)
6836
6837 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
6838 Display all shortcuts, including those w/o super modifier.
6839
6840 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
6841
6842 2009-01-22 Chong Yidong <cyd@stupidchicken.com>
6843
6844 * fileio.c (Vwrite_region_post_annotation_function)
6845 (Vwrite_region_annotation_buffers): New vars.
6846 (build_annotations_unwind): Just reset
6847 Vwrite_region_annotation_buffers.
6848 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
6849 Call write-region-post-annotation-function.
6850 (build_annotations): Add to Vwrite_region_annotation_buffers if
6851 buffer changes.
6852
6853 2009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
6854
6855 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
6856 Tiger.
6857 * nsfns.m (ns_do_applescript):
6858 Conditionalize typeUTF16ExternalRepresentation on Tiger.
6859
6860 2009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
6861
6862 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
6863
6864 2009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
6865
6866 * nsmenu.m (NSMENUPROFILE): Change #if style.
6867
6868 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
6869
6870 * nsterm.m (x_set_frame_alpha): Add prototype.
6871 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
6872 handle Ctrl-tab. (Bug#1841)
6873 (ns_get_color): Use unsigned long long for scanned hex string value.
6874 (ns_term_shutdown): Abort on non SIGTERM signals.
6875 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
6876 (EmacsPrefsController-setPanelFromDefaultValues): New function.
6877 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
6878 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
6879 (ns_defined_color): Fix settings of the XColor variable fields:
6880 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
6881
6882 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
6883 DPI. (Bug#1316)
6884 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
6885 values in onTiger section.
6886
6887 2009-01-19 Chong Yidong <cyd@stupidchicken.com>
6888
6889 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
6890 Check return value of font_spec_from_name.
6891 (Fx_list_fonts): Doc fix. (Bug#1951)
6892
6893 * font.c (font_spec_from_name): Return Qnil if font name could not
6894 be parsed.
6895 (font_parse_name): Treat a `?' character as part of an XLFD.
6896
6897 * fns.c (Fsubstring): Doc fix.
6898
6899 2009-01-19 Kenichi Handa <handa@m17n.org>
6900
6901 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
6902 (ftfont_list): Likewise.
6903
6904 2009-01-18 Juanma Barranquero <lekktu@gmail.com>
6905
6906 * dbusbind.c (Fdbus_register_signal):
6907 * process.c (conv_sockaddr_to_lisp):
6908 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
6909
6910 * callproc.c (Fgetenv_internal): Doc fix.
6911
6912 2009-01-16 Chong Yidong <cyd@stupidchicken.com>
6913
6914 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
6915 it is not even used.
6916
6917 2009-01-16 Glenn Morris <rgm@gnu.org>
6918
6919 * font.c (Ffont_variation_glyphs): Silence compiler.
6920
6921 2009-01-15 Juanma Barranquero <lekktu@gmail.com>
6922
6923 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
6924 Reported by David Robinow <drobinow@gmail.com>.
6925
6926 2009-01-15 Kenichi Handa <handa@m17n.org>
6927
6928 * coding.c (detect_coding_system): Fix handling of null_byte_found.
6929
6930 2009-01-14 Jason Rumney <jasonr@gnu.org>
6931
6932 * frame.c (x_set_font): Always store a font to the font parameter,
6933 never a fontset. (Bug#1562)
6934
6935 2009-01-14 Kenichi Handa <handa@m17n.org>
6936
6937 * coding.c (TWO_MORE_BYTES): New macro.
6938 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
6939
6940 2009-01-13 Chong Yidong <cyd@stupidchicken.com>
6941
6942 * font.c (font_clear_prop): If clearing the family, clear the font
6943 width index too.
6944
6945 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
6946
6947 2009-01-12 Juanma Barranquero <lekktu@gmail.com>
6948
6949 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
6950 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
6951 functions, use sizeof.
6952
6953 2009-01-12 Martin Rudalics <rudalics@gmx.at>
6954
6955 * keyboard.c (read_char): Fix case where last_nonmenu_event
6956 returned a bad value with submenus. (Bug#447)
6957
6958 2009-01-12 Chong Yidong <cyd@stupidchicken.com>
6959
6960 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
6961 family, clear the font width index too.
6962
6963 2009-01-11 Jason Rumney <jasonr@gnu.org>
6964
6965 * keyboard.c (cmd_error_internal): Exit when errors occur before
6966 frame creation and not in daemon mode. (Bug#1836)
6967
6968 2009-01-10 Chong Yidong <cyd@stupidchicken.com>
6969
6970 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
6971 of a display vector, backtrack.
6972 (try_window_reusing_current_matrix): Check glyph type before
6973 referencing charpos member.
6974
6975 2009-01-10 Eli Zaretskii <eliz@gnu.org>
6976
6977 Fix Bug #876:
6978
6979 * coding.c (inhibit_null_byte_detection): New variable.
6980 (detect_coding, detect_coding_system): Don't pay attention to null
6981 bytes if inhibit_null_byte_detection is non-zero.
6982 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
6983 <inhibit-iso-escape-detection>: Doc fix.
6984
6985 2009-01-09 Jason Rumney <jasonr@gnu.org>
6986
6987 * w32font.c (add_font_entity_to_list): Don't report unknown
6988 Windows charset as any unrecognized registry. (Bug#1548)
6989 Only report Unicode Plane 2 fonts as unicode-sip.
6990
6991 2009-01-09 Chong Yidong <cyd@stupidchicken.com>
6992
6993 * xfaces.c (Fx_font_family_list): Delete function.
6994 Move compatibility version to faces.el.
6995
6996 * font.c (Ffont_family_list): Return a list of strings, not symbols.
6997
6998 2009-01-09 Martin Rudalics <rudalics@gmx.at>
6999
7000 * frame.c (x_set_frame_parameters): Remember requested value for
7001 fullscreen before it's reset by the parameter handler.
7002
7003 2009-01-09 Glenn Morris <rgm@gnu.org>
7004
7005 * keyboard.c (last_command_char): For clarity, rename to...
7006 (last_command_event): ... and update all users.
7007 (last_input_char): For clarity, rename to...
7008 (last_input_event): ... and update all users.
7009 (last-command-char, last-input-char): Move to subr.el as aliases.
7010 * cmds.c, commands.h: Update for last_command_char rename.
7011
7012 2009-01-08 Chong Yidong <cyd@stupidchicken.com>
7013
7014 * font.c (font_open_for_lface): Handle unspecified height attribute.
7015
7016 2009-01-08 Jason Rumney <jasonr@gnu.org>
7017
7018 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
7019 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
7020 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
7021 Don't declare.
7022 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
7023 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
7024
7025 2009-01-07 Kenichi Handa <handa@m17n.org>
7026
7027 * fileio.c (Finsert_file_contents): In the case of replace,
7028 remember the coding system used for decoding in
7029 coding_system (Bug#1039).
7030
7031 * coding.c (decode_coding_utf_8): Check byte_after_cr before
7032 breaking the loop. (Bug#870)
7033 (decode_coding_utf_16, decode_coding_emacs_mule)
7034 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
7035 (decode_coding_charset): Likewise.
7036
7037 2009-01-05 Martin Rudalics <rudalics@gmx.at>
7038
7039 * frame.c (x_set_frame_parameters): Make sure height (width) get
7040 applied when fullwidth (fullheight) is set. (Bug#1522)
7041
7042 2009-01-04 Juanma Barranquero <lekktu@gmail.com>
7043
7044 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
7045 (utc_base): Declare as ULONGLONG, not long double.
7046 (convert_time_raw): Delete.
7047 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
7048 (initialize_utc_base): New function.
7049 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
7050 (convert_from_time_t): Use initialize_utc_base; compute result with
7051 64-bit arithmetic.
7052 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
7053
7054 2009-01-03 Eli Zaretskii <eliz@gnu.org>
7055
7056 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
7057 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
7058 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
7059 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
7060 [!subprocesses]: Define.
7061 (syms_of_process) [!subprocesses]: Intern and staticpro them.
7062 (Flist_system_processes, Fsystem_process_attributes)
7063 [!subprocesses]: Call list_system_processes and
7064 system_process_attributes instead of returning Qnil.
7065
7066 * dosfns.c (system_process_attributes, list_system_processes):
7067 New functions.
7068
7069 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
7070
7071 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
7072 Don't use the default (no-op) implementation.
7073
7074 2009-01-03 Jason Rumney <jasonr@gnu.org>
7075
7076 * keyboard.c (parse_modifiers_uncached): Wheel events are
7077 clicks (bug#687).
7078
7079 * w32term.c (x_query_colors, x_query_color): New functions.
7080
7081 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
7082 (svg_load_image): Cast returned pointers from dynamically loaded
7083 functions. Eliminate W32 specific code.
7084
7085 2009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
7086
7087 * nsfns.m (x_set_foreground_color, x_set_background_color)
7088 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
7089 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
7090 x_ prefix instead of ns_. Update references.
7091 (syms_of_nsfns): Add a FIXME comment.
7092
7093 * nsterm.m (x_set_cursor_type): New prototype.
7094 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
7095
7096 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
7097 for Solaris instead of incorrectly providing Qutime and Qcutime.
7098
7099 2009-01-02 Eli Zaretskii <eliz@gnu.org>
7100
7101 * w32.c (process_times): Compute sum of utime and stime.
7102 (system_process_attributes): Add Qtime to the alist.
7103
7104 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
7105 and add them to the alist.
7106
7107 * process.c (top level) <Qtime, Qctime>: New variables.
7108 (syms_of_process): staticpro them.
7109 (Fsystem_process_attributes): Add their documentation to the doc
7110 string.
7111
7112 * process.h: Declare Qtime and Qctime.
7113
7114 2009-01-02 Jason Rumney <jasonr@gnu.org>
7115
7116 * image.c (Qgobject): New symbol.
7117 (syms_of_image): Initialize it.
7118 (init_svg_functions): Load some functions from gobject library.
7119
7120 2009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
7121
7122 * frame.c (make_terminal_frame): Remove redundant code and useless
7123 block.
7124
7125 2009-01-01 Andreas Schwab <schwab@suse.de>
7126
7127 * process.c (conv_sockaddr_to_lisp): Add workaround for
7128 getsockname bug on BSD.
7129
7130 2009-01-01 Chong Yidong <cyd@stupidchicken.com>
7131
7132 * xfns.c (x_create_tip_frame): Set border width of the X window.
7133
7134 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
7135
7136 2009-01-01 Jason Rumney <jasonr@gnu.org>
7137
7138 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
7139 Don't block input, as per earlier xterm.c changes.
7140
7141 2008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
7142
7143 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
7144 (ns_appkit_version_int): New function.
7145 (x-server-version): Use ns_appkit_version_int and follow 21+
7146 convention of returning 3 integers.
7147
7148 2008-12-30 Kenichi Handa <handa@m17n.org>
7149
7150 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
7151 (CHAR_SURROGATE_PAIR_P): New macro.
7152
7153 * font.h (struct font_driver): New member get_variation_glyphs.
7154
7155 * font.c (font_range): Don't require a font for a variation selector.
7156 (Ffont_variation_glyphs): New function.
7157 (syms_of_font): Defsubr it.
7158
7159 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
7160 ftfont_variation_glyphs.
7161 (setup_otf_gstring): New function.
7162 (ftfont_drive_otf): Use it.
7163 (ftfont_shape_by_flt): Handle variation selector.
7164 (ftfont_variation_glyphs): New function.
7165
7166 2008-12-30 Martin Rudalics <rudalics@gmx.at>
7167
7168 * frame.c (Vemacs_iconified): Remove.
7169
7170 2008-12-30 Jason Rumney <jasonr@gnu.org>
7171
7172 * frame.c (store_frame_param, x_get_arg): Enable newer code on
7173 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7174
7175 2008-12-30 Chong Yidong <cyd@stupidchicken.com>
7176
7177 * indent.c (Fvertical_motion): Don't advance iterator if we have
7178 reseated to the desired position.
7179
7180 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
7181 checking for pos match.
7182
7183 2008-12-30 Kenichi Handa <handa@m17n.org>
7184
7185 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
7186 just get the low 8-bit of the code.
7187
7188 * font.c (font_intern_prop): Validate str as multibyte.
7189
7190 2008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
7191
7192 * dispextern.h (struct face): Move lface and hash from the middle
7193 of bitfields.
7194
7195 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
7196
7197 2008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
7198
7199 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
7200 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
7201 instead of intervals.h.
7202
7203 2008-12-26 Andreas Schwab <schwab@suse.de>
7204
7205 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
7206 cons.
7207
7208 2008-12-26 Martin Rudalics <rudalics@gmx.at>
7209
7210 * textprop.c (Qminibuffer_prompt): New variable.
7211 (syms_of_textprop): Initialize it.
7212 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
7213 in minibuffer-prompt face. (Bug#1662)
7214
7215 2008-12-25 Jason Rumney <jasonr@gnu.org>
7216
7217 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
7218
7219 2008-12-24 Jason Rumney <jasonr@gnu.org>
7220
7221 * ralloc.c (r_alloc_reset_variable): New function.
7222
7223 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
7224 record of what points where. (Bug#716)
7225
7226 2008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
7227
7228 * minibuf.c (read_minibuf): Follow the non-interactive case when
7229 running as a daemon, before detaching.
7230
7231 2008-12-22 Andreas Schwab <schwab@suse.de>
7232
7233 * buffer.c (init_buffer): Use realloc instead of xrealloc.
7234 * gtkutil.c (free_widget_value): Use xfree instead of free.
7235
7236 2008-12-22 Martin Rudalics <rudalics@gmx.at>
7237
7238 * frame.c (delete_frame): New function derived from
7239 Fdelete_frame to handle Qnoelisp value for FORCE argument.
7240 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
7241 (Fdelete_frame): Call delete_frame. Remove line from doc-string
7242 saying that FORCE non-nil doesn't run `delete-frame-functions'.
7243 * frame.h: Extern delete_frame.
7244 * window.c (window_loop):
7245 * terminal.c (delete_terminal):
7246 * xterm.c (x_connection_closed):
7247 * xfns.c (Fx_hide_tip):
7248 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
7249
7250 2008-12-21 Jason Rumney <jasonr@gnu.org>
7251
7252 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
7253 when character maps to .notdef character.
7254
7255 2008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
7256
7257 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
7258
7259 2008-12-20 Jason Rumney <jasonr@gnu.org>
7260
7261 * frame.c (Fmake_terminal_frame): Raise an error when called from
7262 a graphical frame on Windows. (Bug#1325)
7263
7264 2008-12-20 Jan Djärv <jan.h.d@swipnet.se>
7265
7266 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
7267
7268 2008-12-20 Chong Yidong <cyd@stupidchicken.com>
7269
7270 * minibuf.c (Fread_buffer): Doc fix.
7271
7272 2008-12-20 Jason Rumney <jasonr@gnu.org>
7273
7274 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
7275 server name in UNC paths. (Bug#719)
7276
7277 * coding.c (decode_coding): Clear chars_at_source flag when using
7278 charbuf. (Bug#1035)
7279
7280 2008-12-19 Daniel Engeler <engeler@gmail.com>
7281
7282 * sysdep.c (serial_configure): Fix typo.
7283
7284 2008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
7285
7286 * sysdep.c: Include alloca.h.
7287 (system_process_attributes): Add implementation for Solaris.
7288
7289 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
7290
7291 2008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
7292
7293 Reorganize implementation of Flist_system_processes and
7294 Fsystem_process_attributes. No functional changes.
7295 * process.c: Don't #include pwd.h, grp.h and limits.h.
7296 (Flist_system_processes): Just call list_system_processes.
7297 (Fsystem_process_attributes): Just call system_process_attributes.
7298 (procfs_list_system_processes, time_from_jiffies)
7299 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
7300 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
7301
7302 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
7303 (list_system_processes): Rename from
7304 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
7305 Provide a do nothing implementation.
7306 (system_process_attributes): Rename from
7307 procfs_list_system_processes.
7308 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
7309 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
7310
7311 * w32.c (list_system_processes): Rename from
7312 w32_list_system_processes.
7313 (system_process_attributes): Rename from
7314 w32_system_process_attributes.
7315
7316 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
7317
7318 * process.h (w32_list_system_processes)
7319 (w32_system_process_attributes): Remove.
7320 (list_system_processes, system_process_attributes):
7321 New prototypes.
7322
7323 2008-12-19 Kenichi Handa <handa@m17n.org>
7324
7325 * xfont.c (xfont_decode_coding_xlfd): New function.
7326 (xfont_encode_coding_xlfd): New function.
7327 (xfont_list_pattern): Decode XLFD by iso-8859-1.
7328 (xfont_list): Decode and encode XLFD by iso-8859-1.
7329 (xfont_match): Likewise.
7330 (xfont_list_family): Likewise.
7331 (xfont_open): Likewise.
7332
7333 * ftfont.c (ftfont_open): Generate a multibyte string if given
7334 names are utf-8.
7335
7336 * xftfont.c (xftfont_open): Generate a multibyte string if given
7337 names are utf-8.
7338
7339 2008-12-18 Jan Djärv <jan.h.d@swipnet.se>
7340
7341 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
7342 changed.
7343 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
7344 clicked on a detached tool bar button.
7345
7346 2008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
7347
7348 * emacs.c (main): Print and error and exit when no data is read
7349 from the pipe.
7350
7351 2008-12-17 Jason Rumney <jasonr@gnu.org>
7352
7353 * w32font.c (w32font_has_char): Always return -1.
7354
7355 2008-12-16 Kenichi Handa <handa@m17n.org>
7356
7357 * font.c (font_open_entity): Fix previous change.
7358
7359 2008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
7360
7361 * process.c: Include <limits.h>.
7362
7363 2008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
7364
7365 * font.c (font_update_drivers): Fix mistake in reconstructing the
7366 driver list.
7367
7368 2008-12-16 Chong Yidong <cyd@stupidchicken.com>
7369
7370 * font.c (font_clear_cache): Fix format of font cache data.
7371
7372 2008-12-15 Chong Yidong <cyd@stupidchicken.com>
7373
7374 * xftfont.c (xftfont_open): Free Xft font pattern if
7375 XftFontOpenPattern fails.
7376
7377 * xterm.c (x_free_frame_resources): Remove extraneous call to
7378 free_frame_faces.
7379
7380 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
7381
7382 * xterm.c (x_delete_display): Move xim_close_dpy call to
7383 x_delete_terminal.
7384 (x_delete_terminal): Call xim_close_dpy.
7385
7386 2008-12-13 Jason Rumney <jasonr@gnu.org>
7387
7388 * w32font.c (intern_font_name): New function.
7389 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
7390 (w32font_open_internal, Fx_select_font): Decode font name.
7391 (fill_in_logfont, list_all_matching_fonts): Encode font name.
7392
7393 * w32font.h (intern_font_name): Declare new function.
7394
7395 * w32uniscribe.c (add_opentype_font_name_to_list):
7396 Use intern_font_name.
7397
7398 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
7399
7400 * frame.c (Fdelete_frame): Call free_font_driver_list.
7401
7402 * font.c (free_font_driver_list): Implement missing function.
7403
7404 * w32term.c (w32_term_init): Don't initialize the image cache
7405 here; it will be done in init_frame_faces.
7406
7407 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
7408 (struct x_display_info): Remove unused member null_pixel. New
7409 member xim_callback_data.
7410
7411 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
7412 (xim_initialize): Save pointer to callback function data.
7413 (xim_close_dpy): Free callback function data. Call XCloseIM,
7414 reverting 2008-11-04 change by David Smith.
7415 (x_term_init): Don't initialize the image cache here; it will be
7416 done in init_frame_faces. Remove ancient "null_pixel" cruft.
7417 (x_delete_display): Free x_dnd_atoms member.
7418
7419 2008-12-13 Kenichi Handa <handa@m17n.org>
7420
7421 * font.c (font_rescale_ratio): Moved from xfaces.c.
7422 Argument type changed. Handle a font-spec too.
7423 (font_score): Check Vface_font_rescale_alist.
7424 (font_open_entity): Likewise. (Bug#1547)
7425
7426 * xfaces.c (font_rescale_ratio): Moved to font.c.
7427
7428 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
7429
7430 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
7431
7432 2008-12-12 Jason Rumney <jasonr@gnu.org>
7433
7434 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
7435 Vwindow_system_version to the real w32 major version.
7436
7437 2008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
7438
7439 * term.c (init_tty): Move setting the terminal name before the
7440 potential user: maybe_fatal.
7441
7442 2008-12-11 Chong Yidong <cyd@stupidchicken.com>
7443
7444 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
7445 all callers changed. Call free_frame_faces to free the face cache.
7446
7447 2008-12-11 Jason Rumney <jasonr@gnu.org>
7448
7449 * w32font.c (fill_in_logfont): Don't assume symbol script means
7450 SYMBOL_CHARSET. (Bug#547)
7451
7452 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
7453 size for surrogates. (Bug#1096, bug#872)
7454
7455 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
7456
7457 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
7458
7459 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
7460
7461 * process.c (Fsystem_process_attributes, syms_of_process):
7462 Fix typo in name of Ssystem_process_attributes.
7463 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
7464
7465 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
7466
7467 * syntax.c (Fmodify_syntax_entry): Doc fix.
7468
7469 2008-12-10 Juanma Barranquero <lekktu@gmail.com>
7470
7471 * font.c (Ffont_spec): Move usage to end of docstring.
7472
7473 2008-12-10 Jason Rumney <jasonr@gnu.org>
7474
7475 * w32font.c (Qcham): New symbol.
7476 (font_supported_scripts): Add cham, and comments for other new
7477 scripts in bitfield from OpenType spec.
7478 (add_font_entity_to_list): Limit unicode-sip fonts to those that
7479 contain characters beyond the bmp.
7480
7481 2008-12-10 Kenichi Handa <handa@m17n.org>
7482
7483 * ftfont.c (fc_charset_table): Add "unicode-sip".
7484 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7485 Qunicode_sip.
7486
7487 2008-12-10 Juanma Barranquero <lekktu@gmail.com>
7488
7489 * coding.c (QCdefault_char): Rename from QCdefalut_char.
7490 (Fcoding_system_put): Use QCdefault_char.
7491 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
7492
7493 2008-12-09 Chong Yidong <cyd@stupidchicken.com>
7494
7495 * xftfont.c (syms_of_xftfont): Fix typo.
7496
7497 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
7498
7499 2008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
7500
7501 * emacs.c (main): Close daemon_pipe on exec.
7502
7503 2008-12-08 Chong Yidong <cyd@stupidchicken.com>
7504
7505 * termchar.h (struct tty): New members termcap_term_buffer and
7506 termcap_strings_buffer.
7507
7508 * term.c (encode_terminal_code): Free any previous memory blocks
7509 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
7510 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
7511 All callers changed.
7512 (init_tty): Store termcap data and string buffers in new struct
7513 tty members termcap_term_buffer and termcap_strings_buffer.
7514 (delete_tty): Free them.
7515 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
7516
7517 2008-12-07 Seiji Zenitani <zenitani@mac.com>
7518
7519 * nsfns.m (ns_set_background_color): Remove code duplication.
7520 It was a substitute for face-transparency on OS X 10.3.
7521
7522 2008-12-06 Chong Yidong <cyd@stupidchicken.com>
7523
7524 * coding.c (make_conversion_work_buffer): Disable buffer
7525 modification hooks in the work buffer.
7526
7527 2008-12-05 Eli Zaretskii <eliz@gnu.org>
7528
7529 * process.c (procfs_system_process_attributes): If `nread' has a
7530 negative value, assign zero to it.
7531
7532 2008-12-05 Chong Yidong <cyd@stupidchicken.com>
7533
7534 * eval.c (Vdebug_on_error): Doc fix.
7535
7536 2008-12-05 Kenichi Handa <handa@m17n.org>
7537
7538 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
7539 second character is a combining character.
7540
7541 2008-12-05 Eli Zaretskii <eliz@gnu.org>
7542
7543 * process.c (procfs_system_process_attributes): Don't use cmd,
7544 cmdsize, and q without initializing them first.
7545
7546 2008-12-04 Jason Rumney <jasonr@gnu.org>
7547
7548 * w32font.c (w32font_draw): Initialize orig_clip before getting
7549 it, and delete it when finished.
7550
7551 2008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
7552
7553 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
7554 case when running as a daemon before detaching.
7555
7556 2008-12-03 Juanma Barranquero <lekktu@gmail.com>
7557
7558 * w32.c (init_environment): Don't unload library shell32.dll.
7559
7560 2008-12-03 Kenichi Handa <handa@m17n.org>
7561
7562 * font.c (font_at): Set `multibyte' at first.
7563
7564 * coding.c (decode_coding_charset): Check type of an element of
7565 vector VALIDS.
7566 (encode_coding_emacs_mule): Be sure to set `code'.
7567
7568 * fontset.c (face_for_char): Handle invalid charset property correctly.
7569 (font_for_char): Likewise.
7570
7571 2008-12-03 Chong Yidong <cyd@stupidchicken.com>
7572
7573 * font.c (Fopen_font): Compute pixel size correctly.
7574 (font_update_lface): Handle fonts with corrupted size specs,
7575 i.e. non-int and non-float.
7576
7577 * ftfont.c (ftfont_match): Initialize entity variable.
7578 (ftfont_resolve_generic_family): Avoid using uninitialized var.
7579 (ftfont_list_family): Initialize list var earlier.
7580
7581 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
7582
7583 * xterm.c (x_draw_glyph_string): Fall back on
7584 underline_minimum_offset for underline position.
7585
7586 2008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
7587
7588 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
7589
7590 * character.c (c_string_width): Specify the type for LEN.
7591
7592 2008-12-03 Kenichi Handa <handa@m17n.org>
7593
7594 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
7595 (decode_coding_utf_8): Likewise.
7596 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
7597 (produce_chars): Initialize consumed_chars to 0.
7598
7599 2008-12-02 Chong Yidong <cyd@stupidchicken.com>
7600
7601 * keyboard.c (make_lispy_position): Only use PT if the selected
7602 window is current.
7603
7604 2008-12-02 Andreas Schwab <schwab@suse.de>
7605
7606 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
7607
7608 * doprnt.c (doprnt1): Fix size of charbuf.
7609
7610 2008-12-02 Chong Yidong <cyd@stupidchicken.com>
7611
7612 * keyboard.c (timer_check): Revert last change.
7613
7614 2008-12-02 Juanma Barranquero <lekktu@gmail.com>
7615
7616 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
7617
7618 2008-12-01 Juanma Barranquero <lekktu@gmail.com>
7619
7620 * makefile.w32-in: Update dependencies.
7621 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
7622
7623 2008-12-01 Andreas Schwab <schwab@suse.de>
7624
7625 * font.c (register_font_driver): Use xmalloc.
7626 (font_put_frame_data): Likewise.
7627
7628 2008-12-01 Chong Yidong <cyd@stupidchicken.com>
7629
7630 * xfaces.c (realize_x_face): Make abort condition clearer.
7631
7632 * gtkutil.c (update_frame_tool_bar): Initialize variable.
7633
7634 2008-11-30 Chong Yidong <cyd@stupidchicken.com>
7635
7636 * keyboard.c (timer_check): After a timer runs, ensure that the
7637 selected window's buffer is current.
7638
7639 2008-11-30 Juanma Barranquero <lekktu@gmail.com>
7640
7641 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
7642 It was accidentally restored by the Unicode merge.
7643
7644 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
7645
7646 2008-11-29 Juanma Barranquero <lekktu@gmail.com>
7647
7648 * w32proc.c: Include "coding.h".
7649 (Fw32_short_file_name): Encode filename passed to Windows API.
7650 (Fw32_long_file_name): Encode filename passed to Windows API and
7651 decode back the result. (Bug#1433)
7652
7653 2008-11-29 Kenichi Handa <handa@m17n.org>
7654
7655 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
7656 not before accessing it.
7657
7658 * charset.c (Fdefine_charset_internal): After calculating
7659 min_char, max_char, and fastmap, copy the charset structure again.
7660 (encode_char): Fix the previous change.
7661
7662 2008-11-28 Seiji Zenitani <zenitani@mac.com>
7663
7664 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
7665
7666 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
7667
7668 * nsterm.m (x_set_frame_alpha): New function.
7669
7670 2008-11-27 Eli Zaretskii <eliz@gnu.org>
7671
7672 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
7673
7674 2008-11-27 Juanma Barranquero <lekktu@gmail.com>
7675
7676 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
7677 pointer to check_face_name.
7678
7679 2008-11-27 Kenichi Handa <handa@m17n.org>
7680
7681 * category.h (SET_CATEGORY_SET): Call set_category_set.
7682 (set_category_set): Extern it.
7683
7684 * category.c (hash_get_category_set): New function.
7685 (Fmodify_category_entry): Adjusted for the change of
7686 char_table_ref_and_range. Call hash_get_category_set to get a
7687 category set to store in the table.
7688
7689 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
7690 Funify_charset.
7691
7692 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
7693 (DECODE_CHAR): Check if the decoder vector is ready.
7694 (ENCODE_CHAR): Check if the encoder char-table is ready.
7695 (maybe_unify_char): Extern it.
7696
7697 * charset.c (Vchar_unified_charset_table): Delete it.
7698 (inhibit_load_charset_map): New variable.
7699 (temp_charset_work): New variable.
7700 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
7701 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
7702 New macros.
7703 (load_charset_map): Meaning of control_flag changed. If
7704 inhibit_load_charset_map is nonzero, setup a table in
7705 temp_charset_work.
7706 (load_charset): New argument control_flag.
7707 (map_charset_for_dump): New function.
7708 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
7709 map_charset_for_dump.
7710 (Fdefine_charset_internal): If the charset method is MAP, load
7711 mapping tables by calling load_charset.
7712 (Funify_charset): Don't load a mapping table but directly set
7713 Vchar_unify_table.
7714 (maybe_unify_char): New function.
7715 (decode_char): Don't handle the deleted method MAP_DEFERRED.
7716 Handle the case of inhibit_load_charset_map being nonzero.
7717 (encode_char): Don't handle the deleted method MAP_DEFERRED.
7718 Handle the case of inhibit_load_charset_map being nonzero.
7719 (Fclear_charset_maps): Just free temp_charset_work.
7720 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
7721 variable.
7722
7723 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
7724 change of char_table_ref_and_range.
7725 (char_table_ref_and_range): Change the meaning of argument FROM
7726 and TO. Now the caller must provide initial values for *FROM
7727 and *TO.
7728
7729 * fontset.c (fontset_add): Adjusted for the change of
7730 char_table_ref_and_range.
7731 (fontset_get_font_group): Likewise.
7732 (Ffontset_info): Likewise.
7733
7734 * keymap.c (describe_vector): Adjusted for the change of
7735 char_table_ref_and_range. For char-table, put boundary between
7736 non-ASCII and 8-bit characters.
7737
7738 * print.c (print_object): For bool-vector, delete unnecessary
7739 check of ASCII_BYTE_P.
7740
7741 2008-11-26 Jason Rumney <jasonr@gnu.org>
7742
7743 * w32font.c (w32font_open_internal): Don't include external
7744 leading in font height. (Bug#879)
7745
7746 2008-11-26 Glenn Morris <rgm@gnu.org>
7747
7748 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
7749 redefinition with ifdef. (Bug#1383)
7750
7751 2008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
7752
7753 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
7754
7755 2008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
7756
7757 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
7758 New EmacsView methods.
7759 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
7760 Fixes bug #1048,1357,1414.
7761
7762 2008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
7763
7764 Fix bug #1362.
7765 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
7766 is not an indexed color.
7767 * nsterm.m (free_indexed_color): Add argument checking.
7768 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
7769
7770 2008-11-24 Chong Yidong <cyd@stupidchicken.com>
7771
7772 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
7773 Document confirm-after-completion value for
7774 minibuffer-completion-confirm.
7775
7776 2008-11-24 Jason Rumney <jasonr@gnu.org>
7777
7778 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
7779 warning.
7780
7781 2008-11-23 Jason Rumney <jasonr@gnu.org>
7782
7783 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
7784 restored before returning.
7785
7786 * w32font.c (check_face_name): New function.
7787 (add_font_entity_to_list): Use it to filter out common substituted
7788 fonts. (Bug#642)
7789
7790 2008-11-22 Martin Rudalics <rudalics@gmx.at>
7791
7792 * buffer.c (Fswitch_to_buffer): Reword and mention new option
7793 confirm-nonexistent-file-or-buffer in doc-string.
7794
7795 2008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
7796
7797 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
7798 Fix copy/paste typo. Add checks.
7799
7800 2008-11-21 Kenichi Handa <handa@m17n.org>
7801
7802 * coding.c (detect_coding_iso_2022): Reject invalid composition
7803 sequence.
7804 (DECODE_COMPOSITION_START): If the current source is the last
7805 block, and the current composition doesn't end, regard this
7806 sequence as invalid.
7807 (decode_coding_iso_2022): Handle invalid composition sequence.
7808
7809 2008-11-20 Martin Rudalics <rudalics@gmx.at>
7810
7811 * window.c (coordinates_in_window): Don't return
7812 ON_VERTICAL_BORDER for the rightmost position of a mode/header
7813 line when the window is not the rightmost one. (Bug#1372)
7814
7815 2008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
7816
7817 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
7818
7819 2008-11-15 Eli Zaretskii <eliz@gnu.org>
7820
7821 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
7822 and bright_bg if noninteractive is non-zero.
7823
7824 2008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7825
7826 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
7827 x_draw_glyph_string_background.
7828
7829 * w32term.c (x_draw_glyph_string): Likewise.
7830
7831 2008-11-15 Chong Yidong <cyd@stupidchicken.com>
7832
7833 * xterm.c (x_draw_glyph_string): Stop drawing the background of
7834 the next glyph string once past the overhang width.
7835
7836 * nsterm.m (ns_draw_glyph_string): Likewise.
7837
7838 * w32term.c (x_draw_glyph_string): Likewise.
7839
7840 2008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
7841
7842 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
7843 double file close.
7844
7845 2008-11-14 Martin Rudalics <rudalics@gmx.at>
7846
7847 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
7848 dedicated status of window before attempting to display another
7849 buffer in it.
7850
7851 2008-11-14 Juanma Barranquero <lekktu@gmail.com>
7852
7853 * msdos.c (Fmsdos_long_file_names):
7854 (syms_of_msdos) <dos-unsupported-char-glyph>:
7855 * dosfns.c (Fint86): Fix typos in docstrings.
7856
7857 2008-11-14 Eli Zaretskii <eliz@gnu.org>
7858
7859 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
7860
7861 2008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
7862
7863 * puresize.h (BASE_PURESIZE): Increase to 1260000.
7864
7865 2008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
7866
7867 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
7868
7869 * frame.h: Negative alpha means "don't touch".
7870
7871 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
7872
7873 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
7874
7875 2008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
7876
7877 * hftctl.c:
7878 * chpdef.h:
7879 * acldef.h: Remove files used only for systems no longer supported.
7880
7881 * Makefile.in: Fix .o alphabetical ordering.
7882 (hftctl.o): Remove dependency, file removed.
7883 (keymap.o, print.o): Depend on charset.h.
7884
7885 2008-11-10 Kenichi Handa <handa@m17n.org>
7886
7887 * character.c (Fget_byte): Fix and make it faster for unibyte target.
7888
7889 2008-11-08 Chong Yidong <cyd@stupidchicken.com>
7890
7891 * dired.c (file_name_completion): If completion_ignore_case is
7892 enabled, ignore case when checking completion-regexp-list.
7893
7894 2008-11-08 Eli Zaretskii <eliz@gnu.org>
7895
7896 * vm-limit.c (get_lim_data): Fix last change.
7897
7898 2008-11-08 Kenichi Handa <handa@m17n.org>
7899
7900 * character.c (Fget_byte): New function.
7901 (syms_of_character): Defsubr Fget_byte.
7902
7903 2008-11-07 Chong Yidong <cyd@stupidchicken.com>
7904
7905 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
7906 cursor position is valid after scrolling.
7907
7908 2008-11-06 Juanma Barranquero <lekktu@gmail.com>
7909
7910 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
7911
7912 2008-11-06 Glenn Morris <rgm@gnu.org>
7913
7914 * xterm.c (handle_one_xevent): Don't let popup menus cause
7915 mouse-autoselect-window related window switching. (Bug#1261)
7916
7917 2008-11-04 David Smith <davidsmith@acm.org> (tiny change)
7918
7919 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
7920
7921 2008-11-04 Andreas Schwab <schwab@suse.de>
7922
7923 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
7924
7925 2008-11-03 Chong Yidong <cyd@stupidchicken.com>
7926
7927 * xfns.c (Fx_wm_set_size_hint): New function.
7928
7929 2008-11-03 Martin Rudalics <rudalics@gmx.at>
7930
7931 * textprop.c (Fprevious_single_char_property_change): Return 0
7932 when there's no change in a string. (Bug#1301)
7933
7934 2008-11-02 Martin Rudalics <rudalics@gmx.at>
7935
7936 * frame.c (do_switch_frame): New argument NORECORD passed to
7937 Fselect_window.
7938 (Fselect_frame): New argument NORECORD passed to
7939 do_switch_frame.
7940 (Fset_frame_selected_window): New argument NORECORD passed to
7941 Fselect_frame.
7942 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
7943 in call of do_switch_frame.
7944 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
7945 Handle NORECORD argument in call of Fselect_frame.
7946 * lisp.h (do_switch_frame, Fselect_frame)
7947 (Fset_frame_selected_window): Adjust declarations.
7948 * window.c (select_frame_norecord): New function.
7949 (run_window_configuration_change_hook): Use it and call
7950 Fselect_frame with NORECORD set.
7951 (Fselect_window): Pass NORECORD to Fselect_frame.
7952 (Fset_window_configuration): Handle NORECORD argument in call of
7953 do_switch_frame.
7954 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
7955 Fset_frame_selected_window.
7956 * keyboard.c (command_loop_1): Handle NORECORD in call of
7957 Fselect_frame (currently ifdefd).
7958
7959 2008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
7960
7961 * emacs.c (USAGE2): Untabify.
7962
7963 2008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
7964
7965 * composite.c (fill_gstring_header): Fix copy/paste typo.
7966
7967 2008-10-31 Martin Rudalics <rudalics@gmx.at>
7968
7969 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
7970 (Fother_window): Rename argument and rewrite doc-string.
7971 (select_window_norecord): Fix return value. (Bug#1276)
7972
7973 2008-10-30 Juanma Barranquero <lekktu@gmail.com>
7974
7975 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
7976 new frames overriding foreground for tooltips. Based on similar patch
7977 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
7978
7979 2008-10-29 Chong Yidong <cyd@stupidchicken.com>
7980
7981 * emacs.c (Fdaemon_initialized): Initialize nfd.
7982
7983 2008-10-29 Martin Rudalics <rudalics@gmx.at>
7984
7985 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
7986 (Fwindow_text_height): Clarify doc-strings.
7987 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
7988 doc-string of window-scroll-functions.
7989
7990 2008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
7991
7992 * category.c (syms_of_category): Fix typo in docstring.
7993
7994 2008-10-28 Juanma Barranquero <lekktu@gmail.com>
7995
7996 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
7997 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
7998 Fix typos in docstrings.
7999
8000 2008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
8001
8002 * emacs.c (daemon_pipe): Make non-static.
8003 (IS_DAEMON): Move definition ...
8004 * lisp.h (IS_DAEMON): ... here.
8005 (daemon_pipe): Declare.
8006 (is_daemon): Remove.
8007 * dispnew.c (init_display): Use IS_DAEMON.
8008
8009 2008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
8010
8011 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
8012 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
8013
8014 * emacs.c (is_daemon): Remove.
8015 (main): Don't set is_daemon.
8016 (IS_DAEMON): New macro.
8017 (Fdaemonp, Fdaemon_initialized): Use it.
8018 (Fdaemon_initialized): Write a char into the pipe to make sure the
8019 parent exits.
8020 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
8021
8022 2008-10-27 Chong Yidong <cyd@stupidchicken.com>
8023
8024 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
8025 over-sized glyph, draw it with the default glyph width.
8026
8027 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
8028 glyph, draw it with the default glyph width.
8029
8030 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
8031 glyph, draw it with the default glyph width.
8032
8033 * xdisp.c (try_scrolling): When computing the distance from the
8034 scroll margin to PT, try moving some distance past the window
8035 bottom before giving up.
8036
8037 2008-10-27 Martin Rudalics <rudalics@gmx.at>
8038
8039 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
8040 (Fset_window_buffer): Explain in doc-string that a window can be
8041 "strongly" dedicated to its buffer.
8042
8043 2008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
8044
8045 * emacs.c (daemon_name): New variable.
8046 (main): Deal with --daemon=SERVER_NAME.
8047 (Fdaemonp): Return a name if one was passed to --daemon.
8048
8049 2008-10-26 Romain Francoise <romain@orebokech.com>
8050
8051 * emacs.c (daemon_pipe): New variable.
8052 (main): Create a pipe before forking, make the parent exit only after
8053 the child has closed its end of the pipe. Move closing the
8054 descriptors ...
8055 (Fdaemon_initialized): ... here. New function.
8056
8057 2008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
8058
8059 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
8060 the previous unoptimized table.
8061
8062 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
8063 the distinction between non-nil and non-t value of `dedicated'.
8064
8065 2008-10-25 Chong Yidong <cyd@stupidchicken.com>
8066
8067 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
8068 read_char_minibuf_menu_text is large enough to hold the menu string.
8069
8070 2008-10-25 Martin Rudalics <rudalics@gmx.at>
8071
8072 * window.c (Fget_buffer_window, Fdelete_windows_on)
8073 (Freplace_buffer_in_windows): Make buffer argument optional and
8074 rename to buffer_or_name.
8075
8076 2008-10-24 Chong Yidong <cyd@stupidchicken.com>
8077
8078 * xdisp.c (handle_single_display_spec, handle_display_prop):
8079 Undo 2005-05-16 change.
8080 (handle_stop): Pop iterator if it's loaded with an empty string.
8081 (get_overlay_strings_1): Don't save iterator if it's loaded with
8082 an empty string (bug#1201).
8083
8084 2008-10-24 Kenichi Handa <handa@m17n.org>
8085
8086 * ftfont.c (ftfont_otf_features): Fix previous change.
8087 (ftfont_otf_capability): Check FeatureList.FeatureCount before
8088 calling ftfont_otf_features.
8089
8090 2008-10-24 Kenichi Handa <handa@m17n.org>
8091
8092 * font.c (font_match_p): Fix for the case that a vector of
8093 characters is in script-representative-chars.
8094
8095 2008-10-24 Michael Albinus <michael.albinus@gmx.de>
8096
8097 * dbusbind.c (xd_in_read_queued_messages): New variable.
8098 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
8099 (xd_read_queued_messages): Catch Qdbus_error from the macros.
8100 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
8101 macro. (Bug#1186)
8102
8103 2008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
8104
8105 * s/sol2-10.h: New file.
8106
8107 2008-10-23 Juanma Barranquero <lekktu@gmail.com>
8108
8109 * xdisp.c (fill_glyph_string): Fix typo in source (though the
8110 poor beast has survived 9+ years and the jump from xterm.c!).
8111
8112 2008-10-23 Martin Rudalics <rudalics@gmx.at>
8113
8114 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
8115 Reword doc-string.
8116 (Fbury_buffer): In doc-string say what happens to the buffer's window.
8117
8118 2008-10-23 Juanma Barranquero <lekktu@gmail.com>
8119
8120 * character.c (syms_of_character) <script-representative-chars>:
8121 <unicode-category-table>: Doc fixes.
8122
8123 2008-10-23 Noah Friedman <friedman@splode.com>
8124
8125 * coding.c (make_conversion_work_buffer): Check that
8126 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
8127 Fget_buffer_create.
8128
8129 2008-10-23 Kenichi Handa <handa@m17n.org>
8130
8131 * font.c (font_add_log): Check the values of extra properties.
8132
8133 2008-10-22 Martin Rudalics <rudalics@gmx.at>
8134
8135 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
8136 Reword doc-string.
8137 (Fset_window_parameter): Use NILP.
8138 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
8139 (Frecenter): Use "selected" instead of "current" window in doc-strings.
8140
8141 2008-10-22 Juanma Barranquero <lekktu@gmail.com>
8142
8143 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
8144
8145 2008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
8146
8147 * nsfns.m (ns_appkit_version): New function.
8148 (x-server-version): Use it.
8149 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
8150 (x-server-vendor): Don't check_ns().
8151
8152 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
8153
8154 2008-10-22 Juanma Barranquero <lekktu@gmail.com>
8155
8156 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
8157 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
8158
8159 2008-10-22 Kenichi Handa <handa@m17n.org>
8160
8161 * syntax.c (scan_words): Call word_boundary_p instead of comparing
8162 scripts.
8163
8164 * category.c (word_boundary_p): Check scripts instead of charset.
8165 Handle nil value in word-separating-categories and
8166 word-combining-categories.
8167 (syms_of_category): Fix docstrings of word-separating-categories
8168 and word-combining-categories.
8169
8170 2008-10-21 Eli Zaretskii <eliz@gnu.org>
8171
8172 * coding.c (Fencode_coding_region, Fdecode_coding_region)
8173 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
8174
8175 2008-10-21 Martin Rudalics <rudalics@gmx.at>
8176
8177 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
8178 Rename arg "buffer" to "buffer_or_name".
8179 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
8180 it optional.
8181 (no_switch_window): Remove since the return value is not used.
8182 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
8183 Consider window as dedicated when Fwindow_dedicated_p returns a
8184 non-nil value.
8185 * lisp.h: Remove prototype for no_switch_window.
8186
8187 2008-10-21 Jan Djärv <jan.h.d@swipnet.se>
8188
8189 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
8190 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
8191
8192 2008-10-21 Kenichi Handa <handa@m17n.org>
8193
8194 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
8195 check Vlatin_extra_code_table.
8196
8197 2008-10-20 Eli Zaretskii <eliz@gnu.org>
8198
8199 * fileio.c (Fset_file_modes): Doc fix.
8200
8201 2008-10-19 Michael Albinus <michael.albinus@gmx.de>
8202
8203 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
8204 in arrays.
8205
8206 2008-10-19 Martin Rudalics <rudalics@gmx.at>
8207
8208 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
8209 Mention kill-buffer in doc-string.
8210 (Fset_window_buffer): Reinsert tem check removed in last commit.
8211 (Fenlarge_window, Fshrink_window): Have argument names and
8212 doc-string follow Elisp manual more closely.
8213
8214 2008-10-18 Eli Zaretskii <eliz@gnu.org>
8215
8216 * fileio.c (Fset_file_modes): Doc fix.
8217
8218 2008-10-18 Martin Rudalics <rudalics@gmx.at>
8219
8220 * window.c (Fwindow_width, Fset_window_start)
8221 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
8222 (Fdelete_windows_on, Freplace_buffer_in_windows):
8223 Make doc-strings follow code and Elisp manual more closely.
8224 (Fwindow_dedicated_p): Make window argument optional.
8225 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
8226 (Fset_window_buffer): Respect any non-nil dedicated value for
8227 window. Rename "buffer" argument to "buffer_or_name".
8228
8229 2008-10-18 Ulrich Mueller <ulm@gentoo.org>
8230
8231 * m/sh3.h: New file, machine description for SuperH.
8232
8233 2008-10-17 Martin Rudalics <rudalics@gmx.at>
8234
8235 * window.c (Fsplit_window): Rename arg horflag to horizontal.
8236
8237 2008-10-17 Kenichi Handa <handa@m17n.org>
8238
8239 * ftfont.c (ftfont_otf_features): Fix indexing
8240 gsub_gpos->FeatureList.Feature. Check the validity of indices.
8241
8242 2008-10-16 Magnus Henoch <mange@freemail.hu>
8243
8244 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
8245 (Fdbus_call_method_asynchronously): Ditto.
8246 This change makes C-h f display the argument list.
8247
8248 2008-10-16 Chong Yidong <cyd@stupidchicken.com>
8249
8250 * fileio.c (Fexpand_file_name): Doc fix.
8251
8252 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
8253 of :foreground and :background equivalent to unspecified (20.x
8254 compatibility).
8255
8256 2008-10-15 Eli Zaretskii <eliz@gnu.org>
8257
8258 * buffer.c (syms_of_buffer): Doc fix.
8259
8260 2008-10-14 Kenichi Handa <handa@m17n.org>
8261
8262 * font.c (font_clear_prop): When clearing font width, clear the
8263 average width field too.
8264
8265 2008-10-12 Andreas Schwab <schwab@suse.de>
8266
8267 * ftfont.c (ftfont_shape_by_flt): Make static.
8268 * ftfont.h (ftfont_shape_by_flt): Don't declare.
8269
8270 * font.c: Don't include <m17n-flt.h>.
8271
8272 2008-10-10 Eli Zaretskii <eliz@gnu.org>
8273
8274 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
8275
8276 2008-10-09 Eli Zaretskii <eliz@gnu.org>
8277
8278 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
8279 away code.
8280
8281 2008-10-09 Chong Yidong <cyd@stupidchicken.com>
8282
8283 * dispnew.c (update_text_area): Avoid looping due to large glyph
8284 overhangs (bug#1070).
8285
8286 2008-10-09 Kenichi Handa <handa@m17n.org>
8287
8288 * fontset.c (face_for_char): If face->fontset is negative, just
8289 return ascii_face.
8290
8291 * font.c (font_delete_unmatched): Fix previous change.
8292 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
8293
8294 2008-10-09 Martin Rudalics <rudalics@gmx.at>
8295
8296 * frame.c (Fraise_frame): On text-only terminals select frame in
8297 order to make it visible. (Bug#1061)
8298
8299 2008-10-08 Chong Yidong <cyd@stupidchicken.com>
8300
8301 * fontset.c (fontset_find_font): Check frame validity.
8302
8303 2008-10-07 Chong Yidong <cyd@stupidchicken.com>
8304
8305 * gtkutil.c (xg_display_open): Reset default display if none exists.
8306 (xg_display_close): Allow Emacs to close all displays (bug#985).
8307
8308 2008-10-06 Andreas Schwab <schwab@suse.de>
8309
8310 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
8311
8312 2008-10-06 Chong Yidong <cyd@stupidchicken.com>
8313
8314 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
8315
8316 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
8317
8318 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
8319 during initialization.
8320
8321 2008-10-04 Eli Zaretskii <eliz@gnu.org>
8322
8323 * xdisp.c (redisplay_internal): If frame switched, redisplay the
8324 whole thing on MSDOS frames as well as on a TTY.
8325
8326 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
8327 well as for TTY.
8328 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
8329 well as on a TTY.
8330
8331 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
8332 as well as for TTY.
8333
8334 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
8335
8336 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
8337 MSDOS frames as well.
8338
8339 2008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
8340
8341 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
8342 correct arguments.
8343 * menu.c (find_and_return_menu_selection): Add cast.
8344
8345 2008-10-03 Glenn Morris <rgm@gnu.org>
8346
8347 * emacs.c (USAGE1): Add --daemon.
8348
8349 2008-10-02 Eli Zaretskii <eliz@gnu.org>
8350
8351 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
8352 100, so it's in percents as advertised.
8353
8354 2008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
8355
8356 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
8357 (ns_output.current_cursor, ns_output.desired_cursor)
8358 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
8359 (FRAME_NEW_CURSOR_COLOR): Remove.
8360
8361 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
8362 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
8363 enumeration (HOLLOW_BOX_CURSOR, etc.).
8364
8365 * nsterm.m (ns_frame_rehighlight): Remove commented code.
8366 (draw_window_cursor): Simplify code.
8367 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
8368 Don't change cursor type. In latter, call rehighlight instead of doing
8369 updates manually.
8370 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
8371 Use core Emacs cursor types.
8372
8373 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
8374
8375 2008-10-02 Martin Rudalics <rudalics@gmx.at>
8376
8377 * process.c (Faccept_process_output): Fix doc-string.
8378
8379 2008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
8380
8381 * gmalloc.c (__sbrk): Also define for uClibc.
8382
8383 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
8384 for uClibc.
8385
8386 2008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
8387
8388 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
8389 styles.
8390 (nsfont_open): Reenable the cache.
8391
8392 2008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
8393
8394 * font.c (font_matching_entity): Reflect ATTRS in font selection.
8395 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
8396
8397 2008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
8398
8399 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
8400 a suspended terminal.
8401
8402 2008-09-30 Michael Albinus <michael.albinus@gmx.de>
8403
8404 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
8405
8406 2008-09-30 Eli Zaretskii <eliz@gnu.org>
8407
8408 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
8409
8410 2008-09-30 Chong Yidong <cyd@stupidchicken.com>
8411
8412 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
8413 in a continued line coincides with a line beginning.
8414
8415 2008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
8416
8417 * nsfont.m (nsfont_trait_distance): Fix bug.
8418 (nsfont_list): Return a list rather than a vector (syncs with Handa
8419 changes of 2008-05-14).
8420 (nsfont_open): Improve logging.
8421
8422 2008-09-29 Andreas Schwab <schwab@suse.de>
8423
8424 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
8425
8426 2008-09-28 Martin Rudalics <rudalics@gmx.at>
8427
8428 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
8429 name as char-resolve-modifiers.
8430 Reported by: Markus Triska <markus.triska@gmx.at>
8431
8432 2008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
8433
8434 * dispnew.c (init_display): Return earlier when running as a daemon.
8435
8436 2008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
8437
8438 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
8439
8440 2008-09-27 Eli Zaretskii <eliz@gnu.org>
8441
8442 * composite.c (Fcomposition_get_gstring)
8443 (Fcompose_region_internal, Fcompose_string_internal)
8444 (Ffind_composition_internal): Doc fix.
8445 (syms_of_composite) <compose-chars-after-function>: Doc fix.
8446 (syms_of_composite) <auto-composition-function>: Doc fix.
8447 (syms_of_composite) <composition-function-table>: Doc fix.
8448
8449 2008-09-25 Chong Yidong <cyd@stupidchicken.com>
8450
8451 * search.c (wordify): New argument for lax word-ends.
8452 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
8453
8454 2008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
8455
8456 * lisp.h (is_daemon): Declare.
8457 * dispnew.c (init_display): Do not try to initialize the terminal
8458 when running as a daemon.
8459
8460 2008-09-22 Chong Yidong <cyd@stupidchicken.com>
8461
8462 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
8463 x_display_pixel_height.
8464
8465 2008-09-22 Martin Rudalics <rudalics@gmx.at>
8466
8467 * undo.c (record_point): Don't call Fundo_boundary for first
8468 change. (Bug#731)
8469
8470 2008-09-22 Juanma Barranquero <lekktu@gmail.com>
8471
8472 * emacs.c (Fdaemonp): Doc fix.
8473
8474 2008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
8475
8476 * emacs.c (main): Place #ifdef in the proper place.
8477
8478 2008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
8479
8480 * emacs.c (standard_args): Add --daemon.
8481 (main): Disconnect from the terminal when --daemon is passed.
8482 (is_daemon): New variable.
8483 (Fdaemonp): New function.
8484 (syms_of_emacs): Defsubr it.
8485
8486 2008-09-20 Chong Yidong <cyd@stupidchicken.com>
8487
8488 * xdisp.c (get_next_display_element): Handle string display
8489 correctly when checking for the end of a box run.
8490
8491 2008-09-20 Glenn Morris <rgm@gnu.org>
8492
8493 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
8494 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
8495 (Frename_file): Avoid copying to trash if a rename involves
8496 a delete. (Bug#964).
8497
8498 2008-09-20 Eli Zaretskii <eliz@gnu.org>
8499
8500 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
8501 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
8502 frames as well as termcap frames.
8503 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
8504 get_named_tty.
8505
8506 2008-09-19 Eli Zaretskii <eliz@gnu.org>
8507
8508 * process.c (procfs_system_process_attributes): Fix cmdline in
8509 case /proc/PID/cmdline is empty.
8510
8511 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
8512 x_display_pixel_height.
8513
8514 2008-09-19 Juanma Barranquero <lekktu@gmail.com>
8515
8516 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
8517
8518 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
8519 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
8520
8521 2008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
8522
8523 * dispextern.h (struct it): Move line_wrap away from the middle of
8524 bitfields. Move voffset in struct iterator_stack_entry after the
8525 bitfields. Move tab_width near after another short.
8526
8527 2008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
8528
8529 * frame.h (struct frame): Move alpha from the middle of bitfields.
8530
8531 * window.h (struct window): Move frozen_window_start_p after the
8532 rest of the bitfields to reduce padding.
8533
8534 2008-09-18 Chong Yidong <cyd@stupidchicken.com>
8535
8536 * xterm.h (x_display_info): Remove `height' and `width' members.
8537
8538 * nsterm.h (ns_display_info): Remove `height' and `width' members.
8539
8540 * w32term.h (w32_display_info): Remove `height', `width',
8541 `height_in', and `width_in' members.
8542
8543 * xterm.c (x_display_pixel_height, x_display_pixel_width):
8544 New functions.
8545 (x_calc_absolute_position): Use them.
8546 (x_term_init): Omit removed `height' and `width' members.
8547
8548 * w32term.c (x_display_pixel_height, x_display_pixel_width):
8549 New functions.
8550 (w32_read_socket, x_calc_absolute_position): Use them.
8551 (w32_initialize_display_info, w32_term_init): Omit removed members
8552 of w32_display_info.
8553
8554 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
8555 New functions.
8556 (ns_initialize_display_info): Omit removed members of ns_display_info.
8557
8558 * xterm.c (x_display_pixel_height, x_display_pixel_width):
8559 New functions.
8560 (x_calc_absolute_position): Use them.
8561 (x_term_init): Omit removed `height' and `width' members.
8562
8563 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
8564 (compute_tip_xy):
8565 * frame.c (x_fullscreen_adjust):
8566 * xmenu.c (menu_position_func): Use x_display_pixel_height and
8567 x_display_pixel_width.
8568
8569 2008-09-18 Kenichi Handa <handa@m17n.org>
8570
8571 * composite.c (fill_gstring_header): Don't check FROM and TO here.
8572 (composition_compute_stop_pos): Fix handling of static composition.
8573 (Fcomposition_get_gstring): Check FROM and TO at first.
8574
8575 2008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
8576
8577 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
8578 mixup (YAILOM).
8579
8580 2008-09-17 Chong Yidong <cyd@stupidchicken.com>
8581
8582 * indent.c (Fvertical_motion): Use position reported by iterator
8583 instead of PT for determining screen motion (bug#943).
8584
8585 2008-09-17 Romain Francoise <romain@orebokech.com>
8586
8587 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
8588
8589 2008-09-17 Kenichi Handa <handa@m17n.org>
8590
8591 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
8592
8593 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
8594 if necessary.
8595
8596 2008-09-16 Kenichi Handa <handa@m17n.org>
8597
8598 * coding.c (make_conversion_work_buffer): Avoid calling
8599 Fget_buffer_create if it is not necessary.
8600
8601 2008-09-15 Martin Rudalics <rudalics@gmx.at>
8602
8603 * window.c (Fselect_window): Don't update window_select_count and
8604 use_time when norecord is not nil.
8605
8606 2008-09-14 Kenichi Handa <handa@m17n.org>
8607
8608 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
8609 specpdl_ptr.
8610
8611 2008-09-12 Kenichi Handa <handa@m17n.org>
8612
8613 * indent.c (scan_for_column): Don't handle automatic composition
8614 if the current buffer is not associated with a window.
8615
8616 * composite.c (composition_reseat_it): If the current buffer is
8617 not associated with a window, ignore the automatic composition.
8618 (find_automatic_composition): Likewise.
8619
8620 2008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
8621
8622 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
8623 (Fgpm_mouse_stop): Use it.
8624 * termhooks.h (close_gpm): Declare.
8625 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
8626 connection if Gpm_GetEvent fails.
8627
8628 * window.c (set_window_buffer): Always preserve current-buffer.
8629
8630 2008-09-12 Glenn Morris <rgm@gnu.org>
8631
8632 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
8633
8634 2008-09-11 Glenn Morris <rgm@gnu.org>
8635
8636 * charset.c (charset-map-path): Doc fix.
8637
8638 2008-09-10 Kenichi Handa <handa@m17n.org>
8639
8640 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
8641
8642 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
8643 compose a grapheme cluster with the preceding base glyph.
8644
8645 * composite.c (composition_compute_stop_pos): Fix previous change.
8646 Reset cmp_it->id to -1 at first.
8647
8648 2008-09-10 Glenn Morris <rgm@gnu.org>
8649
8650 * Makefile.in (character.o, chartab.o): Fix config.h typo.
8651
8652 2008-09-09 Chong Yidong <cyd@stupidchicken.com>
8653
8654 * keyboard.c (read_key_sequence): Reapply translation maps when
8655 switching keyboards.
8656
8657 2008-09-09 Kenichi Handa <handa@m17n.org>
8658
8659 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
8660 characters.
8661
8662 * composite.c (FORWARD_CHAR): Fix calculation
8663 of (POSITION).pos_byte.
8664 (composition_compute_stop_pos): Limit the search of composition to
8665 at most 500 characters ahead. If we reach the limit or find a
8666 newline, set cmp_it->ch to -2 and return 0.
8667 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
8668
8669 2008-09-08 Kenichi Handa <handa@m17n.org>
8670
8671 * indent.c (Fvertical_motion): Be sure to set
8672 it_overshoot_expected if it.cmp_it.id is non-negative.
8673
8674 2008-09-07 Andreas Schwab <schwab@suse.de>
8675
8676 * callproc.c (Fcall_process): Don't hold references to string data
8677 across garbage collection. Move initialisation of new_argv down
8678 to avoid compiler bug.
8679
8680 2008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
8681
8682 * process.c (Fsystem_process_attributes): Doc fix.
8683
8684 2008-09-07 Chong Yidong <cyd@stupidchicken.com>
8685
8686 * callproc.c (Fcall_process): Canonicalize current directory name.
8687
8688 * xdisp.c (move_it_to): When moving by vpos, ensure that the
8689 iterator advances to the next line if the current line ends in a
8690 continued tab.
8691
8692 2008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
8693
8694 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
8695 member to point to cmp_from.
8696
8697 * xdisp.c: Doc fix for references to gidx data member.
8698
8699 2008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
8700
8701 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
8702
8703 2008-09-07 Kenichi Handa <handa@m17n.org>
8704
8705 * composite.c (FORWARD_CHAR): Check STOP after
8706 incrementing (POSITION).pos.
8707
8708 2008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
8709
8710 * process.c (Fsystem_process_attributes): Doc fix.
8711
8712 2008-09-06 Chong Yidong <cyd@stupidchicken.com>
8713
8714 * keyboard.c (Ftop_level): Doc fix.
8715
8716 2008-09-06 Eli Zaretskii <eliz@gnu.org>
8717
8718 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
8719 minibuffer, don't let lower part of menu invade the echo area.
8720
8721 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
8722 "char *q" to access menu text and advance through it. Revert the
8723 change that displayed ">" instead of ASCII character 0x10.
8724
8725 2008-09-05 Eli Zaretskii <eliz@gnu.org>
8726
8727 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
8728 toggle boxes and radio buttons on MS-DOS as well.
8729
8730 2008-09-05 Kenichi Handa <handa@m17n.org>
8731
8732 * composite.c (autocmp_chars): Check lookback count.
8733 (composition_compute_stop_pos): Set cmp_it->lookback.
8734 (composition_reseat_it): Check lookback count.
8735 (struct position_record): New struct.
8736 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
8737 (find_automatic_composition): New function.
8738 (composition_adjust_point): Use find_automatic_composition.
8739
8740 * dispextern.h (struct composition_it): New member lookback.
8741
8742 2008-09-02 Chong Yidong <cyd@stupidchicken.com>
8743
8744 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
8745 if moving by a single line.
8746
8747 2008-09-02 Andreas Schwab <schwab@suse.de>
8748
8749 * xterm.c (x_delete_display): Fix merge error.
8750
8751 * fileio.c (Fexpand_file_name): Remove unused variables.
8752
8753 2008-09-02 Eli Zaretskii <eliz@gnu.org>
8754
8755 * fileio.c (Fexpand_file_name): Copy argument `name' into local
8756 storage on all platforms, not just on DOS_NT.
8757
8758 2008-09-02 Jason Rumney <jasonr@gnu.org>
8759
8760 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
8761 Ensure mouse is not grabbed after menu is finished.
8762
8763 2008-09-01 Chong Yidong <cyd@stupidchicken.com>
8764
8765 * xfaces.c (Finternal_set_alternative_font_family_alist)
8766 (Finternal_set_alternative_font_registry_alist): Properly copy
8767 entire alist structure.
8768
8769 2008-09-01 Kenichi Handa <handa@m17n.org>
8770
8771 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
8772 representative chars of the script is a vector.
8773 (ftfont_list): Handle the case where the representative chars of
8774 the script is a vector.
8775
8776 * character.c (syms_of_character): Docstring of
8777 script-representative-chars fixed.
8778
8779 2008-08-31 Eli Zaretskii <eliz@gnu.org>
8780
8781 * msdos.c (BUILD_CHAR_GLYPH): New macro.
8782 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
8783 the menu. Allocate larger buffer for `text', to account for
8784 possible ^C characters.
8785
8786 2008-08-31 Martin Rudalics <rudalics@gmx.at>
8787
8788 * xdisp.c (prepare_menu_bars): Don't call
8789 Vwindow_size_change_functions with arg Qt.
8790
8791 2008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
8792
8793 * font.h (font_range):
8794 * fileio.c (report_file_error):
8795 * composite.c (composition_update_it): Yet another int/Lisp_Object
8796 mixup (YAILOM).
8797
8798 2008-08-30 Glenn Morris <rgm@gnu.org>
8799
8800 * data.c (Fmake_variable_frame_local): Doc fix.
8801
8802 * frame.c (Fmodify_frame_parameters): Doc fix.
8803
8804 2008-08-30 Eli Zaretskii <eliz@gnu.org>
8805
8806 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
8807 needed by GetTokenInformation.
8808 (w32_system_process_attributes): Check return values of all system
8809 APIs.
8810
8811 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
8812 only when the state changes.
8813 (IT_update_begin, IT_update_end): Add termscript trace.
8814
8815 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
8816 clipboard is unavailable. Set dst to NULL if it doesn't point to
8817 malloc'ed data.
8818 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
8819 passing random values to xfree.
8820
8821 * dispnew.c (init_display): Set `tty's association in frame's
8822 parameters alist to the name of the terminal device, if that is known.
8823
8824 2008-08-29 Jason Rumney <jasonr@gnu.org>
8825
8826 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
8827
8828 2008-08-29 Eli Zaretskii <eliz@gnu.org>
8829
8830 * composite.c (fill_gstring_body): Avoid compiler warnings.
8831
8832 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
8833 LGLYPH_SET_CODE to avoid compiler warnings.
8834
8835 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
8836
8837 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
8838
8839 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
8840 LGLYPH_SET_CODE.
8841
8842 2008-08-29 Kenichi Handa <handa@m17n.org>
8843
8844 * fileio.c (report_file_error): Don't downcase the first character
8845 of errstring if it is still unibyte.
8846
8847 2008-08-29 Kenichi Handa <handa@m17n.org>
8848
8849 These changes are to re-implement the automatic composition so
8850 that it doesn't use text properties.
8851
8852 * Makefile.in (ftfont.o): Depend on composite.h.
8853 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
8854
8855 * character.h (Vunicode_category_table): Extern it.
8856
8857 * character.c (Vunicode_category_table): New variable.
8858 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
8859
8860 * chartab.c (optimize_sub_char_table): Perform more greedy
8861 optimization.
8862
8863 * composite.h (enum composition_method):
8864 Delete COMPOSITION_WITH_GLYPH_STRING.
8865 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
8866 (Vcomposition_function_table): Extern it.
8867 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
8868 (composition_gstring_put_cache, composition_gstring_from_id)
8869 (composition_gstring_p, composition_gstring_width)
8870 (composition_compute_stop_pos, composition_reseat_it)
8871 (composition_update_it, composition_adjust_point): Extern them.
8872 (Fcomposition_get_gstring): EXFUN it.
8873
8874 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
8875 (Vcomposition_function_table)
8876 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
8877 (gstring_hash_table, gstring_work, gstring_work_headers):
8878 New variables.
8879 (gstring_lookup_cache, composition_gstring_put_cache)
8880 (composition_gstring_from_id, composition_gstring_p)
8881 (composition_gstring_width, fill_gstring_header)
8882 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
8883 (composition_reseat_it, composition_update_it)
8884 (composition_adjust_point, Fcomposition_get_gstring): New functions.
8885 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
8886 and gstring_work_headers. DEFVAR_LISP composition-function-table.
8887 Defsubr composition_get_gstring.
8888
8889 * dispextern.h (struct glyph): New union u.cmp. Delete the member
8890 cmp_id.
8891 (struct glyph_string): Delete the member gidx. New members
8892 cmp_id, cmp_from, and cmp_to.
8893 (enum it_method): Delete GET_FROM_COMPOSITION.
8894 (struct composition_it): New struct.
8895 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
8896 Delete c, len, cmp_id, cmp_len in u.comp.
8897
8898 * font.h (enum lgstring_indices): Delete it.
8899 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
8900 (enum lglyph_indices): Likewise.
8901 (font_range): Adjust extern.
8902 (font_fill_lglyph_metrics): Extern it.
8903
8904 * font.c (QCf): New variable.
8905 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
8906 (font_prepare_composition): Delete this function.
8907 (font_range): Type and arguments changed.
8908 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
8909 (font_fill_lglyph_metrics): New function.
8910 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
8911 (syms_of_font): DEFSYM QCf. Delete defsubr for
8912 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
8913 Defsubr Sfont_shape_gstring.
8914
8915 * fontset.h (font_for_char): Extern it.
8916
8917 * fontset.c (font_for_char): New function.
8918
8919 * ftfont.c: Include composite.h.
8920 (ftfont_resolve_generic_family): Add langset "en" to pattern.
8921 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
8922
8923 * indent.c: Include composite.h and dispextern.h.
8924 (check_composition): Delete this function.
8925 (scan_for_column): Handle composition by
8926 composition_compute_stop_pos, composition_reseat_it, and
8927 composition_update_it.
8928 (compute_motion): Likewise.
8929 (Fvertical_motion): Fix checking of composition.
8930
8931 * keyboard.c (adjust_point_for_property): Check composition by
8932 composition_adjust_point.
8933
8934 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
8935 struct glyph_string.
8936
8937 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
8938 (append_composite_glyph): Adjust for the change of struct it and
8939 struct glyph.
8940 (produce_composite_glyph): Likewise.
8941
8942 * w32term.c (x_draw_composite_glyph_string_foreground):
8943 Adjust for the change of struct glyph_string.
8944 (x_draw_glyph_string): Likewise.
8945
8946 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
8947 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
8948
8949 * xdisp.c: Include font.h.
8950 (it_props): Delete the entry for Qauto_composed.
8951 (init_iterator): Initialize it->cmp_it.id to -1.
8952 (compute_stop_pos): Call composition_compute_stop_pos.
8953 (face_before_or_after_it_pos): Adjust for the change of struct it.
8954 (handle_auto_composed_prop): Delete it.
8955 (handle_composition_prop): Handle only static composition.
8956 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
8957 from xassert. Initialize it->cmp_it.stop_pos.
8958 (push_it): Adjust for the change of struct it.
8959 (pop_it): Likewise.
8960 (get_next_element): Delete next_element_from_composition.
8961 (CHAR_COMPOSED_P): New macro.
8962 (get_next_display_element): For automatic composition, get a face
8963 from the font in the glyph-string.
8964 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
8965 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
8966 (next_element_from_string): Check if the character at the current
8967 position is composed by CHAR_COMPOSED_P.
8968 (next_element_from_buffer): Likewise.
8969 (next_element_from_composition): Adjust for the change of struct it.
8970 Update it->cmp_it.
8971 (dump_glyph): Adjust for the change of struct glyph.
8972 (fill_composite_glyph_string): Adjust for the change of struct
8973 it and struct glyph. Don't handle automatic composition here.
8974 (fill_gstring_glyph_string): New function.
8975 (x_get_glyph_overhangs): Handle automatic composition.
8976 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
8977 (BUILD_GSTRING_GLYPH_STRING): New macro.
8978 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
8979 automatic composition.
8980 (append_composite_glyph): Adjust for the change of struct it and
8981 struct glyph.
8982 (x_produce_glyphs): Adjust for the change of struct it.
8983
8984 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
8985 the change of struct glyph_string.
8986 (x_draw_glyph_string): Likewise.
8987
8988 2008-08-29 Glenn Morris <rgm@gnu.org>
8989
8990 * buffer.c (word-wrap): Doc fix.
8991 * xdisp.c (truncate-partial-width-windows): Doc fix.
8992 Increase default to 50.
8993
8994 2008-08-29 Chong Yidong <cyd@stupidchicken.com>
8995
8996 * xdisp.c (update_tool_bar_unwind): New function.
8997 (update_tool_bar): Temporarily set selected frame before building
8998 tool-bar items.
8999
9000 2008-08-28 Michael Albinus <michael.albinus@gmx.de>
9001
9002 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
9003 snprintf, respectively.
9004 (xd_append_arg): Convert strings with Fstring_make_unibyte.
9005
9006 2008-08-28 Chong Yidong <cyd@stupidchicken.com>
9007
9008 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
9009 LDFLAGS to GNUstep CC invocation.
9010
9011 2008-08-27 Chong Yidong <cyd@stupidchicken.com>
9012
9013 * indent.c (Fvertical_motion): Revert last change. Handle the
9014 general case where we are moving forward, and PT spans multiple
9015 screen lines.
9016
9017 * eval.c (find_handler_clause): Temporarily increase
9018 max-lisp-eval-depth while printing the backtrace buffer, to
9019 guarantee that help-mode code can run.
9020
9021 2008-08-27 Eli Zaretskii <eliz@gnu.org>
9022
9023 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
9024 colors under -rv.
9025 (IT_set_frame_parameters): Don't swap foreground and background
9026 colors if `(reverse . t)' is present in the frame properties.
9027 (internal_terminal_init): Call init_frame_faces only for the
9028 initial frame.
9029
9030 2008-08-27 Andreas Schwab <schwab@suse.de>
9031
9032 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
9033
9034 2008-08-27 Andreas Schwab <schwab@suse.de>
9035
9036 * search.c (search_buffer): Set char_base to zero only at the end.
9037
9038 2008-08-27 Kenichi Handa <handa@m17n.org>
9039
9040 * fileio.c (report_file_error): Fix handling of multibyte error string.
9041
9042 2008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
9043
9044 * xterm.c (x_term_init): Temporarily hide the partially
9045 initialized terminal while calling vendor-specific-keysyms.
9046
9047 2008-08-26 Eli Zaretskii <eliz@gnu.org>
9048
9049 * msdos.c (internal_terminal_init): Most initializations done only
9050 once, especially initial_screen_colors[] and termscript open.
9051
9052 2008-08-26 Chong Yidong <cyd@stupidchicken.com>
9053
9054 * eval.c (Fcondition_case): Doc fix.
9055
9056 * widgetprv.h (EmacsFramePart): Change font member to the new font
9057 struct.
9058
9059 * widget.c: Include character.h and font.h for XSETFONT.
9060 (setup_frame_gcs): Compute X font id from font struct, just once.
9061
9062 2008-08-26 Eli Zaretskii <eliz@gnu.org>
9063
9064 * term.c (get_named_tty): Fix last change.
9065
9066 2008-08-26 Chong Yidong <cyd@stupidchicken.com>
9067
9068 * indent.c (Fvertical_motion): If moving forward starting from a
9069 multi-line string, move the iterator to the last line of that string.
9070
9071 2008-08-25 Eli Zaretskii <eliz@gnu.org>
9072
9073 * frame.c (do_switch_frame): Mark previously displayed frame as
9074 obscured for FRAME_MSDOS_P frames as well.
9075
9076 2008-08-24 Eli Zaretskii <eliz@gnu.org>
9077
9078 * frame.c (make_terminal_frame): Initialize f->terminal,
9079 f->terminal->reference_count, and scroll bars on MS-DOS as well.
9080 Set the top frame to newly created frame.
9081 (Fmake_terminal_frame): Reuse the_only_display_info.
9082
9083 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
9084 estimating available memory.
9085
9086 2008-08-23 David Reitter <david.reitter@gmail.com>
9087
9088 * nsterm.m (ns_draw_window_cursor): Don't call
9089 NSDisableScreenUpdates and NSEnableScreenUpdates on
9090 non-NS_IMPL_COCOA systems.
9091
9092 2008-08-23 Andreas Schwab <schwab@suse.de>
9093
9094 * process.c (procfs_system_process_attributes): Fix use of
9095 uninitialized variables.
9096
9097 2008-08-23 Eli Zaretskii <eliz@gnu.org>
9098
9099 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
9100
9101 * dispnew.c (init_display): Remove MS-DOS specific conditions for
9102 calling tty-set-up-initial-frame-faces.
9103
9104 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
9105 Allow MSDOS frames along with X frames.
9106
9107 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
9108 addition to output_termcap.
9109
9110 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
9111
9112 * termchar.h (FRAME_TTY): Support output_msdos_raw.
9113 (struct tty_display_info) [MSDOS]: Add fields related to mouse
9114 highlight.
9115
9116 * process.c [!subprocesses]: Define QCname.
9117 (syms_of_process): Intern and staticpro it.
9118
9119 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
9120 Adjust for changes in encoding/decoding routines.
9121 Use encode_coding_object and decode_coding_object instead of
9122 encode_coding and decode_coding.
9123
9124 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
9125
9126 * dosfns.c: Include frame.h before termhooks.h.
9127 (dos_cleanup): Use CURTTY ()->termscript instead of a global
9128 variable termscript.
9129
9130 * s/msdos.h (USER_FULL_NAME): Define.
9131 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
9132
9133 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
9134 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
9135 pw->pw_gecos.
9136
9137 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
9138 SELECTED_FRAME as additional (1st) argument.
9139 (tty_read_avail_input): Handle output_msdos_raw in
9140 addition to output_termcap.
9141
9142 * msdos.c: Include frame.h before termhooks.h.
9143 (mouse_on, mouse_off, mouse_moveto, mouse_init)
9144 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
9145 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
9146 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
9147 (IT_set_terminal_modes, IT_reset_terminal_modes)
9148 (IT_set_frame_parameters): Use tty->termscript instead of a global
9149 variable termscript.
9150 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
9151 global variable terminal_coding. Don't refer to
9152 Vnonascii_translation_table.
9153 (internal_terminal_init): Set Vwindow_system in current_kboard.
9154 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
9155 Announce date and time of session start, if termscript is open.
9156 Don't zero out the_only_display_info (it is done in
9157 term.c:init_tty). Open termscript only of not already open.
9158 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
9159 here instead of dos_ttraw. Don't initialize display if this is an
9160 initial tty. Don't set FRAME_FONT.
9161 (Vwindow_system_version): Bump to 23.
9162 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
9163 is available, set up mouse_position_hook.
9164 (dos_ttraw, IT_set_terminal_modes): If called with initial
9165 terminal, do nothing.
9166 (IT_set_frame_parameters): Handle the Qtty_type frame
9167 parameter by calling internal_terminal_init.
9168 (dos_set_window_size, show_mouse_face)
9169 (clear_mouse_face, IT_note_mode_line_highlight)
9170 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
9171 (dos_rawgetc): Use tty_display_info instead of x_display_info.
9172 (initialize_msdos_display): New function.
9173 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
9174 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
9175 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
9176 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
9177 Accept additional argument: a pointer to a frame. Update all callers.
9178 (request_sigio, unrequest_sigio): Don't define, now defined on
9179 sysdep.c.
9180 (IT_write_glyphs): Rewrite to use encode_terminal_code.
9181
9182 * term.c [MSDOS]: Include msdos.h.
9183 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
9184 conditional to DOS_NT. Allow only one call to this function in a
9185 session. Don't allocate a new struct tty_display_info; instead,
9186 reuse the_only_display_info. Call get_tty_size to get screen
9187 dimensions. Call init_baud_rate to set bad_rate.
9188 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
9189 (Fsuspend_tty) [MSDOS]: Don't close input and output.
9190 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
9191 (get_tty_terminal, get_named_tty, Ftty_type)
9192 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
9193 output_termcap.
9194 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
9195 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
9196 only when subprocesses are supported.
9197
9198 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
9199 f->output_data.x.
9200 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
9201 terminal devices.
9202
9203 * msdos.h: Remove definition of struct x_display_info and struct
9204 x_output.
9205 (FRAME_FONT): Use output_data.tty.
9206 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
9207 (struct x_display_info): Rename from display_info. Update all users in
9208 msdos.c.
9209 (struct x_output): Remove background_pixel and foreground_pixel.
9210 (the_only_display_info): Rename from the_only_x_display.
9211 (dos_ttraw): Update prototype.
9212
9213 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
9214 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
9215
9216 2008-08-23 Jason Rumney <jasonr@gnu.org>
9217
9218 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
9219 (fn_TIFFSetDirectory): New library function used.
9220 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
9221 (tiff_load): Use :index to select among multiple images. Set count
9222 property when multiple images exist.
9223 (gif_format): Use :index, not :image.
9224
9225 2008-08-23 Chong Yidong <cyd@stupidchicken.com>
9226
9227 * xdisp.c (try_scrolling): Check INT_MAX instead of
9228 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
9229 to obtain INT_MAX.
9230
9231 2008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
9232
9233 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
9234
9235 2008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
9236
9237 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
9238 GNUstep library location.
9239
9240 2008-08-21 Chong Yidong <cyd@stupidchicken.com>
9241
9242 * xfaces.c (x_update_menu_appearance): Check validity of menu font
9243 before using it.
9244
9245 * puresize.h (BASE_PURESIZE): Increase to 1250000.
9246
9247 2008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
9248
9249 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
9250 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
9251 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
9252 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
9253 (EmacsApp-cursor_blink_handler): Remove declaration.
9254 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
9255 match 01 Feb 2008 changes in xterm.c.
9256 (ns_read_socket): Add cast to avoid warning.
9257 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
9258 GNUstep.
9259
9260 2008-08-20 Chong Yidong <cyd@stupidchicken.com>
9261
9262 * xselect.c (x_get_foreign_selection): Return nil if desired
9263 selection could not be obtained, instead of signalling an error.
9264
9265 2008-08-20 David Reitter <david.reitter@gmail.com>
9266
9267 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
9268 * nsterm.m: Remove ns-specific code for cursor blinking.
9269 (ns_draw_window_cursor): Clear cursor properly rather than
9270 redrawing the area. Respect width of bar cursors.
9271 These changes enable the use of generic blink-cursor-mode and
9272 generic cursor types in NS and support smooth cursor movements (do
9273 not blink off after command).
9274 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
9275 Nextstep, too.
9276
9277 2008-08-19 Kenichi Handa <handa@m17n.org>
9278
9279 * font.c (Vfont_log_deferred): New variable.
9280 (font_add_log): Check Vfont_log_deferred.
9281 (font_deferred_log): New function.
9282
9283 * font.h (font_deferred_log): Extern it.
9284
9285 * fontset.c (reorder_font_vector): Use encoding charset of fonts
9286 for sorting.
9287 (face_for_char): Use deferred log.
9288
9289 2008-08-18 Kenichi Handa <handa@m17n.org>
9290
9291 * fontset.c (face_for_char): Add font log.
9292
9293 * font.c (font_add_log): Add the font properties :script, :lang,
9294 and :otf in the log.
9295
9296 2008-08-17 Chong Yidong <cyd@stupidchicken.com>
9297
9298 * xdisp.c: Remove dead code.
9299 (handle_invisible_prop, next_overlay_string): Defer call to
9300 setup_for_ellipsis.
9301 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
9302
9303 2008-08-15 Chong Yidong <cyd@stupidchicken.com>
9304
9305 * xfaces.c (lookup_derived_face): Properly handle possible zero
9306 return value of get_lface_attributes.
9307 (merge_faces): Don't tell lookup_derived_face to signal an error
9308 if face is not found.
9309
9310 * dired.c (Fdirectory_files): Doc fix.
9311
9312 * process.c (make_process): Initialize kill_without_query struct
9313 member.
9314
9315 2008-08-15 Eli Zaretskii <eliz@gnu.org>
9316
9317 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
9318 Alternative calculation of totphys for Visual Studio 6.
9319
9320 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
9321
9322 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
9323 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
9324 All users changed.
9325 (stat): Only root directory passed to GetDriveType. Allow RAM
9326 disk as well as local fixed disk when w32-get-true-file-attributes
9327 is set to `local'.
9328 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
9329 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
9330 (w32_cached_id, w32_add_to_cache): New functions.
9331 (get_name_and_id): Look account names in the cache before calling
9332 lookup_account_sid.
9333 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
9334 New initialization flags.
9335 (globals_of_w32): Initialize them to zero.
9336 (w32_system_process_attributes): Use w32_cached_id and
9337 w32_add_to_cache.
9338
9339 2008-08-14 Lawrence Mitchell <wence@gmx.li>
9340
9341 * lread.c (Fread_char, Fread_char_exclusive): If no character
9342 event is read before timeout is reached, return nil, rather than
9343 converting to a number.
9344
9345 2008-08-14 Chong Yidong <cyd@stupidchicken.com>
9346
9347 * fns.c (use_dialog_box): Doc fix.
9348
9349 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
9350 on OS X.
9351
9352 2008-08-13 Chong Yidong <cyd@stupidchicken.com>
9353
9354 * frame.c (Qns_parse_geometry): New var.
9355 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
9356
9357 2008-08-11 Chong Yidong <cyd@stupidchicken.com>
9358
9359 * xdisp.c (x_produce_glyphs): Handle the case when font has no
9360 space character in calculating tabs.
9361
9362 2008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
9363
9364 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
9365
9366 2008-08-10 Glenn Morris <rgm@gnu.org>
9367
9368 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
9369 silence gcc "limited range of data type" warnings in some
9370 make_fixnum_or_float calls.
9371
9372 2008-08-09 Eli Zaretskii <eliz@gnu.org>
9373
9374 * w32.c (w32_system_process_attributes): If the process does not
9375 exist, return nil.
9376
9377 * w32.c: Include thelp32.h, psapi.h and coding.h.
9378 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
9379 declarations.
9380 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
9381 (Process32Next_Proc): New typedefs.
9382 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
9383 (g_b_init_process32_next, g_b_init_open_thread_token)
9384 (g_b_init_impersonate_self, g_b_init_revert_to_self)
9385 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
9386 (g_b_init_get_process_working_set_size)
9387 (g_b_init_global_memory_status_ex): New static variables.
9388 (globals_of_w32): Initialize them.
9389 (create_toolhelp32_snapshot, process32_first, process32_next)
9390 (open_thread_token, impersonate_self, revert_to_self)
9391 (get_process_memory_info, get_process_working_set_size)
9392 (global_memory_status, global_memory_status_ex): New wrapper
9393 functions.
9394 (w32_list_system_processes, w32_system_process_attributes)
9395 (enable_privilege, restore_privilege, ltime, process_times):
9396 New functions.
9397 (convert_time_raw): New function.
9398 (convert_time): Remove conversion of FILETIME into time in 100
9399 nsec units, call convert_time_raw instead.
9400
9401 * process.h (w32_list_system_processes, w32_system_process_attributes):
9402 Add prototypes.
9403 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
9404 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
9405 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
9406 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
9407
9408 * process.c (Fsystem_process_attributes): Doc fix.
9409
9410 2008-08-08 Chong Yidong <cyd@stupidchicken.com>
9411
9412 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
9413 a continued multi-char glyph; if so, advance to the actual glyph.
9414
9415 2008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
9416
9417 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
9418
9419 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
9420 (.m.o): Use it.
9421 * config.in: Regenerate.
9422
9423 2008-08-07 Chong Yidong <cyd@stupidchicken.com>
9424
9425 * xdisp.c (redisplay_window): Revert last change.
9426 (try_window): Check bottom scroll margin too.
9427
9428 2008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
9429
9430 * config.in: Regenerate.
9431
9432 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
9433 -list-load-path-shadows'.
9434 (nsgui.h): Reduce number of things depending on it.
9435
9436 2008-08-06 Chong Yidong <cyd@stupidchicken.com>
9437
9438 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
9439 instead of window-end which does the wrong thing at eob.
9440 (try_cursor_movement): Minor optimization.
9441 (redisplay_window): If scroll margin is defined, don't assume
9442 window doesn't need scrolling.
9443
9444 2008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
9445
9446 * config.in: Regenerate.
9447
9448 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
9449 (mostlyclean): Don't delete *.d under NS.
9450
9451 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
9452
9453 2008-08-06 Kenichi Handa <handa@m17n.org>
9454
9455 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
9456
9457 2008-08-06 Andreas Schwab <schwab@suse.de>
9458
9459 * config.in: Regenerate.
9460
9461 2008-08-05 Chong Yidong <cyd@stupidchicken.com>
9462
9463 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
9464 forcing a window start.
9465
9466 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
9467 (auto_save_1): Update modtime when auto-save-list-file-name is on.
9468
9469 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
9470
9471 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
9472 argument.
9473
9474 2008-08-05 Juanma Barranquero <lekktu@gmail.com>
9475
9476 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
9477 <scroll-down-aggressively, before-change-functions>:
9478 <after-change-functions>: Reflow docstrings.
9479
9480 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
9481 Ken Raeburn <raeburn@gnu.org>
9482
9483 Dock menu customization, based on a patch by Ken Raeburn, plus some
9484 other fixes.
9485 * nsmenu.m (dockMenu): New variable.
9486 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
9487
9488 * nsterm.h (dockMenu): Declare.
9489
9490 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
9491 (ns_term_init): Initialize dockMenu.
9492 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
9493 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
9494 left.
9495
9496 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
9497
9498 2008-08-04 Chong Yidong <cyd@stupidchicken.com>
9499
9500 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
9501
9502 * config.in: Regenerate.
9503
9504 2008-08-04 Seiji Zenitani <zenitani@mac.com>
9505
9506 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
9507
9508 2008-08-04 Chong Yidong <cyd@stupidchicken.com>
9509
9510 * nsterm.h (find_and_call_menu_selection): Fix prototype.
9511
9512 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
9513
9514 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
9515
9516 * keyboard.h: Comment an #endif.
9517
9518 * lisp.h (have_menus_p): Adjust comment.
9519
9520 * menu.c (find_and_return_menu_selection): Fix comparison with
9521 client_data.
9522
9523 * nsmenu.m (popup_activated_flag): New variable.
9524 (popup_activated): New function.
9525 (menu-or-popup-active-p): New exported lisp definition.
9526 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
9527 when popup done.
9528 (ns_popup_dialog): Set popup_activated_flag.
9529
9530 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
9531 version for GNUstep (handled by conditional typedef in nsterm.m).
9532 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
9533 in rgb.txt).
9534
9535 * process.c (init_process): Use DARWIN_OS, not DARWIN.
9536
9537 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
9538
9539 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
9540
9541 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
9542 shortcircuit if popup_activated like GTK and X toolkit.
9543
9544 * m/inter386.h: Change DARWIN to DARWIN_OS.
9545
9546 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
9547 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
9548 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
9549 comment on NO_SOCK_SIGIO.
9550
9551 2008-08-03 Chong Yidong <cyd@stupidchicken.com>
9552
9553 * nsterm.m (windowDidResize): Remove stopModal call.
9554
9555 2008-08-03 Andreas Schwab <schwab@suse.de>
9556
9557 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
9558 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
9559
9560 2008-08-02 Chong Yidong <cyd@stupidchicken.com>
9561
9562 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
9563 Don't use uninitialized pointer variable when using getrlimit.
9564
9565 2008-08-02 Jason Rumney <jasonr@gnu.org>
9566
9567 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
9568
9569 2008-08-02 Eli Zaretskii <eliz@gnu.org>
9570
9571 * alloc.c (NSTATICS): Bump to 0x640.
9572
9573 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
9574
9575 * lisp.h: Add prototype for directory_files_internal.
9576
9577 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
9578 New functions.
9579 (syms_of_process): Defsubr them. Add initializations for various
9580 Q* symbols used in procfs_system_process_attributes.
9581 (procfs_list_system_processes, procfs_system_process_attributes)
9582 [HAVE_PROCFS]: New functions.
9583 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
9584 (procfs_get_total_memory): New functions.
9585
9586 2008-08-01 Juanma Barranquero <lekktu@gmail.com>
9587
9588 * xfaces.c (Fx_load_color_file): Fix previous change;
9589 it is #ifdef WINDOWSNT, not WINDOWS_NT.
9590
9591 2008-08-01 Michael Albinus <michael.albinus@gmx.de>
9592
9593 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
9594
9595 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
9596
9597 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
9598
9599 2008-08-01 Chong Yidong <cyd@stupidchicken.com>
9600
9601 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
9602
9603 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
9604 define NSApplicationDelegateReplySuccess.
9605 (EmacsView -converstationIdentifier): Use long instead of
9606 NSInteger for GNUstep, since it doesn't have NSInteger.
9607
9608 * xmenu.c: Revert last change.
9609
9610 * keyboard.h: Fix last change.
9611
9612 2008-08-01 Juanma Barranquero <lekktu@gmail.com>
9613
9614 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
9615 on Windows.
9616
9617 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
9618
9619 Warning clearing and clean-up in NS port.
9620 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
9621 Add prototypes.
9622 * nsgui.h (FACE_DEFAULT): Remove, unused.
9623 (XGCValues): Change colors to unsigned long.
9624 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
9625 nsterm.m.
9626 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
9627 (ns_list_fonts): Remove, unused.
9628 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
9629 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
9630 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
9631 (nsfont_draw): Compare face colors to 0, not nil.
9632 * nsmenu.m (struct widget_value): Drop unneeded declaration.
9633 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
9634 (-addSubmenuWithTitle:): Use NSMenuItem class.
9635 (ns_popup_menu): Use NO, not NULL, for enabled setting.
9636 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
9637 (ns_clip_to_row): Make gc arg a BOOL.
9638 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
9639 ns_clip_to_row() call.
9640 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
9641 used). Cast FRAME_FONT assignments.
9642 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
9643 (ns_string_to_lispmod): Change arg to const char.
9644 (ns_term_init): Use NSMenuItem class.
9645 (EmacsApp -openFile:): Move to different section of file.
9646 (EmacsApp -application:openFiles:): Don't return a value, call
9647 -replyToOpenOrPrint:.
9648 (EmacsView -keyDown:): Fix up cast.
9649 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
9650 (EmacsView -menuDown:): Cast tag in call to
9651 find_and_call_menu_selection().
9652 (ns_list_fonts): Remove, unused.
9653 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
9654 (ns_fontname_to_xlfd): Make static.
9655 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
9656 Remove prototypes (now in keyboard.h).
9657 (next_menubar_widget_id): Remove, unused.
9658 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
9659 Remove prototypes (now in keyboard.h).
9660 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
9661
9662 2008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
9663
9664 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
9665 (floatfns.o): Depend on syssignal.h.
9666 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
9667
9668 * systty.h: Fix previous change that removed BSD_TERMIOS.
9669 Add comments to #ifdefs.
9670
9671 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
9672
9673 * w32fns.c (w32-load-color-file): Remove.
9674 (x-open-connection): Use renamed Fx_load_color_file.
9675 * xfaces.c (x-load-color-file): Add.
9676 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
9677 Emacs.clr.
9678 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
9679
9680 2008-07-31 Michael Albinus <michael.albinus@gmx.de>
9681
9682 * dbusbind.c (Fdbus_call_method_asynchronously)
9683 (Fdbus_method_error_internal): New defuns.
9684 (xd_read_message): Handle also reply messages.
9685 (Vdbus_registered_functions_table): Extend docstring.
9686
9687 2008-07-31 Juanma Barranquero <lekktu@gmail.com>
9688
9689 * keyboard.c (gobble_input): Fix previous change.
9690
9691 2008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
9692
9693 * bitmaps/README:
9694 * xfns.c:
9695 * termcap.c:
9696 * term.c:
9697 * syswait.h:
9698 * systty.h:
9699 * systime.h:
9700 * syssignal.h:
9701 * sysdep.c:
9702 * process.h:
9703 * process.c:
9704 * print.c:
9705 * ndir.h:
9706 * lread.c:
9707 * keyboard.c:
9708 * getpagesize.h:
9709 * floatfns.c:
9710 * fileio.c:
9711 * emacs.c:
9712 * doc.c:
9713 * dispnew.c:
9714 * dired.c:
9715 * data.c:
9716 * callproc.c:
9717 * buffer.c:
9718 * README:
9719 * Makefile.in:
9720 * s/template.h:
9721 * s/msdos.h:
9722 * m/vax.h: Remove VMS support.
9723 * s/vms.h:
9724 * vlimit.h:
9725 * uaf.h:
9726 * temacs.opt:
9727 * param.h:
9728 * ioctl.h: Remove file.
9729
9730 2008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
9731
9732 * s/ms-w32.h (MULTI_KBOARD): Remove.
9733 * xterm.c:
9734 * xselect.c:
9735 * xfns.c:
9736 * window.c:
9737 * w32term.c:
9738 * w32fns.c:
9739 * terminal.c:
9740 * termhooks.h:
9741 * term.c:
9742 * sysdep.c:
9743 * keyboard.h:
9744 * keyboard.c:
9745 * frame.h:
9746 * frame.c:
9747 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
9748 * config.in: Regenerate.
9749
9750 2008-07-30 Jason Rumney <jasonr@gnu.org>
9751
9752 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
9753
9754 * w32font.c (w32font_encode_char): Leave as unicode if in range.
9755 (w32font_open_internal): Get unicode version of textmetrics.
9756 Don't enable or disable glyph indices here.
9757 (w32font_open): Disable use of glyph indices.
9758
9759 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
9760
9761 2008-07-30 Chong Yidong <cyd@stupidchicken.com>
9762
9763 * minibuf.c (Vread_buffer_function): Doc fix.
9764
9765 2008-07-30 John Paul Wallington <jpw@pobox.com>
9766
9767 * minibuf.c (read_buffer_completion_ignore_case): New var.
9768 (Fread_buffer): Use it.
9769
9770 2008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
9771
9772 * systty.h (sensemode): Remove empty #if. Remove reference to
9773 BSD_TERMIOS, unused.
9774
9775 * sysdep.c: Remove reference to DGUX.
9776 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
9777
9778 * config.in: Regenerate.
9779
9780 2008-07-30 Jason Rumney <jasonr@gnu.org>
9781
9782 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
9783
9784 2008-07-29 Jason Rumney <jasonr@gnu.org>
9785
9786 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
9787 is populated.
9788 (uniscribe_encode_char): Always use uniscribe.
9789 Avoid using context if cache is populated.
9790
9791 2008-07-29 Jan Djärv <jan.h.d@swipnet.se>
9792
9793 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
9794 open menu.
9795
9796 * gtkutil.c (menu_nav_ended): Remove.
9797 (create_menus): Remove signal connect for menu_nav_ended.
9798
9799 2008-07-28 Chong Yidong <cyd@stupidchicken.com>
9800
9801 * xdisp.c (redisplay_window): Check return value of
9802 compute_window_start_on_continuation_line before forcing a window
9803 start.
9804
9805 2008-07-28 Jason Rumney <jasonr@gnu.org>
9806
9807 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
9808
9809 * w32term.c (w32_enable_unicode_output, cleartype_active):
9810 Remove obsolete display options.
9811 (x_draw_glyph_string_background): Don't use old cleartype_active
9812 workaround.
9813 (w32_initialize): Remove cleartype_active initialization.
9814 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
9815
9816 2008-07-28 Andreas Schwab <schwab@suse.de>
9817
9818 * lisp.h (init_weak_hash_tables, syms_of_font)
9819 (xd_read_queued_messages, syms_of_dbusbind): Declare.
9820 (remove_hash_entry): Don't declare.
9821 * eval.c (maybe_call_debugger): Make static and move before use.
9822 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
9823 * xdisp.c: Include "gtkutil.h" if USE_GTK.
9824 * xterm.h (x_set_frame_alpha): Declare.
9825
9826 2008-07-28 Jan Djärv <jan.h.d@swipnet.se>
9827
9828 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
9829 (create_menus): Connect selection-done to menu_nav_ended.
9830
9831 2008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
9832
9833 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
9834 Set Vx_resource_name to a fallback. Replace read of 'buffered'
9835 parameter with read of 'alpha' one.
9836 (Qns_frame_parameter): Remove.
9837 * nsselect.m (selection-coding-system)
9838 (next-selection-coding-system, Vselection_coding_system)
9839 (Vnext_selection_coding_system): Drop.
9840
9841 2008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
9842
9843 * nsfns.m (do-applescript, do_applescript): Rename to
9844 ns-do-applescript, ns_do_applescript, and move within file.
9845
9846 2008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
9847
9848 Remove support for Mac Carbon.
9849 * mactoolbox.c:
9850 * macterm.h:
9851 * macterm.c:
9852 * macselect.c:
9853 * macmenu.c:
9854 * macgui.h:
9855 * macfns.c:
9856 * mac.c: Remove file.
9857 * s/darwin.h:
9858 * m/intel386.h:
9859 * xfaces.c:
9860 * xdisp.c:
9861 * window.c:
9862 * tparam.c:
9863 * termhooks.h:
9864 * termcap.c:
9865 * term.c:
9866 * syssignal.h:
9867 * sysselect.h:
9868 * sysdep.c:
9869 * process.c:
9870 * lread.c:
9871 * lisp.h:
9872 * keyboard.c:
9873 * image.c:
9874 * fringe.c:
9875 * frame.h:
9876 * frame.c:
9877 * fontset.c:
9878 * font.h:
9879 * font.c:
9880 * fns.c:
9881 * fileio.c:
9882 * emacs.c:
9883 * dispnew.c:
9884 * dispextern.h:
9885 * config.in:
9886 * atimer.c:
9887 * Makefile.in: Remove code for Carbon.
9888
9889 2008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9890
9891 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
9892
9893 2008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9894
9895 * macterm.h (kCGBitmapByteOrder32Host): New define for
9896 non-universal SDKs.
9897
9898 * image.c (mac_create_cg_image_from_image, image_load_image_io)
9899 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
9900
9901 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
9902 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
9903
9904 2008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
9905
9906 * w32inevt.c: Include dispextern.h.
9907
9908 2008-07-26 Andreas Schwab <schwab@suse.de>
9909
9910 * print.c (print_object): Fix off-by-one in last change.
9911
9912 2008-07-25 Juanma Barranquero <lekktu@gmail.com>
9913
9914 * term.c (syms_of_term): Don't initialize default_orig_pair,
9915 default_set_foreground and default_set_background on Windows.
9916
9917 2008-07-25 Jason Rumney <jasonr@gnu.org>
9918
9919 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
9920 ScriptItemize. Clean up return value checking. Remove unused
9921 variables.
9922 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
9923 shaping engine.
9924
9925 * w32font.c (w32font_has_char): Handle the case where we can't
9926 determine the script for a character.
9927
9928 2008-07-25 Chong Yidong <cyd@stupidchicken.com>
9929
9930 * term.c (syms_of_term): Initialize default_orig_pair,
9931 default_set_foreground, and default_set_background.
9932
9933 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
9934 clash (bug#86).
9935 (getloadavg): Callers changed.
9936
9937 * image.c (svg_load_image): Fix last change.
9938 (svg_load_image): Use rsvg_handle_get_dimensions to check that
9939 image size is valid. Use g_object_unref instead of deprecated
9940 rsvg_handle_free to free rsvg handle.
9941 (x_from_xcolors): Don't initialize pixmap (silence compiler).
9942
9943 2008-07-25 Jason Rumney <jasonr@gnu.org>
9944
9945 * w32font.c (w32font_encode_char): Encode characters outside BMP as
9946 surrogates before looking up glyph index.
9947 (w32font_text_extents): Encode as surrogates if falling back to
9948 functions that need UTF-16 wide chars.
9949
9950 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
9951 BMP as surrogates before looking up glyph index.
9952
9953 2008-07-25 Chong Yidong <cyd@stupidchicken.com>
9954
9955 * image.c (svg_load_image): Check for failure in return value of
9956 rsvg_handle_get_pixbuf. Free rsvg handle when done.
9957
9958 2008-07-25 Jason Rumney <jasonr@gnu.org>
9959
9960 * w32font.c (Fx_select_font): Reverse sense of second arg.
9961
9962 2008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
9963
9964 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
9965 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
9966
9967 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
9968 (PURESIZE): Use it.
9969
9970 2008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
9971
9972 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
9973 * m/alpha.h (TEXT_END):
9974 * m/ibmrs6000.h (TEXT_END):
9975 * m/macppc.h (TEXT_END):
9976 * s/darwin.h (TEXT_END):
9977 * s/msdos.h (TEXT_END): Remove, unused.
9978 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
9979 * s/cygwin.h: Remove comment.
9980
9981 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
9982 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
9983 * m/intel386.h (DOT_GLOBAL_START):
9984 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
9985 (USG): Remove, file not used on USG platforms.
9986
9987 * Makefile.in (HAVE_X11): Remove empty #else.
9988
9989 2008-07-24 Andreas Schwab <schwab@suse.de>
9990
9991 * fileio.c (Finsert_file_contents): Properly adjust undo list
9992 after format conversion.
9993
9994 2008-07-24 Jan Djärv <jan.h.d@swipnet.se>
9995
9996 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
9997 (menu_nav_ended): Remove.
9998 (create_menus): Remove signal connect for menu_nav_ended.
9999 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
10000 create_menus.
10001 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
10002
10003 2008-07-23 Jason Rumney <jasonr@gnu.org>
10004
10005 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
10006 with opened font.
10007 (w32font_open): Set font type to gdi.
10008
10009 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
10010
10011 2008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
10012
10013 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
10014 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
10015 defines it.
10016 * unexec.c (ADDR_CORRECT): Define unconditionally.
10017
10018 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
10019
10020 * unexec.c: Remove code depending on !COFF and USG, the file is
10021 not used for such systems.
10022
10023 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
10024 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
10025 (LD_SWITCH_SYSTEM_1): Remove, update users.
10026
10027 * s/darwin.h (DATA_END):
10028 * m/intel386.h (DATA_END):
10029 * m/ibmrs6000.h (DATA_END):
10030 * m/alpha.h (DATA_END): Remove, unused.
10031
10032 * config.in: Regenerate.
10033 * s/ms-w32.h (subprocesses): Define unconditionally.
10034 * s/template.h (subprocesses): Update comment.
10035 * s/vms.h (subprocesses):
10036 * s/usg5-4.h (subprocesses):
10037 * s/hpux10-20.h (subprocesses):
10038 * s/gnu-linux.h (subprocesses):
10039 * s/cygwin.h (subprocesses):
10040 * s/bsd-common.h (subprocesses):
10041 * s/aix4-2.h (subprocesses):
10042 * s/darwin.h (subprocesses): Do not define, defined by default now.
10043
10044 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
10045 Remove all references.
10046 (temacs): Add GNUstep specific ld flags.
10047
10048 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
10049 similarly to what X does.
10050
10051 2008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
10052
10053 * nsfns.m (x-list-fonts): Remove.
10054 (syms_of_nsfns): Drop the x-list-fonts declaration.
10055 * nsterm.m: Get rid of remaining "//" comments.
10056
10057 2008-07-22 Chong Yidong <cyd@stupidchicken.com>
10058
10059 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
10060
10061 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
10062 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
10063 (Fns_own_selection_internal, Fx_disown_selection_internal)
10064 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
10065
10066 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
10067 ... */' style of docstrings. Doc fixes.
10068
10069 2008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
10070
10071 * terminfo.c (UP, BC, PC): Undo previous change.
10072
10073 * nsfns.m: Rename ns prefixed functions/variables to the
10074 corresponding x versions. Update references.
10075
10076 2008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
10077
10078 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
10079
10080 2008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
10081
10082 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
10083 Remove forwarding functions.
10084 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
10085 non-static.
10086 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
10087 non-static.
10088 (ns_frame_parm_handlers): Use the new names.
10089 (syms_of_nsfns): Move to the end of file.
10090
10091 * nsterm.m (syms_of_nsterm): Move to the end of file.
10092
10093 * dispnew.c (init_display): Remove code for X10.
10094
10095 2008-07-22 Jason Rumney <jasonr@gnu.org>
10096
10097 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
10098 bare drive.
10099
10100 2008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
10101
10102 * nsterm.m (syms_of_nsterm): Remove debugging println.
10103
10104 2008-07-22 David Reitter <david.reitter@gmail.com>
10105
10106 * nsfns.m (do_applescript, F_do_applescript): NS version of the
10107 Carbon implementation of the same functionality: execute arbitrary
10108 AppleScript code.
10109
10110 2008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
10111
10112 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
10113 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
10114 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
10115 (Fx_display_mm_height, Fx_display_mm_width)
10116 (Fx_display_backing_store, Fx_display_visual_class)
10117 (Fx_display_save_under, Fx_open_connection)
10118 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
10119 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
10120 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
10121 (Fx_display_pixel_width, Fx_display_pixel_height)
10122 (Fx_display_usable_bounds, Fx_display_planes)
10123 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
10124 ... */' style of docstrings.
10125
10126 2008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
10127
10128 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
10129 on this platform.
10130 (mips):
10131 * m/iris4d.h (mips): Do not define.
10132 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
10133
10134 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
10135
10136 * image.c:
10137 * nsfns.m:
10138 * nsselect.m:
10139 * nsterm.h:
10140 * nsterm.m: Rename ns prefixed functions/variables to the
10141 corresponding x versions. Update references.
10142
10143 * m/ibms390x.h (NO_REMAP): Do not undefine.
10144
10145 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
10146
10147 2008-07-21 Chong Yidong <cyd@stupidchicken.com>
10148
10149 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
10150 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
10151 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
10152 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
10153 (Fns_display_mm_height, Fns_display_mm_width)
10154 (Fns_display_backing_store, Fns_display_visual_class)
10155 (Fns_display_save_under, Fns_open_connection)
10156 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
10157 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
10158 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
10159 (Fns_display_pixel_width, Fns_display_pixel_height)
10160 (Fns_display_usable_bounds, Fx_display_planes)
10161 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
10162
10163 2008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
10164
10165 * print.c (print_object): Check print_depth before searching for
10166 circularities.
10167
10168 2008-07-21 Michael Albinus <michael.albinus@gmx.de>
10169
10170 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
10171 only sprintf.
10172
10173 2008-07-21 Kenichi Handa <handa@m17n.org>
10174
10175 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
10176
10177 2008-07-20 Andreas Schwab <schwab@suse.de>
10178
10179 * syntax.c (find_start_pos, find_start_value)
10180 (find_start_value_byte, find_start_begv, find_defun_start)
10181 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
10182
10183 2008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
10184
10185 * s/sol2-3.h: Insert contents of s/sol2.h.
10186 (LD_SWITCH_SYSTEM): Remove redundant definition.
10187 * s/sol2.h: Remove, unused.
10188
10189 2008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
10190
10191 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
10192
10193 2008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
10194
10195 * Makefile.in (ns_appdir): Fix typo in find command.
10196
10197 2008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
10198
10199 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
10200
10201 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
10202 added not supported anymore.
10203
10204 * s/usg5-4-2.h (LIBS_SYSTEM):
10205 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
10206
10207 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
10208 * s/lynxos.h (GETPGRP_NO_ARG):
10209 * s/hpux10-20.h (NO_SIOCTL_H):
10210 * s/gnu.h (GETPGRP_NO_ARG):
10211 * s/gnu-linux.h (NO_SIOCTL_H):
10212 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
10213 * s/cygwin.h (GETPGRP_NO_ARG):
10214 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
10215 (C_DEBUG_SWITCH): Remove duplicate definition.
10216
10217 * m/ibms390.h: Remove boilerplate comments.
10218
10219 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
10220
10221 * process.c (HAVE_SERIAL): Consolidate ifdefs.
10222 (wait_reading_process_output): Remove code for SunOS, platform not
10223 supported anymore. Use SOLARIS2 instead of sun.
10224
10225 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
10226
10227 * font.c (font_open_by_name): Under NS, default lface height to zero.
10228 (font_open_for_lface): Under NS, set size based on frame fontsize.
10229 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
10230 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
10231
10232 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
10233
10234 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
10235 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
10236 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
10237 YES/NO.
10238 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
10239 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
10240 * Makefile.in (clean): Clear out build destination dir.
10241
10242 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
10243
10244 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
10245 xterm, xselect.
10246 * lisp.h: Remove declaration of hash_remove.
10247 * nsgui.h: Remove redefinitions of hash_remove.
10248 * fns.c (hash_remove): Rename to hash_remove_from_table.
10249
10250 2008-07-19 Seiji Zenitani <zenitani@mac.com>
10251
10252 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
10253 strdup() the family UTF8String before modifying it.
10254
10255 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
10256
10257 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
10258 NS_FACE_BACKGROUND with 0 instead of nil.
10259 * nsfont.m (nsfont_draw): Same.
10260
10261 2008-07-19 Chong Yidong <cyd@stupidchicken.com>
10262
10263 * nsfns.m (ns_set_background_color): Fix crash.
10264
10265 2008-07-18 Chong Yidong <cyd@stupidchicken.com>
10266
10267 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
10268
10269 2008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
10270
10271 * puresize.h (BASE_PURESIZE): Increase to 1240000.
10272
10273 2008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10274
10275 * gtkutil.c: Include <config.h> instead of "config.h".
10276
10277 * lisp.h (Foverlay_buffer): Add EXFUN.
10278
10279 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
10280 child process to complete child_setup. Undo 2005-09-21 change.
10281
10282 * s/darwin.h: Mention setsid after vfork.
10283
10284 2008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10285
10286 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
10287 Depend on macgui.h.
10288
10289 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
10290 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
10291
10292 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
10293 and f19.
10294 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
10295
10296 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
10297 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
10298 Remove enumerators.
10299
10300 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
10301 Check if FACE_FROM_ID returns NULL.
10302
10303 2008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
10304
10305 * w32inevt.c (change_frame_size): Remove extern declaration.
10306 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
10307 change_frame_size.
10308
10309 2008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
10310
10311 * getloadavg.c: Revert last change (2008-07-15).
10312
10313 2008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
10314
10315 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
10316 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
10317 from configure.
10318
10319 2008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
10320
10321 * s/sol2.h:
10322 * s/sol2-4.h: Reorganize conditionals.
10323
10324 * ecrt0.c: Remove code depending on m68000, not used anymore.
10325
10326 * fns.c (hash_remove): Make static.
10327 * lisp.h (hash_remove): Don't prototype.
10328
10329 * m/ibmrs6000.h:
10330 * m/ibms390x.h:
10331 * m/macppc.h: Remove boilerplate comments.
10332
10333 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
10334 Solaris, which does not need them.
10335
10336 * m/vax.h: Remove comments about unsupported systems.
10337
10338 * s/darwin.h: Reorganize ifdefs.
10339
10340 2008-07-17 Andreas Schwab <schwab@suse.de>
10341
10342 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
10343
10344 2008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
10345
10346 Use SDATA. Follow coding convention of placing operators at
10347 beginning of next line rather than end of previous line, and placing
10348 spaces around infix operators.
10349
10350 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
10351 in case it was defined already.
10352 USE @GNUSTEP_MAKEFILES@ rather than envvars.
10353 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
10354 ns_default.
10355 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
10356 Lisp_Objects.
10357 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
10358 (ns_defined_color, ns_color_to_lisp): Declare.
10359 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
10360 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
10361 it's accepted even with USE_LISP_UNION_TYPE.
10362 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
10363 (update_frame_tool_bar): Remove apparently obsolete tests for
10364 non-integerness of f->tool_bar_lines.
10365 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
10366 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
10367 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
10368 (nsfont_open): Don't confuse NULL for Qnil.
10369 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
10370 * menu.h (find_and_call_menu_selection):
10371 * menu.c (find_and_call_menu_selection): Use just int for vector size.
10372 (find_and_return_menu_selection): Always return something.
10373 * frame.h: Include dispextern.h for Display_Info.
10374 (display_x_get_resource): Declare.
10375
10376 2008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
10377
10378 * syntax.c: Remove stdio.h include accidentally introduced in
10379 Emacs.app commit.
10380 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
10381 NS_IMPL_COCOA.
10382 * keyboard.c (handle_async_input, input_available_signal): Remove
10383 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
10384
10385 2008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
10386
10387 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
10388 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
10389 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
10390 Use SDATA.
10391
10392 * keymap.c: Remove all NS-specific code.
10393 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
10394 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
10395 where_is_preferred_modifier, return a different value depending on how
10396 preferred is the binding.
10397 (where_is_internal): Adjust accordingly.
10398 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
10399 Adjust to new preferred_sequence_p.
10400 (syms_of_keymap): Declare `where-is-preferred-modifier'.
10401 * keyboard.c (parse_solitary_modifier): Not static any more.
10402 * keyboard.h (parse_solitary_modifier): Declare.
10403
10404 2008-07-16 Andreas Schwab <schwab@suse.de>
10405
10406 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
10407 of easymenu.
10408
10409 2008-07-16 Chong Yidong <cyd@stupidchicken.com>
10410
10411 * xdisp.c (move_it_in_display_line): Account for word wrap, so
10412 that we don't move off the line.
10413
10414 2008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
10415
10416 * keyboard.c (Qsuper): Remove.
10417 (parse_menu_item): Don't call where_is_internal specially for NS.
10418
10419 2008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
10420
10421 * s/gnu-linux.h: Remove boilerplate comments.
10422
10423 * m/alpha.h (__ELF__): Consolidate conditions.
10424
10425 * m/m68k.h (linux): Use GNU_LINUX instead.
10426 Remove boilerplate comments.
10427
10428 * m/intel386.h: Undo refactoring from previous change.
10429 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
10430 too, remove dead code.
10431 (linux): Use GNU_LINUX instead.
10432
10433 2008-07-16 Jason Rumney <jasonr@gnu.org>
10434
10435 * w32gui.h: Repeat 26 June changes lost by last change.
10436
10437 2008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
10438
10439 * systty.h: Remove code for Aix on 386, unsupported platform.
10440
10441 * s/ms-w32.h: Remove boilerplate comments.
10442 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
10443
10444 * s/gnu-linux.h (TERM): Remove support.
10445 (HAVE_SYSVIPC): Remove, unused.
10446 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
10447 for this system.
10448
10449 * process.c: Remove support for IRIS, unused.
10450 Remove support for TERM, not relevant anymore.
10451
10452 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
10453 used with the definition.
10454
10455 * s/aix4-2.h (static): Do not undef.
10456
10457 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
10458 only used on Aix.
10459 (HAVE_SYSVIPC): Remove, unused.
10460
10461 * m/hp800.h (CANNOT_DUMP): Do not undef.
10462
10463 * m/alpha.h: Fix comment.
10464
10465 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
10466 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
10467 used by this configuration.
10468 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
10469 * unexec.c: Remove code depending on HPUX and
10470 USG_SHARED_LIBRARIES, not used with this file. Remove code
10471 depending on IRIS, unused. Remove if 0-ed code.
10472
10473 * s/template.h: Remove comments about static.
10474
10475 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
10476 Remove if 0-ed code.
10477 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
10478 were the same as the default.
10479 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
10480 Remove boilerplate comments.
10481 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
10482 (HAVE_SYSVIPC): Remove, unused.
10483 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
10484
10485 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
10486 Remove boilerplate comments.
10487 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
10488 Remove boilerplate comments.
10489 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
10490 Remove boilerplate comments.
10491 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
10492
10493 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
10494 USG systems which do not use DATA_SEG_BITS.
10495 Refactor code. Remove boilerplate comments.
10496
10497 * m/ibms390.h:
10498 * m/m68k.h:
10499 * s/bsd-common.h:
10500 * s/cygwin.h:
10501 * s/darwin.h:
10502 * s/freebsd.h:
10503 * s/gnu.h:
10504 * s/msdos.h: Remove boilerplate comments.
10505
10506 * m/iris4d.h: Remove boilerplate comments and code for systems that
10507 do not use this file.
10508 (IRIS_4D): Remove, unused.
10509
10510 * m/mips.h: Remove boilerplate comments and code for systems that
10511 do not use this file.
10512 (SIGN_EXTEND_CHAR):
10513 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
10514 * unexmips.c: Remove file, unused.
10515
10516 * editfns.c (Fuser_full_name): Replace the only use of
10517 USER_FULL_NAME with its value.
10518 * config.in: Regenerate.
10519
10520 2008-07-16 David Reitter <david.reitter@gmail.com>
10521
10522 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
10523 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
10524
10525 2008-07-16 Glenn Morris <rgm@gnu.org>
10526
10527 * emacs.c (system-type): Doc fix.
10528
10529 2008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
10530
10531 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
10532 If the cache doesn't work, let's fix it, rather than work around it.
10533
10534 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
10535
10536 * Makefile.in: Correct additions for nsfont.o in last commit.
10537 * nsfont.m: New file (forgot last commit).
10538
10539 2008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
10540
10541 * callproc.c (set_initial_environment): Initialize
10542 Vprocess_environment under CANNOT_DUMP (fixes crash when
10543 batch-compiling for bootstrap).
10544
10545 2008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
10546 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10547
10548 (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
10549 fix crash due to different init order.
10550
10551 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
10552
10553 Changes and additions for NeXTstep windowing system (Cocoa and
10554 GNUstep) support.
10555
10556 * Makefile.in:
10557 * config.in: Support defines and build commands for NS port.
10558 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
10559 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
10560 * dispextern.h: Include nsgui.h and add needed typedefs under NS
10561 windowing.
10562 (struct face): Add synth_ital field.
10563 * dispnew.c: Include nsterm.h when compiling under NS windowing.
10564 (init_display): Initialize Vinitial_window_system to "ns" when so
10565 compiled.
10566 * emacs.c: Include GSConfig.h when compiling under GNUstep.
10567 (display_arg): Use under NS.
10568 (main): Under NS, allocate autorelease pool and handle command line
10569 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
10570 (standard_args): Add NS-specific args.
10571 (shut_down_emacs): Shut down NS terminal if compiled under NS.
10572 * font.c (DEFAULT_ENCODING): New variable.
10573 (font_find_for_lface): Use it.
10574 (syms_of_font): Load syms_of_nsfont under NS.
10575 * font.h: Declare nsfont_driver when compiled under NS.
10576 * fontset.c: When compiling under NS, include nsterm.h.
10577 (fontset_from_font): Autoconstruct fontset under NS.
10578 * frame.c (various): Under NS, include nsterm.h, add Qns window system
10579 symbol, document and use it.
10580 (do_switch_frame): When for_deletion under Cocoa, add
10581 Fraise_frame(Qnil).
10582 (x_set_frame_parameters): Ensure font attribute changes are picked up.
10583 (x_get_arg): Allow "yes" and "no" as boolean values.
10584 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
10585 Qright under Cocoa.
10586 (focus-follows-mouse): Default to 0 under NS.
10587 * frame.h (enum output_method): Add output_ns.
10588 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
10589 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
10590 (FRAME_WINDOW_P): NS-specific definition.
10591 * fringe.c (max_used_fringe_bitmap): Make public.
10592 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
10593 (getloadavg): Use NeXT code under descendant OS's.
10594 * image.c (includes and header section, x_create_bitmap_from_data)
10595 (x_create_bitmap_from_file, free_bitmap_record, image_background)
10596 (image_background_transparent, x_clear_image_1)
10597 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
10598 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
10599 (x_to_xcolors, x_from_xcolors, x_disable_image)
10600 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
10601 other GUIs, including XPM support using code originally written for
10602 Carbon GUI.
10603 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
10604 using NS API.
10605 (image_ascent): Use font metrics macros instead of direct struct field
10606 access.
10607 * keyboard.c (includes): Add nsterm.h when compiling under NS.
10608 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
10609 Also, handle NS as GTK for menu bar purposes.
10610 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
10611 toolkit where they differ.
10612 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
10613 use cachelist, still needed under NS.
10614 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
10615 (struct widget_value): Define it here for menu.c.
10616 * keymap.c (includes): Include modifier internals.
10617 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
10618 NS.
10619 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
10620 support for preferring sequences using certain modifiers, specified by
10621 the FIRSTONLY argument.
10622 * lisp.h (hash_remove): Rename to avoid name clash when compiling
10623 under NS GNUstep implementation.
10624 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
10625 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
10626 * menu.c: Include nsterm.h under NS.
10627 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
10628 (free_menubar_widget_tree_value, update_submenu_strings)
10629 (find_and_call_menu_selection): Treat NS as X and NT.
10630 (find_and_return_menu_selection): New function, used for popup menus.
10631 * nsgui.h:
10632 * nsterm.h:
10633 * nsfns.m:
10634 * nsimage.m:
10635 * nsmenu.m:
10636 * nsselect.m:
10637 * nsterm.m: New files.
10638 * process.c (wait_reading_process_output): Under NS, call ns_select()
10639 instead of plain select().
10640 * syntax.c (char_quoted): Under NS, avoid a crash when called near
10641 beginning of buffer.
10642 * sysselect.h (init_process): Rename when compiling under Cocoa to
10643 avoid name conflict.
10644 * termhooks.h (display_info): Add ns_display_info to union.
10645 * terminal.c (Fterminal_live_p): Add ns to terminal types.
10646 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
10647 COCOA environment.
10648 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
10649 unexec() signature. (Note, this will dump, but the resulting file
10650 crashes; unexosx is used instead; keeping around for reference and
10651 possible aid in getting dump working under GNUstep.)
10652 * w32gui.h (button_type, widget_value): Remove definitions (now in
10653 keyboard.h).
10654 * window.c: Include nsterm.h when compiling under NS.
10655 * xdisp.c (includes): Include nsterm.h when compiling under NS.
10656 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
10657 other GUI windowing systems.
10658 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
10659 GTK.
10660 (x_consider_frame_title): Under NS, set icon type and frame
10661 modified-state indicator; use ns_set_name_as_filename() when using
10662 formatted title.
10663 (update_window_cursor): Make public when compiling under NS.
10664 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
10665 (hourglass_atimer, Vhourglass_delay
10666 * xfaces.c (header section, init_frame_faces, clear_font_table)
10667 (defined_color, unload_color, x_face_list_fonts)
10668 (prepare_face_for_display): Add NS support parallel to other GUIs.
10669 Emulate GCs like other non-X GUIs.
10670 (split_font_name): Don't lowercase font name under NS.
10671 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
10672 under NS.
10673 * s/darwin.h: Add support for compilation under NS.
10674
10675 2008-07-15 Jason Rumney <jasonr@gnu.org>
10676
10677 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
10678 (w32_show_hourglass): Rename from show_hourglass.
10679 (w32_hide_hourglass): Rename from hide_hourglass.
10680 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
10681 (Vhourglass_delay): Declare extern.
10682 (hourglass_started): Remove.
10683
10684 * xdisp.c (Vhourglass_delay): Remove static.
10685 (hourglass_started, start_hourglass, cancel_hourglass):
10686 Don't include these versions on WINDOWSNT.
10687
10688 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
10689
10690 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
10691 variables (formerly in xfns.c).
10692 (show_hourglass, hide_hourglass): New prototypes (same).
10693 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
10694 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
10695 in xfns.c).
10696 (syms_of_xdisp): Declare/initialize display-hourglass,
10697 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
10698 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
10699 formerly in xfns.c.
10700 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
10701 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
10702 (start_hourglass, cancel_hourglass): Remove.
10703 (show_hourglass, hide_hourglass): Remove prototypes and static
10704 modifiers.
10705 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
10706 hourglass_atimer, hourglass_shown_p declaration/initialization.
10707 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
10708 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
10709 (start_hourglass, cancel_hourglass): Remove.
10710 (show_hourglass, hide_hourglass): Remove prototypes and static
10711 modifiers.
10712 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
10713 hourglass_atimer, hourglass_shown_p declaration/initialization.
10714 * w32fns.c (display_hourglass_p, Vhourglass_delay)
10715 (DEFAULT_HOURGLASS_DELAY): Remove.
10716 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
10717 hourglass_shown_p declaration/initialization.
10718
10719 2008-07-14 Jason Rumney <jasonr@gnu.org>
10720
10721 * w32fns.c (w32_get_arg): Remove wrapper function.
10722 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
10723 directly.
10724 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
10725
10726 2008-07-14 Kenichi Handa <handa@m17n.org>
10727
10728 * xfont.c (xfont_open): Add workaround for X's bug.
10729
10730 2008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
10731
10732 * fontset.c: Include <stdio.h> unconditionally.
10733
10734 2008-07-13 Michael Albinus <michael.albinus@gmx.de>
10735
10736 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
10737 for filtering.
10738
10739 2008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
10740
10741 * s/vms.h: Use __GNUC__ instead of _GNUC_.
10742
10743 * m/macppc.h:
10744 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
10745
10746 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
10747 (SPECIAL_EMACS_INT):
10748 * m/ia64.h (SPECIAL_EMACS_INT):
10749 * m/amdx86-64.h (SPECIAL_EMACS_INT):
10750 * s/gnu.h (NLIST_STRUCT):
10751 * s/aix4-2.h (X11R5_INHIBIT_I18N):
10752 * s/gnu-linux.h (LINUX):
10753 * s/msdos.h (HAVE_FACES):
10754 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
10755
10756 * systty.h:
10757 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
10758 anymore.
10759
10760 2008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
10761
10762 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
10763 always defined as int.
10764
10765 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
10766 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
10767 * s/gnu-linux.h (HAVE_WAIT_HEADER):
10768 * s/freebsd.h (HAVE_WAIT_HEADER):
10769 * s/bsd-common.h (HAVE_UNION_WAIT):
10770 * s/aix4-2.h (HAVE_WAIT_HEADER):
10771 * m/mips.h (HAVE_UNION_WAIT):
10772 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
10773 (COFF, static): Do not define, they are undefined later in the file.
10774
10775 * process.c (update_status): Don't use a union.
10776 (status_convert):
10777 (sigchld_handler): Use int instead of WAITTYPE.
10778
10779 2008-07-12 Chong Yidong <cyd@stupidchicken.com>
10780
10781 * indent.c (Fvertical_motion): Restore hscroll before moving to
10782 goal column.
10783
10784 2008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
10785
10786 * lisp.h: Remove left over code.
10787
10788 2008-07-11 Andreas Schwab <schwab@suse.de>
10789
10790 * lisp.h: Fix logic in last change.
10791
10792 * menu.h: New file.
10793 * menu.c: Include it.
10794 * xmenu.c: Likewise.
10795 * Makefile.in: Update dependencies.
10796
10797 2008-07-11 Kenichi Handa <handa@m17n.org>
10798
10799 * fontset.c (fontset_from_font): Cancel the previous change.
10800
10801 2008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
10802
10803 * lisp.h:
10804 * w32heap.c:
10805 * emacs.c:
10806 * alloc.c: Replace all references of NO_UNION_TYPE with
10807 USE_LISP_UNION_TYPE.
10808
10809 * m/xtensa.h (NO_UNION_TYPE):
10810 * m/vax.h (NO_UNION_TYPE):
10811 * m/template.h (NO_UNION_TYPE):
10812 * m/sparc.h (NO_UNION_TYPE):
10813 * m/mips.h (NO_UNION_TYPE):
10814 * m/macppc.h (NO_UNION_TYPE):
10815 * m/m68k.h (NO_UNION_TYPE):
10816 * m/iris4d.h (NO_UNION_TYPE):
10817 * m/intel386.h (NO_UNION_TYPE):
10818 * m/ibms390x.h (NO_UNION_TYPE):
10819 * m/ibms390.h (NO_UNION_TYPE):
10820 * m/ibmrs6000.h (NO_UNION_TYPE):
10821 * m/ia64.h (NO_UNION_TYPE):
10822 * m/hp800.h (NO_UNION_TYPE):
10823 * m/arm.h (NO_UNION_TYPE):
10824 * m/amdx86-64.h (NO_UNION_TYPE):
10825 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
10826 defining it the same.
10827
10828 2008-07-10 Chong Yidong <cyd@stupidchicken.com>
10829
10830 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
10831
10832 2008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
10833
10834 * fileio.c:
10835 * sysdep.c:
10836 * systty.h:
10837 * m/ibmrs6000.h:
10838 * m/iris4d.h:
10839 * s/aix4-2.h:
10840 * s/freebsd.h:
10841 * s/gnu-linux.h:
10842 * s/hpux10-20.h:
10843 * s/hpux11.h:
10844 * s/netbsd.h:
10845 * s/sol2-3.h:
10846 * s/sol2-4.h:
10847 * s/sol2.h:
10848 * s/usg5-4.h:
10849 * s/vms.h: Remove references to unused variables.
10850
10851 2008-07-10 Andreas Schwab <schwab@suse.de>
10852
10853 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
10854 pattern before matching the generic family.
10855
10856 2008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
10857
10858 * unexec.c:
10859 * s/vms.h:
10860 * s/usg5-4-2.h:
10861 * s/sol2-5.h:
10862 * s/freebsd.h:
10863 * s/darwin.h: Remove dead code.
10864
10865 * m/template.h:
10866 * m/sparc.h:
10867 * m/mips.h:
10868 * m/m68k.h:
10869 * m/iris4d.h:
10870 * m/intel386.h:
10871 * m/ibms390x.h:
10872 * m/ibms390.h:
10873 * m/ia64.h:
10874 * m/hp800.h:
10875 * m/arm.h:
10876 * m/amdx86-64.h: Remove dead code and references to unused
10877 and compiler defined symbols.
10878
10879 * unexmips.c:
10880 * unexelf.c: Remove references to desupported systems.
10881
10882 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
10883
10884 * m/powermac.h: Remove boilerplate comments.
10885 (NO_REMAP): Remove unused definition.
10886
10887 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
10888 define them.
10889
10890 2008-07-10 Kenichi Handa <handa@m17n.org>
10891
10892 * xfont.c (xfont_open): Log the reason of failure.
10893
10894 2008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
10895
10896 * fontset.c (fontset_get_font_group):
10897 * font.c (font_check_otf): Specify argument types.
10898
10899 2008-07-09 Kenichi Handa <handa@m17n.org>
10900
10901 * coding.c (detect_coding_utf_8): Set detect_info->found only when
10902 non-ASCII char is found.
10903
10904 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
10905 (reorder_font_vector): Change the arg preferred_family to font.
10906 Prefer the spec matching with font.
10907 (fontset_get_font_group): New function.
10908 (fontset_find_font): Change the format of an element of a realized
10909 fontset. Use fontset_get_font_group.
10910 (fontset_font): Try the current fontset, the default fontset, the
10911 fallbacks of the current fontset, and the fallbacks of the default
10912 fontset in this order.
10913 (face_for_char): Delete the shortcut to use the current font.
10914 (fontset_from_font): Don't set fonts for Latin in the fontset.
10915
10916 * font.h (font_make_object, font_match_p): Adjust prototypes.
10917
10918 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
10919
10920 * font.c (font_make_object): New arg entity and pixelsize.
10921 (font_check_otf_features, font_check_otf): New functions.
10922 (font_match_p): Check :lang, :script, and :otf properties.
10923
10924 * xfont.c (xfont_open): Adjust it for the change of
10925 font_make_object.
10926 (xfont_text_extents): Fix initial setting of metrics.
10927
10928 * ftfont.c (struct ftfont_info): New member index, delete member
10929 fc_charset_idx. Make the member order compatible with struct
10930 xftfont_info.
10931 (fc_charset_table): Change charset names to registry names.
10932 (ftfont_pattern_entity): Delete the args registry and
10933 fc_charset_idx. Change the value of :font-entity property
10934 to (FONTNAME . INDEX). Always set :registry property to
10935 `iso10646-1'.
10936 (struct ftfont_cache_data): New struct.
10937 (ftfont_lookup_cache): New arg for_face.
10938 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
10939 (ftfont_driver): Set the member otf_capability.
10940 (ftfont_get_charset): Adjust it for the change of
10941 fc_charset_table.
10942 (OTF_TAG_SYM): New macro.
10943 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
10944 for the change of fc_charset_table.
10945 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
10946 ftfont_pattern_entity. Add FC_INDEX to objset.
10947 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
10948 and ftfont_pattern_entity.
10949 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
10950 font_make_object, struct ftfont_info.
10951 (ftfont_has_char): Use ftfont_get_fc_charset.
10952 (ftfont_otf_features, ftfont_otf_capability): New functions.
10953 (ftfont_shape): Use ftfont_get_otf.
10954 (ftfont_text_extents): Fix initial setting of metrics.
10955
10956 * xftfont.c (struct xftfont_info): New member ft_size. Make the
10957 member order compatible with struct ftfont_info.
10958 (xftfont_open): Add FC_CHARSET to the pattern. Set
10959 xftfont_info->ft_size. Don't unlock the face. Check BDF
10960 properties if appropriate.
10961 (xftfont_close): Unlock the face.
10962 (xftfont_anchor_point, xftfont_shape): Deleted.
10963 (syms_of_xftfont): Don't set members anchor_point and shape of
10964 xftfont_driver.
10965
10966 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
10967 font_make_object.
10968
10969 * w32font.c (w32font_open): Adjust it for the change of
10970 font_make_object.
10971 (w32font_open_internal): Don't set properties of font_object here.
10972
10973 2008-07-08 Chong Yidong <cyd@stupidchicken.com>
10974
10975 * macfns.c (x_create_tip_frame):
10976 * w32fns.c (x_create_tip_frame):
10977 * xfns.c (x_create_tip_frame): Pass parameter argument to
10978 face-set-after-frame-default.
10979
10980 * xfaces.c (Finternal_merge_in_global_face): Save merged
10981 attributes for the default face back into the face vector.
10982
10983 2008-07-08 Andreas Schwab <schwab@suse.de>
10984
10985 * fontset.h: Declare fontset_from_font. Don't declare
10986 new_fontset_from_font and fontset_from_font_name.
10987 * xterm.c: Include "fontset.h".
10988 * Makefile.in (xterm.o): Update dependencies.
10989
10990 2008-07-08 Glenn Morris <rgm@gnu.org>
10991
10992 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
10993 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
10994
10995 2008-07-07 Chong Yidong <cyd@stupidchicken.com>
10996
10997 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
10998 (x_set_frame_parameters): Don't bind it.
10999
11000 2008-07-07 Juanma Barranquero <lekktu@gmail.com>
11001
11002 * w32fns.c (map_w32_filename): Declare extern.
11003
11004 2008-07-07 Jason Rumney <jasonr@gnu.org>
11005
11006 * w32term.c (WS_EX_LAYERED): Define if not already.
11007
11008 2008-07-06 Chong Yidong <cyd@stupidchicken.com>
11009
11010 * xfaces.c (set_font_frame_param): Don't try to set the font
11011 parameter if it is still unspecified in the lface.
11012
11013 2008-07-05 Chong Yidong <cyd@stupidchicken.com>
11014
11015 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
11016 face if it didn't already exist.
11017
11018 * xdisp.c (try_window_id): Give up if word-wrapping is on.
11019
11020 2008-07-05 Andreas Schwab <schwab@suse.de>
11021
11022 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
11023
11024 2008-07-05 Chong Yidong <cyd@stupidchicken.com>
11025
11026 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
11027 word-wrapping.
11028 (IT_DISPLAYING_WHITESPACE): New macro.
11029 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
11030 when word-wrapping. Simplify word-wrapping logic. Use correct
11031 pixel positions when saving copies of the iterator.
11032 (display_line): Use proper wrap point if the last character on a
11033 line was preceded by whitespace.
11034
11035 2008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
11036
11037 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
11038
11039 2008-07-04 Kenichi Handa <handa@m17n.org>
11040
11041 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
11042
11043 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
11044
11045 2008-07-02 Jason Rumney <jasonr@gnu.org>
11046
11047 * xfns.c (syms_of_xfns): Only define x-select-font when both
11048 HAVE_FREETYPE and USE_GTK.
11049
11050 * xdisp.c (next_element_from_display_vector): Move assignment out
11051 of if statement.
11052
11053 2008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
11054
11055 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
11056
11057 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
11058 (syms_of_fileio): Initialize and export them.
11059 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
11060
11061 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
11062 (Fsystem_move_file_to_trash): New function.
11063 (syms_of_w32fns): Export it to lisp.
11064
11065 2008-07-01 Jason Rumney <jasonr@gnu.org>
11066
11067 * w32font.c (w32font_text_extents): Don't count overhang as part
11068 of width.
11069
11070 2008-06-30 Miles Bader <miles@gnu.org>
11071
11072 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
11073 Add `avoid_cursor_p' field.
11074
11075 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
11076 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
11077 (append_glyph, append_composite_glyph, produce_image_glyph)
11078 (append_stretch_glyph): Initialize avoid_cursor_p.
11079 (get_it_property): Rename from `get_line_height_property'.
11080 (x_produce_glyphs): Use get_it_property.
11081 (handle_line_prefix, push_display_prop): New functions.
11082 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
11083 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
11084 New variables.
11085 (syms_of_xdisp): Initialize them.
11086
11087 2008-06-30 Kenichi Handa <handa@m17n.org>
11088
11089 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
11090 XftDefaultSubstitute (they are called in XftFontMatch).
11091 (xftfont_open): Fix args to ftfont_font_format.
11092
11093 * ftfont.c (fc_charset_table): New member lang.
11094 (ftfont_resolve_generic_family): New arg pattern.
11095 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
11096 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
11097 (ftfont_open): Fix args to ftfont_font_format.
11098 (ftfont_font_format): New arg filename.
11099
11100 2008-06-30 Chong Yidong <cyd@stupidchicken.com>
11101
11102 * xfaces.c (Finternal_merge_in_global_face): If default face was
11103 modified, realize it again. Update the font face attribute.
11104
11105 2008-06-29 Jason Rumney <jasonr@gnu.org>
11106
11107 * w32term.c (x_set_frame_alpha): Fix logic.
11108
11109 2008-06-29 Kenichi Handa <handa@m17n.org>
11110
11111 * fontset.c (Finternal_char_font): Return font-object instead of
11112 font-name.
11113
11114 * composite.c (get_composition_id): Fix the width calculation for TAB.
11115
11116 2008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
11117
11118 * indent.c (Fvertical_motion): Properly handle float column arg.
11119
11120 2008-06-28 Jason Rumney <jasonr@gnu.org>
11121
11122 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
11123 (pfnSetLayeredWindowAttributes): New function pointer.
11124 (w32_initialize): Initialize it when supported.
11125 (x_set_frame_alpha): New function.
11126
11127 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
11128 (w32_frame_parm_handlers): Set alpha handler.
11129
11130 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
11131
11132 2008-06-27 Jason Rumney <jasonr@gnu.org>
11133
11134 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
11135 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
11136 (w32_to_x_charset, x_to_w32_charset)
11137 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
11138 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
11139 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
11140 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
11141 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
11142 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
11143 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
11144 (Qw32_charset_unicode): Remove.
11145 (syms_of_w32fns): Update for above changes.
11146
11147 * w32font.c (w32_to_x_charset, x_to_w32_charset)
11148 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
11149 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
11150 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
11151 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
11152 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
11153 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
11154 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
11155 (syms_of_w32font): Update for above changes.
11156
11157 2008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
11158
11159 * s/usg5-4.h: Fix previous change: keep the correct branch of a
11160 removed #if.
11161 (USG_SHARED_LIBRARIES): Remove duplicate definition.
11162
11163 2008-06-26 Juanma Barranquero <lekktu@gmail.com>
11164 Eli Zaretskii <eliz@gnu.org>
11165
11166 * makefile.w32-in (LOCAL_FLAGS):
11167 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
11168
11169 * sysdep.c (_spawnlp, _getpid):
11170 Declare with explicit _cdecl instead of _CRTAPI1.
11171
11172 * editfns.c (Fget_internal_run_time):
11173 Check for WINDOWSNT with #ifdef, not #if.
11174
11175 2008-06-26 Jason Rumney <jasonr@gnu.org>
11176
11177 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
11178
11179 * w32term.c (x_draw_glyph_string_foreground)
11180 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
11181 Use FONT_HANDLE macro.
11182 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
11183
11184 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
11185 (uniscribe_encode_char): Use FONT_HANDLE macro.
11186
11187 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
11188 (w32font_text_extents): Use precast w32_font.
11189 (w32font_close): Free cached metrics.
11190 (w32font_open_internal): Allocate space for name on stack.
11191
11192 2008-06-26 Chong Yidong <cyd@stupidchicken.com>
11193
11194 * xdisp.c (extend_face_to_end_of_line): Fix last change.
11195
11196 2008-06-26 Jason Rumney <jasonr@gnu.org>
11197
11198 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
11199 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
11200
11201 2008-06-26 Juanma Barranquero <lekktu@gmail.com>
11202
11203 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
11204
11205 2008-06-26 Jason Rumney <jasonr@gnu.org>
11206
11207 * w32bdf.c, w32bdf.h: Remove obsolete files.
11208
11209 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
11210
11211 * w32gui.h: Don't include w32bdf.h.
11212 (XCharStruct, enum w32_char_font_type, W32FontStruct):
11213 Remove obsolete font support.
11214
11215 * w32font.h (struct w32font_info): Remove compat_w32_font.
11216 Add hfont member.
11217 (FONT_COMPAT): Remove obsolete macro.
11218
11219 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
11220 (w32font_encode_char, w32font_text_extents): Use new hfont member.
11221 (w32font_open_internal): Remove compat code. Set new hfont member.
11222 (Fx_select_font): Use new hfont member.
11223
11224 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
11225 (uniscribe_encode_char): Use new hfont member.
11226
11227 * w32term.c (x_draw_glyph_string_foreground)
11228 (x_draw_composite_glyph_string_foreground): Use new hfont member.
11229 (x_draw_glyph_string): Use metrics in w32font_info.
11230
11231 2008-06-26 Kenichi Handa <handa@m17n.org>
11232
11233 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
11234
11235 2008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
11236
11237 * unexnext.c:
11238 * m/ews4800.h:
11239 * m/hp9000s300.h:
11240 * m/ibm370aix.h:
11241 * m/mips-siemens.h:
11242 * m/ncr386.h:
11243 * m/next.h:
11244 * m/pmax.h:
11245 * m/powerpcle.h:
11246 * m/tandem-s2.h:
11247 * s/386bsd.h:
11248 * s/bsd386.h:
11249 * s/bsd4-1.h:
11250 * s/bsd4-2.h:
11251 * s/bsdos2-1.h:
11252 * s/bsdos2.h:
11253 * s/bsdos3.h:
11254 * s/bsdos4.h:
11255 * s/nextstep.h:
11256 * s/ultrix4-3.h:
11257 * s/usg5-0.h:
11258 * s/usg5-2-2.h:
11259 * s/usg5-2.h:
11260 * s/usg5-4-3.h:
11261 * s/ux4800.h:
11262 * s/uxpds.h:
11263 * s/uxpv.h: Remove support for obsolete systems.
11264 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
11265 Remove, insert contents in s/hpux10-20.h.
11266 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
11267 Remove, insert contents in s/aix4-2.h.
11268 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
11269 * s/bsd4-3.h: Rename to ...
11270 * s/bsd-common.h: ... this.
11271 * data.c:
11272 * doc.c:
11273 * ecrt0.c:
11274 * emacs.c:
11275 * fileio.c:
11276 * floatfns.c:
11277 * keyboard.c:
11278 * mem-limits.h:
11279 * print.c:
11280 * process.c:
11281 * sysdep.c:
11282 * syssignal.h:
11283 * systty.h:
11284 * syswait.h:
11285 * term.c:
11286 * unexec.c:
11287 * unexelf.c:
11288 * unexhp9k800.c:
11289 * m/hp800.h:
11290 * m/ibmrs6000.h:
11291 * m/mips.h:
11292 * m/vax.h:
11293 * s/darwin.h:
11294 * s/freebsd.h:
11295 * s/gnu.h:
11296 * s/ms-w32.h:
11297 * s/msdos.h:
11298 * s/netbsd.h:
11299 * s/template.h: Remove references to obsolete variables.
11300
11301 * Makefile.in: Add dependencies for all unexec files.
11302 (admindir): Remove unused variable.
11303 (UNEXEC_SRC): Remove references.
11304
11305 2008-06-25 Chong Yidong <cyd@stupidchicken.com>
11306
11307 * xfns.c (x_default_font_parameter): If Xft is available, first
11308 try Monospace-12 for the default font.
11309
11310 2008-06-25 Jason Rumney <jasonr@gnu.org>
11311
11312 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
11313
11314 2008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
11315
11316 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
11317
11318 * buffer.c (syms_of_buffer): Remove default-word-wrap.
11319
11320 2008-06-25 Juanma Barranquero <lekktu@gmail.com>
11321
11322 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
11323 <scroll-conservatively>: Fix typo in docstring.
11324
11325 * xselect.c (Fx_send_client_event): Doc fix.
11326
11327 2008-06-25 Kenichi Handa <handa@m17n.org>
11328
11329 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
11330
11331 * font.c (font_parse_fcname): Remove unused variables.
11332 (font_sort_entites): Delete the arg SPEC. Caller changed.
11333 Fix for the case of ! best_only.
11334 (font_delete_unmatched): Check DPI and AVGWIDTH too.
11335
11336 * lisp.h (Fstring_to_unibyte): EXFUN it.
11337
11338 * character.h (str_to_unibyte): Extern it.
11339
11340 * character.c (str_to_unibyte): New function.
11341
11342 * fns.c (Fstring_to_unibyte): New function.
11343 (syms_of_fns): Defsubr it.
11344
11345 2008-06-24 Kenichi Handa <handa@m17n.org>
11346
11347 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
11348 DPI too.
11349 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
11350
11351 2008-06-24 Andreas Schwab <schwab@suse.de>
11352
11353 * Makefile.in (${lispsource}loaddefs.el): Rename from
11354 ../lisp/loaddefs.el.
11355 (bootstrap-clean): Do what distclean does but don't remove
11356 Makefile.
11357 (distclean): Depend on bootstrap-clean and remove Makefile.
11358
11359 2008-06-24 Chong Yidong <cyd@stupidchicken.com>
11360
11361 * buffer.h (struct buffer): New member word_wrap.
11362
11363 * buffer.c (syms_of_buffer): New variables default-word-wrap and
11364 word-wrap.
11365 (init_buffer_once): Initialize them.
11366
11367 * dispextern.h (struct it): Replace bool truncate_lines_p with a
11368 line_wrap enum possessing three possible values.
11369
11370 * termopts.h: Replace truncate_partial_width_windows with
11371 Vtruncate_partial_width_windows.
11372
11373 * dispnew.c (direct_output_for_insert): Avoid direct output when
11374 inserting a space with word wrap on.
11375
11376 * indent.c (compute_motion): Obey integer values of
11377 truncate-partial-width-windows.
11378
11379 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
11380 replacing truncate_partial_width_windows.
11381 (init_iterator): If Vtruncate_partial_width_windows is an integer,
11382 truncate only if the window width is below that integer.
11383 (start_display, resize_mini_window, produce_stretch_glyph)
11384 (display_string, move_it_in_display_line_to): Use line_wrap.
11385 (back_to_previous_visible_line_start, reseat_1): Reset
11386 string_from_display_prop_p.
11387 (display_line): Extend default face to end of line when wrapping.
11388
11389 2008-06-24 Kim F. Storm <storm@cua.dk>
11390
11391 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
11392 to wrap continued lines at word boundaries.
11393
11394 2008-06-24 Jason Rumney <jasonr@gnu.org>
11395
11396 * font.c (Ffont_face_attributes): Multiply pixel size before point
11397 conversion to avoid multiplying rounding error.
11398
11399 2008-06-23 Jason Rumney <jasonr@gnu.org>
11400
11401 * w32term.c (x_draw_glyph_string_background)
11402 (x_draw_glyph_string): Remove old bdf font code.
11403
11404 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
11405
11406 2008-06-22 Kenichi Handa <handa@m17n.org>
11407
11408 * font.c (font_find_for_lface): Try the adstyle specified in
11409 the property of LFACE_FONT of LFACE (if any).
11410
11411 2008-06-21 Seiji Zenitani <zenitani@mac.com>
11412 Ryo Yoshitake <ryo@shiftmode.net>
11413
11414 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
11415
11416 2008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
11417
11418 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
11419 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
11420 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
11421 (witness-emacs): Remove.
11422 (lisp, shortlisp): Move loaddefs.el earlier.
11423 (mostlyclean): Forget about witness-emacs.
11424
11425 2008-06-22 Glenn Morris <rgm@gnu.org>
11426
11427 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
11428 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
11429
11430 2008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
11431
11432 * Makefile.in (PRECOMP): Remove.
11433 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
11434 (witness-emacs): Run `compile-first'.
11435 (.el.elc): Use the new compile-onefile target.
11436
11437 2008-06-21 Kenichi Handa <handa@m17n.org>
11438
11439 * xftfont.c (xftfont_open): Handle QCembolden only when
11440 FC_EMBOLDEN is defined.
11441
11442 2008-06-21 Andreas Schwab <schwab@suse.de>
11443
11444 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
11445 (.el.elc): Likewise.
11446
11447 2008-06-21 Miles Bader <miles@gnu.org>
11448
11449 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
11450 build dir, not the lisp source dir.
11451
11452 2008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
11453
11454 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
11455 (bootstrapclean): Remove.
11456 (.el.elc): New rule.
11457 (PRECOMP): New var.
11458 (../lisp/subdirs.el): Remove.
11459 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
11460 (witness-emacs): New target.
11461 (mostlyclean): Remove witness-emacs as well.
11462 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
11463 Add witness-emacs dependency.
11464
11465 2008-06-20 Chong Yidong <cyd@stupidchicken.com>
11466
11467 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
11468 defined by the font.
11469
11470 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
11471
11472 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
11473 (bootstrap-clean): New target that keeps TAGS around.
11474 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
11475 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
11476
11477 2008-06-20 Jason Rumney <jasonr@gnu.org>
11478
11479 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
11480 Remove obsolete font code.
11481
11482 * w32font.c (font_matches_spec): Use csb bitfield from font signature
11483 to determine language support.
11484
11485 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
11486
11487 * sysdep.c (cfsetspeed): New fun extracted from the code.
11488 (cfmakeraw): Move before first use.
11489
11490 2008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
11491
11492 * sysdep.c (cfmakeraw): Provide fallback implementation.
11493 (serial_configure): Provide fallback implementation of cfsetspeed.
11494
11495 2008-06-20 Kenichi Handa <handa@m17n.org>
11496
11497 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
11498 the pattern.
11499
11500 * fontset.c (fontset_from_font): Copy font_spec before changing
11501 the elements.
11502
11503 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
11504
11505 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
11506
11507 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
11508 for explicit `font' parameters.
11509
11510 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
11511
11512 2008-06-19 Kenichi Handa <handa@m17n.org>
11513
11514 * frame.c: Include <ctype.h>.
11515 (x_set_font_backend): Allow spacing characters in the X resource
11516 for FontBackend.
11517
11518 2008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
11519
11520 * w32fns.c, xfns.c (Qfont_param): New var.
11521 (syms_of_w32fns): Initialize it.
11522 (x_default_font_parameter): Record explicit `font' into
11523 `font-parameter'.
11524
11525 2008-06-18 Kenichi Handa <handa@m17n.org>
11526
11527 * font.c (font_parse_xlfd): Fix previous change.
11528 (font_parse_fcname): Don't use :fc-unknown-spec.
11529 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
11530 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
11531 (font_add_log): Prepend the driver name to the resulting fonts.
11532
11533 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
11534 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
11535 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
11536
11537 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
11538 (QCembolden): New variables.
11539 (syms_of_xftfont): DEFSYM them.
11540 (xftfont_open): Call XftFontMatch. Don't trust the result of
11541 XftTextExtents8 if the pixel_size is less than 5.
11542
11543 2008-06-18 Andreas Schwab <schwab@suse.de>
11544
11545 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
11546 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
11547
11548 2008-06-18 Jason Rumney <jasonr@gnu.org>
11549
11550 * w32font.c (w32font_list, w32font_match): Add logging.
11551
11552 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
11553
11554 2008-06-17 Chong Yidong <cyd@stupidchicken.com>
11555
11556 * font.c (font_parse_fcname): Store divider characters for
11557 unknown-spec list. For known key symbols, intern using correct
11558 symbol name.
11559
11560 2008-06-17 Kenichi Handa <handa@m17n.org>
11561
11562 * xfaces.c (realize_default_face): If the frame is not on window
11563 system, set the fontset of face to nil.
11564
11565 2008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
11566
11567 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
11568
11569 2008-06-16 Juanma Barranquero <lekktu@gmail.com>
11570
11571 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
11572 (build_font_name_from_vector): Delete externs.
11573
11574 * xfaces.c (struct font_name): Don't declare.
11575
11576 2008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
11577
11578 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
11579
11580 2008-06-16 Chong Yidong <cyd@stupidchicken.com>
11581
11582 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
11583
11584 2008-06-16 Juanma Barranquero <lekktu@gmail.com>
11585
11586 * font.c (Ffont_spec): Fix usage in docstring.
11587 (Ffont_face_attributes): Doc fix.
11588
11589 2008-06-16 Andreas Schwab <schwab@suse.de>
11590
11591 * font.c (Ffont_face_attributes): Fix definition.
11592
11593 2008-06-16 Jason Rumney <jasonr@gnu.org>
11594
11595 * font.h (font_style_symbolic_from_value): Remove.
11596
11597 * font.c (font_style_symbolic_from_value): Remove.
11598 (font_style_symbolic): Revert to pre 2008-06-13 version.
11599
11600 * w32font.c (w32_to_fc_weight): New function.
11601 (w32font_full_name, logfont_to_fcname): Use it.
11602
11603 2008-06-16 Kenichi Handa <handa@m17n.org>
11604
11605 * font.c (font_check_object): Delete it.
11606 (font_clear_cache): Check if a font-object is alive.
11607 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
11608 font-object to nil.
11609 (font_close_object): Don't check FONT_CLOSE_OBJECT.
11610 (font_at): Don't call font_check_object.
11611 (Ffont_get): Return a symbol for :weight, :slant, and :width.
11612
11613 2008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
11614
11615 * puresize.h (BASE_PURESIZE): Increase to 1230000.
11616
11617 2008-06-16 Chong Yidong <cyd@stupidchicken.com>
11618
11619 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
11620
11621 2008-06-15 Chong Yidong <cyd@stupidchicken.com>
11622
11623 * font.c (font_parse_fcname): Only one decimal point.
11624 (font_unparse_fcname): Handle data in family and foundry indices
11625 as symbols, not strings.
11626 (font_unparse_gtkname, Ffont_face_attributes): New functions.
11627
11628 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
11629
11630 * font.h (font_unparse_gtkname): Add prototype.
11631
11632 2008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
11633
11634 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
11635
11636 2008-06-15 Andreas Schwab <schwab@suse.de>
11637
11638 * font.c (font_update_drivers): Fix crash when no drivers match.
11639
11640 2008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
11641
11642 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
11643 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
11644
11645 2008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
11646
11647 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
11648
11649 2008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
11650
11651 * process.c (Fserial_process_configure, Fprocess_send_eof):
11652 Use EQ to compare Lisp_Objects.
11653
11654 2008-06-13 Jason Rumney <jasonr@gnu.org>
11655
11656 * w32fns.c (Fw32_select_font): Remove old font API function.
11657
11658 * w32font.c (logfont_to_fcname): New function.
11659 (Fx_select_font): New font dialog function compatible with
11660 GTK/fontconfig version.
11661
11662 * font.c (font_style_symbolic_from_value): New function.
11663 (font_style_symbolic): Use it.
11664
11665 * font.h (font_style_symbolic_from_value): Declare new function.
11666
11667 2008-06-13 Juanma Barranquero <lekktu@gmail.com>
11668
11669 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
11670 <font-width-table>: Fix typos in docstrings.
11671
11672 2008-06-13 Daniel Engeler <engeler@gmail.com>
11673
11674 These changes add serial port access.
11675 * process.c: Add HAVE_SERIAL.
11676 (Fdelete_process, Fprocess_status, Fset_process_buffer)
11677 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
11678 (list_processes_1, select_wrapper, Fstop_process)
11679 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
11680 (status_notify): Modify to handle serial processes.
11681 [HAVE_SERIAL] (Fserial_process_configure)
11682 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
11683 New functions.
11684 * process.h (struct Lisp_Process): Add `type'.
11685 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
11686 New functions.
11687 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
11688 serial ports.
11689 (serial_open, serial_configure): New functions.
11690 * w32.h: Add FILE_SERIAL.
11691 (struct _child_process): Add ovl_read, ovl_write.
11692
11693 2008-06-13 Kenichi Handa <handa@m17n.org>
11694
11695 * dispextern.h (enum lface_attribute_index): New member
11696 LFACE_FOUNDRY_INDEX.
11697
11698 * font.c (font_score): Delete arg alternate_families. Check only
11699 weight, slant, width, and size. Ignore the difference of alias
11700 style symbols.
11701 (font_sort_entites): Adjust for the above change. Reflect the
11702 order of font-driver to scores.
11703 (font_list_entities): Don't check alternate_familes here.
11704 (font_clear_prop): Handle foundry.
11705 (font_update_lface): Don't parse "foundry-family" form here.
11706 Handle FONT_FOUNDRY_INDEX.
11707 (font_find_for_lface): Likewise. Handle alternate families here.
11708 If registry is nil, try iso8859-1 and ascii-0.
11709 (font_open_for_lface): Pay attention to size in ENTITY.
11710 (font_open_by_name): Simplify by calling font_load_for_lface.
11711 (free_font_driver_list): Delete it.
11712 (font_update_drivers): Preserve the order of backends.
11713 (syms_of_font): Setting of sort_shift_bits adjusted for the change
11714 of font_score and font_sort_entites.
11715 (font_update_sort_order): Likewise.
11716
11717 * xfaces.c (LFACE_FOUNDRY): New macro.
11718 (check_lface_attrs): Check foundry.
11719 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
11720 (merge_face_vectors): Check foundry.
11721 (merge_face_ref): Likewise.
11722 (Finternal_set_lisp_face_attribute): Likewise.
11723 (x_update_menu_appearance): Likewise.
11724 (Finternal_get_lisp_face_attribute): Likewise.
11725 (lface_hash): Likewise.
11726 (lface_same_font_attributes_p): Likewise.
11727 (x_supports_face_attributes_p): Likewise.
11728 (tty_supports_face_attributes_p): Likewise.
11729 (Finternal_set_alternative_font_family_alist): Intern strings.
11730 (Finternal_set_alternative_font_registry_alist): Downcase strings.
11731 (realize_default_face): Set LFACE_FOUNDRY (lface).
11732
11733 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
11734 font-driver at first.
11735
11736 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
11737
11738 2008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
11739
11740 * lread.c (Fload): Use xfree, not free on saved_doc_string.
11741
11742 2008-06-12 Jim Meyering <meyering@redhat.com>
11743
11744 Make unexec_free handle NULL the same way free does.
11745 * unexmacosx.c (unexec_free): Ignore a NULL argument.
11746
11747 2008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
11748
11749 * character.h (CHAR_TO_BYTE_SAFE): New macro.
11750 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
11751 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
11752 (WEAK_ALIAS): Simplify.
11753 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
11754 when searching a unibyte buffer.
11755
11756 2008-06-12 Chong Yidong <cyd@stupidchicken.com>
11757
11758 * xfns.c (Fx_select_font): Rename from x-font-dialog.
11759
11760 2008-06-12 Juanma Barranquero <lekktu@gmail.com>
11761
11762 * w32font.c: Include ctype.h.
11763
11764 2008-06-11 Jason Rumney <jasonr@gnu.org>
11765
11766 * w32font.c (w32font_encode_char): Detect missing glyphs that are
11767 misreported as space.
11768 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
11769 as aliases for registry iso10646-1.
11770
11771 2008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
11772
11773 * buffer.c (clone_per_buffer_values): Skip `name'.
11774
11775 2008-06-11 Chong Yidong <cyd@stupidchicken.com>
11776
11777 * font.c (font_parse_fcname): Fix last change; accept decimal
11778 points in font size.
11779
11780 2008-06-10 Jason Rumney <jasonr@gnu.org>
11781
11782 * w32uniscribe.c (add_opentype_font_name_to_list):
11783 Skip non unicode fonts.
11784
11785 2008-06-10 Chong Yidong <cyd@stupidchicken.com>
11786
11787 * xfns.c (Fx_font_dialog): New function.
11788
11789 * gtkutil.c (xg_dialog_response_cb): Rename from
11790 xg_file_response_callback.
11791 (pop_down_dialog): Rename from pop_down_file_dialog.
11792 (xg_get_file_name): Callers changed.
11793 (xg_get_font_name): New function.
11794
11795 * gtkutil.h (xg_get_font_name): Insert prototype.
11796
11797 2008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
11798
11799 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
11800 x_underline_minimum_display_offset.
11801 (syms_of_xdisp): Declare it here rather than in xterm.c.
11802 * dispextern.h (underline_minimum_offset): Declare it.
11803 * w32term.c (x_draw_glyph_string): Use it.
11804 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
11805 (syms_of_xterm): Don't declare it any more.
11806 (x_draw_glyph_string): Adjust to the new name.
11807
11808 2008-06-10 David De La Harpe Golden <david@harpegolden.net>
11809
11810 * xterm.c (x_underline_minimum_display_offset): New var.
11811 (x_draw_glyph_string): Use it.
11812 (syms_of_xterm): Declare it.
11813
11814 2008-06-10 Chong Yidong <cyd@stupidchicken.com>
11815
11816 * font.c (font_parse_fcname): Accept GTK-style font names too.
11817
11818 2008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
11819
11820 * dired.c (file_name_completion): Don't return t if the match is exact
11821 but with different capitalization.
11822 * minibuf.c (Ftry_completion): Simplify.
11823
11824 * window.c (Vwindow_point_insertion_type): New var.
11825 (set_window_buffer): Use it.
11826 (syms_of_window): Init and export it to Lisp.
11827
11828 2008-06-10 Kenichi Handa <handa@m17n.org>
11829
11830 * font.h (font_intern_prop): Prototype adjusted.
11831
11832 * font.c (font_intern_prop): New arg force_symbol.
11833 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
11834 Adjust for the change of font_intern_prop.
11835
11836 * ftfont.c (ftfont_pattern_entity):
11837 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
11838 (w32_registry):
11839 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
11840 the change of font_intern_prop.
11841
11842 2008-06-09 Juanma Barranquero <lekktu@gmail.com>
11843
11844 * w32menu.c (digest_single_submenu): Declare extern.
11845
11846 2008-06-09 Jason Rumney <jasonr@gnu.org>
11847
11848 * w32term.c (x_make_frame_visible): Use alternate restore flags.
11849
11850 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
11851 (parse_single_submenu): Remove.
11852 (digest_single_submenu): Remove.
11853 (syms_of_w32menu): Don't initialise variables that have moved
11854 to menu.c.
11855 (set_frame_menubar): Sync with version in xmenu.c.
11856 (w32_menu_show): Sync with xmenu_show in xmenu.c.
11857
11858 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
11859 Make static again.
11860
11861 2008-06-09 Jason Rumney <jasonr@gnu.org>
11862
11863 Changes to w32 files related to the move of common menu code
11864 to menu.c on 2008-06-08 by Chong Yidong.
11865
11866 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
11867 defs to w32gui.h.
11868 (single_keymap_panes, push_menu_item, push_menu_pane):
11869 Make globally visible.
11870
11871 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
11872 (local_free, malloc_widget_value, free_widget_value)
11873 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
11874 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
11875 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
11876 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
11877 (menu_items, menu_items_allocated, menu_items_used)
11878 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
11879 (init_menu_items, finish_menu_items, discard_menu_items)
11880 (grow_menu_items, push_submenu_start, push_submenu_end)
11881 (push_left_right_boundary, push_menu_pane, push_menu_item)
11882 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
11883 (free_menubar_widget_tree_value, parse_single_submenu)
11884 (update_submenu_strings): Remove functions.
11885 (xmalloc_widget_value): Remove and declare extern.
11886
11887 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
11888 (OBJ1): Build it.
11889
11890 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
11891 (local_heap, local_alloc, local_free, malloc_widget_value)
11892 (free_widget_value): Define here.
11893
11894 2008-06-09 Kenichi Handa <handa@m17n.org>
11895
11896 * font.h (Qascii_0): Extern it.
11897
11898 * font.c (Qascii_0): New variable.
11899 (syms_of_font): DEFSYM it.
11900 (font_open_by_name): If the registry "iso8859-1" fails, try also
11901 "ascii-0".
11902
11903 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
11904
11905 2008-06-08 Kenichi Handa <handa@m17n.org>
11906
11907 * .gdbinit (xfont): New command.
11908
11909 2008-06-08 Andreas Schwab <schwab@suse.de>
11910
11911 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
11912 * Makefile.in (menu.o): Update dependencies.
11913
11914 * Makefile.in (obj): Always add menu.o.
11915 * emacs.c (main): Always call syms_of_menu.
11916 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
11917
11918 2008-06-08 Chong Yidong <cyd@stupidchicken.com>
11919
11920 * Makefile.in: Compile menu.c.
11921
11922 * lisp.h: Declare syms_of_menu.
11923
11924 * emacs.c (main): Call syms_of_menu.
11925
11926 * keyboard.h: Relocate platform-independent menu definitions from
11927 xmenu.c.
11928
11929 * menu.c: New file. Relocate platform-independent menu
11930 definitions from xmenu.c. Suggested by Adrian Robert.
11931
11932 * xmenu.c: Remove platform-independent menu definitions.
11933 (menu_items, menu_items_inuse, menu_items_allocated)
11934 (menu_items_used, menu_items_n_panes)
11935 (menu_items_submenu_depth): Move to keyboard.h.
11936 (init_menu_items, finish_menu_items, unuse_menu_items)
11937 (discard_menu_items, restore_menu_items, save_menu_items)
11938 (grow_menu_items, push_submenu_start, push_submenu_end)
11939 (push_left_right_boundary, push_menu_pane, push_menu_item)
11940 (keymap_panes, single_keymap_panes, single_menu_item)
11941 (list_of_panes, list_of_items, find_and_call_menu_selection)
11942 (xmalloc_widget_value, free_menubar_widget_value_tree)
11943 (parse_single_submenu, digest_single_submenu)
11944 (update_submenu_strings): Move to menu.c.
11945
11946 2008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
11947
11948 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
11949
11950 2008-06-06 Miles Bader <miles@gnu.org>
11951
11952 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
11953 face, not frame default.
11954
11955 2008-06-05 Martin Rudalics <rudalics@gmx.at>
11956
11957 * window.c (pop_up_windows, pop_up_frames)
11958 (display_buffer_reuse_frames, Vpop_up_frame_function)
11959 (Vdisplay_buffer_function, Veven_window_heights)
11960 (Vspecial_display_buffer_names, Vspecial_display_regexps)
11961 (Vspecial_display_function, Vsame_window_buffer_names)
11962 (Vsame_window_regexps, split_height_threshold)
11963 (Vsplit_window_preferred_function): Move those vars to window.el.
11964 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
11965 (Fdisplay_buffer): Move those functions to window.el.
11966 (syms_of_window): Remove corresponding declarations.
11967 (display_buffer): New function.
11968 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
11969 * dispnew.c (Flast_nonminibuf_frame): New function.
11970 * buffer.c (Fpop_to_buffer): Move to window.el.
11971
11972 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
11973
11974 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
11975
11976 2008-06-05 Kenichi Handa <handa@m17n.org>
11977
11978 * coding.c (detect_coding): Fix previous change.
11979 (detect_coding_system): Likewise.
11980
11981 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
11982
11983 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
11984
11985 * keymap.c (Vminibuffer_local_filename_must_match_map):
11986 Rename from Vminibuffer_local_must_match_filename_map.
11987 (syms_of_keymap):
11988 * minibuf.c (Fcompleting_read): Adjust accordingly.
11989 * commands.h: Rename declaration as well.
11990
11991 2008-06-05 Kenichi Handa <handa@m17n.org>
11992
11993 * font.c (Ffont_spec): Don't use font_parse_family_registry for
11994 family name.
11995 (Ffont_put): Likewise.
11996
11997 * fontset.c (fontset_find_font): Call font_open_for_lface with the
11998 current font-spec.
11999
12000 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
12001 is unspecified.
12002
12003 * xfaces.c (realize_x_face): If the font-related face attributes
12004 are the same as those of default face, realize a new fontset from
12005 default->fontset.
12006 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
12007
12008 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
12009
12010 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
12011 (move_it_in_display_line): New wrapper.
12012
12013 * window.c (window_scroll_pixel_based_preserve_x)
12014 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
12015 (window_scroll_pixel_based, window_scroll_line_based):
12016 Use them to preserve column positions.
12017 (syms_of_window): Initialize them.
12018
12019 * indent.c (Fvertical_motion): Extend first arg to allow passing an
12020 (HPOS . VPOS) pair.
12021
12022 * dispextern.h (move_it_in_display_line): Declare.
12023
12024 2008-06-05 Juanma Barranquero <lekktu@gmail.com>
12025
12026 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
12027 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
12028 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
12029
12030 2008-06-04 Juanma Barranquero <lekktu@gmail.com>
12031
12032 * window.c (Fset_window_parameter): Doc fix.
12033 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
12034
12035 2008-06-04 Joakim Verona <joakim@verona.se>
12036
12037 * window.h (struct window): Add new member window_parameters.
12038
12039 * window.c (Fwindow_parameters, Fwindow_parameter)
12040 (Fset_window_parameter): New defuns.
12041 (syms_of_window): Defsubr the new defuns.
12042 (make_window): Initialize window_parameters to nil.
12043
12044 2008-06-04 John Paul Wallington <jpw@pobox.com>
12045
12046 * eval.c (Fdefmacro): Doc fix.
12047
12048 2008-06-04 Kenichi Handa <handa@m17n.org>
12049
12050 * coding.c (detect_coding): Fix handling of coding->head_ascii.
12051 Be sure to call setup_coding_system when we find a proper coding system.
12052 (detect_coding_system): Fix handling of coding->head_ascii.
12053
12054 2008-06-03 Andreas Schwab <schwab@suse.de>
12055
12056 * font.c (font_prop_validate_spacing): Fix last change.
12057
12058 2008-06-03 Kenichi Handa <handa@m17n.org>
12059
12060 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
12061 (font_parse_fcname): Fix handling of unknown key.
12062
12063 * xfont.c (xfont_list): Try an alias.
12064
12065 * charset.c (char_charset): Return NULL if the arg charset_list is
12066 specified and C doesn't belong to any of them.
12067
12068 2008-06-02 Chip Coldwell <coldwell@redhat.com>
12069
12070 * font.c (font_pixel_size): Don't take cdr of an integer.
12071
12072 2008-06-02 Jim Meyering <meyering@redhat.com>
12073
12074 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
12075 * alloc.c (xfree): Return right away for a NULL arg.
12076 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
12077 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
12078 * mac.c (create_apple_event_from_event_ref): Likewise.
12079 (create_apple_event_from_drag_ref, cfstring_create_normalized):
12080 Likewise.
12081 * doprnt.c (doprnt1): Likewise.
12082 * frame.c (frame): Likewise.
12083 * keyboard.c (wipe_kboard): Likewise.
12084 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
12085 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
12086 * term.c (tty_default_color_capabilities, maybe_fatal)
12087 (delete_tty): Likewise.
12088 * w16select.c (string): Likewise.
12089 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
12090 * w32bdf.c (w32_free_bdf_font): Likewise.
12091 * w32fns.c (w32_unload_font): Likewise.
12092 * w32font.c (w32font_close): Likewise.
12093 * window.c (size_window): Likewise.
12094 * xselect.c (receive_incremental_selection): Likewise.
12095 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
12096 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
12097 * w32.c (stat): Likewise.
12098
12099 Remove useless if-before-free tests.
12100 * editfns.c (Fset_time_zone_rule): Likewise.
12101 * lread.c (nosuffix): Likewise.
12102 * ralloc.c (get_bloc): Likewise.
12103 * regex.c (reg_free): Likewise.
12104 * xftfont.c (xftfont_open, xftfont_close): Likewise.
12105 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
12106 * xsmfns.c (smc_save_yourself_CB): Likewise.
12107
12108 2008-06-02 Kenichi Handa <handa@m17n.org>
12109
12110 * font.c (font_find_for_lface): Handle float font size.
12111 (font_open_for_lface): Likewise.
12112
12113 * xfaces.c (x_supports_face_attributes_p): Check face->font before
12114 comparing the properties.
12115
12116 2008-06-01 Jason Rumney <jasonr@gnu.org>
12117
12118 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
12119 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
12120 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
12121 Don't add empty script list.
12122 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
12123
12124 2008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
12125
12126 * Makefile.in (dot, dotdot): Remove, update users.
12127 ".." has been used elsewhere in the file for a long time.
12128 (LIBXT_STATIC): Remove conditional based on unused variable.
12129
12130 2008-06-01 Miles Bader <miles@gnu.org>
12131
12132 * xfaces.c (Vface_remapping_alist): New variable.
12133 (syms_of_xfaces): Initialize it.
12134 (enum named_merge_point_kind): New type.
12135 (struct named_merge_point): Add `named_merge_point_kind' field.
12136 (push_named_merge_point): Make cycle detection respect different
12137 named-merge-point kinds.
12138 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
12139 Remove face-name alias resolution.
12140 (lface_from_face_name): New definition using
12141 `lface_from_face_name_no_resolve'.
12142 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
12143 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
12144 (get_lface_attributes): New definition that layers face-remapping on
12145 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
12146 (lookup_basic_face): New function.
12147 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
12148 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
12149 `get_lface_attributes'.
12150 (face_at_buffer_position): Use `lookup_basic_face' to lookup
12151 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
12152 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
12153
12154 * xdisp.c (init_iterator): Pass base_face_id through
12155 `lookup_basic_face' when we actually use it as a face-id.
12156 (handle_single_display_prop): Use `lookup_basic_face' to lookup
12157 DEFAULT_FACE_ID.
12158
12159 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
12160 lookup the initial face-id.
12161
12162 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
12163
12164 2008-06-01 Juanma Barranquero <lekktu@gmail.com>
12165
12166 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
12167 (Fremove_text_properties): Fix typos in docstrings.
12168
12169 2008-05-31 Kenichi Handa <handa@m17n.org>
12170
12171 * font.c (font_list_entities): Fix the car part of data to be
12172 stored in the cache.
12173
12174 * ftfont.c (ftfont_font_format): Don't use strcasestr.
12175
12176 2008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
12177
12178 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
12179 Add a `test' argument so another predicate than `equal' can be used.
12180 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
12181 (map_char_table): Remove unused vars `c' and `i'.
12182 * lisp.h (Foptimize_char_table): Adjust declaration.
12183 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
12184
12185 2008-05-30 Kenichi Handa <handa@m17n.org>
12186
12187 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
12188 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
12189 defined.
12190
12191 2008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
12192
12193 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
12194 (Fmake_variable_frame_local): Disallow mixing buffer-local and
12195 frame-local settings for the same variable.
12196
12197 2008-05-30 Kenichi Handa <handa@m17n.org>
12198
12199 * fontset.c (Ffont_info): Move to font.c.
12200 (syms_of_fontset): Delete defsubr of Sfont_info.
12201
12202 * font.c (font_style_to_value, font_score): Delete casting of the
12203 args to xstcasecmp.
12204 (register_font_driver): Increment num_font_drivers only when
12205 registering the driver globally.
12206 (Ffont_info): Move from fontset.c. Handle a font object too.
12207 (syms_of_font): Defsubr Sfont_info.
12208
12209 2008-05-29 Kenichi Handa <handa@m17n.org>
12210
12211 * coding.h (enum define_coding_utf8_arg_index): New enum.
12212 (enum coding_attr_index): Change coding_attr_utf_16_bom to
12213 coding_attr_utf_bom.
12214 (enum utf_bom_type): Rename from utf_16_bom_type.
12215 (struct utf_16_spec): Adjust for the above change.
12216 (struct coding_system): Add utf_8_bom in `spec' union.
12217
12218 * coding.c (CODING_UTF_8_BOM): New macro.
12219 (enum coding_category): Delete coding_category_utf_8, add
12220 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
12221 coding_category_utf_8_sig.
12222 (CATEGORY_MASK_UTF_8): Delete it.
12223 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
12224 (CATEGORY_MASK_UTF_8_SIG): New macros.
12225 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
12226 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
12227 CATEGORY_MASK_UTF_8_SIG.
12228 (CATEGORY_MASK_UTF_8): New macro.
12229 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
12230 (detect_coding_utf_8): Check BOM.
12231 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
12232 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
12233 (encode_coding_utf_16): Likewise.
12234 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
12235 (detect_coding, detect_coding_system): Handle utf-8-auto.
12236 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
12237 (syms_of_coding): Fix setting up of Vcoding_category_table.
12238
12239 2008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
12240
12241 * process.c (Faccept_process_output): If `millisec' is non-nil,
12242 `seconds' default to 0.
12243 (wait_reading_process_output): Also return non-nil if we read output
12244 from a non-running process.
12245
12246 2008-05-29 Jason Rumney <jasonr@gnu.org>
12247
12248 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
12249 `raster' specified.
12250 (add_font_entity_to_list): Allow non-opentype truetype fonts back
12251 in the uniscribe backend, but disallow any font that has no
12252 unicode subrange support.
12253
12254 2008-05-29 Juanma Barranquero <lekktu@gmail.com>
12255
12256 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
12257 Fix typos in docstrings.
12258
12259 2008-05-29 Kenichi Handa <handa@m17n.org>
12260
12261 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
12262 (Fx_family_fonts): Set frame correctly.
12263
12264 2008-05-28 Jason Rumney <jasonr@gnu.org>
12265
12266 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
12267
12268 2008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
12269
12270 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
12271 calling build_annotations.
12272
12273 2008-05-28 Juanma Barranquero <lekktu@gmail.com>
12274
12275 * coding.c (Fdecode_coding_region, Fencode_coding_region)
12276 (Fencode_coding_string):
12277 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
12278 <latin-extra-code-table>: Fix typos in docstrings.
12279 (syms_of_coding) <coding-system-alist>: Doc fix.
12280 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
12281
12282 2008-05-28 Kenichi Handa <handa@m17n.org>
12283
12284 * fontset.c (Ffont_info): Don't call font_close_object.
12285
12286 * font.c (font_parse_family_registry): Use Ffont_put to validate
12287 foundry and family.
12288 (font_delete_unmatched): Don't check spacing.
12289 (font_list_entities): Add spacing to the spec to list fonts.
12290
12291 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
12292 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
12293
12294 * coding.c (encode_coding_raw_text): Fix previous change.
12295 (encode_coding_object): When the dst_object is a buffer and is
12296 different from src_object, move gap to PT.
12297
12298 2008-05-27 Chong Yidong <cyd@stupidchicken.com>
12299
12300 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
12301
12302 2008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
12303
12304 * coding.c (encode_coding_raw_text): Set coding->produced_char for
12305 all branches. Compute it differently.
12306
12307 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
12308
12309 2008-05-27 Juanma Barranquero <lekktu@gmail.com>
12310
12311 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
12312 into "else if () ... else ...".
12313
12314 2008-05-27 Jason Rumney <jasonr@gnu.org>
12315
12316 * w32font.c (w32font_open_internal): Determine if glyph indices
12317 are likely to work here.
12318
12319 2008-05-27 Chong Yidong <cyd@stupidchicken.com>
12320
12321 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
12322 draw overlap glyphs with appropriate highlighting.
12323
12324 2008-05-27 Kenichi Handa <handa@m17n.org>
12325
12326 * xfont.c (xfont_open): Fix calculation of font->average_width.
12327
12328 2008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
12329
12330 * casefiddle.c (casify_object): Try to guess better whether the
12331 argument is a byte or a char.
12332
12333 2008-05-26 Andreas Schwab <schwab@suse.de>
12334
12335 * xselect.c (x_reply_selection_request): Properly handle format == 32.
12336 Always send multiples of format size.
12337
12338 * xterm.c (x_set_frame_alpha): Fix type mismatch.
12339
12340 2008-05-26 Jason Rumney <jasonr@gnu.org>
12341
12342 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
12343 (compute_metrics): Don't set failure if we just cleared the cache.
12344 (w32_weight_table): Remove unused variable.
12345 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
12346 backwards compatibility.
12347
12348 2008-05-25 Kenichi Handa <handa@m17n.org>
12349
12350 * w32term.c (x_draw_glyph_string):
12351 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
12352
12353 * xfaces.c: Delete unused function prototypes.
12354 (xstrlwr, font_frame): Delete them.
12355 (clear_face_cache): Delete unused variable.
12356
12357 * xftfont.c (xftfont_open): Delete unused variable.
12358 If underline_thickness is not 1, adjust underline_position.
12359
12360 * ftxfont.c (ftxfont_open): Delete unused variable.
12361
12362 * fontset.c (face_for_char): Optimize for the case of no charset
12363 property.
12364
12365 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
12366 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
12367 (otf_open, font_otf_capability, generate_otf_features)
12368 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
12369 Comment out by surrounding "#if 0" and "#endif" for the moment.
12370 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
12371 (syms_of_font): Codes for accessing above commented out.
12372
12373 2008-05-24 Eli Zaretskii <eliz@gnu.org>
12374
12375 * w32proc.c: Include dispextern.h.
12376
12377 * w32.c: Include dispextern.h.
12378
12379 2008-05-23 Juanma Barranquero <lekktu@gmail.com>
12380
12381 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
12382 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
12383 Fix typos in docstrings.
12384
12385 2008-05-23 Jason Rumney <jasonr@gnu.org>
12386
12387 * xsmfns.c: Remove includes that are already included by config.h.
12388
12389 2008-05-23 Kenichi Handa <handa@m17n.org>
12390
12391 * charset.c (Qemacs, charset_emacs): New variables.
12392 (char_charset): Fix for non-Unicode characters.
12393 (syms_of_charset): Define charset_emacs.
12394
12395 * w32term.c (x_draw_glyph_string): Be sure to update
12396 s->underline_thickness and s->underline_position. Be sure to draw
12397 underline within the current line area.
12398
12399 * xterm.c (x_draw_glyph_string): Be sure to update
12400 s->underline_thickness and s->underline_position. Be sure to draw
12401 underline within the current line area.
12402
12403 * fontset.c: Delete unused variables and add casting for char *
12404 throughout the file.
12405 (fontset_font): Try the fallback fonts of the current fontset
12406 before consulting the default fontset.
12407
12408 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
12409
12410 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
12411
12412 2008-05-22 Jason Rumney <jasonr@gnu.org>
12413
12414 * font.c: Don't include strings.h.
12415
12416 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
12417
12418 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
12419 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
12420 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
12421 to call xstrcasecmp.
12422
12423 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
12424
12425 * fontset.c (fs_query_fontset): Use xstrcasecmp.
12426
12427 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
12428
12429 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
12430
12431 2008-05-22 Kenichi Handa <handa@m17n.org>
12432
12433 * puresize.h (BASE_PURESIZE): Increase to 1220000.
12434
12435 * font.c (font_prop_validate_style): Adjust for the format
12436 change of font_style_table.
12437
12438 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
12439 two args.
12440
12441 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
12442 two args.
12443
12444 2008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
12445
12446 * minibuf.c (keys_of_minibuf): Delete.
12447 * lisp.h (keys_of_minibuf): Delete.
12448 * emacs.c (main): Don't call keys_of_minibuf.
12449
12450 2008-05-22 Kenichi Handa <handa@m17n.org>
12451
12452 * ftfont.c (ftfont_resolve_generic_family): Rename from
12453 ftfont_list_generic_family. Return a single family for each
12454 generic family.
12455 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
12456 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
12457 Call font_add_log.
12458 (ftfont_match): Call font_add_log.
12459
12460 * font.h (Ffont_xlfd_name): EXFUN adjusted.
12461 (FONT_DEBUG): Define it.
12462 (font_add_log): Extern it.
12463 (font_assert): Rename from xassert.
12464
12465 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
12466 (xfont_list_family): Call font_add_log.
12467 (xfont_match): Likewise.
12468 (memq_no_quit): Delete.
12469
12470 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
12471 call of Ffont_xlfd_name.
12472
12473 * xfaces.c (struct table_entry, slant_table, weight_table)
12474 (swidth_table): Move to font.c.
12475
12476 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
12477 xassert are changed to font_assert. Delete many unused variables.
12478 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
12479 New variables.
12480 (struct table_entry): Move from xfaces.c and modified.
12481 (weight_table, slant_table, width_table): Move from xfaces.c and
12482 contents adjusted for the change of struct table_entry.
12483 (font_style_to_value, font_style_symbolic): Adjust for the
12484 format change of font_style_table.
12485 (font_parse_family_registry): Don't overwrite existing foundry and
12486 family of font_spec.
12487 (font_score): Fix calculation of diff for sizes.
12488 (font_sort_entites): Call font_add_log.
12489 (font_delete_unmatched): Return a newly created list.
12490 (font_list_entities): Fix previous change. Call font_add_log.
12491 (font_matching_entity, font_open_entity, font_close_entity):
12492 Call font_add_log.
12493 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
12494 (Finternal_set_font_style_table): Delete.
12495 (BUILD_STYLE_TABLE): New macro.
12496 (build_style_table): New function.
12497 (Vfont_log, font_log_env_checked): New variables.
12498 (font_add_log): New function.
12499 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
12500 Declare Lisp variables "font-weight-table", "font-slant-table",
12501 "font-width-table", and "font-log". Initialize font_style_table.
12502
12503 2008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
12504
12505 * xterm.c (x_set_frame_alpha): Move declarations before statements.
12506
12507 2008-05-21 Seiji Zenitani <zenitani@mac.com>
12508 Ryo Yoshitake <ryo@shiftmode.net>
12509
12510 * frame.c (Qalpha): Add a new frame parameter `alpha'.
12511 (Vframe_alpha_lower_limit): New variable.
12512 (x_set_alpha): New function.
12513
12514 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
12515
12516 * xfns.c (x-create-frame, Qalpha):
12517 Initialize the frame parameter `alpha'.
12518 * xterm.c (OPAQUE, OPACITY): New.
12519 (x_set_frame_alpha): New function.
12520 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
12521
12522 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
12523 * w32fns.c (w32_frame_parm_handlers): Likewise.
12524
12525 2008-05-20 Jason Rumney <jasonr@gnu.org>
12526
12527 * w32font.c (add_font_entity_to_list): Don't add non-opentype
12528 truetype fonts to opentype list.
12529
12530 2008-05-20 Juanma Barranquero <lekktu@gmail.com>
12531
12532 * fontset.c (Ffontset_info): Doc fix.
12533 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
12534 <ignore-relative-composition>: Fix typos in docstrings.
12535
12536 * font.c (syms-of-font) <font-encoding-alist>:
12537 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
12538 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
12539 (Ffont_otf_alternates): Doc fixes.
12540
12541 2008-05-20 Kenichi Handa <handa@m17n.org>
12542
12543 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
12544 font.h through out the file.
12545 (FONT_DRIVERS): Rename from FONTOBJ.
12546 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
12547 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
12548
12549 * emacs.c (main): Call syms_of_font unconditionally.
12550
12551 * font.h (find_font_encoding): Extern it.
12552
12553 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
12554 fontset.c.
12555 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
12556 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
12557 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
12558 only when HAVE_WINDOW_SYSTEM is defined.
12559 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
12560 when HAVE_WINDOW_SYSTEM is defined.
12561
12562 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
12563 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
12564
12565 * xfaces.c: Include font.h unconditionally.
12566 (merge_face_ref, merge_face_vectors)
12567 (Finternal_set_lisp_face_attribute): Cancel the previous change.
12568
12569 2008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
12570
12571 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
12572 indirect_variable.
12573 * eval.c (lisp_indirect_variable): New fun.
12574 (Fuser_variable_p): Use it.
12575
12576 2008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
12577
12578 * lisp.h (indirect_variable):
12579 * data.c (indirect_variable, let_shadows_buffer_binding_p):
12580 Use Lisp_Symbol pointers rather than Lisp_Object.
12581 Adjust callers.
12582 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
12583 To this end, change calling-convention.
12584
12585 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
12586 if some non-hidden buffers are selected by string&pred.
12587
12588 2008-05-19 Chong Yidong <cyd@stupidchicken.com>
12589
12590 * process.c (wait_reading_process_output): Always check status
12591 when in batch mode.
12592
12593 2008-05-19 Kenichi Handa <handa@m17n.org>
12594
12595 * font.c (font_list_entities): Fix handling of cache.
12596 (font_matching_entity): Likewise.
12597
12598 * ftfont.c (cs_iso8859_1): Delete.
12599 (ft_face_cache): New variable.
12600 (struct ftfont_info): New member fc_charset_idx.
12601 (ftfont_build_basic_charsets): Delete.
12602 (fc_charset_table): New variable.
12603 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
12604 . FC_CHARSET_IDX) as :font-entity property in the font entity.
12605 Callers changed.
12606 (ftfont_lookup_cache, ftfont_get_charset): New functions.
12607 (ftfont_spec_pattern): New argument fc_charset_idx.
12608 Check registry more rigidly. Change callers.
12609 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
12610 change of :font-entity property of the font.
12611
12612 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
12613 property of the font.
12614
12615 2008-05-18 Juanma Barranquero <lekktu@gmail.com>
12616
12617 * coding.c (Fcoding_system_p): Rename argument to match docstring.
12618 (Funencodable_char_position, Fcheck_coding_systems_region)
12619 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
12620 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
12621 (Ffind_operation_coding_system, Fset_coding_system_priority)
12622 (Fcoding_system_eol_type): Doc fixes.
12623
12624 2008-05-17 Glenn Morris <rgm@gnu.org>
12625
12626 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
12627
12628 2008-05-16 Eli Zaretskii <eliz@gnu.org>
12629
12630 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
12631 and st_gid.
12632
12633 * frame.c (Fdelete_frame): Don't call font_update_drivers if
12634 HAVE_WINDOW_SYSTEM is not defined.
12635
12636 * xfaces.c (merge_face_ref, merge_face_vectors)
12637 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
12638 HAVE_WINDOW_SYSTEM is defined.
12639 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
12640
12641 2008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
12642
12643 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
12644
12645 2008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12646
12647 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
12648
12649 2008-05-15 Kenichi Handa <handa@m17n.org>
12650
12651 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
12652 preference.
12653
12654 2008-05-15 Glenn Morris <rgm@gnu.org>
12655
12656 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
12657
12658 2008-05-15 Chong Yidong <cyd@stupidchicken.com>
12659
12660 * fns.c (init_fns): Don't initialize weak_hash_tables here.
12661 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
12662
12663 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
12664
12665 2008-05-15 Kenichi Handa <handa@m17n.org>
12666
12667 * ftfont.c (ftfont_list): Downcase family name to check generic
12668 families.
12669
12670 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
12671 font-spec for QCfont value.
12672
12673 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
12674 buffer. Check the return value of it.
12675
12676 2008-05-14 Jason Rumney <jasonr@gnu.org>
12677
12678 * w32term.c (w32_get_glyph_overhangs): Remove.
12679 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
12680
12681 2008-05-14 Kenichi Handa <handa@m17n.org>
12682
12683 * font.c (font_prop_validate): Make nil a valid value.
12684 (font_clear_cache): Check if the cached vector of entities is nil
12685 or not.
12686
12687 2008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12688
12689 * emacs.c (main_thread): Conditionalize on
12690 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
12691 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
12692
12693 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
12694 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
12695 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
12696
12697 2008-05-14 Kenichi Handa <handa@m17n.org>
12698
12699 * coding.c (detect_coding_iso_2022): Ignore a coding category that
12700 has no corresponding coding system.
12701
12702 2008-05-14 Jason Rumney <jasonr@gnu.org>
12703
12704 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
12705
12706 * w32font.h (w32font_open_internal): Update declaration.
12707
12708 * w32font.c (w32font_open_internal): Change last argument from
12709 w32font_info struct to font object. Fill in font object from
12710 font_entity. Get Outline metrics if possible. Use them to
12711 calculate underline position and thickness. Use xlfd name as name
12712 property. Don't set codepage.
12713 (w32font_open): Pass font_object to w32font_open_internal. Don't
12714 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
12715 (w32font_draw): Use s->font.
12716 (clear_cached_metrics): Don't clear non-existent blocks.
12717
12718 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
12719 font was not found.
12720 (x_draw_glyph_string): Use underline position and thickness from font.
12721
12722 * w32uniscribe.c (uniscribe_open): Pass font_object to
12723 w32font_open_internal.
12724
12725 2008-05-14 Kenichi Handa <handa@m17n.org>
12726
12727 These changes are to delete all legacy font-handling codes, and
12728 make Emacs use only font-backends.
12729
12730 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
12731 (frame.o, image.o, print.o): Depend on $(FONTSRC).
12732
12733 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
12734
12735 * charset.h (Vcharset_non_preferred_head)
12736 (Vcurrent_iso639_language): Extern them.
12737
12738 * charset.c (Vcharset_non_preferred_head): New variable.
12739 (Vcurrent_iso639_language): New variable.
12740 (syms_of_charset): Declare it as a Lisp variable.
12741 (char_charset): Don't check non preferred charsets. As a last
12742 resort, return charset_unicode.
12743 (Fset_charset_priority): Update Vcharset_non_preferred_head.
12744
12745 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
12746 conditionals. Don't check enable_font_backend. Delete all codes
12747 used only when USE_FONT_BACKEND is not defined.
12748
12749 * dispextern.h (struct glyph_string): Change type of `font' to
12750 `struct font *'.
12751 (struct glyph_string): New member underline_position and
12752 underline_thickness.
12753 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
12754 (struct face): Change type of `font' to `struct font *'. Remove
12755 members `font_name', `font_info_id'.
12756 (per_char_metric, encode_char): Delete externs.
12757 (calc_pixel_width_or_height): Adjust the prototype.
12758
12759 * emacs.c (enable_font_backend): Delete extern.
12760 (main): Don't set enable_font_backend. Don't check the command
12761 line argument "-disable-font-backend".
12762
12763 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
12764 (enum font_property_index): New members FONT_DPI_INDEX,
12765 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
12766 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
12767 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
12768 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
12769 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
12770 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
12771 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
12772 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
12773 (struct font_spec, struct font_entity): New structs.
12774 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
12775 (struct font): Many members from old "struct font_info" moved to
12776 here. Members font and entity deleted.
12777 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
12778 the new font-related objects.
12779 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
12780 (CHECK_FONT_GET_OBJECT): Likewise.
12781 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
12782 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
12783 (struct font_driver): New members case_sensitive anc check. Type
12784 of the member list and open changed.
12785 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
12786 (font_symbolic_width, font_find_object, font_get_spec)
12787 (font_set_lface_from_name): Delete extern.
12788 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
12789
12790 * font.c: Include <strings.h>.
12791 (enable_font_backend): Delete it.
12792 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
12793 (CHECK_VALIDATE_FONT_SPEC): Delete it.
12794 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
12795 (null_string): Delete it.
12796 (null_vector): Make it static.
12797 (font_family_alist): Delete it.
12798 (Qnormal): Extern it.
12799 (QCextra, QClanguage): Delete it.
12800 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
12801 (font_make_spec, font_make_entity, font_make_object)
12802 (font_intern_prop): Renamed from intern_downcase. Don't downcase
12803 the string. Callers changed.
12804 (font_pixel_size): Adjusted for the format change of font-related
12805 objects.
12806 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
12807 (font_style_to_value, font_style_symbolic): New function.
12808 (build_font_family_alist): Delete it.
12809 (font_registry_charsets): Use Fassoc_string instead of
12810 assq_no_quit.
12811 (font_prop_validate_symbol): Don't return null_string.
12812 (font_prop_validate_style): Adjusted for the change of
12813 style-related values in a font vector.
12814 (font_property_table): Delete entries for QClanguage and
12815 QCantialias, add entries for QCavgwidth.
12816 (get_font_prop_index): Delete the 2nd argument FROM.
12817 (font_prop_validate): Arguments changed.
12818 (font_put_extra): Adjusted for the change of font-related objects.
12819 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
12820 (font_parse_fcname, font_unparse_fcname)
12821 (font_prepare_composition): Likewise.
12822 (font_parse_family_registry): Renamed from font_merge_old_spec.
12823 (otf_open): Delete the 1st arg entity.
12824 (font_otf_capability): Adjusted for the above change.
12825 (font_score): New arg alternate_families. Adjusted for the change
12826 of font-related objects.
12827 (font_sort_entites): New arg best_only.
12828 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
12829 Delete them.
12830 (font_match_p): Check alternate families.
12831 (font_find_object): Delete it.
12832 (font_check_object): New function.
12833 (font_clear_cache): Adjusted for the change of font-related objects.
12834 (font_delete_unmatched): New arg.
12835 (font_list_entities): Call font_driver->list with a spec that
12836 doesn't specify style-related properties.
12837 (font_matching_entity): Arguments changed. Caller changed.
12838 (font_open_entity): Adjusted for the change of font-related objects.
12839 (font_close_object, font_has_char, font_encode_char)
12840 (font_get_name, font_get_spec): Likewise.
12841 (font_spec_from_name, font_clear_prop, font_update_lface):
12842 New functions.
12843 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
12844 (font_prepare_for_face, font_done_for_face, font_open_by_name)
12845 (font_at): Adjusted for the change of font-related objects.
12846 (font_range): New function.
12847 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
12848 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
12849 (Fcopy_font_spec, Fmerge_font_spec): New function.
12850 (Ffont_family_list): Renamed from list-families.
12851 (Finternal_set_font_style_table): Arguments changed.
12852 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
12853 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
12854 change of font-related objects.
12855 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
12856
12857 * fontset.h (struct font_info): Delete it. Most members go to
12858 struct font.
12859 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
12860 (enum FONT_SPEC_INDEX): Delete it.
12861 (font_info, list_fonts_func, load_font_func, query_font_func)
12862 (set_frame_fontset_func, find_ccl_program_func)
12863 (get_font_repertory_func, new_fontset_from_font_name): Delete
12864 externs.
12865 (fontset_from_font_name): Extern it.
12866 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
12867 (FONT_INFO_FROM_FACE): Deleted.
12868 (face_for_font): Adjust prototype.
12869
12870 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
12871 conditionals. Don't check enable_font_backend. Delete all codes
12872 used only when USE_FONT_BACKEND is not defined.
12873 (get_font_info_func, list_font_func, load_font_func)
12874 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
12875 (get_font_repertory_func): Delete them.
12876 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
12877 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
12878 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
12879 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
12880 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
12881 (fontset_compare_rfontdef): New function.
12882 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
12883 rfont-defs by qsort. Adjusted for the change of font-group vector.
12884 (load_font_get_repertory): Deleted.
12885 (fontset_find_font): Use new macros to ref/set elements of
12886 font-def and rfont-def.
12887 (fontset_font): Fix the timing of remembering that no font for C.
12888 (free_face_fontset): Do nothing if the face has no fontset.
12889 (face_suitable_for_char_p): Use new macros to ref/set elements of
12890 rfont-def.
12891 (face_for_char): Likewise. Call face_for_char with font_object.
12892 (fs_load_font): Delete. Delete #pragma surrounding it.
12893 (fs_query_fontset): Use strcasecmp instead of strcmp.
12894 (generate_ascii_font_name): Adjusted for the format change of
12895 font-spec.
12896 (Fset_fontset_font): Likewise. Use new macros to set elements of
12897 font-def.
12898 (Fnew_fontset): Use font_unparse_xlfd to generate
12899 FONTSET_ASCII (fontset).
12900 (new_fontset_from_font_name): Deleted.
12901 (fontset_from_font): Renamed from new_fontset_from_font. Check if
12902 a fontset is already created for the font. FIx updating of
12903 Vfontset_alias_alist.
12904 (fontset_ascii_font): Deleted.
12905 (Ffont_info): Adjusted for the format change of font-spec.
12906 (Finternal_char_font): Likewise.
12907 (Ffontset_info): Likewise.
12908 (syms_of_fontset): Don't check load_font_func.
12909
12910 * fns.c (internal_equal): Handle PREV_FONT.
12911
12912 * frame.h: Delete USE_FONT_BACKEND conditional.
12913
12914 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
12915 conditionals. Don't check enable_font_backend. Delete all codes
12916 used only when USE_FONT_BACKEND is not defined.
12917 (x_set_font): Call x_new_font, not x_new_fontset2.
12918 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
12919 already set for the frame.
12920
12921 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
12922 a font-entity by font_make_entity. Use font_intern_prop instead
12923 of intern_downcase. Use FONT_SET_STYLE to set a style-related
12924 font property. If a font is scalable, set avgwidth property to 0.
12925 Set font-entity property by font_put_extra.
12926 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
12927 (ffont_driver): Adjusted for the change of struct font_driver.
12928 (ftfont_spec_pattern): New function.
12929 (ftfont_list): Return a list, not vector.
12930 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
12931 (ftfont_list_family): Don't downcase names.
12932 (ftfont_free_entity): Deleted.
12933 (ftfont_open): Return a font-object. Adjusted for the change of
12934 struct font. Get underline_thickness and underline_position from
12935 font property. Don't update dpyinfo->smallest_font_height and
12936 dpyinfo->smallest_char_width.
12937 (ftfont_close): Don't free `struct font'.
12938 (ftfont_has_char): Adjusted for the format change of font-entity.
12939 (ftfont_encode_char, ftfont_text_extents): Likewise.
12940
12941 * ftxfont.c (ftxfont_list): Return a list, not vector.
12942 (ftxfont_open): Return a font-object. Adjusted for the change of
12943 struct font. Get underline_thickness and underline_position from
12944 font property. Don't update dpyinfo->smallest_font_height and
12945 dpyinfo->smallest_char_width.
12946 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
12947 (ftxfont_draw): Adjusted for the change of struct font.
12948
12949 * image.c (image_ascent): Don't include "charset.h". Include
12950 "character.h" and "font.h".
12951
12952 * lisp.h (enum pvec_type): New member PREV_FONT.
12953 (Fassoc_string): EXFUN it.
12954
12955 * print.c: Include font.h.
12956 (print_object): Handle font-related objects.
12957
12958 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
12959 conditionals. Don't check enable_font_backend. Delete all codes
12960 used only when USE_FONT_BACKEND is not defined.
12961 (handle_auto_composed_prop): Do nothing if it->f is not on a
12962 window system. Check how many following characters can be
12963 displayed by the same font.
12964 (calc_pixel_width_or_height): Type of the 4th arg is changed to
12965 'struct font *'.
12966 (get_char_face_and_encoding): Assign the whole encoding task to
12967 the `encode-char' method of a font driver.
12968 (fill_composite_glyph_string): Adjusted for the change of `struct
12969 face' and `struct glyph_string'.
12970 (fill_glyph_string): Likewise.
12971 (get_per_char_metric): Arguments changed.
12972 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
12973 and `struct glyph_string'.
12974 (produce_stretch_glyph, calc_line_height_property)
12975 (x_produce_glyphs): Likewise.
12976
12977 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
12978 conditionals. Don't check enable_font_backend. Delete all codes
12979 used only when USE_FONT_BACKEND is not defined. Use
12980 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
12981 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
12982 (Qp): Extern them.
12983 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
12984 Deleted.
12985 (struct font_name): Deleted.
12986 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
12987 (compare_fonts_by_sort_order): New function.
12988 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
12989 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
12990 Deleted.
12991 (Fx_family_fonts): Use font_list_entities, and sort fonts by
12992 compare_fonts_by_sort_order.
12993 (Fx_font_family_list): Call Ffont_family_list.
12994 (face_numeric_value, face_numeric_weight, face_numeric_slant)
12995 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
12996 (face_symbolic_slant, face_symbolic_swidth)
12997 (split_font_name_into_vector, build_font_name_from_vector)
12998 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
12999 (font_rescale_ratio, split_font_name, build_font_name)
13000 (free_font_names, sort_fonts, x_face_list_fonts)
13001 (face_font_available_p, sorted_font_list, cmp_font_names)
13002 (font_list_1, concat_font_list, font_list, remove_duplicates):
13003 Deleted.
13004 (Fx_list_fonts): Use Ffont_list.
13005 (LFACE_AVGWIDTH): Deleted.
13006 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
13007 by FONTP.
13008 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
13009 (set_lface_from_font_name): Delete it.
13010 (set_lface_from_font): Renamed from
13011 set_lface_from_font_and_fontset. Caller changed. Don't set
13012 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
13013 for face.
13014 (merge_face_vectors): Copy font-spec if necessary.
13015 Clear properties of the font-spec if necessary.
13016 (merge_face_ref): Clear properties of the font-spec if necessary.
13017 (Finternal_set_lisp_face_attribute): Likewise.
13018 (set_font_frame_param): Use font_load_for_lface to load a
13019 font-object, and call Fmodify_frame_parameters with it.
13020 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
13021 font name by Ffont_xlfd_name.
13022 (Finternal_lisp_face_attribute_values): Don't check QCweight,
13023 QCslant, and QCwidth.
13024 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
13025 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
13026 Compare fonts by EQ.
13027 (lookup_non_ascii_face): Deleted.
13028 (face_for_font): The 2nd argument changed.
13029 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
13030 Check atomic font properties by case insensitive.
13031 (realize_non_ascii_face): Set face->overstrike correctly.
13032 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
13033 (dump_realized_face): Get font name from
13034 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
13035
13036 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
13037 conditionals. Don't check enable_font_backend. Delete all codes
13038 used only when USE_FONT_BACKEND is not defined.
13039 (xic_create_xfontset): Original code deleted and renamed from
13040 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
13041 (x_make_gc): Don't set GCFont in GCs.
13042 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
13043 opened by "fixed".
13044 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
13045 find_ccl_program_func, query_font_func, set_frame_fontset_func,
13046 get_font_repertory_func.
13047
13048 * xfont.c: Include <stdlib.h> and "ccl.h".
13049 (struct xfont_info): New structure.
13050 (xfont_query_font): Deleted.
13051 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
13052 moved from xterm.c.
13053 (xfont_driver): Adjusted for the change of struct font_driver.
13054 (compare_font_names): New function.
13055 (xfont_list_pattern): Sort font names case insensitively. Make
13056 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
13057 (xfont_list): Return a list, not vector.
13058 (xfont_match): If the font doesn't have QCname property, generate
13059 a name from the other font properties.
13060 (xfont_open): Return a font-object. Adjusted for the change of
13061 struct font. Get underline_thickness and underline_position from
13062 font property. Don't update dpyinfo->smallest_font_height and
13063 dpyinfo->smallest_char_width.
13064 (xfont_close): Don't free struct font.
13065 (xfont_prepare_face): Adjusted for the change of struct font.
13066 (xfont_done_face): Deleted.
13067 (xfont_has_char): Adjusted for the change of struct font.
13068 (xfont_encode_char, xfont_draw): Likewise.
13069 (xfont_check): New function.
13070
13071 * xftfont.c (xftfont_list): Adjusted for the change of `list'
13072 callback function.
13073 (xftfont_match): Adjusted for the format change of font-entity.
13074 (xftfont_open): Adjusted for the format change of font-entity and
13075 font-object. Adjusted for the change of struct font. Return a
13076 font-object. Don't update dpyinfo->smallest_font_height and
13077 dpyinfo->smallest_char_width.
13078 (xftfont_close): Block input while calling XftFontClose.
13079 (xftfont_prepare_face): Don't block input while calling
13080 xftfont_get_colors. Adjusted for the change of struct font.
13081 (xftfont_shape): Return value of error case fixed.
13082
13083 * xrdb.c (x_load_resources): Don't setup a fontset resource.
13084
13085 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
13086 conditionals.
13087 (FONT_WIDTH): Return (f)->max_width.
13088 (struct x_display_info): Delete member `font'.
13089 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
13090 (x_find_ccl_program, x_get_font_repertory): Delete externs.
13091 (struct x_output): Change type of `font' to `struct font *'.
13092
13093 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
13094 conditionals. Don't check enable_font_backend. Delete all codes
13095 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
13096 (x_per_char_metric, x_encode_char): Deleted.
13097 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
13098 (x_compute_glyph_string_overhangs): Adjusted for the change of
13099 `struct face'.
13100 (x_draw_glyph_string_foreground)
13101 (x_draw_composite_glyph_string_foreground): Likewise.
13102 (x_draw_glyph_string): Likewise. Use font->underline_position and
13103 font->underline_thickness.
13104 (x_new_font): Renamed from x_new_fontset2.
13105 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
13106 (x_check_font): Call `check' method of a font driver.
13107 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
13108 (x_query_font, x_get_font_repertory): Deleted.
13109 (x_find_ccl_program): Renamed and moved to xfont.c.
13110 (x_redisplay_interface): Adjusted for the change of `struct
13111 redisplay_interface'.
13112
13113 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
13114 conditionals. Don't check enable_font_backend. Delete all codes
13115 used only when USE_FONT_BACKEND is not defined. Surround non-used
13116 code by "#ifdef OLD_FONT" and "endif".
13117 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
13118
13119 * w32font.h (struct w32font_info): New member.
13120 (FONT_COMPAT): New macro.
13121 (w32font_open_internal): Prototype adjusted.
13122
13123 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
13124 OLD_FONT" and "endif".
13125
13126 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
13127 conditionals. Don't check enable_font_backend. Delete all codes
13128 used only when USE_FONT_BACKEND is not defined.
13129 (w32font_open): Return a font-object. Make a font-object by
13130 font_make_object. Adjusted for the change of struct w32font_info.
13131 (w32font_close): Don't free struct font. Adjusted for the change
13132 of struct w32font_info.
13133 (w32font_encode_char, w32font_text_extents, w32font_draw):
13134 Adjusted for the change of struct w32font_info.
13135 (w32font_draw): Likewise.
13136 (w32font_list_internal): Return a list, not vector.
13137 (w32font_open_internal): Change the 4th arg to font-object.
13138 Adjusted for the change of struct w32font_info and font-object format.
13139 (add_font_name_to_list): Don't downcase names.
13140 (w32_enumfont_pattern_entity): Make a font-entity by
13141 font_make_entity. Adjusted for the format change of font-entity.
13142 Use FONT_SET_STYLE to set a style-related font property. If a
13143 font is scalable, set avgwidth property to 0. Set font-entity
13144 property by font_put_extra.
13145 (font_matches_spec): Adjusted for the format change of font-entity.
13146 (w32_weight_table, w32_decode_weight): New variables.
13147 (w32_encode_weight): New function.
13148 (fill_in_logfont): Adjusted for the format change of font-spec.
13149 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
13150 weight value.
13151 (w32font_driver): Adjusted for the change of struct font_driver.
13152
13153 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
13154 conditionals. Don't check enable_font_backend. Surround non-used
13155 code by "#ifdef OLD_FONT" and "endif".
13156 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
13157 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
13158
13159 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
13160 conditionals. Don't check enable_font_backend. Delete all codes
13161 used only when USE_FONT_BACKEND is not defined. Surround non-used
13162 code by "#ifdef OLD_FONT" and "endif".
13163
13164 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
13165 (uniscribe_open): Return value changed to font-object.
13166 Adjusted for the format change of font-object.
13167 (uniscribe_otf_capability): Adjusted for the change of struct font.
13168 (add_opentype_font_name_to_list): Don't downcase names.
13169 (uniscribe_font_driver): Adjusted for the change of struct
13170 font_driver.
13171
13172 2008-05-13 Chong Yidong <cyd@stupidchicken.com>
13173
13174 * dispnew.c (update_frame_1): Check if tty output is still valid
13175 before flushing it.
13176
13177 2008-05-13 Jan Djärv <jan.h.d@swipnet.se>
13178
13179 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
13180 to Gtk+ menus.
13181
13182 2008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
13183
13184 * dired.c (file_name_completion): Tweak the code so as to always do it
13185 in a single pass. Tighten the scope of some variables.
13186
13187 * dired.c (Qdefault_directory): New var.
13188 (file_name_completion): Use it instead of Fexpand_file_name.
13189 (syms_of_dired): Initialize it.
13190
13191 2008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
13192
13193 * fileio.c (double_dollars): Remove dead code.
13194
13195 2008-05-10 Eli Zaretskii <eliz@gnu.org>
13196
13197 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
13198 Mention w32-get-true-file-attributes in doc string.
13199
13200 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
13201
13202 2008-05-09 Glenn Morris <rgm@gnu.org>
13203
13204 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
13205 2008-04-23.
13206
13207 2008-05-09 Eli Zaretskii <eliz@gnu.org>
13208
13209 Support for reporting owner and group of each file on MS-Windows:
13210 * dired.c (stat_uname, stat_gname): New functions, with special
13211 implementation for w32.
13212 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
13213
13214 * w32.c: Rename the_passwd_* to dflt_passwd_*.
13215 (dflt_group_name): New static variable.
13216 (dflt_group): Rename from the_group.
13217 (init_user_info): Init dflt_group fields. Get user's group name
13218 from LookupAccountSid.
13219 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
13220 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
13221 New initialization states.
13222 (globals_of_w32): Initialize them to zero. Initialize the default
13223 group name to "None".
13224 (GetFileSecurity_Name): New global var, the name of the function
13225 to call for GetFileSecurity.
13226 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
13227 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
13228 (get_file_security, get_security_descriptor_owner)
13229 (get_security_descriptor_group, is_valid_sid)
13230 (get_file_security_desc, get_rid, get_name_and_id)
13231 (get_file_owner_and_group): New functions.
13232 (stat): Use get_file_security_desc and get_file_owner_and_group to
13233 report the owner and primary group of each file. Don't ignore the
13234 high 32 bits of file's size, now that st_size is 64-bit wide.
13235 Fix test when to get true file attributes.
13236 (init_user_info): Use get_rid instead of equivalent inline code.
13237 (fstat): Don't ignore the high 32 bits of file's size.
13238
13239 2008-05-09 Chong Yidong <cyd@stupidchicken.com>
13240
13241 * image.c (png_load): Use correct bit-depth for setting background
13242 color.
13243
13244 2008-05-08 Eli Zaretskii <eliz@gnu.org>
13245
13246 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
13247 epa-hook.elc.
13248
13249 2008-05-08 Juanma Barranquero <lekktu@gmail.com>
13250
13251 * font.c (Ffont_match_p): Don't use `iff' in docstring.
13252
13253 2008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
13254
13255 * macfns.c (Fx_create_frame): Make a copy of frame parameters
13256 because the original parameters are in pure storage now.
13257 (mac_window): Remove unused params. Update callers.
13258
13259 2008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
13260
13261 * lread.c (substitute_object_recurse): Use lower-level primitives.
13262 Don't signal errors when traversing sub-char-tables.
13263 Don't loop over all the possible characters when traversing char-tables.
13264
13265 * print.c (print_preprocess): Add sub-char-tables to the print-table,
13266 just like we do in print.c.
13267
13268 2008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
13269
13270 * minibuf.c (Ftry_completion): Remove code left over from when we used
13271 scmp instead of Fcompare_strings.
13272
13273 2008-05-04 Juanma Barranquero <lekktu@gmail.com>
13274
13275 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
13276
13277 2008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13278
13279 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
13280 Create bitmap context in native byte order.
13281
13282 * macterm.c (XDrawLine)
13283 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
13284 context in native byte order.
13285
13286 2008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13287
13288 * config.in: Regenerate.
13289
13290 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
13291 New definitions for Image I/O support.
13292 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
13293 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
13294 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
13295 (mac_data_provider_release_data, image_load_image_io)
13296 [USE_MAC_IMAGE_IO]: New functions.
13297 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
13298 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
13299 (init_image_func_pointer) [MAC_OSX]: Remove function.
13300 (image_load_quartz2d) [MAC_OSX]: Check availability of
13301 CGImageCreateWithPNGDataProvider at compile time.
13302 Use lowercase `false' for boolean constant.
13303 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
13304 Use image_load_image_io.
13305 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
13306 Don't check MyCGImageCreateWithPNGDataProvider.
13307 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
13308 Don't call init_image_func_pointer.
13309
13310 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
13311
13312 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
13313 Make variable non-static.
13314 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
13315 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
13316
13317 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
13318 (RED_FROM_ULONG): Mask off higher bits.
13319 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
13320
13321 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
13322 Include AvailabilityMacros.h.
13323 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
13324 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
13325
13326 2008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
13327
13328 * chartab.c (Fset_char_table_range): If range is t, really set all
13329 chars to that value.
13330
13331 2008-05-03 Eli Zaretskii <eliz@gnu.org>
13332
13333 * dired.c (Ffile_attributes): Don't allow the device number become
13334 negative.
13335
13336 2008-05-02 Daiki Ueno <ueno@unixuser.org>
13337
13338 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
13339
13340 2008-05-02 Juri Linkov <juri@jurta.org>
13341
13342 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
13343 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
13344 DEFAULT argument as a list of default values in docstrings.
13345
13346 2008-05-01 Chong Yidong <cyd@stupidchicken.com>
13347
13348 * puresize.h (BASE_PURESIZE): Increase to 1210000.
13349
13350 2008-05-01 Martin Rudalics <rudalics@gmx.at>
13351
13352 * dispnew.c (change_frame_size_1): Preserve small windows when
13353 shrinking frames by calling set_window_height|width with third
13354 arg 2.
13355
13356 * window.h (struct window): Replace field too_small_ok by field
13357 resize_proportionally.
13358
13359 * window.c (make_window): Initialize resize_proportionally.
13360 (enlarge_window): Temporarily set resize_proportionally to make
13361 sure that shrink_windows does scale the window proportionally.
13362 (shrink_windows): When window has resize_proportionally set try
13363 to shrink it proportionally by stealing from other windows.
13364 (struct saved_window, Fset_window_configuration)
13365 (compare_window_configurations): Handle resize_proportionally.
13366 (WINDOW_TOTAL_SIZE): New macro.
13367 (window_min_size, shrink_windows, size_window): Use it.
13368 (check_min_window_sizes): Remove. Invalid values of
13369 window-min-height|width are handled by window_min_size_2 now.
13370 (size_window, Fsplit_window, enlarge_window)
13371 (adjust_window_trailing_edge, grow_mini_window): Don't call
13372 check_min_window_sizes.
13373 (window_min_size_2, window_min_size_1, window_min_size):
13374 New argument safe_p for retrieving "safe" minimum sizes.
13375 (Fdisplay_buffer, Fsplit_window, enlarge_window)
13376 (adjust_window_trailing_edge, grow_mini_window):
13377 Adjust arguments of window_min_size... functions.
13378 (shrink_windows): Argument min_size removed. New argument
13379 safe_p allows shrinking windows to their safe minimum sizes.
13380 Calculate minimum size and decide whether a window shall be
13381 deleted for each window individually.
13382 (size_window): When nodelete_p equals 2, tell shrink_windows to
13383 delete windows only if their new minimum size is no more safe.
13384 (shrink_window_lowest_first): Call window_min_size_1 to make
13385 sure to preserve modeline of bottom-most window when resizing
13386 the minibuffer.
13387 (Fset_window_configuration, Fcurrent_window_configuration)
13388 (compare_window_configurations): Do not handle
13389 window-min-height|width any more.
13390 (syms_of_window): Clarify window-min-height|width doc-strings.
13391
13392 2008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
13393
13394 * dired.c (file_name_completion): Fix up the encoding/decoding issue
13395 some more. Copy some of the code from Ftry_completions.
13396 Remove special case code that dates back to initial revision when the
13397 slash was only added when necessary and that can't trigger nowadays.
13398
13399 2008-04-27 Kenichi Handa <handa@m17n.org>
13400
13401 * font.c (font_prop_validate): Signal `error' instead of `font'.
13402
13403 2008-04-29 Jason Rumney <jasonr@gnu.org>
13404
13405 * w32fns.c (Fw32_battery_status): New defun.
13406 (syms_of_w32fns): Defsubr it.
13407
13408 2008-04-28 Andreas Schwab <schwab@suse.de>
13409
13410 * dired.c (file_name_completion): Fix another mixing of encoded
13411 and decoded names.
13412
13413 2008-04-28 Juanma Barranquero <lekktu@gmail.com>
13414
13415 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
13416
13417 2008-04-27 Juanma Barranquero <lekktu@gmail.com>
13418
13419 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
13420
13421 2008-04-27 Andreas Schwab <schwab@suse.de>
13422
13423 * dired.c (file_name_completion): Fix inappropriate mixing of
13424 encoded and decoded names.
13425
13426 * xterm.c (XTread_socket): Fix use of uninitialized variable.
13427
13428 * puresize.h (BASE_PURESIZE): Increase to 1200000.
13429
13430 2008-04-26 Eli Zaretskii <eliz@gnu.org>
13431
13432 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
13433 2008-03-31, it's not needed anymore with `struct stat' definition
13434 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
13435 for the same reasons.
13436
13437 2008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
13438
13439 * m/sparc.h: Additional redefinitions for GNU/Linux.
13440
13441 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13442
13443 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
13444 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
13445 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
13446 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
13447 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
13448 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
13449 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
13450 Likewise.
13451
13452 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
13453 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
13454 (mac_ax_number_of_characters): Add externs.
13455 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
13456 [USE_MAC_TSM]: Likewise.
13457 (mac_handle_text_input_event) [MAC_OSX]:
13458 Handle kEventTextInputOffsetToPos for no active input area case.
13459 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
13460 (mac_handle_document_access_event)
13461 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
13462 (install_application_handler) [MAC_OSX]: Register handlers for
13463 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
13464 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
13465 Register mac_handle_document_access_event.
13466
13467 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
13468 Make functions non-static.
13469
13470 2008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
13471
13472 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
13473 (read_file_name_completion_ignore_case, insert_default_directory)
13474 (Qdefault_directory): Move to minibuffer.el.
13475 (Fread_file_name): Call the new `read-file-name' instead.
13476
13477 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13478
13479 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
13480 Make function non-static.
13481 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
13482 Remove function.
13483 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
13484 Move to mactoolbox.c.
13485 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
13486
13487 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
13488 (mac_rect_make): New macro.
13489
13490 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
13491 instead of float.
13492 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
13493 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
13494 (XSetBackground) [USE_CG_DRAWING]: Likewise.
13495 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
13496 CGRectMake.
13497 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
13498 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
13499 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
13500 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
13501 instead of WindowRef in argument type.
13502 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
13503 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
13504 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
13505 instead of DISPLAY. All uses changed.
13506 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
13507 (x_calc_absolute_position): Simplify so as not to use
13508 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
13509
13510 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
13511 instead of WindowRef in argument type.
13512 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
13513 [TARGET_API_MAC_CARBON]: Remove externs.
13514 (create_apple_event, mac_event_parameters_to_lisp)
13515 [TARGET_API_MAC_CARBON]: Add externs.
13516
13517 * mactoolbox.c (Vmac_ts_script_language_on_focus)
13518 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
13519 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
13520 is clicked.
13521 (x_activate_menubar): Remove extern for saved_menu_event_location.
13522 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
13523 Move from mac.c.
13524
13525 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13526
13527 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
13528 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
13529
13530 2008-04-23 Jason Rumney <jasonr@gnu.org>
13531
13532 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
13533 attributes only for local files.
13534
13535 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
13536 default to Qlocal.
13537
13538 2008-04-22 Juri Linkov <juri@jurta.org>
13539
13540 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
13541 read-buffer-to-switch instead of using the letter "B".
13542
13543 2008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
13544
13545 * fileio.c (Qdefault_directory): New variable.
13546 (Fread_file_name): Use it to pass `dir' to the completion functions.
13547
13548 2008-04-20 Chong Yidong <cyd@stupidchicken.com>
13549
13550 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
13551
13552 2008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
13553
13554 * keyboard.c (Vpre_help_message): Remove.
13555 (show_help_echo): Remove default C code.
13556
13557 * dired.c (directory_files_internal, file_name_completion):
13558 Only call ENCODE_FILE if the string is indeed decoded.
13559
13560 2008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
13561
13562 * Makefile.in (TOOLKIT_DEFINES): Remove.
13563 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
13564
13565 2008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13566
13567 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
13568 (mactoolbox.o): New target.
13569
13570 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
13571 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
13572
13573 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
13574 Use mac_set_frame_window_background instead of XSetWindowBackground.
13575 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
13576 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
13577 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
13578 instead of SetWindowTitleWithCFString.
13579 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
13580 Move function to mactoolbox.c.
13581 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
13582 Use mac_set_window_modified instead of SetWindowModified.
13583 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
13584 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
13585 (Fx_focus_frame): Use mac_front_non_floating_window instead of
13586 FrontNonFloatingWindow. Use mac_activate_window instead of
13587 ActivateWindow. Use mac_active_non_floating_window instead of
13588 ActiveNonFloatingWindow.
13589 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
13590 Use mac_show_hourglass and mac_hide_hourglass.
13591 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
13592 instead of GetGlobalMouse.
13593 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
13594 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
13595 Use mac_bring_window_to_front instead of BringToFront.
13596 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
13597 mactoolbox.c.
13598 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
13599 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
13600 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
13601 mactoolbox.c.
13602
13603 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
13604 (XtPointer): Move typedef from macmenu.c.
13605 (enum button_type): Move enum from macmenu.c.
13606 (widget_value): Move typedef from macmenu.c.
13607 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
13608 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
13609 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
13610 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
13611 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
13612 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
13613 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
13614 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
13615 (Selection): Move typedef from macselect.c.
13616 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
13617 macterm.c.
13618 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
13619 (mac_is_window_collapsed, mac_bring_window_to_front)
13620 (mac_send_window_behind, mac_hide_window, mac_show_window)
13621 (mac_collapse_window, mac_front_non_floating_window)
13622 (mac_active_non_floating_window, mac_activate_window)
13623 (mac_move_window_structure, mac_move_window, mac_size_window)
13624 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
13625
13626 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
13627 (enum mac_menu_kind): Move enum to mactoolbox.c.
13628 (min_menu_id): Move variable to mactoolbox.c.
13629 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
13630 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
13631 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
13632 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
13633 [TARGET_API_MAC_CARBON]: Likewise.
13634 (XtPointer): Move typedef to macgui.h.
13635 (enum button_type): Move enum to macgui.h.
13636 (widget_value): Move typedef to macgui.h.
13637 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
13638 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
13639 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
13640 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
13641 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
13642 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
13643 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
13644 (popup_activated_flag): Make variable non-static.
13645 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
13646 (add_menu_item, fill_menu, dispose_menus):
13647 Move functions to mactoolbox.c.
13648 (restore_show_help_function, menu_target_item_handler)
13649 (install_menu_target_item_handler, mac_handle_dialog_event)
13650 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
13651 [TARGET_API_MAC_CARBON]: Likewise.
13652 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
13653 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
13654 (find_and_call_menu_selection, name_is_separator): Make function
13655 non-static.
13656 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
13657 to mactoolbox.c.
13658 (set_frame_menubar): Don't call install_menu_quit_handler.
13659 (menu_item_selection): New variable.
13660 (mac_menu_show): Use create_and_show_popup_menu.
13661 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
13662 selection but set variable menu_item_selection. All uses changed.
13663 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
13664 Call install_menu_quit_handler. Move to mactoolbox.c.
13665
13666 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
13667 (Selection): Move typedef to macgui.h.
13668 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
13669 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
13670 Make variables non-static.
13671 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
13672 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
13673 Make functions non-static.
13674 (Vmac_service_selection) [MAC_OSX]: Likewise.
13675 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
13676 (mac_valid_selection_target_p, mac_clear_selection)
13677 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
13678 (mac_put_selection_value, mac_selection_has_target_p)
13679 (mac_get_selection_value, mac_get_selection_target_list)
13680 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
13681 Move functions to mactoolbox.c.
13682 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
13683 Likewise.
13684 (copy_scrap_flavor_data, mac_handle_service_event)
13685 (install_service_handler) [MAC_OSX]: Likewise.
13686 (syms_of_macselect) <Vmac_dnd_known_types>:
13687 Use mac_dnd_default_known_types.
13688
13689 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
13690 Move to mactoolbox.c.
13691 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
13692 (Fx_selection_owner_p): Add EXFUN.
13693 (install_window_handler, remove_window_handler, XSetWindowBackground):
13694 Remove externs.
13695 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
13696 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
13697 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
13698 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
13699 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
13700 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
13701 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
13702 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
13703 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
13704 (create_and_show_popup_menu, mac_get_selection_from_symbol)
13705 (mac_valid_selection_target_p, mac_clear_selection)
13706 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
13707 (mac_put_selection_value, mac_selection_has_target_p)
13708 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
13709 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
13710 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
13711 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
13712 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
13713 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
13714 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
13715 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
13716 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
13717
13718 * mactoolbox.c: New file.
13719
13720 2008-04-18 Jason Rumney <jasonr@gnu.org>
13721
13722 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
13723
13724 2008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
13725
13726 * character.c (Fmultibyte_char_to_unibyte):
13727 Return latin1 chars unchanged.
13728
13729 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
13730 relocated if it points to `name'.
13731
13732 2008-04-17 Kenichi Handa <handa@m17n.org>
13733
13734 * data.c (Faset): Allow setting a multibyte character in an
13735 ASCII-only unibyte string.
13736
13737 * lisp.h (STRING_SET_MULTIBYTE): New macro.
13738
13739 2008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
13740
13741 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
13742 done in config.h.
13743
13744 2008-04-16 Juanma Barranquero <lekktu@gmail.com>
13745
13746 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
13747 (Fchar_direction): Add usage in the docstring.
13748
13749 2008-04-15 Chong Yidong <cyd@stupidchicken.com>
13750
13751 * keyboard.c (read_key_sequence): Remove always-true checks.
13752
13753 2008-04-14 Jason Rumney <jasonr@gnu.org>
13754
13755 * w32font.c (w32font_open_internal): Set max_bounds.descent in
13756 compatibility struct, for better underline positioning.
13757
13758 2008-04-13 David Hansen <david.hansen@gmx.net>
13759
13760 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
13761 string.
13762
13763 2008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
13764
13765 * m/hp800.h (XUINT, XSET): Remove.
13766
13767 2008-04-12 Juanma Barranquero <lekktu@gmail.com>
13768
13769 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
13770 previous change.
13771
13772 2008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
13773
13774 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
13775 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
13776
13777 2008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
13778
13779 * keymap.h (map_keymap_canonical): Declare.
13780 * xmenu.c (single_keymap_panes): Use it.
13781
13782 2008-04-11 Glenn Morris <rgm@gnu.org>
13783
13784 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
13785 set the target's value to that of the alias.
13786
13787 2008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
13788
13789 * term.c (set_tty_color_mode): Left over typo.
13790
13791 2008-04-10 Michael Albinus <michael.albinus@gmx.de>
13792
13793 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
13794 only after check for file name handler functions. Signal, when
13795 native functionality is not supported.
13796 (syms_of_fileio): Declare it unconditionally.
13797
13798 2008-04-10 Jason Rumney <jasonr@gnu.org>
13799
13800 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
13801 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
13802
13803 * w32.c (logon_network_drive): Also logon to remote drives that
13804 are mapped to drive letters.
13805
13806 2008-04-10 Glenn Morris <rgm@gnu.org>
13807
13808 * xdisp.c (truncate-partial-width-windows): Doc fix.
13809
13810 2008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
13811
13812 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
13813 Move functions to minibuffer.el.
13814 (syms_of_fileio): Don't declare them.
13815
13816 2008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
13817
13818 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
13819 (syms_of_minibuf): Remove its initialization.
13820
13821 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
13822
13823 2008-04-09 Juanma Barranquero <lekktu@gmail.com>
13824
13825 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
13826
13827 2008-04-09 Jason Rumney <jasonr@gnu.org>
13828
13829 * makefile.w32-in (distclean): Delete makefile too.
13830 (maintainer-clean): New target.
13831
13832 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
13833
13834 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
13835 for new font backend and composite cases.
13836
13837 2008-04-09 Jan Djärv <jan.h.d@swipnet.se>
13838
13839 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
13840 Most of the code moved to run_timers.
13841 (do_pending_atimers): Call run_timers.
13842 (run_timers): New function.
13843
13844 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
13845 run atimers.
13846
13847 * process.c (wait_reading_process_output): The same as above.
13848
13849 2008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
13850
13851 * minibuf.c (last_exact_completion): Remove variable.
13852 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
13853 (complete_and_exit_1, complete_and_exit_2)
13854 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
13855 (Fdisplay_completion_list, display_completion_list_1)
13856 (Fminibuffer_completion_help, Fself_insert_and_exit)
13857 (Fexit_minibuffer, Fminibuffer_message): Move functions to
13858 minibuffer.el.
13859 (syms_of_minibuf): Remove corresponding initializations.
13860
13861 * keyboard.c (Qdeactivate_mark): New var.
13862 (command_loop_1): Use it to call `deactivate-mark'.
13863 (syms_of_keyboard): Initialize it.
13864
13865 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
13866 to another frame.
13867 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
13868 Don't call set_tty_color_mode.
13869 (store_frame_param): Reset previous_frame rather than call
13870 set_tty_color_mode.
13871 * term.c (set_tty_color_mode): Rewrite.
13872 * dispextern.h (set_tty_color_mode): New type.
13873 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
13874
13875 2008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
13876
13877 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
13878 for generic chars, which do not exist any more in emacs-unicode.
13879
13880 2008-04-08 Michael Albinus <michael.albinus@gmx.de>
13881
13882 * coding.c (detect_coding_emacs_mule)
13883 (Ffind_operation_coding_system): Fix typo.
13884
13885 2008-04-08 Jason Rumney <jasonr@gnu.org>
13886
13887 * w32uniscribe.c (SNAME): Extract only symbol name.
13888
13889 * w32font.h (struct w32_metric_cache): New struct.
13890 (w32font_info): Use it.
13891 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
13892 (CACHE_BLOCKSIZE): New constants.
13893
13894 * w32font.c (Qja, Qko, Qzh): New symbols.
13895 (syms_of_w32font): Initialise them.
13896 (font_matches_spec): Use them to filter by language.
13897 (recompute_cached_metrics): Remove function.
13898 (compute_metrics, clear_cached_metrics): New functions.
13899 (w32font_encode_char): Use them to manage metric cache.
13900 (w32font_text_extents): Cache metrics for all glyphs on demand.
13901 Delay converting glyph indices to WORD until needed.
13902 (w32font_open_internal): Initialize metric cache to empty.
13903 (registry_to_w32_charset): Charset should always be a symbol.
13904 (fill_in_logfont, list_all_matching_fonts): Family should
13905 always be a symbol.
13906
13907 2008-04-06 Jason Rumney <jasonr@gnu.org>
13908
13909 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
13910 Give up if glyph indices not supported. Use uniscribe obtained
13911 ABC widths for individual metrics. Map glyph clusters back to
13912 characters using fClusterStart flag. Return number of glyphs
13913 produced, not chars processed.
13914 (uniscribe_shape): Map char at FROM to current glyph.
13915
13916 2008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13917
13918 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
13919 Use SetMenuItemHierarchicalMenu.
13920
13921 2008-04-05 Jason Rumney <jasonr@gnu.org>
13922
13923 * image.c (pbm_load): Allow color values up to 65535.
13924 Throw an error if max_color_idx is outside the supported range.
13925 Report an error when image size is invalid.
13926 Read two bytes at a time when raw images have max_color_idx above 255.
13927
13928 2008-04-05 Eli Zaretskii <eliz@gnu.org>
13929
13930 * w32.c (readdir): If FindFirstFile/FindNextFile return in
13931 cFileName a file name that includes `?' characters, use the 8+3
13932 alias in cAlternateFileName instead.
13933
13934 2008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
13935
13936 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
13937 append "CCL: Quitted" when the CCL program is quitted.
13938 (setup_ccl_program): Initialize ccl->quit_silently to zero.
13939
13940 * ccl.h (struct ccl_program): New member quit_silently.
13941
13942 2008-04-05 Chong Yidong <cyd@stupidchicken.com>
13943
13944 * search.c (compile_pattern_1): Treat non-nil and non-string of
13945 search-spaces-regexp as nil.
13946
13947 * minibuf.c (Fassoc_string): Tweak docstring.
13948
13949 2008-04-05 Eli Zaretskii <eliz@gnu.org>
13950
13951 * dired.c (Ffile_attributes): Support inode numbers wider than 32
13952 bits. Remove ugly WINDOWSNT-specific kludge introduced on
13953 2008-03-14 to force inode be positive.
13954
13955 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
13956 _S_* ones, since we now use our own sys/stat.h.
13957 (stat, fstat): Don't mangle the inode number.
13958 (init_user_info): Don't restrict UID and GID to 0-60000 range.
13959
13960 2008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
13961
13962 * frame.h (struct frame): Give one more bit to `visible' since we use
13963 values larger than 1 to indicate obscured frames on ttys.
13964
13965 * keymap.c (Qkeymap_canonicalize): New var.
13966 (Fmap_keymap_internal): New fun.
13967 (describe_map): Use keymap-canonicalize.
13968
13969 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
13970 (Fundo_boundary): Set them.
13971 (syms_of_undo): Initialize them.
13972 (record_point): Use them instead of last_point_position*.
13973 (last_undo_buffer): Change type.
13974
13975 2008-04-04 Jason Rumney <jasonr@gnu.org>
13976
13977 * w32font.c (w32font_text_extents): Use font's ascent and descent.
13978 (recompute_cached_metrics): Don't set ascent and descent per char.
13979
13980 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
13981 (uniscribe_check_otf): Add GC protection before consing.
13982 Rearrange loop for counting features.
13983
13984 2008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
13985
13986 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
13987 buffer with byte-size of source buffer.
13988
13989 2008-04-03 Chong Yidong <cyd@stupidchicken.com>
13990
13991 * callint.c (Fcall_interactively): Handle temporary region even
13992 when shift-select-mode is off.
13993
13994 2008-04-03 Jason Rumney <jasonr@gnu.org>
13995
13996 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
13997
13998 2008-04-03 Kenichi Handa <handa@m17n.org>
13999
14000 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
14001 (CATEGORY_MASK_UTF_16): Likewise.
14002 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
14003 binary file.
14004 (detect_coding): Add null-byte detection for a binary file.
14005 (detect_coding_system): Likewise.
14006
14007 2008-04-03 Jason Rumney <jasonr@gnu.org>
14008
14009 * w32uniscribe.c: New file.
14010
14011 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
14012
14013 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
14014
14015 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
14016 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
14017 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
14018 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
14019 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
14020 (Qphonetic): New symbols.
14021 (syms_of_w32font): Initialize them.
14022 (font_supported_scripts): Use them.
14023 (w32font_list_family): List all charsets.
14024 (w32font_text_extents, recompute_cached_metrics): Fix metric
14025 calculations.
14026 (w32_enumfont_pattern_entity): Make full_type a DWORD.
14027 Give opentype fonts their own format.
14028 (font_matches_spec): New arguments backend and logfont.
14029 Handle :otf spec for uniscribe backend.
14030 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
14031 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
14032
14033 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
14034 font backend.
14035 (globals_of_w32fns): Initialize uniscribe font backend.
14036
14037 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
14038 dependencies.
14039 (w32uniscribe.$(O)): New file to build.
14040 (FONT_OBJ): Include w32uniscribe.$(O).
14041 (LIBS): Add uniscribe libraries.
14042
14043 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
14044
14045 2008-04-02 Chong Yidong <cyd@stupidchicken.com>
14046
14047 * callint.c (Vshift_select_mode): New var.
14048 (Finteractive): Document new ^ spec.
14049 (Fcall_interactively): Call handle-shift-selection if the ^ spec
14050 is present.
14051
14052 * keyboard.c (Vthis_command_keys_shift_translated): New var.
14053 (command_loop_1): Avoid running the direct display versions of
14054 forward-char and backward-char if shift-selection may occur.
14055 (read_key_sequence): Set Vthis_command_keys_shift_translated if
14056 shift-translation takes place.
14057
14058 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
14059 avoid clobbering by define-minor-mode.
14060
14061 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
14062 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
14063
14064 * syntax.c (Fforward_word): Add ^ interactive spec.
14065
14066 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
14067 (Fscroll_right): Add ^ interactive spec.
14068
14069 2008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
14070
14071 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
14072
14073 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
14074
14075 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
14076
14077 2008-03-31 Juri Linkov <juri@jurta.org>
14078
14079 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
14080
14081 2008-03-30 Jan Djärv <jan.h.d@swipnet.se>
14082
14083 * gtkutil.c (xg_set_geometry): Fix indentation.
14084 (xg_resize_outer_widget): Remove.
14085 (x_wm_size_hint_off): Fix indentation.
14086 (xg_frame_set_char_size): Call flush_and_sync after
14087 gtk_window_resize.
14088 (x_wm_set_size_hint): Pass NULL as geometry window to
14089 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
14090 Add menu bar and tool bar height to base height.
14091 (xg_update_frame_menubar, free_frame_menubar)
14092 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
14093 (update_frame_tool_bar, free_frame_tool_bar):
14094 Change xg_resize_outer_widget to xg_frame_set_char_size.
14095
14096 2008-03-30 Michael Albinus <michael.albinus@gmx.de>
14097
14098 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
14099 (Fdbus_call_method): New parameter TIMEOUT.
14100 (dbus-send-signal): Optimize UNGCPRO call.
14101
14102 2008-03-29 Juri Linkov <juri@jurta.org>
14103
14104 * window.c (Fdisplay_buffer): Move call to
14105 Vsplit_window_preferred_function out of conditions that check
14106 if window is eligible for vertical splitting.
14107 When Vsplit_window_preferred_function is non-nil, call it and use
14108 its non-nil return value as window. Otherwise, continue doing
14109 vertical splitting using Fsplit_window with arg horflag=nil.
14110 (syms_of_window) <Vsplit_window_preferred_function>: Change the
14111 default value from `split-window' to nil.
14112
14113 2008-03-29 Juri Linkov <juri@jurta.org>
14114
14115 * callint.c (Fcall_interactively): Revert 2008-03-16 change
14116 for interactive code letters 'b' and 'B'.
14117
14118 2008-03-29 Eli Zaretskii <eliz@gnu.org>
14119
14120 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
14121 multibyte string.
14122
14123 2008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
14124
14125 * keyboard.c (pending_funcalls): New var.
14126 (timer_check): Run it.
14127 (syms_of_keyboard): Initialize it.
14128 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
14129 (Vdelete_terminal_functions): New vars.
14130 (syms_of_terminal): Initialize them.
14131 (Fdelete_terminal): Run delete-terminal-functions.
14132 * xdisp.c (safe_eval): Rewrite.
14133 (safe_call2): New fun.
14134 * frame.c (Qdelete_frame_functions): New var.
14135 (syms_of_frame): Initialize it.
14136 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
14137 * lisp.h (safe_call2, pending_funcalls): Declare.
14138
14139 2008-03-28 Andreas Schwab <schwab@suse.de>
14140
14141 * indent.c (Fmove_to_column): Move declaration before statements.
14142
14143 2008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
14144
14145 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
14146 (struct frame): Use bit fields for boolean vars.
14147
14148 * process.c (server_accept_connection): Simplify naming.
14149 (emacs_get_tty_pgrp): Use SDATA.
14150
14151 * coding.c (decode_coding_object): Fix last change.
14152
14153 2008-03-27 Jason Rumney <jasonr@gnu.org>
14154
14155 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
14156
14157 2008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
14158
14159 * charset.c (Fdefine_charset_internal): Change the way of
14160 registering charsets in Vcharset_order_list.
14161 (syms_of_charset): Make the charset `eight-bit' supplementary.
14162
14163 2008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
14164
14165 * regex.c (EXTEND_BUFFER): Change order of pointer addition
14166 operations, to avoid having the difference between pointers
14167 overflow.
14168
14169 2008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
14170
14171 * indent.c (check_display_width): New fun.
14172 (scan_for_column): Use it.
14173
14174 * data.c (syms_of_data): Mark most-positive-fixnum and
14175 most-negative-fixnum as constants.
14176
14177 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
14178
14179 * indent.c (scan_for_column): Extract from current_column_1.
14180 Merge with the same code from Fmove_to_column.
14181 (current_column_1, Fmove_to_column): Use it.
14182
14183 2008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
14184
14185 * keymap.c (map_keymap_internal): New fun.
14186 (map_keymap): Use it.
14187 (Fmap_keymap_internal): New fun.
14188 (Fmap_keymap): Remove left-out test from before make_save_value.
14189
14190 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
14191
14192 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
14193 Use XCAR/XCDR.
14194
14195 * process.h (struct Lisp_Process): Remove filter_multibyte.
14196 * process.c (QCfilter_multibyte): Remove.
14197 (setup_process_coding_systems): Don't use filter_multibyte.
14198 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
14199 (read_process_output): Don't adjust multibyteness to filter_multibyte.
14200 (Fset_process_filter_multibyte): Change the coding-system to
14201 approximate the previous behavior.
14202 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
14203 coding-system.
14204
14205 * coding.c (decode_coding_object): When not decoding into a buffer,
14206 obey the coding system's preference of (uni|multi)byte.
14207
14208 2008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
14209
14210 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
14211 every char is changed and has a different byte-length.
14212 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
14213 Fix int -> EMACS_INT.
14214
14215 2008-03-23 David Hansen <david.hansen@gmx.net>
14216
14217 * dbusbind.c (xd_read_message): Remove extra copying of message
14218 strings. Check for NULL `interface' or `member'.
14219
14220 2008-03-22 Eli Zaretskii <eliz@gnu.org>
14221
14222 * w32.c (readdir): If FindFirstFile/FindNextFile return in
14223 cFileName a file name that includes `?' characters, use the 8+3
14224 alias in cAlternateFileName instead.
14225
14226 2008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
14227
14228 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
14229
14230 2008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
14231
14232 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
14233 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
14234 work on current_buffer only instead (that was already the case
14235 for some of the code anyway).
14236 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
14237 (temp_set_point, temp_set_point_both): Use EMACS_INT.
14238 (SET_PT, SET_PT_BOTH): Adjust.
14239 * intervals.h (set_point, temp_set_point, set_point_both)
14240 (temp_set_point_both): Remove redundant declarations.
14241
14242 2008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
14243
14244 * fileio.c (Finsert_file_contents):
14245 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
14246 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
14247 when buffer != current_buffer anyway.
14248
14249 2008-03-20 Andreas Schwab <schwab@suse.de>
14250
14251 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
14252 as default.
14253
14254 2008-03-19 Jason Rumney <jasonr@gnu.org>
14255
14256 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
14257 (syms_of_w32fns): Initialize them.
14258 (HOURGLASS_ID): New constant.
14259 (x_window_to_frame): Don't check hourglass_window.
14260 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
14261 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
14262 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
14263 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
14264 Only change the cursor if hourglass is not active.
14265 (Fx_create_frame): Initialize frame's current_cursor.
14266 (hourglass_atimer): Remove.
14267 (hourglass_started): New function.
14268 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
14269 (show_hourglass): Adapt to w32, changing argument to frame.
14270
14271 * w32term.h (struct w32_output): Remove hourglass_window.
14272 Add current_cursor.
14273
14274 * eval.c (call_debugger, Fsignal):
14275 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
14276 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
14277 (Fexecute_extended_command, cancel_hourglass_unwind):
14278 * minibuf.c (read_minibuf):
14279 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
14280
14281 2008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
14282
14283 * window.c (run_funs): New fun.
14284 (run_window_configuration_change_hook): Use it to run the buffer-local
14285 and the global part of the hook.
14286
14287 * xdisp.c (format_mode_line_unwind_data): Add window argument.
14288 (unwind_format_mode_line): Restore selected window.
14289 (x_consider_frame_title, Fformat_mode_line): Set selected window.
14290
14291 2008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
14292
14293 * editfns.c (Fchar_equal): Check they are valid characters.
14294
14295 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
14296
14297 2008-03-17 Andreas Schwab <schwab@suse.de>
14298
14299 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
14300 against a charset.
14301
14302 * lisp.h (Fbuffer_list): Declare.
14303
14304 2008-03-17 Jan Djärv <jan.h.d@swipnet.se>
14305
14306 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
14307 handlebox_widget is != 0.
14308
14309 2008-03-16 Juri Linkov <juri@jurta.org>
14310
14311 * callint.c (Fcall_interactively): For interactive code letters
14312 'b' and 'B' put the buffer list into the list of default "future"
14313 values of the minibuffer.
14314
14315 2008-03-16 Andreas Schwab <schwab@suse.de>
14316
14317 * keyboard.c (read_key_sequence): Fix downcasing of letters with
14318 modifiers.
14319
14320 * regex.c (re_match_2_internal): Correct matching of a charset
14321 against latin-1 characters.
14322
14323 2008-03-16 Kenichi Handa <handa@m17n.org>
14324
14325 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
14326 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
14327 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
14328 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
14329 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
14330 CHAR_STRING_ADVANCE.
14331 (produce_chars): Fix for the case that the source and the
14332 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
14333 instead of CHAR_STRING_ADVANCE.
14334 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
14335 STRING_CHAR_ADVANCE.
14336
14337 2008-03-15 Andreas Schwab <schwab@suse.de>
14338
14339 * regex.c (re_match_2_internal): Correct matching of eight bit
14340 characters in unibyte strings.
14341
14342 2008-03-15 Martin Rudalics <rudalics@gmx.at>
14343
14344 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
14345 at end of range when it coincides with the end of the buffer.
14346
14347 2008-03-14 Eli Zaretskii <eliz@gnu.org>
14348
14349 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
14350
14351 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
14352
14353 2008-03-14 Jason Rumney <jasonr@gnu.org>
14354
14355 * editfns.c (initial_tz): New variable.
14356 (syms_of_editfns): Initialize it.
14357 (Fset_time_zone_rule): Set it when first called.
14358 Use it when TZSTRING is nil.
14359
14360 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
14361 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
14362 (monitor_from_point_fn, get_monitor_info_fn): New globals.
14363 (globals_of_w32fns): Initialize them.
14364 (compute_tip_xy): Use them to position tooltips.
14365
14366 2008-03-14 Glenn Morris <rgm@gnu.org>
14367
14368 * emacs.c (main): Revert previous change.
14369 (standard_args): Revert -internal-script back to -scriptload,
14370 and remove the long-option form.
14371
14372 2008-03-13 Glenn Morris <rgm@gnu.org>
14373
14374 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
14375 Remove option -enable-font-backend.
14376
14377 2008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
14378
14379 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
14380
14381 2008-03-11 Jan Djärv <jan.h.d@swipnet.se>
14382
14383 * xterm.c (x_connection_closed): For GTK: If this is the last
14384 terminal just exit without closing the display.
14385
14386 2008-03-11 Jason Rumney <jasonr@gnu.org>
14387
14388 * w32font.c (w32font_full_name): Use floor to round.
14389
14390 2008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
14391
14392 * sound.c (alsa_configure): Declare vol at beginning of block.
14393
14394 * fontset.c (Ffontset_info): Remove extra semicolon.
14395
14396 2008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
14397
14398 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
14399 size of resulting string.
14400
14401 2008-03-10 Jason Rumney <jasonr@gnu.org>
14402
14403 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
14404
14405 2008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14406
14407 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
14408 Don't pretend as if characters with display property haven't been
14409 consumed for string-replacing-string case.
14410
14411 2008-03-08 Kim F. Storm <storm@cua.dk>
14412
14413 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
14414 (get_next_display_element, next_element_from_string)
14415 (next_element_from_ellipsis, next_element_from_buffer): Use it.
14416
14417 2008-03-08 Andreas Schwab <schwab@suse.de>
14418
14419 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
14420
14421 2008-03-06 Jason Rumney <jasonr@gnu.org>
14422
14423 * w32font.c (w32_registry): Take font_type argument. Use ANSI
14424 when charset not specified. Only translate ANSI to unicode when
14425 font_type is truetype.
14426 (w32font_coverage_ok): New function.
14427 (add_font_entity_to_list): Use it to filter unsuitable fonts.
14428
14429 2008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
14430
14431 * lread.c (Fread_char): Resolve modifiers.
14432 (Fread_char_exclusive): Likewise.
14433
14434 * character.c (char_resolve_modifier_mask): New function.
14435 (char_string): Use char_resolve_modifier_mask.
14436 (Fchar_resolve_modifiers): New function.
14437 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
14438 function.
14439
14440 2008-03-04 Jason Rumney <jasonr@gnu.org>
14441
14442 * makefile.w32-in: Always include w32font.c in the build.
14443 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
14444
14445 2008-03-04 Andreas Schwab <schwab@suse.de>
14446
14447 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
14448 (versionclean): Likewise.
14449
14450 2008-03-04 Juanma Barranquero <lekktu@gmail.com>
14451
14452 * .cvsignore: Add oo.
14453
14454 2008-03-03 Andreas Schwab <schwab@suse.de>
14455
14456 * coding.c (decode_coding_object): Inhibit gap shrinking while
14457 decoding in place.
14458
14459 2008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
14460
14461 * w32term.c: Remove unused include "gnu.h".
14462 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
14463
14464 * gnu.h: Rename to ...
14465 * emacs-icon.h: ... this.
14466 * xterm.c: Use emacs-icon.h instead of gnu.h.
14467 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
14468
14469 2008-03-03 Juanma Barranquero <lekktu@gmail.com>
14470
14471 * w32font.c: Include math.h.
14472
14473 2008-03-03 Jason Rumney <jasonr@gnu.org>
14474
14475 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
14476 Compute options separately.
14477 (w32font_open_internal): Set glyph_idx before caching metrics.
14478
14479 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
14480 Define if system headers don't.
14481 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
14482 (w32font_encode_char): Don't declare here.
14483
14484 * w32font.c (Quniscribe, QCformat): New symbols.
14485 (syms_of_w32font): Define them.
14486 (w32font_has_char): Indicate uncertainty.
14487 (w32font_encode_char): Encode as glyph point. Make static.
14488 (recompute_cached_metrics): New function.
14489 (w32font_open_internal): Use it. Set font to use glyph points
14490 initially. Set format based on type of font.
14491 (w32font_text_extents, w32font_draw): Optionally use glyph points.
14492 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
14493 on it. Set format based on information available here.
14494 (add_font_entity_to_list): Identify backend based on opentype_only.
14495
14496 2008-03-02 Andreas Schwab <schwab@suse.de>
14497
14498 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
14499
14500 * coding.c (decode_coding_big5, produce_chars):
14501 Fix typos in last change.
14502
14503 2008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
14504
14505 * gnu.h: New icon.
14506
14507 2008-03-02 Kenichi Handa <handa@m17n.org>
14508
14509 * coding.c (decode_coding_utf_8): When eol-type of CODING is
14510 `dos', don't decode '\r' if that is the last in the source.
14511 (decode_coding_utf_16, decode_coding_emacs_mule)
14512 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
14513 (decode_coding_raw_text, decode_coding_charset): Likewise.
14514 (produce_chars): Don't decode EOL here. Use EMACS_INT.
14515
14516 2008-03-01 Jason Rumney <jasonr@gnu.org>
14517
14518 * w32font.c (w32font_full_name): Report point size for scalable fonts.
14519
14520 2008-03-01 Kim F. Storm <storm@cua.dk>
14521
14522 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
14523
14524 2008-03-01 Jason Rumney <jasonr@gnu.org>
14525
14526 * w32font.c (w32font_full_name): New function.
14527 (w32font_open_internal): Use it.
14528
14529 2008-03-01 Kim F. Storm <storm@cua.dk>
14530
14531 * dispnew.c (line_draw_cost): Fix invalid glyph check.
14532
14533 2008-03-01 Jason Rumney <jasonr@gnu.org>
14534
14535 * font.c (font_unparse_fcname): Increase len when style is a symbol.
14536
14537 2008-03-01 Jan Djärv <jan.h.d@swipnet.se>
14538
14539 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
14540 xg_frame_resized when the event is for the edit widget.
14541
14542 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
14543
14544 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
14545 set_char_size.
14546 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
14547 operations on widgets here. Just set frame size if needed.
14548 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
14549 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
14550 (x_wm_set_size_hint): Set size hints on the edit widget only, not
14551 the whole frame.
14552 (xg_create_tool_bar): Move attachment of the tool bar to
14553 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
14554 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
14555
14556 2008-03-01 Jason Rumney <jasonr@gnu.org>
14557
14558 * w32fns.c (w32_msg_pump): Disable debug code.
14559
14560 2008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14561
14562 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
14563
14564 2008-02-29 Chong Yidong <cyd@stupidchicken.com>
14565
14566 * xdisp.c (next_overlay_string): Don't set
14567 overlay_strings_at_end_processed_p if we're currently reading from
14568 a display string.
14569
14570 2008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
14571
14572 * xdisp.c (get_overlay_strings_1): Fix typo.
14573
14574 2008-02-29 Chong Yidong <cyd@stupidchicken.com>
14575
14576 * xdisp.c (get_overlay_strings_1): Add missing argument type.
14577
14578 2008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
14579
14580 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
14581
14582 * xdisp.c (display_mode_element): Cancel the previous change.
14583 (decode_mode_spec): Likewise.
14584 (handle_auto_composed_prop): Don't make composition if it->string
14585 is a string.
14586
14587 2008-02-27 Kim F. Storm <storm@cua.dk>
14588
14589 * lisp.h (GLYPH): Change type from int to struct with separate char
14590 and face_id members.
14591 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
14592 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
14593 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
14594 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
14595 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
14596 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
14597 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
14598 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
14599 handle new Lisp glyph code encoding, either an integer or a cons.
14600
14601 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
14602 (GLYPH_ALIAS): Delete.
14603 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
14604 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
14605 (GLYPH_FROM_CHAR): Replace macro by ...
14606 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
14607
14608 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
14609 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
14610 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
14611 (GLYPH_INVALID_P): New macro.
14612 (spec_glyph_lookup_face): Update prototype.
14613
14614 * dispnew.c (line_draw_cost): Adapt to new glyph type.
14615 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
14616 new glyph code encoding.
14617 (spec_glyph_lookup_face): No return value; update passed glyph instead.
14618 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
14619
14620 * xdisp.c (get_next_display_element, next_element_from_display_vector):
14621 Adapt to new glyph type and new glyph code encoding.
14622
14623 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
14624
14625 * indent.c (current_column, current_column_1, Fmove_to_column)
14626 (compute_motion): Adapt to new glyph code encoding.
14627
14628 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
14629
14630 2008-02-27 Chong Yidong <cyd@stupidchicken.com>
14631
14632 * process.c (wait_reading_process_output): Check for window
14633 changes caused by timers.
14634 Suggested by Johan Bockgård.
14635
14636 2008-02-27 Glenn Morris <rgm@gnu.org>
14637
14638 * emacs.c (USAGE1): Add `--disable-font-backend'.
14639
14640 2008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
14641
14642 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
14643 is made to the buffer.
14644
14645 2008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
14646
14647 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
14648 (face_at_string_position):
14649 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
14650 (face_at_string_position):
14651 * xdisp.c (display_string, next_overlay_change):
14652 * buffer.h (overlays_at):
14653 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
14654 Update callers.
14655
14656 2008-02-26 Chong Yidong <cyd@stupidchicken.com>
14657
14658 * editfns.c (Fformat): Doc fix.
14659
14660 2008-02-26 Juanma Barranquero <lekktu@gmail.com>
14661
14662 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
14663 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
14664 (Ffont_otf_alternates, Fquery_font): Doc fixes.
14665
14666 2008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
14667
14668 * buffer.c (Fbuffer_swap_text): New function.
14669 (syms_of_buffer): Defsubr it.
14670
14671 2008-02-25 Chong Yidong <cyd@stupidchicken.com>
14672
14673 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
14674
14675 2008-02-25 Jason Rumney <jasonr@gnu.org>
14676
14677 * w32font.c (w32font_draw): Draw one character at a time when padding.
14678
14679 2008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
14680
14681 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
14682 Handle a nil arg. Use run_window_configuration_change_hook.
14683 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
14684 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
14685 Use run_window_configuration_change_hook.
14686
14687 2008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
14688
14689 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
14690 1-pixel width.
14691
14692 2008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
14693
14694 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
14695 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
14696 if the glyph in the font is zero pixel with.
14697
14698 * dispextern.h (struct glyph_string): New member padding_p.
14699
14700 * w32font.c (w32font_draw): Pay attention to s->padding_p.
14701
14702 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
14703
14704 * xfont.c (xfont_draw): Pay attention to s->padding_p.
14705
14706 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
14707
14708 * font.c: If the font driver doesn't have `shape' function, return Qnil.
14709
14710 2008-02-25 Jason Rumney <jasonr@gnu.org>
14711
14712 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
14713
14714 2008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
14715
14716 Allow fine-grained image-cache flushing.
14717 * dispextern.h (struct image): Add `dependencies' field.
14718 (clear_image_caches): Change arg to Lisp_Object.
14719 * image.c (make_image): Initialize `dependencies' field.
14720 (clear_image_cache): Change arg to allow fine-grained flushing.
14721 Perform the flush even if image-cache-eviction-delay is nil.
14722 (clear_image_caches): Change arg to Lisp_Object.
14723 (Fclear_image_cache): Expand meaning of the argument.
14724 (mark_image): Mark `dependencies' field.
14725 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
14726 (lface_hash): Use XHASH rather than XFASTINT.
14727 (face_at_buffer_position): Fix int -> EMACS_INT position.
14728 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
14729 (select_frame_for_redisplay): Remove code duplication.
14730 (redisplay_internal): Adapt arg to call to clear_image_caches.
14731
14732 2008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
14733
14734 * s/vms4-0.h:
14735 * s/vms4-2.h:
14736 * s/vms4-4.h:
14737 * s/vms5-5.h: Remove, unused.
14738
14739 * s/irix5-2.h:
14740 * s/irix6-0.h:
14741 * s/riscos5.h:
14742 * s/mach-bsd4-3.h:
14743 * m/mips4.h: Remove files for obsolete systems.
14744
14745 * Makefile.in:
14746 * filelock.c:
14747 * unexmips.c:
14748 * m/hp9000s300.h:
14749 * m/iris4d.h:
14750 * s/aix3-1.h:
14751 * s/hpux.h:
14752 * s/msdos.h:
14753 * s/usg5-0.h:
14754 * s/usg5-2-2.h:
14755 * s/usg5-2.h:
14756 * s/usg5-3.h: Remove references to obsolete variables.
14757
14758 * s/irix5-0.h: Remove, move all the contents ...
14759 * s/irix6-5.h: ... here. Simplify.
14760 * config.in: Regenerate.
14761
14762 2008-02-24 Jason Rumney <jasonr@gnu.org>
14763
14764 * w32term.c (x_draw_glyph_string_background): Clear the background
14765 manually when cleartype is in use.
14766 (x_draw_glyph_string_foreground): Draw text transparently when
14767 cleartype is in use.
14768
14769 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
14770 a font into it unless we have to.
14771
14772 2008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
14773
14774 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
14775 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
14776
14777 2008-02-18 Jason Rumney <jasonr@gnu.org>
14778
14779 * w32fns.c (Fw32_shell_execute): Encode parameters.
14780
14781 2008-02-09 Eli Zaretskii <eliz@gnu.org>
14782
14783 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
14784
14785 2008-02-05 Juanma Barranquero <lekktu@gmail.com>
14786
14787 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
14788
14789 2008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
14790
14791 * xterm.c (x_set_offset): Don't change the gravity if
14792 CHANGE_GRAVITY is -1.
14793
14794 2008-02-23 Chong Yidong <cyd@stupidchicken.com>
14795
14796 * fileio.c (auto_save_error_occurred): New var.
14797 (auto_save_error): Set it.
14798 (Fdo_auto_save): Don't overwrite the error message if an auto-save
14799 error occurred.
14800
14801 2008-02-23 Eli Zaretskii <eliz@gnu.org>
14802
14803 * w32.c (globals_of_w32): Add initializations for
14804 g_b_init_get_sid_sub_authority and
14805 g_b_init_get_sid_sub_authority_count.
14806
14807 2008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
14808
14809 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
14810 (font_parse_xlfd): Use them for sanity check.
14811 (Finternal_set_font_style_table): Make sure the table is bijective.
14812
14813 Consolidate the image_cache to the terminal struct.
14814 * termhooks.h (P_): Remove redundant def.
14815 (struct terminal): New field `image_cache'.
14816 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
14817 of FRAME_X_IMAGE_CACHE.
14818 * xterm.h (struct x_display_info): Remove image_cache field.
14819 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
14820 * w32term.h (struct w32_display_info): Remove image_cache field.
14821 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
14822 * macterm.h (struct mac_display_info): Remove image_cache field.
14823 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
14824 * xterm.c (x_term_init):
14825 * w32term.c (w32_term_init):
14826 * macterm.c (mac_term_init): Set the image_cache in the terminal.
14827 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
14828 Remove declarations.
14829 (clear_image_caches, mark_image_cache): New declarations.
14830 * xfaces.c (clear_face_cache):
14831 * xdisp.c (redisplay_internal): Use clear_image_caches.
14832 * image.c (clear_image_cache): Don't check that a frame is on
14833 a window-system before checking if it shares the same cache.
14834 (clear_image_caches): New function.
14835 (Fclear_image_cache): Use it.
14836 (mark_image): Move from allo.c.
14837 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
14838 * alloc.c (mark_image, mark_image_cache): Move to image.c.
14839 (mark_object): Don't call mark_image_cache for frames.
14840 (mark_terminals): Call mark_image_cache.
14841
14842 * lisp.h (Fdelete_terminal): Declare.
14843
14844 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
14845 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
14846 wrong_type_argument.
14847
14848 2008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
14849
14850 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
14851 malayalam.el, and tamil.el. Add sinhala.el.
14852
14853 2008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
14854
14855 * xterm.c (x_connection_closed): Consolidate identical tests.
14856 (x_delete_terminal): Don't crash if called via x_connection_closed.
14857
14858 2008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
14859
14860 * xdisp.c (decode_mode_spec): New arg string.
14861 (display_mode_element): Adjust for the above change.
14862
14863 2008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
14864
14865 * callint.c (Fcall_interactively): Use AREF.
14866
14867 2008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
14868
14869 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
14870
14871 2008-02-18 Jan Djärv <jan.h.d@swipnet.se>
14872
14873 * xfns.c (Fx_show_tip): Set string to " " if empty.
14874
14875 2008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
14876
14877 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
14878 with Qt.
14879
14880 2008-02-17 Kenichi Handa <handa@m17n.org>
14881
14882 * ftfont.c (ftfont_shape): Return Lispy number.
14883
14884 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
14885 for GCs.
14886 (Finternal_set_font_selection_order): Call font_update_sort_order
14887 only when enable_font_backend is set.
14888 (realize_x_face): Set face->font_info to that of default face only
14889 when enable_font_backend is set.
14890
14891 * xdisp.c (handle_composition_prop): Set it->c to the fist
14892 character of the composed region.
14893 (fill_composite_glyph_string): Set base_face->font_info to
14894 s->font_info. Get a face for ascii from base_face->ascii_face.
14895 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
14896 with a face already decided.
14897 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
14898 non-negative.
14899 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
14900 call font_prepare_composition unconditionally.
14901
14902 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
14903
14904 * xterm.h (struct x_display_info): New member font.
14905
14906 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
14907 (x_set_mouse_face_gc, x_new_font): Likewise.
14908 (x_term_init): Setup display_info->font.
14909 (x_delete_terminal): Free display_info->font.
14910
14911 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
14912
14913 * ftxfont.c (ftxfont_default_fid): Delete it.
14914 (ftxfont_open): Set xfont->fid to 0.
14915 (ftxfont_end_for_frame): Clear data specific to the frame and the
14916 font-driver.
14917
14918 * xftfont.c (xftfont_default_fid): Delete it.
14919 (xftfont_open): Set xfont->fid to 0.
14920
14921 * fontset.c (FONTSET_OBJLIST): New macro.
14922 (fontset_find_font): Update font-object list of the fontset.
14923 (free_realized_fontset): New function.
14924 (free_face_fontset): Call free_realized_fontset.
14925 (Ffont_info): Call font_close_object only when enable_font_backend
14926 is set.
14927
14928 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
14929 [HAVE_NTGUI]: Include w32term.h.
14930 [MAC_OS]: Include macterm.ch.
14931 (font_otf_ValueRecord): Use make_number.
14932 (font_finish_cache): Fix handling of reference count.
14933 (font_clear_cache): Update num_fonts.
14934 (font_open_entity): Update smallest_char_width and
14935 smallest_font_height of the frame.
14936 (font_close_object): Update num_fonts.
14937 (Fclear_font_cache): Fix finding the target cache data.
14938
14939 2008-02-16 Glenn Morris <rgm@gnu.org>
14940
14941 * fontset.c (Finternal_char_font): Fix compilation warning.
14942
14943 2008-02-16 Eli Zaretskii <eliz@gnu.org>
14944
14945 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
14946 instead of char arrays. Enlarge the size of array passed to
14947 get_token_information.
14948
14949 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
14950 warnings.
14951
14952 2008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
14953
14954 * .gdbinit: Don't set `args', it breaks gdb --args.
14955
14956 2008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
14957
14958 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
14959 within a narrowed buffer.
14960
14961 2008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
14962
14963 * coding.c (decode_coding_object, encode_coding_object):
14964 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
14965
14966 2008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
14967
14968 * coding.c (coding_set_destination): Use BEG_BYTE rather than
14969 hardcoding 1.
14970 (detect_coding_system):
14971 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
14972 (string_char_to_byte, string_byte_to_char, insert_from_gap):
14973 * insdel.c (insert_from_gap):
14974 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
14975 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
14976 (string_to_multibyte):
14977 * character.c (chars_in_text, multibyte_chars_in_text):
14978 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
14979
14980 * character.h (FETCH_STRING_CHAR_ADVANCE)
14981 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
14982 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
14983 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
14984
14985 * casefiddle.c (casify_region): Only call after-change and composition
14986 functions on the part of the region that was changed.
14987
14988 * keyboard.c (read_avail_input):
14989 * frame.c (Fdelete_frame): Call Fdelete_terminal.
14990
14991 2008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
14992
14993 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
14994 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
14995
14996 2008-02-11 Juanma Barranquero <lekktu@gmail.com>
14997
14998 * w32menu.c (push_submenu_start, push_submenu_end)
14999 (push_left_right_boundary, push_menu_pane, push_menu_item):
15000 * keyboard.c (read_key_sequence): Don't pass args with side effects
15001 to AREF, it fails when compiling with -DENABLE_CHECKING.
15002
15003 2008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
15004
15005 * Makefile.in (${lispsource}international/charprop.el):
15006 Delete this target.
15007
15008 * search.c (boyer_moore): Fix incorrect synching of the trunk and
15009 emacs-unicode-2.
15010
15011 2008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
15012
15013 * terminal.c (Fdelete_terminal): Clean up the `force' path.
15014
15015 2008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
15016
15017 * frame.c (Qnoelisp): New symbol.
15018 (syms_of_frame): Initialize it.
15019 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
15020 harmless Elisp code, from a strong `force' from x_connection_closed.
15021 * frame.h (Qnoelisp): Declare.
15022 * xterm.c (x_connection_closed): Pass `noelisp'.
15023
15024 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
15025 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
15026 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
15027 rather than `int' for the type of `type'.
15028
15029 2008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
15030
15031 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
15032
15033 * Makefile.in (GNUC): Remove support for gcc-1.x.
15034
15035 2008-02-10 Richard Stallman <rms@gnu.org>
15036
15037 * lisp.h (ASET): Use AREF, not ASLOT.
15038
15039 2008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
15040
15041 * lisp.h (ASET): Check bounds.
15042
15043 2008-02-10 Glenn Morris <rgm@gnu.org>
15044
15045 * buffer.c (mode-name): Doc fix.
15046
15047 2008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
15048
15049 * Makefile.in:
15050 * emacs.c:
15051 * gmalloc.c:
15052 * keyboard.c:
15053 * lisp.h:
15054 * m/ibm370aix.h:
15055 * process.c:
15056 * regex.c:
15057 * s/hpux.h:
15058 * sysdep.c:
15059 * sysselect.h:
15060 * systty.h:
15061 * unexec.c:
15062 * w32term.c:
15063 * xsmfns.c:
15064 * xterm.c: Remove code that deals with obsolete variables.
15065
15066 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
15067
15068 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
15069 nothing else needs it anymore.
15070
15071 2008-02-09 Eli Zaretskii <eliz@gnu.org>
15072
15073 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
15074 instead of unibyte_char_to_multibyte.
15075
15076 2008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
15077
15078 * s/gnu-linux.h: Remove commented out code.
15079
15080 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
15081
15082 * Makefile.in: Update what RMS says about using autoconf.
15083 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
15084 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
15085 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
15086 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
15087
15088 2008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
15089
15090 * keymap.c (Fkey_description): Move side effect outside of macro call.
15091
15092 * xfaces.c (Finternal_make_lisp_face):
15093 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
15094
15095 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
15096 (syms_of_fontset): Use ASET.
15097
15098 * fns.c (concat): Move side effect outside of macro call.
15099 (hash_clear): Use ASET.
15100
15101 2008-02-08 Richard Stallman <rms@gnu.org>
15102
15103 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
15104 If FORCE, and frame has a surrogate minibuffer for another frame,
15105 delete the other frame first.
15106
15107 2008-02-07 Timo Savola <timo.savola@iki.fi>
15108
15109 * xterm.c (x_detect_focus_change): Handle embed client message.
15110 (handle_one_xevent): Ditto.
15111 (handle_one_xevent): If embedded and we get a button press/release,
15112 request focus.
15113 (xembed_set_info, xembed_send_message): New functions.
15114 (x_make_frame_visible): Call xembed_set_info if embedded.
15115 (x_make_frame_invisible): Call xembed_set_info if embedded.
15116 (x_term_init): Initialize Xatom_XEMBED.
15117 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
15118 (x_iconify_frame): Ditto.
15119
15120 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
15121 (enum xembed_info, enum xembed_message, enum xembed_focus)
15122 (enum xembed_modifier, enum xembed_accelerator): New.
15123 (xembed_set_info, xembed_send_message): Declare.
15124 (FRAME_X_EMBEDDED_P): New.
15125
15126 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
15127 gtk_plug_new.
15128
15129 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
15130 window ID of a frame.
15131 (x_window): Reparent frame if embedded.
15132 (Fx_create_frame): Don't set border width if embedded.
15133
15134 * emacs.c (USAGE3): Add --parent-id.
15135 (standard_args): Ditto.
15136
15137 2008-02-07 Jan Djärv <jan.h.d@swipnet.se>
15138
15139 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
15140
15141 2008-02-07 Jim Meyering <meyering@redhat.com>
15142
15143 Use "do...while (0)", not "if (1)...else" in macro definitions.
15144 The latter provokes a warning from gcc about the empty else, when
15145 followed by ";". Also, without that trailing semicolon, it would
15146 silently swallow up any following statement.
15147 * syntax.h (SETUP_SYNTAX_TABLE)
15148 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
15149 * buffer.h (DECODE_POSITION): Likewise.
15150 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
15151 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
15152 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
15153 (FETCH_CHAR_ADVANCE): Likewise.
15154 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
15155
15156 2008-02-07 Jim Meyering <meyering@redhat.com>
15157
15158 * lread.c [lint]: Don't include <sys/inode.h>.
15159
15160 2008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
15161
15162 * xselect.c (x_handle_dnd_message):
15163 * xmenu.c (digest_single_submenu, xmenu_show):
15164 * xdisp.c (with_echo_area_buffer_unwind_data)
15165 (format_mode_line_unwind_data, unwind_format_mode_line)
15166 (display_menu_bar):
15167 * eval.c (Ffetch_bytecode):
15168 * doc.c (store_function_docstring):
15169 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
15170 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
15171 * buffer.c (add_overlay_mod_hooklist): Use ASET.
15172
15173 2008-02-07 Kenichi Handa <handa@m17n.org>
15174
15175 * ftxfont.c (ftxfont_open): Don't set
15176 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
15177
15178 * ftfont.c (ftfont_open): Fix previous change.
15179
15180 2008-02-06 Jason Rumney <jasonr@gnu.org>
15181
15182 * w32font.c (w32font_text_extents): Fill in lbearing metric.
15183 Use cached metrics for ASCII characters.
15184 (w32font_open_internal): Don't set font's owning_frame.
15185 Cache metrics for ASCII characters.
15186
15187 * w32font.h (struct w32font_info): Add ascii_metrics.
15188 Remove owning_frame.
15189
15190 2008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
15191
15192 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
15193 to negative value.
15194
15195 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
15196
15197 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
15198
15199 * charset.c (syms_of_charset): Set QCtest and Qeq.
15200
15201 2008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
15202
15203 * process.c (Fstart_process):
15204 * callproc.c (Fcall_process): Handle the case where
15205 Funhandled_file_name_directory returns nil.
15206
15207 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
15208 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
15209 * font.c (check_gstring): Use them and AREF to access the vector before
15210 we know it's really a gstring.
15211 (Ffont_shape_text): Fix typo.
15212 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
15213
15214 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
15215 Declare.
15216
15217 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
15218
15219 2008-02-05 Jason Rumney <jasonr@gnu.org>
15220
15221 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
15222 Set smallest_font_height and smallest_char_width in display info.
15223
15224 2008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
15225
15226 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
15227
15228 2008-02-05 Miles Bader <miles@gnu.org>
15229
15230 * xfaces.c (get_lface_attributes, merge_named_face)
15231 (lookup_named_face, lookup_derived_face, realize_named_face):
15232 Revert 2008-02-01 change by cyd@stupidchicken.com.
15233
15234 2008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
15235
15236 * fontset.c (Ffontset_info): Handle the case of inhibitting the
15237 fallback fonts.
15238 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
15239
15240 2008-02-04 Jason Rumney <jasonr@gnu.org>
15241
15242 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
15243 set full_name.
15244 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
15245
15246 2008-02-03 Jason Rumney <jasonr@gnu.org>
15247
15248 * makefile.w32-in (OBJ1): Include font.o here.
15249 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
15250
15251 2008-02-02 Jason Rumney <jasonr@gnu.org>
15252
15253 * makefile.w32-in (temacs): Bump EMHEAP to 21.
15254
15255 2008-02-01 Jason Rumney <jasonr@gnu.org>
15256
15257 * s/cygwin.h: Define VIRT_ADDR_VARIES.
15258
15259 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
15260
15261 2008-02-01 Andreas Schwab <schwab@suse.de>
15262
15263 * Makefile.in (shortlisp, lisp): Update for rename of
15264 ../lisp/language/myanmar.el.
15265
15266 2008-02-01 Chong Yidong <cyd@stupidchicken.com>
15267
15268 * xfaces.c (get_lface_attributes): Delete function.
15269 (merge_named_face, lookup_named_face, lookup_derived_face)
15270 (realize_named_face): Call lface_from_face_name directly, and use
15271 the fact that merge_face_vectors does not alter its FROM argument.
15272
15273 2008-02-01 Jason Rumney <jasonr@gnu.org>
15274
15275 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
15276 input in the default locale. Handle non-Unicode multibyte input.
15277
15278 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15279
15280 * fontset.c (reorder_font_vector): Exclude nil elements from the
15281 font group. Don't try multiple fonts.
15282 (fontset_font): Adjust for the above change.
15283 (Finternal_char_font): Return nil if the found font doesn't
15284 contain the character ch.
15285
15286 * Makefile.in (lisp, shortlisp): Add cham.el.
15287
15288 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15289
15290 * font.h (FONTP): Make it return 1 also for a font-object.
15291
15292 * .gdbinit (xfontset): New function.
15293
15294 * font.c (font_find_for_lface): Check if the character C is
15295 supported or not only for the first font.
15296
15297 * fontset.c (reorder_font_vector): Fix typo.
15298 (fontset_find_font): Don't add a font-spec specifying a script.
15299 Use 0 (not Qt) for the indication of empty font-group. Change the
15300 format of RFONT-DEF. Return Qt if no font in the font-group
15301 support the character.
15302 (fontset_font): Adjust for the above change. If no font was
15303 found the character, remember that.
15304 (face_for_char): Adjust for the change of RFONT-DEF.
15305 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
15306 no font for the target.
15307 (Finternal_char_font): Adjust for the change of RFONT-DEF.
15308
15309 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15310
15311 * font.c (font_load_for_face): Handle the case that the font in
15312 face->lface is a string.
15313
15314 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15315
15316 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
15317
15318 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15319
15320 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
15321 Fix previous change. If the frame is not on a window system,
15322 signal an error.
15323
15324 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15325
15326 * coding.c (decode_coding_object, encode_coding_object): Adjust
15327 marker positions after conversion.
15328
15329 * lisp.h (struct Lisp_Marker): New member need_adjustment.
15330
15331 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15332
15333 * font.c (font_find_for_lface): Fix the handling of the return
15334 value of font_has_char.
15335 (Ffont_shape_text): Fix previous change.
15336
15337 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
15338 (fontset_ref_and_range): Delete it.
15339 (fontset_find_font): Call char_table_ref_and_range instead of
15340 FONTSET_REF_AND_RANGE.
15341 (make_fontset): Don't setup font groups of Latin here.
15342 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
15343 (new_fontset_from_font): Make the specified font the default for
15344 all Latin characters.
15345
15346 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15347
15348 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
15349 is on a window system before accessing the fontset of the frame.
15350
15351 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15352
15353 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
15354
15355 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
15356 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
15357
15358 * font.c (Ffont_shape_text): If the font driver doesn't have a
15359 shaper function, make zero-width glyphs to have at least one-pixel
15360 width. Fix setting of `to' field of glyphs.
15361
15362 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15363
15364 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
15365 glyphs.
15366
15367 * font.h (struct font_driver): Improve docstring of member `shape'.
15368
15369 2008-02-01 Kenichi Handa <handa@m17n.org>
15370
15371 * composite.c (syms_of_composite): Fix docstring of
15372 auto-composition-function.
15373
15374 * font.h (LGLYPH_SIZE): New macro.
15375
15376 * font.c (Ffont_fill_gstring): Stop filling when a character not
15377 supported by the font is found.
15378 (Ffont_shape_text): When a shape callback function returns nil,
15379 try at most two more times with larger gstring.
15380 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
15381
15382 * xdisp.c (handle_auto_composed_prop): Change the argument to
15383 auto-composition-function.
15384
15385 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
15386 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
15387 Lispy glyph and store it in the lgstring.
15388
15389 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
15390
15391 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
15392
15393 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15394
15395 * font.c (Ffont_shape_text): Avoid unnecessary composition.
15396
15397 * fontset.c (Vfont_encoding_charset_alist): New variable.
15398 (syms_of_fontset): DEFVAR it.
15399 (reorder_font_vector, fontset_find_font): Optimize for the case of
15400 no need of reordering.
15401 (face_for_char): Map the charset property by
15402 Vfont_encoding_charset_alist.
15403
15404 2008-02-01 Jason Rumney <jasonr@gnu.org>
15405
15406 * w32font.c (logfonts_match): Don't check adstyle here.
15407 (font_matches_spec): Check here against physical font instead.
15408 (add_font_entity_to_list): Avoid some substitutions.
15409
15410 * font.c (font_parse_fcname): Default weight and slant to normal.
15411 (font_score): Prefer normal fonts if weight or slant unspecified.
15412 (font_score) [WINDOWSNT]: Scale weight difference down to closer
15413 match freetype scores.
15414
15415 2008-02-01 Jason Rumney <jasonr@gnu.org>
15416
15417 * w32font.c (w32font_text_extents): Don't use the frame stored in the
15418 font, as it may have been deleted.
15419 (w32_enumfont_pattern_entity): Map generic family to adstyle using
15420 most common hyphenless variation.
15421 (logfonts_match): Check generic family.
15422 (font_matches_spec): Don't check generic family here.
15423 (fill_in_logfont): Set generic family based on adstyle.
15424
15425 * w32font.h (w32font_get_cache): Update declaration.
15426
15427 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15428
15429 * ftfont.c (ftfont_get_cache): Adjust the argument type.
15430
15431 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
15432 If none of the new drivers are available, call font_update_drivers
15433 with the old drivers.
15434
15435 * w32font.c (w32font_get_cache): Adjust the argument type.
15436
15437 * xfont.c (xfont_get_cache): Adjust the argument type.
15438
15439 * font.h (struct font_driver): Change argument type of get_cache.
15440
15441 * xftfont.c (xftfont_start_for_frame): Delete prototype.
15442
15443 * font.c (Ffont_get): Fix arguments to Fassoc.
15444 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
15445 (font_clear_cache): New function.
15446 (font_list_entities, font_matching_entity): Use font_get_cache.
15447 (font_update_drivers): Call font_clear_cache when finishing a driver.
15448
15449 * fontset.c (fontset_find_font): Fix previous change.
15450
15451 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15452
15453 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
15454 dpyinfo->font_table.
15455 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
15456 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
15457
15458 * font.c (font_at): Handle the case that the arg C is negative.
15459 Handle the unibyte case.
15460 (Ffont_at): Call font_at with the arg C -1.
15461
15462 * xdisp.c (handle_auto_composed_prop): Don't get a character at
15463 the position here, and call font_at with the arg C -1.
15464 Don't check the range of the existing composition at the point.
15465
15466 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15467
15468 * fontset.c (fontset_add): New args charset_id and family.
15469 Change caller.
15470 (load_font_get_repertory, fontset_find_font): Assume that
15471 font_spec is always a font-spec object.
15472 (Fset_fontset_font): Always store a font-spec object in a fontset.
15473
15474 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
15475 instead of get_property_and_range.
15476
15477 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15478
15479 * xftfont.c (struct xftfont_info): Delete the member ft_face.
15480 (xftfont_open): Don't keep locking face.
15481 (xftfont_close): Don't unlock face.
15482 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
15483
15484 * fontset.c (fontset_find_font): Don't prefer a font of
15485 supplementary charset.
15486
15487 2008-02-01 Kenichi Handa <handa@m17n.org>
15488
15489 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
15490 script, langsys_tag to langsys, new member script.
15491 (OTF_TAG_STR): Terminate by '\0'.
15492 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
15493 listing to the script specified in that property. Fix arg to
15494 OTF_check_features.
15495
15496 2008-02-01 Jason Rumney <jasonr@gnu.org>
15497
15498 * w32font.h: New file.
15499
15500 * w32font.c: Include it.
15501 (struct w32font_info): Add owning_frame field. Move to w32font.h.
15502 (w32font_open): Set owning_frame.
15503 (w32font_text_extents): Use owning_frame.
15504 (struct font_callback_data): Add opentype_only field.
15505 (add_font_entity_to_list): Use it to filter fonts.
15506 Don't check against full name.
15507 (w32font_list_internal): New function.
15508 (w32font_list): Use it.
15509 (w32font_match_internal): New function.
15510 (w32font_match): Use it.
15511 (w32font_open_internal): New function.
15512 (w32font_open): Use it.
15513 (w32font_get_cache, w32font_close, w32font_has_char)
15514 (w32font_encode_char, w32font_text_extents, w32font_draw):
15515 Make non-static.
15516
15517 * makefile.w32-in (w32font.o): Depend on w32font.h.
15518
15519 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15520
15521 * charset.c (Fdefine_charset_internal): Record a supplementary
15522 charset at the tail of Vcharset_order_list.
15523
15524 * font.c (Ffont_shape_text): Fix the return value.
15525
15526 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
15527
15528 * xdisp.c (handle_auto_composed_prop): Fix previous change.
15529
15530 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15531
15532 * ftfont.c (struct OpenTypeSpec): New struct.
15533 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
15534 (ftfont_get_open_type_spec): New function.
15535 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
15536
15537 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
15538
15539 2008-02-01 Jason Rumney <jasonr@gnu.org>
15540
15541 * w32font.c (add_font_entity_to_list): Compare only the beginning
15542 of full name.
15543
15544 2008-02-01 Kenichi Handa <handa@m17n.org>
15545
15546 * xdisp.c (handle_auto_composed_prop): Simplify the code.
15547 Never return HANDLED_RECOMPUTE_PROPS.
15548
15549 2008-02-01 Kenichi Handa <handa@m17n.org>
15550
15551 * font.c (font_gstring_produce): Delete it.
15552
15553 * composite.h (COMPOSITION_METHOD):
15554 Handle COMPOSITION_WITH_GLYPH_STRING.
15555
15556 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15557
15558 * xfont.c (Qx): Delete.
15559 (syms_of_xfont): Don't initialize Qx.
15560
15561 * composite.h (enum composition_method):
15562 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
15563
15564 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15565
15566 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
15567 (choose_face_font): Accept new form of font-spec.
15568
15569 * frame.h (font_driver_list): Declare it unconditionally.
15570 (struct frame): Define members font_driver_list and font_data_list
15571 unconditionally.
15572
15573 * fontset.c: Include "font.h" unconditionally.
15574 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
15575 (Fset_fontset_font): Accept a font-spec object.
15576
15577 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
15578 PIXEL_SIZE part a wild card.
15579
15580 * dispextern.h (struct glyph_string): Define members clip and
15581 num_clips unconditionally.
15582 (struct face): Define members font_info and extra unconditionally.
15583
15584 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
15585 ftfont_info only when HAVE_LIBOTF is defined.
15586
15587 2008-02-01 Andreas Schwab <schwab@suse.de>
15588
15589 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
15590 and end.
15591
15592 2008-02-01 Jason Rumney <jasonr@gnu.org>
15593
15594 * w32font.c (w32font_driver): Add new fields.
15595
15596 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15597
15598 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
15599 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
15600 (LIBES): Add @M17N_FLT_CFLAGS@.
15601
15602 * composite.c (compose_text): Don't treat the new style
15603 composition specially.
15604
15605 * emacs.c (main): Call syms_of_font unconditionally.
15606
15607 * font.h (FONT_ENTITY_NOT_LOADABLE)
15608 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
15609 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
15610 (struct font_driver): New member shape.
15611 (font_registry_charsets): Extern it.
15612 (font_find_for_lface, font_prepare_composition): Adjust prototype.
15613 (font_otf_capability, font_drive_otf): Delete their externs.
15614
15615 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
15616 (font_charset_alist, font_registry_charsets): Move from xfont.c
15617 and rename.
15618 (font_prop_validate_otf): New function.
15619 (font_property_table): Register it for QCotf.
15620 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
15621 (font_drive_otf): Delete.
15622 (font_prepare_composition): New arg F. Adjust for the change of
15623 lispy gstring.
15624 (font_find_for_lface): New arg C.
15625 (font_load_for_face): Adjust for the change of font_find_for_lface.
15626 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
15627 lispy gstring.
15628 (Ffont_shape_text): New function.
15629 (Fopen_font): If the font size is not given, use 12-pixel.
15630 (Ffont_at): New arg STRING.
15631 (syms_of_font): Initalize font_charset_alist.
15632 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
15633 conditionally.
15634
15635 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
15636 fonts of the same font-spec. Change the format of RFONT-DEF.
15637 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
15638 Adjust for the change of RFONT-DEF.
15639 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
15640
15641 * ftfont.h: New file.
15642
15643 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
15644 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
15645 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
15646 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
15647 font_otf_capability and font_drive_otf, set ftfont_shape.
15648 (ftfont_list): Adjust for the change of :otf property value.
15649 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
15650 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
15651 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
15652 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
15653 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
15654 (otf_gstring, gstring, m17n_flt_initialized): New variables.
15655
15656 * w32term.c (x_draw_composite_glyph_string_foreground):
15657 Adjust for the change of lispy gstring.
15658
15659 * xdisp.c (handle_composition_prop): Adjust for the change of
15660 lispy gstring. Call a function for auto-composition with the
15661 third arg it->window.
15662 (fill_composite_glyph_string): Adjust for the change of lispy string.
15663 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
15664
15665 * xfaces.c (set_font_frame_param): Adjust for the change of
15666 font_find_for_lface.
15667
15668 * xfont.c (x_font_charset_alist): Move to font.c and rename.
15669 (xfont_registry_charsets): Likewise. Change caller.
15670 (syms_of_xfont): Don't handle x_font_charset_alist.
15671
15672 * xftfont.c: Include "ftfont.h".
15673 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
15674 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
15675 (xftfont_close) [HAVE_LIBOTF]: Close otf.
15676 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
15677 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
15678 Set xftfont_driver.shape to xftfont_shape.
15679
15680 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
15681 the change of lispy gstring.
15682
15683 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15684
15685 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
15686
15687 2008-02-01 Jason Rumney <jasonr@gnu.org>
15688
15689 * w32font.c (w32font_draw): Fill background manually.
15690
15691 2008-02-01 Jason Rumney <jasonr@gnu.org>
15692
15693 * font.c (Qfontp): Remove unused symbol.
15694 (QCantialias): New symbol.
15695 (syms_of_font): Define it.
15696 (font_property_table): Set a validator for QCantialias.
15697
15698 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
15699 Define if not already.
15700 (QCfamily): Share with xfaces.c.
15701 (Qstandard, Qsubpixel, Qnatural): New symbols.
15702 (syms_of_w32font): Define them. Don't define QCfamily here.
15703 (w32_antialias_type, lispy_antialias_type): New functions.
15704 (w32_enumfont_pattern_entity): New arg requested_font.
15705 Set antialias parameter if non-default was requested.
15706 (fill_in_logfont): Fill in lfQuality if :antialias specified.
15707
15708 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15709
15710 * lread.c (read1): Undo the previous change.
15711
15712 2008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
15713
15714 * frame.c (Fdelete_frame): Call font_update_drivers only when
15715 USE_FONT_BACKEND is defined.
15716
15717 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15718
15719 * font.h (struct font_bitmap): New member bits_per_pixel.
15720 (struct font_driver): New members start_for_frame and end_for_frame.
15721 (struct font_data_list): New struct.
15722 (font_put_frame_data, font_get_frame_data): Extern them.
15723
15724 * frame.h (struct frame): New member font_data_list.
15725
15726 * font.c (font_update_drivers): Call driver->start_for_frame and
15727 driver->end_for_frame at proper timings.
15728 (font_put_frame_data, font_get_frame_data): New functions.
15729 (Ffont_spec): Add usage in the docstring.
15730
15731 * frame.c (make_frame): Initialize f->font_data_list to NULL.
15732 (Fdelete_frame): Call font_update_drivers.
15733
15734 * xftfont.c (struct xftface_info): Delete the member xft_draw.
15735 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
15736 (xftfont_get_xft_draw): New function.
15737 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
15738 (xftfont_end_for_frame): New function.
15739 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
15740
15741 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
15742 Change argument. Cache GCs in the per-frame data.
15743 (struct ftxfont_frame_data): New struct.
15744 (ftxfont_draw_bitmap): New arg gc_fore and flush.
15745 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
15746 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
15747 (ftxfont_end_for_frame): New function.
15748 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
15749
15750 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
15751
15752 2008-02-01 Kenichi Handa <handa@m17n.org>
15753
15754 * xselect.c (Vselection_coding_system)
15755 (Vnext_selection_coding_system): Delete them.
15756 (syms_of_xselect): Don't declare selection-coding-system and
15757 next-selection-coding-system. They are declared in select.el.
15758
15759 2008-02-01 Jason Rumney <jasonr@gnu.org>
15760
15761 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
15762
15763 * w32fns.c: Include imm.h.
15764 (get_composition_string_fn, get_ime_context_fn): New optional
15765 system functions.
15766 (globals_of_w32fns): Load them from imm32.dll.
15767 (ignore_ime_char): New flag.
15768 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
15769 WM_IME_ENDCOMPOSITION messages.
15770
15771 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
15772 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
15773
15774 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15775
15776 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
15777 (READCHAR_REPORT_MULTIBYTE): New macro.
15778 (readchar): New 2nd arg MULTIBYTE.
15779 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
15780 Make symbol's name multibyte according to the multibyteness of the
15781 source.
15782
15783 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15784
15785 * xfaces.c (face_for_overlay_string): Call lookup_face with
15786 correct arguments (fix of synching with the trunk).
15787
15788 2008-02-01 Kenichi Handa <handa@m17n.org>
15789
15790 * font.c (font_prop_validate_symbol, font_prop_validate_style)
15791 (font_prop_validate_non_neg, font_prop_validate_spacing):
15792 Delete argument prop_index.
15793 (font_property_table): Change arguments to validater. Change Callers.
15794 (font_lispy_object): Delete.
15795 (font_at): Use font_find_object instead fo font_lispy_object.
15796
15797 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15798
15799 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
15800 and file names.
15801
15802 2008-02-01 Jason Rumney <jasonr@gnu.org>
15803
15804 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
15805 (font_matches_spec): Remove debug output.
15806 (add_font_entity_to_list): Avoid using substituted fonts.
15807
15808 2008-02-01 Jason Rumney <jasonr@gnu.org>
15809
15810 * doc.c (Fsnarf_documentation):
15811 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
15812
15813 2008-02-01 Miles Bader <miles@gnu.org>
15814
15815 * dispextern.h (struct glyph_row): Only define "clip" field if
15816 HAVE_WINDOW_SYSTEM is defined.
15817
15818 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
15819
15820 Fix up multi-tty merge.
15821
15822 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
15823 and indentation.
15824
15825 * xfaces.c (free_realized_face, clear_face_gcs):
15826 Include font_done_for_face in the input_blocked section, just in case.
15827
15828 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
15829 (get_char_face_and_encoding): Undo last change and remove the *other*
15830 duplicate definition (i.e. keep the one that's better scoped and that
15831 includes code for the font-backend).
15832
15833 * terminal.c (create_terminal): Default keyboard_coding to
15834 `no-conversion' and terminal_coding to `undecided'.
15835
15836 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
15837
15838 * fontset.c (free_realized_fontsets): Check that the table entry does
15839 contain a fontset before trying to compare it to `base'.
15840
15841 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
15842 syms_of_charset, and syms_of_coding earlier because init_window_once
15843 now needs Vcoding_system_hash_table to be setup.
15844
15845 * coding.h (default_buffer_file_coding): Remove.
15846
15847 * coding.c (default_buffer_file_coding): Remove.
15848 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
15849 than ->symbol, and use the terminal-local coding system.
15850 (syms_of_coding): Don't setup the coding-systems that are not
15851 terminal-local.
15852 (Fdefine_coding_system_internal): Use XCAR/XCDR.
15853
15854 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
15855 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
15856
15857 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
15858 in chartab.c and were re-added here by mistake.
15859 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
15860
15861 * doc.c (Fsnarf_documentation):
15862 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
15863 src to etc.
15864
15865 * ChangeLog.10: Add mistakenly removed entry.
15866
15867 2008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
15868
15869 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
15870
15871 2008-02-01 Miles Bader <miles@gnu.org>
15872
15873 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
15874 Add extra args to FACE_FOR_CHAR.
15875
15876 2008-02-01 Kenichi Handa <handa@m17n.org>
15877
15878 * keymap.c (where_is_internal_1): If key is a cons, store the copy
15879 in sequence.
15880
15881 * chartab.c (map_sub_char_table, map_char_table): If the range
15882 contains just one character, call the function with that character
15883 even if the depth is not 3.
15884
15885 2008-02-01 Jason Rumney <jasonr@gnu.org>
15886
15887 * w32font.c (w32font_text_extents): Calculate metrics for the
15888 whole string.
15889
15890 2008-02-01 Jason Rumney <jasonr@gnu.org>
15891
15892 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
15893
15894 2008-02-01 Jason Rumney <jasonr@gnu.org>
15895
15896 * w32term.c (x_set_glyph_string_clipping): Use
15897 get_glyph_string_clip_rects.
15898 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
15899 Adjust for the change of struct glyph_string.
15900
15901 * w32font.c (w32font_draw): Do clipping here.
15902
15903 2008-02-01 Kenichi Handa <handa@m17n.org>
15904
15905 * xftfont.c (xftfont_draw): Adjust for the change of struct
15906 glyph_string.
15907
15908 * xterm.c (x_set_glyph_string_clipping): Use
15909 get_glyph_string_clip_rects.
15910 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
15911 Adjust for the change of struct glyph_string.
15912
15913 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
15914 the resulting clip(s}.
15915 (expose_overlaps): Add arg r. Change callers. Set it to
15916 row->clip temporarily.
15917 (expose_window): Redraw rows overlapping the exposed area.
15918
15919 * dispextern.h (struct glyph_row): New member clip.
15920 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
15921 clip_height, new member clip, and num_clips.
15922
15923 2008-02-01 Kenichi Handa <handa@m17n.org>
15924
15925 * data.c (Fchar_or_string_p): Fix docstring.
15926
15927 2008-02-01 Kenichi Handa <handa@m17n.org>
15928
15929 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
15930 create a temporary XftDraw object.
15931
15932 2008-02-01 Kenichi Handa <handa@m17n.org>
15933
15934 * font.c (Ffontp): Fix docstring.
15935
15936 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
15937 strong evidence of ISO-2022.
15938
15939 2008-02-01 Kenichi Handa <handa@m17n.org>
15940
15941 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
15942 SYNTAX_ENTRY_FOLLOW_PARENT.
15943
15944 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
15945
15946 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
15947 its type.
15948 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
15949 Update to the new type of weak_hash_tables and next_weak.
15950
15951 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
15952 a plain C pointer to Lisp_Hash_Table.
15953
15954 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
15955 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
15956 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
15957 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
15958 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
15959 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
15960 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
15961 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
15962 (GC_EQ): Remove since they've been identical to their non-GC_
15963 alter-egos ever since the markbit was eradicated.
15964
15965 * alloc.c:
15966 * buffer.c:
15967 * buffer.h:
15968 * data.c:
15969 * fileio.c:
15970 * filelock.c:
15971 * fns.c:
15972 * frame.h:
15973 * lisp.h:
15974 * macterm.c:
15975 * print.c:
15976 * process.c:
15977 * w32fns.c:
15978 * w32menu.c:
15979 * w32term.c:
15980 * xfns.c:
15981 * xmenu.c:
15982 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
15983
15984 2008-02-01 Kenichi Handa <handa@m17n.org>
15985
15986 * chartab.c (map_sub_char_table): Make it work for the top-level
15987 char-table. Fix handling of parent char-table.
15988 (map_char_table): Adjust for the above change.
15989
15990 2008-02-01 Jason Rumney <jasonr@gnu.org>
15991
15992 * w32font.c (Qgdi): Rename from Qw32.
15993
15994 2008-02-01 Jason Rumney <jasonr@gnu.org>
15995
15996 * w32bdf.c (get_quoted_string): Make function static.
15997
15998 2008-02-01 Kenichi Handa <handa@m17n.org>
15999
16000 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
16001 bigger ascent and descent than those of the font, use them as
16002 font's ascent and descent.
16003
16004 2008-02-01 Kenichi Handa <handa@m17n.org>
16005
16006 * Makefile.in (${lispsource}international/charprop.el): Move this
16007 target within "#ifdef HAVE_UNIDATA" and "#endif".
16008
16009 2008-02-01 Kenichi Handa <handa@m17n.org>
16010
16011 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
16012 (shortlisp): Add ../lisp/language/tai-viet.el.
16013
16014 2008-02-01 Ulrich Mueller <ulm@gentoo.org>
16015
16016 * Makefile.in (${lispsource}international/charprop.el): Depend on
16017 temacs${EXEEXT}.
16018
16019 2008-02-01 Jason Rumney <jasonr@gnu.org>
16020
16021 * w32font.c (w32font_close): Delete the GDI font object.
16022
16023 * w32menu.c: Include character.h.
16024
16025 * w32proc.c: Likewise.
16026
16027 * w32select.c: Likewise.
16028
16029 * makefile.w32-in (w32proc.o): Depend on character.h.
16030
16031 2008-02-01 Jason Rumney <jasonr@gnu.org>
16032
16033 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
16034
16035 * w32menu.c (syms_of_w32menu): Likewise.
16036
16037 * w32proc.c (syms_of_ntproc): Likewise.
16038
16039 * w32select.c (syms_of_w32select): Likewise.
16040
16041 * w32term.c (syms_of_w32term): Likewise.
16042
16043 2008-02-01 Jason Rumney <jasonr@gnu.org>
16044
16045 * w32font.c (w32font_draw): Delete brush after using it.
16046
16047 2008-02-01 Jason Rumney <jasonr@gnu.org>
16048
16049 * w32font.c (w32font_open): Don't set font_idx.
16050 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
16051 to font settings.
16052 (w32font_draw): Fill background explicitly.
16053
16054 2008-02-01 Jason Rumney <jasonr@gnu.org>
16055
16056 * w32term.c (w32_initialize): Don't call w32font_initialize.
16057
16058 * w32font.c (w32font_info): Remove subranges.
16059 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
16060 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
16061 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
16062 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
16063 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
16064 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
16065 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
16066 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
16067 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
16068 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
16069 New symbols.
16070 (font_callback_data): New struct.
16071 (w32font_list, w32font_match): Use it.
16072 (w32font_open): Don't populate subranges.
16073 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
16074 (w32font_encode_char): Always return unicode code-point as-is.
16075 (w32font_text_extents): Supply a transformation matrix to
16076 GetGlyphOutline. Never look up by glyph index. Avoid looping
16077 twice. Use unicode version of GetTexExtentPoint32 instead of
16078 glyph index version.
16079 (set_fonts_frame): Remove.
16080 (w32_enumfont_pattern_entity): Add frame parameter, use it to
16081 set frame parameter. Use backward compatible fake foundries.
16082 Save generic family in extra slot under QCfamily. Make width slot
16083 constant. Save QCspacing value. Save list of scripts instead of
16084 binary subranges.
16085 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
16086 (add_font_entity_to_list): Use font_callback_data struct. Filter
16087 unwanted fonts.
16088 (add_one_font_entity_to_list): Use font_callback_data struct.
16089 (w32_registry): Default to iso10646_1.
16090 (fill_in_logfont): Use dpi from extra slot. Don't bother with
16091 string font registries. Don't fill in font name if it is a generic
16092 family name, fill family instead. Use spacing, family and script
16093 extra info to fill pitch, family and charset fields.
16094 (list_all_matching_fonts): Use font_callback_data struct.
16095 (unicode_range_for_char): Remove.
16096 (font_supported_scripts): New function.
16097 (w32font_initialize): Remove.
16098 (syms_of_w32font): Update which symbols are defined.
16099
16100 2008-02-01 Jason Rumney <jasonr@gnu.org>
16101
16102 * font.c (font_pixel_size): Reverse assq_no_quit args.
16103
16104 * w32term.h (FONT_WIDTH): Report max width, not average.
16105 (FONT_MAX_WIDTH): Remove.
16106 (FONT_AVG_WIDTH): New macro.
16107
16108 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
16109 redefinition of FONT_WIDTH.
16110
16111 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
16112 (w32_cache_char_metrics): Use FONT_WIDTH.
16113
16114 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
16115
16116 2008-02-01 Jason Rumney <jasonr@gnu.org>
16117
16118 * w32font.c (w32font_open): Make lfHeight negative.
16119
16120 * w32fns.c (x_default_font_parameter): Use new style font name.
16121 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
16122
16123 2008-02-01 Jason Rumney <jasonr@gnu.org>
16124
16125 * w32font.c (QCsubranges): New symbol.
16126 (w32font_open, w32font_has_char): Get subranges from subproperty
16127 of extra.
16128 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
16129 (syms_of_w32font): Define :subranges symbol.
16130
16131 * font.c (font_put_extra): Expose externally.
16132
16133 * font.h (font_put_extra): Move declaration from font.c.
16134
16135 * font.c (Ffont_get): Use font driver to determine otf capability.
16136 (adjust_anchor): Check if driver defines anchor_point before using.
16137
16138 * w32font.c (w32font_open): Handle size, height and pixel_size better.
16139 (w32font_draw): Use options.
16140 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
16141 Fix detection of truetype fonts.
16142 (registry_to_w32_charset): Handle charsets other than iso8859-1
16143 expressed as lisp symbols.
16144 (w32_registry): Express charset as lisp symbol.
16145 (fill_in_logfont): Reverse pixel and point height logic.
16146 Don't set width here. Set quality to default.
16147
16148 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
16149 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
16150
16151 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
16152 Remove redundant loop and allocation.
16153
16154 * makefile.w32-in (font.o, w32font.o): New objects.
16155 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
16156 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
16157
16158 * xdisp.c (fill_composite_glyph_string): Make the first arg to
16159 STORE_XCHARB a valid l-value.
16160
16161 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
16162 calculations for non-Truetype fonts.
16163 (x_draw_glyph_string): Sync with xterm.c.
16164 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
16165 Remove redundant code.
16166 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
16167
16168 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
16169 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
16170
16171 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
16172 (x_to_w32_charset, w32_to_x_charset): Expose externally.
16173
16174 * w32font.c: New file for w32 font backend.
16175
16176 2008-02-01 Kenichi Handa <handa@m17n.org>
16177
16178 * term.c: Don't include "buffer.h" twice.
16179
16180 2008-02-01 Kenichi Handa <handa@m17n.org>
16181
16182 * character.c (Funibyte_string): New function.
16183 (syms_of_character): Defsubr it.
16184
16185 2008-02-01 Jason Rumney <jasonr@gnu.org>
16186
16187 * w32term.c [USE_FONT_BACKEND]:
16188 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
16189 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
16190 (x_draw_glyph_string, x_draw_glyph_string_foreground)
16191 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
16192 (x_free_frame_resources): Sync with xterm.c.
16193
16194 2008-02-01 Andreas Schwab <schwab@suse.de>
16195
16196 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
16197 char-table size.
16198
16199 2008-02-01 Kenichi Handa <handa@m17n.org>
16200
16201 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
16202
16203 2008-02-01 Kenichi Handa <handa@m17n.org>
16204
16205 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
16206 font_otf_gpos, add font_drive_otf.
16207
16208 * fontset.c (fontset_find_font): Pay attention to font size
16209 specified for a font.
16210 (reorder_font_vector): Check contents of font_def.
16211
16212 * font.c (struct otf_list): Delete it.
16213 (otf_list): Make it a lisp variable.
16214 (otf_open): Use lispy otf_list.
16215 (generate_otf_features): Rename from parse_gsub_gpos_spec.
16216 (check_otf_features): New function.
16217 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
16218 New functions.
16219 (font_drive_otf): New function merging font_otf_gsub and
16220 font_otf_gpos.
16221 (font_open_for_lface): New arg spec. Change argument order.
16222 (font_load_for_face): Adjust for the change of font_open_for_lface.
16223 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
16224 Ffont_otf_gpos.
16225 (syms_of_font): Staticpro otf_list. Delete defsubr of
16226 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
16227
16228 * xfaces.c (set_font_frame_param): Adjust for the change of
16229 font_open_for_lface.
16230
16231 * font.h (font_open_for_lface): Adjust prototype.
16232 (struct font_driver): Delete members otf_gsub and otf_gpos, add
16233 member otf_drive.
16234 (font_otf_gsub, font_otf_gpos): Delete externs.
16235 (font_drive_otf): Extern it.
16236
16237 2008-02-01 Kenichi Handa <handa@m17n.org>
16238
16239 * font.c (font_at): If the window W is not on a window system,
16240 return Qnil.
16241
16242 * coding.c (produce_chars, encode_coding): Don't call
16243 insert_from_gap if no characters to produce.
16244
16245 2008-02-01 Kenichi Handa <handa@m17n.org>
16246
16247 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
16248 Fclear_face_cache.
16249
16250 * xfaces.c (face_for_font): Check also face->font==font->font.font.
16251
16252 2008-02-01 Miles Bader <miles@gnu.org>
16253
16254 * emacs.c (main): Change default value of `enable_font_backend' to 1.
16255 Parse "--disable-font-backend" option.
16256 (standard_args): Add "--disable-font-backend" option.
16257
16258 2008-02-01 Kenichi Handa <handa@m17n.org>
16259
16260 * fontset.c (fontset_find_font): New function.
16261 (fontset_font): Use fontset_find_font.
16262 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
16263 Register the specified font for all Latin characters.
16264 (new_fontset_from_font): Register the specified font for all Latin
16265 characters.
16266 (dump_fontset): For a realized fontset, include the base fontset
16267 name in the returned vector.
16268
16269 2008-02-01 Kenichi Handa <handa@m17n.org>
16270
16271 * character.h (CHAR_STRING): Cast C to unsigned on calling
16272 char_string.
16273
16274 * character.c (char_string): Type of arg C changed to unsigned.
16275 Signal an error if C is an invalid character code.
16276
16277 * editfns.c (general_insert_function, Fchar_to_string):
16278 Use CHARACTERP, not INTEGERP.
16279
16280 2008-02-01 Kenichi Handa <handa@m17n.org>
16281
16282 * character.h (MIN_MULTIBYTE_LEADING_CODE)
16283 (MAX_MULTIBYTE_LEADING_CODE): New macros.
16284
16285 * regex.c (analyse_first): Fix for multibyte characters in "case
16286 charset:" and "case categoryspec:".
16287
16288 2008-02-01 Andreas Schwab <schwab@suse.de>
16289
16290 * Makefile.in (LIBES): Move standard libraries to the end.
16291
16292 2008-02-01 Kenichi Handa <handa@m17n.org>
16293
16294 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
16295 nonzero, don't shrink the buffer nextb.
16296
16297 * buffer.h (struct buffer_text): New member inhibit_shrinking.
16298
16299 * coding.c (coding_alloc_by_making_gap): New arg offset.
16300 (alloc_destination): Call coding_alloc_by_making_gap with the arg
16301 offset.
16302 (decode_coding_iso_2022): Update coding->safe_charsets.
16303 (decode_coding_gap): Temporarily set
16304 current_buffer->text->inhibit_shrinking to 1.
16305
16306 2008-02-01 Kenichi Handa <handa@m17n.org>
16307
16308 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
16309 indexing into elements of s->cmp and s->char2b.
16310
16311 2008-02-01 Juanma Barranquero <lekktu@gmail.com>
16312
16313 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
16314
16315 2008-02-01 Kenichi Handa <handa@m17n.org>
16316
16317 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
16318 target_multibyte instead of multibyte.
16319 (re_match_2_internal): Call bcmp_translate with target_multibyte.
16320 (bcmp_translate): Change the argument name from multibyte to
16321 target_multibyte.
16322
16323 2008-02-01 Kenichi Handa <handa@m17n.org>
16324
16325 These changes are to compile a regexp into a pattern that can be
16326 used both for multibyte and unibyte targets.
16327
16328 * Makefile.in (search.o): Depend on charset.h.
16329
16330 * character.c (multibyte_char_to_unibyte_safe): New function.
16331
16332 * search.c: Include "charset.h".
16333 (compile_pattern_1): Delete argument multibyte. Don't set
16334 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
16335 (compile_pattern): Don't compare cp->buf.target_multibyte.
16336 Compare cp->buf.charset_unibyte.
16337 (compile_pattern): Set cp->buf.target_multibyte.
16338
16339 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
16340
16341 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
16342
16343 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
16344 multibyte. Change callers.
16345 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
16346 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
16347 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
16348 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
16349 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
16350 (regex_compile): Make the compiled pattern usable both for
16351 multibyte and unibyte targets.
16352 (analyse_first): Make the fastmap usable both for multibyte and
16353 unibyte targets.
16354 (TRANSLATE_VIA_MULTIBYTE): Delete.
16355 (re_match_2_internal): Pay attention to the case that the
16356 multibyteness of bufp and target may be different.
16357
16358 2008-02-01 Kenichi Handa <handa@m17n.org>
16359
16360 * xdisp.c (x_produce_glyphs): When a font is not found, make the
16361 empty box occupy at least one column width.
16362
16363 2008-02-01 Miles Bader <miles@gnu.org>
16364
16365 * Makefile.in: Remove redundant HAVE_XFT clause.
16366
16367 2008-02-01 Kenichi Handa <handa@m17n.org>
16368
16369 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
16370
16371 2008-02-01 Kenichi Handa <handa@m17n.org>
16372
16373 * fontset.c (Finternal_char_font): Fix for the case of POSITION
16374 being nil.
16375
16376 2008-02-01 Kenichi Handa <handa@m17n.org>
16377
16378 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
16379
16380 2008-02-01 Kenichi Handa <handa@m17n.org>
16381
16382 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
16383
16384 2008-02-01 Kenichi Handa <handa@m17n.org>
16385
16386 * search.c (simple_search): Fix previous change.
16387
16388 2008-02-01 Kenichi Handa <handa@m17n.org>
16389
16390 * xftfont.c (ftfont_font_format): Extern declaration.
16391
16392 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
16393
16394 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
16395 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
16396
16397 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
16398 (ftfont_font_format): Fix previous change.
16399
16400 * font.h (Ffont_xlfd_name): EXFUN it.
16401
16402 * font.c (font_parse_xlfd): Fix the array size of `f'.
16403 (register_font_driver): Use EQ to compare driver->type.
16404
16405 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
16406 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
16407 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
16408
16409 2008-02-01 Kenichi Handa <handa@m17n.org>
16410
16411 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
16412 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
16413
16414 2008-02-01 Kenichi Handa <handa@m17n.org>
16415
16416 * xfont.c (xfont_open): Set font->format.
16417
16418 * xftfont.c (xftfont_open): Set font->format.
16419
16420 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
16421 (ftfont_list): Include FC_FONTFORMAT in FcObject.
16422 (ftfont_open): Set font->format.
16423 (ftfont_font_format): New function.
16424
16425 * font.h (struct font): New member format.
16426
16427 * font.c (Qopentype): New variable.
16428 (syms_of_font): Defsym it.
16429 (Fquery_font): Change the format of the last element of the return
16430 value.
16431
16432 2008-02-01 Kenichi Handa <handa@m17n.org>
16433
16434 * xfns.c (xic_create_xfontset): Try the default fontset name as a
16435 last resort.
16436
16437 2008-02-01 Kenichi Handa <handa@m17n.org>
16438
16439 * coding.c (detect_coding_charset): Fix detection of multi-byte
16440 charset.
16441
16442 2008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
16443
16444 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
16445
16446 2008-02-01 Kenichi Handa <handa@m17n.org>
16447
16448 * xdisp.c (get_next_display_element): Set it->face_id for the
16449 first component of a composition.
16450 (x_produce_glyphs): Check if the font is changed or not for composition.
16451
16452 2008-02-01 Kenichi Handa <handa@m17n.org>
16453
16454 * fontset.c (Qlatin): New variable.
16455 (syms_of_fontset): Define it as a lisp symbol.
16456 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
16457
16458 2008-02-01 Kenichi Handa <handa@m17n.org>
16459
16460 * font.c (font_unparse_fcname): Pay attention to the case that
16461 some of font property is a null string.
16462
16463 2008-02-01 Kenichi Handa <handa@m17n.org>
16464
16465 * term.c: Include "composite.h".
16466 (encode_terminal_code): Output all components of composition.
16467 Check the size of encode_terminal_src.
16468 (produce_glyphs): For composition, call produce_composite_glyph.
16469 (append_composite_glyph, produce_composite_glyph): New functions.
16470
16471 * xdisp.c (x_produce_glyphs): In handling composition, if a font
16472 is not found, get font_info from the current ascii face.
16473
16474 2008-02-01 Kenichi Handa <handa@m17n.org>
16475
16476 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
16477 buffer-file-name to Qnil before calling insert_from_buffer.
16478
16479 * font.c (font_unparse_fcname): Pay attention to the case that
16480 foundry is a null string.
16481
16482 2008-02-01 Kenichi Handa <handa@m17n.org>
16483
16484 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
16485
16486 * font.c (Qunicode_sip): New variable.
16487 (syms_of_font): Declare it as a Lisp symbol.
16488
16489 * font.h (Qunicode_sip): Extern it.
16490
16491 2008-02-01 Kenichi Handa <handa@m17n.org>
16492
16493 * composite.c (get_composition_id): Pay attention to TAB component.
16494
16495 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
16496 TAB. Adjust for the change of s->char2b which always points to
16497 the first element of allocated memory.
16498
16499 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
16500
16501 * xdisp.c (handle_composition_prop): Set it->c to the first
16502 non-TAB component.
16503 (fill_composite_glyph_string): Change argument.
16504 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
16505 (x_produce_glyphs): Fix handling of left/right padding.
16506
16507 2008-02-01 Kenichi Handa <handa@m17n.org>
16508
16509 * coding.c (detect_coding_system): Fix for handling off
16510 inhibit_iso_escape_detection. Fix for the case that no coding
16511 system is defined for a specific coding category.
16512
16513 2008-02-01 Kenichi Handa <handa@m17n.org>
16514
16515 * font.c (font_matching_entity): Delete unused local var.
16516
16517 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
16518 opening a font.
16519
16520 * fileio.c (Finsert_file_contents): On recovering a file, assume
16521 Unix-like eol.
16522 (choose_write_coding_system): On auto-saving a file, force
16523 Unix-like eol.
16524
16525 * coding.c (setup_coding_system): Fix setting of
16526 coding->common_flags based on eol_type.
16527 (coding_inherit_eol_type): If PARENT is not nil, be sure to
16528 inherit from it.
16529
16530 2008-02-01 Kenichi Handa <handa@m17n.org>
16531
16532 * alloc.c (NSTATICS): Increas to 0x600.
16533
16534 2008-02-01 Kenichi Handa <handa@m17n.org>
16535
16536 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
16537 (ftfont_list): Don't check :name property.
16538 (ftfont_match): New function.
16539 (ftfont_pattern_entity): If the pattern doesn't contain
16540 FC_SPACING, don't assume FC_MONO.
16541
16542 * font.h (struct font_driver): New member `match'.
16543 (font_update_drivers): Adjust prototype.
16544
16545 * font.c (font_parse_fcname, font_parse_name): Don't change :name
16546 property of FONT.
16547 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
16548 them unconditionally.
16549 (font_matching_entity): New function.
16550 (font_open_by_name): Try font_matching_entity if exact match is
16551 not found.
16552 (font_update_drivers): Delete the arg FONT. Return a list of
16553 actually used backends. Don't free faces, font caches here.
16554 Don't store data in frame parameters. Don't call x_set_font.
16555 (Ffont_spec): Store :name property as is.
16556 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
16557 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
16558 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
16559 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
16560 Call font->driver->otf_gsub instead of font_otf_gsub.
16561
16562 * frame.c (x_set_font_backend): Do more works that were done in
16563 font_update_drivers before.
16564
16565 * xfont.c (xfont_match): New function.
16566 (xfont_driver): Set xfont_driver.match to xfont_match.
16567 (xfont_draw): Set font in GC if necessary.
16568
16569 * ftxfont.c (ftxfont_match): New function.
16570 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
16571
16572 * xftfont.c (xftfont_match): New function.
16573 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
16574
16575 2008-02-01 Kenichi Handa <handa@m17n.org>
16576
16577 * font.h (struct font): New member scalable.
16578 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
16579 (font_otf_gsub): Adjust prototype.
16580
16581 * font.c (font_otf_capability): Fix handling of the default langsys.
16582 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
16583 Check the contents of SPEC.
16584 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
16585 (check_gstring): New function.
16586 (REPLACEMENT_CHARACTER): New macro.
16587 (font_otf_gsub): New arg alternate_subst. Be sure to set all
16588 glyph codes of GSTRING.
16589 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
16590 (font_prepare_composition): Set cmp->glyph_len.
16591 (font_open_entity): Set font->scalable.
16592 (Ffont_get): Handle :otf property.
16593 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
16594 functions.
16595 (Fquery_font): Use font->font.full_name.
16596 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
16597 Sfont_otf_alternates.
16598
16599 * ftfont.c (ftfont_open): Set font->font.full_name and
16600 font->font.name properly. Fix calculation of font->font.height
16601 and font->min_width.
16602
16603 * ftxfont.c (ftxfont_create_gcs): New function.
16604 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
16605 (ftxfont_draw_backgrond): Fix filling region.
16606 (ftxfont_default_fid): New function.
16607 (ftxfont_open): Set xfont->fid to the return value of
16608 ftxfont_default_fid.
16609 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
16610 (ftxfont_done_face): Free only GCs that are created by
16611 ftxfont_create_gcs.
16612 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
16613
16614 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
16615 Clip to src->width, etc (not src->clip_XXX).
16616
16617 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
16618 FontBackend frame parameter.
16619
16620 2008-02-01 Kenichi Handa <handa@m17n.org>
16621
16622 * font.h (struct font_driver_list): New member `on'.
16623 (Fclear_font_cache): EXFUN it.
16624 (font_update_drivers): Extern it.
16625
16626 * font.c (font_unparse_fcname): Fix typo (swidth->width).
16627 (font_list_entities): Check driver_list->on.
16628 (register_font_driver): Initalize `on' member to 0.
16629 (font_update_drivers): New function.
16630 (Fclear_font_cache): Check driver_list->on.
16631
16632 * frame.h (Qfont_backend): Extern it.
16633 (x_set_font_backend): Extern it.
16634
16635 * frame.c (Qfont_backend): New variable.
16636 (frame_parms): New element for font-backend.
16637 (x_set_font_backend): New function.
16638
16639 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
16640 FontBackend frame parameter.
16641 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
16642 x_set_font_backend.
16643
16644 * xfont.c (xfont_list): Don't try listing by :name property if the
16645 name is not for XLFD.
16646
16647 2008-02-01 Kenichi Handa <handa@m17n.org>
16648
16649 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
16650 (LGLYPH_SET_TO): New macros.
16651 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
16652 element of G is vector or not.
16653 (font_at): Extern it.
16654
16655 * font.c: Include window.h.
16656 (font_lispy_object): New function.
16657 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
16658 end of valid glyph.
16659 (font_close_object): Fix getting (struct font *).
16660 (font_at): New function.
16661 (Ffont_get): If FONT is a font-object, get entity from it.
16662 (Ffont_make_gstring): Initialize elements of glyphs with nil.
16663 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
16664 range check.
16665 (Ffont_at): New function.
16666 (syms_of_font): Defsubr Sfont_at.
16667
16668 * xdisp.c (it_props): Move the entry for Qauto_composed to just
16669 before the entry for Qcomposition.
16670 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
16671 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
16672 the font in gstring.
16673 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
16674 LGLYPH_FORM (g) to detect the end of valid glyph.
16675 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
16676 we are composing with gstring.
16677
16678 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
16679 Check if adjustment is vector or not.
16680
16681 * Makefile.in (font.o): Make it depends on window.h.
16682
16683 2008-02-01 Kenichi Handa <handa@m17n.org>
16684
16685 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
16686 adjustment is vector or not.
16687
16688 2008-02-01 Miles Bader <miles@gnu.org>
16689
16690 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
16691
16692 2008-02-01 Kenichi Handa <handa@m17n.org>
16693
16694 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
16695 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
16696 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
16697
16698 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
16699 (DEVICE_DELTA): Fix typo.
16700 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
16701 LGLYPH format.
16702
16703 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
16704 the change of LGLYPH format.
16705
16706 2008-02-01 Kenichi Handa <handa@m17n.org>
16707
16708 * ftfont.c (ftfont_list): Fix typo.
16709 (ftfont_build_basic_charsets): Don't include letters with diacritics.
16710
16711 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
16712
16713 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
16714
16715 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
16716 xftface_info is non-NULL.
16717
16718 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
16719
16720 * ftfont.c (ftfont_list): Move misplaced #endif.
16721
16722 2008-02-01 Kenichi Handa <handa@m17n.org>
16723
16724 * ftfont.c (ftfont_list): Pay attention to the case that
16725 FC_CAPABILITY is not defined.
16726
16727 2008-02-01 Kenichi Handa <handa@m17n.org>
16728
16729 * xftfont.c (xftfont_open): Set charset related members to -1.
16730
16731 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
16732 QCname.
16733 (ftfont_open): Set charset related members to -1.
16734
16735 * fontset.c (Votf_script_alist): New variable.
16736 (syms_of_fontset): Initialize it.
16737 (fontset_font): Delete unused variable.
16738
16739 * fontset.h (Votf_script_alist): Extern it.
16740
16741 * font.c (font_find_for_lface): Optimize code.
16742
16743 * font.h (font_close_object, font_merge_old_spec): Extern them.
16744
16745 2008-02-01 Kenichi Handa <handa@m17n.org>
16746
16747 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
16748 (syms_of_font): Initialize them.
16749 (font_pixel_size): Allow float value in dpi.
16750 (font_prop_validate_type): Delete.
16751 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
16752 Change caller.
16753 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
16754 (font_prop_validate_extra): Delete.
16755 (font_prop_validate_spacing): New function.
16756 (font_property_table): Add elements for all known properties.
16757 (get_font_prop_index): Rename from check_font_prop_name. New
16758 argument FROM. Change caller.
16759 (font_prop_validate): Validate all known properties.
16760 (font_put_extra): Delete argument force. Change caller.
16761 (font_expand_wildcards): Make it static. Fix the way of shrinking
16762 the possible range.
16763 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
16764 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
16765 Change caller.
16766 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
16767 (font_parse_fcname): Delete argument merge. Fix parsing of point
16768 size. Don't validate properties values here. Change caller.
16769 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
16770 (font_open_by_name): Delete unused variable.
16771 (Ffont_spec): Likewise. Validate property values.
16772 (Ffont_match_p): New function.
16773
16774 * font.h (QCscalable): Extern it.
16775 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
16776
16777 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
16778
16779 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
16780 (xfont_list_pattern): New function.
16781 (xfont_list): Use xfont_list_pattern.
16782
16783 2008-02-01 Kenichi Handa <handa@m17n.org>
16784
16785 * font.h (Flist_fonts): EXFUN it.
16786
16787 2008-02-01 Jason Rumney <jasonr@gnu.org>
16788
16789 * w32term.c (w32_initialize): Add back smoothing_type and
16790 smoothing_enabled definitions.
16791
16792 2008-02-01 Kenichi Handa <handa@m17n.org>
16793
16794 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
16795 s->face->font on determining underline position.
16796
16797 2008-02-01 Kenichi Handa <handa@m17n.org>
16798
16799 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
16800 (font_has_char): Accept font-object too.
16801 (font_find_for_lface): Try at first with a size specified in face.
16802
16803 2008-02-01 Kenichi Handa <handa@m17n.org>
16804
16805 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
16806 font_open_by_name.
16807
16808 2008-02-01 Kenichi Handa <handa@m17n.org>
16809
16810 * font.h (QCspacing, QCdpi): Extern them.
16811 (enum font_spacing): New enum.
16812 (FONT_PIXEL_SIZE_QUANTUM): New macro.
16813
16814 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
16815 (QCspacing, QCdpi): New variables.
16816 (syms_of_font): Initialize them.
16817 (font_pixel_size): New function.
16818 (font_put_extra): New function.
16819 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
16820 in FONT_EXTRA.
16821 (font_parse_fcname): Handle enumerated values (e.g. bold).
16822 Fix handling font size. Add QCname property that contains only
16823 unknown properties.
16824 (font_score): Change argument. Change caller. Pay attention to
16825 FONT_PIXEL_SIZE_QUANTUM.
16826 (font_sort_entites, font_list_entities, font_find_for_lface)
16827 (font_open_for_lface, font_open_by_name): Fix handling of font size.
16828 (Ffont_spec): Add QCname property that contains only unknown properties.
16829
16830 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
16831 include weight in listing pattern, instead check weight of each
16832 listed font. Don't include scalable in pattern. Pay attention to
16833 FONT_PIXEL_SIZE_QUANTUM.
16834
16835 2008-02-01 Kenichi Handa <handa@m17n.org>
16836
16837 * font.c (font_parse_fcname): Fix parsing of point-size.
16838 (font_unparse_fcname): Produce symbolic names for style properties.
16839 (font_list_entities): Handle float size correctly.
16840 (font_open_by_name): Prefer `normal' property values if the name
16841 doesn't specify them.
16842
16843 * fontset.c (Finternal_char_font): Use font_get_name, not
16844 Ffont_xlfd_name.
16845
16846 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
16847 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
16848 pattern. Don't force scalable.
16849
16850 * xftfont.c (xftfont_open): For generating a name, start from
16851 96-byte buffer.
16852
16853 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
16854
16855 * frame.h (x_new_fontset2): Fix prototype.
16856
16857 2008-02-01 Kenichi Handa <handa@m17n.org>
16858
16859 * font.h (struct font_driver): Delete member parse_name.
16860 (font_match_p, font_get_spec, font_parse_fcname)
16861 (font_unparse_fcname): Extern them.
16862 (font_get_name): Adjust prototype.
16863
16864 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
16865 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
16866 (font_expand_wildcards): Fix handling ENCODING field. Avoid
16867 unnecessary checks for weight, slant, and swidth.
16868 (font_parse_fcname): New function.
16869 (font_unparse_fcname): New function.
16870 (font_parse_name): New function.
16871 (font_match_p): New function.
16872 (font_get_name): Change return value to Lisp string.
16873 (font_get_spec): New function.
16874 (Qunspecified, Qignore_defface): Don't extern them.
16875 (font_find_for_lface): Assume that LFACE is fully specified.
16876 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
16877 object, use it for FACE.
16878 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
16879 driver->parse_name.
16880 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
16881
16882 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
16883 prototype.
16884
16885 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
16886 argument F. Don't call Fnew_fontset. Instead, directly call
16887 make_fontset.
16888
16889 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
16890
16891 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
16892 of x_new_fontset2.
16893
16894 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
16895 (Qsans__serif): New variables.
16896 (ftfont_generic_family_list): New variable.
16897 (syms_of_ftfont): Initialize the above variables.
16898 (ftfont_pattern_entity): Delete argument NAME.
16899 (ftfont_list_generic_family): New function.
16900 (ftfont_parse_name): Delete this function.
16901 (ftfont_list): Try generic family only when FcFontList found no font.
16902 (ftfont_list_family): Fix args to FcObjectSetBuild.
16903
16904 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
16905 object in attrs[LFACE_FONT_INDEX].
16906 (set_lface_from_font_name): Cancel all changes for font-backend.
16907 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
16908 function.
16909 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
16910 font object in QCfont attribute.
16911 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
16912 (realize_default_face) [USE_FONT_BACKEND]: Call
16913 set_lface_from_font_and_fontset.
16914
16915 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
16916 "fixed", and signal error here if no suitable font was found.
16917
16918 * xfont.c (xfont_parse_name): Delete this function.
16919
16920 * xftfont.c (xftfont_open): Change coding style of error
16921 handling. Generate fontconfig's fontname pattern.
16922
16923 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
16924 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
16925
16926 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
16927 Both args FONTSET and FONT_OBJECT must be existing ones.
16928
16929 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16930
16931 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
16932
16933 2008-02-01 Kenichi Handa <handa@m17n.org>
16934
16935 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
16936
16937 * font.h (struct font): Fix typo.
16938
16939 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
16940 XLFD_XXX_INDEX.
16941 (enum xlfd_field_mask): New enum.
16942 (intern_font_field): Changed argument. Change caller. If digits
16943 are followed by non-digits, return a symbol.
16944 (font_expand_wildcards): New function.
16945 (font_parse_xlfd): Fix wildcard handling.
16946 (Ffont_spec): If :name is specified, reflect the info in the other
16947 properties.
16948
16949 * ftfont.c (ftfont_pattern_entity): Fix typo.
16950 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
16951 locale.
16952
16953 2008-02-01 Kenichi Handa <handa@m17n.org>
16954
16955 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
16956
16957 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
16958 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
16959 registry doesn't specify encoding part.
16960 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
16961 (font_open_by_name): At first try parsing the name.
16962 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
16963 as Lisp symbols.
16964
16965 * fontset.c (reorder_font_vector): Pay attention to the case that
16966 the 3rd element of font_def is nil.
16967 (fontset_font): For the default fontset, append one more fontset
16968 elements for a script-based font specification. Don't add script
16969 attribute on finding a font.
16970 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
16971 font name.
16972 (fontset_ascii_font): If a font can't be opened, return nil.
16973
16974 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
16975 (ftfont_pattern_entity): New function.
16976 (ftfont_get_cache): Assume that freetype_font_cache is already
16977 initialized.
16978 (ftfont_list): Handle the case that a file is specified in font
16979 name. Use ftfont_pattern_entity to generate entities.
16980 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
16981 (syms_of_ftfont): Initialize freetype_font_cache.
16982
16983 * xftfont.c (xftfont_open): Make the font name fontconfig's
16984 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
16985 (xftfont_close): Free font->font.name if not NULL.
16986
16987 * xfont.c (xfont_list): If script is specified for a font, return
16988 null_vector.
16989 (xfont_list_family): Declare argument type.
16990
16991 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
16992 name, set LFACE_FONT (lface) to nil.
16993
16994 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
16995 return Qnil.
16996
16997 2008-02-01 Kenichi Handa <handa@m17n.org>
16998
16999 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
17000 (standard_args): Add "-enable-font-backend".
17001
17002 2008-02-01 Kenichi Handa <handa@m17n.org>
17003
17004 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
17005 (struct xftdraw_list, xftdraw_list): Delete them.
17006 (register_xftdraw, check_xftdraw): Delete them.
17007 (xftfont_prepare_face): Don't call register_xftdraw.
17008 (xftfont_done_face): Don't call check_xftdraw.
17009 (xftfont_draw): Get background color only when with_background is
17010 nonzero.
17011
17012 * xfont.c (xfont_encode_char): Fix calculation of char2b.
17013
17014 2008-02-01 Kenichi Handa <handa@m17n.org>
17015
17016 These changes are for the new font handling codes.
17017
17018 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
17019 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
17020 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
17021 (FONTSRC, FONTOBJ): New variables.
17022 (obj): Add $(FONTOBJ).
17023 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
17024 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
17025 @LIBOTF_LIBS@.
17026 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
17027 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
17028
17029 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
17030
17031 * character.h (Vscript_representative_chars): Extern it.
17032
17033 * character.c (Vscript_representative_chars): New variable.
17034 (syms_of_character): Declare it as a Lisp variable.
17035
17036 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
17037 enable_font_backend is nonzero, accept the composition method
17038 COMPOSITION_WITH_GLYPH_STRING.
17039
17040 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
17041 enumeration COMPOSITION_WITH_GLYPH_STRING.
17042
17043 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
17044 members clip_x, clip_y, clip_width, and clip_height.
17045 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
17046
17047 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
17048 --enable-font-backend. Call syms_of_font.
17049
17050 * fns.c (assoc_no_quit): New function.
17051
17052 * fontset.h (FONT_INFO_FROM_FACE): New macro.
17053 (face_for_font, new_fontset_from_font)
17054 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
17055
17056 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
17057 (fontset_font, fontset_ascii, face_for_char)
17058 (make_fontset_for_ascii_face, Ffont_info)
17059 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
17060 is nonzero, use font-backend mechanism.
17061 (find_font_encoding): Make it non-static.
17062 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
17063 New functions.
17064
17065 * frame.h (struct frame): New members resx and resy.
17066 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
17067 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
17068
17069 * frame.c [USE_FONT_BACKEND]: Include "font.h".
17070 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
17071
17072 * lisp.h (assoc_no_quit): Extern it.
17073
17074 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
17075 Through out the file, use FONT_INFO_FROM_FACE instead of
17076 FONT_INFO_FROM_ID, use get_per_char_metric instead of
17077 rif->per_char_metric.
17078 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
17079 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
17080 (get_glyph_face_and_encoding, fill_composite_glyph_string)
17081 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
17082 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
17083 nonzero, use font-backend mechanism.
17084 (get_per_char_metric): New function.
17085
17086 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
17087 (set_lface_from_font_name)
17088 (set_font_frame_param, free_realized_face)
17089 (prepare_face_for_display, clear_face_gcs)
17090 (Finternal_set_font_selection_order, realize_x_face)
17091 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
17092 font-backend mechanism.
17093 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
17094 (load_face_font) [USE_FONT_BACKEND]: Abort.
17095 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
17096 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
17097
17098 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
17099 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
17100 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
17101 nonzero, register all available font drivers. Call
17102 x_default_font_parameter for deciding a font.
17103 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
17104
17105 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
17106 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
17107 (x_set_glyph_string_clipping_exactly)
17108 (x_compute_glyph_string_overhangs)
17109 (x_draw_glyph_string_foreground)
17110 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
17111 (x_free_frame_resources) [USE_FONT_BACKEND]: If
17112 enable_font_backend is nonzero, use font-backend mechanism.
17113 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
17114
17115 2008-02-01 Kenichi Handa <handa@m17n.org>
17116
17117 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
17118 system_eol_type.
17119 (syms_of_coding): Initialize system_eol_type.
17120
17121 * process.c (Fset_process_coding_system): Inherit system's eol
17122 format if necessary.
17123
17124 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17125
17126 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
17127
17128 2008-02-01 Kenichi Handa <handa@m17n.org>
17129
17130 * coding.c (decode_eol): Pay attention to buffer relocation in
17131 del_range_2.
17132 (decode_coding): Call decode_eol before restoring undo_list.
17133
17134 2008-02-01 Kenichi Handa <handa@m17n.org>
17135
17136 * charset.c (Fdefine_charset_internal): Fix setting of
17137 emacs_mule_bytes.
17138
17139 2008-02-01 Kenichi Handa <handa@m17n.org>
17140
17141 * keyboard.c (read_char): Check if C is a character or not before
17142 looking up Vkeyboard_translate_table.
17143
17144 2008-02-01 Kenichi Handa <handa@m17n.org>
17145
17146 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
17147 condition to terminate the loop.
17148
17149 2008-02-01 Kenichi Handa <handa@m17n.org>
17150
17151 * coding.c (produce_composition): Compare charbuf[i] instead of
17152 args[i] against 0.
17153 (Fterminal_coding_system): Use EQ to compare Lisp objects.
17154
17155 2008-02-01 Kenichi Handa <handa@m17n.org>
17156
17157 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
17158 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
17159 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
17160 detect_coding.
17161 (emacs_mule_char): Handle old style (Emacs 20) component character
17162 of a composition.
17163 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
17164 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
17165 composition rule.
17166 (decode_coding_emacs_mule): Handle invalid bytes correctly.
17167
17168 2008-02-01 Kenichi Handa <handa@m17n.org>
17169
17170 * coding.c (encode_coding_ccl): Allocate destination dynamically
17171 when necessary.
17172
17173 2008-02-01 Kenichi Handa <handa@m17n.org>
17174
17175 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
17176 the loop. When quitted, show a proper error message.
17177
17178 2008-02-01 Kenichi Handa <handa@m17n.org>
17179
17180 * xterm.c (x_set_glyph_string_clipping_exactly): Set
17181 src->clip_head and src->clip_tail temporarily instead of src->hl.
17182
17183 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
17184 character sequence.
17185 (Fccl_execute_on_string): Use ASET, not XSET.
17186
17187 2008-02-01 Kenichi Handa <handa@m17n.org>
17188
17189 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
17190
17191 2008-02-01 Kenichi Handa <handa@m17n.org>
17192
17193 * coding.c (decode_coding): Fix the condition of terminating the
17194 decoding loop.
17195
17196 2008-02-01 Kenichi Handa <handa@m17n.org>
17197
17198 * data.c (Faset): On setting a character bigger than 255 in a
17199 unibyte string, signal an error instead of make the string multibyte.
17200
17201 2008-02-01 Kenichi Handa <handa@m17n.org>
17202
17203 * charset.c (map_charset_chars): Fix for ascii-compatible charset
17204 made by a mapping table.
17205
17206 2008-02-01 Kenichi Handa <handa@m17n.org>
17207
17208 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
17209 not.
17210 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
17211 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
17212
17213 * xterm.c (x_draw_composite_glyph_string_foreground): Check
17214 s->face is NULL or not.
17215
17216 2008-02-01 Kenichi Handa <handa@m17n.org>
17217
17218 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
17219 (x_draw_glyph_string): Fix drawing of right_overhang and
17220 left_overhang around/on cursor.
17221
17222 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
17223
17224 2008-02-01 Kenichi Handa <handa@m17n.org>
17225
17226 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
17227
17228 2008-02-01 Kenichi Handa <handa@m17n.org>
17229
17230 * coding.c (Fdefine_coding_system_internal)
17231 (Fdefine_coding_system_alias): Avoid a duplicated element in
17232 Vcoding_system_alist.
17233
17234 2008-02-01 Kenichi Handa <handa@m17n.org>
17235
17236 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
17237
17238 * coding.c (Qcoding_system_define_form): New variable.
17239 (syms_of_coding): Intern and staticpro it.
17240 (Fcoding_system_p): Check Qcoding_system_define_form.
17241 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
17242
17243 * coding.h (CODING_SYSTEM_P): If ID is not available, call
17244 Fcoding_system_p.
17245 (CHECK_CODING_SYSTEM): If ID is not available, call
17246 Fcheck_coding_system.
17247 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
17248 Try also Fcheck_coding_system.
17249
17250 2008-02-01 Kenichi Handa <handa@m17n.org>
17251
17252 * coding.c (code_conversion_restore): GCPRO arg.
17253
17254 2008-02-01 Kenichi Handa <handa@m17n.org>
17255
17256 * character.c (lisp_string_width): Check multibyteness of STRING.
17257
17258 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17259
17260 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
17261 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
17262 (decode_mac_font_name): Use decode_coding_c_string instead of
17263 decode_coding.
17264 (x_load_font): Initialize fontp->fontset to -1. Set
17265 fontp->encoding_type.
17266
17267 2008-02-01 Kenichi Handa <handa@m17n.org>
17268
17269 * search.c (search_buffer): Give up BM search on case-fold-search
17270 if one of a target character has a case-equivalence of different
17271 byte length even if that target charcter is an ASCII.
17272 (simple_search): Fix calculation of byte length of matched text.
17273 (boyer_moore): Fix handling of case-equivalent multibyte characters.
17274
17275 2008-02-01 Kenichi Handa <handa@m17n.org>
17276
17277 * coding.c (decode_coding): Fix handling of invalid bytes.
17278
17279 2008-02-01 Kenichi Handa <handa@m17n.org>
17280
17281 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
17282 Unicode characters.
17283
17284 2008-02-01 Kenichi Handa <handa@m17n.org>
17285
17286 * coding.c (encode_coding_object): If a pre-write-conversion
17287 function makes a new buffer, kill it.
17288
17289 2008-02-01 Kenichi Handa <handa@m17n.org>
17290
17291 * coding.c (QCascii_compatible_p): New variable.
17292 (syms_of_coding): Initialize it.
17293 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
17294 calling string_char.
17295 (record_conversion_result): Add `default:' case.
17296 (coding_charset_list): Delete unused variable `coding_type'.
17297 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
17298 property in the plist of the coding system.
17299 (Fcoding_system_put): Check QCascii_compatible_p.
17300
17301 2008-02-01 Miles Bader <miles@gnu.org>
17302
17303 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
17304 removed calculation of frame `f', as it's now used.
17305
17306 2008-02-01 Kenichi Handa <handa@m17n.org>
17307
17308 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
17309 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
17310 (UNIDATA): New variable.
17311 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
17312 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
17313 $(RUN_TEMACS) unconditionally.
17314
17315 2008-02-01 Kenichi Handa <handa@m17n.org>
17316
17317 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
17318 (admindir): New variable.
17319 ($(lispsource)international/charprop.el): New target.
17320
17321 2008-02-01 Miles Bader <miles@gnu.org>
17322
17323 * character.c (chars-in-region): Remove obsolete function.
17324 (syms_of_character): Remove its initialization.
17325
17326 2008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
17327
17328 * w32select.c (validate_coding_system)
17329 (setup_windows_coding_system): New functions.
17330 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
17331 setup_windows_coding_system.
17332 (setup_config, Fw32_get_clipboard_data): Use
17333 validate_coding_system.
17334 (Fx_selection_exists): Move call to setup_config to a place
17335 where signals are allowed.
17336
17337 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
17338 (Fcheck_coding_system): Add declarations.
17339
17340 2008-02-01 Kenichi Handa <handa@m17n.org>
17341
17342 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
17343
17344 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17345
17346 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
17347 string as the second argument for x_new_fontset.
17348
17349 2008-02-01 Kenichi Handa <handa@m17n.org>
17350
17351 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
17352 (encode_coding_object): Use safe_call instead of call2.
17353
17354 2008-02-01 Kenichi Handa <handa@m17n.org>
17355
17356 * fontset.c (Fset_fontset_font): Check family element of a given vector.
17357
17358 * Makefile.in (lisp): Include charprop.el.
17359
17360 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17361
17362 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
17363 Not sure if it's unnecessary.
17364
17365 2008-02-01 Steven Tamm <steventamm@mac.com>
17366
17367 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
17368 some possibly unnecessary fontset checking code that crashed
17369 when creating a new frame.
17370
17371 2008-02-01 Kenichi Handa <handa@m17n.org>
17372
17373 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
17374 lookup_face.
17375
17376 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
17377
17378 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
17379
17380 2008-02-01 Kenichi Handa <handa@m17n.org>
17381
17382 * coding.c: Cancel the change done in HEAD on 2008-02-01.
17383 (coding_charset_list): New function.
17384
17385 * coding.h (coding_charset_list): Extern it.
17386
17387 2008-02-01 Kenichi Handa <handa@m17n.org>
17388
17389 * fontset.c (Fset_fontset_font): Call find_font_encoding with
17390 concatenation of family and registry.
17391
17392 2008-02-01 Kenichi Handa <handa@m17n.org>
17393
17394 * character.h (BYTE8_STRING): Fix typo.
17395
17396 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
17397 string to multibyte (sync to HEAD).
17398
17399 * casefiddle.c (casify_region): Handle changes in byte-length
17400 using replace_range_2 (sync to HEAD).
17401
17402 2008-02-01 Andreas Schwab <schwab@suse.de>
17403
17404 * chartab.c (map_char_table): GCPRO table and arg.
17405
17406 2008-02-01 Kenichi Handa <handa@m17n.org>
17407
17408 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
17409 already at limit.
17410
17411 2008-02-01 Kenichi Handa <handa@m17n.org>
17412
17413 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
17414 instead of fast_c_string_match_ignore_case.
17415 (find_font_encoding): Change argument to Lisp_Object. Use
17416 fast_string_match_ignore_case instead of
17417 fast_c_string_match_ignore_case. Change caller.
17418
17419 2008-02-01 Kenichi Handa <handa@m17n.org>
17420
17421 * xdisp.c (get_next_display_element): In unibyte case, decide to
17422 display in octal form by checking a character by
17423 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
17424
17425 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
17426
17427 * character.c (unibyte_has_multibyte_table): New variable.
17428
17429 * character.h (unibyte_has_multibyte_table): Extern it.
17430 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
17431
17432 2008-02-01 Kenichi Handa <handa@m17n.org>
17433
17434 * coding.c (encode_coding_iso_2022): Fix handling of charset
17435 annotation.
17436
17437 2008-02-01 Kenichi Handa <handa@m17n.org>
17438
17439 * coding.c (setup_coding_system): If coding_system is nil, use
17440 Qundecided.
17441 (Fterminal_coding_system): Return nil if terminal coding system is
17442 `undecided'.
17443 (syms_of_coding): Define coding-system `undecided' here. Setup
17444 terminal_coding as `undecided'.
17445
17446 2008-02-01 Kenichi Handa <handa@m17n.org>
17447
17448 * xdisp.c (message_dolog, set_message_1): Call
17449 unibyte_char_to_multibyte with arg type int.
17450
17451 * lread.c (read1): Fix reading of a char-table.
17452
17453 * print.c (print_object): Include sub char-table in circularities
17454 detection.
17455
17456 2008-02-01 Kenichi Handa <handa@m17n.org>
17457
17458 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
17459 Append the found sequences in car of ARGS instead of prepending.
17460
17461 2008-02-01 Kenichi Handa <handa@m17n.org>
17462
17463 * fileio.c (report_file_error): Make a unibyte string from
17464 strerror (errorno).
17465 (Fsubstitute_in_file_name): Fix the arg to
17466 unibyte_char_to_multibyte. It is evaluated twice.
17467
17468 2008-02-01 Kenichi Handa <handa@m17n.org>
17469
17470 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
17471
17472 2008-02-01 Kenichi Handa <handa@m17n.org>
17473
17474 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
17475 BOM is not found.
17476 (detect_coding, detect_coding_system): Optimization for ISO-2022
17477 when no 8-bit data is found.
17478
17479 2008-02-01 Jason Rumney <jasonr@gnu.org>
17480
17481 * w32fns.c (x_to_w32_font): Update to use new coding struct.
17482
17483 2008-02-01 Kenichi Handa <handa@m17n.org>
17484
17485 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
17486 CHARS.
17487
17488 2008-02-01 Steven Tamm <steventamm@mac.com>
17489
17490 * macterm.c (mac_encode_char): Add charset argument and update
17491 to use encoding_type.
17492 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
17493 switch to pure fontset.
17494 (decode_mac_font_name): Temporarily remove decoding.
17495 (x_font_name_to_mac_font_name): Temporarily remove encoding.
17496 (x_load_font): Temporarily remove encoding.
17497
17498 2008-02-01 Kenichi Handa <handa@m17n.org>
17499
17500 * xfaces.c (Fface_font): If frame is not on a window system,
17501 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
17502 refer to face->font.
17503 (split_font_name_into_vector, build_font_name_from_vector)
17504 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
17505 when HAVE_WINDOW_SYSTEM is defined.
17506
17507 2008-02-01 Kenichi Handa <handa@m17n.org>
17508
17509 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
17510 (x_produce_glyphs): Fix setting of members of cmp in case
17511 cmp->glyph_len is zero.
17512
17513 * fontset.c (Fset_fontset_font): Fix docstring.
17514 (Ffontset_info): Make it backward compatible. New arg ALL.
17515
17516 2008-02-01 Kim F. Storm <storm@cua.dk>
17517
17518 * process.c (read_process_output): Grow decoding_buf when needed;
17519 this could cause a crash in allocate_string and compact_small_strings.
17520
17521 2008-02-01 Kenichi Handa <handa@m17n.org>
17522
17523 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
17524
17525 2008-02-01 Kenichi Handa <handa@m17n.org>
17526
17527 * coding.c (setup_coding_system): Set coding->common_flags
17528 correctly for raw-text.
17529 (consume_chars): On encoding unibyte text by raw-text, don't check
17530 multibyte form.
17531 (encode_coding): On encoding by raw-text, never use translation tables.
17532
17533 * fileio.c (e_write): Short cut for the case of no encoding.
17534
17535 2008-02-01 Kenichi Handa <handa@m17n.org>
17536
17537 * coding.c (detect_coding, detect_coding_system): Delete unused
17538 variables.
17539
17540 2008-02-01 Kenichi Handa <handa@m17n.org>
17541
17542 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
17543 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
17544
17545 2008-02-01 Kenichi Handa <handa@m17n.org>
17546
17547 * coding.c (Ffind_coding_systems_region_internal): Include
17548 raw-text and no-conversion in the result.
17549
17550 2008-02-01 Kenichi Handa <handa@m17n.org>
17551
17552 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
17553 (load_font_get_repertory): Delete unnecessary check of ENCODING of
17554 FONT_DEF.
17555 (font_def_arg, add_arg, from_arg, to_arg): New args.
17556 (set_fontset_font): Change argument.
17557 (Fset_fontset_font): Fix for the case that TARGET is a script
17558 name and charset name.
17559 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
17560
17561 2008-02-01 Kenichi Handa <handa@m17n.org>
17562
17563 * fontset.c (fontset_font): Rename from fontset_face. Change return
17564 value.
17565 (face_suitable_for_char_p, face_for_char): Adjust for the change
17566 of fontset_font.
17567 (make_fontset_for_ascii_face): Fix setting of the fontset element
17568 for ASCII.
17569 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
17570 to get a font name.
17571 (Ffontset_info): Adjust for the change of fontset_font.
17572
17573 * coding.c (emacs_mule_char): Check invalid code more rigidly.
17574
17575 * character.h (LEADING_CODE_LATIN_1_MIN)
17576 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
17577
17578 2008-02-01 Kenichi Handa <handa@m17n.org>
17579
17580 * editfns.c (check_translation): New function.
17581 (Ftranslate_region_internal): Handle M:N mapping.
17582
17583 2008-02-01 Kenichi Handa <handa@m17n.org>
17584
17585 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
17586
17587 2008-02-01 Kenichi Handa <handa@m17n.org>
17588
17589 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
17590 goto invalid_code.
17591 (decode_coding_iso_2022): Fix handling of invalid designation.
17592
17593 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
17594 after calling code_conversion_save.
17595
17596 2008-02-01 Kenichi Handa <handa@m17n.org>
17597
17598 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
17599
17600 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
17601
17602 * fontset.c: Include "intervals.h".
17603 (fontset_face): Fix comparing of Lisp_Objects.
17604 (free_face_fontset, new_fontset_from_font_name): Fix
17605 Lisp_Object/int mixup.
17606
17607 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
17608
17609 * coding.c: Add many prototypes for static functions.
17610 (get_translation_table): Allow max_lookup to be NULL.
17611 (decode_coding, Ffind_coding_systems_region_internal)
17612 (Funencodable_char_position, Fcheck_coding_systems_region): Call
17613 get_translation_table with max_lookup NULL.
17614
17615 2008-02-01 Kenichi Handa <handa@m17n.org>
17616
17617 * coding.c (get_translation_table): Declare it as Lisp_Object.
17618 (LOOKUP_TRANSLATION_TABLE): New macro.
17619 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
17620 instead of CHAR_TABLE_REF.
17621
17622 2008-02-01 Kenichi Handa <handa@m17n.org>
17623
17624 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
17625 annotation data format.
17626 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
17627 Change arguments FROM and TO to single argument NCHARS. Change caller.
17628 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
17629 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
17630 (decode_coding_ccl, decode_coding_charset): Pay attention to
17631 coding->charbuf_used.
17632 (get_translation): New function.
17633 (produce_chars): New arguments translation_table and last_block.
17634 Translate characters here. Return number of carryover chars.
17635 Change caller.
17636 (produce_composition): New argument pos. Change caller.
17637 Adjust for the change of annotation data format.
17638 (produce_charset, produce_annotation): Likewise.
17639 (decode_coding, encode_coding): Don't call translate_chars.
17640 (consume_chars): New arg translation_table. Change caller.
17641 (translate_chars): Delete.
17642 (syms_of_coding): Make translation-table's number of extra slots 2.
17643
17644 2008-02-01 Kenichi Handa <handa@m17n.org>
17645
17646 * search.c (simple_search): Fix setting this_pos_byte in backward
17647 search.
17648
17649 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
17650 byte sequence.
17651 (detect_coding_ccl): Fix setting of the variable valids.
17652
17653 2008-02-01 Kenichi Handa <handa@m17n.org>
17654
17655 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
17656
17657 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
17658
17659 * editfns.c (Ftranslate_region_internal): Rename from
17660 Ftranslate_region. Accept a char-table in TABLE.
17661 (syms_of_editfns): Defsubr Stranslate_region_internal.
17662
17663 * xfaces.c (set_lface_from_font_name): If a font is specified for
17664 a frame, generate a fontset from the font.
17665 (build_scalable_font_name): If the scalable font is requested for
17666 a specific size, don't change that size.
17667 (try_font_list): Try a scalable font also in the case that a
17668 pattern string is specified.
17669
17670 2008-02-01 Kenichi Handa <handa@m17n.org>
17671
17672 * xfaces.c (Fface_font): New optional arg CHARACTER.
17673
17674 2008-02-01 Kenichi Handa <handa@m17n.org>
17675
17676 * charset.h (CHARSET_OFFSET): New macro.
17677
17678 2008-02-01 Kenichi Handa <handa@m17n.org>
17679
17680 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
17681
17682 * fontset.c (fontset_face): Handle the case that repertory is a
17683 char-table.
17684 (find_font_encoding): Return nil for unknown encoding.
17685 (Fset_fontset_font): Ignore a font of unknown encoding.
17686
17687 2008-02-01 Kenichi Handa <handa@m17n.org>
17688
17689 * keymap.c (describe_vector): Handle default value of a char table.
17690
17691 * fontset.c (fontset_face): Handle fallback fonts correctly.
17692 (Ffontset_info): Return infomation about fallback fonts.
17693
17694 2008-02-01 Kenichi Handa <handa@m17n.org>
17695
17696 * fontset.c (FONTSET_DEFAULT): New macro.
17697 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
17698 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
17699 the case that it is nil.
17700 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
17701 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
17702
17703 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
17704 subset or superset.
17705
17706 2008-02-01 Kenichi Handa <handa@m17n.org>
17707
17708 * emacs.c (main): Call init_charset after syms_of_XXX.
17709
17710 * charset.c (Vcharset_map_directory): Delete.
17711 (Vcharset_map_path): New variable.
17712 (load_charset_map_from_file): Use Vcharset_map_path instead.
17713 (init_charset): Initialize Vcharset_map_path.
17714 (syms_of_charset): Delete declaration of "charset-map-directory",
17715 add declaration of "charset-map-path".
17716
17717 2008-02-01 Kenichi Handa <handa@m17n.org>
17718
17719 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
17720 ASCII only string.
17721
17722 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
17723
17724 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
17725 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
17726
17727 2008-02-01 Kenichi Handa <handa@m17n.org>
17728
17729 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
17730
17731 * coding.c (QCmnemonic, QCdefalut_char)
17732 (QCdecode_translation_table, QCencode_translation_table)
17733 (QCpost_read_conversion, QCpre_write_conversion): New variables.
17734 (get_translation_table): Return a list of translation tables if
17735 necessary.
17736 (decode_coding): Call get_translation_table with ENCODEP 0.
17737 (char_encodable_p): If translation_table is non-nil, always call
17738 translate_char.
17739 (Fdefine_coding_system_internal): Accept list of translation
17740 tables as :encode-translation-table and :decode-translation-table.
17741 (Fcoding_system_put): New function.
17742 (syms_of_coding): Declare new symbols. Defsubr
17743 Scoding_system_put.
17744 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
17745 typically JISX0212.
17746
17747 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
17748 when the charset is superset type.
17749
17750 * character.c (translate_char): Accept list of translation tables.
17751
17752 2008-02-01 Kenichi Handa <handa@m17n.org>
17753
17754 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
17755 (CODING_ATTR_TRANS_TBL): New macro.
17756
17757 * coding.c (get_translation_table): New function.
17758 (translate_chars): Fix the bug of skipping annotation data.
17759 (decode_coding, encode_coding): Utilize get_translation_table.
17760 (char_encodable_p, Funencodable_char_position): Translate char if
17761 necessary.
17762 (Ffind_coding_systems_region_internal)
17763 (Fcheck_coding_systems_region): Setup translation table for encode
17764 in a coding system attribute vector in advance.
17765 (Fdefine_coding_system_internal): Allow a symbol as translation
17766 table. For shift-jis type coding system, allow 4th charset.
17767
17768 2008-02-01 Kenichi Handa <handa@m17n.org>
17769
17770 * coding.c (decode_coding_sjis): Check the first byte rigidly.
17771
17772 * xdisp.c (get_next_display_element): Pass -1 as POS to
17773 FACE_FOR_CHAR if displaying a C-string.
17774
17775 2008-02-01 Kenichi Handa <handa@m17n.org>
17776
17777 * composite.c (get_composition_id): Handle xoff and yoff in a
17778 composition rule.
17779
17780 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
17781 (struct composition): New member lbearing and rbearing.
17782
17783 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
17784 (x_get_glyph_overhangs): Handle a composition glyph.
17785 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
17786
17787 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
17788 composition glyph.
17789
17790 2008-02-01 Kenichi Handa <handa@m17n.org>
17791
17792 * print.c: Include charset.h.
17793 (Vprint_charset_text_property): New variable.
17794 (Qdefault): Extern it.
17795 (PRINT_STRING_NON_CHARSET_FOUND)
17796 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
17797 (print_check_string_result): New variable.
17798 (print_check_string_charset_prop): New function.
17799 (print_prune_charset_plist): New variable.
17800 (print_prune_string_charset): New function.
17801 (print_object): Call print_prune_string_charset if
17802 Vprint_charset_text_property is not t.
17803 (print_interval): Print nothing if interval->plist is nil.
17804 (syms_of_print): Declare Vprint_charset_text_property as a lisp
17805 variable. Init and staticpro print_prune_charset_plist.
17806
17807 2008-02-01 Kenichi Handa <handa@m17n.org>
17808
17809 * fontset.c (new_fontset_from_font_name): Use the specified font
17810 for all characters in the new fontset.
17811
17812 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
17813 OBJECT args.
17814
17815 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
17816 OBJECT args for composition too.
17817
17818 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
17819 OBJECT args.
17820
17821 2008-02-01 Kenichi Handa <handa@m17n.org>
17822
17823 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
17824
17825 * fontset.c (reorder_font_vector): Adjust for the change of
17826 FONT_DEF format.
17827 (fontset_face): New arg id. Change caller.
17828 (face_for_char): New args pos and object.
17829 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
17830 (fs_query_fontset): Check NAME by Fassoc too.
17831 (Fset_fontset_font): Allow non-XLFD font name.
17832 (Ffontset_info): Adjust for the change of FONT_DEF format.
17833
17834 * fontset.h (face_for_char): Adjust prototype.
17835
17836 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
17837 (append_space, extend_face_to_end_of_line)
17838 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
17839 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
17840
17841 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
17842 POS and OBJECT args.
17843
17844 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
17845 POS and OBJECT args.
17846
17847 2008-02-01 Jason Rumney <jasonr@gnu.org>
17848
17849 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
17850 of GlobalAlloc'ed memory.
17851
17852 2008-02-01 Kenichi Handa <handa@m17n.org>
17853
17854 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
17855
17856 * charset.h (charset_table_used): Delete extern.
17857
17858 * charset.c (charset_table_used): Make it static.
17859 (map_charset_chars): Fix args to c_function with.
17860
17861 * chartab.c (map_sub_char_table_for_charset): Fix args to
17862 c_function with.
17863
17864 * coding.h (enum coding_result_code): Delete
17865 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
17866
17867 * coding.c (Qinsufficient_source, Qinconsistent_eol)
17868 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
17869 (Vlast_code_conversion_error): New variables.
17870 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
17871 (ONE_MORE_BYTE): Record error if any instead of signaling an
17872 error. If non-ASCII multibyte char is found, return the negative
17873 value of the code. All callers changed to check it.
17874 (ONE_MORE_BYTE_NO_CHECK): Likewise.
17875 (record_conversion_result): New function. Change all codes setting
17876 coding->result to call this function.
17877 (detect_coding_utf_8, decode_coding_utf_8)
17878 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
17879 Don't use the local variable incomplete.
17880 (emacs_mule_char): Change the second arg to `const'.
17881 (decode_coding): Fix of flushing out unprocessed data.
17882 (make_conversion_work_buffer): Fix making of a work buffer.
17883 (decode_coding_object): Return coding->dst_object.
17884
17885 * fontset.c (set_fontset_font): Fix args.
17886
17887 * lisp.h (CHARACTERBITS): Define as 22.
17888
17889 * process.c (send_process): Be sure to set coding->src_multibyte.
17890
17891 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
17892
17893 2008-02-01 Kenichi Handa <handa@m17n.org>
17894
17895 * xdisp.c (handle_auto_composed_prop): Give limit to
17896 Fnext_single_char_property_change.
17897
17898 2008-02-01 Kenichi Handa <handa@m17n.org>
17899
17900 * composite.c (syms_of_composite): Don't make the composition hash
17901 table weak.
17902
17903 * fontset.c (Fset_fontset_font): Fix docstring.
17904
17905 * lisp.h (detect_coding_system): Adjust prototype.
17906
17907 * fileio.c (kill_workbuf_unwind): Delete this function.
17908 (Finsert_file_contents): Adjust the call of detect_coding_system.
17909 Get conversion_buffer by code_conversion_save. Use the macro
17910 CODING_MAY_REQUIRE_DECODING. After decoding, update
17911 coding_system.
17912
17913 * coding.h (make_conversion_work_buffer): Delete extern.
17914 (code_conversion_save): Extern it.
17915
17916 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
17917 (CODING_GET_INFO): Delete argument eol_type. Change callers.
17918 (decode_coding_utf_8): Don't do eol converion.
17919 (detect_coding_utf_16): Check coding->src_chars, not
17920 coding->src_bytes. Add heuristics for those that have no signature.
17921 (decode_coding_emacs_mule, decode_coding_iso_2022)
17922 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
17923 Don't do eol converion.
17924 (adjust_coding_eol_type): Return a new coding system.
17925 (detect_coding): Don't detect eol. Fix for utf-16 detection.
17926 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
17927 each change.
17928 (decode_coding): Pay attention to undo_list. Do eol conversion for
17929 all types of coding-systems (if necessary).
17930 (Vcode_conversion_work_buf_list): Delete it.
17931 (Vcode_conversion_reused_workbuf): Rename from
17932 Vcode_conversion_reused_work_buf.
17933 (Vcode_conversion_workbuf_name): New variable.
17934 (reused_workbuf_in_use): New variable.
17935 (make_conversion_work_buffer): Delete the arg DEPTH.
17936 (code_conversion_restore): Change argument to cons.
17937 (code_conversion_save): Delete the argument BUFFER. Change callers.
17938 (detect_coding_system): New argument src_chars. Change callers.
17939 Fix for utf-16 detection.
17940 (init_coding_once): Don't use ISO_carriage_return.
17941 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
17942 reused_workbuf_in_use.
17943
17944 2008-02-01 Kenichi Handa <handa@m17n.org>
17945
17946 * keymap.c (store_in_keymap): Pay attention to the case that idx
17947 is a cons specifying a character range.
17948
17949 2008-02-01 Kenichi Handa <handa@m17n.org>
17950
17951 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
17952 HANDLED_RECOMPUTE_PROPS.
17953
17954 * coding.c (Fdefine_coding_system_internal): Fix checking of
17955 ascii compatibility.
17956
17957 2008-02-01 Kenichi Handa <handa@m17n.org>
17958
17959 * charset.c (find_charsets_in_text): Delete unused locale variable.
17960 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
17961
17962 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
17963 Resync charset_list to Vemacs_mule_charset_list.
17964
17965 * keymap.c (store_in_keymap): Pay attention to the case that idx
17966 is a cons specifying a character range.
17967
17968 2008-02-01 Kenichi Handa <handa@m17n.org>
17969
17970 * composite.c (update_compositions): Bind inhibit-read-only, etc
17971 to t before calling remove-list-of-text-properties.
17972
17973 * print.c (print_object): Always print ASCII chars as is.
17974
17975 2008-02-01 Kenichi Handa <handa@m17n.org>
17976
17977 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
17978
17979 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
17980 is a char table.
17981
17982 2008-02-01 Kenichi Handa <handa@m17n.org>
17983
17984 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
17985
17986 2008-02-01 Kenichi Handa <handa@m17n.org>
17987
17988 * xfaces.c (set_lface_from_font_name): Fix for the case that
17989 FONTNAME is not fontset name.
17990
17991 2008-02-01 Kenichi Handa <handa@m17n.org>
17992
17993 * fns.c (base64_encode_1): Fix previous change.
17994
17995 2008-02-01 Kenichi Handa <handa@m17n.org>
17996
17997 * fontset.c (set_fontset_font): New function.
17998 (Fset_fontset_font): If a font is specified for a charset, use
17999 map_charset_chars to store the font spec in a fontset.
18000
18001 2008-02-01 Kenichi Handa <handa@m17n.org>
18002
18003 * fontset.c (fontset_face): Create a fallback fontset on demand.
18004 (make_fontset): Don't create a fallback fontset here.
18005 (free_face_fontset): Free a fallback fontset (if any) too.
18006 (n_auto_fontsets): Delete this variable.
18007 (auto_fontset_alist): New variable.
18008 (new_fontset_from_font_name): Check auto_fontset_alist.
18009 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
18010 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
18011 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
18012 Defsubr Sfontset_list_all.
18013
18014 2008-02-01 Kenichi Handa <handa@m17n.org>
18015
18016 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
18017
18018 2008-02-01 Kenichi Handa <handa@m17n.org>
18019
18020 * fontset.c (Fnew_fontset): Check NAME more rigidly.
18021
18022 2008-02-01 Kenichi Handa <handa@m17n.org>
18023
18024 * editfns.c (Fgoto_char): Fix docstring.
18025
18026 2008-02-01 Kenichi Handa <handa@m17n.org>
18027
18028 * insdel.c (insert_from_gap): Adjust intervals correctly.
18029
18030 2008-02-01 Jason Rumney <jasonr@gnu.org>
18031
18032 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
18033 (pfnGetFontUnicodeRanges): New dynamically loaded function.
18034 (w32_initialize): Try to load it.
18035 (x_get_font_repertory): Use it if available.
18036 (w32_encode_char): Add shortcut for unicode output.
18037
18038 * w32fns.c (w32_load_system_font): Default charset to -1.
18039 (x_to_w32_charset): Match all fonts for unicode.
18040 (w32_to_x_charset): New parameter matching. Don't return partial
18041 or wildcard charsets.
18042 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
18043 (w32_codepage_for_font): Return CP_UNICODE for unicode.
18044 (w32_to_x_font): Match charset to real charset.
18045 (enum_font_cb2): Always list unicode versions.
18046
18047 * makefile.w32-in (temacs): Increase EMHEAP.
18048
18049 2008-02-01 Jason Rumney <jasonr@gnu.org>
18050
18051 * w32term.c (w32_encode_char): New charset parameter.
18052 font_info.encoding becomes encoding_type.
18053 (x_get_font_repertory): New function. Warning: stub only!
18054 (x_new_font): Return quickly if font already set.
18055 (x_new_fontset): fontsetname parameter is Lisp_Object.
18056 Use new fs_query_fontset. Try new_fontset_from_font_name.
18057 Use fontset_name for return value.
18058
18059 * w32term.h: Declare x_get_font_repertory.
18060
18061 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
18062 place of find_charset_in_text. Use encode_coding_object in place
18063 of encode_coding.
18064 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
18065 decode_coding.
18066
18067 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
18068 of x_new_fontset.
18069 (w32_load_system_font): Initialize charset as unicode.
18070 font_info.encoding becomes encoding_type.
18071 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
18072 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
18073 (syms_of_w32fns): Set get_font_repertory_func.
18074
18075 * w32console.c: Include character.h. Use terminal_encode_buffer
18076 from term.c.
18077 (write_glyphs): Use new version of encode_terminal_code. Use
18078 encode_coding_object in place of encode_coding.
18079
18080 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
18081 encoding becomes encoding_type.
18082
18083 * term.c (terminal_encode_buffer): Make externally visible.
18084
18085 * makefile.w32-in: Add character.h dependancies.
18086 (character.o, chartab.o): New targets.
18087
18088 2008-02-01 Kenichi Handa <handa@m17n.org>
18089
18090 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
18091 CODING_ID_EOL_TYPE.
18092
18093 2008-02-01 Andreas Schwab <schwab@suse.de>
18094
18095 * coding.c (produce_chars): Revert last change.
18096
18097 2008-02-01 Kenichi Handa <handa@m17n.org>
18098
18099 * charset.h (charset_unicode): Extern it.
18100
18101 * charset.c (string_xstring_p): Check by (C >= 0x100).
18102 (find_charsets_in_text): Change format of the arc CHARSETS. New
18103 arg MULTIBYTE.
18104 (Ffind_charset_region, Ffind_charset_string): Adjust for the
18105 change of find_charsets_in_text.
18106 (Fsplit_char): Fix doc. Never return unknown.
18107
18108 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
18109
18110 * coding.c (Fdefine_coding_system_alias): Update
18111 Vcoding_system_list.
18112
18113 * fontset.c (load_font_get_repertory): Pay attention to the case
18114 that ENCODING of a font is specified by a char-table.
18115
18116 * xterm.c (x_get_font_repertory): Handle the case that the
18117 encoding of font is other than Unicode.
18118
18119 2008-02-01 Kenichi Handa <handa@m17n.org>
18120
18121 * term.c (encode_terminal_code): Don't handle glyph-table. Check
18122 if a character is encodable by the terminal coding system. If
18123 not, produces proper number of `?'s. Update
18124 terminal_encode_buffer and terminal_encode_buf_size if necessary.
18125 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
18126
18127 2008-02-01 Kenichi Handa <handa@m17n.org>
18128
18129 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
18130 variables.
18131 (encode_terminal_code): Change argument. Encode multiple
18132 characters at once. Store the result of encoding in
18133 terminal_encode_buffer.
18134 (write_glyphs, insert_glyphs): Adjust for the change of
18135 encode_terminal_code.
18136 (term_init): Initialize terminal_encode_buffer and
18137 terminal_encode_buf_size.
18138
18139 * coding.c (consume_chars): If coding->src_object is nil, don't
18140 check annotation.
18141
18142 2008-02-01 Kenichi Handa <handa@m17n.org>
18143
18144 * character.c (char_string): Use ASCII_CHAR_P instead of
18145 SINGLE_BYTE_CHAR_P.
18146
18147 2008-02-01 Kenichi Handa <handa@m17n.org>
18148
18149 * xdisp.c (handle_auto_composed_prop): Check if the last
18150 characters of auto-composed region is newly composed with the
18151 following characters.
18152 (handle_composition_prop): Fix checking of point being inside
18153 composition.
18154
18155 2008-02-01 Kenichi Handa <handa@m17n.org>
18156
18157 * fns.c (concat): Don't change multibyteness of the result by
18158 concatenating an 8-bit character.
18159
18160 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
18161 multibyteness of the result when newelt is an 8-bit character.
18162
18163 2008-02-01 Dave Love <fx@gnu.org>
18164
18165 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
18166 EMACS_INT.
18167
18168 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
18169
18170 * xfaces.c (face_numeric_value): Declare dim size_t.
18171 (Finternal_lisp_face_equal_p): Remove unused f.
18172
18173 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
18174 (MATRIX_ROW): Remove unused vars.
18175 (draw_glyphs, x_insert_glyphs, fast_find_position)
18176 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
18177 byte/char counts.
18178
18179 * regex.c (regex_compile): Remove unused var.
18180
18181 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
18182
18183 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
18184 (Faccessible_keymaps, where_is_internal): Remove unused vars.
18185
18186 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
18187
18188 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
18189
18190 * fileio.c (Fwrite_region): Remove unused var.
18191
18192 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
18193 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
18194
18195 * composite.c (Fremove_list_of_text_properties): Declare.
18196
18197 * coding.c (inhibit_pre_post_conversion): Remove (unused).
18198 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
18199 (coding_inherit_eol_type): Remove unused attrs.
18200 (detect_coding): Cast arg of detect_eol.
18201
18202 * charset.c (syms_of_charset): Remove unused var p.
18203 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
18204 byte/char counts.
18205
18206 * casetab.c (set_case_table): Remove unused var.
18207
18208 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
18209 unused vars.
18210
18211 2008-02-01 Dave Love <fx@gnu.org>
18212
18213 * xterm.c (x_bitmap_mask): Declare.
18214
18215 2008-02-01 Dave Love <fx@gnu.org>
18216
18217 * xterm.c (x_term_init): Fix type error.
18218
18219 * lisp.h: Add Funibyte_char_to_multibyte.
18220
18221 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
18222 (Fset_coding_system_priority): Doc fix.
18223
18224 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
18225
18226 * indent.c (check_composition): Make start and end EMACS_INT.
18227
18228 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
18229
18230 * xdisp.c (handle_composition_prop, check_point_in_composition):
18231 Make buffer positions EMACS_INT.
18232
18233 * composite.c (find_composition, run_composition_function)
18234 (update_compositions, Ffind_composition_internal): Make buffer
18235 positions EMACS_INT.
18236
18237 * composite.h (find_composition, update_compositions): Make
18238 position args EMACS_INT.
18239
18240 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
18241
18242 * intervals.c (get_property_and_range):
18243 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
18244
18245 * unexalpha.c: Don't include varargs.h.
18246
18247 2008-02-01 Dave Love <fx@gnu.org>
18248
18249 * coding.h (ENCODE_UTF_8): New.
18250
18251 * Makefile.in (gtkutil.o): Depend on coding.h.
18252
18253 * coding.c (Fset_coding_system_priority): Doc fix.
18254
18255 2008-02-01 Kenichi Handa <handa@m17n.org>
18256
18257 * fileio.c (Finsert_file_contents): Call setup_coding_system in
18258 the case of auto saving.
18259
18260 2008-02-01 Andreas Schwab <schwab@suse.de>
18261
18262 * chartab.c (map_char_table, map_char_table_for_charset): Protect
18263 `range' from GC.
18264
18265 2008-02-01 Kenichi Handa <handa@m17n.org>
18266
18267 * coding.c (decode_coding_sjis): Check bytes more rigidly.
18268
18269 2008-02-01 Kenichi Handa <handa@m17n.org>
18270
18271 * fileio.c (choose_write_coding_system): Return a decided coding system.
18272 (Fwrite_region): Set Vlast_coding_system_used to the return value
18273 of choose_write_coding_system.
18274
18275 2008-02-01 Kenichi Handa <handa@m17n.org>
18276
18277 * charset.c (Fset_charset_priority): Pay attention to duplicated
18278 arguments.
18279
18280 * coding.c (QCcategory): New variable.
18281 (syms_of_coding): Defsym it. Set all elements of
18282 Vcoding_category_table and their symbol values.
18283 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
18284 coding-category-XXX, and coding-category-list.
18285 (Fdefine_coding_system_internal): Add category in the plist.
18286
18287 2008-02-01 Kenichi Handa <handa@m17n.org>
18288
18289 * callproc.c (Fcall_process): Handle carryover correctly.
18290
18291 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
18292 (raw_text_coding_system): Check NILP (coding_system).
18293 (coding_inherit_eol_type): Check NILP (coding_system) and
18294 NILP (parent).
18295 (consume_chars): Fix for the case of raw-text.
18296
18297 * process.c (read_process_output): Handle carryover correctly.
18298
18299 2008-02-01 Dave Love <fx@gnu.org>
18300
18301 * regex.c (re_search_2): Fix last change.
18302
18303 2008-02-01 Kenichi Handa <handa@m17n.org>
18304
18305 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
18306 target_multibyte. Even in a unibyte case, return a converted
18307 multibyte char.
18308 (GET_CHAR_AFTER): New macro.
18309 (PATFETCH): Translate via multibyte char.
18310 (HANDLE_UNIBYTE_RANGE): Delete this macro.
18311 (SETUP_MULTIBYTE_RANGE): New macro.
18312 (regex_compile): Setup compiled code so that its multibyteness
18313 matches that of a target. Fix the handling of "[X-YZ]" using
18314 SETUP_MULTIBYTE_RANGE.
18315 (analyse_first) <charset>: For filling fastmap for all multibyte
18316 characters, don't check by BASE_LEADING_CODE_P.
18317 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
18318 the same as RE_MULTIBYTE_P (bufp) now.
18319 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
18320 (TARGET_CHAR_AND_LENGTH): Delete this macro.
18321 (TRANSLATE_VIA_MULTIBYTE): New macro.
18322 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
18323 It is the same as RE_MULTIBYTE_P (bufp) now.
18324 <exactn>: Translate via multibyte.
18325 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
18326 translate it.
18327 <charset, charset_not>: Fetch a character by
18328 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
18329 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
18330 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
18331 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
18332 by GET_CHAR_AFTER.
18333 (bcmp_translate): Likewise.
18334
18335 * search.c (compile_pattern): Check the member target_multibyte,
18336 not the member multibyte of buf.
18337
18338 * lread.c (read1): While reading a string, set force_singlebyte
18339 and force_multibyte correctly.
18340
18341 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
18342 up of unibyte_to_multibyte_table.
18343
18344 2008-02-01 Kenichi Handa <handa@m17n.org>
18345
18346 * coding.c (setup_coding_system): If coding has
18347 post-read-conversion or pre-write-conversion, set
18348 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
18349 respectively.
18350 (decode_coding_gap): Run post-read-conversion if any.
18351
18352 * fileio.c (Finsert_file_contents): Even if we read into a
18353 unibyte buffer, check if we must decode the result or not.
18354
18355 2008-02-01 Kenichi Handa <handa@m17n.org>
18356
18357 * coding.c (make_conversion_work_buffer): Change the work buffer
18358 name to the same one as that of Emacs 21.
18359
18360 2008-02-01 Kenichi Handa <handa@m17n.org>
18361
18362 * coding.h (make_conversion_work_buffer): Adjust prototype.
18363 (code_conversion_restore): Don't extern it.
18364
18365 * coding.c (detected_mask): Delete unused variable.
18366 (decode_coding_iso_2022): Pay attention to the byte sequence of
18367 CTEXT extended segment, and retain those bytes as is.
18368 (decode_coding_ccl): Delete unused variable `valids'.
18369 (setup_coding_system): Delete unused variable `category'.
18370 (consume_chars): Delete unused variable `category'. Make it work
18371 for non-multibyte case.
18372 (make_conversion_work_buffer): Change argument.
18373 (saved_coding): Delete unused variable.
18374 (code_conversion_restore): Don't check saved_coding->destination.
18375 (code_conversion_save): New function.
18376 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
18377 instead of record_unwind_protect.
18378 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
18379 (detect_coding_system): Delete unused variable `mask'.
18380 (Fdefine_coding_system_internal): Delete unused variable id.
18381
18382 * fileio.c (kill_workbuf_unwind): New function.
18383 (Finsert_file_contents): On replacing, call
18384 make_conversion_work_buffer with correct args, and call
18385 record_unwind_protect with the first arg kill_workbuf_unwind.
18386
18387 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
18388
18389 2008-02-01 Kenichi Handa <handa@m17n.org>
18390
18391 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
18392 (fontset_add): Fix for the case that TO is less than TO1.
18393 (Ffontset_info): Don't use fallback fontset on checking the
18394 default fontset.
18395 (dump_fontset): New function for debugging.
18396
18397 * coding.c (Fdefine_coding_system_internal): Fix for the case that
18398 coding_type is Qcharset.
18399
18400 2008-02-01 Kenichi Handa <handa@m17n.org>
18401
18402 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
18403 (map_char_table): Don't inherit the value from the parent on
18404 initializing VAL. Adjust for the above change.
18405
18406 2008-02-01 Kenichi Handa <handa@m17n.org>
18407
18408 * coding.c (Qsignature, Qendian): Delete these variables.
18409 (syms_of_coding): Don't initialize them.
18410 (CATEGORY_MASK_UTF_16_AUTO): New macro.
18411 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
18412 detect_info->found.
18413 (decode_coding_utf_16): Don't detect BOM here.
18414 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
18415 is NOT utf_16_without_bom.
18416 (setup_coding_system): For a coding system of type utf-16, check
18417 if the attribute :endian is Qbig or not (not nil or not), and set
18418 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
18419 (detect_coding): If coding type is utf-16 and BOM detection is
18420 required, detect it.
18421 (Fdefine_coding_system_internal): For a coding system of type
18422 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
18423
18424 2008-02-01 Kenichi Handa <handa@m17n.org>
18425
18426 * coding.c (coding_set_source): Fix for the case that the current
18427 buffer is different from coding->src_object.
18428 (decode_coding_object): Don't use the conversion work buffer if
18429 DST_OBJECT is a buffer.
18430
18431 2008-02-01 Dave Love <fx@gnu.org>
18432
18433 * lread.c (read_emacs_mule_char) [len==2]: Index
18434 emacs_mule_charset correctly.
18435
18436 2008-02-01 Dave Love <fx@gnu.org>
18437
18438 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
18439 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
18440 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
18441 treated specially.)
18442 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
18443 (detected_mask): Remove Big5 bits.
18444
18445 2008-02-01 Kenichi Handa <handa@m17n.org>
18446
18447 The following changes are to make the font rescaling facility
18448 compatible with Emacs 21.
18449
18450 * xfaces.c (Vface_font_rescale_alist): Rename from
18451 Vface_resizing_fonts.
18452 (struct font_name): Rename member resizing_ratio to rescale_ratio.
18453 (font_rescale_ratio): Rename from font_resizing_ratio.
18454 (split_font_name): Set font->rescale_ratio.
18455 (better_font_p): Pay attention to font->rescale_ratio.
18456 (build_scalable_font_name): Likewise. Change RESX, and RESY
18457 fields.
18458 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
18459
18460 2008-02-01 Kenichi Handa <handa@m17n.org>
18461
18462 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
18463 (Qutf_16_le): Remove these variables.
18464 (syms_of_coding): Don't DEFSYM them.
18465 (decode_coding_utf_16): Fix handling of BOM.
18466 (encode_coding_utf_16): Fix handling of BOM.
18467
18468 2008-02-01 Kenichi Handa <handa@m17n.org>
18469
18470 * fileio.c (Finsert_file_contents): On replacing, before decoding
18471 the file into the work buffer, set point of the work buffer to the end.
18472
18473 2008-02-01 Dave Love <fx@gnu.org>
18474
18475 * coding.c (Fcheck_coding_systems_region): Fix type errors.
18476
18477 2008-02-01 Dave Love <fx@gnu.org>
18478
18479 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
18480 and fix C types.
18481
18482 2008-02-01 Kenichi Handa <handa@m17n.org>
18483
18484 * xdisp.c (SKIP_GLYPHS): New macro.
18485 (set_cursor_from_row): Pay attention to string display properties.
18486
18487 * category.c (copy_category_entry): Fix for the case that RANGE
18488 is an integer.
18489
18490 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
18491
18492 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
18493
18494 2008-02-01 Kenichi Handa <handa@m17n.org>
18495
18496 * charset.c (Fcharset_id_internal): New function.
18497 (syms_of_charset): Defsubr it.
18498
18499 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
18500 with the last arg charset_list acquired from coding.
18501 (Fdefine_coding_system_internal): For ccl-based coding system, fix
18502 the attribute coding_attr_ccl_valids.
18503
18504 * coding.h (enum define_coding_ccl_arg_index): Set the first
18505 member coding_arg_ccl_decoder to coding_arg_max.
18506
18507 * ccl.h (ccl_driver): Adjust prototype.
18508
18509 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
18510 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
18511 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
18512 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
18513 last arg Qnil.
18514
18515 2008-02-01 Kenichi Handa <handa@m17n.org>
18516
18517 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
18518 call encode_char.
18519
18520 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
18521
18522 2008-02-01 Dave Love <fx@gnu.org>
18523
18524 * composite.c (syms_of_composite): Make composition_hash_table weak.
18525
18526 2008-02-01 Kenichi Handa <handa@m17n.org>
18527
18528 * dispextern.h (check_face_attributes, generate_ascii_font_name)
18529 (font_name_registry): Don't extern them.
18530 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
18531
18532 * fontset.h (Qfontset): Don't extern it.
18533 (new_fontset_from_font_name): Extern it.
18534
18535 * fontset.c: Give 8 extra slots to fontset objects.
18536 (Qfontset_info): New variable.
18537 (syms_of_fontset): Defsym it.
18538 (FONTSET_FALLBACK): New macro.
18539 (fontset_face): Try also the default fontset.
18540 (make_fontset): Realize a fallback fontset from the default fontset.
18541 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
18542 using split_font_name_into_vector and build_font_name_from_vector.
18543 (Fset_fontset_font): Access the elements of font_spec by enum
18544 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
18545 name by using split_font_name_into_vector.
18546 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
18547 generate a proper font name from the fontset name. Update
18548 Vfontset_alias_alist.
18549 (n_auto_fontsets): New variable.
18550 (new_fontset_from_font_name): New function.
18551 (Ffont_info): Store the information about fonts generated from the
18552 default fontset in the first extra slot of the returned char-table.
18553
18554 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
18555 (font_name_registry): Delete function.
18556 (split_font_name_into_vector): New function.
18557 (build_font_name_from_vector): New function.
18558 (font_list): The argument REGISTRY is now a list of registry names.
18559 (choose_face_font): If we are choosing an ASCII font, and ATTRS
18560 specifies an explicit font name, return the name as is. Make a
18561 list of registy names.
18562
18563 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
18564 of x_new_fontset.
18565 (Fx_create_frame): Don't call x_new_fontset here. Just use
18566 x_list_fonts to check the existence of fonts.
18567
18568 * xterm.h (x_new_fontset): Adjust prototype.
18569
18570 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
18571 string. Use new_fontset_from_font_name to create a fontset from a
18572 font name.
18573
18574 2008-02-01 Kenichi Handa <handa@m17n.org>
18575
18576 * syntax.c (Vfind_word_boundary_function_table): New name for
18577 Vnext_word_boundary_function_table.
18578 (find-word-boundary-function-table): New name for
18579 next-word-boundary-function-table.
18580
18581 2008-02-01 Dave Love <fx@gnu.org>
18582
18583 * Makefile.in: Fix some dependencies.
18584
18585 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
18586 set it to nil before returning.
18587
18588 * composite.c (update_compositions): Fix type error.
18589
18590 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
18591
18592 2008-02-01 Kenichi Handa <handa@m17n.org>
18593
18594 * xterm.c (x_new_font): Optimize for the case that the font is
18595 already set for the frame.
18596
18597 2008-02-01 Kenichi Handa <handa@m17n.org>
18598
18599 * chartab.c (char_table_ascii): Check if the char table contents
18600 is sub-char-table or not.
18601 (char_table_set, char_table_set_range): Fix argument to
18602 char_table_ascii.
18603
18604 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
18605 (detect_coding_utf_8, detect_coding_utf_16)
18606 (detect_coding_emacs_mule, detect_coding_iso_2022)
18607 (detect_coding_sjis, detect_coding_big5)
18608 (detect_coding_ccl, detect_coding_charset): Change argument MASK
18609 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
18610 sequence is valid in this coding system. Change callers.
18611 (MAX_ANNOTATION_LENGTH): New macro.
18612 (ADD_ANNOTATION_DATA): New macro.
18613 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
18614 ADD_ANNOTATION_DATA. Change the format of annotation data.
18615 (ADD_CHARSET_DATA): New macro.
18616 (emacs_mule_char): New argument ID. Change callers.
18617 (decode_coding_emacs_mule, decode_coding_iso_2022)
18618 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
18619 Produce charset annotation data in coding->charbuf.
18620 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
18621 to charset annotation data in coding->charbuf.
18622 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
18623 coding->common_flags if the coding system is iso-2022 based and
18624 uses designation.
18625 (produce_composition): Adjust for the new annotation data format.
18626 (produce_charset): New function.
18627 (produce_annotation): Handle charset annotation.
18628 (handle_composition_annotation, handle_charset_annotation): New
18629 functions.
18630 (consume_chars): Handle charset annotation. Utilize the above two
18631 functions.
18632 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
18633 buffer, get the deleted text as a string and set
18634 coding->src_object to that string.
18635 (detect_coding, detect_coding_system): Use the new struct
18636 coding_detection_info.
18637
18638 * coding.h (struct coding_detection_info): New structure.
18639 (struct coding_system): Adjust prototype of the member `detector'.
18640 (CODING_ANNOTATE_CHARSET_MASK): New macro.
18641
18642 2008-02-01 Kenichi Handa <handa@m17n.org>
18643
18644 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
18645
18646 2008-02-01 Dave Love <fx@gnu.org>
18647
18648 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
18649 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
18650 to new local and nullify apropos_accumulate before returning.
18651 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
18652
18653 2008-02-01 Kenichi Handa <handa@m17n.org>
18654
18655 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
18656 correctly.
18657
18658 2008-02-01 Dave Love <fx@gnu.org>
18659
18660 * fns.c (Flanginfo): Call synchronize_system_time_locale.
18661
18662 2008-02-01 Kenichi Handa <handa@m17n.org>
18663
18664 The following changes are to make character composition happen
18665 automatically on displaying.
18666
18667 * Makefile.in (lisp, shortlisp): Add composite.elc.
18668
18669 * composite.h (Qauto_composed, Vauto_composition_function)
18670 (Qauto_composition_function): Extern them.
18671
18672 * composite.c (Vcomposition_function_table)
18673 (Qcomposition_function_table): Delete variables.
18674 (Qauto_composed, Vauto_composition_function)
18675 (Qauto_composition_function): New variables.
18676 (run_composition_function): Don't call
18677 compose-chars-after-function.
18678 (update_compositions): Clear `auto-composed' text property.
18679 (compose_chars_in_text): Delete this function.
18680 (syms_of_composite): Staticpro Qauto_composed and
18681 Qauto_composition_function. Declare Vauto_composition_function as
18682 a Lisp variable.
18683
18684 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
18685
18686 * xdisp.c (it_props): Add an entry for Qauto_composed.
18687 (handle_auto_composed_prop): New function.
18688
18689 * xselect.c (selection_data_to_lisp_data): Don't call
18690 compose_chars_in_text.
18691
18692 2008-02-01 Dave Love <fx@gnu.org>
18693
18694 * keyboard.c (read_char): Modify checking around use of
18695 Vkeyboard_translate_table.
18696
18697 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
18698 and fix C types.
18699
18700 2008-02-01 Kenichi Handa <handa@m17n.org>
18701
18702 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
18703 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
18704 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
18705 the case that the last byte is '\r' correctly.
18706 (decode_coding): Flush out the unprocessed data correctly.
18707 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
18708
18709 2008-02-01 Dave Love <fx@gnu.org>
18710
18711 * xterm.c (XTread_socket): Fix changes for defined keysyms.
18712 Add XK_ISO... case.
18713 (xaw_scroll_callback): Revert last change.
18714
18715 2008-02-01 Kenichi Handa <handa@m17n.org>
18716
18717 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
18718
18719 2008-02-01 Kenichi Handa <handa@m17n.org>
18720
18721 * xfaces.c (Vface_resizing_fonts): New variable.
18722 (struct font_name): New member `resizing_ratio'.
18723 (font_resizing_ratio): New function.
18724 (split_font_name): Set font->resizing_ratio.
18725 (better_font_p): Pay attention to font->resizing_ratio.
18726 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
18727 RESX, and RESY fields.
18728 (try_alternative_families): Try scalable fonts if
18729 Vscalable_fonts_allowed is not Qt.
18730 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
18731
18732 2008-02-01 Dave Love <fx@gnu.org>
18733
18734 * xterm.c (xaw_scroll_callback): Cast correctly.
18735
18736 2008-02-01 Dave Love <fx@gnu.org>
18737
18738 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
18739 (lispy_kana_keys): Comment out.
18740 (make_lispy_event) [XK_kana_A]: Comment out.
18741
18742 * xterm.c (xaw_scroll_callback): Cast call_data.
18743 (XTread_socket): Deal with ASCII keysyms.
18744 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
18745
18746 2008-02-01 Dave Love <fx@gnu.org>
18747
18748 * xterm.c (Vx_keysym_table): New.
18749 (syms_of_xterm): Initialize it.
18750 (XTread_socket): Use it.
18751 From head: Eliminate incorrect optimization that tried to avoid
18752 decoding the output of X*LookupString.
18753 (x_get_font_repertory): Delete charset declaration.
18754
18755 2008-02-01 Kenichi Handa <handa@m17n.org>
18756
18757 * coding.c (detect_coding_charset): If only ASCII bytes are found,
18758 return 0.
18759 (Fdefine_coding_system_internal): Setup
18760 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
18761
18762 2008-02-01 Dave Love <fx@gnu.org>
18763
18764 * coding.c (Fcheck_coding_system): Doc fix.
18765
18766 * editfns.c (Finsert_byte): Return a proper value.
18767
18768 2008-02-01 Kenichi Handa <handa@m17n.org>
18769
18770 * coding.c (decode_coding): Fix args to translate_chars. Pay
18771 attention to Vstandard_translation_table_for_decode.
18772 (encode_coding): Fix args to translate_chars. Pay attention to
18773 Vstandard_translation_table_for_encode.
18774
18775 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
18776 SINGLE_BYTE_CHAR_P.
18777
18778 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
18779 not by SINGLE_BYTE_CHAR_P.
18780
18781 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
18782 SINGLE_BYTE_CHAR_P.
18783
18784 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
18785 SINGLE_BYTE_CHAR_P.
18786
18787 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
18788 by SINGLE_BYTE_CHAR_P.
18789
18790 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
18791 SINGLE_BYTE_CHAR_P.
18792
18793 2008-02-01 Dave Love <fx@gnu.org>
18794
18795 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
18796
18797 2008-02-01 Dave Love <fx@gnu.org>
18798
18799 * fns.c (Flanginfo): Fix typo.
18800
18801 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
18802
18803 2008-02-01 Kenichi Handa <handa@m17n.org>
18804
18805 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
18806 (detect_coding_emacs_mule, detect_coding_iso_2022)
18807 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
18808 incomplete byte sequence. Don't update *mask when correctly detected.
18809 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
18810 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
18811 (detect_coding, detect_coding_system): Adjust for the changes above.
18812
18813 2008-02-01 Kenichi Handa <handa@m17n.org>
18814
18815 * character.c (char_string): Rename from
18816 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
18817 (string_char): Rename from string_char.
18818
18819 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
18820 if C is greater than MAX_3_BYTE_CHAR.
18821 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
18822 string_char instead of string_char_with_unification.
18823
18824 2008-02-01 Dave Love <fx@gnu.org>
18825
18826 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
18827
18828 2008-02-01 Kenichi Handa <handa@m17n.org>
18829
18830 * keymap.c (push_key_description): Pay attention to force_multibyte.
18831
18832 * regex.c (re_search_2): Fix for the case of unibyte buffer.
18833
18834 2008-02-01 Dave Love <fx@gnu.org>
18835
18836 * charset.c (define_charset_internal): Rename `supprementary'.
18837
18838 * Makefile.in (lisp, shortlisp): Remove latin-N.
18839
18840 2008-02-01 Dave Love <fx@gnu.org>
18841
18842 * xfns.c (x_window, x_window): Use use_xim.
18843
18844 * xterm.c (use_xim): Initialize.
18845 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
18846 (x_term_init): Maybe set use_xim.
18847
18848 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
18849
18850 2008-02-01 Kenichi Handa <handa@m17n.org>
18851
18852 * search.c (search_buffer): Fix case-fold-search of multibyte
18853 characters.
18854 (boyer_moore): Rename the last argument to char_high_bits.
18855
18856 2008-02-01 Kenichi Handa <handa@m17n.org>
18857
18858 * xdisp.c (display_string): Fix for the case of zero width glyph.
18859
18860 * xfns.c (x_set_font): Change the error message of the case that
18861 x_new_fontset returns Qt.
18862
18863 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
18864 (Finternal_set_lisp_face_attribute): Use signal_error for the
18865 error of invalid fontset.
18866
18867 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
18868 fontset, return Qt.
18869
18870 2008-02-01 Dave Love <fx@gnu.org>
18871
18872 * unexelf.c (unexec): Make .got handling not SGI-specific.
18873
18874 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
18875
18876 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
18877
18878 * keyboard.c (read_key_sequence): Fix type error.
18879
18880 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
18881 type error.
18882
18883 * fontset.c (fontset_add): Return Lisp_Object.
18884
18885 2008-02-01 Dave Love <fx@gnu.org>
18886
18887 * charset.h (charset_ordered_list_tick): Declare extern.
18888
18889 2008-02-01 Kenichi Handa <handa@m17n.org>
18890
18891 The following changes (and some of 2008-02-01 changes of mine) are
18892 for handling syntax, category, and case conversion for unibyte
18893 characters by converting them to multibyte on the fly. With these
18894 changes, we don't have to setup syntax and case tables for unibyte
18895 characters in each language environment.
18896
18897 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
18898 multibyte if necessary.
18899
18900 * bytecode.c (Fbyte_code): Likewise.
18901
18902 * character.h (LEADING_CODE_LATIN_1_MIN)
18903 (LEADING_CODE_LATIN_1_MAX): New macros.
18904 (unibyte_to_multibyte_table): Extern it.
18905 (unibyte_char_to_multibyte): New macro.
18906 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
18907 (CHAR_LEADING_CODE): New macro.
18908 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
18909
18910 * character.c (unibyte_to_multibyte_table): New variable.
18911 (unibyte_char_to_multibyte): Move to character.h and define as macro.
18912 (multibyte_char_to_unibyte): If C is an eight-bit character,
18913 convert it to the corresponding byte value.
18914
18915 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
18916 not 1, signals an error. Update the elements of
18917 unibyte_to_multibyte_table.
18918 (init_charset_once): Initialize unibyte_to_multibyte_table.
18919 (syms_of_charset): Define the charset `iso-8859-1'.
18920
18921 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
18922 as is without converting it to unibyte. In a unibyte buffer,
18923 convert C to multibyte before checking the syntax.
18924
18925 * lisp.h (unibyte_char_to_multibyte): Delete extern.
18926
18927 * minibuf.c (Fminibuffer_complete_word): Use the macro
18928 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
18929
18930 * regex.h (struct re_pattern_buffer): New member target_multibyte.
18931
18932 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
18933 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
18934 that is zero, convert an eight-bit char to multibyte.
18935 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
18936 non-emacs case.
18937 (PATFETCH): Convert an eight-bit char to multibyte.
18938 (HANDLE_UNIBYTE_RANGE): New macro.
18939 (regex_compile): Setup the compiled pattern for multibyte chars
18940 even if the given regex string is unibyte. Use PATFETCH_RAW
18941 instead of PATFETCH in many places. To handle `charset'
18942 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
18943 only for ASCII chars.
18944 (analyse_first) <exactn>: Simplify because the compiled pattern
18945 is multibyte.
18946 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
18947 <charset>: Use CHAR_LEADING_CODE to get leading codes.
18948 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
18949 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
18950 multibyte always 1.
18951 (re_search_2): In emacs, set the locale variable multibyte to 1,
18952 otherwise to 0. New local variable target_multibyte. Check it
18953 to decide the multibyteness of STR1 and STR2. If
18954 target_multibyte is zero, convert unibyte chars to multibyte
18955 before translating and checking fastmap.
18956 (TARGET_CHAR_AND_LENGTH): New macro.
18957 (re_match_2_internal): In emacs, set the locale variable multibyte
18958 to 1, otherwise to 0. New local variable target_multibyte. Check
18959 it to decide the multibyteness of STR1 and STR2. Use
18960 TARGET_CHAR_AND_LENGTH to fetch a character from D.
18961 <charset, charset_not>: If multibyte is nonzero, check fastmap
18962 only for ASCII chars. Call bcmp_translate with
18963 target_multibyte, not with multibyte.
18964 <begline>: Declare the local variable C as `unsigned'.
18965 (bcmp_translate): Change the last arg name to target_multibyte.
18966
18967 * search.c (compile_pattern_1): Don't adjust the multibyteness of
18968 the regexp pattern and the matching target. Set cp->buf.multibyte
18969 to the multibyteness of the regexp pattern. Set
18970 cp->but.target_multibyte to the multibyteness of the matching target.
18971 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
18972 FETCH_STRING_CHAR_ADVANCE.
18973 (Freplace_match): Convert unibyte chars to multibyte.
18974
18975 * syntax.c (char_quoted, back_comment, scan_words)
18976 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
18977 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
18978 unibyte chars to multibyte.
18979 (skip_chars): Delete the arg syntaxp, and move the code for
18980 handling syntaxes to skip_syntaxes. Change callers.
18981 Fix the case that the multibyteness of STRING and the current
18982 buffer doesn't match.
18983 (skip_syntaxes): New function.
18984 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
18985 SINGLE_BYTE_CHAR_P.
18986
18987 2008-02-01 Kenichi Handa <handa@m17n.org>
18988
18989 * xfaces.c (QCfontset): New variable.
18990 (LFACE_FONTSET): New macro.
18991 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
18992 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
18993 (Finternal_set_lisp_face_attribute)
18994 (Finternal_get_lisp_face_attribute): Handle QCfontset.
18995 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
18996 check also LFACE_FONTSET_INDEX.
18997 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
18998 attrs[LFACE_FONT_INDEX].
18999 (syms_of_xfaces): Intern and staticpro QCfontset.
19000
19001 * dispextern.h (enum lface_attribute_index): New member
19002 LFACE_FONTSET_INDEX.
19003
19004 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
19005
19006 2008-02-01 Kenichi Handa <handa@m17n.org>
19007
19008 * coding.c (coding_set_destination): Fix coding->destination for
19009 the case converting a region.
19010 (encode_coding_utf_8): Encode eight-bit chars as single byte.
19011 (encode_coding_object): Fix coding->dst_pos and
19012 coding->dst_pos_byte for the case converting a region.
19013
19014 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
19015
19016 * character.h (BYTE8_STRING): New macro.
19017
19018 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
19019
19020 2008-02-01 Kenichi Handa <handa@m17n.org>
19021
19022 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
19023 characters by octal form.
19024
19025 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
19026
19027 * buffer.h (_fetch_multibyte_char_len): Delete extern.
19028 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
19029 _fetch_multibyte_char_len.
19030 (FETCH_CHAR_AS_MULTIBYTE): New macro.
19031
19032 * casetab.c (set_canon, set_identity, shuffle): Simplify.
19033
19034 * casefiddle.c (casify_object): Simplify. Handle the case that
19035 the case conversion change the byte length.
19036 (casify_region): Likewise.
19037
19038 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
19039
19040 * character.c (_fetch_multibyte_char_len): Delete this variable.
19041 (syms_of_character): Setup Vprintable_chars.
19042
19043 * editfns.c (Fchar_equal): Fix for the unibyte case.
19044 (Finsert_byte): New function.
19045 (syms_of_editfns): Defsubr it.
19046
19047 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
19048 of direct code 0x3ffff.
19049
19050 * search.c (Freplace_match): Fix for the unibyte case.
19051
19052 2008-02-01 Kenichi Handa <handa@m17n.org>
19053
19054 * lread.c (safe_to_load_p): Fix the logic.
19055
19056 * syntax.c (scan_words): Don't treat characters belonging to
19057 different scripts as constituting a word.
19058
19059 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
19060
19061 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
19062
19063 * emacs.c (main): In the case of --unibyte, instead of aborting on
19064 finding non-empty buffer, make it unibyte.
19065
19066 2008-02-01 Kenichi Handa <handa@m17n.org>
19067
19068 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
19069 to create a fontset.
19070
19071 2008-02-01 Dave Love <fx@gnu.org>
19072
19073 * character.c (Funibyte_char_to_multibyte): Doc fix.
19074
19075 * xfns.c [HAVE_STDLIB_H]: Fix last change.
19076
19077 2008-02-01 Kenichi Handa <handa@m17n.org>
19078
19079 * fontset.c (fontset_add): Make the type `int'.
19080 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
19081
19082 * character.c (unibyte_char_to_multibyte)
19083 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
19084 charset_unibyte, not charset_primary.
19085
19086 * charset.h (charset_unibyte): Extern it instead of charset_primary.
19087
19088 * charset.c (charset_unibyte): Rename from charset_primary.
19089 (Funibyte_charset): Rename from Fprimary_charset.
19090 (Fset_unibyte_charset): Rename from Fset_primary_charset.
19091 (syms_of_charset): Adjust for the above changes.
19092
19093 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
19094 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
19095 it->multibyte_p is zero.
19096
19097 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
19098 Delete extern.
19099
19100 2008-02-01 Kenichi Handa <handa@m17n.org>
19101
19102 * coding.c (Fdefine_coding_system_internal): Fix category setting
19103 for a coding system of type iso-2022.
19104
19105 2008-02-01 Kenichi Handa <handa@m17n.org>
19106
19107 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
19108
19109 2008-02-01 Kenichi Handa <handa@m17n.org>
19110
19111 * syntax.c (Vnext_word_boundary_function_table): New variable.
19112 (next-word-boundary-function-table): Declare it as a Lisp variable
19113 in syms_of_syntax.
19114 (scan_words): Call functions in Vnext_word_boundary_function_table
19115 if any.
19116
19117 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
19118
19119 * fontset.c (fs_load_font): If fontp->charset is not negative,
19120 return fontp without setting its members.
19121
19122 2008-02-01 Dave Love <fx@gnu.org>
19123
19124 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
19125
19126 * m/sparc.h (HAVE_ALLOCA): Delete.
19127
19128 * s/irix6-5.h: Don't include strings.h.
19129 (bcopy, bzero, bcmp): Don't undef.
19130
19131 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
19132
19133 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
19134 (TIOCSIGSEND): Don't test IRIX6.
19135 (bcopy, bzero, bcmp): Define conditionally.
19136
19137 2008-02-01 Kenichi Handa <handa@m17n.org>
19138
19139 * buffer.c (Qas, Qmake, Qto): New variables.
19140 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
19141 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
19142
19143 * callproc.c (Fcall_process): Don't call insert_1_both directly if
19144 we are inserting a process output into a multibyte buffer.
19145
19146 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
19147 multibyte_char_to_unibyte.
19148
19149 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
19150 by the primary charset, make it eight-bit char.
19151 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
19152
19153 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
19154 (charset_8_bit__control, charset_8_bit_graphic)
19155 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
19156 (define_charset_internal): New function.
19157 (syms_of_charset): Call define_charset_internal for pre-defined
19158 charsets.
19159
19160 * charset.h (charset_8_bit): Extern it.
19161
19162 * coding.c (make_conversion_work_buffer): Adjust for the change
19163 of Fset_buffer_multibyte.
19164 (encode_coding_raw_text): Increment p0 in the loop.
19165
19166 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
19167
19168 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
19169 for the change of Fset_buffer_multibyte.
19170
19171 * fns.c (Fstring_to_multibyte): New function.
19172 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
19173
19174 2008-02-01 Dave Love <fx@gnu.org>
19175
19176 * xfns.c (x_put_x_image): Declare args.
19177
19178 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
19179 (try_font_list): Declare an arg.
19180
19181 * xdisp.c (message2_nolog, set_message): Declare an arg.
19182
19183 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
19184
19185 * syntax.c (scan_sexps_forward): Declare an arg.
19186
19187 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
19188 Declare an arg.
19189
19190 * lisp.h (Fnew_fontset): Declare.
19191
19192 * keymap.c (push_key_description): Call CHARACTERP correctly.
19193
19194 * fontset.c (fontset_add): Declare args. Call make_number correctly.
19195 (face_for_char): Delete unused vars.
19196 (Fset_fontset_font): Doc fix. Delete unused vars.
19197
19198 * doc.c (Fsubstitute_command_keys): Delete unused vars.
19199
19200 * composite.c (update_compositions): Declare arg.
19201
19202 * cm.c (calccost, cmgoto): Declare args.
19203
19204 * charset.c: Remove `emacs' conditional. Doc fixes.
19205 (map_char_table_for_charset): Declare.
19206
19207 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
19208
19209 * ccl.c: Remove `emacs' conditional.
19210
19211 2008-02-01 Kenichi Handa <handa@m17n.org>
19212
19213 The following changes are to allow specifying multiple font
19214 patterns for a character range (specified by script or charset).
19215
19216 * Makefile.in (abbrev.o): Depend on syntax.h.
19217 (xfaces.o): Depend on charset.h.
19218
19219 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
19220 SINGLE_BYTE_CHAR_P.
19221
19222 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
19223
19224 * character.h (Vchar_script_table): Extern it.
19225
19226 * character.c (Vscript_alist): Delete.
19227 (Vchar_script_table, Qchar_script_table): New variable.
19228 (syms_of_character): Declare Vchar_script_table as a lisp variable
19229 and initialize it.
19230
19231 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
19232 have property char-table-extra-slots, make no extra slot.
19233
19234 * dispextern.h (struct face): Delete member `charset'.
19235 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
19236 SINGLE_BYTE_CHAR_P.
19237 (choose_face_font, lookup_non_ascii_face, font_name_registry):
19238 Add prototypes.
19239 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
19240 (generate_ascii_font_name): Rename from generate_ascii_font.
19241
19242 * fontset.h (get_font_repertory_func): New prototype.
19243 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
19244 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
19245
19246 * fontset.c (Qprepend, Qappend): New variables.
19247 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
19248 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
19249 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
19250 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
19251 (fontset_ref_and_range, fontset_add, reorder_font_vector)
19252 (load_font_get_repertory): New functions.
19253 (fontset_set): Delete.
19254 (fontset_face): New arg FACE. Return face ID, not face.
19255 Complete re-write to handle new fontset structure. Change caller.
19256 (free_face_fontset): Use ASET istead of AREF (X) = Y.
19257 (face_for_char): Don't call lookup_face.
19258 (make_fontset_for_ascii_face): New arg FACE.
19259 (fs_load_font): New arg CHARSET_ID. Don't check
19260 Vfont_encoding_alist here.
19261 (find_font_encoding): New function.
19262 (list_fontsets): Use STRINGP, not ! NILP.
19263 (accumulate_script_ranges): New function.
19264 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
19265 re-written to handle new fontset structure.
19266 (Ffontset_font): Return a copy of element.
19267 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
19268 docstring of font-encoding-alist.
19269
19270 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
19271 (Fset_fotset_font): Fix arguments to 5.
19272
19273 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
19274
19275 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
19276 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
19277 (highlight_trailing_whitespace): Adjust for the change of
19278 lookup_named_face.
19279
19280 * xfaces.c: Include charset.h.
19281 (load_face_font): Delete argument C. Change caller.
19282 (generate_ascii_font_name): Rename from generate_ascii_font.
19283 (font_name_registry): New function.
19284 (cache_face): Store ascii faces before non-ascii faces in buckets.
19285 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
19286 Lookup only ascii faces.
19287 (lookup_non_ascii_face): New function.
19288 (lookup_named_face): Delete argument C. Change caller.
19289 (lookup_derived_face): Delete argument C. Change caller.
19290 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
19291 a string, just call font_list with it.
19292 (choose_face_font): Delete arguments FACE and C. New arg
19293 FONT_SPEC. Change caller.
19294 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
19295 Change caller.
19296 (realize_non_ascii_face): New function.
19297 (realize_x_face): Call load_face_font here.
19298 (realize_tty_face): Delete argument C. Change caller.
19299 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
19300 get a face ID.
19301 (dump_realized_face): Don't print charset of FACE.
19302
19303 * xfns.c (x_set_font): Always call x_new_fontset and
19304 store_frame_parameter.
19305 (Fx_create_frame): Call x_new_fontset, not x_new_font.
19306 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
19307
19308 * xterm.h (x_get_font_repertory): Extern it.
19309
19310 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
19311 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
19312 it->multibyte_p is zero.
19313 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
19314 (x_new_fontset): If FONTSETNAME doesn't match any existing
19315 fontsets, create a new one.
19316 (x_get_font_repertory): New function.
19317
19318 2008-02-01 Kenichi Handa <handa@m17n.org>
19319
19320 * coding.c (Ffind_coding_systems_region_internal): Detect an
19321 ASCII only string correctly.
19322
19323 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
19324 version is 0.
19325
19326 2008-02-01 Kenichi Handa <handa@m17n.org>
19327
19328 * lread.c: Include "coding.h".
19329 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
19330 (load_each_byte, unread_char): New variables.
19331 (readchar_backlog): Delete.
19332 (readchar): Return a character unless load_each_byte is nonzero.
19333 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
19334 cons. If unread_char is not -1, simply return it.
19335 (unreadchar): Handle the case that readcharfun is
19336 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
19337 (read_multibyte): Delete.
19338 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
19339 (read_emacs_mule_char): New functions.
19340 (Fload): Even if the file doesn't have the extension ".elc", if
19341 safe_to_load_p returns a positive version number, assume that the
19342 file contains bytecompiled code. If the version is less than 22,
19343 load the file while decoding multibyte sequences by emacs-mule.
19344 (readevalloop): Don't use readchar_backlog.
19345 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
19346 (Fread_from_string): Pay attention to the case that STREAM is a cons.
19347 (read_escape): Delete the arg BYTEREP.
19348 (read1): Set load_each_byte to 1 temporarily while handling
19349 #@NUMBER. Don't call read_multibyte.
19350 (read_vector): Call Fread with a cons. If readcharfun is
19351 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
19352 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
19353 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
19354 and Qload_force_doc_strings.
19355
19356 2008-02-01 Kenichi Handa <handa@m17n.org>
19357
19358 * xdisp.c (face_before_or_after_it_pos): Call
19359 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
19360
19361 2008-02-01 Kenichi Handa <handa@m17n.org>
19362
19363 * character.h (TRAILING_CODE_P): New macro.
19364 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
19365 (string_char_with_unification): Fix prototype.
19366 (Vscript_alist): Extern it.
19367
19368 * character.c (Vscript_alist): New variable.
19369 (string_char_with_unification, str_as_unibyte)
19370 (string_escape_byte8): Add `const' to local variables.
19371 (syms_of_character): Declare script-alist as a Lisp variable.
19372
19373 * charset.h (Vcharset_ordered_list): Extern it.
19374 (charset_ordered_list_tick): Extern it.
19375 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
19376 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
19377 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
19378 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
19379 (Funify_charset): Adjust for the change of Funify_charset.
19380
19381 * charset.c (charset_ordered_list_tick): New variable.
19382 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
19383 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
19384 deunify intead of unify a charset.
19385 (string_xstring_p): Add `const' to local variables.
19386 (find_charsets_in_text): Add `const' to arguments and local variables.
19387 (encode_char): Adjust for the change of Funify_charset. Fix
19388 detecting of invalid code.
19389 (Fset_charset_priority): Increment charset_ordered_list_tick.
19390 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
19391 and TO_CODE.
19392
19393 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
19394 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
19395 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
19396 (decode_coding_ccl, consume_chars)
19397 (Ffind_coding_systems_region_internal)
19398 (Fcheck_coding_systems_region): Add `const' to local variables.
19399
19400 * print.c (print_object): Use octal form for printing the
19401 contents of a bool vector.
19402
19403 2008-02-01 Dave Love <fx@gnu.org>
19404
19405 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
19406 <version == 20>: Refuse to load.
19407
19408 2008-02-01 Dave Love <fx@gnu.org>
19409
19410 * fns.c: Move coding.h.
19411 (Qcodeset, Qdays, Qmonths): New.
19412 (concat): Use CHARACTERP instead of INTEGERP.
19413 (Flocale_codeset): Delete.
19414 (Flanginfo): New function.
19415 (syms_of_fns): Change accordingly.
19416
19417 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
19418
19419 2008-02-01 Dave Love <fx@gnu.org>
19420
19421 * casetab.c (init_casetab_once, init_casetab_once): Fix
19422 CHAR_TABLE_SET call.
19423
19424 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
19425
19426 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
19427
19428 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
19429 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
19430 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
19431
19432 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
19433
19434 * coding.c (ENCODE_DESIGNATION, decode_eol)
19435 (make_conversion_work_buffer, code_conversion_restore)
19436 (Fdefine_coding_system_internal): Convert Lisp types.
19437 (code_conversion_restore): Use EQ, not ==.
19438 (Fencode_coding_string): Fix code_convert_string call.
19439
19440 * coding.h (code_convert_region): Fix prototype.
19441
19442 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
19443
19444 * fontset.c (fontset_ref, fontset_set, fs_load_font)
19445 (Ffontset_info): Convert Lisp types.
19446
19447 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
19448
19449 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
19450
19451 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
19452
19453 * chartab.c: Include "...h", not <...h> in some cases.
19454
19455 * callproc.c (Fcall_process): Remove unused variables.
19456
19457 2008-02-01 Dave Love <fx@gnu.org>
19458
19459 * coding.c (Fset_coding_system_priority): Allow null arg list.
19460
19461 2008-02-01 Dave Love <fx@gnu.org>
19462
19463 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
19464 (Fself_insert_and_exit): Use CHARACTERP.
19465
19466 * callproc.c (Fcall_process): Remove unused vars.
19467
19468 * xterm.c (XTread_socket): Add extra dead keysyms.
19469
19470 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
19471
19472 * dispextern.h: Remove prototypes for redraw_frame,
19473 redraw_garbaged_frames.
19474
19475 * cmds.c (Fself_insert_command): Use CHARACTERP.
19476
19477 * chartab.c (make_sub_char_table): Remove unused var.
19478 (Fset_char_table_default, Fmap_char_table): Doc fix.
19479
19480 * keymap.c (access_keymap): Remove generic char code.
19481 (push_key_description): Use CHARACTERP.
19482
19483 2008-02-01 Dave Love <fx@gnu.org>
19484
19485 * charset.c: Doc fixes.
19486 (Funify_charset): Extra checking.
19487
19488 2008-02-01 Dave Love <fx@gnu.org>
19489
19490 * lread.c: Remove some unused variables.
19491 (safe_to_load_p): If safe, return the magic number version byte.
19492 (Fload): Maybe use load-with-code-conversion.
19493
19494 2008-02-01 Kenichi Handa <handa@m17n.org>
19495
19496 * category.c (Fmodify_category_entry): Don't modify the contents
19497 of category_set for characters out of the range. Avoid
19498 unnecessary modification.
19499
19500 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
19501 Vchar_unify_table. The default value of the table is now nil.
19502
19503 * character.c (syms_of_character): Setup Vchar_width_table for
19504 eight-bit-control and raw-byte chars.
19505
19506 * charset.h (enum define_charset_arg_index): Delete
19507 charset_arg_parents and add charset_arg_subset and
19508 charset_arg_superset.
19509 (enum charset_attr_index): Delete charset_parents and add
19510 charset_subset and charset_superset.
19511 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
19512 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
19513 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
19514 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
19515 (CHARSET_SUPERSET): New macros.
19516 (charset_work): Extern it.
19517 (ENCODE_CHAR): Use charset_work.
19518 (CHAR_CHARSET_P): Adjust for the change of encoder format.
19519 (map_charset_chars): Extern it.
19520
19521 * charset.c (load_charset_map): Set the default value of encoder
19522 and deunifier char-tables to nil.
19523 (map_charset_chars): Change argument. Change callers. Use
19524 map_char_table_for_charset instead of map_char_table.
19525 (Fmap_charset_chars): New optional args from_code and to_code.
19526 (Fdefine_charset_internal): Adjust for the change of
19527 `define-charset' (:parents -> :subset or :superset).
19528 (charset_work): New variable.
19529 (encode_char, syms_of_charset): Adjust for the change of
19530 Fdefine_charset_internal.
19531 (Ffind_charset_string): Setup the vector `charsets' correctly.
19532
19533 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
19534 the previous change.
19535 (char_table_ref_and_range): Adjust for the above change.
19536 (map_sub_char_table_for_charset): New function.
19537 (map_char_table_for_charset): New function.
19538
19539 * keymap.c (describe_vector): Handle a char-table directly here.
19540 (describe_char_table): Delete.
19541
19542 * lisp.h (map_charset_chars): Delete.
19543
19544 2008-02-01 Dave Love <fx@gnu.org>
19545
19546 * fns.c (count_combining): Comment out (unused).
19547 (Flocale_codeset): New.
19548 (syms_of_fns): Defsubr it.
19549
19550 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
19551 (size_t): Remove.
19552
19553 2008-02-01 Dave Love <fx@gnu.org>
19554
19555 * Makefile.in (chartab.o): Depend on charset.h.
19556
19557 2008-02-01 Kenichi Handa <handa@m17n.org>
19558
19559 * character.c (syms_of_character): Set the default value of
19560 Vprintable_chars to Qnil.
19561
19562 2008-02-01 Dave Love <fx@gnu.org>
19563
19564 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
19565
19566 2008-02-01 Kenichi Handa <handa@m17n.org>
19567
19568 * charset.c (load_charset_map): Handle the case that from < to
19569 correctly.
19570
19571 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
19572 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
19573 Pay attention to raw-8-bit chars.
19574
19575 2008-02-01 Kenichi Handa <handa@m17n.org>
19576
19577 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
19578 It is not bytecompiled now.
19579
19580 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
19581 (charset_jisx0208): New variables.
19582 (Fdefine_charset_internal): Setup them if appropriate.
19583 (init_charset_once): Initialize them to -1.
19584
19585 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
19586 (charset_jisx0208): Extern them.
19587
19588 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
19589 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
19590 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
19591 (setup_iso_safe_charsets): Fix arguments to Fassq.
19592 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
19593 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
19594 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
19595 (encode_coding_iso_2022): Change the 1st arg to
19596 ENCODE_ISO_CHARACTER to a variable.
19597
19598 2008-02-01 Kenichi Handa <handa@m17n.org>
19599
19600 * charset.h (enum define_charset_arg_index): New enums
19601 charset_arg_min_code and charset_arg_max_code.
19602 (struct charset): New member char_index_offset.
19603
19604 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
19605 Take charset->char_index_offset into account.
19606 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
19607 args[charset_arg_max_code]. Setup charset.char_index_offset.
19608 (syms_of_charset): Fix args to Fdefine_charset_internal.
19609
19610 2008-02-01 Dave Love <fx@gnu.org>
19611
19612 * coding.c (decode_coding_utf_8): Reject overlong sequences.
19613
19614 2008-02-01 Dave Love <fx@gnu.org>
19615
19616 * coding.c: Doc fixes.
19617 (Fcoding_system_aliases): Fix return value.
19618 (Qmac): Remove (duplicated) definition.
19619
19620 2008-02-01 Dave Love <fx@gnu.org>
19621
19622 * charset.c (Fcharset_priority_list, Fset_charset_priority):
19623 New functions.
19624
19625 * character.c (Fstring): Doc fix.
19626
19627 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
19628
19629 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
19630 (font-encoding-alist): Doc fix.
19631
19632 2008-02-01 Dave Love <fx@gnu.org>
19633
19634 * term.c (costs_set): Declare static, non-initialized for pcc.
19635 (encode_terminal_code): Remove unused var.
19636
19637 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
19638 for K&R.
19639
19640 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
19641
19642 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
19643 (suffixes): Move out of make_subsidiaries for K&R.
19644
19645 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
19646
19647 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
19648
19649 2008-02-01 Dave Love <fx@gnu.org>
19650
19651 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
19652
19653 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
19654
19655 2008-02-01 Yong Lu <lyongu@asia-infonet.com>
19656
19657 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
19658
19659 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
19660
19661 2008-02-01 Kenichi Handa <handa@m17n.org>
19662
19663 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
19664 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
19665
19666 2008-02-01 Kenichi Handa <handa@m17n.org>
19667
19668 * coding.c (decode_coding_charset): Adjust for the change of
19669 Fdefine_coding_system_internal.
19670 (Fdefine_coding_system_internal): For a coding system of
19671 `charset' type, store a list of charset IDs in
19672 `charset_attr_charset_valids' element of coding attributes.
19673
19674 2008-02-01 Kenichi Handa <handa@m17n.org>
19675
19676 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
19677 (emacs_mule_char): New arg src. Delete arg `composition'. Change
19678 caller. Handle 2-byte and 3-byte charsets correctly.
19679 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
19680 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
19681 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
19682 (DECODE_EMACS_MULE_21_COMPOSITION): Call
19683 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
19684 sequence.
19685 (decode_coding_emacs_mule): Handle composition correctly. Rewind
19686 `src' and `consumed_chars' correctly before calling emacs_mule_char.
19687 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
19688 and alt&rule composition.
19689 (decode_coding_iso_2022): Handle composition correctly.
19690 (init_coding_once): Setup emacs_mule_bytes for private charsets.
19691
19692 * charset.c (Fdefine_charset_internal): Fix bug for the case of
19693 re-defining a charset. If the charset has :emacs-mule-id, setup
19694 emacs_mule_bytes.
19695 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
19696
19697 2008-02-01 Kenichi Handa <handa@m17n.org>
19698
19699 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
19700 (encode_coding_big5, encode_coding_charset): If coding requires safe
19701 encoding, produce a character specified by
19702 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
19703
19704 2008-02-01 Dave Love <fx@gnu.org>
19705
19706 * xterm.c (XSetIMValues): Declare.
19707
19708 * process.c: Conditionally include sys/wait.h, pty.h.
19709
19710 * print.c (print_object): Fix print format for 64-bit systems.
19711
19712 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
19713
19714 * buffer.c (emacs_strerror): Declare.
19715
19716 * fontset.c (Fclear_face_cache): Declare.
19717 (accumulate_font_info): Comment-out (unused).
19718 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
19719 variables.
19720
19721 * character.h (string_escape_byte8): Declare.
19722
19723 * charset.c (load_charset_map, load_charset_map_from_file): Remove
19724 unused vars.
19725 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
19726 (Fmap_charset_chars): Doc fix.
19727
19728 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
19729 (Fset_coding_system_priority, Fset_coding_system_priority)
19730 (Fdefine_coding_system_internal): Doc fix.
19731
19732 2008-02-01 Dave Love <fx@gnu.org>
19733
19734 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
19735
19736 2008-02-01 Kenichi Handa <handa@m17n.org>
19737
19738 * character.c (string_escape_byte8): Make multibyte string with
19739 correct size.
19740
19741 * charset.c (Fmake_char): Delete unnecessary code.
19742
19743 2008-02-01 Kenichi Handa <handa@m17n.org>
19744
19745 * xfns.c (x_encode_text): Allocate coding.destination here, and
19746 call encode_coding_object with dst_object Qnil.
19747
19748 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
19749 multibyte form correctly.
19750
19751 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
19752 against Vfont_encoding_alist.
19753
19754 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
19755 handling of charset list.
19756 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
19757 (decode_coding_object): Move point to coding->dst_pos before
19758 calling post-read-conversion function.
19759 (encode_coding_object): Give correct arguments to
19760 pre-write-conversion. Ignore the return value of
19761 pre-write-conversion function. Pay attention to the case that
19762 pre-write-conversion changes the current buffer. If dst_object is
19763 Qt, even if coding->src_bytes is zero, allocate at least one byte
19764 to coding->destination.
19765
19766 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
19767
19768 * charset.c (Fmake_char): Make it more backward compatible.
19769 (Fmap_charset_chars): Fix docstring.
19770
19771 2008-02-01 Dave Love <fx@gnu.org>
19772
19773 * coding.c: Doc fixes.
19774 (Fdefine_coding_system_alias): Use names, not symbols, in
19775 coding-system-alist.
19776
19777 2008-02-01 Kenichi Handa <handa@m17n.org>
19778
19779 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
19780 of calling free_realized_face.
19781
19782 2008-02-01 Yong Lu <lyongu@asia-infonet.com>
19783
19784 * charset.c (read_hex): Don't treat SPC as a comment starter.
19785 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
19786 (Fdecode_char): Fix typo.
19787
19788 2008-02-01 Kenichi Handa <handa@m17n.org>
19789
19790 * charset.h (struct charset): New member `code_space_mask'.
19791
19792 * coding.c (coding_set_source): Delete the local variable beg_byte.
19793 (encode_coding_charset, Fdefine_coding_system_internal):
19794 Delete the local variable charset.
19795 (Fdefine_coding_system_internal): Setup
19796 attrs[coding_attr_charset_valids] correctly.
19797
19798 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
19799 member to check if CODE is valid or not.
19800 (Fdefine_charset_internal): Initialize `code_space_mask' member.
19801 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
19802 is within the range of charset->min_code and carset->max_code.
19803
19804 2008-02-01 Dave Love <fx@gnu.org>
19805
19806 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
19807
19808 * dispextern.h (generate_ascii_font): Fix return type.
19809
19810 * xfaces.c (generate_ascii_font): Fix arg declaration.
19811
19812 * coding.c (coding_inherit_eol_type)
19813 (Fset_terminal_coding_system_internal)
19814 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
19815
19816 2008-02-01 Kenichi Handa <handa@m17n.org>
19817
19818 * coding.c (decode_coding_charset, encode_coding_charset): Handle
19819 multiple charsets correctly.
19820
19821 2008-02-01 Kenichi Handa <handa@m17n.org>
19822
19823 * search.c (boyer_moore): Fix handling of multibyte character
19824 translation.
19825
19826 * xdisp.c (display_mode_element): When the variable `elt' is
19827 changed, update `this' and `lisp_string'.
19828
19829 2008-02-01 Kenichi Handa <handa@m17n.org>
19830
19831 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
19832
19833 * callproc.c (Fcall_process): Be sure to give the current buffer
19834 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
19835
19836 * charset.c (struct charset_map_entries): New struct.
19837 (load_charset_map): Rename from parse_charset_map. New args
19838 entries and n_entries. Change caller.
19839 (load_charset_map_from_file): Rename from load_charset_map.
19840 Change caller. New arg control_flag. Call load_charset_map at
19841 the tail.
19842 (load_charset_map_from_vector): New function.
19843 (Fdefine_charset_internal): Setup charset.compact_codes_p.
19844 (encode_char): If the charset is compact, change a character index
19845 to a code point.
19846
19847 * coding.c (coding_alloc_by_making_gap): Check the case that the
19848 source and destination are the same correctly.
19849 (decode_coding_raw_text): Set coding->consumed_char and
19850 coding->consumed to 0.
19851 (produce_chars): If coding->chars_at_source is nonzero, update
19852 coding->consumed_char and coding->consumed before calling
19853 alloc_destination.
19854 (Fdefine_coding_system_alias): Register ALIAS in
19855 Vcoding_system_alist.
19856 (syms_of_coding): Define `no-conversion' coding system at the tail.
19857
19858 * fileio.c (Finsert_file_contents): Set coding_system instead of
19859 val. If the current buffer is multibyte, always call
19860 decode_coding_gap.
19861
19862 * xfaces.c (try_font_list): Give higher priority to fontset's
19863 family than face's family.
19864
19865 2008-02-01 Kenichi Handa <handa@m17n.org>
19866
19867 * callproc.c (Fcall_process): Be sure to give the current buffer
19868 to decode_coding_c_string.
19869
19870 * xfaces.c (try_font_list): Give a family specified in a fontset
19871 higher priority than a family specified in a face.
19872
19873 2008-02-01 Kenichi Handa <handa@m17n.org>
19874
19875 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
19876 Fix arguments to insert_from_buffer.
19877
19878 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
19879
19880 2008-02-01 Kenichi Handa <handa@m17n.org>
19881
19882 * coding.c (produce_chars): Set the variable `multibytep' correctly.
19883 (decode_coding_gap): Set coding->dst_multibyte correctly.
19884
19885 2008-02-01 Kenichi Handa <handa@m17n.org>
19886
19887 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
19888 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
19889 (encode_coding_utf_16): Substitute coding->default_char for
19890 non-Unicode characters.
19891 (decode_coding): Don't call record_insert here.
19892 (setup_coding_system): Initialize `surrogate' of
19893 coding->spec.utf_16 to 0.
19894 (EMIT_ONE_BYTE): Fix for multibyte case.
19895
19896 * insdel.c (insert_from_gap): Call record_insert.
19897
19898 2008-02-01 Kenichi Handa <handa@m17n.org>
19899
19900 * casefiddle.c (casify_region): Fix multibyte case.
19901
19902 * character.c (c_string_width): Add return type `int'.
19903 (char_string_with_unification): Delete arg ADVANCED.
19904
19905 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
19906 (CHAR_STRING): Adjust for the change of char_string_with_unification.
19907 (CHAR_STRING_ADVANCE): Make it do-while statement.
19908
19909 * chartab.c (sub_char_table_set_range): Optimize for the case
19910 DEPTH == 3. Add workaround code for a GCC optimization bug.
19911
19912 * charset.c (parse_charset_map): Remove an unused variable.
19913
19914 * coding.c: Delete unused variables.
19915
19916 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
19917 earlier. If inserted is zero and the coding system doesn't
19918 require flushing, don't call decode_coding_gap.
19919
19920 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
19921
19922 2008-02-01 Kenichi Handa <handa@m17n.org>
19923
19924 The following changes are for using Unicode as an internal
19925 character model, and use UTF-8 format for buffer/string
19926 representation.
19927
19928 * .gdbinit (xchartable): Adjust for the change of char table structure.
19929 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
19930
19931 * Makefile.in (obj): Add character.o and chartab.o.
19932 (lisp, shortlisp): Remove utf-8.elc.
19933 (*.o): For many files, change dependency on charset.h to
19934 character.h, and add dependency on character.h.
19935 (character.o, chartab.o): New targets.
19936
19937 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
19938 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
19939 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
19940 of "charset.h".
19941
19942 * dired.c, filelock.c: Include "character.h".
19943
19944 * alloc.c: Include "character.h" instead of "charset.h".
19945 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
19946 (syms_of_alloc): Remove defsubr for Smake_char_table.
19947
19948 * buffer.c: Include "character.h" instead of "charset.h", don't
19949 include "coding.h".
19950 (Fset_buffer_multibyte): Adjust for UTF-8.
19951
19952 * buffer.h: EXFUN Fbuffer_live_p.
19953
19954 * callproc.c: Include "character.h" instead of "charset.h".
19955 (Fcall_process): Big change for the new code-conversion APIs.
19956
19957 * casetab.c: Include "character.h" instead of "charset.h".
19958 (set_canon, set_identity, shuffle): Adjust for the new
19959 map_char_table spec.
19960 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
19961 accessing the char table structure.
19962
19963 * chartab.c: New file that implements char table.
19964
19965 * category.c: Include "character.h".
19966 (copy_category_entry): New function.
19967 (copy_category_table): Call map_char_table and copy_category_entry.
19968 (Fmake_category_table): Initialize all top-level slots.
19969 (char_category_set): New function.
19970 (modify_lower_category_set): Delete.
19971 (Fmodify_category_entry): Call char_table_ref_and_range.
19972
19973 * category.h (CATEGORY_SET): Just call char_category_set.
19974
19975 * ccl.c: Include "character.h".
19976 (Qccl, Qcclp): New variables.
19977 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
19978 it's less than 256.
19979 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
19980 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
19981 and DST type.
19982 (ccl_driver): Change types of argument, adjust code accordingly.
19983 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
19984 ccl_driver.
19985 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
19986
19987 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
19988 New members src_multibyte, dst_multibyte, consumed, and produced.
19989 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
19990 (CODING_SPEC_CCL_PROGRAM): New macro.
19991 (ccl_driver): Update prototype.
19992 (Qccl, Qcclp, Fccl_program_p): Extern them.
19993 (CHECK_CCL_PROGRAM): New macro.
19994
19995 * character.c, character.h, chartab.c: New files.
19996
19997 * charset.c: Mostly re-written. Move character and multibyte sequence
19998 handling codes to character.c.
19999
20000 * charset.h: Mostly re-written. Move character and multibyte sequence
20001 handling codes to character.h.
20002
20003 * coding.c, coding.h: Mostly re-written.
20004
20005 * composite.c: Include "character.h" instead of "charset.h".
20006 (CHAR_WIDTH): Move to character.h.
20007 (HASH_KEY, HASH_VALUE): Delete.
20008
20009 * composite.h (enum composition_method): Change order of enumeration
20010 symbols.
20011
20012 * data.c: Include "character.h" instead of "charset.h".
20013 (Faref): Call CHAR_TABLE_REF for a char table.
20014 (Faset): Call CHAR_TABLE_SET for a char table.
20015
20016 * dispextern.h (free_realized_face, check_face_attribytes)
20017 (generate_ascii_font): Extern them.
20018 (free_realized_multibyte_face): Delete extern.
20019
20020 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
20021 table structure.
20022
20023 * editfns.c: Include "character.h" instead of "charset.h".
20024 (Fchar_to_string): Always call CHAR_STRING.
20025
20026 * emacs.c (main): Call init_charset_once, init_charset,
20027 syms_of_chartab, and syms_of_character.
20028
20029 * fileio.c: Include "character.h" instead of "charset.h".
20030 (Finsert_file_contents): Big change for the new code-conversion API.
20031 (choose_write_coding_system, Fwrite_region): Likewise.
20032 (build_annotations_2): Delete.
20033 (e_write): Big change for the new code-conversion API.
20034
20035 * fns.c: Include "character.h" instead of "charset.h".
20036 (copy_sub_char_table): Move to chartab.c.
20037 (Fcopy_sequence): Call copy_char_table for a char table.
20038 (concat): Delete codes calling count_multibyte.
20039 (string_char_to_byte, string_byte_to_char): Adjust for the new
20040 multibyte form.
20041 (internal_equal): Adjust for the change of char table structure.
20042 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
20043 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
20044 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
20045 (char_table_translate, optimize_sub_char_table)
20046 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
20047 chartab.c.
20048 (char_table_ref_and_index): Delete.
20049 (HASH_KEY, HASH_VALUE): Move to lisp.h.
20050 (Fmd5): Call preferred_coding_system instead of accessing
20051 Vcoding_category_list. Adjust for the new code-conversion API.
20052 (syms_of_fns): Move defsubr for char table related functions to
20053 chartab.c.
20054
20055 * fontset.c: Mostly re-written.
20056
20057 * fontset.h (struct font_info): Change type of the member encoding_type.
20058 (enum FONT_SPEC_INDEX): New enum.
20059 (fontset_font_pattern, fs_load_font): Update prototype.
20060 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
20061
20062 * indent.c: Include "character.h" instead of "charset.h".
20063 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
20064
20065 * insdel.c: Include "character.h" instead of "charset.h".
20066 (copy_text): Don't refer to Vnonascii_translation_table.
20067 (insert_from_gap): New function.
20068
20069 * keyboard.c: Include "character.h" instead of "charset.h".
20070 (command_loop_1): Never call direct_output_forward_char before
20071 a non-ASCII character.
20072 (read_char): If Vkeyboard_translate_table is a char table, always
20073 translate a character.
20074
20075 * keymap.c: Include "character.h".
20076 (store_in_keymap): Handle the case that IDX is a cons.
20077 (Fdefine_key): Handle the case that KEY is a cons and the car part
20078 is also a cons (range).
20079 (push_key_description): Adjust for the new character code.
20080 (describe_vector): Call describe_char_table for a char table.
20081 (describe_char_table): New function.
20082
20083 * keymap.h (describe_char_table): Extern it.
20084
20085 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
20086 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
20087 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
20088 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
20089 Delete.
20090 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
20091 structure.
20092 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
20093 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
20094 (CHARTAB_SIZE_BITS_3): New macros.
20095 (chartab_size): Extern it.
20096 (struct Lisp_Char_Table): Re-design.
20097 (struct Lisp_Sub_Char_Table): New structure.
20098 (HASH_KEY, HASH_VALUE): Move from fns.c.
20099 (CHARACTERBITS): Define as 22.
20100 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
20101 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
20102 (GC_SUB_CHAR_TABLE_P): New macro.
20103 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
20104 (code_convert_string_norecord): Deleted extern.
20105 (init_character_once, syms_of_character, init_charset)
20106 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
20107
20108 * lread.c: Include "character.h".
20109 (read_multibyte): New arg NBYTES.
20110 (read_escape): Change the meaning of returned *BYTEREP.
20111 (to_multibyte): Delete.
20112 (read1): Adjust the handling of char table and string.
20113
20114 * print.c: Include "character.h" instead of "charset.h".
20115 (print_string): Convert 8-bit raw bytes to octal form by
20116 string_escape_byte8.
20117 (print_object): Adjust for the new multibyte form. Print 8-bit
20118 raw bytes always in octal form. Handle sub char table correctly.
20119
20120 * process.c: Include "character.h" instead of "charset.h".
20121 (read_process_output, send_process): Adjust for the new
20122 code-conversion API.
20123
20124 * puresize.h (BASE_PURESIZE): Increase.
20125
20126 * regex.c: Include "character.h" instead of "charset.h".
20127 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
20128 (regex_compile): Accept a range whose starting and ending
20129 character have different leading bytes.
20130 (analyse_first): Adjust for the above change.
20131
20132 * search.c: Include "character.h" instead of "charset.h".
20133 (search_buffer, boyer_moore): Adjust for the new multibyte form.
20134 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
20135
20136 * syntax.c: Include "character.h" instead of "charset.h".
20137 (syntax_parent_lookup): Delete.
20138 (Fmodify_syntax_entry): Accept a cons as CHAR.
20139 (skip_chars): Adjust for the new multibyte form.
20140 (init_syntax_once): Call char_table_set_range instead of directly
20141 accessing the structure of a char table.
20142
20143 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
20144 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
20145 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
20146 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
20147
20148 * term.c: Include "buffer.h" and "character.h".
20149 (encode_terminal_code, write_glyphs): Adjust for the new
20150 code-conversion API.
20151 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
20152
20153 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
20154
20155 * xdisp.c: Include "character.h".
20156 (get_next_display_element): Adjust for the new multibyte form.
20157 (disp_char_vector): Adjust for the new char table structure.
20158 (decode_mode_spec_coding): Adjust for the new structure of
20159 coding system.
20160 (decode_mode_spec): Adjust for the new code-conversion API.
20161
20162 * xfaces.c: Include "character.h" instead of "charset.h".
20163 (load_face_font): Adjust for the change of choose_face_font and
20164 FS_LOAD_FONT.
20165 (generate_ascii_font): New function.
20166 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
20167 (set_font_frame_param): Adjust for the change of choose_face_font.
20168 (free_realized_face): Make it public.
20169 (free_realized_faces_for_fontset): Rename from
20170 free_realized_multibyte_face. Free also faces realized for ASCII.
20171 (choose_face_font): Change arguments. Adjust for the change of
20172 fontset_font_pattern and FS_LOAD_FONT.
20173
20174 * xfns.c: Include "character.h".
20175 (x_encode_text): Adjust for the new code-conversion API.
20176
20177 * xselect.c: Don't include "charset.h".
20178 (selection_data_to_lisp_data): Adjust for the new code conversion API.
20179
20180 * xterm.c: Include "character.h".
20181 (x_encode_char): New argument CHARSET. Change caller.
20182 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
20183 Call ENCODE_CHAR instead of SPLIT_CHAR.
20184 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
20185 CHAR_WIDTH instead of CHARSET_WIDTH.
20186 (XTread_socket): Adjust for the new code-conversion API.
20187 (x_new_font): Adjust for the change of FS_LOAD_FONT.
20188 (x_load_font): Adjust for the change of struct font.
20189
20190 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
20191
20192 * xfaces.c (face_at_buffer_position): Remove unused vars.
20193
20194 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20195
20196 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
20197 Fix overflow checking.
20198
20199 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20200
20201 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
20202 Cancel previous change.
20203
20204 2008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
20205
20206 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
20207 ccl->eight_bit_control. Fix check for buffer overflow.
20208 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
20209 (ccl_driver): Initialize extra_bytes to 0.
20210
20211 2008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
20212
20213 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
20214 return it ORed with ctrl_modifier.
20215
20216 2008-01-29 Miles Bader <miles@gnu.org>
20217
20218 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
20219
20220 2008-01-28 Jason Rumney <jasonr@gnu.org>
20221
20222 * w32.c (stat): Don't double check for networked drive.
20223
20224 2008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
20225
20226 * window.c (run_window_configuration_change_hook): New function.
20227 Code extracted from set_window_buffer. Set the selected frame.
20228 (set_window_buffer): Use it.
20229 * window.h (run_window_configuration_change_hook): Declare.
20230 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
20231
20232 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
20233
20234 2008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
20235
20236 * Makefile.in: Remove references to unused macros.
20237
20238 2008-01-26 Eli Zaretskii <eliz@gnu.org>
20239
20240 * w32.c (g_b_init_get_sid_sub_authority)
20241 (g_b_init_get_sid_sub_authority_count): New static variables.
20242 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
20243 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
20244 (init_user_info): Use them to retrieve uid and gid.
20245 Use 500/513, the Windows defaults, as Administrator's uid/gid.
20246 (fstat): Use pw_uid and pw_gid from the_passwd structure for
20247 st_uid and st_gid of the file.
20248
20249 2008-01-26 Jason Rumney <jasonr@gnu.org>
20250
20251 * w32.c (logon_network_drive): New function.
20252 (stat): Use it.
20253
20254 2008-01-26 Chong Yidong <cyd@stupidchicken.com>
20255
20256 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
20257 invisible text covered with an ellipsis.
20258
20259 2008-01-25 Richard Stallman <rms@gnu.org>
20260
20261 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
20262 jump back to beginning. Move some other initializations after that.
20263 (Qwindow_text_change_functions, Vwindow_text_change_functions):
20264 New variables.
20265 (syms_of_xdisp): Init them.
20266
20267 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
20268
20269 * buffer.c (reset_buffer_local_variables):
20270 Implement `permanent-local-hook'.
20271 (Qpermanent_local_hook): New variable.
20272 (syms_of_buffer): Init and staticpro it.
20273
20274 2008-01-25 Michael Albinus <michael.albinus@gmx.de>
20275
20276 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
20277
20278 2008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
20279
20280 * fns.c (Fclrhash): Return TABLE.
20281
20282 2008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20283
20284 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
20285 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
20286 is set even without positional changes.
20287 (x_scroll_bar_clear): Set bar->redraw_needed_p.
20288
20289 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
20290
20291 2008-01-23 Jason Rumney <jasonr@gnu.org>
20292
20293 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
20294
20295 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
20296 the unicode range available in MULE by locale-coding-system.
20297 Improve dbcs lead byte detection. Set event timestamp and modifiers
20298 earlier.
20299
20300 2008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20301
20302 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
20303 [MAC_OSX] (init_mac_osx_environment): Initialize it.
20304 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
20305 when used on child processes.
20306
20307 2008-01-21 Michael Albinus <michael.albinus@gmx.de>
20308
20309 * dbusbind.c (Fdbus_method_return_internal): Rename from
20310 Fdbus_method_return.
20311 (Fdbus_unregister_object): Move to dbus.el.
20312 (Fdbus_call_method, Fdbus_method_return_internal)
20313 (Fdbus_send_signal): Improve debug messages.
20314
20315 2008-01-20 Martin Rudalics <rudalics@gmx.at>
20316
20317 * undo.c (undo_inhibit_record_point): New variable.
20318 (syms_of_undo): Initialize it.
20319 (record_point): Don't record point when undo_inhibit_record_point
20320 is set.
20321
20322 2008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
20323
20324 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
20325
20326 * xdisp.c (Qauto_hscroll_mode): New var.
20327 (syms_of_xdisp): Initialize it.
20328 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
20329 window's buffer.
20330 (hscroll_windows): Don't check automatic_hscrolling_p here.
20331
20332 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
20333 vscroll if we're setting window-buffer to the value it already has.
20334
20335 2008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
20336
20337 * m/intel386.h: Remove references to XENIX.
20338
20339 2008-01-17 Andreas Schwab <schwab@suse.de>
20340
20341 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
20342 instead of HAVE_X86_64_LIB64_DIR.
20343 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
20344
20345 2008-01-17 Glenn Morris <rgm@gnu.org>
20346
20347 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
20348 to HAVE_X86_64_LIB64_DIR.
20349
20350 2008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
20351
20352 * s/irix3-3.h:
20353 * s/irix4-0.h:
20354 * s/386-ix.h:
20355 * s/domain.h:
20356 * s/hpux9-x11r4.h:
20357 * s/hpux9shxr4.h: Remove files for systems no longer supported.
20358
20359 * sysdep.c: Remove code containing references to symbols defined
20360 by unsupported systems.
20361
20362 2008-01-16 Glenn Morris <rgm@gnu.org>
20363
20364 * coding.c (select-safe-coding-system-function): Doc fix.
20365
20366 2008-01-15 Glenn Morris <rgm@gnu.org>
20367
20368 * config.in: Revert 2008-01-13 change: this is a generated file.
20369
20370 2008-01-13 Tom Tromey <tromey@redhat.com>
20371
20372 * lisp.h: Fix typo.
20373
20374 2008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
20375
20376 * m/sequent-ptx.h:
20377 * m/sequent.h:
20378 * s/ptx.h:
20379 * s/ptx4-2.h:
20380 * s/ptx4.h: Remove files for systems no longer supported.
20381
20382 * callproc.c (Fcall_process): Fix previous change.
20383
20384 2008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
20385
20386 * unexsunos4.c: Remove file, system not supported anymore.
20387
20388 * m/mips.h:
20389 * m/intel386.h:
20390 * callproc.c:
20391 * config.in:
20392 * ecrt0.c:
20393 * emacs.c:
20394 * fileio.c:
20395 * frame.c:
20396 * getpagesize.h:
20397 * keyboard.c:
20398 * lread.c:
20399 * process.c:
20400 * puresize.h:
20401 * sysdep.c:
20402 * systty.h:
20403 * syswait.h:
20404 * unexec.c:
20405 * xdisp.c:
20406 * alloc.c: Remove code containing references to symbols defined by
20407 unsupported systems.
20408
20409 2008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
20410
20411 * coding.c (detect_coding_mask): Fix previous change.
20412
20413 2008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
20414
20415 * coding.c (detect_coding_iso2022): New arg
20416 latin_extra_code_state. Allow Latin extra codes only
20417 when *latin_extra_code_state is nonzero.
20418 (detect_coding_mask): If there is a NULL byte, detect the encoding
20419 as UTF-16 or binary. If Latin extra codes exist, detect the
20420 encoding as ISO-2022 only when there's no other proper encoding is
20421 found.
20422
20423 2008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20424
20425 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
20426 #ifdef MAC_OS.
20427
20428 2008-01-08 Richard Stallman <rms@gnu.org>
20429
20430 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
20431
20432 2008-01-06 Nick Roberts <nickrob@snap.net.nz>
20433
20434 * keyboard.c (parse_menu_item): Don't enclose key bindings on
20435 menu bar in parentheses.
20436
20437 2008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
20438
20439 * m/7300.h:
20440 * m/acorn.h:
20441 * m/alliant-2800.h:
20442 * m/alliant.h:
20443 * m/alliant1.h:
20444 * m/alliant4.h:
20445 * m/altos.h:
20446 * m/amdahl.h:
20447 * m/apollo.h:
20448 * m/att3b.h:
20449 * m/aviion-intel.h:
20450 * m/aviion.h:
20451 * m/celerity.h:
20452 * m/clipper.h:
20453 * m/cnvrgnt.h:
20454 * m/convex.h:
20455 * m/cydra5.h:
20456 * m/delta88k.h:
20457 * m/dpx2.h:
20458 * m/dual.h:
20459 * m/elxsi.h:
20460 * m/f301.h:
20461 * m/gould-np1.h:
20462 * m/gould.h:
20463 * m/i860.h:
20464 * m/ibmps2-aix.h:
20465 * m/ibmrt-aix.h:
20466 * m/ibmrt.h:
20467 * m/irist.h:
20468 * m/is386.h:
20469 * m/isi-ov.h:
20470 * m/mega68.h:
20471 * m/mg1.h:
20472 * m/news-r6.h:
20473 * m/news-risc.h:
20474 * m/news.h:
20475 * m/nh3000.h:
20476 * m/nh4000.h:
20477 * m/ns16000.h:
20478 * m/ns32000.h:
20479 * m/nu.h:
20480 * m/orion.h:
20481 * m/orion105.h:
20482 * m/paragon.h:
20483 * m/pfa50.h:
20484 * m/plexus.h:
20485 * m/pyramid.h:
20486 * m/pyrmips.h:
20487 * m/sh3el.h:
20488 * m/sps7.h:
20489 * m/sr2k.h:
20490 * m/stride.h:
20491 * m/sun1.h:
20492 * m/sun2.h:
20493 * m/sun3-68881.h:
20494 * m/sun3-fpa.h:
20495 * m/sun3-soft.h:
20496 * m/sun3.h:
20497 * m/sun386.h:
20498 * m/symmetry.h:
20499 * m/tad68k.h:
20500 * m/tahoe.h:
20501 * m/targon31.h:
20502 * m/tek4300.h:
20503 * m/tekxd88.h:
20504 * m/tower32.h:
20505 * m/tower32v3.h:
20506 * m/ustation.h:
20507 * m/wicat.h:
20508 * m/xps100.h:
20509 * s/cxux.h:
20510 * s/cxux7.h:
20511 * s/dgux.h:
20512 * s/dgux4.h:
20513 * s/dgux5-4-3.h:
20514 * s/dgux5-4r2.h:
20515 * s/esix.h:
20516 * s/esix5r4.h:
20517 * s/hiuxmpp.h:
20518 * s/hiuxwe2.h:
20519 * s/iris3-5.h:
20520 * s/iris3-6.h:
20521 * s/isc2-2.h:
20522 * s/isc3-0.h:
20523 * s/isc4-0.h:
20524 * s/isc4-1.h:
20525 * s/newsos5.h:
20526 * s/newsos6.h:
20527 * s/osf1.h:
20528 * s/osf5-0.h:
20529 * s/riscix1-1.h:
20530 * s/riscix12.h:
20531 * s/sco4.h:
20532 * s/sco5.h:
20533 * s/sunos4-0.h:
20534 * s/sunos4-1.h:
20535 * s/sunos413.h:
20536 * s/sunos4shr.h:
20537 * s/umax.h:
20538 * s/unipl5-2.h:
20539 * s/xenix.h:
20540 * cxux-crt0.s:
20541 * unexapollo.c:
20542 * unexconvex.c:
20543 * unexenix.c:
20544 * unexsni.c: Remove files for systems no longer supported.
20545
20546 * m/intel386.h: Remove references to unsupported systems.
20547
20548 * w32.c (get_emacs_configuration): Remove reference to i860.
20549
20550 * sysdep.c: Remove dead code.
20551
20552 2008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
20553
20554 * s/rtu.h:
20555 * m/masscomp.h: Remove files. Platform is obsolete.
20556
20557 2008-01-04 Michael Albinus <michael.albinus@gmx.de>
20558
20559 * dbusbind.c (Fdbus_method_return): New function.
20560 (xd_read_message): Add the serial number to the event.
20561 (Fdbus_register_method): Activate the function.
20562
20563 2008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
20564
20565 * keyboard.c (read_key_sequence): Fix typo.
20566
20567 2008-01-03 Michael Albinus <michael.albinus@gmx.de>
20568
20569 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
20570 (xd_signature, xd_append_arg): Handle element type detection for
20571 empty arrays.
20572 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
20573 SDATA () calls; this must be solved more general.
20574 (Fdbus_register_signal): Use SBYTES instead of strlen.
20575
20576 2008-01-03 Magnus Henoch <magnus@zemdatav>
20577
20578 * dbusbind.c (xd_append_arg): Use unsigned char instead of
20579 unsigned int for byte values (necessary for big-endian platform).
20580 (Fdbus_call_method): Handle the case of no returned arguments.
20581
20582 2007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
20583
20584 * dbusbind.c (xd_read_message): Use non-static input_event struct.
20585
20586 2007-12-31 Magnus Henoch <mange@freemail.hu>
20587
20588 * dbusbind.c (xd_signature): Signature of variant is just "v".
20589
20590 2007-12-30 Michael Albinus <michael.albinus@gmx.de>
20591
20592 * dbusbind.c: Fix several errors and compiler warnings.
20593 Reported by Tom Tromey <tromey@redhat.com>.
20594 (XD_ERROR, XD_DEBUG_MESSAGE)
20595 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
20596 (xd_append_arg): Part for basic D-Bus types rewritten.
20597 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
20598 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
20599 appropriate.
20600 (xd_read_message): Return Qnil. Don't signal an error; it is not
20601 useful during event reading.
20602 (Fdbus_register_signal): Signal an error if the check for
20603 FUNCTIONP fails.
20604 (Fdbus_register_method): New function. The implementation is not
20605 complete, the call of the function signals an error therefore.
20606 (Fdbus_unregister_object): New function, renamed from
20607 Fdbus_unregister_signal. The initial check signals an error, if
20608 the object is not well formed.
20609
20610 2007-12-30 Richard Stallman <rms@gnu.org>
20611
20612 * textprop.c (get_char_property_and_overlay):
20613 Signal error if POSITION is out of range in a buffer.
20614
20615 2007-12-29 Martin Rudalics <rudalics@gmx.at>
20616
20617 * w32fns.c (Fx_create_frame): Make copy of frame parameters
20618 because the original parameters are in pure storage now.
20619
20620 2007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20621
20622 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
20623
20624 2007-12-22 Eli Zaretskii <eliz@gnu.org>
20625
20626 * callint.c (syms_of_callint) <command-history>: Add reference to
20627 history-length in the doc string.
20628
20629 2007-12-17 Jason Rumney <jasonr@gnu.org>
20630
20631 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
20632 before passing as wParam.
20633
20634 2007-12-22 Michael Albinus <michael.albinus@gmx.de>
20635
20636 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
20637 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
20638 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
20639 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
20640 as number.
20641 (Fdbus_call_method): Fix docstring.
20642
20643 2007-12-21 Michael Albinus <michael.albinus@gmx.de>
20644
20645 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
20646 New macros.
20647 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
20648 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
20649 Simplify.
20650 (xd_signature): New function.
20651 (xd_append_arg): Compute also signatures. Major rewrite.
20652 (xd_retrieve_arg): Make debug messages friendly.
20653 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
20654 Check for signatures of arguments.
20655
20656 2007-12-19 Michael Albinus <michael.albinus@gmx.de>
20657
20658 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
20659 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
20660 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
20661 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
20662 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
20663 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
20664 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
20665 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
20666 (xd_retrieve_value): Remove. Functionality included in ...
20667 (xd_append_arg): New function.
20668 (Fdbus_call_method, Fdbus_send_signal): Apply it.
20669
20670 2007-12-16 Michael Albinus <michael.albinus@gmx.de>
20671
20672 * dbusbind.c (top): Include <stdio.h>.
20673 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
20674 dbus_message_new_method_call and dbus_message_new_signal.
20675 (Fdbus_register_signal): Rename unique_name to uname.
20676 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
20677 non-existing unique name. Fix typos in matching rule. Return an
20678 object which is useful in Fdbus_unregister_signal.
20679 (Fdbus_unregister_signal): Reimplementation, in order to remove
20680 only the corresponding entry.
20681 (Vdbus_registered_functions_table): Change the order of entries.
20682 Apply these changes in xd_read_message and Fdbus_register_signal.
20683
20684 2007-12-16 Andreas Schwab <schwab@suse.de>
20685
20686 * fileio.c (Finsert_file_contents): Fix overflow check to not
20687 depend on undefined integer overflow.
20688
20689 2007-12-14 Jason Rumney <jasonr@gnu.org>
20690
20691 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
20692 for characters above 127.
20693
20694 2007-12-13 Jason Rumney <jasonr@gnu.org>
20695
20696 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
20697 before dereferencing array.
20698 (lookup_vk_code): Remove zero comparison.
20699
20700 2007-12-14 Michael Albinus <michael.albinus@gmx.de>
20701
20702 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
20703 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
20704 Use `unsigned int' instead of `uint'.
20705 (xd_read_message, Fdbus_register_signal): Split expressions into
20706 multiple lines before operators "&&" and "||", according to the
20707 GNU Coding Standards.
20708
20709 2007-12-14 Eli Zaretskii <eliz@gnu.org>
20710
20711 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
20712
20713 2007-12-12 Juri Linkov <juri@jurta.org>
20714
20715 * buffer.c (Frename_buffer): In interactive spec replace
20716 `read-buffer' with `read-string' that uses `buffer-name-history'
20717 as history, and the current buffer's name as default.
20718
20719 2007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
20720
20721 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
20722 manipulating the backtrace manually.
20723 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
20724 (struct backtrace, backtrace_list): Remove.
20725 (command_loop_1): Remove dead var `no_direct'.
20726
20727 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
20728 preserve non-built-in buffer-local variables.
20729 (Fkill_all_local_variables): Don't re-create&re-set permanent
20730 buffer-local variables.
20731
20732 2007-12-09 Juri Linkov <juri@jurta.org>
20733
20734 * buffer.c (Frename_buffer): Change interactive spec from "s" to
20735 Lisp code that uses `read-buffer' with current buffer as default.
20736
20737 2007-12-08 Michael Albinus <michael.albinus@gmx.de>
20738
20739 * dbusbind.c (xd_read_message): Generate an event for every
20740 registered handler. There might be several handlers registered
20741 for the same signal.
20742 (Fdbus_register_signal): Don't overwrite a registration for the
20743 same signal. Add a new registration if handlers are different.
20744 (Vdbus_registered_functions_table): Rework doc string.
20745
20746 2007-12-07 Michael Albinus <michael.albinus@gmx.de>
20747
20748 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
20749 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
20750 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
20751 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
20752 Unify argument lists.
20753 (xd_read_message, Fdbus_register_signal): Reorder and extend event
20754 arguments and hash table keys. Use unique name for service.
20755 (Fdbus_unregister_signal): Remove checks.
20756 (Vdbus_registered_functions_table): Fix doc string.
20757
20758 2007-12-05 Magnus Henoch <mange@freemail.hu>
20759
20760 * process.c (make_process): Initialize pty_flag to 0.
20761
20762 2007-12-05 Jason Rumney <jasonr@gnu.org>
20763
20764 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
20765 specified XBMs.
20766
20767 2007-12-05 Richard Stallman <rms@gnu.org>
20768
20769 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
20770
20771 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20772
20773 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
20774 New variable.
20775 (mac_try_close_socket) [MAC_OSX]: New function.
20776 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
20777 Update cfsockets_for_select. Replace invalid CFRunLoop source.
20778
20779 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
20780 Use mac_try_close_socket.
20781
20782 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20783
20784 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
20785 reloc_base.
20786 (copy_dysymtab): Compute relocation base here.
20787 (rebase_reloc_address) [__ppc64__]: New function.
20788 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
20789 changed.
20790
20791 2007-12-05 Jason Rumney <jasonr@gnu.org>
20792
20793 * w32proc.c (sys_spawnve): Quote args with wildcards.
20794
20795 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20796
20797 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
20798 __objc_* sections.
20799 (unrelocate) [_LP64]: Set relocation base to address of data segment.
20800
20801 2007-12-05 Michael Albinus <michael.albinus@gmx.de>
20802
20803 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
20804 Move check for Vdbus_registered_functions_table to
20805 xd_read_queued_messages.
20806 (xd_read_queued_messages): Protect xd_read_message calls by
20807 internal_condition_case_1.
20808
20809 2007-12-04 Michael Albinus <michael.albinus@gmx.de>
20810
20811 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
20812 Qdbus_system_bus and Qdbus_session_bus, respectively.
20813 (Vdbus_intern_symbols): Remove.
20814 (Vdbus_registered_functions_table): New hash table.
20815 (XD_SYMBOL_INTERN_SYMBOL): Remove.
20816 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
20817 Rewrite in order to manage registered functions by hash table
20818 Vdbus_registered_functions_table.
20819
20820 2007-12-03 Jan Djärv <jan.h.d@swipnet.se>
20821
20822 * xterm.c: Update URL to Window Manager Specification in comment.
20823
20824 2007-12-02 Michael Albinus <michael.albinus@gmx.de>
20825
20826 * config.in (HAVE_DBUS): Add.
20827
20828 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
20829 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
20830 (obj): Add $(DBUS_OBJ).
20831 (LIBES): Add $(DBUS_LIBS).
20832 (dbusbind.o): New target.
20833
20834 * dbusbind.c: New file.
20835
20836 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
20837
20838 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
20839 (Qdbus_event): New Lisp symbol.
20840 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
20841 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
20842 (keys_of_keyboard): Define dbus-event.
20843
20844 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
20845
20846 2007-12-01 Richard Stallman <rms@gnu.org>
20847
20848 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
20849
20850 2007-11-30 Jason Rumney <jasonr@gnu.org>
20851
20852 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
20853 (w32con_reset_terminal_modes): Clear screen buffer.
20854 (w32_face_attributes): Don't use color indexes that are out of range.
20855 Only reverse the default colors.
20856
20857 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
20858 WINDOWSNT.
20859
20860 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
20861
20862 2007-11-29 Jason Rumney <jasonr@gnu.org>
20863
20864 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
20865 (w32_face_attributes): Use Vtty_defined_color_alist to determine
20866 if the terminal colors are initialized.
20867 (unspecified_fg, unspecified_bg): Remove unused declarations.
20868
20869 2007-11-29 Andreas Schwab <schwab@suse.de>
20870
20871 * keyboard.c (apply_modifiers): Fix typo.
20872
20873 2007-11-29 Richard Stallman <rms@gnu.org>
20874
20875 * keymap.c (Fcurrent_local_map): Doc fix.
20876
20877 2007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
20878
20879 * s/gnu-kfreebsd.h: New file.
20880
20881 2007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
20882
20883 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
20884 Don't cast redundantly.
20885
20886 * keyboard.c (KEY_TO_CHAR): New macro.
20887 (parse_modifiers, apply_modifiers): Accept integer arguments.
20888 (read_key_sequence): Use them to unify the "shift->unshift" mapping
20889 for chars and symbol keys.
20890 After doing such remapping, apply function-key-map again.
20891
20892 2007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
20893
20894 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
20895 compiled anymore.
20896
20897 2007-11-26 Andreas Schwab <schwab@suse.de>
20898
20899 * process.c (list_processes_1): Fix indentation level of the
20900 command column.
20901
20902 2007-11-23 Andreas Schwab <schwab@suse.de>
20903
20904 * editfns.c (Fformat): Handle %c specially since it requires the
20905 argument to be of type int.
20906
20907 2007-11-23 Markus Triska <markus.triska@gmx.at>
20908
20909 * emacs.c (main): Call init_editfns before init_process, since
20910 init_process sets Vprocess_connection_type depending on OS release.
20911
20912 2007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
20913
20914 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
20915 (find_symbol_value): Use do_symval_forwarding.
20916
20917 * data.c (set_internal): Set the value in the `cons-cell' (for
20918 Buffer_Local_values) not only for frame-local variables.
20919
20920 2007-11-22 Andreas Schwab <schwab@suse.de>
20921
20922 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
20923 values to sprintf.
20924 * keymap.c (Fsingle_key_description): Likewise.
20925 * print.c (print_object): Likewise.
20926
20927 2007-11-22 Jan Djärv <jan.h.d@swipnet.se>
20928
20929 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
20930 file for image is nil.
20931
20932 2007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
20933
20934 * term.c: Include stdarg.h.
20935 (fatal): Implement using varargs.
20936 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
20937
20938 2007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
20939
20940 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
20941 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
20942 Update call to buffer_slot_type_mismatch.
20943 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
20944 (buffer_slot_type_mismatch): Update.
20945 * buffer.c (buffer_local_types): Remove.
20946 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
20947 (defvar_per_buffer): Set the type in the buffer_objfwd.
20948
20949 2007-11-21 Jason Rumney <jasonr@gnu.org>
20950
20951 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
20952 CreateFileMapping returns NULL on failure.
20953
20954 2007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
20955
20956 * search.c (Fset_match_data): Remove the `evaporate' feature.
20957 (unwind_set_match_data): Don't use the `evaporate' feature.
20958
20959 2007-11-21 Jason Rumney <jasonr@gnu.org>
20960
20961 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
20962
20963 * w32console.c (w32con_write_glyphs): Remove unused variables.
20964
20965 2007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
20966
20967 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
20968
20969 * s/darwin.h (MULTI_KBOARD): Remove.
20970
20971 * macfns.c (x_create_tip_frame, Fx_create_frame)
20972 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
20973
20974 2007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
20975
20976 * buffer.c (Fbuffer_local_value): Remove redundant test.
20977 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
20978 than in `current-buffer' to match the comment.
20979 Do the swap using swap_in_global_binding.
20980
20981 * data.c (store_symval_forwarding, set_internal):
20982 * eval.c (specbind): Remove dead code.
20983
20984 * coding.c (detect_coding, Fupdate_coding_systems_internal):
20985 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
20986 Since we do not want to see internal Lisp_*fwd objects here.
20987
20988 2007-11-18 Jan Djärv <jan.h.d@swipnet.se>
20989
20990 * sysdep.c (init_system_name): Use getaddrinfo if available.
20991
20992 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
20993 (x_scroll_bar_note_movement): start, end, with, height in struct
20994 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
20995
20996 2007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
20997
20998 * puresize.h (BASE_PURESIZE): Increase to 1190000.
20999
21000 2007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
21001
21002 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
21003 This undoes Richard's change of 14-Oct-2002.
21004
21005 * alloc.c (allocate_other_vector):
21006 * lisp.h (allocate_other_vector): Remove.
21007
21008 * window.c (struct save_window_data): Move non-lisp data to the end
21009 and make it `int' rather than Lisp_Object.
21010 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
21011 Done wrap/unwrap integer values.
21012 (Fset_window_configuration, compare_window_configurations):
21013 Update use of fields to their new types.
21014
21015 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
21016 Turn integer fields into `int'. Merge x_window_low and x_window_high.
21017 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
21018 (SET_SCROLL_BAR_X_WINDOW): Remove.
21019 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
21020 Access the new x_window field directly.
21021 * xterm.c (x_scroll_bar_create): Use a pseudovector.
21022 Don't wrap/unwrap integers into Lisp_Objects.
21023 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
21024 (x_scroll_bar_report_motion):
21025 Don't wrap/unwrap integers into Lisp_Objects.
21026 (x_term_init): Use SDATA.
21027 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
21028 (x_scroll_bar_set_handle, x_scroll_bar_remove)
21029 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
21030 (x_scroll_bar_report_motion, x_scroll_bar_clear):
21031 * xfns.c (x_set_background_color):
21032 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
21033 Access the new x_window field directly.
21034
21035 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
21036 (allocate_pseudovector): Make non-static.
21037
21038 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
21039 (allocate_pseudovector): Declare.
21040 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
21041
21042 2007-11-15 Andreas Schwab <schwab@suse.de>
21043
21044 * editfns.c (Fformat): Correctly format EMACS_INT values.
21045 Also take precision into account when formatting an integer.
21046
21047 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
21048
21049 2007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
21050
21051 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
21052 (syms_of_keyboard): Defsubr it.
21053
21054 * data.c (swap_in_global_binding): Fix longstanding bug where
21055 store_symval_forwarding was not called with the right second argument,
21056 thus causing objfwd-ing from being dropped.
21057
21058 2007-11-14 Juanma Barranquero <lekktu@gmail.com>
21059
21060 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
21061 (Fx_display_pixel_height, Fx_display_planes)
21062 (Fx_display_color_cells, Fx_server_max_request_size)
21063 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
21064 (Fx_display_visual_class, Fx_display_save_under):
21065 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
21066 (Fx_display_pixel_height, Fx_display_planes)
21067 (Fx_display_color_cells, Fx_server_max_request_size)
21068 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
21069 (Fx_display_mm_height, Fx_display_mm_width)
21070 (Fx_display_backing_store, Fx_display_visual_class)
21071 (Fw32_select_font, Fx_display_save_under):
21072 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
21073 (Fx_display_pixel_height, Fx_display_planes)
21074 (Fx_display_color_cells, Fx_server_max_request_size)
21075 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
21076 (Fx_display_save_under): Fix typos in docstrings.
21077
21078 2007-11-14 Juanma Barranquero <lekktu@gmail.com>
21079
21080 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
21081 corresponding to deleted entries; they are an implementation detail.
21082 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
21083 Remove variables.
21084 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
21085 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
21086 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
21087 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
21088 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
21089 (Fw32_define_rgb_color, Fw32_load_color_file)
21090 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
21091 Fix typos in docstrings.
21092 (Fx_server_version): Reflow docstring.
21093 (Fw32_shell_execute): Doc fixes.
21094
21095 2007-11-13 Juanma Barranquero <lekktu@gmail.com>
21096
21097 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
21098 if w32_parse_hot_key returned nil.
21099
21100 2007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
21101
21102 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
21103
21104 2007-11-09 Jason Rumney <jasonr@gnu.org>
21105
21106 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
21107
21108 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
21109
21110 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
21111 Remove W32_SCROLL_BAR_CLICK_EVENT.
21112
21113 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
21114 Add MULTIMEDIA_KEY_EVENT.
21115
21116 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
21117 (lispy_multimedia_keys) [WINDOWSNT]: New array.
21118 (make_lispy_event) [WINDOWSNT]: Use it to translate
21119 MULTIMEDIA_KEY_EVENT.
21120
21121 * w32term.h (WM_APPCOMMAND): Define if not already.
21122 (GET_APPCOMMAND_LPARAM): Likewise.
21123
21124 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
21125 WM_APPCOMMAND.
21126
21127 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
21128 (syms_of_w32fns): Export and initialize it.
21129 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
21130
21131 2007-11-09 Chong Yidong <cyd@stupidchicken.com>
21132
21133 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
21134 twice.
21135
21136 * xdisp.c (handle_face_prop): Fix last change.
21137
21138 2007-11-09 Richard Stallman <rms@gnu.org>
21139
21140 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
21141 not just for after-strings and before-strings.
21142 Call face_for_overlay_string and pass the overlay to it.
21143 (handle_display_prop): Determine whether property came from an overlay.
21144 Pass OVERLAY arg to handle_single_display_spec.
21145 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
21146 (load_overlay_strings): Fill in it->string_overlays.
21147 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
21148
21149 * xfaces.c (face_for_overlay_string): Function renamed from
21150 face_at_buffer_position_no_overlays, and add arg OVERLAY.
21151
21152 * dispextern.h (struct it): New elt string_overlays.
21153 New elt from_overlay, also in stack.
21154 Rearrange a few elements.
21155 (face_for_overlay_string): Decl renamed from
21156 face_at_buffer_position_no_overlays, and add argument.
21157
21158 2007-11-09 Richard Stallman <rms@gnu.org>
21159
21160 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
21161 to get the base face for an overlay string.
21162
21163 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
21164
21165 * xfaces.c (face_at_buffer_position_no_overlays): New function.
21166
21167 * xdisp.c (handle_stop): Move some code out of loop.
21168
21169 2007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21170
21171 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
21172 Fix conversion from Lisp object to ATSUFontID.
21173
21174 2007-11-09 Jason Rumney <jasonr@gnu.org>
21175
21176 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
21177
21178 2007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21179
21180 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
21181 Don't assume regions are aligned to page boundary.
21182 (print_load_command_name): Add LC_UUID if defined.
21183
21184 2007-11-09 Richard Stallman <rms@gnu.org>
21185
21186 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
21187
21188 2007-11-07 Jason Rumney <jasonr@gnu.org>
21189
21190 * s/windows95.h: Remove.
21191
21192 2007-11-06 Jan Djärv <jan.h.d@swipnet.se>
21193
21194 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
21195 abort with a message on unhandled store_type values.
21196
21197 2007-11-01 Jan Djärv <jan.h.d@swipnet.se>
21198
21199 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
21200 Remove HAVE_X11R5 and HAVE_X11R4.
21201
21202 2007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
21203
21204 * Makefile.in: Remove references to sunfns.c and sunfns.o.
21205
21206 2007-11-01 Johan Bockgård <bojohan@gnu.org>
21207
21208 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
21209 Don't set s->stippled_p here, since it has already been set by
21210 x_set_glyph_string_gc from x_draw_glyph_string.
21211
21212 2007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
21213
21214 * sunfns.c: Remove file.
21215
21216 * m/sun386.h:
21217 * m/sun2.h:
21218 * m/sparc.h: Remove Sun windows code.
21219
21220 2007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
21221
21222 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
21223 (init_keyboard): Set current_kboard's window-system to nil.
21224 (tty_read_avail_input): Typo.
21225 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
21226
21227 2007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
21228
21229 * s/usg5-4.h:
21230 * s/usg5-3.h:
21231 * s/ptx.h:
21232 * m/is386.h:
21233 * m/ibmps2-aix.h:
21234 * Makefile.in: Remove all mentions of X10.
21235
21236 * dispnew.c (syms_of_display): Don't mention version 10.
21237
21238 2007-10-28 Juanma Barranquero <lekktu@gmail.com>
21239
21240 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
21241 ($(BLD)/abbrev.$(O)): Remove.
21242
21243 2007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
21244
21245 Rewrite abbrev.c in Elisp.
21246 * image.c (Qcount): Don't declare as extern.
21247 (syms_of_image): Initialize and staticpro `Qcount'.
21248 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
21249 * emacs.c (main): Don't call syms_of_abbrev.
21250 * Makefile.in (obj): Remove abbrev.o.
21251 (abbrev.o): Remove.
21252 * abbrev.c: Remove.
21253
21254 2007-10-26 Martin Rudalics <rudalics@gmx.at>
21255
21256 * window.c (window_min_size_2): Don't count header-line.
21257
21258 2007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
21259
21260 * frame.h (struct frame): Move all bit fields after the first bit
21261 field to take advantage of the available space. Group all the
21262 chars together to reduce wasted space due to padding.
21263
21264 2007-10-26 Juanma Barranquero <lekktu@gmail.com>
21265
21266 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
21267
21268 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
21269 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
21270 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
21271 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
21272 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
21273 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
21274 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
21275 (last_marked, mark_object_loop_halt): Make static.
21276
21277 * frame.c (syms_of_frame) <delete-frame-functions>:
21278 Fix typo in docstring.
21279
21280 2007-10-25 Juanma Barranquero <lekktu@gmail.com>
21281
21282 * w32.c (init_environment): Fix tiny memory leak.
21283 (w32_get_resource): Remove unused variable `ok'.
21284
21285 2007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
21286
21287 Make `window-system' into a keyboard-local variable (rather than
21288 frame-local as done originally by multi-tty).
21289
21290 * keyboard.h (struct kboard): Add Vwindow_system.
21291 * keyboard.c (init_kboard): Set a default for Vwindow_system.
21292 (mark_kboards): Mark Vwindow_system.
21293
21294 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
21295 (init_display): Don't set the obsolete `window-system' frame-param.
21296
21297 * xterm.c (x_term_init):
21298 * w32term.c (w32_create_terminal):
21299 * term.c (init_tty): Set Vwindow_system.
21300 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
21301 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
21302
21303 * xfns.c (Fx_create_frame, x_create_tip_frame):
21304 * w32fns.c (Fx_create_frame, x_create_tip_frame):
21305 * macfns.c (Fx_create_frame):
21306 Don't set the obsolete `window-system' frame-param.
21307
21308 * frame.h (Qwindow_system): Remove.
21309 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
21310 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
21311
21312 2007-10-24 Richard Stallman <rms@gnu.org>
21313
21314 * frame.c (x_figure_window_size): For fullscreen case,
21315 set USPosition | PPosition without clobbering rest of window_prompting.
21316
21317 * keyboard.c (Fcurrent_idle_time): Doc fix.
21318
21319 * print.c (Fwith_output_to_temp_buffer): Doc fix.
21320
21321 2007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
21322
21323 * process.c (unwind_request_sigio): Only define if __ultrix__.
21324
21325 * callproc.c (child_setup): Remove spurious *.
21326
21327 * lisp.h (Fget_text_property): Declare.
21328 (have_menus_p): Declare it here rather than in sys-dep header files.
21329 * macterm.h (have_menus_p):
21330 * msdos.h (have_menus_p):
21331 * xterm.h (have_menus_p): Remove.
21332
21333 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
21334 (Fmake_variable_frame_local): Just check the variable's const-ness
21335 rather than checking nil or t.
21336
21337 2007-10-22 Jason Rumney <jasonr@gnu.org>
21338
21339 * w32fns.c: Include math.h.
21340 (w32_abort): Declaration moved to nt/config.nt.
21341
21342 * s/ms-w32.h (HAVE_STDLIB_H): Define.
21343 (abort): Redefinition moved to nt/config.nt.
21344
21345 * m/windowsnt.h: Remove.
21346
21347 2007-10-22 Juanma Barranquero <lekktu@gmail.com>
21348
21349 * emacs.c (Fdump_emacs): Fix typo in message.
21350 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
21351 <installation-directory>: Reflow docstring.
21352
21353 2007-10-22 Juri Linkov <juri@jurta.org>
21354
21355 * minibuf.c: Allow minibuffer default to be a list of default values.
21356 With empty input use the first element of this list as returned default.
21357 (string_to_object)
21358 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
21359 (read_minibuf): If defalt is cons, set histstring to its car.
21360 (Fread_string): If default_value is cons, set val to its car.
21361 (Fread_buffer): If def is cons, use its car.
21362 (Fcompleting_read): If defalt is cons, set val to its car.
21363
21364 2007-10-21 Michael Albinus <michael.albinus@gmx.de>
21365
21366 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
21367
21368 2007-10-20 Juanma Barranquero <lekktu@gmail.com>
21369
21370 * doc.c (Fdocumentation): Check for advice in all cases.
21371
21372 2007-10-19 Chong Yidong <cyd@stupidchicken.com>
21373
21374 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
21375
21376 2007-10-19 Richard Stallman <rms@gnu.org>
21377
21378 * doc.c (Fdocumentation): Check for and handle an advised function.
21379
21380 2007-10-19 Juanma Barranquero <lekktu@gmail.com>
21381
21382 * process.c (Fset_process_filter): Doc fix.
21383
21384 2007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
21385
21386 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
21387 which caused key-translation-map to applied repeatedly (thus breaking
21388 double-mode).
21389
21390 2007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
21391
21392 * xselect.c (x_own_selection, x_handle_selection_clear)
21393 (x_clear_frame_selections):
21394 * w32menu.c (list_of_panes, list_of_items):
21395 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
21396 * textprop.c (validate_plist, interval_has_all_properties)
21397 (interval_has_some_properties, interval_has_some_properties_list)
21398 (add_properties, text_property_list):
21399 * process.c (Fget_buffer_process, list_processes_1, status_notify):
21400 * minibuf.c (Fassoc_string):
21401 * macselect.c (x_own_selection, x_clear_frame_selections)
21402 (Fx_disown_selection_internal):
21403 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
21404 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
21405
21406 2007-10-17 Chong Yidong <cyd@stupidchicken.com>
21407
21408 * process.c: Link to libs for calling res_init() if available.
21409 (Fmake_network_process): Call res_init() before getaddrinfo or
21410 gethostbyname, if possible.
21411
21412 2007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
21413
21414 * lread.c (read1): Set pvectype for char_tables.
21415
21416 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
21417 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
21418 Add type checks.
21419 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
21420
21421 * alloc.c (free_misc): Use XMISCTYPE.
21422 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
21423
21424 2007-10-17 Glenn Morris <rgm@gnu.org>
21425
21426 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
21427 (syms_of_minibuf): Add Qcompletion_ignore_case.
21428 * dired.c (Qcompletion_ignore_case): Change to external.
21429 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
21430 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
21431 (Fread_file_name): Use it rather than intern'ing.
21432
21433 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
21434 (Fread_coding_system): Ignore case of user input.
21435
21436 2007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21437
21438 * xdisp.c (handle_display_prop): Ignore display specs after
21439 replacing one when string text is being replaced.
21440 (handle_single_display_spec): Pretend as if characters with display
21441 property haven't been consumed only when buffer text is being replaced.
21442
21443 2007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
21444
21445 * xfns.c (Fx_create_frame, Fx_display_list):
21446 * window.c (window_fixed_size_p, enlarge_window)
21447 (shrink_window_lowest_first):
21448 * macterm.c (init_font_name_table):
21449 * macfns.c (Fx_create_frame, Fx_display_list):
21450 * lread.c (close_load_descs):
21451 * keyboard.c (read_char_x_menu_prompt):
21452 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
21453 * coding.c (code_convert_region_unwind): Test the type of an object
21454 rather than just !NILP before extracting data from it.
21455
21456 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
21457
21458 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
21459 (XMISCANY): New macro.
21460 (XMISCTYPE): Use it.
21461 (struct Lisp_Misc_Any): New type.
21462 (union Lisp_Misc): Use it.
21463 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
21464 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
21465 (find_symbol_value, set_internal, default_value, Fset_default)
21466 (Fmake_variable_buffer_local, Fmake_local_variable)
21467 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
21468 (Flocal_variable_if_set_p, Fvariable_binding_locus):
21469 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
21470 * alloc.c (allocate_buffer): Set the size and tag.
21471 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
21472 Use XMISCANY.
21473 (die): Follow the GNU convention for error messages.
21474 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
21475 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
21476 tag any more.
21477 (set_buffer_internal_1):
21478 * frame.c (store_frame_param):
21479 * eval.c (specbind):
21480 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
21481
21482 * doc.c (Fsnarf_documentation): Simplify.
21483
21484 2007-10-14 Juanma Barranquero <lekktu@gmail.com>
21485
21486 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
21487 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
21488
21489 2007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
21490
21491 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
21492
21493 2007-10-14 Juanma Barranquero <lekktu@gmail.com>
21494
21495 * eval.c (do_autoload): Don't save autoloads.
21496
21497 * data.c (Ffset): Save autoload of the function being set.
21498
21499 2007-10-07 John Paul Wallington <jpw@pobox.com>
21500
21501 * xfns.c (x_create_tip_frame): Set the `display-type' frame
21502 parameter before setting up faces.
21503
21504 2007-10-13 Eli Zaretskii <eliz@gnu.org>
21505
21506 * ccl.c (Fregister_code_conversion_map):
21507 * keyboard.c (append_tool_bar_item): Reformat last change.
21508
21509 * lisp.h (eabs): Rename from `abs'. All callers changed.
21510
21511 2007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
21512
21513 * buffer.c (add_overlay_mod_hooklist):
21514 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
21515 * fontset.c (make_fontset):
21516 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
21517 (append_tool_bar_item):
21518 * macmenu.c (grow_menu_items):
21519 * w32menu.c (grow_menu_items):
21520 * xmenu.c (grow_menu_items): Use larger_vector.
21521
21522 2007-10-13 Eli Zaretskii <eliz@gnu.org>
21523
21524 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
21525 selected frame'' on MSDOS).
21526
21527 2007-10-12 Martin Rudalics <rudalics@gmx.at>
21528
21529 * frame.c (Qexplicit_name): New variable.
21530 (x_report_frame_params): Report it in parameter alist.
21531 (syms_of_frame): Intern and staticpro it.
21532
21533 2007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
21534
21535 * macfns.c (x_create_tip_frame): Set terminal for frame.
21536
21537 2007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
21538
21539 * frame.c (Qenvironment): Remove.
21540 (syms_of_frame) <Qenvironment>: Don't initialize.
21541 (Fdelete_frame): Don't treat the `environment' param specially.
21542 * frame.h (Qenvironment): Don't declare.
21543 * callproc.c (set_initial_environment): Don't set unused frame param.
21544
21545 * frame.c (Fframe_with_environment): Remove.
21546 (syms_of_frame) <Sframe_with_environment>: Don't declare.
21547
21548 * lisp.h (Fframe_with_environment): Don't declare.
21549
21550 2007-10-10 Juanma Barranquero <lekktu@gmail.com>
21551
21552 * indent.c (indent_tabs_mode, last_known_column)
21553 (last_known_column_modified): Make static.
21554 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
21555
21556 2007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
21557
21558 * puresize.h (BASE_PURESIZE): Increase to 1170000.
21559
21560 2007-10-09 Jason Rumney <jasonr@gnu.org>
21561
21562 * w32term.c (x_set_window_size): Disable code that attempts to tell
21563 Lisp code about a size change before it actually happens.
21564
21565 2007-10-09 Richard Stallman <rms@gnu.org>
21566
21567 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
21568 return HANDLED_RETURN.
21569
21570 2007-10-08 Martin Rudalics <rudalics@gmx.at>
21571
21572 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
21573 when there's an unread command event.
21574
21575 * frame.c (focus_follows_mouse): Move here from frame.el to allow
21576 window autoselection act appropriately when leaving selected frame.
21577 (syms_of_frame): Initialize focus_follows_mouse.
21578 * frame.h (focus_follows_mouse): Extern it.
21579 * macterm.c (XTread_socket): When focus_follows_mouse is nil
21580 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
21581 * msdos.c (dos_rawgetc): Likewise.
21582 * w32term.c (w32_read_socket): Likewise.
21583 * xterm.c (handle_one_xevent): Likewise.
21584 * xdisp.c (syms_of_xdisp): In doc-string of
21585 mouse-autoselect-window mention focus-follows-mouse.
21586
21587 2007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21588
21589 * macterm.c (mac_load_query_font): Fix missing return value.
21590 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
21591 Add BLOCK_INPUT.
21592
21593 2007-10-08 Richard Stallman <rms@gnu.org>
21594
21595 * xdisp.c (get_window_cursor_type): Implement documented behavior
21596 for cursor-in-non-selected-windows = t.
21597
21598 2007-10-08 Jason Rumney <jasonr@gnu.org>
21599
21600 * w32.c (w32_get_resource): Always close registry keys.
21601
21602 2007-10-08 Jason Rumney <jasonr@gnu.org>
21603
21604 * makefile.w32-in (LIBS): Add COMCTL32.
21605
21606 * w32fns.c (globals_of_w32fns): Init common controls.
21607
21608 2007-10-08 Richard Stallman <rms@gnu.org>
21609
21610 * image.c (our_memory_buffer): Rename from omfib_buffer.
21611
21612 2007-10-08 Richard Stallman <rms@gnu.org>
21613
21614 * buffer.c (Foverlays_at): Doc fix.
21615
21616 2007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
21617
21618 * fns.c (Fplist_put): Preserve uneven tail data.
21619
21620 2007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
21621
21622 * termhooks.h (enum event_kind): Remove trailing comma.
21623
21624 * frame.h (enum): Remove trailing comma.
21625
21626 2007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
21627
21628 * w32proc.c (delete_child): Don't terminate threads of zombies.
21629
21630 2007-10-08 Martin Rudalics <rudalics@gmx.at>
21631
21632 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
21633
21634 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
21635 last-repeatable-command.
21636 (init_kboard): Initialize Vlast_repeatable_command.
21637 (command_loop_1): Set it to real_this_command unless that was
21638 bound to an input event.
21639 (mark_kboards): Mark it.
21640
21641 2007-10-08 Richard Stallman <rms@gnu.org>
21642
21643 * eval.c (condition-case): Doc fix.
21644
21645 2007-10-08 Masatake YAMATO <jet@gyve.org>
21646
21647 * xfaces.c (tty_supports_face_attributes_p): Fix code
21648 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
21649 was copied and not edited.
21650
21651 2007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
21652
21653 Add new `input-decode-map' keymap and use it for terminal
21654 escape sequences.
21655 * keyboard.h (struct kboard): Add Vinput_decode_map.
21656 Remove Vlocal_key_translation_map.
21657 * keyboard.c (read_key_sequence): Add support for input-decode-map.
21658 (init_kboard): Init input-decode-map.
21659 Replace local-key-translation-map back with key-translation-map.
21660 (syms_of_keyboard): Declare input-decode-map.
21661 Remove local-key-translation-map. Update docstrings.
21662 (mark_kboards): Mark Vinput_decode_map.
21663 Don't mark Vlocal_key_translation_map.
21664 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
21665 Replace local-key-translation-map back with key-translation-map.
21666 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
21667 Bind in input-decode-map rather than function-key-map.
21668
21669 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
21670 This was made redundant by the previous introduction of XSETPVECTYPE.
21671
21672 2007-10-09 Richard Stallman <rms@gnu.org>
21673
21674 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
21675
21676 2007-09-29 Richard Stallman <rms@gnu.org>
21677
21678 * eval.c (internal_condition_case_2, internal_condition_case_1)
21679 (internal_condition_case): Reenable abort if x_catching_errors ()
21680 to see if that really happens and why.
21681
21682 2007-10-06 Andreas Schwab <schwab@suse.de>
21683
21684 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
21685
21686 2007-10-04 Juanma Barranquero <lekktu@gmail.com>
21687
21688 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
21689
21690 2007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
21691
21692 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
21693
21694 2007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
21695
21696 * window.h (struct window):
21697 * window.c (struct save_window_data, struct saved_window):
21698 * termhooks.h (struct terminal):
21699 * process.h (struct Lisp_Process):
21700 * frame.h (struct frame):
21701 * buffer.h (struct buffer):
21702 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
21703 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
21704 The size field of (pseudo)vectors is now unsigned.
21705 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
21706
21707 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
21708 Turn `count' into an integer.
21709
21710 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
21711 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
21712 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
21713 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
21714 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
21715
21716 * alloc.c (allocate_pseudovector): New fun.
21717 (ALLOCATE_PSEUDOVECTOR): New macro.
21718 (allocate_window, allocate_terminal, allocate_frame)
21719 (allocate_process): Use it.
21720 (mark_vectorlike): New function.
21721 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
21722 (mark_terminals): Use it.
21723 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
21724 (Fmake_byte_code): Use XSETPVECTYPE.
21725
21726 * frame.c (Fframe_parameters): Minor simplification.
21727
21728 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
21729
21730 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
21731
21732 * buffer.c (Fget_buffer_create, init_buffer_once):
21733 * lread.c (defsubr):
21734 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
21735
21736 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
21737 defined differently in the m/*.h files.
21738 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
21739 (XSETPVECTYPE): New macro.
21740 (XSETPSEUDOVECTOR): Use it.
21741
21742 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
21743 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
21744
21745 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
21746 * lread.c (defvar_per_buffer):
21747 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
21748
21749 * window.c (candidate_window_p): Only consider as visible frames that
21750 are on the same terminal.
21751
21752 * m/ibms390x.h (MARKBIT): Remove unused macro.
21753
21754 2007-10-01 Juanma Barranquero <lekktu@gmail.com>
21755
21756 * lread.c (Fload): Fix typo in docstring.
21757
21758 2007-10-01 Michaël Cadilhac <michael@cadilhac.name>
21759
21760 * floatfns.c (Fexpt): Manually check for overflows, so that a power
21761 of a non-zero value can't yield zero.
21762
21763 2007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
21764
21765 * term.c (term_clear_mouse_face, term_mouse_highlight)
21766 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
21767
21768 * print.c (safe_debug_print): Use XHASH.
21769
21770 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
21771 Lisp elements such as tags.
21772 (XHASH): New macro.
21773 (EQ): Use it.
21774 (SREF, SSET, STRING_COPYIN): Use SDATA.
21775 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
21776
21777 * alloc.c (mark_terminal): Remove left-over declaration.
21778 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
21779 (allocate_vectorlike): Remove type argument. Adjust callers.
21780 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
21781 Only handle the one remaining MEM_TYPE_VECTORLIKE.
21782
21783 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
21784 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
21785 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
21786 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
21787 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
21788 Use them.
21789
21790 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
21791 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
21792 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
21793
21794 2007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
21795
21796 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
21797 loaded by default.
21798
21799 2007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
21800
21801 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
21802 on this tty.
21803 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
21804
21805 * term.c (mouse_face_window): Rename from Qmouse_face_window.
21806 Update all users.
21807 (handle_one_term_event): Use Gpm_DrawPointer.
21808 (Fgpm_mouse_start): Rename from Fterm_open_connection.
21809 Signal errors instead of returning nil. Always return nil.
21810 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
21811 Make it a noop if gpm-mouse was not activated.
21812 (syms_of_term): Update names.
21813
21814 2007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
21815
21816 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
21817 (init_sys_modes): Check that gpm_tty is the current tty.
21818
21819 * alloc.c (allocate_terminal): Set the vector size to only count the
21820 lisp fields. Initialize those to nil.
21821 (mark_object): Don't treat terminals specially.
21822 (mark_terminal): Remove.
21823 (mark_terminals): Use mark_object instead.
21824
21825 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
21826 the GC to the beginning.
21827
21828 * indent.h:
21829 * indent.c: Use EMACS_INT for ints coming from Elisp data.
21830
21831 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
21832
21833 2007-09-25 Jason Rumney <jasonr@gnu.org>
21834
21835 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
21836
21837 * w32console.c (create_w32cons_output): Remove.
21838
21839 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
21840
21841 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
21842 (reset_sys_modes): Use reset_terminal_modes_hook.
21843
21844 2007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
21845
21846 * eval.c (do_autoload): Don't output any message.
21847
21848 2007-09-24 Juri Linkov <juri@jurta.org>
21849
21850 * emacs.c (standard_args): Change priority of "--no-splash"
21851 from 40 to 3. Add "--no-desktop" with the same priority.
21852
21853 2007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
21854
21855 * alloc.c (gc_sweep): Check cons cell mark bits word by word
21856 and optimize the case where they are all 1.
21857
21858 2007-09-23 Johannes Weiner <hannes@saeurebad.de>
21859
21860 * lisp.h (abs): Define if not defined.
21861 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
21862 Don't define `abs', since it's defined in lisp.h.
21863
21864 2007-09-22 Eli Zaretskii <eliz@gnu.org>
21865
21866 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
21867 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
21868 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
21869 (init_tty): Use DEV_TTY instead of "/dev/tty".
21870 [WINDOWSNT]: No need to protect from NAME arg being null.
21871
21872 2007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
21873
21874 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
21875 up the tty state.
21876
21877 2007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
21878
21879 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
21880 (gpm_tty): Change its type.
21881 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
21882 (gpm_tty): Change its type and initialize it.
21883 (Fterm_open_connection): Check the frame is indeed a tty.
21884 Use the new gpm_tty.
21885 (Fterm_close_connection): Use the new gpm_tty.
21886 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
21887 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
21888
21889 2007-09-21 Juanma Barranquero <lekktu@gmail.com>
21890
21891 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
21892 underline_color, to draw strike-through.
21893
21894 2007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
21895
21896 * lisp.h (allocate_terminal): Declare.
21897
21898 * window.c (candidate_window_p): Consider frames that are being placed
21899 by the user as somewhere between visible and iconified.
21900 (window_loop): Prefer windows on the current frame.
21901 (Fselect_window): Move the use of select-frame to the beginning so we
21902 can just delegate all the work (it'll call us back anyway).
21903
21904 * frame.c (Qdisplay_environment_variable):
21905 * frame.h (Qdisplay_environment_variable): Delete.
21906
21907 * .gdbinit (xbacktrace): Print the arg's address rather than the value
21908 of the first arg, since that value may be a union.
21909
21910 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
21911 parameter rather than Qdisplay_environment_variable. If all else
21912 fails, look for DISPLAY in initial-environment.
21913
21914 2007-09-21 Glenn Morris <rgm@gnu.org>
21915
21916 * Makefile.in (emacstool): Remove target.
21917 (lisp, shortlisp): Remove termdev.elc.
21918
21919 2007-09-21 Markus Triska <markus.triska@gmx.at>
21920
21921 * xterm.c (x_delete_display): Compile session management conditionally.
21922
21923 2007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
21924
21925 * callproc.c (getenv_internal_1): New function.
21926 (getenv_internal): Use it.
21927 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
21928
21929 * terminal.c (get_terminal): Don't accept ints to represent terminals.
21930 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
21931 (Fset_terminal_parameter): Work with dead terminals as well.
21932 (Fmodify_terminal_parameters): Remove.
21933
21934 * terminal.c (get_terminal): Handle terminals.
21935 Make sure the terminal returned is live.
21936 (create_terminal): Use allocate_terminal.
21937 (mark_terminals): Move to alloc.c.
21938 (delete_terminal): Use terminal->name as liveness status.
21939 NULL out fields after freeing their contents.
21940 Don't deallocate the object.
21941 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
21942 rather than an int.
21943 (Fterminal_live_p): Accept non-integer arguments.
21944 (Fterminal_list): Return terminal objects rather than an ints.
21945
21946 * alloc.c (enum mem_type): New member for `terminal' objects.
21947 (allocate_terminal): New function.
21948 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
21949 Handle terminals.
21950 (mark_terminal): New fun.
21951 (mark_terminals): Move from terminal.c.
21952
21953 * term.c (get_tty_terminal): Don't treat output_initial specially.
21954 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
21955 (delete_tty): Use terminal->name as liveness status.
21956
21957 * termhooks.h (struct terminal): Make it into a pseudovector.
21958 Remove `deleted' replaced by checking `name's nullness.
21959
21960 * print.c (print_object): Handle terminals.
21961
21962 * lisp.h (enum pvec_type): New `terminal' pseudovector.
21963 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
21964
21965 * frame.c (make_terminal_frame):
21966 * keyboard.c (tty_read_avail_input):
21967 * w32term.c (x_delete_terminal):
21968 * xfns.c (Fx_create_frame, x_create_tip_frame):
21969 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
21970
21971 2007-09-20 Glenn Morris <rgm@gnu.org>
21972
21973 * process.c (Fmake_network_process): Doc fix.
21974
21975 2007-09-19 Jason Rumney <jasonr@gnu.org>
21976
21977 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
21978
21979 2007-09-19 Michaël Cadilhac <michael@cadilhac.name>
21980
21981 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
21982 Fix a C warning regarding variable constness.
21983
21984 * xterm.c (handle_one_xevent): Fix a C warning.
21985
21986 2007-09-18 Jason Rumney <jasonr@gnu.org>
21987
21988 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
21989
21990 2007-09-17 Jan Djärv <jan.h.d@swipnet.se>
21991
21992 * gtkutil.c (gdpy_def): New variable.
21993 (xg_initialize): Initialize gdpy_def.
21994 (xg_display_close): If no other display exists, set gdpy_def to a
21995 new connection.
21996
21997 2007-09-16 Jan Djärv <jan.h.d@swipnet.se>
21998
21999 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
22000 when we have no file name for the icon.
22001 (xg_tool_bar_expose_callback): Remove.
22002 (xg_create_tool_bar): Don't connect expose signal to
22003 xg_tool_bar_expose_callback.
22004 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
22005
22006 2007-09-16 Andreas Schwab <schwab@suse.de>
22007
22008 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
22009 values instead of zapping them.
22010
22011 2007-09-14 Glenn Morris <rgm@gnu.org>
22012
22013 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
22014 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
22015 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
22016 scope and rename to omfib_buffer for clarity.
22017 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
22018
22019 2007-09-14 Kenichi Handa <handa@m17n.org>
22020
22021 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
22022
22023 2007-09-13 Jason Rumney <jasonr@gnu.org>
22024
22025 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
22026
22027 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
22028
22029 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
22030 (mac_term_init): Call here instead, passing rif.
22031
22032 2007-09-13 Glenn Morris <rgm@gnu.org>
22033
22034 * s/hpux.h: No longer define `static' as nothing.
22035
22036 2007-09-13 Johan Bockgård <bojohan@gnu.org>
22037
22038 * callint.c (Fcall_interactively): Remove unused var `fun'.
22039
22040 2007-09-12 Romain Francoise <romain@orebokech.com>
22041
22042 * window.c (prefer_window_split_horizontally, display_buffer):
22043 Revert 2007-09-08 change.
22044
22045 2007-09-12 Glenn Morris <rgm@gnu.org>
22046
22047 * alloca.c: Remove file.
22048 * Makefile.in (alloca): Do not undef.
22049 (allocaobj, alloca.o): Remove.
22050 (otherobj): Remove allocaobj.
22051 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
22052 * regex.c (C_ALLOCA): Remove all references and code that was only
22053 used when this was defined.
22054 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
22055 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
22056 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
22057
22058 * Makefile.in (SOURCES, unlock, relock): Delete.
22059
22060 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
22061 (menu_grab_callback): All uses changed.
22062
22063 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
22064 (x_reply_selection_request): All uses changed.
22065
22066 2007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
22067
22068 * lread.c (load_warn_old_style_backquotes): Change message to look
22069 better when it appears in the middle of byte-compiler messages.
22070
22071 2007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
22072
22073 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
22074
22075 * xterm.c (x_create_terminal): Add comment.
22076
22077 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
22078
22079 2007-09-10 Richard Stallman <rms@gnu.org>
22080
22081 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
22082
22083 2007-09-10 Michaël Cadilhac <michael@cadilhac.name>
22084
22085 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
22086 (DEFUN): Document `intspec', use it instead of `prompt'.
22087
22088 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
22089
22090 * data.c (Finteractive_form): If the interactive specification starts
22091 with a `(', use it as a Lisp form.
22092
22093 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
22094 name and file modes.
22095
22096 * callint.c (Fcall_interactively): Comment fixes.
22097
22098 2007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
22099
22100 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
22101 and compiled functions.
22102
22103 2007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
22104
22105 * window.c (prefer_window_split_horizontally): New variable.
22106 (display_buffer): Consider splitting window horizontally depending
22107 on prefer_window_split_horizontally.
22108
22109 2007-09-08 Eli Zaretskii <eliz@gnu.org>
22110
22111 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
22112
22113 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
22114
22115 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
22116
22117 * frame.c (x_set_frame_parameters): Check number is positive before
22118 using XFASTINT.
22119
22120 * window.c (freeze_window_start): Don't presume selected_window holds
22121 a window object.
22122 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
22123
22124 2007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
22125
22126 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
22127
22128 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
22129
22130 * window.c (Vsplit_window_preferred_function): New var.
22131 (Fdisplay_buffer): Use it.
22132 (syms_of_window): Export, and initialize it.
22133
22134 2007-09-06 Pixel <pixel@mandriva.com> (tiny change)
22135
22136 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
22137
22138 2007-09-06 Glenn Morris <rgm@gnu.org>
22139
22140 * gtkutil.c (menu_grab_callback) <cnt>:
22141 * xselect.c (x_reply_selection_request) <cnt>: Move static
22142 variable to file scope.
22143
22144 2007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
22145
22146 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
22147 consistent values of selected_frame and selected_window.
22148
22149 2007-09-04 Jason Rumney <jasonr@gnu.org>
22150
22151 * w32console.c (initialize_w32_display): Zero unused hooks.
22152
22153 2007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
22154
22155 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
22156 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
22157
22158 2007-09-04 Jason Rumney <jasonr@gnu.org>
22159
22160 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
22161 in w32console.c. Set up input. Remove XXX comments that have been
22162 confirmed as correct.
22163
22164 * s/ms-w32.h (MULTI_KBOARD): Define.
22165
22166 * w32console.c (one_and_only_w32cons): Remove.
22167 (initialize_w32_display): Take terminal argument.
22168
22169 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
22170 initialize_w32_display.
22171 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
22172
22173 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
22174
22175 * keyboard.c (discard_mouse_events): Discard it.
22176 (make_lispy_event): Translate it to a lisp event.
22177 (lispy_wheel_names): Add wheel-left and right events.
22178 (syms_of_keyboard): Enlarge wheel_syms.
22179
22180 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
22181 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
22182
22183 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
22184
22185 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
22186 from WM_MOUSEHWHEEL.
22187 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
22188
22189 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
22190 terminal.
22191
22192 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
22193 keyboard for the terminal.
22194
22195 2007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
22196
22197 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
22198 (Vresume_tty_hook): Rename from Vresume_tty_functions.
22199 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
22200 and resume-tty-function to resume-tty-hook.
22201 (Fsuspend_tty, Fresume_tty): Use new names.
22202
22203 2007-09-02 Jan Djärv <jan.h.d@swipnet.se>
22204
22205 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
22206 if it starts with "n:".
22207
22208 2007-08-31 Jan Djärv <jan.h.d@swipnet.se>
22209
22210 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
22211
22212 2007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
22213
22214 * frame.h:
22215 * frame.c (Qterm_environment_variable): Remove.
22216 (syms_of_frame): Don't init and staticpro it.
22217
22218 * callproc.c (getenv_internal): Remove special case for $TERM.
22219
22220 * callproc.c (Vinitial_environment): New variable.
22221 (set_initial_environment): Initialize it.
22222 (syms_of_callproc): Declare it.
22223 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
22224 TERM under which a process runs is never related to the TERM in which
22225 Emacs is running.
22226
22227 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
22228
22229 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
22230 * s/darwin.h: ... do it here.
22231
22232 2007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
22233
22234 * lisp.h (set_initial_environment): Rename from set_global_environment.
22235
22236 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
22237 removed by mistake on the multi-tty branch.
22238
22239 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
22240 (Fmodify_frame_parameters): Return a value.
22241
22242 * image.c (png_load): Comment-out var only used in commented-out code.
22243
22244 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
22245 before passing it to mark_object.
22246
22247 * xfaces.c (internal_resolve_face_name): Return a value.
22248 (internal_resolve_face_name, resolve_face_name_error): Comment out.
22249
22250 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
22251 (x_icon): Comment-out var only used in commented-out code.
22252
22253 2007-08-29 Romain Francoise <romain@orebokech.com>
22254
22255 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
22256 QUIT hasn't been provided.
22257
22258 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
22259
22260 * callproc.c (child_setup, getenv_internal): Use the
22261 display-environment-variable and term-environment-variable frame params.
22262 (set_initial_environment): Initialise Vprocess_environment.
22263
22264 * config.in: Disable multi-keyboard support on a mac.
22265
22266 * frame.c (Qterm_environment_variable)
22267 (Qdisplay_environment_variable): New variables.
22268 (syms_of_frame): Intern and staticpro them.
22269 (Fmake_terminal_frame): Disable output method test.
22270
22271 * frame.h: Declare them here.
22272
22273 * macfns.c (x_set_mouse_color): Get rif from the frame.
22274 (x_set_tool_bar_lines): Don't use updating_frame.
22275 (mac_window): Add 2 new parameters for consistency with other systems.
22276 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
22277 frame parameters following what is done in X11 and w32. Don't use
22278 FRAME_MAC_DISPLAY_INFO.
22279 (Fx_open_connection, start_hourglass): Remove window-system check.
22280 (x_create_tip_frame): Get the keyboard from the terminal.
22281
22282 * macmenu.c: Reorder includes.
22283 (Fx_popup_menu): Use terminal specific mouse_position_hook.
22284
22285 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
22286 terminal parameter.
22287 (x_clear_frame): Add a frame parameter.
22288 (note_mouse_movement): Get rif from the frame.
22289 (mac_term_init): Initialize the terminal.
22290 (mac_initialize): Make static and move terminal initialization ...
22291 (mac_create_terminal): ... to this new function.
22292
22293 * macterm.h (struct mac_display_info): Add terminal.
22294 (mac_initialize): Delete declaration.
22295
22296 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
22297
22298 * sysdep.c: Comment out text after #endif.
22299
22300 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
22301 is defined. Better initialize ttys in windows. Use terminal
22302 specific mouse_position_hook.
22303
22304 * termhooks.h (union display_info): Add mac_display_info.
22305
22306 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
22307 Set the default minibuffer frame, window_system and the rest of the
22308 frame parameters following what is done in X11.
22309
22310 * w32term.c (w32_initialize): Make static.
22311
22312 * xselect.c (x_handle_selection_clear): Only access
22313 terminal->kboard when MULTI_KBOARD is defined.
22314
22315 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
22316 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
22317
22318 2007-08-29 Jason Rumney <jasonr@gnu.org>
22319
22320 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
22321 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
22322
22323 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
22324 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
22325
22326 * keyboard.c (restore_kboard_configuration): Only define when
22327 MULTI_KBOARD defined.
22328
22329 * makefile.w32-in: Update dependancies from Makefile.in.
22330 (OBJ1): Add terminal.$(O)
22331
22332 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
22333 Don't define function body.
22334 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
22335
22336 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
22337
22338 * w32.c (request_sigio, unrequest_sigio): Remove.
22339
22340 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
22341 (w32con_clear_frame, w32con_clear_end_of_line)
22342 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
22343 (w32con_delete_glyphs, w32con_set_terminal_window)
22344 (scroll_line, w32_sys_ring_bell): Add frame arg.
22345 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
22346 Add terminal arg.
22347 (PICK_FRAME): Remove.
22348 (w32con_write_glyphs): Use frame specific terminal coding.
22349 (one_and_only_w32cons): New global variable.
22350 (initialize_w32_display): Use it for storing hooks.
22351 (create_w32cons_output): New function.
22352
22353 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
22354 arg a frame.
22355
22356 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
22357 Set window_system.
22358 (x_set_tool_bar_lines): Don't use updating_frame.
22359 (Fx_create_frame): Set terminal and ref count.
22360 (Fx_open_connection): Remove window-system check.
22361
22362 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
22363
22364 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
22365 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
22366 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
22367 Add frame arg.
22368 (x_delete_terminal, w32_create_terminal): New functions.
22369 (w32_term_init): Create a terminal.
22370 (w32_initialize): Move terminal specific initialization to
22371 w32_create_terminal.
22372
22373 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
22374 (w32_clear_rect, w32_clear_area): Use background from frame.
22375 (w32_display_info): Add terminal.
22376 (w32_sys_ring_bell, x_delete_display): Declare here.
22377
22378 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
22379
22380 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
22381
22382 2007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
22383
22384 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
22385 Fix get_named_tty calls for the controlling tty.
22386
22387 2007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
22388
22389 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
22390
22391 2007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
22392
22393 * term.c (tty_insert_glyphs): Add missing first parameter.
22394
22395 2007-08-29 Károly Lőrentey <karoly@lorentey.hu>
22396
22397 * buffer.c (Fbuffer_list, Fbury_buffer):
22398 Take frame->buried_buffer_list into account.
22399
22400 * cm.c (current_tty): New variable, for cmputc().
22401 (cmputc): Use it.
22402 (cmcheckmagic): Add tty parameter, look up terminal streams there.
22403 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
22404 (cmgoto): Add tty parameter. Pass it on to calccost().
22405 Use emacs_tputs() instead of tputs().
22406
22407 * cm.h (emacs_tputs): New macro to set current_tty, and then call
22408 tputs().
22409 (current_tty): New variable, for cmputc().
22410 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
22411
22412 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
22413 (internal_condition_case, internal_condition_case_1)
22414 (internal_condition_case_2): Don't abort when x_catching_errors.
22415
22416 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
22417 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
22418 prevent crashes caused by bogus longjmps in read_char.
22419
22420 * keymap.h (Fset_keymap_parent): Add EXFUN.
22421
22422 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
22423 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
22424 Remove redundant definition.
22425
22426 * macfns.c (x_set_mouse_color, x_make_gc):
22427 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
22428
22429 * w32term.c (x_free_frame_resources):
22430 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
22431 (w32_initialize): Use the accessor macros for terminal characteristics.
22432
22433 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
22434 Use the accessor macros for terminal characteristics.
22435 * msdos.c (internal_terminal_init): Use the accessor macros for
22436 terminal characteristics.
22437 (ScreenVisualBell, internal_terminal_init):
22438 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
22439
22440 * termopts.h (no_redraw_on_reenter): Declare.
22441
22442 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
22443 (mark_terminals, mark_ttys): Declare.
22444 (Fgarbage_collect): Call them.
22445 (mark_object): Mark buried_buffer_list.
22446
22447 * prefix-args.c: Include stdlib.h for exit.
22448
22449 * syssignal.h: Add comment.
22450
22451 * indent.c: Include stdio.h.
22452
22453 * window.h (Vinitial_window_system): Declare.
22454 (Vwindow_system): Delete declaration.
22455
22456 * fontset.c (Finternal_char_font): Use FRAME_RIF.
22457
22458 * image.c (lookup_image): Don't initialize `c' until the xasserts
22459 have been run.
22460
22461 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
22462 FRAME_FOREGROUND_PIXEL.
22463
22464 * print.c (print_preprocess): Don't lose print_depth levels while
22465 iterating.
22466
22467 * widget.c (update_from_various_frame_slots):
22468 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
22469
22470 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
22471 frames.
22472 (window_internal_height): Remove bogus make_number call.
22473 (init_window_once): Call make_terminal_frame with two zero parameters.
22474
22475 * fileio.c (Fread_file_name): Update comment.
22476
22477 * callint.c (Fcall_interactively):
22478 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
22479 Make sure it is correctly unwound.
22480
22481 * xsmfns.c (x_session_close): New function.
22482
22483 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
22484 Delete declarations.
22485
22486 * xterm.h: Remove declaration for x_fully_uncatch_errors.
22487 (x_output): Remove background_pixel and foreground_pixel fields.
22488 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
22489 (x_delete_device, x_session_close): Declare.
22490
22491 * lread.c: Include setjmp.h. Update declaration of `read_char'.
22492 (read_filtered_event): Call `read_char' with a local
22493 `wrong_kboard_jmpbuf'.
22494
22495 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
22496 Don't call single_kboard_state. Use FRAME_RIF.
22497
22498 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
22499 systems.
22500
22501 * lisp.h (set_process_environment): Rename to `set_global_environment'.
22502 (Fframe_with_environment, Fset_input_meta_mode)
22503 (Fset_quit_char): EXFUN.
22504 (x_create_device, tty_output, terminal, tty_display_info): Declare.
22505 (init_sys_modes, reset_sys_modes): Update prototypes.
22506 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
22507
22508 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
22509 Vlocal_key_translation_map, and Vkeyboard_translate_table.
22510 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
22511 Delete declarations.
22512 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
22513 (temporarily_switch_to_single_kboard, tty_read_avail_input):
22514 New declarations.
22515
22516 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
22517 already does that during init_display(). Call syms_of_keymap
22518 before syms_of_keyboard. Call `syms_of_terminal'.
22519 Call set_initial_environment, not set_process_environment.
22520 (shut_down_emacs): Call reset_all_sys_modes() instead of
22521 reset_sys_modes().
22522
22523 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
22524 (internal_resolve_face_name, resolve_face_name_error): New functions.
22525 (resolve_face_name): Protect against loops and errors thrown by Fget.
22526 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
22527 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
22528
22529 * scroll.c: Replace CURTTY() with local variables throughout the
22530 file (where applicable).
22531 (calculate_scrolling, calculate_direct_scrolling)
22532 (scrolling_1, scroll_cost): Use the accessor macros for terminal
22533 characteristics.
22534
22535 * keymap.c (Vfunction_key_map): Remove.
22536 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
22537 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
22538 (Vkey_translation_map): Remove.
22539 (syms_of_keymap): Remove DEFVAR for key-translation-map.
22540 (Fdescribe_buffer_bindings)
22541 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
22542 Update for terminal-local key-translation-map.
22543
22544 * Makefile.in (callproc.o): Update dependencies.
22545 (lisp, shortlisp): Add termdev.elc.
22546 (obj): Add terminal.o.
22547 (terminal.o): Add dependencies.
22548 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
22549 (data.o, fns.o): Add termhooks.h dependency.
22550 (SOME_MACHINE_LISP): Add dnd.elc.
22551 (minibuf.o): Fix typo.
22552 Update dependencies.
22553
22554 * data.c (do_symval_forwarding, store_symval_forwarding)
22555 (find_symbol_value): Use the selected frame's keyboard, not
22556 current_kboard.
22557
22558 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
22559 Vwindow_system.
22560
22561 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
22562 Fmenu_bar_open.
22563 (syms_of_xmenu): Update defsubr.
22564 (mouse_position_for_popup, Fx_popup_menu)
22565 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
22566 (set_frame_menubar, free_frame_menubar)
22567 (create_and_show_popup_menu, xmenu_show)
22568 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
22569 an X frame.
22570
22571 * xselect.c (x_own_selection): Abort if not an X frame.
22572 (some_frame_on_display): Check if it is an X frame.
22573 (x_handle_selection_clear): Deal with MULTI_KBOARD.
22574
22575 * coding.c: Include frame.h and termhooks.h.
22576 (terminal_coding, keyboard_coding): Delete.
22577 (Fset_terminal_coding_system_internal)
22578 (Fset_keyboard_coding_system_internal)
22579 (Fkeyboard_coding_system)
22580 (Fterminal_coding_system): Add a terminal parameter.
22581 Get terminal_coding from the terminal.
22582 (init_coding_once): Don't call setup_coding_system here.
22583
22584 * dispextern.h (set_scroll_region, turn_off_insert)
22585 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
22586 (tty_clear_end_of_line, tty_setup_colors)
22587 (delete_tty, updating_frame)
22588 (produce_special_glyphs, produce_glyphs, write_glyphs)
22589 (insert_glyphs): Remove.
22590 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
22591 (tty_turn_off_highlight, get_tty_size): Add declaration.
22592 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
22593
22594 * frame.h (enum output_method): Add output_initial.
22595 (struct x_output): Delete.
22596 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
22597 Access foreground_pixel and background_pixel directly from the frame.
22598 (tty_display): Delete.
22599 (struct frame): Add buried_buffer_list, foreground_pixel,
22600 background_pixel and terminal. Delete kboard.
22601 (union output_data): Add tty.
22602 (FRAME_KBOARD): Get the kboard from the terminal.
22603 (FRAME_INITIAL_P): New macro.
22604 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
22605 (Qterm_environment_variable, Qdisplay_environment_variable)
22606 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
22607 New declarations.
22608
22609 * termchar.h (tty_output, tty_display_info): New structures.
22610 (tty_list): Declare.
22611 (FRAME_TTY, CURTTY): New macros.
22612 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
22613 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
22614 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
22615 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
22616
22617 * callproc.c: Include frame.h and termhooks.h, for terminal
22618 parameters.
22619 (add_env): New function.
22620 (child_setup): Use it.
22621 (child_setup, getenv_internal): Handle the new Vprocess_environment.
22622 (getenv_internal): Fix get_terminal_param call.
22623 (Fgetenv_internal, egetenv): Update doc.
22624 (syms_of_callproc): Initialize Vprocess_environment to nil.
22625 Register and initialize them. Remove obsolete defvars. Update doc
22626 strings.
22627 (child_setup): Handle Vlocal_environment_variables.
22628 (getenv_internal): Add terminal parameter.
22629 Handle Vlocal_environment_variables.
22630 (Fgetenv_internal): Add terminal parameter.
22631 (child_setup, getenv_internal, Fgetenv_internal): Store the local
22632 environment in a frame (not terminal) parameter. Update doc strings.
22633 (set_initial_environment): Rename from set_global_environment.
22634 Store Emacs environment in initial frame parameter.
22635
22636 * xdisp.c (redisplay_internal): Update references to
22637 `previous_terminal_frame'.
22638 (display_mode_line, Fformat_mode_line): Replace calls to
22639 `push_frame_kboard' with `push_kboard'.
22640 (get_glyph_string_clip_rects): Add extra parentheses and
22641 braces to prevent compiler warnings.
22642 (calc_pixel_width_or_height): Add xassert to check that the
22643 frame is alive. Don't call `lookup_image' on a termcap frame.
22644 (message2_nolog, message3_nolog, redisplay_internal)
22645 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
22646 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
22647 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
22648 (Fx_display_pixel_width, Fx_display_pixel_height)
22649 (Fx_display_planes, Fx_display_color_cells)
22650 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
22651 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
22652 (Fx_display_backing_store, Fx_display_visual_class)
22653 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
22654 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
22655
22656 * xfns.c (x_set_foreground_color x_set_background_color)
22657 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
22658 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
22659 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
22660 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
22661 terminal that is being deleted.
22662 (Fx_create_frame): Use `store_frame_param' to set `window-system'
22663 frame parameter, and make sure it overrides any user-supplied setting.
22664 (Fx_close_connection, Fx_synchronize): Unify argument names with
22665 the rest of the DEFUNs.
22666
22667 * dispnew.c (Fsend_string_to_terminal): Update call to
22668 `get_tty_terminal'.
22669 (Fredraw_frame, Fsend_string_to_terminal)
22670 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
22671 FRAME_TERMCAP_P and FRAME_TTY.
22672 (window_change_signal): Don't believe width/height values that are
22673 impossibly small.
22674 (Vinitial_window_system): Rename from Vwindow_system.
22675 (termscript, Wcm, rif): Delete.
22676
22677 * termhooks.h (struct terminal): New struct containing the
22678 previously global text display hooks and new members NAME,
22679 DELETED and PARAM_ALIST.
22680 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
22681 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
22682 (FRAME_RIF): New macros.
22683 (get_terminal_param, get_device): New declarations.
22684 (termscript): Delete declaration.
22685
22686 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
22687 (XTflash, x_free_frame_resources, x_scroll_bar_create)
22688 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
22689 FRAME_FOREGROUND_PIXEL.
22690 (x_fully_uncatch_errors): Disable definition.
22691 (x_scroll_bar_expose): Fix reference to foreground pixel.
22692 (XTread_socket): Disable loop on all X displays.
22693 (x_delete_terminal): Don't set terminal->deleted and let
22694 delete_terminal delete the frames on the terminal.
22695 (x_delete_display): Doc update to reflect changes in
22696 delete_terminal.
22697 (x_display_info) <terminal>: Move member earlier in the struct.
22698 (deleting_tty): Remove old variable.
22699 (Fsuspend_tty): Call clear_tty_hooks.
22700 (Fresume_tty, init_tty): Call set_tty_hooks.
22701 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
22702 errors on X frames.
22703 (x_catch_errors_unwind): Abort if x_error_message is NULL.
22704 (handle_one_xevent): Initialize `f' to NULL.
22705 (x_delete_terminal, x_create_terminal): New functions.
22706 (XTset_terminal_modes, XTreset_terminal_modes)
22707 (XTread_socket, x_connection_closed, x_term_init)
22708 (x_term_init, x_delete_display): Add terminal parameter.
22709 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
22710 X connections.
22711
22712 * frame.c: Include termchar.h.
22713 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
22714 (Qwindow_system, Qenvironment, Qterm_environment_variable)
22715 (Qdisplay_environment_variable): New vars.
22716 (Fframep): Deal with output_initial.
22717 (Fframe-live-p): Doc fix.
22718 (Fwindow-system): New function.
22719 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
22720 (make_terminal_frame): Don't create frames on a terminal that is
22721 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
22722 (store_frame_param): Check for found_for_frame before calling XFRAME.
22723 (Fmake_terminal_frame): Handle NULL tty names correctly.
22724 (syms_of_frame): Enhance doc string of `default-frame-alist'.
22725 (Fdelete_frame): Remove unused variable `count'. Don't allow other
22726 frames to refer to a deleted frame in their 'environment parameter.
22727 (Fframe_with_environment): New function.
22728 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
22729 (get_future_frame_param): New function.
22730 (Fmake_terminal_frame): Use it.
22731 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
22732
22733 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
22734 * sysdep.c (reset_sys_modes): Update for renames.
22735
22736 * keyboard.c (tty_read_avail_input): New function.
22737 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
22738 (syms_of_keyboard): Defsubr them.
22739 (Fset_input_meta_mode, Fset_quit_char): New functions.
22740 (Fset_input_mode): Split to above functions.
22741 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
22742 parameter. Use it in call to `read_char'.
22743 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
22744 Set wrong_kboard_jmpbuf correctly in recursive calls.
22745 Use current_kboard to access Vkeyboard_translate_table.
22746 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
22747 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
22748 Update longjmp invocations. Remember the original current_kboard,
22749 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
22750 changes it. Comment out unnecessary calls to
22751 `record_single_kboard_state' and `any_kboard_state'.
22752 Update recursive calls.
22753 (wrong_kboard_jmpbuf): Remove global variable.
22754 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
22755 Handle deleted interrupted_kboards correctly; that is a legal
22756 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
22757 and read_char calls. Abort if interrupted_kboard died in read_char.
22758 (any_kboard_state, single_kboard_state)
22759 (push_frame_kboard): Remove function.
22760 (pop_kboard): Switch out of single_kboard mode if the kboard has
22761 been deleted. Remove unused variable. Help debugging by not
22762 changing current_kboard unnecessarily. Set current_kboard to the
22763 kboard of the selected frame when the stored kboard object has
22764 been deleted before pop_kboard.
22765 (temporarily_switch_to_single_kboard): Change first parameter to a
22766 frame pointer. Throw an error when caller wants to change kboards
22767 while in single_kboard mode. Don't push_kboard if we weren't in
22768 single kboard state. Don't pop_kboard if we popped into any
22769 kboard state.
22770 (restore_kboard_configuration): Abort if pop_kboard changed the
22771 kboard in single_kboard mode. Call pop_kboard only after setting
22772 up single_kboard mode.
22773 (Frecursive_edit): Switch to single_kboard mode only in nested
22774 command loops.
22775 (cmd_error, command_loop, command_loop_1, timer_check):
22776 Comment out unnecessary call to `any_kboard_state' and
22777 `record_single_kboard_state'.
22778 (delete_kboard): Exit single_kboard mode if we have just deleted
22779 that kboard. Use FRAME_KBOARD.
22780 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
22781 `fatal_error_signal'.
22782 (record_single_kboard_state): Don't push_kboard if we weren't in
22783 single kboard state. Don't pop_kboard if we popped into any
22784 kboard state.
22785 (push_frame_kboard): Rename to push_kboard.
22786 (kbd_buffer_get_event): Use FRAME_TERMINAL.
22787 (read_avail_input): Read input from all terminals.
22788 (mark_kboards): Also mark Vkeyboard_translate_table.
22789 (kbd_buffer_store_event_hold): Simplify condition.
22790 (read_key_sequence): Reinitialize fkey and keytran at each replay.
22791 (Vkeyboard_translate_table): Move to struct kboard.
22792 (init_kboard): Initialize Vkeyboard_translate_table.
22793 (syms_of_keyboard): Use DEFVAR_KBOARD to define
22794 Vkeyboard_translate_table. Update doc strings. Update docs of
22795 local-function-key-map and function-key-map.
22796
22797 * terminal.c: New file.
22798
22799 * term.c: Include errno.h.
22800 (Vring_bell_function, device_list, initial_device)
22801 (next_device_id, ring_bell, update_begin, update_end)
22802 (set_terminal_window, cursor_to, raw_cursor_to)
22803 (clear_to_end, clear_frame, clear_end_of_line)
22804 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
22805 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
22806 (syms_of_term): Move their initialization to terminal.c.
22807 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
22808 (Ftty_display_color_cells)
22809 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
22810 (clear_tty_hooks, set_tty_hooks)
22811 (init_tty, maybe_fatal): New functions.
22812 (Ftty_type): Return nil if terminal is not on a tty instead of
22813 throwing an error. Doc update.
22814 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
22815 Doc update. Initialize new subrs and variables.
22816 (delete_tty): Use terminal->deleted.
22817 (tty_set_terminal_modes): Rename from set_terminal_modes.
22818 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
22819 (set_scroll_region): Rename to `tty_set_scroll_region'.
22820 (turn_on_insert): Rename to `tty_turn_on_insert'.
22821 (turn_off_insert): Rename to `tty_turn_off_insert'.
22822 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
22823 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
22824 (toggle_highligh): Rename to `tty_toggle_highlight'.
22825 (background_highlight): Rename to `tty_background_highlight'.
22826 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
22827 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
22828 (tty_set_scroll_region, tty_background_highlight)
22829 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
22830 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
22831 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
22832 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
22833 Add static modifier.
22834 (tty_reset_terminal_modes, tty_set_terminal_window)
22835 (tty_set_scroll_region, tty_background_highlight)
22836 (tty_highlight_if_desired, tty_cursor_to)
22837 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
22838 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
22839 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
22840 renames.
22841
22842 2007-08-28 Jan Djärv <jan.h.d@swipnet.se>
22843
22844 * keyboard.c: Qrtl is new.
22845 (parse_tool_bar_item): Handle :rtl keyword.
22846 (syms_of_keyboard): Intern :rtl keyword.
22847
22848 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
22849
22850 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
22851 so no Lisp code is executed.
22852 (file_for_image, find_rtl_image): New functions.
22853 (xg_get_image_for_pixmap): Use file_for_image.
22854 (update_frame_tool_bar): If direction is RTL, use RTL image if
22855 defined. Use Gtk stock images if defined.
22856
22857 2007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22858
22859 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
22860 for nonexistent or zero-width glyph in composition glyph.
22861
22862 2007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
22863
22864 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
22865
22866 * xdisp.c (Finvisible_p): New function.
22867 (syms_of_xdisp): defsubr it.
22868
22869 2007-08-24 Juanma Barranquero <lekktu@gmail.com>
22870
22871 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
22872 Doc fixes.
22873
22874 2007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22875
22876 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
22877
22878 2007-08-24 Martin Rudalics <rudalics@gmx.at>
22879
22880 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
22881 whether decoding has modified buffer contents.
22882
22883 2007-08-24 Jason Rumney <jasonr@gnu.org>
22884
22885 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
22886 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
22887 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
22888 (init_svg_functions) [HAVE_NTGUI]: New function.
22889 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
22890 (svg_load_image): Use them.
22891 (svg_load_image) [HAVE_NTGUI]: Implement background.
22892
22893 2007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22894
22895 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
22896 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
22897 (LIBX): Remove @RSVG_LIBS@.
22898 (LIBES): Add $(RSVG_LIBS).
22899
22900 * image.c (svg_load_image): Blend with specified background if exists.
22901 Use IMAGE_BACKGROUND. Add Mac OS Support.
22902
22903 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
22904 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
22905 Remove macros.
22906 [MAC_OSX] (socket_callback): Do nothing.
22907 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
22908 ReceiveNextEvent.
22909 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
22910 socket_callback.
22911 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
22912
22913 2007-08-22 Glenn Morris <rgm@gnu.org>
22914
22915 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
22916
22917 2007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
22918
22919 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
22920
22921 * image.c: Add support for SVG images. Some additional comments
22922 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
22923 (svg_image_p): New function to test for SVG image.
22924 (svg_load): New function to load SVG image.
22925 (svg_load_image): New function, helper for svg_load.
22926 (Qsvg): New Lisp_object.
22927 (svg_keyword_index): New enum.
22928 (svg_format): New static `image_keyword' struct.
22929 (svg_type): New static `image_type' struct.
22930 (librsvg/rsvg.h): Include it.
22931
22932 2007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
22933
22934 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
22935
22936 2007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
22937
22938 * lread.c (Qold_style_backquotes): New var.
22939 (syms_of_lread): Init and staticpro it.
22940 (load_warn_old_style_backquotes): New fun.
22941 (Fload): Use them to warn about old style backquotes.
22942 (end_of_file_error, Fload): Remove unused vars.
22943
22944 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
22945
22946 * lread.c (Vold_style_backquotes): New var.
22947 (syms_of_lread): Init and export it to Elisp.
22948 (read1): Set it when we find an old-style (back)quote.
22949
22950 2007-08-22 Jason Rumney <jasonr@gnu.org>
22951
22952 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
22953
22954 2007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
22955
22956 * puresize.h (BASE_PURESIZE): Increase to 1140000.
22957
22958 2007-08-19 Richard Stallman <rms@gnu.org>
22959
22960 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
22961
22962 2007-08-19 Andreas Schwab <schwab@suse.de>
22963
22964 * alloc.c (pure): Round PURESIZE up.
22965
22966 2007-08-17 Jan Djärv <jan.h.d@swipnet.se>
22967
22968 * xterm.c (handle_one_xevent): Remove check that mouse click is in
22969 active frame.
22970
22971 2007-08-16 Richard Stallman <rms@gnu.org>
22972
22973 * eval.c (Fcommandp): Add parens to clarify.
22974
22975 * minibuf.c (Fall_completions): Use enum for type of table.
22976
22977 * emacs.c (USAGE2): Improve text.
22978
22979 2007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
22980
22981 * term.c (tty_default_color_capabilities): Declare static
22982 variables in file scope, to avoid HPUX compiler problem.
22983
22984 2007-08-13 Jan Djärv <jan.h.d@swipnet.se>
22985
22986 * gtkutil.c (update_frame_tool_bar): Use -1 as index
22987 to gtk_toolbar_insert.
22988
22989 2007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
22990
22991 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
22992
22993 * insdel.c (reset_var_on_error): New fun.
22994 (signal_before_change, signal_after_change):
22995 Use it to reset (after|before)-change-functions to nil in case of error.
22996 Bind inhibit-modification-hooks to t.
22997 Don't bind (after|before)-change-functions to nil while they run.
22998
22999 2007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23000
23001 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
23002 filling pixmap with stippled background.
23003
23004 2007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23005
23006 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
23007 Don't use invisible frame as parent window for repositioning.
23008
23009 2007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
23010
23011 * print.c (new_backquote_output): Rename from old_backquote_output.
23012 (print): Inverse its logic (according to its name) so as to match the
23013 behavior of new_backquote_flag in lread.c.
23014
23015 2007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23016
23017 * gmalloc.c (posix_memalign): New function.
23018
23019 * macterm.c (frame_highlight, frame_unhighlight): Don't call
23020 ActivateControl/DeactivateControl here.
23021 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
23022 frame-notice-user-settings is non-nil.
23023 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
23024 for kEventParamFMFontStyle.
23025 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
23026 mac_pass_command_to_system and mac_pass_control_to_system here.
23027 (XTread_socket): Call ActivateControl/DeactivateControl here.
23028 (XTread_socket) [TARGET_API_MAC_CARBON]:
23029 Check mac_pass_command_to_system and mac_pass_control_to_system here.
23030 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
23031 for window repositioning.
23032
23033 2007-08-08 Glenn Morris <rgm@gnu.org>
23034
23035 * Replace `iff' in doc-strings and comments.
23036
23037 2007-08-07 Chong Yidong <cyd@stupidchicken.com>
23038
23039 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
23040
23041 2007-08-07 Martin Rudalics <rudalics@gmx.at>
23042
23043 * fileio.c (Finsert_file_contents): Run format-decode and
23044 after_insert_file_functions on entire buffer when REPLACE is
23045 non-nil and inhibit modification_hooks and point_motion_hooks.
23046 For consistency, run after_insert_file_functions iff something
23047 got inserted. Move signal_after_change and update_compositions
23048 after code running after_insert_file_functions. Make sure that
23049 undo_list doesn't record intermediate steps of the decoding process.
23050
23051 2007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23052
23053 * emacs.c (main)
23054 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
23055 Call malloc_enable_thread on interactive startup.
23056
23057 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
23058 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
23059 [USE_PTHREAD]: Conditionalize with it.
23060 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
23061 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
23062 New functions.
23063
23064 2007-08-06 Chong Yidong <cyd@stupidchicken.com>
23065
23066 * xdisp.c (redisplay_window): When restoring original buffer
23067 position, make sure it is still valid.
23068
23069 * image.c (png_load): Ignore png-supplied background color.
23070
23071 2007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23072
23073 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
23074 Use kCFAbsoluteTimeIntervalSince1970.
23075
23076 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
23077 New variable.
23078 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
23079 event loop should be quit.
23080 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
23081 Quit dialog event loop if quit_dialog_event_loop is set.
23082
23083 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
23084 (Selection): New typedef. Use instead of ScrapRef.
23085 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
23086 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
23087 (mac_clear_selection): Rename from clear_scrap.
23088 (get_flavor_type_from_symbol): New argument SEL and subsume function of
23089 scrap_has_target_type. All uses changed.
23090 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
23091 (mac_selection_has_target_p): New functions.
23092 (mac_put_selection_value): Rename from put_scrap_string.
23093 (mac_get_selection_value): Rename from get_scrap_string.
23094 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
23095 (put_scrap_private_timestamp, scrap_has_target_type)
23096 (get_scrap_private_timestamp): Remove functions.
23097 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
23098 (x_own_selection, x_get_local_selection):
23099 Use mac_valid_selection_value_p.
23100 (x_own_selection): Don't use put_scrap_private_timestamp.
23101 Record OWNERSHIP-INFO into Vselection_alist instead.
23102 (x_get_local_selection): Don't check type if request is local.
23103 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
23104 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
23105
23106 2007-08-04 Jan Djärv <jan.h.d@swipnet.se>
23107
23108 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
23109 add comment explaining why.
23110
23111 2007-08-03 Richard Stallman <rms@gnu.org>
23112
23113 * fileio.c (Fvisited_file_modtime): Use make_time.
23114
23115 2007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
23116
23117 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
23118 build.
23119
23120 2007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
23121
23122 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
23123
23124 2007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
23125
23126 * puresize.h (BASE_PURESIZE): Increase to 1130000.
23127
23128 2007-07-30 Richard Stallman <rms@gnu.org>
23129
23130 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
23131
23132 2007-07-29 Jan Djärv <jan.h.d@swipnet.se>
23133
23134 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
23135
23136 2007-07-28 Nick Roberts <nickrob@snap.net.nz>
23137
23138 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
23139 remote default-directory.
23140
23141 * buffer.c (mode-line-format): Update doc string.
23142
23143 2007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23144
23145 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
23146 scroll bar gap.
23147 (x_scroll_bar_create): Set bar->fringe_extended_p.
23148 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
23149 on frame edge. Check fringe background extension. Don't clear
23150 extended fringe background area.
23151
23152 * w32term.h (struct scroll_bar): New member fringe_extended_p.
23153 (w32_fill_area): Enclose multiple statements with do ... while (0).
23154
23155 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
23156 Extend fringe background to scroll bar gap.
23157 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
23158 Set bar->fringe_extended_p.
23159 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
23160 Put leftmost/rightmost scroll bars on frame edge. Check fringe
23161 background extension. Don't clear extended fringe background area.
23162
23163 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
23164 New member fringe_extended_p.
23165
23166 2007-07-25 Glenn Morris <rgm@gnu.org>
23167
23168 * Relicense all FSF files to GPLv3 or later.
23169
23170 * COPYING: Switch to GPLv3.
23171
23172 2007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
23173
23174 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
23175
23176 * data.c (Finteractive_form): Check for the presence of an
23177 `interactive-form' symbol property more thoroughly.
23178
23179 * data.c (Finteractive_form): Use an `interactive-form' property if
23180 present, analogous to the function-documentation property.
23181
23182 2007-07-24 Jason Rumney <jasonr@gnu.org>
23183
23184 * w32fns.c (x_real_positions): Get real position from OS instead of
23185 calculating it.
23186
23187 2007-07-23 Jason Rumney <jasonr@gnu.org>
23188
23189 * filelock.c (current_lock_owner): Allow for @ sign in username.
23190
23191 2007-07-22 Nick Roberts <nickrob@snap.net.nz>
23192
23193 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
23194 remote default-directory.
23195
23196 * buffer.c (mode-line-format): Describe above case in doc string.
23197
23198 2007-07-20 Eli Zaretskii <eliz@gnu.org>
23199
23200 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
23201 Define if not defined.
23202
23203 2007-07-18 Jason Rumney <jasonr@gnu.org>
23204
23205 * w32proc.c (w32_executable_type): Handle 64 bit executables.
23206
23207 2007-07-18 Richard Stallman <rms@gnu.org>
23208
23209 * data.c (Fsetq_default): Doc fix.
23210
23211 * eval.c (Fsetq): Doc fix.
23212
23213 2007-07-18 Juanma Barranquero <lekktu@gmail.com>
23214
23215 * coding.c (Ffind_operation_coding_system):
23216 * eval.c (For, Fand): Doc fixes.
23217 Reported by Johan Bockgård.
23218
23219 2007-07-18 Jan Djärv <jan.h.d@swipnet.se>
23220
23221 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
23222
23223 * xterm.h: Declare x_ewmh_activate_frame.
23224
23225 * xterm.c (x_ewmh_activate_frame): New function.
23226 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
23227
23228 2007-07-17 Martin Rudalics <rudalics@gmx.at>
23229
23230 * window.c (Fdisplay_buffer): If largest or LRU window is the
23231 only window, split it even if it is not eligible for splitting.
23232 This restores the original behavior broken by the 2007-07-15
23233 change.
23234
23235 2007-07-17 Glenn Morris <rgm@gnu.org>
23236
23237 * abbrev.c (abbrev_check_chars): New function.
23238 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
23239 Call abbrev_check_chars to check abbrev characters are word
23240 constituents. Doc fix.
23241
23242 2007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
23243
23244 * process.c (Fstart_process, Fmake_network_process)
23245 (read_process_output): Fix up last changes.
23246
23247 2007-07-16 Eli Zaretskii <eliz@gnu.org>
23248
23249 * makefile.w32-in (clean): Don't delete *~.
23250
23251 2007-07-16 Andreas Schwab <schwab@suse.de>
23252
23253 * window.c (Fdisplay_buffer): Use NILP.
23254 (Fset_window_scroll_bars): Likewise.
23255
23256 2007-07-15 Martin Rudalics <rudalics@gmx.at>
23257
23258 * window.c (window_min_size_2): New function.
23259 (window_min_size_1, size_window, Fdisplay_buffer)
23260 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
23261 windows without mode- or header-lines when window-min-height is
23262 too small.
23263 (size_window): Reset nodelete_p after testing it, following an
23264 earlier note by Kim F. Storm.
23265 (display_buffer): Do not set split_height_threshold to twice the
23266 value of window_min_height to avoid changing the value of a
23267 customizable variable. Rather explicitly check whether the
23268 height of the window that shall be splitted is at least as large
23269 as split_height_threshold.
23270 (Fwindow_full_width_p): New defun.
23271 (syms_of_window): Defsubr it.
23272
23273 * window.h: Add EXFUN for Fwindow_full_width_p.
23274
23275 2007-07-14 Jason Rumney <jasonr@gnu.org>
23276
23277 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
23278
23279 2007-07-14 Richard Stallman <rms@gnu.org>
23280
23281 * eval.c (maybe_call_debugger): New function.
23282 (find_handler_clause): Use maybe_call_debugger.
23283 Call it when the handler says `debug'.
23284 Eliminate DEBUGGER_VALUE_PTR.
23285 (Fsignal): Eliminate debugger_value.
23286 (Qdebug): New variable.
23287 (syms_of_eval): Initialize it.
23288
23289 2007-07-14 Juanma Barranquero <lekktu@gmail.com>
23290
23291 * eval.c (Fprogn):
23292 * keyboard.c (Ftrack_mouse):
23293 * print.c (Fwith_output_to_temp_buffer):
23294 * window.c (Fsave_window_excursion): Doc fix.
23295
23296 2007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
23297
23298 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
23299
23300 2007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
23301
23302 * process.h (struct Lisp_Process): Turn slots infd, outfd,
23303 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
23304 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
23305 read_output_delay, and read_output_skip from Lisp_Objects to ints.
23306 Remove unused encoding_carryover.
23307 * process.c: Adjust all functions accordingly.
23308
23309 2007-07-12 Richard Stallman <rms@gnu.org>
23310
23311 * term.c: Include unistd.h only if HAVE_UNISTD_H.
23312
23313 2007-07-11 Jason Rumney <jasonr@gnu.org>
23314
23315 * makefile.w32-in (LIBS): Include OLE32.
23316
23317 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
23318 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
23319
23320 2007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
23321
23322 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
23323 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
23324 from a Lisp_Object into a bare pointer.
23325 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
23326 Adjust the code correspondingly.
23327
23328 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
23329
23330 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
23331 (term_show_mouse_face): Remove unused var `j'.
23332 (handle_one_term_event): Remove unused vars `i' and `j'.
23333 Don't cast return value of ttyname since it's not necessary.
23334
23335 2007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
23336
23337 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
23338 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
23339
23340 * fns.c (map_char_table): Use an array of int for `indices' rather than
23341 an array of Lisp_Objects (which are only ever integers anyway).
23342 (Fmap_char_table): Update caller.
23343 * lisp.h: Update prototype.
23344 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
23345 * fontset.c (Ffontset_info):
23346 * casetab.c (set_case_table): Update callers.
23347
23348 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
23349
23350 * keymap.c (struct accessible_keymaps_data)
23351 (struct where_is_internal_data): New structures.
23352 (accessible_keymaps_1, where_is_internal_1): Use them to change
23353 interface to adhere to the one used by map_keymap.
23354 (Faccessible_keymaps, where_is_internal): Use map_keymap.
23355 (accessible_keymaps_char_table, where_is_internal_2): Remove.
23356
23357 * keymap.h (map_keymap_function_t): More informative prototype.
23358
23359 2007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
23360
23361 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
23362 (looking_at_1): Don't change search_regs and last_thing_searched
23363 if `inhibit-changing-match-data' is non-nil.
23364 (string_match_1, search_buffer, set_search_regs): Likewise.
23365 (syms_of_search): Add Lisp level definition for
23366 `inhibit-changing-match-data' and set it to nil.
23367 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
23368 start and end of the match, instead of using values in search_regs.
23369
23370 2007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
23371
23372 * minibuf.c (Fcompleting_read): New value `confirm-only'
23373 for `require-match'.
23374
23375 2007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
23376
23377 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
23378 part of the 2007-06-27 change to syms_of_fileio.
23379
23380 2007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23381
23382 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
23383 Check WINDOWP before using XWINDOW. Consolidate return statements.
23384
23385 2007-06-27 Richard Stallman <rms@gnu.org>
23386
23387 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
23388
23389 2007-06-27 Juanma Barranquero <lekktu@gmail.com>
23390
23391 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
23392
23393 2007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23394
23395 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
23396 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
23397 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
23398 (_free_internal, memalign): Use them.
23399 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
23400 Initialize to PTHREAD_MUTEX_INITIALIZER.
23401 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
23402 (morecore_nolock): Rename from morecore. All uses changed.
23403 Use only nolock versions of internal allocation functions.
23404 (_malloc_internal_nolock, _realloc_internal_nolock)
23405 (_free_internal_nolock): New functions created from
23406 _malloc_internal, _realloc_internal, and _free_internal.
23407 (_malloc_internal, _realloc_internal, _free_internal): Use them.
23408 Copy hook value to automatic variable before its use.
23409 (memalign): Copy hook value to automatic variable before its use.
23410
23411 2007-06-26 Kenichi Handa <handa@m17n.org>
23412
23413 * coding.c (Ffind_operation_coding_system): Docstring improved.
23414 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
23415
23416 2007-06-25 David Kastrup <dak@gnu.org>
23417
23418 * keymap.c (Fcurrent_active_maps): Add `position' argument.
23419 (Fwhere_is_internal): Adjust call to `current-active-maps' to
23420 cater for additional parameter.
23421
23422 * keymap.h: Adjust number of parameters to `current-active-maps'.
23423
23424 * doc.c (Fsubstitute_command_keys): Adjust call of
23425 `current-active-maps'.
23426
23427 2007-06-25 David Kastrup <dak@gnu.org>
23428
23429 * callint.c (Fcall_interactively): Make the parsing of interactive
23430 specs somewhat more readable.
23431
23432 2007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23433
23434 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
23435 to scroll bar gap also when bitmap fills fringe. Draw only foreground
23436 if extended background has already been filled.
23437
23438 2007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23439
23440 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
23441 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
23442
23443 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
23444 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
23445 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
23446 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
23447 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
23448 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
23449 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
23450 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
23451 Run timers during dialog popup.
23452 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
23453
23454 2007-06-21 Jason Rumney <jasonr@gnu.org>
23455
23456 * image.c (convert_mono_to_color_image): Swap fore and background.
23457
23458 2007-06-20 Jason Rumney <jasonr@gnu.org>
23459
23460 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
23461 (w32_free_bdf_font): Unmap memory not handle.
23462
23463 2007-06-20 Sam Steingold <sds@gnu.org>
23464
23465 * gmalloc.c (__morecore): Fix the declaration to comply with the
23466 definition.
23467
23468 2007-06-20 Juanma Barranquero <lekktu@gmail.com>
23469
23470 * w32term.c (w32_delete_display): Remove leftover declaration.
23471 (w32_define_cursor, w32_initialize): Make static.
23472
23473 * w32.c (_wsa_errlist): Fix typo in error message.
23474 (init_environment): Ignore any environment variable from the
23475 registry having a null value.
23476
23477 2007-06-20 Glenn Morris <rgm@gnu.org>
23478
23479 * Makefile.in (LIBGIF): Default to -lgif.
23480
23481 2007-06-17 Jason Rumney <jasonr@gnu.org>
23482
23483 * w32menu.c (add_menu_item): Don't use multibyte string functions on
23484 unicode strings.
23485
23486 2007-06-16 Juanma Barranquero <lekktu@gmail.com>
23487
23488 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
23489 Fix typo in docstring.
23490
23491 2007-06-16 Eli Zaretskii <eliz@gnu.org>
23492
23493 * w32menu.c (add_menu_item): Escape `&' characters in menu items
23494 and their keybindings.
23495
23496 2007-06-15 Chong Yidong <cyd@stupidchicken.com>
23497
23498 * composite.c (update_compositions): Fix last fix.
23499
23500 2007-06-14 Jason Rumney <jasonr@gnu.org>
23501
23502 * w32.c (get_process_times_fn): New function pointer.
23503 (globals_of_w32): Intialize it if present in kernel32.dll.
23504 (w32_get_internal_run_time): New function.
23505
23506 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
23507
23508 2007-06-14 Kenichi Handa <handa@etlken.m17n.org>
23509
23510 * composite.c (update_compositions): Check the validness of
23511 compositions.
23512
23513 2007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23514
23515 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
23516 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
23517
23518 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
23519 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
23520
23521 * macgui.h (USE_MAC_TOOLBAR): New define.
23522
23523 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
23524 Return immediately unless popup is activated.
23525
23526 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
23527 background to scroll bar gap.
23528 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
23529 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
23530 scroll bars on frame edge. Check fringe background extension.
23531 Don't clear extended fringe background area.
23532 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
23533 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
23534 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
23535 [USE_MAC_TOOLBAR]: New macros.
23536 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
23537 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
23538 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
23539 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
23540 [USE_MAC_TOOLBAR]: New functions.
23541 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
23542 manually if previous repositioning has failed.
23543 (mac_handle_keyboard_event): Use precomputed event kind.
23544 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
23545 as tool bar item click. Handle mouse movement over tool bar items.
23546
23547 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
23548 toolbar_win_gravity.
23549 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
23550 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
23551 Add externs.
23552
23553 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
23554 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
23555
23556 2007-06-14 Chong Yidong <cyd@stupidchicken.com>
23557
23558 * image.c (search_image_cache): Remove unused variable.
23559
23560 2007-06-13 Chong Yidong <cyd@stupidchicken.com>
23561
23562 * xfns.c, xmenu.c: Link to xaw3d if available.
23563
23564 2007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23565
23566 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
23567 frame_foreground and frame_background.
23568
23569 * image.c (lookup_image): Save frame foreground and background colors.
23570 (search_image_cache): Check if saved and current frame colors match.
23571
23572 2007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
23573
23574 * regex.c (regex_compile): Remove the `regnum' counter.
23575 Use bufp->re_nsub instead. Add support for \(?N:RE\).
23576
23577 2007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
23578
23579 * term.c: Include intervals.h to declare Fget_text_property.
23580
23581 2007-06-10 Jason Rumney <jasonr@gnu.org>
23582
23583 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
23584
23585 2007-06-08 Juanma Barranquero <lekktu@gmail.com>
23586
23587 * callint.c (Fcall_interactively):
23588 * editfns.c (Fdelete_and_extract_region):
23589 * fileio.c (Fread_file_name):
23590 * fns.c (Fmapconcat):
23591 * keyboard.c (cmd_error_internal):
23592 * keymap.c (Fkey_description):
23593 * lread.c (openp):
23594 * minibuf.c (read_minibuf):
23595 * search.c (wordify):
23596 * sunfns.c (sel_read):
23597 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
23598 * xfns.c (x_default_scroll_bar_color_parameter):
23599 * xmenu.c (menu_help_callback):
23600 * xselect.c (Fx_get_atom_name):
23601 * xterm.c (x_term_init): Use empty_unibyte_string.
23602
23603 2007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
23604
23605 * alloc.c (init_strings): Initialize canonical empty strings.
23606 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
23607 canonical empty string when the requested size is 0.
23608
23609 * emacs.c (empty_unibyte_string): Rename from empty_string.
23610 (empty_multibyte_string): New canonical empty string.
23611 (syms_of_emacs): Don't initialize empty_string.
23612
23613 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
23614 string, if appropriate.
23615 (empty_unibyte_string, empty_multibyte_string): New externs.
23616 (empty_string): Remove extern.
23617
23618 * lread.c (syms_of_lread): Use empty_unibyte_string.
23619
23620 2007-06-07 Jason Rumney <jasonr@gnu.org>
23621
23622 * s/ms-w32.h: Don't define HAVE_TZNAME.
23623
23624 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
23625
23626 2007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23627
23628 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
23629
23630 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
23631 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
23632
23633 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
23634 Don't call next handler.
23635 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
23636 Remove argument. Install handler to application.
23637 (set_frame_menubar): Don't change deep_p.
23638 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
23639 FRAME_OUTER_TO_INNER_DIFF_Y.
23640 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
23641 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
23642 [HAVE_DIALOGS]: New macros.
23643 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
23644 Use them.
23645 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
23646
23647 * macselect.c [MAC_OSX] (install_service_handler): Rename from
23648 init_service_handler. All callers changed. Return OSStatus value.
23649
23650 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
23651 All callers changed so as not to call SetPortWindowPort.
23652 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
23653 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
23654 mac_draw_string_common.
23655 (mac_draw_image_string_qd): Likewise.
23656 (mac_draw_string_common): Use them. Add INLINE.
23657 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
23658 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
23659 GetGlobalMouse.
23660 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
23661 and FRAME_OUTER_TO_INNER_DIFF_Y.
23662 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
23663 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
23664 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
23665 repositioning window to mac_handle_window_event.
23666 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
23667 saving window location to mac_handle_window_event
23668 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
23669 (install_menu_target_item_handler): Remove argument in extern.
23670 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
23671 Also accept command events.
23672 (do_keystroke): New function created from XTread_socket.
23673 (init_command_handler): Remove functions.
23674 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
23675 and save window location by kEventWindowShowing and kEventWindowHiding
23676 handlers here. Don't call next handler for window state change and
23677 focus events.
23678 (mac_handle_application_event, mac_handle_keyboard_event)
23679 [TARGET_API_MAC_CARBON]: New functions.
23680 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
23681 kEventWindowShowing and kEventWindowHiding events. Move installation
23682 of mouse, font, text input and menu target item handlers to
23683 install_application_handler.
23684 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
23685 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
23686 New function.
23687 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
23688 Register it.
23689 (XTread_socket) [TARGET_API_MAC_CARBON]:
23690 Consolidate SendEventToEventTarget calls.
23691 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
23692 Move application activation handler to mac_handle_application_event.
23693 Move keyboard handler to mac_handle_keyboard_event.
23694 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
23695 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
23696 init_command_handler. Call install_application_handler.
23697
23698 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
23699 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
23700
23701 2007-06-07 Glenn Morris <rgm@gnu.org>
23702
23703 * emacs.c (main): Use `emacs-copyright' in --version output.
23704
23705 2007-06-06 Chong Yidong <cyd@stupidchicken.com>
23706
23707 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
23708
23709 2007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23710
23711 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
23712
23713 * macgui.h: Replace WindowPtr with WindowRef.
23714
23715 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
23716 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
23717 Replace ControlHandle with ControlRef.
23718 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
23719
23720 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
23721 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
23722 Replace ControlHandle with ControlRef.
23723 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
23724 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
23725
23726 * macterm.h (struct scroll_bar): Rename member control_handle_low
23727 and control_handle_high to control_ref_low and control_ref_high.
23728 All uses changed.
23729 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
23730 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
23731 respectively. All uses changed.
23732 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
23733 (install_window_handler, remove_window_handler): Replace WindowPtr
23734 with WindowRef in externs.
23735
23736 2007-06-05 Juanma Barranquero <lekktu@gmail.com>
23737
23738 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
23739
23740 2007-06-03 Nick Roberts <nickrob@snap.net.nz>
23741
23742 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
23743
23744 * frame.c (Fmouse_position, Fmouse_pixel_position):
23745 Condition on HAVE_GPM too.
23746
23747 * term.c (term_mouse_highlight): Remove unused variables.
23748 (Fterm_open_connection): Set gpm_zerobased to 1.
23749 (term_mouse_movement, term_mouse_click, handle_one_term_event):
23750 Use zero based co-ordinates.
23751 (handle_one_term_event): Report a drag as mouse movement too.
23752
23753 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
23754
23755 2007-06-03 Chong Yidong <cyd@stupidchicken.com>
23756
23757 * image.c (search_image_cache): New function. Require background
23758 color match if background color is unspecified in the image spec.
23759 (uncache_image, lookup_image): Use it.
23760
23761 2007-06-01 Juanma Barranquero <lekktu@gmail.com>
23762
23763 * window.c (Fshrink_window): Reflow docstring.
23764
23765 2007-06-02 Chong Yidong <cyd@stupidchicken.com>
23766
23767 * Version 22.1 released.
23768
23769 2007-06-01 Richard Stallman <rms@gnu.org>
23770
23771 * xfns.c (x_encode_text): Add GCPRO.
23772
23773 2007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23774
23775 * xfns.c (x_set_name_internal): Save encoded name before
23776 x_encode_text in case string data is relocated.
23777
23778 2007-05-31 Richard Stallman <rms@gnu.org>
23779
23780 * buffer.c (syms_of_buffer): Doc fix.
23781
23782 2007-05-30 Nick Roberts <nickrob@snap.net.nz>
23783
23784 * sysdep.c (init_sys_modes): Add rather than replace with
23785 O_NONBLOCK.
23786
23787 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
23788 term_mouse_moveto.
23789
23790 * termhooks.h (term_mouse_moveto): New extern.
23791
23792 * term.c (mouse_face_window): Rename...
23793 (Qmouse_face_window): ...to this.
23794 (term_show_mouse_face, term_clear_mouse_face)
23795 (term_mouse_highlight): Use Qmouse_face_window.
23796 (term_mouse_moveto): New function.
23797 (term_mouse_position): Make it work.
23798 (syms_of_term): Uncomment assignment to mouse_position_hook.
23799 Staticpro Qmouse_face_window.
23800
23801 2007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23802
23803 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
23804 around current_column call.
23805
23806 2007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
23807
23808 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
23809 * xdisp.c (next_element_from_buffer):
23810 * window.c (delete_window):
23811 * term.c (term_mouse_highlight):
23812 * msdos.c (getdefdir):
23813 * macterm.c (mac_create_bitmap_from_bitmap_data)
23814 (init_font_name_table):
23815 * fns.c (Fsxhash):
23816 * data.c (Fmake_local_variable):
23817 * ccl.c (ccl_driver): Likewise.
23818
23819 2007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23820
23821 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
23822 Call mac_wakeup_from_rne on window size change.
23823
23824 2007-05-25 Chong Yidong <cyd@stupidchicken.com>
23825
23826 * image.c (uncache_image): Fix typo.
23827
23828 2007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
23829
23830 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
23831
23832 2007-05-22 Richard Stallman <rms@gnu.org>
23833
23834 * xterm.c (x_connection_closed): Remove NO_RETURN.
23835
23836 2007-05-22 Martin Rudalics <rudalics@gmx.at>
23837
23838 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
23839
23840 2007-05-21 Chong Yidong <cyd@stupidchicken.com>
23841
23842 * image.c (uncache_image): New function.
23843 (Fimage_refresh): New function.
23844
23845 2007-05-20 Jan Djärv <jan.h.d@swipnet.se>
23846
23847 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
23848
23849 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
23850
23851 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
23852 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
23853
23854 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
23855
23856 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
23857 conditional on [HAVE_GPM_H].
23858
23859 2007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
23860
23861 * syntax.c (skip_chars): Update syntax-table only after we checked that
23862 the new location is valid.
23863
23864 2007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23865
23866 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
23867 mac_get_window_bounds.
23868
23869 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
23870
23871 * Makefile.in (LIBGPM): Allow it to be set from configure.
23872 If set then link Emacs with it.
23873
23874 * config.in: Regenerate.
23875
23876 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
23877 New externs.
23878
23879 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
23880 Include gpm.h.
23881 (handle_one_term_event, term_gpm): New externs.
23882
23883 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
23884 and allow it to be interrupted by SIGIO.
23885
23886 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
23887 (wait_reading_process_output): Wait on gpm_fd too.
23888 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
23889 (add_gpm_wait_descriptor_called_flag): New variable.
23890 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
23891
23892 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
23893 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
23894 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
23895 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
23896 (make_lispy_event): Add case GPM_CLICK_EVENT.
23897 (read_avail_input): Handle mouse input.
23898
23899 * term.c (write_glyphs_with_face): New function.
23900 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
23901 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
23902 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
23903 (mouse_face_face_id, term_gpm, pos_x, pos_y)
23904 (last_mouse_x, last_mouse_y): New variables.
23905 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
23906 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
23907 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
23908 (Fterm_close_connection): New functions.
23909 (term_init): Initialise mouse_face_window.
23910
23911 2007-05-19 Chong Yidong <cyd@stupidchicken.com>
23912
23913 * xdisp.c (redisplay_window): If first window line is a
23914 continuation line, recompute the new window start instead of
23915 recentering.
23916
23917 2007-05-18 Glenn Morris <rgm@gnu.org>
23918
23919 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
23920 Suggested by Alfred M. Szmidt <ams@gnu.org>.
23921
23922 2007-05-17 Glenn Morris <rgm@gnu.org>
23923
23924 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
23925
23926 2007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23927
23928 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
23929 dead key repeat and up events.
23930
23931 2007-05-14 Chong Yidong <cyd@stupidchicken.com>
23932
23933 * image.c (pbm_load): Check image size for monochrome pbm.
23934
23935 2007-05-13 Chong Yidong <cyd@stupidchicken.com>
23936
23937 * xterm.c (XTread_socket): Revert last change.
23938
23939 2007-05-12 Chong Yidong <cyd@stupidchicken.com>
23940
23941 * image.c (pbm_load): Correctly check image size for greyscale pbm.
23942
23943 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
23944
23945 2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
23946
23947 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
23948 mixup (YAILOM).
23949
23950 2007-05-07 Andreas Schwab <schwab@suse.de>
23951
23952 * keymap.c (Flookup_key): Fix typo in last change.
23953
23954 2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
23955
23956 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
23957 mapping for unibyte strings.
23958
23959 2007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23960
23961 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
23962 (Fx_popup_dialog) [MAC_OSX]: Likewise.
23963
23964 2007-04-29 Richard Stallman <rms@gnu.org>
23965
23966 * insdel.c (replace_range): For undo, record insertion first.
23967
23968 2007-04-29 Andreas Schwab <schwab@suse.de>
23969
23970 * lisp.h (VECSIZE): Use OFFSETOF.
23971
23972 2007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23973
23974 * xdisp.c (try_window_reusing_current_matrix): Fix number of
23975 disabled lines.
23976
23977 2007-04-28 Richard Stallman <rms@gnu.org>
23978
23979 * lread.c (read_escape): In a string, \s is always space.
23980
23981 2007-04-27 Jan Djärv <jan.h.d@swipnet.se>
23982
23983 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
23984
23985 * gtkutil.c (xg_update_menubar, create_menus): Create empty
23986 submenu for menu bar items.
23987
23988 See ChangeLog.10 for earlier changes.
23989
23990 ;; Local Variables:
23991 ;; coding: utf-8
23992 ;; add-log-time-zone-rule: t
23993 ;; End:
23994
23995 Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
23996
23997 This file is part of GNU Emacs.
23998
23999 GNU Emacs is free software: you can redistribute it and/or modify
24000 it under the terms of the GNU General Public License as published by
24001 the Free Software Foundation, either version 3 of the License, or
24002 (at your option) any later version.
24003
24004 GNU Emacs is distributed in the hope that it will be useful,
24005 but WITHOUT ANY WARRANTY; without even the implied warranty of
24006 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24007 GNU General Public License for more details.
24008
24009 You should have received a copy of the GNU General Public License
24010 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
24011
24012 ;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40