* src/gmalloc.c: Remove BROKEN_PROTOTYPES reference, unused.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
c55d2abf
DN
12010-06-02 Dan Nicolaescu <dann@ics.uci.edu>
2
75934b1d
DN
3 * gmalloc.c: Remove BROKEN_PROTOTYPES reference, unused.
4
9f32a766
DN
5 * s/sol2-6.h: Remove obsolete comments.
6
c55d2abf
DN
7 Remove unnecessary alloca.h includes.
8 * keymap.c: Do not include alloca.h, config.h does that.
9 * sysdep.c: Likewise. Do not define fwrite, not used.
10
06ac62b4
SM
112010-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
12
13 * sysdep.c (child_setup_tty): Move the non-canonical initialization to
14 the HAVE_TERMIO where it belongs (bug#6149).
15
1ab8293c
SM
162010-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
17
18 * keymap.c (Fwhere_is_internal): Fix handling of remapping (in thread
19 of bug#6305).
20
6dcfd253
EZ
212010-05-30 Eli Zaretskii <eliz@gnu.org>
22
23 * bidi.c (bidi_move_to_visually_next): Make sure the sentinel
24 state is always cached (bug#6306).
25
6d26bbb2
EZ
262010-05-29 Eli Zaretskii <eliz@gnu.org>
27
06fa4a23
EZ
28 Fix cursor motion in bidi-reordered continued lines.
29 * xdisp.c (try_cursor_movement): Backup to non-continuation line
30 only after finding point's row. Fix the logic. Rewrite the loop
6d26bbb2
EZ
31 over continuation lines in bidi-reordered buffers. Return
32 CURSOR_MOVEMENT_MUST_SCROLL upon failure to find a suitable row,
33 rather than CURSOR_MOVEMENT_CANNOT_BE_USED.
34
f5783df3
MA
352010-05-28 Michael Albinus <michael.albinus@gmx.de>
36
37 * fileio.c (Fdelete_file): Pass TRASH arg to handler call.
38
7d56b2dd
KH
392010-05-28 Kenichi Handa <handa@m17n.org>
40
41 * font.c (font_delete_unmatched): Check Vface_ignored_fonts.
42 Don't sheck SPEC if it is nil.
43 (font_list_entities): Call font_delete_unmatched if
b925d231 44 Vface_ignored_fonts is non-nil. (Bug#6287)
7d56b2dd 45
e58d4ff7
GM
462010-05-28 Glenn Morris <rgm@gnu.org>
47
48 * Makefile.in (LIBES): Remove $LOADLIBES, it is never set.
49
f1a5d776
CY
502010-05-27 Chong Yidong <cyd@stupidchicken.com>
51
52 * fileio.c (Fdelete_file): Change meaning of optional arg to mean
53 whether to trash.
54 (internal_delete_file, Frename_file): Callers changed.
55 (delete_by_moving_to_trash): Doc fix.
56 (Fdelete_directory_internal): Don't move to trash.
57
58 * callproc.c (delete_temp_file):
59 * buffer.c (Fkill_buffer): Callers changed.
60
61 * lisp.h: Update prototype.
62
f44a59e6
CY
632010-05-27 Chong Yidong <cyd@stupidchicken.com>
64
65 * xdisp.c (redisplay_window): After redisplay, check if point is
66 still valid before setting it (Bug#6177).
67
81ac4f35
GM
682010-05-27 Glenn Morris <rgm@gnu.org>
69
70 * Makefile.in, autodeps.mk, deps.mk, ns.mk:
71 Convert comments to Makefile format.
72
73 * Makefile.in (bootstrap-clean): No more Makefile.c.
74
ccd89fb3
GM
752010-05-26 Glenn Morris <rgm@gnu.org>
76
90278cb6
GM
77 * Makefile.in (YMF_PASS_LDFLAGS): Remove.
78 (temacs${EXEEXT}): Use PRE_EDIT_LDFLAGS, POST_EDIT_LDFLAGS.
79
ccd89fb3
GM
80 * Makefile.in (NS_IMPL_GNUSTEP_INC, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
81 Remove.
82 (TEMACS_LDFLAGS): Do not use NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
83
b7050583
KH
842010-05-26 Kenichi Handa <handa@m17n.org>
85
86 * composite.c (composition_compute_stop_pos): Fix condition for
87 backward scanning.
88
e5458003
GM
892010-05-25 Glenn Morris <rgm@gnu.org>
90
c345fe90
GM
91 * Makefile.in (@NS_IMPL_GNUSTEP_INC@, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
92 Move before TEMACS_LDFLAGS.
93 (TEMACS_LDFLAGS): Use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
94 (temacs${EXEEXT}): Do not use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
95
2e0689ab
GM
96 * Makefile.in (NOT_C_CODE): No longer define.
97 (config.h): No longer include.
98
8009a5e8
GM
99 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): Move definition after some
100 variables it may reference.
101
e5458003
GM
102 * Makefile.in (LD_SWITCH_SYSTEM_EXTRA): Remove.
103 (TEMACS_LDFLAGS): Remove LD_SWITCH_SYSTEM_EXTRA.
104
10f72a37
KH
1052010-05-25 Kenichi Handa <handa@m17n.org>
106
107 * dispextern.h (struct composition_it): New members rule_idx and
108 charpos.
109
110 * xdisp.c (set_iterator_to_next): While scanning backward, assume
111 that the character positions of IT point the last character of the
112 current grapheme cluster.
113 (next_element_from_composition): Don't change character positions
114 of IT.
115 (append_composite_glyph): Set glyph->charpos to
116 it->cmp_it.charpos.
117
118 * composite.c (autocmp_chars): Change the first argument to RULE,
119 and try composition with RULE only.
120 (composition_compute_stop_pos): Record the index number of the
121 composition rule in CMP_IT->rule_idx.
122 (composition_reseat_it): Call autocmp_chars repeatedly until the
123 correct rule of the composition is found.
124 (composition_update_it): Set CMP_IT->charpos. Assume the CHARPOS
125 is at the last character of the current grapheme cluster when
126 CMP_IT->reversed_p is nonzero.
127
171eda53 1282010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
f5b416d2 129
171eda53
SM
130 * editfns.c (Fbyte_to_string): New function.
131
66a9f7f4
SM
1322010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
133
134 * process.c (Fmake_network_process): Set :host to nil if it's not used.
135 Suggested by Masatake YAMATO <yamato@redhat.com>.
136
d8c315d1
EZ
1372010-05-23 Eli Zaretskii <eliz@gnu.org>
138
171eda53 139 * dispextern.h (init_iterator): Sync prototype with changed definition.
d8c315d1 140
f5b416d2 1412010-05-20 enami tsugutomo <tsugutomo.enami@jp.sony.com>
142
143 * s/netbsd.h: If terminfo is found, use it in preference to
144 termcap. (Bug#6190) [Backport from trunk]
145
0416466c
EZ
1462010-05-19 Eli Zaretskii <eliz@gnu.org>
147
11117830 148 Redesign and reimplement bidi-aware edge positions of glyph rows.
d36fe237
EZ
149
150 * dispextern.h (struct glyph_row): New members minpos and maxpos.
151 (MATRIX_ROW_START_CHARPOS, MATRIX_ROW_START_BYTEPOS)
152 (MATRIX_ROW_END_CHARPOS, MATRIX_ROW_END_BYTEPOS): Reference minpos
153 and maxpos members instead of start.pos and end.pos, respectively.
154
155 * xdisp.c (display_line): Compare IT_CHARPOS with the position in
156 row->start.pos, rather than with MATRIX_ROW_START_CHARPOS.
157 (cursor_row_p): Use row->end.pos rather than MATRIX_ROW_END_CHARPOS.
66a9f7f4
SM
158 (try_window_reusing_current_matrix, try_window_id):
159 Use ROW->minpos rather than ROW->start.pos.
d36fe237
EZ
160 (init_from_display_pos, init_iterator): Use EMACS_INT for
161 character and byte positions.
66a9f7f4 162 (find_row_edges): Rename from find_row_end. Accept additional
d36fe237
EZ
163 arguments for minimum and maximum buffer positions seen by
164 display_line for this row. Don't use iterator to find the
165 position following the maximum one; instead, increment the
11117830
EZ
166 position found by display_line directly. Fix logic; eol_pos
167 should be tested before the rest. Handle the case of characters
168 delivered from display vector (bug#6036). Fix tests related to
169 it->method. Handle the truncated_on_right_p rows.
170 (RECORD_MAX_MIN_POS): New macro.
171 (display_line): Use it to record the minimum and maximum buffer
172 positions for glyphs in the row being assembled. Record the
173 position of the newline that terminates the line. If word wrap is
174 in effect, restore minimum and maximum positions seen up to the
175 wrap point, when iterator returns to it.
176 (try_window_reusing_current_matrix): Give up if in bidi-reordered
177 row and cursor not already at point. Restore original pre-bidi
178 code for unidirectional buffers.
d36fe237
EZ
179
180 * dispnew.c (increment_row_positions, check_matrix_invariants):
181 Increment and check row->start.pos and row->end.pos, in addition
182 to MATRIX_ROW_START_CHARPOS and MATRIX_ROW_END_CHARPOS.
183
11117830
EZ
184 * .gdbinit (prowlims): Display row->minpos and row->maxpos.
185 Display truncated_on_left_p and truncated_on_right_p flags.
186 Formatting fixes.
187 (pmtxrows): Display the ordinal number of each row. Don't display
188 rows beyond the last one.
189
190 * bidi.c (bidi_cache_iterator_state): Don't zero out new_paragraph:
191 it is not copied by bidi_copy_it.
192
6e83d800
EZ
1932010-05-22 Eli Zaretskii <eliz@gnu.org>
194
195 * w32.c (sys_write): Break writes into chunks smaller than 32MB.
196 (Bug#6237)
197
110683ad
CY
1982010-05-22 Chong Yidong <cyd@stupidchicken.com>
199
200 * image.c (Fimage_flush): Rename from image-refresh.
201
98fe5161
CY
2022010-05-21 Chong Yidong <cyd@stupidchicken.com>
203
204 * xdisp.c (redisplay_internal): Clear caches even if redisplaying
205 just one window.
206
207 * image.c (Vimage_cache_eviction_delay): Decrease to 300.
208 (clear_image_cache): If the number of cached images is unusually
209 large, decrease the cache eviction delay (Bug#6230).
210
e8752c66
GM
2112010-05-21 Glenn Morris <rgm@gnu.org>
212
66dbf213
GM
213 * Makefile.in (${ns_appdir}, ${ns_appbindir}Emacs, ns-app):
214 Move these rules to ns.mk.
215 * ns.mk: New file.
216
04384b2d
GM
217 * Makefile.in (../src/$(OLDXMENU), $(OLDXMENU)): Always define rules.
218
e8752c66
GM
219 * Makefile.in (CANNOT_DUMP): New, set by configure.
220 (emacs${EXEEXT}, bootstrap-emacs${EXEEXT}): Use $CANNOT_DUMP.
221
2e2bbddb
JL
2222010-05-20 Juri Linkov <juri@jurta.org>
223
224 * fileio.c (Fdelete_file): Change interative spec to use
225 `read-file-name' like in `find-file-read-args' where the default
226 value is `default-directory' instead of `buffer-file-name'.
227 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00533.html
228
31c4aaf6
KR
2292010-05-20 Kevin Ryde <user42@zip.com.au>
230
231 * keyboard.c (Vlast_command, Vkeyboard_translate_table)
232 (Voverriding_terminal_local_map, Vsystem_key_alist)
233 (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
234
9d5cf9b6
GM
2352010-05-20 Glenn Morris <rgm@gnu.org>
236
237 * Makefile.in (DEPDIR): New constant.
238 (DEPFLAGS): Set with configure, not cpp.
239 (MKDEPDIR): New, set by configure.
240 (.c.o, .m.o, ecrt0.o): Use $MKDEPDIR.
241 (clean): Use $DEPDIR.
242 (deps_frag): Include from configure.
243 Move static/dynamic dependency stuff to deps.mk/autodeps.mk.
244 * deps.mk, autodeps.mk: New files, extracted from Makefile.in.
245
ead6f8f5
EZ
246 * bidi.c (bidi_cache_shrink, bidi_cache_iterator_state): Fix
247 reallocation of the cache. (Bug#6210)
248
7f34aec3
GM
2492010-05-19 Glenn Morris <rgm@gnu.org>
250
d494e8f2
GM
251 * s/msdos.h (ORDINARY_LINK): Move to sed2v2.inp.
252
c1d0dcfd
GM
253 * Makefile.in (LD, YMF_PASS_LDFLAGS): Set with configure, not cpp.
254 (GNULIB_VAR): Remove.
255 (LIBES): Use LIB_GCC instead of GNULIB_VAR.
256
257 * m/ibms390x.h (LINKER):
258 * m/macppc.h (LINKER) [GNU_LINUX]:
259 * s/aix4-2.h (ORDINARY_LINK):
260 * s/cygwin.h (LINKER):
261 * s/darwin.h (ORDINARY_LINK):
262 * s/gnu.h (ORDINARY_LINK):
263 * s/netbsd.h (LINKER):
264 * s/usg5-4.h (ORDINARY_LINK):
265 Move to configure.
266
7f34aec3
GM
267 * s/aix4-2.h (LINKER): Remove; this file sets ORDINARY_LINK.
268
754790b6
CY
2692010-05-18 Chong Yidong <cyd@stupidchicken.com>
270
271 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
272 prevent stack overflow if number of arguments is too large
273 (Bug#6214).
274
161e44d1
JB
2752010-05-18 Juanma Barranquero <lekktu@gmail.com>
276
277 * charset.c (load_charset_map_from_file): Don't call close after fclose.
278
be4ff9da
GM
2792010-05-18 Glenn Morris <rgm@gnu.org>
280
9539dc5d
GM
281 * s/gnu-linux.h: Combine two conditionals.
282
283 * Makefile.in (otherobj): Include $(VMLIMIT_OBJ) separately from
6665f4c5
GM
284 $(POST_ALLOC_OBJ).
285
40dc6bf4
GM
286 * Makefile.in (RALLOC_OBJ): New, set by configure.
287 (rallocobj): Replace with the previous variable.
288 (otherobj): Use $RALLOC_OBJ.
289
290 * s/gnu.h (REL_ALLOC) [DOUG_LEA_MALLOC]:
291 * s/gnu-linux.h (REL_ALLOC) [DOUG_LEA_MALLOC]: Move undef to configure.
292
be4ff9da
GM
293 * Makefile.in (GMALLOC_OBJ, VMLIMIT_OBJ): New, set by configure.
294 (gmallocobj, vmlimitobj): Replace with previous two variables.
295 (otherobj): Use $GMALLOC_OBJ, $VMLIMIT_OBJ.
296
16455a85
GM
2972010-05-17 Glenn Morris <rgm@gnu.org>
298
299 * Makefile.in (OLDXMENU_DEPS): New, set by configure.
300 (stamp-oldxmenu): Use $OLDXMENU_DEPS.
301
5fdb7468
GM
3022010-05-16 Glenn Morris <rgm@gnu.org>
303
7ca1f3f9
GM
304 * Makefile.in (${ns_appbindir}Emacs, ns-app): Always define these rules.
305
7541dad5
GM
306 * Makefile.in (clean): Get rid of HAVE_NS conditional.
307
da53fab9
GM
308 * Makefile.in (ns_appdir, ns_appbindir): Now configure adds the
309 trailing "/".
310
b02a6645
GM
311 * Makefile.in (TEMACS_LDFLAGS2): New, set by configure.
312 (temacs${EXEEXT}): Combine the NS_IMPL_GNUSTEP case with the default.
313
8877ca0f
GM
314 * Makefile.in (GNUSTEP_SYSTEM_LIBRARIES): Remove, unused.
315 (NS_IMPL_GNUSTEP_TEMACS_LDFLAGS): New, set by configure.
316 (LD) [NS_IMPL_GNUSTEP]: Set to $(CC) -rdynamic.
317 (temacs${EXEEXT}): Remove $LOCALCPP, never defined or referenced.
318 Make most of the NS_IMPL_GNUSTEP case the same as the default case.
319
5fdb7468
GM
320 * Makefile.in (temacs${EXEEXT}) [!NS_IMPL_GNUSTEP]:
321 Remove ${STARTFLAGS}, nothing ever sets it.
322
95adb4b1
DN
3232010-05-16 Dan Nicolaescu <dann@ics.uci.edu>
324
325 * m/ia64.h (UNEXEC): Remove, set in s/*.h.
326
676b6304
GM
3272010-05-16 Glenn Morris <rgm@gnu.org>
328
9beab9ce
GM
329 * Makefile.in (LIBX_BASE): Always define.
330
8a95f0e7
GM
331 * Makefile.in (LIBX_OTHER): Move out of cpp section.
332
676b6304
GM
333 * Makefile.in (LIBXT): Always define.
334
6e546d18
GM
3352010-05-15 Glenn Morris <rgm@gnu.org>
336
4235ca47 337 * Makefile.in (OLDXMENU, LIBXMENU, LIBX_OTHER): Always define.
02d4ac0e 338
6e546d18
GM
339 * Makefile.in (FONT_DRIVERS): Remove, replace with $FONT_OBJ.
340 (obj, SOME_MACHINE_OBJECTS): Use $FONT_OBJ.
341
8c5ff6dd
KR
3422010-05-15 Ken Raeburn <raeburn@raeburn.org>
343
560bb7ae 344 * lisp.h (XFLOAT_DATA): Use "0?x:x" to generate an rvalue. (Bug#5916)
52766425
KR
345 (LISP_MAKE_RVALUE) [!USE_LISP_UNION_TYPE && !__GNUC__]: Likewise.
346
8b4eb796
KR
347 * emacs.c (main): Initialize initial-environment and
348 process-environment before generating from env, not after.
349
8c5ff6dd
KR
350 Handle --version reasonably in CANNOT_DUMP configuration.
351 * emacs.c (emacs_version, emacs_copyright): New string variables.
352 (Vemacs_version, Vemacs_copyright): New Lisp_Object variables.
353 (syms_of_emacs): Defvar them, and initialize them from the C
354 string variables.
355 (main): If initialization hasn't been done, print initial version
356 info from the C strings, instead of starting an interactive session.
357
dbd3f723
EZ
3582010-05-15 Eli Zaretskii <eliz@gnu.org>
359
d20e1419
EZ
360 * bidi.c (bidi_paragraph_init): Don't leave alone garbage values
361 of bidi_it->paragraph_dir. Call bidi_initialize if needed.
2e9abc3d
EZ
362 (bidi_paragraph_init): Remove redundant assertion that we are at
363 the beginning of a line after call to bidi_find_paragraph_start.
d20e1419
EZ
364
365 * xdisp.c (Fcurrent_bidi_paragraph_direction): New function.
366 (syms_of_xdisp): Defsubr it.
367
d36fe237
EZ
368 * cmds.c (Fforward_char, Fbackward_char): Doc fix.
369
dbd3f723
EZ
370 * Makefile.in: Fix MSDOS-related comments.
371
02be533b
GM
3722010-05-15 Glenn Morris <rgm@gnu.org>
373
1a82cca9
GM
374 * Makefile.in (OLDXMENU_TARGET): New, set by configure.
375 (really-lwlib, really-oldXMenu): Always define.
376 ($OLDXMENU): Depend on $OLDXMENU_TARGET.
377
3df7b338
GM
378 * Makefile.in: Simplify cpp conditional.
379
2b5f541b
GM
380 * Makefile.in (${ns_appdir}): Simplify using umask.
381
02be533b
GM
382 * Makefile.in (${ns_appdir}): Remove references to CVS-related files.
383
4e2db1fe
SM
3842010-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
385
386 * eval.c (specbind): Remove left-over duplicate test.
387 Disallow let-binding frame-local vars. Add comment.
388
4b292a22
EZ
3892010-05-14 Eli Zaretskii <eliz@gnu.org>
390
2fe72643 391 Make the cache of bidi iterator states dynamically allocated.
1edbd309 392 * bidi.c (bidi_cache_shrink): New function.
2fe72643
EZ
393 (bidi_init_it): Call it.
394 (bidi_cache_iterator_state): Enlarge the cache if needed.
395
4e2db1fe 396 * bidi.c (bidi_move_to_visually_next): Rename from
4b292a22
EZ
397 bidi_get_next_char_visually. All callers changed.
398
82ebc97b
KH
3992010-05-14 Kenichi Handa <handa@m17n.org>
400
401 * dispextern.h (struct composition_it): New member reversed_p.
402
403 * composite.c (composition_compute_stop_pos): Search backward if
404 ENDPOS < CHARPOS.
405 (composition_reseat_it): Handle the case that ENDPOS < CHARPOS.
406 Set CMP_IT->reversed_p.
b4b6e17e 407 (composition_update_it): Pay attention to CMP_IT->reversed_p.
82ebc97b 408
4e2db1fe
SM
409 * xdisp.c (set_iterator_to_next):
410 Call composition_compute_stop_pos with negative ENDPOS if we are
82ebc97b
KH
411 scanning backward. Call composition_compute_stop_pos if scan
412 direction is changed.
413 (next_element_from_buffer): Call composition_compute_stop_pos with
414 negative ENDPOS if we are scanning backward.
415 (next_element_from_composition): Pay attention to
416 IT->cmp_it.reversed_p.
417
0e5d7800
KH
4182010-05-14 Kenichi Handa <handa@m17n.org>
419
560bb7ae 420 * font.c (font_range): Return the range for the font found at first.
0e5d7800 421
cb027b32
GM
4222010-05-14 Glenn Morris <rgm@gnu.org>
423
177b0288
GM
424 * Makefile.in (ns_appdir, ns_appbindir, ns_appsrc): Always define.
425
fbc00890
GM
426 * Makefile.in (mktime, X11, register): Move undefs to configure.
427
f14d1dfd
GM
428 * Makefile.in (MSDOS_OBJ): Default to empty, let msdos scripts set it.
429 (MSDOS_X_OBJ): New variable.
430 (MSDOS_SUPPORT_REAL): New constant.
431 (MSDOS_SUPPORT): Set as a variable, not with cpp.
432 (obj): Use MSDOS_X_OBJ.
433 (lisp): Use MSDOS_SUPPORT as a variable.
434
11842bd8
GM
435 * Makefile.in (REAL_MOUSE_SUPPORT): New constant.
436 (GPM_MOUSE_SUPPORT): Now it's a constant.
437 (MOUSE_SUPPORT, TOOLTIP_SUPPORT, WINDOW_SUPPORT): Set with configure,
438 not cpp.
439
489d31a4 440 * Makefile.in (@NS_IMPL_GNUSTEP_INC@): Use in place of #ifdef.
845612ac 441 (ns_appresdir): Remove, unused.
e20f1f07 442
489d31a4
GM
443 * Makefile.in (SHELL): Move outside cpp section.
444
cb027b32
GM
445 * s/netbsd.h (AMPERSAND_FULL_NAME): Remove (defined in AH_BOTTOM).
446
5a903aa9
GM
4472010-05-13 Glenn Morris <rgm@gnu.org>
448
3369c79f
GM
449 * Makefile.in (FONT_DRIVERS): Place with other HAVE_X_WINDOWS stuff.
450 (TOOLTIP_SUPPORT): Place with other HAVE_WINDOW_SYSTEM stuff.
451
d5e982a6
GM
452 * Makefile.in (FONT_DRIVERS): If HAVE_X_WINDOWS is defined,
453 HAVE_WINDOW_SYSTEM must be too.
454
6192e163
GM
455 * Makefile.in (WINNT_SUPPORT): Remove, nt build does not use this file.
456 (lisp): Remove WINNT_SUPPORT.
457
472c5d6b
GM
458 * Makefile.in (OLDXMENU, LIBXMENU) [!HAVE_MENUS]:
459 Let configure set these variables (to empty) in this case as well.
460
0116466b
GM
461 * Makefile.in (LD_SWITCH_X_SITE): Define as a variable, not via cpp.
462 (LIBX_BASE): Use $LD_SWITCH_X_SITE.
463
5a903aa9
GM
464 * Makefile.in (C_SWITCH_X_SYSTEM, C_SWITCH_X_SITE, LIB_STANDARD)
465 (LIB_MATH, FONTCONFIG_CFLAGS, FONTCONFIG_LIBS, FREETYPE_CFLAGS)
466 (FREETYPE_LIBS, LIBOTF_CFLAGS, LIBOTF_LIBS, M17N_FLT_CFLAGS)
467 (M17N_FLT_LIBS, GNU_OBJC_CFLAGS, GNUSTEP_SYSTEM_LIBRARIES, LIBGPM)
468 (LIBRESOLV, UNEXEC_OBJ): For clarity, define variables to hold
c0a2b70a 469 the values output by configure.
5a903aa9
GM
470 (ALL_CFLAGS, obj, LIBES, temacs${EXEEXT}): Use the above variables.
471
1a0d7c06
GM
4722010-05-12 Glenn Morris <rgm@gnu.org>
473
b5457f14
GM
474 * Makefile.in (YMF_PASS_LDFLAGS, LD, LINKER): Simplify the logic.
475 (LINKER_WAS_SPECIFIED): Remove.
476
1a0d7c06
GM
477 * Makefile.in (LIB_GCC): Set using configure, not cpp.
478 (GNULIB_VAR) [!ORDINARY_LINK]: Always set to $LIB_GCC.
479 * m/arm.h (LIB_GCC) [GNU_LINUX]:
480 * s/cygwin.h (LIB_GCC):
481 * s/freebsd.h (LIB_GCC):
482 * s/gnu-linux.h (LIB_GCC):
483 * s/msdos.h (LIB_GCC):
484 * s/netbsd.h (LIB_GCC):
485 Move to configure.
486
3ffd4615 4872010-05-11 Karel Klic <kklic@redhat.com>
c90ca7b7
KH
488
489 * ftfont.c: Fix incorrect parentheses of #if condition for
490 definining M17N_FLT_USE_NEW_FEATURE.
491
acddf8ae
GM
4922010-05-11 Glenn Morris <rgm@gnu.org>
493
494 * Makefile.in (LIBS_SYSTEM) [MSDOS]: Do not reset.
495 * s/msdos.h (MSDOS_LIBS_SYSTEM): Remove.
496
ae5e04fa
EZ
4972010-05-10 Eli Zaretskii <eliz@gnu.org>
498
499 * xdisp.c (init_iterator): Don't turn on bidi reordering in
500 unibyte buffers. See
501 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00263.html.
502
7490175b
GM
5032010-05-10 Glenn Morris <rgm@gnu.org>
504
97efb629
GM
505 * Makefile.in (LIBS_SYSTEM): Set using configure, not cpp.
506 (LIBS_SYSTEM) [MSDOS]: Reset with MSDOS_LIBS_SYSTEM.
507 (LIBES): Use LIBS_SYSTEM as a variable.
508 * s/msdos.h (LIBS_SYSTEM): Rename to MSDOS_LIBS_SYSTEM. Always define.
509 * s/aix4-2.h (LIBS_SYSTEM):
510 * s/freebsd.h (LIBS_SYSTEM):
511 * s/hpux10-20.h (LIBS_SYSTEM):
512 * s/sol2-6.h (LIBS_SYSTEM):
513 * s/unixware.h (LIBS_SYSTEM):
514 Move to configure.
515
7490175b
GM
516 * s/aix4-2.h (MAIL_USE_LOCKF):
517 * s/bsd-common.h (MAIL_USE_FLOCK):
518 * s/darwin.h (MAIL_USE_FLOCK):
519 * s/gnu-linux.h (MAIL_USE_FLOCK):
520 * s/irix6-5.h (MAIL_USE_FLOCK):
521 * s/template.h (MAIL_USE_FLOCK):
522 Move to configure.
523
0235128c 5242010-05-08 Chong Yidong <cyd@stupidchicken.com>
61a808e8
CY
525
526 * Version 23.2 released.
527
0235128c 5282010-05-08 Andreas Schwab <schwab@linux-m68k.org>
5dcde606
AS
529
530 * composite.c (autocmp_chars): Save point as marker before calling
531 auto-composition-function (Bug#5984).
532
533 * lisp.h (restore_point_unwind): Add prototype.
534
535 * fileio.c (restore_point_unwind): Remove static attribute.
536
0235128c 5372010-05-08 Kenichi Handa <handa@m17n.org>
c4170e32
KH
538
539 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
540 new feature of libotf and m17n-flt.
0235128c
SM
541 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
542 Call OTF_check_features even if no specific feature is given.
c4170e32
KH
543 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
544 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
545 that OUT is NULL. Use OTF_drive_gsub_with_log and
546 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
547 OTF_drive_gpos.
548 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
0235128c
SM
549 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
550 Setup mflt_enable_new_feature and mflt_try_otf.
551
4721152c
J
5522010-05-08 Jan Djärv <jan.h.d@swipnet.se>
553
554 * xsettings.c (Ftool_bar_get_system_style): Correct comment.
555
556 * gtkutil.c (xg_pack_tool_bar): Change show_all to show for handle
557 box and toolbar (Bug #6139).
558 (xg_create_tool_bar): Remove comment (Bug #6139).
559 (xg_make_tool_item): Remove gtk_widget_show_all (Bug #6139).
560 (xg_show_toolbar_item): Add gtk_widget_show for weventbox (Bug #6139).
561
ee0a16cf
JB
5622010-05-08 Juanma Barranquero <lekktu@gmail.com>
563
564 * makefile.w32-in ($(BLD)/eval.$(O), $(BLD)/w32fns.$(O)):
565 Update dependencies.
566
96d79611
EZ
5672010-05-08 Eli Zaretskii <eliz@gnu.org>
568
569 * fringe.c (update_window_fringes): Set up truncation bitmaps for
570 R2L lines.
571
40c17879
GM
5722010-05-08 Glenn Morris <rgm@gnu.org>
573
7b42b29f
GM
574 * Makefile.in (THIS_IS_MAKEFILE): Remove, unused.
575
40c17879
GM
576 * Makefile.in (LIBS_TERMCAP): Set with configure, not cpp.
577 (TERMCAP_OBJ): New, set by configure, replacing termcapobj.
578 (termcapobj): Replace with TERMCAP_OBJ.
579 (otherobj): Use $TERMCAP_OBJ instead of $termcapobj.
580 (LIBES): Use LIBS_TERMCAP as a variable.
581
582 * s/freebsd.h (osreldate.h): No longer include, since this file
583 does not use __FreeBSD_version any more.
584
585 * s/aix4-2.h (TERMINFO):
586 * s/cygwin.h (TERMINFO):
587 * s/darwin.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
588 * s/freebsd.h (TERMINFO, LIBS_TERMCAP):
589 * s/gnu-linux.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
590 * s/gnu.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
591 * s/hpux10-20.h (TERMINFO, LIBS_TERMCAP):
592 * s/irix6-5.h (TERMINFO):
593 * s/netbsd.h (LIBS_TERMCAP):
594 * s/openbsd.h (TERMINFO, LIBS_TERMCAP):
595 * s/sol2-6.h (LIBS_TERMCAP) [!TERMINFO]:
596 * s/usg5-4.h (TERMINFO):
597 Move to configure.
598
94b612ad
SM
5992010-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
600
601 * eval.c (unbind_to): Don't unbind a local binding into the global
602 binding when the local binding disappeared. Inversely, don't unbind
603 a global binding into a newly created local binding.
604 * data.c (set_internal): Make its `buf' arg into a `where' arg so we
605 can specify the frame to use, when applicable. Adjust callers.
606
15e12598
VB
6072010-05-07 Vincent Belaïche <vincent.belaiche@gmail.com>
608 Stefan Monnier <monnier@iro.umontreal.ca>
609
610 * floatfns.c (Fisnan, Fcopysign, Ffrexp, Fldexp): New functions.
611
f724825e
EZ
6122010-05-07 Eli Zaretskii <eliz@gnu.org>
613
5cba3209
EZ
614 * w32fns.c: Include w32.h.
615 (Fw32_shell_execute): Decode the error message before passing it
616 to `error'. (Bug#6126)
617
d16bdfc3
EZ
618 * msdos.c (dos_set_window_size):
619 * w16select.c (Fx_selection_exists_p): Use `Fsymbol_value (foo)'
620 instead of `XSYMBOL (foo)->value'.
621
59d93e87
EZ
6222010-05-07 Eli Zaretskii <eliz@gnu.org>
623
9fdec8bc
EZ
624 Fix the MS-DOS build, broken by autoconfiscation.
625
626 * Makefile.in: Don't use Make-style comments past the "start of
627 cpp stuff" line.
628 (MSDOS_OBJ): Remove xmenu.o (it is now defined by XMENU_OBJ).
629
630 * s/msdos.h (UNEXEC): Don't define (@unexec@ in Makefile.in is
631 edited directly by msdos/sed1v2.inp).
f724825e 632
2f86b22b
GM
6332010-05-07 Glenn Morris <rgm@gnu.org>
634
635 * Makefile.in (LD_SWITCH_SYSTEM): Set with configure, not cpp.
636 (LD_SWITCH_SYSTEM_EXTRA): New variable, set by configure.
637 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM and $LD_SWITCH_SYSTEM_EXTRA,
638 move out of cpp section.
639 * s/freebsd.h (LD_SWITCH_SYSTEM):
640 * s/gnu-linux.h (LD_SWITCH_SYSTEM):
641 * s/netbsd.h (LD_SWITCH_SYSTEM):
642 * s/openbsd.h (LD_SWITCH_SYSTEM): Move to configure.in.
643
49ebbd65
DN
6442010-05-07 Dan Nicolaescu <dann@ics.uci.edu>
645
646 Define LIB_STANDARD and START_FILES using autoconf.
647 * s/usg5-4.h (LIB_STANDARD):
648 * s/netbsd.h (START_FILES):
649 * s/irix6-5.h (LIB_STANDARD):
650 * s/hpux10-20.h (LIB_STANDARD, START_FILES):
651 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
652 * s/freebsd.h (START_FILES):
653 * s/darwin.h (START_FILES):
654 * s/cygwin.h (START_FILES):
655 * s/aix4-2.h (LIB_STANDARD):
656 * m/ibmrs6000.h (START_FILES): Remove, move logic to configure.in.
657 * Makefile.in (STARTFILES): Rename to START_FILES, define using
658 autoconf, not cpp.
659
d43c06d6
DN
6602010-05-06 Dan Nicolaescu <dann@ics.uci.edu>
661
28823648
DN
662 Remove NEED_BSDTTY and NEED_UNISTD_H.
663 * s/hpux10-20.h (NEED_BSDTTY): Remove.
664 * s/aix4-2.h (NEED_UNISTD_H): Remove.
665 * systty.h: Simplify conditionals for including <sys/bsdtty.h>,
666 <sys/ptyio.h> and <unistd.h>.
667
aca00430
DN
668 * emacs.c (main): Remove NO_DIR_LIBRARY conditional, unused.
669
d43c06d6
DN
670 * Makefile.in (STARTFILES): Conditionally define to make the usage clear.
671 * s/gnu.h (START_FILES): Remove empty definition.
672
3e56b11d
JD
6732010-05-06 Jan Djärv <jan.h.d@swipnet.se>
674
675 * xterm.c (x_draw_image_relief): Move declaration of extra to beginning.
676
e3cf0cde
GM
6772010-05-06 Glenn Morris <rgm@gnu.org>
678
679 * Makefile.in (CPP, LN_S): Remove unused variables.
680
774b9a60
SM
6812010-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
682
683 * syntax.c (Fchar_syntax): Check the arg is a character (bug#6080).
684
4ab92842
LM
6852010-05-05 Lawrence Mitchell <wence@gmx.li>
686
687 * m/sparc.h: Fix typo in earlier change.
688
178f2507
SM
6892010-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
690
691 Misc tweaks.
692 * eval.c (Fdefvaralias): Remove unintended nested if.
693 (internal_condition_case_2, internal_condition_case_n): Use ANSI type.
694
80f00217 6952010-05-04 Bernhard Herzog <bh@intevation.de> (tiny change)
991be6d4
JD
696
697 * xsmfns.c (smc_save_yourself_CB): strlen(client_id) => strlen(cwd).
698
ef03a4e6
DN
6992010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
700
58eb6cf0
DN
701 Remove BSD_PGRPS.
702 * s/bsd-common.h (BSD_PGRPS): Remove undef.
703 * s/gnu-linux.h (BSD_PGRPS): Remove.
704 * term.c (dissociate_if_controlling_tty):
705 * sysdep.c (narrow_foreground_group, widen_foreground_group)
706 (init_sys_modes, reset_sys_modes):
707 * emacs.c (main):
708 * callproc.c (Fcall_process, child_setup): Remove code depending
709 on BSD_PGRPS.
710
ef03a4e6
DN
711 Remove POSIX_SIGNALS.
712 * s/usg5-4.h (POSIX_SIGNALS):
713 * s/netbsd.h (POSIX_SIGNALS):
714 * s/msdos.h (POSIX_SIGNALS):
715 * s/ms-w32.h (POSIX_SIGNALS):
716 * s/hpux11.h (POSIX_SIGNALS):
717 * s/gnu.h (POSIX_SIGNALS):
718 * s/gnu-linux.h (POSIX_SIGNALS):
719 * s/freebsd.h (POSIX_SIGNALS):
720 * s/darwin.h (POSIX_SIGNALS):
721 * s/cygwin.h (POSIX_SIGNALS):
722 * s/aix4-2.h (POSIX_SIGNALS): Remove definition.
723 * s/unixware.h:
724 * s/sol2-6.h: Remove comments on POSIX_SIGNALS.
725 * process.c (create_process):
726 * syssignal.h:
727 * sysdep.c (wait_for_termination, init_signals):
728 * process.c (create_process):
729 * msdos.c: POSIX_SIGNALS is always defined on all platforms,
730 remove all code that assumes the contrary.
731
49628785
GM
7322010-05-04 Glenn Morris <rgm@gnu.org>
733
27a2cdfc
GM
734 * s/gnu-linux.h (LD_SWITCH_SYSTEM): Use LD_SWITCH_X_SITE_AUX as a shell
735 variable.
736 * s/netbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
737 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH.
738 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
739 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH instead of
740 LD_SWITCH_SYSTEM_tmp.
741 * Makefile.in (LD_SWITCH_X_SITE_AUX, LD_SWITCH_X_SITE_AUX_RPATH):
742 New variables, set by configure.
743
eb21eab5
GM
744 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
745 * s/darwin.h (HEADERPAD_EXTRA, LIBS_NSGUI): Remove.
746 (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
747 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): New variable, set by configure.
748 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM_TEMACS.
749
49628785
GM
750 * s/aix4-2.h (C_SWITCH_SYSTEM):
751 * m/alpha.h (C_SWITCH_MACHINE):
752 Move to configure.in.
753 * Makefile.in (C_SWITCH_MACHINE, C_SWITCH_SYSTEM):
754 New variables, set by configure.
755 (ALL_CFLAGS): Use $C_SWITCH_MACHINE and $C_SWITCH_SYSTEM in place of
756 $c_switch_machine and $c_switch_system.
757
7dff330b
DN
7582010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
759
760 * s/hpux10-20.h (LIB_STANDARD): New definition.
761 * Makefile.in (ORDINARY_LINK): Remove setting LIB_STANDARD based
762 on it, not used anymore.
763
53967e09
CY
7642010-05-03 Chong Yidong <cyd@stupidchicken.com>
765
766 * eval.c (internal_condition_case_n): Rename from
767 internal_condition_case_2.
768 (internal_condition_case_2): New function.
769
770 * xdisp.c (safe_call): Use internal_condition_case_n.
771
772 * fileio.c (Fdelete_file, internal_delete_file): New arg FORCE.
773 (internal_delete_file, Frename_file): Callers changed.
774
775 * buffer.c (Fkill_buffer):
776 * callproc.c (delete_temp_file): Callers changed (Bug#6070).
777
778 * lisp.h: Update prototypes.
779
3dee6fdb
GM
7802010-05-03 Glenn Morris <rgm@gnu.org>
781
782 * Makefile.in (LIBX_EXTRA, LIBX_BASE): New variables.
783 (LIBXT_OTHER, LIBX_OTHER): New, set by configure.
784 (LIBXT): Set with configure, not cpp.
785 (LIBX): Remove.
786 (LIBES): Replace $LIBX with $LIBX_BASE and $LIBX_OTHER.
787
a101e0fb
DN
7882010-05-02 Dan Nicolaescu <dann@ics.uci.edu>
789
790 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Remove.
791 The FreeBSD is not needed, the default works, Solaris version is
792 not needed, and the remaining case is not supported by configure.
793
f63d0028
JD
7942010-05-02 Jan Djärv <jan.h.d@swipnet.se>
795
796 * xsmfns.c (CHDIR_OPT): New define.
797 (smc_save_yourself_CB): Add CHDIR_OPT to options to use when
798 restarting emacs.
799
800 * xterm.c (x_connection_closed): Call Fkill_emacs instead of
801 shut_down_emacs.
802
803 * emacs.c (USAGE1): Mention --chdir.
804 (main): Handle --chdir.
805 (standard_args): Add --chdir.
806 (fatal_error_signal): Call Fkill_emacs for SIGTERM and SIGHUP (Bug
807 #5552).
808
e4814a9f
DN
8092010-05-01 Dan Nicolaescu <dann@ics.uci.edu>
810
cd03c74a
DN
811 Remove LD_SWITCH_MACHINE.
812 * Makefile.in (LD_SWITCH_MACHINE): Remove definition, unused.
813 (TEMACS_LDFLAGS): Do not use LD_SWITCH_MACHINE.
814
c3a398a1
DN
815 Clean up IRIX code.
816 * m/iris4d.h (TERMINFO, FIRST_PTY_LETTER): Move definitions ...
817 * s/irix6-5.h (TERMINFO, FIRST_PTY_LETTER): ... here.
818
87e7285c
DN
819 Clean up AIX code.
820 * m/ibmrs6000.inp: Remove file, unused.
821 * m/ibmrs6000.h (IBMR2AIX): Remove, unused.
822 (LD_SWITCH_MACHINE): Rename to LD_SWITCH_SYSTEM_TEMACS, and move
823 definition ...
824 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): ... here.
825
80f00217
JB
826 * sysdep.c (child_setup_tty, init_sys_modes): Remove !IBMR2AIX code,
827 unused.
e4814a9f 828
59ca28de
EZ
8292010-05-01 Eli Zaretskii <eliz@gnu.org>
830
197daef4
EZ
831 Emulate POSIX_SIGNALS on MS-Windows.
832
833 * s/ms-w32.h (POSIX_SIGNALS, struct sigaction, SIG_BLOCK)
834 (SIG_SETMASK, SIG_UNBLOCK): Define.
d6dae14b
EZ
835
836 * sysdep.c (sys_signal) [WINDOWSNT]: #ifdef away.
837 (wait_for_termination) [WINDOWSNT]: Move MS-Windows specific code
838 from non-POSIX_SIGNALS section to POSIX_SIGNALS section.
839
80f00217
JB
840 * w32.c (sigemptyset, sigaddset, sigfillset, sigprocmask):
841 New stubs.
197daef4 842
af7c7572
EZ
843 Miscellaneous fixes of bidi display.
844
59ca28de
EZ
845 * xdisp.c (find_row_end): New function, refactored from display_line.
846 (display_line): Use it.
017ea819
EZ
847 (extend_face_to_end_of_line): In almost-filled rows, extend only
848 if the row is R2L and not continued.
166e930d 849 (display_line): Fix prepending of truncation glyphs to R2L rows.
af7c7572 850 Preserve overlay and string info in row->end.
166e930d
EZ
851 (insert_left_trunc_glyphs): Support addition of left truncation
852 glyphs to R2L rows.
b47e0dcf 853 (set_cursor_from_row): Don't place cursor on the vertical border
af7c7572
EZ
854 glyph between adjacent windows. Fix a crash when a display string
855 is continued to the next line. Don't return zero if cursor was
856 found by `cursor' property of a display string.
b47e0dcf
EZ
857 (try_cursor_movement): Don't assume that row->end == (row+1)->start,
858 test for that explicitly.
59ca28de 859
7acac9f4
GM
8602010-05-01 Glenn Morris <rgm@gnu.org>
861
862 * Makefile.in (gmallocobj, rallocobj, vmlimitobj): Initialize to null,
863 for clarity.
864 (OTHER_OBJ): Remove.
865 (PRE_ALLOC_OBJ, POST_ALLOC_OBJ): New, set by configure.
866 (otherobj): Use PRE_ALLOC_OBJ, POST_ALLOC_OBJ rather than OTHER_OBJ.
867
45841e65
KK
8682010-05-01 Karel Klíč <kklic@redhat.com>
869
870 * fileio.c (Ffile_selinux_context): Context functions may return null.
871
afc61943
DN
8722010-04-30 Dan Nicolaescu <dann@ics.uci.edu>
873
80f00217 874 * s/gnu.h (POSIX_SIGNALS, START_FILES): New definitions.
afc61943 875
5a1bb006
GM
8762010-04-30 Glenn Morris <rgm@gnu.org>
877
878 * Makefile.in (vmlimitobj) [!SYSTEM_MALLOC]: New variable. (Bug#6065)
879 (OTHER_OBJ): Define as a separate variable, for clarity.
880
210af043
J
8812010-04-30 Jan Djärv <jan.h.d@swipnet.se>
882
883 * xsettings.c: include limits.h and update file comment.
884
0a7df391
GM
8852010-04-30 Glenn Morris <rgm@gnu.org>
886
d5096f16
GM
887 * Makefile.in (OLDXMENU, LIBXMENU) [HAVE_MENUS]:
888 Set with configure, not cpp.
889 (LIBW): Remove, replace with $TOOLKIT_LIBW.
890
7eb1ac33
GM
891 * Makefile.in (mallocobj): Remove.
892 (otherobj): Simplify using @OTHER_OBJ@.
893
517d086b
GM
894 * Makefile.in (dispnew.o, frame.o, fringe.o, font.o, fontset.o)
895 (keyboard.o, window.o, xdisp.o, xfaces.o, menu.o):
896 Don't bother making nsgui.h dependency platform-specific.
897
0a7df391
GM
898 * Makefile.in (nsfns.o): Remove duplicate nsgui.h dependency.
899
d6d23852
SM
9002010-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
901
d2630aef
SM
902 * process.c (read_process_output, exec_sentinel): Don't burp if the
903 sentinel/filter kills the current buffer (bug#6060).
904
f9dddf52 905 Fix wrong-docstring problem introduced with hash-consing. (Bug#6008)
d6d23852
SM
906 * eval.c (Fautoload): Set doc to a unique number rather than to 0.
907 Remove unused var `args'.
908 * lisp.h (XSETCARFASTINT, XSETCDRFASTINT): Remove.
909 (LOADHIST_ATTACH): Wrap with do...while to avoid surprises for callers.
910 * doc.c (store_function_docstring): Use XSETCAR.
911
f1e3642a
GM
9122010-04-28 Glenn Morris <rgm@gnu.org>
913
faf535f8
GM
914 * Makefile.in (BASE_WINDOW_SUPPORT, X_WINDOW_SUPPORT): New variables.
915 (WINDOW_SUPPORT) [HAVE_WINDOW_SYSTEM]: Use them.
916
c40f9449
GM
917 * Makefile.in (CYGWIN_OBJ): Set with configure, not cpp.
918
658f86ca
GM
919 * Makefile.in (GPM_MOUSE_SUPPORT): New, set by configure.
920 (MOUSE_SUPPORT) [!HAVE_MOUSE]: Use $GPM_MOUSE_SUPPORT.
921
bc0b5f61
GM
922 * Makefile.in (FONT_OBJ): New, set by configure.
923 (FONT_DRIVERS): Use $FONT_OBJ.
924
294c50a0
GM
925 * Makefile.in (LIBXMU): Set with configure, not cpp.
926 * s/aix4-2.h (LIBXMU):
927 * s/hpux10-20.h (LIBXMU):
928 Remove definition, now set in configure.
929
e6ec4e99
GM
930 * Makefile.in (NS_OBJ, NS_SUPPORT): Set with configure, not cpp.
931
f1e3642a
GM
932 * m/amdx86-64.h [i386]: Move this test to configure.in.
933
c6ea2936
GM
9342010-04-27 Glenn Morris <rgm@gnu.org>
935
8fdac2c3
GM
936 * Makefile.in (LIBXTR6): Set with configure, not cpp.
937 * s/unixware.h (NEED_LIBW): Remove definition.
938
986fb647
GM
939 * Makefile.in (LUCID_LIBW, MOTIF_LIBW): Remove, replacing by...
940 (TOOLKIT_LIBW): New, set by configure.
941 (@X_TOOLKIT_TYPE@): No longer define it.
942
c6ea2936
GM
943 * Makefile.in (LIBXP): Remove, since included in MOTIF_LIBW.
944 (MOTIF_LIBW): Set with configure, not cpp.
945 * s/aix4-2.h (LIB_MOTIF):
946 * s/gnu-linux.h (LIB_MOTIF):
947 * s/unixware.h (LIB_MOTIF): Move to configure.in.
948
aaa36002
DN
9492010-04-27 Dan Nicolaescu <dann@ics.uci.edu>
950
951 Reduce CPP usage.
952 * Makefile.in (LIB_X11_LIB): Remove, inline in the only user.
953 (obj): Use autoconf for unexec instead of cpp.
ed6281b0
DN
954 (C_SWITCH_SYSTEM, C_SWITCH_MACHINE, C_SWITCH_X_SITE): Remove
955 definitions and undefs. Inline definitions in the only user.
956 (ALL_CFLAGS): Substitute C_SWITCH_X_SYSTEM using autoconf.
aaa36002 957
b678dd8b
GM
9582010-04-27 Glenn Morris <rgm@gnu.org>
959
76cda504
GM
960 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Change the logic around,
961 since the defaults (set by the system file) are fine in most cases.
962 [GNU_LINUX, __OpenBSD__, __NetBSD__, __APPLE__]: Remove sections.
963 * m/ibms390x.h (START_FILES, LIB_STANDARD):
964 * m/macppc.h (START_FILES, LIB_STANDARD) [GNU_LINUX]:
965 * m/sparc.h (START_FILES, LIB_STANDARD) [__linux__]:
966 Remove definitions, since they are set correctly in s/gnu-linux.h.
967 * s/freebsd.h (START_FILES, LIB_STANDARD):
968 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
969 * s/hpux10-20.h (START_FILES):
970 * s/netbsd.h (START_FILES, LIB_STANDARD, START_FILES_1, END_FILES_1):
971 Use $CRT_DIR in place of fixed /usr/lib, /lib directories.
972
b678dd8b
GM
973 * Makefile.in (LIBXP, LUCID_LIBW, WIDGET_OBJ): Set via configure.
974 (MOTIF_LIBW): Use $LIBXP.
975 (otherobj): Use $WIDGET_OBJ.
976
9452ded1
DN
9772010-04-26 Dan Nicolaescu <dann@ics.uci.edu>
978
7e10844c
DN
979 * Makefile.in (LIBS_MACHINE): Remove, unused.
980
9452ded1
DN
981 Use autoconf instead of cpp for LIB_MATH.
982 * s/darwin.h (LIB_MATH): Do not define here, move to configure.
983 * s/cygwin.h (LIB_MATH): Likewise.
984 * Makefile.in (LIB_MATH): Do not define with cpp.
985 (LIBES): Use autoconf for LIB_MATH.
986
fcebfc6a
KH
9872010-04-26 Kenichi Handa <handa@m17n.org>
988
989 * composite.c (Ffind_composition_internal): Fix the return value
990 for an automatic composition.
991
39e2ad1b
DN
9922010-04-25 Dan Nicolaescu <dann@ics.uci.edu>
993
994 Remove all NO_ARG_ARRAY uses.
995 * fns.c (concat2, concat3, nconc2):
996 * eval.c (apply1, call1, call2, call3, call4, call5, call6)
997 (call7): Remove NO_ARG_ARRAY usage, assume it's always true.
998 * m/xtensa.h (NO_ARG_ARRAY):
999 * m/template.h (NO_ARG_ARRAY):
1000 * m/sparc.h (NO_ARG_ARRAY):
1001 * m/sh3.h (NO_ARG_ARRAY):
1002 * m/mips.h (NO_ARG_ARRAY):
1003 * m/macppc.h (NO_ARG_ARRAY):
1004 * m/iris4d.h (NO_ARG_ARRAY):
1005 * m/intel386.h (NO_ARG_ARRAY):
1006 * m/ibms390x.h (NO_ARG_ARRAY):
1007 * m/ibms390.h (NO_ARG_ARRAY):
1008 * m/ibmrs6000.h (NO_ARG_ARRAY):
1009 * m/ia64.h (NO_ARG_ARRAY):
1010 * m/hp800.h (NO_ARG_ARRAY):
1011 * m/arm.h (NO_ARG_ARRAY):
1012 * m/amdx86-64.h (NO_ARG_ARRAY):
1013 * m/alpha.h (NO_ARG_ARRAY): Remove definition.
1014
adf4f59c
EZ
10152010-04-25 Eli Zaretskii <eliz@gnu.org>
1016
6bdf5d65
EZ
1017 * xdisp.c (display_line): Don't assume 2nd call to
1018 get_next_display_element cannot return zero. (Bug#6030)
f538fcec
EZ
1019 (iterate_out_of_display_property): New function, body from pop_it.
1020 (pop_it): Use it.
adf4f59c 1021
dfbbda83
GM
10222010-04-24 Glenn Morris <rgm@gnu.org>
1023
1024 * m/amdx86-64.h (START_FILES, LIB_STANDARD) [__OpenBSD__]:
1025 For clarity, revert to using fixed /usr/lib rather than $CRT_DIR.
1026 (START_FILES, LIB_STANDARD) [__FreeBSD__]: Merge into the generic case,
1027 since CRT_DIR defaults to /usr/lib. Suggested by Dan Nicolaescu.
1028
2d4018aa
EZ
10292010-04-24 Eli Zaretskii <eliz@gnu.org>
1030
a49884a6
EZ
1031 * xdisp.c (display_line): Use `reseat' instead of `reseat_1', and
1032 use `get_next_display_element' and `set_iterator_to_next' to
1033 advance to the next character, when looking for the character that
1034 begins the next row.
1035
76db6fcc 1036 * .gdbinit: Add a "set Fmake_symbol" line to force GDB to load the
2d4018aa
EZ
1037 definition of "struct Lisp_Symbol".
1038
70eab5c1
GM
10392010-04-24 Glenn Morris <rgm@gnu.org>
1040
1041 * Makefile.in (CRT_DIR): New variable, set by configure.
1042 * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
1043 Use $CRT_DIR rather than HAVE_LIB64_DIR. (Bug#5655)
1044
1ad4cc3d
DN
10452010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
1046
e769f484
DN
1047 * Makefile.in: Remove C_SWITCH_X_MACHINE, unused.
1048
4196ff33
DN
1049 * s/cygwin.h (LIBS_DEBUG): Remove, unused.
1050
879b0ee4
DN
1051 Remove redundant flags.
1052 * s/freebsd.h (C_SWITCH_SYSTEM):
1053 * s/hpux10-20.h (C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
1054 * s/netbsd.h (C_SWITCH_SYSTEM):
1055 * s/openbsd.h (LD_SWITCH_X_DEFAULT): Remove, configure takes care
1056 of these.
1057
03cbbcb8
DN
1058 Simplify m/intel386.h.
1059 * m/intel386.h (CRT0_DUMMIES): Remove, inline value in the only
1060 user: ecrt0.c.
1061 (SOLARIS2): Remove LOAD_AVE_TYPE, LOAD_AVE_CVT, LIBS_MACHINE, unused.
1062 (USG5_4): Move LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE definitions to
1063 the only user: s/unixware.h.
1064 * ecrt0.c: Remove #ifndef static. Inline CRT0_DUMMIES definition
1065 from m/intel386.h.
1066 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE): Definitions
1067 moved here from m/intel386.h.
1068
1ad4cc3d
DN
1069 * m/mips.h: Remove #if 0 code.
1070
8785b888
EZ
10712010-04-23 Eli Zaretskii <eliz@gnu.org>
1072
728588cc
EZ
1073 Fix display of composed characters from L2R scripts in bidi buffers.
1074 * xdisp.c (set_iterator_to_next, next_element_from_composition):
1075 After advancing IT past the composition, resync the bidi iterator
1076 with IT's position. (Bug#5977)
1077
a63f80b4
DN
10782010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
1079
1080 * Makefile.in (LD_SWITCH_MACHINE_TEMACS): Remove, unused.
1081 (TEMACS_LDFLAGS): Don't use LD_SWITCH_SYSTEM_TEMACS.
1082
ff5dec5c
SM
10832010-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
1084
1085 * gtkutil.c: Include xsettings.h for Ftool_bar_get_system_style.
1086
8785b888
EZ
10872010-04-23 Eli Zaretskii <eliz@gnu.org>
1088
58ccf243 1089 Support `display' text properties and overlay strings in bidi buffers.
8785b888
EZ
1090 * xdisp.c (pop_it): When the stack is popped after displaying
1091 from a string, bidi-iterate to exit from the text portion covered
1092 by the `display' property or overlay. (Bug#5988, bug#5920)
1093
feeb1604
DN
10942010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
1095
8e324eb6
DN
1096 * m/macppc.h (LD_SWITCH_SYSTEM_TEMACS): Remove #undef.
1097 (LD_SWITCH_MACHINE_TEMACS): Remove, configure sets nocombreloc.
1098
809fcaba
DN
1099 * s/netbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure sets nocombreloc.
1100 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove.
1101
ed710380
DN
1102 Simplify STARTFILES definition.
1103 * s/hpux10-20.h (START_FILES): Explicitly define here instead of
1104 relying on Makefile.in to define it.
1105 * s/cygwin.h (START_FILES): Likewise.
1106 * Makefile.in (STARTFILES): Remove conditional code, not needed anymore.
1107
feeb1604
DN
1108 Clean up Solaris code.
1109 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS, C_SWITCH_X_SYSTEM)
1110 (LIB_MOTIF): Remove, configure takes care of this.
1111 (NOT_USING_MOTIF): Remove, unused.
1112 * xrdb.c: Remove #if 0-ed #include.
1113 (SYSV): Remove conditional for old SysV.
1114 * sysdep.c (closedir): Remove conditional code for Solaris,
1115 Solaris has closedir.
1116
a0d0b563
JD
11172010-04-22 Jan Djärv <jan.h.d@swipnet.se>
1118
1119 * xsettings.c (read_and_apply_settings): Check if current_font is
1120 NULL before strcmp (Bug#6001).
1121
56bae7c7
DN
11222010-04-21 Dan Nicolaescu <dann@ics.uci.edu>
1123
1124 Clean up HP-UX files.
1125 * m/hp800.h (NO_REMAP, VIRT_ADDR_VARIES, DATA_SEG_BITS)
1126 (DATA_START, TEXT_START, LOAD_AVE_TYPE, LOAD_AVE_CVT)
1127 (LDAV_SYMBOL, index, rindex): Move definitions only used in HP-UX ...
1128 * s/hpux10-20.h: ... to the only user, here.
1129
372b7a95
EZ
11302010-04-21 Eli Zaretskii <eliz@gnu.org>
1131
1132 * bidi.c (bidi_find_paragraph_start, bidi_at_paragraph_end): Don't
1133 use buffer-local values of paragraph-start and paragraph-separate.
1134 <paragraph_start_re, paragraph_separate_re>: Rename from
1135 fallback_paragraph_start_re and fallback_paragraph_separate_re.
1136 (Bug#5992)
1137
f904c0f9
JD
11382010-04-21 Jan Djärv <jan.h.d@swipnet.se>
1139
1140 * xsettings.c: Qmonospace_font_name, Qtool_bar_style and
1141 current_tool_bar_style are new.
1142 (store_config_changed_event): Rename from store_font_changed_event.
1143 (XSETTINGS_TOOL_BAR_STYLE): New define.
1144 (SEEN_FONT, SEEN_TB_STYLE): New enum values.
1145 (struct xsettings): Add font and tb_style, set xft stuff inside #ifdef
1146 HAVE_XFT.
1147 (something_changedCB): store_font_changed_event is now
1148 store_config_changed_event
1149 (parse_settings): Rename from parse_xft_settings. Read
1150 non-xft xsettings outside #ifdef HAVE_XFT.
1151 (read_settings): Renamed from read_xft_settings.
1152 (apply_xft_settings): Take current settings as parameter. Do not
1153 call read_(xft)_settings.
1154 (read_and_apply_settings): New function.
1155 (xft_settings_event): Do non-xft stuff out of HAVE_XFT. Call
1156 read_and_apply_settings if there are settings to be read.
1157 (init_xsettings): Renamed from init_xfd_settings.
1158 Call read_and_apply_settings unconditionally.
1159 (xsettings_initialize): Call init_xsettings.
1160 (Ftool_bar_get_system_style): New function.
1161 (syms_of_xsettings): Define Qmonospace_font_name and
1162 Qtool_bar_style. Initialize current_tool_bar_style to nil.
f9dddf52 1163 defsubr Stool_bar_get_system_style. Fprovide on
f904c0f9 1164 dynamic-setting.
31a01b90 1165 Move misplaced HAVE_GCONF
f904c0f9
JD
1166
1167 * xsettings.h (Ftool_bar_get_system_style): Declare.
1168
1169 * xdisp.c: Vtool_bar_style, tool_bar_max_label_size,
1170 Qtext, Qboth, Qboth_horiz are new.
1171 (syms_of_xdisp): Intern Qtext, Qboth, Qboth_horiz, DEFVAR
1172 Vtool_bar_style, tool_bar_max_label_size.
1173
1174 * lisp.h: Extern declare Qtext, Qboth, Qboth_horiz.
1175
1176 * keyboard.c: QClabel is new.
1177 (parse_tool_bar_item): Take out QClabel from tool bar items.
1178 Try to construct a label if ther is no QClabel.
1179 (syms_of_keyboard): Intern :label as QClabel.
1180
1181 * dispextern.h (tool_bar_item_idx): TOOL_BAR_ITEM_LABEL is new.
1182 (Vtool_bar_style, tool_bar_max_label_size, DEFAULT_TOOL_BAR_LABEL_SIZE):
1183 New.
1184
1185 * Makefile.in (SOME_MACHINE_LISP): font-setting.el renamed to
1186 dynamic-setting.el.
1187
1188 * gtkutil.c (xg_tool_bar_menu_proxy): Handle label in tool bar item.
1189 (xg_make_tool_item, xg_show_toolbar_item): New function.
1190 (update_frame_tool_bar): Take label from TOOL_BAR_ITEM_LABEL.
1191 Call xg_make_tool_item to make a tool bar item.
1192 Call xg_show_toolbar_item. Use wtoolbar instead of x->toolbar_widget.
1193
1194 * xterm.c (x_draw_image_relief): Take Vtool_bar_button_margin
1195 into account for toolbars.
1196
c632dfda
JD
11972010-04-21 Jan Djärv <jan.h.d@swipnet.se>
1198
1199 * data.c (make_blv): Declarations before code (Bug#5993).
1200
10efe302
GM
12012010-04-21 Glenn Morris <rgm@gnu.org>
1202
1203 * Makefile.in (DBUS_OBJ, GTK_OBJ, XMENU_OBJ, XOBJ):
1204 Define using autoconf, not cpp.
1205 (LIBXSM): New variable, set by autoconf.
1206 (LIBXT): Use $LIBXSM.
1207
4285ac5a
DN
12082010-04-21 Dan Nicolaescu <local_user@dannlt>
1209
3ec759e7
DN
1210 Remove NOMULTIPLEJOBS, unused.
1211 * s/template.h (NOMULTIPLEJOBS):
1212 * s/msdos.h (NOMULTIPLEJOBS): Remove, unused.
1213
4285ac5a
DN
1214 Simplify LD_SWITCH_SYSTEM_TEMACS usage.
1215 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS):
1216 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure
1217 detects -znocombreloc and passes it to the linker
1218 * s/hpux10-20.h (LD_SWITCH_SYSTEM_TEMACS): Remove, empty.
1219
2807228d
GM
12202010-04-21 Glenn Morris <rgm@gnu.org>
1221
1222 * Makefile.in (LIBSELINUX_LIBS): Move out of #ifdef.
1223
574c05e2
KK
12242010-04-21 Karel Klíč <kklic@redhat.com>
1225
1226 * Makefile.in (LIBSELINUX_LIBS): New.
1227 (LIBES): Add $LIBSELINUX_LIBS.
1228 * eval.c, lisp.h (call7): New function.
1229 * fileio.c [HAVE_LIBSELINUX]: Include selinux headers.
1230 (Ffile_selinux_context, Fset_file_selinux_context):
1231 New functions.
1232 (Fcopy_file): New parameter preserve-selinux-context.
1233 (Frename_file): Preserve selinux context when renaming by copy-file.
1234
91eac4bb 12352010-04-21 Juanma Barranquero <lekktu@gmail.com>
4e2af782 1236 Eli Zaretskii <eliz@gnu.org>
91eac4bb 1237
50426a04
JB
1238 Don't depend on cm.c or termcap.c on Windows, use stubs.
1239 * makefile.w32-in (OBJ1): Remove cm.$(O) and termcap.$(O).
1240 ($(BLD)/cm.$(O), $(BLD)/termcap.$(O)): Remove.
1241 * w32console.c (current_tty, cost): New vars; lifted from cm.c.
1242 (evalcost, cmputc, cmcheckmagic, cmcostinit, cmgoto, Wcm_clear)
1243 (sys_tputs, sys_tgetstr): New stubs.
1244 * s/ms-w32.h (chcheckmagic, cmcostinit, cmgoto, cmputc, Wcm_clear)
1245 (tputs, tgetstr): New; define to sys_*.
91eac4bb 1246
938efb77
JB
12472010-04-20 Juanma Barranquero <lekktu@gmail.com>
1248
1249 * buffer.c (syms_of_buffer) <bidi-display-reordering>: Doc fix.
1250
b4bf28b7
SM
12512010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
1252
8b1e1112
SM
1253 * data.c (Fmake_variable_buffer_local, Fmake_local_variable):
1254 Just signal a warning rather than an error when inside a let.
1255 (Fmake_variable_frame_local): Add the same test.
1256
933ac235
SM
1257 * font.c (syms_of_font): Make the style table vars read-only.
1258
b4bf28b7
SM
1259 * buffer.h (struct buffer): Remove unused var `direction_reversed'.
1260 * buffer.c (init_buffer_once, syms_of_buffer): Remove its initialization.
1261
1262 * bidi.c (bidi_initialize): Simplify fallback_paragraph_*_re init.
1263
93d68d0c
EZ
12642010-04-20 Eli Zaretskii <eliz@gnu.org>
1265
1266 Fix R2L paragraph display on TTY.
1267
1268 * xdisp.c (unproduce_glyphs): New function.
1269 (display_line): Use it when produced glyphs are discarded from R2L
1270 glyph rows.
1271 (append_composite_glyph): In R2L rows, prepend the glyph rather
1272 than appending it.
1273
1274 * term.c (append_composite_glyph): In R2L rows, prepend the glyph
1275 rather than append it. Set up the resolved_level and bidi_type
1276 attributes of the appended glyph.
283ccc18
EZ
1277 (produce_special_glyphs): Mirror the backslash continuation
1278 character in R2L lines.
93d68d0c 1279
283ccc18 1280 Implement display of R2L paragraphs in GUI sessions.
26cdf528 1281
283ccc18
EZ
1282 * xdisp.c [HAVE_WINDOW_SYSTEM]: Add prototype for
1283 append_stretch_glyph.
1284 (set_cursor_from_row) <cursor_x>: Remove unused variable. Fix
1285 off-by-one error in computing x at end of text in the row.
1286 (append_stretch_glyph): In reversed row, prepend the glyph rather
1287 than append it. Set resolved_level and bidi_type of the glyph.
1288 (extend_face_to_end_of_line): If the row is reversed, prepend a
1289 stretch glyph whose width is such that the rightmost glyph will be
1290 drawn at the right margin of the window. Fix off-by-one error on
1291 TTY frames in testing whether a line needs face extension. Fix
1292 face extension at ZV. If this is the last glyph row, use
1293 DEFAULT_FACE_ID, to avoid painting the rest of the window with the
1294 region face.
1295 (set_cursor_from_row, display_line): Use
26cdf528
EZ
1296 MATRIX_ROW_CONTINUATION_LINE_P instead of testing value of
1297 row->continuation_lines_width.
283ccc18
EZ
1298 (next_element_from_buffer): Don't call bidi_paragraph_init if we
1299 are at ZV. Fixes a crash when reseated to ZV by
1300 try_window_reusing_current_matrix.
45903529
EZ
1301 (display_and_set_cursor, erase_phys_cursor): Handle negative HPOS,
1302 which happens with R2L glyph rows. Fixes a crash when inserting a
1303 character at end of an R2L line.
283ccc18
EZ
1304 (set_cursor_from_row): Don't be fooled by truncated rows: don't
1305 treat them as having zero-width characters. Improve comments.
1306 Don't reverse pos_before and pos_after for reversed glyph rows.
1307 Set cursor.x to negative value when the cursor might be on the
1308 left fringe.
1309 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): For R2L lines, consider the
1310 left fringe, not the right one.
f951a506
EZ
1311 (notice_overwritten_cursor, draw_phys_cursor_glyph)
1312 (erase_phys_cursor): For reversed cursor_row, support cursor on
1313 the left fringe.
1314
283ccc18
EZ
1315 * fringe.c (update_window_fringes): For R2L rows, swap the bitmaps
1316 of continuation indicators on the fringes.
1317 (draw_fringe_bitmap): For reversed glyph rows, allow cursor on the
1318 left fringe.
1319
f951a506
EZ
1320 * w32term.c (w32_draw_window_cursor): For reversed glyph rows,
1321 draw cursor on the left fringe.
1322
1323 * xterm.c (x_draw_window_cursor): For reversed glyph rows, draw
1324 cursor on the left fringe.
1325
f951a506
EZ
1326 * dispnew.c (update_text_area): Handle reversed desired rows when
1327 the cursor is on the left fringe.
1328 (set_window_cursor_after_update): Limit cursor's hpos by -1 from
1329 below, not by 0, for when the cursor is on the left fringe.
1330
3bb49aaf
JD
13312010-04-20 Jan Djärv <jan.h.d@swipnet.se>
1332
1333 * gtkutil.c (xg_event_is_for_scrollbar): Check if grabbed
1334 widget is a scrollbar.
1335
c0be27fd
KH
13362010-04-20 Kenichi Handa <handa@m17n.org>
1337
1338 * charset.c (char_charset): Consider Vcharset_non_preferred_head
1339 only when the arg CHARSET_LIST is nil.
1340
ce5b453a
SM
13412010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
1342
1343 Make variable forwarding explicit rather the using special values.
1344 Basically, this makes the structure of buffer-local values and object
1345 forwarding explicit in the type of Lisp_Symbols rather than use
1346 special Lisp_Objects for that. This tends to lead to slightly more
1347 verbose code, but is more C-like, simpler, and makes it easier to make
1348 sure we handled all cases, among other things by letting the compiler
1349 help us check it.
1350 * lisp.h (enum Lisp_Misc_Type, union Lisp_Misc):
1351 Removing forwarding objects.
1352 (enum Lisp_Fwd_Type, enum symbol_redirect, union Lisp_Fwd): New types.
1353 (struct Lisp_Symbol): Make the various forms of variable-forwarding
1354 explicit rather than hiding them inside Lisp_Object "values".
1355 (XFWDTYPE): New macro.
1356 (XINTFWD, XBOOLFWD, XOBJFWD, XKBOARD_OBJFWD): Redefine.
1357 (XBUFFER_LOCAL_VALUE): Remove.
1358 (SYMBOL_VAL, SYMBOL_ALIAS, SYMBOL_BLV, SYMBOL_FWD, SET_SYMBOL_VAL)
1359 (SET_SYMBOL_ALIAS, SET_SYMBOL_BLV, SET_SYMBOL_FWD): New macros.
1360 (SYMBOL_VALUE, SET_SYMBOL_VALUE): Remove.
1361 (struct Lisp_Intfwd, struct Lisp_Boolfwd, struct Lisp_Objfwd)
1362 (struct Lisp_Buffer_Objfwd, struct Lisp_Kboard_Objfwd):
1363 Remove the Lisp_Misc_* header.
1364 (struct Lisp_Buffer_Local_Value): Redefine.
1365 (BLV_FOUND, SET_BLV_FOUND, BLV_VALUE, SET_BLV_VALUE): New macros.
1366 (struct Lisp_Misc_Any): Add filler to get the right size.
1367 (struct Lisp_Free): Use struct Lisp_Misc_Any rather than struct
1368 Lisp_Intfwd.
1369 (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL, DEFVAR_INT)
1370 (DEFVAR_KBOARD): Allocate a forwarding object.
1371 * data.c (do_blv_forwarding, store_blv_forwarding): New macros.
1372 (let_shadows_global_binding_p): New function.
1373 (union Lisp_Val_Fwd): New type.
1374 (make_blv): New function.
1375 (swap_in_symval_forwarding, indirect_variable, do_symval_forwarding)
1376 (store_symval_forwarding, swap_in_global_binding, Fboundp)
1377 (swap_in_symval_forwarding, find_symbol_value, Fset)
1378 (let_shadows_buffer_binding_p, set_internal, default_value)
1379 (Fset_default, Fmake_variable_buffer_local, Fmake_local_variable)
1380 (Fkill_local_variable, Fmake_variable_frame_local)
1381 (Flocal_variable_p, Flocal_variable_if_set_p)
1382 (Fvariable_binding_locus):
1383 * xdisp.c (select_frame_for_redisplay):
1384 * lread.c (Fintern, Funintern, init_obarray, defvar_int)
1385 (defvar_bool, defvar_lisp_nopro, defvar_lisp, defvar_kboard):
1386 * frame.c (store_frame_param):
1387 * eval.c (Fdefvaralias, Fuser_variable_p, specbind, unbind_to):
1388 * bytecode.c (Fbyte_code) <varref, varset>: Adapt to the new symbol
1389 value structure.
1390 * buffer.c (PER_BUFFER_SYMBOL): Move from buffer.h.
1391 (clone_per_buffer_values): Only adjust markers into the current buffer.
1392 (reset_buffer_local_variables): PER_BUFFER_IDX is never -2.
1393 (Fbuffer_local_value, set_buffer_internal_1)
1394 (swap_out_buffer_local_variables):
1395 Adapt to the new symbol value structure.
1396 (DEFVAR_PER_BUFFER): Allocate a Lisp_Buffer_Objfwd object.
1397 (defvar_per_buffer): Take a new arg for the fwd object.
1398 (buffer_lisp_local_variables): Return a proper alist (different fix
1399 for bug#4138).
1400 * alloc.c (Fmake_symbol): Use SET_SYMBOL_VAL.
1401 (Fgarbage_collect): Don't handle buffer_defaults specially.
1402 (mark_object): Handle new symbol value structure rather than the old
1403 special Lisp_Misc_* objects.
1404 (gc_sweep) <symbols>: Free also the buffer-local-value objects.
1405 * term.c (set_tty_color_mode):
1406 * bidi.c (bidi_initialize): Don't access the ->value field directly.
1407 * buffer.h (PER_BUFFER_VAR_OFFSET): Don't bother with
1408 a buffer_local_flags.
1409 * print.c (print_object): Get rid of impossible forwarding objects.
1410
fd3998ff
EZ
14112010-04-19 Eli Zaretskii <eliz@gnu.org>
1412
1413 * bidi.c (bidi_get_type, bidi_get_category)
1414 (bidi_at_paragraph_end, bidi_resolve_weak, bidi_resolve_neutral)
ce5b453a
SM
1415 (bidi_type_of_next_char, bidi_level_of_next_char):
1416 Declare static. Use `INLINE' rather than `inline'.
fd3998ff 1417
e42cd1a7
JB
14182010-04-19 Juanma Barranquero <lekktu@gmail.com>
1419
1420 * dired.c (Ffile_attributes): Fix typo in docstring.
1421
6e104790 14222010-04-19 Adrian Robert <Adrian.B.Robert@gmail.com>
79353a53
AR
1423
1424 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
1425 NSInteger (Bug#5811).
1426
6e104790 14272010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
658b9b93
YM
1428
1429 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
1430 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
1431
6e104790 14322010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16009a0e
YM
1433
1434 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
1435
6e104790
SM
14362010-04-19 Chong Yidong <cyd@stupidchicken.com>
1437
1438 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
1439 terminal frames (Bug#5837).
1440
37dcfea0
EZ
14412010-04-19 Eli Zaretskii <eliz@gnu.org>
1442
d1da276f
EZ
1443 * .gdbinit (xsubchartable): New command.
1444
37dcfea0
EZ
14452010-04-19 Eli Zaretskii <eliz@gnu.org>
1446
1447 * xdisp.c (display_line): Don't write beyond the last glyph row in
9166b0f3 1448 the desired matrix. Fixes a crash in "emacs -nw" (bug#5972), see
37dcfea0
EZ
1449 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00075.html
1450 and
1451 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00213.html
1452
e9515805
SM
14532010-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
1454
1455 * alloc.c (Fpurecopy): Hash-cons if requested.
1456 (syms_of_alloc): Update purify-flag docstring.
1457
22aa44a8
JD
14582010-04-18 Jan Djärv <jan.h.d@swipnet.se>
1459
1460 * gtkutil.c (xg_set_geometry): Set size in geometry string also.
1461 (x_wm_set_size_hint): Set USER_POS in hint_flags (Bug#5968).
1462
ebb5722e
EZ
14632010-04-17 Eli Zaretskii <eliz@gnu.org>
1464
1465 Fix a crash when an NSM character is inserted at BEGV.
1466
1467 * bidi.c (bidi_init_it): Fix initialization of bidi_it->prev.
1468 (bidi_resolve_weak): Don't use prev.type_after_w1 if it is
1469 NEUTRAL_B or UNKNOWN_BT.
1470
0f4442ef
EZ
14712010-04-16 Eli Zaretskii <eliz@gnu.org>
1472
1473 * xdisp.c (set_cursor_from_row): Don't consider possibility of
1474 other rows with cursor unless they are different from this row and
1475 this row is part of a continued line. (Bug#5943)
1476
7d4e45f8
DN
14772010-04-16 Dan Nicolaescu <dann@ics.uci.edu>
1478
1479 * s/freebsd.h: Restore osreldate.h include.
1480 Suggested by Naohiro Aota.
1481
5ba5ec85
J
14822010-04-16 Jan Djärv <jan.h.d@swipnet.se>
1483
1484 * xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used.
1485
20af301d
CY
14862010-04-16 Ken Brown <kbrown@cornell.edu> (tiny change)
1487
1488 * s/cygwin.h: Avoid linking against static libgcc.
1489
a4b000fb
JL
14902010-04-15 Juri Linkov <juri@jurta.org>
1491
1492 * window.c: Add Qscroll_command.
1493 Remove Vscroll_preserve_screen_position_commands.
1494 (window_scroll_pixel_based, window_scroll_line_based): Check the
1495 `scroll-command' property on the last command instead of searching
1496 the last command in Vscroll_preserve_screen_position_commands.
1497 (syms_of_window): Initialize and staticpro `Qscroll_command'.
1498 Put Qscroll_command property on Qscroll_up and Qscroll_down.
1499 (scroll-preserve-screen-position): Doc fix.
1500 (Vscroll_preserve_screen_position_commands): Remove variable.
1501
bc319ba4
DN
15022010-04-15 Dan Nicolaescu <dann@ics.uci.edu>
1503
6bb24457
DN
1504 * xdisp.c (message): Do not use NO_ARG_ARRAY.
1505
19d4c244
DN
15062010-04-14 Dan Nicolaescu <dann@ics.uci.edu>
1507
1508 Reduce cpp use in Makefile.in.
1509 * Makefile.in (DBUS_CFLAGS, DBUS_LIBS, GCONF_CFLAGS, GCONF_LIBS)
1510 (LIBSOUND, CFLAGS_SOUND, RSVG_LIBS, RSVG_CFLAGS, INTERVALS_H)
1511 (GETLOADAVG_LIBS, RUN_TEMACS): Move to the autoconf section.
1512 (ORDINARY_LINK): Remove, defined in src/s/gnu.h.
1513 (CRT0_COMPILE): Remove, inline it in the only user.
1514
32129746
JL
15152010-04-14 Juri Linkov <juri@jurta.org>
1516
1517 * window.c (keys_of_window): Rebind `C-v' from `scroll-up' to
1518 `scroll-up-command' and `M-v' from `scroll-down' to
1519 `scroll-down-command'.
1520
9013a7f8
JL
15212010-04-14 Juri Linkov <juri@jurta.org>
1522
1523 * window.c (Vscroll_preserve_screen_position_commands): New variable
1524 with the default value as the list of Qscroll_down and Qscroll_up.
1525 (window_scroll_pixel_based, window_scroll_line_based): Search the
1526 last command in the list Vscroll_preserve_screen_position_commands
1527 instead of comparing with Qscroll_up and Qscroll_down.
1528
4bef8d26
JD
15292010-04-13 Jan Djärv <jan.h.d@swipnet.se>
1530
92848133
JD
1531 * gtkutil.c (xg_set_geometry): Set geometry for PPosition also.
1532 (x_wm_set_size_hint): Dont set position flags, gtk_window_parse_geometry
1533 does that.
1534
4bef8d26
JD
1535 * xfns.c (Fx_create_frame, x_create_tip_frame): Set default border width
1536 to zero.
1537
58b963f7
SM
15382010-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
1539
84164a0d
SM
1540 * term.c (init_tty): Move common text outside of #ifdef TERMINFO.
1541
2b0a91e7
SM
1542 Try to solve the problem of spurious EOF chars in long lines of text
1543 sent to interactive subprocesses.
1544 * sysdep.c (child_setup_tty): Do not enable ICANON any more.
1545 (system_process_attributes): Remove unused var `ttotal'.
1546 * process.c (send_process): Don't bother breaking long line with EOF
1547 chars when talking to ttys any more.
1548 (wait_reading_process_output): Output a warning when called in such
1549 a way that it could block without being interruptible.
1550
58b963f7
SM
1551 Try to detect file modification within the same second.
1552 * buffer.h (struct buffer): New field modtime_size.
1553 * buffer.c (reset_buffer): Initialize it.
1554 * fileio.c (Finsert_file_contents, Fwrite_region): Set it.
1555 (Fverify_visited_file_modtime): Check it.
1556 (Fclear_visited_file_modtime, Fset_visited_file_modtime): Clear it.
1557 (Fset_visited_file_modtime): Set (or clear) it.
1558
01f5787b
SM
15592010-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
1560
1561 * process.c (status_notify): Remove unused var `ro'.
1562
83725342
JD
15632010-04-12 Jan Djärv <jan.h.d@swipnet.se>
1564
1565 * xfns.c (select_visual): Don't call error if XGetVisualInfo returns
1566 more than one visual (Bug#5938).
1567
b9465836
DN
15682010-04-12 Dan Nicolaescu <dann@ics.uci.edu>
1569
50426a04
JB
1570 * Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE):
1571 Undefine.
b9465836 1572
8d9c8ece
DN
15732010-04-11 Dan Nicolaescu <dann@ics.uci.edu>
1574
b1f52161
DN
1575 Remove C_SWITCH_SYSTEM_TEMACS.
1576 * s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove.
1577 (malloc, realloc, free): Use emacs, not temacs for conditional
1578 definition.
1579
1580 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove.
1581 (ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.
1582
8d9c8ece
DN
1583 Use autoconf, not cpp for some variables.
1584 * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
1585 (C_SWITCH_X_SITE): Define using autoconf, not cpp.
1586 (ALL_CFLAGS): Use them as make variables.
1587 (really-lwlib, really-oldXMenu): Do not pass them.
1588
1ecb2d3f
JD
15892010-04-11 Jan Djärv <jan.h.d@swipnet.se>
1590
1591 * xmenu.c (apply_systemfont_to_dialog): New.
1592 (create_and_show_dialog): Call apply_systemfont_to_dialog if HAVE_XFT.
1593
3a4fa2f2
SM
15942010-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
1595
97e53006
SM
1596 * process.c (exec_sentinel): Preserve current-buffer.
1597
3a4fa2f2
SM
1598 * process.c (read_process_output): Move the save-current-buffer to
1599 apply to both the filter and the non-filter branches.
1600
88df7221
DN
16012010-04-10 Dan Nicolaescu <dann@ics.uci.edu>
1602
1603 * s/msdos.h (UNEXEC): New definition.
1604
5634ff85
YM
16052010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1606
6eff5c3d
YM
1607 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
1608 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
1609
1610 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
1611 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
1612 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
1613 TRY_WINDOW_CHECK_MARGINS.
1614
1615 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
5b253e9c
YM
1616 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423). Subtract last glyph's
1617 width only when it is for padding.
5634ff85 1618
b13aef54
J
16192010-04-09 Jan Djärv <jan.h.d@swipnet.se>
1620
1621 * xfns.c (Fx_show_tip): Call try_window in a loop until
1622 fonts_changed_p is zero (Bug#2423).
1623
21d28484
EZ
16242010-04-08 Eli Zaretskii <eliz@gnu.org>
1625
1626 * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
1627 the end of TEXT_AREA. (Bug#5856)
1628
0269ef77
JD
16292010-04-08 Jan Djärv <jan.h.d@swipnet.se>
1630
1631 * xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of
1632 HAVE_GCONF.
1633
5930fe97
EZ
16342010-04-08 Eli Zaretskii <eliz@gnu.org>
1635
1636 * bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
1637 prev.orig_type, for resolving type of NSM. (Bug#5858)
1638
99852628
JD
16392010-04-08 Jan Djärv <jan.h.d@swipnet.se>
1640
1641 * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
1642 (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
1643 in current_font.
1644 (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
50426a04
JB
1645 (Ffont_get_system_normal_font, xsettings_get_system_normal_font):
1646 New functions.
1647 (syms_of_xsettings): Initialize current_font.
1648 defsubr Sfont_get_system_normal_font.
99852628
JD
1649
1650 * xsettings.h (Ffont_get_system_normal_font,
1651 xsettings_get_system_normal_font): Declare.
1652
1653 * xfns.c (extern xlwmenu_default_font): Remove.
1654 (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
1655 to xlwmenu.c.
1656
1657 * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
1658 menu items in UTF-8.
1659
1660 * xmenu.c: include xsettings.h and xlwmenu.h if USE_LUCID.
1661 (apply_systemfont_to_menu): New function.
1662 (set_frame_menubar, create_and_show_popup_menu): Call
1663 apply_systemfont_to_menu.
1664
7fc874c4
J
16652010-04-07 Jan Djärv <jan.h.d@swipnet.se>
1666
1667 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
1668 FRAME_LINE_TO_PIXEL_Y.
1669
1670 * xterm.c (x_set_window_size_1): Don't add border_width/height to
1671 pixelwidth/height.
1672
863bf481
DN
16732010-04-07 Dan Nicolaescu <dann@ics.uci.edu>
1674
5e5a3b92
DN
1675 Simplify code for HP machines.
1676 * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
1677 for GNU_LINUX, not needed.
1678 (UNEXEC, NEED_BSDTTY): Move definitions...
1679 * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
1680
863bf481
DN
1681 * m/iris4d.h (UNEXEC): Move definition ...
1682 * s/irix6-5.h (UNEXEC): ... here.
1683
3e6bec3b
JD
16842010-04-04 Jan Djärv <jan.h.d@swipnet.se>
1685
1686 * xfns.c (set_machine_and_pid_properties): New function.
1687 (Fx_create_frame): Call set_machine_and_pid_properties.
1688
2912322b
SM
16892010-04-03 Eli Zaretskii <eliz@gnu.org>
1690
1502b819
EZ
1691 * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char): Check
1692 bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
1693 BIDI_EOB. Fixes infloop with vertical cursor motion at ZV.
1694
2912322b
SM
1695 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
1696 in this function. (Bug#5703)
1697
16982010-04-03 Chong Yidong <cyd@stupidchicken.com>
1699
1700 * nsterm.h: Fix last change.
1701
c435b432
DN
17022010-04-03 Dan Nicolaescu <dann@ics.uci.edu>
1703
a568f507
DN
1704 * m/intel386.h (NO_REMAP): Move definition ...
1705 * s/msdos.h (NO_REMAP): ... here.
1706
4cd9f6c2
DN
1707 * m/vax.h (CRT0_DUMMIES): Remove, unused.
1708
c435b432
DN
1709 * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
1710 used on those platforms.
1711
42a2c622
DN
17122010-04-02 Dan Nicolaescu <dann@ics.uci.edu>
1713
1714 Remove extern errno declarations.
1715 * xterm.c:
1716 * xrdb.c:
1717 * w32term.c:
1718 * unexec.c:
1719 * unexaix.c:
1720 * sysdep.c:
1721 * process.c:
1722 * lread.c:
1723 * keyboard.c:
1724 * floatfns.c:
1725 * filelock.c:
1726 * fileio.c:
1727 * emacs.c (main):
1728 * ecrt0.c:
1729 * dispnew.c:
1730 * callproc.c:
1731 * buffer.c: Remove errno extern declarations.
1732 * s/netbsd.h (NEED_ERRNO): Remove.
1733
8224f93d
DN
17342010-04-01 Dan Nicolaescu <dann@ics.uci.edu>
1735
1736 Remove all uses of LIBX11_SYSTEM.
1737 * Makefile.in (LIBX11_SYSTEM): Remove.
1738 * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
1739 instead.
1740
814062c7
EZ
17412010-04-01 Eli Zaretskii <eliz@gnu.org>
1742
ed68db4d
EZ
1743 Remove support for DJGPP v1.x (bug#5813).
1744
1745 * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
8224f93d
DN
1746 * s/msdos.h:
1747 * unexec.c (make_hdr, copy_text_and_data):
1748 * sysdep.c (wait_for_termination, sys_subshell):
ed68db4d 1749 * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
52f4d8d5
EZ
1750 (IT_set_terminal_modes, __write, _rename, gethostname)
1751 (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
1752 (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
1753 the value of __DJGPP__.
ed68db4d
EZ
1754 (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
1755 compatibility code.
8224f93d
DN
1756 * lread.c:
1757 * gmalloc.c (memalign):
1758 * fileio.c (Fcopy_file, check_executable, Ffile_modes):
1759 * emacs.c (main):
1760 * dosfns.c (init_dosfns):
ed68db4d
EZ
1761 * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
1762
52f4d8d5
EZ
17632010-04-01 Eli Zaretskii <eliz@gnu.org>
1764
814062c7
EZ
1765 * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
1766 string with `cursor' property comes from an `after-string'
1767 overlay. (Bug#5816)
1768
0dc2e11d
GM
17692010-04-01 Glenn Morris <rgm@gnu.org>
1770
1771 * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
1772 Define as Makefile variables.
1773 (LIBX): Use above variables rather than directly using autoconf.
1774
1d29df59
DN
17752010-03-31 Dan Nicolaescu <dann@ics.uci.edu>
1776
1777 Clean up BSD_SYSTEM use.
1778 * xterm.c:
1779 * process.c:
1780 * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
1781 for including <sys/ioctl.h>.
1782 * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
1783 code is only used for MSDOS.
1784
1546c559
JL
17852010-03-31 Juri Linkov <juri@jurta.org>
1786
1787 * image.c: Add `Qextension_data'.
1788 (syms_of_image): Initialize and staticpro `Qextension_data'.
1789 (Fimage_metadata): Rename from `Fimage_extension_data'.
1790 (gif_load): Put GIF extension data to the property
1791 `Qextension_data'.
1792
b8a1d5a1
CY
17932010-04-05 Chong Yidong <cyd@stupidchicken.com>
1794
1795 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
1796 terminal frames (Bug#5837).
1797
6521c534
CY
17982010-03-31 Chong Yidong <cyd@stupidchicken.com>
1799
1800 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
1801 * nsterm.h: Fix prototype.
1802
52c30783
EZ
18032010-03-31 Eli Zaretskii <eliz@gnu.org>
1804
1805 * xdisp.c (highlight_trailing_whitespace): Support highlight of
1806 trailing whitespace in right-to-left rows.
1807
855a0da7
SM
18082010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
1809
1810 Get rid of the direct_output optimizations.
1811 * keyboard.c (nonundocount): Remove extern declaration.
1812 (command_loop_1): Remove brittle optimisation for cheap and
1813 common operations.
1814 * xdisp.c (redisplay_internal): Don't bother checking
1815 redisplay_performed_directly_p any more.
1816 * sysdep.c (init_sys_modes): Don't call direct_output_forward_char
1817 any more.
1818 * dispnew.c (redisplay_performed_directly_p)
1819 (direct_output_for_insert, direct_output_forward_char):
1820 * dispextern.h (redisplay_performed_directly_p)
1821 (direct_output_for_insert, direct_output_forward_char): Remove.
1822 * cmds.c (nonundocount): Make it static.
1823
85738751 18242010-03-31 Bernhard Herzog <bh@intevation.de> (tiny change)
a6d676d9
CY
1825
1826 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
1827
85738751 18282010-03-31 Jan Djärv <jan.h.d@swipnet.se>
67fee863
JD
1829
1830 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
1831 invisible (Bug#5766).
1832
85738751 18332010-03-31 Adrian Robert <adrian.b.robert@gmail.com>
9ae6e189 1834
855a0da7
SM
1835 * xdisp.c (x_consider_frame_title, update_window_cursor):
1836 Remove HAVE_NS conditionals.
194d44e7 1837 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
9ae6e189
CY
1838
1839 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
1840 filename for the title.
1841 (ns_set_doc_edited): Do nothing if the selected window is a
1842 minibuffer window.
1843
1844 * nsterm.h: Add prototypes for ns_set_name_as_filename and
1845 ns_set_doc_edited.
1846
1847 * nsterm.m: Remove unneeded prototype.
1848
85738751 18492010-03-31 Glenn Morris <rgm@gnu.org>
25c72475
GM
1850
1851 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
1852 in the DOC file. (Bug#5336)
1853
85738751 18542010-03-31 Chong Yidong <cyd@stupidchicken.com>
f79a01db
CY
1855
1856 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
1857
75d1428c
SM
18582010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
1859
1860 * window.c (keys_of_window): Remove redundant/overridden bindings.
1861
82043cfb
EZ
18622010-03-30 Eli Zaretskii <eliz@gnu.org>
1863
1864 * xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
1865 Restore original behavior when the iterator is not bidi_p.
1866
b5dd0ae7
DN
18672010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
1868
1869 * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
1870
bd924a5d
EZ
18712010-03-30 Eli Zaretskii <eliz@gnu.org>
1872
1873 * bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
1874 are outside the range of cached character positions.
1875
3580374b
JB
18762010-03-30 Juanma Barranquero <lekktu@gmail.com>
1877
1878 * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
1879
a7b02820
EZ
18802010-03-30 Eli Zaretskii <eliz@gnu.org>
1881
1882 Initial support for bidirectional editing.
1883
1884 * Makefile.in (obj): Include bidi.o.
1885 (bidi.o): New target.
1886
1887 * makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
1888 ($(BLD)/bidi.$(O)): New target.
1889
1890 * bidi.c: New file.
1891
1892 * buffer.h (struct buffer): New members bidi_display_reordering
1893 and bidi_paragraph_direction.
1894
1895 * buffer.c (init_buffer_once): Initialize bidi_display_reordering
1896 and bidi_paragraph_direction.
1897 (syms_of_buffer): Declare Lisp variables bidi-display-reordering
1898 and bidi-paragraph-direction.
1899 (Fbuffer_swap_text): Swap the values of
1900 bidi_display_reordering and bidi_paragraph_direction.
1901
1902 * dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
1903 (bidi_type_t, bidi_dir_t): New types.
1904 (bidi_saved_info, bidi_stack, bidi_it): New structures.
1905 (struct it): New members bidi_p, bidi_it, paragraph_embedding,
1906 prev_stop, base_level_stop, and eol_pos.
1907 (bidi_init_it, bidi_get_next_char_visually): New prototypes.
1908 (IT_STACK_SIZE): Enlarge to 5.
1909 (struct glyph_row): New member reversed_p.
1910 <string_buffer_position>: Update prototype.
1911 (PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
1912 glyph_row if bidi_it.paragraph_dir == R2L.
1913 (struct glyph): New members resolved_level and bidi_type.
1914
1915 * dispnew.c (direct_output_forward_char): Give up if we need bidi
1916 processing or buffer's direction is right-to-left.
1917 (prepare_desired_row): Preserve the reversed_p flag.
1918 (row_equal_p): Compare the reversed_p attributes as well.
1919
1920 * xdisp.c (init_iterator): Initialize it->bidi_p. Call
1921 bidi_init_it and set it->paragraph_embedding from the current
1922 buffer's value of bidi_paragraph_direction.
1923 (reseat_1): Initialize bidi_it.first_elt.
1924 (set_iterator_to_next, next_element_from_buffer): Use the value of
1925 paragraph_embedding to determine the paragraph direction.
1926 (set_iterator_to_next): Under bidi reordering, call
1927 bidi_get_next_char_visually. Call bidi_paragraph_init if the
1928 new_paragraph flag is set in the bidi iterator.
1929 (next_element_from_buffer): If bidi_it.first_elt is set,
1930 initialize paragraph direction and find the first character to
1931 display in the visual order. If reseated to a middle of a line,
1932 prime the bidi iterator starting at the line's beginning. Handle
1933 the situation where we overstepped stop_charpos due to
1934 non-linearity of the bidi iteration. Likewise for when we back up
1935 beyond the previous stop_charpos. When moving across stop_charpos,
1936 record it in prev_stop.
1937 (display_line): Set row->end and it->start for the next row to the
1938 next character in logical order. Always extend reversed_p rows to
1939 the end of line, even if they end at ZV. Copy the reversed_p flag
1940 to the next glyph row. Keep calling set_cursor_from_row for
1941 bidi-reordered rows even if we already have a possible candidate
1942 for cursor position. Set row_end after all the row's glyphs have
1943 been produced, by looping over the glyphs. Record the position
1944 after EOL in it->eol_pos, and use it to set end_pos of the last
1945 row produced for a continued line.
1946 <Qright_to_left, Qleft_to_right>: New variables.
1947 (syms_of_xdisp): Initialize and staticpro them.
1948 (string_buffer_position_lim): New function.
1949 (string_buffer_position): Most of code moved to
1950 string_buffer_position_lim. Last argument and return value are
1951 now EMACS_INT; all callers changed.
1952 (set_cursor_from_row): Rewritten to support bidirectional text and
1953 reversed glyph rows.
1954 (text_outside_line_unchanged_p, try_window_id): Disable
1955 optimizations if we are reordering bidirectional text and the
1956 paragraph direction can be affected by the change.
1957 (append_glyph, append_composite_glyph)
1958 (produce_image_glyph, append_stretch_glyph): Set the
1959 resolved_level and bidi_type members of each glyph.
1960 (append_glyph): If the glyph row is reversed, prepend the glyph
1961 rather than appending it.
1962 (handle_stop_backwards): New function.
1963 (reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
1964 (reseat): call handle_stop_backwards to recompute prev_stop and
1965 base_level_stop for the new position.
1966 (handle_invisible_prop): Under bidi iteration, skip invisible text
1967 using bidi_get_next_char_visually. If we are `reseat'ed, init the
1968 paragraph direction. Update IT->prev_stop after skipping
1969 invisible text.
1970 (move_it_in_display_line_to): New variables prev_method
1971 and prev_pos. Compare for strict equality in
1972 BUFFER_POS_REACHED_P.
1973 (try_cursor_movement): Examine all the candidate rows that occlude
1974 point, to return the best match. If rows are bidi-reordered
1975 and point moved backwards, back up to the row that is not a
1976 continuation line, and start looking for a suitable row from
1977 there.
1978
1979 * term.c (append_glyph): Reverse glyphs by pre-pending them,
1980 rather than appending, if the glyph_row's reversed_p flag is set.
1981 Set the resolved_level and bidi_type members of each glyph.
1982
1983 * .gdbinit (pbiditype): New command.
1984 (pgx): Use it to display bidi level and type of the glyph.
1985 (pitx): Display some bidi information about the iterator.
1986 (prowlims, pmtxrows): New commands.
1987
32a8894e
DN
19882010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
1989
1990 Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
1991 * s/usg5-4.h (LIBS_DEBUG):
1992 * s/irix6-5.h (C_DEBUG_SWITCH):
1993 * s/gnu-linux.h (LIBS_DEBUG):
1994 * s/darwin.h (LIBS_DEBUG):
1995 * s/bsd-common.h (LIBS_DEBUG):
1996 * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
1997 * m/iris4d.h (LIBS_DEBUG):
1998 * m/hp800.h (LIBS_DEBUG): Remove definitions.
1999
2000 * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
2001 (LIBS_DEBUG): Remove definition.
2002
649dbf36
CY
20032010-03-27 Chong Yidong <cyd@stupidchicken.com>
2004
2005 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
2006 Windows.
2007
cad4261f
YM
20082010-03-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2009
2010 * process.c (Fmake_network_process): Don't call turn_on_atimers around
2011 `connect' (Bug#5723).
2012
cd591dbc
HE
20132010-03-25 Helmut Eller <eller.helmut@gmail.com>
2014
2015 * process.c (Fmake_network_process): Call `select' for interrupted
2016 `connect' rather than creating new socket (Bug#5173).
2017
e867cb5d 20182010-03-24 Jan Djärv <jan.h.d@swipnet.se>
93318cbd
JD
2019
2020 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
2021
2022 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
2023
2024 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
2025
e867cb5d 20262010-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ad13a3ee
YM
2027
2028 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
2029 XLoadQueryFont.
2030
e867cb5d 20312010-03-24 Kenichi Handa <handa@m17n.org>
fbdc1721
KH
2032
2033 * coding.c (decode_coding_ccl): Fix previous change for the
2034 multibyte case.
fb608df3
KH
2035 (encode_coding_ccl): Don't setup ccl program here. Fix for the
2036 case that the output buffer is fullfilled.
2037 (encode_coding): Setup ccl program here.
fbdc1721 2038
e867cb5d 20392010-03-24 Andreas Politz <politza@fh-trier.de> (tiny change)
35cd7cd6
CY
2040
2041 * editfns.c (Fformat): Account for string precision when computing
2042 field width (Bug#5710).
2043
5845f0ed
DN
20442010-03-23 Dan Nicolaescu <dann@ics.uci.edu>
2045
814fb708
DN
2046 * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
2047
5845f0ed
DN
2048 Simplify LIBS_MACHINE definitions.
2049 * m/hp800.h (LIBS_MACHINE): Remove, same as default.
2050 * m/iris4d.h (LIBS_MACHINE): Likewise.
2051 * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
2052 * s/aix4-2.h (LIBS_SYSTEM): ... here.
38e3487c 2053 * s/netbsd.h: Remove commented out code.
5845f0ed 2054
b7064064
DN
20552010-03-22 Dan Nicolaescu <dann@ics.uci.edu>
2056
df7734b2
DN
2057 Remove dead code dealing with POSIX_SIGNALS.
2058 * atimer.c (set_alarm): Remove dead code, all USG systems define
2059 POSIX_SIGNALS.
2060 * data.c (arith_error): Likewise.
2061 * keyboard.c (input_available_signal, handle_user_signal)
2062 (interrupt_signal): Likewise.
2063 * process.c (sigchld_handler): Likewise.
2064 (create_process): Remove if 0 code. Remove HPUX conditional when
2065 !defined (POSIX_SIGNALS), it cannot be true.
2066 * syssignal.h: Remove USG5_4 and USG conditionals when
2067 !POSIX_SIGNALS, they cannot be true.
2068
b7064064
DN
2069 * keyboard.c (Fset_input_interrupt_mode): Remove code depending on
2070 NO_SOCK_SIGIO, not used anymore.
2071
55da5ee3
DN
20722010-03-21 Dan Nicolaescu <dann@ics.uci.edu>
2073
0be96e3a
DN
2074 * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
2075 support vax on BSDs.
2076
55da5ee3
DN
2077 * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
2078 * s/aix4-2.h (ORDINARY_LINK): ... here.
2079
c0282183
AS
20802010-03-21 Andreas Schwab <schwab@linux-m68k.org>
2081
82c3d67a
AS
2082 * Makefile.in (abs_builddir): Define.
2083 (bootstrap_exe): Use it.
2084 (VPATH): Use $(srcdir) instead of @srcdir@.
c0282183 2085
3613edce
SM
20862010-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
2087
2088 * Makefile.in (bootstrap_exe): Use an absolute name.
2089
7f110ddc
DN
20902010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
2091
22e87574
DN
2092 Remove support for old GNU/Linux using libc version 5.
2093 * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
2094 * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
2095
05a670e6
DN
2096 Consolidate redundant definitions in s/bsd-common.h.
2097 * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
2098 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
2099 (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
2100 doing it in all files that include this one.
2101 * s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
2102 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
2103 (LDAV_SYMBOL, KERNEL_FILE): Remove.
2104 * s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
2105 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
2106 (LDAV_SYMBOL, KERNEL_FILE): Remove.
2107 * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
2108 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
2109 (LDAV_SYMBOL, KERNEL_FILE): Remove.
2110
2968f561
DN
2111 Consolidate redundant definitions.
2112 * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
2113 it's undefined in all files that include this one.
2114 (POSIX_SIGNALS): Define here instead of doing it in all files that
2115 include this one.
2116 * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
2117 (POSIX_SIGNALS): Do not define.
2118 * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
2119 (POSIX_SIGNALS): Do not define.
2120 * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
2121 (POSIX_SIGNALS): Do not define.
2122
15d25dc0
DN
2123 Remove support for old UNIX System V systems.
2124 * s/unixware.h: Add the contents of s/usg-5-4-2.h.
2125 * s/usg-5-4-2.h: Remove.
2126
07e339e4
DN
2127 Remove support for Solaris on PPC and for old versions.
2128 * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
2129 (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
2130 that cancel each other.
2131 * s/sol2-3.h:
2132 * s/sol2-4.h:
2133 * s/sol2-5.h: Remove.
2134 * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
2135 (NO_REMAP): Remove, unused.
2136 (UNEXEC): Move definition ...
2137 * s/aix4-2.h (UNEXEC): ... here.
2138
7f110ddc
DN
2139 * s/openbsd.h: Remove support for non-ELF and for systems that do
2140 not support shared libraries.
2141 * s/netbsd.h:
2142 * s/freebsd.h: Likewise.
2143
605f35cd
DN
21442010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
2145
2146 Remove non-working support for lynxos 3.0.
2147 * s/lynxos.h: Remove file.
2148
2149 * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
2150 COFF_BSD_SYMBOLS, nothing defines it anymore.
2151
aed71cf4
DN
21522010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
2153
2154 Remove obsolete uses of HAVE_SHM.
2155 * emacs.c (standard_args):
2156 (Fdump_emacs):
2157 (syms_of_emacs): Remove code depending on HAVE_SHM.
2158
2159 * alloc.c: Remove HAVE_SHM dependent definition.
2160
2161 * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
2162
aded53ff
GM
21632010-03-18 Glenn Morris <rgm@gnu.org>
2164
17284745
GM
2165 * emacs.c (USAGE4): Hard-code bug address.
2166 (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
2167 (bug_reporting_address): Remove.
2168 (main): Don't call bug_reporting_address.
2169
aded53ff
GM
2170 * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
2171 (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
2172
303500aa
CY
21732010-03-15 Chong Yidong <cyd@stupidchicken.com>
2174
2175 * xfns.c (Fx_create_frame):
2176 * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
2177 on left.
2178
cef3058f
CY
21792010-03-13 Andreas Politz <politza@fh-trier.de> (tiny change)
2180
2181 * editfns.c (Fformat): Account for string precision when computing
2182 field width (Bug#5710).
2183
a647d59d
CY
21842010-03-12 Chong Yidong <cyd@stupidchicken.com>
2185
4fa42018
CY
2186 * xfns.c (Fx_create_frame): Set default to Qright.
2187
a647d59d
CY
2188 * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
2189 all window systems.
2190
6da23aaa
EZ
21912010-03-12 Eli Zaretskii <eliz@gnu.org>
2192
a96f6398 2193 These changes remove termcap.c from the build on Posix platforms.
83d02def 2194 * Makefile.in (termcapobj): Move termcap.o from here...
6da23aaa
EZ
2195 (MSDOS_OBJ): ...to here.
2196 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
2197 now identical to when LIBS_TERMCAP is defined.
2198
2199 * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
2200
2201 * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
2202
a96f6398 2203 * config.in: Regenerated. (See top-level ChangeLog.)
6da23aaa 2204
288f9fc0
CY
22052010-03-10 Chong Yidong <cyd@stupidchicken.com>
2206
2207 * Branch for 23.2.
2208
d48cd3f4
SM
22092010-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
2210
2211 Cleanup setup of gl_state in various parts of the code.
2212 * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
2213 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
2214 * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
2215 (skip_chars):
2216 * regex.c (regex_compile): Use it.
2217 (re_compile_pattern): Don't set gl_state.current_syntax_table since
2218 it's now set in regex_compile when/if we need it.
2219
618db430
SM
22202010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
2221
c0335e02
SM
2222 Make it possible to C-g in a tight bytecode loop again (bug#5680).
2223 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
2224 (QUIT): Use it to consolidate code and remove redundancy.
2225 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
2226
254c06a8
SM
2227 * regex.c (regex_compile): Setup gl_state as well.
2228
618db430
SM
2229 * syntax.c (skip_chars): Setup gl_state (bug#3823).
2230 (in_classes): Use CONSP before XCAR/XCDR.
2231
233f0c9f
CY
22322010-03-03 Chong Yidong <cyd@stupidchicken.com>
2233
2234 * keymap.c (Fwhere_is_internal): Use Fequal to compare
2235 definitions, so that keyboard macros are correctly handled
2236 (Bug#5481).
2237
75f80e63
EZ
22382010-03-02 Eli Zaretskii <eliz@gnu.org>
2239
2240 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
2241 text that could be relocated inside the call to emacs_mule_char.
2242 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
2243 (CODING_DECODE_CHAR): Add a comment describing its purpose.
2244
dcfb9bc4
KH
22452010-03-02 Kenichi Handa <handa@m17n.org>
2246
fc9a17bc
KH
2247 * character.c (parse_str_as_multibyte): Fix handling of the
2248 multibyte form of raw-bytes.
2249 (str_as_multibyte): Likewise.
2250
dcfb9bc4
KH
2251 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
2252 form of raw-bytes.
2253
412c01b6
CY
22542010-02-28 Chong Yidong <cyd@stupidchicken.com>
2255
2256 * charset.c (load_charset_map_from_file)
2257 (load_charset_map_from_vector): Zero out allocated
2258 charset_map_entries before using them.
2259
df7e1ea0
AS
22602010-02-27 Andreas Schwab <schwab@linux-m68k.org>
2261
2262 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
2263
fe69a722
CY
22642010-02-27 Chong Yidong <cyd@stupidchicken.com>
2265
4ed28cf4
CY
2266 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
2267 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
fe69a722 2268
7379cfce
KH
22692010-02-26 Kenichi Handa <handa@m17n.org>
2270
f88cc4d6
KH
2271 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
2272
7379cfce
KH
2273 * xdisp.c (reseat_to_string): Fix previous change.
2274
cf2fdcfb
CY
22752010-02-26 David Reitter <david.reitter@gmail.com>
2276
2277 * nsfont.m (nsfont_draw): ns_antialias_text should be a
2278 Lisp_Object (Bug#4736).
2279
cc6c7c75
KH
22802010-02-25 Kenichi Handa <handa@m17n.org>
2281
2282 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
2283
32e737d7
JD
22842010-02-24 Jan Djärv <jan.h.d@swipnet.se>
2285
2286 * xterm.c (XTflash): Move declarations before statements.
2287
2288 * gtkutil.c (xg_get_gdk_display): Remove (unused).
2289 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
2290 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
2291 (xg_create_tool_bar): Remove unused variables.
2292 (x_wm_set_size_hint): Move declarations before statements.
a73f9c9d 2293 (xg_create_frame_widgets): Remove variable grav.
32e737d7 2294
676cae9f
CY
22952010-02-21 Chong Yidong <cyd@stupidchicken.com>
2296
2297 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
2298
886cc2b8
SM
22992010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
2300
2301 * term.c (fatal): Add a final \n if needed (bug#5596).
2302
ddb2d8e2
CY
23032010-02-18 Chong Yidong <cyd@stupidchicken.com>
2304
2305 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
2306
2a4f8d3d
GM
23072010-02-18 Glenn Morris <rgm@gnu.org>
2308
2309 * callint.c (Finteractive): Doc fix.
2310
ebaf11b6
KH
23112010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
2312
886cc2b8
SM
2313 * coding.c (record_conversion_result):
2314 Handle CODING_RESULT_INSUFFICIENT_DST.
ebaf11b6
KH
2315 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
2316 memory allocation error.
2317
d0396581
KH
23182010-02-17 Kenichi Handa <handa@m17n.org>
2319
886cc2b8
SM
2320 * coding.c (decode_coding_ccl): Don't setup ccl program here.
2321 Fix for the case that the output buffer is fullfilled.
d0396581
KH
2322 (decode_coding): Setup ccl program here. Keep looping when the
2323 decoder stopped because the output buffer is
2324 fullfilled (bug#5534).
2325
2326 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
2327
98599f74
JD
23282010-02-13 Jan Djärv <jan.h.d@swipnet.se>
2329
471e4f04 2330 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
98599f74 2331 bug #5571.
886cc2b8 2332 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
471e4f04 2333 overdrawn.
98599f74 2334
182659ae
JD
23352010-02-10 Jan Djärv <jan.h.d@swipnet.se>
2336
2337 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
2338 doing_interact here.
2339 (ice_connection_closed): New function.
2340 (x_session_check_input, smc_die_CB, ice_io_error_handler)
2341 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
2342 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
2343 returns I/O error.
2344 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
2345 bug #5512.
2346
9be32c4e 23472010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
14a225f9
CY
2348
2349 * nsfont.m (nsfont_open): The system's value for the font descent
2350 is negative, so round it down to avoid clipping.
2351
a2f3eb19
CY
23522010-02-06 Chong Yidong <cyd@stupidchicken.com>
2353
2354 * charset.c (load_charset_map_from_file)
2355 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
953d248c 2356 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
a2f3eb19 2357
3088147c
CY
23582010-02-05 Chong Yidong <cyd@stupidchicken.com>
2359
2360 * charset.c (load_charset_map_from_file): Allocate large
2361 charset_map_entries structure on the heap rather than the stack.
2362 (Bug#5526).
2363
b57d9029
KH
23642010-01-31 Kenichi Handa <handa@m17n.org>
2365
2366 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
115e4fd3 2367 size in NAME is invalid, return -1 (Bug#5396).
b57d9029 2368
c67d885b
CY
23692010-01-31 Chong Yidong <cyd@stupidchicken.com>
2370
2371 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
2372 <deactivated@gmail.com> (Bug#3605).
2373
8fab2362
CY
23742010-01-31 David De La Harpe Golden <david@harpegolden.net>
2375
2376 * fileio.c (Frename_file): Correctly rename symlinks to
2377 directories (Bug#5496).
2378
cb2a62f2
CY
23792010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
2380
2381 * nsterm.m (ns_ring_bell): Handle visible bell like X.
2382
944c7a26
AS
23832010-01-30 Andreas Schwab <schwab@linux-m68k.org>
2384
2385 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
2386
c024ac08
CY
23872010-01-29 Chong Yidong <cyd@stupidchicken.com>
2388
2389 * frame.c (DEFAULT_ROWS): Change default to 35.
2390
2391 * xfns.c (x_default_font_parameter): Change default XFT font to
2392 monospace-10 (Bug#3643).
2393
af93af83
EZ
23942010-01-29 Eli Zaretskii <eliz@gnu.org>
2395
2396 * w32inevt.c (key_event): Remove unnecessary comparison of
2397 event->uChar.AsciiChar with 128.
2398
ca0eb708
CY
23992010-01-28 Chong Yidong <cyd@stupidchicken.com>
2400
b242dbfc
CY
2401 * fileio.c (Frename_file): Fix last change (Bug#5487).
2402
ca0eb708
CY
2403 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
2404
2405 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
2406
45d45af5
JD
24072010-01-28 Jan Djärv <jan.h.d@swipnet.se>
2408
2409 * xfns.c (Fx_create_frame): Remove window size matching code from
2410 2010-01-15.
a73f9c9d 2411 (x_get_current_desktop, x_get_desktop_workarea): Remove.
45d45af5 2412
7e233730
JR
24132010-01-27 Jason Rumney <jasonr@gnu.org>
2414
2415 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
a292592c 2416 (key_event): Use unicode for characters 128 and higher (Bug#4567).
7e233730 2417
86e893e3
KH
24182010-01-27 Kenichi Handa <handa@m17n.org>
2419
2420 * regex.c (analyse_first): Fix setting of fastmap for unibyte
c8b96b2a 2421 pattern string (Bug#4209).
86e893e3 2422
8719abec
CY
24232010-01-27 David De La Harpe Golden <david@harpegolden.net>
2424
2425 * fileio.c (Frename_file): Call copy-directory and
2426 delete-directory for directories, in order to handle cross-device
2427 renaming (Bug#3353).
2428
844794c8
JD
24292010-01-25 Jan Djärv <jan.h.d@swipnet.se>
2430
aa3e13b5 2431 * xfns.c (Fx_create_frame): If frame height is too big, try
ac146f82 2432 sizes 24 and 10. Bug #3643.
844794c8 2433
bd4b5750
SM
24342010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
2435
8dc1adf6 2436 Try and fix bug#788, hopefully for real this time.
bd4b5750
SM
2437 * keymap.c (shadow_lookup): Add `remap' arg.
2438 (describe_map, describe_vector): Update calls to shadow_lookup.
2439 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
2440 `remapped' so this flag is applicable to `sequence'. Be careful to
8dc1adf6
SM
2441 perform remapping during shadow_lookup check of remapped_sequences.
2442
285d07e2
CY
24432010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
2444
2445 * image.c (png_load): Use png_sig_cmp instead of the obsolete
2446 png_check_sig, which has been removed in libpng 1.4.
2447
c6d09b8d
CY
24482010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
2449
2450 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
2451 lacks this header file).
2452
3d782998
YM
24532010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2454
2455 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
2456 as in Emacs 22.
2457
2aff7c53
YM
24582010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2459
2460 * lisp.h (make_pure_string): String pointer arg now points to const.
2461
2462 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
2463 args now point to const.
2464
74327f7a
EZ
24652010-01-22 Eli Zaretskii <eliz@gnu.org>
2466
2467 * lread.c (Fload): Don't treat files without .elc extension as
2468 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
2469 them. (bug#5303)
2470
4d1e6632
KH
24712010-01-20 Kenichi Handa <handa@m17n.org>
2472
2473 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
2474 treat the source as actual byte sequence.
2475
1fdede8f
AM
24762010-01-19 Alan Mackenzie <acm@muc.de>
2477
2478 Fix spurious before-change-functions invocation from (insert ?\n).
194d44e7 2479 * textprop.c (set_text_properties): Rename parameter
1fdede8f
AM
2480 `signal_after_change_p' to `coherent_change_p', and make the
2481 invocation of `modify_region' conditional on it.
2482
67477f30
JD
24832010-01-19 Jan Djärv <jan.h.d@swipnet.se>
2484
2485 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
2486 for debug purpose.
2487 (syms_of_xsettings): Declare xft-settings.
2488
244b023e
CY
24892010-01-18 Chong Yidong <cyd@stupidchicken.com>
2490
2491 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
2492
617364fe
CY
24932010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
2494
2495 * xterm.c (event_handler_gdk): Block input (Bug#5037).
2496
4fe22cdf
CY
24972010-01-16 Chong Yidong <cyd@stupidchicken.com>
2498
2499 * emacs.c (standard_args): Adjust arg priorities to reflect how
2500 they are processed in startup.el.
2501
e118d2be
AS
25022010-01-16 Andreas Schwab <schwab@linux-m68k.org>
2503
2504 * Makefile.in (lisp, shortlisp): Update.
2505
523ae620
SM
25062010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
2507
2508 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
2509 code, link the new kboard into all_kboard before running Lisp code,
2510 and protect the new terminal with GCPRO (Bug#5365).
2511 (x_term_init): Remove unused var `atom'.
2512 (x_delete_display, x_delete_terminal): Remove unused var `i'.
2513
f0d13888
JD
25142010-01-15 Jan Djärv <jan.h.d@swipnet.se>
2515
2516 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
2517 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
2518 to find out usable size of the desktop. Don't make frames larger than
ac146f82 2519 this. Bug #3643.
f0d13888 2520
cc320f07
KH
25212010-01-15 Kenichi Handa <handa@m17n.org>
2522
2523 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
2524
7ffdf101
CY
25252010-01-15 Chong Yidong <cyd@stupidchicken.com>
2526
2527 * nsterm.m (Qnone): Define.
2528
2529 * nsfns.m (Qnone): Move definition to nsterm.m.
2530
d12bd917
KH
25312010-01-14 Kenichi Handa <handa@m17n.org>
2532
2533 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
2534 systems.
2535
d9a7c140
KH
25362010-01-14 Kenichi Handa <handa@m17n.org>
2537
2538 Make auto-composition work on all buffers even if they are
2539 fundamental mode.
2540
2541 * composite.c (Vauto_composition_mode): New variable.
2542 (composition_compute_stop_pos): Check Vauto_composition_mode
2543 instead of Vauto_composition_function.
2544 (composition_adjust_point, Ffind_composition_internal): Likewise.
2545 (syms_of_composite): Declare Lisp variable
2546 "auto-composition-mode" here.
2547
63286bb2
CY
25482010-01-13 Chong Yidong <cyd@stupidchicken.com>
2549
2550 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
2551 during call to vendor-specific-keysyms (Bug#5365).
2552
c2623ee7
YM
25532010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2554
2555 * keyboard.c (input_available_signal) [SYNC_INPUT]:
2556 Call SIGNAL_THREAD_CHECK (Bug#5333).
2557
2558 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
2559 Call SIGNAL_THREAD_CHECK.
2560
0b5397c2
SM
25612010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
2562
2563 Try to fix bug#5314. This is probably not the final word, tho.
2564 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
2565 recent-auto-save-p as a side-effect.
2566 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
2567 * buffer.c (Fkill_buffer, reset_buffer):
2568 * editfns.c (Fsubst_char_in_region):
2569 * fileio.c (Finsert_file_contents, Fdo_auto_save)
2570 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
2571
dc954cb2
KH
25722010-01-13 Kenichi Handa <handa@m17n.org>
2573
2574 Display buffer name, etc. in mode line by composing correctly.
2575
2576 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
2577 STRING is not nil.
0b5397c2 2578 (display_mode_element): Adjust for the change of
dc954cb2
KH
2579 decode_mode_spec and display_line.
2580 (decode_mode_spec): Change arg MULTIBYTE to STRING.
2581 (display_string): Handle the case that STRING is non-null and
2582 LISP_STRING is not nil.
2583
0b5397c2
SM
2584 * xterm.c (x_draw_composite_glyph_string_foreground):
2585 Pay attention to s->face->overstrike.
dc954cb2
KH
2586
2587 * composite.c (composition_reseat_it): Don't check PT if STRING is
2588 non nil.
2589
4a00eaca
YM
25902010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2591
2592 * keyboard.c (read_char): Don't apply previous change when current
2593 buffer is unchanged by command execution.
2594
60abb287
JD
25952010-01-12 Jan Djärv <jan.h.d@swipnet.se>
2596
2597 * keyboard.c (read_char): Return after executing from special map.
2598
893db5bc
GM
25992010-01-12 Glenn Morris <rgm@gnu.org>
2600
2601 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
2602 bug-gnu-emacs rather than emacs-pretest-bug.
2603
4d03ece0
CY
26042010-01-11 Chong Yidong <cyd@stupidchicken.com>
2605
2606 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
2607 initializing the Lisp variables that depend on them.
2608
1df47e38
YM
26092010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2610
2611 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
2612 Clear areas that will not be updated after change of menu bar lines.
2613 Clear the menu bar window's current matrix when the window gets empty.
2614
2f1c6384
CY
26152010-01-09 Chong Yidong <cyd@stupidchicken.com>
2616
e398c61c
CY
2617 * intervals.h, textprop.c (extend_property_ranges): Return value
2618 and args changed. Discard properties that begin at or after the
2619 new end (Bug#5306).
2620
2621 * editfns.c (Fformat): Caller changed.
2622
e5a29a10
CY
2623 * nsterm.m (ns_set_default_prefs): Delete function.
2624 (syms_of_nsterm): Initialize ns_command_modifier,
2625 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
2626 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
2627
2f1c6384
CY
2628 * xdisp.c (pos_visible_p): Check for invisible text at the correct
2629 position (Bug#4040).
2630
d427a9fa
EZ
26312010-01-09 Eli Zaretskii <eliz@gnu.org>
2632
2633 * editfns.c (Ffloat_time): Doc fix.
2634
21b9df2f
JD
26352010-01-09 Jan Djärv <jan.h.d@swipnet.se>
2636
2637 * xfns.c (Fx_create_frame): Don't create frame larger than display
2638 by default bug#3643.
2639
4b00d3b1
YM
26402010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2641
2642 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
2643 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
2644 windows above internal border.
2645
2646 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
2647 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
2648 windows above internal border.
2649
2650 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
2651 tool bar windows specially.
2652
2653 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
2654
2655 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
2656 specially.
2657 (XTflash): Take account of menu bar height.
2658
2659 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
2660 specially.
2661
5075d853
JD
26622010-01-08 Jan Djärv <jan.h.d@swipnet.se>
2663
ac146f82 2664 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
5075d853
JD
2665 also be true before we can return early (bug #5339).
2666
474217c8
CY
26672010-01-06 David Reitter <david.reitter@gmail.com>
2668
2669 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
2670 (Fns_display_usable_bounds): Rewrite, computing bounds properly
2671 (Bug#3233).
2672
c0e6d47d
JD
26732010-01-06 Jan Djärv <jan.h.d@swipnet.se>
2674
d0cf45b7
JD
2675 * font.c (font_open_entity): Enable chache and call cached_font_ok
2676 for the driver if defined.
2677 (QCuser_spec): New symbol.
2678 (font_spec_from_name): Save name as user-spec.
2679 (font_load_for_lface): Keep user-spec instead of name.
2680 (font_open_by_name): Save name as user-spec.
2681 (syms_of_font): Initialize QCuser_spec.
b7f8e4f5 2682 (font_clear_prop): Clear name if it exists in font (bug#5157).
d0cf45b7
JD
2683
2684 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
2685 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
2686 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
2687
2688 * font.h (struct font_driver): Add cached_font_ok.
2689
c0e6d47d
JD
2690 * xterm.c (x_clear_frame): Queue draw for scroll bars.
2691
7c583cd8
JD
26922010-01-05 Jan Djärv <jan.h.d@swipnet.se>
2693
2694 * xterm.c (x_new_font): Move code for setting rows/cols before
2695 resizing ...
ac146f82 2696 (x_set_window_size): ... to here. Bug #2568.
7c583cd8
JD
2697
2698 * gtkutil.c (xg_clear_under_internal_border): New function.
0b5397c2
SM
2699 (xg_frame_resized, xg_frame_set_char_size):
2700 Call xg_clear_under_internal_border.
7c583cd8 2701 (xg_update_scrollbar_pos): Clear under old scroll bar position.
69e2f185 2702
03f77f0a
CY
27032010-01-05 Chong Yidong <cyd@stupidchicken.com>
2704
2705 * keyboard.c (read_key_sequence): Catch keyboard switch after
2706 making a new tty frame (Bug#5095).
2707
2a1ef5be
KH
27082010-01-05 Kenichi Handa <handa@m17n.org>
2709
2710 * fontset.c (fontset_find_font): Fix getting the frame pointer.
2711
e3eb1dae
SM
27122010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
2713
2714 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
2715 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
2716 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
2717
777013f2
MA
27182010-01-03 Michael Albinus <michael.albinus@gmx.de>
2719
2720 * dbusbind.c (xd_add_watch): Improve debug message.
2721 (xd_remove_watch): Improve debug message. If DATA is the session
2722 bus, unset D-Bus session environment.
2723 (Fdbus_init_bus): Pass the bus as argument to
2724 dbus_connection_set_watch_functions. (Bug#5283)
7c583cd8 2725
8932b1c2
CY
27262010-01-01 Chong Yidong <cyd@stupidchicken.com>
2727
87231e2c
CY
2728 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
2729
4801c5fa
CY
2730 * lread.c (syms_of_lread): Make it clearer that these are the
2731 names of loaded files (Bug#5068).
2732
8932b1c2
CY
2733 * eval.c (run_hook_with_args): Handle the case where the global
2734 value has the obsolete single-function form (Bug#5026).
2735
11e3c684
CY
27362009-12-27 Chong Yidong <cyd@stupidchicken.com>
2737
2738 * minibuf.c (Fall_completions): Minor optimization.
2739
5b28ce35
EZ
27402009-12-26 Eli Zaretskii <eliz@gnu.org>
2741
5ce6e4f4
JB
2742 * .gdbinit (pgx): Fix display of composite glyphs.
2743 Display cmp.from and cmp.to as well.
2744 (pitx): Fix last change.
5b28ce35 2745
bcffff46
KH
27462009-12-25 Kenichi Handa <handa@m17n.org>
2747
2748 * composite.h (composition_adjust_point): Update prototype.
2749
2750 * composite.c (composition_reseat_it): Don't make a composition
2751 spanning over point.
2752 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
2753 composable characters.
2754 (composition_adjust_point): New arg NEW_PT. Callers changed.
2755
2756 * keyboard.c (command_loop_1): Force redisplay if the last point
2757 was within a composition.
2758 (adjust_point_for_property): Don't adjust point for automatic
2759 composition when called after buffer modification.
2760
3f670e9a
EZ
27612009-12-19 Eli Zaretskii <eliz@gnu.org>
2762
5ce6e4f4
JB
2763 * .gdbinit (pitx): Don't use enum names, use their values.
2764 Remove reference to non-existing value GET_FROM_COMPOSITION.
be996d82
EZ
2765 (pgx): Don't use enum names, use their values.
2766 (pitmethod): New helper command.
2767 (pitx): Use it to display iteration method.
2768 (pgrowit): New command.
2769
ad903955
EZ
2770 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
2771
3f670e9a
EZ
2772 Update dependencies in Makefile.in.
2773
2774 * Makefile.in (alloc.o): Depend on termhooks.h.
2775 (atimer.o): Depend on blockinput.h.
2776 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
2777 and frame.h.
2778 (callint.o): Depend on systime.h, coding.h, and composite.h.
2779 (callproc.o): Depend on buffer.h.
2780 (casefiddle.o): Don't depend on charset.h.
2781 (casetab.o): Depend on character.h.
2782 (ccl.o): Depend on composite.h.
2783 (chartab.o): Depend on ccl.h.
2784 (cm.o): Depend on dispextern.h.
2785 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
2786 (coding.o): Don't depend on $(INTERVALS_H).
2787 (composite.o): Don't depend on dispextern.h explicitly (it's in
2788 $(INTERVALS_H)). Depend on ccl.h.
2789 (data.o): Depend on systime.h, coding.h, composite.h,
2790 dispextern.h, font.h, and ccl.h.
2791 (dired.o): Depend on composite.h.
2792 (dispnew.o): Depend on coding.h. Don't depend explicitly on
2793 composite.h (it's in $(INTERVALS_H)).
2794 (doc.o): Depend on systime.h, coding.h, and composite.h.
2795 (editfns.o): Don't depend explicitly on dispextern.h.
2796 (emacs.o): Depend on frame.h and coding.h.
2797 (eval.o): Depend on coding.h, composite.h, and xterm.h.
2798 (fileio.o): Depend on frame.h and commands.h. Don't depend
2799 explicitly on dispextern.h.
2800 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
2801 composite.h.
2802 (fns.o): Don't depend on termhooks.h.
2803 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
2804 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
2805 coding.h, $(INTERVALS_H), window.h, xterm.h.
2806 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
2807 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
2808 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
2809 fontset.h, ccl.h, and ftfont.h.
2810 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
2811 (gtkutil.o): Depend on dispextern.h and composite.h.
2812 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
2813 termhooks.h, and ccl.h.
2814 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
2815 (intervals.o): Depend on systime.h and coding.h.
2816 (keyboard.o): Depend on composite.h and coding.h.
2817 (keymap.o): Depend on coding.h and frame.h.
2818 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
2819 (macros.o): Depend on systime.h, coding.h, and composite.h.
2820 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
2821 and atimer.h.
2822 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
2823 dispextern.h explicitly.
0b5397c2
SM
2824 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
2825 Don't depend explicitly on dispextern.h and composite.h.
3f670e9a
EZ
2826 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
2827 (regex.o): Don't depend on charset.h.
2828 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
2829 (search.o): Don't depend explicitly on composite.h.
2830 (sound.o): Depend on atimer.h and systime.h.
2831 (syntax.o): Don't depend explicitly on composite.h.
2832 (sysdep.o): Depend on coding.h and composite.h.
2833 (term.o): Depend on xterm.h and buffer.h.
2834 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
2835 (textprop.o): Don't depend on dispextern.h explicitly.
2836 (undo.o): Depend on dispextern.h.
2837 (window.o): Depend on coding.h and termhooks.h. Don't depend on
2838 dispextern.h and composite.h explicitly.
2839 (xdisp.o): Depend on ccl.h.
2840 (xfaces.o): Depend on coding.h and ccl.h.
2841 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
2842 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
2843 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
2844 ftfont.h.
2845 (xgselect.o): New dependency.
2846 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
2847 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
2848 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
2849 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
2850 (xsmfns.o): Depend on frame.h and dispextern.h.
2851 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
2852 sysselect.h.
2853
7a6f7fea
AS
28542009-12-19 Andreas Schwab <schwab@linux-m68k.org>
2855
2856 * font.c (Fclear_font_cache): Pass correct cache argument to
2857 font_clear_cache.
2858
f4c21026
AS
28592009-12-16 Andreas Schwab <schwab@linux-m68k.org>
2860
2861 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
2862 twice.
2863
f7ab0997
CY
28642009-12-15 Chong Yidong <cyd@stupidchicken.com>
2865
2866 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
2867 calling file-remote-p. Reported by Jim Meyering.
2868
fa8e045a
MA
28692009-12-15 Michael Albinus <michael.albinus@gmx.de>
2870
2871 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
777013f2 2872 avoid compiler warnings. (Bug #5217)
fa8e045a 2873
a63dba42
KH
28742009-12-14 Kenichi Handa <handa@m17n.org>
2875
2876 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
2877 in 8-bit encoding.
2878
5ce6e4f4 28792009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
36acb2a7
JD
2880
2881 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
2882 tooltip windows.
2883
223e5fc6
JD
28842009-12-13 Jan Djärv <jan.h.d@swipnet.se>
2885
36acb2a7
JD
2886 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
2887 Xatom_net_window_type.
2888
2889 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
2890 Xatom_net_window_type.
2891
b8f00677
JD
2892 * xterm.c (my_log_handler): New function.
2893 (x_term_init): Set my_log_handler as log handler during gtk_init
5ce6e4f4 2894 so we can filter out buggy messages. (Bug #5120).
b8f00677 2895
e5f0bc9a
JD
2896 * xterm.c (xg_scroll_callback): Parameter list changed,
2897 use parameter GtkScrollType to determine scroll/line/page.
2898 Only allow dragging if a button < 4 is grabbed (bug #5177).
2899 (xg_end_scroll_callback): New function.
2900 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
2901 xg_create_scroll_bar.
2902
2903 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
2904 (scroll_end_callback): Remove.
2905 (xg_create_scroll_bar): Add parameter end_callback, bind it to
2906 button-release-event. Replace value-changed event with change-value,
2907 bug #5177,
2908 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
2909 bug #5177.
2910
2911 * gtkutil.h (XG_LAST_SB_DATA): Remove.
2912 (xg_create_scroll_bar): Add GCallback end_callback.
2913
223e5fc6
JD
2914 * xftfont.c (QClcdfilter): New variable.
2915 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
2916 (syms_of_xftfont): Initialize QClcdfilter.
2917
3c055b77
JD
29182009-12-12 Jan Djärv <jan.h.d@swipnet.se>
2919
2920 * xsettings.c (struct xsettings): Add member seen.
2921 (parse_xft_settings): Update member seen with what we have read.
ba68c0b0 2922 Return non-zero if Xft-settings have been parsed, 0 otherwise.
3c055b77
JD
2923 (apply_xft_settings): Only update Xft settings with what member seen
2924 indicates as new.
2925
05fe33ff
EZ
29262009-12-12 Eli Zaretskii <eliz@gnu.org>
2927
2928 * dispextern.h (struct text_pos): Use EMACS_INT;
2929 (struct glyph): Use EMACS_INT for charpos.
2930 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
2931 region_beg_charpos, region_end_charpos,
2932 redisplay_end_trigger_charpos, and also for
2933 iterator_stack_entry.end_charpos and
2934 iterator_stack_entry.stop_charpos.
2935
e8d7886a
JD
29362009-12-12 Jan Djärv <jan.h.d@swipnet.se>
2937
5ce6e4f4 2938 * gtkutil.c (scroll_end_callback): New function (bug #5177).
e8d7886a
JD
2939 (xg_create_scroll_bar): Call scroll_end_callback on button release
2940 event (bug #5177).
2941 (xg_event_is_for_scrollbar): != replaced with ==.
2942
d0db2ec8
KH
29432009-12-12 Kenichi Handa <handa@m17n.org>
2944
2945 * ftfont.c (struct ftfont_info): New member matrix.
2946 (ftfont_open): Setup xftfont_info->matrix.
2947 (MFLTFontFT): New member matrix.
2948 (FLOOR, CEIL, ROUND): New macros.
2949 (ftfont_get_metrics): Handle matrix transformation.
2950 (ftfont_shape_by_flt): New arg matrix. Callers changed.
2951
2952 * xftfont.c (struct xftfont_info): New member matrix.
2953 (xftfont_open): Setup xftfont_info->matrix.
2954
29552009-12-10 Kenichi Handa <handa@m17n.org>
2956
2957 * xdisp.c (append_space_for_newline): Consider face-remapping.
2958
2cc7b62f
AS
29592009-12-09 Andreas Schwab <schwab@linux-m68k.org>
2960
b87dd913
AS
2961 * xsettings.c: Include "keyboard.h".
2962
eba5eb94
AS
2963 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
2964
2cc7b62f
AS
2965 Fix implicit function declarations.
2966 * cmds.c: Include "frame.h".
2967 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
2968 * frame.h: Move declaration of delete_frame outside of
2969 HAVE_WINDOW_SYSTEM.
2970
a4ef73c8
CY
29712009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
2972
2973 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
2974
2975 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
2976 GTK builds.
2977
944a300c
AS
29782009-12-07 Andreas Schwab <schwab@linux-m68k.org>
2979
2980 * unexelf.c (unexec): Don't search for .data twice.
2981
022eef62
CY
29822009-12-05 Chong Yidong <cyd@stupidchicken.com>
2983
426ac949
CY
2984 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
2985 if push failed.
2986 (handle_line_prefix): Set avoid_cursor_p here. Check return value
2987 of push_display_prop (Bug#5000).
2988
022eef62
CY
2989 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
2990 value of font_list_entities (Bug#5085).
2991
be95bee9
JB
29922009-12-04 Juanma Barranquero <lekktu@gmail.com>
2993
2994 Fix `string-to-number' to deal consistently with integers and floats.
2995 * lread.c (isfloat_string): New argument ignore_trailing to accept all
2996 trailing characters, not just whitespace.
2997 (read1): Pass new arg 0 to keep old behavior.
2998 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
2999 trailing chars, as it is already done for integers. Doc fixes.
3000 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
3001
24c2d7ce
EZ
30022009-12-04 Eli Zaretskii <eliz@gnu.org>
3003
0b5397c2
SM
3004 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
3005 Delete unused enumeration value.
24c2d7ce 3006
7e694795
EZ
30072009-12-03 Eli Zaretskii <eliz@gnu.org>
3008
3009 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
3010
84b31826
SM
30112009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
3012
3013 * process.c (Fmake_network_process): Fix up the tests for
3014 "connectionless socket", so they DTRT for seqpacket sockets as well.
3015
f00c449b
SM
30162009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
3017
3018 * process.c (Qseqpacket): New symbol.
3019 (HAVE_SEQPACKET): New macro.
3020 (Fmake_network_process): Accept new :type `seqpacket'.
3021 (init_process): Add `seqpacket' feature when applicable.
3022 (syms_of_process): Initialize Qseqpacket.
3023
8096a0ff
YM
30242009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3025
3026 * font.c (font_load_for_lface, font_open_by_name): Don't store name
3027 if entity is Qnil.
3028
3e0de07f
SM
30292009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
3030
3031 * print.c (print_preprocess): Preprocess the key_and_value table of
3032 hashtables, even tho they're "hidden" (bug#5082).
3033
abeafb2a
JD
30342009-11-29 Jan Djärv <jan.h.d@swipnet.se>
3035
3036 * frame.c (frame_make_pointer_invisible)
3037 (frame_make_pointer_visible): Declare f before statements.
3038
4bf47195
EZ
30392009-11-28 Eli Zaretskii <eliz@gnu.org>
3040
3041 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
3042 omitted dependencies on lisp.h.
3043
c525b3f2
JD
30442009-11-27 Jan Djärv <jan.h.d@swipnet.se>
3045
ece2d4ed
JD
3046 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
3047 is NULL.
3048
3049 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
3050
3051 * frame.c (frame_make_pointer_invisible)
3e0de07f 3052 (frame_make_pointer_visible): Just return if there isn't any selected
ece2d4ed
JD
3053 frame.
3054
c525b3f2
JD
3055 * search.c (simple_search): Remove warning by making *p const.
3056
2f00e299
DN
30572009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
3058
3059 * xdisp.c (power_letter): Remove duplicate const.
3060
084b049b
JD
30612009-11-25 Jan Djärv <jan.h.d@swipnet.se>
3062
a1fadc6f
JD
3063 * term.c (delete_tty): Remove check for last terminal (bug#4970).
3064
5ce6e4f4 3065 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
084b049b
JD
3066 defaults (bug #5025).
3067
28259cac
SM
30682009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
3069
3070 * insdel.c (adjust_markers_for_delete): Move it in the
3071 right direction! (bug#4803)
3072
e8e14166
YM
30732009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3074
3075 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
3076
3077 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
3078
86677b58
GM
30792009-11-24 Glenn Morris <rgm@gnu.org>
3080
3081 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
3082
581e51e8
JD
30832009-11-23 Jan Djärv <jan.h.d@swipnet.se>
3084
cfc86c7a
JD
3085 * Makefile.in: Must create deps for ecrt0.o in its rule.
3086
581e51e8
JD
3087 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
3088 because that is what Gtk+ font dialog understands.
3089
3090 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
3091 of Fcopy_sequence.
3092 (font_open_by_name): Put name given into QCname for font-object returned.
3093
3094 * frame.c (x_set_font): Save original font name as frame parameter
3095 font-parameter.
3096
3097 * xsettings.c (set_default_xft_settings): New function.
3098 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
3099 is found.
3100
8b264ecb
AS
31012009-11-22 Andreas Schwab <schwab@linux-m68k.org>
3102
3103 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
3104 searching backwards through multibyte buffer.
3105
872870b2
JD
31062009-11-21 Jan Djärv <jan.h.d@swipnet.se>
3107
3108 * xterm.c: #include xgselect.h.
3109 (x_initialize): Call xgselect_initialize.
3110
3111 * xsettings.c (something_changedCB): C++ comments => C comments.
3112 (init_gconf): Do not deal with any GLib file descriptors, xg_select
3113 does that now.
3114
3115 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
3116 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
3117 (scroll_bar_button_cb): Remove.
5ce6e4f4 3118 (create_menus): C++ comments => C comments. Don't bind grab-notify
872870b2
JD
3119 event.
3120 (xg_create_scroll_bar): Don't bind button-press-event and
3121 button-release-event.
3122
3123 * process.c: Include xgselect.h if defined (USE_GTK) ||
3124 defined (HAVE_GCONF).
3125 (wait_reading_process_output): Call xg_select for the same condition.
3126
3127 * xgselect.c (xg_select): New function to better integrate with
3128 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
3129
3130 * xgselect.h: New file, declare xg_select, xgselect_initialize.
3131
3132 * Makefile.in (XOBJ): Add xgselect.o.
3133
62a6e103
AS
31342009-11-21 Andreas Schwab <schwab@linux-m68k.org>
3135
0b5397c2
SM
3136 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
3137 Remove ignored second argument. All callers changed.
62a6e103
AS
3138 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
3139 (RE_STRING_CHAR_AND_LENGTH): Likewise.
3140 * xdisp.c (string_char_and_length): Likewise.
3141
b0ca0f33
DN
31422009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
3143
3144 * xterm.c (x_new_font):
3145 * print.c (print_object):
3146 * cmds.c (Fself_insert_command): Move declarations before statements.
3147
dd5a6279
CY
31482009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
3149
3150 * s/cygwin.h: Remove unneeded linker flags.
3151
4a8e097d
JD
31522009-11-20 Jan Djärv <jan.h.d@swipnet.se>
3153
0d1d0d26
JD
3154 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
3155
3156 * xsettings.h: Declare xsettings_get_system_font.
3157
3158 * xsettings.c (xsettings_get_system_font): New function.
3159 (init_gconf): No use initiating gconf unless we have Xft also.
3160 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
3161 HAVE_GCONF.
3162
4a8e097d
JD
3163 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
3164 add a blank entry so it doesn't collapse into nothing.
3165
8ab1650e
SM
31662009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
3167
3168 * lread.c (Funintern): Comment out last change.
3169
82c602f0
RS
31702009-11-19 Richard Stallman <rms@gnu.org>
3171
3172 * lread.c (Funintern): Error if symbol is t or nil.
3173
87e32266
SM
31742009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
3175
3176 * insdel.c (make_gap_larger): Don't make as many assumptions about the
3177 representation of Lisp integers.
3178 Reported by MJ Chan <mjchan.inbox@gmail.com>.
3179
1b9ac145
AS
31802009-11-17 Andreas Schwab <schwab@linux-m68k.org>
3181
3182 * lisp.h: Remove declaration of Ffont_get_system_font.
3183 * xfns.c: Move include of "xsettings.h".
3184 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
3185
dfb3c4c6
JD
31862009-11-17 Jan Djärv <jan.h.d@swipnet.se>
3187
87e32266
SM
3188 * xsettings.c (something_changedCB, Ffont_get_system_font):
3189 Check use_system_font.
dfb3c4c6
JD
3190 (syms_of_xsettings): DEFVAR font-use-system-font.
3191
9370c1d8
AS
31922009-11-17 Andreas Schwab <schwab@linux-m68k.org>
3193
25fe851a
AS
3194 * xfns.c (x_default_font_parameter): Remove dead assignment.
3195
9370c1d8
AS
3196 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
3197
637fa988
JD
31982009-11-17 Jan Djärv <jan.h.d@swipnet.se>
3199
87e32266 3200 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
21050de1 3201 not have FC_LCD_*. #define them if not there.
a6eb20d8 3202
87e32266 3203 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
a6eb20d8 3204
637fa988
JD
3205 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
3206
3207 * xterm.c (handle_one_xevent): Call xft_settings_event for
3208 ClientMessage, PropertyNotify and DestroyNotify.
3209 (x_term_init): If we have XFT, get DPI from Xft.dpi.
3210 Call xsettings_initialize.
3211
3212 * xftfont.c (xftfont_fix_match): New function.
3213 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
3214 Call xftfont_fix_match after XftFontMatch.
3215
3216 * xfont.c (xfont_driver): Initialize all members.
3217
87e32266
SM
3218 * xfns.c (x_default_font_parameter):
3219 Try font from Ffont_get_system_font.
637fa988
JD
3220 Do not get font from x_default_parameter if we got one from
3221 Ffont_get_system_font.
87e32266 3222 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
637fa988
JD
3223
3224 * w32font.c (w32font_driver): Initialize all members.
3225
3226 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
3227
3228 * lisp.h: Declare syms_of_xsettings.
3229
87e32266
SM
3230 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
3231 Handle CONFIG_CHANGED_EVENT.
637fa988
JD
3232
3233 * ftfont.c (ftfont_filter_properties): New function.
3234
3235 * frame.c (x_set_font): Remove unused variable lval.
3236
87e32266 3237 * font.h (struct font_driver): Add filter_properties.
637fa988
JD
3238
3239 * font.c (font_put_extra): Don't return if val is nil, it means
3240 boolean option is off.
3241 (font_parse_fcname): Collect all extra properties in extra_props
3242 and call filter_properties for all drivers with extra_props and
3243 font as parameter.
87e32266
SM
3244 (font_open_entity): Do not use cache, it does not pick up new
3245 fontconfig settings like hinting.
637fa988
JD
3246 (font_load_for_lface): If spec had a name in it, store it in entity.
3247
a73f9c9d 3248 * emacs.c (main): Call syms_of_xsettings.
637fa988
JD
3249
3250 * config.in: HAVE_GCONF is new.
3251
3252 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
3253 xsettings.o is new.
3254
5a942932
KH
32552009-11-17 Kenichi Handa <handa@m17n.org>
3256
3257 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
3258 back to the default font in case that no suitable font is found.
3259
b7c7a4d1
SM
32602009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
3261
3262 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
3263 Suggested by Chad Brown <yandros@mit.edu>.
3264 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
3265
072f1e39
JD
32662009-11-16 Jan Djärv <jan.h.d@swipnet.se>
3267
3268 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
3269
5d1e70a2
AS
32702009-11-14 Andreas Schwab <schwab@linux-m68k.org>
3271
87e32266 3272 * Makefile.in: Ignore errors from mkdir when creating deps directory.
5d1e70a2 3273
a53cfbe5
JD
32742009-11-14 Jan Djärv <jan.h.d@swipnet.se>
3275
473a99b7
JD
3276 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
3277 has a parent.
3278
a53cfbe5 3279 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
5ce6e4f4 3280 dependency files in deps/. Include those files into Makefile.
a53cfbe5
JD
3281
3282 * config.in: Generated (AUTO_DEPEND).
3283
f04bb9b2
MA
32842009-11-13 Michael Albinus <michael.albinus@gmx.de>
3285
b7c7a4d1 3286 * dbusbind.c (Vdbus_registered_objects_table): Rename from
f04bb9b2
MA
3287 Vdbus_registered_functions_table, because it contains also
3288 properties. Fix docstring.
b7c7a4d1 3289 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
f04bb9b2 3290
8f11f7ec
SM
32912009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
3292
3293 * alloc.c (mark_object): Don't reprocess marked strings.
3294 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
3295 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
3296
8a605fe8
KH
32972009-11-13 Kenichi Handa <handa@m17n.org>
3298
8f11f7ec 3299 * category.c (word_boundary_p): Adjust for the change of the
8a605fe8
KH
3300 semantics of Vword_combining_categories.
3301 (Vword_combining_categories): Describe the slight change of the
3302 semantics.
3303
241c4680
EZ
33042009-11-13 Eli Zaretskii <eliz@gnu.org>
3305
3306 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
3307
3308 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
3309
5d58e44c
SM
33102009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
3311
3312 * xdisp.c (syms_of_xdisp): Fix typo in last change.
3313
5e13f9d3
JB
33142009-11-12 Juanma Barranquero <lekktu@gmail.com>
3315
3316 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
3317
cf54c754
DR
33182009-11-11 David Reitter <david.reitter@gmail.com>
3319
3320 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
3321 variables to fix 2009-11-09 change.
3322
a4ada374
DN
33232009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
3324
91433552
DN
3325 * process.c (ifflag_def): Make flag_sym constant.
3326 (Fnetwork_interface_info): Use a constant pointer.
3327 (ifflag_table):
3328 * xfns.c (cursor_bits):
3329 * xdisp.c (power_letter):
3330 * termcap.c (speeds, esctab):
3331 * sysdep.c (baud_convert):
3332 * keyboard.c (lispy_accent_codes, modifier_names):
3333 * image.c (xbm_format, xpm_format, pbm_format, png_format)
3334 (jpeg_format, tiff_format, gif_format, svg_format)
3335 (interlace_start, interlace_increment, gs_format):
3336 * gtkutil.c (separator_names):
3337 * fringe.c (swap_nibble):
3338 * fns.c (base64_value_to_char, base64_char_to_value):
3339 * fileio.c (make_temp_name_tbl):
3340 * coding.c (suffixes): Make constant.
3341
f4265f6c
DN
3342 * frame.c (make_initial_frame):
3343 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
3344 build_string.
3345 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
3346
04420943
DN
3347 * s/freebsd.h:
3348 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
3349
0a5d24ae
DN
3350 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
3351 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
3352
a4ada374
DN
3353 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
3354 * xterm.c (syms_of_xterm):
3355 * xfaces.c (syms_of_xfaces):
3356 * xdisp.c (syms_of_xdisp):
3357 * lread.c (syms_of_lread):
3358 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
3359 build_string.
91433552 3360
a4ada374
DN
3361 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
3362
af98fc7f
SM
33632009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
3364
8ab1650e 3365 * fns.c (Fplist_get): Merge the active and the commented out code.
af98fc7f 3366
e90292a9
JD
33672009-11-10 Jan Djärv <jan.h.d@swipnet.se>
3368
3369 * keyboard.h: Declare timer_check.
3370
3371 * keyboard.c (timer_check_2): New function that does what the old
3372 timer_check did.
3373 (timer_check): Call timer_check_2 until -1 or a non-zero time is
3374 returned, i.e. don't return -1 with timers pending.
3375
3376 * process.c: Remove extern declaration of timer_check.
3377
3378 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
3379 even if timer_check returned -1.
3380
af98fc7f
SM
3381 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
3382 xg_dialog_data.
e90292a9
JD
3383 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
3384 the event loop.
3385 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
3386 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
3387 Destroy the dialog after xg_dialog_run.
3388
045b83c0
SM
33892009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
3390
3391 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
3392
1fb99a3a
JD
33932009-11-10 Jan Djärv <jan.h.d@swipnet.se>
3394
3395 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
3396
04e452cb
JB
33972009-11-09 Juanma Barranquero <lekktu@gmail.com>
3398
3399 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
3400
ef7417fd
SM
34012009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
3402
3403 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
3404 w32menu.c, and nsmenu.m.
3405 Simplify the obsolete case where position is nil.
3406 (cleanup_popup_menu): New function, moved from nsmenu.m.
3407 (struct skp): Remove slot `notreal'.
3408 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
3409 adjust callers.
3410 (single_menu_item): Adjust call to parse_menu_item.
3411 (syms_of_menu): Defsubr x-popup-menu.
3412 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
3413 (keymap_panes): Don't export any more.
3414 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
3415 (xmenu_show): Declare.
3416 * keyboard.c (parse_menu_item): Remove arg `notreal'.
3417 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
3418 * keyboard.h (parse_menu_item): Update declaration.
3419 * xmenu.c (Fx_popup_menu): Remove.
3420 (syms_of_xmenu): Don't defsubr x-popup-menu.
3421 * w32menu.c (Fx_popup_menu): Remove.
3422 (syms_of_w32menu): Don't defsubr x-popup-menu.
3423 * nsmenu.m (cleanup_popup_menu): Remove.
3424 (ns_menu_show): Rename from ns_popup_menu and remove all the code
3425 moved to menu.c's Fx_popup_menu.
3426 (Fx_popup_menu): Remove.
3427 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
3428 menu_items (it's done in menu.c already).
3429
424d6179
SM
34302009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
3431
3432 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
3433 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
3434
c0df13a6 34352009-11-08 Chong Yidong <cyd@stupidchicken.com>
a20903d0
CY
3436
3437 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
c0df13a6 3438 xmenu_show. Hide any tooltip before opening a menu.
a20903d0
CY
3439 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
3440 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
3441
2de9f71c
SM
34422009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
3443
3444 Let integers use up 2 tags to give them one extra bit and thus double
3445 their range.
3446 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
3447 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
3448 New macros.
3449 (enum Lisp_Type): Use them. Give explicit values.
3450 (Lisp_Type_Limit): Remove.
3451 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
3452 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
3453 Pay attention to USE_2_TAGS_FOR_INTS.
3454 (INTEGERP): Use LISP_INT_TAG_P.
3455 * fns.c (internal_equal): Simplify the default case.
3456 (sxhash): Use case_Lisp_Int.
3457 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
3458 any more.
3459 (Ftype_of): Use case_Lisp_Int.
3460 (store_symval_forwarding): Take into account the fact that Ints can
3461 now have more than one tag.
3462 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
3463 buffer_slot_type_mismatch):
3464 * xfaces.c (face_attr_equal_p):
3465 * print.c (print_object):
3466 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
3467 Use case_Lisp_Int.
3468
323637a2
EZ
34692009-11-06 Eli Zaretskii <eliz@gnu.org>
3470
7ac65b38
EZ
3471 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
3472
323637a2
EZ
3473 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
3474 warning.
3475
e511451f
JD
34762009-11-06 Jan Djärv <jan.h.d@swipnet.se>
3477
3478 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
3479
3480 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
3481
3482 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
3483 ButtonPressRelease and MotionNotify (bug#4870).
3484
5e2327cf
DN
34852009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
3486
5adc433e
DN
3487 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
3488
d67b4f80
DN
3489 * xterm.c (syms_of_xterm):
3490 * xselect.c (syms_of_xselect):
3491 * xmenu.c (syms_of_xmenu):
3492 * xfns.c (syms_of_xfns):
3493 * xfaces.c (syms_of_xfaces):
3494 * xdisp.c (syms_of_xdisp):
3495 * window.c (syms_of_window):
3496 * w32fns.c (syms_of_w32fns):
3497 * undo.c (syms_of_undo):
3498 * textprop.c (syms_of_textprop):
3499 * terminal.c (syms_of_terminal):
3500 * syntax.c (syms_of_syntax):
3501 * sound.c (syms_of_sound):
3502 * search.c (syms_of_search):
3503 * print.c (syms_of_print):
3504 * minibuf.c (syms_of_minibuf):
3505 * macros.c (syms_of_macros):
3506 * keymap.c (syms_of_keymap, initial_define_key)
3507 (initial_define_lispy_key):
3508 * keyboard.c (syms_of_keyboard):
3509 * insdel.c (syms_of_insdel):
3510 * image.c (syms_of_image):
3511 * fringe.c (syms_of_fringe):
3512 * frame.c (syms_of_frame):
3513 * fontset.c (syms_of_fontset):
3514 * fns.c (syms_of_fns):
3515 * fns.c (syms_of_fns):
3516 * fileio.c (syms_of_fileio):
3517 * fileio.c (syms_of_fileio):
3518 * eval.c (syms_of_eval):
3519 * doc.c (syms_of_doc):
3520 * dispnew.c (syms_of_display):
3521 * dired.c (syms_of_dired):
3522 * dbusbind.c (syms_of_dbusbind):
3523 * data.c (syms_of_data):
3524 * composite.c (syms_of_composite):
3525 * coding.c (syms_of_coding):
3526 * cmds.c (syms_of_cmds):
3527 * charset.c (define_charset_internal, syms_of_character):
3528 * ccl.c (syms_of_ccl):
3529 * category.c (syms_of_category, init_category_once):
3530 * casetab.c (syms_of_casetab):
3531 * casefiddle.c (syms_of_casefiddle):
3532 * callint.c (syms_of_callint):
3533 * bytecode.c (syms_of_bytecode):
3534 * buffer.c (keys_of_buffer, syms_of_buffer):
3535 * alloc.c (syms_of_alloc):
3536 * process.c (syms_of_process, init_process):
3537 * lread.c (syms_of_lread, init_obarray):
3538 * font.c (build_style_table):
3539 * emacs.c (syms_of_emacs, main): Replace calls to intern with
3540 intern_c_string, calls to make_pure_string with
3541 make_pure_c_string. Use pure_cons instead of Fcons.
3542
5e2327cf
DN
3543 * process.c (socket_options): Make it const.
3544 (set_socket_option, init_process): Use a const pointer.
3545
3546 * lread.c (intern_c_string): New function.
3547 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
3548 (defvar_int): Uset it. Make the name const char*.
3549
3550 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
3551 (defvar_int): Update prototypes.
3552 (DEFUN, EXFUN): Support for prototypes is now required.
3553 (intern_c_string): New prototype.
3554 (struct Lisp_Subr): Make symbol_name constant.
3555
3556 * font.c (struct table_entry): Remove unused member. Make NAMES
3557 constant.
3558 (weight_table, slant_table, width_table): Make constant.
3559
3560 * emacs.c (struct standard_args): Make name and longname constant.
3561
3562 * character.h (DEFSYM): Use intern_c_string.
3563
a56eaaef
DN
35642009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
3565
3566 * alloc.c (make_pure_c_string): New function.
3567
3568 * eval.c (Fautoload): Purecopy all arguments.
3569
f6a07420
KH
35702009-11-05 Kenichi Handa <handa@m17n.org>
3571
3572 * fileio.c (Finsert_file_contents): Be sure set coding-system of
3573 the buffer in case of replace.
3574
5d28d4b1
DN
35752009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
3576
3577 * puresize.h (BASE_PURESIZE): Increase to 1620000.
3578
b349d111
SM
35792009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
3580
d528b1ce
SM
3581 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
3582 when applicable (bug#4851).
3583
b349d111
SM
3584 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
3585 (P_): Support for prototypes is now required.
3586
c38eb027
CY
35872009-10-31 Chong Yidong <cyd@stupidchicken.com>
3588
3589 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
3590 (Bug#4827).
3591
0405f8d9
EZ
35922009-10-30 Eli Zaretskii <eliz@gnu.org>
3593
d528b1ce 3594 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
0405f8d9 3595
ca0a881a
DN
35962009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
3597
3598 * puresize.h (BASE_PURESIZE): Increase to 1470000.
3599
d528b1ce
SM
3600 * lread.c (Fload): Purecopy the file name when building
3601 Vpreloaded_file_list.
ca0a881a 3602
47e0e0e4
JR
36032009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
3604
3605 * w32fns.c (syms_of_w32fns): Change default value of
3606 w32-scroll-lock-modifier to nil. (Bug#2827)
3607
057bce6f
JB
36082009-10-26 Juanma Barranquero <lekktu@gmail.com>
3609
782a943e 3610 * minibuf.c (Fall_completions): Fix typos in docstring.
057bce6f 3611
242bc74c
AS
36122009-10-26 Andreas Schwab <schwab@redhat.com>
3613
3614 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
3615
522d013a
JB
36162009-10-26 Juanma Barranquero <lekktu@gmail.com>
3617
3618 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
3619 For delta < 0, skip check that only makes sense when the mini-window
3620 is going to be enlarged. (Bug#4534)
3621
18060980
CY
36222009-10-25 Chong Yidong <cyd@stupidchicken.com>
3623
3624 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
3625 string in menu maps (Bug#4471).
3626
fec8f0fe
CY
36272009-10-24 Chong Yidong <cyd@stupidchicken.com>
3628
3629 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
3630 FRAME_NS_VIEW on terminal frames (Bug#4765).
3631
10d66ec0
AS
36322009-10-24 Andreas Schwab <schwab@linux-m68k.org>
3633
1cae01f7
AS
3634 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
3635 DBUS_TYPE_UINTnn separately to get proper sign extension.
3636
58a12889
AS
3637 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
3638 can properly handle unsigned types.
d528b1ce 3639 (make_uid, make_gid): Remove.
58a12889 3640
987c9327
AS
3641 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
3642 types again.
3643
522d013a 3644 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10d66ec0
AS
3645 (system_process_attributes): Likewise.
3646
905a9ed3
DN
36472009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
3648
3649 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
3650
3651 * eval.c (Fautoload): Purecopy the filename. Simplify.
3652
3653 * category.c (Fdefine_category): Purecopy docstring.
3654
a599b3e8
AS
36552009-10-23 Andreas Schwab <schwab@linux-m68k.org>
3656
7b792fc9
AS
3657 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
3658
a599b3e8
AS
3659 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
3660
b35ac83e
CY
36612009-10-23 Chong Yidong <cyd@stupidchicken.com>
3662
3663 * window.c (Fwindow_edges, Fwindow_pixel_edges)
3664 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
3665 (Bug#4775).
3666
e8903e00
SM
36672009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
3668
3669 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
3670 (init_fileio_once):
3671 * lisp.h (init_fileio_once): Remove.
3672 * emacs.c (main): Don't call init_fileio_once.
3673
8f43cbf3
DN
36742009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
3675
3676 * puresize.h (BASE_PURESIZE): Increase to 1430000.
3677
26898943
AS
36782009-10-21 Andreas Schwab <schwab@linux-m68k.org>
3679
3680 * doprnt.c (doprnt): Fix overflow check.
3681
5c646d5a
JD
36822009-10-21 Jan Djärv <jan.h.d@swipnet.se>
3683
3132a7ea
JD
3684 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
3685
5c646d5a
JD
3686 * xterm.h (x_wait_for_event): Declare it.
3687
3688 * xterm.c (pending_event_wait): New variable.
3689 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
3690 see pending_event_wait.eventtype.
3691 (handle_one_xevent): Don't change gravity when parent changes.
d528b1ce
SM
3692 (x_new_font): Call change_frame_size with new rows/columns before we
3693 try to resize the frame.
5c646d5a 3694 (x_wait_for_event): New function.
d528b1ce
SM
3695 (x_set_window_size_1): Don't change gravity unless change_gravity
3696 is set.
5c646d5a
JD
3697 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
3698 don't change frame size, instead wait for the ConfigureNotify.
3699 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
3700 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
3701 (x_initialize): Initialize pending_event_wait.
3702
3703 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
3704 size.
3705
3706 * widget.c (EmacsFrameSetValues): Add comment.
3707 (EmacsFrameSetCharSize): Just call x_set_window_size.
3708
3709 * gtkutil.c (xg_frame_set_char_size): Flush events and call
3710 x_wait_for_event.
d528b1ce 3711 (flush_and_sync): Remove again.
5c646d5a
JD
3712 (xg_get_font_name): Suggest monospace if no previous font is known.
3713
e9c1637d
SM
37142009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
3715
3716 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
46be764e 3717 8th bit, since that only made sense in the ASCII world (bug#4751).
e9c1637d 3718
5a72cccb
YM
37192009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3720
3721 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
3722 processing pending events when event is filtered for input method.
ab04798f 3723 (Bug#3681)
5a72cccb 3724
2629aa37
JB
37252009-10-20 Juanma Barranquero <lekktu@gmail.com>
3726
3727 * fns.c: Add #endif accidentally removed in previous change.
3728
c3417a74
DN
37292009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
3730
3731 * fns.c: Remove code for unsupported system: MAC_OS.
3732 * image.c: Likewise. Include setjmp.h.
3733
9685cef2
JD
37342009-10-19 Jan Djärv <jan.h.d@swipnet.se>
3735
3736 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
3737 pixel -1 (bug #4742).
3738
d7306fe6
DN
37392009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
3740
019d2c4c
DN
3741 * process.c (create_pty): Remove conditionals for no longer
3742 supported systems: UNIPLUS and RTU.
3743
ee6bacd4
DN
3744 * xterm.c:
3745 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
3746
d7306fe6
DN
3747 * alloc.c: Do not define struct catchtag.
3748 * eval.c: Move struct catchtag definition ...
3749 * lisp.h: ... here.
3750
3751 * image.c: Move png.h #include earlier to avoid warnings.
3752
3753 * xterm.c:
3754 * xsmfns.c:
3755 * xselect.c:
3756 * xrdb.c:
3757 * xmenu.c:
3758 * xftfont.c:
3759 * xfont.c:
3760 * xfns.c:
3761 * xfaces.c:
3762 * xdisp.c:
3763 * window.c:
3764 * widget.c:
3765 * w32xfns.c:
3766 * w32uniscribe.c:
3767 * w32term.c:
3768 * w32select.c:
3769 * w32reg.c:
3770 * w32proc.c:
3771 * w32menu.c:
3772 * w32inevt.c:
3773 * w32heap.c:
3774 * w32font.c:
3775 * w32fns.c:
3776 * w32console.c:
3777 * w32.c:
3778 * w16select.c:
3779 * vm-limit.c:
3780 * unexsol.c:
3781 * unexec.c:
3782 * unexcw.c:
3783 * unexaix.c:
3784 * undo.c:
3785 * tparam.c:
3786 * textprop.c:
3787 * terminfo.c:
3788 * terminal.c:
3789 * termcap.c:
3790 * term.c:
3791 * syntax.c:
3792 * sound.c:
3793 * sheap.c:
3794 * search.c:
3795 * scroll.c:
3796 * region-cache.c:
3797 * regex.c:
3798 * ralloc.c:
3799 * process.c:
3800 * print.c:
b024548b
DN
3801 * nsterm.m:
3802 * nsselect.m:
3803 * nsmenu.m:
3804 * nsimage.m:
3805 * nsfont.m:
3806 * nsfns.m:
d7306fe6
DN
3807 * msdos.c:
3808 * minibuf.c:
3809 * menu.c:
3810 * marker.c:
3811 * macros.c:
3812 * keymap.c:
3813 * keyboard.c:
3814 * intervals.c:
3815 * insdel.c:
3816 * indent.c:
3817 * gtkutil.c:
3818 * ftxfont.c:
3819 * ftfont.c:
3820 * fringe.c:
3821 * frame.c:
3822 * fontset.c:
3823 * font.c:
3824 * fns.c:
3825 * floatfns.c:
3826 * filelock.c:
3827 * fileio.c:
3828 * emacs.c:
3829 * editfns.c:
3830 * dosfns.c:
3831 * doprnt.c:
3832 * doc.c:
3833 * dispnew.c:
3834 * dired.c:
3835 * dbusbind.c:
3836 * data.c:
3837 * composite.c:
3838 * coding.c:
3839 * cmds.c:
3840 * cm.c:
3841 * chartab.c:
3842 * charset.c:
3843 * character.c:
3844 * ccl.c:
3845 * category.c:
3846 * casetab.c:
3847 * casefiddle.c:
3848 * callproc.c:
3849 * callint.c:
3850 * bytecode.c:
3851 * buffer.c:
3852 * atimer.c: Include setjmp.h. (Bug#4643)
3853
fd5f21e6
SM
38542009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
3855
4c0354d7
SM
3856 Remove leftover table unibyte_to_multibyte_table.
3857 * character.c (unibyte_to_multibyte_table): Remove.
3858 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
3859 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
3860 * character.h (UNIBYTE_TO_CHAR): New macro.
3861 (MAKE_CHAR_MULTIBYTE): Use it.
3862 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
3863 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
3864 (message_dolog, set_message_1):
3865 * search.c (Freplace_match):
3866 * editfns.c (Fcompare_buffer_substrings):
3867 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
3868 (concat):
3869 * insdel.c (copy_text, count_size_as_multibyte):
3870 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
3871 * term.c (produce_glyphs):
3872 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
3873 * regex.c (RE_CHAR_TO_MULTIBYTE):
3874 * cmds.c (internal_self_insert):
3875 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
3876
fd5f21e6
SM
3877 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
3878
4418646e
DN
38792009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
3880
3881 * puresize.h (BASE_PURESIZE): Increase to 1310000.
3882
35f5c1d2
JB
38832009-10-16 Juanma Barranquero <lekktu@gmail.com>
3884
3885 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
3886
a0cd8f6b
AR
38872009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
3888
3889 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
3890 still needed under Tiger.
3891
3892 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
3893
3894 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
3895 __Apple__.
3896
3897 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
3898
01a8d3fa
KH
38992009-10-15 Kenichi Handa <handa@m17n.org>
3900
3901 * print.c (print_object): Escape a symbol like "2E10" too.
3902
bf6c75c9 39032009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6e4780c5
JB
3904
3905 Cleanups and changes for 64-bit compile under Snow Leopard.
3906 Based on suggestions by Erik Charlebois.
bf6c75c9
AR
3907
3908 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
3909
c5959062 3910 * nsfont.m (ns_char_width): Replace deprecated call.
bf6c75c9
AR
3911 (ns_findfonts, nsfont_list_family): Use long format in printf, and
3912 cast argument.
3913 (nsfont_open): Use ns_char_width() everywhere.
d528b1ce 3914 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
bf6c75c9
AR
3915
3916 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
3917
3918 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
3919 where appropriate.
3920
3921 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
3922 where appropriate.
6e4780c5
JB
3923 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
3924 Use stringWithUTF8String.
bf6c75c9
AR
3925 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
3926
6e4780c5
JB
3927 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
3928 Add formal protocol mention to inheritance.
bf6c75c9
AR
3929 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
3930
6e4780c5
JB
3931 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
3932 Fix printf format.
bf6c75c9
AR
3933 (ns_query_color): Use CGFloat where appropriate.
3934 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
ac146f82 3935 (EmacsScroller-mouseDown:): Use long format in printf, and cast
bf6c75c9
AR
3936 argument.
3937
3d87f118
AR
3938 * config.in (NS_HAVE_NSINTEGER): Drop.
3939
a95c8102
AR
3940 * dbusbind.c (dbus-method-return-internal)
3941 (dbus-method-error-internal): Use long format in printf, and cast
3942 argument.
3943
3944 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
3945 in printf, and cast argument.
3946
6873acca 3947 * process.c (list_processes_1): Use long format in printf, and
a95c8102
AR
3948 cast argument.
3949
9ec6f100
GM
39502009-10-11 Glenn Morris <rgm@gnu.org>
3951
3952 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
3953
5be883cd
JD
39542009-10-08 Jan Djärv <jan.h.d@swipnet.se>
3955
3956 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
3957 menu bar with a small width so it doesn't enlarge the frame.
3958
d7a39b51
JB
39592009-10-08 Juanma Barranquero <lekktu@gmail.com>
3960
3961 * fontset.c (Fset_fontset_font): Fix typos in error messages.
3962
0c2b6f8e
GM
39632009-10-06 Glenn Morris <rgm@gnu.org>
3964
3965 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
3966 SOME_MACHINE_LISP (this enters indirectly via DOC).
3967
e02131a2
EZ
39682009-10-05 Eli Zaretskii <eliz@gnu.org>
3969
3970 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
3971
b4744254
EZ
39722009-10-04 Eli Zaretskii <eliz@gnu.org>
3973
3974 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
3975 Doc fix.
3976
dbf64827
JB
39772009-10-03 Martin Rudalics <rudalics@gmx.at>
3978
3979 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
3980
e9a0aef8
MA
39812009-10-02 Michael Albinus <michael.albinus@gmx.de>
3982
d528b1ce 3983 * lisp.h (Qdelete_directory_internal): Remove, because it is not
e9a0aef8
MA
3984 used anymore outside fileio.c.
3985
3986 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
3987
64eb2b56
JB
39882009-10-01 Juanma Barranquero <lekktu@gmail.com>
3989
3990 * lisp.h (Qdelete_directory_internal):
3991 Declare, instead of Qdelete_directory.
3992
3993 * w32fns.c (Fsystem_move_file_to_trash): Use it.
3994
9d28c33e
SM
39952009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
3996
3997 * eval.c (Fcalled_interactively_p): Add `kind' argument.
3998
9d8f3bd9
MA
39992009-10-01 Michael Albinus <michael.albinus@gmx.de>
4000
9d28c33e 4001 * fileio.c (Fdelete_directory_internal): Rename from
9d8f3bd9
MA
4002 Fdelete_directory. It is not a command anymore. It has no file
4003 name handler.
4004
9694740b
SM
40052009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
4006
4007 * xdisp.c (get_next_display_element): Use an enum in last change.
4008
748e162f
KH
40092009-09-28 Kenichi Handa <handa@m17n.org>
4010
9694740b 4011 * xdisp.c (get_next_display_element): Pay attention to
748e162f
KH
4012 unibyte_display_via_language_environment in handling
4013 Vnobreak_char_display.
4014
17efd58d
AR
40152009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
4016
4017 * nsterm.h (ns_app_name): New extern variable.
4018
4019 * nsterm.m (ns_app_name): New variable.
4020 (ns_term_init): Set and use it.
4021 (ns_term_shutdown): Use it.
4022
4023 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
4024 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
4025
4026 * nsfns.m (ns_set_name_iconic, ns_set_name)
4027 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
4028 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
4029
9694740b
SM
4030 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
4031 Remove double-casting in client_data comparison.
31c2d412 4032
3208cb35
YM
40332009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4034
4035 * keyboard.c (make_lispy_event): Remember last wheel direction.
4036 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
4037
b7d552d6
GM
40382009-09-26 Glenn Morris <rgm@gnu.org>
4039
4040 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
4041 internal.elc. Add term/pc-win.elc.
4042 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
4043 term/x-win.elc.
4044 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
4045 term/w32-win.elc.
4046 (NS_SUPPORT): New.
4047 (lisp): Add NS_SUPPORT.
4048 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
4049
4ff670a8
DR
40502009-09-25 David Reitter <david.reitter@gmail.com>
4051
4052 * nsmenu.m (EmacsMenu-clear): Recognize application menu
4053 on Mac OS X 10.6+ (bug#4513).
4054
feabfb6c
JB
40552009-09-24 Juanma Barranquero <lekktu@gmail.com>
4056
4057 * frame.c (xrdb_get_resource): Return nil for empty string resources;
d528b1ce
SM
4058 some parts of Emacs code (like font selection) don't grok them.
4059 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
feabfb6c 4060
de59072a
AS
40612009-09-24 Andreas Schwab <schwab@redhat.com>
4062
4063 * coding.c (decode_coding_iso_2022): Fix operator precedence.
4064
a489517b
JB
40652009-09-24 Juanma Barranquero <lekktu@gmail.com>
4066
4067 * dired.c (Fdirectory_files): Fix typo in docstring.
4068
0592970c
AR
40692009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
4070
4071 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
4072 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
4073 (EmacsScroller-setPosition:portion:whole:): Remove -display call
4074 under GNUstep.
4075 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
4076
4077 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
4078 glyph advancement.
4079
48e8a88b
AR
40802009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
4081
4082 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
b3aac06a 4083 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
48e8a88b
AR
4084
4085 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
4086 deleted (bug #4492).
4087
e14f0a78
AR
4088 * nsfont.m (Vns_reg_to_script): New lisp variable.
4089 (syms_of_nsfont): Declare it.
4090 (ns_registry_to_script): New function.
4091 (ns_get_req_script): Call it.
4092 (ns_findfonts): Don't give up on non-unicode registry.
4093
4094 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
4095
5b650faa
SM
40962009-09-20 Tom Tromey <tromey@redhat.com>
4097
4098 * eval.c (find_handler_clause): Make stack-trace-on-error work in
4099 batch mode (bug#4228).
4100
a489517b 41012009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
0bae4e09
AR
4102
4103 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
a489517b 4104 carefully. (Bug #4339)
0bae4e09 4105
fcfe06f3
CY
41062009-09-18 Chong Yidong <cyd@stupidchicken.com>
4107
d798ba87 4108 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
fcfe06f3 4109
31642728
AR
41102009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
4111
4112 * emacs.c (inhibit_x_resources): Update doc string for NS.
4113 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
cff11156 4114 legacy code for -NXHost. Fix error printf in daemon case.
31642728
AR
4115
4116 * nsterm.h (ns_no_defaults): Remove.
4117
4118 * nsterm.m (ns_no_defaults): Remove.
4119 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
4120 (ns_use_qd_smoothing): Remove legacy variable.
6516d10a
AR
4121 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
4122 don't update the NSWindow itself.
4123 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
a489517b 4124 state detection and store user rect ourselves. (Bug #3581)
31642728
AR
4125
4126 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
4127 ns_use_qd_smoothing.
4128
4129 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
4130 platform versions. Drop support for emacs-20-style face specs.
8aad0aea 4131 (x-close-connection): Drop PSFlush() under OS X.
a489517b 4132 (x-focus-frame): Activate the app first. (Bug #4180)
31642728 4133
8686ac71
JB
41342009-09-17 Juanma Barranquero <lekktu@gmail.com>
4135
4136 * emacs.c (inhibit_x_resources): New variable.
4137 (main) [HAVE_NS]: Don't process --quick command line option.
4138 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
4139
4140 * lisp.h (inhibit_x_resources): Declare it extern.
4141
4142 * w32reg.c (x_get_string_resource):
4143 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
4144
e227ba05
EZ
41452009-09-17 Eli Zaretskii <eliz@gnu.org>
4146
362654a6
JB
4147 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
4148 Add lisp/term/internal.elc.
e227ba05 4149
742d40e8
SM
41502009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
4151
4152 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
4153 (bug#4461).
4154
005bd5a2
DN
41552009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
4156
4157 * puresize.h (BASE_PURESIZE): Increase to 1290000.
4158
4159 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
4160 (OBJECTS_MACHINE): Remove, unused.
4161
f9af9719
SM
41622009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
4163
4164 * frame.c (x_get_resource_string): Remove unused.
4165
0307c7d2
JD
41662009-09-15 Jan Djärv <jan.h.d@swipnet.se>
4167
4168 * xterm.c (x_new_font): Call change_frame_size before calling
4169 x_set_window_size, in case frame size won't change.
4170
4171 * frame.c (x_set_font): Remove dead code.
4172
428b13d6
SM
41732009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
4174
4175 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
4176
5766c380
SM
41772009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
4178
4179 * lread.c (Fload): Don't output a message after loading an obsolete
4180 package any more (done in Lisp now).
4181
2fd0161b
CY
41822009-09-12 Chong Yidong <cyd@stupidchicken.com>
4183
4184 * fns.c (syms_of_fns): Doc fix (Bug#4227).
4185
bc5e75b6
SM
41862009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
4187
4188 * keymap.c (Fwhere_is_internal): Use nconc2.
4189
c31c985e
AM
41902009-09-11 Alan Mackenzie <acm@muc.de>
4191
4192 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
4193 batch mode.
4194
78012bd2
AS
41952009-09-11 Andreas Schwab <schwab@linux-m68k.org>
4196
4197 * xdisp.c (display_mode_element): Detect cycles.
4198
9d889332
SM
41992009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
4200
4201 * keymap.c (where_is_internal): Don't erroneously return nil right after
4202 filling the cache.
4203 (where_is_internal_1): Fix up typo.
4204
7ab5d780
GM
42052009-09-11 Glenn Morris <rgm@gnu.org>
4206
4207 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
4208 share a common doc-string.
4209
5238a749
SM
42102009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
4211
66d77eda
SM
4212 * keymap.c (get_keymap): Return the actual keymap symbol rather than
4213 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
4214
5238a749
SM
4215 * keymap.c (QCadvertised_binding): New constant.
4216 (syms_of_keymap): Initialize it.
4217 (Fwhere_is_internal): Try and use bindings from :advertised-binding
4218 if applicable.
4219
19f48442
SM
42202009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
4221
50d4ba39
SM
4222 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
4223 (parse_menu_item): Streamline since bindings are recomputed all the
4224 time anyway. Don't bother checking Vdefine_key_rebound_commands any
4225 more and don't support lmenu's menu-alias any more either.
4226
a88a5372
SM
4227 * keymap.c (where_is_internal_data): Make noindirect a boolean.
4228 (where_is_internal): Strip it down to only traverse the keymaps.
4229 Move the cache handling from Fwhere_is_internal to here.
4230 (Fwhere_is_internal): Move the handling of remapping and the choice of
4231 the best binding from where_is_internal to here.
4232 Unify the cached/noncached paths, so remapping is also handled
4233 correctly when the cache is used, and so the cache can be used to
4234 speed up remap-handling when applicable.
4235 Give preference to non-remapped bindings.
4236 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
4237 non-remapped bindings.
4238 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
4239 command remapping.
4240
19f48442
SM
4241 * xdisp.c (display_mode_element): Move list length limit from 50 to
4242 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
4243
599498c3 42442009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
c1905ca3
AR
4245
4246 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
4247
f9b7b5ac
SM
42482009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
4249
a53af587
JB
4250 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
4251 (Bug#4334)
4252
f9b7b5ac
SM
4253 * keymap.c (where_is_internal): Filter out shadowed remappings.
4254 Assume that where_is_internal returns unshadowed bindings to simplify
4255 the code and get rid of the gotos. Use ASIZE.
4256
04f4b72d
JD
42572009-09-04 Jan Djärv <jan.h.d@swipnet.se>
4258
4da146f2
JD
4259 * xterm.c (x_focus_changed): If we get a focusout and pointer
4260 is invisible, make it visible.
4261
04f4b72d
JD
4262 * xterm.h: Remove condition for declaration of
4263 x_*_window_to_frame.
4264
7cef7ce3
SM
42652009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
4266
4267 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
4268 initial terminal as well.
4269
a54fa5b7
JD
42702009-09-02 Jan Djärv <jan.h.d@swipnet.se>
4271
4272 * xterm.h: Rename x_non_menubar_window_to_frame to
7cef7ce3 4273 x_menubar_window_to_frame.
a54fa5b7 4274
50426a04 4275 * xterm.c: Remove declarations also in xterm.h.
a54fa5b7
JD
4276 (XTmouse_position): Do not return valid positions
4277 for clicks in the menubar and the toolbar for Gtk+.
4278
4279 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
4280 if the widget for the event has the same top level as a frame,
4281 return the frame.
4282 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
4283 internal windows, bug #4122.
4284 (x_non_menubar_window_to_frame): Remove.
4285
5a021dd0
GM
42862009-09-02 Glenn Morris <rgm@gnu.org>
4287
4288 * buffer.c (default-major-mode): Move most of the doc from here...
4289 (major-mode): ... to here.
4290
548fe2f3
NR
42912009-08-30 Nick Roberts <nickrob@snap.net.nz>
4292
4293 * process.c (wait_reading_process_output): Keep the descriptor
4294 when pty is used by a non-child process, e.g., in I/O buffer of
4295 GDB this allows inferior to be restarted.
4296
e0840eef
EZ
42972009-08-29 Eli Zaretskii <eliz@gnu.org>
4298
4299 * xdisp.c (redisplay_internal): Remove redundant test and collapse
4300 both branches into one.
4301
82e98df4
SM
43022009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
4303
4304 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
4305 (main): Use enable-multibyte-characters rather than
4306 default-enable-multibyte-characters. Output a warning message when
4307 running a unibyte session.
4308
890617cb
YM
43092009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4310
4311 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
4312 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
4313 (copy_data_segment): Also copy __program_vars section.
4314 (copy_dyld_info) [LC_DYLD_INFO]: New function.
4315 (dump_it) [LC_DYLD_INFO]: Use it.
4316
4317 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
4318
e7adeadc
EZ
43192009-08-28 Eli Zaretskii <eliz@gnu.org>
4320
4321 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
4322 $(SRC)/buildobj.h.
4323 (buildobj.h): Renamed from $(SRC)/buildobj.h.
4324 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
4325 $(SRC)/buildobj.h.
4326 (clean): Add buildobj.h.
4327
3ed8bbdc
TZ
43282009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
4329
4330 * print.c (print_object): Set escapeflag to 1 when printing
4331 hashtable keys and values.
4332
155a6764
SM
43332009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
4334
4335 * lread.c (read_integer): Use doubles (and potentially return a float
4336 number) as we do in string-to-number.
4337 (read1): Use strtol to read integers, signal errors on strtol's
4338 overflow and use floats if strtol's output is too large for
4339 Elisp integers.
4340
877610de
EZ
43412009-08-27 Eli Zaretskii <eliz@gnu.org>
4342
4343 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
4344 (make-buildobj-SH): Fix last change.
4345 (SRC): Move to before where it's first used.
4346
ef73e7be
KH
43472009-08-27 Kenichi Handa <handa@m17n.org>
4348
550c8289
KH
4349 * process.c (send_process): Use encode_coding_object instead of
4350 encode_coding_string to perform eol-conversion even if the string
4351 is unibyte.
4352
60afa08d
KH
4353 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
4354 character.
4355
ef73e7be 4356 * cmds.c (Fself_insert_command): Avoid unnecessay
8a0b709a 4357 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
ef73e7be 4358
7b3a82d7
DN
43592009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
4360
5654bf63
DN
4361 * callproc.c (Fcall_process): Remove always true #if.
4362
7b3a82d7
DN
4363 * lisp.h: Replace #if 0 code for checking with text pointing to
4364 the --enable-checking configure flag.
4365
4366 * emacs.c (main): Mention the --enable-profiling configure flag
4367 instead of using CFLAGS.
4368
878bde49
KR
43692009-08-26 Ken Raeburn <raeburn@raeburn.org>
4370
4371 * Makefile.in (buildobj.h): New target.
4372 (doc.o): Depend on it.
4373 (temacs${EXEEXT}): Don't generate buildobj.lst.
4374 (mostlyclean): Delete buildobj.h, not buildobj.lst.
4375 * makefile.w32-in ($(SRC)/buildobj.h): New target.
4376 ($(BLD)/doc.$(O)): Depend on it.
4377 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
4378 provided by Eli Zaretskii.)
4379 ($(TEMACS)): Don't generate buildobj.lst.
4380 * doc.c: Include buildobj.h.
4381 (buildobj): New static variable.
4382 (Fsnarf_documentation): Use it, instead of opening and reading
4383 buildobj.lst.
4384
1574224c
MA
43852009-08-25 Michael Albinus <michael.albinus@gmx.de>
4386
4387 * dbusbind.c (Fdbus_call_method)
4388 (Fdbus_call_method_asynchronously): Use English numeric format for
4389 timeout values in doc string.
4390
d9da2f45
KH
43912009-08-25 Kenichi Handa <handa@m17n.org>
4392
ef73e7be
KH
4393 * alloc.c (mark_char_table): New function.
4394 (mark_object): Use mark_char_table for a char-table.
4395
d9da2f45
KH
4396 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
4397 (CHAR_TABLE_REF): Use it.
4398
c8edcc01
KR
43992009-08-23 Ken Raeburn <raeburn@raeburn.org>
4400
4401 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
4402 before invoking the newly build emacs to check for load-path
4403 shadowing.
4404
7763401b
GM
44052009-08-22 Glenn Morris <rgm@gnu.org>
4406
4407 * Makefile.in (bootstrap_exe): New variable.
4408 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
4409 Use ${bootstrap_exe}.
4410
729eadda
EZ
44112009-08-22 Eli Zaretskii <eliz@gnu.org>
4412
4413 * coding.h (encode_coding_string): Don't encode unibyte strings.
4414 (Bug#4047)
4415
eb4c6ace
MA
44162009-08-22 Michael Albinus <michael.albinus@gmx.de>
4417
4418 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
4419
4420 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
4421 intended as hotfix only.
4422 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
4423
36e34d1b
AR
44242009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
4425
4426 * nsterm.m (ns_get_color): Update documentation properly for last
4427 change, and clean up loose ends in the code left by it. Fix
4428 longstanding bug with 16-bit hex parsing, and add support for
4429 yet another X11 format (rgb:r/g/b) for compatibility.
4430 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
4431 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
4432
f983eb8a
SM
44332009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
4434
4435 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
4436
3f56d3c6
MA
44372009-08-20 Michael Albinus <michael.albinus@gmx.de>
4438
4439 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
4440 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
4441 (xd_initialize, xd_pending_messages): Check, whether
4442 $DBUS_SESSION_BUS_ADDRESS is set.
4443
fb641d68
YM
44442009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4445
4446 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
4447
4448 * nsterm.m (ns_get_color): Remove incompatible color formats again.
4449
cf59a374
GM
44502009-08-20 Glenn Morris <rgm@gnu.org>
4451
4452 * emacs.c (system-type): Doc fix.
4453
1373f3be
SM
44542009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
4455
4456 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
4457 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
4458
058ed861
MA
44592009-08-18 Michael Albinus <michael.albinus@gmx.de>
4460
1373f3be
SM
4461 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
4462 New functions.
058ed861
MA
4463 (xd_initialize): Revert change from 2009-08-16.
4464
563a866e 44652009-08-18 Kenichi Handa <handa@m17n.org>
5fc05db0
KH
4466
4467 * fontset.c (Ffontset_font): If a nil element is found in a
563a866e 4468 font-group vector, return nil.
5fc05db0 4469
e42bdf01
CY
44702009-08-17 Chong Yidong <cyd@stupidchicken.com>
4471
4472 * process.c (status_notify): Don't perform redisplay.
4473 (Fdelete_process, list_processes_1, process_send_signal):
4474 Expliticly perform redisplay.
4475 (wait_reading_process_output): Always check process status, but
4476 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
4477
4230ab74
KR
44782009-08-17 Ken Raeburn <raeburn@raeburn.org>
4479
1373f3be 4480 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
f601cdf3
KR
4481 (XFLOAT_INIT): New macro for storing a float value.
4482 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
4483 * fns.c (sxhash): Copy out the value of a float in order to
4484 examine its bytes.
4485 * dbusbind.c (xd_append_arg): Likewise.
4486
4230ab74
KR
4487 * emacs.c (main): Don't call syms_of_data twice.
4488
a0645cdd
MA
44892009-08-16 Michael Albinus <michael.albinus@gmx.de>
4490
4491 * dbusbind.c (xd_initialize): Add connection file descriptor to
4492 input_wait_mask, in order to let select() detect, whether a new
4493 message has been arrived.
ca4f31ea 4494 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
a0645cdd 4495
485db0ba
MA
44962009-08-15 Michael Albinus <michael.albinus@gmx.de>
4497
1373f3be
SM
4498 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
4499 New functions.
485db0ba
MA
4500
4501 * lisp.h (xd_pending_messages): Declare.
4502
4503 * keyboard.c (readable_events): Call xd_pending_messages.
4504
b5b98ff4
CY
45052009-08-15 Chong Yidong <cyd@stupidchicken.com>
4506
1373f3be 4507 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
84b17ab0 4508
f8354c6e
CY
4509 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
4510
b5b98ff4
CY
4511 * buffer.c (set_buffer_internal_1)
4512 (swap_out_buffer_local_variables): Check for unbound local
4513 variables (Bug#4138).
4514
8b9fc636
EZ
45152009-08-14 Eli Zaretskii <eliz@gnu.org>
4516
4517 * process.c (create_pty): Fix last change.
4518
ce959360
CY
45192009-08-13 Chong Yidong <cyd@stupidchicken.com>
4520
4521 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
4522 (xbm_load_image): Caller changed.
64b807c9 4523 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
ce959360 4524
c7baf7e9
NR
45252009-08-13 Nick Roberts <nickrob@snap.net.nz>
4526
4527 * process.c (create_pty): New function.
4528 (Fstart_process): Use it to allow Emacs to just associate a pty
4529 with the buffer. See associated change in gdb-mi.el.
4530 (list_processes_1): Deal with no program name.
4531 (start_process_unwind): Use pid == -2 to mean no process.
4532
1ac9108a
SM
45332009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
4534
4535 * cmds.c (nonundocount): New global variable.
4536 (keys_of_cmds): Initialize it.
4537 (Fself_insert_command): Use it to combine upto 20 sequential chars
4538 into a single undo entry, just like the Qself_insert_command code in
4539 keyboard.c does.
4540 Call frame_make_pointer_invisible, also like the Qself_insert_command
4541 code in keyboard.c does.
4542 * keyboard.c (command_loop_1): Use the new global nonundocount rather
4543 than its own local replacement for it.
4544
e267324c
KR
45452009-08-10 Ken Raeburn <raeburn@raeburn.org>
4546
1ac9108a 4547 * fns.c (concat): Don't re-set string length to its current value.
77437343 4548
1ac9108a
SM
4549 * coding.h (decode_coding_string, encode_coding_string):
4550 Use SBYTES macro.
f0bed503 4551
1ac9108a 4552 * doprnt.c (doprnt_lisp): Delete unused function.
e267324c
KR
4553 (doprnt): Merge with doprnt1, discarding lispstrings code.
4554 * lisp.h (doprnt_lisp): Don't declare.
4555
416e006d
JL
45562009-08-07 Juri Linkov <juri@jurta.org>
4557
4558 * puresize.h (BASE_PURESIZE): Increase to 1270000.
4559
6f7d5780
DN
45602009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
4561
4562 * print.c (syms_of_print): Undo previous change.
4563
f19a0f5b
TZ
45642009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
4565
4566 * lread.c (read1, syms_of_lread): Read hashtables back from the
4567 readable format.
4568
4569 * print.c (print_preprocess, print_object): Print hashtables fully
4570 and readably.
4571 (syms_of_print): Provide 'hashtable-print-readable.
4572
b9173dc2
AR
45732009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
4574
4575 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
4576 no family set.
4577 (nsfont_open): Handle case when entity has no family.
4578
1586503c
AR
45792009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
4580
4581 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
4582 element, not a list, for match case.
4583
087048cd
KH
45842009-07-28 Kenichi Handa <handa@m17n.org>
4585
4586 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
4587 rigidly.
4588
4589 * xfont.c (xfont_list_pattern): Don't ignore the return value of
4590 font_parse_xlfd. Check font properties more rigidly.
4591
780c2506
DN
45922009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
4593
31fd7c5c
JB
4594 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
4595 bsd-common.h.
780c2506 4596
a8c0cc18
KH
45972009-07-27 Kenichi Handa <handa@m17n.org>
4598
4599 * xfaces.c (face_with_height): Call font_clear_prop.
4600
4fbe2306
CY
46012009-07-26 Chong Yidong <cyd@stupidchicken.com>
4602
111d9af3
CY
4603 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
4604
4605 * xterm.c (x_term_init): Use Qx.
4606
4fbe2306
CY
4607 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
4608
1ac9108a 4609 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4fbe2306
CY
4610 (ns_get_color): Revert 2009-07-16 change.
4611
beb0b7f9
EZ
46122009-07-25 Eli Zaretskii <eliz@gnu.org>
4613
4614 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1ac9108a 4615 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
beb0b7f9 4616
2baf5e76
KR
46172009-07-25 Ken Raeburn <raeburn@raeburn.org>
4618
1ac9108a
SM
4619 * coding.h (decode_coding_string, encode_coding_string):
4620 Use SCHARS macro.
8890e5f5 4621
2baf5e76 4622 * lread.c: Rewrite 2009-07-21 changes.
1ac9108a 4623 (load_depth): Delete.
2baf5e76
KR
4624 (Qload_in_progress): New variable.
4625 (load_unwind): Don't reference load_depth or load_in_progress.
4626 (Fload): Likewise; specbind Qload_in_progress instead.
4627 (init_lread): Don't initialize load_depth.
4628 (syms_of_lread): Initialize and protect Qload_in_progress.
4629
1395c6f5
AR
46302009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
4631
4632 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
4633
4e2f36cf
AR
46342009-07-23 Yavor Doganov <yavor@gnu.org>
4635
4636 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
4637
5dd9a6f7
AR
46382009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
4639
4640 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
4641 Bugs 3792, 3720, 2402.
4642 (ns_lookup_indexed_color): Check for bad index.
4643 (ns_index_color): Init unused slot to 0.
4644 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
4645 Bug 3714, possibly 3082.
5dd9a6f7 4646
c902b920
JR
46472009-07-22 Jason Rumney <jasonr@gnu.org>
4648
1ac9108a
SM
4649 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
4650 Position IME window at cursor (Bug#2570).
c902b920
JR
4651 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
4652 (globals_of_w32fns): Dynamically load functions required above.
4653
4654 * w32term.c (w32_draw_window_cursor): Send message to reposition
4655 any IME window.
4656
090101cf
CY
46572009-07-21 Chong Yidong <cyd@stupidchicken.com>
4658
4659 * fileio.c: Revert 2009-07-16 changes.
4660 (Vauto_save_include_big_deletions): New variable.
4661 (Fdo_auto_save): Disable auto-save only if
4662 auto-save-include-big-deletions is nil.
4663
e6583e3d
CY
46642009-07-21 Chong Yidong <cyd@stupidchicken.com>
4665
4666 * xdisp.c (move_it_to): For continued lines ending in a tab, take
4667 the overflowed pixels into account (Bug#3879).
4668
ece435a5
KR
46692009-07-21 Ken Raeburn <raeburn@raeburn.org>
4670
4671 * lread.c (load_depth): New variable.
4672 (Fload, load_unwind, init_lread): Set it to the load recursion
4673 depth; set load_in_progress as a simple boolean based on the
4674 current load_depth. (Bug#3892)
4675
40b2d973
AR
46762009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
4677
4678 * nsfont.m (ns_has_attribute): Remove.
4679 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
4680
10be7e0d
JL
46812009-07-18 Juri Linkov <juri@jurta.org>
4682
4683 * process.c (Fset_process_query_on_exit_flag): Mention killing
4684 a buffer in docstring.
4685
fa055055
KH
46862009-07-17 Kenichi Handa <handa@m17n.org>
4687
4688 * casetab.c (shuffle): Fix the logic of setting up the cycle.
4689
042f7b69
YM
46902009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4691
4692 * nsfns.m (Fns_set_alpha): Remove function.
4693 (syms_of_nsfns): Don't defsubr it.
4694
4695 * nsterm.m (ns_get_color): Remove incompatible color formats.
4696 (ns_color_to_lisp): Generate #rrggbb color format string.
4697
4be941e3
RS
46982009-07-16 Richard Stallman <rms@gnu.org>
4699
4700 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
4701 (Fset_buffer_auto_saved): Handle save_length = -2.
4702
4e6b227d
CY
47032009-07-16 Chong Yidong <cyd@stupidchicken.com>
4704
4705 * xterm.c (Qx_gtk_map_stock): New var.
4706
4707 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
4708 of calling intern each time.
4709
a1856973
YM
47102009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4711
4712 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
4713 does tiling.
4714
4715 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
4716
497e54d8
KH
47172009-07-14 Kenichi Handa <handa@m17n.org>
4718
72d36834
KH
4719 * font.c (font_vconcat_entity_vectors): New function.
4720 (struct font_sort_data): New member font_driver_preference.
4721 (font_compare): Check font_driver_preference.
4722 (font_sort_entities): The format of the first argument changed.
4723 (font_delete_unmatched): Likewise.
4724 (font_list_entities): The return type changed.
4725 (font_select_entity): The format of the second argument changed.
1ac9108a
SM
4726 (font_find_for_lface): Adjuste for the above changes.
4727 Don't suppress the checking of C even if the repertory supports it.
4728 (Flist_fonts): Adjust for the above changes.
72d36834 4729
1ac9108a
SM
4730 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
4731 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
497e54d8
KH
4732 Reject a font who has adstyle property that is different from a
4733 langname derived from registry property.
1ac9108a 4734 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
497e54d8 4735
b6046155
EZ
47362009-07-13 Eli Zaretskii <eliz@gnu.org>
4737
4738 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
4739 local copy of dirfilename.
4740
fb6b6049
KH
47412009-07-13 Kenichi Handa <handa@m17n.org>
4742
e2402a5e
KH
4743 * chartab.c (sub_char_table_ref_and_range): Fix the range check
4744 against max_char.
4745
fb6b6049
KH
4746 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
4747 calling XSYMBOL (sym).
4748
65156807
EZ
47492009-07-11 Eli Zaretskii <eliz@gnu.org>
4750
1ac9108a
SM
4751 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
4752 New function.
4753 (directory_files_internal) [WINDOWSNT]:
4754 Bind w32-get-true-file-attributes to either t or nil, depending whether
65156807
EZ
4755 the filesystem of the directory is fast or slow.
4756
4757 * w32.c (logon_network_drive): Don't assume PATH is an absolute
4758 file name.
4759 (is_slow_fs): New function.
4760 (stat): Use it to determine whether to issue more system calls to
4761 get accurate file attributes, when w32-get-true-file-attributes is
4762 `local'.
4763
e0ab5fcf
JD
47642009-07-10 Jan Djärv <jan.h.d@swipnet.se>
4765
4766 * xfns.c (Fx_select_font): Remember last font selected in
31fd7c5c 4767 x_last_font_name and use that the next time. Also try the frame
e0ab5fcf
JD
4768 parameter font-parameter as default to the font dialog.
4769
784ceded
KH
47702009-07-10 Kenichi Handa <handa@m17n.org>
4771
4772 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
4773
fb8edc0b
EZ
47742009-07-09 Eli Zaretskii <eliz@gnu.org>
4775
1ac9108a 4776 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
017dab84 4777
fb8edc0b
EZ
4778 * w32.c (stat): Treat UNC file names as residing on remote
4779 drives. (Bug#3542)
4780
635c75b1
KH
47812009-07-09 Kenichi Handa <handa@m17n.org>
4782
4783 * fontset.c (fontset_find_font): Fix previous change.
4784
c1d5ce94
MA
47852009-07-08 Michael Albinus <michael.albinus@gmx.de>
4786
4787 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
4788 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
4789 error flag.
4790
edb61b39
KH
47912009-07-08 Kenichi Handa <handa@m17n.org>
4792
374bf7e4
KH
4793 * fontset.c (fontset_find_font): Fix the logic of handling
4794 charset_matched.
4795 (font_for_char): Delete unused var.
4796 (generate_ascii_font_name): Delete it.
4797
edb61b39
KH
4798 * coding.h (JIS_TO_SJIS2): Fix the code range check.
4799
4800 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
4801 (encode_coding_sjis): Fix the code range check.
4802
0f3f018c
CY
48032009-07-07 Chong Yidong <cyd@stupidchicken.com>
4804
4805 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
4806 (Fexpand_file_name): Copy string data properly (Bug#3772).
4807
fcaf6f3a
JD
48082009-07-07 Jan Djärv <jan.h.d@swipnet.se>
4809
4810 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
4811 first MapNotify.
4812
6809ca75
KH
48132009-07-07 Kenichi Handa <handa@m17n.org>
4814
4815 * character.h (unibyte_has_multibyte_table): Delete extern.
4816 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
4817
4818 * charset.c (Fset_charset_priority): Update charset_unibyte.
4819 (syms_of_charset): Initialize charset_unibyte.
4820
4821 * character.c (unibyte_has_multibyte_table): Delete it.
4822 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
4823 charset_unibyte.
4824 (multibyte_char_to_unibyte_safe): Likewise.
4825 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
4826
1ac9108a 4827 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6809ca75
KH
4828 (x_produce_glyphs): Likewise.
4829
4830 * .gdbinit (xcharset): Fix the treating $arg0.
4831
ad9e2d54
EZ
48322009-07-04 Eli Zaretskii <eliz@gnu.org>
4833
4834 Emulation of `getloadavg' on MS-Windows.
50426a04 4835 * w32.c: Include float.h.
ad9e2d54
EZ
4836 (g_b_init_get_native_system_info, g_b_init_get_system_times)
4837 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
4838 (get_native_system_info, get_system_times): New functions.
4839 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
4840 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
4841 (globals_of_w32): Initialize g_b_init_get_native_system_info,
4842 g_b_init_get_system_times, and num_of_processors.
4843
0a3472c7
JR
48442009-07-03 Jason Rumney <jasonr@gnu.org>
4845
4846 * w32term.c (w32_initialize): Use standard types.
4847
80904120
EZ
48482009-07-03 Eli Zaretskii <eliz@gnu.org>
4849
4850 * dired.c (Ffile_attributes): Decode user and group names by the
4851 locale's encoding. (Bug#3443)
4852
6978862d
DN
48532009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
4854
f8d23104
DN
4855 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
4856 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
4857
4858 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
4859
4860 * term.c (init_tty): Remove spurious #ifdef.
4861
6978862d
DN
4862 * m/mips.h: Mention this file is also used for netbsd.
4863 * m/pmax.h: Remove file.
4864
e044e4fc
JD
48652009-07-03 Jan Djärv <jan.h.d@swipnet.se>
4866
4867 * xterm.h (struct x_display_info): Add invisible_cursor.
4868 (struct x_output): Add current_cursor.
4869
4870 * xterm.c (XTtoggle_invisible_pointer): New function.
4871 (x_define_frame_cursor): Don't define cursor if invisible or the
4872 same as before. Set current_cursor.
4873 (x_create_terminal): Set toggle_invisible_pointer_hook.
4874
4875 * xfns.c (make_invisible_cursor): New function.
4876 (x_set_mouse_color): Call make_invisible_cursor.
4877 Set current_cursor.
4878 (x_window): Set current_cursor.
4879
4880 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
4881
4882 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
4883 inserting a character.
4884 (read_avail_input): Call frame_make_pointer_visible.
4885
4886 * frame.c (Vmake_pointer_invisible): New variable.
1ac9108a
SM
4887 (frame_make_pointer_invisible, frame_make_pointer_visible):
4888 New functions.
e044e4fc
JD
4889 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
4890
4891 * frame.h: Declare frame_make_pointer_invisible and
4892 frame_make_pointer_visible.
4893 (struct frame): Add pointer_invisible.
4894
574c8efa
JD
48952009-07-02 Jan Djärv <jan.h.d@swipnet.se>
4896
7b507248
JD
4897 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
4898 frame isn't visible.
4899 (xg_frame_resized): If width/height is -1, get size of window
4900 from X server.
4901
4902 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
4903 for MapNotify.
4904
835bdaa7 4905 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
31fd7c5c 4906 here or call change_frame_size. Just call flush_and_sync.
1ac9108a 4907 (flush_and_sync): Reintroduce.
574c8efa 4908
3f1c6666 49092009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 4910
31fd7c5c 4911 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
acd51077
JD
4912
4913 * xterm.c (x_handle_net_wm_state): Also look for sticky.
4914 (x_term_init): Initialize Xatom_net_wm_state_sticky.
4915
4916 * frame.h: Declare Qsticky.
4917
cad9ef74
JD
4918 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
4919
4920 * nsfns.m (ns_frame_parm_handlers): Ditto.
4921
4922 * frame.c: Declare Qsticky.
4923 (frame_parms): Add sticky.
4924
4925 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
4926
4927 * xterm.h: Declare x_set_sticky.
4928
4929 * xterm.c (x_set_sticky): New function.
4930
69b16610
JD
4931 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
4932 (xg_tool_bar_menu_proxy): Attach enter/leave events to
4933 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
4934
4935 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
4936
4937 * frame.c: Qmaximized is new.
4938 (x_set_frame_parameters): Do not handle fullscreen specially.
4939 Only set width and height if explicitly set.
4940 (x_set_fullscreen): Handle Qmaximized.
4941 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
4942 (syms_of_frame): Initialize Qmaximized.
4943
1ac9108a
SM
4944 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
4945 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3f1c6666
JD
4946
4947 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
31fd7c5c
JB
4948 for Expose event. Add call to x_check_fullscreen for MapNotify event.
4949 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3f1c6666
JD
4950 set gravity to NorthWestGravity when USE_GTK.
4951 (set_wm_state): New function.
31fd7c5c 4952 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3f1c6666
JD
4953 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
4954 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
31fd7c5c 4955 or the case when no window manager is running. That means remove calls
3f1c6666
JD
4956 to x_real_positions and x_fullscreen_adjust.
4957
4958 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
4959 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
4960 flush_and_sync.
4961 (xg_height_changed): New function.
4962 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1ac9108a
SM
4963 and gtk_window_set_policy. Set frame gravity after parsing the
4964 geometry string.
3f1c6666
JD
4965 (xg_update_frame_menubar, free_frame_menubar)
4966 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
4967 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
4968 Remove calls to xg_frame_set_char_size.
4969
fd503d99
KH
49702009-07-01 Kenichi Handa <handa@m17n.org>
4971
4972 * keyboard.c (decode_keyboard_code): New function.
4973 (tty_read_avail_input): Decode the input bytes if necessary.
4974
1ac9108a
SM
4975 * coding.c (setup_coding_system):
4976 Initialize coding->carryover_bytes to 0.
fd503d99
KH
4977 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
4978 use Qno_conversion.
4979
24ed93fb
YM
49802009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4981
4982 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
4983
99061dfc
CY
49842009-06-30 Chong Yidong <cyd@stupidchicken.com>
4985
1ac9108a 4986 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
99061dfc 4987
ff90fbde
JR
49882009-06-30 Jason Rumney <jasonr@gnu.org>
4989
4990 * w32term.c (w32_initialize): Use GetModuleHandle for library that
4991 is already loaded.
4992 Set user model ID if supported (bug#1849).
4993
5f445726
JM
49942009-06-29 Jim Meyering <meyering@redhat.com>
4995
4996 Remove useless if-before-xfree test.
4997 * nsfont.m (nsfont_close): Remove useless test.
4998 * term.c (delete_tty): Likewise.
4999 * w32.c (system_process_attributes): Likewise.
5000 * w32font.c (w32font_close): Likewise.
5001 * xfaces.c (x_free_gc): Likewise.
5002 * xselect.c (buffer): Likewise.
5003
b9607587
AS
50042009-06-28 Andreas Schwab <schwab@linux-m68k.org>
5005
5006 * process.c (send_process): Keep decoded string in a local
5007 variable and protect it from GC. (Bug#3521)
5008
89ba96f4
EZ
50092009-06-28 Eli Zaretskii <eliz@gnu.org>
5010
5011 * term.c (create_tty_output) [MSDOS]: #ifdef away.
5012 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
5013
098a1589
CY
50142009-06-28 Chong Yidong <cyd@stupidchicken.com>
5015
485422be
CY
5016 * xdisp.c (start_display, handle_face_prop)
5017 (move_it_vertically_backward, cursor_row_fully_visible_p)
1ac9108a
SM
5018 (redisplay_window, try_window_id, produce_image_glyph):
5019 Delete some #ifdef-ed out code chunks that are now obsolete.
485422be 5020
098a1589
CY
5021 * xterm.c (x_update_window_begin, x_new_focus_frame)
5022 (x_scroll_bar_handle_click, handle_one_xevent)
5023 (handle_one_xevent, XTread_socket, x_focus_on_frame)
5024 (x_make_frame_visible, x_make_frame_invisible)
5025 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
5026 code chunks that are now obsolete.
5027
78c38319
MA
50282009-06-28 Michael Albinus <michael.albinus@gmx.de>
5029
5030 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
5031 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
5032 for hours, when optimzation is enabled.
5033 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
5034 (xd_read_message): Make them static.
5035
4189ed40
CY
50362009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
5037
5038 * term.c (turn_on_face): Allow simultaneously bold and dim
5039 terminal faces (Bug#3530).
5040
cd9b5e16
CY
50412009-06-27 Chong Yidong <cyd@stupidchicken.com>
5042
4e23bedb
CY
5043 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
5044
cd9b5e16
CY
5045 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
5046 truncation glyphs (Bug#3686).
5047
07cc3c35
GM
50482009-06-27 Glenn Morris <rgm@gnu.org>
5049
5050 * m/pmax.h: Restore file, with only netbsd portions.
5051
31fd7c5c 50522009-06-26 David Reitter <david.reitter@gmail.com>
25c5550f 5053
cd9b5e16 5054 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 5055
42d4a64f
KH
50562009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
5057
5058 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
5059 the arg FORCE_SYMBOL.
5060
930fe55b 50612009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
5062
5063 * fontset.c (fontset_find_font): When a usable rfont_def is found
5064 in a fallback font-group, make it the first element of the group.
5065
57ebc3fd
CY
50662009-06-24 Chong Yidong <cyd@stupidchicken.com>
5067
5068 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
5069
f084f942
KH
50702009-06-24 Kenichi Handa <handa@m17n.org>
5071
5072 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
5073 set for C.
5074 (fontset_font): Record the availability of a font for C both in
5075 the realized fontsets of the current one and the default one.
5076
2f686c87
DN
50772009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
5078
5079 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
5080 conditional, it is always defined on AIX.
5081
666e158e
MB
50822009-06-23 Miles Bader <miles@gnu.org>
5083
5084 * window.c (Vrecenter_redisplay): New variable.
5085 (syms_of_window): Initialize it.
5086 (Qtty): New extern declaration.
5087 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
5088
c6da7cd2
JM
50892009-06-23 Jim Meyering <meyering@redhat.com>
5090
1ac9108a
SM
5091 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
5092 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
632c2030 5093 pointer dereferences are guaranteed to be valid.
c6da7cd2 5094
678dca3d
KH
50952009-06-23 Kenichi Handa <handa@m17n.org>
5096
74d75424
KH
5097 * emacs.c (main): Call init_font ().
5098
5099 * font.h (Vfont_log): Extern it.
5100 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
5101
5102 * font.c (font_sort_entities, font_list_entities)
5103 (font_matching_entity, font_open_entity)
5104 (font_close_object): Change font_add_log to FONT_ADD_LOG.
5105 (Vfont_log): Delete static.
5106 (font_log_env_checked): Delete this variable.
5107 (font_add_log): Don't check font_log_env_checked.
5108 (font_deferred_log): Check Vfont_log.
5109 (init_font): New function.
5110
678dca3d
KH
5111 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
5112
5113 * w32font.c: Change font_add_log to FONT_ADD_LOG.
5114
5115 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
5116
5117 * xfont.c: Change font_add_log to FONT_ADD_LOG.
5118
5119 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
5120 (face_for_char): Don't call font_deferred_log here.
5121 (font_for_char): Likewise.
5122
8a668709
CY
51232009-06-22 Chong Yidong <cyd@stupidchicken.com>
5124
9a01ee33
CY
5125 * w32term.c (x_draw_glyph_string): Use the glyph string's width
5126 rather than its background_width for drawing the overline and
5127 underline (Bug#489).
5128
5129 * xterm.c (x_draw_glyph_string): Use the glyph string's width
5130 rather than its background_width for drawing the overline and
5131 underline (Bug#489).
ec7c9926
CY
5132 (xg_default_icon_file): New variable.
5133 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
5134 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 5135
8a668709
CY
5136 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
5137 (load_overlay_strings): Remove externs.
5138 (fast_find_position): Function deleted.
5139 (mouse_face_from_buffer_pos): New function, based on
5140 fast_find_position. Correctly handle before-strings,
5141 display-strings, and after-strings (Bug#1220).
5142 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
5143
4d4c02d8
CY
51442009-06-21 Chong Yidong <cyd@stupidchicken.com>
5145
1ac9108a 5146 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4d4c02d8
CY
5147 (move_it_in_display_line_to, move_it_in_display_line_to)
5148 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
5149
70243478
CY
51502009-06-21 Chong Yidong <cyd@stupidchicken.com>
5151
5152 * Branch for 23.1.
5153
13087e59
JR
51542009-06-21 Jason Rumney <jasonr@gnu.org>
5155
5156 * w32term.c (keyboard_codepage): New static variable.
5157 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
5158 (w32_read_socket) [WM_CHAR]: Use it to decode character
5159 input (bug#3237).
5160 (w32_initialize): Initialize it.
5161 (codepage_for_locale): New function.
5162
4735b74e
KR
51632009-06-20 Ken Raeburn <raeburn@raeburn.org>
5164
5165 * process.c (status_message): Pass Faset index argument as a lisp
5166 object, so as to work with USE_LISP_UNION_TYPE.
5167
0e727afa
YM
51682009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5169
5170 * coding.c (Ffind_coding_systems_region_internal):
5171 Cache checked characters.
5172
cf299835
KH
51732009-06-18 Kenichi Handa <handa@m17n.org>
5174
1ac9108a 5175 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
cf299835 5176
90f20d94
AS
51772009-06-18 Andreas Schwab <aschwab@redhat.com>
5178
5179 * xdisp.c (redisplay_internal): Check that the frame is still
5180 live after redisplay of its windows.
5181 (redisplay_windows): Check that the window is still live.
5182
7f1faf1c
KH
51832009-06-17 Andreas Schwab <schwab@linux-m68k.org>
5184
5185 * coding.c (detect_coding_utf_16): Fix previous change.
5186
cc13543e
KH
51872009-06-16 Kenichi Handa <handa@m17n.org>
5188
5189 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
5190 UTF-16 by checking the dispersion of Eth and Oth bytes.
5191
977b85f4
AS
51922009-06-15 Andreas Schwab <schwab@linux-m68k.org>
5193
5194 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
5195
66bd43d1
KH
51962009-06-15 Kenichi Handa <handa@m17n.org>
5197
5198 * process.c (status_message): Fix previous change. Be sure to
5199 decode a localized string.
5200
cb5ca9c5
YM
52012009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5202
5203 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
5204 add comment explaining why.
5205
ec7709ba 52062009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 5207
ec7709ba 5208 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 5209
4b7f335c
AR
52102009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
5211
5212 * nsfont.m (ns_attribute_value): Remove.
5213 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
5214 (ns_has_attribute): Shrink the normal range.
5215 (ns_findfonts): Don't worry about requested spec in determining
5216 need for synthItal.
e41820ee 5217 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 5218
73b26103
SZ
52192009-06-14 Seiji Zenitani <zenitani@mac.com>
5220
5221 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
5222
5753e4da
KH
52232009-06-11 Kenichi Handa <handa@m17n.org>
5224
5225 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
5226 overhang for the static composition case.
5227
3561b671
KH
52282009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5229
5753e4da
KH
5230 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
5231 overhang for the automatic composition case.
5232
3561b671
KH
5233 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
5234 composition case.
5235
852bbd41
CY
52362009-06-10 Chong Yidong <cyd@stupidchicken.com>
5237
5238 * xdisp.c (get_next_display_element): When handling wrap-prefix
5239 and line-prefix, treat \n as a control character (bug#3502).
5240
9903d1e6
KH
52412009-06-10 Kenichi Handa <handa@m17n.org>
5242
5243 * font.c (font_parse_family_registry): Fix for one-char foundry.
5244 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
5245
0bcbaaaa
CY
52462009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
5247
5248 * process.c (status_message): Fix handling of multibyte signal
5249 string (Bug#3499).
5250
40aa3f13
JM
52512009-06-09 Jim Meyering <meyering@redhat.com>
5252
1f80c7e2
CY
5253 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
5254 color name is missing.
40aa3f13 5255
72d51285
KH
52562009-06-09 Kenichi Handa <handa@m17n.org>
5257
5258 * charset.c (Fmap_charset_chars): In docstring, state clearly that
5259 FROM-CODE and TO-CODE are codepoints of CHARSET.
5260
c1d04d84
AR
52612009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
5262
5263 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
5264
52652009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
5266
5267 Changes to support :script/:lang/:otf in NS font driver.
5268 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
5269 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
5270 indicate not part of font driver interface, and change callers.
5271 (ns_get_family): Remove pointless null check.
5272 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
5273 ns_spec_to_descriptor, ns_descriptor_to_entity.
5274 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
5275 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
5276 (ns_spec_to_descriptor, ns_descriptor_to_entity)
5277 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
5278 (ns_get_req_script, ns_accumulate_script_ranges)
5279 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
5280 New functions.
5281 (nsfont_list, nsfont_match): Use ns_findfonts.
5282 (nsfont_open): Use font descriptor instead of traits.
5283 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
5284 (dump_glyphstring): Rename to ns_dump_glyphstring.
5285
c7eb9816
AR
5286 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
5287
c1d04d84
AR
5288 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
5289
5290 * fontset.c (fontset_from_font): Remove NS-specific code.
5291
ec7709ba 52922009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
5293
5294 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
5295 nonactive windows.
5296
31fd7c5c 52972009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
c1d04d84 5298
1ac9108a 5299 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
c1d04d84 5300
68852c13 53012009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
5302
5303 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
5304
6756cd1d
CY
53052009-06-07 Chong Yidong <cyd@stupidchicken.com>
5306
5307 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
5308 account for the overflowing of newlines into the last glyph on the
5309 display line (Bug#3482).
5310
28bf482a
DR
53112009-06-05 David Reitter <david.reitter@gmail.com>
5312
ec7709ba
JB
5313 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
5314 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
5315 Fns_selection_exists_p, Fns_selection_owner_p.
5316
fdb55376
JR
53172009-06-03 Jason Rumney <jasonr@gnu.org>
5318
5319 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
5320 available. (Bug#3379)
5321
05129fbe
KH
53222009-05-29 Kenichi Handa <handa@m17n.org>
5323
1ac9108a
SM
5324 * coding.c (get_translation_table):
5325 Check Venable_character_translation.
05129fbe 5326
ec7709ba 53272009-05-26 David Reitter <david.reitter@gmail.com>
15891144 5328
ec7709ba
JB
5329 * nsterm.m (ns_raise_frame): Only raise frame if visible.
5330 (x_make_frame_visible): Move frame to front rather than calling
15891144 5331 ns_raise_frame().
ec7709ba 5332 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 5333 isn't key window.
ec7709ba 5334 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
5335 drawRect may be called by NSView even if the frame is hidden.
5336
ec7709ba
JB
5337 * nsfns.m (Fx_create_frame): Follow other ports in
5338 determining visibility; default to t. Ensure async_visible is set.
15891144 5339
21f73755
EZ
53402009-05-23 Eli Zaretskii <eliz@gnu.org>
5341
5342 * dired.c (Ffile_attributes): Doc fix.
5343
34001e41
CY
53442009-05-22 Chong Yidong <cyd@stupidchicken.com>
5345
5346 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
5347
46306a17
SM
53482009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
5349
5350 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
5351 and xfont_scratch_props.
5352 (syms_of_xfont): Do it here instead.
5353 (xfont_find_ccl_program): Delete, unused.
5354 (xfont_open): Delete unused var `i'.
5355
ef6e0694
KH
53562009-05-21 Kenichi Handa <handa@m17n.org>
5357
5358 * fontset.c (Qlatin): Don't make it static.
5359
46306a17
SM
5360 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
5361 New functions.
ef6e0694
KH
5362 (xfont_scripts_cache, xfont_scratch_props): New variables.
5363 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
5364 (xfont_list_pattern): Argument changed. Callers changed.
5365 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
5366 (xfont_list): Don't reject a font spec with :script property.
5367 (xfont_has_char): Fix setting of encoding.
5368 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
5369 xfont_scratch_props.
5370
53712009-05-19 Kenichi Handa <handa@m17n.org>
5372
46306a17 5373 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
5374 Callers changed.
5375
53762009-05-18 Kenichi Handa <handa@m17n.org>
5377
5378 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
5379
ac71ced7
SM
53802009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
5381
5382 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
5383 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
5384
1c6d1051
YM
53852009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5386
5387 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
5388 (x_delete_terminal): Dissociate resource database from display and
5389 then call XrmDestroyDatabase before closing display.
5390
9b9b779c
AR
53912009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
5392
5393 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
5394 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
5395 whether selected frame is viable before raising it (based on patch
5396 by David Reitter), and improve commentary.
5397 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 5398
cccd42d5
KH
53992009-05-15 Kenichi Handa <handa@m17n.org>
5400
5401 * font.c (Ffont_spec): Check arguments.
5402
337fbd17
CY
54032009-05-14 Chong Yidong <cyd@stupidchicken.com>
5404
5405 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
5406 weight when testing attributes (Bug#3282).
5407
47a6002f
JD
54082009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5409
5410 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
5411 what we expect to get in the next ConfigureNotify event.
5412
9cb363db
YM
5413 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
5414 before Xft one (Bug#1696).
5415
b9126609
CY
54162009-05-07 David Reitter <david.reitter@gmail.com>
5417
5418 * nsfns.m (Fx_display_planes): Compute bitplanes using
5419 NSBitsPerPixelFromDepth (Bug#3207).
5420
27a69fd9
CY
54212009-05-10 Chong Yidong <cyd@stupidchicken.com>
5422
5423 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
5424
00f37552
TTN
54252009-05-10 Ulrich Mueller <ulm@gentoo.org>
5426
5427 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
5428
2d82a920
DR
54292009-05-07 David Reitter <david.reitter@gmail.com>
5430
ec7709ba
JB
5431 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
5432 Respect mouse face background.
2d82a920 5433
46b0d52d
DR
54342009-05-07 David Reitter <david.reitter@gmail.com>
5435
ec7709ba
JB
5436 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
5437 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
5438 in ns_update_begin and ns_update_end.
5439
ce1b23bb
SM
54402009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
5441
5996e1b7
SM
5442 * nsfns.m (ns_get_screen): Rewrite.
5443 Don't presume selected-frame is of type `ns'.
5444
ba98e3a0
SM
5445 * font.c (font_update_drivers): Sanity fallback to avoid disabling
5446 all drivers.
5447
ce1b23bb
SM
5448 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
5449
bcda200f
YM
54502009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5451
5452 * keyboard.h (add_user_signal): Fix typo in extern.
5453
5454 * lisp.h (add_user_signal): Remove extern.
5455
5456 * unexelf.c (unexec): Consider a section to precede the .bss section
5457 if its addresses overlap that of .bss.
5458 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
5459 instead of dumping process.
5460
864660a2
SM
54612009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
5462
5463 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
5464
50da4e56
SM
54652009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
5466
5467 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
5468
51520a1a
DN
54692009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
5470
5471 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
5472 any statements.
5473
409ea3a1
AS
54742009-05-02 Andreas Schwab <schwab@linux-m68k.org>
5475
59c4c60f
AS
5476 * process.c (read_process_output): Make sure the current buffer is
5477 always restored.
5478
409ea3a1
AS
5479 * coding.c (record_conversion_result): Don't modify
5480 Vlast_code_conversion_error for successful result.
5481 (alloc_destination): Don't clobber conversion result. (Bug#1650)
5482
56f00ed2
KH
54832009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
5484
5485 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 5486 (load_charset_map): Remove unnecessary code.
56f00ed2 5487
4491c9d2
DR
54882009-04-30 David Reitter <david.reitter@gmail.com>
5489
35f5b128 5490 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
5491 through f24.
5492
6970f632
CY
54932009-04-30 Chong Yidong <cyd@stupidchicken.com>
5494
5495 * xfaces.c (face_at_buffer_position): New arg base_face_id.
5496
5497 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
5498 face_at_buffer_position.
5499 (face_before_or_after_it_pos, get_next_display_element)
5500 (note_mouse_highlight): Update face_at_buffer_position call.
5501
5502 * term.c (term_mouse_highlight):
5503 * msdos.c (IT_note_mouse_highlight):
5504 * fontset.c (Finternal_char_font):
35f5b128 5505 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
5506
5507 * dispextern.h (face_at_buffer_position): Update prototype.
5508
0c616f63
KH
55092009-04-30 Kenichi Handa <handa@m17n.org>
5510
35f5b128 5511 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 5512
ad3aaf33
AS
55132009-04-29 Andreas Schwab <schwab@linux-m68k.org>
5514
5515 * callproc.c (Fcall_process): Fix GC protection. Make sure
5516 current buffer is always restored.
5517
c3c963a0
YM
55182009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5519
5520 * atimer.c (init_atimer): Also clear stopped_atimers.
5521
5522 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
5523
7e3386cb
YM
5524 * process.c (create_process): Clean up merger residues of
5525 2008-07-17 change.
5526
91f68422
CY
55272009-04-29 Ulrich Mueller <ulm@gentoo.org>
5528
5529 * lread.c (Vread_circle): New variable.
5530 (read1): Disable recursive read if Vread_circle is nil.
5531
24b34550
KH
55322009-04-29 Kenichi Handa <handa@m17n.org>
5533
5534 * fontset.h (set_default_ascii_font): Delete extern.
5535
5536 * fontset.c (set_default_ascii_font): Delete this unused function.
5537
5538 * frame.c (x_set_font): When ARG is a font-object, check if the
5539 font-object matches with the ASCII font-spec of the frame's
9c358bda 5540 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 5541
77bf07e1
AS
55422009-04-28 Andreas Schwab <schwab@linux-m68k.org>
5543
5544 * fns.c (Flocale_info): Protect vector from GC during decoding.
5545
5546 * process.c (Fstart_process): Protect argv strings from GC during
5547 encoding.
5548
2c55aacf
AS
55492009-04-27 Andreas Schwab <schwab@linux-m68k.org>
5550
5551 * sysdep.c: Include <ctype.h>.
5552
b892d3c9
DR
55532009-04-27 David Reitter <david.reitter@gmail.com>
5554
35f5b128 5555 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
5556 Remove commented-out code.
5557
9d0644c4
JB
55582009-04-26 Johan Bockgård <bojohan@gnu.org>
5559
5560 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
5561
b7053016
JR
55622009-04-25 Jason Rumney <jasonr@gnu.org>
5563
5564 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
5565
4e8231f3
YM
55662009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5567
5568 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
5569 Swap bytes in short integer if fringe bitmap width > 8.
5570
493dcf2c
KH
55712009-04-23 Kenichi Handa <handa@m17n.org>
5572
5573 * xfaces.c (Fx_list_fonts): If a font size is specified in
5574 PATTERN, set it in returned scalable fonts.
5575
401e9e57
CY
55762009-04-22 Chong Yidong <cyd@stupidchicken.com>
5577
708e05dc
CY
5578 * keyboard.c (Fset_input_meta_mode): Doc fix.
5579
5580 * dispnew.c (Fsend_string_to_terminal): Doc fix.
5581
1ac9108a 5582 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
708e05dc
CY
5583
5584 * coding.c (Fterminal_coding_system): Doc fix.
5585
5586 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
5587 (Fx_display_pixel_height, Fx_display_planes)
5588 (Fx_display_color_cells, Fx_server_max_request_size)
5589 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
5590 (Fx_display_mm_height, Fx_display_mm_width)
5591 (Fx_display_backing_store, Fx_display_visual_class)
1ac9108a
SM
5592 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
5593 Doc fixes, replacing "terminal id" with "terminal object".
708e05dc
CY
5594 (check_x_display_info): Handle terminal objects instead of
5595 terminal ids.
5596
401e9e57
CY
5597 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
5598 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1ac9108a
SM
5599 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
5600 Doc fixes, replacing "terminal id" with "terminal object".
401e9e57 5601
df80c7f0
KH
56022009-04-21 Kenichi Handa <handa@m17n.org>
5603
5a8f12af 5604 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 5605 (font_score): Check AVGWIDTH too.
908567ef 5606
df80c7f0
KH
5607 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
5608 worst case.
1ac9108a
SM
5609 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
5610 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
df80c7f0 5611
705af33f
JR
56122009-04-19 Jason Rumney <jasonr@gnu.org>
5613
5614 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 5615 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
5616
5617 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
5618 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
5619 get_phys_cursor_geometry.
5620
b71ac3dd 5621 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
5622 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
5623 using get_phys_cursor_geometry.
5624
5625 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
5626 correctly calculated.
5627
dc2933eb
JD
56282009-04-19 Jan Djärv <jan.h.d@swipnet.se>
5629
1ac9108a
SM
5630 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
5631 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
dc2933eb
JD
5632 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
5633 is deprecated.
5634
973e7849
AS
56352009-04-18 Andreas Schwab <schwab@linux-m68k.org>
5636
5637 * font.c (font_put_frame_data): Use xfree instead of free.
5638
314d66f4
JB
56392009-04-17 Juanma Barranquero <lekktu@gmail.com>
5640
5641 * w32font.c (Qja, Qko): Remove declarations.
5642 (syms_of_w32font): Don't DEFSYM them.
5643
cf702558
CY
56442009-04-17 Chong Yidong <cyd@stupidchicken.com>
5645
5646 * font.c (Qja, Qko): Move definitions here from ftfont.c.
5647
5648 * font.h (Qja, Qko): Extern them.
5649
5650 * ftfont.c (Qja, Qko): Remove declarations.
5651
5652 * xfont.c (Qja, Qko): Remove declarations.
5653
b50504f5
KH
56542009-04-17 Kenichi Handa <handa@m17n.org>
5655
bde25748
KH
5656 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
5657 string from a vector to handle Latin-1 characters correctly.
5658
b50504f5
KH
5659 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
5660 entity even if the cache hits.
5661
f4646fff
AS
56622009-04-16 Andreas Schwab <schwab@linux-m68k.org>
5663
5664 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 5665 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 5666
e7deaab0
AS
5667 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
5668 * lisp.h: Adjust prototypes.
5669
0a0e7d49
CY
56702009-04-16 Chong Yidong <cyd@stupidchicken.com>
5671
5672 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
5673 change (Bug#3003).
5674
3c908a57
KH
56752009-04-16 Kenichi Handa <handa@m17n.org>
5676
1ac9108a 5677 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
bd0af90d
KH
5678
5679 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
5680 adstyle.
5681
5682 * ftfont.c (Qja, Qko): Don't make them static.
5683 (enum ftfont_cache_for): New enum.
5684 (fc_charset_table): Undo the previous change.
5685 (ftfont_get_latin1_charset): Delete it.
1ac9108a
SM
5686 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
5687 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
bd0af90d
KH
5688 non-scarable font, try to get AVERAGE_WIDTH.
5689 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
5690 Change ft_face_cache from a list of a hash-table. Don't check
5691 `ja' and `ko' adstyle here.
5692 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
5693 FTFONT_CACHE_FOR_CHARET.
5694 (ftfont_get_charset): Undo the previous change.
1ac9108a 5695 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
bd0af90d
KH
5696 (ftfont_close): Likewise.
5697 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
5698
5699 * font.c (font_sort_entites): Change the meaning of the arg
5700 BEST-ONLY. Don't optimize for VEC of lenght 1.
5701 (font_select_entity): Just return the value of font_sort_entites.
5702
5703 * xfaces.c (merge_face_vectors): Reflect font properties in
5704 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
5705 font_clear_prop if a face attribute doesn't change.
5706
3c908a57
KH
5707 * charset.h (charset_ksc5601): Extern it.
5708
5709 * charset.c (charset_ksc5601): New variable.
5710 (Fdefine_charset_internal): Set charset_ksc5601.
5711 (init_charset_once): Initialize charset_ksc5601 to -1.
5712
d65859c3
DN
57132009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
5714
5715 * fileio.c (history_delete_duplicates): Remove unused declaration.
5716
5717 * callint.c (history_delete_duplicates): New declaration.
5718 (Fcall_interactively): Remove command history duplicates when
5719 history_delete_duplicates is true.
5720
3ba010e5
EZ
57212009-04-14 Eli Zaretskii <eliz@gnu.org>
5722
5723 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
5724
06f19b91
KH
57252009-04-14 Kenichi Handa <handa@m17n.org>
5726
5727 * font.c (Ffont_info): Fix docstring. Fix the second element of
5728 the returned value (bug#2949).
5729
2cce8bfc
CY
57302009-04-14 Chong Yidong <cyd@stupidchicken.com>
5731
5732 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
5733
d156542d
KH
57342009-04-14 Kenichi Handa <handa@m17n.org>
5735
5736 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
5737 encoding charset is ascii_compatible.
5738
5739 * charset.c (Fdefine_charset_internal): Make charset
5740 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
5741 code_offset is 0, and covers all ASCII characters.
5742
86fa089e
SM
57432009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
5744
5745 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
5746 (ns_string_to_pasteboard_internal):
5747 * nsmenu.m (process_dialog):
5748 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
5749 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
5750 * lisp.h (Fx_load_color_file): Declare.
5751
a8a3728b
KH
57522009-04-13 Kenichi Handa <handa@m17n.org>
5753
1ac9108a 5754 * font.c (font_delete_unmatched): Preserve the order of list elements.
a8a3728b
KH
5755 (font_select_entity): Suppress the code to optimize for the same
5756 kind of fonts.
5757 (font_load_for_lface): Get a font that supports at least ASCII
5758 characters.
5759
5760 * ftfont.c (Qja, Qko): New variables.
5761 (fc_charset_table): Delete uniquifier data for iso8859-1.
5762 (ftfont_get_latin1_charset): New function.
5763 (get_adstyle_property): New function.
5764 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
5765 bitmap fonts.
5766 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
5767 Delete iso-8859-1 range from the charset of fonts whose adstyle is
5768 `ko' or `ja'.
5769 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1ac9108a 5770 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
a8a3728b
KH
5771 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
5772 property.
5773 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
5774 (syms_of_ftfont): DEFSYM Qja and Qko.
5775
483670b5
KH
57762009-04-09 Kenichi Handa <handa@m17n.org>
5777
12b55765
KH
5778 * charset.c (map_charset_chars): For a charset of `superset'
5779 method, fix calculation of code range.
5780
483670b5
KH
5781 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
5782 from the list of extra properties.
5783 (font_clear_prop): Be sure to delete `:name' font property.
5784
57d3b93b
KH
57852009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5786
b4b2c2ca
YM
5787 * dispnew.c (redraw_overlapping_rows): Fix detection of
5788 overlapping for topmost and bottommost rows.
5789
1ac9108a 5790 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
57d3b93b 5791
472c3609
JR
57922009-04-06 Jason Rumney <jasonr@gnu.org>
5793
5794 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
5795
ab193662
KH
57962009-04-06 Kenichi Handa <handa@m17n.org>
5797
5798 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
5799
5800 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
5801
0c26f026
KH
58022009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5803
5804 * ftfont.c (ftfont_open): Fix checking of the return value of
5805 FT_Load_Char. Fix setting font->underline_thickness.
5806
e173bbce
CY
58072009-04-04 Chong Yidong <cyd@stupidchicken.com>
5808
5809 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
5810 (Fterminal_parameters, Fterminal_parameter)
5811 (Fset_terminal_parameter): In doc string, refer to terminal
5812 objects rather than terminal ids.
5813
693a2698
EZ
58142009-04-04 Eli Zaretskii <eliz@gnu.org>
5815
5816 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
5817 ret_lim_data. (Bug#2867)
5818
d5221487
CY
58192009-04-03 Chong Yidong <cyd@stupidchicken.com>
5820
5821 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
5822 so they don't get wider than the window, matching 2006-01-23
5823 change to the partner function in xdisp.c (Bug#2800).
5824
223509a3
KH
58252009-04-03 Kenichi Handa <handa@m17n.org>
5826
5827 * print.c (print_object): Make each lowest sub_char_table start a
5828 new line (Bug#2866).
5829
74fcd0b1
KH
58302009-04-02 Kenichi Handa <handa@m17n.org>
5831
5832 * fontset.c (fontset_font): Record no-font when a fontset
5833 explicitly tells not to try another font-specs.
5834
c542407d
SM
58352009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
5836
5837 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
5838
e3869731
KH
58392009-03-30 Kenichi Handa <handa@m17n.org>
5840
d8d2f142
KH
5841 * fontset.c (fontset_from_font): Specify only registry in a
5842 font-spec for all characters supported by that registry.
5843
e3869731
KH
5844 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
5845 even if HAVE_M17N_FLT is not defined.
5846
5da5f805
CY
58472009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
5848
5849 * ftfont.c: Conditionalize prototyping and use of
5850 ftfont_variation_glyphs.
5851
ab226c50
SM
58522009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
5853
9628fed7
SM
5854 * frame.c (delete_frame): Work around compiler bug.
5855
5856 * editfns.c (general_insert_function): Adjust to insdel.c changes.
5857 * insdel.c (prepare_to_modify_buffer, signal_before_change):
5858 Some more EMACS_INT.
5859 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
5860
5861 * xdisp.c (dump_glyph): Fix typo.
5862
ae19ba7c
SM
5863 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
5864 (adjust_markers_gap_motion, adjust_markers_for_delete)
5865 (adjust_markers_for_insert, adjust_point)
5866 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
5867 (make_gap, copy_text, count_size_as_multibyte, insert)
5868 (insert_and_inherit, insert_before_markers)
5869 (insert_before_markers_and_inherit, insert_1)
5870 (count_combining_before, count_combining_after, insert_1_both)
5871 (insert_from_string, insert_from_string_before_markers)
5872 (insert_from_string_1, insert_from_gap, insert_from_buffer)
5873 (insert_from_buffer_1, adjust_after_replace)
5874 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
5875 (replace_range_2, del_range, del_range_1, del_range_byte)
5876 (del_range_both, del_range_2, modify_region)
5877 (prepare_to_modify_buffer, signal_before_change)
5878 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
5879 for buffer positions and sizes.
5880 * lisp.h: Adjust prototypes accordingly.
5881
5882 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
5883 (non_regular_inserted, non_regular_nbytes, read_non_regular)
5884 (Finsert_file_contents): Use EMACS_INT for buffer positions.
5885
ab226c50
SM
5886 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
5887
46dfb8fb
JD
58882009-03-27 Jan Djärv <jan.h.d@swipnet.se>
5889
5890 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
5891 lines and columns so we keep the same pixel height and width.
5892
5893 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
5894 the property _NET_WM_STATE has changed.
46dfb8fb
JD
5895 (x_handle_net_wm_state): New function to update frame parameter
5896 fullscreen.
5897 (x_term_init): Initialize atoms for _NET_WM_STATE.
5898
5899 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
5900
d347e494
SM
59012009-03-27 Kevin Ryde <user42@zip.com.au>
5902
5903 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
5904 Gpm_GetEvent as an error that justifies closing the filedescriptor.
5905 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
5906 (Fgpm_mouse_stop): Pass that new parameter.
5907 * termhooks.h (close_gpm): Adjust prototype.
5908
84db11d6
SM
59092009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
5910
c95a5008
SM
5911 * lisp.h (Fx_focus_frame): Declare.
5912
84db11d6
SM
5913 * callint.c (Fcall_interactively): For '^' just delegate the work to
5914 handle-shift-selection.
5915 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
5916
0a1958d6
CY
59172009-03-24 Chong Yidong <cyd@stupidchicken.com>
5918
0bfdff23
CY
5919 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
5920
0a1958d6
CY
5921 * data.c (Qinteractive_form): New variable.
5922 (Finteractive_form): Use it.
5923
5924 * eval.c (Fcommandp): Use Qinteractive_form.
5925
58aec0d6
JR
59262009-03-24 Jason Rumney <jasonr@gnu.org>
5927
5928 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
5929 Calculate total size precisely. Decode environment variables
5930 before substituting. (Bug#38)
5931
553dd618
KH
59322009-03-24 Kenichi Handa <handa@m17n.org>
5933
5934 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 5935 encoding (Bug#2722).
553dd618 5936
c39ea606
JD
59372009-03-23 Jan Djärv <jan.h.d@swipnet.se>
5938
5939 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
5940 that gdpy is set.
5941
bc9b2b5e
AM
59422009-03-22 Alan Mackenzie <acm@muc.de>
5943
5944 * callint.c (Finteractive): Clarify the doc string - even
5945 promptless elements need \n separators.
5946
9f995a76
JR
59472009-03-22 Jason Rumney <jasonr@gnu.org>
5948
5949 * w32term.c (syms_of_w32term): Doc fix for
5950 x-use-underline-position-properties.
5951
22749e9a
EZ
59522009-03-21 Eli Zaretskii <eliz@gnu.org>
5953
5954 * w32.c (getpwuid): Change argument type to unsigned.
5955 (struct w32_id): Change type of `rid' member to unsigned.
5956 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
5957 argument ID to unsigned. All callers changed.
5958 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
5959
e00553bf
EZ
59602009-03-20 Eli Zaretskii <eliz@gnu.org>
5961
5962 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
5963 negative, produce a float value.
5964
5965 * dired.c (make_uid, make_gid): New functions.
5966 (Ffile_attributes): Use them to avoid negative UID and GID.
5967
f761d6b6
JB
59682009-03-20 Juanma Barranquero <lekktu@gmail.com>
5969
5970 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
5971 (syms_of_keyboard) <command-hook-internal, input-method-function>:
5972 Fix typos in docstrings.
5973
d507f8d7
KH
59742009-03-19 Kenichi Handa <handa@m17n.org>
5975
5976 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
5977 changed, use font_load_for_lface to get a new font object.
5978 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
5979
5980 * frame.c (x_set_font): Handle the case that ARG is a cons.
5981
c68845e0
GM
59822009-03-19 Glenn Morris <rgm@gnu.org>
5983
5984 * fileio.c (Fsubstitute_in_file_name): Doc fix.
5985
bfa49dd1
CY
59862009-03-19 Chong Yidong <cyd@stupidchicken.com>
5987
5988 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
5989
8458d4c1
KH
59902009-03-19 Kenichi Handa <handa@m17n.org>
5991
5992 * charset.c (load_charset_map_from_file): When a mapfile can't be
5993 loaded, signal an error.
5994
78e7d1fe
EZ
59952009-03-18 Eli Zaretskii <eliz@gnu.org>
5996
5997 * dired.c (Ffile_attributes): Make sure UID and GID are always
5998 positive, even if the value is too large for a positive EMACS_INT.
5999 Doc fix.
6000
6001 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
6002
5da9fdfa
YM
60032009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6004
6005 * xmenu.c (xdialog_show): Move Fredisplay call ...
6006 (Fx_popup_dialog): ... here.
6007
7519c40d
SM
60082009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
6009
6010 * dired.c (file_name_completion): Disable the first optimization just
6011 installed, since it is not implemented correctly.
6012
2cd298e2
SM
60132009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
6014
6015 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 6016 only if the entry can affect bestmatch.
2cd298e2
SM
6017 Stop the search early, as Ftry_completion already does.
6018
48d37adf
CY
60192009-03-17 Chong Yidong <cyd@stupidchicken.com>
6020
e10c9c93 6021 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 6022
9286b16a
CY
60232009-03-15 Chong Yidong <cyd@stupidchicken.com>
6024
6025 * keyboard.c (parse_menu_item): Don't display remappings as menu
6026 equivalent bindings (Bug#788).
6027
f7b146dc
JR
60282009-03-15 Jason Rumney <jasonr@gnu.org>
6029
6030 * w32term.h (WM_EMACS_PAINT): New message.
6031 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
6032 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
6033 before passing to lisp thread. (Bug#950)
6034
f761d6b6 60352009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 6036
d93f9575
CY
6037 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
6038 variable as it was never reset.
6039 (ns_term_init): Remove initialization of Lisp-settable defaults
6040 and ns_expand_space.
6041 (-setPanelFromDefaultValues): Remove ns_expand_space.
6042 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
6043 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
6044 i.e. no additional spacing, similar to Carbon port.
6045
d93f9575
CY
6046 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
6047 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 6048
305018ec
JD
60492009-03-14 Jan Djärv <jan.h.d@swipnet.se>
6050
6051 * sound.c (alsa_configure): Remove call to deprecated
6052 snd_pcm_sw_params_set_xfer_align.
6053
f761d6b6 60542009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
6055
6056 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
6057 after clicking in a detached tool bar.
6058 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
6059
46e722a9
SM
60602009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
6061
348db3dd
SM
6062 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
6063 int/Lisp_Object mixup).
46e722a9 6064
a3d16f39
KH
60652009-03-13 Kenichi Handa <handa@m17n.org>
6066
6067 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 6068 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
6069 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
6070 (set_fontset_font): Change ARG to a vector. Handle range_list in
6071 ARG correctly.
6072 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 6073 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
6074 the above change.
6075 (fontset_from_font): Fix previous change.
fe24f56a 6076 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
6077 entry. If FONTSET is the default fontset, don't set the extra
6078 slot of the returning char-table.
6079
b066e6b6
JB
60802009-03-12 Juanma Barranquero <lekktu@gmail.com>
6081
6082 * nsfns.m (Fx_close_connection): Doc fix.
6083 (Fns_do_applescript): Reflow docstring.
6084 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
6085 (Fx_display_pixel_width, Fx_display_pixel_height)
6086 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
6087 Fix typos in docstrings.
6088 (Fns_set_alpha): Fix typos in error messages.
6089
d472514e 60902009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 6091
d472514e 6092 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
6093 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
6094 were used for such events.
6095
d472514e
JB
6096 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
6097 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 6098
d472514e 6099 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
6100 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
6101
fb930676
KH
61022009-03-11 Kenichi Handa <handa@m17n.org>
6103
ff85581a
KH
6104 * font.h (font_open_by_spec): Extern it.
6105
c50b7e98
KH
6106 * font.c (font_open_by_spec): New function.
6107 (font_open_by_name): Use font_open_by_spec.
6108
fb930676
KH
6109 * frame.c (x_set_font): When ARG is a font-object, don't alter the
6110 fontset of the frame.
6111
6112 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
6113 modify the default font of frames that use this fontset.
6114 (num_auto_fontsets): New variable.
6115 (fontset_from_font): Use num_auto_fontsets to decide a fontset
6116 name. Be sure to set FONTSET_ASCII to the correct font name.
6117 (update_auto_fontset_alist): New function.
6118
df4e8455
JB
61192009-03-11 Juanma Barranquero <lekktu@gmail.com>
6120
6121 * makefile.w32-in: Update dependencies.
6122
0a375797
AR
61232009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
6124
6125 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
6126
61313fa3
SM
61272009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
6128
6129 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
6130
b55103fb
CY
61312009-03-10 Chong Yidong <cyd@stupidchicken.com>
6132
6133 * lread.c (Feval_buffer): Doc fix.
6134
dde2559c
KH
61352009-03-09 Kenichi Handa <handa@m17n.org>
6136
6137 * charset.c (Qfile_name_handler_alist): Extern it.
6138 (load_charset_map_from_file): Temporarily bind
6139 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
6140
df4e8455 61412009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 6142
47f588bb
GM
6143 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
6144 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 6145
4ddf94bd
AR
61462009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
6147
4c9bdfc2
AR
6148 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
6149 (x_set_window_size): Change back to calculated method of setting
6150 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
6151 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
6152 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
6153
fe41ae9e
AR
6154 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
6155
4c9bdfc2
AR
6156 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
6157 accelerator in parens under GNUstep.
6158
825d0875
KH
61592009-03-06 Kenichi Handa <handa@m17n.org>
6160
6161 These changes are to detect incorrect composition sequence without
f3b3be74 6162 looking ahead the source. (Bug#2370)
825d0875
KH
6163
6164 * coding.h: Include "composite.h".
6165 (enum compisition_state): New enum.
6166 (struct compisition_status): New struct.
6167 (struct iso_2022_spec): New member cmp_status.
6168 (struct emacs_mule_spec): New struct.
6169 (struct coding_system): New members ctext_extended_segment_len and
6170 embedded_utf_8. Change the union member
6171 spec.emacs_mule_full_support to spec.emacs_mule.
6172
6173 * coding.c (CODING_ISO_CMP_STATUS): New macro.
6174 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 6175 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
6176 (ADD_COMPOSITION_DATA): New arg nbytes.
6177 (emacs_mule_char): New arg cmp_status.
6178 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
6179 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
6180 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
6181 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
6182 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
6183 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
6184 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
6185 (EMACS_MULE_COMPOSITION_END): New macro.
6186 (emacs_mule_finish_composition): New function.
6187 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
6188 (decode_coding_emacs_mule): Avoid long looking ahead while
6189 handling composition.
6190 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
6191 (ENCODE_COMPOSITION_RULE): New macro.
6192 (finish_composition): New function.
6193 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
6194 (DECODE_COMPOSITION_START): New implementation.
6195 (DECODE_COMPOSITION_END): Likewise.
6196 (STORE_COMPOSITION_RULE): New macro.
6197 (decode_coding_iso_2022): Avoid long looking ahead while handling
6198 composition, CTEXT extended segment, and embedded UTF-8.
6199 (setup_coding_system): For a coding of type iso-2022, reset
6200 CODING_ISO_EXTSEGMENT_LEN (coding) and
6201 CODING_ISO_EMBEDDED_UTF_8 (coding).
6202 (get_translation): Delete arguments last_block, from_nchars,
6203 to_nchars. Callers changed.
6204 (produce_chars): Don't modify charbuf. Adjusted for the change of
6205 get_translation.
98a326f7 6206 (produce_composition): Adjust for the new annotation sequence.
825d0875 6207 (handle_composition_annotation): Likewise.
98a326f7 6208 (consume_chars): Adjust for the change of get_translation.
825d0875 6209
ccbc4452
AR
62102009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
6211
4ddf94bd 6212 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 6213
988a7ddb
KH
62142009-03-05 Kenichi Handa <handa@m17n.org>
6215
6216 * font.c (font_select_entity): New function.
6217 (font_find_for_lface): Use font_select_entity to select a font.
6218
6219 * fontset.c (fontset_find_font): If a font found without
a8a3728b 6220 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
6221 font with C restriction.
6222
98a326f7 62232009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 6224
be1bce46 6225 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 6226
10ea2b82
JR
62272009-03-04 Jason Rumney <jasonr@gnu.org>
6228
2c93b248 6229 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 6230 characters that have already been read. (Bug#2569)
2c93b248 6231
10ea2b82
JR
6232 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
6233 Log an error message if check_image_size failed.
6234 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 6235 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 6236
71a0c011
EZ
62372009-03-02 Eli Zaretskii <eliz@gnu.org>
6238
6239 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
6240 when decoding process output.
6241
2f63bba8
RS
62422009-03-01 Richard M Stallman <rms@gnu.org>
6243
6244 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
6245
6246 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
6247
0a9564cb
EZ
62482009-02-28 Eli Zaretskii <eliz@gnu.org>
6249
6250 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
6251 (decode_coding_emacs_mule, decode_coding_iso_2022)
6252 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
6253 (decode_coding_raw_text, decode_coding_charset)
6254 (setup_coding_system, decode_eol, decode_coding, consume_chars):
6255 Honor inhibit-eol-conversion. (Bug #2186)
6256
449148b3
JR
62572009-02-28 Jason Rumney <jasonr@gnu.org>
6258
6259 * coding.c (detect_coding_charset): If not checking latin extra,
6260 fail on characters between 0x80 and 0xA0. (Bug#2354)
6261
a4aee864
EZ
62622009-02-28 Eli Zaretskii <eliz@gnu.org>
6263
6264 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 6265 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 6266
d88bee5a
GM
62672009-02-27 Glenn Morris <rgm@gnu.org>
6268
6269 * callint.c (Finteractive): Doc fix.
6270
a808f22d
KH
62712009-02-27 Kenichi Handa <handa@m17n.org>
6272
6273 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
6274
caf8d60c
CY
62752009-02-27 Chong Yidong <cyd@stupidchicken.com>
6276
6277 * font.c (font_style_to_value): Set value for unknown symbols to
6278 100 instead of 255.
b61137ea
CY
6279 (weight_table, slant_table, width_table): Treat "unspecified" as
6280 the default value.
caf8d60c 6281
1a0de25c
JB
62822009-02-26 Juanma Barranquero <lekktu@gmail.com>
6283
6284 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
6285
8fc45744
JB
62862009-02-25 Juanma Barranquero <lekktu@gmail.com>
6287
107bd7d1
JB
6288 * lread.c (Fload): Stop checking Vloads_in_progress and signal
6289 error as soon as a recursive load is detected.
8fc45744 6290
f097e223
AR
62912009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
6292
6293 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
6294 before caching.
6295
8810a12f
KH
62962009-02-24 Kenichi Handa <handa@m17n.org>
6297
6298 * fontset.c (fontset_find_font): Fix the condition for checking
6299 unavailable font.
6300
2c7d1565
GM
63012009-02-24 Glenn Morris <rgm@gnu.org>
6302
6303 * xfaces.c (Finternal_set_font_selection_order): Remove leading
6304 whitespace that confuses documentation.
6305
a20878b6
MB
63062009-02-23 Miles Bader <miles@gnu.org>
6307
6308 * process.c (Flist_system_processes, Fprocess_attributes)
6309 (syms_of_process): Rename `system-process-attributes' to
6310 `process-attributes'.
6311
b3b58c01
AS
63122009-02-22 Andreas Schwab <schwab@linux-m68k.org>
6313
1b3b981b
AS
6314 * coding.h (struct coding_system): Make safe_charsets a pointer to
6315 unsigned char.
6316 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
6317 being 255.
6318 (SAFE_CHARSET_P): Likewise.
6319 (setup_iso_safe_charsets): Properly setup safe_charsets.
6320 (Fdefine_coding_system_internal): Likewise.
6321 (setup_coding_system): Likewise. Remove unneeded casts.
6322 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
6323 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
6324 unneeded casts.
6325
b3b58c01
AS
6326 * insdel.c (del_range_2): Don't modify gap contents when called
6327 from decode_coding_object. (Bug#1809)
6328
0b6f228c
CY
63292009-02-21 Chong Yidong <cyd@stupidchicken.com>
6330
6331 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
6332 Qfont_object.
6333 (Ftype_of): Recognize font objects.
6334
6335 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
6336
6337 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
6338 moved to data.c.
6339
52f8870b
AR
63402009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
6341
6342 * nsterm.m (x_make_frame_invisible): Unset async_visible,
6343 async_iconified. Based on a patch by Christian Lynbech
6344 <christian.lynbech@tieto.com>.
6345 (EmacsView-windowDidMiniaturize:): Unset async_visible.
6346
7087d5e9
GM
63472009-02-20 Glenn Morris <rgm@gnu.org>
6348
6349 * syntax.c (Fskip_chars_forward): Fix doc typo.
6350
41d2ceef
CY
63512009-02-20 Chong Yidong <cyd@stupidchicken.com>
6352
6353 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
6354
1a3b7ca6
CY
63552009-02-19 Chong Yidong <cyd@stupidchicken.com>
6356
6357 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
6358
73cce38d
KH
63592009-02-19 Kenichi Handa <handa@m17n.org>
6360
6361 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 6362 Don't overflow coding->carryover. (Bug#2370)
73cce38d 6363
a51092ee
DN
63642009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
6365
6366 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
6367
c423ecca
KH
63682009-02-18 Kenichi Handa <handa@m17n.org>
6369
6370 * font.c (font_check_otf_features): Fix handling of `nil' element.
6371 (Ffont_spec): Describe :lang and :otf in the docstring.
6372
4c1958f4
AS
63732009-02-16 Andreas Schwab <schwab@suse.de>
6374
6375 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
6376 string.
6377
5704f39a
KH
63782009-02-16 Kenichi Handa <handa@m17n.org>
6379
6380 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 6381 (Bug#1723)
5704f39a 6382
8f0085aa
CY
63832009-02-14 Chong Yidong <cyd@stupidchicken.com>
6384
a057d86a 6385 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
6386
6387 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
6388 (handle_line_prefix): Suppress wrapping of wrap prefixes.
6389
aff01dd9
EZ
63902009-02-14 Eli Zaretskii <eliz@gnu.org>
6391
6392 * msdos.c (MAX_SCREEN_BUF): New macro.
6393 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
6394 Encode the entire run of glyphs sharing the same face, instead of
6395 doing that one glyph at a time (fixes a bug with displaying
6396 double-size characters).
6397
ba301db3
AR
63982009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
6399
6400 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
6401
6402 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
6403 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 6404 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
6405
6406 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 6407 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 6408
51d861de
SM
64092009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
6410
ac146f82 6411 * keyboard.c (adjust_point_for_property): Allow stopping between two
51d861de
SM
6412 invisible areas.
6413
7fed8996
JR
64142009-02-12 Jason Rumney <jasonr@gnu.org>
6415
631ea4fb
JR
6416 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
6417 (add_font_entity_to_list): Call check_face_name even when family
6418 is unspecified.
6419
cb4a3e42
JR
6420 * w32term.c (x_display_pixel_height, x_display_pixel_width):
6421 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 6422 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 6423
7fed8996 6424 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 6425 raster fonts. (Bug#2219)
7fed8996 6426
895416e3
KH
64272009-02-12 Kenichi Handa <handa@m17n.org>
6428
6429 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
6430 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
6431 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 6432 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
6433 (find_automatic_composition): While looking forward and backward,
6434 check static composition. Fix where to stop looking forward.
6435 (composition_adjust_point): Fix checking of static composition.
6436 (Fcomposition_get_gstring): Pay attention to
1dacf998 6437 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
6438
6439 * lisp.h (fast_looking_at): Extern it.
6440
6441 * search.c (fast_looking_at): New function.
6442
51d861de 6443 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
6444 <struct glyph>.u.cmp.to.
6445 (append_composite_glyph): Likewise.
6446
51d861de 6447 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
6448 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
6449 composition.
51d861de 6450 (append_composite_glyph): Adjust for the change of
895416e3
KH
6451 <strcut glyph>.u.cmp.to.
6452
8510724d
JB
64532009-02-11 Juanma Barranquero <lekktu@gmail.com>
6454
6455 * casetab.c (init_casetab_once):
6456 * coding.c (ALLOC_CONVERSION_WORK_AREA):
6457 * font.c (font_update_lface):
6458 * fontset.c (Fnew_fontset):
6459 * ftfont.c (ftfont_drive_otf):
6460 * xfont.c (xfont_open):
6461 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
6462
294fa707
SM
64632009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
6464
6465 * fileio.c (Fwrite_region): !NILP -> CONSP.
6466
b5bfebec
AS
64672009-02-10 Andreas Schwab <schwab@suse.de>
6468
6469 * process.c (send_process): Properly relocate pointer into data
adab88bd 6470 when using encoded data. (Bug#2272)
b5bfebec 6471
cb84a2be
KH
64722009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
6473
6474 * coding.c (detect_coding_charset): Fix previous change.
6475
89e09428
JR
64762009-02-08 Jason Rumney <jasonr@gnu.org>
6477
6478 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 6479 disappeared while hourglass was displayed. (Bug #2193)
89e09428 6480
4470a277
AS
64812009-02-07 Andreas Schwab <schwab@suse.de>
6482
6483 * unexelf.c (unexec): Fix error message.
6484
3175b12a
AR
64852009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
6486
6487 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 6488 when modal window is active. (Bug #2152)
3175b12a
AR
6489 (applicationShouldTerminate:): Remove now-unneeded while loop
6490 around NSRunAlertPanel.
6491
6492 * nsmenu.m (popupSession): New file-global variable.
6493 (pop_down_menu): End the popupSession before closing dialog.
6494 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
6495 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
6496 don't query NSApp for events (just sleep instead).
6497
8434d0b8
EZ
64982009-02-07 Eli Zaretskii <eliz@gnu.org>
6499
51d861de
SM
6500 * coding.c (syms_of_coding) <translation-table-for-input>:
6501 Modify doc string to discourage use for character code unification.
8434d0b8 6502
aa82edfd
CY
65032009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6504
6505 * atimer.c (run_timers): Update pending_atimers.
6506
2d283c7c
CY
65072009-02-06 Chong Yidong <cyd@stupidchicken.com>
6508
eb306cab
CY
6509 * image.c (svg_load_image): Fix last change.
6510
2d283c7c
CY
6511 * xfns.c (Fx_create_frame): Signal an error if no font is
6512 found (Bug#2147).
6513
4d8e170e
JB
65142009-02-05 Juanma Barranquero <lekktu@gmail.com>
6515
6516 * character.c (syms_of_character) <script-representative-chars>:
6517 Fix typo in docstring.
6518
c96169a0
AR
65192009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
6520
6521 * nsmenu.m (pop_down_menu): New function.
6522 (ns_popup_dialog): Call it on unwind.
6523 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
6524 call timer_check() (Bug#2154).
6525 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
6526 handling_signal is set.
6527 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
6528
31fd7c5c 6529 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
c96169a0
AR
6530
6531 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
6532
6533 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
6534
51d861de
SM
6535 * keyboard.c (poll_for_input_1, handle_async_input):
6536 Set handling_signal under HAVE_NS.
c96169a0 6537
aacd8ba1
GM
65382009-02-04 Glenn Morris <rgm@gnu.org>
6539
6540 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
6541
4cb75c4b
KH
65422009-02-04 Kenichi Handa <handa@m17n.org>
6543
6544 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
6545
6546 * charset.c (Fchar_charset): New optional arg restriction.
6547
6548 * coding.h (coding_system_charset_list): Extern it.
6549
6550 * coding.c (coding_system_charset_list): New function.
6551
6552 * composite.c: Include coding.h and termhooks.h.
6553 (composition_gstring_p): Fix for the terminal case.
6554 (composition_gstring_width): Likewise.
6555 (fill_gstring_body): Likewise.
6556 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
6557 the frame.
6558 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
6559 is within a composition.
867d4bb3 6560 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
6561
6562 * term.c (encode_terminal_code): Fix handling of composition.
6563 (produce_composite_glyph): For static composition, get pixel_width
6564 from struct composition.
6565
826ba17e
AS
65662009-02-02 Andreas Schwab <schwab@suse.de>
6567
6568 * unexelf.c (unexec): Handle unaligned bss offset.
6569
8ad093db
AR
65702009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
6571
6572 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
6573 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 6574
8ad093db
AR
6575 * keyboard.c (handle_interrupt): Don't call
6576 quit_throw_to_read_char() under NS.
d0a76a6e 6577
8ad093db
AR
6578 * blockinput.h: Remove NS-specific code.
6579
4d18a7a2
DN
65802009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
6581
db878925
DN
6582 * dispnew.c (window_change_signal): Don't try to get the size of a
6583 suspended tty frame.
6584 * term.c (Fresume_tty): Resize if the size has changed while the
6585 tty was suspended.
6586
4d18a7a2
DN
6587 * alloc.c (mark_stack): Properly conditionalize previous change.
6588
8984df7c
JB
65892009-01-30 Juanma Barranquero <lekktu@gmail.com>
6590
6591 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
6592 * w32term.c (w32_read_socket) [SYNC_INPUT]:
6593 Remove; this code is not used on Windows.
6594
75f4f1ac
EZ
65952009-01-30 Eli Zaretskii <eliz@gnu.org>
6596
6597 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
6598 EOLs that also has stray ^M characters.
6599
07a1e794
JB
66002009-01-30 Juanma Barranquero <lekktu@gmail.com>
6601
6602 * atimer.c (run_timers, alarm_signal_handler):
6603 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
6604 * w32inevt.c (w32_console_read_socket):
6605 * w32term.c (w32_read_socket):
6606 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
6607
a8b11cc9
CY
66082009-01-30 Chong Yidong <cyd@stupidchicken.com>
6609
6610 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
6611 Initialize it as a relative filename pattern.
6612 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
6613 (Fcall_process_region): Simplify temp file creation using
6614 temporary-file-directory.
6615
c279587b
EZ
66162009-01-29 Eli Zaretskii <eliz@gnu.org>
6617
6618 * msdos.c: Rename pending_signals to msdos_pending_signals.
6619 (sig_suspender, sigprocmask): Adjust.
6620
a8fe3242
CY
66212009-01-29 Chong Yidong <cyd@stupidchicken.com>
6622
6623 * keyboard.c (pending_signals): New var.
6624 (poll_for_input, input_available_signal, init_keyboard): Set it.
6625 (process_pending_signals): New function.
6626
6627 * lisp.h (QUIT): Check pending_signals instead of
6628 interrupt_input_pending. Use process_pending_signals.
6629
51d861de 6630 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 6631
51d861de 6632 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
6633
6634 * sysdep.c (emacs_write): Use process_pending_signals.
6635
6636 * xterm.c (XTread_socket): Update pending_signals.
6637
6638 * w32term.c (w32_read_socket): Update pending_signals.
6639
6640 * w32inevt.c (w32_console_read_socket): Update pending_signals.
6641
6570a1c4
KH
66422009-01-29 Kenichi Handa <handa@m17n.org>
6643
6644 * xftfont.c (xftfont_has_char): New function.
6645 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
6646
d72a4afa
AR
66472009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
6648
6649 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
6650 under GNUstep.
6651 (ns_query_color): New declaration.
6652
6653 * nsterm.m (ns_confirm_quit): New variable.
6654 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
6655 (EmacsApp-applicationShouldTerminate:): Use it.
6656 (EmacsPrefsController): Let user set it.
6657 (ns_query_color): New function.
6658 (ns_defined_color): Use it.
6659 (ns_initialize): Drop.
6660 (ns_term_init): Add two lines from ns_initialize(), and set
6661 input_interrupt_mode to nil.
6662
6663 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 6664 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 6665
9fe78804
KH
66662009-01-28 Kenichi Handa <handa@m17n.org>
6667
6668 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
6669 (fontset_get_font_group): Remember that no font-group is specified
6670 for C.
9fe78804 6671
fa57de36
CY
66722009-01-27 Chong Yidong <cyd@stupidchicken.com>
6673
930600e9
CY
6674 * fns.c (concat): Check for string overflow (bug#1787).
6675
fa57de36
CY
6676 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
6677 Quadruple undo limits (bug#1501).
6678
7179ce7b
KH
66792009-01-27 Kenichi Handa <handa@m17n.org>
6680
6681 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
6682 directly use GT_Get_Char_index.
6683
6684 * xftfont.c (struct xftfont_info): New member `index'.
6685
6686 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 6687 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 6688
5be8fcc0
CY
66892009-01-26 Kenichi Handa <handa@m17n.org>
6690
6691 * fontset.c (fontset_find_font): Fix handling of non-cons return
6692 value of fontset_get_font_group.
6693 (fontset_font): Revert last change.
6694
19ae3e61
JR
66952009-01-26 Jason Rumney <jasonr@gnu.org>
6696
6697 * w32font.c (w32font_list_internal): Return quickly if registry is
6698 unknown. Simplify final return.
6699 (add_font_entity_to_list): Break complex logic down into more
6700 manageable chunks. Move unknown registry check to
6701 w32font_list_internal.
6702
8612b71a
AR
67032009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
6704
6705 Changes to remove Feval calls from GUI under NS.
6706
d8038940
JB
6707 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
6708 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
6709 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
6710
6711 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
6712 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
6713 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
6714 instead of NON_ASCII_KEYSTROKE_EVENT.
6715 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
6716 (EmacsApp-applicationShouldTerminate:): Query user.
6717 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
6718 instead of Feval.
6719
6720 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
6721
6722 * keyboard.c (kbd_buffer_get_event): Check for it.
6723 (keys_of_keyboard): Define lispy keys for
6724 ns-put/unput-working-text.
6725
6726 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
6727 versions.
6728 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
6729
6288ae55
CY
67302009-01-25 Chong Yidong <cyd@stupidchicken.com>
6731
6732 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 6733 setting current_buffer directly. (Bug#2044)
6288ae55 6734
289e7f8f
CY
67352009-01-24 Chong Yidong <cyd@stupidchicken.com>
6736
5ce87308 6737 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 6738 any work. (Bug#1952, bug#1990).
5ce87308 6739
64cc3cf6 6740 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 6741
b3243e6f
AR
67422009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
6743
6744 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
6745 (ns_no_defaults): New declaration.
6746 (main): Use it.
e0d2e69a 6747
d900b2af 6748 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 6749
d900b2af 6750 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 6751
d900b2af
AR
6752 * nsterm.m (ns_no_defaults): New variable.
6753 (ns_initialize): Don't read defaults when ns_no_defaults.
6754 (EmacsView-readSelectionFromPasteboard:)
6755 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 6756 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
6757 (ns_dumpglyphs_stretch): New function.
6758 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 6759 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 6760
e0d2e69a
AR
6761 * nsimage.m (setPixmapData:): Set to ignore image DPI.
6762
3ac71f5d
CY
67632009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
6764
6765 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
6766 call for Sparc64.
6767
3fe53a83
AR
67682009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
6769
6770 * nsfns.m:
6771 * nsgui.h:
6772 * nsmenu.m:
6773 * nsselect.m:
6774 * nsterm.h:
6775 * nsterm.m: Remove '23' comments that indicated code added during
6776 update from emacs-20 -> emacs-23.
6777
10f87c6f 67782009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
6779
6780 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 6781 ns_alternate_modifier. (Bug#1217)
a3b53a85 6782
c7cef62d
AR
6783 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
6784 Display all shortcuts, including those w/o super modifier.
6785
575fb8bd
AR
6786 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
6787
918b848b
CY
67882009-01-22 Chong Yidong <cyd@stupidchicken.com>
6789
6790 * fileio.c (Vwrite_region_post_annotation_function)
6791 (Vwrite_region_annotation_buffers): New vars.
6792 (build_annotations_unwind): Just reset
6793 Vwrite_region_annotation_buffers.
6794 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
6795 Call write-region-post-annotation-function.
6796 (build_annotations): Add to Vwrite_region_annotation_buffers if
6797 buffer changes.
6798
a39e2539
AR
67992009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
6800
6801 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
6802 Tiger.
51d861de
SM
6803 * nsfns.m (ns_do_applescript):
6804 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 6805
35ed44db
AR
68062009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
6807
6808 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
6809
cbe0b5bf
AR
68102009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
6811
6812 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 6813
6049d3a0
AR
6814 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
6815
6816 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
6817 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
6818 handle Ctrl-tab. (Bug#1841)
6819 (ns_get_color): Use unsigned long long for scanned hex string value.
6820 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 6821 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 6822 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 6823 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 6824 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 6825 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 6826 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 6827
d3810c21 6828 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 6829 DPI. (Bug#1316)
d3810c21
AR
6830 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
6831 values in onTiger section.
4c7077c3 6832
e301e634
CY
68332009-01-19 Chong Yidong <cyd@stupidchicken.com>
6834
7f82490b
CY
6835 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
6836 Check return value of font_spec_from_name.
64cc3cf6 6837 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
6838
6839 * font.c (font_spec_from_name): Return Qnil if font name could not
6840 be parsed.
6841 (font_parse_name): Treat a `?' character as part of an XLFD.
6842
e301e634
CY
6843 * fns.c (Fsubstring): Doc fix.
6844
1c0db158
KH
68452009-01-19 Kenichi Handa <handa@m17n.org>
6846
51d861de 6847 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
6848 (ftfont_list): Likewise.
6849
acf20901
JB
68502009-01-18 Juanma Barranquero <lekktu@gmail.com>
6851
fff4e459
JB
6852 * dbusbind.c (Fdbus_register_signal):
6853 * process.c (conv_sockaddr_to_lisp):
6854 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
6855
acf20901
JB
6856 * callproc.c (Fgetenv_internal): Doc fix.
6857
e7abcdfb
CY
68582009-01-16 Chong Yidong <cyd@stupidchicken.com>
6859
6860 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
6861 it is not even used.
6862
b60861e6
GM
68632009-01-16 Glenn Morris <rgm@gnu.org>
6864
6865 * font.c (Ffont_variation_glyphs): Silence compiler.
6866
8db52afe
JB
68672009-01-15 Juanma Barranquero <lekktu@gmail.com>
6868
6869 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
6870 Reported by David Robinow <drobinow@gmail.com>.
6871
4cddb209
KH
68722009-01-15 Kenichi Handa <handa@m17n.org>
6873
51d861de 6874 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 6875
f247f67b
JR
68762009-01-14 Jason Rumney <jasonr@gnu.org>
6877
6878 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 6879 never a fontset. (Bug#1562)
f247f67b 6880
f56a4450
KH
68812009-01-14 Kenichi Handa <handa@m17n.org>
6882
6883 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 6884 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 6885
4e99855e
CY
68862009-01-13 Chong Yidong <cyd@stupidchicken.com>
6887
6888 * font.c (font_clear_prop): If clearing the family, clear the font
6889 width index too.
6890
fff4e459 6891 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 6892
24f01470
JB
68932009-01-12 Juanma Barranquero <lekktu@gmail.com>
6894
6895 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
6896 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
6897 functions, use sizeof.
6898
a41240a3
MR
68992009-01-12 Martin Rudalics <rudalics@gmx.at>
6900
6901 * keyboard.c (read_char): Fix case where last_nonmenu_event
6902 returned a bad value with submenus. (Bug#447)
6903
944636b8
CY
69042009-01-12 Chong Yidong <cyd@stupidchicken.com>
6905
6906 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
6907 family, clear the font width index too.
6908
0dad7c6f
JR
69092009-01-11 Jason Rumney <jasonr@gnu.org>
6910
6911 * keyboard.c (cmd_error_internal): Exit when errors occur before
6912 frame creation and not in daemon mode. (Bug#1836)
6913
7c2363af
CY
69142009-01-10 Chong Yidong <cyd@stupidchicken.com>
6915
6916 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
6917 of a display vector, backtrack.
6918 (try_window_reusing_current_matrix): Check glyph type before
6919 referencing charpos member.
6920
97b1b294
EZ
69212009-01-10 Eli Zaretskii <eliz@gnu.org>
6922
6923 Fix Bug #876:
6924
6925 * coding.c (inhibit_null_byte_detection): New variable.
6926 (detect_coding, detect_coding_system): Don't pay attention to null
6927 bytes if inhibit_null_byte_detection is non-zero.
51d861de 6928 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
6929 <inhibit-iso-escape-detection>: Doc fix.
6930
4624b6e3
JR
69312009-01-09 Jason Rumney <jasonr@gnu.org>
6932
6933 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 6934 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
6935 Only report Unicode Plane 2 fonts as unicode-sip.
6936
323b840c
CY
69372009-01-09 Chong Yidong <cyd@stupidchicken.com>
6938
51d861de
SM
6939 * xfaces.c (Fx_font_family_list): Delete function.
6940 Move compatibility version to faces.el.
323b840c 6941
51d861de 6942 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 6943
eba7400d
MR
69442009-01-09 Martin Rudalics <rudalics@gmx.at>
6945
6946 * frame.c (x_set_frame_parameters): Remember requested value for
6947 fullscreen before it's reset by the parameter handler.
6948
4b09796d
GM
69492009-01-09 Glenn Morris <rgm@gnu.org>
6950
6951 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 6952 (last_command_event): ... and update all users.
4b09796d
GM
6953 (last_input_char): For clarity, rename to...
6954 (last_input_event): ... and update all users.
6955 (last-command-char, last-input-char): Move to subr.el as aliases.
6956 * cmds.c, commands.h: Update for last_command_char rename.
6957
14ccea62
CY
69582009-01-08 Chong Yidong <cyd@stupidchicken.com>
6959
51d861de 6960 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 6961
5f004711
JR
69622009-01-08 Jason Rumney <jasonr@gnu.org>
6963
6964 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
6965 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
6966 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
6967 Don't declare.
fff4e459 6968 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
6969 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
6970
b71f6f73
KH
69712009-01-07 Kenichi Handa <handa@m17n.org>
6972
50b06221 6973 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 6974 remember the coding system used for decoding in
50b06221
KH
6975 coding_system (Bug#1039).
6976
b71f6f73 6977 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 6978 breaking the loop. (Bug#870)
b71f6f73
KH
6979 (decode_coding_utf_16, decode_coding_emacs_mule)
6980 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
6981 (decode_coding_charset): Likewise.
6982
56f668f7
MR
69832009-01-05 Martin Rudalics <rudalics@gmx.at>
6984
6985 * frame.c (x_set_frame_parameters): Make sure height (width) get
6986 applied when fullwidth (fullheight) is set. (Bug#1522)
6987
5da9424d
JB
69882009-01-04 Juanma Barranquero <lekktu@gmail.com>
6989
6990 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
6991 (utc_base): Declare as ULONGLONG, not long double.
6992 (convert_time_raw): Delete.
6993 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
6994 (initialize_utc_base): New function.
6995 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
6996 (convert_from_time_t): Use initialize_utc_base; compute result with
6997 64-bit arithmetic.
6998 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
6999
c4605e09
EZ
70002009-01-03 Eli Zaretskii <eliz@gnu.org>
7001
9acef61c 7002 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
7003 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
7004 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
7005 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
7006 [!subprocesses]: Define.
7007 (syms_of_process) [!subprocesses]: Intern and staticpro them.
7008 (Flist_system_processes, Fsystem_process_attributes)
7009 [!subprocesses]: Call list_system_processes and
7010 system_process_attributes instead of returning Qnil.
7011
9acef61c
JB
7012 * dosfns.c (system_process_attributes, list_system_processes):
7013 New functions.
c4605e09
EZ
7014
7015 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
7016
7017 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
7018 Don't use the default (no-op) implementation.
7019
8b7d0a16
JR
70202009-01-03 Jason Rumney <jasonr@gnu.org>
7021
a6d46bc1
JR
7022 * keyboard.c (parse_modifiers_uncached): Wheel events are
7023 clicks (bug#687).
7024
8b7d0a16
JR
7025 * w32term.c (x_query_colors, x_query_color): New functions.
7026
7027 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
7028 (svg_load_image): Cast returned pointers from dynamically loaded
7029 functions. Eliminate W32 specific code.
7030
bfe11752
DN
70312009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
7032
89e2438a
DN
7033 * nsfns.m (x_set_foreground_color, x_set_background_color)
7034 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
7035 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
7036 x_ prefix instead of ns_. Update references.
7037 (syms_of_nsfns): Add a FIXME comment.
7038
7039 * nsterm.m (x_set_cursor_type): New prototype.
7040 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
7041
bfe11752
DN
7042 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
7043 for Solaris instead of incorrectly providing Qutime and Qcutime.
7044
031da700
EZ
70452009-01-02 Eli Zaretskii <eliz@gnu.org>
7046
7047 * w32.c (process_times): Compute sum of utime and stime.
7048 (system_process_attributes): Add Qtime to the alist.
7049
7050 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
7051 and add them to the alist.
7052
7053 * process.c (top level) <Qtime, Qctime>: New variables.
7054 (syms_of_process): staticpro them.
7055 (Fsystem_process_attributes): Add their documentation to the doc
7056 string.
7057
7058 * process.h: Declare Qtime and Qctime.
7059
df23bf08
JR
70602009-01-02 Jason Rumney <jasonr@gnu.org>
7061
9acef61c 7062 * image.c (Qgobject): New symbol.
df23bf08
JR
7063 (syms_of_image): Initialize it.
7064 (init_svg_functions): Load some functions from gobject library.
7065
5bbdf7aa
DN
70662009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
7067
7068 * frame.c (make_terminal_frame): Remove redundant code and useless
7069 block.
7070
63136da6
AS
70712009-01-01 Andreas Schwab <schwab@suse.de>
7072
7073 * process.c (conv_sockaddr_to_lisp): Add workaround for
7074 getsockname bug on BSD.
7075
9ef69046
CY
70762009-01-01 Chong Yidong <cyd@stupidchicken.com>
7077
d6fafbe0
CY
7078 * xfns.c (x_create_tip_frame): Set border width of the X window.
7079
51d861de 7080 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 7081
f9c34147
JR
70822009-01-01 Jason Rumney <jasonr@gnu.org>
7083
9acef61c 7084 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
7085 Don't block input, as per earlier xterm.c changes.
7086
f5497e45
AR
70872008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
7088
7089 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
7090 (ns_appkit_version_int): New function.
7091 (x-server-version): Use ns_appkit_version_int and follow 21+
7092 convention of returning 3 integers.
7093
c19cab20
KH
70942008-12-30 Kenichi Handa <handa@m17n.org>
7095
7096 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
7097 (CHAR_SURROGATE_PAIR_P): New macro.
7098
7099 * font.h (struct font_driver): New member get_variation_glyphs.
7100
9acef61c 7101 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
7102 (Ffont_variation_glyphs): New function.
7103 (syms_of_font): Defsubr it.
7104
7105 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
7106 ftfont_variation_glyphs.
7107 (setup_otf_gstring): New function.
7108 (ftfont_drive_otf): Use it.
7109 (ftfont_shape_by_flt): Handle variation selector.
7110 (ftfont_variation_glyphs): New function.
7111
28cd591f
MR
71122008-12-30 Martin Rudalics <rudalics@gmx.at>
7113
7114 * frame.c (Vemacs_iconified): Remove.
7115
7f714baf
JR
71162008-12-30 Jason Rumney <jasonr@gnu.org>
7117
7118 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 7119 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 7120
9d2d22ab
CY
71212008-12-30 Chong Yidong <cyd@stupidchicken.com>
7122
7123 * indent.c (Fvertical_motion): Don't advance iterator if we have
7124 reseated to the desired position.
7125
7126 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
7127 checking for pos match.
7128
545312c2
KH
71292008-12-30 Kenichi Handa <handa@m17n.org>
7130
1ede3eb6
KH
7131 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
7132 just get the low 8-bit of the code.
7133
545312c2
KH
7134 * font.c (font_intern_prop): Validate str as multibyte.
7135
bd7bbf29
DN
71362008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
7137
31e0750e
DN
7138 * dispextern.h (struct face): Move lface and hash from the middle
7139 of bitfields.
7140
bd7bbf29
DN
7141 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
7142
b5672e7c
DN
71432008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
7144
7145 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
7146 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
7147 instead of intervals.h.
7148
d704470f
AS
71492008-12-26 Andreas Schwab <schwab@suse.de>
7150
7151 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
7152 cons.
7153
54b33868
MR
71542008-12-26 Martin Rudalics <rudalics@gmx.at>
7155
7156 * textprop.c (Qminibuffer_prompt): New variable.
7157 (syms_of_textprop): Initialize it.
7158 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
7159 in minibuffer-prompt face. (Bug#1662)
7160
40b615d6
JR
71612008-12-25 Jason Rumney <jasonr@gnu.org>
7162
7163 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
7164
baae5c2d
JR
71652008-12-24 Jason Rumney <jasonr@gnu.org>
7166
7167 * ralloc.c (r_alloc_reset_variable): New function.
7168
7169 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 7170 record of what points where. (Bug#716)
baae5c2d 7171
a9051c88
DN
71722008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
7173
7174 * minibuf.c (read_minibuf): Follow the non-interactive case when
7175 running as a daemon, before detaching.
7176
8b146312
AS
71772008-12-22 Andreas Schwab <schwab@suse.de>
7178
7179 * buffer.c (init_buffer): Use realloc instead of xrealloc.
7180 * gtkutil.c (free_widget_value): Use xfree instead of free.
7181
56f2de10
MR
71822008-12-22 Martin Rudalics <rudalics@gmx.at>
7183
7184 * frame.c (delete_frame): New function derived from
7185 Fdelete_frame to handle Qnoelisp value for FORCE argument.
7186 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
7187 (Fdelete_frame): Call delete_frame. Remove line from doc-string
7188 saying that FORCE non-nil doesn't run `delete-frame-functions'.
7189 * frame.h: Extern delete_frame.
7190 * window.c (window_loop):
7191 * terminal.c (delete_terminal):
7192 * xterm.c (x_connection_closed):
7193 * xfns.c (Fx_hide_tip):
9acef61c 7194 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 7195
1fc200d6
JR
71962008-12-21 Jason Rumney <jasonr@gnu.org>
7197
7198 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
7199 when character maps to .notdef character.
7200
5e252df2
SM
72012008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
7202
7203 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
7204
99b72cc4
JR
72052008-12-20 Jason Rumney <jasonr@gnu.org>
7206
7207 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 7208 a graphical frame on Windows. (Bug#1325)
99b72cc4 7209
acc49a52
JD
72102008-12-20 Jan Djärv <jan.h.d@swipnet.se>
7211
7212 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
7213
6ea15123
CY
72142008-12-20 Chong Yidong <cyd@stupidchicken.com>
7215
7216 * minibuf.c (Fread_buffer): Doc fix.
7217
b2dab6c8
JR
72182008-12-20 Jason Rumney <jasonr@gnu.org>
7219
54ea0c87 7220 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 7221 server name in UNC paths. (Bug#719)
54ea0c87 7222
b2dab6c8 7223 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 7224 charbuf. (Bug#1035)
b2dab6c8 7225
6d1921be
DN
72262008-12-19 Daniel Engeler <engeler@gmail.com>
7227
7228 * sysdep.c (serial_configure): Fix typo.
7229
53934c98
DN
72302008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
7231
7232 * sysdep.c: Include alloca.h.
f4f634e8
DN
7233 (system_process_attributes): Add implementation for Solaris.
7234
7235 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 7236
06e111a6
DN
72372008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
7238
7239 Reorganize implementation of Flist_system_processes and
7240 Fsystem_process_attributes. No functional changes.
7241 * process.c: Don't #include pwd.h, grp.h and limits.h.
7242 (Flist_system_processes): Just call list_system_processes.
7243 (Fsystem_process_attributes): Just call system_process_attributes.
7244 (procfs_list_system_processes, time_from_jiffies)
7245 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
7246 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
7247
7248 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
7249 (list_system_processes): Rename from
7250 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
7251 Provide a do nothing implementation.
7252 (system_process_attributes): Rename from
7253 procfs_list_system_processes.
7254 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 7255 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
7256
7257 * w32.c (list_system_processes): Rename from
7258 w32_list_system_processes.
7259 (system_process_attributes): Rename from
7260 w32_system_process_attributes.
7261
7262 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
7263
7264 * process.h (w32_list_system_processes)
7265 (w32_system_process_attributes): Remove.
362654a6
JB
7266 (list_system_processes, system_process_attributes):
7267 New prototypes.
06e111a6 7268
6a705b23
KH
72692008-12-19 Kenichi Handa <handa@m17n.org>
7270
7271 * xfont.c (xfont_decode_coding_xlfd): New function.
7272 (xfont_encode_coding_xlfd): New function.
7273 (xfont_list_pattern): Decode XLFD by iso-8859-1.
7274 (xfont_list): Decode and encode XLFD by iso-8859-1.
7275 (xfont_match): Likewise.
7276 (xfont_list_family): Likewise.
7277 (xfont_open): Likewise.
7278
d66c0241 7279 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
7280 names are utf-8.
7281
d66c0241 7282 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
7283 names are utf-8.
7284
5a130941
JD
72852008-12-18 Jan Djärv <jan.h.d@swipnet.se>
7286
7287 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
7288 changed.
bfd20325
JD
7289 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
7290 clicked on a detached tool bar button.
5a130941 7291
fd95644b
DN
72922008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
7293
7294 * emacs.c (main): Print and error and exit when no data is read
7295 from the pipe.
7296
e6eee6ae
JR
72972008-12-17 Jason Rumney <jasonr@gnu.org>
7298
7299 * w32font.c (w32font_has_char): Always return -1.
7300
a35dd56b
KH
73012008-12-16 Kenichi Handa <handa@m17n.org>
7302
7303 * font.c (font_open_entity): Fix previous change.
7304
0e3635c2
DN
73052008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
7306
7307 * process.c: Include <limits.h>.
7308
d4835507 73092008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
7310
7311 * font.c (font_update_drivers): Fix mistake in reconstructing the
7312 driver list.
7313
73142008-12-16 Chong Yidong <cyd@stupidchicken.com>
7315
7316 * font.c (font_clear_cache): Fix format of font cache data.
7317
e2cbc401
CY
73182008-12-15 Chong Yidong <cyd@stupidchicken.com>
7319
7320 * xftfont.c (xftfont_open): Free Xft font pattern if
7321 XftFontOpenPattern fails.
7322
7323 * xterm.c (x_free_frame_resources): Remove extraneous call to
7324 free_frame_faces.
7325
b131d535
CY
73262008-12-13 Chong Yidong <cyd@stupidchicken.com>
7327
7328 * xterm.c (x_delete_display): Move xim_close_dpy call to
7329 x_delete_terminal.
7330 (x_delete_terminal): Call xim_close_dpy.
7331
e6df5336
JR
73322008-12-13 Jason Rumney <jasonr@gnu.org>
7333
7334 * w32font.c (intern_font_name): New function.
7335 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
7336 (w32font_open_internal, Fx_select_font): Decode font name.
7337 (fill_in_logfont, list_all_matching_fonts): Encode font name.
7338
7339 * w32font.h (intern_font_name): Declare new function.
7340
7341 * w32uniscribe.c (add_opentype_font_name_to_list):
7342 Use intern_font_name.
7343
20d68145
CY
73442008-12-13 Chong Yidong <cyd@stupidchicken.com>
7345
9f2554de
CY
7346 * frame.c (Fdelete_frame): Call free_font_driver_list.
7347
3d9bec9a
CY
7348 * font.c (free_font_driver_list): Implement missing function.
7349
20d68145
CY
7350 * w32term.c (w32_term_init): Don't initialize the image cache
7351 here; it will be done in init_frame_faces.
7352
7353 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
7354 (struct x_display_info): Remove unused member null_pixel. New
7355 member xim_callback_data.
7356
7357 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
7358 (xim_initialize): Save pointer to callback function data.
7359 (xim_close_dpy): Free callback function data. Call XCloseIM,
7360 reverting 2008-11-04 change by David Smith.
7361 (x_term_init): Don't initialize the image cache here; it will be
7362 done in init_frame_faces. Remove ancient "null_pixel" cruft.
7363 (x_delete_display): Free x_dnd_atoms member.
7364
96f9306b
KH
73652008-12-13 Kenichi Handa <handa@m17n.org>
7366
6dec9044
JB
7367 * font.c (font_rescale_ratio): Moved from xfaces.c.
7368 Argument type changed. Handle a font-spec too.
96f9306b 7369 (font_score): Check Vface_font_rescale_alist.
6dec9044 7370 (font_open_entity): Likewise. (Bug#1547)
96f9306b
KH
7371
7372 * xfaces.c (font_rescale_ratio): Moved to font.c.
7373
8d5b4964
CY
73742008-12-13 Chong Yidong <cyd@stupidchicken.com>
7375
7376 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
7377
e6df5336
JR
73782008-12-12 Jason Rumney <jasonr@gnu.org>
7379
7380 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
7381 Vwindow_system_version to the real w32 major version.
7382
97c6058a
DN
73832008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
7384
7385 * term.c (init_tty): Move setting the terminal name before the
7386 potential user: maybe_fatal.
7387
ec4e88d7
CY
73882008-12-11 Chong Yidong <cyd@stupidchicken.com>
7389
d4835507
JB
7390 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
7391 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 7392
b4233ec9
JR
73932008-12-11 Jason Rumney <jasonr@gnu.org>
7394
8ec71e23 7395 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 7396 SYMBOL_CHARSET. (Bug#547)
8ec71e23 7397
b4233ec9 7398 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 7399 size for surrogates. (Bug#1096, bug#872)
b4233ec9 7400
011a0143
JB
74012008-12-11 Juanma Barranquero <lekktu@gmail.com>
7402
7403 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
7404
3c309f34
JB
74052008-12-11 Juanma Barranquero <lekktu@gmail.com>
7406
7407 * process.c (Fsystem_process_attributes, syms_of_process):
7408 Fix typo in name of Ssystem_process_attributes.
7409 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
7410
fedc6ab5
JB
74112008-12-11 Juanma Barranquero <lekktu@gmail.com>
7412
7413 * syntax.c (Fmodify_syntax_entry): Doc fix.
7414
ba3de0e8
JB
74152008-12-10 Juanma Barranquero <lekktu@gmail.com>
7416
7417 * font.c (Ffont_spec): Move usage to end of docstring.
7418
174f1c74
JR
74192008-12-10 Jason Rumney <jasonr@gnu.org>
7420
7421 * w32font.c (Qcham): New symbol.
7422 (font_supported_scripts): Add cham, and comments for other new
7423 scripts in bitfield from OpenType spec.
9d32f818
JR
7424 (add_font_entity_to_list): Limit unicode-sip fonts to those that
7425 contain characters beyond the bmp.
174f1c74 7426
7b649478
KH
74272008-12-10 Kenichi Handa <handa@m17n.org>
7428
7429 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 7430 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
7431 Qunicode_sip.
7432
2133e2d1
JB
74332008-12-10 Juanma Barranquero <lekktu@gmail.com>
7434
7435 * coding.c (QCdefault_char): Rename from QCdefalut_char.
7436 (Fcoding_system_put): Use QCdefault_char.
7437 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
7438
9af886ee
CY
74392008-12-09 Chong Yidong <cyd@stupidchicken.com>
7440
74d819eb
CY
7441 * xftfont.c (syms_of_xftfont): Fix typo.
7442
4ccfa1c0 7443 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 7444
7c19d3ae
DN
74452008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
7446
7447 * emacs.c (main): Close daemon_pipe on exec.
7448
567826bb
CY
74492008-12-08 Chong Yidong <cyd@stupidchicken.com>
7450
7451 * termchar.h (struct tty): New members termcap_term_buffer and
7452 termcap_strings_buffer.
7453
7454 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 7455 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
7456 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
7457 All callers changed.
7458 (init_tty): Store termcap data and string buffers in new struct
7459 tty members termcap_term_buffer and termcap_strings_buffer.
7460 (delete_tty): Free them.
4ccfa1c0 7461 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 7462
aa96c42b
SZ
74632008-12-07 Seiji Zenitani <zenitani@mac.com>
7464
7465 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 7466 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 7467
b7e1d896
CY
74682008-12-06 Chong Yidong <cyd@stupidchicken.com>
7469
7470 * coding.c (make_conversion_work_buffer): Disable buffer
7471 modification hooks in the work buffer.
7472
b5ec91a5
EZ
74732008-12-05 Eli Zaretskii <eliz@gnu.org>
7474
7475 * process.c (procfs_system_process_attributes): If `nread' has a
7476 negative value, assign zero to it.
7477
a5d2a52b
CY
74782008-12-05 Chong Yidong <cyd@stupidchicken.com>
7479
68c5540b 7480 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 7481
7bf1bb21
KH
74822008-12-05 Kenichi Handa <handa@m17n.org>
7483
7484 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
7485 second character is a combining character.
7486
2fdc7d00
EZ
74872008-12-05 Eli Zaretskii <eliz@gnu.org>
7488
7489 * process.c (procfs_system_process_attributes): Don't use cmd,
7490 cmdsize, and q without initializing them first.
7491
bf6bfba8
JR
74922008-12-04 Jason Rumney <jasonr@gnu.org>
7493
7494 * w32font.c (w32font_draw): Initialize orig_clip before getting
7495 it, and delete it when finished.
7496
a3b1a468
DN
74972008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
7498
7499 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
7500 case when running as a daemon before detaching.
7501
8b8be8eb
JB
75022008-12-03 Juanma Barranquero <lekktu@gmail.com>
7503
805f2638 7504 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 7505
b1bde622
KH
75062008-12-03 Kenichi Handa <handa@m17n.org>
7507
e500c47d
KH
7508 * font.c (font_at): Set `multibyte' at first.
7509
ca516334
KH
7510 * coding.c (decode_coding_charset): Check type of an element of
7511 vector VALIDS.
7bf1bb21 7512 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 7513
4ccfa1c0 7514 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
7515 (font_for_char): Likewise.
7516
1e5ecd37
CY
75172008-12-03 Chong Yidong <cyd@stupidchicken.com>
7518
d5b01609 7519 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
7520 (font_update_lface): Handle fonts with corrupted size specs,
7521 i.e. non-int and non-float.
d5b01609 7522
11e3a6e4 7523 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 7524 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 7525 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 7526
ab06788b
CY
7527 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
7528
1e5ecd37 7529 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 7530 underline_minimum_offset for underline position.
1e5ecd37 7531
63c125ab
DN
75322008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
7533
7534 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
7535
7536 * character.c (c_string_width): Specify the type for LEN.
7537
3a8406e1
KH
75382008-12-03 Kenichi Handa <handa@m17n.org>
7539
4ccfa1c0 7540 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 7541 (decode_coding_utf_8): Likewise.
4ccfa1c0 7542 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 7543 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 7544
651df7d9
CY
75452008-12-02 Chong Yidong <cyd@stupidchicken.com>
7546
7547 * keyboard.c (make_lispy_position): Only use PT if the selected
7548 window is current.
7549
1f625c6c
AS
75502008-12-02 Andreas Schwab <schwab@suse.de>
7551
f7741ce9
AS
7552 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
7553
1f625c6c
AS
7554 * doprnt.c (doprnt1): Fix size of charbuf.
7555
92bc2678
CY
75562008-12-02 Chong Yidong <cyd@stupidchicken.com>
7557
7558 * keyboard.c (timer_check): Revert last change.
7559
93b9e8cc
JB
75602008-12-02 Juanma Barranquero <lekktu@gmail.com>
7561
7562 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
7563
fd7a37d5
JB
75642008-12-01 Juanma Barranquero <lekktu@gmail.com>
7565
7566 * makefile.w32-in: Update dependencies.
7567 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
7568
c115043b
AS
75692008-12-01 Andreas Schwab <schwab@suse.de>
7570
7571 * font.c (register_font_driver): Use xmalloc.
7572 (font_put_frame_data): Likewise.
7573
f5668d2a
CY
75742008-12-01 Chong Yidong <cyd@stupidchicken.com>
7575
860d96be
CY
7576 * xfaces.c (realize_x_face): Make abort condition clearer.
7577
f5668d2a
CY
7578 * gtkutil.c (update_frame_tool_bar): Initialize variable.
7579
379c17e7
CY
75802008-11-30 Chong Yidong <cyd@stupidchicken.com>
7581
7582 * keyboard.c (timer_check): After a timer runs, ensure that the
7583 selected window's buffer is current.
7584
35f36d65
JB
75852008-11-30 Juanma Barranquero <lekktu@gmail.com>
7586
f952c61c
JB
7587 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
7588 It was accidentally restored by the Unicode merge.
7589
35f36d65
JB
7590 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
7591
b23077df
JB
75922008-11-29 Juanma Barranquero <lekktu@gmail.com>
7593
7594 * w32proc.c: Include "coding.h".
7595 (Fw32_short_file_name): Encode filename passed to Windows API.
7596 (Fw32_long_file_name): Encode filename passed to Windows API and
7597 decode back the result. (Bug#1433)
7598
b8ebe9dd
KH
75992008-11-29 Kenichi Handa <handa@m17n.org>
7600
8cc53f96
KH
7601 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
7602 not before accessing it.
7603
b8ebe9dd
KH
7604 * charset.c (Fdefine_charset_internal): After calculating
7605 min_char, max_char, and fastmap, copy the charset structure again.
7606 (encode_char): Fix the previous change.
7607
59bc82c0
SZ
76082008-11-28 Seiji Zenitani <zenitani@mac.com>
7609
7610 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
7611
7612 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
7613
7614 * nsterm.m (x_set_frame_alpha): New function.
7615
32247e3d
EZ
76162008-11-27 Eli Zaretskii <eliz@gnu.org>
7617
7618 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
7619
b003e5ff
JB
76202008-11-27 Juanma Barranquero <lekktu@gmail.com>
7621
7622 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
7623 pointer to check_face_name.
7624
708550f5
KH
76252008-11-27 Kenichi Handa <handa@m17n.org>
7626
7627 * category.h (SET_CATEGORY_SET): Call set_category_set.
7628 (set_category_set): Extern it.
7629
7630 * category.c (hash_get_category_set): New function.
7631 (Fmodify_category_entry): Adjusted for the change of
7632 char_table_ref_and_range. Call hash_get_category_set to get a
7633 category set to store in the table.
7634
7635 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
7636 Funify_charset.
7637
2ae37cf0 7638 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
7639 (DECODE_CHAR): Check if the decoder vector is ready.
7640 (ENCODE_CHAR): Check if the encoder char-table is ready.
7641 (maybe_unify_char): Extern it.
7642
7643 * charset.c (Vchar_unified_charset_table): Delete it.
7644 (inhibit_load_charset_map): New variable.
7645 (temp_charset_work): New variable.
7646 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
7647 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
7648 New macros.
7649 (load_charset_map): Meaning of control_flag changed. If
7650 inhibit_load_charset_map is nonzero, setup a table in
7651 temp_charset_work.
7652 (load_charset): New argument control_flag.
7653 (map_charset_for_dump): New function.
7654 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
7655 map_charset_for_dump.
7656 (Fdefine_charset_internal): If the charset method is MAP, load
7657 mapping tables by calling load_charset.
7658 (Funify_charset): Don't load a mapping table but directly set
7659 Vchar_unify_table.
7660 (maybe_unify_char): New function.
7661 (decode_char): Don't handle the deleted method MAP_DEFERRED.
7662 Handle the case of inhibit_load_charset_map being nonzero.
7663 (encode_char): Don't handle the deleted method MAP_DEFERRED.
7664 Handle the case of inhibit_load_charset_map being nonzero.
7665 (Fclear_charset_maps): Just free temp_charset_work.
7666 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
7667 variable.
7668
7669 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
7670 change of char_table_ref_and_range.
7671 (char_table_ref_and_range): Change the meaning of argument FROM
7672 and TO. Now the caller must provide initial values for *FROM
7673 and *TO.
7674
7675 * fontset.c (fontset_add): Adjusted for the change of
7676 char_table_ref_and_range.
7677 (fontset_get_font_group): Likewise.
7678 (Ffontset_info): Likewise.
7679
7680 * keymap.c (describe_vector): Adjusted for the change of
7681 char_table_ref_and_range. For char-table, put boundary between
7682 non-ASCII and 8-bit characters.
7683
7684 * print.c (print_object): For bool-vector, delete unnecessary
7685 check of ASCII_BYTE_P.
7686
9196133b
JR
76872008-11-26 Jason Rumney <jasonr@gnu.org>
7688
7689 * w32font.c (w32font_open_internal): Don't include external
9acef61c 7690 leading in font height. (Bug#879)
9196133b 7691
9f688acf
GM
76922008-11-26 Glenn Morris <rgm@gnu.org>
7693
7694 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
7695 redefinition with ifdef. (Bug#1383)
7696
90d19aff
AR
76972008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
7698
7699 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
7700
4ccfa1c0 77012008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
7702
7703 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
7704 New EmacsView methods.
7705 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
7706 Fixes bug #1048,1357,1414.
7707
77082008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
7709
7710 Fix bug #1362.
7711 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
7712 is not an indexed color.
7713 * nsterm.m (free_indexed_color): Add argument checking.
7714 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
7715
e7d5ecb3
CY
77162008-11-24 Chong Yidong <cyd@stupidchicken.com>
7717
7718 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
7719 Document confirm-after-completion value for
7720 minibuffer-completion-confirm.
7721
c285743c
JR
77222008-11-24 Jason Rumney <jasonr@gnu.org>
7723
7724 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
7725 warning.
7726
b0857706
JR
77272008-11-23 Jason Rumney <jasonr@gnu.org>
7728
7729 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
7730 restored before returning.
7731
7732 * w32font.c (check_face_name): New function.
7733 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 7734 fonts. (Bug#642)
b0857706 7735
ee50ff07
MR
77362008-11-22 Martin Rudalics <rudalics@gmx.at>
7737
7738 * buffer.c (Fswitch_to_buffer): Reword and mention new option
7739 confirm-nonexistent-file-or-buffer in doc-string.
7740
b8ff72fa
SM
77412008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
7742
7743 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
7744 Fix copy/paste typo. Add checks.
7745
cee53ed4
KH
77462008-11-21 Kenichi Handa <handa@m17n.org>
7747
7748 * coding.c (detect_coding_iso_2022): Reject invalid composition
7749 sequence.
7750 (DECODE_COMPOSITION_START): If the current source is the last
7751 block, and the current composition doesn't end, regard this
7752 sequence as invalid.
7753 (decode_coding_iso_2022): Handle invalid composition sequence.
7754
f6ef1e65
MR
77552008-11-20 Martin Rudalics <rudalics@gmx.at>
7756
7757 * window.c (coordinates_in_window): Don't return
7758 ON_VERTICAL_BORDER for the rightmost position of a mode/header
7759 line when the window is not the rightmost one. (Bug#1372)
7760
e08b1705
MR
77612008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
7762
7763 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
7764
ad98e89f
EZ
77652008-11-15 Eli Zaretskii <eliz@gnu.org>
7766
7767 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
7768 and bright_bg if noninteractive is non-zero.
7769
fb098a4b
CY
77702008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7771
7772 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
7773 x_draw_glyph_string_background.
7774
7775 * w32term.c (x_draw_glyph_string): Likewise.
7776
ce952b6e
CY
77772008-11-15 Chong Yidong <cyd@stupidchicken.com>
7778
7779 * xterm.c (x_draw_glyph_string): Stop drawing the background of
7780 the next glyph string once past the overhang width.
7781
7782 * nsterm.m (ns_draw_glyph_string): Likewise.
7783
7784 * w32term.c (x_draw_glyph_string): Likewise.
7785
26ea7079
CY
77862008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
7787
7788 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
7789 double file close.
7790
1c33c906
MR
77912008-11-14 Martin Rudalics <rudalics@gmx.at>
7792
7793 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
7794 dedicated status of window before attempting to display another
7795 buffer in it.
7796
8fc29035
JB
77972008-11-14 Juanma Barranquero <lekktu@gmail.com>
7798
7799 * msdos.c (Fmsdos_long_file_names):
7800 (syms_of_msdos) <dos-unsupported-char-glyph>:
7801 * dosfns.c (Fint86): Fix typos in docstrings.
7802
55fb4286
EZ
78032008-11-14 Eli Zaretskii <eliz@gnu.org>
7804
7805 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
7806
3fda0315
KY
78072008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
7808
7809 * puresize.h (BASE_PURESIZE): Increase to 1260000.
7810
7e849c17
CY
78112008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
7812
7813 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
7814
7815 * frame.h: Negative alpha means "don't touch".
7816
7817 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
7818
7819 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
7820
b9fd67bd
DN
78212008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
7822
7823 * hftctl.c:
7824 * chpdef.h:
7825 * acldef.h: Remove files used only for systems no longer supported.
7826
7827 * Makefile.in: Fix .o alphabetical ordering.
7828 (hftctl.o): Remove dependency, file removed.
7829 (keymap.o, print.o): Depend on charset.h.
7830
d5998e03
KH
78312008-11-10 Kenichi Handa <handa@m17n.org>
7832
2ae37cf0 7833 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 7834
be70e183
CY
78352008-11-08 Chong Yidong <cyd@stupidchicken.com>
7836
7837 * dired.c (file_name_completion): If completion_ignore_case is
7838 enabled, ignore case when checking completion-regexp-list.
7839
7cf94eac
EZ
78402008-11-08 Eli Zaretskii <eliz@gnu.org>
7841
7842 * vm-limit.c (get_lim_data): Fix last change.
7843
ee107a89
KH
78442008-11-08 Kenichi Handa <handa@m17n.org>
7845
7846 * character.c (Fget_byte): New function.
7847 (syms_of_character): Defsubr Fget_byte.
7848
5fd15622
CY
78492008-11-07 Chong Yidong <cyd@stupidchicken.com>
7850
7851 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
7852 cursor position is valid after scrolling.
7853
13d62fad
JB
78542008-11-06 Juanma Barranquero <lekktu@gmail.com>
7855
7856 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
7857
a1dd2936
GM
78582008-11-06 Glenn Morris <rgm@gnu.org>
7859
7860 * xterm.c (handle_one_xevent): Don't let popup menus cause
7861 mouse-autoselect-window related window switching. (Bug#1261)
7862
860cd236
CY
78632008-11-04 David Smith <davidsmith@acm.org> (tiny change)
7864
7865 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
7866
653a3150
AS
78672008-11-04 Andreas Schwab <schwab@suse.de>
7868
7869 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
7870
870f5cac
CY
78712008-11-03 Chong Yidong <cyd@stupidchicken.com>
7872
7873 * xfns.c (Fx_wm_set_size_hint): New function.
7874
1e02f3cb
MR
78752008-11-03 Martin Rudalics <rudalics@gmx.at>
7876
7877 * textprop.c (Fprevious_single_char_property_change): Return 0
7878 when there's no change in a string. (Bug#1301)
7879
e630dfc6
MR
78802008-11-02 Martin Rudalics <rudalics@gmx.at>
7881
7882 * frame.c (do_switch_frame): New argument NORECORD passed to
7883 Fselect_window.
7884 (Fselect_frame): New argument NORECORD passed to
7885 do_switch_frame.
7886 (Fset_frame_selected_window): New argument NORECORD passed to
7887 Fselect_frame.
7888 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
7889 in call of do_switch_frame.
7890 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
7891 Handle NORECORD argument in call of Fselect_frame.
7892 * lisp.h (do_switch_frame, Fselect_frame)
7893 (Fset_frame_selected_window): Adjust declarations.
7894 * window.c (select_frame_norecord): New function.
7895 (run_window_configuration_change_hook): Use it and call
7896 Fselect_frame with NORECORD set.
7897 (Fselect_window): Pass NORECORD to Fselect_frame.
7898 (Fset_window_configuration): Handle NORECORD argument in call of
7899 do_switch_frame.
7900 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
7901 Fset_frame_selected_window.
7902 * keyboard.c (command_loop_1): Handle NORECORD in call of
7903 Fselect_frame (currently ifdefd).
7904
9020b223
GM
79052008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
7906
7907 * emacs.c (USAGE2): Untabify.
7908
793ffee8
SM
79092008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
7910
7911 * composite.c (fill_gstring_header): Fix copy/paste typo.
7912
ab6d1131
MR
79132008-10-31 Martin Rudalics <rudalics@gmx.at>
7914
7915 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
7916 (Fother_window): Rename argument and rewrite doc-string.
7917 (select_window_norecord): Fix return value. (Bug#1276)
7918
601a9cf1
JB
79192008-10-30 Juanma Barranquero <lekktu@gmail.com>
7920
7921 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
7922 new frames overriding foreground for tooltips. Based on similar patch
7923 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
7924
813b0652
CY
79252008-10-29 Chong Yidong <cyd@stupidchicken.com>
7926
7927 * emacs.c (Fdaemon_initialized): Initialize nfd.
7928
4414f58f
MR
79292008-10-29 Martin Rudalics <rudalics@gmx.at>
7930
7931 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
7932 (Fwindow_text_height): Clarify doc-strings.
7933 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
7934 doc-string of window-scroll-functions.
7935
ecdcaa09
RS
79362008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
7937
7938 * category.c (syms_of_category): Fix typo in docstring.
7939
23fe745a
JB
79402008-10-28 Juanma Barranquero <lekktu@gmail.com>
7941
7942 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
7943 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
7944 Fix typos in docstrings.
7945
ff808935
DN
79462008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
7947
7948 * emacs.c (daemon_pipe): Make non-static.
7949 (IS_DAEMON): Move definition ...
7950 * lisp.h (IS_DAEMON): ... here.
7951 (daemon_pipe): Declare.
7952 (is_daemon): Remove.
7953 * dispnew.c (init_display): Use IS_DAEMON.
7954
fc012771
SM
79552008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
7956
7957 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
7958 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
7959
7960 * emacs.c (is_daemon): Remove.
7961 (main): Don't set is_daemon.
7962 (IS_DAEMON): New macro.
7963 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 7964 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
7965 parent exits.
7966 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
7967
d8bdbe6f
CY
79682008-10-27 Chong Yidong <cyd@stupidchicken.com>
7969
d1a072bf
CY
7970 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
7971 over-sized glyph, draw it with the default glyph width.
7972
e2e325aa
CY
7973 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
7974 glyph, draw it with the default glyph width.
7975
7976 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
7977 glyph, draw it with the default glyph width.
7978
d8bdbe6f
CY
7979 * xdisp.c (try_scrolling): When computing the distance from the
7980 scroll margin to PT, try moving some distance past the window
7981 bottom before giving up.
7982
7bfac547
MR
79832008-10-27 Martin Rudalics <rudalics@gmx.at>
7984
7985 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
7986 (Fset_window_buffer): Explain in doc-string that a window can be
7987 "strongly" dedicated to its buffer.
7988
4ff029f6
DN
79892008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
7990
7991 * emacs.c (daemon_name): New variable.
7992 (main): Deal with --daemon=SERVER_NAME.
7993 (Fdaemonp): Return a name if one was passed to --daemon.
7994
5790ef40
DN
79952008-10-26 Romain Francoise <romain@orebokech.com>
7996
f9bd0df9 7997 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
7998 (main): Create a pipe before forking, make the parent exit only after
7999 the child has closed its end of the pipe. Move closing the
8000 descriptors ...
8001 (Fdaemon_initialized): ... here. New function.
8002
f5385255
SM
80032008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
8004
4d632321
SM
8005 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
8006 the previous unoptimized table.
8007
f5385255
SM
8008 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
8009 the distinction between non-nil and non-t value of `dedicated'.
8010
6c56a0f3
CY
80112008-10-25 Chong Yidong <cyd@stupidchicken.com>
8012
8013 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 8014 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 8015
fec89261
MR
80162008-10-25 Martin Rudalics <rudalics@gmx.at>
8017
8018 * window.c (Fget_buffer_window, Fdelete_windows_on)
8019 (Freplace_buffer_in_windows): Make buffer argument optional and
8020 rename to buffer_or_name.
8021
34fcddd0
CY
80222008-10-24 Chong Yidong <cyd@stupidchicken.com>
8023
f5385255
SM
8024 * xdisp.c (handle_single_display_spec, handle_display_prop):
8025 Undo 2005-05-16 change.
34fcddd0
CY
8026 (handle_stop): Pop iterator if it's loaded with an empty string.
8027 (get_overlay_strings_1): Don't save iterator if it's loaded with
8028 an empty string (bug#1201).
8029
064766f2
KH
80302008-10-24 Kenichi Handa <handa@m17n.org>
8031
8032 * ftfont.c (ftfont_otf_features): Fix previous change.
8033 (ftfont_otf_capability): Check FeatureList.FeatureCount before
8034 calling ftfont_otf_features.
8035
f9bd0df9 80362008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
8037
8038 * font.c (font_match_p): Fix for the case that a vector of
8039 characters is in script-representative-chars.
8040
1dae9197
MA
80412008-10-24 Michael Albinus <michael.albinus@gmx.de>
8042
8043 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 8044 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
8045 (xd_read_queued_messages): Catch Qdbus_error from the macros.
8046 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
777013f2 8047 macro. (Bug#1186)
1dae9197 8048
f9bd0df9 80492008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
8050
8051 * s/sol2-10.h: New file.
8052
878a4584
JB
80532008-10-23 Juanma Barranquero <lekktu@gmail.com>
8054
8055 * xdisp.c (fill_glyph_string): Fix typo in source (though the
8056 poor beast has survived 9+ years and the jump from xterm.c!).
8057
cd265ca6
MR
80582008-10-23 Martin Rudalics <rudalics@gmx.at>
8059
8060 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
8061 Reword doc-string.
f5385255 8062 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 8063
472a4dc9
JB
80642008-10-23 Juanma Barranquero <lekktu@gmail.com>
8065
8066 * character.c (syms_of_character) <script-representative-chars>:
8067 <unicode-category-table>: Doc fixes.
8068
159bd5a2
NF
80692008-10-23 Noah Friedman <friedman@splode.com>
8070
8071 * coding.c (make_conversion_work_buffer): Check that
8072 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
8073 Fget_buffer_create.
8074
49f9c344
KH
80752008-10-23 Kenichi Handa <handa@m17n.org>
8076
8077 * font.c (font_add_log): Check the values of extra properties.
8078
12bb3111
MR
80792008-10-22 Martin Rudalics <rudalics@gmx.at>
8080
8081 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
8082 Reword doc-string.
8083 (Fset_window_parameter): Use NILP.
8084 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 8085 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 8086
bbeb4e99
JB
80872008-10-22 Juanma Barranquero <lekktu@gmail.com>
8088
8089 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
8090
80912008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
8092
8093 * nsfns.m (ns_appkit_version): New function.
8094 (x-server-version): Use it.
8095 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
8096 (x-server-vendor): Don't check_ns().
8097
8098 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
8099
a9b555d3
JB
81002008-10-22 Juanma Barranquero <lekktu@gmail.com>
8101
8102 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
8103 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
8104
4626499f
KH
81052008-10-22 Kenichi Handa <handa@m17n.org>
8106
e3681952
KH
8107 * syntax.c (scan_words): Call word_boundary_p instead of comparing
8108 scripts.
8109
4626499f
KH
8110 * category.c (word_boundary_p): Check scripts instead of charset.
8111 Handle nil value in word-separating-categories and
8112 word-combining-categories.
8113 (syms_of_category): Fix docstrings of word-separating-categories
8114 and word-combining-categories.
8115
1560f91a
EZ
81162008-10-21 Eli Zaretskii <eliz@gnu.org>
8117
8118 * coding.c (Fencode_coding_region, Fdecode_coding_region)
8119 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
8120
f4668441
MR
81212008-10-21 Martin Rudalics <rudalics@gmx.at>
8122
8123 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
8124 Rename arg "buffer" to "buffer_or_name".
8125 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
8126 it optional.
8127 (no_switch_window): Remove since the return value is not used.
a9b555d3 8128 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
8129 Consider window as dedicated when Fwindow_dedicated_p returns a
8130 non-nil value.
8131 * lisp.h: Remove prototype for no_switch_window.
8132
fd75ddb2
JD
81332008-10-21 Jan Djärv <jan.h.d@swipnet.se>
8134
8135 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 8136 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 8137
07295713
KH
81382008-10-21 Kenichi Handa <handa@m17n.org>
8139
8140 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
8141 check Vlatin_extra_code_table.
8142
712adc82
EZ
81432008-10-20 Eli Zaretskii <eliz@gnu.org>
8144
8145 * fileio.c (Fset_file_modes): Doc fix.
8146
f549eb0b
MA
81472008-10-19 Michael Albinus <michael.albinus@gmx.de>
8148
8149 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
8150 in arrays.
8151
aac0c6e3
MR
81522008-10-19 Martin Rudalics <rudalics@gmx.at>
8153
8154 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
8155 Mention kill-buffer in doc-string.
8156 (Fset_window_buffer): Reinsert tem check removed in last commit.
8157 (Fenlarge_window, Fshrink_window): Have argument names and
8158 doc-string follow Elisp manual more closely.
8159
81602008-10-18 Eli Zaretskii <eliz@gnu.org>
8161
8162 * fileio.c (Fset_file_modes): Doc fix.
8163
81642008-10-18 Martin Rudalics <rudalics@gmx.at>
8165
8166 * window.c (Fwindow_width, Fset_window_start)
8167 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
8168 (Fdelete_windows_on, Freplace_buffer_in_windows):
8169 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
8170 (Fwindow_dedicated_p): Make window argument optional.
8171 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
8172 (Fset_window_buffer): Respect any non-nil dedicated value for
8173 window. Rename "buffer" argument to "buffer_or_name".
8174
81752008-10-18 Ulrich Mueller <ulm@gentoo.org>
8176
8177 * m/sh3.h: New file, machine description for SuperH.
8178
81792008-10-17 Martin Rudalics <rudalics@gmx.at>
8180
8181 * window.c (Fsplit_window): Rename arg horflag to horizontal.
8182
81832008-10-17 Kenichi Handa <handa@m17n.org>
8184
8185 * ftfont.c (ftfont_otf_features): Fix indexing
8186 gsub_gpos->FeatureList.Feature. Check the validity of indices.
8187
81882008-10-16 Magnus Henoch <mange@freemail.hu>
8189
8190 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
8191 (Fdbus_call_method_asynchronously): Ditto.
8192 This change makes C-h f display the argument list.
8193
81942008-10-16 Chong Yidong <cyd@stupidchicken.com>
8195
8196 * fileio.c (Fexpand_file_name): Doc fix.
8197
8198 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
8199 of :foreground and :background equivalent to unspecified (20.x
8200 compatibility).
8201
82022008-10-15 Eli Zaretskii <eliz@gnu.org>
8203
8204 * buffer.c (syms_of_buffer): Doc fix.
8205
82062008-10-14 Kenichi Handa <handa@m17n.org>
8207
8208 * font.c (font_clear_prop): When clearing font width, clear the
8209 average width field too.
8210
82112008-10-12 Andreas Schwab <schwab@suse.de>
8212
8213 * ftfont.c (ftfont_shape_by_flt): Make static.
8214 * ftfont.h (ftfont_shape_by_flt): Don't declare.
8215
8216 * font.c: Don't include <m17n-flt.h>.
8217
82182008-10-10 Eli Zaretskii <eliz@gnu.org>
8219
8220 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
8221
82222008-10-09 Eli Zaretskii <eliz@gnu.org>
8223
8224 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
8225 away code.
8226
82272008-10-09 Chong Yidong <cyd@stupidchicken.com>
8228
8229 * dispnew.c (update_text_area): Avoid looping due to large glyph
8230 overhangs (bug#1070).
8231
82322008-10-09 Kenichi Handa <handa@m17n.org>
8233
8234 * fontset.c (face_for_char): If face->fontset is negative, just
8235 return ascii_face.
8236
f5385255
SM
8237 * font.c (font_delete_unmatched): Fix previous change.
8238 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
8239
82402008-10-09 Martin Rudalics <rudalics@gmx.at>
8241
8242 * frame.c (Fraise_frame): On text-only terminals select frame in
8243 order to make it visible. (Bug#1061)
8244
82452008-10-08 Chong Yidong <cyd@stupidchicken.com>
8246
8247 * fontset.c (fontset_find_font): Check frame validity.
8248
82492008-10-07 Chong Yidong <cyd@stupidchicken.com>
8250
a9b555d3 8251 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
8252 (xg_display_close): Allow Emacs to close all displays (bug#985).
8253
82542008-10-06 Andreas Schwab <schwab@suse.de>
8255
f5385255 8256 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
8257
82582008-10-06 Chong Yidong <cyd@stupidchicken.com>
8259
f5385255 8260 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 8261
a9b555d3 8262 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
8263
8264 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
8265 during initialization.
8266
82672008-10-04 Eli Zaretskii <eliz@gnu.org>
8268
8269 * xdisp.c (redisplay_internal): If frame switched, redisplay the
8270 whole thing on MSDOS frames as well as on a TTY.
8271
8272 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
8273 well as for TTY.
8274 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
8275 well as on a TTY.
8276
8277 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
8278 as well as for TTY.
8279
8280 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
8281
8282 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
8283 MSDOS frames as well.
8284
82852008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
8286
8287 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
8288 correct arguments.
b71ac3dd 8289 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
8290
82912008-10-03 Glenn Morris <rgm@gnu.org>
8292
8293 * emacs.c (USAGE1): Add --daemon.
8294
82952008-10-02 Eli Zaretskii <eliz@gnu.org>
8296
8297 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
8298 100, so it's in percents as advertised.
8299
83002008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
8301
8302 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
8303 (ns_output.current_cursor, ns_output.desired_cursor)
8304 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
8305 (FRAME_NEW_CURSOR_COLOR): Remove.
8306
8307 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 8308 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
8309 enumeration (HOLLOW_BOX_CURSOR, etc.).
8310
8311 * nsterm.m (ns_frame_rehighlight): Remove commented code.
8312 (draw_window_cursor): Simplify code.
f5385255
SM
8313 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
8314 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 8315 updates manually.
a9b555d3
JB
8316 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
8317 Use core Emacs cursor types.
aac0c6e3 8318
b8ff72fa 8319 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
8320
83212008-10-02 Martin Rudalics <rudalics@gmx.at>
8322
8323 * process.c (Faccept_process_output): Fix doc-string.
8324
83252008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
8326
8327 * gmalloc.c (__sbrk): Also define for uClibc.
8328
8329 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
8330 for uClibc.
8331
83322008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
8333
8334 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
8335 styles.
8336 (nsfont_open): Reenable the cache.
8337
83382008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
8339
8340 * font.c (font_matching_entity): Reflect ATTRS in font selection.
8341 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
8342
83432008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
8344
8345 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
8346 a suspended terminal.
8347
83482008-09-30 Michael Albinus <michael.albinus@gmx.de>
8349
8350 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
8351
83522008-09-30 Eli Zaretskii <eliz@gnu.org>
8353
8354 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
8355
83562008-09-30 Chong Yidong <cyd@stupidchicken.com>
8357
8358 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
8359 in a continued line coincides with a line beginning.
8360
83612008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
8362
8363 * nsfont.m (nsfont_trait_distance): Fix bug.
8364 (nsfont_list): Return a list rather than a vector (syncs with Handa
8365 changes of 2008-05-14).
8366 (nsfont_open): Improve logging.
8367
83682008-09-29 Andreas Schwab <schwab@suse.de>
8369
8370 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
8371
83722008-09-28 Martin Rudalics <rudalics@gmx.at>
8373
8374 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
8375 name as char-resolve-modifiers.
8376 Reported by: Markus Triska <markus.triska@gmx.at>
8377
83782008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
8379
8380 * dispnew.c (init_display): Return earlier when running as a daemon.
8381
83822008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
8383
8384 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
8385
83862008-09-27 Eli Zaretskii <eliz@gnu.org>
8387
8388 * composite.c (Fcomposition_get_gstring)
8389 (Fcompose_region_internal, Fcompose_string_internal)
8390 (Ffind_composition_internal): Doc fix.
8391 (syms_of_composite) <compose-chars-after-function>: Doc fix.
8392 (syms_of_composite) <auto-composition-function>: Doc fix.
8393 (syms_of_composite) <composition-function-table>: Doc fix.
8394
83952008-09-25 Chong Yidong <cyd@stupidchicken.com>
8396
8397 * search.c (wordify): New argument for lax word-ends.
8398 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
8399
84002008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
8401
8402 * lisp.h (is_daemon): Declare.
8403 * dispnew.c (init_display): Do not try to initialize the terminal
8404 when running as a daemon.
8405
84062008-09-22 Chong Yidong <cyd@stupidchicken.com>
8407
8408 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
8409 x_display_pixel_height.
8410
84112008-09-22 Martin Rudalics <rudalics@gmx.at>
8412
8413 * undo.c (record_point): Don't call Fundo_boundary for first
8414 change. (Bug#731)
8415
84162008-09-22 Juanma Barranquero <lekktu@gmail.com>
8417
8418 * emacs.c (Fdaemonp): Doc fix.
8419
84202008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
8421
8422 * emacs.c (main): Place #ifdef in the proper place.
8423
84242008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
8425
8426 * emacs.c (standard_args): Add --daemon.
8427 (main): Disconnect from the terminal when --daemon is passed.
8428 (is_daemon): New variable.
8429 (Fdaemonp): New function.
8430 (syms_of_emacs): Defsubr it.
8431
84322008-09-20 Chong Yidong <cyd@stupidchicken.com>
8433
8434 * xdisp.c (get_next_display_element): Handle string display
8435 correctly when checking for the end of a box run.
8436
84372008-09-20 Glenn Morris <rgm@gnu.org>
8438
8439 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
8440 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
8441 (Frename_file): Avoid copying to trash if a rename involves
8442 a delete. (Bug#964).
8443
84442008-09-20 Eli Zaretskii <eliz@gnu.org>
8445
8446 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
8447 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
8448 frames as well as termcap frames.
8449 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
8450 get_named_tty.
8451
84522008-09-19 Eli Zaretskii <eliz@gnu.org>
8453
8454 * process.c (procfs_system_process_attributes): Fix cmdline in
8455 case /proc/PID/cmdline is empty.
8456
8457 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
8458 x_display_pixel_height.
8459
84602008-09-19 Juanma Barranquero <lekktu@gmail.com>
8461
8462 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
8463
8464 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
8465 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
8466
84672008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
8468
8469 * dispextern.h (struct it): Move line_wrap away from the middle of
8470 bitfields. Move voffset in struct iterator_stack_entry after the
8471 bitfields. Move tab_width near after another short.
8472
84732008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
8474
8475 * frame.h (struct frame): Move alpha from the middle of bitfields.
8476
8477 * window.h (struct window): Move frozen_window_start_p after the
8478 rest of the bitfields to reduce padding.
8479
84802008-09-18 Chong Yidong <cyd@stupidchicken.com>
8481
8482 * xterm.h (x_display_info): Remove `height' and `width' members.
8483
8484 * nsterm.h (ns_display_info): Remove `height' and `width' members.
8485
8486 * w32term.h (w32_display_info): Remove `height', `width',
8487 `height_in', and `width_in' members.
8488
b8ff72fa
SM
8489 * xterm.c (x_display_pixel_height, x_display_pixel_width):
8490 New functions.
aac0c6e3
MR
8491 (x_calc_absolute_position): Use them.
8492 (x_term_init): Omit removed `height' and `width' members.
8493
b8ff72fa
SM
8494 * w32term.c (x_display_pixel_height, x_display_pixel_width):
8495 New functions.
aac0c6e3
MR
8496 (w32_read_socket, x_calc_absolute_position): Use them.
8497 (w32_initialize_display_info, w32_term_init): Omit removed members
8498 of w32_display_info.
8499
b8ff72fa
SM
8500 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
8501 New functions.
8502 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 8503
b8ff72fa
SM
8504 * xterm.c (x_display_pixel_height, x_display_pixel_width):
8505 New functions.
aac0c6e3
MR
8506 (x_calc_absolute_position): Use them.
8507 (x_term_init): Omit removed `height' and `width' members.
8508
8509 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
8510 (compute_tip_xy):
8511 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
8512 * xmenu.c (menu_position_func): Use x_display_pixel_height and
8513 x_display_pixel_width.
8514
85152008-09-18 Kenichi Handa <handa@m17n.org>
8516
8517 * composite.c (fill_gstring_header): Don't check FROM and TO here.
8518 (composition_compute_stop_pos): Fix handling of static composition.
8519 (Fcomposition_get_gstring): Check FROM and TO at first.
8520
85212008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
8522
46e722a9 8523 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
8524 mixup (YAILOM).
8525
85262008-09-17 Chong Yidong <cyd@stupidchicken.com>
8527
8528 * indent.c (Fvertical_motion): Use position reported by iterator
8529 instead of PT for determining screen motion (bug#943).
8530
85312008-09-17 Romain Francoise <romain@orebokech.com>
8532
8533 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
8534
85352008-09-17 Kenichi Handa <handa@m17n.org>
8536
8537 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
8538
8539 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
8540 if necessary.
8541
85422008-09-16 Kenichi Handa <handa@m17n.org>
8543
8544 * coding.c (make_conversion_work_buffer): Avoid calling
8545 Fget_buffer_create if it is not necessary.
8546
85472008-09-15 Martin Rudalics <rudalics@gmx.at>
8548
8549 * window.c (Fselect_window): Don't update window_select_count and
8550 use_time when norecord is not nil.
8551
85522008-09-14 Kenichi Handa <handa@m17n.org>
8553
8554 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
8555 specpdl_ptr.
8556
85572008-09-12 Kenichi Handa <handa@m17n.org>
8558
8559 * indent.c (scan_for_column): Don't handle automatic composition
8560 if the current buffer is not associated with a window.
8561
8562 * composite.c (composition_reseat_it): If the current buffer is
8563 not associated with a window, ignore the automatic composition.
8564 (find_automatic_composition): Likewise.
8565
85662008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
8567
8568 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
8569 (Fgpm_mouse_stop): Use it.
8570 * termhooks.h (close_gpm): Declare.
8571 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
8572 connection if Gpm_GetEvent fails.
8573
8574 * window.c (set_window_buffer): Always preserve current-buffer.
8575
85762008-09-12 Glenn Morris <rgm@gnu.org>
8577
8578 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
8579
85802008-09-11 Glenn Morris <rgm@gnu.org>
8581
8582 * charset.c (charset-map-path): Doc fix.
8583
85842008-09-10 Kenichi Handa <handa@m17n.org>
8585
8586 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
8587
8588 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
8589 compose a grapheme cluster with the preceding base glyph.
8590
8591 * composite.c (composition_compute_stop_pos): Fix previous change.
8592 Reset cmp_it->id to -1 at first.
8593
85942008-09-10 Glenn Morris <rgm@gnu.org>
8595
8596 * Makefile.in (character.o, chartab.o): Fix config.h typo.
8597
85982008-09-09 Chong Yidong <cyd@stupidchicken.com>
8599
8600 * keyboard.c (read_key_sequence): Reapply translation maps when
8601 switching keyboards.
8602
86032008-09-09 Kenichi Handa <handa@m17n.org>
8604
8605 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
8606 characters.
8607
8608 * composite.c (FORWARD_CHAR): Fix calculation
8609 of (POSITION).pos_byte.
8610 (composition_compute_stop_pos): Limit the search of composition to
8611 at most 500 characters ahead. If we reach the limit or find a
8612 newline, set cmp_it->ch to -2 and return 0.
8613 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
8614
86152008-09-08 Kenichi Handa <handa@m17n.org>
8616
8617 * indent.c (Fvertical_motion): Be sure to set
8618 it_overshoot_expected if it.cmp_it.id is non-negative.
8619
86202008-09-07 Andreas Schwab <schwab@suse.de>
8621
8622 * callproc.c (Fcall_process): Don't hold references to string data
8623 across garbage collection. Move initialisation of new_argv down
8624 to avoid compiler bug.
8625
86262008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
8627
8628 * process.c (Fsystem_process_attributes): Doc fix.
8629
86302008-09-07 Chong Yidong <cyd@stupidchicken.com>
8631
8632 * callproc.c (Fcall_process): Canonicalize current directory name.
8633
8634 * xdisp.c (move_it_to): When moving by vpos, ensure that the
8635 iterator advances to the next line if the current line ends in a
8636 continued tab.
8637
86382008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
8639
8640 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
8641 member to point to cmp_from.
8642
8643 * xdisp.c: Doc fix for references to gidx data member.
8644
86452008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
8646
8647 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
8648
86492008-09-07 Kenichi Handa <handa@m17n.org>
8650
8651 * composite.c (FORWARD_CHAR): Check STOP after
8652 incrementing (POSITION).pos.
8653
86542008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
8655
8656 * process.c (Fsystem_process_attributes): Doc fix.
8657
86582008-09-06 Chong Yidong <cyd@stupidchicken.com>
8659
8660 * keyboard.c (Ftop_level): Doc fix.
8661
86622008-09-06 Eli Zaretskii <eliz@gnu.org>
8663
8664 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
8665 minibuffer, don't let lower part of menu invade the echo area.
8666
8667 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
8668 "char *q" to access menu text and advance through it. Revert the
8669 change that displayed ">" instead of ASCII character 0x10.
8670
86712008-09-05 Eli Zaretskii <eliz@gnu.org>
8672
8673 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
8674 toggle boxes and radio buttons on MS-DOS as well.
8675
86762008-09-05 Kenichi Handa <handa@m17n.org>
8677
8678 * composite.c (autocmp_chars): Check lookback count.
8679 (composition_compute_stop_pos): Set cmp_it->lookback.
8680 (composition_reseat_it): Check lookback count.
8681 (struct position_record): New struct.
8682 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
8683 (find_automatic_composition): New function.
8684 (composition_adjust_point): Use find_automatic_composition.
8685
8686 * dispextern.h (struct composition_it): New member lookback.
8687
86882008-09-02 Chong Yidong <cyd@stupidchicken.com>
8689
8690 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
8691 if moving by a single line.
8692
86932008-09-02 Andreas Schwab <schwab@suse.de>
8694
8695 * xterm.c (x_delete_display): Fix merge error.
8696
8697 * fileio.c (Fexpand_file_name): Remove unused variables.
8698
86992008-09-02 Eli Zaretskii <eliz@gnu.org>
8700
8701 * fileio.c (Fexpand_file_name): Copy argument `name' into local
8702 storage on all platforms, not just on DOS_NT.
8703
87042008-09-02 Jason Rumney <jasonr@gnu.org>
8705
b8ff72fa
SM
8706 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
8707 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
8708
87092008-09-01 Chong Yidong <cyd@stupidchicken.com>
8710
8711 * xfaces.c (Finternal_set_alternative_font_family_alist)
8712 (Finternal_set_alternative_font_registry_alist): Properly copy
8713 entire alist structure.
8714
87152008-09-01 Kenichi Handa <handa@m17n.org>
8716
d66c0241 8717 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 8718 representative chars of the script is a vector.
d66c0241
JB
8719 (ftfont_list): Handle the case where the representative chars of
8720 the script is a vector.
aac0c6e3
MR
8721
8722 * character.c (syms_of_character): Docstring of
8723 script-representative-chars fixed.
8724
87252008-08-31 Eli Zaretskii <eliz@gnu.org>
8726
8727 * msdos.c (BUILD_CHAR_GLYPH): New macro.
8728 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
8729 the menu. Allocate larger buffer for `text', to account for
8730 possible ^C characters.
8731
87322008-08-31 Martin Rudalics <rudalics@gmx.at>
8733
8734 * xdisp.c (prepare_menu_bars): Don't call
8735 Vwindow_size_change_functions with arg Qt.
8736
87372008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
8738
8739 * font.h (font_range):
8740 * fileio.c (report_file_error):
46e722a9
SM
8741 * composite.c (composition_update_it): Yet another int/Lisp_Object
8742 mixup (YAILOM).
aac0c6e3
MR
8743
87442008-08-30 Glenn Morris <rgm@gnu.org>
8745
8746 * data.c (Fmake_variable_frame_local): Doc fix.
8747
8748 * frame.c (Fmodify_frame_parameters): Doc fix.
8749
87502008-08-30 Eli Zaretskii <eliz@gnu.org>
8751
8752 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
8753 needed by GetTokenInformation.
8754 (w32_system_process_attributes): Check return values of all system
8755 APIs.
8756
8757 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
8758 only when the state changes.
8759 (IT_update_begin, IT_update_end): Add termscript trace.
8760
8761 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
8762 clipboard is unavailable. Set dst to NULL if it doesn't point to
8763 malloc'ed data.
8764 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
8765 passing random values to xfree.
8766
8767 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 8768 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
8769
87702008-08-29 Jason Rumney <jasonr@gnu.org>
8771
8772 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
8773
87742008-08-29 Eli Zaretskii <eliz@gnu.org>
8775
8776 * composite.c (fill_gstring_body): Avoid compiler warnings.
8777
8778 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
8779 LGLYPH_SET_CODE to avoid compiler warnings.
8780
2ae37cf0 8781 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
8782
8783 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
8784
8785 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
8786 LGLYPH_SET_CODE.
8787
87882008-08-29 Kenichi Handa <handa@m17n.org>
8789
8790 * fileio.c (report_file_error): Don't downcase the first character
8791 of errstring if it is still unibyte.
8792
87932008-08-29 Kenichi Handa <handa@m17n.org>
8794
8795 These changes are to re-implement the automatic composition so
8796 that it doesn't use text properties.
8797
8798 * Makefile.in (ftfont.o): Depend on composite.h.
8799 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
8800
8801 * character.h (Vunicode_category_table): Extern it.
8802
8803 * character.c (Vunicode_category_table): New variable.
8804 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
8805
8806 * chartab.c (optimize_sub_char_table): Perform more greedy
8807 optimization.
8808
b8ff72fa
SM
8809 * composite.h (enum composition_method):
8810 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
8811 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
8812 (Vcomposition_function_table): Extern it.
8813 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
8814 (composition_gstring_put_cache, composition_gstring_from_id)
8815 (composition_gstring_p, composition_gstring_width)
8816 (composition_compute_stop_pos, composition_reseat_it)
8817 (composition_update_it, composition_adjust_point): Extern them.
8818 (Fcomposition_get_gstring): EXFUN it.
8819
d66c0241 8820 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
8821 (Vcomposition_function_table)
8822 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
8823 (gstring_hash_table, gstring_work, gstring_work_headers):
8824 New variables.
aac0c6e3
MR
8825 (gstring_lookup_cache, composition_gstring_put_cache)
8826 (composition_gstring_from_id, composition_gstring_p)
8827 (composition_gstring_width, fill_gstring_header)
8828 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
8829 (composition_reseat_it, composition_update_it)
b8ff72fa 8830 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
8831 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
8832 and gstring_work_headers. DEFVAR_LISP composition-function-table.
a73f9c9d 8833 Defsubr composition_get_gstring.
aac0c6e3
MR
8834
8835 * dispextern.h (struct glyph): New union u.cmp. Delete the member
8836 cmp_id.
8837 (struct glyph_string): Delete the member gidx. New members
8838 cmp_id, cmp_from, and cmp_to.
8839 (enum it_method): Delete GET_FROM_COMPOSITION.
8840 (struct composition_it): New struct.
8841 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
8842 Delete c, len, cmp_id, cmp_len in u.comp.
8843
8844 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 8845 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 8846 (enum lglyph_indices): Likewise.
b8ff72fa 8847 (font_range): Adjust extern.
aac0c6e3
MR
8848 (font_fill_lglyph_metrics): Extern it.
8849
8850 * font.c (QCf): New variable.
8851 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
8852 (font_prepare_composition): Delete this function.
8853 (font_range): Type and arguments changed.
8854 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
8855 (font_fill_lglyph_metrics): New function.
b8ff72fa 8856 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 8857 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
8858 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
8859 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
8860
8861 * fontset.h (font_for_char): Extern it.
8862
8863 * fontset.c (font_for_char): New function.
8864
8865 * ftfont.c: Include composite.h.
8866 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 8867 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
8868
8869 * indent.c: Include composite.h and dispextern.h.
8870 (check_composition): Delete this function.
8871 (scan_for_column): Handle composition by
8872 composition_compute_stop_pos, composition_reseat_it, and
8873 composition_update_it.
8874 (compute_motion): Likewise.
8875 (Fvertical_motion): Fix checking of composition.
8876
8877 * keyboard.c (adjust_point_for_property): Check composition by
8878 composition_adjust_point.
8879
b8ff72fa 8880 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
8881 struct glyph_string.
8882
b8ff72fa
SM
8883 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
8884 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
8885 struct glyph.
8886 (produce_composite_glyph): Likewise.
8887
b8ff72fa
SM
8888 * w32term.c (x_draw_composite_glyph_string_foreground):
8889 Adjust for the change of struct glyph_string.
aac0c6e3
MR
8890 (x_draw_glyph_string): Likewise.
8891
8892 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
8893 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
8894
8895 * xdisp.c: Include font.h.
8896 (it_props): Delete the entry for Qauto_composed.
8897 (init_iterator): Initialize it->cmp_it.id to -1.
8898 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 8899 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
8900 (handle_auto_composed_prop): Delete it.
8901 (handle_composition_prop): Handle only static composition.
8902 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
8903 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 8904 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
8905 (pop_it): Likewise.
8906 (get_next_element): Delete next_element_from_composition.
8907 (CHAR_COMPOSED_P): New macro.
8908 (get_next_display_element): For automatic composition, get a face
8909 from the font in the glyph-string.
8910 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 8911 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
8912 (next_element_from_string): Check if the character at the current
8913 position is composed by CHAR_COMPOSED_P.
8914 (next_element_from_buffer): Likewise.
d66c0241
JB
8915 (next_element_from_composition): Adjust for the change of struct it.
8916 Update it->cmp_it.
b8ff72fa
SM
8917 (dump_glyph): Adjust for the change of struct glyph.
8918 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
8919 it and struct glyph. Don't handle automatic composition here.
8920 (fill_gstring_glyph_string): New function.
8921 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 8922 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
8923 (BUILD_GSTRING_GLYPH_STRING): New macro.
8924 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
8925 automatic composition.
b8ff72fa 8926 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 8927 struct glyph.
b8ff72fa 8928 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 8929
b8ff72fa 8930 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
8931 the change of struct glyph_string.
8932 (x_draw_glyph_string): Likewise.
8933
89342008-08-29 Glenn Morris <rgm@gnu.org>
8935
8936 * buffer.c (word-wrap): Doc fix.
8937 * xdisp.c (truncate-partial-width-windows): Doc fix.
8938 Increase default to 50.
8939
89402008-08-29 Chong Yidong <cyd@stupidchicken.com>
8941
8942 * xdisp.c (update_tool_bar_unwind): New function.
8943 (update_tool_bar): Temporarily set selected frame before building
8944 tool-bar items.
8945
89462008-08-28 Michael Albinus <michael.albinus@gmx.de>
8947
8948 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
8949 snprintf, respectively.
8950 (xd_append_arg): Convert strings with Fstring_make_unibyte.
8951
89522008-08-28 Chong Yidong <cyd@stupidchicken.com>
8953
8954 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
8955 LDFLAGS to GNUstep CC invocation.
8956
89572008-08-27 Chong Yidong <cyd@stupidchicken.com>
8958
8959 * indent.c (Fvertical_motion): Revert last change. Handle the
8960 general case where we are moving forward, and PT spans multiple
8961 screen lines.
8962
8963 * eval.c (find_handler_clause): Temporarily increase
8964 max-lisp-eval-depth while printing the backtrace buffer, to
8965 guarantee that help-mode code can run.
8966
89672008-08-27 Eli Zaretskii <eliz@gnu.org>
8968
8969 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
8970 colors under -rv.
8971 (IT_set_frame_parameters): Don't swap foreground and background
8972 colors if `(reverse . t)' is present in the frame properties.
8973 (internal_terminal_init): Call init_frame_faces only for the
8974 initial frame.
8975
89762008-08-27 Andreas Schwab <schwab@suse.de>
8977
8978 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
8979
89802008-08-27 Andreas Schwab <schwab@suse.de>
8981
8982 * search.c (search_buffer): Set char_base to zero only at the end.
8983
89842008-08-27 Kenichi Handa <handa@m17n.org>
8985
b8ff72fa 8986 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
8987
89882008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
8989
8990 * xterm.c (x_term_init): Temporarily hide the partially
8991 initialized terminal while calling vendor-specific-keysyms.
8992
89932008-08-26 Eli Zaretskii <eliz@gnu.org>
8994
8995 * msdos.c (internal_terminal_init): Most initializations done only
8996 once, especially initial_screen_colors[] and termscript open.
8997
89982008-08-26 Chong Yidong <cyd@stupidchicken.com>
8999
9000 * eval.c (Fcondition_case): Doc fix.
9001
9002 * widgetprv.h (EmacsFramePart): Change font member to the new font
9003 struct.
9004
9005 * widget.c: Include character.h and font.h for XSETFONT.
9006 (setup_frame_gcs): Compute X font id from font struct, just once.
9007
90082008-08-26 Eli Zaretskii <eliz@gnu.org>
9009
9010 * term.c (get_named_tty): Fix last change.
9011
90122008-08-26 Chong Yidong <cyd@stupidchicken.com>
9013
9014 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 9015 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
9016
90172008-08-25 Eli Zaretskii <eliz@gnu.org>
9018
9019 * frame.c (do_switch_frame): Mark previously displayed frame as
9020 obscured for FRAME_MSDOS_P frames as well.
9021
90222008-08-24 Eli Zaretskii <eliz@gnu.org>
9023
9024 * frame.c (make_terminal_frame): Initialize f->terminal,
9025 f->terminal->reference_count, and scroll bars on MS-DOS as well.
9026 Set the top frame to newly created frame.
9027 (Fmake_terminal_frame): Reuse the_only_display_info.
9028
9029 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
9030 estimating available memory.
9031
b97439ce 90322008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
9033
9034 * nsterm.m (ns_draw_window_cursor): Don't call
9035 NSDisableScreenUpdates and NSEnableScreenUpdates on
9036 non-NS_IMPL_COCOA systems.
9037
90382008-08-23 Andreas Schwab <schwab@suse.de>
9039
9040 * process.c (procfs_system_process_attributes): Fix use of
9041 uninitialized variables.
9042
90432008-08-23 Eli Zaretskii <eliz@gnu.org>
9044
9045 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
9046
9047 * dispnew.c (init_display): Remove MS-DOS specific conditions for
9048 calling tty-set-up-initial-frame-faces.
9049
b8ff72fa
SM
9050 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
9051 Allow MSDOS frames along with X frames.
aac0c6e3
MR
9052
9053 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
9054 addition to output_termcap.
9055
9056 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
9057
9058 * termchar.h (FRAME_TTY): Support output_msdos_raw.
9059 (struct tty_display_info) [MSDOS]: Add fields related to mouse
9060 highlight.
9061
9062 * process.c [!subprocesses]: Define QCname.
9063 (syms_of_process): Intern and staticpro it.
9064
9065 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
9066 Adjust for changes in encoding/decoding routines.
9067 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
9068 encode_coding and decode_coding.
9069
b8ff72fa 9070 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
9071
9072 * dosfns.c: Include frame.h before termhooks.h.
9073 (dos_cleanup): Use CURTTY ()->termscript instead of a global
9074 variable termscript.
9075
9076 * s/msdos.h (USER_FULL_NAME): Define.
9077 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
9078
9079 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
9080 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
9081 pw->pw_gecos.
9082
9083 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
9084 SELECTED_FRAME as additional (1st) argument.
9085 (tty_read_avail_input): Handle output_msdos_raw in
9086 addition to output_termcap.
9087
9088 * msdos.c: Include frame.h before termhooks.h.
9089 (mouse_on, mouse_off, mouse_moveto, mouse_init)
9090 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
9091 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
9092 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
9093 (IT_set_terminal_modes, IT_reset_terminal_modes)
9094 (IT_set_frame_parameters): Use tty->termscript instead of a global
9095 variable termscript.
9096 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
9097 global variable terminal_coding. Don't refer to
9098 Vnonascii_translation_table.
9099 (internal_terminal_init): Set Vwindow_system in current_kboard.
9100 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
9101 Announce date and time of session start, if termscript is open.
9102 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
9103 term.c:init_tty). Open termscript only of not already open.
9104 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
9105 here instead of dos_ttraw. Don't initialize display if this is an
9106 initial tty. Don't set FRAME_FONT.
9107 (Vwindow_system_version): Bump to 23.
9108 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
9109 is available, set up mouse_position_hook.
9110 (dos_ttraw, IT_set_terminal_modes): If called with initial
9111 terminal, do nothing.
9112 (IT_set_frame_parameters): Handle the Qtty_type frame
9113 parameter by calling internal_terminal_init.
9114 (dos_set_window_size, show_mouse_face)
9115 (clear_mouse_face, IT_note_mode_line_highlight)
9116 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
9117 (dos_rawgetc): Use tty_display_info instead of x_display_info.
9118 (initialize_msdos_display): New function.
9119 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
9120 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
9121 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
9122 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 9123 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
9124 (request_sigio, unrequest_sigio): Don't define, now defined on
9125 sysdep.c.
9126 (IT_write_glyphs): Rewrite to use encode_terminal_code.
9127
9128 * term.c [MSDOS]: Include msdos.h.
9129 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
9130 conditional to DOS_NT. Allow only one call to this function in a
9131 session. Don't allocate a new struct tty_display_info; instead,
9132 reuse the_only_display_info. Call get_tty_size to get screen
9133 dimensions. Call init_baud_rate to set bad_rate.
9134 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
9135 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 9136 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
9137 (get_tty_terminal, get_named_tty, Ftty_type)
9138 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
9139 output_termcap.
b8ff72fa
SM
9140 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
9141 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 9142 only when subprocesses are supported.
aac0c6e3
MR
9143
9144 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
9145 f->output_data.x.
9146 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
9147 terminal devices.
9148
5582fbc7 9149 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
9150 x_output.
9151 (FRAME_FONT): Use output_data.tty.
9152 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
9153 (struct x_display_info): Rename from display_info. Update all users in
9154 msdos.c.
aac0c6e3 9155 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 9156 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
9157 (dos_ttraw): Update prototype.
9158
9159 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
9160 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
9161
91622008-08-23 Jason Rumney <jasonr@gnu.org>
9163
9164 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
9165 (fn_TIFFSetDirectory): New library function used.
9166 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
9167 (tiff_load): Use :index to select among multiple images. Set count
9168 property when multiple images exist.
9169 (gif_format): Use :index, not :image.
9170
91712008-08-23 Chong Yidong <cyd@stupidchicken.com>
9172
9173 * xdisp.c (try_scrolling): Check INT_MAX instead of
9174 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
9175 to obtain INT_MAX.
9176
91772008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
9178
9179 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
9180
91812008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
9182
9183 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
9184 GNUstep library location.
9185
91862008-08-21 Chong Yidong <cyd@stupidchicken.com>
9187
9188 * xfaces.c (x_update_menu_appearance): Check validity of menu font
9189 before using it.
9190
9191 * puresize.h (BASE_PURESIZE): Increase to 1250000.
9192
91932008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
9194
9195 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
9196 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
9197 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
9198 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
9199 (EmacsApp-cursor_blink_handler): Remove declaration.
9200 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
9201 match 01 Feb 2008 changes in xterm.c.
9202 (ns_read_socket): Add cast to avoid warning.
9203 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
9204 GNUstep.
9205
92062008-08-20 Chong Yidong <cyd@stupidchicken.com>
9207
9208 * xselect.c (x_get_foreign_selection): Return nil if desired
9209 selection could not be obtained, instead of signalling an error.
9210
92112008-08-20 David Reitter <david.reitter@gmail.com>
9212
9213 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
9214 * nsterm.m: Remove ns-specific code for cursor blinking.
9215 (ns_draw_window_cursor): Clear cursor properly rather than
9216 redrawing the area. Respect width of bar cursors.
9217 These changes enable the use of generic blink-cursor-mode and
9218 generic cursor types in NS and support smooth cursor movements (do
9219 not blink off after command).
9220 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
9221 Nextstep, too.
9222
92232008-08-19 Kenichi Handa <handa@m17n.org>
9224
9225 * font.c (Vfont_log_deferred): New variable.
9226 (font_add_log): Check Vfont_log_deferred.
9227 (font_deferred_log): New function.
9228
9229 * font.h (font_deferred_log): Extern it.
9230
9231 * fontset.c (reorder_font_vector): Use encoding charset of fonts
9232 for sorting.
9233 (face_for_char): Use deferred log.
9234
92352008-08-18 Kenichi Handa <handa@m17n.org>
9236
9237 * fontset.c (face_for_char): Add font log.
9238
9239 * font.c (font_add_log): Add the font properties :script, :lang,
9240 and :otf in the log.
9241
92422008-08-17 Chong Yidong <cyd@stupidchicken.com>
9243
9244 * xdisp.c: Remove dead code.
9245 (handle_invisible_prop, next_overlay_string): Defer call to
9246 setup_for_ellipsis.
9247 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
9248
92492008-08-15 Chong Yidong <cyd@stupidchicken.com>
9250
9251 * xfaces.c (lookup_derived_face): Properly handle possible zero
9252 return value of get_lface_attributes.
9253 (merge_faces): Don't tell lookup_derived_face to signal an error
9254 if face is not found.
9255
9256 * dired.c (Fdirectory_files): Doc fix.
9257
9258 * process.c (make_process): Initialize kill_without_query struct
9259 member.
9260
92612008-08-15 Eli Zaretskii <eliz@gnu.org>
9262
9263 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
9264 Alternative calculation of totphys for Visual Studio 6.
9265
9266 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
9267
9268 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
9269 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
9270 All users changed.
9271 (stat): Only root directory passed to GetDriveType. Allow RAM
9272 disk as well as local fixed disk when w32-get-true-file-attributes
9273 is set to `local'.
9274 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
9275 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
9276 (w32_cached_id, w32_add_to_cache): New functions.
9277 (get_name_and_id): Look account names in the cache before calling
9278 lookup_account_sid.
9279 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
9280 New initialization flags.
9281 (globals_of_w32): Initialize them to zero.
9282 (w32_system_process_attributes): Use w32_cached_id and
9283 w32_add_to_cache.
9284
92852008-08-14 Lawrence Mitchell <wence@gmx.li>
9286
9287 * lread.c (Fread_char, Fread_char_exclusive): If no character
9288 event is read before timeout is reached, return nil, rather than
9289 converting to a number.
9290
92912008-08-14 Chong Yidong <cyd@stupidchicken.com>
9292
9293 * fns.c (use_dialog_box): Doc fix.
9294
9295 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
9296 on OS X.
9297
92982008-08-13 Chong Yidong <cyd@stupidchicken.com>
9299
9300 * frame.c (Qns_parse_geometry): New var.
9301 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
9302
93032008-08-11 Chong Yidong <cyd@stupidchicken.com>
9304
9305 * xdisp.c (x_produce_glyphs): Handle the case when font has no
9306 space character in calculating tabs.
9307
93082008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
9309
9310 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
9311
93122008-08-10 Glenn Morris <rgm@gnu.org>
9313
9314 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
9315 silence gcc "limited range of data type" warnings in some
9316 make_fixnum_or_float calls.
9317
93182008-08-09 Eli Zaretskii <eliz@gnu.org>
9319
9320 * w32.c (w32_system_process_attributes): If the process does not
9321 exist, return nil.
9322
9323 * w32.c: Include thelp32.h, psapi.h and coding.h.
9324 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
9325 declarations.
9326 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
9327 (Process32Next_Proc): New typedefs.
9328 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
9329 (g_b_init_process32_next, g_b_init_open_thread_token)
9330 (g_b_init_impersonate_self, g_b_init_revert_to_self)
9331 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
9332 (g_b_init_get_process_working_set_size)
9333 (g_b_init_global_memory_status_ex): New static variables.
9334 (globals_of_w32): Initialize them.
9335 (create_toolhelp32_snapshot, process32_first, process32_next)
9336 (open_thread_token, impersonate_self, revert_to_self)
9337 (get_process_memory_info, get_process_working_set_size)
9338 (global_memory_status, global_memory_status_ex): New wrapper
9339 functions.
9340 (w32_list_system_processes, w32_system_process_attributes)
9341 (enable_privilege, restore_privilege, ltime, process_times):
9342 New functions.
9343 (convert_time_raw): New function.
9344 (convert_time): Remove conversion of FILETIME into time in 100
9345 nsec units, call convert_time_raw instead.
9346
9347 * process.h (w32_list_system_processes, w32_system_process_attributes):
9348 Add prototypes.
9349 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
9350 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
9351 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
9352 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
9353
9354 * process.c (Fsystem_process_attributes): Doc fix.
9355
93562008-08-08 Chong Yidong <cyd@stupidchicken.com>
9357
9358 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
9359 a continued multi-char glyph; if so, advance to the actual glyph.
9360
93612008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
9362
9363 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
9364
9365 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
9366 (.m.o): Use it.
9367 * config.in: Regenerate.
9368
93692008-08-07 Chong Yidong <cyd@stupidchicken.com>
9370
9371 * xdisp.c (redisplay_window): Revert last change.
9372 (try_window): Check bottom scroll margin too.
9373
93742008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
9375
9376 * config.in: Regenerate.
9377
9378 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
9379 -list-load-path-shadows'.
9380 (nsgui.h): Reduce number of things depending on it.
9381
93822008-08-06 Chong Yidong <cyd@stupidchicken.com>
9383
9384 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
9385 instead of window-end which does the wrong thing at eob.
9386 (try_cursor_movement): Minor optimization.
9387 (redisplay_window): If scroll margin is defined, don't assume
9388 window doesn't need scrolling.
9389
93902008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
9391
9392 * config.in: Regenerate.
9393
9394 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
9395 (mostlyclean): Don't delete *.d under NS.
9396
9397 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
9398
93992008-08-06 Kenichi Handa <handa@m17n.org>
9400
9401 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
9402
94032008-08-06 Andreas Schwab <schwab@suse.de>
9404
9405 * config.in: Regenerate.
9406
94072008-08-05 Chong Yidong <cyd@stupidchicken.com>
9408
9409 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
9410 forcing a window start.
9411
9412 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
9413 (auto_save_1): Update modtime when auto-save-list-file-name is on.
9414
94152008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
9416
9417 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
9418 argument.
9419
94202008-08-05 Juanma Barranquero <lekktu@gmail.com>
9421
9422 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
9423 <scroll-down-aggressively, before-change-functions>:
9424 <after-change-functions>: Reflow docstrings.
9425
94262008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
4e2af782 9427 Ken Raeburn <raeburn@gnu.org>
aac0c6e3
MR
9428
9429 Dock menu customization, based on a patch by Ken Raeburn, plus some
9430 other fixes.
9431 * nsmenu.m (dockMenu): New variable.
9432 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
9433
9434 * nsterm.h (dockMenu): Declare.
9435
9436 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
9437 (ns_term_init): Initialize dockMenu.
9438 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
9439 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
9440 left.
9441
9442 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
9443
94442008-08-04 Chong Yidong <cyd@stupidchicken.com>
9445
9446 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
9447
9448 * config.in: Regenerate.
9449
94502008-08-04 Seiji Zenitani <zenitani@mac.com>
9451
9452 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
9453
94542008-08-04 Chong Yidong <cyd@stupidchicken.com>
9455
9456 * nsterm.h (find_and_call_menu_selection): Fix prototype.
9457
94582008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
9459
9460 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
9461
9462 * keyboard.h: Comment an #endif.
9463
9464 * lisp.h (have_menus_p): Adjust comment.
9465
9466 * menu.c (find_and_return_menu_selection): Fix comparison with
9467 client_data.
9468
9469 * nsmenu.m (popup_activated_flag): New variable.
9470 (popup_activated): New function.
9471 (menu-or-popup-active-p): New exported lisp definition.
9472 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
9473 when popup done.
9474 (ns_popup_dialog): Set popup_activated_flag.
9475
9476 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
9477 version for GNUstep (handled by conditional typedef in nsterm.m).
9478 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
9479 in rgb.txt).
9480
9481 * process.c (init_process): Use DARWIN_OS, not DARWIN.
9482
9483 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
9484
9485 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
9486
9487 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
9488 shortcircuit if popup_activated like GTK and X toolkit.
9489
9490 * m/inter386.h: Change DARWIN to DARWIN_OS.
9491
9492 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
9493 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
9494 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
9495 comment on NO_SOCK_SIGIO.
9496
94972008-08-03 Chong Yidong <cyd@stupidchicken.com>
9498
9499 * nsterm.m (windowDidResize): Remove stopModal call.
9500
95012008-08-03 Andreas Schwab <schwab@suse.de>
9502
9503 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
9504 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
9505
95062008-08-02 Chong Yidong <cyd@stupidchicken.com>
9507
9508 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
9509 Don't use uninitialized pointer variable when using getrlimit.
9510
95112008-08-02 Jason Rumney <jasonr@gnu.org>
9512
9513 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
9514
95152008-08-02 Eli Zaretskii <eliz@gnu.org>
9516
9517 * alloc.c (NSTATICS): Bump to 0x640.
9518
9519 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
9520
9521 * lisp.h: Add prototype for directory_files_internal.
9522
9523 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
9524 New functions.
9525 (syms_of_process): Defsubr them. Add initializations for various
9526 Q* symbols used in procfs_system_process_attributes.
9527 (procfs_list_system_processes, procfs_system_process_attributes)
9528 [HAVE_PROCFS]: New functions.
9529 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
9530 (procfs_get_total_memory): New functions.
9531
95322008-08-01 Juanma Barranquero <lekktu@gmail.com>
9533
9534 * xfaces.c (Fx_load_color_file): Fix previous change;
9535 it is #ifdef WINDOWSNT, not WINDOWS_NT.
9536
95372008-08-01 Michael Albinus <michael.albinus@gmx.de>
9538
9539 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
9540
95412008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
9542
9543 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
9544
95452008-08-01 Chong Yidong <cyd@stupidchicken.com>
9546
9547 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
9548
9549 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
9550 define NSApplicationDelegateReplySuccess.
9551 (EmacsView -converstationIdentifier): Use long instead of
9552 NSInteger for GNUstep, since it doesn't have NSInteger.
9553
9554 * xmenu.c: Revert last change.
9555
9556 * keyboard.h: Fix last change.
9557
95582008-08-01 Juanma Barranquero <lekktu@gmail.com>
9559
9560 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
9561 on Windows.
9562
95632008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
9564
9565 Warning clearing and clean-up in NS port.
9566 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
9567 Add prototypes.
9568 * nsgui.h (FACE_DEFAULT): Remove, unused.
9569 (XGCValues): Change colors to unsigned long.
9570 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
9571 nsterm.m.
9572 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
9573 (ns_list_fonts): Remove, unused.
9574 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
9575 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
9576 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
9577 (nsfont_draw): Compare face colors to 0, not nil.
9578 * nsmenu.m (struct widget_value): Drop unneeded declaration.
9579 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
9580 (-addSubmenuWithTitle:): Use NSMenuItem class.
9581 (ns_popup_menu): Use NO, not NULL, for enabled setting.
9582 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
9583 (ns_clip_to_row): Make gc arg a BOOL.
9584 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
9585 ns_clip_to_row() call.
9586 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
9587 used). Cast FRAME_FONT assignments.
9588 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
9589 (ns_string_to_lispmod): Change arg to const char.
9590 (ns_term_init): Use NSMenuItem class.
9591 (EmacsApp -openFile:): Move to different section of file.
9592 (EmacsApp -application:openFiles:): Don't return a value, call
9593 -replyToOpenOrPrint:.
9594 (EmacsView -keyDown:): Fix up cast.
9595 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
9596 (EmacsView -menuDown:): Cast tag in call to
9597 find_and_call_menu_selection().
9598 (ns_list_fonts): Remove, unused.
9599 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
9600 (ns_fontname_to_xlfd): Make static.
9601 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
9602 Remove prototypes (now in keyboard.h).
9603 (next_menubar_widget_id): Remove, unused.
9604 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
9605 Remove prototypes (now in keyboard.h).
9606 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
9607
96082008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
9609
9610 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
9611 (floatfns.o): Depend on syssignal.h.
9612 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
9613
9614 * systty.h: Fix previous change that removed BSD_TERMIOS.
9615 Add comments to #ifdefs.
9616
96172008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
9618
9619 * w32fns.c (w32-load-color-file): Remove.
9620 (x-open-connection): Use renamed Fx_load_color_file.
9621 * xfaces.c (x-load-color-file): Add.
9622 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
9623 Emacs.clr.
9624 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
9625
96262008-07-31 Michael Albinus <michael.albinus@gmx.de>
9627
9628 * dbusbind.c (Fdbus_call_method_asynchronously)
9629 (Fdbus_method_error_internal): New defuns.
9630 (xd_read_message): Handle also reply messages.
9631 (Vdbus_registered_functions_table): Extend docstring.
9632
96332008-07-31 Juanma Barranquero <lekktu@gmail.com>
9634
9635 * keyboard.c (gobble_input): Fix previous change.
9636
96372008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
9638
9639 * bitmaps/README:
9640 * xfns.c:
9641 * termcap.c:
9642 * term.c:
9643 * syswait.h:
9644 * systty.h:
9645 * systime.h:
9646 * syssignal.h:
9647 * sysdep.c:
9648 * process.h:
9649 * process.c:
9650 * print.c:
9651 * ndir.h:
9652 * lread.c:
9653 * keyboard.c:
9654 * getpagesize.h:
9655 * floatfns.c:
9656 * fileio.c:
9657 * emacs.c:
9658 * doc.c:
9659 * dispnew.c:
9660 * dired.c:
9661 * data.c:
9662 * callproc.c:
9663 * buffer.c:
9664 * README:
9665 * Makefile.in:
9666 * s/template.h:
9667 * s/msdos.h:
9668 * m/vax.h: Remove VMS support.
9669 * s/vms.h:
9670 * vlimit.h:
9671 * uaf.h:
9672 * temacs.opt:
9673 * param.h:
9674 * ioctl.h: Remove file.
9675
96762008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
9677
9678 * s/ms-w32.h (MULTI_KBOARD): Remove.
9679 * xterm.c:
9680 * xselect.c:
9681 * xfns.c:
9682 * window.c:
9683 * w32term.c:
9684 * w32fns.c:
9685 * terminal.c:
9686 * termhooks.h:
9687 * term.c:
9688 * sysdep.c:
9689 * keyboard.h:
9690 * keyboard.c:
9691 * frame.h:
9692 * frame.c:
9693 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
9694 * config.in: Regenerate.
9695
96962008-07-30 Jason Rumney <jasonr@gnu.org>
9697
9698 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
9699
9700 * w32font.c (w32font_encode_char): Leave as unicode if in range.
9701 (w32font_open_internal): Get unicode version of textmetrics.
9702 Don't enable or disable glyph indices here.
9703 (w32font_open): Disable use of glyph indices.
9704
9705 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
9706
97072008-07-30 Chong Yidong <cyd@stupidchicken.com>
9708
9709 * minibuf.c (Vread_buffer_function): Doc fix.
9710
97112008-07-30 John Paul Wallington <jpw@pobox.com>
9712
9713 * minibuf.c (read_buffer_completion_ignore_case): New var.
9714 (Fread_buffer): Use it.
9715
97162008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
9717
9718 * systty.h (sensemode): Remove empty #if. Remove reference to
9719 BSD_TERMIOS, unused.
9720
9721 * sysdep.c: Remove reference to DGUX.
9722 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
9723
9724 * config.in: Regenerate.
9725
97262008-07-30 Jason Rumney <jasonr@gnu.org>
9727
9728 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
9729
97302008-07-29 Jason Rumney <jasonr@gnu.org>
9731
9732 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
9733 is populated.
9734 (uniscribe_encode_char): Always use uniscribe.
9735 Avoid using context if cache is populated.
9736
97372008-07-29 Jan Djärv <jan.h.d@swipnet.se>
9738
9739 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
9740 open menu.
9741
9742 * gtkutil.c (menu_nav_ended): Remove.
9743 (create_menus): Remove signal connect for menu_nav_ended.
9744
97452008-07-28 Chong Yidong <cyd@stupidchicken.com>
9746
9747 * xdisp.c (redisplay_window): Check return value of
9748 compute_window_start_on_continuation_line before forcing a window
9749 start.
9750
97512008-07-28 Jason Rumney <jasonr@gnu.org>
9752
9753 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
9754
9755 * w32term.c (w32_enable_unicode_output, cleartype_active):
9756 Remove obsolete display options.
9757 (x_draw_glyph_string_background): Don't use old cleartype_active
9758 workaround.
9759 (w32_initialize): Remove cleartype_active initialization.
9760 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
9761
97622008-07-28 Andreas Schwab <schwab@suse.de>
9763
9764 * lisp.h (init_weak_hash_tables, syms_of_font)
9765 (xd_read_queued_messages, syms_of_dbusbind): Declare.
9766 (remove_hash_entry): Don't declare.
9767 * eval.c (maybe_call_debugger): Make static and move before use.
9768 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
9769 * xdisp.c: Include "gtkutil.h" if USE_GTK.
9770 * xterm.h (x_set_frame_alpha): Declare.
9771
97722008-07-28 Jan Djärv <jan.h.d@swipnet.se>
9773
9774 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
9775 (create_menus): Connect selection-done to menu_nav_ended.
9776
97772008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
9778
9779 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
9780 Set Vx_resource_name to a fallback. Replace read of 'buffered'
9781 parameter with read of 'alpha' one.
9782 (Qns_frame_parameter): Remove.
5582fbc7 9783 * nsselect.m (selection-coding-system)
aac0c6e3
MR
9784 (next-selection-coding-system, Vselection_coding_system)
9785 (Vnext_selection_coding_system): Drop.
9786
97872008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
9788
9789 * nsfns.m (do-applescript, do_applescript): Rename to
9790 ns-do-applescript, ns_do_applescript, and move within file.
9791
97922008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
9793
9794 Remove support for Mac Carbon.
9795 * mactoolbox.c:
9796 * macterm.h:
9797 * macterm.c:
9798 * macselect.c:
9799 * macmenu.c:
9800 * macgui.h:
9801 * macfns.c:
9802 * mac.c: Remove file.
9803 * s/darwin.h:
9804 * m/intel386.h:
9805 * xfaces.c:
9806 * xdisp.c:
9807 * window.c:
9808 * tparam.c:
9809 * termhooks.h:
9810 * termcap.c:
9811 * term.c:
9812 * syssignal.h:
9813 * sysselect.h:
9814 * sysdep.c:
9815 * process.c:
9816 * lread.c:
9817 * lisp.h:
9818 * keyboard.c:
9819 * image.c:
9820 * fringe.c:
9821 * frame.h:
9822 * frame.c:
9823 * fontset.c:
9824 * font.h:
9825 * font.c:
9826 * fns.c:
9827 * fileio.c:
9828 * emacs.c:
9829 * dispnew.c:
9830 * dispextern.h:
9831 * config.in:
9832 * atimer.c:
2ae37cf0 9833 * Makefile.in: Remove code for Carbon.
aac0c6e3 9834
f0131492 98352008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
9836
9837 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
9838
98392008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9840
9841 * macterm.h (kCGBitmapByteOrder32Host): New define for
9842 non-universal SDKs.
9843
9844 * image.c (mac_create_cg_image_from_image, image_load_image_io)
9845 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
9846
9847 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
9848 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
9849
98502008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
9851
9852 * w32inevt.c: Include dispextern.h.
9853
98542008-07-26 Andreas Schwab <schwab@suse.de>
9855
9856 * print.c (print_object): Fix off-by-one in last change.
9857
98582008-07-25 Juanma Barranquero <lekktu@gmail.com>
9859
9860 * term.c (syms_of_term): Don't initialize default_orig_pair,
9861 default_set_foreground and default_set_background on Windows.
9862
98632008-07-25 Jason Rumney <jasonr@gnu.org>
9864
9865 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
9866 ScriptItemize. Clean up return value checking. Remove unused
9867 variables.
9868 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
9869 shaping engine.
9870
9871 * w32font.c (w32font_has_char): Handle the case where we can't
9872 determine the script for a character.
9873
98742008-07-25 Chong Yidong <cyd@stupidchicken.com>
9875
9876 * term.c (syms_of_term): Initialize default_orig_pair,
9877 default_set_foreground, and default_set_background.
9878
9879 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
9880 clash (bug#86).
9881 (getloadavg): Callers changed.
9882
9883 * image.c (svg_load_image): Fix last change.
9884 (svg_load_image): Use rsvg_handle_get_dimensions to check that
9885 image size is valid. Use g_object_unref instead of deprecated
9886 rsvg_handle_free to free rsvg handle.
9887 (x_from_xcolors): Don't initialize pixmap (silence compiler).
9888
98892008-07-25 Jason Rumney <jasonr@gnu.org>
9890
9891 * w32font.c (w32font_encode_char): Encode characters outside BMP as
9892 surrogates before looking up glyph index.
9893 (w32font_text_extents): Encode as surrogates if falling back to
9894 functions that need UTF-16 wide chars.
9895
9896 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
9897 BMP as surrogates before looking up glyph index.
9898
98992008-07-25 Chong Yidong <cyd@stupidchicken.com>
9900
9901 * image.c (svg_load_image): Check for failure in return value of
9902 rsvg_handle_get_pixbuf. Free rsvg handle when done.
9903
99042008-07-25 Jason Rumney <jasonr@gnu.org>
9905
9906 * w32font.c (Fx_select_font): Reverse sense of second arg.
9907
99082008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
9909
9910 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
9911 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
9912
9913 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
9914 (PURESIZE): Use it.
9915
99162008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
9917
9918 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
9919 * m/alpha.h (TEXT_END):
9920 * m/ibmrs6000.h (TEXT_END):
9921 * m/macppc.h (TEXT_END):
9922 * s/darwin.h (TEXT_END):
9923 * s/msdos.h (TEXT_END): Remove, unused.
9924 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
9925 * s/cygwin.h: Remove comment.
9926
9927 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
9928 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
9929 * m/intel386.h (DOT_GLOBAL_START):
9930 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
9931 (USG): Remove, file not used on USG platforms.
9932
9933 * Makefile.in (HAVE_X11): Remove empty #else.
9934
99352008-07-24 Andreas Schwab <schwab@suse.de>
9936
9937 * fileio.c (Finsert_file_contents): Properly adjust undo list
9938 after format conversion.
9939
99402008-07-24 Jan Djärv <jan.h.d@swipnet.se>
9941
9942 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
9943 (menu_nav_ended): Remove.
9944 (create_menus): Remove signal connect for menu_nav_ended.
9945 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
9946 create_menus.
9947 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
9948
99492008-07-23 Jason Rumney <jasonr@gnu.org>
9950
9951 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
9952 with opened font.
9953 (w32font_open): Set font type to gdi.
9954
9955 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
9956
99572008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
9958
9959 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
9960 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
9961 defines it.
9962 * unexec.c (ADDR_CORRECT): Define unconditionally.
9963
9964 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
9965
9966 * unexec.c: Remove code depending on !COFF and USG, the file is
9967 not used for such systems.
9968
9969 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
9970 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
9971 (LD_SWITCH_SYSTEM_1): Remove, update users.
9972
9973 * s/darwin.h (DATA_END):
9974 * m/intel386.h (DATA_END):
9975 * m/ibmrs6000.h (DATA_END):
9976 * m/alpha.h (DATA_END): Remove, unused.
9977
9978 * config.in: Regenerate.
9979 * s/ms-w32.h (subprocesses): Define unconditionally.
9980 * s/template.h (subprocesses): Update comment.
9981 * s/vms.h (subprocesses):
9982 * s/usg5-4.h (subprocesses):
9983 * s/hpux10-20.h (subprocesses):
9984 * s/gnu-linux.h (subprocesses):
9985 * s/cygwin.h (subprocesses):
9986 * s/bsd-common.h (subprocesses):
9987 * s/aix4-2.h (subprocesses):
9988 * s/darwin.h (subprocesses): Do not define, defined by default now.
9989
9990 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
9991 Remove all references.
9992 (temacs): Add GNUstep specific ld flags.
9993
9994 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
9995 similarly to what X does.
9996
99972008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
9998
9999 * nsfns.m (x-list-fonts): Remove.
10000 (syms_of_nsfns): Drop the x-list-fonts declaration.
10001 * nsterm.m: Get rid of remaining "//" comments.
10002
100032008-07-22 Chong Yidong <cyd@stupidchicken.com>
10004
10005 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
10006
10007 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
10008 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
10009 (Fns_own_selection_internal, Fx_disown_selection_internal)
10010 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
10011
10012 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
10013 ... */' style of docstrings. Doc fixes.
10014
100152008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
10016
10017 * terminfo.c (UP, BC, PC): Undo previous change.
10018
10019 * nsfns.m: Rename ns prefixed functions/variables to the
10020 corresponding x versions. Update references.
10021
100222008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
10023
10024 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
10025
100262008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
10027
10028 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
10029 Remove forwarding functions.
10030 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
10031 non-static.
10032 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
10033 non-static.
10034 (ns_frame_parm_handlers): Use the new names.
10035 (syms_of_nsfns): Move to the end of file.
10036
10037 * nsterm.m (syms_of_nsterm): Move to the end of file.
10038
10039 * dispnew.c (init_display): Remove code for X10.
10040
100412008-07-22 Jason Rumney <jasonr@gnu.org>
10042
10043 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
10044 bare drive.
10045
100462008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
10047
10048 * nsterm.m (syms_of_nsterm): Remove debugging println.
10049
100502008-07-22 David Reitter <david.reitter@gmail.com>
10051
10052 * nsfns.m (do_applescript, F_do_applescript): NS version of the
10053 Carbon implementation of the same functionality: execute arbitrary
10054 AppleScript code.
10055
100562008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
10057
10058 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
10059 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
10060 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
10061 (Fx_display_mm_height, Fx_display_mm_width)
10062 (Fx_display_backing_store, Fx_display_visual_class)
10063 (Fx_display_save_under, Fx_open_connection)
10064 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
10065 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
10066 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
10067 (Fx_display_pixel_width, Fx_display_pixel_height)
10068 (Fx_display_usable_bounds, Fx_display_planes)
10069 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
10070 ... */' style of docstrings.
10071
100722008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
10073
10074 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
10075 on this platform.
10076 (mips):
10077 * m/iris4d.h (mips): Do not define.
10078 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
10079
10080 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
10081
10082 * image.c:
10083 * nsfns.m:
10084 * nsselect.m:
10085 * nsterm.h:
10086 * nsterm.m: Rename ns prefixed functions/variables to the
10087 corresponding x versions. Update references.
10088
10089 * m/ibms390x.h (NO_REMAP): Do not undefine.
10090
10091 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
10092
100932008-07-21 Chong Yidong <cyd@stupidchicken.com>
10094
10095 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
10096 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
10097 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
10098 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
10099 (Fns_display_mm_height, Fns_display_mm_width)
10100 (Fns_display_backing_store, Fns_display_visual_class)
10101 (Fns_display_save_under, Fns_open_connection)
10102 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
10103 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
10104 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
10105 (Fns_display_pixel_width, Fns_display_pixel_height)
10106 (Fns_display_usable_bounds, Fx_display_planes)
10107 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
10108
101092008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
10110
10111 * print.c (print_object): Check print_depth before searching for
10112 circularities.
10113
101142008-07-21 Michael Albinus <michael.albinus@gmx.de>
10115
10116 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
10117 only sprintf.
10118
101192008-07-21 Kenichi Handa <handa@m17n.org>
10120
10121 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
10122
101232008-07-20 Andreas Schwab <schwab@suse.de>
10124
10125 * syntax.c (find_start_pos, find_start_value)
10126 (find_start_value_byte, find_start_begv, find_defun_start)
10127 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
10128
101292008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
10130
10131 * s/sol2-3.h: Insert contents of s/sol2.h.
10132 (LD_SWITCH_SYSTEM): Remove redundant definition.
10133 * s/sol2.h: Remove, unused.
10134
101352008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
10136
10137 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
10138
101392008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
10140
10141 * Makefile.in (ns_appdir): Fix typo in find command.
10142
101432008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
10144
10145 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
10146
10147 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
10148 added not supported anymore.
10149
10150 * s/usg5-4-2.h (LIBS_SYSTEM):
10151 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
10152
10153 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
10154 * s/lynxos.h (GETPGRP_NO_ARG):
10155 * s/hpux10-20.h (NO_SIOCTL_H):
10156 * s/gnu.h (GETPGRP_NO_ARG):
10157 * s/gnu-linux.h (NO_SIOCTL_H):
10158 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
10159 * s/cygwin.h (GETPGRP_NO_ARG):
10160 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
10161 (C_DEBUG_SWITCH): Remove duplicate definition.
10162
10163 * m/ibms390.h: Remove boilerplate comments.
10164
10165 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
10166
10167 * process.c (HAVE_SERIAL): Consolidate ifdefs.
10168 (wait_reading_process_output): Remove code for SunOS, platform not
10169 supported anymore. Use SOLARIS2 instead of sun.
10170
101712008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
10172
10173 * font.c (font_open_by_name): Under NS, default lface height to zero.
10174 (font_open_for_lface): Under NS, set size based on frame fontsize.
10175 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
10176 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
10177
101782008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
10179
10180 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
10181 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
10182 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
10183 YES/NO.
10184 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
10185 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
10186 * Makefile.in (clean): Clear out build destination dir.
10187
101882008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
10189
10190 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
10191 xterm, xselect.
10192 * lisp.h: Remove declaration of hash_remove.
10193 * nsgui.h: Remove redefinitions of hash_remove.
10194 * fns.c (hash_remove): Rename to hash_remove_from_table.
10195
101962008-07-19 Seiji Zenitani <zenitani@mac.com>
10197
10198 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
10199 strdup() the family UTF8String before modifying it.
10200
102012008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
10202
10203 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
10204 NS_FACE_BACKGROUND with 0 instead of nil.
10205 * nsfont.m (nsfont_draw): Same.
10206
102072008-07-19 Chong Yidong <cyd@stupidchicken.com>
10208
10209 * nsfns.m (ns_set_background_color): Fix crash.
10210
102112008-07-18 Chong Yidong <cyd@stupidchicken.com>
10212
10213 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
10214
102152008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
10216
10217 * puresize.h (BASE_PURESIZE): Increase to 1240000.
10218
102192008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10220
10221 * gtkutil.c: Include <config.h> instead of "config.h".
10222
10223 * lisp.h (Foverlay_buffer): Add EXFUN.
10224
10225 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
10226 child process to complete child_setup. Undo 2005-09-21 change.
10227
10228 * s/darwin.h: Mention setsid after vfork.
10229
102302008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10231
10232 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
10233 Depend on macgui.h.
10234
10235 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
10236 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
10237
10238 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
10239 and f19.
10240 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
10241
10242 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
10243 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
10244 Remove enumerators.
10245
10246 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
10247 Check if FACE_FROM_ID returns NULL.
10248
102492008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
10250
10251 * w32inevt.c (change_frame_size): Remove extern declaration.
10252 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
10253 change_frame_size.
10254
102552008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
10256
10257 * getloadavg.c: Revert last change (2008-07-15).
10258
102592008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
10260
10261 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
362654a6 10262 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
aac0c6e3
MR
10263 from configure.
10264
102652008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
10266
10267 * s/sol2.h:
10268 * s/sol2-4.h: Reorganize conditionals.
10269
10270 * ecrt0.c: Remove code depending on m68000, not used anymore.
10271
10272 * fns.c (hash_remove): Make static.
10273 * lisp.h (hash_remove): Don't prototype.
10274
10275 * m/ibmrs6000.h:
10276 * m/ibms390x.h:
10277 * m/macppc.h: Remove boilerplate comments.
10278
10279 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
10280 Solaris, which does not need them.
10281
10282 * m/vax.h: Remove comments about unsupported systems.
10283
10284 * s/darwin.h: Reorganize ifdefs.
10285
102862008-07-17 Andreas Schwab <schwab@suse.de>
10287
10288 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
10289
102902008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
10291
10292 Use SDATA. Follow coding convention of placing operators at
10293 beginning of next line rather than end of previous line, and placing
10294 spaces around infix operators.
10295
10296 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
10297 in case it was defined already.
10298 USE @GNUSTEP_MAKEFILES@ rather than envvars.
10299 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
10300 ns_default.
10301 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
10302 Lisp_Objects.
10303 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
10304 (ns_defined_color, ns_color_to_lisp): Declare.
10305 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
10306 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
10307 it's accepted even with USE_LISP_UNION_TYPE.
10308 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
10309 (update_frame_tool_bar): Remove apparently obsolete tests for
10310 non-integerness of f->tool_bar_lines.
10311 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
10312 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
10313 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
10314 (nsfont_open): Don't confuse NULL for Qnil.
10315 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
10316 * menu.h (find_and_call_menu_selection):
10317 * menu.c (find_and_call_menu_selection): Use just int for vector size.
10318 (find_and_return_menu_selection): Always return something.
10319 * frame.h: Include dispextern.h for Display_Info.
10320 (display_x_get_resource): Declare.
10321
103222008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
10323
10324 * syntax.c: Remove stdio.h include accidentally introduced in
10325 Emacs.app commit.
10326 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
10327 NS_IMPL_COCOA.
10328 * keyboard.c (handle_async_input, input_available_signal): Remove
10329 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
10330
103312008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
10332
10333 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
10334 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
10335 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
10336 Use SDATA.
10337
10338 * keymap.c: Remove all NS-specific code.
10339 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
10340 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
10341 where_is_preferred_modifier, return a different value depending on how
10342 preferred is the binding.
10343 (where_is_internal): Adjust accordingly.
10344 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
10345 Adjust to new preferred_sequence_p.
10346 (syms_of_keymap): Declare `where-is-preferred-modifier'.
10347 * keyboard.c (parse_solitary_modifier): Not static any more.
10348 * keyboard.h (parse_solitary_modifier): Declare.
10349
103502008-07-16 Andreas Schwab <schwab@suse.de>
10351
10352 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
10353 of easymenu.
10354
103552008-07-16 Chong Yidong <cyd@stupidchicken.com>
10356
10357 * xdisp.c (move_it_in_display_line): Account for word wrap, so
10358 that we don't move off the line.
10359
103602008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
10361
10362 * keyboard.c (Qsuper): Remove.
10363 (parse_menu_item): Don't call where_is_internal specially for NS.
10364
103652008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
10366
10367 * s/gnu-linux.h: Remove boilerplate comments.
10368
10369 * m/alpha.h (__ELF__): Consolidate conditions.
10370
10371 * m/m68k.h (linux): Use GNU_LINUX instead.
10372 Remove boilerplate comments.
10373
10374 * m/intel386.h: Undo refactoring from previous change.
10375 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
10376 too, remove dead code.
10377 (linux): Use GNU_LINUX instead.
10378
103792008-07-16 Jason Rumney <jasonr@gnu.org>
10380
10381 * w32gui.h: Repeat 26 June changes lost by last change.
10382
103832008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
10384
10385 * systty.h: Remove code for Aix on 386, unsupported platform.
10386
10387 * s/ms-w32.h: Remove boilerplate comments.
10388 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
10389
10390 * s/gnu-linux.h (TERM): Remove support.
10391 (HAVE_SYSVIPC): Remove, unused.
10392 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
10393 for this system.
10394
10395 * process.c: Remove support for IRIS, unused.
10396 Remove support for TERM, not relevant anymore.
10397
10398 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
10399 used with the definition.
10400
10401 * s/aix4-2.h (static): Do not undef.
10402
10403 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
10404 only used on Aix.
10405 (HAVE_SYSVIPC): Remove, unused.
10406
10407 * m/hp800.h (CANNOT_DUMP): Do not undef.
10408
10409 * m/alpha.h: Fix comment.
10410
10411 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
10412 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
10413 used by this configuration.
10414 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
10415 * unexec.c: Remove code depending on HPUX and
10416 USG_SHARED_LIBRARIES, not used with this file. Remove code
10417 depending on IRIS, unused. Remove if 0-ed code.
10418
10419 * s/template.h: Remove comments about static.
10420
10421 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
10422 Remove if 0-ed code.
10423 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
10424 were the same as the default.
10425 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
10426 Remove boilerplate comments.
10427 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
10428 (HAVE_SYSVIPC): Remove, unused.
10429 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
10430
10431 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
10432 Remove boilerplate comments.
10433 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
10434 Remove boilerplate comments.
10435 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
10436 Remove boilerplate comments.
10437 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
10438
10439 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
10440 USG systems which do not use DATA_SEG_BITS.
10441 Refactor code. Remove boilerplate comments.
10442
10443 * m/ibms390.h:
10444 * m/m68k.h:
10445 * s/bsd-common.h:
10446 * s/cygwin.h:
10447 * s/darwin.h:
10448 * s/freebsd.h:
10449 * s/gnu.h:
10450 * s/msdos.h: Remove boilerplate comments.
10451
10452 * m/iris4d.h: Remove boilerplate comments and code for systems that
6873acca 10453 do not use this file.
aac0c6e3
MR
10454 (IRIS_4D): Remove, unused.
10455
10456 * m/mips.h: Remove boilerplate comments and code for systems that
6873acca 10457 do not use this file.
aac0c6e3
MR
10458 (SIGN_EXTEND_CHAR):
10459 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
10460 * unexmips.c: Remove file, unused.
10461
10462 * editfns.c (Fuser_full_name): Replace the only use of
10463 USER_FULL_NAME with its value.
10464 * config.in: Regenerate.
10465
104662008-07-16 David Reitter <david.reitter@gmail.com>
10467
10468 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
10469 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
10470
104712008-07-16 Glenn Morris <rgm@gnu.org>
10472
10473 * emacs.c (system-type): Doc fix.
10474
104752008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
10476
10477 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
10478 If the cache doesn't work, let's fix it, rather than work around it.
10479
104802008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
10481
10482 * Makefile.in: Correct additions for nsfont.o in last commit.
10483 * nsfont.m: New file (forgot last commit).
10484
104852008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
10486
10487 * callproc.c (set_initial_environment): Initialize
10488 Vprocess_environment under CANNOT_DUMP (fixes crash when
10489 batch-compiling for bootstrap).
10490
104912008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
4e2af782 10492 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
10493
10494 (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
10495 fix crash due to different init order.
10496
104972008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
10498
10499 Changes and additions for NeXTstep windowing system (Cocoa and
10500 GNUstep) support.
10501
10502 * Makefile.in:
10503 * config.in: Support defines and build commands for NS port.
10504 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
10505 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
10506 * dispextern.h: Include nsgui.h and add needed typedefs under NS
10507 windowing.
10508 (struct face): Add synth_ital field.
10509 * dispnew.c: Include nsterm.h when compiling under NS windowing.
10510 (init_display): Initialize Vinitial_window_system to "ns" when so
10511 compiled.
10512 * emacs.c: Include GSConfig.h when compiling under GNUstep.
10513 (display_arg): Use under NS.
10514 (main): Under NS, allocate autorelease pool and handle command line
10515 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
10516 (standard_args): Add NS-specific args.
10517 (shut_down_emacs): Shut down NS terminal if compiled under NS.
10518 * font.c (DEFAULT_ENCODING): New variable.
10519 (font_find_for_lface): Use it.
10520 (syms_of_font): Load syms_of_nsfont under NS.
10521 * font.h: Declare nsfont_driver when compiled under NS.
10522 * fontset.c: When compiling under NS, include nsterm.h.
10523 (fontset_from_font): Autoconstruct fontset under NS.
10524 * frame.c (various): Under NS, include nsterm.h, add Qns window system
10525 symbol, document and use it.
10526 (do_switch_frame): When for_deletion under Cocoa, add
10527 Fraise_frame(Qnil).
10528 (x_set_frame_parameters): Ensure font attribute changes are picked up.
10529 (x_get_arg): Allow "yes" and "no" as boolean values.
10530 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
10531 Qright under Cocoa.
10532 (focus-follows-mouse): Default to 0 under NS.
10533 * frame.h (enum output_method): Add output_ns.
10534 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
10535 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
10536 (FRAME_WINDOW_P): NS-specific definition.
10537 * fringe.c (max_used_fringe_bitmap): Make public.
10538 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
10539 (getloadavg): Use NeXT code under descendant OS's.
10540 * image.c (includes and header section, x_create_bitmap_from_data)
10541 (x_create_bitmap_from_file, free_bitmap_record, image_background)
10542 (image_background_transparent, x_clear_image_1)
10543 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
10544 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
10545 (x_to_xcolors, x_from_xcolors, x_disable_image)
10546 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
10547 other GUIs, including XPM support using code originally written for
10548 Carbon GUI.
10549 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
10550 using NS API.
10551 (image_ascent): Use font metrics macros instead of direct struct field
10552 access.
10553 * keyboard.c (includes): Add nsterm.h when compiling under NS.
10554 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
10555 Also, handle NS as GTK for menu bar purposes.
10556 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
10557 toolkit where they differ.
10558 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
10559 use cachelist, still needed under NS.
10560 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
10561 (struct widget_value): Define it here for menu.c.
10562 * keymap.c (includes): Include modifier internals.
10563 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
10564 NS.
10565 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
10566 support for preferring sequences using certain modifiers, specified by
10567 the FIRSTONLY argument.
10568 * lisp.h (hash_remove): Rename to avoid name clash when compiling
10569 under NS GNUstep implementation.
10570 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
10571 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
10572 * menu.c: Include nsterm.h under NS.
10573 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
10574 (free_menubar_widget_tree_value, update_submenu_strings)
10575 (find_and_call_menu_selection): Treat NS as X and NT.
10576 (find_and_return_menu_selection): New function, used for popup menus.
10577 * nsgui.h:
10578 * nsterm.h:
10579 * nsfns.m:
10580 * nsimage.m:
10581 * nsmenu.m:
10582 * nsselect.m:
10583 * nsterm.m: New files.
10584 * process.c (wait_reading_process_output): Under NS, call ns_select()
10585 instead of plain select().
10586 * syntax.c (char_quoted): Under NS, avoid a crash when called near
10587 beginning of buffer.
10588 * sysselect.h (init_process): Rename when compiling under Cocoa to
10589 avoid name conflict.
10590 * termhooks.h (display_info): Add ns_display_info to union.
10591 * terminal.c (Fterminal_live_p): Add ns to terminal types.
10592 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
10593 COCOA environment.
10594 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
10595 unexec() signature. (Note, this will dump, but the resulting file
10596 crashes; unexosx is used instead; keeping around for reference and
10597 possible aid in getting dump working under GNUstep.)
10598 * w32gui.h (button_type, widget_value): Remove definitions (now in
10599 keyboard.h).
10600 * window.c: Include nsterm.h when compiling under NS.
10601 * xdisp.c (includes): Include nsterm.h when compiling under NS.
10602 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
10603 other GUI windowing systems.
10604 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
10605 GTK.
10606 (x_consider_frame_title): Under NS, set icon type and frame
10607 modified-state indicator; use ns_set_name_as_filename() when using
10608 formatted title.
10609 (update_window_cursor): Make public when compiling under NS.
10610 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
10611 (hourglass_atimer, Vhourglass_delay
10612 * xfaces.c (header section, init_frame_faces, clear_font_table)
10613 (defined_color, unload_color, x_face_list_fonts)
10614 (prepare_face_for_display): Add NS support parallel to other GUIs.
10615 Emulate GCs like other non-X GUIs.
10616 (split_font_name): Don't lowercase font name under NS.
10617 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
10618 under NS.
10619 * s/darwin.h: Add support for compilation under NS.
10620
106212008-07-15 Jason Rumney <jasonr@gnu.org>
10622
10623 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
10624 (w32_show_hourglass): Rename from show_hourglass.
10625 (w32_hide_hourglass): Rename from hide_hourglass.
10626 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
10627 (Vhourglass_delay): Declare extern.
10628 (hourglass_started): Remove.
10629
10630 * xdisp.c (Vhourglass_delay): Remove static.
10631 (hourglass_started, start_hourglass, cancel_hourglass):
10632 Don't include these versions on WINDOWSNT.
10633
106342008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
10635
10636 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
10637 variables (formerly in xfns.c).
10638 (show_hourglass, hide_hourglass): New prototypes (same).
10639 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
10640 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
10641 in xfns.c).
10642 (syms_of_xdisp): Declare/initialize display-hourglass,
10643 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
10644 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
10645 formerly in xfns.c.
10646 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
10647 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
10648 (start_hourglass, cancel_hourglass): Remove.
10649 (show_hourglass, hide_hourglass): Remove prototypes and static
10650 modifiers.
10651 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
10652 hourglass_atimer, hourglass_shown_p declaration/initialization.
10653 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
10654 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
10655 (start_hourglass, cancel_hourglass): Remove.
10656 (show_hourglass, hide_hourglass): Remove prototypes and static
10657 modifiers.
10658 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
10659 hourglass_atimer, hourglass_shown_p declaration/initialization.
10660 * w32fns.c (display_hourglass_p, Vhourglass_delay)
10661 (DEFAULT_HOURGLASS_DELAY): Remove.
10662 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
10663 hourglass_shown_p declaration/initialization.
10664
106652008-07-14 Jason Rumney <jasonr@gnu.org>
10666
10667 * w32fns.c (w32_get_arg): Remove wrapper function.
10668 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
10669 directly.
10670 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
10671
106722008-07-14 Kenichi Handa <handa@m17n.org>
10673
10674 * xfont.c (xfont_open): Add workaround for X's bug.
10675
106762008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
10677
10678 * fontset.c: Include <stdio.h> unconditionally.
10679
106802008-07-13 Michael Albinus <michael.albinus@gmx.de>
10681
10682 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
10683 for filtering.
10684
106852008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
10686
10687 * s/vms.h: Use __GNUC__ instead of _GNUC_.
10688
10689 * m/macppc.h:
10690 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
10691
10692 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
10693 (SPECIAL_EMACS_INT):
10694 * m/ia64.h (SPECIAL_EMACS_INT):
10695 * m/amdx86-64.h (SPECIAL_EMACS_INT):
10696 * s/gnu.h (NLIST_STRUCT):
10697 * s/aix4-2.h (X11R5_INHIBIT_I18N):
10698 * s/gnu-linux.h (LINUX):
10699 * s/msdos.h (HAVE_FACES):
10700 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
10701
10702 * systty.h:
10703 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
10704 anymore.
10705
107062008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
10707
10708 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
10709 always defined as int.
10710
10711 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
10712 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
10713 * s/gnu-linux.h (HAVE_WAIT_HEADER):
10714 * s/freebsd.h (HAVE_WAIT_HEADER):
10715 * s/bsd-common.h (HAVE_UNION_WAIT):
10716 * s/aix4-2.h (HAVE_WAIT_HEADER):
10717 * m/mips.h (HAVE_UNION_WAIT):
10718 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
10719 (COFF, static): Do not define, they are undefined later in the file.
10720
10721 * process.c (update_status): Don't use a union.
10722 (status_convert):
10723 (sigchld_handler): Use int instead of WAITTYPE.
10724
107252008-07-12 Chong Yidong <cyd@stupidchicken.com>
10726
10727 * indent.c (Fvertical_motion): Restore hscroll before moving to
10728 goal column.
10729
107302008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
10731
10732 * lisp.h: Remove left over code.
10733
107342008-07-11 Andreas Schwab <schwab@suse.de>
10735
10736 * lisp.h: Fix logic in last change.
10737
10738 * menu.h: New file.
10739 * menu.c: Include it.
10740 * xmenu.c: Likewise.
10741 * Makefile.in: Update dependencies.
10742
107432008-07-11 Kenichi Handa <handa@m17n.org>
10744
10745 * fontset.c (fontset_from_font): Cancel the previous change.
10746
107472008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
10748
10749 * lisp.h:
10750 * w32heap.c:
10751 * emacs.c:
10752 * alloc.c: Replace all references of NO_UNION_TYPE with
10753 USE_LISP_UNION_TYPE.
10754
10755 * m/xtensa.h (NO_UNION_TYPE):
10756 * m/vax.h (NO_UNION_TYPE):
10757 * m/template.h (NO_UNION_TYPE):
10758 * m/sparc.h (NO_UNION_TYPE):
10759 * m/mips.h (NO_UNION_TYPE):
10760 * m/macppc.h (NO_UNION_TYPE):
10761 * m/m68k.h (NO_UNION_TYPE):
10762 * m/iris4d.h (NO_UNION_TYPE):
10763 * m/intel386.h (NO_UNION_TYPE):
10764 * m/ibms390x.h (NO_UNION_TYPE):
10765 * m/ibms390.h (NO_UNION_TYPE):
10766 * m/ibmrs6000.h (NO_UNION_TYPE):
10767 * m/ia64.h (NO_UNION_TYPE):
10768 * m/hp800.h (NO_UNION_TYPE):
10769 * m/arm.h (NO_UNION_TYPE):
10770 * m/amdx86-64.h (NO_UNION_TYPE):
10771 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
10772 defining it the same.
10773
107742008-07-10 Chong Yidong <cyd@stupidchicken.com>
10775
10776 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
10777
107782008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
10779
10780 * fileio.c:
50426a04 10781 * sysdep.c:
aac0c6e3
MR
10782 * systty.h:
10783 * m/ibmrs6000.h:
10784 * m/iris4d.h:
10785 * s/aix4-2.h:
10786 * s/freebsd.h:
10787 * s/gnu-linux.h:
10788 * s/hpux10-20.h:
10789 * s/hpux11.h:
10790 * s/netbsd.h:
10791 * s/sol2-3.h:
10792 * s/sol2-4.h:
10793 * s/sol2.h:
10794 * s/usg5-4.h:
10795 * s/vms.h: Remove references to unused variables.
10796
107972008-07-10 Andreas Schwab <schwab@suse.de>
10798
10799 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
10800 pattern before matching the generic family.
10801
108022008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
10803
10804 * unexec.c:
10805 * s/vms.h:
10806 * s/usg5-4-2.h:
10807 * s/sol2-5.h:
10808 * s/freebsd.h:
10809 * s/darwin.h: Remove dead code.
10810
10811 * m/template.h:
10812 * m/sparc.h:
10813 * m/mips.h:
10814 * m/m68k.h:
10815 * m/iris4d.h:
10816 * m/intel386.h:
10817 * m/ibms390x.h:
10818 * m/ibms390.h:
10819 * m/ia64.h:
10820 * m/hp800.h:
10821 * m/arm.h:
10822 * m/amdx86-64.h: Remove dead code and references to unused
10823 and compiler defined symbols.
10824
10825 * unexmips.c:
10826 * unexelf.c: Remove references to desupported systems.
10827
10828 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
10829
10830 * m/powermac.h: Remove boilerplate comments.
10831 (NO_REMAP): Remove unused definition.
10832
10833 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
10834 define them.
10835
108362008-07-10 Kenichi Handa <handa@m17n.org>
10837
10838 * xfont.c (xfont_open): Log the reason of failure.
10839
108402008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
10841
10842 * fontset.c (fontset_get_font_group):
10843 * font.c (font_check_otf): Specify argument types.
10844
108452008-07-09 Kenichi Handa <handa@m17n.org>
10846
10847 * coding.c (detect_coding_utf_8): Set detect_info->found only when
10848 non-ASCII char is found.
10849
10850 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
10851 (reorder_font_vector): Change the arg preferred_family to font.
10852 Prefer the spec matching with font.
10853 (fontset_get_font_group): New function.
10854 (fontset_find_font): Change the format of an element of a realized
10855 fontset. Use fontset_get_font_group.
10856 (fontset_font): Try the current fontset, the default fontset, the
10857 fallbacks of the current fontset, and the fallbacks of the default
10858 fontset in this order.
10859 (face_for_char): Delete the shortcut to use the current font.
10860 (fontset_from_font): Don't set fonts for Latin in the fontset.
10861
10862 * font.h (font_make_object, font_match_p): Adjust prototypes.
10863
10864 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
10865
10866 * font.c (font_make_object): New arg entity and pixelsize.
10867 (font_check_otf_features, font_check_otf): New functions.
10868 (font_match_p): Check :lang, :script, and :otf properties.
10869
10870 * xfont.c (xfont_open): Adjust it for the change of
10871 font_make_object.
10872 (xfont_text_extents): Fix initial setting of metrics.
10873
10874 * ftfont.c (struct ftfont_info): New member index, delete member
10875 fc_charset_idx. Make the member order compatible with struct
10876 xftfont_info.
10877 (fc_charset_table): Change charset names to registry names.
10878 (ftfont_pattern_entity): Delete the args registry and
10879 fc_charset_idx. Change the value of :font-entity property
10880 to (FONTNAME . INDEX). Always set :registry property to
10881 `iso10646-1'.
10882 (struct ftfont_cache_data): New struct.
10883 (ftfont_lookup_cache): New arg for_face.
10884 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
10885 (ftfont_driver): Set the member otf_capability.
10886 (ftfont_get_charset): Adjust it for the change of
10887 fc_charset_table.
10888 (OTF_TAG_SYM): New macro.
10889 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
10890 for the change of fc_charset_table.
10891 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
10892 ftfont_pattern_entity. Add FC_INDEX to objset.
10893 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
10894 and ftfont_pattern_entity.
10895 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
10896 font_make_object, struct ftfont_info.
10897 (ftfont_has_char): Use ftfont_get_fc_charset.
10898 (ftfont_otf_features, ftfont_otf_capability): New functions.
10899 (ftfont_shape): Use ftfont_get_otf.
10900 (ftfont_text_extents): Fix initial setting of metrics.
10901
10902 * xftfont.c (struct xftfont_info): New member ft_size. Make the
10903 member order compatible with struct ftfont_info.
10904 (xftfont_open): Add FC_CHARSET to the pattern. Set
10905 xftfont_info->ft_size. Don't unlock the face. Check BDF
10906 properties if appropriate.
10907 (xftfont_close): Unlock the face.
10908 (xftfont_anchor_point, xftfont_shape): Deleted.
10909 (syms_of_xftfont): Don't set members anchor_point and shape of
10910 xftfont_driver.
10911
10912 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
10913 font_make_object.
10914
10915 * w32font.c (w32font_open): Adjust it for the change of
10916 font_make_object.
10917 (w32font_open_internal): Don't set properties of font_object here.
10918
109192008-07-08 Chong Yidong <cyd@stupidchicken.com>
10920
10921 * macfns.c (x_create_tip_frame):
10922 * w32fns.c (x_create_tip_frame):
10923 * xfns.c (x_create_tip_frame): Pass parameter argument to
10924 face-set-after-frame-default.
10925
10926 * xfaces.c (Finternal_merge_in_global_face): Save merged
10927 attributes for the default face back into the face vector.
10928
109292008-07-08 Andreas Schwab <schwab@suse.de>
10930
10931 * fontset.h: Declare fontset_from_font. Don't declare
10932 new_fontset_from_font and fontset_from_font_name.
10933 * xterm.c: Include "fontset.h".
10934 * Makefile.in (xterm.o): Update dependencies.
10935
109362008-07-08 Glenn Morris <rgm@gnu.org>
10937
10938 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
10939 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
10940
109412008-07-07 Chong Yidong <cyd@stupidchicken.com>
10942
10943 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
10944 (x_set_frame_parameters): Don't bind it.
10945
109462008-07-07 Juanma Barranquero <lekktu@gmail.com>
10947
10948 * w32fns.c (map_w32_filename): Declare extern.
10949
109502008-07-07 Jason Rumney <jasonr@gnu.org>
10951
10952 * w32term.c (WS_EX_LAYERED): Define if not already.
10953
109542008-07-06 Chong Yidong <cyd@stupidchicken.com>
10955
10956 * xfaces.c (set_font_frame_param): Don't try to set the font
10957 parameter if it is still unspecified in the lface.
10958
109592008-07-05 Chong Yidong <cyd@stupidchicken.com>
10960
10961 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
10962 face if it didn't already exist.
10963
10964 * xdisp.c (try_window_id): Give up if word-wrapping is on.
10965
109662008-07-05 Andreas Schwab <schwab@suse.de>
10967
10968 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
10969
109702008-07-05 Chong Yidong <cyd@stupidchicken.com>
10971
10972 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
10973 word-wrapping.
10974 (IT_DISPLAYING_WHITESPACE): New macro.
10975 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
10976 when word-wrapping. Simplify word-wrapping logic. Use correct
10977 pixel positions when saving copies of the iterator.
10978 (display_line): Use proper wrap point if the last character on a
10979 line was preceded by whitespace.
10980
109812008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
10982
10983 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
10984
109852008-07-04 Kenichi Handa <handa@m17n.org>
10986
10987 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
10988
10989 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
10990
109912008-07-02 Jason Rumney <jasonr@gnu.org>
10992
10993 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 10994 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
10995
10996 * xdisp.c (next_element_from_display_vector): Move assignment out
10997 of if statement.
10998
109992008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
11000
11001 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
11002
11003 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
11004 (syms_of_fileio): Initialize and export them.
11005 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
11006
11007 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
11008 (Fsystem_move_file_to_trash): New function.
11009 (syms_of_w32fns): Export it to lisp.
11010
110112008-07-01 Jason Rumney <jasonr@gnu.org>
11012
11013 * w32font.c (w32font_text_extents): Don't count overhang as part
11014 of width.
11015
110162008-06-30 Miles Bader <miles@gnu.org>
11017
11018 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
11019 Add `avoid_cursor_p' field.
11020
11021 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
11022 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
11023 (append_glyph, append_composite_glyph, produce_image_glyph)
11024 (append_stretch_glyph): Initialize avoid_cursor_p.
11025 (get_it_property): Rename from `get_line_height_property'.
11026 (x_produce_glyphs): Use get_it_property.
11027 (handle_line_prefix, push_display_prop): New functions.
11028 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
11029 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
11030 New variables.
11031 (syms_of_xdisp): Initialize them.
11032
110332008-06-30 Kenichi Handa <handa@m17n.org>
11034
11035 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
11036 XftDefaultSubstitute (they are called in XftFontMatch).
11037 (xftfont_open): Fix args to ftfont_font_format.
11038
11039 * ftfont.c (fc_charset_table): New member lang.
11040 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 11041 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
11042 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
11043 (ftfont_open): Fix args to ftfont_font_format.
11044 (ftfont_font_format): New arg filename.
11045
110462008-06-30 Chong Yidong <cyd@stupidchicken.com>
11047
11048 * xfaces.c (Finternal_merge_in_global_face): If default face was
11049 modified, realize it again. Update the font face attribute.
11050
110512008-06-29 Jason Rumney <jasonr@gnu.org>
11052
11053 * w32term.c (x_set_frame_alpha): Fix logic.
11054
110552008-06-29 Kenichi Handa <handa@m17n.org>
11056
11057 * fontset.c (Finternal_char_font): Return font-object instead of
11058 font-name.
11059
11060 * composite.c (get_composition_id): Fix the width calculation for TAB.
11061
110622008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
11063
11064 * indent.c (Fvertical_motion): Properly handle float column arg.
11065
110662008-06-28 Jason Rumney <jasonr@gnu.org>
11067
11068 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
11069 (pfnSetLayeredWindowAttributes): New function pointer.
11070 (w32_initialize): Initialize it when supported.
11071 (x_set_frame_alpha): New function.
11072
11073 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
11074 (w32_frame_parm_handlers): Set alpha handler.
11075
11076 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
11077
110782008-06-27 Jason Rumney <jasonr@gnu.org>
11079
11080 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
11081 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
11082 (w32_to_x_charset, x_to_w32_charset)
11083 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
11084 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
11085 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
11086 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
11087 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
11088 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
11089 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
11090 (Qw32_charset_unicode): Remove.
11091 (syms_of_w32fns): Update for above changes.
11092
11093 * w32font.c (w32_to_x_charset, x_to_w32_charset)
11094 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
11095 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
11096 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
11097 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
11098 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
11099 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
11100 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
11101 (syms_of_w32font): Update for above changes.
11102
111032008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
11104
11105 * s/usg5-4.h: Fix previous change: keep the correct branch of a
11106 removed #if.
11107 (USG_SHARED_LIBRARIES): Remove duplicate definition.
11108
111092008-06-26 Juanma Barranquero <lekktu@gmail.com>
4e2af782 11110 Eli Zaretskii <eliz@gnu.org>
aac0c6e3
MR
11111
11112 * makefile.w32-in (LOCAL_FLAGS):
11113 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
11114
11115 * sysdep.c (_spawnlp, _getpid):
11116 Declare with explicit _cdecl instead of _CRTAPI1.
11117
11118 * editfns.c (Fget_internal_run_time):
11119 Check for WINDOWSNT with #ifdef, not #if.
11120
111212008-06-26 Jason Rumney <jasonr@gnu.org>
11122
11123 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
11124
11125 * w32term.c (x_draw_glyph_string_foreground)
11126 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
11127 Use FONT_HANDLE macro.
11128 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
11129
11130 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
11131 (uniscribe_encode_char): Use FONT_HANDLE macro.
11132
11133 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
11134 (w32font_text_extents): Use precast w32_font.
11135 (w32font_close): Free cached metrics.
11136 (w32font_open_internal): Allocate space for name on stack.
11137
111382008-06-26 Chong Yidong <cyd@stupidchicken.com>
11139
11140 * xdisp.c (extend_face_to_end_of_line): Fix last change.
11141
111422008-06-26 Jason Rumney <jasonr@gnu.org>
11143
11144 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
11145 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
11146
111472008-06-26 Juanma Barranquero <lekktu@gmail.com>
11148
11149 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
11150
111512008-06-26 Jason Rumney <jasonr@gnu.org>
11152
11153 * w32bdf.c, w32bdf.h: Remove obsolete files.
11154
11155 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
11156
11157 * w32gui.h: Don't include w32bdf.h.
11158 (XCharStruct, enum w32_char_font_type, W32FontStruct):
11159 Remove obsolete font support.
11160
11161 * w32font.h (struct w32font_info): Remove compat_w32_font.
11162 Add hfont member.
11163 (FONT_COMPAT): Remove obsolete macro.
11164
11165 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
11166 (w32font_encode_char, w32font_text_extents): Use new hfont member.
11167 (w32font_open_internal): Remove compat code. Set new hfont member.
11168 (Fx_select_font): Use new hfont member.
11169
11170 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
11171 (uniscribe_encode_char): Use new hfont member.
11172
11173 * w32term.c (x_draw_glyph_string_foreground)
11174 (x_draw_composite_glyph_string_foreground): Use new hfont member.
11175 (x_draw_glyph_string): Use metrics in w32font_info.
11176
111772008-06-26 Kenichi Handa <handa@m17n.org>
11178
11179 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
11180
111812008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
11182
11183 * unexnext.c:
11184 * m/ews4800.h:
11185 * m/hp9000s300.h:
11186 * m/ibm370aix.h:
11187 * m/mips-siemens.h:
11188 * m/ncr386.h:
11189 * m/next.h:
11190 * m/pmax.h:
11191 * m/powerpcle.h:
11192 * m/tandem-s2.h:
11193 * s/386bsd.h:
11194 * s/bsd386.h:
11195 * s/bsd4-1.h:
11196 * s/bsd4-2.h:
11197 * s/bsdos2-1.h:
11198 * s/bsdos2.h:
11199 * s/bsdos3.h:
11200 * s/bsdos4.h:
11201 * s/nextstep.h:
11202 * s/ultrix4-3.h:
11203 * s/usg5-0.h:
11204 * s/usg5-2-2.h:
11205 * s/usg5-2.h:
11206 * s/usg5-4-3.h:
11207 * s/ux4800.h:
11208 * s/uxpds.h:
11209 * s/uxpv.h: Remove support for obsolete systems.
11210 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 11211 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
11212 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
11213 Remove, insert contents in s/aix4-2.h.
11214 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
11215 * s/bsd4-3.h: Rename to ...
11216 * s/bsd-common.h: ... this.
11217 * data.c:
11218 * doc.c:
11219 * ecrt0.c:
11220 * emacs.c:
11221 * fileio.c:
11222 * floatfns.c:
11223 * keyboard.c:
11224 * mem-limits.h:
11225 * print.c:
11226 * process.c:
11227 * sysdep.c:
11228 * syssignal.h:
11229 * systty.h:
11230 * syswait.h:
11231 * term.c:
11232 * unexec.c:
11233 * unexelf.c:
11234 * unexhp9k800.c:
11235 * m/hp800.h:
11236 * m/ibmrs6000.h:
11237 * m/mips.h:
11238 * m/vax.h:
11239 * s/darwin.h:
11240 * s/freebsd.h:
11241 * s/gnu.h:
11242 * s/ms-w32.h:
11243 * s/msdos.h:
11244 * s/netbsd.h:
11245 * s/template.h: Remove references to obsolete variables.
11246
11247 * Makefile.in: Add dependencies for all unexec files.
11248 (admindir): Remove unused variable.
11249 (UNEXEC_SRC): Remove references.
11250
112512008-06-25 Chong Yidong <cyd@stupidchicken.com>
11252
11253 * xfns.c (x_default_font_parameter): If Xft is available, first
11254 try Monospace-12 for the default font.
11255
112562008-06-25 Jason Rumney <jasonr@gnu.org>
11257
11258 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
11259
112602008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
11261
11262 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
11263
11264 * buffer.c (syms_of_buffer): Remove default-word-wrap.
11265
112662008-06-25 Juanma Barranquero <lekktu@gmail.com>
11267
11268 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
11269 <scroll-conservatively>: Fix typo in docstring.
11270
11271 * xselect.c (Fx_send_client_event): Doc fix.
11272
112732008-06-25 Kenichi Handa <handa@m17n.org>
11274
11275 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
11276
11277 * font.c (font_parse_fcname): Remove unused variables.
11278 (font_sort_entites): Delete the arg SPEC. Caller changed.
11279 Fix for the case of ! best_only.
11280 (font_delete_unmatched): Check DPI and AVGWIDTH too.
11281
11282 * lisp.h (Fstring_to_unibyte): EXFUN it.
11283
11284 * character.h (str_to_unibyte): Extern it.
11285
11286 * character.c (str_to_unibyte): New function.
11287
11288 * fns.c (Fstring_to_unibyte): New function.
11289 (syms_of_fns): Defsubr it.
11290
112912008-06-24 Kenichi Handa <handa@m17n.org>
11292
11293 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
11294 DPI too.
11295 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
11296
112972008-06-24 Andreas Schwab <schwab@suse.de>
11298
11299 * Makefile.in (${lispsource}loaddefs.el): Rename from
11300 ../lisp/loaddefs.el.
11301 (bootstrap-clean): Do what distclean does but don't remove
11302 Makefile.
11303 (distclean): Depend on bootstrap-clean and remove Makefile.
11304
113052008-06-24 Chong Yidong <cyd@stupidchicken.com>
11306
11307 * buffer.h (struct buffer): New member word_wrap.
11308
11309 * buffer.c (syms_of_buffer): New variables default-word-wrap and
11310 word-wrap.
11311 (init_buffer_once): Initialize them.
11312
11313 * dispextern.h (struct it): Replace bool truncate_lines_p with a
11314 line_wrap enum possessing three possible values.
11315
11316 * termopts.h: Replace truncate_partial_width_windows with
11317 Vtruncate_partial_width_windows.
11318
11319 * dispnew.c (direct_output_for_insert): Avoid direct output when
11320 inserting a space with word wrap on.
11321
11322 * indent.c (compute_motion): Obey integer values of
11323 truncate-partial-width-windows.
11324
11325 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
11326 replacing truncate_partial_width_windows.
11327 (init_iterator): If Vtruncate_partial_width_windows is an integer,
11328 truncate only if the window width is below that integer.
11329 (start_display, resize_mini_window, produce_stretch_glyph)
11330 (display_string, move_it_in_display_line_to): Use line_wrap.
11331 (back_to_previous_visible_line_start, reseat_1): Reset
11332 string_from_display_prop_p.
11333 (display_line): Extend default face to end of line when wrapping.
11334
113352008-06-24 Kim F. Storm <storm@cua.dk>
11336
11337 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
11338 to wrap continued lines at word boundaries.
11339
113402008-06-24 Jason Rumney <jasonr@gnu.org>
11341
11342 * font.c (Ffont_face_attributes): Multiply pixel size before point
11343 conversion to avoid multiplying rounding error.
11344
113452008-06-23 Jason Rumney <jasonr@gnu.org>
11346
11347 * w32term.c (x_draw_glyph_string_background)
11348 (x_draw_glyph_string): Remove old bdf font code.
11349
11350 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
11351
113522008-06-22 Kenichi Handa <handa@m17n.org>
11353
11354 * font.c (font_find_for_lface): Try the adstyle specified in
11355 the property of LFACE_FONT of LFACE (if any).
11356
113572008-06-21 Seiji Zenitani <zenitani@mac.com>
4e2af782 11358 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
11359
11360 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
11361
113622008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
11363
11364 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
11365 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
11366 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
11367 (witness-emacs): Remove.
11368 (lisp, shortlisp): Move loaddefs.el earlier.
11369 (mostlyclean): Forget about witness-emacs.
11370
113712008-06-22 Glenn Morris <rgm@gnu.org>
11372
11373 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
11374 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
11375
113762008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
11377
11378 * Makefile.in (PRECOMP): Remove.
11379 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
11380 (witness-emacs): Run `compile-first'.
11381 (.el.elc): Use the new compile-onefile target.
11382
113832008-06-21 Kenichi Handa <handa@m17n.org>
11384
11385 * xftfont.c (xftfont_open): Handle QCembolden only when
11386 FC_EMBOLDEN is defined.
11387
113882008-06-21 Andreas Schwab <schwab@suse.de>
11389
11390 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
11391 (.el.elc): Likewise.
11392
113932008-06-21 Miles Bader <miles@gnu.org>
11394
11395 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
11396 build dir, not the lisp source dir.
11397
113982008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
11399
11400 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
11401 (bootstrapclean): Remove.
11402 (.el.elc): New rule.
11403 (PRECOMP): New var.
11404 (../lisp/subdirs.el): Remove.
11405 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
11406 (witness-emacs): New target.
11407 (mostlyclean): Remove witness-emacs as well.
11408 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
11409 Add witness-emacs dependency.
11410
114112008-06-20 Chong Yidong <cyd@stupidchicken.com>
11412
11413 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
11414 defined by the font.
11415
114162008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
11417
11418 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
11419 (bootstrap-clean): New target that keeps TAGS around.
11420 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
11421 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
11422
114232008-06-20 Jason Rumney <jasonr@gnu.org>
11424
11425 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
11426 Remove obsolete font code.
11427
11428 * w32font.c (font_matches_spec): Use csb bitfield from font signature
11429 to determine language support.
11430
114312008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
11432
11433 * sysdep.c (cfsetspeed): New fun extracted from the code.
11434 (cfmakeraw): Move before first use.
11435
114362008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
11437
11438 * sysdep.c (cfmakeraw): Provide fallback implementation.
11439 (serial_configure): Provide fallback implementation of cfsetspeed.
11440
114412008-06-20 Kenichi Handa <handa@m17n.org>
11442
11443 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
11444 the pattern.
11445
11446 * fontset.c (fontset_from_font): Copy font_spec before changing
11447 the elements.
11448
11449 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
11450
114512008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
11452
11453 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
11454 for explicit `font' parameters.
11455
11456 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
11457
114582008-06-19 Kenichi Handa <handa@m17n.org>
11459
11460 * frame.c: Include <ctype.h>.
11461 (x_set_font_backend): Allow spacing characters in the X resource
11462 for FontBackend.
11463
114642008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
11465
11466 * w32fns.c, xfns.c (Qfont_param): New var.
11467 (syms_of_w32fns): Initialize it.
11468 (x_default_font_parameter): Record explicit `font' into
11469 `font-parameter'.
11470
114712008-06-18 Kenichi Handa <handa@m17n.org>
11472
11473 * font.c (font_parse_xlfd): Fix previous change.
11474 (font_parse_fcname): Don't use :fc-unknown-spec.
11475 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
11476 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
11477 (font_add_log): Prepend the driver name to the resulting fonts.
11478
11479 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
11480 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
11481 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
11482
11483 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
11484 (QCembolden): New variables.
11485 (syms_of_xftfont): DEFSYM them.
11486 (xftfont_open): Call XftFontMatch. Don't trust the result of
11487 XftTextExtents8 if the pixel_size is less than 5.
11488
114892008-06-18 Andreas Schwab <schwab@suse.de>
11490
11491 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
11492 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
11493
114942008-06-18 Jason Rumney <jasonr@gnu.org>
11495
11496 * w32font.c (w32font_list, w32font_match): Add logging.
11497
11498 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
11499
115002008-06-17 Chong Yidong <cyd@stupidchicken.com>
11501
11502 * font.c (font_parse_fcname): Store divider characters for
11503 unknown-spec list. For known key symbols, intern using correct
11504 symbol name.
11505
115062008-06-17 Kenichi Handa <handa@m17n.org>
11507
11508 * xfaces.c (realize_default_face): If the frame is not on window
11509 system, set the fontset of face to nil.
11510
115112008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
11512
11513 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
11514
115152008-06-16 Juanma Barranquero <lekktu@gmail.com>
11516
11517 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
11518 (build_font_name_from_vector): Delete externs.
11519
11520 * xfaces.c (struct font_name): Don't declare.
11521
115222008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
11523
11524 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
11525
115262008-06-16 Chong Yidong <cyd@stupidchicken.com>
11527
11528 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
11529
115302008-06-16 Juanma Barranquero <lekktu@gmail.com>
11531
11532 * font.c (Ffont_spec): Fix usage in docstring.
11533 (Ffont_face_attributes): Doc fix.
11534
115352008-06-16 Andreas Schwab <schwab@suse.de>
11536
11537 * font.c (Ffont_face_attributes): Fix definition.
11538
115392008-06-16 Jason Rumney <jasonr@gnu.org>
11540
11541 * font.h (font_style_symbolic_from_value): Remove.
11542
11543 * font.c (font_style_symbolic_from_value): Remove.
11544 (font_style_symbolic): Revert to pre 2008-06-13 version.
11545
11546 * w32font.c (w32_to_fc_weight): New function.
11547 (w32font_full_name, logfont_to_fcname): Use it.
11548
115492008-06-16 Kenichi Handa <handa@m17n.org>
11550
11551 * font.c (font_check_object): Delete it.
11552 (font_clear_cache): Check if a font-object is alive.
11553 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
11554 font-object to nil.
11555 (font_close_object): Don't check FONT_CLOSE_OBJECT.
11556 (font_at): Don't call font_check_object.
11557 (Ffont_get): Return a symbol for :weight, :slant, and :width.
11558
115592008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
11560
11561 * puresize.h (BASE_PURESIZE): Increase to 1230000.
11562
115632008-06-16 Chong Yidong <cyd@stupidchicken.com>
11564
11565 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
11566
115672008-06-15 Chong Yidong <cyd@stupidchicken.com>
11568
11569 * font.c (font_parse_fcname): Only one decimal point.
11570 (font_unparse_fcname): Handle data in family and foundry indices
11571 as symbols, not strings.
11572 (font_unparse_gtkname, Ffont_face_attributes): New functions.
11573
11574 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
11575
11576 * font.h (font_unparse_gtkname): Add prototype.
11577
115782008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
11579
11580 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
11581
115822008-06-15 Andreas Schwab <schwab@suse.de>
11583
11584 * font.c (font_update_drivers): Fix crash when no drivers match.
11585
115862008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
11587
11588 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
11589 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
11590
115912008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
11592
11593 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
11594
115952008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
11596
11597 * process.c (Fserial_process_configure, Fprocess_send_eof):
11598 Use EQ to compare Lisp_Objects.
11599
116002008-06-13 Jason Rumney <jasonr@gnu.org>
11601
11602 * w32fns.c (Fw32_select_font): Remove old font API function.
11603
11604 * w32font.c (logfont_to_fcname): New function.
11605 (Fx_select_font): New font dialog function compatible with
11606 GTK/fontconfig version.
11607
11608 * font.c (font_style_symbolic_from_value): New function.
11609 (font_style_symbolic): Use it.
11610
11611 * font.h (font_style_symbolic_from_value): Declare new function.
11612
116132008-06-13 Juanma Barranquero <lekktu@gmail.com>
11614
11615 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
11616 <font-width-table>: Fix typos in docstrings.
11617
116182008-06-13 Daniel Engeler <engeler@gmail.com>
11619
11620 These changes add serial port access.
11621 * process.c: Add HAVE_SERIAL.
11622 (Fdelete_process, Fprocess_status, Fset_process_buffer)
11623 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
11624 (list_processes_1, select_wrapper, Fstop_process)
11625 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
11626 (status_notify): Modify to handle serial processes.
11627 [HAVE_SERIAL] (Fserial_process_configure)
11628 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
11629 New functions.
11630 * process.h (struct Lisp_Process): Add `type'.
11631 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
11632 New functions.
11633 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
11634 serial ports.
b71ac3dd 11635 (serial_open, serial_configure): New functions.
aac0c6e3
MR
11636 * w32.h: Add FILE_SERIAL.
11637 (struct _child_process): Add ovl_read, ovl_write.
11638
116392008-06-13 Kenichi Handa <handa@m17n.org>
11640
11641 * dispextern.h (enum lface_attribute_index): New member
11642 LFACE_FOUNDRY_INDEX.
11643
11644 * font.c (font_score): Delete arg alternate_families. Check only
11645 weight, slant, width, and size. Ignore the difference of alias
11646 style symbols.
11647 (font_sort_entites): Adjust for the above change. Reflect the
11648 order of font-driver to scores.
11649 (font_list_entities): Don't check alternate_familes here.
11650 (font_clear_prop): Handle foundry.
11651 (font_update_lface): Don't parse "foundry-family" form here.
11652 Handle FONT_FOUNDRY_INDEX.
11653 (font_find_for_lface): Likewise. Handle alternate families here.
11654 If registry is nil, try iso8859-1 and ascii-0.
11655 (font_open_for_lface): Pay attention to size in ENTITY.
11656 (font_open_by_name): Simplify by calling font_load_for_lface.
11657 (free_font_driver_list): Delete it.
11658 (font_update_drivers): Preserve the order of backends.
11659 (syms_of_font): Setting of sort_shift_bits adjusted for the change
11660 of font_score and font_sort_entites.
11661 (font_update_sort_order): Likewise.
11662
11663 * xfaces.c (LFACE_FOUNDRY): New macro.
11664 (check_lface_attrs): Check foundry.
11665 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
11666 (merge_face_vectors): Check foundry.
11667 (merge_face_ref): Likewise.
11668 (Finternal_set_lisp_face_attribute): Likewise.
11669 (x_update_menu_appearance): Likewise.
11670 (Finternal_get_lisp_face_attribute): Likewise.
11671 (lface_hash): Likewise.
11672 (lface_same_font_attributes_p): Likewise.
11673 (x_supports_face_attributes_p): Likewise.
11674 (tty_supports_face_attributes_p): Likewise.
11675 (Finternal_set_alternative_font_family_alist): Intern strings.
11676 (Finternal_set_alternative_font_registry_alist): Downcase strings.
11677 (realize_default_face): Set LFACE_FOUNDRY (lface).
11678
11679 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
11680 font-driver at first.
11681
11682 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
11683
116842008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
11685
11686 * lread.c (Fload): Use xfree, not free on saved_doc_string.
11687
116882008-06-12 Jim Meyering <meyering@redhat.com>
11689
11690 Make unexec_free handle NULL the same way free does.
11691 * unexmacosx.c (unexec_free): Ignore a NULL argument.
11692
116932008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
11694
11695 * character.h (CHAR_TO_BYTE_SAFE): New macro.
11696 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
11697 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
11698 (WEAK_ALIAS): Simplify.
11699 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
11700 when searching a unibyte buffer.
11701
117022008-06-12 Chong Yidong <cyd@stupidchicken.com>
11703
11704 * xfns.c (Fx_select_font): Rename from x-font-dialog.
11705
117062008-06-12 Juanma Barranquero <lekktu@gmail.com>
11707
11708 * w32font.c: Include ctype.h.
11709
117102008-06-11 Jason Rumney <jasonr@gnu.org>
11711
11712 * w32font.c (w32font_encode_char): Detect missing glyphs that are
11713 misreported as space.
11714 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
11715 as aliases for registry iso10646-1.
11716
117172008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
11718
11719 * buffer.c (clone_per_buffer_values): Skip `name'.
11720
117212008-06-11 Chong Yidong <cyd@stupidchicken.com>
11722
11723 * font.c (font_parse_fcname): Fix last change; accept decimal
11724 points in font size.
11725
117262008-06-10 Jason Rumney <jasonr@gnu.org>
11727
11728 * w32uniscribe.c (add_opentype_font_name_to_list):
11729 Skip non unicode fonts.
11730
117312008-06-10 Chong Yidong <cyd@stupidchicken.com>
11732
11733 * xfns.c (Fx_font_dialog): New function.
11734
11735 * gtkutil.c (xg_dialog_response_cb): Rename from
11736 xg_file_response_callback.
11737 (pop_down_dialog): Rename from pop_down_file_dialog.
11738 (xg_get_file_name): Callers changed.
11739 (xg_get_font_name): New function.
11740
11741 * gtkutil.h (xg_get_font_name): Insert prototype.
11742
117432008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
11744
11745 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
11746 x_underline_minimum_display_offset.
11747 (syms_of_xdisp): Declare it here rather than in xterm.c.
11748 * dispextern.h (underline_minimum_offset): Declare it.
11749 * w32term.c (x_draw_glyph_string): Use it.
11750 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
11751 (syms_of_xterm): Don't declare it any more.
11752 (x_draw_glyph_string): Adjust to the new name.
11753
8719abec 117542008-06-10 David De La Harpe Golden <david@harpegolden.net>
aac0c6e3
MR
11755
11756 * xterm.c (x_underline_minimum_display_offset): New var.
11757 (x_draw_glyph_string): Use it.
11758 (syms_of_xterm): Declare it.
11759
117602008-06-10 Chong Yidong <cyd@stupidchicken.com>
11761
11762 * font.c (font_parse_fcname): Accept GTK-style font names too.
11763
117642008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
11765
11766 * dired.c (file_name_completion): Don't return t if the match is exact
11767 but with different capitalization.
11768 * minibuf.c (Ftry_completion): Simplify.
11769
11770 * window.c (Vwindow_point_insertion_type): New var.
11771 (set_window_buffer): Use it.
11772 (syms_of_window): Init and export it to Lisp.
11773
117742008-06-10 Kenichi Handa <handa@m17n.org>
11775
11776 * font.h (font_intern_prop): Prototype adjusted.
11777
11778 * font.c (font_intern_prop): New arg force_symbol.
11779 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
11780 Adjust for the change of font_intern_prop.
11781
11782 * ftfont.c (ftfont_pattern_entity):
11783 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
11784 (w32_registry):
11785 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
11786 the change of font_intern_prop.
11787
117882008-06-09 Juanma Barranquero <lekktu@gmail.com>
11789
11790 * w32menu.c (digest_single_submenu): Declare extern.
11791
117922008-06-09 Jason Rumney <jasonr@gnu.org>
11793
11794 * w32term.c (x_make_frame_visible): Use alternate restore flags.
11795
11796 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
11797 (parse_single_submenu): Remove.
11798 (digest_single_submenu): Remove.
11799 (syms_of_w32menu): Don't initialise variables that have moved
11800 to menu.c.
11801 (set_frame_menubar): Sync with version in xmenu.c.
11802 (w32_menu_show): Sync with xmenu_show in xmenu.c.
11803
11804 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
11805 Make static again.
11806
118072008-06-09 Jason Rumney <jasonr@gnu.org>
11808
11809 Changes to w32 files related to the move of common menu code
11810 to menu.c on 2008-06-08 by Chong Yidong.
11811
11812 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
11813 defs to w32gui.h.
11814 (single_keymap_panes, push_menu_item, push_menu_pane):
11815 Make globally visible.
11816
11817 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
11818 (local_free, malloc_widget_value, free_widget_value)
11819 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
11820 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
11821 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
11822 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
11823 (menu_items, menu_items_allocated, menu_items_used)
11824 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
11825 (init_menu_items, finish_menu_items, discard_menu_items)
11826 (grow_menu_items, push_submenu_start, push_submenu_end)
11827 (push_left_right_boundary, push_menu_pane, push_menu_item)
11828 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
11829 (free_menubar_widget_tree_value, parse_single_submenu)
11830 (update_submenu_strings): Remove functions.
11831 (xmalloc_widget_value): Remove and declare extern.
11832
11833 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
11834 (OBJ1): Build it.
11835
11836 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
11837 (local_heap, local_alloc, local_free, malloc_widget_value)
11838 (free_widget_value): Define here.
11839
118402008-06-09 Kenichi Handa <handa@m17n.org>
11841
11842 * font.h (Qascii_0): Extern it.
11843
11844 * font.c (Qascii_0): New variable.
11845 (syms_of_font): DEFSYM it.
11846 (font_open_by_name): If the registry "iso8859-1" fails, try also
11847 "ascii-0".
11848
11849 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
11850
118512008-06-08 Kenichi Handa <handa@m17n.org>
11852
11853 * .gdbinit (xfont): New command.
11854
118552008-06-08 Andreas Schwab <schwab@suse.de>
11856
11857 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
11858 * Makefile.in (menu.o): Update dependencies.
11859
11860 * Makefile.in (obj): Always add menu.o.
11861 * emacs.c (main): Always call syms_of_menu.
11862 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
11863
118642008-06-08 Chong Yidong <cyd@stupidchicken.com>
11865
11866 * Makefile.in: Compile menu.c.
11867
11868 * lisp.h: Declare syms_of_menu.
11869
11870 * emacs.c (main): Call syms_of_menu.
11871
11872 * keyboard.h: Relocate platform-independent menu definitions from
11873 xmenu.c.
11874
11875 * menu.c: New file. Relocate platform-independent menu
11876 definitions from xmenu.c. Suggested by Adrian Robert.
11877
11878 * xmenu.c: Remove platform-independent menu definitions.
560bb7ae 11879 (menu_items, menu_items_inuse, menu_items_allocated)
aac0c6e3
MR
11880 (menu_items_used, menu_items_n_panes)
11881 (menu_items_submenu_depth): Move to keyboard.h.
11882 (init_menu_items, finish_menu_items, unuse_menu_items)
11883 (discard_menu_items, restore_menu_items, save_menu_items)
11884 (grow_menu_items, push_submenu_start, push_submenu_end)
11885 (push_left_right_boundary, push_menu_pane, push_menu_item)
11886 (keymap_panes, single_keymap_panes, single_menu_item)
11887 (list_of_panes, list_of_items, find_and_call_menu_selection)
11888 (xmalloc_widget_value, free_menubar_widget_value_tree)
11889 (parse_single_submenu, digest_single_submenu)
11890 (update_submenu_strings): Move to menu.c.
11891
118922008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
11893
11894 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
11895
118962008-06-06 Miles Bader <miles@gnu.org>
11897
11898 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
11899 face, not frame default.
11900
119012008-06-05 Martin Rudalics <rudalics@gmx.at>
11902
11903 * window.c (pop_up_windows, pop_up_frames)
11904 (display_buffer_reuse_frames, Vpop_up_frame_function)
11905 (Vdisplay_buffer_function, Veven_window_heights)
11906 (Vspecial_display_buffer_names, Vspecial_display_regexps)
11907 (Vspecial_display_function, Vsame_window_buffer_names)
11908 (Vsame_window_regexps, split_height_threshold)
11909 (Vsplit_window_preferred_function): Move those vars to window.el.
11910 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
11911 (Fdisplay_buffer): Move those functions to window.el.
11912 (syms_of_window): Remove corresponding declarations.
11913 (display_buffer): New function.
11914 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
11915 * dispnew.c (Flast_nonminibuf_frame): New function.
11916 * buffer.c (Fpop_to_buffer): Move to window.el.
11917
119182008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
11919
11920 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
11921
119222008-06-05 Kenichi Handa <handa@m17n.org>
11923
11924 * coding.c (detect_coding): Fix previous change.
11925 (detect_coding_system): Likewise.
11926
119272008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
11928
11929 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
11930
11931 * keymap.c (Vminibuffer_local_filename_must_match_map):
11932 Rename from Vminibuffer_local_must_match_filename_map.
11933 (syms_of_keymap):
11934 * minibuf.c (Fcompleting_read): Adjust accordingly.
11935 * commands.h: Rename declaration as well.
11936
119372008-06-05 Kenichi Handa <handa@m17n.org>
11938
11939 * font.c (Ffont_spec): Don't use font_parse_family_registry for
11940 family name.
11941 (Ffont_put): Likewise.
11942
11943 * fontset.c (fontset_find_font): Call font_open_for_lface with the
11944 current font-spec.
11945
11946 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
11947 is unspecified.
11948
11949 * xfaces.c (realize_x_face): If the font-related face attributes
11950 are the same as those of default face, realize a new fontset from
11951 default->fontset.
11952 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
11953
119542008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
11955
11956 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
11957 (move_it_in_display_line): New wrapper.
11958
11959 * window.c (window_scroll_pixel_based_preserve_x)
11960 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
11961 (window_scroll_pixel_based, window_scroll_line_based):
11962 Use them to preserve column positions.
11963 (syms_of_window): Initialize them.
11964
11965 * indent.c (Fvertical_motion): Extend first arg to allow passing an
11966 (HPOS . VPOS) pair.
11967
11968 * dispextern.h (move_it_in_display_line): Declare.
11969
119702008-06-05 Juanma Barranquero <lekktu@gmail.com>
11971
11972 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
11973 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
11974 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
11975
119762008-06-04 Juanma Barranquero <lekktu@gmail.com>
11977
11978 * window.c (Fset_window_parameter): Doc fix.
11979 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
11980
119812008-06-04 Joakim Verona <joakim@verona.se>
11982
11983 * window.h (struct window): Add new member window_parameters.
11984
11985 * window.c (Fwindow_parameters, Fwindow_parameter)
11986 (Fset_window_parameter): New defuns.
11987 (syms_of_window): Defsubr the new defuns.
11988 (make_window): Initialize window_parameters to nil.
11989
119902008-06-04 John Paul Wallington <jpw@pobox.com>
11991
11992 * eval.c (Fdefmacro): Doc fix.
11993
119942008-06-04 Kenichi Handa <handa@m17n.org>
11995
11996 * coding.c (detect_coding): Fix handling of coding->head_ascii.
11997 Be sure to call setup_coding_system when we find a proper coding system.
11998 (detect_coding_system): Fix handling of coding->head_ascii.
11999
120002008-06-03 Andreas Schwab <schwab@suse.de>
12001
12002 * font.c (font_prop_validate_spacing): Fix last change.
12003
120042008-06-03 Kenichi Handa <handa@m17n.org>
12005
12006 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
12007 (font_parse_fcname): Fix handling of unknown key.
12008
12009 * xfont.c (xfont_list): Try an alias.
12010
12011 * charset.c (char_charset): Return NULL if the arg charset_list is
12012 specified and C doesn't belong to any of them.
12013
120142008-06-02 Chip Coldwell <coldwell@redhat.com>
12015
12016 * font.c (font_pixel_size): Don't take cdr of an integer.
12017
120182008-06-02 Jim Meyering <meyering@redhat.com>
12019
12020 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
12021 * alloc.c (xfree): Return right away for a NULL arg.
12022 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
12023 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
12024 * mac.c (create_apple_event_from_event_ref): Likewise.
12025 (create_apple_event_from_drag_ref, cfstring_create_normalized):
12026 Likewise.
12027 * doprnt.c (doprnt1): Likewise.
12028 * frame.c (frame): Likewise.
12029 * keyboard.c (wipe_kboard): Likewise.
12030 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
12031 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
12032 * term.c (tty_default_color_capabilities, maybe_fatal)
12033 (delete_tty): Likewise.
12034 * w16select.c (string): Likewise.
12035 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
12036 * w32bdf.c (w32_free_bdf_font): Likewise.
12037 * w32fns.c (w32_unload_font): Likewise.
12038 * w32font.c (w32font_close): Likewise.
12039 * window.c (size_window): Likewise.
12040 * xselect.c (receive_incremental_selection): Likewise.
12041 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
12042 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
12043 * w32.c (stat): Likewise.
12044
12045 Remove useless if-before-free tests.
12046 * editfns.c (Fset_time_zone_rule): Likewise.
12047 * lread.c (nosuffix): Likewise.
12048 * ralloc.c (get_bloc): Likewise.
12049 * regex.c (reg_free): Likewise.
12050 * xftfont.c (xftfont_open, xftfont_close): Likewise.
12051 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
12052 * xsmfns.c (smc_save_yourself_CB): Likewise.
12053
120542008-06-02 Kenichi Handa <handa@m17n.org>
12055
12056 * font.c (font_find_for_lface): Handle float font size.
12057 (font_open_for_lface): Likewise.
12058
12059 * xfaces.c (x_supports_face_attributes_p): Check face->font before
12060 comparing the properties.
12061
120622008-06-01 Jason Rumney <jasonr@gnu.org>
12063
12064 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
12065 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
12066 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
12067 Don't add empty script list.
12068 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
12069
120702008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
12071
12072 * Makefile.in (dot, dotdot): Remove, update users.
12073 ".." has been used elsewhere in the file for a long time.
12074 (LIBXT_STATIC): Remove conditional based on unused variable.
12075
120762008-06-01 Miles Bader <miles@gnu.org>
12077
12078 * xfaces.c (Vface_remapping_alist): New variable.
12079 (syms_of_xfaces): Initialize it.
12080 (enum named_merge_point_kind): New type.
12081 (struct named_merge_point): Add `named_merge_point_kind' field.
12082 (push_named_merge_point): Make cycle detection respect different
12083 named-merge-point kinds.
12084 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
12085 Remove face-name alias resolution.
12086 (lface_from_face_name): New definition using
12087 `lface_from_face_name_no_resolve'.
12088 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
12089 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
12090 (get_lface_attributes): New definition that layers face-remapping on
12091 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
12092 (lookup_basic_face): New function.
12093 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
12094 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
12095 `get_lface_attributes'.
12096 (face_at_buffer_position): Use `lookup_basic_face' to lookup
12097 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
12098 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
12099
12100 * xdisp.c (init_iterator): Pass base_face_id through
12101 `lookup_basic_face' when we actually use it as a face-id.
12102 (handle_single_display_prop): Use `lookup_basic_face' to lookup
12103 DEFAULT_FACE_ID.
12104
12105 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
12106 lookup the initial face-id.
12107
12108 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
12109
121102008-06-01 Juanma Barranquero <lekktu@gmail.com>
12111
12112 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
12113 (Fremove_text_properties): Fix typos in docstrings.
12114
121152008-05-31 Kenichi Handa <handa@m17n.org>
12116
12117 * font.c (font_list_entities): Fix the car part of data to be
12118 stored in the cache.
12119
12120 * ftfont.c (ftfont_font_format): Don't use strcasestr.
12121
121222008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
12123
12124 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
12125 Add a `test' argument so another predicate than `equal' can be used.
12126 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
12127 (map_char_table): Remove unused vars `c' and `i'.
12128 * lisp.h (Foptimize_char_table): Adjust declaration.
12129 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
12130
121312008-05-30 Kenichi Handa <handa@m17n.org>
12132
12133 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
12134 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
12135 defined.
12136
121372008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
12138
12139 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
12140 (Fmake_variable_frame_local): Disallow mixing buffer-local and
12141 frame-local settings for the same variable.
12142
121432008-05-30 Kenichi Handa <handa@m17n.org>
12144
12145 * fontset.c (Ffont_info): Move to font.c.
12146 (syms_of_fontset): Delete defsubr of Sfont_info.
12147
12148 * font.c (font_style_to_value, font_score): Delete casting of the
12149 args to xstcasecmp.
12150 (register_font_driver): Increment num_font_drivers only when
12151 registering the driver globally.
12152 (Ffont_info): Move from fontset.c. Handle a font object too.
12153 (syms_of_font): Defsubr Sfont_info.
12154
121552008-05-29 Kenichi Handa <handa@m17n.org>
12156
12157 * coding.h (enum define_coding_utf8_arg_index): New enum.
12158 (enum coding_attr_index): Change coding_attr_utf_16_bom to
12159 coding_attr_utf_bom.
12160 (enum utf_bom_type): Rename from utf_16_bom_type.
12161 (struct utf_16_spec): Adjust for the above change.
12162 (struct coding_system): Add utf_8_bom in `spec' union.
12163
12164 * coding.c (CODING_UTF_8_BOM): New macro.
12165 (enum coding_category): Delete coding_category_utf_8, add
12166 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
12167 coding_category_utf_8_sig.
12168 (CATEGORY_MASK_UTF_8): Delete it.
12169 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
12170 (CATEGORY_MASK_UTF_8_SIG): New macros.
12171 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
12172 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
12173 CATEGORY_MASK_UTF_8_SIG.
12174 (CATEGORY_MASK_UTF_8): New macro.
12175 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
12176 (detect_coding_utf_8): Check BOM.
12177 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
12178 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
12179 (encode_coding_utf_16): Likewise.
12180 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
12181 (detect_coding, detect_coding_system): Handle utf-8-auto.
12182 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
12183 (syms_of_coding): Fix setting up of Vcoding_category_table.
12184
121852008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
12186
12187 * process.c (Faccept_process_output): If `millisec' is non-nil,
12188 `seconds' default to 0.
12189 (wait_reading_process_output): Also return non-nil if we read output
12190 from a non-running process.
12191
121922008-05-29 Jason Rumney <jasonr@gnu.org>
12193
12194 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
12195 `raster' specified.
12196 (add_font_entity_to_list): Allow non-opentype truetype fonts back
12197 in the uniscribe backend, but disallow any font that has no
12198 unicode subrange support.
12199
122002008-05-29 Juanma Barranquero <lekktu@gmail.com>
12201
12202 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
12203 Fix typos in docstrings.
12204
122052008-05-29 Kenichi Handa <handa@m17n.org>
12206
12207 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
12208 (Fx_family_fonts): Set frame correctly.
12209
122102008-05-28 Jason Rumney <jasonr@gnu.org>
12211
12212 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
12213
122142008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
12215
12216 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
12217 calling build_annotations.
12218
122192008-05-28 Juanma Barranquero <lekktu@gmail.com>
12220
12221 * coding.c (Fdecode_coding_region, Fencode_coding_region)
12222 (Fencode_coding_string):
12223 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
12224 <latin-extra-code-table>: Fix typos in docstrings.
12225 (syms_of_coding) <coding-system-alist>: Doc fix.
12226 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
12227
122282008-05-28 Kenichi Handa <handa@m17n.org>
12229
12230 * fontset.c (Ffont_info): Don't call font_close_object.
12231
12232 * font.c (font_parse_family_registry): Use Ffont_put to validate
12233 foundry and family.
12234 (font_delete_unmatched): Don't check spacing.
12235 (font_list_entities): Add spacing to the spec to list fonts.
12236
12237 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
12238 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
12239
12240 * coding.c (encode_coding_raw_text): Fix previous change.
12241 (encode_coding_object): When the dst_object is a buffer and is
12242 different from src_object, move gap to PT.
12243
122442008-05-27 Chong Yidong <cyd@stupidchicken.com>
12245
12246 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
12247
122482008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
12249
12250 * coding.c (encode_coding_raw_text): Set coding->produced_char for
12251 all branches. Compute it differently.
12252
12253 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
12254
122552008-05-27 Juanma Barranquero <lekktu@gmail.com>
12256
12257 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
12258 into "else if () ... else ...".
12259
122602008-05-27 Jason Rumney <jasonr@gnu.org>
12261
12262 * w32font.c (w32font_open_internal): Determine if glyph indices
12263 are likely to work here.
12264
122652008-05-27 Chong Yidong <cyd@stupidchicken.com>
12266
12267 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
12268 draw overlap glyphs with appropriate highlighting.
12269
122702008-05-27 Kenichi Handa <handa@m17n.org>
12271
12272 * xfont.c (xfont_open): Fix calculation of font->average_width.
12273
122742008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
12275
12276 * casefiddle.c (casify_object): Try to guess better whether the
12277 argument is a byte or a char.
12278
122792008-05-26 Andreas Schwab <schwab@suse.de>
12280
12281 * xselect.c (x_reply_selection_request): Properly handle format == 32.
12282 Always send multiples of format size.
12283
12284 * xterm.c (x_set_frame_alpha): Fix type mismatch.
12285
122862008-05-26 Jason Rumney <jasonr@gnu.org>
12287
12288 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
12289 (compute_metrics): Don't set failure if we just cleared the cache.
12290 (w32_weight_table): Remove unused variable.
12291 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
12292 backwards compatibility.
12293
122942008-05-25 Kenichi Handa <handa@m17n.org>
12295
12296 * w32term.c (x_draw_glyph_string):
12297 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
12298
12299 * xfaces.c: Delete unused function prototypes.
12300 (xstrlwr, font_frame): Delete them.
12301 (clear_face_cache): Delete unused variable.
12302
12303 * xftfont.c (xftfont_open): Delete unused variable.
12304 If underline_thickness is not 1, adjust underline_position.
12305
12306 * ftxfont.c (ftxfont_open): Delete unused variable.
12307
12308 * fontset.c (face_for_char): Optimize for the case of no charset
12309 property.
12310
12311 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
12312 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
12313 (otf_open, font_otf_capability, generate_otf_features)
12314 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
12315 Comment out by surrounding "#if 0" and "#endif" for the moment.
12316 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
12317 (syms_of_font): Codes for accessing above commented out.
12318
123192008-05-24 Eli Zaretskii <eliz@gnu.org>
12320
12321 * w32proc.c: Include dispextern.h.
12322
12323 * w32.c: Include dispextern.h.
12324
123252008-05-23 Juanma Barranquero <lekktu@gmail.com>
12326
12327 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
12328 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
12329 Fix typos in docstrings.
12330
123312008-05-23 Jason Rumney <jasonr@gnu.org>
12332
12333 * xsmfns.c: Remove includes that are already included by config.h.
12334
123352008-05-23 Kenichi Handa <handa@m17n.org>
12336
12337 * charset.c (Qemacs, charset_emacs): New variables.
12338 (char_charset): Fix for non-Unicode characters.
12339 (syms_of_charset): Define charset_emacs.
12340
12341 * w32term.c (x_draw_glyph_string): Be sure to update
12342 s->underline_thickness and s->underline_position. Be sure to draw
12343 underline within the current line area.
12344
12345 * xterm.c (x_draw_glyph_string): Be sure to update
12346 s->underline_thickness and s->underline_position. Be sure to draw
12347 underline within the current line area.
12348
12349 * fontset.c: Delete unused variables and add casting for char *
12350 throughout the file.
12351 (fontset_font): Try the fallback fonts of the current fontset
12352 before consulting the default fontset.
12353
12354 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
12355
12356 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
12357
123582008-05-22 Jason Rumney <jasonr@gnu.org>
12359
12360 * font.c: Don't include strings.h.
12361
12362 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
12363
12364 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
12365 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
12366 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
12367 to call xstrcasecmp.
12368
12369 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
12370
12371 * fontset.c (fs_query_fontset): Use xstrcasecmp.
12372
12373 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
12374
12375 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
12376
123772008-05-22 Kenichi Handa <handa@m17n.org>
12378
12379 * puresize.h (BASE_PURESIZE): Increase to 1220000.
12380
12381 * font.c (font_prop_validate_style): Adjust for the format
12382 change of font_style_table.
12383
12384 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
12385 two args.
12386
12387 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
12388 two args.
12389
123902008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
12391
12392 * minibuf.c (keys_of_minibuf): Delete.
12393 * lisp.h (keys_of_minibuf): Delete.
12394 * emacs.c (main): Don't call keys_of_minibuf.
12395
123962008-05-22 Kenichi Handa <handa@m17n.org>
12397
12398 * ftfont.c (ftfont_resolve_generic_family): Rename from
12399 ftfont_list_generic_family. Return a single family for each
12400 generic family.
12401 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
12402 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
12403 Call font_add_log.
12404 (ftfont_match): Call font_add_log.
12405
12406 * font.h (Ffont_xlfd_name): EXFUN adjusted.
12407 (FONT_DEBUG): Define it.
12408 (font_add_log): Extern it.
12409 (font_assert): Rename from xassert.
12410
12411 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
12412 (xfont_list_family): Call font_add_log.
12413 (xfont_match): Likewise.
12414 (memq_no_quit): Delete.
12415
12416 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
12417 call of Ffont_xlfd_name.
12418
12419 * xfaces.c (struct table_entry, slant_table, weight_table)
12420 (swidth_table): Move to font.c.
12421
12422 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
12423 xassert are changed to font_assert. Delete many unused variables.
12424 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
12425 New variables.
12426 (struct table_entry): Move from xfaces.c and modified.
12427 (weight_table, slant_table, width_table): Move from xfaces.c and
12428 contents adjusted for the change of struct table_entry.
12429 (font_style_to_value, font_style_symbolic): Adjust for the
12430 format change of font_style_table.
12431 (font_parse_family_registry): Don't overwrite existing foundry and
12432 family of font_spec.
12433 (font_score): Fix calculation of diff for sizes.
12434 (font_sort_entites): Call font_add_log.
12435 (font_delete_unmatched): Return a newly created list.
12436 (font_list_entities): Fix previous change. Call font_add_log.
12437 (font_matching_entity, font_open_entity, font_close_entity):
12438 Call font_add_log.
12439 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
12440 (Finternal_set_font_style_table): Delete.
12441 (BUILD_STYLE_TABLE): New macro.
12442 (build_style_table): New function.
12443 (Vfont_log, font_log_env_checked): New variables.
12444 (font_add_log): New function.
12445 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
12446 Declare Lisp variables "font-weight-table", "font-slant-table",
12447 "font-width-table", and "font-log". Initialize font_style_table.
12448
124492008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
12450
12451 * xterm.c (x_set_frame_alpha): Move declarations before statements.
12452
124532008-05-21 Seiji Zenitani <zenitani@mac.com>
4e2af782 12454 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
12455
12456 * frame.c (Qalpha): Add a new frame parameter `alpha'.
12457 (Vframe_alpha_lower_limit): New variable.
12458 (x_set_alpha): New function.
12459
12460 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
12461
12462 * xfns.c (x-create-frame, Qalpha):
12463 Initialize the frame parameter `alpha'.
12464 * xterm.c (OPAQUE, OPACITY): New.
12465 (x_set_frame_alpha): New function.
12466 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
12467
12468 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
12469 * w32fns.c (w32_frame_parm_handlers): Likewise.
12470
124712008-05-20 Jason Rumney <jasonr@gnu.org>
12472
12473 * w32font.c (add_font_entity_to_list): Don't add non-opentype
12474 truetype fonts to opentype list.
12475
124762008-05-20 Juanma Barranquero <lekktu@gmail.com>
12477
12478 * fontset.c (Ffontset_info): Doc fix.
12479 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
12480 <ignore-relative-composition>: Fix typos in docstrings.
12481
12482 * font.c (syms-of-font) <font-encoding-alist>:
12483 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
12484 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
12485 (Ffont_otf_alternates): Doc fixes.
12486
124872008-05-20 Kenichi Handa <handa@m17n.org>
12488
12489 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
12490 font.h through out the file.
12491 (FONT_DRIVERS): Rename from FONTOBJ.
12492 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
12493 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
12494
12495 * emacs.c (main): Call syms_of_font unconditionally.
12496
12497 * font.h (find_font_encoding): Extern it.
12498
12499 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
12500 fontset.c.
194d44e7 12501 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
aac0c6e3
MR
12502 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
12503 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
12504 only when HAVE_WINDOW_SYSTEM is defined.
12505 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
12506 when HAVE_WINDOW_SYSTEM is defined.
12507
12508 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
12509 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
12510
12511 * xfaces.c: Include font.h unconditionally.
12512 (merge_face_ref, merge_face_vectors)
12513 (Finternal_set_lisp_face_attribute): Cancel the previous change.
12514
125152008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
12516
12517 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
12518 indirect_variable.
12519 * eval.c (lisp_indirect_variable): New fun.
12520 (Fuser_variable_p): Use it.
12521
125222008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
12523
12524 * lisp.h (indirect_variable):
12525 * data.c (indirect_variable, let_shadows_buffer_binding_p):
12526 Use Lisp_Symbol pointers rather than Lisp_Object.
12527 Adjust callers.
12528 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
12529 To this end, change calling-convention.
12530
12531 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
12532 if some non-hidden buffers are selected by string&pred.
12533
125342008-05-19 Chong Yidong <cyd@stupidchicken.com>
12535
12536 * process.c (wait_reading_process_output): Always check status
12537 when in batch mode.
12538
125392008-05-19 Kenichi Handa <handa@m17n.org>
12540
12541 * font.c (font_list_entities): Fix handling of cache.
12542 (font_matching_entity): Likewise.
12543
12544 * ftfont.c (cs_iso8859_1): Delete.
12545 (ft_face_cache): New variable.
12546 (struct ftfont_info): New member fc_charset_idx.
12547 (ftfont_build_basic_charsets): Delete.
12548 (fc_charset_table): New variable.
12549 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
12550 . FC_CHARSET_IDX) as :font-entity property in the font entity.
12551 Callers changed.
12552 (ftfont_lookup_cache, ftfont_get_charset): New functions.
12553 (ftfont_spec_pattern): New argument fc_charset_idx.
12554 Check registry more rigidly. Change callers.
12555 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
12556 change of :font-entity property of the font.
12557
12558 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
12559 property of the font.
12560
125612008-05-18 Juanma Barranquero <lekktu@gmail.com>
12562
12563 * coding.c (Fcoding_system_p): Rename argument to match docstring.
12564 (Funencodable_char_position, Fcheck_coding_systems_region)
12565 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
12566 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
12567 (Ffind_operation_coding_system, Fset_coding_system_priority)
12568 (Fcoding_system_eol_type): Doc fixes.
12569
125702008-05-17 Glenn Morris <rgm@gnu.org>
12571
12572 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
12573
125742008-05-16 Eli Zaretskii <eliz@gnu.org>
12575
12576 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
12577 and st_gid.
12578
12579 * frame.c (Fdelete_frame): Don't call font_update_drivers if
12580 HAVE_WINDOW_SYSTEM is not defined.
12581
12582 * xfaces.c (merge_face_ref, merge_face_vectors)
12583 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
12584 HAVE_WINDOW_SYSTEM is defined.
12585 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
12586
125872008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
12588
12589 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
12590
125912008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12592
12593 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
12594
125952008-05-15 Kenichi Handa <handa@m17n.org>
12596
12597 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
12598 preference.
12599
126002008-05-15 Glenn Morris <rgm@gnu.org>
12601
12602 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
12603
126042008-05-15 Chong Yidong <cyd@stupidchicken.com>
12605
12606 * fns.c (init_fns): Don't initialize weak_hash_tables here.
12607 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
12608
12609 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
12610
126112008-05-15 Kenichi Handa <handa@m17n.org>
12612
12613 * ftfont.c (ftfont_list): Downcase family name to check generic
12614 families.
12615
12616 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
12617 font-spec for QCfont value.
12618
12619 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
12620 buffer. Check the return value of it.
12621
126222008-05-14 Jason Rumney <jasonr@gnu.org>
12623
12624 * w32term.c (w32_get_glyph_overhangs): Remove.
12625 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
12626
126272008-05-14 Kenichi Handa <handa@m17n.org>
12628
12629 * font.c (font_prop_validate): Make nil a valid value.
12630 (font_clear_cache): Check if the cached vector of entities is nil
12631 or not.
12632
126332008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12634
12635 * emacs.c (main_thread): Conditionalize on
12636 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
12637 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
12638
12639 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
12640 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
12641 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
12642
126432008-05-14 Kenichi Handa <handa@m17n.org>
12644
12645 * coding.c (detect_coding_iso_2022): Ignore a coding category that
12646 has no corresponding coding system.
12647
126482008-05-14 Jason Rumney <jasonr@gnu.org>
12649
12650 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
12651
12652 * w32font.h (w32font_open_internal): Update declaration.
12653
12654 * w32font.c (w32font_open_internal): Change last argument from
12655 w32font_info struct to font object. Fill in font object from
12656 font_entity. Get Outline metrics if possible. Use them to
12657 calculate underline position and thickness. Use xlfd name as name
12658 property. Don't set codepage.
12659 (w32font_open): Pass font_object to w32font_open_internal. Don't
12660 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
12661 (w32font_draw): Use s->font.
12662 (clear_cached_metrics): Don't clear non-existent blocks.
12663
12664 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
12665 font was not found.
12666 (x_draw_glyph_string): Use underline position and thickness from font.
12667
12668 * w32uniscribe.c (uniscribe_open): Pass font_object to
12669 w32font_open_internal.
12670
126712008-05-14 Kenichi Handa <handa@m17n.org>
12672
12673 These changes are to delete all legacy font-handling codes, and
12674 make Emacs use only font-backends.
12675
12676 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
12677 (frame.o, image.o, print.o): Depend on $(FONTSRC).
12678
12679 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
12680
12681 * charset.h (Vcharset_non_preferred_head)
12682 (Vcurrent_iso639_language): Extern them.
12683
12684 * charset.c (Vcharset_non_preferred_head): New variable.
12685 (Vcurrent_iso639_language): New variable.
12686 (syms_of_charset): Declare it as a Lisp variable.
12687 (char_charset): Don't check non preferred charsets. As a last
12688 resort, return charset_unicode.
12689 (Fset_charset_priority): Update Vcharset_non_preferred_head.
12690
12691 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
12692 conditionals. Don't check enable_font_backend. Delete all codes
12693 used only when USE_FONT_BACKEND is not defined.
12694
12695 * dispextern.h (struct glyph_string): Change type of `font' to
12696 `struct font *'.
12697 (struct glyph_string): New member underline_position and
12698 underline_thickness.
12699 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
12700 (struct face): Change type of `font' to `struct font *'. Remove
12701 members `font_name', `font_info_id'.
12702 (per_char_metric, encode_char): Delete externs.
12703 (calc_pixel_width_or_height): Adjust the prototype.
12704
12705 * emacs.c (enable_font_backend): Delete extern.
12706 (main): Don't set enable_font_backend. Don't check the command
12707 line argument "-disable-font-backend".
12708
12709 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
12710 (enum font_property_index): New members FONT_DPI_INDEX,
12711 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
12712 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
12713 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
12714 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
12715 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
12716 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
12717 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
12718 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
12719 (struct font_spec, struct font_entity): New structs.
12720 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
12721 (struct font): Many members from old "struct font_info" moved to
12722 here. Members font and entity deleted.
12723 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
12724 the new font-related objects.
12725 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
12726 (CHECK_FONT_GET_OBJECT): Likewise.
12727 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
12728 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
12729 (struct font_driver): New members case_sensitive anc check. Type
12730 of the member list and open changed.
12731 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
12732 (font_symbolic_width, font_find_object, font_get_spec)
12733 (font_set_lface_from_name): Delete extern.
12734 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
12735
12736 * font.c: Include <strings.h>.
12737 (enable_font_backend): Delete it.
12738 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
12739 (CHECK_VALIDATE_FONT_SPEC): Delete it.
12740 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
12741 (null_string): Delete it.
12742 (null_vector): Make it static.
12743 (font_family_alist): Delete it.
12744 (Qnormal): Extern it.
12745 (QCextra, QClanguage): Delete it.
12746 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
12747 (font_make_spec, font_make_entity, font_make_object)
12748 (font_intern_prop): Renamed from intern_downcase. Don't downcase
12749 the string. Callers changed.
12750 (font_pixel_size): Adjusted for the format change of font-related
12751 objects.
12752 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
12753 (font_style_to_value, font_style_symbolic): New function.
12754 (build_font_family_alist): Delete it.
12755 (font_registry_charsets): Use Fassoc_string instead of
12756 assq_no_quit.
12757 (font_prop_validate_symbol): Don't return null_string.
12758 (font_prop_validate_style): Adjusted for the change of
12759 style-related values in a font vector.
12760 (font_property_table): Delete entries for QClanguage and
12761 QCantialias, add entries for QCavgwidth.
12762 (get_font_prop_index): Delete the 2nd argument FROM.
12763 (font_prop_validate): Arguments changed.
12764 (font_put_extra): Adjusted for the change of font-related objects.
12765 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
12766 (font_parse_fcname, font_unparse_fcname)
12767 (font_prepare_composition): Likewise.
12768 (font_parse_family_registry): Renamed from font_merge_old_spec.
12769 (otf_open): Delete the 1st arg entity.
12770 (font_otf_capability): Adjusted for the above change.
12771 (font_score): New arg alternate_families. Adjusted for the change
12772 of font-related objects.
12773 (font_sort_entites): New arg best_only.
12774 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
12775 Delete them.
12776 (font_match_p): Check alternate families.
12777 (font_find_object): Delete it.
12778 (font_check_object): New function.
12779 (font_clear_cache): Adjusted for the change of font-related objects.
12780 (font_delete_unmatched): New arg.
12781 (font_list_entities): Call font_driver->list with a spec that
12782 doesn't specify style-related properties.
12783 (font_matching_entity): Arguments changed. Caller changed.
12784 (font_open_entity): Adjusted for the change of font-related objects.
12785 (font_close_object, font_has_char, font_encode_char)
12786 (font_get_name, font_get_spec): Likewise.
12787 (font_spec_from_name, font_clear_prop, font_update_lface):
12788 New functions.
12789 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
12790 (font_prepare_for_face, font_done_for_face, font_open_by_name)
12791 (font_at): Adjusted for the change of font-related objects.
12792 (font_range): New function.
12793 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
12794 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
12795 (Fcopy_font_spec, Fmerge_font_spec): New function.
12796 (Ffont_family_list): Renamed from list-families.
12797 (Finternal_set_font_style_table): Arguments changed.
12798 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
12799 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
12800 change of font-related objects.
12801 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
12802
12803 * fontset.h (struct font_info): Delete it. Most members go to
12804 struct font.
12805 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
12806 (enum FONT_SPEC_INDEX): Delete it.
12807 (font_info, list_fonts_func, load_font_func, query_font_func)
12808 (set_frame_fontset_func, find_ccl_program_func)
12809 (get_font_repertory_func, new_fontset_from_font_name): Delete
12810 externs.
12811 (fontset_from_font_name): Extern it.
12812 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
12813 (FONT_INFO_FROM_FACE): Deleted.
12814 (face_for_font): Adjust prototype.
12815
12816 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
12817 conditionals. Don't check enable_font_backend. Delete all codes
12818 used only when USE_FONT_BACKEND is not defined.
12819 (get_font_info_func, list_font_func, load_font_func)
12820 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
12821 (get_font_repertory_func): Delete them.
12822 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
12823 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
12824 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
12825 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
12826 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
12827 (fontset_compare_rfontdef): New function.
12828 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
12829 rfont-defs by qsort. Adjusted for the change of font-group vector.
12830 (load_font_get_repertory): Deleted.
12831 (fontset_find_font): Use new macros to ref/set elements of
12832 font-def and rfont-def.
12833 (fontset_font): Fix the timing of remembering that no font for C.
12834 (free_face_fontset): Do nothing if the face has no fontset.
12835 (face_suitable_for_char_p): Use new macros to ref/set elements of
12836 rfont-def.
12837 (face_for_char): Likewise. Call face_for_char with font_object.
12838 (fs_load_font): Delete. Delete #pragma surrounding it.
12839 (fs_query_fontset): Use strcasecmp instead of strcmp.
12840 (generate_ascii_font_name): Adjusted for the format change of
12841 font-spec.
12842 (Fset_fontset_font): Likewise. Use new macros to set elements of
12843 font-def.
12844 (Fnew_fontset): Use font_unparse_xlfd to generate
12845 FONTSET_ASCII (fontset).
12846 (new_fontset_from_font_name): Deleted.
12847 (fontset_from_font): Renamed from new_fontset_from_font. Check if
12848 a fontset is already created for the font. FIx updating of
12849 Vfontset_alias_alist.
12850 (fontset_ascii_font): Deleted.
12851 (Ffont_info): Adjusted for the format change of font-spec.
12852 (Finternal_char_font): Likewise.
12853 (Ffontset_info): Likewise.
12854 (syms_of_fontset): Don't check load_font_func.
12855
12856 * fns.c (internal_equal): Handle PREV_FONT.
12857
12858 * frame.h: Delete USE_FONT_BACKEND conditional.
12859
12860 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
12861 conditionals. Don't check enable_font_backend. Delete all codes
12862 used only when USE_FONT_BACKEND is not defined.
12863 (x_set_font): Call x_new_font, not x_new_fontset2.
12864 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
12865 already set for the frame.
12866
12867 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
12868 a font-entity by font_make_entity. Use font_intern_prop instead
12869 of intern_downcase. Use FONT_SET_STYLE to set a style-related
12870 font property. If a font is scalable, set avgwidth property to 0.
12871 Set font-entity property by font_put_extra.
12872 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
12873 (ffont_driver): Adjusted for the change of struct font_driver.
12874 (ftfont_spec_pattern): New function.
12875 (ftfont_list): Return a list, not vector.
12876 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
12877 (ftfont_list_family): Don't downcase names.
12878 (ftfont_free_entity): Deleted.
12879 (ftfont_open): Return a font-object. Adjusted for the change of
12880 struct font. Get underline_thickness and underline_position from
12881 font property. Don't update dpyinfo->smallest_font_height and
12882 dpyinfo->smallest_char_width.
12883 (ftfont_close): Don't free `struct font'.
12884 (ftfont_has_char): Adjusted for the format change of font-entity.
12885 (ftfont_encode_char, ftfont_text_extents): Likewise.
12886
12887 * ftxfont.c (ftxfont_list): Return a list, not vector.
12888 (ftxfont_open): Return a font-object. Adjusted for the change of
12889 struct font. Get underline_thickness and underline_position from
12890 font property. Don't update dpyinfo->smallest_font_height and
12891 dpyinfo->smallest_char_width.
12892 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
12893 (ftxfont_draw): Adjusted for the change of struct font.
12894
12895 * image.c (image_ascent): Don't include "charset.h". Include
12896 "character.h" and "font.h".
12897
12898 * lisp.h (enum pvec_type): New member PREV_FONT.
12899 (Fassoc_string): EXFUN it.
12900
12901 * print.c: Include font.h.
12902 (print_object): Handle font-related objects.
12903
12904 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
12905 conditionals. Don't check enable_font_backend. Delete all codes
12906 used only when USE_FONT_BACKEND is not defined.
12907 (handle_auto_composed_prop): Do nothing if it->f is not on a
12908 window system. Check how many following characters can be
12909 displayed by the same font.
12910 (calc_pixel_width_or_height): Type of the 4th arg is changed to
12911 'struct font *'.
12912 (get_char_face_and_encoding): Assign the whole encoding task to
12913 the `encode-char' method of a font driver.
12914 (fill_composite_glyph_string): Adjusted for the change of `struct
12915 face' and `struct glyph_string'.
12916 (fill_glyph_string): Likewise.
12917 (get_per_char_metric): Arguments changed.
12918 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
12919 and `struct glyph_string'.
12920 (produce_stretch_glyph, calc_line_height_property)
12921 (x_produce_glyphs): Likewise.
12922
12923 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
12924 conditionals. Don't check enable_font_backend. Delete all codes
12925 used only when USE_FONT_BACKEND is not defined. Use
12926 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
12927 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
12928 (Qp): Extern them.
12929 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
12930 Deleted.
12931 (struct font_name): Deleted.
12932 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
12933 (compare_fonts_by_sort_order): New function.
12934 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
12935 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
12936 Deleted.
12937 (Fx_family_fonts): Use font_list_entities, and sort fonts by
12938 compare_fonts_by_sort_order.
12939 (Fx_font_family_list): Call Ffont_family_list.
12940 (face_numeric_value, face_numeric_weight, face_numeric_slant)
12941 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
12942 (face_symbolic_slant, face_symbolic_swidth)
12943 (split_font_name_into_vector, build_font_name_from_vector)
12944 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
12945 (font_rescale_ratio, split_font_name, build_font_name)
12946 (free_font_names, sort_fonts, x_face_list_fonts)
12947 (face_font_available_p, sorted_font_list, cmp_font_names)
12948 (font_list_1, concat_font_list, font_list, remove_duplicates):
12949 Deleted.
12950 (Fx_list_fonts): Use Ffont_list.
12951 (LFACE_AVGWIDTH): Deleted.
12952 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
12953 by FONTP.
12954 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
12955 (set_lface_from_font_name): Delete it.
12956 (set_lface_from_font): Renamed from
12957 set_lface_from_font_and_fontset. Caller changed. Don't set
12958 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
12959 for face.
12960 (merge_face_vectors): Copy font-spec if necessary.
12961 Clear properties of the font-spec if necessary.
12962 (merge_face_ref): Clear properties of the font-spec if necessary.
12963 (Finternal_set_lisp_face_attribute): Likewise.
12964 (set_font_frame_param): Use font_load_for_lface to load a
12965 font-object, and call Fmodify_frame_parameters with it.
12966 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
12967 font name by Ffont_xlfd_name.
12968 (Finternal_lisp_face_attribute_values): Don't check QCweight,
12969 QCslant, and QCwidth.
12970 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
12971 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
12972 Compare fonts by EQ.
12973 (lookup_non_ascii_face): Deleted.
12974 (face_for_font): The 2nd argument changed.
12975 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
12976 Check atomic font properties by case insensitive.
12977 (realize_non_ascii_face): Set face->overstrike correctly.
12978 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
12979 (dump_realized_face): Get font name from
12980 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
12981
12982 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
12983 conditionals. Don't check enable_font_backend. Delete all codes
12984 used only when USE_FONT_BACKEND is not defined.
12985 (xic_create_xfontset): Original code deleted and renamed from
12986 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
12987 (x_make_gc): Don't set GCFont in GCs.
12988 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
12989 opened by "fixed".
12990 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
12991 find_ccl_program_func, query_font_func, set_frame_fontset_func,
12992 get_font_repertory_func.
12993
12994 * xfont.c: Include <stdlib.h> and "ccl.h".
12995 (struct xfont_info): New structure.
12996 (xfont_query_font): Deleted.
12997 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
12998 moved from xterm.c.
12999 (xfont_driver): Adjusted for the change of struct font_driver.
13000 (compare_font_names): New function.
13001 (xfont_list_pattern): Sort font names case insensitively. Make
13002 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
13003 (xfont_list): Return a list, not vector.
13004 (xfont_match): If the font doesn't have QCname property, generate
13005 a name from the other font properties.
13006 (xfont_open): Return a font-object. Adjusted for the change of
13007 struct font. Get underline_thickness and underline_position from
13008 font property. Don't update dpyinfo->smallest_font_height and
13009 dpyinfo->smallest_char_width.
13010 (xfont_close): Don't free struct font.
13011 (xfont_prepare_face): Adjusted for the change of struct font.
13012 (xfont_done_face): Deleted.
13013 (xfont_has_char): Adjusted for the change of struct font.
13014 (xfont_encode_char, xfont_draw): Likewise.
13015 (xfont_check): New function.
13016
13017 * xftfont.c (xftfont_list): Adjusted for the change of `list'
13018 callback function.
13019 (xftfont_match): Adjusted for the format change of font-entity.
13020 (xftfont_open): Adjusted for the format change of font-entity and
13021 font-object. Adjusted for the change of struct font. Return a
13022 font-object. Don't update dpyinfo->smallest_font_height and
13023 dpyinfo->smallest_char_width.
13024 (xftfont_close): Block input while calling XftFontClose.
13025 (xftfont_prepare_face): Don't block input while calling
13026 xftfont_get_colors. Adjusted for the change of struct font.
13027 (xftfont_shape): Return value of error case fixed.
13028
13029 * xrdb.c (x_load_resources): Don't setup a fontset resource.
13030
13031 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
13032 conditionals.
13033 (FONT_WIDTH): Return (f)->max_width.
13034 (struct x_display_info): Delete member `font'.
13035 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
13036 (x_find_ccl_program, x_get_font_repertory): Delete externs.
13037 (struct x_output): Change type of `font' to `struct font *'.
13038
13039 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
13040 conditionals. Don't check enable_font_backend. Delete all codes
13041 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
13042 (x_per_char_metric, x_encode_char): Deleted.
13043 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
13044 (x_compute_glyph_string_overhangs): Adjusted for the change of
13045 `struct face'.
13046 (x_draw_glyph_string_foreground)
13047 (x_draw_composite_glyph_string_foreground): Likewise.
13048 (x_draw_glyph_string): Likewise. Use font->underline_position and
13049 font->underline_thickness.
13050 (x_new_font): Renamed from x_new_fontset2.
13051 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
13052 (x_check_font): Call `check' method of a font driver.
13053 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
13054 (x_query_font, x_get_font_repertory): Deleted.
13055 (x_find_ccl_program): Renamed and moved to xfont.c.
13056 (x_redisplay_interface): Adjusted for the change of `struct
13057 redisplay_interface'.
13058
13059 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
13060 conditionals. Don't check enable_font_backend. Delete all codes
13061 used only when USE_FONT_BACKEND is not defined. Surround non-used
13062 code by "#ifdef OLD_FONT" and "endif".
13063 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
13064
13065 * w32font.h (struct w32font_info): New member.
13066 (FONT_COMPAT): New macro.
13067 (w32font_open_internal): Prototype adjusted.
13068
13069 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
13070 OLD_FONT" and "endif".
13071
13072 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
13073 conditionals. Don't check enable_font_backend. Delete all codes
13074 used only when USE_FONT_BACKEND is not defined.
13075 (w32font_open): Return a font-object. Make a font-object by
13076 font_make_object. Adjusted for the change of struct w32font_info.
13077 (w32font_close): Don't free struct font. Adjusted for the change
13078 of struct w32font_info.
13079 (w32font_encode_char, w32font_text_extents, w32font_draw):
13080 Adjusted for the change of struct w32font_info.
13081 (w32font_draw): Likewise.
13082 (w32font_list_internal): Return a list, not vector.
13083 (w32font_open_internal): Change the 4th arg to font-object.
13084 Adjusted for the change of struct w32font_info and font-object format.
13085 (add_font_name_to_list): Don't downcase names.
13086 (w32_enumfont_pattern_entity): Make a font-entity by
13087 font_make_entity. Adjusted for the format change of font-entity.
13088 Use FONT_SET_STYLE to set a style-related font property. If a
13089 font is scalable, set avgwidth property to 0. Set font-entity
13090 property by font_put_extra.
13091 (font_matches_spec): Adjusted for the format change of font-entity.
13092 (w32_weight_table, w32_decode_weight): New variables.
13093 (w32_encode_weight): New function.
13094 (fill_in_logfont): Adjusted for the format change of font-spec.
13095 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
13096 weight value.
13097 (w32font_driver): Adjusted for the change of struct font_driver.
13098
13099 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
13100 conditionals. Don't check enable_font_backend. Surround non-used
13101 code by "#ifdef OLD_FONT" and "endif".
13102 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
13103 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
13104
13105 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
13106 conditionals. Don't check enable_font_backend. Delete all codes
13107 used only when USE_FONT_BACKEND is not defined. Surround non-used
13108 code by "#ifdef OLD_FONT" and "endif".
13109
13110 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
13111 (uniscribe_open): Return value changed to font-object.
13112 Adjusted for the format change of font-object.
13113 (uniscribe_otf_capability): Adjusted for the change of struct font.
13114 (add_opentype_font_name_to_list): Don't downcase names.
13115 (uniscribe_font_driver): Adjusted for the change of struct
13116 font_driver.
13117
131182008-05-13 Chong Yidong <cyd@stupidchicken.com>
13119
13120 * dispnew.c (update_frame_1): Check if tty output is still valid
13121 before flushing it.
13122
131232008-05-13 Jan Djärv <jan.h.d@swipnet.se>
13124
13125 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
13126 to Gtk+ menus.
13127
131282008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
13129
13130 * dired.c (file_name_completion): Tweak the code so as to always do it
13131 in a single pass. Tighten the scope of some variables.
13132
13133 * dired.c (Qdefault_directory): New var.
13134 (file_name_completion): Use it instead of Fexpand_file_name.
13135 (syms_of_dired): Initialize it.
13136
131372008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
13138
13139 * fileio.c (double_dollars): Remove dead code.
13140
131412008-05-10 Eli Zaretskii <eliz@gnu.org>
13142
13143 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
13144 Mention w32-get-true-file-attributes in doc string.
13145
13146 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
13147
131482008-05-09 Glenn Morris <rgm@gnu.org>
13149
13150 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
13151 2008-04-23.
13152
131532008-05-09 Eli Zaretskii <eliz@gnu.org>
13154
13155 Support for reporting owner and group of each file on MS-Windows:
13156 * dired.c (stat_uname, stat_gname): New functions, with special
13157 implementation for w32.
13158 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
13159
13160 * w32.c: Rename the_passwd_* to dflt_passwd_*.
13161 (dflt_group_name): New static variable.
13162 (dflt_group): Rename from the_group.
13163 (init_user_info): Init dflt_group fields. Get user's group name
13164 from LookupAccountSid.
13165 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
13166 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
13167 New initialization states.
13168 (globals_of_w32): Initialize them to zero. Initialize the default
13169 group name to "None".
13170 (GetFileSecurity_Name): New global var, the name of the function
13171 to call for GetFileSecurity.
13172 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
13173 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
13174 (get_file_security, get_security_descriptor_owner)
13175 (get_security_descriptor_group, is_valid_sid)
13176 (get_file_security_desc, get_rid, get_name_and_id)
13177 (get_file_owner_and_group): New functions.
13178 (stat): Use get_file_security_desc and get_file_owner_and_group to
13179 report the owner and primary group of each file. Don't ignore the
13180 high 32 bits of file's size, now that st_size is 64-bit wide.
13181 Fix test when to get true file attributes.
13182 (init_user_info): Use get_rid instead of equivalent inline code.
13183 (fstat): Don't ignore the high 32 bits of file's size.
13184
131852008-05-09 Chong Yidong <cyd@stupidchicken.com>
13186
13187 * image.c (png_load): Use correct bit-depth for setting background
13188 color.
13189
131902008-05-08 Eli Zaretskii <eliz@gnu.org>
13191
13192 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
13193 epa-hook.elc.
13194
131952008-05-08 Juanma Barranquero <lekktu@gmail.com>
13196
13197 * font.c (Ffont_match_p): Don't use `iff' in docstring.
13198
131992008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
13200
13201 * macfns.c (Fx_create_frame): Make a copy of frame parameters
13202 because the original parameters are in pure storage now.
13203 (mac_window): Remove unused params. Update callers.
13204
132052008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
13206
13207 * lread.c (substitute_object_recurse): Use lower-level primitives.
13208 Don't signal errors when traversing sub-char-tables.
13209 Don't loop over all the possible characters when traversing char-tables.
13210
13211 * print.c (print_preprocess): Add sub-char-tables to the print-table,
13212 just like we do in print.c.
13213
132142008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
13215
13216 * minibuf.c (Ftry_completion): Remove code left over from when we used
13217 scmp instead of Fcompare_strings.
13218
132192008-05-04 Juanma Barranquero <lekktu@gmail.com>
13220
13221 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
13222
132232008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13224
13225 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
13226 Create bitmap context in native byte order.
13227
13228 * macterm.c (XDrawLine)
13229 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
13230 context in native byte order.
13231
132322008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13233
13234 * config.in: Regenerate.
13235
13236 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
13237 New definitions for Image I/O support.
13238 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
13239 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
13240 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
13241 (mac_data_provider_release_data, image_load_image_io)
13242 [USE_MAC_IMAGE_IO]: New functions.
13243 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
13244 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
13245 (init_image_func_pointer) [MAC_OSX]: Remove function.
13246 (image_load_quartz2d) [MAC_OSX]: Check availability of
13247 CGImageCreateWithPNGDataProvider at compile time.
13248 Use lowercase `false' for boolean constant.
13249 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
13250 Use image_load_image_io.
13251 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
13252 Don't check MyCGImageCreateWithPNGDataProvider.
13253 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
13254 Don't call init_image_func_pointer.
13255
13256 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
13257
13258 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
13259 Make variable non-static.
13260 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
13261 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
13262
13263 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
13264 (RED_FROM_ULONG): Mask off higher bits.
13265 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
13266
13267 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
13268 Include AvailabilityMacros.h.
13269 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
13270 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
13271
132722008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
13273
13274 * chartab.c (Fset_char_table_range): If range is t, really set all
13275 chars to that value.
13276
132772008-05-03 Eli Zaretskii <eliz@gnu.org>
13278
13279 * dired.c (Ffile_attributes): Don't allow the device number become
13280 negative.
13281
132822008-05-02 Daiki Ueno <ueno@unixuser.org>
13283
13284 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
13285
132862008-05-02 Juri Linkov <juri@jurta.org>
13287
13288 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
13289 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
13290 DEFAULT argument as a list of default values in docstrings.
13291
132922008-05-01 Chong Yidong <cyd@stupidchicken.com>
13293
13294 * puresize.h (BASE_PURESIZE): Increase to 1210000.
13295
132962008-05-01 Martin Rudalics <rudalics@gmx.at>
13297
13298 * dispnew.c (change_frame_size_1): Preserve small windows when
13299 shrinking frames by calling set_window_height|width with third
13300 arg 2.
13301
13302 * window.h (struct window): Replace field too_small_ok by field
13303 resize_proportionally.
13304
13305 * window.c (make_window): Initialize resize_proportionally.
13306 (enlarge_window): Temporarily set resize_proportionally to make
13307 sure that shrink_windows does scale the window proportionally.
13308 (shrink_windows): When window has resize_proportionally set try
13309 to shrink it proportionally by stealing from other windows.
13310 (struct saved_window, Fset_window_configuration)
13311 (compare_window_configurations): Handle resize_proportionally.
13312 (WINDOW_TOTAL_SIZE): New macro.
13313 (window_min_size, shrink_windows, size_window): Use it.
13314 (check_min_window_sizes): Remove. Invalid values of
13315 window-min-height|width are handled by window_min_size_2 now.
13316 (size_window, Fsplit_window, enlarge_window)
13317 (adjust_window_trailing_edge, grow_mini_window): Don't call
13318 check_min_window_sizes.
13319 (window_min_size_2, window_min_size_1, window_min_size):
13320 New argument safe_p for retrieving "safe" minimum sizes.
13321 (Fdisplay_buffer, Fsplit_window, enlarge_window)
13322 (adjust_window_trailing_edge, grow_mini_window):
13323 Adjust arguments of window_min_size... functions.
13324 (shrink_windows): Argument min_size removed. New argument
13325 safe_p allows shrinking windows to their safe minimum sizes.
13326 Calculate minimum size and decide whether a window shall be
13327 deleted for each window individually.
13328 (size_window): When nodelete_p equals 2, tell shrink_windows to
13329 delete windows only if their new minimum size is no more safe.
13330 (shrink_window_lowest_first): Call window_min_size_1 to make
13331 sure to preserve modeline of bottom-most window when resizing
13332 the minibuffer.
13333 (Fset_window_configuration, Fcurrent_window_configuration)
13334 (compare_window_configurations): Do not handle
13335 window-min-height|width any more.
13336 (syms_of_window): Clarify window-min-height|width doc-strings.
13337
133382008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
13339
13340 * dired.c (file_name_completion): Fix up the encoding/decoding issue
13341 some more. Copy some of the code from Ftry_completions.
13342 Remove special case code that dates back to initial revision when the
13343 slash was only added when necessary and that can't trigger nowadays.
13344
133452008-04-27 Kenichi Handa <handa@m17n.org>
13346
13347 * font.c (font_prop_validate): Signal `error' instead of `font'.
13348
133492008-04-29 Jason Rumney <jasonr@gnu.org>
13350
13351 * w32fns.c (Fw32_battery_status): New defun.
13352 (syms_of_w32fns): Defsubr it.
13353
133542008-04-28 Andreas Schwab <schwab@suse.de>
13355
13356 * dired.c (file_name_completion): Fix another mixing of encoded
13357 and decoded names.
13358
133592008-04-28 Juanma Barranquero <lekktu@gmail.com>
13360
13361 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
13362
133632008-04-27 Juanma Barranquero <lekktu@gmail.com>
13364
13365 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
13366
133672008-04-27 Andreas Schwab <schwab@suse.de>
13368
13369 * dired.c (file_name_completion): Fix inappropriate mixing of
13370 encoded and decoded names.
13371
13372 * xterm.c (XTread_socket): Fix use of uninitialized variable.
13373
13374 * puresize.h (BASE_PURESIZE): Increase to 1200000.
13375
133762008-04-26 Eli Zaretskii <eliz@gnu.org>
13377
13378 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
13379 2008-03-31, it's not needed anymore with `struct stat' definition
13380 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
13381 for the same reasons.
13382
133832008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
13384
13385 * m/sparc.h: Additional redefinitions for GNU/Linux.
13386
133872008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13388
13389 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
13390 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
13391 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
13392 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
13393 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
13394 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
13395 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
13396 Likewise.
13397
13398 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
13399 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
13400 (mac_ax_number_of_characters): Add externs.
13401 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
13402 [USE_MAC_TSM]: Likewise.
13403 (mac_handle_text_input_event) [MAC_OSX]:
13404 Handle kEventTextInputOffsetToPos for no active input area case.
13405 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
13406 (mac_handle_document_access_event)
13407 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
13408 (install_application_handler) [MAC_OSX]: Register handlers for
13409 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
13410 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
13411 Register mac_handle_document_access_event.
13412
13413 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
13414 Make functions non-static.
13415
134162008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
13417
13418 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
13419 (read_file_name_completion_ignore_case, insert_default_directory)
13420 (Qdefault_directory): Move to minibuffer.el.
13421 (Fread_file_name): Call the new `read-file-name' instead.
13422
134232008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13424
13425 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
13426 Make function non-static.
13427 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
13428 Remove function.
13429 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
13430 Move to mactoolbox.c.
13431 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
13432
13433 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
13434 (mac_rect_make): New macro.
13435
13436 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
13437 instead of float.
13438 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
13439 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
13440 (XSetBackground) [USE_CG_DRAWING]: Likewise.
13441 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
13442 CGRectMake.
13443 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
13444 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
13445 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
13446 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
13447 instead of WindowRef in argument type.
13448 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
13449 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
13450 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
13451 instead of DISPLAY. All uses changed.
13452 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
13453 (x_calc_absolute_position): Simplify so as not to use
13454 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
13455
13456 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
13457 instead of WindowRef in argument type.
13458 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
13459 [TARGET_API_MAC_CARBON]: Remove externs.
13460 (create_apple_event, mac_event_parameters_to_lisp)
13461 [TARGET_API_MAC_CARBON]: Add externs.
13462
13463 * mactoolbox.c (Vmac_ts_script_language_on_focus)
13464 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
13465 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
13466 is clicked.
13467 (x_activate_menubar): Remove extern for saved_menu_event_location.
13468 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
13469 Move from mac.c.
13470
134712008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13472
13473 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
13474 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
13475
134762008-04-23 Jason Rumney <jasonr@gnu.org>
13477
13478 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
13479 attributes only for local files.
13480
13481 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
13482 default to Qlocal.
13483
134842008-04-22 Juri Linkov <juri@jurta.org>
13485
13486 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
13487 read-buffer-to-switch instead of using the letter "B".
13488
134892008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
13490
13491 * fileio.c (Qdefault_directory): New variable.
13492 (Fread_file_name): Use it to pass `dir' to the completion functions.
13493
134942008-04-20 Chong Yidong <cyd@stupidchicken.com>
13495
13496 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
13497
134982008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
13499
13500 * keyboard.c (Vpre_help_message): Remove.
13501 (show_help_echo): Remove default C code.
13502
13503 * dired.c (directory_files_internal, file_name_completion):
13504 Only call ENCODE_FILE if the string is indeed decoded.
13505
135062008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
13507
13508 * Makefile.in (TOOLKIT_DEFINES): Remove.
13509 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
13510
135112008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13512
13513 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
13514 (mactoolbox.o): New target.
13515
13516 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
13517 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
13518
13519 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
13520 Use mac_set_frame_window_background instead of XSetWindowBackground.
13521 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
13522 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
13523 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
13524 instead of SetWindowTitleWithCFString.
13525 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
13526 Move function to mactoolbox.c.
13527 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
13528 Use mac_set_window_modified instead of SetWindowModified.
13529 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
13530 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
13531 (Fx_focus_frame): Use mac_front_non_floating_window instead of
13532 FrontNonFloatingWindow. Use mac_activate_window instead of
13533 ActivateWindow. Use mac_active_non_floating_window instead of
13534 ActiveNonFloatingWindow.
13535 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
13536 Use mac_show_hourglass and mac_hide_hourglass.
13537 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
13538 instead of GetGlobalMouse.
13539 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
13540 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
13541 Use mac_bring_window_to_front instead of BringToFront.
13542 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
13543 mactoolbox.c.
13544 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
13545 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
13546 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
13547 mactoolbox.c.
13548
13549 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
13550 (XtPointer): Move typedef from macmenu.c.
13551 (enum button_type): Move enum from macmenu.c.
13552 (widget_value): Move typedef from macmenu.c.
13553 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
13554 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
13555 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
13556 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
13557 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
13558 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
13559 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
13560 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
13561 (Selection): Move typedef from macselect.c.
13562 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
13563 macterm.c.
13564 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
13565 (mac_is_window_collapsed, mac_bring_window_to_front)
13566 (mac_send_window_behind, mac_hide_window, mac_show_window)
13567 (mac_collapse_window, mac_front_non_floating_window)
13568 (mac_active_non_floating_window, mac_activate_window)
13569 (mac_move_window_structure, mac_move_window, mac_size_window)
13570 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
13571
13572 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
13573 (enum mac_menu_kind): Move enum to mactoolbox.c.
13574 (min_menu_id): Move variable to mactoolbox.c.
13575 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
13576 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
13577 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
13578 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
13579 [TARGET_API_MAC_CARBON]: Likewise.
13580 (XtPointer): Move typedef to macgui.h.
13581 (enum button_type): Move enum to macgui.h.
13582 (widget_value): Move typedef to macgui.h.
13583 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
13584 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
13585 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
13586 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
13587 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
13588 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
13589 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
13590 (popup_activated_flag): Make variable non-static.
13591 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
13592 (add_menu_item, fill_menu, dispose_menus):
13593 Move functions to mactoolbox.c.
13594 (restore_show_help_function, menu_target_item_handler)
13595 (install_menu_target_item_handler, mac_handle_dialog_event)
13596 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
13597 [TARGET_API_MAC_CARBON]: Likewise.
13598 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
13599 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
13600 (find_and_call_menu_selection, name_is_separator): Make function
13601 non-static.
13602 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
13603 to mactoolbox.c.
13604 (set_frame_menubar): Don't call install_menu_quit_handler.
13605 (menu_item_selection): New variable.
13606 (mac_menu_show): Use create_and_show_popup_menu.
13607 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
13608 selection but set variable menu_item_selection. All uses changed.
13609 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
13610 Call install_menu_quit_handler. Move to mactoolbox.c.
13611
13612 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
13613 (Selection): Move typedef to macgui.h.
13614 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
13615 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
13616 Make variables non-static.
13617 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
13618 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
13619 Make functions non-static.
13620 (Vmac_service_selection) [MAC_OSX]: Likewise.
13621 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
13622 (mac_valid_selection_target_p, mac_clear_selection)
13623 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
13624 (mac_put_selection_value, mac_selection_has_target_p)
13625 (mac_get_selection_value, mac_get_selection_target_list)
13626 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
13627 Move functions to mactoolbox.c.
13628 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
13629 Likewise.
13630 (copy_scrap_flavor_data, mac_handle_service_event)
13631 (install_service_handler) [MAC_OSX]: Likewise.
13632 (syms_of_macselect) <Vmac_dnd_known_types>:
13633 Use mac_dnd_default_known_types.
13634
13635 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
13636 Move to mactoolbox.c.
13637 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
13638 (Fx_selection_owner_p): Add EXFUN.
13639 (install_window_handler, remove_window_handler, XSetWindowBackground):
13640 Remove externs.
13641 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
13642 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
13643 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
13644 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
13645 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
13646 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
13647 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
13648 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
13649 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
13650 (create_and_show_popup_menu, mac_get_selection_from_symbol)
13651 (mac_valid_selection_target_p, mac_clear_selection)
13652 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
13653 (mac_put_selection_value, mac_selection_has_target_p)
13654 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
13655 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
13656 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
13657 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
13658 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
13659 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
13660 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
13661 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
13662 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
13663
13664 * mactoolbox.c: New file.
13665
136662008-04-18 Jason Rumney <jasonr@gnu.org>
13667
13668 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
13669
136702008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
13671
13672 * character.c (Fmultibyte_char_to_unibyte):
13673 Return latin1 chars unchanged.
13674
13675 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
13676 relocated if it points to `name'.
13677
136782008-04-17 Kenichi Handa <handa@m17n.org>
13679
13680 * data.c (Faset): Allow setting a multibyte character in an
13681 ASCII-only unibyte string.
13682
13683 * lisp.h (STRING_SET_MULTIBYTE): New macro.
13684
136852008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
13686
13687 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
13688 done in config.h.
13689
136902008-04-16 Juanma Barranquero <lekktu@gmail.com>
13691
13692 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
13693 (Fchar_direction): Add usage in the docstring.
13694
136952008-04-15 Chong Yidong <cyd@stupidchicken.com>
13696
13697 * keyboard.c (read_key_sequence): Remove always-true checks.
13698
136992008-04-14 Jason Rumney <jasonr@gnu.org>
13700
13701 * w32font.c (w32font_open_internal): Set max_bounds.descent in
13702 compatibility struct, for better underline positioning.
13703
137042008-04-13 David Hansen <david.hansen@gmx.net>
13705
13706 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
13707 string.
13708
137092008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
13710
13711 * m/hp800.h (XUINT, XSET): Remove.
13712
137132008-04-12 Juanma Barranquero <lekktu@gmail.com>
13714
13715 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
13716 previous change.
13717
137182008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
13719
13720 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
13721 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
13722
137232008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
13724
13725 * keymap.h (map_keymap_canonical): Declare.
13726 * xmenu.c (single_keymap_panes): Use it.
13727
137282008-04-11 Glenn Morris <rgm@gnu.org>
13729
13730 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
13731 set the target's value to that of the alias.
13732
137332008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
13734
13735 * term.c (set_tty_color_mode): Left over typo.
13736
137372008-04-10 Michael Albinus <michael.albinus@gmx.de>
13738
13739 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
13740 only after check for file name handler functions. Signal, when
13741 native functionality is not supported.
13742 (syms_of_fileio): Declare it unconditionally.
13743
137442008-04-10 Jason Rumney <jasonr@gnu.org>
13745
13746 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
13747 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
13748
13749 * w32.c (logon_network_drive): Also logon to remote drives that
13750 are mapped to drive letters.
13751
137522008-04-10 Glenn Morris <rgm@gnu.org>
13753
13754 * xdisp.c (truncate-partial-width-windows): Doc fix.
13755
137562008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
13757
13758 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
13759 Move functions to minibuffer.el.
13760 (syms_of_fileio): Don't declare them.
13761
137622008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
13763
13764 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
13765 (syms_of_minibuf): Remove its initialization.
13766
13767 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
13768
137692008-04-09 Juanma Barranquero <lekktu@gmail.com>
13770
13771 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
13772
137732008-04-09 Jason Rumney <jasonr@gnu.org>
13774
13775 * makefile.w32-in (distclean): Delete makefile too.
13776 (maintainer-clean): New target.
13777
13778 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
13779
13780 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
13781 for new font backend and composite cases.
13782
137832008-04-09 Jan Djärv <jan.h.d@swipnet.se>
13784
13785 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
13786 Most of the code moved to run_timers.
13787 (do_pending_atimers): Call run_timers.
13788 (run_timers): New function.
13789
13790 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
13791 run atimers.
13792
13793 * process.c (wait_reading_process_output): The same as above.
13794
137952008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
13796
13797 * minibuf.c (last_exact_completion): Remove variable.
13798 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
13799 (complete_and_exit_1, complete_and_exit_2)
13800 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
13801 (Fdisplay_completion_list, display_completion_list_1)
13802 (Fminibuffer_completion_help, Fself_insert_and_exit)
13803 (Fexit_minibuffer, Fminibuffer_message): Move functions to
13804 minibuffer.el.
13805 (syms_of_minibuf): Remove corresponding initializations.
13806
13807 * keyboard.c (Qdeactivate_mark): New var.
13808 (command_loop_1): Use it to call `deactivate-mark'.
13809 (syms_of_keyboard): Initialize it.
13810
13811 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
13812 to another frame.
13813 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
13814 Don't call set_tty_color_mode.
13815 (store_frame_param): Reset previous_frame rather than call
13816 set_tty_color_mode.
13817 * term.c (set_tty_color_mode): Rewrite.
13818 * dispextern.h (set_tty_color_mode): New type.
13819 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
13820
138212008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
13822
13823 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
13824 for generic chars, which do not exist any more in emacs-unicode.
13825
138262008-04-08 Michael Albinus <michael.albinus@gmx.de>
13827
13828 * coding.c (detect_coding_emacs_mule)
13829 (Ffind_operation_coding_system): Fix typo.
13830
138312008-04-08 Jason Rumney <jasonr@gnu.org>
13832
13833 * w32uniscribe.c (SNAME): Extract only symbol name.
13834
13835 * w32font.h (struct w32_metric_cache): New struct.
13836 (w32font_info): Use it.
13837 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
13838 (CACHE_BLOCKSIZE): New constants.
13839
13840 * w32font.c (Qja, Qko, Qzh): New symbols.
13841 (syms_of_w32font): Initialise them.
13842 (font_matches_spec): Use them to filter by language.
13843 (recompute_cached_metrics): Remove function.
13844 (compute_metrics, clear_cached_metrics): New functions.
13845 (w32font_encode_char): Use them to manage metric cache.
13846 (w32font_text_extents): Cache metrics for all glyphs on demand.
13847 Delay converting glyph indices to WORD until needed.
13848 (w32font_open_internal): Initialize metric cache to empty.
13849 (registry_to_w32_charset): Charset should always be a symbol.
13850 (fill_in_logfont, list_all_matching_fonts): Family should
13851 always be a symbol.
13852
138532008-04-06 Jason Rumney <jasonr@gnu.org>
13854
13855 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
13856 Give up if glyph indices not supported. Use uniscribe obtained
13857 ABC widths for individual metrics. Map glyph clusters back to
13858 characters using fClusterStart flag. Return number of glyphs
13859 produced, not chars processed.
13860 (uniscribe_shape): Map char at FROM to current glyph.
13861
138622008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13863
13864 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
13865 Use SetMenuItemHierarchicalMenu.
13866
138672008-04-05 Jason Rumney <jasonr@gnu.org>
13868
13869 * image.c (pbm_load): Allow color values up to 65535.
13870 Throw an error if max_color_idx is outside the supported range.
13871 Report an error when image size is invalid.
13872 Read two bytes at a time when raw images have max_color_idx above 255.
13873
138742008-04-05 Eli Zaretskii <eliz@gnu.org>
13875
13876 * w32.c (readdir): If FindFirstFile/FindNextFile return in
13877 cFileName a file name that includes `?' characters, use the 8+3
13878 alias in cAlternateFileName instead.
13879
138802008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
13881
13882 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
13883 append "CCL: Quitted" when the CCL program is quitted.
13884 (setup_ccl_program): Initialize ccl->quit_silently to zero.
13885
13886 * ccl.h (struct ccl_program): New member quit_silently.
13887
138882008-04-05 Chong Yidong <cyd@stupidchicken.com>
13889
13890 * search.c (compile_pattern_1): Treat non-nil and non-string of
13891 search-spaces-regexp as nil.
13892
13893 * minibuf.c (Fassoc_string): Tweak docstring.
13894
138952008-04-05 Eli Zaretskii <eliz@gnu.org>
13896
13897 * dired.c (Ffile_attributes): Support inode numbers wider than 32
13898 bits. Remove ugly WINDOWSNT-specific kludge introduced on
13899 2008-03-14 to force inode be positive.
13900
13901 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
13902 _S_* ones, since we now use our own sys/stat.h.
13903 (stat, fstat): Don't mangle the inode number.
13904 (init_user_info): Don't restrict UID and GID to 0-60000 range.
13905
139062008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
13907
13908 * frame.h (struct frame): Give one more bit to `visible' since we use
13909 values larger than 1 to indicate obscured frames on ttys.
13910
13911 * keymap.c (Qkeymap_canonicalize): New var.
13912 (Fmap_keymap_internal): New fun.
13913 (describe_map): Use keymap-canonicalize.
13914
13915 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
13916 (Fundo_boundary): Set them.
13917 (syms_of_undo): Initialize them.
13918 (record_point): Use them instead of last_point_position*.
13919 (last_undo_buffer): Change type.
13920
139212008-04-04 Jason Rumney <jasonr@gnu.org>
13922
13923 * w32font.c (w32font_text_extents): Use font's ascent and descent.
13924 (recompute_cached_metrics): Don't set ascent and descent per char.
13925
13926 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
13927 (uniscribe_check_otf): Add GC protection before consing.
13928 Rearrange loop for counting features.
13929
139302008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
13931
13932 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
13933 buffer with byte-size of source buffer.
13934
139352008-04-03 Chong Yidong <cyd@stupidchicken.com>
13936
13937 * callint.c (Fcall_interactively): Handle temporary region even
13938 when shift-select-mode is off.
13939
139402008-04-03 Jason Rumney <jasonr@gnu.org>
13941
13942 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
13943
139442008-04-03 Kenichi Handa <handa@m17n.org>
13945
13946 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
13947 (CATEGORY_MASK_UTF_16): Likewise.
13948 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
13949 binary file.
13950 (detect_coding): Add null-byte detection for a binary file.
13951 (detect_coding_system): Likewise.
13952
139532008-04-03 Jason Rumney <jasonr@gnu.org>
13954
13955 * w32uniscribe.c: New file.
13956
13957 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
13958
13959 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
13960
13961 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
13962 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
13963 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
13964 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
13965 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
13966 (Qphonetic): New symbols.
13967 (syms_of_w32font): Initialize them.
13968 (font_supported_scripts): Use them.
13969 (w32font_list_family): List all charsets.
13970 (w32font_text_extents, recompute_cached_metrics): Fix metric
13971 calculations.
13972 (w32_enumfont_pattern_entity): Make full_type a DWORD.
13973 Give opentype fonts their own format.
13974 (font_matches_spec): New arguments backend and logfont.
13975 Handle :otf spec for uniscribe backend.
13976 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
13977 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
13978
13979 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
13980 font backend.
13981 (globals_of_w32fns): Initialize uniscribe font backend.
13982
13983 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
13984 dependencies.
13985 (w32uniscribe.$(O)): New file to build.
13986 (FONT_OBJ): Include w32uniscribe.$(O).
13987 (LIBS): Add uniscribe libraries.
13988
13989 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
13990
139912008-04-02 Chong Yidong <cyd@stupidchicken.com>
13992
13993 * callint.c (Vshift_select_mode): New var.
13994 (Finteractive): Document new ^ spec.
13995 (Fcall_interactively): Call handle-shift-selection if the ^ spec
13996 is present.
13997
13998 * keyboard.c (Vthis_command_keys_shift_translated): New var.
13999 (command_loop_1): Avoid running the direct display versions of
14000 forward-char and backward-char if shift-selection may occur.
14001 (read_key_sequence): Set Vthis_command_keys_shift_translated if
14002 shift-translation takes place.
14003
14004 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
14005 avoid clobbering by define-minor-mode.
14006
14007 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
14008 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
14009
14010 * syntax.c (Fforward_word): Add ^ interactive spec.
14011
14012 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
14013 (Fscroll_right): Add ^ interactive spec.
14014
140152008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
14016
14017 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
14018
14019 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
14020
14021 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
14022
140232008-03-31 Juri Linkov <juri@jurta.org>
14024
14025 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
14026
140272008-03-30 Jan Djärv <jan.h.d@swipnet.se>
14028
14029 * gtkutil.c (xg_set_geometry): Fix indentation.
14030 (xg_resize_outer_widget): Remove.
14031 (x_wm_size_hint_off): Fix indentation.
14032 (xg_frame_set_char_size): Call flush_and_sync after
14033 gtk_window_resize.
14034 (x_wm_set_size_hint): Pass NULL as geometry window to
14035 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
14036 Add menu bar and tool bar height to base height.
14037 (xg_update_frame_menubar, free_frame_menubar)
14038 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
14039 (update_frame_tool_bar, free_frame_tool_bar):
14040 Change xg_resize_outer_widget to xg_frame_set_char_size.
14041
140422008-03-30 Michael Albinus <michael.albinus@gmx.de>
14043
14044 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
14045 (Fdbus_call_method): New parameter TIMEOUT.
14046 (dbus-send-signal): Optimize UNGCPRO call.
14047
140482008-03-29 Juri Linkov <juri@jurta.org>
14049
14050 * window.c (Fdisplay_buffer): Move call to
14051 Vsplit_window_preferred_function out of conditions that check
14052 if window is eligible for vertical splitting.
14053 When Vsplit_window_preferred_function is non-nil, call it and use
14054 its non-nil return value as window. Otherwise, continue doing
14055 vertical splitting using Fsplit_window with arg horflag=nil.
14056 (syms_of_window) <Vsplit_window_preferred_function>: Change the
14057 default value from `split-window' to nil.
14058
140592008-03-29 Juri Linkov <juri@jurta.org>
14060
14061 * callint.c (Fcall_interactively): Revert 2008-03-16 change
14062 for interactive code letters 'b' and 'B'.
14063
140642008-03-29 Eli Zaretskii <eliz@gnu.org>
14065
14066 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
14067 multibyte string.
14068
140692008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
14070
14071 * keyboard.c (pending_funcalls): New var.
14072 (timer_check): Run it.
14073 (syms_of_keyboard): Initialize it.
14074 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
14075 (Vdelete_terminal_functions): New vars.
14076 (syms_of_terminal): Initialize them.
14077 (Fdelete_terminal): Run delete-terminal-functions.
14078 * xdisp.c (safe_eval): Rewrite.
14079 (safe_call2): New fun.
14080 * frame.c (Qdelete_frame_functions): New var.
14081 (syms_of_frame): Initialize it.
14082 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
14083 * lisp.h (safe_call2, pending_funcalls): Declare.
14084
140852008-03-28 Andreas Schwab <schwab@suse.de>
14086
14087 * indent.c (Fmove_to_column): Move declaration before statements.
14088
140892008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
14090
14091 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
14092 (struct frame): Use bit fields for boolean vars.
14093
14094 * process.c (server_accept_connection): Simplify naming.
14095 (emacs_get_tty_pgrp): Use SDATA.
14096
14097 * coding.c (decode_coding_object): Fix last change.
14098
140992008-03-27 Jason Rumney <jasonr@gnu.org>
14100
14101 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
14102
141032008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
14104
14105 * charset.c (Fdefine_charset_internal): Change the way of
14106 registering charsets in Vcharset_order_list.
14107 (syms_of_charset): Make the charset `eight-bit' supplementary.
14108
141092008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
14110
14111 * regex.c (EXTEND_BUFFER): Change order of pointer addition
14112 operations, to avoid having the difference between pointers
14113 overflow.
14114
141152008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
14116
14117 * indent.c (check_display_width): New fun.
14118 (scan_for_column): Use it.
14119
14120 * data.c (syms_of_data): Mark most-positive-fixnum and
14121 most-negative-fixnum as constants.
14122
14123 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
14124
14125 * indent.c (scan_for_column): Extract from current_column_1.
14126 Merge with the same code from Fmove_to_column.
14127 (current_column_1, Fmove_to_column): Use it.
14128
141292008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
14130
14131 * keymap.c (map_keymap_internal): New fun.
14132 (map_keymap): Use it.
14133 (Fmap_keymap_internal): New fun.
14134 (Fmap_keymap): Remove left-out test from before make_save_value.
14135
14136 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
14137
14138 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
14139 Use XCAR/XCDR.
14140
14141 * process.h (struct Lisp_Process): Remove filter_multibyte.
14142 * process.c (QCfilter_multibyte): Remove.
14143 (setup_process_coding_systems): Don't use filter_multibyte.
14144 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
14145 (read_process_output): Don't adjust multibyteness to filter_multibyte.
14146 (Fset_process_filter_multibyte): Change the coding-system to
14147 approximate the previous behavior.
14148 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
14149 coding-system.
14150
14151 * coding.c (decode_coding_object): When not decoding into a buffer,
14152 obey the coding system's preference of (uni|multi)byte.
14153
141542008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
14155
14156 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
14157 every char is changed and has a different byte-length.
14158 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
14159 Fix int -> EMACS_INT.
14160
141612008-03-23 David Hansen <david.hansen@gmx.net>
14162
14163 * dbusbind.c (xd_read_message): Remove extra copying of message
14164 strings. Check for NULL `interface' or `member'.
14165
141662008-03-22 Eli Zaretskii <eliz@gnu.org>
14167
14168 * w32.c (readdir): If FindFirstFile/FindNextFile return in
14169 cFileName a file name that includes `?' characters, use the 8+3
14170 alias in cAlternateFileName instead.
14171
141722008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
14173
14174 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
14175
141762008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
14177
14178 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
14179 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
14180 work on current_buffer only instead (that was already the case
14181 for some of the code anyway).
14182 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
14183 (temp_set_point, temp_set_point_both): Use EMACS_INT.
14184 (SET_PT, SET_PT_BOTH): Adjust.
14185 * intervals.h (set_point, temp_set_point, set_point_both)
14186 (temp_set_point_both): Remove redundant declarations.
14187
141882008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
14189
14190 * fileio.c (Finsert_file_contents):
14191 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
14192 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
14193 when buffer != current_buffer anyway.
14194
141952008-03-20 Andreas Schwab <schwab@suse.de>
14196
14197 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
14198 as default.
14199
142002008-03-19 Jason Rumney <jasonr@gnu.org>
14201
14202 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
14203 (syms_of_w32fns): Initialize them.
14204 (HOURGLASS_ID): New constant.
14205 (x_window_to_frame): Don't check hourglass_window.
14206 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
14207 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
14208 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
14209 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
14210 Only change the cursor if hourglass is not active.
14211 (Fx_create_frame): Initialize frame's current_cursor.
14212 (hourglass_atimer): Remove.
14213 (hourglass_started): New function.
14214 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
14215 (show_hourglass): Adapt to w32, changing argument to frame.
14216
14217 * w32term.h (struct w32_output): Remove hourglass_window.
14218 Add current_cursor.
14219
14220 * eval.c (call_debugger, Fsignal):
14221 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
14222 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
14223 (Fexecute_extended_command, cancel_hourglass_unwind):
14224 * minibuf.c (read_minibuf):
14225 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
14226
142272008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
14228
14229 * window.c (run_funs): New fun.
14230 (run_window_configuration_change_hook): Use it to run the buffer-local
14231 and the global part of the hook.
14232
14233 * xdisp.c (format_mode_line_unwind_data): Add window argument.
14234 (unwind_format_mode_line): Restore selected window.
14235 (x_consider_frame_title, Fformat_mode_line): Set selected window.
14236
142372008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
14238
14239 * editfns.c (Fchar_equal): Check they are valid characters.
14240
14241 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
14242
142432008-03-17 Andreas Schwab <schwab@suse.de>
14244
14245 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
14246 against a charset.
14247
14248 * lisp.h (Fbuffer_list): Declare.
14249
142502008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 14251
aac0c6e3
MR
14252 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
14253 handlebox_widget is != 0.
14254
142552008-03-16 Juri Linkov <juri@jurta.org>
14256
14257 * callint.c (Fcall_interactively): For interactive code letters
14258 'b' and 'B' put the buffer list into the list of default "future"
14259 values of the minibuffer.
14260
142612008-03-16 Andreas Schwab <schwab@suse.de>
14262
14263 * keyboard.c (read_key_sequence): Fix downcasing of letters with
14264 modifiers.
14265
14266 * regex.c (re_match_2_internal): Correct matching of a charset
14267 against latin-1 characters.
14268
142692008-03-16 Kenichi Handa <handa@m17n.org>
14270
14271 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
14272 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
14273 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
14274 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
14275 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
14276 CHAR_STRING_ADVANCE.
14277 (produce_chars): Fix for the case that the source and the
14278 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
14279 instead of CHAR_STRING_ADVANCE.
14280 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
14281 STRING_CHAR_ADVANCE.
14282
142832008-03-15 Andreas Schwab <schwab@suse.de>
14284
14285 * regex.c (re_match_2_internal): Correct matching of eight bit
14286 characters in unibyte strings.
14287
142882008-03-15 Martin Rudalics <rudalics@gmx.at>
14289
14290 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
14291 at end of range when it coincides with the end of the buffer.
14292
142932008-03-14 Eli Zaretskii <eliz@gnu.org>
14294
14295 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
14296
14297 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
14298
142992008-03-14 Jason Rumney <jasonr@gnu.org>
14300
14301 * editfns.c (initial_tz): New variable.
14302 (syms_of_editfns): Initialize it.
14303 (Fset_time_zone_rule): Set it when first called.
14304 Use it when TZSTRING is nil.
14305
14306 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
14307 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
14308 (monitor_from_point_fn, get_monitor_info_fn): New globals.
14309 (globals_of_w32fns): Initialize them.
14310 (compute_tip_xy): Use them to position tooltips.
14311
143122008-03-14 Glenn Morris <rgm@gnu.org>
14313
14314 * emacs.c (main): Revert previous change.
14315 (standard_args): Revert -internal-script back to -scriptload,
14316 and remove the long-option form.
14317
143182008-03-13 Glenn Morris <rgm@gnu.org>
14319
14320 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
14321 Remove option -enable-font-backend.
14322
143232008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
14324
14325 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
14326
143272008-03-11 Jan Djärv <jan.h.d@swipnet.se>
14328
14329 * xterm.c (x_connection_closed): For GTK: If this is the last
14330 terminal just exit without closing the display.
14331
143322008-03-11 Jason Rumney <jasonr@gnu.org>
14333
14334 * w32font.c (w32font_full_name): Use floor to round.
14335
f0131492 143362008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
14337
14338 * sound.c (alsa_configure): Declare vol at beginning of block.
14339
14340 * fontset.c (Ffontset_info): Remove extra semicolon.
14341
143422008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
14343
14344 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
14345 size of resulting string.
14346
143472008-03-10 Jason Rumney <jasonr@gnu.org>
14348
14349 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
14350
143512008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14352
14353 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
14354 Don't pretend as if characters with display property haven't been
14355 consumed for string-replacing-string case.
14356
143572008-03-08 Kim F. Storm <storm@cua.dk>
14358
14359 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
14360 (get_next_display_element, next_element_from_string)
14361 (next_element_from_ellipsis, next_element_from_buffer): Use it.
14362
143632008-03-08 Andreas Schwab <schwab@suse.de>
14364
14365 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
14366
143672008-03-06 Jason Rumney <jasonr@gnu.org>
14368
14369 * w32font.c (w32_registry): Take font_type argument. Use ANSI
14370 when charset not specified. Only translate ANSI to unicode when
14371 font_type is truetype.
14372 (w32font_coverage_ok): New function.
14373 (add_font_entity_to_list): Use it to filter unsuitable fonts.
14374
143752008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
14376
14377 * lread.c (Fread_char): Resolve modifiers.
14378 (Fread_char_exclusive): Likewise.
14379
14380 * character.c (char_resolve_modifier_mask): New function.
14381 (char_string): Use char_resolve_modifier_mask.
14382 (Fchar_resolve_modifiers): New function.
14383 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
14384 function.
14385
143862008-03-04 Jason Rumney <jasonr@gnu.org>
14387
14388 * makefile.w32-in: Always include w32font.c in the build.
14389 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
14390
143912008-03-04 Andreas Schwab <schwab@suse.de>
14392
14393 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
14394 (versionclean): Likewise.
14395
143962008-03-04 Juanma Barranquero <lekktu@gmail.com>
14397
14398 * .cvsignore: Add oo.
14399
144002008-03-03 Andreas Schwab <schwab@suse.de>
14401
14402 * coding.c (decode_coding_object): Inhibit gap shrinking while
14403 decoding in place.
14404
144052008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
14406
14407 * w32term.c: Remove unused include "gnu.h".
14408 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
14409
14410 * gnu.h: Rename to ...
14411 * emacs-icon.h: ... this.
14412 * xterm.c: Use emacs-icon.h instead of gnu.h.
14413 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
14414
144152008-03-03 Juanma Barranquero <lekktu@gmail.com>
14416
14417 * w32font.c: Include math.h.
14418
144192008-03-03 Jason Rumney <jasonr@gnu.org>
14420
14421 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
14422 Compute options separately.
14423 (w32font_open_internal): Set glyph_idx before caching metrics.
14424
14425 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
14426 Define if system headers don't.
14427 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
14428 (w32font_encode_char): Don't declare here.
14429
14430 * w32font.c (Quniscribe, QCformat): New symbols.
14431 (syms_of_w32font): Define them.
14432 (w32font_has_char): Indicate uncertainty.
14433 (w32font_encode_char): Encode as glyph point. Make static.
14434 (recompute_cached_metrics): New function.
14435 (w32font_open_internal): Use it. Set font to use glyph points
14436 initially. Set format based on type of font.
14437 (w32font_text_extents, w32font_draw): Optionally use glyph points.
14438 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
14439 on it. Set format based on information available here.
14440 (add_font_entity_to_list): Identify backend based on opentype_only.
14441
144422008-03-02 Andreas Schwab <schwab@suse.de>
14443
14444 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
14445
14446 * coding.c (decode_coding_big5, produce_chars):
14447 Fix typos in last change.
14448
144492008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
14450
14451 * gnu.h: New icon.
14452
144532008-03-02 Kenichi Handa <handa@m17n.org>
14454
14455 * coding.c (decode_coding_utf_8): When eol-type of CODING is
14456 `dos', don't decode '\r' if that is the last in the source.
14457 (decode_coding_utf_16, decode_coding_emacs_mule)
14458 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
14459 (decode_coding_raw_text, decode_coding_charset): Likewise.
14460 (produce_chars): Don't decode EOL here. Use EMACS_INT.
14461
144622008-03-01 Jason Rumney <jasonr@gnu.org>
14463
14464 * w32font.c (w32font_full_name): Report point size for scalable fonts.
14465
144662008-03-01 Kim F. Storm <storm@cua.dk>
14467
14468 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
14469
144702008-03-01 Jason Rumney <jasonr@gnu.org>
14471
14472 * w32font.c (w32font_full_name): New function.
14473 (w32font_open_internal): Use it.
14474
144752008-03-01 Kim F. Storm <storm@cua.dk>
14476
14477 * dispnew.c (line_draw_cost): Fix invalid glyph check.
14478
144792008-03-01 Jason Rumney <jasonr@gnu.org>
14480
14481 * font.c (font_unparse_fcname): Increase len when style is a symbol.
14482
144832008-03-01 Jan Djärv <jan.h.d@swipnet.se>
14484
14485 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
14486 xg_frame_resized when the event is for the edit widget.
14487
14488 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
14489
14490 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
14491 set_char_size.
14492 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
14493 operations on widgets here. Just set frame size if needed.
14494 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
14495 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
14496 (x_wm_set_size_hint): Set size hints on the edit widget only, not
14497 the whole frame.
14498 (xg_create_tool_bar): Move attachment of the tool bar to
14499 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
14500 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
14501
145022008-03-01 Jason Rumney <jasonr@gnu.org>
14503
14504 * w32fns.c (w32_msg_pump): Disable debug code.
14505
145062008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14507
14508 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
14509
145102008-02-29 Chong Yidong <cyd@stupidchicken.com>
14511
14512 * xdisp.c (next_overlay_string): Don't set
14513 overlay_strings_at_end_processed_p if we're currently reading from
14514 a display string.
14515
145162008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
14517
14518 * xdisp.c (get_overlay_strings_1): Fix typo.
14519
145202008-02-29 Chong Yidong <cyd@stupidchicken.com>
14521
14522 * xdisp.c (get_overlay_strings_1): Add missing argument type.
14523
145242008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
14525
14526 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
14527
14528 * xdisp.c (display_mode_element): Cancel the previous change.
14529 (decode_mode_spec): Likewise.
14530 (handle_auto_composed_prop): Don't make composition if it->string
14531 is a string.
14532
145332008-02-27 Kim F. Storm <storm@cua.dk>
14534
14535 * lisp.h (GLYPH): Change type from int to struct with separate char
14536 and face_id members.
14537 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
14538 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
14539 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
14540 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
14541 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
14542 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
14543 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
14544 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
14545 handle new Lisp glyph code encoding, either an integer or a cons.
14546
14547 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
14548 (GLYPH_ALIAS): Delete.
14549 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
14550 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
14551 (GLYPH_FROM_CHAR): Replace macro by ...
14552 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
14553
14554 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
14555 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
14556 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
14557 (GLYPH_INVALID_P): New macro.
14558 (spec_glyph_lookup_face): Update prototype.
14559
14560 * dispnew.c (line_draw_cost): Adapt to new glyph type.
14561 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
14562 new glyph code encoding.
14563 (spec_glyph_lookup_face): No return value; update passed glyph instead.
14564 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
14565
14566 * xdisp.c (get_next_display_element, next_element_from_display_vector):
14567 Adapt to new glyph type and new glyph code encoding.
14568
14569 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
14570
14571 * indent.c (current_column, current_column_1, Fmove_to_column)
14572 (compute_motion): Adapt to new glyph code encoding.
14573
14574 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
14575
145762008-02-27 Chong Yidong <cyd@stupidchicken.com>
14577
14578 * process.c (wait_reading_process_output): Check for window
14579 changes caused by timers.
14580 Suggested by Johan Bockgård.
14581
145822008-02-27 Glenn Morris <rgm@gnu.org>
14583
14584 * emacs.c (USAGE1): Add `--disable-font-backend'.
14585
145862008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
14587
14588 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
14589 is made to the buffer.
14590
145912008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
14592
14593 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
14594 (face_at_string_position):
14595 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
14596 (face_at_string_position):
14597 * xdisp.c (display_string, next_overlay_change):
14598 * buffer.h (overlays_at):
14599 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
14600 Update callers.
14601
146022008-02-26 Chong Yidong <cyd@stupidchicken.com>
14603
14604 * editfns.c (Fformat): Doc fix.
14605
146062008-02-26 Juanma Barranquero <lekktu@gmail.com>
14607
14608 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
14609 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
14610 (Ffont_otf_alternates, Fquery_font): Doc fixes.
14611
146122008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
14613
14614 * buffer.c (Fbuffer_swap_text): New function.
14615 (syms_of_buffer): Defsubr it.
14616
146172008-02-25 Chong Yidong <cyd@stupidchicken.com>
14618
14619 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
14620
146212008-02-25 Jason Rumney <jasonr@gnu.org>
14622
14623 * w32font.c (w32font_draw): Draw one character at a time when padding.
14624
146252008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
14626
14627 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
14628 Handle a nil arg. Use run_window_configuration_change_hook.
14629 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
14630 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
14631 Use run_window_configuration_change_hook.
14632
146332008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
14634
14635 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
14636 1-pixel width.
14637
146382008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
14639
14640 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
14641 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
14642 if the glyph in the font is zero pixel with.
14643
14644 * dispextern.h (struct glyph_string): New member padding_p.
14645
14646 * w32font.c (w32font_draw): Pay attention to s->padding_p.
14647
14648 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
14649
14650 * xfont.c (xfont_draw): Pay attention to s->padding_p.
14651
14652 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
14653
14654 * font.c: If the font driver doesn't have `shape' function, return Qnil.
14655
146562008-02-25 Jason Rumney <jasonr@gnu.org>
14657
14658 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
14659
146602008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
14661
14662 Allow fine-grained image-cache flushing.
14663 * dispextern.h (struct image): Add `dependencies' field.
14664 (clear_image_caches): Change arg to Lisp_Object.
14665 * image.c (make_image): Initialize `dependencies' field.
14666 (clear_image_cache): Change arg to allow fine-grained flushing.
14667 Perform the flush even if image-cache-eviction-delay is nil.
14668 (clear_image_caches): Change arg to Lisp_Object.
14669 (Fclear_image_cache): Expand meaning of the argument.
14670 (mark_image): Mark `dependencies' field.
14671 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
14672 (lface_hash): Use XHASH rather than XFASTINT.
14673 (face_at_buffer_position): Fix int -> EMACS_INT position.
14674 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
14675 (select_frame_for_redisplay): Remove code duplication.
14676 (redisplay_internal): Adapt arg to call to clear_image_caches.
14677
146782008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
14679
14680 * s/vms4-0.h:
14681 * s/vms4-2.h:
14682 * s/vms4-4.h:
14683 * s/vms5-5.h: Remove, unused.
14684
14685 * s/irix5-2.h:
14686 * s/irix6-0.h:
14687 * s/riscos5.h:
14688 * s/mach-bsd4-3.h:
14689 * m/mips4.h: Remove files for obsolete systems.
14690
14691 * Makefile.in:
14692 * filelock.c:
14693 * unexmips.c:
14694 * m/hp9000s300.h:
14695 * m/iris4d.h:
14696 * s/aix3-1.h:
14697 * s/hpux.h:
14698 * s/msdos.h:
14699 * s/usg5-0.h:
14700 * s/usg5-2-2.h:
14701 * s/usg5-2.h:
14702 * s/usg5-3.h: Remove references to obsolete variables.
14703
14704 * s/irix5-0.h: Remove, move all the contents ...
14705 * s/irix6-5.h: ... here. Simplify.
14706 * config.in: Regenerate.
14707
147082008-02-24 Jason Rumney <jasonr@gnu.org>
14709
14710 * w32term.c (x_draw_glyph_string_background): Clear the background
14711 manually when cleartype is in use.
14712 (x_draw_glyph_string_foreground): Draw text transparently when
14713 cleartype is in use.
14714
14715 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
14716 a font into it unless we have to.
14717
147182008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
14719
14720 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
14721 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 14722
aac0c6e3
MR
147232008-02-18 Jason Rumney <jasonr@gnu.org>
14724
14725 * w32fns.c (Fw32_shell_execute): Encode parameters.
14726
147272008-02-09 Eli Zaretskii <eliz@gnu.org>
14728
14729 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
14730
147312008-02-05 Juanma Barranquero <lekktu@gmail.com>
14732
14733 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
14734
147352008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
14736
14737 * xterm.c (x_set_offset): Don't change the gravity if
14738 CHANGE_GRAVITY is -1.
14739
147402008-02-23 Chong Yidong <cyd@stupidchicken.com>
14741
14742 * fileio.c (auto_save_error_occurred): New var.
14743 (auto_save_error): Set it.
14744 (Fdo_auto_save): Don't overwrite the error message if an auto-save
14745 error occurred.
14746
147472008-02-23 Eli Zaretskii <eliz@gnu.org>
14748
14749 * w32.c (globals_of_w32): Add initializations for
14750 g_b_init_get_sid_sub_authority and
14751 g_b_init_get_sid_sub_authority_count.
14752
147532008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
14754
14755 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
14756 (font_parse_xlfd): Use them for sanity check.
14757 (Finternal_set_font_style_table): Make sure the table is bijective.
14758
14759 Consolidate the image_cache to the terminal struct.
14760 * termhooks.h (P_): Remove redundant def.
14761 (struct terminal): New field `image_cache'.
14762 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
14763 of FRAME_X_IMAGE_CACHE.
14764 * xterm.h (struct x_display_info): Remove image_cache field.
14765 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
14766 * w32term.h (struct w32_display_info): Remove image_cache field.
14767 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
14768 * macterm.h (struct mac_display_info): Remove image_cache field.
14769 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
14770 * xterm.c (x_term_init):
14771 * w32term.c (w32_term_init):
14772 * macterm.c (mac_term_init): Set the image_cache in the terminal.
14773 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
14774 Remove declarations.
14775 (clear_image_caches, mark_image_cache): New declarations.
14776 * xfaces.c (clear_face_cache):
14777 * xdisp.c (redisplay_internal): Use clear_image_caches.
14778 * image.c (clear_image_cache): Don't check that a frame is on
14779 a window-system before checking if it shares the same cache.
14780 (clear_image_caches): New function.
14781 (Fclear_image_cache): Use it.
14782 (mark_image): Move from allo.c.
14783 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
14784 * alloc.c (mark_image, mark_image_cache): Move to image.c.
14785 (mark_object): Don't call mark_image_cache for frames.
14786 (mark_terminals): Call mark_image_cache.
14787
14788 * lisp.h (Fdelete_terminal): Declare.
14789
14790 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
14791 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
14792 wrong_type_argument.
14793
147942008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
14795
14796 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
14797 malayalam.el, and tamil.el. Add sinhala.el.
14798
147992008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
14800
14801 * xterm.c (x_connection_closed): Consolidate identical tests.
14802 (x_delete_terminal): Don't crash if called via x_connection_closed.
14803
148042008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
14805
14806 * xdisp.c (decode_mode_spec): New arg string.
14807 (display_mode_element): Adjust for the above change.
14808
148092008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
14810
14811 * callint.c (Fcall_interactively): Use AREF.
14812
148132008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
14814
14815 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
14816
148172008-02-18 Jan Djärv <jan.h.d@swipnet.se>
14818
14819 * xfns.c (Fx_show_tip): Set string to " " if empty.
14820
148212008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
14822
14823 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
14824 with Qt.
14825
148262008-02-17 Kenichi Handa <handa@m17n.org>
14827
14828 * ftfont.c (ftfont_shape): Return Lispy number.
14829
14830 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
14831 for GCs.
14832 (Finternal_set_font_selection_order): Call font_update_sort_order
14833 only when enable_font_backend is set.
14834 (realize_x_face): Set face->font_info to that of default face only
14835 when enable_font_backend is set.
14836
14837 * xdisp.c (handle_composition_prop): Set it->c to the fist
14838 character of the composed region.
14839 (fill_composite_glyph_string): Set base_face->font_info to
14840 s->font_info. Get a face for ascii from base_face->ascii_face.
14841 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
14842 with a face already decided.
14843 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
14844 non-negative.
14845 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
14846 call font_prepare_composition unconditionally.
14847
14848 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
14849
14850 * xterm.h (struct x_display_info): New member font.
14851
14852 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
14853 (x_set_mouse_face_gc, x_new_font): Likewise.
14854 (x_term_init): Setup display_info->font.
14855 (x_delete_terminal): Free display_info->font.
14856
14857 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
14858
14859 * ftxfont.c (ftxfont_default_fid): Delete it.
14860 (ftxfont_open): Set xfont->fid to 0.
14861 (ftxfont_end_for_frame): Clear data specific to the frame and the
14862 font-driver.
14863
14864 * xftfont.c (xftfont_default_fid): Delete it.
14865 (xftfont_open): Set xfont->fid to 0.
14866
14867 * fontset.c (FONTSET_OBJLIST): New macro.
14868 (fontset_find_font): Update font-object list of the fontset.
14869 (free_realized_fontset): New function.
14870 (free_face_fontset): Call free_realized_fontset.
14871 (Ffont_info): Call font_close_object only when enable_font_backend
14872 is set.
14873
14874 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
14875 [HAVE_NTGUI]: Include w32term.h.
14876 [MAC_OS]: Include macterm.ch.
14877 (font_otf_ValueRecord): Use make_number.
14878 (font_finish_cache): Fix handling of reference count.
14879 (font_clear_cache): Update num_fonts.
14880 (font_open_entity): Update smallest_char_width and
14881 smallest_font_height of the frame.
14882 (font_close_object): Update num_fonts.
14883 (Fclear_font_cache): Fix finding the target cache data.
14884
148852008-02-16 Glenn Morris <rgm@gnu.org>
14886
14887 * fontset.c (Finternal_char_font): Fix compilation warning.
14888
148892008-02-16 Eli Zaretskii <eliz@gnu.org>
14890
14891 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
14892 instead of char arrays. Enlarge the size of array passed to
14893 get_token_information.
14894
14895 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
14896 warnings.
14897
148982008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
14899
14900 * .gdbinit: Don't set `args', it breaks gdb --args.
14901
149022008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
14903
14904 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
14905 within a narrowed buffer.
14906
149072008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
14908
14909 * coding.c (decode_coding_object, encode_coding_object):
14910 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
14911
149122008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
14913
14914 * coding.c (coding_set_destination): Use BEG_BYTE rather than
14915 hardcoding 1.
14916 (detect_coding_system):
14917 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
14918 (string_char_to_byte, string_byte_to_char, insert_from_gap):
14919 * insdel.c (insert_from_gap):
14920 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
14921 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
14922 (string_to_multibyte):
14923 * character.c (chars_in_text, multibyte_chars_in_text):
14924 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
14925
14926 * character.h (FETCH_STRING_CHAR_ADVANCE)
14927 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
14928 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
14929 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
14930
14931 * casefiddle.c (casify_region): Only call after-change and composition
14932 functions on the part of the region that was changed.
14933
14934 * keyboard.c (read_avail_input):
14935 * frame.c (Fdelete_frame): Call Fdelete_terminal.
14936
149372008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
14938
14939 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
14940 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
14941
149422008-02-11 Juanma Barranquero <lekktu@gmail.com>
14943
14944 * w32menu.c (push_submenu_start, push_submenu_end)
14945 (push_left_right_boundary, push_menu_pane, push_menu_item):
14946 * keyboard.c (read_key_sequence): Don't pass args with side effects
14947 to AREF, it fails when compiling with -DENABLE_CHECKING.
14948
149492008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
14950
14951 * Makefile.in (${lispsource}international/charprop.el):
14952 Delete this target.
14953
14954 * search.c (boyer_moore): Fix incorrect synching of the trunk and
14955 emacs-unicode-2.
14956
149572008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
14958
14959 * terminal.c (Fdelete_terminal): Clean up the `force' path.
14960
149612008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
14962
14963 * frame.c (Qnoelisp): New symbol.
14964 (syms_of_frame): Initialize it.
14965 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
14966 harmless Elisp code, from a strong `force' from x_connection_closed.
14967 * frame.h (Qnoelisp): Declare.
14968 * xterm.c (x_connection_closed): Pass `noelisp'.
14969
14970 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
14971 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
14972 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
14973 rather than `int' for the type of `type'.
14974
149752008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
14976
14977 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
14978
14979 * Makefile.in (GNUC): Remove support for gcc-1.x.
14980
149812008-02-10 Richard Stallman <rms@gnu.org>
14982
14983 * lisp.h (ASET): Use AREF, not ASLOT.
14984
149852008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
14986
14987 * lisp.h (ASET): Check bounds.
14988
149892008-02-10 Glenn Morris <rgm@gnu.org>
14990
14991 * buffer.c (mode-name): Doc fix.
14992
149932008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
14994
14995 * Makefile.in:
14996 * emacs.c:
14997 * gmalloc.c:
14998 * keyboard.c:
14999 * lisp.h:
15000 * m/ibm370aix.h:
15001 * process.c:
15002 * regex.c:
15003 * s/hpux.h:
15004 * sysdep.c:
15005 * sysselect.h:
15006 * systty.h:
15007 * unexec.c:
15008 * w32term.c:
15009 * xsmfns.c:
15010 * xterm.c: Remove code that deals with obsolete variables.
15011
15012 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
15013
15014 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
15015 nothing else needs it anymore.
15016
150172008-02-09 Eli Zaretskii <eliz@gnu.org>
15018
15019 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
15020 instead of unibyte_char_to_multibyte.
15021
150222008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
15023
15024 * s/gnu-linux.h: Remove commented out code.
15025
15026 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
15027
15028 * Makefile.in: Update what RMS says about using autoconf.
15029 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
15030 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
15031 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
15032 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
15033
150342008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
15035
15036 * keymap.c (Fkey_description): Move side effect outside of macro call.
15037
15038 * xfaces.c (Finternal_make_lisp_face):
15039 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
15040
15041 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
15042 (syms_of_fontset): Use ASET.
15043
15044 * fns.c (concat): Move side effect outside of macro call.
15045 (hash_clear): Use ASET.
15046
150472008-02-08 Richard Stallman <rms@gnu.org>
15048
15049 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
15050 If FORCE, and frame has a surrogate minibuffer for another frame,
15051 delete the other frame first.
15052
150532008-02-07 Timo Savola <timo.savola@iki.fi>
15054
15055 * xterm.c (x_detect_focus_change): Handle embed client message.
15056 (handle_one_xevent): Ditto.
15057 (handle_one_xevent): If embedded and we get a button press/release,
15058 request focus.
15059 (xembed_set_info, xembed_send_message): New functions.
15060 (x_make_frame_visible): Call xembed_set_info if embedded.
15061 (x_make_frame_invisible): Call xembed_set_info if embedded.
15062 (x_term_init): Initialize Xatom_XEMBED.
15063 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
15064 (x_iconify_frame): Ditto.
15065
15066 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
15067 (enum xembed_info, enum xembed_message, enum xembed_focus)
15068 (enum xembed_modifier, enum xembed_accelerator): New.
15069 (xembed_set_info, xembed_send_message): Declare.
15070 (FRAME_X_EMBEDDED_P): New.
15071
15072 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
15073 gtk_plug_new.
15074
15075 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
15076 window ID of a frame.
15077 (x_window): Reparent frame if embedded.
15078 (Fx_create_frame): Don't set border width if embedded.
15079
15080 * emacs.c (USAGE3): Add --parent-id.
15081 (standard_args): Ditto.
15082
150832008-02-07 Jan Djärv <jan.h.d@swipnet.se>
15084
15085 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
15086
150872008-02-07 Jim Meyering <meyering@redhat.com>
15088
15089 Use "do...while (0)", not "if (1)...else" in macro definitions.
15090 The latter provokes a warning from gcc about the empty else, when
15091 followed by ";". Also, without that trailing semicolon, it would
15092 silently swallow up any following statement.
15093 * syntax.h (SETUP_SYNTAX_TABLE)
15094 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
15095 * buffer.h (DECODE_POSITION): Likewise.
15096 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
15097 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
15098 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
15099 (FETCH_CHAR_ADVANCE): Likewise.
15100 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
15101
151022008-02-07 Jim Meyering <meyering@redhat.com>
15103
15104 * lread.c [lint]: Don't include <sys/inode.h>.
15105
151062008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
15107
15108 * xselect.c (x_handle_dnd_message):
15109 * xmenu.c (digest_single_submenu, xmenu_show):
15110 * xdisp.c (with_echo_area_buffer_unwind_data)
15111 (format_mode_line_unwind_data, unwind_format_mode_line)
15112 (display_menu_bar):
15113 * eval.c (Ffetch_bytecode):
15114 * doc.c (store_function_docstring):
15115 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
15116 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
15117 * buffer.c (add_overlay_mod_hooklist): Use ASET.
15118
151192008-02-07 Kenichi Handa <handa@m17n.org>
15120
15121 * ftxfont.c (ftxfont_open): Don't set
15122 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
15123
15124 * ftfont.c (ftfont_open): Fix previous change.
15125
151262008-02-06 Jason Rumney <jasonr@gnu.org>
15127
15128 * w32font.c (w32font_text_extents): Fill in lbearing metric.
15129 Use cached metrics for ASCII characters.
15130 (w32font_open_internal): Don't set font's owning_frame.
15131 Cache metrics for ASCII characters.
15132
15133 * w32font.h (struct w32font_info): Add ascii_metrics.
15134 Remove owning_frame.
15135
151362008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
15137
15138 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
15139 to negative value.
15140
15141 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
15142
15143 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
15144
15145 * charset.c (syms_of_charset): Set QCtest and Qeq.
15146
151472008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
15148
15149 * process.c (Fstart_process):
15150 * callproc.c (Fcall_process): Handle the case where
15151 Funhandled_file_name_directory returns nil.
15152
15153 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
15154 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
15155 * font.c (check_gstring): Use them and AREF to access the vector before
15156 we know it's really a gstring.
15157 (Ffont_shape_text): Fix typo.
46e722a9 15158 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
15159
15160 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
15161 Declare.
15162
15163 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
15164
151652008-02-05 Jason Rumney <jasonr@gnu.org>
15166
15167 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
15168 Set smallest_font_height and smallest_char_width in display info.
15169
151702008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
15171
15172 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
15173
151742008-02-05 Miles Bader <miles@gnu.org>
15175
15176 * xfaces.c (get_lface_attributes, merge_named_face)
15177 (lookup_named_face, lookup_derived_face, realize_named_face):
15178 Revert 2008-02-01 change by cyd@stupidchicken.com.
15179
151802008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
15181
15182 * fontset.c (Ffontset_info): Handle the case of inhibitting the
15183 fallback fonts.
15184 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
15185
151862008-02-04 Jason Rumney <jasonr@gnu.org>
15187
15188 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
15189 set full_name.
15190 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
15191
151922008-02-03 Jason Rumney <jasonr@gnu.org>
15193
15194 * makefile.w32-in (OBJ1): Include font.o here.
15195 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
15196
151972008-02-02 Jason Rumney <jasonr@gnu.org>
15198
15199 * makefile.w32-in (temacs): Bump EMHEAP to 21.
15200
152012008-02-01 Jason Rumney <jasonr@gnu.org>
15202
15203 * s/cygwin.h: Define VIRT_ADDR_VARIES.
15204
15205 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
15206
152072008-02-01 Andreas Schwab <schwab@suse.de>
15208
15209 * Makefile.in (shortlisp, lisp): Update for rename of
15210 ../lisp/language/myanmar.el.
15211
152122008-02-01 Chong Yidong <cyd@stupidchicken.com>
15213
15214 * xfaces.c (get_lface_attributes): Delete function.
15215 (merge_named_face, lookup_named_face, lookup_derived_face)
15216 (realize_named_face): Call lface_from_face_name directly, and use
15217 the fact that merge_face_vectors does not alter its FROM argument.
15218
152192008-02-01 Jason Rumney <jasonr@gnu.org>
15220
15221 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
15222 input in the default locale. Handle non-Unicode multibyte input.
15223
152242008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15225
15226 * fontset.c (reorder_font_vector): Exclude nil elements from the
15227 font group. Don't try multiple fonts.
15228 (fontset_font): Adjust for the above change.
15229 (Finternal_char_font): Return nil if the found font doesn't
15230 contain the character ch.
15231
15232 * Makefile.in (lisp, shortlisp): Add cham.el.
15233
152342008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15235
15236 * font.h (FONTP): Make it return 1 also for a font-object.
15237
15238 * .gdbinit (xfontset): New function.
15239
15240 * font.c (font_find_for_lface): Check if the character C is
15241 supported or not only for the first font.
15242
15243 * fontset.c (reorder_font_vector): Fix typo.
15244 (fontset_find_font): Don't add a font-spec specifying a script.
15245 Use 0 (not Qt) for the indication of empty font-group. Change the
15246 format of RFONT-DEF. Return Qt if no font in the font-group
15247 support the character.
15248 (fontset_font): Adjust for the above change. If no font was
15249 found the character, remember that.
15250 (face_for_char): Adjust for the change of RFONT-DEF.
15251 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
15252 no font for the target.
15253 (Finternal_char_font): Adjust for the change of RFONT-DEF.
15254
152552008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15256
15257 * font.c (font_load_for_face): Handle the case that the font in
15258 face->lface is a string.
15259
152602008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15261
15262 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
15263
152642008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15265
15266 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
15267 Fix previous change. If the frame is not on a window system,
15268 signal an error.
15269
152702008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15271
15272 * coding.c (decode_coding_object, encode_coding_object): Adjust
15273 marker positions after conversion.
15274
15275 * lisp.h (struct Lisp_Marker): New member need_adjustment.
15276
152772008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15278
15279 * font.c (font_find_for_lface): Fix the handling of the return
15280 value of font_has_char.
15281 (Ffont_shape_text): Fix previous change.
15282
15283 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
15284 (fontset_ref_and_range): Delete it.
15285 (fontset_find_font): Call char_table_ref_and_range instead of
15286 FONTSET_REF_AND_RANGE.
15287 (make_fontset): Don't setup font groups of Latin here.
15288 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
15289 (new_fontset_from_font): Make the specified font the default for
15290 all Latin characters.
15291
152922008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15293
15294 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
15295 is on a window system before accessing the fontset of the frame.
15296
152972008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15298
15299 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
15300
15301 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
15302 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
15303
15304 * font.c (Ffont_shape_text): If the font driver doesn't have a
15305 shaper function, make zero-width glyphs to have at least one-pixel
15306 width. Fix setting of `to' field of glyphs.
15307
153082008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15309
15310 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
15311 glyphs.
15312
15313 * font.h (struct font_driver): Improve docstring of member `shape'.
15314
153152008-02-01 Kenichi Handa <handa@m17n.org>
15316
15317 * composite.c (syms_of_composite): Fix docstring of
15318 auto-composition-function.
15319
15320 * font.h (LGLYPH_SIZE): New macro.
15321
15322 * font.c (Ffont_fill_gstring): Stop filling when a character not
15323 supported by the font is found.
15324 (Ffont_shape_text): When a shape callback function returns nil,
15325 try at most two more times with larger gstring.
15326 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
15327
15328 * xdisp.c (handle_auto_composed_prop): Change the argument to
15329 auto-composition-function.
15330
15331 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
15332 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
15333 Lispy glyph and store it in the lgstring.
15334
15335 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
15336
15337 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
15338
153392008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15340
15341 * font.c (Ffont_shape_text): Avoid unnecessary composition.
15342
15343 * fontset.c (Vfont_encoding_charset_alist): New variable.
15344 (syms_of_fontset): DEFVAR it.
15345 (reorder_font_vector, fontset_find_font): Optimize for the case of
15346 no need of reordering.
15347 (face_for_char): Map the charset property by
15348 Vfont_encoding_charset_alist.
15349
153502008-02-01 Jason Rumney <jasonr@gnu.org>
15351
15352 * w32font.c (logfonts_match): Don't check adstyle here.
15353 (font_matches_spec): Check here against physical font instead.
15354 (add_font_entity_to_list): Avoid some substitutions.
15355
15356 * font.c (font_parse_fcname): Default weight and slant to normal.
15357 (font_score): Prefer normal fonts if weight or slant unspecified.
15358 (font_score) [WINDOWSNT]: Scale weight difference down to closer
15359 match freetype scores.
15360
153612008-02-01 Jason Rumney <jasonr@gnu.org>
15362
15363 * w32font.c (w32font_text_extents): Don't use the frame stored in the
15364 font, as it may have been deleted.
15365 (w32_enumfont_pattern_entity): Map generic family to adstyle using
15366 most common hyphenless variation.
15367 (logfonts_match): Check generic family.
15368 (font_matches_spec): Don't check generic family here.
15369 (fill_in_logfont): Set generic family based on adstyle.
15370
15371 * w32font.h (w32font_get_cache): Update declaration.
15372
153732008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15374
15375 * ftfont.c (ftfont_get_cache): Adjust the argument type.
15376
15377 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
15378 If none of the new drivers are available, call font_update_drivers
15379 with the old drivers.
15380
15381 * w32font.c (w32font_get_cache): Adjust the argument type.
15382
15383 * xfont.c (xfont_get_cache): Adjust the argument type.
15384
15385 * font.h (struct font_driver): Change argument type of get_cache.
15386
15387 * xftfont.c (xftfont_start_for_frame): Delete prototype.
15388
15389 * font.c (Ffont_get): Fix arguments to Fassoc.
15390 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
15391 (font_clear_cache): New function.
15392 (font_list_entities, font_matching_entity): Use font_get_cache.
15393 (font_update_drivers): Call font_clear_cache when finishing a driver.
15394
15395 * fontset.c (fontset_find_font): Fix previous change.
15396
153972008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15398
15399 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
15400 dpyinfo->font_table.
15401 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
15402 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
15403
15404 * font.c (font_at): Handle the case that the arg C is negative.
15405 Handle the unibyte case.
15406 (Ffont_at): Call font_at with the arg C -1.
15407
15408 * xdisp.c (handle_auto_composed_prop): Don't get a character at
15409 the position here, and call font_at with the arg C -1.
15410 Don't check the range of the existing composition at the point.
15411
154122008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15413
15414 * fontset.c (fontset_add): New args charset_id and family.
15415 Change caller.
15416 (load_font_get_repertory, fontset_find_font): Assume that
15417 font_spec is always a font-spec object.
15418 (Fset_fontset_font): Always store a font-spec object in a fontset.
15419
15420 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
15421 instead of get_property_and_range.
15422
154232008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15424
15425 * xftfont.c (struct xftfont_info): Delete the member ft_face.
15426 (xftfont_open): Don't keep locking face.
15427 (xftfont_close): Don't unlock face.
15428 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
15429
15430 * fontset.c (fontset_find_font): Don't prefer a font of
15431 supplementary charset.
15432
154332008-02-01 Kenichi Handa <handa@m17n.org>
15434
15435 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
15436 script, langsys_tag to langsys, new member script.
15437 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 15438 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
15439 listing to the script specified in that property. Fix arg to
15440 OTF_check_features.
15441
154422008-02-01 Jason Rumney <jasonr@gnu.org>
15443
15444 * w32font.h: New file.
15445
15446 * w32font.c: Include it.
15447 (struct w32font_info): Add owning_frame field. Move to w32font.h.
15448 (w32font_open): Set owning_frame.
15449 (w32font_text_extents): Use owning_frame.
15450 (struct font_callback_data): Add opentype_only field.
15451 (add_font_entity_to_list): Use it to filter fonts.
15452 Don't check against full name.
15453 (w32font_list_internal): New function.
15454 (w32font_list): Use it.
15455 (w32font_match_internal): New function.
15456 (w32font_match): Use it.
15457 (w32font_open_internal): New function.
15458 (w32font_open): Use it.
15459 (w32font_get_cache, w32font_close, w32font_has_char)
15460 (w32font_encode_char, w32font_text_extents, w32font_draw):
15461 Make non-static.
15462
15463 * makefile.w32-in (w32font.o): Depend on w32font.h.
15464
154652008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15466
15467 * charset.c (Fdefine_charset_internal): Record a supplementary
15468 charset at the tail of Vcharset_order_list.
15469
15470 * font.c (Ffont_shape_text): Fix the return value.
15471
15472 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
15473
15474 * xdisp.c (handle_auto_composed_prop): Fix previous change.
15475
154762008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15477
15478 * ftfont.c (struct OpenTypeSpec): New struct.
15479 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
15480 (ftfont_get_open_type_spec): New function.
15481 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
15482
15483 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
15484
154852008-02-01 Jason Rumney <jasonr@gnu.org>
15486
15487 * w32font.c (add_font_entity_to_list): Compare only the beginning
15488 of full name.
15489
154902008-02-01 Kenichi Handa <handa@m17n.org>
15491
15492 * xdisp.c (handle_auto_composed_prop): Simplify the code.
15493 Never return HANDLED_RECOMPUTE_PROPS.
15494
154952008-02-01 Kenichi Handa <handa@m17n.org>
15496
15497 * font.c (font_gstring_produce): Delete it.
15498
15499 * composite.h (COMPOSITION_METHOD):
15500 Handle COMPOSITION_WITH_GLYPH_STRING.
15501
155022008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15503
15504 * xfont.c (Qx): Delete.
15505 (syms_of_xfont): Don't initialize Qx.
15506
15507 * composite.h (enum composition_method):
15508 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
15509
155102008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15511
15512 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
15513 (choose_face_font): Accept new form of font-spec.
15514
15515 * frame.h (font_driver_list): Declare it unconditionally.
15516 (struct frame): Define members font_driver_list and font_data_list
15517 unconditionally.
15518
15519 * fontset.c: Include "font.h" unconditionally.
15520 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
15521 (Fset_fontset_font): Accept a font-spec object.
15522
15523 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
15524 PIXEL_SIZE part a wild card.
15525
15526 * dispextern.h (struct glyph_string): Define members clip and
15527 num_clips unconditionally.
15528 (struct face): Define members font_info and extra unconditionally.
15529
15530 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
15531 ftfont_info only when HAVE_LIBOTF is defined.
15532
155332008-02-01 Andreas Schwab <schwab@suse.de>
15534
15535 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
15536 and end.
15537
155382008-02-01 Jason Rumney <jasonr@gnu.org>
15539
15540 * w32font.c (w32font_driver): Add new fields.
15541
155422008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15543
15544 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
15545 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
15546 (LIBES): Add @M17N_FLT_CFLAGS@.
15547
15548 * composite.c (compose_text): Don't treat the new style
15549 composition specially.
15550
15551 * emacs.c (main): Call syms_of_font unconditionally.
15552
15553 * font.h (FONT_ENTITY_NOT_LOADABLE)
15554 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
15555 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
15556 (struct font_driver): New member shape.
15557 (font_registry_charsets): Extern it.
15558 (font_find_for_lface, font_prepare_composition): Adjust prototype.
15559 (font_otf_capability, font_drive_otf): Delete their externs.
15560
15561 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
15562 (font_charset_alist, font_registry_charsets): Move from xfont.c
15563 and rename.
15564 (font_prop_validate_otf): New function.
15565 (font_property_table): Register it for QCotf.
15566 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
15567 (font_drive_otf): Delete.
15568 (font_prepare_composition): New arg F. Adjust for the change of
15569 lispy gstring.
15570 (font_find_for_lface): New arg C.
15571 (font_load_for_face): Adjust for the change of font_find_for_lface.
15572 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
15573 lispy gstring.
15574 (Ffont_shape_text): New function.
15575 (Fopen_font): If the font size is not given, use 12-pixel.
15576 (Ffont_at): New arg STRING.
15577 (syms_of_font): Initalize font_charset_alist.
15578 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
15579 conditionally.
15580
15581 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
15582 fonts of the same font-spec. Change the format of RFONT-DEF.
15583 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
15584 Adjust for the change of RFONT-DEF.
15585 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
15586
15587 * ftfont.h: New file.
15588
15589 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
15590 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
15591 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
15592 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
15593 font_otf_capability and font_drive_otf, set ftfont_shape.
15594 (ftfont_list): Adjust for the change of :otf property value.
15595 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
15596 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
15597 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
15598 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
15599 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
15600 (otf_gstring, gstring, m17n_flt_initialized): New variables.
15601
15602 * w32term.c (x_draw_composite_glyph_string_foreground):
15603 Adjust for the change of lispy gstring.
15604
15605 * xdisp.c (handle_composition_prop): Adjust for the change of
15606 lispy gstring. Call a function for auto-composition with the
15607 third arg it->window.
15608 (fill_composite_glyph_string): Adjust for the change of lispy string.
15609 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
15610
15611 * xfaces.c (set_font_frame_param): Adjust for the change of
15612 font_find_for_lface.
15613
15614 * xfont.c (x_font_charset_alist): Move to font.c and rename.
15615 (xfont_registry_charsets): Likewise. Change caller.
15616 (syms_of_xfont): Don't handle x_font_charset_alist.
15617
15618 * xftfont.c: Include "ftfont.h".
15619 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
15620 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
15621 (xftfont_close) [HAVE_LIBOTF]: Close otf.
15622 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
15623 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
15624 Set xftfont_driver.shape to xftfont_shape.
15625
15626 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
15627 the change of lispy gstring.
15628
156292008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15630
15631 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
15632
156332008-02-01 Jason Rumney <jasonr@gnu.org>
15634
15635 * w32font.c (w32font_draw): Fill background manually.
15636
156372008-02-01 Jason Rumney <jasonr@gnu.org>
15638
15639 * font.c (Qfontp): Remove unused symbol.
15640 (QCantialias): New symbol.
15641 (syms_of_font): Define it.
15642 (font_property_table): Set a validator for QCantialias.
15643
15644 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
15645 Define if not already.
15646 (QCfamily): Share with xfaces.c.
15647 (Qstandard, Qsubpixel, Qnatural): New symbols.
15648 (syms_of_w32font): Define them. Don't define QCfamily here.
15649 (w32_antialias_type, lispy_antialias_type): New functions.
15650 (w32_enumfont_pattern_entity): New arg requested_font.
15651 Set antialias parameter if non-default was requested.
15652 (fill_in_logfont): Fill in lfQuality if :antialias specified.
15653
156542008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15655
15656 * lread.c (read1): Undo the previous change.
15657
156582008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
15659
15660 * frame.c (Fdelete_frame): Call font_update_drivers only when
15661 USE_FONT_BACKEND is defined.
15662
156632008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15664
15665 * font.h (struct font_bitmap): New member bits_per_pixel.
15666 (struct font_driver): New members start_for_frame and end_for_frame.
15667 (struct font_data_list): New struct.
15668 (font_put_frame_data, font_get_frame_data): Extern them.
15669
15670 * frame.h (struct frame): New member font_data_list.
15671
15672 * font.c (font_update_drivers): Call driver->start_for_frame and
15673 driver->end_for_frame at proper timings.
15674 (font_put_frame_data, font_get_frame_data): New functions.
15675 (Ffont_spec): Add usage in the docstring.
15676
15677 * frame.c (make_frame): Initialize f->font_data_list to NULL.
15678 (Fdelete_frame): Call font_update_drivers.
15679
15680 * xftfont.c (struct xftface_info): Delete the member xft_draw.
15681 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
15682 (xftfont_get_xft_draw): New function.
15683 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
15684 (xftfont_end_for_frame): New function.
15685 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
15686
15687 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
15688 Change argument. Cache GCs in the per-frame data.
15689 (struct ftxfont_frame_data): New struct.
15690 (ftxfont_draw_bitmap): New arg gc_fore and flush.
15691 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
15692 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
15693 (ftxfont_end_for_frame): New function.
15694 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
15695
15696 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
15697
156982008-02-01 Kenichi Handa <handa@m17n.org>
15699
15700 * xselect.c (Vselection_coding_system)
15701 (Vnext_selection_coding_system): Delete them.
15702 (syms_of_xselect): Don't declare selection-coding-system and
15703 next-selection-coding-system. They are declared in select.el.
15704
157052008-02-01 Jason Rumney <jasonr@gnu.org>
15706
15707 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
15708
15709 * w32fns.c: Include imm.h.
15710 (get_composition_string_fn, get_ime_context_fn): New optional
15711 system functions.
15712 (globals_of_w32fns): Load them from imm32.dll.
15713 (ignore_ime_char): New flag.
15714 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
15715 WM_IME_ENDCOMPOSITION messages.
15716
15717 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
15718 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
15719
157202008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15721
15722 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
15723 (READCHAR_REPORT_MULTIBYTE): New macro.
15724 (readchar): New 2nd arg MULTIBYTE.
15725 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
15726 Make symbol's name multibyte according to the multibyteness of the
15727 source.
15728
157292008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15730
15731 * xfaces.c (face_for_overlay_string): Call lookup_face with
15732 correct arguments (fix of synching with the trunk).
15733
157342008-02-01 Kenichi Handa <handa@m17n.org>
15735
15736 * font.c (font_prop_validate_symbol, font_prop_validate_style)
15737 (font_prop_validate_non_neg, font_prop_validate_spacing):
15738 Delete argument prop_index.
15739 (font_property_table): Change arguments to validater. Change Callers.
15740 (font_lispy_object): Delete.
15741 (font_at): Use font_find_object instead fo font_lispy_object.
15742
157432008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15744
15745 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
15746 and file names.
15747
157482008-02-01 Jason Rumney <jasonr@gnu.org>
15749
15750 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
15751 (font_matches_spec): Remove debug output.
15752 (add_font_entity_to_list): Avoid using substituted fonts.
15753
157542008-02-01 Jason Rumney <jasonr@gnu.org>
15755
15756 * doc.c (Fsnarf_documentation):
15757 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
15758
157592008-02-01 Miles Bader <miles@gnu.org>
15760
15761 * dispextern.h (struct glyph_row): Only define "clip" field if
15762 HAVE_WINDOW_SYSTEM is defined.
15763
157642008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
15765
15766 Fix up multi-tty merge.
15767
15768 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
15769 and indentation.
15770
15771 * xfaces.c (free_realized_face, clear_face_gcs):
15772 Include font_done_for_face in the input_blocked section, just in case.
15773
15774 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
15775 (get_char_face_and_encoding): Undo last change and remove the *other*
15776 duplicate definition (i.e. keep the one that's better scoped and that
15777 includes code for the font-backend).
15778
15779 * terminal.c (create_terminal): Default keyboard_coding to
15780 `no-conversion' and terminal_coding to `undecided'.
15781
15782 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
15783
15784 * fontset.c (free_realized_fontsets): Check that the table entry does
15785 contain a fontset before trying to compare it to `base'.
15786
15787 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
15788 syms_of_charset, and syms_of_coding earlier because init_window_once
15789 now needs Vcoding_system_hash_table to be setup.
15790
15791 * coding.h (default_buffer_file_coding): Remove.
15792
15793 * coding.c (default_buffer_file_coding): Remove.
15794 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
15795 than ->symbol, and use the terminal-local coding system.
15796 (syms_of_coding): Don't setup the coding-systems that are not
15797 terminal-local.
15798 (Fdefine_coding_system_internal): Use XCAR/XCDR.
15799
15800 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
15801 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
15802
15803 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
15804 in chartab.c and were re-added here by mistake.
15805 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
15806
15807 * doc.c (Fsnarf_documentation):
15808 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
15809 src to etc.
15810
15811 * ChangeLog.10: Add mistakenly removed entry.
15812
158132008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
15814
15815 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
15816
158172008-02-01 Miles Bader <miles@gnu.org>
15818
15819 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
15820 Add extra args to FACE_FOR_CHAR.
15821
158222008-02-01 Kenichi Handa <handa@m17n.org>
15823
15824 * keymap.c (where_is_internal_1): If key is a cons, store the copy
15825 in sequence.
15826
15827 * chartab.c (map_sub_char_table, map_char_table): If the range
15828 contains just one character, call the function with that character
15829 even if the depth is not 3.
15830
158312008-02-01 Jason Rumney <jasonr@gnu.org>
15832
15833 * w32font.c (w32font_text_extents): Calculate metrics for the
15834 whole string.
15835
158362008-02-01 Jason Rumney <jasonr@gnu.org>
15837
15838 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
15839
158402008-02-01 Jason Rumney <jasonr@gnu.org>
15841
15842 * w32term.c (x_set_glyph_string_clipping): Use
15843 get_glyph_string_clip_rects.
15844 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
15845 Adjust for the change of struct glyph_string.
15846
15847 * w32font.c (w32font_draw): Do clipping here.
15848
158492008-02-01 Kenichi Handa <handa@m17n.org>
15850
15851 * xftfont.c (xftfont_draw): Adjust for the change of struct
15852 glyph_string.
15853
15854 * xterm.c (x_set_glyph_string_clipping): Use
15855 get_glyph_string_clip_rects.
15856 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
15857 Adjust for the change of struct glyph_string.
15858
15859 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
15860 the resulting clip(s}.
15861 (expose_overlaps): Add arg r. Change callers. Set it to
15862 row->clip temporarily.
15863 (expose_window): Redraw rows overlapping the exposed area.
15864
15865 * dispextern.h (struct glyph_row): New member clip.
15866 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
15867 clip_height, new member clip, and num_clips.
15868
158692008-02-01 Kenichi Handa <handa@m17n.org>
15870
15871 * data.c (Fchar_or_string_p): Fix docstring.
15872
158732008-02-01 Kenichi Handa <handa@m17n.org>
15874
15875 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
15876 create a temporary XftDraw object.
15877
158782008-02-01 Kenichi Handa <handa@m17n.org>
15879
15880 * font.c (Ffontp): Fix docstring.
15881
15882 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
15883 strong evidence of ISO-2022.
15884
158852008-02-01 Kenichi Handa <handa@m17n.org>
15886
15887 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
15888 SYNTAX_ENTRY_FOLLOW_PARENT.
15889
158902008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
15891
15892 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
15893 its type.
15894 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
15895 Update to the new type of weak_hash_tables and next_weak.
15896
15897 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
15898 a plain C pointer to Lisp_Hash_Table.
15899
15900 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
15901 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
15902 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
15903 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
15904 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
15905 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
15906 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
15907 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
15908 (GC_EQ): Remove since they've been identical to their non-GC_
15909 alter-egos ever since the markbit was eradicated.
15910
15911 * alloc.c:
15912 * buffer.c:
15913 * buffer.h:
15914 * data.c:
15915 * fileio.c:
15916 * filelock.c:
15917 * fns.c:
15918 * frame.h:
15919 * lisp.h:
15920 * macterm.c:
15921 * print.c:
15922 * process.c:
15923 * w32fns.c:
15924 * w32menu.c:
15925 * w32term.c:
15926 * xfns.c:
15927 * xmenu.c:
15928 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
15929
159302008-02-01 Kenichi Handa <handa@m17n.org>
15931
15932 * chartab.c (map_sub_char_table): Make it work for the top-level
15933 char-table. Fix handling of parent char-table.
15934 (map_char_table): Adjust for the above change.
15935
159362008-02-01 Jason Rumney <jasonr@gnu.org>
15937
15938 * w32font.c (Qgdi): Rename from Qw32.
15939
159402008-02-01 Jason Rumney <jasonr@gnu.org>
15941
15942 * w32bdf.c (get_quoted_string): Make function static.
15943
159442008-02-01 Kenichi Handa <handa@m17n.org>
15945
15946 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
15947 bigger ascent and descent than those of the font, use them as
15948 font's ascent and descent.
15949
159502008-02-01 Kenichi Handa <handa@m17n.org>
15951
15952 * Makefile.in (${lispsource}international/charprop.el): Move this
15953 target within "#ifdef HAVE_UNIDATA" and "#endif".
15954
159552008-02-01 Kenichi Handa <handa@m17n.org>
15956
15957 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
15958 (shortlisp): Add ../lisp/language/tai-viet.el.
15959
159602008-02-01 Ulrich Mueller <ulm@gentoo.org>
15961
15962 * Makefile.in (${lispsource}international/charprop.el): Depend on
15963 temacs${EXEEXT}.
15964
159652008-02-01 Jason Rumney <jasonr@gnu.org>
15966
15967 * w32font.c (w32font_close): Delete the GDI font object.
15968
15969 * w32menu.c: Include character.h.
15970
15971 * w32proc.c: Likewise.
15972
15973 * w32select.c: Likewise.
15974
15975 * makefile.w32-in (w32proc.o): Depend on character.h.
15976
159772008-02-01 Jason Rumney <jasonr@gnu.org>
15978
15979 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
15980
15981 * w32menu.c (syms_of_w32menu): Likewise.
15982
15983 * w32proc.c (syms_of_ntproc): Likewise.
15984
15985 * w32select.c (syms_of_w32select): Likewise.
15986
15987 * w32term.c (syms_of_w32term): Likewise.
15988
159892008-02-01 Jason Rumney <jasonr@gnu.org>
15990
15991 * w32font.c (w32font_draw): Delete brush after using it.
15992
159932008-02-01 Jason Rumney <jasonr@gnu.org>
15994
15995 * w32font.c (w32font_open): Don't set font_idx.
15996 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
15997 to font settings.
15998 (w32font_draw): Fill background explicitly.
15999
160002008-02-01 Jason Rumney <jasonr@gnu.org>
16001
16002 * w32term.c (w32_initialize): Don't call w32font_initialize.
16003
16004 * w32font.c (w32font_info): Remove subranges.
16005 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
16006 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
16007 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
16008 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
16009 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
16010 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
16011 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
16012 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
16013 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
16014 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
16015 New symbols.
16016 (font_callback_data): New struct.
16017 (w32font_list, w32font_match): Use it.
16018 (w32font_open): Don't populate subranges.
16019 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
16020 (w32font_encode_char): Always return unicode code-point as-is.
16021 (w32font_text_extents): Supply a transformation matrix to
16022 GetGlyphOutline. Never look up by glyph index. Avoid looping
16023 twice. Use unicode version of GetTexExtentPoint32 instead of
16024 glyph index version.
16025 (set_fonts_frame): Remove.
16026 (w32_enumfont_pattern_entity): Add frame parameter, use it to
16027 set frame parameter. Use backward compatible fake foundries.
16028 Save generic family in extra slot under QCfamily. Make width slot
16029 constant. Save QCspacing value. Save list of scripts instead of
16030 binary subranges.
16031 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
16032 (add_font_entity_to_list): Use font_callback_data struct. Filter
16033 unwanted fonts.
16034 (add_one_font_entity_to_list): Use font_callback_data struct.
16035 (w32_registry): Default to iso10646_1.
16036 (fill_in_logfont): Use dpi from extra slot. Don't bother with
16037 string font registries. Don't fill in font name if it is a generic
16038 family name, fill family instead. Use spacing, family and script
16039 extra info to fill pitch, family and charset fields.
16040 (list_all_matching_fonts): Use font_callback_data struct.
16041 (unicode_range_for_char): Remove.
16042 (font_supported_scripts): New function.
16043 (w32font_initialize): Remove.
16044 (syms_of_w32font): Update which symbols are defined.
16045
160462008-02-01 Jason Rumney <jasonr@gnu.org>
16047
16048 * font.c (font_pixel_size): Reverse assq_no_quit args.
16049
16050 * w32term.h (FONT_WIDTH): Report max width, not average.
16051 (FONT_MAX_WIDTH): Remove.
16052 (FONT_AVG_WIDTH): New macro.
16053
16054 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
16055 redefinition of FONT_WIDTH.
16056
16057 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
16058 (w32_cache_char_metrics): Use FONT_WIDTH.
16059
16060 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
16061
160622008-02-01 Jason Rumney <jasonr@gnu.org>
16063
16064 * w32font.c (w32font_open): Make lfHeight negative.
16065
16066 * w32fns.c (x_default_font_parameter): Use new style font name.
16067 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
16068
160692008-02-01 Jason Rumney <jasonr@gnu.org>
16070
16071 * w32font.c (QCsubranges): New symbol.
16072 (w32font_open, w32font_has_char): Get subranges from subproperty
16073 of extra.
16074 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
16075 (syms_of_w32font): Define :subranges symbol.
16076
16077 * font.c (font_put_extra): Expose externally.
16078
16079 * font.h (font_put_extra): Move declaration from font.c.
16080
16081 * font.c (Ffont_get): Use font driver to determine otf capability.
16082 (adjust_anchor): Check if driver defines anchor_point before using.
16083
16084 * w32font.c (w32font_open): Handle size, height and pixel_size better.
16085 (w32font_draw): Use options.
16086 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
16087 Fix detection of truetype fonts.
16088 (registry_to_w32_charset): Handle charsets other than iso8859-1
16089 expressed as lisp symbols.
16090 (w32_registry): Express charset as lisp symbol.
16091 (fill_in_logfont): Reverse pixel and point height logic.
16092 Don't set width here. Set quality to default.
16093
16094 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
16095 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
16096
16097 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
16098 Remove redundant loop and allocation.
16099
16100 * makefile.w32-in (font.o, w32font.o): New objects.
16101 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
16102 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
16103
16104 * xdisp.c (fill_composite_glyph_string): Make the first arg to
16105 STORE_XCHARB a valid l-value.
16106
16107 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
16108 calculations for non-Truetype fonts.
16109 (x_draw_glyph_string): Sync with xterm.c.
16110 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
16111 Remove redundant code.
16112 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
16113
16114 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
16115 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
16116
16117 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
16118 (x_to_w32_charset, w32_to_x_charset): Expose externally.
16119
16120 * w32font.c: New file for w32 font backend.
16121
161222008-02-01 Kenichi Handa <handa@m17n.org>
16123
16124 * term.c: Don't include "buffer.h" twice.
16125
161262008-02-01 Kenichi Handa <handa@m17n.org>
16127
16128 * character.c (Funibyte_string): New function.
16129 (syms_of_character): Defsubr it.
16130
161312008-02-01 Jason Rumney <jasonr@gnu.org>
16132
16133 * w32term.c [USE_FONT_BACKEND]:
16134 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
16135 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
16136 (x_draw_glyph_string, x_draw_glyph_string_foreground)
16137 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
16138 (x_free_frame_resources): Sync with xterm.c.
16139
161402008-02-01 Andreas Schwab <schwab@suse.de>
16141
16142 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
16143 char-table size.
16144
161452008-02-01 Kenichi Handa <handa@m17n.org>
16146
16147 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
16148
161492008-02-01 Kenichi Handa <handa@m17n.org>
16150
16151 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
16152 font_otf_gpos, add font_drive_otf.
16153
16154 * fontset.c (fontset_find_font): Pay attention to font size
16155 specified for a font.
16156 (reorder_font_vector): Check contents of font_def.
16157
16158 * font.c (struct otf_list): Delete it.
16159 (otf_list): Make it a lisp variable.
16160 (otf_open): Use lispy otf_list.
16161 (generate_otf_features): Rename from parse_gsub_gpos_spec.
16162 (check_otf_features): New function.
16163 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
16164 New functions.
16165 (font_drive_otf): New function merging font_otf_gsub and
16166 font_otf_gpos.
16167 (font_open_for_lface): New arg spec. Change argument order.
16168 (font_load_for_face): Adjust for the change of font_open_for_lface.
16169 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
16170 Ffont_otf_gpos.
16171 (syms_of_font): Staticpro otf_list. Delete defsubr of
16172 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
16173
16174 * xfaces.c (set_font_frame_param): Adjust for the change of
16175 font_open_for_lface.
16176
16177 * font.h (font_open_for_lface): Adjust prototype.
16178 (struct font_driver): Delete members otf_gsub and otf_gpos, add
16179 member otf_drive.
16180 (font_otf_gsub, font_otf_gpos): Delete externs.
16181 (font_drive_otf): Extern it.
16182
161832008-02-01 Kenichi Handa <handa@m17n.org>
16184
16185 * font.c (font_at): If the window W is not on a window system,
16186 return Qnil.
16187
16188 * coding.c (produce_chars, encode_coding): Don't call
16189 insert_from_gap if no characters to produce.
16190
161912008-02-01 Kenichi Handa <handa@m17n.org>
16192
16193 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
16194 Fclear_face_cache.
16195
16196 * xfaces.c (face_for_font): Check also face->font==font->font.font.
16197
161982008-02-01 Miles Bader <miles@gnu.org>
16199
16200 * emacs.c (main): Change default value of `enable_font_backend' to 1.
16201 Parse "--disable-font-backend" option.
16202 (standard_args): Add "--disable-font-backend" option.
16203
162042008-02-01 Kenichi Handa <handa@m17n.org>
16205
16206 * fontset.c (fontset_find_font): New function.
16207 (fontset_font): Use fontset_find_font.
16208 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
16209 Register the specified font for all Latin characters.
16210 (new_fontset_from_font): Register the specified font for all Latin
16211 characters.
16212 (dump_fontset): For a realized fontset, include the base fontset
16213 name in the returned vector.
16214
162152008-02-01 Kenichi Handa <handa@m17n.org>
16216
16217 * character.h (CHAR_STRING): Cast C to unsigned on calling
16218 char_string.
16219
16220 * character.c (char_string): Type of arg C changed to unsigned.
16221 Signal an error if C is an invalid character code.
16222
16223 * editfns.c (general_insert_function, Fchar_to_string):
16224 Use CHARACTERP, not INTEGERP.
16225
162262008-02-01 Kenichi Handa <handa@m17n.org>
16227
16228 * character.h (MIN_MULTIBYTE_LEADING_CODE)
16229 (MAX_MULTIBYTE_LEADING_CODE): New macros.
16230
16231 * regex.c (analyse_first): Fix for multibyte characters in "case
16232 charset:" and "case categoryspec:".
16233
162342008-02-01 Andreas Schwab <schwab@suse.de>
16235
16236 * Makefile.in (LIBES): Move standard libraries to the end.
16237
162382008-02-01 Kenichi Handa <handa@m17n.org>
16239
16240 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
16241 nonzero, don't shrink the buffer nextb.
16242
16243 * buffer.h (struct buffer_text): New member inhibit_shrinking.
16244
16245 * coding.c (coding_alloc_by_making_gap): New arg offset.
16246 (alloc_destination): Call coding_alloc_by_making_gap with the arg
16247 offset.
16248 (decode_coding_iso_2022): Update coding->safe_charsets.
16249 (decode_coding_gap): Temporarily set
16250 current_buffer->text->inhibit_shrinking to 1.
16251
162522008-02-01 Kenichi Handa <handa@m17n.org>
16253
16254 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
16255 indexing into elements of s->cmp and s->char2b.
16256
162572008-02-01 Juanma Barranquero <lekktu@gmail.com>
16258
16259 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
16260
162612008-02-01 Kenichi Handa <handa@m17n.org>
16262
16263 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
16264 target_multibyte instead of multibyte.
16265 (re_match_2_internal): Call bcmp_translate with target_multibyte.
16266 (bcmp_translate): Change the argument name from multibyte to
16267 target_multibyte.
16268
162692008-02-01 Kenichi Handa <handa@m17n.org>
16270
16271 These changes are to compile a regexp into a pattern that can be
16272 used both for multibyte and unibyte targets.
16273
16274 * Makefile.in (search.o): Depend on charset.h.
16275
16276 * character.c (multibyte_char_to_unibyte_safe): New function.
16277
16278 * search.c: Include "charset.h".
16279 (compile_pattern_1): Delete argument multibyte. Don't set
16280 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
16281 (compile_pattern): Don't compare cp->buf.target_multibyte.
16282 Compare cp->buf.charset_unibyte.
16283 (compile_pattern): Set cp->buf.target_multibyte.
16284
16285 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
16286
16287 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
16288
16289 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
16290 multibyte. Change callers.
16291 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
16292 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
16293 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
16294 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
16295 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
16296 (regex_compile): Make the compiled pattern usable both for
16297 multibyte and unibyte targets.
16298 (analyse_first): Make the fastmap usable both for multibyte and
16299 unibyte targets.
16300 (TRANSLATE_VIA_MULTIBYTE): Delete.
16301 (re_match_2_internal): Pay attention to the case that the
16302 multibyteness of bufp and target may be different.
16303
163042008-02-01 Kenichi Handa <handa@m17n.org>
16305
16306 * xdisp.c (x_produce_glyphs): When a font is not found, make the
16307 empty box occupy at least one column width.
16308
163092008-02-01 Miles Bader <miles@gnu.org>
16310
16311 * Makefile.in: Remove redundant HAVE_XFT clause.
16312
163132008-02-01 Kenichi Handa <handa@m17n.org>
16314
16315 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
16316
163172008-02-01 Kenichi Handa <handa@m17n.org>
16318
16319 * fontset.c (Finternal_char_font): Fix for the case of POSITION
16320 being nil.
16321
163222008-02-01 Kenichi Handa <handa@m17n.org>
16323
16324 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
16325
163262008-02-01 Kenichi Handa <handa@m17n.org>
16327
16328 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
16329
163302008-02-01 Kenichi Handa <handa@m17n.org>
16331
16332 * search.c (simple_search): Fix previous change.
16333
163342008-02-01 Kenichi Handa <handa@m17n.org>
16335
16336 * xftfont.c (ftfont_font_format): Extern declaration.
16337
16338 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
16339
16340 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
16341 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
16342
16343 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
16344 (ftfont_font_format): Fix previous change.
16345
16346 * font.h (Ffont_xlfd_name): EXFUN it.
16347
16348 * font.c (font_parse_xlfd): Fix the array size of `f'.
16349 (register_font_driver): Use EQ to compare driver->type.
16350
16351 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
16352 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
16353 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
16354
163552008-02-01 Kenichi Handa <handa@m17n.org>
16356
16357 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
16358 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
16359
163602008-02-01 Kenichi Handa <handa@m17n.org>
16361
16362 * xfont.c (xfont_open): Set font->format.
16363
16364 * xftfont.c (xftfont_open): Set font->format.
16365
16366 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
16367 (ftfont_list): Include FC_FONTFORMAT in FcObject.
16368 (ftfont_open): Set font->format.
16369 (ftfont_font_format): New function.
16370
16371 * font.h (struct font): New member format.
16372
16373 * font.c (Qopentype): New variable.
16374 (syms_of_font): Defsym it.
16375 (Fquery_font): Change the format of the last element of the return
16376 value.
16377
163782008-02-01 Kenichi Handa <handa@m17n.org>
16379
16380 * xfns.c (xic_create_xfontset): Try the default fontset name as a
16381 last resort.
16382
163832008-02-01 Kenichi Handa <handa@m17n.org>
16384
16385 * coding.c (detect_coding_charset): Fix detection of multi-byte
16386 charset.
16387
163882008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
16389
16390 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
16391
163922008-02-01 Kenichi Handa <handa@m17n.org>
16393
16394 * xdisp.c (get_next_display_element): Set it->face_id for the
16395 first component of a composition.
16396 (x_produce_glyphs): Check if the font is changed or not for composition.
16397
163982008-02-01 Kenichi Handa <handa@m17n.org>
16399
16400 * fontset.c (Qlatin): New variable.
16401 (syms_of_fontset): Define it as a lisp symbol.
16402 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
16403
164042008-02-01 Kenichi Handa <handa@m17n.org>
16405
16406 * font.c (font_unparse_fcname): Pay attention to the case that
16407 some of font property is a null string.
16408
164092008-02-01 Kenichi Handa <handa@m17n.org>
16410
16411 * term.c: Include "composite.h".
16412 (encode_terminal_code): Output all components of composition.
16413 Check the size of encode_terminal_src.
16414 (produce_glyphs): For composition, call produce_composite_glyph.
16415 (append_composite_glyph, produce_composite_glyph): New functions.
16416
16417 * xdisp.c (x_produce_glyphs): In handling composition, if a font
16418 is not found, get font_info from the current ascii face.
16419
164202008-02-01 Kenichi Handa <handa@m17n.org>
16421
16422 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
16423 buffer-file-name to Qnil before calling insert_from_buffer.
16424
16425 * font.c (font_unparse_fcname): Pay attention to the case that
16426 foundry is a null string.
16427
164282008-02-01 Kenichi Handa <handa@m17n.org>
16429
16430 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
16431
16432 * font.c (Qunicode_sip): New variable.
16433 (syms_of_font): Declare it as a Lisp symbol.
16434
16435 * font.h (Qunicode_sip): Extern it.
16436
164372008-02-01 Kenichi Handa <handa@m17n.org>
16438
16439 * composite.c (get_composition_id): Pay attention to TAB component.
16440
16441 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
16442 TAB. Adjust for the change of s->char2b which always points to
16443 the first element of allocated memory.
16444
16445 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
16446
16447 * xdisp.c (handle_composition_prop): Set it->c to the first
16448 non-TAB component.
16449 (fill_composite_glyph_string): Change argument.
16450 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
16451 (x_produce_glyphs): Fix handling of left/right padding.
16452
164532008-02-01 Kenichi Handa <handa@m17n.org>
16454
16455 * coding.c (detect_coding_system): Fix for handling off
16456 inhibit_iso_escape_detection. Fix for the case that no coding
16457 system is defined for a specific coding category.
16458
164592008-02-01 Kenichi Handa <handa@m17n.org>
16460
16461 * font.c (font_matching_entity): Delete unused local var.
16462
16463 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
16464 opening a font.
16465
16466 * fileio.c (Finsert_file_contents): On recovering a file, assume
16467 Unix-like eol.
16468 (choose_write_coding_system): On auto-saving a file, force
16469 Unix-like eol.
16470
16471 * coding.c (setup_coding_system): Fix setting of
16472 coding->common_flags based on eol_type.
16473 (coding_inherit_eol_type): If PARENT is not nil, be sure to
16474 inherit from it.
16475
164762008-02-01 Kenichi Handa <handa@m17n.org>
16477
16478 * alloc.c (NSTATICS): Increas to 0x600.
16479
164802008-02-01 Kenichi Handa <handa@m17n.org>
16481
16482 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
16483 (ftfont_list): Don't check :name property.
16484 (ftfont_match): New function.
16485 (ftfont_pattern_entity): If the pattern doesn't contain
16486 FC_SPACING, don't assume FC_MONO.
16487
16488 * font.h (struct font_driver): New member `match'.
16489 (font_update_drivers): Adjust prototype.
16490
16491 * font.c (font_parse_fcname, font_parse_name): Don't change :name
16492 property of FONT.
16493 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
16494 them unconditionally.
16495 (font_matching_entity): New function.
16496 (font_open_by_name): Try font_matching_entity if exact match is
16497 not found.
16498 (font_update_drivers): Delete the arg FONT. Return a list of
16499 actually used backends. Don't free faces, font caches here.
16500 Don't store data in frame parameters. Don't call x_set_font.
16501 (Ffont_spec): Store :name property as is.
16502 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
16503 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
16504 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
16505 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
16506 Call font->driver->otf_gsub instead of font_otf_gsub.
16507
16508 * frame.c (x_set_font_backend): Do more works that were done in
16509 font_update_drivers before.
16510
16511 * xfont.c (xfont_match): New function.
16512 (xfont_driver): Set xfont_driver.match to xfont_match.
16513 (xfont_draw): Set font in GC if necessary.
16514
16515 * ftxfont.c (ftxfont_match): New function.
16516 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
16517
16518 * xftfont.c (xftfont_match): New function.
16519 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
16520
165212008-02-01 Kenichi Handa <handa@m17n.org>
16522
16523 * font.h (struct font): New member scalable.
16524 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
16525 (font_otf_gsub): Adjust prototype.
16526
16527 * font.c (font_otf_capability): Fix handling of the default langsys.
16528 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
16529 Check the contents of SPEC.
16530 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
16531 (check_gstring): New function.
16532 (REPLACEMENT_CHARACTER): New macro.
16533 (font_otf_gsub): New arg alternate_subst. Be sure to set all
16534 glyph codes of GSTRING.
16535 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
16536 (font_prepare_composition): Set cmp->glyph_len.
16537 (font_open_entity): Set font->scalable.
16538 (Ffont_get): Handle :otf property.
16539 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
16540 functions.
16541 (Fquery_font): Use font->font.full_name.
16542 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
16543 Sfont_otf_alternates.
16544
16545 * ftfont.c (ftfont_open): Set font->font.full_name and
16546 font->font.name properly. Fix calculation of font->font.height
16547 and font->min_width.
16548
16549 * ftxfont.c (ftxfont_create_gcs): New function.
16550 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
16551 (ftxfont_draw_backgrond): Fix filling region.
16552 (ftxfont_default_fid): New function.
16553 (ftxfont_open): Set xfont->fid to the return value of
16554 ftxfont_default_fid.
16555 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
16556 (ftxfont_done_face): Free only GCs that are created by
16557 ftxfont_create_gcs.
16558 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
16559
16560 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
16561 Clip to src->width, etc (not src->clip_XXX).
16562
16563 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
16564 FontBackend frame parameter.
16565
165662008-02-01 Kenichi Handa <handa@m17n.org>
16567
16568 * font.h (struct font_driver_list): New member `on'.
16569 (Fclear_font_cache): EXFUN it.
16570 (font_update_drivers): Extern it.
16571
16572 * font.c (font_unparse_fcname): Fix typo (swidth->width).
16573 (font_list_entities): Check driver_list->on.
16574 (register_font_driver): Initalize `on' member to 0.
16575 (font_update_drivers): New function.
16576 (Fclear_font_cache): Check driver_list->on.
16577
16578 * frame.h (Qfont_backend): Extern it.
16579 (x_set_font_backend): Extern it.
16580
16581 * frame.c (Qfont_backend): New variable.
16582 (frame_parms): New element for font-backend.
16583 (x_set_font_backend): New function.
16584
16585 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
16586 FontBackend frame parameter.
16587 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
16588 x_set_font_backend.
16589
16590 * xfont.c (xfont_list): Don't try listing by :name property if the
16591 name is not for XLFD.
16592
165932008-02-01 Kenichi Handa <handa@m17n.org>
16594
16595 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
16596 (LGLYPH_SET_TO): New macros.
16597 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
16598 element of G is vector or not.
16599 (font_at): Extern it.
16600
16601 * font.c: Include window.h.
16602 (font_lispy_object): New function.
16603 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
16604 end of valid glyph.
16605 (font_close_object): Fix getting (struct font *).
16606 (font_at): New function.
16607 (Ffont_get): If FONT is a font-object, get entity from it.
16608 (Ffont_make_gstring): Initialize elements of glyphs with nil.
16609 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
16610 range check.
16611 (Ffont_at): New function.
16612 (syms_of_font): Defsubr Sfont_at.
16613
16614 * xdisp.c (it_props): Move the entry for Qauto_composed to just
16615 before the entry for Qcomposition.
16616 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
16617 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
16618 the font in gstring.
16619 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
16620 LGLYPH_FORM (g) to detect the end of valid glyph.
16621 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
16622 we are composing with gstring.
16623
16624 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
16625 Check if adjustment is vector or not.
16626
16627 * Makefile.in (font.o): Make it depends on window.h.
16628
166292008-02-01 Kenichi Handa <handa@m17n.org>
16630
16631 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
16632 adjustment is vector or not.
16633
166342008-02-01 Miles Bader <miles@gnu.org>
16635
16636 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
16637
166382008-02-01 Kenichi Handa <handa@m17n.org>
16639
16640 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
16641 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
16642 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
16643
16644 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
16645 (DEVICE_DELTA): Fix typo.
16646 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
16647 LGLYPH format.
16648
16649 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
16650 the change of LGLYPH format.
16651
166522008-02-01 Kenichi Handa <handa@m17n.org>
16653
16654 * ftfont.c (ftfont_list): Fix typo.
16655 (ftfont_build_basic_charsets): Don't include letters with diacritics.
16656
166572008-02-01 Jan Djärv <jan.h.d@swipnet.se>
16658
16659 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
16660
16661 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
16662 xftface_info is non-NULL.
16663
166642008-02-01 Jan Djärv <jan.h.d@swipnet.se>
16665
16666 * ftfont.c (ftfont_list): Move misplaced #endif.
16667
166682008-02-01 Kenichi Handa <handa@m17n.org>
16669
16670 * ftfont.c (ftfont_list): Pay attention to the case that
16671 FC_CAPABILITY is not defined.
16672
166732008-02-01 Kenichi Handa <handa@m17n.org>
16674
16675 * xftfont.c (xftfont_open): Set charset related members to -1.
16676
16677 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
16678 QCname.
16679 (ftfont_open): Set charset related members to -1.
16680
16681 * fontset.c (Votf_script_alist): New variable.
16682 (syms_of_fontset): Initialize it.
16683 (fontset_font): Delete unused variable.
16684
16685 * fontset.h (Votf_script_alist): Extern it.
16686
16687 * font.c (font_find_for_lface): Optimize code.
16688
16689 * font.h (font_close_object, font_merge_old_spec): Extern them.
16690
166912008-02-01 Kenichi Handa <handa@m17n.org>
16692
16693 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
16694 (syms_of_font): Initialize them.
16695 (font_pixel_size): Allow float value in dpi.
16696 (font_prop_validate_type): Delete.
16697 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
16698 Change caller.
16699 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
16700 (font_prop_validate_extra): Delete.
16701 (font_prop_validate_spacing): New function.
16702 (font_property_table): Add elements for all known properties.
16703 (get_font_prop_index): Rename from check_font_prop_name. New
16704 argument FROM. Change caller.
16705 (font_prop_validate): Validate all known properties.
16706 (font_put_extra): Delete argument force. Change caller.
16707 (font_expand_wildcards): Make it static. Fix the way of shrinking
16708 the possible range.
16709 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
16710 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
16711 Change caller.
16712 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
16713 (font_parse_fcname): Delete argument merge. Fix parsing of point
16714 size. Don't validate properties values here. Change caller.
16715 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
16716 (font_open_by_name): Delete unused variable.
16717 (Ffont_spec): Likewise. Validate property values.
16718 (Ffont_match_p): New function.
16719
16720 * font.h (QCscalable): Extern it.
16721 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
16722
16723 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
16724
16725 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
16726 (xfont_list_pattern): New function.
16727 (xfont_list): Use xfont_list_pattern.
16728
167292008-02-01 Kenichi Handa <handa@m17n.org>
16730
16731 * font.h (Flist_fonts): EXFUN it.
16732
167332008-02-01 Jason Rumney <jasonr@gnu.org>
16734
16735 * w32term.c (w32_initialize): Add back smoothing_type and
16736 smoothing_enabled definitions.
16737
167382008-02-01 Kenichi Handa <handa@m17n.org>
16739
16740 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
16741 s->face->font on determining underline position.
16742
167432008-02-01 Kenichi Handa <handa@m17n.org>
16744
16745 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
16746 (font_has_char): Accept font-object too.
16747 (font_find_for_lface): Try at first with a size specified in face.
16748
167492008-02-01 Kenichi Handa <handa@m17n.org>
16750
16751 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
16752 font_open_by_name.
16753
167542008-02-01 Kenichi Handa <handa@m17n.org>
16755
16756 * font.h (QCspacing, QCdpi): Extern them.
16757 (enum font_spacing): New enum.
16758 (FONT_PIXEL_SIZE_QUANTUM): New macro.
16759
16760 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
16761 (QCspacing, QCdpi): New variables.
16762 (syms_of_font): Initialize them.
16763 (font_pixel_size): New function.
16764 (font_put_extra): New function.
16765 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
16766 in FONT_EXTRA.
16767 (font_parse_fcname): Handle enumerated values (e.g. bold).
16768 Fix handling font size. Add QCname property that contains only
16769 unknown properties.
16770 (font_score): Change argument. Change caller. Pay attention to
16771 FONT_PIXEL_SIZE_QUANTUM.
16772 (font_sort_entites, font_list_entities, font_find_for_lface)
16773 (font_open_for_lface, font_open_by_name): Fix handling of font size.
16774 (Ffont_spec): Add QCname property that contains only unknown properties.
16775
16776 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
16777 include weight in listing pattern, instead check weight of each
16778 listed font. Don't include scalable in pattern. Pay attention to
16779 FONT_PIXEL_SIZE_QUANTUM.
16780
167812008-02-01 Kenichi Handa <handa@m17n.org>
16782
16783 * font.c (font_parse_fcname): Fix parsing of point-size.
16784 (font_unparse_fcname): Produce symbolic names for style properties.
16785 (font_list_entities): Handle float size correctly.
16786 (font_open_by_name): Prefer `normal' property values if the name
16787 doesn't specify them.
16788
16789 * fontset.c (Finternal_char_font): Use font_get_name, not
16790 Ffont_xlfd_name.
16791
16792 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
16793 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
16794 pattern. Don't force scalable.
16795
16796 * xftfont.c (xftfont_open): For generating a name, start from
16797 96-byte buffer.
16798
167992008-02-01 Jan Djärv <jan.h.d@swipnet.se>
16800
16801 * frame.h (x_new_fontset2): Fix prototype.
16802
168032008-02-01 Kenichi Handa <handa@m17n.org>
16804
16805 * font.h (struct font_driver): Delete member parse_name.
16806 (font_match_p, font_get_spec, font_parse_fcname)
16807 (font_unparse_fcname): Extern them.
16808 (font_get_name): Adjust prototype.
16809
16810 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
16811 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
16812 (font_expand_wildcards): Fix handling ENCODING field. Avoid
16813 unnecessary checks for weight, slant, and swidth.
16814 (font_parse_fcname): New function.
16815 (font_unparse_fcname): New function.
16816 (font_parse_name): New function.
16817 (font_match_p): New function.
16818 (font_get_name): Change return value to Lisp string.
16819 (font_get_spec): New function.
16820 (Qunspecified, Qignore_defface): Don't extern them.
16821 (font_find_for_lface): Assume that LFACE is fully specified.
16822 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
16823 object, use it for FACE.
16824 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
16825 driver->parse_name.
16826 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
16827
16828 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
16829 prototype.
16830
16831 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
16832 argument F. Don't call Fnew_fontset. Instead, directly call
16833 make_fontset.
16834
16835 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
16836
16837 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
16838 of x_new_fontset2.
16839
16840 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
16841 (Qsans__serif): New variables.
16842 (ftfont_generic_family_list): New variable.
16843 (syms_of_ftfont): Initialize the above variables.
16844 (ftfont_pattern_entity): Delete argument NAME.
16845 (ftfont_list_generic_family): New function.
16846 (ftfont_parse_name): Delete this function.
16847 (ftfont_list): Try generic family only when FcFontList found no font.
16848 (ftfont_list_family): Fix args to FcObjectSetBuild.
16849
16850 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
16851 object in attrs[LFACE_FONT_INDEX].
16852 (set_lface_from_font_name): Cancel all changes for font-backend.
16853 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
16854 function.
16855 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
16856 font object in QCfont attribute.
16857 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
16858 (realize_default_face) [USE_FONT_BACKEND]: Call
16859 set_lface_from_font_and_fontset.
16860
16861 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
16862 "fixed", and signal error here if no suitable font was found.
16863
16864 * xfont.c (xfont_parse_name): Delete this function.
16865
16866 * xftfont.c (xftfont_open): Change coding style of error
16867 handling. Generate fontconfig's fontname pattern.
16868
16869 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
16870 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
16871
16872 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
16873 Both args FONTSET and FONT_OBJECT must be existing ones.
16874
168752008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16876
16877 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
16878
168792008-02-01 Kenichi Handa <handa@m17n.org>
16880
16881 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
16882
16883 * font.h (struct font): Fix typo.
16884
16885 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
16886 XLFD_XXX_INDEX.
16887 (enum xlfd_field_mask): New enum.
16888 (intern_font_field): Changed argument. Change caller. If digits
16889 are followed by non-digits, return a symbol.
16890 (font_expand_wildcards): New function.
16891 (font_parse_xlfd): Fix wildcard handling.
16892 (Ffont_spec): If :name is specified, reflect the info in the other
16893 properties.
16894
16895 * ftfont.c (ftfont_pattern_entity): Fix typo.
16896 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
16897 locale.
16898
168992008-02-01 Kenichi Handa <handa@m17n.org>
16900
16901 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
16902
16903 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
16904 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
16905 registry doesn't specify encoding part.
16906 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
16907 (font_open_by_name): At first try parsing the name.
16908 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
16909 as Lisp symbols.
16910
16911 * fontset.c (reorder_font_vector): Pay attention to the case that
16912 the 3rd element of font_def is nil.
16913 (fontset_font): For the default fontset, append one more fontset
16914 elements for a script-based font specification. Don't add script
16915 attribute on finding a font.
16916 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
16917 font name.
16918 (fontset_ascii_font): If a font can't be opened, return nil.
16919
16920 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
16921 (ftfont_pattern_entity): New function.
16922 (ftfont_get_cache): Assume that freetype_font_cache is already
16923 initialized.
16924 (ftfont_list): Handle the case that a file is specified in font
16925 name. Use ftfont_pattern_entity to generate entities.
16926 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
16927 (syms_of_ftfont): Initialize freetype_font_cache.
16928
16929 * xftfont.c (xftfont_open): Make the font name fontconfig's
16930 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
16931 (xftfont_close): Free font->font.name if not NULL.
16932
16933 * xfont.c (xfont_list): If script is specified for a font, return
16934 null_vector.
16935 (xfont_list_family): Declare argument type.
16936
16937 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
16938 name, set LFACE_FONT (lface) to nil.
16939
16940 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
16941 return Qnil.
16942
169432008-02-01 Kenichi Handa <handa@m17n.org>
16944
16945 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
16946 (standard_args): Add "-enable-font-backend".
16947
169482008-02-01 Kenichi Handa <handa@m17n.org>
16949
16950 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
16951 (struct xftdraw_list, xftdraw_list): Delete them.
16952 (register_xftdraw, check_xftdraw): Delete them.
16953 (xftfont_prepare_face): Don't call register_xftdraw.
16954 (xftfont_done_face): Don't call check_xftdraw.
16955 (xftfont_draw): Get background color only when with_background is
16956 nonzero.
16957
16958 * xfont.c (xfont_encode_char): Fix calculation of char2b.
16959
169602008-02-01 Kenichi Handa <handa@m17n.org>
16961
16962 These changes are for the new font handling codes.
16963
16964 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
16965 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
16966 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
16967 (FONTSRC, FONTOBJ): New variables.
16968 (obj): Add $(FONTOBJ).
16969 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
16970 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
16971 @LIBOTF_LIBS@.
16972 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
16973 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
16974
16975 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
16976
16977 * character.h (Vscript_representative_chars): Extern it.
16978
16979 * character.c (Vscript_representative_chars): New variable.
16980 (syms_of_character): Declare it as a Lisp variable.
16981
16982 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
16983 enable_font_backend is nonzero, accept the composition method
16984 COMPOSITION_WITH_GLYPH_STRING.
16985
16986 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
16987 enumeration COMPOSITION_WITH_GLYPH_STRING.
16988
16989 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
16990 members clip_x, clip_y, clip_width, and clip_height.
16991 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
16992
16993 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
16994 --enable-font-backend. Call syms_of_font.
16995
16996 * fns.c (assoc_no_quit): New function.
16997
16998 * fontset.h (FONT_INFO_FROM_FACE): New macro.
16999 (face_for_font, new_fontset_from_font)
17000 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
17001
17002 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
17003 (fontset_font, fontset_ascii, face_for_char)
17004 (make_fontset_for_ascii_face, Ffont_info)
17005 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
17006 is nonzero, use font-backend mechanism.
17007 (find_font_encoding): Make it non-static.
17008 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
17009 New functions.
17010
17011 * frame.h (struct frame): New members resx and resy.
17012 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
17013 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
17014
17015 * frame.c [USE_FONT_BACKEND]: Include "font.h".
17016 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
17017
17018 * lisp.h (assoc_no_quit): Extern it.
17019
17020 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
17021 Through out the file, use FONT_INFO_FROM_FACE instead of
17022 FONT_INFO_FROM_ID, use get_per_char_metric instead of
17023 rif->per_char_metric.
17024 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
17025 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
17026 (get_glyph_face_and_encoding, fill_composite_glyph_string)
17027 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
17028 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
17029 nonzero, use font-backend mechanism.
17030 (get_per_char_metric): New function.
17031
17032 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
17033 (set_lface_from_font_name)
17034 (set_font_frame_param, free_realized_face)
17035 (prepare_face_for_display, clear_face_gcs)
17036 (Finternal_set_font_selection_order, realize_x_face)
17037 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
17038 font-backend mechanism.
17039 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
17040 (load_face_font) [USE_FONT_BACKEND]: Abort.
17041 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
17042 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
17043
17044 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
17045 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
17046 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
17047 nonzero, register all available font drivers. Call
17048 x_default_font_parameter for deciding a font.
17049 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
17050
17051 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
17052 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
17053 (x_set_glyph_string_clipping_exactly)
17054 (x_compute_glyph_string_overhangs)
17055 (x_draw_glyph_string_foreground)
17056 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
17057 (x_free_frame_resources) [USE_FONT_BACKEND]: If
17058 enable_font_backend is nonzero, use font-backend mechanism.
17059 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
17060
170612008-02-01 Kenichi Handa <handa@m17n.org>
17062
17063 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
17064 system_eol_type.
17065 (syms_of_coding): Initialize system_eol_type.
17066
17067 * process.c (Fset_process_coding_system): Inherit system's eol
17068 format if necessary.
17069
170702008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17071
17072 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
17073
170742008-02-01 Kenichi Handa <handa@m17n.org>
17075
17076 * coding.c (decode_eol): Pay attention to buffer relocation in
17077 del_range_2.
17078 (decode_coding): Call decode_eol before restoring undo_list.
17079
170802008-02-01 Kenichi Handa <handa@m17n.org>
17081
17082 * charset.c (Fdefine_charset_internal): Fix setting of
17083 emacs_mule_bytes.
17084
170852008-02-01 Kenichi Handa <handa@m17n.org>
17086
17087 * keyboard.c (read_char): Check if C is a character or not before
17088 looking up Vkeyboard_translate_table.
17089
170902008-02-01 Kenichi Handa <handa@m17n.org>
17091
17092 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
17093 condition to terminate the loop.
17094
170952008-02-01 Kenichi Handa <handa@m17n.org>
17096
17097 * coding.c (produce_composition): Compare charbuf[i] instead of
17098 args[i] against 0.
17099 (Fterminal_coding_system): Use EQ to compare Lisp objects.
17100
171012008-02-01 Kenichi Handa <handa@m17n.org>
17102
17103 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
17104 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
17105 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
17106 detect_coding.
17107 (emacs_mule_char): Handle old style (Emacs 20) component character
17108 of a composition.
17109 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
17110 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
17111 composition rule.
17112 (decode_coding_emacs_mule): Handle invalid bytes correctly.
17113
171142008-02-01 Kenichi Handa <handa@m17n.org>
17115
17116 * coding.c (encode_coding_ccl): Allocate destination dynamically
17117 when necessary.
17118
171192008-02-01 Kenichi Handa <handa@m17n.org>
17120
17121 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
17122 the loop. When quitted, show a proper error message.
17123
171242008-02-01 Kenichi Handa <handa@m17n.org>
17125
17126 * xterm.c (x_set_glyph_string_clipping_exactly): Set
17127 src->clip_head and src->clip_tail temporarily instead of src->hl.
17128
17129 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
17130 character sequence.
17131 (Fccl_execute_on_string): Use ASET, not XSET.
17132
171332008-02-01 Kenichi Handa <handa@m17n.org>
17134
17135 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
17136
171372008-02-01 Kenichi Handa <handa@m17n.org>
17138
17139 * coding.c (decode_coding): Fix the condition of terminating the
17140 decoding loop.
17141
171422008-02-01 Kenichi Handa <handa@m17n.org>
17143
17144 * data.c (Faset): On setting a character bigger than 255 in a
17145 unibyte string, signal an error instead of make the string multibyte.
17146
171472008-02-01 Kenichi Handa <handa@m17n.org>
17148
17149 * charset.c (map_charset_chars): Fix for ascii-compatible charset
17150 made by a mapping table.
17151
171522008-02-01 Kenichi Handa <handa@m17n.org>
17153
17154 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
17155 not.
17156 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
17157 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
17158
17159 * xterm.c (x_draw_composite_glyph_string_foreground): Check
17160 s->face is NULL or not.
17161
171622008-02-01 Kenichi Handa <handa@m17n.org>
17163
17164 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
17165 (x_draw_glyph_string): Fix drawing of right_overhang and
17166 left_overhang around/on cursor.
17167
17168 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
17169
171702008-02-01 Kenichi Handa <handa@m17n.org>
17171
17172 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
17173
171742008-02-01 Kenichi Handa <handa@m17n.org>
17175
17176 * coding.c (Fdefine_coding_system_internal)
17177 (Fdefine_coding_system_alias): Avoid a duplicated element in
17178 Vcoding_system_alist.
17179
171802008-02-01 Kenichi Handa <handa@m17n.org>
17181
17182 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
17183
17184 * coding.c (Qcoding_system_define_form): New variable.
17185 (syms_of_coding): Intern and staticpro it.
17186 (Fcoding_system_p): Check Qcoding_system_define_form.
17187 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
17188
17189 * coding.h (CODING_SYSTEM_P): If ID is not available, call
17190 Fcoding_system_p.
17191 (CHECK_CODING_SYSTEM): If ID is not available, call
17192 Fcheck_coding_system.
17193 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
17194 Try also Fcheck_coding_system.
17195
171962008-02-01 Kenichi Handa <handa@m17n.org>
17197
17198 * coding.c (code_conversion_restore): GCPRO arg.
17199
172002008-02-01 Kenichi Handa <handa@m17n.org>
17201
17202 * character.c (lisp_string_width): Check multibyteness of STRING.
17203
172042008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17205
17206 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
17207 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
17208 (decode_mac_font_name): Use decode_coding_c_string instead of
17209 decode_coding.
17210 (x_load_font): Initialize fontp->fontset to -1. Set
17211 fontp->encoding_type.
17212
172132008-02-01 Kenichi Handa <handa@m17n.org>
17214
17215 * search.c (search_buffer): Give up BM search on case-fold-search
17216 if one of a target character has a case-equivalence of different
17217 byte length even if that target charcter is an ASCII.
17218 (simple_search): Fix calculation of byte length of matched text.
17219 (boyer_moore): Fix handling of case-equivalent multibyte characters.
17220
172212008-02-01 Kenichi Handa <handa@m17n.org>
17222
17223 * coding.c (decode_coding): Fix handling of invalid bytes.
17224
172252008-02-01 Kenichi Handa <handa@m17n.org>
17226
17227 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
17228 Unicode characters.
17229
172302008-02-01 Kenichi Handa <handa@m17n.org>
17231
17232 * coding.c (encode_coding_object): If a pre-write-conversion
17233 function makes a new buffer, kill it.
17234
172352008-02-01 Kenichi Handa <handa@m17n.org>
17236
17237 * coding.c (QCascii_compatible_p): New variable.
17238 (syms_of_coding): Initialize it.
17239 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
17240 calling string_char.
17241 (record_conversion_result): Add `default:' case.
17242 (coding_charset_list): Delete unused variable `coding_type'.
17243 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
17244 property in the plist of the coding system.
17245 (Fcoding_system_put): Check QCascii_compatible_p.
17246
172472008-02-01 Miles Bader <miles@gnu.org>
17248
17249 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
17250 removed calculation of frame `f', as it's now used.
17251
172522008-02-01 Kenichi Handa <handa@m17n.org>
17253
17254 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
17255 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
17256 (UNIDATA): New variable.
17257 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
17258 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
17259 $(RUN_TEMACS) unconditionally.
17260
172612008-02-01 Kenichi Handa <handa@m17n.org>
17262
17263 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
17264 (admindir): New variable.
17265 ($(lispsource)international/charprop.el): New target.
17266
172672008-02-01 Miles Bader <miles@gnu.org>
17268
17269 * character.c (chars-in-region): Remove obsolete function.
17270 (syms_of_character): Remove its initialization.
17271
172722008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
17273
17274 * w32select.c (validate_coding_system)
17275 (setup_windows_coding_system): New functions.
17276 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
17277 setup_windows_coding_system.
17278 (setup_config, Fw32_get_clipboard_data): Use
17279 validate_coding_system.
17280 (Fx_selection_exists): Move call to setup_config to a place
17281 where signals are allowed.
17282
17283 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
17284 (Fcheck_coding_system): Add declarations.
17285
172862008-02-01 Kenichi Handa <handa@m17n.org>
17287
17288 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
17289
172902008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17291
17292 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
17293 string as the second argument for x_new_fontset.
17294
172952008-02-01 Kenichi Handa <handa@m17n.org>
17296
17297 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
17298 (encode_coding_object): Use safe_call instead of call2.
17299
173002008-02-01 Kenichi Handa <handa@m17n.org>
17301
17302 * fontset.c (Fset_fontset_font): Check family element of a given vector.
17303
17304 * Makefile.in (lisp): Include charprop.el.
17305
173062008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17307
17308 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
17309 Not sure if it's unnecessary.
17310
173112008-02-01 Steven Tamm <steventamm@mac.com>
17312
17313 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
17314 some possibly unnecessary fontset checking code that crashed
17315 when creating a new frame.
17316
173172008-02-01 Kenichi Handa <handa@m17n.org>
17318
17319 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
17320 lookup_face.
17321
17322 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
17323
17324 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
17325
173262008-02-01 Kenichi Handa <handa@m17n.org>
17327
17328 * coding.c: Cancel the change done in HEAD on 2008-02-01.
17329 (coding_charset_list): New function.
17330
17331 * coding.h (coding_charset_list): Extern it.
17332
173332008-02-01 Kenichi Handa <handa@m17n.org>
17334
17335 * fontset.c (Fset_fontset_font): Call find_font_encoding with
17336 concatenation of family and registry.
17337
173382008-02-01 Kenichi Handa <handa@m17n.org>
17339
17340 * character.h (BYTE8_STRING): Fix typo.
17341
17342 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
17343 string to multibyte (sync to HEAD).
17344
17345 * casefiddle.c (casify_region): Handle changes in byte-length
17346 using replace_range_2 (sync to HEAD).
17347
173482008-02-01 Andreas Schwab <schwab@suse.de>
17349
17350 * chartab.c (map_char_table): GCPRO table and arg.
17351
173522008-02-01 Kenichi Handa <handa@m17n.org>
17353
17354 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
17355 already at limit.
17356
173572008-02-01 Kenichi Handa <handa@m17n.org>
17358
17359 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
17360 instead of fast_c_string_match_ignore_case.
17361 (find_font_encoding): Change argument to Lisp_Object. Use
17362 fast_string_match_ignore_case instead of
17363 fast_c_string_match_ignore_case. Change caller.
17364
173652008-02-01 Kenichi Handa <handa@m17n.org>
17366
17367 * xdisp.c (get_next_display_element): In unibyte case, decide to
17368 display in octal form by checking a character by
17369 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
17370
17371 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
17372
17373 * character.c (unibyte_has_multibyte_table): New variable.
17374
17375 * character.h (unibyte_has_multibyte_table): Extern it.
17376 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
17377
173782008-02-01 Kenichi Handa <handa@m17n.org>
17379
17380 * coding.c (encode_coding_iso_2022): Fix handling of charset
17381 annotation.
17382
173832008-02-01 Kenichi Handa <handa@m17n.org>
17384
17385 * coding.c (setup_coding_system): If coding_system is nil, use
17386 Qundecided.
17387 (Fterminal_coding_system): Return nil if terminal coding system is
17388 `undecided'.
17389 (syms_of_coding): Define coding-system `undecided' here. Setup
17390 terminal_coding as `undecided'.
17391
173922008-02-01 Kenichi Handa <handa@m17n.org>
17393
17394 * xdisp.c (message_dolog, set_message_1): Call
17395 unibyte_char_to_multibyte with arg type int.
17396
17397 * lread.c (read1): Fix reading of a char-table.
17398
17399 * print.c (print_object): Include sub char-table in circularities
17400 detection.
17401
174022008-02-01 Kenichi Handa <handa@m17n.org>
17403
17404 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
17405 Append the found sequences in car of ARGS instead of prepending.
17406
174072008-02-01 Kenichi Handa <handa@m17n.org>
17408
17409 * fileio.c (report_file_error): Make a unibyte string from
17410 strerror (errorno).
17411 (Fsubstitute_in_file_name): Fix the arg to
17412 unibyte_char_to_multibyte. It is evaluated twice.
17413
174142008-02-01 Kenichi Handa <handa@m17n.org>
17415
17416 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
17417
174182008-02-01 Kenichi Handa <handa@m17n.org>
17419
17420 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
17421 BOM is not found.
17422 (detect_coding, detect_coding_system): Optimization for ISO-2022
17423 when no 8-bit data is found.
17424
174252008-02-01 Jason Rumney <jasonr@gnu.org>
17426
17427 * w32fns.c (x_to_w32_font): Update to use new coding struct.
17428
174292008-02-01 Kenichi Handa <handa@m17n.org>
17430
17431 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
17432 CHARS.
17433
174342008-02-01 Steven Tamm <steventamm@mac.com>
17435
17436 * macterm.c (mac_encode_char): Add charset argument and update
17437 to use encoding_type.
17438 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
17439 switch to pure fontset.
17440 (decode_mac_font_name): Temporarily remove decoding.
17441 (x_font_name_to_mac_font_name): Temporarily remove encoding.
17442 (x_load_font): Temporarily remove encoding.
17443
174442008-02-01 Kenichi Handa <handa@m17n.org>
17445
17446 * xfaces.c (Fface_font): If frame is not on a window system,
17447 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
17448 refer to face->font.
17449 (split_font_name_into_vector, build_font_name_from_vector)
17450 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
17451 when HAVE_WINDOW_SYSTEM is defined.
17452
174532008-02-01 Kenichi Handa <handa@m17n.org>
17454
17455 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
17456 (x_produce_glyphs): Fix setting of members of cmp in case
17457 cmp->glyph_len is zero.
17458
17459 * fontset.c (Fset_fontset_font): Fix docstring.
17460 (Ffontset_info): Make it backward compatible. New arg ALL.
17461
174622008-02-01 Kim F. Storm <storm@cua.dk>
17463
17464 * process.c (read_process_output): Grow decoding_buf when needed;
17465 this could cause a crash in allocate_string and compact_small_strings.
17466
174672008-02-01 Kenichi Handa <handa@m17n.org>
17468
17469 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
17470
174712008-02-01 Kenichi Handa <handa@m17n.org>
17472
17473 * coding.c (setup_coding_system): Set coding->common_flags
17474 correctly for raw-text.
17475 (consume_chars): On encoding unibyte text by raw-text, don't check
17476 multibyte form.
17477 (encode_coding): On encoding by raw-text, never use translation tables.
17478
17479 * fileio.c (e_write): Short cut for the case of no encoding.
17480
174812008-02-01 Kenichi Handa <handa@m17n.org>
17482
17483 * coding.c (detect_coding, detect_coding_system): Delete unused
17484 variables.
17485
174862008-02-01 Kenichi Handa <handa@m17n.org>
17487
17488 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
17489 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
17490
174912008-02-01 Kenichi Handa <handa@m17n.org>
17492
17493 * coding.c (Ffind_coding_systems_region_internal): Include
17494 raw-text and no-conversion in the result.
17495
174962008-02-01 Kenichi Handa <handa@m17n.org>
17497
17498 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
17499 (load_font_get_repertory): Delete unnecessary check of ENCODING of
17500 FONT_DEF.
17501 (font_def_arg, add_arg, from_arg, to_arg): New args.
17502 (set_fontset_font): Change argument.
17503 (Fset_fontset_font): Fix for the case that TARGET is a script
17504 name and charset name.
17505 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
17506
175072008-02-01 Kenichi Handa <handa@m17n.org>
17508
17509 * fontset.c (fontset_font): Rename from fontset_face. Change return
17510 value.
17511 (face_suitable_for_char_p, face_for_char): Adjust for the change
17512 of fontset_font.
17513 (make_fontset_for_ascii_face): Fix setting of the fontset element
17514 for ASCII.
17515 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
17516 to get a font name.
17517 (Ffontset_info): Adjust for the change of fontset_font.
17518
17519 * coding.c (emacs_mule_char): Check invalid code more rigidly.
17520
17521 * character.h (LEADING_CODE_LATIN_1_MIN)
17522 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
17523
175242008-02-01 Kenichi Handa <handa@m17n.org>
17525
17526 * editfns.c (check_translation): New function.
17527 (Ftranslate_region_internal): Handle M:N mapping.
17528
175292008-02-01 Kenichi Handa <handa@m17n.org>
17530
17531 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
17532
175332008-02-01 Kenichi Handa <handa@m17n.org>
17534
17535 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
17536 goto invalid_code.
17537 (decode_coding_iso_2022): Fix handling of invalid designation.
17538
17539 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
17540 after calling code_conversion_save.
17541
175422008-02-01 Kenichi Handa <handa@m17n.org>
17543
17544 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
17545
17546 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
17547
17548 * fontset.c: Include "intervals.h".
17549 (fontset_face): Fix comparing of Lisp_Objects.
17550 (free_face_fontset, new_fontset_from_font_name): Fix
17551 Lisp_Object/int mixup.
17552
17553 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
17554
17555 * coding.c: Add many prototypes for static functions.
17556 (get_translation_table): Allow max_lookup to be NULL.
17557 (decode_coding, Ffind_coding_systems_region_internal)
17558 (Funencodable_char_position, Fcheck_coding_systems_region): Call
17559 get_translation_table with max_lookup NULL.
17560
175612008-02-01 Kenichi Handa <handa@m17n.org>
17562
17563 * coding.c (get_translation_table): Declare it as Lisp_Object.
17564 (LOOKUP_TRANSLATION_TABLE): New macro.
17565 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
17566 instead of CHAR_TABLE_REF.
17567
175682008-02-01 Kenichi Handa <handa@m17n.org>
17569
17570 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
17571 annotation data format.
17572 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
17573 Change arguments FROM and TO to single argument NCHARS. Change caller.
17574 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
17575 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
17576 (decode_coding_ccl, decode_coding_charset): Pay attention to
17577 coding->charbuf_used.
17578 (get_translation): New function.
17579 (produce_chars): New arguments translation_table and last_block.
17580 Translate characters here. Return number of carryover chars.
17581 Change caller.
17582 (produce_composition): New argument pos. Change caller.
17583 Adjust for the change of annotation data format.
17584 (produce_charset, produce_annotation): Likewise.
17585 (decode_coding, encode_coding): Don't call translate_chars.
17586 (consume_chars): New arg translation_table. Change caller.
17587 (translate_chars): Delete.
17588 (syms_of_coding): Make translation-table's number of extra slots 2.
17589
175902008-02-01 Kenichi Handa <handa@m17n.org>
17591
17592 * search.c (simple_search): Fix setting this_pos_byte in backward
17593 search.
17594
17595 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
17596 byte sequence.
17597 (detect_coding_ccl): Fix setting of the variable valids.
17598
175992008-02-01 Kenichi Handa <handa@m17n.org>
17600
17601 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
17602
17603 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
17604
17605 * editfns.c (Ftranslate_region_internal): Rename from
17606 Ftranslate_region. Accept a char-table in TABLE.
17607 (syms_of_editfns): Defsubr Stranslate_region_internal.
17608
17609 * xfaces.c (set_lface_from_font_name): If a font is specified for
17610 a frame, generate a fontset from the font.
17611 (build_scalable_font_name): If the scalable font is requested for
17612 a specific size, don't change that size.
17613 (try_font_list): Try a scalable font also in the case that a
17614 pattern string is specified.
17615
176162008-02-01 Kenichi Handa <handa@m17n.org>
17617
17618 * xfaces.c (Fface_font): New optional arg CHARACTER.
17619
176202008-02-01 Kenichi Handa <handa@m17n.org>
17621
17622 * charset.h (CHARSET_OFFSET): New macro.
17623
176242008-02-01 Kenichi Handa <handa@m17n.org>
17625
17626 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
17627
17628 * fontset.c (fontset_face): Handle the case that repertory is a
17629 char-table.
17630 (find_font_encoding): Return nil for unknown encoding.
17631 (Fset_fontset_font): Ignore a font of unknown encoding.
17632
176332008-02-01 Kenichi Handa <handa@m17n.org>
17634
17635 * keymap.c (describe_vector): Handle default value of a char table.
17636
17637 * fontset.c (fontset_face): Handle fallback fonts correctly.
17638 (Ffontset_info): Return infomation about fallback fonts.
17639
176402008-02-01 Kenichi Handa <handa@m17n.org>
17641
17642 * fontset.c (FONTSET_DEFAULT): New macro.
17643 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
17644 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
17645 the case that it is nil.
17646 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
17647 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
17648
17649 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
17650 subset or superset.
17651
176522008-02-01 Kenichi Handa <handa@m17n.org>
17653
17654 * emacs.c (main): Call init_charset after syms_of_XXX.
17655
17656 * charset.c (Vcharset_map_directory): Delete.
17657 (Vcharset_map_path): New variable.
17658 (load_charset_map_from_file): Use Vcharset_map_path instead.
17659 (init_charset): Initialize Vcharset_map_path.
17660 (syms_of_charset): Delete declaration of "charset-map-directory",
17661 add declaration of "charset-map-path".
17662
176632008-02-01 Kenichi Handa <handa@m17n.org>
17664
17665 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
17666 ASCII only string.
17667
17668 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
17669
17670 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
17671 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
17672
176732008-02-01 Kenichi Handa <handa@m17n.org>
17674
17675 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
17676
17677 * coding.c (QCmnemonic, QCdefalut_char)
17678 (QCdecode_translation_table, QCencode_translation_table)
17679 (QCpost_read_conversion, QCpre_write_conversion): New variables.
17680 (get_translation_table): Return a list of translation tables if
17681 necessary.
17682 (decode_coding): Call get_translation_table with ENCODEP 0.
17683 (char_encodable_p): If translation_table is non-nil, always call
17684 translate_char.
17685 (Fdefine_coding_system_internal): Accept list of translation
17686 tables as :encode-translation-table and :decode-translation-table.
17687 (Fcoding_system_put): New function.
17688 (syms_of_coding): Declare new symbols. Defsubr
17689 Scoding_system_put.
17690 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
17691 typically JISX0212.
17692
17693 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
17694 when the charset is superset type.
17695
17696 * character.c (translate_char): Accept list of translation tables.
17697
176982008-02-01 Kenichi Handa <handa@m17n.org>
17699
17700 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
17701 (CODING_ATTR_TRANS_TBL): New macro.
17702
17703 * coding.c (get_translation_table): New function.
17704 (translate_chars): Fix the bug of skipping annotation data.
17705 (decode_coding, encode_coding): Utilize get_translation_table.
17706 (char_encodable_p, Funencodable_char_position): Translate char if
17707 necessary.
17708 (Ffind_coding_systems_region_internal)
17709 (Fcheck_coding_systems_region): Setup translation table for encode
17710 in a coding system attribute vector in advance.
17711 (Fdefine_coding_system_internal): Allow a symbol as translation
17712 table. For shift-jis type coding system, allow 4th charset.
17713
177142008-02-01 Kenichi Handa <handa@m17n.org>
17715
17716 * coding.c (decode_coding_sjis): Check the first byte rigidly.
17717
17718 * xdisp.c (get_next_display_element): Pass -1 as POS to
17719 FACE_FOR_CHAR if displaying a C-string.
17720
177212008-02-01 Kenichi Handa <handa@m17n.org>
17722
17723 * composite.c (get_composition_id): Handle xoff and yoff in a
17724 composition rule.
17725
17726 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
17727 (struct composition): New member lbearing and rbearing.
17728
17729 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
17730 (x_get_glyph_overhangs): Handle a composition glyph.
17731 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
17732
17733 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
17734 composition glyph.
17735
177362008-02-01 Kenichi Handa <handa@m17n.org>
17737
17738 * print.c: Include charset.h.
17739 (Vprint_charset_text_property): New variable.
17740 (Qdefault): Extern it.
17741 (PRINT_STRING_NON_CHARSET_FOUND)
17742 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
17743 (print_check_string_result): New variable.
17744 (print_check_string_charset_prop): New function.
17745 (print_prune_charset_plist): New variable.
17746 (print_prune_string_charset): New function.
17747 (print_object): Call print_prune_string_charset if
17748 Vprint_charset_text_property is not t.
17749 (print_interval): Print nothing if interval->plist is nil.
17750 (syms_of_print): Declare Vprint_charset_text_property as a lisp
17751 variable. Init and staticpro print_prune_charset_plist.
17752
177532008-02-01 Kenichi Handa <handa@m17n.org>
17754
17755 * fontset.c (new_fontset_from_font_name): Use the specified font
17756 for all characters in the new fontset.
17757
17758 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
17759 OBJECT args.
17760
17761 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
17762 OBJECT args for composition too.
17763
17764 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
17765 OBJECT args.
17766
177672008-02-01 Kenichi Handa <handa@m17n.org>
17768
17769 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
17770
17771 * fontset.c (reorder_font_vector): Adjust for the change of
17772 FONT_DEF format.
17773 (fontset_face): New arg id. Change caller.
17774 (face_for_char): New args pos and object.
17775 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
17776 (fs_query_fontset): Check NAME by Fassoc too.
17777 (Fset_fontset_font): Allow non-XLFD font name.
17778 (Ffontset_info): Adjust for the change of FONT_DEF format.
17779
17780 * fontset.h (face_for_char): Adjust prototype.
17781
17782 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
17783 (append_space, extend_face_to_end_of_line)
17784 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
17785 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
17786
17787 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
17788 POS and OBJECT args.
17789
17790 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
17791 POS and OBJECT args.
17792
177932008-02-01 Jason Rumney <jasonr@gnu.org>
17794
17795 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
17796 of GlobalAlloc'ed memory.
17797
177982008-02-01 Kenichi Handa <handa@m17n.org>
17799
17800 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
17801
17802 * charset.h (charset_table_used): Delete extern.
17803
17804 * charset.c (charset_table_used): Make it static.
17805 (map_charset_chars): Fix args to c_function with.
17806
17807 * chartab.c (map_sub_char_table_for_charset): Fix args to
17808 c_function with.
17809
17810 * coding.h (enum coding_result_code): Delete
17811 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
17812
17813 * coding.c (Qinsufficient_source, Qinconsistent_eol)
17814 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
17815 (Vlast_code_conversion_error): New variables.
17816 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
17817 (ONE_MORE_BYTE): Record error if any instead of signaling an
17818 error. If non-ASCII multibyte char is found, return the negative
17819 value of the code. All callers changed to check it.
17820 (ONE_MORE_BYTE_NO_CHECK): Likewise.
17821 (record_conversion_result): New function. Change all codes setting
17822 coding->result to call this function.
17823 (detect_coding_utf_8, decode_coding_utf_8)
17824 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
17825 Don't use the local variable incomplete.
17826 (emacs_mule_char): Change the second arg to `const'.
17827 (decode_coding): Fix of flushing out unprocessed data.
17828 (make_conversion_work_buffer): Fix making of a work buffer.
17829 (decode_coding_object): Return coding->dst_object.
17830
17831 * fontset.c (set_fontset_font): Fix args.
17832
17833 * lisp.h (CHARACTERBITS): Define as 22.
17834
17835 * process.c (send_process): Be sure to set coding->src_multibyte.
17836
17837 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
17838
178392008-02-01 Kenichi Handa <handa@m17n.org>
17840
17841 * xdisp.c (handle_auto_composed_prop): Give limit to
17842 Fnext_single_char_property_change.
17843
178442008-02-01 Kenichi Handa <handa@m17n.org>
17845
17846 * composite.c (syms_of_composite): Don't make the composition hash
17847 table weak.
17848
17849 * fontset.c (Fset_fontset_font): Fix docstring.
17850
17851 * lisp.h (detect_coding_system): Adjust prototype.
17852
17853 * fileio.c (kill_workbuf_unwind): Delete this function.
17854 (Finsert_file_contents): Adjust the call of detect_coding_system.
17855 Get conversion_buffer by code_conversion_save. Use the macro
17856 CODING_MAY_REQUIRE_DECODING. After decoding, update
17857 coding_system.
17858
17859 * coding.h (make_conversion_work_buffer): Delete extern.
17860 (code_conversion_save): Extern it.
17861
17862 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
17863 (CODING_GET_INFO): Delete argument eol_type. Change callers.
17864 (decode_coding_utf_8): Don't do eol converion.
17865 (detect_coding_utf_16): Check coding->src_chars, not
17866 coding->src_bytes. Add heuristics for those that have no signature.
17867 (decode_coding_emacs_mule, decode_coding_iso_2022)
17868 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
17869 Don't do eol converion.
17870 (adjust_coding_eol_type): Return a new coding system.
17871 (detect_coding): Don't detect eol. Fix for utf-16 detection.
17872 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
17873 each change.
17874 (decode_coding): Pay attention to undo_list. Do eol conversion for
17875 all types of coding-systems (if necessary).
17876 (Vcode_conversion_work_buf_list): Delete it.
17877 (Vcode_conversion_reused_workbuf): Rename from
17878 Vcode_conversion_reused_work_buf.
17879 (Vcode_conversion_workbuf_name): New variable.
17880 (reused_workbuf_in_use): New variable.
17881 (make_conversion_work_buffer): Delete the arg DEPTH.
17882 (code_conversion_restore): Change argument to cons.
17883 (code_conversion_save): Delete the argument BUFFER. Change callers.
17884 (detect_coding_system): New argument src_chars. Change callers.
17885 Fix for utf-16 detection.
17886 (init_coding_once): Don't use ISO_carriage_return.
17887 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
17888 reused_workbuf_in_use.
17889
178902008-02-01 Kenichi Handa <handa@m17n.org>
17891
17892 * keymap.c (store_in_keymap): Pay attention to the case that idx
17893 is a cons specifying a character range.
17894
178952008-02-01 Kenichi Handa <handa@m17n.org>
17896
17897 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
17898 HANDLED_RECOMPUTE_PROPS.
17899
17900 * coding.c (Fdefine_coding_system_internal): Fix checking of
17901 ascii compatibility.
17902
179032008-02-01 Kenichi Handa <handa@m17n.org>
17904
17905 * charset.c (find_charsets_in_text): Delete unused locale variable.
17906 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
17907
17908 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
17909 Resync charset_list to Vemacs_mule_charset_list.
17910
17911 * keymap.c (store_in_keymap): Pay attention to the case that idx
17912 is a cons specifying a character range.
17913
179142008-02-01 Kenichi Handa <handa@m17n.org>
17915
17916 * composite.c (update_compositions): Bind inhibit-read-only, etc
17917 to t before calling remove-list-of-text-properties.
17918
17919 * print.c (print_object): Always print ASCII chars as is.
17920
179212008-02-01 Kenichi Handa <handa@m17n.org>
17922
17923 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
17924
17925 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
17926 is a char table.
17927
179282008-02-01 Kenichi Handa <handa@m17n.org>
17929
17930 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
17931
179322008-02-01 Kenichi Handa <handa@m17n.org>
17933
17934 * xfaces.c (set_lface_from_font_name): Fix for the case that
17935 FONTNAME is not fontset name.
17936
179372008-02-01 Kenichi Handa <handa@m17n.org>
17938
17939 * fns.c (base64_encode_1): Fix previous change.
17940
179412008-02-01 Kenichi Handa <handa@m17n.org>
17942
17943 * fontset.c (set_fontset_font): New function.
17944 (Fset_fontset_font): If a font is specified for a charset, use
17945 map_charset_chars to store the font spec in a fontset.
17946
179472008-02-01 Kenichi Handa <handa@m17n.org>
17948
17949 * fontset.c (fontset_face): Create a fallback fontset on demand.
17950 (make_fontset): Don't create a fallback fontset here.
17951 (free_face_fontset): Free a fallback fontset (if any) too.
17952 (n_auto_fontsets): Delete this variable.
17953 (auto_fontset_alist): New variable.
17954 (new_fontset_from_font_name): Check auto_fontset_alist.
17955 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
17956 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
17957 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
17958 Defsubr Sfontset_list_all.
17959
179602008-02-01 Kenichi Handa <handa@m17n.org>
17961
17962 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
17963
179642008-02-01 Kenichi Handa <handa@m17n.org>
17965
17966 * fontset.c (Fnew_fontset): Check NAME more rigidly.
17967
179682008-02-01 Kenichi Handa <handa@m17n.org>
17969
17970 * editfns.c (Fgoto_char): Fix docstring.
17971
179722008-02-01 Kenichi Handa <handa@m17n.org>
17973
17974 * insdel.c (insert_from_gap): Adjust intervals correctly.
17975
179762008-02-01 Jason Rumney <jasonr@gnu.org>
17977
17978 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
17979 (pfnGetFontUnicodeRanges): New dynamically loaded function.
17980 (w32_initialize): Try to load it.
17981 (x_get_font_repertory): Use it if available.
17982 (w32_encode_char): Add shortcut for unicode output.
17983
17984 * w32fns.c (w32_load_system_font): Default charset to -1.
17985 (x_to_w32_charset): Match all fonts for unicode.
17986 (w32_to_x_charset): New parameter matching. Don't return partial
17987 or wildcard charsets.
17988 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
17989 (w32_codepage_for_font): Return CP_UNICODE for unicode.
17990 (w32_to_x_font): Match charset to real charset.
17991 (enum_font_cb2): Always list unicode versions.
17992
17993 * makefile.w32-in (temacs): Increase EMHEAP.
17994
179952008-02-01 Jason Rumney <jasonr@gnu.org>
17996
17997 * w32term.c (w32_encode_char): New charset parameter.
17998 font_info.encoding becomes encoding_type.
17999 (x_get_font_repertory): New function. Warning: stub only!
18000 (x_new_font): Return quickly if font already set.
18001 (x_new_fontset): fontsetname parameter is Lisp_Object.
18002 Use new fs_query_fontset. Try new_fontset_from_font_name.
18003 Use fontset_name for return value.
18004
18005 * w32term.h: Declare x_get_font_repertory.
18006
18007 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
18008 place of find_charset_in_text. Use encode_coding_object in place
18009 of encode_coding.
18010 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
18011 decode_coding.
18012
18013 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
18014 of x_new_fontset.
18015 (w32_load_system_font): Initialize charset as unicode.
18016 font_info.encoding becomes encoding_type.
18017 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
18018 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
18019 (syms_of_w32fns): Set get_font_repertory_func.
18020
18021 * w32console.c: Include character.h. Use terminal_encode_buffer
18022 from term.c.
18023 (write_glyphs): Use new version of encode_terminal_code. Use
18024 encode_coding_object in place of encode_coding.
18025
18026 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
18027 encoding becomes encoding_type.
18028
18029 * term.c (terminal_encode_buffer): Make externally visible.
18030
18031 * makefile.w32-in: Add character.h dependancies.
18032 (character.o, chartab.o): New targets.
18033
180342008-02-01 Kenichi Handa <handa@m17n.org>
18035
18036 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
18037 CODING_ID_EOL_TYPE.
18038
180392008-02-01 Andreas Schwab <schwab@suse.de>
18040
18041 * coding.c (produce_chars): Revert last change.
18042
180432008-02-01 Kenichi Handa <handa@m17n.org>
18044
18045 * charset.h (charset_unicode): Extern it.
18046
18047 * charset.c (string_xstring_p): Check by (C >= 0x100).
18048 (find_charsets_in_text): Change format of the arc CHARSETS. New
18049 arg MULTIBYTE.
18050 (Ffind_charset_region, Ffind_charset_string): Adjust for the
18051 change of find_charsets_in_text.
18052 (Fsplit_char): Fix doc. Never return unknown.
18053
18054 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
18055
18056 * coding.c (Fdefine_coding_system_alias): Update
18057 Vcoding_system_list.
18058
18059 * fontset.c (load_font_get_repertory): Pay attention to the case
18060 that ENCODING of a font is specified by a char-table.
18061
18062 * xterm.c (x_get_font_repertory): Handle the case that the
18063 encoding of font is other than Unicode.
18064
180652008-02-01 Kenichi Handa <handa@m17n.org>
18066
18067 * term.c (encode_terminal_code): Don't handle glyph-table. Check
18068 if a character is encodable by the terminal coding system. If
18069 not, produces proper number of `?'s. Update
18070 terminal_encode_buffer and terminal_encode_buf_size if necessary.
18071 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
18072
180732008-02-01 Kenichi Handa <handa@m17n.org>
18074
18075 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
18076 variables.
18077 (encode_terminal_code): Change argument. Encode multiple
18078 characters at once. Store the result of encoding in
18079 terminal_encode_buffer.
18080 (write_glyphs, insert_glyphs): Adjust for the change of
18081 encode_terminal_code.
18082 (term_init): Initialize terminal_encode_buffer and
18083 terminal_encode_buf_size.
18084
18085 * coding.c (consume_chars): If coding->src_object is nil, don't
18086 check annotation.
18087
180882008-02-01 Kenichi Handa <handa@m17n.org>
18089
18090 * character.c (char_string): Use ASCII_CHAR_P instead of
18091 SINGLE_BYTE_CHAR_P.
18092
180932008-02-01 Kenichi Handa <handa@m17n.org>
18094
18095 * xdisp.c (handle_auto_composed_prop): Check if the last
18096 characters of auto-composed region is newly composed with the
18097 following characters.
18098 (handle_composition_prop): Fix checking of point being inside
18099 composition.
18100
181012008-02-01 Kenichi Handa <handa@m17n.org>
18102
18103 * fns.c (concat): Don't change multibyteness of the result by
18104 concatenating an 8-bit character.
18105
18106 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
18107 multibyteness of the result when newelt is an 8-bit character.
18108
181092008-02-01 Dave Love <fx@gnu.org>
18110
18111 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
18112 EMACS_INT.
18113
18114 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
18115
18116 * xfaces.c (face_numeric_value): Declare dim size_t.
18117 (Finternal_lisp_face_equal_p): Remove unused f.
18118
18119 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
18120 (MATRIX_ROW): Remove unused vars.
18121 (draw_glyphs, x_insert_glyphs, fast_find_position)
18122 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
18123 byte/char counts.
18124
18125 * regex.c (regex_compile): Remove unused var.
18126
18127 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
18128
18129 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
18130 (Faccessible_keymaps, where_is_internal): Remove unused vars.
18131
18132 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
18133
18134 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
18135
18136 * fileio.c (Fwrite_region): Remove unused var.
18137
18138 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
18139 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
18140
18141 * composite.c (Fremove_list_of_text_properties): Declare.
18142
18143 * coding.c (inhibit_pre_post_conversion): Remove (unused).
18144 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
18145 (coding_inherit_eol_type): Remove unused attrs.
18146 (detect_coding): Cast arg of detect_eol.
18147
18148 * charset.c (syms_of_charset): Remove unused var p.
18149 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
18150 byte/char counts.
18151
18152 * casetab.c (set_case_table): Remove unused var.
18153
18154 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
18155 unused vars.
18156
181572008-02-01 Dave Love <fx@gnu.org>
18158
18159 * xterm.c (x_bitmap_mask): Declare.
18160
181612008-02-01 Dave Love <fx@gnu.org>
18162
18163 * xterm.c (x_term_init): Fix type error.
18164
18165 * lisp.h: Add Funibyte_char_to_multibyte.
18166
18167 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
18168 (Fset_coding_system_priority): Doc fix.
18169
18170 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
18171
18172 * indent.c (check_composition): Make start and end EMACS_INT.
18173
18174 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
18175
18176 * xdisp.c (handle_composition_prop, check_point_in_composition):
18177 Make buffer positions EMACS_INT.
18178
18179 * composite.c (find_composition, run_composition_function)
18180 (update_compositions, Ffind_composition_internal): Make buffer
18181 positions EMACS_INT.
18182
18183 * composite.h (find_composition, update_compositions): Make
18184 position args EMACS_INT.
18185
18186 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
18187
18188 * intervals.c (get_property_and_range):
18189 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
18190
18191 * unexalpha.c: Don't include varargs.h.
18192
181932008-02-01 Dave Love <fx@gnu.org>
18194
18195 * coding.h (ENCODE_UTF_8): New.
18196
18197 * Makefile.in (gtkutil.o): Depend on coding.h.
18198
18199 * coding.c (Fset_coding_system_priority): Doc fix.
18200
182012008-02-01 Kenichi Handa <handa@m17n.org>
18202
18203 * fileio.c (Finsert_file_contents): Call setup_coding_system in
18204 the case of auto saving.
18205
182062008-02-01 Andreas Schwab <schwab@suse.de>
18207
18208 * chartab.c (map_char_table, map_char_table_for_charset): Protect
18209 `range' from GC.
18210
182112008-02-01 Kenichi Handa <handa@m17n.org>
18212
18213 * coding.c (decode_coding_sjis): Check bytes more rigidly.
18214
182152008-02-01 Kenichi Handa <handa@m17n.org>
18216
18217 * fileio.c (choose_write_coding_system): Return a decided coding system.
18218 (Fwrite_region): Set Vlast_coding_system_used to the return value
18219 of choose_write_coding_system.
18220
182212008-02-01 Kenichi Handa <handa@m17n.org>
18222
18223 * charset.c (Fset_charset_priority): Pay attention to duplicated
18224 arguments.
18225
18226 * coding.c (QCcategory): New variable.
18227 (syms_of_coding): Defsym it. Set all elements of
18228 Vcoding_category_table and their symbol values.
18229 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
18230 coding-category-XXX, and coding-category-list.
18231 (Fdefine_coding_system_internal): Add category in the plist.
18232
182332008-02-01 Kenichi Handa <handa@m17n.org>
18234
18235 * callproc.c (Fcall_process): Handle carryover correctly.
18236
18237 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
18238 (raw_text_coding_system): Check NILP (coding_system).
18239 (coding_inherit_eol_type): Check NILP (coding_system) and
18240 NILP (parent).
18241 (consume_chars): Fix for the case of raw-text.
18242
18243 * process.c (read_process_output): Handle carryover correctly.
18244
182452008-02-01 Dave Love <fx@gnu.org>
18246
18247 * regex.c (re_search_2): Fix last change.
18248
182492008-02-01 Kenichi Handa <handa@m17n.org>
18250
18251 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
18252 target_multibyte. Even in a unibyte case, return a converted
18253 multibyte char.
18254 (GET_CHAR_AFTER): New macro.
18255 (PATFETCH): Translate via multibyte char.
18256 (HANDLE_UNIBYTE_RANGE): Delete this macro.
18257 (SETUP_MULTIBYTE_RANGE): New macro.
18258 (regex_compile): Setup compiled code so that its multibyteness
18259 matches that of a target. Fix the handling of "[X-YZ]" using
18260 SETUP_MULTIBYTE_RANGE.
18261 (analyse_first) <charset>: For filling fastmap for all multibyte
18262 characters, don't check by BASE_LEADING_CODE_P.
18263 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
18264 the same as RE_MULTIBYTE_P (bufp) now.
18265 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
18266 (TARGET_CHAR_AND_LENGTH): Delete this macro.
18267 (TRANSLATE_VIA_MULTIBYTE): New macro.
18268 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
18269 It is the same as RE_MULTIBYTE_P (bufp) now.
18270 <exactn>: Translate via multibyte.
18271 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
18272 translate it.
18273 <charset, charset_not>: Fetch a character by
18274 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
18275 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
18276 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
18277 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
18278 by GET_CHAR_AFTER.
18279 (bcmp_translate): Likewise.
18280
18281 * search.c (compile_pattern): Check the member target_multibyte,
18282 not the member multibyte of buf.
18283
18284 * lread.c (read1): While reading a string, set force_singlebyte
18285 and force_multibyte correctly.
18286
18287 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
18288 up of unibyte_to_multibyte_table.
18289
182902008-02-01 Kenichi Handa <handa@m17n.org>
18291
18292 * coding.c (setup_coding_system): If coding has
18293 post-read-conversion or pre-write-conversion, set
18294 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
18295 respectively.
18296 (decode_coding_gap): Run post-read-conversion if any.
18297
18298 * fileio.c (Finsert_file_contents): Even if we read into a
18299 unibyte buffer, check if we must decode the result or not.
18300
183012008-02-01 Kenichi Handa <handa@m17n.org>
18302
18303 * coding.c (make_conversion_work_buffer): Change the work buffer
18304 name to the same one as that of Emacs 21.
18305
183062008-02-01 Kenichi Handa <handa@m17n.org>
18307
18308 * coding.h (make_conversion_work_buffer): Adjust prototype.
18309 (code_conversion_restore): Don't extern it.
18310
18311 * coding.c (detected_mask): Delete unused variable.
18312 (decode_coding_iso_2022): Pay attention to the byte sequence of
18313 CTEXT extended segment, and retain those bytes as is.
18314 (decode_coding_ccl): Delete unused variable `valids'.
18315 (setup_coding_system): Delete unused variable `category'.
18316 (consume_chars): Delete unused variable `category'. Make it work
18317 for non-multibyte case.
18318 (make_conversion_work_buffer): Change argument.
18319 (saved_coding): Delete unused variable.
18320 (code_conversion_restore): Don't check saved_coding->destination.
18321 (code_conversion_save): New function.
18322 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
18323 instead of record_unwind_protect.
18324 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
18325 (detect_coding_system): Delete unused variable `mask'.
18326 (Fdefine_coding_system_internal): Delete unused variable id.
18327
18328 * fileio.c (kill_workbuf_unwind): New function.
18329 (Finsert_file_contents): On replacing, call
18330 make_conversion_work_buffer with correct args, and call
18331 record_unwind_protect with the first arg kill_workbuf_unwind.
18332
18333 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
18334
183352008-02-01 Kenichi Handa <handa@m17n.org>
18336
18337 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
18338 (fontset_add): Fix for the case that TO is less than TO1.
18339 (Ffontset_info): Don't use fallback fontset on checking the
18340 default fontset.
18341 (dump_fontset): New function for debugging.
18342
18343 * coding.c (Fdefine_coding_system_internal): Fix for the case that
18344 coding_type is Qcharset.
18345
183462008-02-01 Kenichi Handa <handa@m17n.org>
18347
18348 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
18349 (map_char_table): Don't inherit the value from the parent on
18350 initializing VAL. Adjust for the above change.
18351
183522008-02-01 Kenichi Handa <handa@m17n.org>
18353
18354 * coding.c (Qsignature, Qendian): Delete these variables.
18355 (syms_of_coding): Don't initialize them.
18356 (CATEGORY_MASK_UTF_16_AUTO): New macro.
18357 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
18358 detect_info->found.
18359 (decode_coding_utf_16): Don't detect BOM here.
18360 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
18361 is NOT utf_16_without_bom.
18362 (setup_coding_system): For a coding system of type utf-16, check
18363 if the attribute :endian is Qbig or not (not nil or not), and set
18364 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
18365 (detect_coding): If coding type is utf-16 and BOM detection is
18366 required, detect it.
18367 (Fdefine_coding_system_internal): For a coding system of type
18368 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
18369
183702008-02-01 Kenichi Handa <handa@m17n.org>
18371
18372 * coding.c (coding_set_source): Fix for the case that the current
18373 buffer is different from coding->src_object.
18374 (decode_coding_object): Don't use the conversion work buffer if
18375 DST_OBJECT is a buffer.
18376
183772008-02-01 Dave Love <fx@gnu.org>
18378
18379 * lread.c (read_emacs_mule_char) [len==2]: Index
18380 emacs_mule_charset correctly.
18381
183822008-02-01 Dave Love <fx@gnu.org>
18383
18384 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
18385 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
18386 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
18387 treated specially.)
18388 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
18389 (detected_mask): Remove Big5 bits.
18390
183912008-02-01 Kenichi Handa <handa@m17n.org>
18392
18393 The following changes are to make the font rescaling facility
18394 compatible with Emacs 21.
18395
18396 * xfaces.c (Vface_font_rescale_alist): Rename from
18397 Vface_resizing_fonts.
18398 (struct font_name): Rename member resizing_ratio to rescale_ratio.
18399 (font_rescale_ratio): Rename from font_resizing_ratio.
18400 (split_font_name): Set font->rescale_ratio.
18401 (better_font_p): Pay attention to font->rescale_ratio.
18402 (build_scalable_font_name): Likewise. Change RESX, and RESY
18403 fields.
18404 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
18405
184062008-02-01 Kenichi Handa <handa@m17n.org>
18407
18408 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
18409 (Qutf_16_le): Remove these variables.
18410 (syms_of_coding): Don't DEFSYM them.
18411 (decode_coding_utf_16): Fix handling of BOM.
18412 (encode_coding_utf_16): Fix handling of BOM.
18413
184142008-02-01 Kenichi Handa <handa@m17n.org>
18415
18416 * fileio.c (Finsert_file_contents): On replacing, before decoding
18417 the file into the work buffer, set point of the work buffer to the end.
18418
184192008-02-01 Dave Love <fx@gnu.org>
18420
18421 * coding.c (Fcheck_coding_systems_region): Fix type errors.
18422
184232008-02-01 Dave Love <fx@gnu.org>
18424
18425 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
18426 and fix C types.
18427
184282008-02-01 Kenichi Handa <handa@m17n.org>
18429
18430 * xdisp.c (SKIP_GLYPHS): New macro.
18431 (set_cursor_from_row): Pay attention to string display properties.
18432
18433 * category.c (copy_category_entry): Fix for the case that RANGE
18434 is an integer.
18435
18436 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
18437
18438 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
18439
184402008-02-01 Kenichi Handa <handa@m17n.org>
18441
18442 * charset.c (Fcharset_id_internal): New function.
18443 (syms_of_charset): Defsubr it.
18444
18445 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
18446 with the last arg charset_list acquired from coding.
18447 (Fdefine_coding_system_internal): For ccl-based coding system, fix
18448 the attribute coding_attr_ccl_valids.
18449
18450 * coding.h (enum define_coding_ccl_arg_index): Set the first
18451 member coding_arg_ccl_decoder to coding_arg_max.
18452
18453 * ccl.h (ccl_driver): Adjust prototype.
18454
18455 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
18456 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 18457 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
18458 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
18459 last arg Qnil.
18460
184612008-02-01 Kenichi Handa <handa@m17n.org>
18462
18463 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
18464 call encode_char.
18465
18466 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
18467
184682008-02-01 Dave Love <fx@gnu.org>
18469
18470 * composite.c (syms_of_composite): Make composition_hash_table weak.
18471
184722008-02-01 Kenichi Handa <handa@m17n.org>
18473
18474 * dispextern.h (check_face_attributes, generate_ascii_font_name)
18475 (font_name_registry): Don't extern them.
18476 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
18477
18478 * fontset.h (Qfontset): Don't extern it.
18479 (new_fontset_from_font_name): Extern it.
18480
18481 * fontset.c: Give 8 extra slots to fontset objects.
18482 (Qfontset_info): New variable.
18483 (syms_of_fontset): Defsym it.
18484 (FONTSET_FALLBACK): New macro.
18485 (fontset_face): Try also the default fontset.
18486 (make_fontset): Realize a fallback fontset from the default fontset.
18487 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
18488 using split_font_name_into_vector and build_font_name_from_vector.
18489 (Fset_fontset_font): Access the elements of font_spec by enum
18490 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
18491 name by using split_font_name_into_vector.
18492 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
18493 generate a proper font name from the fontset name. Update
18494 Vfontset_alias_alist.
18495 (n_auto_fontsets): New variable.
18496 (new_fontset_from_font_name): New function.
18497 (Ffont_info): Store the information about fonts generated from the
18498 default fontset in the first extra slot of the returned char-table.
18499
18500 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
18501 (font_name_registry): Delete function.
18502 (split_font_name_into_vector): New function.
18503 (build_font_name_from_vector): New function.
18504 (font_list): The argument REGISTRY is now a list of registry names.
18505 (choose_face_font): If we are choosing an ASCII font, and ATTRS
18506 specifies an explicit font name, return the name as is. Make a
18507 list of registy names.
18508
18509 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
18510 of x_new_fontset.
18511 (Fx_create_frame): Don't call x_new_fontset here. Just use
18512 x_list_fonts to check the existence of fonts.
18513
18514 * xterm.h (x_new_fontset): Adjust prototype.
18515
18516 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
18517 string. Use new_fontset_from_font_name to create a fontset from a
18518 font name.
18519
185202008-02-01 Kenichi Handa <handa@m17n.org>
18521
18522 * syntax.c (Vfind_word_boundary_function_table): New name for
18523 Vnext_word_boundary_function_table.
18524 (find-word-boundary-function-table): New name for
18525 next-word-boundary-function-table.
18526
185272008-02-01 Dave Love <fx@gnu.org>
18528
18529 * Makefile.in: Fix some dependencies.
18530
18531 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
18532 set it to nil before returning.
18533
18534 * composite.c (update_compositions): Fix type error.
18535
18536 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
18537
185382008-02-01 Kenichi Handa <handa@m17n.org>
18539
18540 * xterm.c (x_new_font): Optimize for the case that the font is
18541 already set for the frame.
18542
185432008-02-01 Kenichi Handa <handa@m17n.org>
18544
18545 * chartab.c (char_table_ascii): Check if the char table contents
18546 is sub-char-table or not.
18547 (char_table_set, char_table_set_range): Fix argument to
18548 char_table_ascii.
18549
18550 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
18551 (detect_coding_utf_8, detect_coding_utf_16)
18552 (detect_coding_emacs_mule, detect_coding_iso_2022)
18553 (detect_coding_sjis, detect_coding_big5)
18554 (detect_coding_ccl, detect_coding_charset): Change argument MASK
18555 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
18556 sequence is valid in this coding system. Change callers.
18557 (MAX_ANNOTATION_LENGTH): New macro.
18558 (ADD_ANNOTATION_DATA): New macro.
18559 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
18560 ADD_ANNOTATION_DATA. Change the format of annotation data.
18561 (ADD_CHARSET_DATA): New macro.
18562 (emacs_mule_char): New argument ID. Change callers.
18563 (decode_coding_emacs_mule, decode_coding_iso_2022)
18564 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
18565 Produce charset annotation data in coding->charbuf.
18566 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
18567 to charset annotation data in coding->charbuf.
18568 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
18569 coding->common_flags if the coding system is iso-2022 based and
18570 uses designation.
18571 (produce_composition): Adjust for the new annotation data format.
18572 (produce_charset): New function.
18573 (produce_annotation): Handle charset annotation.
18574 (handle_composition_annotation, handle_charset_annotation): New
18575 functions.
18576 (consume_chars): Handle charset annotation. Utilize the above two
18577 functions.
18578 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
18579 buffer, get the deleted text as a string and set
18580 coding->src_object to that string.
18581 (detect_coding, detect_coding_system): Use the new struct
18582 coding_detection_info.
18583
18584 * coding.h (struct coding_detection_info): New structure.
18585 (struct coding_system): Adjust prototype of the member `detector'.
18586 (CODING_ANNOTATE_CHARSET_MASK): New macro.
18587
185882008-02-01 Kenichi Handa <handa@m17n.org>
18589
18590 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
18591
185922008-02-01 Dave Love <fx@gnu.org>
18593
18594 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
18595 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
18596 to new local and nullify apropos_accumulate before returning.
18597 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
18598
185992008-02-01 Kenichi Handa <handa@m17n.org>
18600
18601 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
18602 correctly.
e3eea1fc 18603
aac0c6e3
MR
186042008-02-01 Dave Love <fx@gnu.org>
18605
18606 * fns.c (Flanginfo): Call synchronize_system_time_locale.
18607
186082008-02-01 Kenichi Handa <handa@m17n.org>
18609
18610 The following changes are to make character composition happen
18611 automatically on displaying.
18612
18613 * Makefile.in (lisp, shortlisp): Add composite.elc.
18614
18615 * composite.h (Qauto_composed, Vauto_composition_function)
18616 (Qauto_composition_function): Extern them.
18617
18618 * composite.c (Vcomposition_function_table)
18619 (Qcomposition_function_table): Delete variables.
18620 (Qauto_composed, Vauto_composition_function)
18621 (Qauto_composition_function): New variables.
18622 (run_composition_function): Don't call
18623 compose-chars-after-function.
18624 (update_compositions): Clear `auto-composed' text property.
18625 (compose_chars_in_text): Delete this function.
18626 (syms_of_composite): Staticpro Qauto_composed and
18627 Qauto_composition_function. Declare Vauto_composition_function as
18628 a Lisp variable.
18629
18630 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
18631
18632 * xdisp.c (it_props): Add an entry for Qauto_composed.
18633 (handle_auto_composed_prop): New function.
18634
18635 * xselect.c (selection_data_to_lisp_data): Don't call
18636 compose_chars_in_text.
18637
186382008-02-01 Dave Love <fx@gnu.org>
18639
18640 * keyboard.c (read_char): Modify checking around use of
18641 Vkeyboard_translate_table.
18642
18643 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
18644 and fix C types.
18645
186462008-02-01 Kenichi Handa <handa@m17n.org>
18647
18648 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
18649 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
18650 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
18651 the case that the last byte is '\r' correctly.
18652 (decode_coding): Flush out the unprocessed data correctly.
18653 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
18654
186552008-02-01 Dave Love <fx@gnu.org>
18656
18657 * xterm.c (XTread_socket): Fix changes for defined keysyms.
18658 Add XK_ISO... case.
18659 (xaw_scroll_callback): Revert last change.
18660
186612008-02-01 Kenichi Handa <handa@m17n.org>
18662
18663 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
18664
186652008-02-01 Kenichi Handa <handa@m17n.org>
18666
18667 * xfaces.c (Vface_resizing_fonts): New variable.
18668 (struct font_name): New member `resizing_ratio'.
18669 (font_resizing_ratio): New function.
18670 (split_font_name): Set font->resizing_ratio.
18671 (better_font_p): Pay attention to font->resizing_ratio.
18672 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
18673 RESX, and RESY fields.
18674 (try_alternative_families): Try scalable fonts if
18675 Vscalable_fonts_allowed is not Qt.
18676 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
18677
186782008-02-01 Dave Love <fx@gnu.org>
18679
18680 * xterm.c (xaw_scroll_callback): Cast correctly.
18681
186822008-02-01 Dave Love <fx@gnu.org>
18683
18684 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
18685 (lispy_kana_keys): Comment out.
18686 (make_lispy_event) [XK_kana_A]: Comment out.
18687
18688 * xterm.c (xaw_scroll_callback): Cast call_data.
18689 (XTread_socket): Deal with ASCII keysyms.
18690 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
18691
186922008-02-01 Dave Love <fx@gnu.org>
18693
18694 * xterm.c (Vx_keysym_table): New.
18695 (syms_of_xterm): Initialize it.
18696 (XTread_socket): Use it.
18697 From head: Eliminate incorrect optimization that tried to avoid
18698 decoding the output of X*LookupString.
18699 (x_get_font_repertory): Delete charset declaration.
18700
187012008-02-01 Kenichi Handa <handa@m17n.org>
18702
18703 * coding.c (detect_coding_charset): If only ASCII bytes are found,
18704 return 0.
18705 (Fdefine_coding_system_internal): Setup
18706 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
18707
187082008-02-01 Dave Love <fx@gnu.org>
18709
18710 * coding.c (Fcheck_coding_system): Doc fix.
18711
18712 * editfns.c (Finsert_byte): Return a proper value.
18713
187142008-02-01 Kenichi Handa <handa@m17n.org>
18715
18716 * coding.c (decode_coding): Fix args to translate_chars. Pay
18717 attention to Vstandard_translation_table_for_decode.
18718 (encode_coding): Fix args to translate_chars. Pay attention to
18719 Vstandard_translation_table_for_encode.
18720
18721 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
18722 SINGLE_BYTE_CHAR_P.
18723
18724 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
18725 not by SINGLE_BYTE_CHAR_P.
18726
18727 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
18728 SINGLE_BYTE_CHAR_P.
18729
18730 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
18731 SINGLE_BYTE_CHAR_P.
18732
18733 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
18734 by SINGLE_BYTE_CHAR_P.
18735
18736 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
18737 SINGLE_BYTE_CHAR_P.
18738
187392008-02-01 Dave Love <fx@gnu.org>
18740
18741 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
18742
187432008-02-01 Dave Love <fx@gnu.org>
18744
18745 * fns.c (Flanginfo): Fix typo.
18746
18747 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
18748
187492008-02-01 Kenichi Handa <handa@m17n.org>
18750
18751 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
18752 (detect_coding_emacs_mule, detect_coding_iso_2022)
18753 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
18754 incomplete byte sequence. Don't update *mask when correctly detected.
18755 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
18756 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
18757 (detect_coding, detect_coding_system): Adjust for the changes above.
18758
187592008-02-01 Kenichi Handa <handa@m17n.org>
18760
18761 * character.c (char_string): Rename from
18762 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
18763 (string_char): Rename from string_char.
18764
18765 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
18766 if C is greater than MAX_3_BYTE_CHAR.
18767 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
18768 string_char instead of string_char_with_unification.
18769
187702008-02-01 Dave Love <fx@gnu.org>
18771
18772 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
18773
187742008-02-01 Kenichi Handa <handa@m17n.org>
18775
18776 * keymap.c (push_key_description): Pay attention to force_multibyte.
18777
18778 * regex.c (re_search_2): Fix for the case of unibyte buffer.
18779
187802008-02-01 Dave Love <fx@gnu.org>
18781
18782 * charset.c (define_charset_internal): Rename `supprementary'.
18783
18784 * Makefile.in (lisp, shortlisp): Remove latin-N.
18785
187862008-02-01 Dave Love <fx@gnu.org>
18787
18788 * xfns.c (x_window, x_window): Use use_xim.
18789
18790 * xterm.c (use_xim): Initialize.
18791 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
18792 (x_term_init): Maybe set use_xim.
18793
18794 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
18795
187962008-02-01 Kenichi Handa <handa@m17n.org>
18797
18798 * search.c (search_buffer): Fix case-fold-search of multibyte
18799 characters.
18800 (boyer_moore): Rename the last argument to char_high_bits.
18801
188022008-02-01 Kenichi Handa <handa@m17n.org>
18803
18804 * xdisp.c (display_string): Fix for the case of zero width glyph.
18805
18806 * xfns.c (x_set_font): Change the error message of the case that
18807 x_new_fontset returns Qt.
18808
18809 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
18810 (Finternal_set_lisp_face_attribute): Use signal_error for the
18811 error of invalid fontset.
18812
18813 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
18814 fontset, return Qt.
18815
188162008-02-01 Dave Love <fx@gnu.org>
18817
18818 * unexelf.c (unexec): Make .got handling not SGI-specific.
18819
18820 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
18821
18822 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
18823
18824 * keyboard.c (read_key_sequence): Fix type error.
18825
18826 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
18827 type error.
18828
18829 * fontset.c (fontset_add): Return Lisp_Object.
18830
188312008-02-01 Dave Love <fx@gnu.org>
18832
18833 * charset.h (charset_ordered_list_tick): Declare extern.
18834
188352008-02-01 Kenichi Handa <handa@m17n.org>
18836
18837 The following changes (and some of 2008-02-01 changes of mine) are
18838 for handling syntax, category, and case conversion for unibyte
18839 characters by converting them to multibyte on the fly. With these
18840 changes, we don't have to setup syntax and case tables for unibyte
18841 characters in each language environment.
18842
18843 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
18844 multibyte if necessary.
18845
18846 * bytecode.c (Fbyte_code): Likewise.
18847
18848 * character.h (LEADING_CODE_LATIN_1_MIN)
18849 (LEADING_CODE_LATIN_1_MAX): New macros.
18850 (unibyte_to_multibyte_table): Extern it.
18851 (unibyte_char_to_multibyte): New macro.
18852 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
18853 (CHAR_LEADING_CODE): New macro.
18854 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
18855
18856 * character.c (unibyte_to_multibyte_table): New variable.
18857 (unibyte_char_to_multibyte): Move to character.h and define as macro.
18858 (multibyte_char_to_unibyte): If C is an eight-bit character,
18859 convert it to the corresponding byte value.
18860
18861 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
18862 not 1, signals an error. Update the elements of
18863 unibyte_to_multibyte_table.
18864 (init_charset_once): Initialize unibyte_to_multibyte_table.
18865 (syms_of_charset): Define the charset `iso-8859-1'.
18866
18867 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
18868 as is without converting it to unibyte. In a unibyte buffer,
18869 convert C to multibyte before checking the syntax.
18870
18871 * lisp.h (unibyte_char_to_multibyte): Delete extern.
18872
18873 * minibuf.c (Fminibuffer_complete_word): Use the macro
18874 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
18875
18876 * regex.h (struct re_pattern_buffer): New member target_multibyte.
18877
18878 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
18879 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
18880 that is zero, convert an eight-bit char to multibyte.
18881 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
18882 non-emacs case.
18883 (PATFETCH): Convert an eight-bit char to multibyte.
18884 (HANDLE_UNIBYTE_RANGE): New macro.
18885 (regex_compile): Setup the compiled pattern for multibyte chars
18886 even if the given regex string is unibyte. Use PATFETCH_RAW
18887 instead of PATFETCH in many places. To handle `charset'
18888 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
18889 only for ASCII chars.
18890 (analyse_first) <exactn>: Simplify because the compiled pattern
18891 is multibyte.
18892 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
18893 <charset>: Use CHAR_LEADING_CODE to get leading codes.
18894 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
18895 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
18896 multibyte always 1.
18897 (re_search_2): In emacs, set the locale variable multibyte to 1,
18898 otherwise to 0. New local variable target_multibyte. Check it
18899 to decide the multibyteness of STR1 and STR2. If
18900 target_multibyte is zero, convert unibyte chars to multibyte
18901 before translating and checking fastmap.
18902 (TARGET_CHAR_AND_LENGTH): New macro.
18903 (re_match_2_internal): In emacs, set the locale variable multibyte
18904 to 1, otherwise to 0. New local variable target_multibyte. Check
18905 it to decide the multibyteness of STR1 and STR2. Use
18906 TARGET_CHAR_AND_LENGTH to fetch a character from D.
18907 <charset, charset_not>: If multibyte is nonzero, check fastmap
18908 only for ASCII chars. Call bcmp_translate with
18909 target_multibyte, not with multibyte.
18910 <begline>: Declare the local variable C as `unsigned'.
18911 (bcmp_translate): Change the last arg name to target_multibyte.
18912
18913 * search.c (compile_pattern_1): Don't adjust the multibyteness of
18914 the regexp pattern and the matching target. Set cp->buf.multibyte
18915 to the multibyteness of the regexp pattern. Set
18916 cp->but.target_multibyte to the multibyteness of the matching target.
18917 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
18918 FETCH_STRING_CHAR_ADVANCE.
18919 (Freplace_match): Convert unibyte chars to multibyte.
18920
18921 * syntax.c (char_quoted, back_comment, scan_words)
18922 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
18923 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
18924 unibyte chars to multibyte.
18925 (skip_chars): Delete the arg syntaxp, and move the code for
18926 handling syntaxes to skip_syntaxes. Change callers.
18927 Fix the case that the multibyteness of STRING and the current
18928 buffer doesn't match.
18929 (skip_syntaxes): New function.
18930 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
18931 SINGLE_BYTE_CHAR_P.
18932
189332008-02-01 Kenichi Handa <handa@m17n.org>
18934
18935 * xfaces.c (QCfontset): New variable.
18936 (LFACE_FONTSET): New macro.
18937 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
18938 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
18939 (Finternal_set_lisp_face_attribute)
18940 (Finternal_get_lisp_face_attribute): Handle QCfontset.
18941 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
18942 check also LFACE_FONTSET_INDEX.
18943 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
18944 attrs[LFACE_FONT_INDEX].
18945 (syms_of_xfaces): Intern and staticpro QCfontset.
18946
18947 * dispextern.h (enum lface_attribute_index): New member
18948 LFACE_FONTSET_INDEX.
18949
18950 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
18951
189522008-02-01 Kenichi Handa <handa@m17n.org>
18953
18954 * coding.c (coding_set_destination): Fix coding->destination for
18955 the case converting a region.
18956 (encode_coding_utf_8): Encode eight-bit chars as single byte.
18957 (encode_coding_object): Fix coding->dst_pos and
18958 coding->dst_pos_byte for the case converting a region.
18959
18960 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
18961
18962 * character.h (BYTE8_STRING): New macro.
18963
18964 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
18965
189662008-02-01 Kenichi Handa <handa@m17n.org>
18967
18968 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
18969 characters by octal form.
18970
18971 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
18972
18973 * buffer.h (_fetch_multibyte_char_len): Delete extern.
18974 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
18975 _fetch_multibyte_char_len.
18976 (FETCH_CHAR_AS_MULTIBYTE): New macro.
18977
18978 * casetab.c (set_canon, set_identity, shuffle): Simplify.
18979
18980 * casefiddle.c (casify_object): Simplify. Handle the case that
18981 the case conversion change the byte length.
18982 (casify_region): Likewise.
18983
18984 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
18985
18986 * character.c (_fetch_multibyte_char_len): Delete this variable.
18987 (syms_of_character): Setup Vprintable_chars.
18988
18989 * editfns.c (Fchar_equal): Fix for the unibyte case.
18990 (Finsert_byte): New function.
18991 (syms_of_editfns): Defsubr it.
18992
18993 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
18994 of direct code 0x3ffff.
18995
18996 * search.c (Freplace_match): Fix for the unibyte case.
18997
189982008-02-01 Kenichi Handa <handa@m17n.org>
18999
19000 * lread.c (safe_to_load_p): Fix the logic.
19001
19002 * syntax.c (scan_words): Don't treat characters belonging to
19003 different scripts as constituting a word.
19004
19005 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
19006
19007 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
19008
19009 * emacs.c (main): In the case of --unibyte, instead of aborting on
19010 finding non-empty buffer, make it unibyte.
19011
190122008-02-01 Kenichi Handa <handa@m17n.org>
19013
19014 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
19015 to create a fontset.
19016
190172008-02-01 Dave Love <fx@gnu.org>
19018
19019 * character.c (Funibyte_char_to_multibyte): Doc fix.
19020
19021 * xfns.c [HAVE_STDLIB_H]: Fix last change.
19022
190232008-02-01 Kenichi Handa <handa@m17n.org>
19024
19025 * fontset.c (fontset_add): Make the type `int'.
19026 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
19027
19028 * character.c (unibyte_char_to_multibyte)
19029 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
19030 charset_unibyte, not charset_primary.
19031
19032 * charset.h (charset_unibyte): Extern it instead of charset_primary.
19033
19034 * charset.c (charset_unibyte): Rename from charset_primary.
19035 (Funibyte_charset): Rename from Fprimary_charset.
19036 (Fset_unibyte_charset): Rename from Fset_primary_charset.
19037 (syms_of_charset): Adjust for the above changes.
19038
19039 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
19040 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
19041 it->multibyte_p is zero.
19042
19043 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
19044 Delete extern.
19045
190462008-02-01 Kenichi Handa <handa@m17n.org>
19047
19048 * coding.c (Fdefine_coding_system_internal): Fix category setting
19049 for a coding system of type iso-2022.
19050
190512008-02-01 Kenichi Handa <handa@m17n.org>
19052
19053 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
19054
190552008-02-01 Kenichi Handa <handa@m17n.org>
19056
19057 * syntax.c (Vnext_word_boundary_function_table): New variable.
19058 (next-word-boundary-function-table): Declare it as a Lisp variable
19059 in syms_of_syntax.
19060 (scan_words): Call functions in Vnext_word_boundary_function_table
19061 if any.
19062
19063 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
19064
19065 * fontset.c (fs_load_font): If fontp->charset is not negative,
19066 return fontp without setting its members.
19067
190682008-02-01 Dave Love <fx@gnu.org>
19069
19070 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
19071
19072 * m/sparc.h (HAVE_ALLOCA): Delete.
19073
19074 * s/irix6-5.h: Don't include strings.h.
19075 (bcopy, bzero, bcmp): Don't undef.
19076
19077 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
19078
19079 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
19080 (TIOCSIGSEND): Don't test IRIX6.
19081 (bcopy, bzero, bcmp): Define conditionally.
19082
190832008-02-01 Kenichi Handa <handa@m17n.org>
19084
19085 * buffer.c (Qas, Qmake, Qto): New variables.
19086 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
19087 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
19088
19089 * callproc.c (Fcall_process): Don't call insert_1_both directly if
19090 we are inserting a process output into a multibyte buffer.
19091
19092 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
19093 multibyte_char_to_unibyte.
19094
19095 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
19096 by the primary charset, make it eight-bit char.
19097 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
19098
19099 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
19100 (charset_8_bit__control, charset_8_bit_graphic)
19101 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
19102 (define_charset_internal): New function.
19103 (syms_of_charset): Call define_charset_internal for pre-defined
19104 charsets.
19105
19106 * charset.h (charset_8_bit): Extern it.
19107
19108 * coding.c (make_conversion_work_buffer): Adjust for the change
19109 of Fset_buffer_multibyte.
19110 (encode_coding_raw_text): Increment p0 in the loop.
19111
19112 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
19113
19114 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
19115 for the change of Fset_buffer_multibyte.
19116
19117 * fns.c (Fstring_to_multibyte): New function.
19118 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
19119
191202008-02-01 Dave Love <fx@gnu.org>
19121
19122 * xfns.c (x_put_x_image): Declare args.
19123
19124 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
19125 (try_font_list): Declare an arg.
19126
19127 * xdisp.c (message2_nolog, set_message): Declare an arg.
19128
19129 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
19130
19131 * syntax.c (scan_sexps_forward): Declare an arg.
19132
19133 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
19134 Declare an arg.
19135
19136 * lisp.h (Fnew_fontset): Declare.
19137
19138 * keymap.c (push_key_description): Call CHARACTERP correctly.
19139
19140 * fontset.c (fontset_add): Declare args. Call make_number correctly.
19141 (face_for_char): Delete unused vars.
19142 (Fset_fontset_font): Doc fix. Delete unused vars.
19143
19144 * doc.c (Fsubstitute_command_keys): Delete unused vars.
19145
19146 * composite.c (update_compositions): Declare arg.
19147
19148 * cm.c (calccost, cmgoto): Declare args.
19149
19150 * charset.c: Remove `emacs' conditional. Doc fixes.
19151 (map_char_table_for_charset): Declare.
19152
19153 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
19154
19155 * ccl.c: Remove `emacs' conditional.
19156
191572008-02-01 Kenichi Handa <handa@m17n.org>
19158
19159 The following changes are to allow specifying multiple font
19160 patterns for a character range (specified by script or charset).
19161
19162 * Makefile.in (abbrev.o): Depend on syntax.h.
19163 (xfaces.o): Depend on charset.h.
19164
19165 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
19166 SINGLE_BYTE_CHAR_P.
19167
19168 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
19169
19170 * character.h (Vchar_script_table): Extern it.
19171
19172 * character.c (Vscript_alist): Delete.
19173 (Vchar_script_table, Qchar_script_table): New variable.
19174 (syms_of_character): Declare Vchar_script_table as a lisp variable
19175 and initialize it.
19176
19177 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
19178 have property char-table-extra-slots, make no extra slot.
19179
19180 * dispextern.h (struct face): Delete member `charset'.
19181 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
19182 SINGLE_BYTE_CHAR_P.
19183 (choose_face_font, lookup_non_ascii_face, font_name_registry):
19184 Add prototypes.
19185 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
19186 (generate_ascii_font_name): Rename from generate_ascii_font.
19187
19188 * fontset.h (get_font_repertory_func): New prototype.
19189 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
19190 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
19191
19192 * fontset.c (Qprepend, Qappend): New variables.
19193 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
19194 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
19195 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
19196 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
19197 (fontset_ref_and_range, fontset_add, reorder_font_vector)
19198 (load_font_get_repertory): New functions.
19199 (fontset_set): Delete.
19200 (fontset_face): New arg FACE. Return face ID, not face.
19201 Complete re-write to handle new fontset structure. Change caller.
19202 (free_face_fontset): Use ASET istead of AREF (X) = Y.
19203 (face_for_char): Don't call lookup_face.
19204 (make_fontset_for_ascii_face): New arg FACE.
19205 (fs_load_font): New arg CHARSET_ID. Don't check
19206 Vfont_encoding_alist here.
19207 (find_font_encoding): New function.
19208 (list_fontsets): Use STRINGP, not ! NILP.
19209 (accumulate_script_ranges): New function.
19210 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
19211 re-written to handle new fontset structure.
19212 (Ffontset_font): Return a copy of element.
19213 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
19214 docstring of font-encoding-alist.
19215
19216 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
19217 (Fset_fotset_font): Fix arguments to 5.
19218
19219 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
19220
19221 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
19222 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
19223 (highlight_trailing_whitespace): Adjust for the change of
19224 lookup_named_face.
19225
19226 * xfaces.c: Include charset.h.
19227 (load_face_font): Delete argument C. Change caller.
19228 (generate_ascii_font_name): Rename from generate_ascii_font.
19229 (font_name_registry): New function.
19230 (cache_face): Store ascii faces before non-ascii faces in buckets.
19231 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
19232 Lookup only ascii faces.
19233 (lookup_non_ascii_face): New function.
19234 (lookup_named_face): Delete argument C. Change caller.
19235 (lookup_derived_face): Delete argument C. Change caller.
19236 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
19237 a string, just call font_list with it.
19238 (choose_face_font): Delete arguments FACE and C. New arg
19239 FONT_SPEC. Change caller.
19240 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
19241 Change caller.
19242 (realize_non_ascii_face): New function.
19243 (realize_x_face): Call load_face_font here.
19244 (realize_tty_face): Delete argument C. Change caller.
19245 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
19246 get a face ID.
19247 (dump_realized_face): Don't print charset of FACE.
19248
19249 * xfns.c (x_set_font): Always call x_new_fontset and
19250 store_frame_parameter.
19251 (Fx_create_frame): Call x_new_fontset, not x_new_font.
19252 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
19253
19254 * xterm.h (x_get_font_repertory): Extern it.
19255
19256 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
19257 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
19258 it->multibyte_p is zero.
19259 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
19260 (x_new_fontset): If FONTSETNAME doesn't match any existing
19261 fontsets, create a new one.
19262 (x_get_font_repertory): New function.
19263
192642008-02-01 Kenichi Handa <handa@m17n.org>
19265
19266 * coding.c (Ffind_coding_systems_region_internal): Detect an
19267 ASCII only string correctly.
19268
19269 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
19270 version is 0.
19271
192722008-02-01 Kenichi Handa <handa@m17n.org>
19273
19274 * lread.c: Include "coding.h".
19275 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
19276 (load_each_byte, unread_char): New variables.
19277 (readchar_backlog): Delete.
19278 (readchar): Return a character unless load_each_byte is nonzero.
19279 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
19280 cons. If unread_char is not -1, simply return it.
19281 (unreadchar): Handle the case that readcharfun is
19282 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
19283 (read_multibyte): Delete.
19284 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
19285 (read_emacs_mule_char): New functions.
19286 (Fload): Even if the file doesn't have the extension ".elc", if
19287 safe_to_load_p returns a positive version number, assume that the
19288 file contains bytecompiled code. If the version is less than 22,
19289 load the file while decoding multibyte sequences by emacs-mule.
19290 (readevalloop): Don't use readchar_backlog.
19291 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
19292 (Fread_from_string): Pay attention to the case that STREAM is a cons.
19293 (read_escape): Delete the arg BYTEREP.
19294 (read1): Set load_each_byte to 1 temporarily while handling
19295 #@NUMBER. Don't call read_multibyte.
19296 (read_vector): Call Fread with a cons. If readcharfun is
19297 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
19298 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
19299 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
19300 and Qload_force_doc_strings.
19301
193022008-02-01 Kenichi Handa <handa@m17n.org>
19303
19304 * xdisp.c (face_before_or_after_it_pos): Call
19305 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
19306
193072008-02-01 Kenichi Handa <handa@m17n.org>
19308
19309 * character.h (TRAILING_CODE_P): New macro.
19310 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
19311 (string_char_with_unification): Fix prototype.
19312 (Vscript_alist): Extern it.
19313
19314 * character.c (Vscript_alist): New variable.
19315 (string_char_with_unification, str_as_unibyte)
19316 (string_escape_byte8): Add `const' to local variables.
19317 (syms_of_character): Declare script-alist as a Lisp variable.
19318
19319 * charset.h (Vcharset_ordered_list): Extern it.
19320 (charset_ordered_list_tick): Extern it.
19321 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
19322 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
19323 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
19324 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
19325 (Funify_charset): Adjust for the change of Funify_charset.
19326
19327 * charset.c (charset_ordered_list_tick): New variable.
19328 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
19329 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
19330 deunify intead of unify a charset.
19331 (string_xstring_p): Add `const' to local variables.
19332 (find_charsets_in_text): Add `const' to arguments and local variables.
19333 (encode_char): Adjust for the change of Funify_charset. Fix
19334 detecting of invalid code.
19335 (Fset_charset_priority): Increment charset_ordered_list_tick.
19336 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
19337 and TO_CODE.
19338
19339 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
19340 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
19341 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
19342 (decode_coding_ccl, consume_chars)
19343 (Ffind_coding_systems_region_internal)
19344 (Fcheck_coding_systems_region): Add `const' to local variables.
19345
19346 * print.c (print_object): Use octal form for printing the
19347 contents of a bool vector.
19348
193492008-02-01 Dave Love <fx@gnu.org>
19350
19351 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
19352 <version == 20>: Refuse to load.
19353
193542008-02-01 Dave Love <fx@gnu.org>
19355
19356 * fns.c: Move coding.h.
19357 (Qcodeset, Qdays, Qmonths): New.
19358 (concat): Use CHARACTERP instead of INTEGERP.
19359 (Flocale_codeset): Delete.
19360 (Flanginfo): New function.
19361 (syms_of_fns): Change accordingly.
19362
19363 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
19364
193652008-02-01 Dave Love <fx@gnu.org>
19366
19367 * casetab.c (init_casetab_once, init_casetab_once): Fix
19368 CHAR_TABLE_SET call.
19369
19370 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
19371
19372 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
19373
19374 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
19375 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
19376 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
19377
19378 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
19379
19380 * coding.c (ENCODE_DESIGNATION, decode_eol)
19381 (make_conversion_work_buffer, code_conversion_restore)
19382 (Fdefine_coding_system_internal): Convert Lisp types.
19383 (code_conversion_restore): Use EQ, not ==.
19384 (Fencode_coding_string): Fix code_convert_string call.
19385
19386 * coding.h (code_convert_region): Fix prototype.
19387
19388 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
19389
19390 * fontset.c (fontset_ref, fontset_set, fs_load_font)
19391 (Ffontset_info): Convert Lisp types.
19392
19393 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
19394
19395 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
19396
19397 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
19398
19399 * chartab.c: Include "...h", not <...h> in some cases.
19400
19401 * callproc.c (Fcall_process): Remove unused variables.
19402
194032008-02-01 Dave Love <fx@gnu.org>
19404
19405 * coding.c (Fset_coding_system_priority): Allow null arg list.
19406
194072008-02-01 Dave Love <fx@gnu.org>
19408
19409 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
19410 (Fself_insert_and_exit): Use CHARACTERP.
19411
19412 * callproc.c (Fcall_process): Remove unused vars.
19413
19414 * xterm.c (XTread_socket): Add extra dead keysyms.
19415
19416 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
19417
19418 * dispextern.h: Remove prototypes for redraw_frame,
19419 redraw_garbaged_frames.
19420
19421 * cmds.c (Fself_insert_command): Use CHARACTERP.
19422
19423 * chartab.c (make_sub_char_table): Remove unused var.
19424 (Fset_char_table_default, Fmap_char_table): Doc fix.
19425
19426 * keymap.c (access_keymap): Remove generic char code.
19427 (push_key_description): Use CHARACTERP.
19428
194292008-02-01 Dave Love <fx@gnu.org>
19430
19431 * charset.c: Doc fixes.
19432 (Funify_charset): Extra checking.
19433
194342008-02-01 Dave Love <fx@gnu.org>
19435
19436 * lread.c: Remove some unused variables.
19437 (safe_to_load_p): If safe, return the magic number version byte.
19438 (Fload): Maybe use load-with-code-conversion.
19439
194402008-02-01 Kenichi Handa <handa@m17n.org>
19441
19442 * category.c (Fmodify_category_entry): Don't modify the contents
19443 of category_set for characters out of the range. Avoid
19444 unnecessary modification.
19445
19446 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
19447 Vchar_unify_table. The default value of the table is now nil.
19448
19449 * character.c (syms_of_character): Setup Vchar_width_table for
19450 eight-bit-control and raw-byte chars.
19451
19452 * charset.h (enum define_charset_arg_index): Delete
19453 charset_arg_parents and add charset_arg_subset and
19454 charset_arg_superset.
19455 (enum charset_attr_index): Delete charset_parents and add
19456 charset_subset and charset_superset.
19457 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
19458 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
19459 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
19460 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
19461 (CHARSET_SUPERSET): New macros.
19462 (charset_work): Extern it.
19463 (ENCODE_CHAR): Use charset_work.
19464 (CHAR_CHARSET_P): Adjust for the change of encoder format.
19465 (map_charset_chars): Extern it.
19466
19467 * charset.c (load_charset_map): Set the default value of encoder
19468 and deunifier char-tables to nil.
19469 (map_charset_chars): Change argument. Change callers. Use
19470 map_char_table_for_charset instead of map_char_table.
19471 (Fmap_charset_chars): New optional args from_code and to_code.
19472 (Fdefine_charset_internal): Adjust for the change of
19473 `define-charset' (:parents -> :subset or :superset).
19474 (charset_work): New variable.
19475 (encode_char, syms_of_charset): Adjust for the change of
19476 Fdefine_charset_internal.
19477 (Ffind_charset_string): Setup the vector `charsets' correctly.
19478
19479 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
19480 the previous change.
19481 (char_table_ref_and_range): Adjust for the above change.
19482 (map_sub_char_table_for_charset): New function.
19483 (map_char_table_for_charset): New function.
19484
19485 * keymap.c (describe_vector): Handle a char-table directly here.
19486 (describe_char_table): Delete.
19487
19488 * lisp.h (map_charset_chars): Delete.
19489
194902008-02-01 Dave Love <fx@gnu.org>
19491
19492 * fns.c (count_combining): Comment out (unused).
19493 (Flocale_codeset): New.
19494 (syms_of_fns): Defsubr it.
19495
19496 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
19497 (size_t): Remove.
19498
194992008-02-01 Dave Love <fx@gnu.org>
19500
19501 * Makefile.in (chartab.o): Depend on charset.h.
19502
195032008-02-01 Kenichi Handa <handa@m17n.org>
19504
19505 * character.c (syms_of_character): Set the default value of
19506 Vprintable_chars to Qnil.
19507
195082008-02-01 Dave Love <fx@gnu.org>
19509
19510 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
19511
195122008-02-01 Kenichi Handa <handa@m17n.org>
19513
19514 * charset.c (load_charset_map): Handle the case that from < to
19515 correctly.
19516
19517 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
19518 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
19519 Pay attention to raw-8-bit chars.
19520
195212008-02-01 Kenichi Handa <handa@m17n.org>
19522
19523 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
19524 It is not bytecompiled now.
19525
19526 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
19527 (charset_jisx0208): New variables.
19528 (Fdefine_charset_internal): Setup them if appropriate.
19529 (init_charset_once): Initialize them to -1.
19530
19531 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
19532 (charset_jisx0208): Extern them.
19533
19534 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
19535 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
19536 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
19537 (setup_iso_safe_charsets): Fix arguments to Fassq.
19538 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
19539 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
19540 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
19541 (encode_coding_iso_2022): Change the 1st arg to
19542 ENCODE_ISO_CHARACTER to a variable.
19543
195442008-02-01 Kenichi Handa <handa@m17n.org>
19545
19546 * charset.h (enum define_charset_arg_index): New enums
19547 charset_arg_min_code and charset_arg_max_code.
19548 (struct charset): New member char_index_offset.
19549
19550 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
19551 Take charset->char_index_offset into account.
19552 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
19553 args[charset_arg_max_code]. Setup charset.char_index_offset.
19554 (syms_of_charset): Fix args to Fdefine_charset_internal.
19555
195562008-02-01 Dave Love <fx@gnu.org>
19557
19558 * coding.c (decode_coding_utf_8): Reject overlong sequences.
19559
195602008-02-01 Dave Love <fx@gnu.org>
19561
19562 * coding.c: Doc fixes.
19563 (Fcoding_system_aliases): Fix return value.
19564 (Qmac): Remove (duplicated) definition.
19565
195662008-02-01 Dave Love <fx@gnu.org>
19567
362654a6
JB
19568 * charset.c (Fcharset_priority_list, Fset_charset_priority):
19569 New functions.
aac0c6e3
MR
19570
19571 * character.c (Fstring): Doc fix.
19572
19573 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
19574
362654a6 19575 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
aac0c6e3
MR
19576 (font-encoding-alist): Doc fix.
19577
195782008-02-01 Dave Love <fx@gnu.org>
19579
19580 * term.c (costs_set): Declare static, non-initialized for pcc.
19581 (encode_terminal_code): Remove unused var.
19582
19583 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
19584 for K&R.
19585
19586 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
19587
19588 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
19589 (suffixes): Move out of make_subsidiaries for K&R.
19590
19591 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
19592
19593 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
19594
195952008-02-01 Dave Love <fx@gnu.org>
19596
19597 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
19598
19599 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
19600
196012008-02-01 Yong Lu <lyongu@asia-infonet.com>
19602
19603 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
19604
19605 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
19606
196072008-02-01 Kenichi Handa <handa@m17n.org>
19608
19609 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
19610 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
19611
196122008-02-01 Kenichi Handa <handa@m17n.org>
19613
19614 * coding.c (decode_coding_charset): Adjust for the change of
19615 Fdefine_coding_system_internal.
19616 (Fdefine_coding_system_internal): For a coding system of
19617 `charset' type, store a list of charset IDs in
19618 `charset_attr_charset_valids' element of coding attributes.
19619
196202008-02-01 Kenichi Handa <handa@m17n.org>
19621
19622 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
19623 (emacs_mule_char): New arg src. Delete arg `composition'. Change
19624 caller. Handle 2-byte and 3-byte charsets correctly.
19625 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
19626 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
19627 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
19628 (DECODE_EMACS_MULE_21_COMPOSITION): Call
19629 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
19630 sequence.
19631 (decode_coding_emacs_mule): Handle composition correctly. Rewind
19632 `src' and `consumed_chars' correctly before calling emacs_mule_char.
19633 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
19634 and alt&rule composition.
19635 (decode_coding_iso_2022): Handle composition correctly.
19636 (init_coding_once): Setup emacs_mule_bytes for private charsets.
19637
19638 * charset.c (Fdefine_charset_internal): Fix bug for the case of
19639 re-defining a charset. If the charset has :emacs-mule-id, setup
19640 emacs_mule_bytes.
19641 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
19642
196432008-02-01 Kenichi Handa <handa@m17n.org>
19644
19645 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
19646 (encode_coding_big5, encode_coding_charset): If coding requires safe
19647 encoding, produce a character specified by
19648 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
19649
196502008-02-01 Dave Love <fx@gnu.org>
19651
19652 * xterm.c (XSetIMValues): Declare.
19653
19654 * process.c: Conditionally include sys/wait.h, pty.h.
19655
19656 * print.c (print_object): Fix print format for 64-bit systems.
19657
19658 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
19659
19660 * buffer.c (emacs_strerror): Declare.
19661
19662 * fontset.c (Fclear_face_cache): Declare.
19663 (accumulate_font_info): Comment-out (unused).
19664 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
19665 variables.
19666
19667 * character.h (string_escape_byte8): Declare.
19668
19669 * charset.c (load_charset_map, load_charset_map_from_file): Remove
19670 unused vars.
19671 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
19672 (Fmap_charset_chars): Doc fix.
19673
19674 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
19675 (Fset_coding_system_priority, Fset_coding_system_priority)
19676 (Fdefine_coding_system_internal): Doc fix.
19677
196782008-02-01 Dave Love <fx@gnu.org>
19679
19680 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
19681
196822008-02-01 Kenichi Handa <handa@m17n.org>
19683
19684 * character.c (string_escape_byte8): Make multibyte string with
19685 correct size.
19686
19687 * charset.c (Fmake_char): Delete unnecessary code.
19688
196892008-02-01 Kenichi Handa <handa@m17n.org>
19690
19691 * xfns.c (x_encode_text): Allocate coding.destination here, and
19692 call encode_coding_object with dst_object Qnil.
19693
19694 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
19695 multibyte form correctly.
19696
19697 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
19698 against Vfont_encoding_alist.
19699
19700 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
19701 handling of charset list.
19702 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
19703 (decode_coding_object): Move point to coding->dst_pos before
19704 calling post-read-conversion function.
19705 (encode_coding_object): Give correct arguments to
19706 pre-write-conversion. Ignore the return value of
19707 pre-write-conversion function. Pay attention to the case that
19708 pre-write-conversion changes the current buffer. If dst_object is
19709 Qt, even if coding->src_bytes is zero, allocate at least one byte
19710 to coding->destination.
19711
19712 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
19713
19714 * charset.c (Fmake_char): Make it more backward compatible.
19715 (Fmap_charset_chars): Fix docstring.
19716
197172008-02-01 Dave Love <fx@gnu.org>
19718
19719 * coding.c: Doc fixes.
19720 (Fdefine_coding_system_alias): Use names, not symbols, in
19721 coding-system-alist.
19722
197232008-02-01 Kenichi Handa <handa@m17n.org>
19724
19725 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
19726 of calling free_realized_face.
19727
197282008-02-01 Yong Lu <lyongu@asia-infonet.com>
19729
19730 * charset.c (read_hex): Don't treat SPC as a comment starter.
19731 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
19732 (Fdecode_char): Fix typo.
19733
197342008-02-01 Kenichi Handa <handa@m17n.org>
19735
19736 * charset.h (struct charset): New member `code_space_mask'.
19737
19738 * coding.c (coding_set_source): Delete the local variable beg_byte.
19739 (encode_coding_charset, Fdefine_coding_system_internal):
19740 Delete the local variable charset.
19741 (Fdefine_coding_system_internal): Setup
19742 attrs[coding_attr_charset_valids] correctly.
19743
19744 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
19745 member to check if CODE is valid or not.
19746 (Fdefine_charset_internal): Initialize `code_space_mask' member.
19747 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
19748 is within the range of charset->min_code and carset->max_code.
19749
197502008-02-01 Dave Love <fx@gnu.org>
19751
19752 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
19753
19754 * dispextern.h (generate_ascii_font): Fix return type.
19755
19756 * xfaces.c (generate_ascii_font): Fix arg declaration.
19757
19758 * coding.c (coding_inherit_eol_type)
19759 (Fset_terminal_coding_system_internal)
19760 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
19761
197622008-02-01 Kenichi Handa <handa@m17n.org>
19763
19764 * coding.c (decode_coding_charset, encode_coding_charset): Handle
19765 multiple charsets correctly.
19766
197672008-02-01 Kenichi Handa <handa@m17n.org>
19768
19769 * search.c (boyer_moore): Fix handling of multibyte character
19770 translation.
19771
19772 * xdisp.c (display_mode_element): When the variable `elt' is
19773 changed, update `this' and `lisp_string'.
19774
197752008-02-01 Kenichi Handa <handa@m17n.org>
19776
19777 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
19778
19779 * callproc.c (Fcall_process): Be sure to give the current buffer
19780 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
19781
19782 * charset.c (struct charset_map_entries): New struct.
19783 (load_charset_map): Rename from parse_charset_map. New args
19784 entries and n_entries. Change caller.
19785 (load_charset_map_from_file): Rename from load_charset_map.
19786 Change caller. New arg control_flag. Call load_charset_map at
19787 the tail.
19788 (load_charset_map_from_vector): New function.
19789 (Fdefine_charset_internal): Setup charset.compact_codes_p.
19790 (encode_char): If the charset is compact, change a character index
19791 to a code point.
19792
19793 * coding.c (coding_alloc_by_making_gap): Check the case that the
19794 source and destination are the same correctly.
19795 (decode_coding_raw_text): Set coding->consumed_char and
19796 coding->consumed to 0.
19797 (produce_chars): If coding->chars_at_source is nonzero, update
19798 coding->consumed_char and coding->consumed before calling
19799 alloc_destination.
19800 (Fdefine_coding_system_alias): Register ALIAS in
19801 Vcoding_system_alist.
19802 (syms_of_coding): Define `no-conversion' coding system at the tail.
19803
19804 * fileio.c (Finsert_file_contents): Set coding_system instead of
19805 val. If the current buffer is multibyte, always call
19806 decode_coding_gap.
19807
19808 * xfaces.c (try_font_list): Give higher priority to fontset's
19809 family than face's family.
19810
198112008-02-01 Kenichi Handa <handa@m17n.org>
19812
19813 * callproc.c (Fcall_process): Be sure to give the current buffer
19814 to decode_coding_c_string.
19815
19816 * xfaces.c (try_font_list): Give a family specified in a fontset
19817 higher priority than a family specified in a face.
19818
198192008-02-01 Kenichi Handa <handa@m17n.org>
19820
19821 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
19822 Fix arguments to insert_from_buffer.
19823
19824 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
19825
198262008-02-01 Kenichi Handa <handa@m17n.org>
19827
19828 * coding.c (produce_chars): Set the variable `multibytep' correctly.
19829 (decode_coding_gap): Set coding->dst_multibyte correctly.
19830
198312008-02-01 Kenichi Handa <handa@m17n.org>
19832
19833 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
19834 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
19835 (encode_coding_utf_16): Substitute coding->default_char for
19836 non-Unicode characters.
19837 (decode_coding): Don't call record_insert here.
19838 (setup_coding_system): Initialize `surrogate' of
19839 coding->spec.utf_16 to 0.
19840 (EMIT_ONE_BYTE): Fix for multibyte case.
19841
19842 * insdel.c (insert_from_gap): Call record_insert.
19843
198442008-02-01 Kenichi Handa <handa@m17n.org>
19845
19846 * casefiddle.c (casify_region): Fix multibyte case.
19847
19848 * character.c (c_string_width): Add return type `int'.
19849 (char_string_with_unification): Delete arg ADVANCED.
19850
19851 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
19852 (CHAR_STRING): Adjust for the change of char_string_with_unification.
19853 (CHAR_STRING_ADVANCE): Make it do-while statement.
19854
19855 * chartab.c (sub_char_table_set_range): Optimize for the case
19856 DEPTH == 3. Add workaround code for a GCC optimization bug.
19857
19858 * charset.c (parse_charset_map): Remove an unused variable.
19859
19860 * coding.c: Delete unused variables.
19861
19862 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
19863 earlier. If inserted is zero and the coding system doesn't
19864 require flushing, don't call decode_coding_gap.
19865
19866 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
19867
198682008-02-01 Kenichi Handa <handa@m17n.org>
19869
19870 The following changes are for using Unicode as an internal
19871 character model, and use UTF-8 format for buffer/string
19872 representation.
19873
19874 * .gdbinit (xchartable): Adjust for the change of char table structure.
19875 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
19876
19877 * Makefile.in (obj): Add character.o and chartab.o.
19878 (lisp, shortlisp): Remove utf-8.elc.
19879 (*.o): For many files, change dependency on charset.h to
19880 character.h, and add dependency on character.h.
19881 (character.o, chartab.o): New targets.
19882
19883 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
19884 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
19885 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
19886 of "charset.h".
19887
19888 * dired.c, filelock.c: Include "character.h".
19889
19890 * alloc.c: Include "character.h" instead of "charset.h".
19891 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
19892 (syms_of_alloc): Remove defsubr for Smake_char_table.
19893
19894 * buffer.c: Include "character.h" instead of "charset.h", don't
19895 include "coding.h".
19896 (Fset_buffer_multibyte): Adjust for UTF-8.
19897
19898 * buffer.h: EXFUN Fbuffer_live_p.
19899
19900 * callproc.c: Include "character.h" instead of "charset.h".
19901 (Fcall_process): Big change for the new code-conversion APIs.
19902
19903 * casetab.c: Include "character.h" instead of "charset.h".
19904 (set_canon, set_identity, shuffle): Adjust for the new
19905 map_char_table spec.
19906 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
19907 accessing the char table structure.
19908
19909 * chartab.c: New file that implements char table.
19910
19911 * category.c: Include "character.h".
19912 (copy_category_entry): New function.
19913 (copy_category_table): Call map_char_table and copy_category_entry.
19914 (Fmake_category_table): Initialize all top-level slots.
19915 (char_category_set): New function.
19916 (modify_lower_category_set): Delete.
19917 (Fmodify_category_entry): Call char_table_ref_and_range.
19918
19919 * category.h (CATEGORY_SET): Just call char_category_set.
19920
19921 * ccl.c: Include "character.h".
19922 (Qccl, Qcclp): New variables.
19923 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
19924 it's less than 256.
19925 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
19926 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
19927 and DST type.
19928 (ccl_driver): Change types of argument, adjust code accordingly.
19929 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
19930 ccl_driver.
19931 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
19932
19933 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
19934 New members src_multibyte, dst_multibyte, consumed, and produced.
19935 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
19936 (CODING_SPEC_CCL_PROGRAM): New macro.
19937 (ccl_driver): Update prototype.
19938 (Qccl, Qcclp, Fccl_program_p): Extern them.
19939 (CHECK_CCL_PROGRAM): New macro.
19940
19941 * character.c, character.h, chartab.c: New files.
19942
19943 * charset.c: Mostly re-written. Move character and multibyte sequence
19944 handling codes to character.c.
19945
19946 * charset.h: Mostly re-written. Move character and multibyte sequence
19947 handling codes to character.h.
19948
19949 * coding.c, coding.h: Mostly re-written.
19950
19951 * composite.c: Include "character.h" instead of "charset.h".
19952 (CHAR_WIDTH): Move to character.h.
19953 (HASH_KEY, HASH_VALUE): Delete.
19954
19955 * composite.h (enum composition_method): Change order of enumeration
19956 symbols.
19957
19958 * data.c: Include "character.h" instead of "charset.h".
19959 (Faref): Call CHAR_TABLE_REF for a char table.
19960 (Faset): Call CHAR_TABLE_SET for a char table.
19961
19962 * dispextern.h (free_realized_face, check_face_attribytes)
19963 (generate_ascii_font): Extern them.
19964 (free_realized_multibyte_face): Delete extern.
19965
19966 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
19967 table structure.
19968
19969 * editfns.c: Include "character.h" instead of "charset.h".
19970 (Fchar_to_string): Always call CHAR_STRING.
19971
19972 * emacs.c (main): Call init_charset_once, init_charset,
19973 syms_of_chartab, and syms_of_character.
19974
19975 * fileio.c: Include "character.h" instead of "charset.h".
19976 (Finsert_file_contents): Big change for the new code-conversion API.
19977 (choose_write_coding_system, Fwrite_region): Likewise.
19978 (build_annotations_2): Delete.
19979 (e_write): Big change for the new code-conversion API.
19980
19981 * fns.c: Include "character.h" instead of "charset.h".
19982 (copy_sub_char_table): Move to chartab.c.
19983 (Fcopy_sequence): Call copy_char_table for a char table.
19984 (concat): Delete codes calling count_multibyte.
19985 (string_char_to_byte, string_byte_to_char): Adjust for the new
19986 multibyte form.
19987 (internal_equal): Adjust for the change of char table structure.
19988 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
19989 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
19990 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
19991 (char_table_translate, optimize_sub_char_table)
19992 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
19993 chartab.c.
19994 (char_table_ref_and_index): Delete.
19995 (HASH_KEY, HASH_VALUE): Move to lisp.h.
19996 (Fmd5): Call preferred_coding_system instead of accessing
19997 Vcoding_category_list. Adjust for the new code-conversion API.
19998 (syms_of_fns): Move defsubr for char table related functions to
19999 chartab.c.
20000
20001 * fontset.c: Mostly re-written.
20002
20003 * fontset.h (struct font_info): Change type of the member encoding_type.
20004 (enum FONT_SPEC_INDEX): New enum.
20005 (fontset_font_pattern, fs_load_font): Update prototype.
20006 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
20007
20008 * indent.c: Include "character.h" instead of "charset.h".
20009 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
20010
20011 * insdel.c: Include "character.h" instead of "charset.h".
20012 (copy_text): Don't refer to Vnonascii_translation_table.
20013 (insert_from_gap): New function.
20014
20015 * keyboard.c: Include "character.h" instead of "charset.h".
20016 (command_loop_1): Never call direct_output_forward_char before
20017 a non-ASCII character.
20018 (read_char): If Vkeyboard_translate_table is a char table, always
20019 translate a character.
20020
20021 * keymap.c: Include "character.h".
20022 (store_in_keymap): Handle the case that IDX is a cons.
20023 (Fdefine_key): Handle the case that KEY is a cons and the car part
20024 is also a cons (range).
20025 (push_key_description): Adjust for the new character code.
20026 (describe_vector): Call describe_char_table for a char table.
20027 (describe_char_table): New function.
20028
20029 * keymap.h (describe_char_table): Extern it.
20030
20031 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
20032 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
20033 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
20034 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
20035 Delete.
20036 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
20037 structure.
20038 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
20039 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
20040 (CHARTAB_SIZE_BITS_3): New macros.
20041 (chartab_size): Extern it.
20042 (struct Lisp_Char_Table): Re-design.
20043 (struct Lisp_Sub_Char_Table): New structure.
20044 (HASH_KEY, HASH_VALUE): Move from fns.c.
20045 (CHARACTERBITS): Define as 22.
20046 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
20047 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
20048 (GC_SUB_CHAR_TABLE_P): New macro.
20049 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
20050 (code_convert_string_norecord): Deleted extern.
20051 (init_character_once, syms_of_character, init_charset)
20052 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
20053
20054 * lread.c: Include "character.h".
20055 (read_multibyte): New arg NBYTES.
20056 (read_escape): Change the meaning of returned *BYTEREP.
20057 (to_multibyte): Delete.
20058 (read1): Adjust the handling of char table and string.
20059
20060 * print.c: Include "character.h" instead of "charset.h".
20061 (print_string): Convert 8-bit raw bytes to octal form by
20062 string_escape_byte8.
20063 (print_object): Adjust for the new multibyte form. Print 8-bit
20064 raw bytes always in octal form. Handle sub char table correctly.
20065
20066 * process.c: Include "character.h" instead of "charset.h".
20067 (read_process_output, send_process): Adjust for the new
20068 code-conversion API.
20069
20070 * puresize.h (BASE_PURESIZE): Increase.
20071
20072 * regex.c: Include "character.h" instead of "charset.h".
20073 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
20074 (regex_compile): Accept a range whose starting and ending
20075 character have different leading bytes.
20076 (analyse_first): Adjust for the above change.
20077
20078 * search.c: Include "character.h" instead of "charset.h".
20079 (search_buffer, boyer_moore): Adjust for the new multibyte form.
20080 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
20081
20082 * syntax.c: Include "character.h" instead of "charset.h".
20083 (syntax_parent_lookup): Delete.
20084 (Fmodify_syntax_entry): Accept a cons as CHAR.
20085 (skip_chars): Adjust for the new multibyte form.
20086 (init_syntax_once): Call char_table_set_range instead of directly
20087 accessing the structure of a char table.
20088
20089 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
20090 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
20091 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
20092 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
20093
20094 * term.c: Include "buffer.h" and "character.h".
20095 (encode_terminal_code, write_glyphs): Adjust for the new
20096 code-conversion API.
20097 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
20098
20099 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
20100
20101 * xdisp.c: Include "character.h".
20102 (get_next_display_element): Adjust for the new multibyte form.
20103 (disp_char_vector): Adjust for the new char table structure.
20104 (decode_mode_spec_coding): Adjust for the new structure of
20105 coding system.
20106 (decode_mode_spec): Adjust for the new code-conversion API.
20107
20108 * xfaces.c: Include "character.h" instead of "charset.h".
20109 (load_face_font): Adjust for the change of choose_face_font and
20110 FS_LOAD_FONT.
20111 (generate_ascii_font): New function.
20112 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
20113 (set_font_frame_param): Adjust for the change of choose_face_font.
20114 (free_realized_face): Make it public.
20115 (free_realized_faces_for_fontset): Rename from
20116 free_realized_multibyte_face. Free also faces realized for ASCII.
20117 (choose_face_font): Change arguments. Adjust for the change of
20118 fontset_font_pattern and FS_LOAD_FONT.
20119
20120 * xfns.c: Include "character.h".
20121 (x_encode_text): Adjust for the new code-conversion API.
20122
20123 * xselect.c: Don't include "charset.h".
20124 (selection_data_to_lisp_data): Adjust for the new code conversion API.
20125
20126 * xterm.c: Include "character.h".
20127 (x_encode_char): New argument CHARSET. Change caller.
20128 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
20129 Call ENCODE_CHAR instead of SPLIT_CHAR.
20130 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
20131 CHAR_WIDTH instead of CHARSET_WIDTH.
20132 (XTread_socket): Adjust for the new code-conversion API.
20133 (x_new_font): Adjust for the change of FS_LOAD_FONT.
20134 (x_load_font): Adjust for the change of struct font.
20135
201362008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
20137
20138 * xfaces.c (face_at_buffer_position): Remove unused vars.
20139
201402008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20141
20142 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
20143 Fix overflow checking.
20144
201452008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20146
20147 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
20148 Cancel previous change.
20149
201502008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
20151
20152 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
20153 ccl->eight_bit_control. Fix check for buffer overflow.
20154 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
20155 (ccl_driver): Initialize extra_bytes to 0.
20156
201572008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
20158
20159 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
20160 return it ORed with ctrl_modifier.
20161
201622008-01-29 Miles Bader <miles@gnu.org>
20163
20164 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
20165
201662008-01-28 Jason Rumney <jasonr@gnu.org>
20167
20168 * w32.c (stat): Don't double check for networked drive.
20169
201702008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
20171
20172 * window.c (run_window_configuration_change_hook): New function.
20173 Code extracted from set_window_buffer. Set the selected frame.
20174 (set_window_buffer): Use it.
20175 * window.h (run_window_configuration_change_hook): Declare.
20176 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
20177
20178 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
20179
201802008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
20181
20182 * Makefile.in: Remove references to unused macros.
20183
201842008-01-26 Eli Zaretskii <eliz@gnu.org>
20185
20186 * w32.c (g_b_init_get_sid_sub_authority)
20187 (g_b_init_get_sid_sub_authority_count): New static variables.
20188 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
20189 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
20190 (init_user_info): Use them to retrieve uid and gid.
20191 Use 500/513, the Windows defaults, as Administrator's uid/gid.
20192 (fstat): Use pw_uid and pw_gid from the_passwd structure for
20193 st_uid and st_gid of the file.
20194
201952008-01-26 Jason Rumney <jasonr@gnu.org>
20196
20197 * w32.c (logon_network_drive): New function.
20198 (stat): Use it.
20199
202002008-01-26 Chong Yidong <cyd@stupidchicken.com>
20201
20202 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
20203 invisible text covered with an ellipsis.
20204
202052008-01-25 Richard Stallman <rms@gnu.org>
20206
20207 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
20208 jump back to beginning. Move some other initializations after that.
20209 (Qwindow_text_change_functions, Vwindow_text_change_functions):
20210 New variables.
20211 (syms_of_xdisp): Init them.
20212
20213 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
20214
20215 * buffer.c (reset_buffer_local_variables):
20216 Implement `permanent-local-hook'.
20217 (Qpermanent_local_hook): New variable.
20218 (syms_of_buffer): Init and staticpro it.
20219
202202008-01-25 Michael Albinus <michael.albinus@gmx.de>
20221
20222 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
20223
202242008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
20225
20226 * fns.c (Fclrhash): Return TABLE.
20227
202282008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20229
20230 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
20231 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
20232 is set even without positional changes.
20233 (x_scroll_bar_clear): Set bar->redraw_needed_p.
20234
20235 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
20236
202372008-01-23 Jason Rumney <jasonr@gnu.org>
20238
20239 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
20240
20241 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
20242 the unicode range available in MULE by locale-coding-system.
20243 Improve dbcs lead byte detection. Set event timestamp and modifiers
20244 earlier.
20245
202462008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20247
20248 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
20249 [MAC_OSX] (init_mac_osx_environment): Initialize it.
20250 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
20251 when used on child processes.
20252
202532008-01-21 Michael Albinus <michael.albinus@gmx.de>
20254
20255 * dbusbind.c (Fdbus_method_return_internal): Rename from
20256 Fdbus_method_return.
20257 (Fdbus_unregister_object): Move to dbus.el.
20258 (Fdbus_call_method, Fdbus_method_return_internal)
20259 (Fdbus_send_signal): Improve debug messages.
20260
202612008-01-20 Martin Rudalics <rudalics@gmx.at>
20262
20263 * undo.c (undo_inhibit_record_point): New variable.
20264 (syms_of_undo): Initialize it.
20265 (record_point): Don't record point when undo_inhibit_record_point
20266 is set.
20267
202682008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
20269
20270 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
20271
20272 * xdisp.c (Qauto_hscroll_mode): New var.
20273 (syms_of_xdisp): Initialize it.
20274 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
20275 window's buffer.
20276 (hscroll_windows): Don't check automatic_hscrolling_p here.
20277
20278 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
20279 vscroll if we're setting window-buffer to the value it already has.
20280
202812008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
20282
20283 * m/intel386.h: Remove references to XENIX.
20284
202852008-01-17 Andreas Schwab <schwab@suse.de>
20286
20287 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
20288 instead of HAVE_X86_64_LIB64_DIR.
20289 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
20290
202912008-01-17 Glenn Morris <rgm@gnu.org>
20292
20293 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
20294 to HAVE_X86_64_LIB64_DIR.
20295
202962008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
20297
20298 * s/irix3-3.h:
20299 * s/irix4-0.h:
20300 * s/386-ix.h:
20301 * s/domain.h:
20302 * s/hpux9-x11r4.h:
20303 * s/hpux9shxr4.h: Remove files for systems no longer supported.
20304
20305 * sysdep.c: Remove code containing references to symbols defined
20306 by unsupported systems.
20307
203082008-01-16 Glenn Morris <rgm@gnu.org>
20309
20310 * coding.c (select-safe-coding-system-function): Doc fix.
20311
203122008-01-15 Glenn Morris <rgm@gnu.org>
20313
20314 * config.in: Revert 2008-01-13 change: this is a generated file.
20315
203162008-01-13 Tom Tromey <tromey@redhat.com>
20317
20318 * lisp.h: Fix typo.
20319
203202008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
20321
20322 * m/sequent-ptx.h:
20323 * m/sequent.h:
20324 * s/ptx.h:
20325 * s/ptx4-2.h:
20326 * s/ptx4.h: Remove files for systems no longer supported.
20327
20328 * callproc.c (Fcall_process): Fix previous change.
20329
203302008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
20331
20332 * unexsunos4.c: Remove file, system not supported anymore.
20333
20334 * m/mips.h:
20335 * m/intel386.h:
20336 * callproc.c:
20337 * config.in:
20338 * ecrt0.c:
20339 * emacs.c:
20340 * fileio.c:
20341 * frame.c:
20342 * getpagesize.h:
20343 * keyboard.c:
20344 * lread.c:
20345 * process.c:
20346 * puresize.h:
20347 * sysdep.c:
20348 * systty.h:
20349 * syswait.h:
20350 * unexec.c:
20351 * xdisp.c:
20352 * alloc.c: Remove code containing references to symbols defined by
20353 unsupported systems.
20354
203552008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
20356
20357 * coding.c (detect_coding_mask): Fix previous change.
20358
203592008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
20360
20361 * coding.c (detect_coding_iso2022): New arg
20362 latin_extra_code_state. Allow Latin extra codes only
20363 when *latin_extra_code_state is nonzero.
20364 (detect_coding_mask): If there is a NULL byte, detect the encoding
20365 as UTF-16 or binary. If Latin extra codes exist, detect the
20366 encoding as ISO-2022 only when there's no other proper encoding is
20367 found.
20368
203692008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20370
20371 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
20372 #ifdef MAC_OS.
20373
203742008-01-08 Richard Stallman <rms@gnu.org>
20375
20376 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
20377
203782008-01-06 Nick Roberts <nickrob@snap.net.nz>
20379
20380 * keyboard.c (parse_menu_item): Don't enclose key bindings on
20381 menu bar in parentheses.
20382
203832008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
20384
20385 * m/7300.h:
20386 * m/acorn.h:
20387 * m/alliant-2800.h:
20388 * m/alliant.h:
20389 * m/alliant1.h:
20390 * m/alliant4.h:
20391 * m/altos.h:
20392 * m/amdahl.h:
20393 * m/apollo.h:
20394 * m/att3b.h:
20395 * m/aviion-intel.h:
20396 * m/aviion.h:
20397 * m/celerity.h:
20398 * m/clipper.h:
20399 * m/cnvrgnt.h:
20400 * m/convex.h:
20401 * m/cydra5.h:
20402 * m/delta88k.h:
20403 * m/dpx2.h:
20404 * m/dual.h:
20405 * m/elxsi.h:
20406 * m/f301.h:
20407 * m/gould-np1.h:
20408 * m/gould.h:
20409 * m/i860.h:
20410 * m/ibmps2-aix.h:
20411 * m/ibmrt-aix.h:
20412 * m/ibmrt.h:
20413 * m/irist.h:
20414 * m/is386.h:
20415 * m/isi-ov.h:
20416 * m/mega68.h:
20417 * m/mg1.h:
20418 * m/news-r6.h:
20419 * m/news-risc.h:
20420 * m/news.h:
20421 * m/nh3000.h:
20422 * m/nh4000.h:
20423 * m/ns16000.h:
20424 * m/ns32000.h:
20425 * m/nu.h:
20426 * m/orion.h:
20427 * m/orion105.h:
20428 * m/paragon.h:
20429 * m/pfa50.h:
20430 * m/plexus.h:
20431 * m/pyramid.h:
20432 * m/pyrmips.h:
20433 * m/sh3el.h:
20434 * m/sps7.h:
20435 * m/sr2k.h:
20436 * m/stride.h:
20437 * m/sun1.h:
20438 * m/sun2.h:
20439 * m/sun3-68881.h:
20440 * m/sun3-fpa.h:
20441 * m/sun3-soft.h:
20442 * m/sun3.h:
20443 * m/sun386.h:
20444 * m/symmetry.h:
20445 * m/tad68k.h:
20446 * m/tahoe.h:
20447 * m/targon31.h:
20448 * m/tek4300.h:
20449 * m/tekxd88.h:
20450 * m/tower32.h:
20451 * m/tower32v3.h:
20452 * m/ustation.h:
20453 * m/wicat.h:
20454 * m/xps100.h:
20455 * s/cxux.h:
20456 * s/cxux7.h:
20457 * s/dgux.h:
20458 * s/dgux4.h:
20459 * s/dgux5-4-3.h:
20460 * s/dgux5-4r2.h:
20461 * s/esix.h:
20462 * s/esix5r4.h:
20463 * s/hiuxmpp.h:
20464 * s/hiuxwe2.h:
20465 * s/iris3-5.h:
20466 * s/iris3-6.h:
20467 * s/isc2-2.h:
20468 * s/isc3-0.h:
20469 * s/isc4-0.h:
20470 * s/isc4-1.h:
20471 * s/newsos5.h:
20472 * s/newsos6.h:
20473 * s/osf1.h:
20474 * s/osf5-0.h:
20475 * s/riscix1-1.h:
20476 * s/riscix12.h:
20477 * s/sco4.h:
20478 * s/sco5.h:
20479 * s/sunos4-0.h:
20480 * s/sunos4-1.h:
20481 * s/sunos413.h:
20482 * s/sunos4shr.h:
20483 * s/umax.h:
20484 * s/unipl5-2.h:
20485 * s/xenix.h:
20486 * cxux-crt0.s:
20487 * unexapollo.c:
20488 * unexconvex.c:
20489 * unexenix.c:
20490 * unexsni.c: Remove files for systems no longer supported.
20491
20492 * m/intel386.h: Remove references to unsupported systems.
20493
20494 * w32.c (get_emacs_configuration): Remove reference to i860.
20495
20496 * sysdep.c: Remove dead code.
20497
204982008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
20499
20500 * s/rtu.h:
20501 * m/masscomp.h: Remove files. Platform is obsolete.
20502
205032008-01-04 Michael Albinus <michael.albinus@gmx.de>
20504
20505 * dbusbind.c (Fdbus_method_return): New function.
20506 (xd_read_message): Add the serial number to the event.
20507 (Fdbus_register_method): Activate the function.
20508
205092008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
20510
20511 * keyboard.c (read_key_sequence): Fix typo.
20512
205132008-01-03 Michael Albinus <michael.albinus@gmx.de>
20514
20515 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
20516 (xd_signature, xd_append_arg): Handle element type detection for
20517 empty arrays.
20518 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
20519 SDATA () calls; this must be solved more general.
20520 (Fdbus_register_signal): Use SBYTES instead of strlen.
20521
205222008-01-03 Magnus Henoch <magnus@zemdatav>
20523
20524 * dbusbind.c (xd_append_arg): Use unsigned char instead of
20525 unsigned int for byte values (necessary for big-endian platform).
20526 (Fdbus_call_method): Handle the case of no returned arguments.
20527
205282007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
20529
20530 * dbusbind.c (xd_read_message): Use non-static input_event struct.
20531
205322007-12-31 Magnus Henoch <mange@freemail.hu>
20533
20534 * dbusbind.c (xd_signature): Signature of variant is just "v".
20535
205362007-12-30 Michael Albinus <michael.albinus@gmx.de>
20537
20538 * dbusbind.c: Fix several errors and compiler warnings.
20539 Reported by Tom Tromey <tromey@redhat.com>.
20540 (XD_ERROR, XD_DEBUG_MESSAGE)
20541 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
20542 (xd_append_arg): Part for basic D-Bus types rewritten.
20543 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
20544 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
20545 appropriate.
20546 (xd_read_message): Return Qnil. Don't signal an error; it is not
20547 useful during event reading.
20548 (Fdbus_register_signal): Signal an error if the check for
20549 FUNCTIONP fails.
20550 (Fdbus_register_method): New function. The implementation is not
20551 complete, the call of the function signals an error therefore.
20552 (Fdbus_unregister_object): New function, renamed from
20553 Fdbus_unregister_signal. The initial check signals an error, if
20554 the object is not well formed.
20555
205562007-12-30 Richard Stallman <rms@gnu.org>
20557
20558 * textprop.c (get_char_property_and_overlay):
20559 Signal error if POSITION is out of range in a buffer.
20560
205612007-12-29 Martin Rudalics <rudalics@gmx.at>
20562
20563 * w32fns.c (Fx_create_frame): Make copy of frame parameters
20564 because the original parameters are in pure storage now.
20565
205662007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20567
20568 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
20569
205702007-12-22 Eli Zaretskii <eliz@gnu.org>
20571
20572 * callint.c (syms_of_callint) <command-history>: Add reference to
20573 history-length in the doc string.
20574
205752007-12-17 Jason Rumney <jasonr@gnu.org>
20576
20577 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
20578 before passing as wParam.
20579
205802007-12-22 Michael Albinus <michael.albinus@gmx.de>
20581
20582 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
20583 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
20584 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
20585 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
20586 as number.
20587 (Fdbus_call_method): Fix docstring.
20588
205892007-12-21 Michael Albinus <michael.albinus@gmx.de>
20590
20591 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
20592 New macros.
20593 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
20594 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
20595 Simplify.
20596 (xd_signature): New function.
20597 (xd_append_arg): Compute also signatures. Major rewrite.
20598 (xd_retrieve_arg): Make debug messages friendly.
20599 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
20600 Check for signatures of arguments.
20601
206022007-12-19 Michael Albinus <michael.albinus@gmx.de>
20603
20604 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
20605 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
20606 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
20607 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
20608 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
20609 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
20610 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
20611 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
20612 (xd_retrieve_value): Remove. Functionality included in ...
20613 (xd_append_arg): New function.
20614 (Fdbus_call_method, Fdbus_send_signal): Apply it.
20615
206162007-12-16 Michael Albinus <michael.albinus@gmx.de>
20617
20618 * dbusbind.c (top): Include <stdio.h>.
20619 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
20620 dbus_message_new_method_call and dbus_message_new_signal.
20621 (Fdbus_register_signal): Rename unique_name to uname.
20622 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
20623 non-existing unique name. Fix typos in matching rule. Return an
20624 object which is useful in Fdbus_unregister_signal.
20625 (Fdbus_unregister_signal): Reimplementation, in order to remove
20626 only the corresponding entry.
20627 (Vdbus_registered_functions_table): Change the order of entries.
20628 Apply these changes in xd_read_message and Fdbus_register_signal.
20629
206302007-12-16 Andreas Schwab <schwab@suse.de>
20631
20632 * fileio.c (Finsert_file_contents): Fix overflow check to not
20633 depend on undefined integer overflow.
20634
206352007-12-14 Jason Rumney <jasonr@gnu.org>
20636
20637 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
20638 for characters above 127.
20639
206402007-12-13 Jason Rumney <jasonr@gnu.org>
20641
20642 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
20643 before dereferencing array.
20644 (lookup_vk_code): Remove zero comparison.
20645
206462007-12-14 Michael Albinus <michael.albinus@gmx.de>
20647
20648 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
20649 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
20650 Use `unsigned int' instead of `uint'.
20651 (xd_read_message, Fdbus_register_signal): Split expressions into
20652 multiple lines before operators "&&" and "||", according to the
20653 GNU Coding Standards.
20654
206552007-12-14 Eli Zaretskii <eliz@gnu.org>
20656
20657 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
20658
206592007-12-12 Juri Linkov <juri@jurta.org>
20660
20661 * buffer.c (Frename_buffer): In interactive spec replace
20662 `read-buffer' with `read-string' that uses `buffer-name-history'
20663 as history, and the current buffer's name as default.
20664
206652007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
20666
20667 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
20668 manipulating the backtrace manually.
20669 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
20670 (struct backtrace, backtrace_list): Remove.
20671 (command_loop_1): Remove dead var `no_direct'.
20672
20673 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
20674 preserve non-built-in buffer-local variables.
20675 (Fkill_all_local_variables): Don't re-create&re-set permanent
20676 buffer-local variables.
20677
206782007-12-09 Juri Linkov <juri@jurta.org>
20679
20680 * buffer.c (Frename_buffer): Change interactive spec from "s" to
20681 Lisp code that uses `read-buffer' with current buffer as default.
20682
206832007-12-08 Michael Albinus <michael.albinus@gmx.de>
20684
20685 * dbusbind.c (xd_read_message): Generate an event for every
20686 registered handler. There might be several handlers registered
20687 for the same signal.
20688 (Fdbus_register_signal): Don't overwrite a registration for the
20689 same signal. Add a new registration if handlers are different.
20690 (Vdbus_registered_functions_table): Rework doc string.
20691
206922007-12-07 Michael Albinus <michael.albinus@gmx.de>
20693
20694 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
20695 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
20696 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
20697 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
20698 Unify argument lists.
20699 (xd_read_message, Fdbus_register_signal): Reorder and extend event
20700 arguments and hash table keys. Use unique name for service.
20701 (Fdbus_unregister_signal): Remove checks.
20702 (Vdbus_registered_functions_table): Fix doc string.
20703
207042007-12-05 Magnus Henoch <mange@freemail.hu>
20705
20706 * process.c (make_process): Initialize pty_flag to 0.
20707
207082007-12-05 Jason Rumney <jasonr@gnu.org>
20709
20710 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
20711 specified XBMs.
20712
207132007-12-05 Richard Stallman <rms@gnu.org>
20714
20715 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
20716
207172007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20718
20719 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
20720 New variable.
20721 (mac_try_close_socket) [MAC_OSX]: New function.
20722 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
20723 Update cfsockets_for_select. Replace invalid CFRunLoop source.
20724
20725 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
20726 Use mac_try_close_socket.
20727
207282007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20729
20730 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
20731 reloc_base.
20732 (copy_dysymtab): Compute relocation base here.
20733 (rebase_reloc_address) [__ppc64__]: New function.
20734 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
20735 changed.
20736
207372007-12-05 Jason Rumney <jasonr@gnu.org>
20738
20739 * w32proc.c (sys_spawnve): Quote args with wildcards.
20740
207412007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20742
20743 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
20744 __objc_* sections.
20745 (unrelocate) [_LP64]: Set relocation base to address of data segment.
20746
207472007-12-05 Michael Albinus <michael.albinus@gmx.de>
20748
20749 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
20750 Move check for Vdbus_registered_functions_table to
20751 xd_read_queued_messages.
20752 (xd_read_queued_messages): Protect xd_read_message calls by
20753 internal_condition_case_1.
20754
207552007-12-04 Michael Albinus <michael.albinus@gmx.de>
20756
20757 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
20758 Qdbus_system_bus and Qdbus_session_bus, respectively.
20759 (Vdbus_intern_symbols): Remove.
20760 (Vdbus_registered_functions_table): New hash table.
20761 (XD_SYMBOL_INTERN_SYMBOL): Remove.
20762 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
20763 Rewrite in order to manage registered functions by hash table
20764 Vdbus_registered_functions_table.
20765
207662007-12-03 Jan Djärv <jan.h.d@swipnet.se>
20767
20768 * xterm.c: Update URL to Window Manager Specification in comment.
20769
207702007-12-02 Michael Albinus <michael.albinus@gmx.de>
20771
20772 * config.in (HAVE_DBUS): Add.
20773
20774 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
20775 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
20776 (obj): Add $(DBUS_OBJ).
20777 (LIBES): Add $(DBUS_LIBS).
20778 (dbusbind.o): New target.
20779
20780 * dbusbind.c: New file.
20781
20782 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
20783
20784 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
20785 (Qdbus_event): New Lisp symbol.
20786 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
20787 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 20788 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
20789
20790 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
20791
207922007-12-01 Richard Stallman <rms@gnu.org>
20793
20794 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
20795
207962007-11-30 Jason Rumney <jasonr@gnu.org>
20797
20798 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
20799 (w32con_reset_terminal_modes): Clear screen buffer.
20800 (w32_face_attributes): Don't use color indexes that are out of range.
20801 Only reverse the default colors.
20802
20803 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
20804 WINDOWSNT.
20805
20806 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
20807
208082007-11-29 Jason Rumney <jasonr@gnu.org>
20809
20810 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
20811 (w32_face_attributes): Use Vtty_defined_color_alist to determine
20812 if the terminal colors are initialized.
20813 (unspecified_fg, unspecified_bg): Remove unused declarations.
20814
208152007-11-29 Andreas Schwab <schwab@suse.de>
20816
20817 * keyboard.c (apply_modifiers): Fix typo.
20818
208192007-11-29 Richard Stallman <rms@gnu.org>
20820
20821 * keymap.c (Fcurrent_local_map): Doc fix.
20822
208232007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
20824
20825 * s/gnu-kfreebsd.h: New file.
20826
208272007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
20828
20829 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
20830 Don't cast redundantly.
20831
20832 * keyboard.c (KEY_TO_CHAR): New macro.
20833 (parse_modifiers, apply_modifiers): Accept integer arguments.
20834 (read_key_sequence): Use them to unify the "shift->unshift" mapping
20835 for chars and symbol keys.
20836 After doing such remapping, apply function-key-map again.
20837
208382007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
20839
20840 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
20841 compiled anymore.
20842
208432007-11-26 Andreas Schwab <schwab@suse.de>
20844
20845 * process.c (list_processes_1): Fix indentation level of the
20846 command column.
20847
208482007-11-23 Andreas Schwab <schwab@suse.de>
20849
20850 * editfns.c (Fformat): Handle %c specially since it requires the
20851 argument to be of type int.
20852
208532007-11-23 Markus Triska <markus.triska@gmx.at>
20854
20855 * emacs.c (main): Call init_editfns before init_process, since
20856 init_process sets Vprocess_connection_type depending on OS release.
20857
208582007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
20859
20860 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
20861 (find_symbol_value): Use do_symval_forwarding.
20862
20863 * data.c (set_internal): Set the value in the `cons-cell' (for
20864 Buffer_Local_values) not only for frame-local variables.
20865
208662007-11-22 Andreas Schwab <schwab@suse.de>
20867
20868 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
20869 values to sprintf.
20870 * keymap.c (Fsingle_key_description): Likewise.
20871 * print.c (print_object): Likewise.
20872
208732007-11-22 Jan Djärv <jan.h.d@swipnet.se>
20874
20875 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
20876 file for image is nil.
20877
208782007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
20879
20880 * term.c: Include stdarg.h.
20881 (fatal): Implement using varargs.
20882 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
20883
208842007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
20885
20886 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
20887 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
20888 Update call to buffer_slot_type_mismatch.
20889 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
20890 (buffer_slot_type_mismatch): Update.
20891 * buffer.c (buffer_local_types): Remove.
20892 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
20893 (defvar_per_buffer): Set the type in the buffer_objfwd.
20894
208952007-11-21 Jason Rumney <jasonr@gnu.org>
20896
20897 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
20898 CreateFileMapping returns NULL on failure.
20899
209002007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
20901
20902 * search.c (Fset_match_data): Remove the `evaporate' feature.
20903 (unwind_set_match_data): Don't use the `evaporate' feature.
20904
209052007-11-21 Jason Rumney <jasonr@gnu.org>
20906
20907 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
20908
20909 * w32console.c (w32con_write_glyphs): Remove unused variables.
20910
209112007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
20912
20913 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
20914
20915 * s/darwin.h (MULTI_KBOARD): Remove.
20916
20917 * macfns.c (x_create_tip_frame, Fx_create_frame)
20918 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
20919
209202007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
20921
20922 * buffer.c (Fbuffer_local_value): Remove redundant test.
20923 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
20924 than in `current-buffer' to match the comment.
20925 Do the swap using swap_in_global_binding.
20926
20927 * data.c (store_symval_forwarding, set_internal):
20928 * eval.c (specbind): Remove dead code.
20929
20930 * coding.c (detect_coding, Fupdate_coding_systems_internal):
20931 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
20932 Since we do not want to see internal Lisp_*fwd objects here.
20933
209342007-11-18 Jan Djärv <jan.h.d@swipnet.se>
20935
20936 * sysdep.c (init_system_name): Use getaddrinfo if available.
20937
20938 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
20939 (x_scroll_bar_note_movement): start, end, with, height in struct
20940 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
20941
209422007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
20943
20944 * puresize.h (BASE_PURESIZE): Increase to 1190000.
20945
209462007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
20947
20948 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
20949 This undoes Richard's change of 14-Oct-2002.
20950
20951 * alloc.c (allocate_other_vector):
20952 * lisp.h (allocate_other_vector): Remove.
20953
20954 * window.c (struct save_window_data): Move non-lisp data to the end
20955 and make it `int' rather than Lisp_Object.
20956 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
20957 Done wrap/unwrap integer values.
20958 (Fset_window_configuration, compare_window_configurations):
20959 Update use of fields to their new types.
20960
20961 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
20962 Turn integer fields into `int'. Merge x_window_low and x_window_high.
20963 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
20964 (SET_SCROLL_BAR_X_WINDOW): Remove.
20965 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
20966 Access the new x_window field directly.
20967 * xterm.c (x_scroll_bar_create): Use a pseudovector.
20968 Don't wrap/unwrap integers into Lisp_Objects.
20969 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
20970 (x_scroll_bar_report_motion):
20971 Don't wrap/unwrap integers into Lisp_Objects.
20972 (x_term_init): Use SDATA.
20973 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
20974 (x_scroll_bar_set_handle, x_scroll_bar_remove)
20975 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
20976 (x_scroll_bar_report_motion, x_scroll_bar_clear):
20977 * xfns.c (x_set_background_color):
20978 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
20979 Access the new x_window field directly.
20980
20981 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
20982 (allocate_pseudovector): Make non-static.
20983
20984 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
20985 (allocate_pseudovector): Declare.
20986 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
20987
209882007-11-15 Andreas Schwab <schwab@suse.de>
20989
20990 * editfns.c (Fformat): Correctly format EMACS_INT values.
20991 Also take precision into account when formatting an integer.
20992
20993 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
20994
209952007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
20996
20997 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
20998 (syms_of_keyboard): Defsubr it.
20999
21000 * data.c (swap_in_global_binding): Fix longstanding bug where
21001 store_symval_forwarding was not called with the right second argument,
21002 thus causing objfwd-ing from being dropped.
21003
210042007-11-14 Juanma Barranquero <lekktu@gmail.com>
21005
21006 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
21007 (Fx_display_pixel_height, Fx_display_planes)
21008 (Fx_display_color_cells, Fx_server_max_request_size)
21009 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
21010 (Fx_display_visual_class, Fx_display_save_under):
21011 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
21012 (Fx_display_pixel_height, Fx_display_planes)
21013 (Fx_display_color_cells, Fx_server_max_request_size)
21014 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
21015 (Fx_display_mm_height, Fx_display_mm_width)
21016 (Fx_display_backing_store, Fx_display_visual_class)
21017 (Fw32_select_font, Fx_display_save_under):
21018 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
21019 (Fx_display_pixel_height, Fx_display_planes)
21020 (Fx_display_color_cells, Fx_server_max_request_size)
21021 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
21022 (Fx_display_save_under): Fix typos in docstrings.
21023
210242007-11-14 Juanma Barranquero <lekktu@gmail.com>
21025
21026 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
21027 corresponding to deleted entries; they are an implementation detail.
21028 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
21029 Remove variables.
21030 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
21031 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
21032 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
21033 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
21034 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
21035 (Fw32_define_rgb_color, Fw32_load_color_file)
21036 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
21037 Fix typos in docstrings.
21038 (Fx_server_version): Reflow docstring.
21039 (Fw32_shell_execute): Doc fixes.
21040
210412007-11-13 Juanma Barranquero <lekktu@gmail.com>
21042
21043 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
21044 if w32_parse_hot_key returned nil.
21045
210462007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
21047
21048 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
21049
210502007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 21051
aac0c6e3
MR
21052 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
21053
21054 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
21055
21056 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
21057 Remove W32_SCROLL_BAR_CLICK_EVENT.
21058
21059 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
21060 Add MULTIMEDIA_KEY_EVENT.
21061
21062 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
21063 (lispy_multimedia_keys) [WINDOWSNT]: New array.
21064 (make_lispy_event) [WINDOWSNT]: Use it to translate
21065 MULTIMEDIA_KEY_EVENT.
21066
21067 * w32term.h (WM_APPCOMMAND): Define if not already.
21068 (GET_APPCOMMAND_LPARAM): Likewise.
21069
21070 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
21071 WM_APPCOMMAND.
21072
21073 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
21074 (syms_of_w32fns): Export and initialize it.
21075 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
21076
210772007-11-09 Chong Yidong <cyd@stupidchicken.com>
21078
21079 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
21080 twice.
21081
21082 * xdisp.c (handle_face_prop): Fix last change.
21083
210842007-11-09 Richard Stallman <rms@gnu.org>
21085
21086 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
21087 not just for after-strings and before-strings.
21088 Call face_for_overlay_string and pass the overlay to it.
21089 (handle_display_prop): Determine whether property came from an overlay.
21090 Pass OVERLAY arg to handle_single_display_spec.
21091 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
21092 (load_overlay_strings): Fill in it->string_overlays.
21093 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
21094
21095 * xfaces.c (face_for_overlay_string): Function renamed from
21096 face_at_buffer_position_no_overlays, and add arg OVERLAY.
21097
21098 * dispextern.h (struct it): New elt string_overlays.
21099 New elt from_overlay, also in stack.
21100 Rearrange a few elements.
21101 (face_for_overlay_string): Decl renamed from
21102 face_at_buffer_position_no_overlays, and add argument.
21103
211042007-11-09 Richard Stallman <rms@gnu.org>
21105
21106 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
21107 to get the base face for an overlay string.
21108
21109 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
21110
21111 * xfaces.c (face_at_buffer_position_no_overlays): New function.
21112
21113 * xdisp.c (handle_stop): Move some code out of loop.
21114
211152007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21116
21117 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
21118 Fix conversion from Lisp object to ATSUFontID.
21119
211202007-11-09 Jason Rumney <jasonr@gnu.org>
21121
21122 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
21123
211242007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21125
21126 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
21127 Don't assume regions are aligned to page boundary.
21128 (print_load_command_name): Add LC_UUID if defined.
21129
211302007-11-09 Richard Stallman <rms@gnu.org>
21131
21132 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
21133
211342007-11-07 Jason Rumney <jasonr@gnu.org>
21135
21136 * s/windows95.h: Remove.
21137
211382007-11-06 Jan Djärv <jan.h.d@swipnet.se>
21139
21140 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
21141 abort with a message on unhandled store_type values.
21142
211432007-11-01 Jan Djärv <jan.h.d@swipnet.se>
21144
21145 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
21146 Remove HAVE_X11R5 and HAVE_X11R4.
21147
211482007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
21149
21150 * Makefile.in: Remove references to sunfns.c and sunfns.o.
21151
211522007-11-01 Johan Bockgård <bojohan@gnu.org>
21153
21154 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
21155 Don't set s->stippled_p here, since it has already been set by
21156 x_set_glyph_string_gc from x_draw_glyph_string.
21157
211582007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
21159
21160 * sunfns.c: Remove file.
21161
21162 * m/sun386.h:
21163 * m/sun2.h:
21164 * m/sparc.h: Remove Sun windows code.
21165
211662007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
21167
21168 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
21169 (init_keyboard): Set current_kboard's window-system to nil.
21170 (tty_read_avail_input): Typo.
21171 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
21172
211732007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
21174
21175 * s/usg5-4.h:
21176 * s/usg5-3.h:
21177 * s/ptx.h:
21178 * m/is386.h:
21179 * m/ibmps2-aix.h:
21180 * Makefile.in: Remove all mentions of X10.
21181
21182 * dispnew.c (syms_of_display): Don't mention version 10.
21183
211842007-10-28 Juanma Barranquero <lekktu@gmail.com>
21185
21186 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
21187 ($(BLD)/abbrev.$(O)): Remove.
21188
211892007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
21190
21191 Rewrite abbrev.c in Elisp.
21192 * image.c (Qcount): Don't declare as extern.
21193 (syms_of_image): Initialize and staticpro `Qcount'.
21194 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
21195 * emacs.c (main): Don't call syms_of_abbrev.
21196 * Makefile.in (obj): Remove abbrev.o.
21197 (abbrev.o): Remove.
21198 * abbrev.c: Remove.
21199
212002007-10-26 Martin Rudalics <rudalics@gmx.at>
21201
21202 * window.c (window_min_size_2): Don't count header-line.
21203
212042007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
21205
21206 * frame.h (struct frame): Move all bit fields after the first bit
21207 field to take advantage of the available space. Group all the
21208 chars together to reduce wasted space due to padding.
21209
212102007-10-26 Juanma Barranquero <lekktu@gmail.com>
21211
21212 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
21213
21214 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
21215 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
21216 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
21217 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
21218 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
21219 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
21220 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
21221 (last_marked, mark_object_loop_halt): Make static.
21222
21223 * frame.c (syms_of_frame) <delete-frame-functions>:
21224 Fix typo in docstring.
21225
212262007-10-25 Juanma Barranquero <lekktu@gmail.com>
21227
21228 * w32.c (init_environment): Fix tiny memory leak.
21229 (w32_get_resource): Remove unused variable `ok'.
21230
212312007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
21232
21233 Make `window-system' into a keyboard-local variable (rather than
21234 frame-local as done originally by multi-tty).
21235
21236 * keyboard.h (struct kboard): Add Vwindow_system.
21237 * keyboard.c (init_kboard): Set a default for Vwindow_system.
21238 (mark_kboards): Mark Vwindow_system.
21239
21240 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
21241 (init_display): Don't set the obsolete `window-system' frame-param.
21242
21243 * xterm.c (x_term_init):
21244 * w32term.c (w32_create_terminal):
21245 * term.c (init_tty): Set Vwindow_system.
21246 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
21247 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
21248
21249 * xfns.c (Fx_create_frame, x_create_tip_frame):
21250 * w32fns.c (Fx_create_frame, x_create_tip_frame):
21251 * macfns.c (Fx_create_frame):
21252 Don't set the obsolete `window-system' frame-param.
21253
21254 * frame.h (Qwindow_system): Remove.
21255 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
21256 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
21257
212582007-10-24 Richard Stallman <rms@gnu.org>
21259
21260 * frame.c (x_figure_window_size): For fullscreen case,
21261 set USPosition | PPosition without clobbering rest of window_prompting.
21262
21263 * keyboard.c (Fcurrent_idle_time): Doc fix.
21264
21265 * print.c (Fwith_output_to_temp_buffer): Doc fix.
21266
212672007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
21268
21269 * process.c (unwind_request_sigio): Only define if __ultrix__.
21270
21271 * callproc.c (child_setup): Remove spurious *.
21272
21273 * lisp.h (Fget_text_property): Declare.
21274 (have_menus_p): Declare it here rather than in sys-dep header files.
21275 * macterm.h (have_menus_p):
21276 * msdos.h (have_menus_p):
21277 * xterm.h (have_menus_p): Remove.
21278
21279 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
21280 (Fmake_variable_frame_local): Just check the variable's const-ness
21281 rather than checking nil or t.
21282
212832007-10-22 Jason Rumney <jasonr@gnu.org>
21284
21285 * w32fns.c: Include math.h.
21286 (w32_abort): Declaration moved to nt/config.nt.
21287
21288 * s/ms-w32.h (HAVE_STDLIB_H): Define.
21289 (abort): Redefinition moved to nt/config.nt.
21290
21291 * m/windowsnt.h: Remove.
21292
212932007-10-22 Juanma Barranquero <lekktu@gmail.com>
21294
21295 * emacs.c (Fdump_emacs): Fix typo in message.
21296 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
21297 <installation-directory>: Reflow docstring.
21298
212992007-10-22 Juri Linkov <juri@jurta.org>
21300
21301 * minibuf.c: Allow minibuffer default to be a list of default values.
21302 With empty input use the first element of this list as returned default.
21303 (string_to_object)
21304 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
21305 (read_minibuf): If defalt is cons, set histstring to its car.
21306 (Fread_string): If default_value is cons, set val to its car.
21307 (Fread_buffer): If def is cons, use its car.
21308 (Fcompleting_read): If defalt is cons, set val to its car.
21309
213102007-10-21 Michael Albinus <michael.albinus@gmx.de>
21311
21312 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
21313
213142007-10-20 Juanma Barranquero <lekktu@gmail.com>
21315
21316 * doc.c (Fdocumentation): Check for advice in all cases.
21317
213182007-10-19 Chong Yidong <cyd@stupidchicken.com>
21319
21320 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
21321
213222007-10-19 Richard Stallman <rms@gnu.org>
21323
21324 * doc.c (Fdocumentation): Check for and handle an advised function.
21325
213262007-10-19 Juanma Barranquero <lekktu@gmail.com>
21327
21328 * process.c (Fset_process_filter): Doc fix.
21329
213302007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
21331
21332 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
21333 which caused key-translation-map to applied repeatedly (thus breaking
21334 double-mode).
21335
213362007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
21337
21338 * xselect.c (x_own_selection, x_handle_selection_clear)
21339 (x_clear_frame_selections):
21340 * w32menu.c (list_of_panes, list_of_items):
21341 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
21342 * textprop.c (validate_plist, interval_has_all_properties)
21343 (interval_has_some_properties, interval_has_some_properties_list)
21344 (add_properties, text_property_list):
21345 * process.c (Fget_buffer_process, list_processes_1, status_notify):
21346 * minibuf.c (Fassoc_string):
21347 * macselect.c (x_own_selection, x_clear_frame_selections)
21348 (Fx_disown_selection_internal):
21349 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
21350 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
21351
213522007-10-17 Chong Yidong <cyd@stupidchicken.com>
21353
21354 * process.c: Link to libs for calling res_init() if available.
21355 (Fmake_network_process): Call res_init() before getaddrinfo or
21356 gethostbyname, if possible.
21357
213582007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
21359
21360 * lread.c (read1): Set pvectype for char_tables.
21361
21362 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
21363 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
21364 Add type checks.
21365 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
21366
21367 * alloc.c (free_misc): Use XMISCTYPE.
21368 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
21369
213702007-10-17 Glenn Morris <rgm@gnu.org>
21371
21372 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
21373 (syms_of_minibuf): Add Qcompletion_ignore_case.
21374 * dired.c (Qcompletion_ignore_case): Change to external.
21375 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
21376 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
21377 (Fread_file_name): Use it rather than intern'ing.
21378
21379 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
21380 (Fread_coding_system): Ignore case of user input.
21381
213822007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21383
21384 * xdisp.c (handle_display_prop): Ignore display specs after
21385 replacing one when string text is being replaced.
21386 (handle_single_display_spec): Pretend as if characters with display
21387 property haven't been consumed only when buffer text is being replaced.
21388
213892007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
21390
21391 * xfns.c (Fx_create_frame, Fx_display_list):
21392 * window.c (window_fixed_size_p, enlarge_window)
21393 (shrink_window_lowest_first):
21394 * macterm.c (init_font_name_table):
21395 * macfns.c (Fx_create_frame, Fx_display_list):
21396 * lread.c (close_load_descs):
21397 * keyboard.c (read_char_x_menu_prompt):
21398 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
21399 * coding.c (code_convert_region_unwind): Test the type of an object
21400 rather than just !NILP before extracting data from it.
21401
21402 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
21403
21404 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
21405 (XMISCANY): New macro.
21406 (XMISCTYPE): Use it.
21407 (struct Lisp_Misc_Any): New type.
21408 (union Lisp_Misc): Use it.
21409 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
21410 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
21411 (find_symbol_value, set_internal, default_value, Fset_default)
21412 (Fmake_variable_buffer_local, Fmake_local_variable)
21413 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
21414 (Flocal_variable_if_set_p, Fvariable_binding_locus):
21415 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
21416 * alloc.c (allocate_buffer): Set the size and tag.
21417 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
21418 Use XMISCANY.
21419 (die): Follow the GNU convention for error messages.
21420 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
21421 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
21422 tag any more.
21423 (set_buffer_internal_1):
21424 * frame.c (store_frame_param):
21425 * eval.c (specbind):
21426 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
21427
21428 * doc.c (Fsnarf_documentation): Simplify.
21429
214302007-10-14 Juanma Barranquero <lekktu@gmail.com>
21431
21432 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
21433 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
21434
214352007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
21436
21437 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
21438
214392007-10-14 Juanma Barranquero <lekktu@gmail.com>
21440
21441 * eval.c (do_autoload): Don't save autoloads.
21442
21443 * data.c (Ffset): Save autoload of the function being set.
21444
214452007-10-07 John Paul Wallington <jpw@pobox.com>
21446
21447 * xfns.c (x_create_tip_frame): Set the `display-type' frame
21448 parameter before setting up faces.
21449
214502007-10-13 Eli Zaretskii <eliz@gnu.org>
21451
21452 * ccl.c (Fregister_code_conversion_map):
21453 * keyboard.c (append_tool_bar_item): Reformat last change.
21454
21455 * lisp.h (eabs): Rename from `abs'. All callers changed.
21456
214572007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
21458
21459 * buffer.c (add_overlay_mod_hooklist):
21460 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
21461 * fontset.c (make_fontset):
21462 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
21463 (append_tool_bar_item):
21464 * macmenu.c (grow_menu_items):
21465 * w32menu.c (grow_menu_items):
21466 * xmenu.c (grow_menu_items): Use larger_vector.
21467
214682007-10-13 Eli Zaretskii <eliz@gnu.org>
21469
21470 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
21471 selected frame'' on MSDOS).
21472
214732007-10-12 Martin Rudalics <rudalics@gmx.at>
21474
21475 * frame.c (Qexplicit_name): New variable.
21476 (x_report_frame_params): Report it in parameter alist.
21477 (syms_of_frame): Intern and staticpro it.
21478
214792007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
21480
21481 * macfns.c (x_create_tip_frame): Set terminal for frame.
21482
214832007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
21484
21485 * frame.c (Qenvironment): Remove.
21486 (syms_of_frame) <Qenvironment>: Don't initialize.
21487 (Fdelete_frame): Don't treat the `environment' param specially.
21488 * frame.h (Qenvironment): Don't declare.
21489 * callproc.c (set_initial_environment): Don't set unused frame param.
21490
21491 * frame.c (Fframe_with_environment): Remove.
21492 (syms_of_frame) <Sframe_with_environment>: Don't declare.
21493
21494 * lisp.h (Fframe_with_environment): Don't declare.
21495
214962007-10-10 Juanma Barranquero <lekktu@gmail.com>
21497
21498 * indent.c (indent_tabs_mode, last_known_column)
21499 (last_known_column_modified): Make static.
21500 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
21501
215022007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
21503
21504 * puresize.h (BASE_PURESIZE): Increase to 1170000.
21505
215062007-10-09 Jason Rumney <jasonr@gnu.org>
21507
21508 * w32term.c (x_set_window_size): Disable code that attempts to tell
21509 Lisp code about a size change before it actually happens.
21510
215112007-10-09 Richard Stallman <rms@gnu.org>
21512
21513 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
21514 return HANDLED_RETURN.
21515
215162007-10-08 Martin Rudalics <rudalics@gmx.at>
21517
21518 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
21519 when there's an unread command event.
21520
21521 * frame.c (focus_follows_mouse): Move here from frame.el to allow
21522 window autoselection act appropriately when leaving selected frame.
21523 (syms_of_frame): Initialize focus_follows_mouse.
21524 * frame.h (focus_follows_mouse): Extern it.
21525 * macterm.c (XTread_socket): When focus_follows_mouse is nil
21526 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
21527 * msdos.c (dos_rawgetc): Likewise.
21528 * w32term.c (w32_read_socket): Likewise.
21529 * xterm.c (handle_one_xevent): Likewise.
21530 * xdisp.c (syms_of_xdisp): In doc-string of
21531 mouse-autoselect-window mention focus-follows-mouse.
21532
215332007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21534
21535 * macterm.c (mac_load_query_font): Fix missing return value.
21536 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
21537 Add BLOCK_INPUT.
21538
215392007-10-08 Richard Stallman <rms@gnu.org>
21540
21541 * xdisp.c (get_window_cursor_type): Implement documented behavior
21542 for cursor-in-non-selected-windows = t.
21543
215442007-10-08 Jason Rumney <jasonr@gnu.org>
21545
21546 * w32.c (w32_get_resource): Always close registry keys.
21547
215482007-10-08 Jason Rumney <jasonr@gnu.org>
21549
21550 * makefile.w32-in (LIBS): Add COMCTL32.
21551
21552 * w32fns.c (globals_of_w32fns): Init common controls.
21553
215542007-10-08 Richard Stallman <rms@gnu.org>
21555
21556 * image.c (our_memory_buffer): Rename from omfib_buffer.
21557
215582007-10-08 Richard Stallman <rms@gnu.org>
21559
21560 * buffer.c (Foverlays_at): Doc fix.
21561
215622007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
21563
21564 * fns.c (Fplist_put): Preserve uneven tail data.
21565
215662007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
21567
21568 * termhooks.h (enum event_kind): Remove trailing comma.
21569
21570 * frame.h (enum): Remove trailing comma.
21571
215722007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
21573
21574 * w32proc.c (delete_child): Don't terminate threads of zombies.
21575
215762007-10-08 Martin Rudalics <rudalics@gmx.at>
21577
21578 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
21579
21580 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
21581 last-repeatable-command.
21582 (init_kboard): Initialize Vlast_repeatable_command.
21583 (command_loop_1): Set it to real_this_command unless that was
21584 bound to an input event.
21585 (mark_kboards): Mark it.
21586
215872007-10-08 Richard Stallman <rms@gnu.org>
21588
21589 * eval.c (condition-case): Doc fix.
21590
215912007-10-08 Masatake YAMATO <jet@gyve.org>
21592
21593 * xfaces.c (tty_supports_face_attributes_p): Fix code
21594 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
21595 was copied and not edited.
21596
215972007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
21598
21599 Add new `input-decode-map' keymap and use it for terminal
21600 escape sequences.
21601 * keyboard.h (struct kboard): Add Vinput_decode_map.
21602 Remove Vlocal_key_translation_map.
21603 * keyboard.c (read_key_sequence): Add support for input-decode-map.
21604 (init_kboard): Init input-decode-map.
21605 Replace local-key-translation-map back with key-translation-map.
21606 (syms_of_keyboard): Declare input-decode-map.
21607 Remove local-key-translation-map. Update docstrings.
21608 (mark_kboards): Mark Vinput_decode_map.
21609 Don't mark Vlocal_key_translation_map.
21610 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
21611 Replace local-key-translation-map back with key-translation-map.
21612 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
21613 Bind in input-decode-map rather than function-key-map.
21614
21615 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
21616 This was made redundant by the previous introduction of XSETPVECTYPE.
21617
216182007-10-09 Richard Stallman <rms@gnu.org>
21619
21620 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
21621
216222007-09-29 Richard Stallman <rms@gnu.org>
21623
21624 * eval.c (internal_condition_case_2, internal_condition_case_1)
21625 (internal_condition_case): Reenable abort if x_catching_errors ()
21626 to see if that really happens and why.
21627
216282007-10-06 Andreas Schwab <schwab@suse.de>
21629
21630 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
21631
216322007-10-04 Juanma Barranquero <lekktu@gmail.com>
21633
21634 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
21635
216362007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
21637
21638 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
21639
216402007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
21641
21642 * window.h (struct window):
21643 * window.c (struct save_window_data, struct saved_window):
21644 * termhooks.h (struct terminal):
21645 * process.h (struct Lisp_Process):
21646 * frame.h (struct frame):
21647 * buffer.h (struct buffer):
21648 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
21649 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
21650 The size field of (pseudo)vectors is now unsigned.
21651 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
21652
21653 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
21654 Turn `count' into an integer.
21655
21656 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
21657 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
21658 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
21659 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
21660 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
21661
21662 * alloc.c (allocate_pseudovector): New fun.
21663 (ALLOCATE_PSEUDOVECTOR): New macro.
21664 (allocate_window, allocate_terminal, allocate_frame)
21665 (allocate_process): Use it.
21666 (mark_vectorlike): New function.
21667 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
21668 (mark_terminals): Use it.
21669 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
21670 (Fmake_byte_code): Use XSETPVECTYPE.
21671
21672 * frame.c (Fframe_parameters): Minor simplification.
21673
21674 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
21675
21676 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
21677
21678 * buffer.c (Fget_buffer_create, init_buffer_once):
21679 * lread.c (defsubr):
21680 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
21681
21682 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
21683 defined differently in the m/*.h files.
21684 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
21685 (XSETPVECTYPE): New macro.
21686 (XSETPSEUDOVECTOR): Use it.
21687
21688 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
21689 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
21690
21691 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
21692 * lread.c (defvar_per_buffer):
21693 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
21694
21695 * window.c (candidate_window_p): Only consider as visible frames that
21696 are on the same terminal.
21697
21698 * m/ibms390x.h (MARKBIT): Remove unused macro.
21699
217002007-10-01 Juanma Barranquero <lekktu@gmail.com>
21701
21702 * lread.c (Fload): Fix typo in docstring.
21703
217042007-10-01 Michaël Cadilhac <michael@cadilhac.name>
21705
21706 * floatfns.c (Fexpt): Manually check for overflows, so that a power
21707 of a non-zero value can't yield zero.
21708
217092007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
21710
21711 * term.c (term_clear_mouse_face, term_mouse_highlight)
21712 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
21713
21714 * print.c (safe_debug_print): Use XHASH.
21715
21716 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
21717 Lisp elements such as tags.
21718 (XHASH): New macro.
21719 (EQ): Use it.
21720 (SREF, SSET, STRING_COPYIN): Use SDATA.
21721 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
21722
21723 * alloc.c (mark_terminal): Remove left-over declaration.
21724 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
21725 (allocate_vectorlike): Remove type argument. Adjust callers.
21726 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
21727 Only handle the one remaining MEM_TYPE_VECTORLIKE.
21728
21729 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
21730 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
21731 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
21732 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
21733 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
21734 Use them.
21735
21736 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
21737 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
21738 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
21739
217402007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
21741
21742 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
21743 loaded by default.
21744
217452007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
21746
21747 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
21748 on this tty.
21749 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
21750
21751 * term.c (mouse_face_window): Rename from Qmouse_face_window.
21752 Update all users.
21753 (handle_one_term_event): Use Gpm_DrawPointer.
21754 (Fgpm_mouse_start): Rename from Fterm_open_connection.
21755 Signal errors instead of returning nil. Always return nil.
21756 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
21757 Make it a noop if gpm-mouse was not activated.
21758 (syms_of_term): Update names.
21759
217602007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
21761
21762 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
21763 (init_sys_modes): Check that gpm_tty is the current tty.
21764
21765 * alloc.c (allocate_terminal): Set the vector size to only count the
21766 lisp fields. Initialize those to nil.
21767 (mark_object): Don't treat terminals specially.
21768 (mark_terminal): Remove.
21769 (mark_terminals): Use mark_object instead.
21770
21771 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
21772 the GC to the beginning.
21773
21774 * indent.h:
21775 * indent.c: Use EMACS_INT for ints coming from Elisp data.
21776
21777 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
21778
217792007-09-25 Jason Rumney <jasonr@gnu.org>
21780
21781 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
21782
21783 * w32console.c (create_w32cons_output): Remove.
21784
21785 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
21786
21787 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
21788 (reset_sys_modes): Use reset_terminal_modes_hook.
21789
217902007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
21791
21792 * eval.c (do_autoload): Don't output any message.
21793
217942007-09-24 Juri Linkov <juri@jurta.org>
21795
21796 * emacs.c (standard_args): Change priority of "--no-splash"
21797 from 40 to 3. Add "--no-desktop" with the same priority.
21798
217992007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
21800
21801 * alloc.c (gc_sweep): Check cons cell mark bits word by word
21802 and optimize the case where they are all 1.
21803
218042007-09-23 Johannes Weiner <hannes@saeurebad.de>
21805
21806 * lisp.h (abs): Define if not defined.
21807 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
21808 Don't define `abs', since it's defined in lisp.h.
21809
218102007-09-22 Eli Zaretskii <eliz@gnu.org>
21811
21812 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
21813 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
21814 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
21815 (init_tty): Use DEV_TTY instead of "/dev/tty".
21816 [WINDOWSNT]: No need to protect from NAME arg being null.
21817
218182007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
21819
21820 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
21821 up the tty state.
21822
218232007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
21824
21825 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
21826 (gpm_tty): Change its type.
21827 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
21828 (gpm_tty): Change its type and initialize it.
21829 (Fterm_open_connection): Check the frame is indeed a tty.
21830 Use the new gpm_tty.
21831 (Fterm_close_connection): Use the new gpm_tty.
21832 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
21833 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
21834
218352007-09-21 Juanma Barranquero <lekktu@gmail.com>
21836
21837 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
21838 underline_color, to draw strike-through.
21839
218402007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
21841
21842 * lisp.h (allocate_terminal): Declare.
21843
21844 * window.c (candidate_window_p): Consider frames that are being placed
21845 by the user as somewhere between visible and iconified.
21846 (window_loop): Prefer windows on the current frame.
21847 (Fselect_window): Move the use of select-frame to the beginning so we
21848 can just delegate all the work (it'll call us back anyway).
21849
21850 * frame.c (Qdisplay_environment_variable):
21851 * frame.h (Qdisplay_environment_variable): Delete.
21852
21853 * .gdbinit (xbacktrace): Print the arg's address rather than the value
21854 of the first arg, since that value may be a union.
21855
21856 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
21857 parameter rather than Qdisplay_environment_variable. If all else
21858 fails, look for DISPLAY in initial-environment.
21859
218602007-09-21 Glenn Morris <rgm@gnu.org>
21861
21862 * Makefile.in (emacstool): Remove target.
21863 (lisp, shortlisp): Remove termdev.elc.
21864
218652007-09-21 Markus Triska <markus.triska@gmx.at>
21866
21867 * xterm.c (x_delete_display): Compile session management conditionally.
21868
218692007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
21870
21871 * callproc.c (getenv_internal_1): New function.
21872 (getenv_internal): Use it.
21873 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
21874
21875 * terminal.c (get_terminal): Don't accept ints to represent terminals.
21876 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
21877 (Fset_terminal_parameter): Work with dead terminals as well.
21878 (Fmodify_terminal_parameters): Remove.
21879
21880 * terminal.c (get_terminal): Handle terminals.
21881 Make sure the terminal returned is live.
21882 (create_terminal): Use allocate_terminal.
21883 (mark_terminals): Move to alloc.c.
21884 (delete_terminal): Use terminal->name as liveness status.
21885 NULL out fields after freeing their contents.
21886 Don't deallocate the object.
21887 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
21888 rather than an int.
21889 (Fterminal_live_p): Accept non-integer arguments.
21890 (Fterminal_list): Return terminal objects rather than an ints.
21891
21892 * alloc.c (enum mem_type): New member for `terminal' objects.
21893 (allocate_terminal): New function.
21894 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
21895 Handle terminals.
21896 (mark_terminal): New fun.
21897 (mark_terminals): Move from terminal.c.
21898
21899 * term.c (get_tty_terminal): Don't treat output_initial specially.
21900 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
21901 (delete_tty): Use terminal->name as liveness status.
21902
21903 * termhooks.h (struct terminal): Make it into a pseudovector.
21904 Remove `deleted' replaced by checking `name's nullness.
21905
21906 * print.c (print_object): Handle terminals.
21907
21908 * lisp.h (enum pvec_type): New `terminal' pseudovector.
21909 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
21910
21911 * frame.c (make_terminal_frame):
21912 * keyboard.c (tty_read_avail_input):
21913 * w32term.c (x_delete_terminal):
21914 * xfns.c (Fx_create_frame, x_create_tip_frame):
21915 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
21916
219172007-09-20 Glenn Morris <rgm@gnu.org>
21918
21919 * process.c (Fmake_network_process): Doc fix.
21920
219212007-09-19 Jason Rumney <jasonr@gnu.org>
21922
21923 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
21924
219252007-09-19 Michaël Cadilhac <michael@cadilhac.name>
21926
21927 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
21928 Fix a C warning regarding variable constness.
21929
21930 * xterm.c (handle_one_xevent): Fix a C warning.
21931
219322007-09-18 Jason Rumney <jasonr@gnu.org>
21933
21934 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
21935
219362007-09-17 Jan Djärv <jan.h.d@swipnet.se>
21937
21938 * gtkutil.c (gdpy_def): New variable.
21939 (xg_initialize): Initialize gdpy_def.
21940 (xg_display_close): If no other display exists, set gdpy_def to a
21941 new connection.
21942
219432007-09-16 Jan Djärv <jan.h.d@swipnet.se>
21944
21945 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
21946 when we have no file name for the icon.
21947 (xg_tool_bar_expose_callback): Remove.
21948 (xg_create_tool_bar): Don't connect expose signal to
21949 xg_tool_bar_expose_callback.
21950 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
21951
219522007-09-16 Andreas Schwab <schwab@suse.de>
21953
21954 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
21955 values instead of zapping them.
21956
219572007-09-14 Glenn Morris <rgm@gnu.org>
21958
21959 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
21960 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
21961 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
21962 scope and rename to omfib_buffer for clarity.
21963 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
21964
219652007-09-14 Kenichi Handa <handa@m17n.org>
21966
21967 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
21968
219692007-09-13 Jason Rumney <jasonr@gnu.org>
21970
21971 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
21972
21973 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
21974
21975 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
21976 (mac_term_init): Call here instead, passing rif.
21977
219782007-09-13 Glenn Morris <rgm@gnu.org>
21979
21980 * s/hpux.h: No longer define `static' as nothing.
21981
219822007-09-13 Johan Bockgård <bojohan@gnu.org>
21983
21984 * callint.c (Fcall_interactively): Remove unused var `fun'.
21985
219862007-09-12 Romain Francoise <romain@orebokech.com>
21987
21988 * window.c (prefer_window_split_horizontally, display_buffer):
21989 Revert 2007-09-08 change.
21990
219912007-09-12 Glenn Morris <rgm@gnu.org>
21992
21993 * alloca.c: Remove file.
21994 * Makefile.in (alloca): Do not undef.
21995 (allocaobj, alloca.o): Remove.
21996 (otherobj): Remove allocaobj.
21997 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
21998 * regex.c (C_ALLOCA): Remove all references and code that was only
21999 used when this was defined.
22000 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
22001 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
22002 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
22003
22004 * Makefile.in (SOURCES, unlock, relock): Delete.
22005
22006 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
22007 (menu_grab_callback): All uses changed.
22008
22009 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
22010 (x_reply_selection_request): All uses changed.
22011
220122007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
22013
22014 * lread.c (load_warn_old_style_backquotes): Change message to look
22015 better when it appears in the middle of byte-compiler messages.
22016
220172007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
22018
22019 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
22020
22021 * xterm.c (x_create_terminal): Add comment.
22022
22023 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
22024
220252007-09-10 Richard Stallman <rms@gnu.org>
22026
22027 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
22028
220292007-09-10 Michaël Cadilhac <michael@cadilhac.name>
22030
22031 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
22032 (DEFUN): Document `intspec', use it instead of `prompt'.
22033
22034 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
22035
22036 * data.c (Finteractive_form): If the interactive specification starts
22037 with a `(', use it as a Lisp form.
22038
22039 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
22040 name and file modes.
22041
22042 * callint.c (Fcall_interactively): Comment fixes.
22043
220442007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
22045
22046 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
22047 and compiled functions.
22048
220492007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
22050
22051 * window.c (prefer_window_split_horizontally): New variable.
22052 (display_buffer): Consider splitting window horizontally depending
22053 on prefer_window_split_horizontally.
22054
220552007-09-08 Eli Zaretskii <eliz@gnu.org>
22056
22057 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
22058
220592007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
22060
22061 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
22062
22063 * frame.c (x_set_frame_parameters): Check number is positive before
22064 using XFASTINT.
22065
22066 * window.c (freeze_window_start): Don't presume selected_window holds
22067 a window object.
22068 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
22069
220702007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
22071
22072 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
22073
220742007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
22075
22076 * window.c (Vsplit_window_preferred_function): New var.
22077 (Fdisplay_buffer): Use it.
22078 (syms_of_window): Export, and initialize it.
22079
220802007-09-06 Pixel <pixel@mandriva.com> (tiny change)
22081
22082 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
22083
220842007-09-06 Glenn Morris <rgm@gnu.org>
22085
22086 * gtkutil.c (menu_grab_callback) <cnt>:
22087 * xselect.c (x_reply_selection_request) <cnt>: Move static
22088 variable to file scope.
22089
220902007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
22091
22092 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
22093 consistent values of selected_frame and selected_window.
22094
220952007-09-04 Jason Rumney <jasonr@gnu.org>
22096
22097 * w32console.c (initialize_w32_display): Zero unused hooks.
22098
220992007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
22100
22101 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
22102 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
22103
221042007-09-04 Jason Rumney <jasonr@gnu.org>
22105
22106 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
22107 in w32console.c. Set up input. Remove XXX comments that have been
22108 confirmed as correct.
22109
22110 * s/ms-w32.h (MULTI_KBOARD): Define.
22111
22112 * w32console.c (one_and_only_w32cons): Remove.
22113 (initialize_w32_display): Take terminal argument.
22114
22115 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
22116 initialize_w32_display.
22117 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
22118
22119 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
22120
22121 * keyboard.c (discard_mouse_events): Discard it.
22122 (make_lispy_event): Translate it to a lisp event.
22123 (lispy_wheel_names): Add wheel-left and right events.
22124 (syms_of_keyboard): Enlarge wheel_syms.
22125
22126 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
22127 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
22128
22129 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
22130
22131 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
22132 from WM_MOUSEHWHEEL.
22133 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
22134
22135 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
22136 terminal.
22137
22138 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
22139 keyboard for the terminal.
22140
221412007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
22142
22143 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
22144 (Vresume_tty_hook): Rename from Vresume_tty_functions.
22145 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
22146 and resume-tty-function to resume-tty-hook.
22147 (Fsuspend_tty, Fresume_tty): Use new names.
22148
221492007-09-02 Jan Djärv <jan.h.d@swipnet.se>
22150
22151 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
22152 if it starts with "n:".
22153
221542007-08-31 Jan Djärv <jan.h.d@swipnet.se>
22155
22156 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
22157
221582007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
22159
22160 * frame.h:
22161 * frame.c (Qterm_environment_variable): Remove.
22162 (syms_of_frame): Don't init and staticpro it.
22163
22164 * callproc.c (getenv_internal): Remove special case for $TERM.
22165
22166 * callproc.c (Vinitial_environment): New variable.
22167 (set_initial_environment): Initialize it.
22168 (syms_of_callproc): Declare it.
22169 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
22170 TERM under which a process runs is never related to the TERM in which
22171 Emacs is running.
22172
221732007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
22174
22175 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
22176 * s/darwin.h: ... do it here.
22177
221782007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
22179
22180 * lisp.h (set_initial_environment): Rename from set_global_environment.
22181
22182 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
22183 removed by mistake on the multi-tty branch.
22184
22185 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
22186 (Fmodify_frame_parameters): Return a value.
22187
22188 * image.c (png_load): Comment-out var only used in commented-out code.
22189
22190 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
22191 before passing it to mark_object.
22192
22193 * xfaces.c (internal_resolve_face_name): Return a value.
22194 (internal_resolve_face_name, resolve_face_name_error): Comment out.
22195
22196 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
22197 (x_icon): Comment-out var only used in commented-out code.
22198
221992007-08-29 Romain Francoise <romain@orebokech.com>
22200
22201 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
22202 QUIT hasn't been provided.
22203
222042007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
22205
22206 * callproc.c (child_setup, getenv_internal): Use the
22207 display-environment-variable and term-environment-variable frame params.
22208 (set_initial_environment): Initialise Vprocess_environment.
22209
22210 * config.in: Disable multi-keyboard support on a mac.
22211
22212 * frame.c (Qterm_environment_variable)
22213 (Qdisplay_environment_variable): New variables.
22214 (syms_of_frame): Intern and staticpro them.
22215 (Fmake_terminal_frame): Disable output method test.
22216
22217 * frame.h: Declare them here.
22218
22219 * macfns.c (x_set_mouse_color): Get rif from the frame.
22220 (x_set_tool_bar_lines): Don't use updating_frame.
22221 (mac_window): Add 2 new parameters for consistency with other systems.
22222 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
22223 frame parameters following what is done in X11 and w32. Don't use
22224 FRAME_MAC_DISPLAY_INFO.
22225 (Fx_open_connection, start_hourglass): Remove window-system check.
22226 (x_create_tip_frame): Get the keyboard from the terminal.
22227
22228 * macmenu.c: Reorder includes.
22229 (Fx_popup_menu): Use terminal specific mouse_position_hook.
22230
22231 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
22232 terminal parameter.
22233 (x_clear_frame): Add a frame parameter.
22234 (note_mouse_movement): Get rif from the frame.
22235 (mac_term_init): Initialize the terminal.
22236 (mac_initialize): Make static and move terminal initialization ...
22237 (mac_create_terminal): ... to this new function.
22238
22239 * macterm.h (struct mac_display_info): Add terminal.
22240 (mac_initialize): Delete declaration.
22241
22242 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
22243
22244 * sysdep.c: Comment out text after #endif.
22245
22246 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
22247 is defined. Better initialize ttys in windows. Use terminal
22248 specific mouse_position_hook.
22249
22250 * termhooks.h (union display_info): Add mac_display_info.
22251
22252 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
22253 Set the default minibuffer frame, window_system and the rest of the
22254 frame parameters following what is done in X11.
22255
22256 * w32term.c (w32_initialize): Make static.
22257
22258 * xselect.c (x_handle_selection_clear): Only access
22259 terminal->kboard when MULTI_KBOARD is defined.
22260
22261 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
22262 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
22263
222642007-08-29 Jason Rumney <jasonr@gnu.org>
22265
22266 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
22267 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
22268
22269 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
22270 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
22271
22272 * keyboard.c (restore_kboard_configuration): Only define when
22273 MULTI_KBOARD defined.
22274
22275 * makefile.w32-in: Update dependancies from Makefile.in.
22276 (OBJ1): Add terminal.$(O)
22277
22278 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
22279 Don't define function body.
22280 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
22281
22282 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
22283
22284 * w32.c (request_sigio, unrequest_sigio): Remove.
22285
22286 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
22287 (w32con_clear_frame, w32con_clear_end_of_line)
22288 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
22289 (w32con_delete_glyphs, w32con_set_terminal_window)
22290 (scroll_line, w32_sys_ring_bell): Add frame arg.
22291 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
22292 Add terminal arg.
22293 (PICK_FRAME): Remove.
22294 (w32con_write_glyphs): Use frame specific terminal coding.
22295 (one_and_only_w32cons): New global variable.
22296 (initialize_w32_display): Use it for storing hooks.
22297 (create_w32cons_output): New function.
22298
22299 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
22300 arg a frame.
22301
22302 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
22303 Set window_system.
22304 (x_set_tool_bar_lines): Don't use updating_frame.
22305 (Fx_create_frame): Set terminal and ref count.
22306 (Fx_open_connection): Remove window-system check.
22307
22308 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
22309
22310 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
22311 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
22312 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
22313 Add frame arg.
22314 (x_delete_terminal, w32_create_terminal): New functions.
22315 (w32_term_init): Create a terminal.
22316 (w32_initialize): Move terminal specific initialization to
22317 w32_create_terminal.
22318
22319 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
22320 (w32_clear_rect, w32_clear_area): Use background from frame.
22321 (w32_display_info): Add terminal.
22322 (w32_sys_ring_bell, x_delete_display): Declare here.
22323
22324 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
22325
22326 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
22327
223282007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
22329
22330 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
22331 Fix get_named_tty calls for the controlling tty.
22332
223332007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
22334
194d44e7 22335 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
aac0c6e3
MR
22336
223372007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
22338
22339 * term.c (tty_insert_glyphs): Add missing first parameter.
22340
223412007-08-29 Károly Lőrentey <karoly@lorentey.hu>
22342
22343 * buffer.c (Fbuffer_list, Fbury_buffer):
22344 Take frame->buried_buffer_list into account.
22345
22346 * cm.c (current_tty): New variable, for cmputc().
22347 (cmputc): Use it.
22348 (cmcheckmagic): Add tty parameter, look up terminal streams there.
22349 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
22350 (cmgoto): Add tty parameter. Pass it on to calccost().
22351 Use emacs_tputs() instead of tputs().
22352
22353 * cm.h (emacs_tputs): New macro to set current_tty, and then call
22354 tputs().
22355 (current_tty): New variable, for cmputc().
22356 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
22357
22358 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
22359 (internal_condition_case, internal_condition_case_1)
22360 (internal_condition_case_2): Don't abort when x_catching_errors.
22361
22362 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
22363 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
22364 prevent crashes caused by bogus longjmps in read_char.
22365
22366 * keymap.h (Fset_keymap_parent): Add EXFUN.
22367
22368 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
22369 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
22370 Remove redundant definition.
22371
22372 * macfns.c (x_set_mouse_color, x_make_gc):
22373 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
22374
22375 * w32term.c (x_free_frame_resources):
22376 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
22377 (w32_initialize): Use the accessor macros for terminal characteristics.
22378
22379 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
22380 Use the accessor macros for terminal characteristics.
22381 * msdos.c (internal_terminal_init): Use the accessor macros for
22382 terminal characteristics.
22383 (ScreenVisualBell, internal_terminal_init):
22384 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
22385
22386 * termopts.h (no_redraw_on_reenter): Declare.
22387
22388 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
22389 (mark_terminals, mark_ttys): Declare.
22390 (Fgarbage_collect): Call them.
22391 (mark_object): Mark buried_buffer_list.
22392
22393 * prefix-args.c: Include stdlib.h for exit.
22394
22395 * syssignal.h: Add comment.
22396
22397 * indent.c: Include stdio.h.
22398
22399 * window.h (Vinitial_window_system): Declare.
22400 (Vwindow_system): Delete declaration.
22401
22402 * fontset.c (Finternal_char_font): Use FRAME_RIF.
22403
22404 * image.c (lookup_image): Don't initialize `c' until the xasserts
22405 have been run.
22406
22407 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
22408 FRAME_FOREGROUND_PIXEL.
22409
22410 * print.c (print_preprocess): Don't lose print_depth levels while
22411 iterating.
22412
22413 * widget.c (update_from_various_frame_slots):
22414 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
22415
22416 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
22417 frames.
22418 (window_internal_height): Remove bogus make_number call.
22419 (init_window_once): Call make_terminal_frame with two zero parameters.
22420
22421 * fileio.c (Fread_file_name): Update comment.
22422
22423 * callint.c (Fcall_interactively):
22424 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
22425 Make sure it is correctly unwound.
22426
22427 * xsmfns.c (x_session_close): New function.
22428
22429 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
22430 Delete declarations.
22431
22432 * xterm.h: Remove declaration for x_fully_uncatch_errors.
22433 (x_output): Remove background_pixel and foreground_pixel fields.
22434 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
22435 (x_delete_device, x_session_close): Declare.
22436
22437 * lread.c: Include setjmp.h. Update declaration of `read_char'.
22438 (read_filtered_event): Call `read_char' with a local
22439 `wrong_kboard_jmpbuf'.
22440
22441 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
22442 Don't call single_kboard_state. Use FRAME_RIF.
22443
22444 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
22445 systems.
22446
22447 * lisp.h (set_process_environment): Rename to `set_global_environment'.
22448 (Fframe_with_environment, Fset_input_meta_mode)
22449 (Fset_quit_char): EXFUN.
22450 (x_create_device, tty_output, terminal, tty_display_info): Declare.
22451 (init_sys_modes, reset_sys_modes): Update prototypes.
22452 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
22453
22454 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
22455 Vlocal_key_translation_map, and Vkeyboard_translate_table.
22456 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
22457 Delete declarations.
22458 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
22459 (temporarily_switch_to_single_kboard, tty_read_avail_input):
22460 New declarations.
22461
22462 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
22463 already does that during init_display(). Call syms_of_keymap
22464 before syms_of_keyboard. Call `syms_of_terminal'.
22465 Call set_initial_environment, not set_process_environment.
22466 (shut_down_emacs): Call reset_all_sys_modes() instead of
22467 reset_sys_modes().
22468
22469 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
22470 (internal_resolve_face_name, resolve_face_name_error): New functions.
22471 (resolve_face_name): Protect against loops and errors thrown by Fget.
22472 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
22473 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
22474
22475 * scroll.c: Replace CURTTY() with local variables throughout the
22476 file (where applicable).
22477 (calculate_scrolling, calculate_direct_scrolling)
22478 (scrolling_1, scroll_cost): Use the accessor macros for terminal
22479 characteristics.
22480
22481 * keymap.c (Vfunction_key_map): Remove.
22482 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
22483 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
22484 (Vkey_translation_map): Remove.
22485 (syms_of_keymap): Remove DEFVAR for key-translation-map.
22486 (Fdescribe_buffer_bindings)
22487 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
22488 Update for terminal-local key-translation-map.
22489
22490 * Makefile.in (callproc.o): Update dependencies.
22491 (lisp, shortlisp): Add termdev.elc.
22492 (obj): Add terminal.o.
22493 (terminal.o): Add dependencies.
22494 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
22495 (data.o, fns.o): Add termhooks.h dependency.
22496 (SOME_MACHINE_LISP): Add dnd.elc.
22497 (minibuf.o): Fix typo.
22498 Update dependencies.
22499
22500 * data.c (do_symval_forwarding, store_symval_forwarding)
22501 (find_symbol_value): Use the selected frame's keyboard, not
22502 current_kboard.
22503
22504 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
22505 Vwindow_system.
22506
22507 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
22508 Fmenu_bar_open.
22509 (syms_of_xmenu): Update defsubr.
22510 (mouse_position_for_popup, Fx_popup_menu)
22511 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
22512 (set_frame_menubar, free_frame_menubar)
b97439ce 22513 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
22514 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
22515 an X frame.
22516
22517 * xselect.c (x_own_selection): Abort if not an X frame.
22518 (some_frame_on_display): Check if it is an X frame.
22519 (x_handle_selection_clear): Deal with MULTI_KBOARD.
22520
22521 * coding.c: Include frame.h and termhooks.h.
22522 (terminal_coding, keyboard_coding): Delete.
22523 (Fset_terminal_coding_system_internal)
22524 (Fset_keyboard_coding_system_internal)
22525 (Fkeyboard_coding_system)
22526 (Fterminal_coding_system): Add a terminal parameter.
22527 Get terminal_coding from the terminal.
22528 (init_coding_once): Don't call setup_coding_system here.
22529
22530 * dispextern.h (set_scroll_region, turn_off_insert)
22531 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
22532 (tty_clear_end_of_line, tty_setup_colors)
22533 (delete_tty, updating_frame)
22534 (produce_special_glyphs, produce_glyphs, write_glyphs)
22535 (insert_glyphs): Remove.
22536 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
22537 (tty_turn_off_highlight, get_tty_size): Add declaration.
22538 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
22539
22540 * frame.h (enum output_method): Add output_initial.
22541 (struct x_output): Delete.
22542 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
22543 Access foreground_pixel and background_pixel directly from the frame.
22544 (tty_display): Delete.
22545 (struct frame): Add buried_buffer_list, foreground_pixel,
22546 background_pixel and terminal. Delete kboard.
22547 (union output_data): Add tty.
22548 (FRAME_KBOARD): Get the kboard from the terminal.
22549 (FRAME_INITIAL_P): New macro.
22550 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
22551 (Qterm_environment_variable, Qdisplay_environment_variable)
22552 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
22553 New declarations.
22554
22555 * termchar.h (tty_output, tty_display_info): New structures.
22556 (tty_list): Declare.
22557 (FRAME_TTY, CURTTY): New macros.
22558 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
22559 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
22560 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
22561 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
22562
22563 * callproc.c: Include frame.h and termhooks.h, for terminal
22564 parameters.
22565 (add_env): New function.
22566 (child_setup): Use it.
22567 (child_setup, getenv_internal): Handle the new Vprocess_environment.
22568 (getenv_internal): Fix get_terminal_param call.
22569 (Fgetenv_internal, egetenv): Update doc.
22570 (syms_of_callproc): Initialize Vprocess_environment to nil.
22571 Register and initialize them. Remove obsolete defvars. Update doc
22572 strings.
22573 (child_setup): Handle Vlocal_environment_variables.
22574 (getenv_internal): Add terminal parameter.
22575 Handle Vlocal_environment_variables.
22576 (Fgetenv_internal): Add terminal parameter.
22577 (child_setup, getenv_internal, Fgetenv_internal): Store the local
22578 environment in a frame (not terminal) parameter. Update doc strings.
22579 (set_initial_environment): Rename from set_global_environment.
22580 Store Emacs environment in initial frame parameter.
22581
22582 * xdisp.c (redisplay_internal): Update references to
22583 `previous_terminal_frame'.
22584 (display_mode_line, Fformat_mode_line): Replace calls to
22585 `push_frame_kboard' with `push_kboard'.
22586 (get_glyph_string_clip_rects): Add extra parentheses and
22587 braces to prevent compiler warnings.
22588 (calc_pixel_width_or_height): Add xassert to check that the
22589 frame is alive. Don't call `lookup_image' on a termcap frame.
22590 (message2_nolog, message3_nolog, redisplay_internal)
22591 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
22592 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
22593 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
22594 (Fx_display_pixel_width, Fx_display_pixel_height)
22595 (Fx_display_planes, Fx_display_color_cells)
22596 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
22597 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
22598 (Fx_display_backing_store, Fx_display_visual_class)
22599 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
22600 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
22601
22602 * xfns.c (x_set_foreground_color x_set_background_color)
22603 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
22604 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
22605 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
22606 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
22607 terminal that is being deleted.
22608 (Fx_create_frame): Use `store_frame_param' to set `window-system'
22609 frame parameter, and make sure it overrides any user-supplied setting.
22610 (Fx_close_connection, Fx_synchronize): Unify argument names with
22611 the rest of the DEFUNs.
22612
22613 * dispnew.c (Fsend_string_to_terminal): Update call to
22614 `get_tty_terminal'.
22615 (Fredraw_frame, Fsend_string_to_terminal)
22616 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
22617 FRAME_TERMCAP_P and FRAME_TTY.
22618 (window_change_signal): Don't believe width/height values that are
22619 impossibly small.
22620 (Vinitial_window_system): Rename from Vwindow_system.
22621 (termscript, Wcm, rif): Delete.
22622
22623 * termhooks.h (struct terminal): New struct containing the
22624 previously global text display hooks and new members NAME,
22625 DELETED and PARAM_ALIST.
22626 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
22627 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
22628 (FRAME_RIF): New macros.
22629 (get_terminal_param, get_device): New declarations.
22630 (termscript): Delete declaration.
22631
22632 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
22633 (XTflash, x_free_frame_resources, x_scroll_bar_create)
22634 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
22635 FRAME_FOREGROUND_PIXEL.
22636 (x_fully_uncatch_errors): Disable definition.
22637 (x_scroll_bar_expose): Fix reference to foreground pixel.
22638 (XTread_socket): Disable loop on all X displays.
22639 (x_delete_terminal): Don't set terminal->deleted and let
22640 delete_terminal delete the frames on the terminal.
22641 (x_delete_display): Doc update to reflect changes in
22642 delete_terminal.
22643 (x_display_info) <terminal>: Move member earlier in the struct.
22644 (deleting_tty): Remove old variable.
22645 (Fsuspend_tty): Call clear_tty_hooks.
22646 (Fresume_tty, init_tty): Call set_tty_hooks.
22647 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
22648 errors on X frames.
22649 (x_catch_errors_unwind): Abort if x_error_message is NULL.
22650 (handle_one_xevent): Initialize `f' to NULL.
22651 (x_delete_terminal, x_create_terminal): New functions.
22652 (XTset_terminal_modes, XTreset_terminal_modes)
22653 (XTread_socket, x_connection_closed, x_term_init)
22654 (x_term_init, x_delete_display): Add terminal parameter.
22655 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
22656 X connections.
22657
22658 * frame.c: Include termchar.h.
22659 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
22660 (Qwindow_system, Qenvironment, Qterm_environment_variable)
22661 (Qdisplay_environment_variable): New vars.
22662 (Fframep): Deal with output_initial.
22663 (Fframe-live-p): Doc fix.
22664 (Fwindow-system): New function.
22665 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
22666 (make_terminal_frame): Don't create frames on a terminal that is
22667 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
22668 (store_frame_param): Check for found_for_frame before calling XFRAME.
22669 (Fmake_terminal_frame): Handle NULL tty names correctly.
22670 (syms_of_frame): Enhance doc string of `default-frame-alist'.
22671 (Fdelete_frame): Remove unused variable `count'. Don't allow other
22672 frames to refer to a deleted frame in their 'environment parameter.
22673 (Fframe_with_environment): New function.
22674 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
22675 (get_future_frame_param): New function.
22676 (Fmake_terminal_frame): Use it.
22677 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
22678
22679 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
22680 * sysdep.c (reset_sys_modes): Update for renames.
22681
22682 * keyboard.c (tty_read_avail_input): New function.
22683 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
22684 (syms_of_keyboard): Defsubr them.
22685 (Fset_input_meta_mode, Fset_quit_char): New functions.
22686 (Fset_input_mode): Split to above functions.
22687 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
22688 parameter. Use it in call to `read_char'.
22689 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
22690 Set wrong_kboard_jmpbuf correctly in recursive calls.
22691 Use current_kboard to access Vkeyboard_translate_table.
22692 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
22693 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
22694 Update longjmp invocations. Remember the original current_kboard,
22695 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
22696 changes it. Comment out unnecessary calls to
22697 `record_single_kboard_state' and `any_kboard_state'.
22698 Update recursive calls.
22699 (wrong_kboard_jmpbuf): Remove global variable.
22700 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
22701 Handle deleted interrupted_kboards correctly; that is a legal
22702 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
22703 and read_char calls. Abort if interrupted_kboard died in read_char.
22704 (any_kboard_state, single_kboard_state)
22705 (push_frame_kboard): Remove function.
22706 (pop_kboard): Switch out of single_kboard mode if the kboard has
22707 been deleted. Remove unused variable. Help debugging by not
22708 changing current_kboard unnecessarily. Set current_kboard to the
22709 kboard of the selected frame when the stored kboard object has
22710 been deleted before pop_kboard.
22711 (temporarily_switch_to_single_kboard): Change first parameter to a
22712 frame pointer. Throw an error when caller wants to change kboards
22713 while in single_kboard mode. Don't push_kboard if we weren't in
22714 single kboard state. Don't pop_kboard if we popped into any
22715 kboard state.
22716 (restore_kboard_configuration): Abort if pop_kboard changed the
22717 kboard in single_kboard mode. Call pop_kboard only after setting
22718 up single_kboard mode.
22719 (Frecursive_edit): Switch to single_kboard mode only in nested
22720 command loops.
22721 (cmd_error, command_loop, command_loop_1, timer_check):
22722 Comment out unnecessary call to `any_kboard_state' and
22723 `record_single_kboard_state'.
22724 (delete_kboard): Exit single_kboard mode if we have just deleted
22725 that kboard. Use FRAME_KBOARD.
22726 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
22727 `fatal_error_signal'.
22728 (record_single_kboard_state): Don't push_kboard if we weren't in
22729 single kboard state. Don't pop_kboard if we popped into any
22730 kboard state.
22731 (push_frame_kboard): Rename to push_kboard.
22732 (kbd_buffer_get_event): Use FRAME_TERMINAL.
22733 (read_avail_input): Read input from all terminals.
22734 (mark_kboards): Also mark Vkeyboard_translate_table.
22735 (kbd_buffer_store_event_hold): Simplify condition.
22736 (read_key_sequence): Reinitialize fkey and keytran at each replay.
22737 (Vkeyboard_translate_table): Move to struct kboard.
22738 (init_kboard): Initialize Vkeyboard_translate_table.
22739 (syms_of_keyboard): Use DEFVAR_KBOARD to define
22740 Vkeyboard_translate_table. Update doc strings. Update docs of
22741 local-function-key-map and function-key-map.
22742
22743 * terminal.c: New file.
22744
22745 * term.c: Include errno.h.
22746 (Vring_bell_function, device_list, initial_device)
22747 (next_device_id, ring_bell, update_begin, update_end)
22748 (set_terminal_window, cursor_to, raw_cursor_to)
22749 (clear_to_end, clear_frame, clear_end_of_line)
22750 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
22751 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
22752 (syms_of_term): Move their initialization to terminal.c.
22753 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
22754 (Ftty_display_color_cells)
22755 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
22756 (clear_tty_hooks, set_tty_hooks)
22757 (init_tty, maybe_fatal): New functions.
22758 (Ftty_type): Return nil if terminal is not on a tty instead of
22759 throwing an error. Doc update.
22760 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
22761 Doc update. Initialize new subrs and variables.
22762 (delete_tty): Use terminal->deleted.
22763 (tty_set_terminal_modes): Rename from set_terminal_modes.
22764 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
22765 (set_scroll_region): Rename to `tty_set_scroll_region'.
22766 (turn_on_insert): Rename to `tty_turn_on_insert'.
22767 (turn_off_insert): Rename to `tty_turn_off_insert'.
22768 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
22769 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
22770 (toggle_highligh): Rename to `tty_toggle_highlight'.
22771 (background_highlight): Rename to `tty_background_highlight'.
22772 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
22773 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
22774 (tty_set_scroll_region, tty_background_highlight)
22775 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
22776 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
22777 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
22778 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
22779 Add static modifier.
22780 (tty_reset_terminal_modes, tty_set_terminal_window)
22781 (tty_set_scroll_region, tty_background_highlight)
22782 (tty_highlight_if_desired, tty_cursor_to)
22783 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
22784 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
22785 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
22786 renames.
22787
227882007-08-28 Jan Djärv <jan.h.d@swipnet.se>
22789
22790 * keyboard.c: Qrtl is new.
22791 (parse_tool_bar_item): Handle :rtl keyword.
22792 (syms_of_keyboard): Intern :rtl keyword.
22793
22794 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
22795
22796 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
22797 so no Lisp code is executed.
22798 (file_for_image, find_rtl_image): New functions.
22799 (xg_get_image_for_pixmap): Use file_for_image.
22800 (update_frame_tool_bar): If direction is RTL, use RTL image if
22801 defined. Use Gtk stock images if defined.
22802
228032007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22804
22805 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
22806 for nonexistent or zero-width glyph in composition glyph.
22807
228082007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
22809
22810 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
22811
22812 * xdisp.c (Finvisible_p): New function.
22813 (syms_of_xdisp): defsubr it.
22814
228152007-08-24 Juanma Barranquero <lekktu@gmail.com>
22816
22817 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
22818 Doc fixes.
22819
228202007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22821
22822 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
22823
228242007-08-24 Martin Rudalics <rudalics@gmx.at>
22825
22826 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
22827 whether decoding has modified buffer contents.
22828
228292007-08-24 Jason Rumney <jasonr@gnu.org>
22830
22831 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
22832 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
22833 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
22834 (init_svg_functions) [HAVE_NTGUI]: New function.
22835 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
22836 (svg_load_image): Use them.
22837 (svg_load_image) [HAVE_NTGUI]: Implement background.
22838
228392007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22840
22841 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
22842 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
22843 (LIBX): Remove @RSVG_LIBS@.
22844 (LIBES): Add $(RSVG_LIBS).
22845
22846 * image.c (svg_load_image): Blend with specified background if exists.
22847 Use IMAGE_BACKGROUND. Add Mac OS Support.
22848
22849 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
22850 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
22851 Remove macros.
22852 [MAC_OSX] (socket_callback): Do nothing.
22853 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
22854 ReceiveNextEvent.
22855 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
22856 socket_callback.
22857 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
22858
228592007-08-22 Glenn Morris <rgm@gnu.org>
22860
22861 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
22862
228632007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
22864
22865 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
22866
22867 * image.c: Add support for SVG images. Some additional comments
22868 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
22869 (svg_image_p): New function to test for SVG image.
22870 (svg_load): New function to load SVG image.
22871 (svg_load_image): New function, helper for svg_load.
22872 (Qsvg): New Lisp_object.
22873 (svg_keyword_index): New enum.
22874 (svg_format): New static `image_keyword' struct.
22875 (svg_type): New static `image_type' struct.
22876 (librsvg/rsvg.h): Include it.
22877
228782007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
22879
22880 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
22881
228822007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
22883
22884 * lread.c (Qold_style_backquotes): New var.
22885 (syms_of_lread): Init and staticpro it.
22886 (load_warn_old_style_backquotes): New fun.
22887 (Fload): Use them to warn about old style backquotes.
22888 (end_of_file_error, Fload): Remove unused vars.
22889
22890 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
22891
22892 * lread.c (Vold_style_backquotes): New var.
22893 (syms_of_lread): Init and export it to Elisp.
22894 (read1): Set it when we find an old-style (back)quote.
22895
228962007-08-22 Jason Rumney <jasonr@gnu.org>
22897
22898 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
22899
229002007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
22901
22902 * puresize.h (BASE_PURESIZE): Increase to 1140000.
22903
229042007-08-19 Richard Stallman <rms@gnu.org>
22905
22906 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
22907
229082007-08-19 Andreas Schwab <schwab@suse.de>
22909
22910 * alloc.c (pure): Round PURESIZE up.
22911
229122007-08-17 Jan Djärv <jan.h.d@swipnet.se>
22913
22914 * xterm.c (handle_one_xevent): Remove check that mouse click is in
22915 active frame.
22916
229172007-08-16 Richard Stallman <rms@gnu.org>
22918
22919 * eval.c (Fcommandp): Add parens to clarify.
22920
22921 * minibuf.c (Fall_completions): Use enum for type of table.
22922
22923 * emacs.c (USAGE2): Improve text.
22924
229252007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
22926
22927 * term.c (tty_default_color_capabilities): Declare static
22928 variables in file scope, to avoid HPUX compiler problem.
22929
229302007-08-13 Jan Djärv <jan.h.d@swipnet.se>
22931
22932 * gtkutil.c (update_frame_tool_bar): Use -1 as index
22933 to gtk_toolbar_insert.
22934
229352007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
22936
22937 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
22938
22939 * insdel.c (reset_var_on_error): New fun.
22940 (signal_before_change, signal_after_change):
22941 Use it to reset (after|before)-change-functions to nil in case of error.
22942 Bind inhibit-modification-hooks to t.
22943 Don't bind (after|before)-change-functions to nil while they run.
22944
229452007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22946
22947 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
22948 filling pixmap with stippled background.
22949
229502007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22951
22952 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
22953 Don't use invisible frame as parent window for repositioning.
22954
229552007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
22956
22957 * print.c (new_backquote_output): Rename from old_backquote_output.
22958 (print): Inverse its logic (according to its name) so as to match the
22959 behavior of new_backquote_flag in lread.c.
22960
229612007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22962
22963 * gmalloc.c (posix_memalign): New function.
22964
22965 * macterm.c (frame_highlight, frame_unhighlight): Don't call
22966 ActivateControl/DeactivateControl here.
22967 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
22968 frame-notice-user-settings is non-nil.
22969 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
22970 for kEventParamFMFontStyle.
22971 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
22972 mac_pass_command_to_system and mac_pass_control_to_system here.
22973 (XTread_socket): Call ActivateControl/DeactivateControl here.
22974 (XTread_socket) [TARGET_API_MAC_CARBON]:
22975 Check mac_pass_command_to_system and mac_pass_control_to_system here.
22976 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
22977 for window repositioning.
22978
229792007-08-08 Glenn Morris <rgm@gnu.org>
22980
22981 * Replace `iff' in doc-strings and comments.
22982
229832007-08-07 Chong Yidong <cyd@stupidchicken.com>
22984
22985 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
22986
229872007-08-07 Martin Rudalics <rudalics@gmx.at>
22988
22989 * fileio.c (Finsert_file_contents): Run format-decode and
22990 after_insert_file_functions on entire buffer when REPLACE is
22991 non-nil and inhibit modification_hooks and point_motion_hooks.
22992 For consistency, run after_insert_file_functions iff something
22993 got inserted. Move signal_after_change and update_compositions
22994 after code running after_insert_file_functions. Make sure that
22995 undo_list doesn't record intermediate steps of the decoding process.
22996
229972007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22998
22999 * emacs.c (main)
23000 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
23001 Call malloc_enable_thread on interactive startup.
23002
23003 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
23004 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
23005 [USE_PTHREAD]: Conditionalize with it.
23006 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
23007 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
23008 New functions.
23009
230102007-08-06 Chong Yidong <cyd@stupidchicken.com>
23011
23012 * xdisp.c (redisplay_window): When restoring original buffer
23013 position, make sure it is still valid.
23014
23015 * image.c (png_load): Ignore png-supplied background color.
23016
230172007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23018
23019 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
23020 Use kCFAbsoluteTimeIntervalSince1970.
23021
23022 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
23023 New variable.
23024 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
23025 event loop should be quit.
23026 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
23027 Quit dialog event loop if quit_dialog_event_loop is set.
23028
23029 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
23030 (Selection): New typedef. Use instead of ScrapRef.
23031 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
23032 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
23033 (mac_clear_selection): Rename from clear_scrap.
23034 (get_flavor_type_from_symbol): New argument SEL and subsume function of
23035 scrap_has_target_type. All uses changed.
23036 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
23037 (mac_selection_has_target_p): New functions.
23038 (mac_put_selection_value): Rename from put_scrap_string.
23039 (mac_get_selection_value): Rename from get_scrap_string.
23040 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
23041 (put_scrap_private_timestamp, scrap_has_target_type)
23042 (get_scrap_private_timestamp): Remove functions.
23043 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
23044 (x_own_selection, x_get_local_selection):
23045 Use mac_valid_selection_value_p.
23046 (x_own_selection): Don't use put_scrap_private_timestamp.
23047 Record OWNERSHIP-INFO into Vselection_alist instead.
23048 (x_get_local_selection): Don't check type if request is local.
23049 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
23050 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
23051
230522007-08-04 Jan Djärv <jan.h.d@swipnet.se>
23053
23054 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
23055 add comment explaining why.
23056
230572007-08-03 Richard Stallman <rms@gnu.org>
23058
23059 * fileio.c (Fvisited_file_modtime): Use make_time.
23060
230612007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
23062
23063 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
23064 build.
23065
230662007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
23067
23068 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
23069
230702007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
23071
23072 * puresize.h (BASE_PURESIZE): Increase to 1130000.
23073
230742007-07-30 Richard Stallman <rms@gnu.org>
23075
23076 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
23077
230782007-07-29 Jan Djärv <jan.h.d@swipnet.se>
23079
23080 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
23081
230822007-07-28 Nick Roberts <nickrob@snap.net.nz>
23083
23084 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
23085 remote default-directory.
23086
23087 * buffer.c (mode-line-format): Update doc string.
23088
230892007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23090
23091 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
23092 scroll bar gap.
23093 (x_scroll_bar_create): Set bar->fringe_extended_p.
23094 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
23095 on frame edge. Check fringe background extension. Don't clear
23096 extended fringe background area.
23097
23098 * w32term.h (struct scroll_bar): New member fringe_extended_p.
23099 (w32_fill_area): Enclose multiple statements with do ... while (0).
23100
23101 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
23102 Extend fringe background to scroll bar gap.
23103 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
23104 Set bar->fringe_extended_p.
23105 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
23106 Put leftmost/rightmost scroll bars on frame edge. Check fringe
23107 background extension. Don't clear extended fringe background area.
23108
23109 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
23110 New member fringe_extended_p.
23111
231122007-07-25 Glenn Morris <rgm@gnu.org>
23113
23114 * Relicense all FSF files to GPLv3 or later.
23115
23116 * COPYING: Switch to GPLv3.
23117
231182007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
23119
23120 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
23121
23122 * data.c (Finteractive_form): Check for the presence of an
23123 `interactive-form' symbol property more thoroughly.
23124
23125 * data.c (Finteractive_form): Use an `interactive-form' property if
23126 present, analogous to the function-documentation property.
23127
231282007-07-24 Jason Rumney <jasonr@gnu.org>
23129
23130 * w32fns.c (x_real_positions): Get real position from OS instead of
23131 calculating it.
23132
231332007-07-23 Jason Rumney <jasonr@gnu.org>
23134
23135 * filelock.c (current_lock_owner): Allow for @ sign in username.
23136
231372007-07-22 Nick Roberts <nickrob@snap.net.nz>
23138
23139 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
23140 remote default-directory.
23141
23142 * buffer.c (mode-line-format): Describe above case in doc string.
23143
231442007-07-20 Eli Zaretskii <eliz@gnu.org>
23145
23146 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
23147 Define if not defined.
23148
231492007-07-18 Jason Rumney <jasonr@gnu.org>
23150
23151 * w32proc.c (w32_executable_type): Handle 64 bit executables.
23152
231532007-07-18 Richard Stallman <rms@gnu.org>
23154
23155 * data.c (Fsetq_default): Doc fix.
23156
23157 * eval.c (Fsetq): Doc fix.
23158
231592007-07-18 Juanma Barranquero <lekktu@gmail.com>
23160
23161 * coding.c (Ffind_operation_coding_system):
23162 * eval.c (For, Fand): Doc fixes.
23163 Reported by Johan Bockgård.
23164
231652007-07-18 Jan Djärv <jan.h.d@swipnet.se>
23166
23167 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
23168
23169 * xterm.h: Declare x_ewmh_activate_frame.
23170
23171 * xterm.c (x_ewmh_activate_frame): New function.
23172 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
23173
231742007-07-17 Martin Rudalics <rudalics@gmx.at>
23175
23176 * window.c (Fdisplay_buffer): If largest or LRU window is the
23177 only window, split it even if it is not eligible for splitting.
23178 This restores the original behavior broken by the 2007-07-15
23179 change.
23180
231812007-07-17 Glenn Morris <rgm@gnu.org>
23182
23183 * abbrev.c (abbrev_check_chars): New function.
23184 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
23185 Call abbrev_check_chars to check abbrev characters are word
23186 constituents. Doc fix.
23187
231882007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
23189
23190 * process.c (Fstart_process, Fmake_network_process)
23191 (read_process_output): Fix up last changes.
23192
231932007-07-16 Eli Zaretskii <eliz@gnu.org>
23194
23195 * makefile.w32-in (clean): Don't delete *~.
23196
231972007-07-16 Andreas Schwab <schwab@suse.de>
23198
23199 * window.c (Fdisplay_buffer): Use NILP.
23200 (Fset_window_scroll_bars): Likewise.
23201
232022007-07-15 Martin Rudalics <rudalics@gmx.at>
23203
23204 * window.c (window_min_size_2): New function.
23205 (window_min_size_1, size_window, Fdisplay_buffer)
23206 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
23207 windows without mode- or header-lines when window-min-height is
23208 too small.
23209 (size_window): Reset nodelete_p after testing it, following an
23210 earlier note by Kim F. Storm.
23211 (display_buffer): Do not set split_height_threshold to twice the
23212 value of window_min_height to avoid changing the value of a
23213 customizable variable. Rather explicitly check whether the
23214 height of the window that shall be splitted is at least as large
23215 as split_height_threshold.
23216 (Fwindow_full_width_p): New defun.
23217 (syms_of_window): Defsubr it.
23218
23219 * window.h: Add EXFUN for Fwindow_full_width_p.
23220
232212007-07-14 Jason Rumney <jasonr@gnu.org>
23222
23223 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
23224
232252007-07-14 Richard Stallman <rms@gnu.org>
23226
23227 * eval.c (maybe_call_debugger): New function.
23228 (find_handler_clause): Use maybe_call_debugger.
23229 Call it when the handler says `debug'.
23230 Eliminate DEBUGGER_VALUE_PTR.
23231 (Fsignal): Eliminate debugger_value.
23232 (Qdebug): New variable.
23233 (syms_of_eval): Initialize it.
23234
232352007-07-14 Juanma Barranquero <lekktu@gmail.com>
23236
23237 * eval.c (Fprogn):
23238 * keyboard.c (Ftrack_mouse):
23239 * print.c (Fwith_output_to_temp_buffer):
23240 * window.c (Fsave_window_excursion): Doc fix.
23241
232422007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
23243
23244 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
23245
232462007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
23247
23248 * process.h (struct Lisp_Process): Turn slots infd, outfd,
23249 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
23250 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
23251 read_output_delay, and read_output_skip from Lisp_Objects to ints.
23252 Remove unused encoding_carryover.
23253 * process.c: Adjust all functions accordingly.
23254
232552007-07-12 Richard Stallman <rms@gnu.org>
23256
23257 * term.c: Include unistd.h only if HAVE_UNISTD_H.
23258
232592007-07-11 Jason Rumney <jasonr@gnu.org>
23260
23261 * makefile.w32-in (LIBS): Include OLE32.
23262
23263 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
23264 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
23265
232662007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
23267
23268 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
23269 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
23270 from a Lisp_Object into a bare pointer.
23271 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
23272 Adjust the code correspondingly.
23273
23274 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
23275
23276 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
23277 (term_show_mouse_face): Remove unused var `j'.
23278 (handle_one_term_event): Remove unused vars `i' and `j'.
23279 Don't cast return value of ttyname since it's not necessary.
23280
232812007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
23282
23283 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
23284 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
23285
23286 * fns.c (map_char_table): Use an array of int for `indices' rather than
23287 an array of Lisp_Objects (which are only ever integers anyway).
23288 (Fmap_char_table): Update caller.
23289 * lisp.h: Update prototype.
23290 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
23291 * fontset.c (Ffontset_info):
23292 * casetab.c (set_case_table): Update callers.
23293
23294 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
23295
23296 * keymap.c (struct accessible_keymaps_data)
23297 (struct where_is_internal_data): New structures.
23298 (accessible_keymaps_1, where_is_internal_1): Use them to change
23299 interface to adhere to the one used by map_keymap.
23300 (Faccessible_keymaps, where_is_internal): Use map_keymap.
23301 (accessible_keymaps_char_table, where_is_internal_2): Remove.
23302
23303 * keymap.h (map_keymap_function_t): More informative prototype.
23304
233052007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
23306
23307 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
23308 (looking_at_1): Don't change search_regs and last_thing_searched
23309 if `inhibit-changing-match-data' is non-nil.
23310 (string_match_1, search_buffer, set_search_regs): Likewise.
23311 (syms_of_search): Add Lisp level definition for
23312 `inhibit-changing-match-data' and set it to nil.
23313 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
23314 start and end of the match, instead of using values in search_regs.
23315
233162007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
23317
23318 * minibuf.c (Fcompleting_read): New value `confirm-only'
23319 for `require-match'.
23320
233212007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
23322
23323 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
23324 part of the 2007-06-27 change to syms_of_fileio.
23325
233262007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23327
23328 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
23329 Check WINDOWP before using XWINDOW. Consolidate return statements.
23330
233312007-06-27 Richard Stallman <rms@gnu.org>
23332
23333 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
23334
233352007-06-27 Juanma Barranquero <lekktu@gmail.com>
23336
23337 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
23338
233392007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23340
23341 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
23342 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
23343 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
23344 (_free_internal, memalign): Use them.
23345 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
23346 Initialize to PTHREAD_MUTEX_INITIALIZER.
23347 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
23348 (morecore_nolock): Rename from morecore. All uses changed.
23349 Use only nolock versions of internal allocation functions.
23350 (_malloc_internal_nolock, _realloc_internal_nolock)
23351 (_free_internal_nolock): New functions created from
23352 _malloc_internal, _realloc_internal, and _free_internal.
23353 (_malloc_internal, _realloc_internal, _free_internal): Use them.
23354 Copy hook value to automatic variable before its use.
23355 (memalign): Copy hook value to automatic variable before its use.
23356
233572007-06-26 Kenichi Handa <handa@m17n.org>
23358
23359 * coding.c (Ffind_operation_coding_system): Docstring improved.
23360 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
23361
233622007-06-25 David Kastrup <dak@gnu.org>
23363
23364 * keymap.c (Fcurrent_active_maps): Add `position' argument.
23365 (Fwhere_is_internal): Adjust call to `current-active-maps' to
23366 cater for additional parameter.
23367
23368 * keymap.h: Adjust number of parameters to `current-active-maps'.
23369
23370 * doc.c (Fsubstitute_command_keys): Adjust call of
23371 `current-active-maps'.
23372
233732007-06-25 David Kastrup <dak@gnu.org>
23374
23375 * callint.c (Fcall_interactively): Make the parsing of interactive
23376 specs somewhat more readable.
23377
233782007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23379
23380 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
23381 to scroll bar gap also when bitmap fills fringe. Draw only foreground
23382 if extended background has already been filled.
23383
233842007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23385
23386 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
23387 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
23388
23389 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
23390 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
23391 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
23392 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
23393 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
23394 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
23395 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
23396 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
23397 Run timers during dialog popup.
23398 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
23399
234002007-06-21 Jason Rumney <jasonr@gnu.org>
23401
23402 * image.c (convert_mono_to_color_image): Swap fore and background.
23403
234042007-06-20 Jason Rumney <jasonr@gnu.org>
23405
23406 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
23407 (w32_free_bdf_font): Unmap memory not handle.
23408
234092007-06-20 Sam Steingold <sds@gnu.org>
23410
23411 * gmalloc.c (__morecore): Fix the declaration to comply with the
23412 definition.
23413
234142007-06-20 Juanma Barranquero <lekktu@gmail.com>
23415
23416 * w32term.c (w32_delete_display): Remove leftover declaration.
23417 (w32_define_cursor, w32_initialize): Make static.
23418
23419 * w32.c (_wsa_errlist): Fix typo in error message.
23420 (init_environment): Ignore any environment variable from the
23421 registry having a null value.
23422
234232007-06-20 Glenn Morris <rgm@gnu.org>
23424
23425 * Makefile.in (LIBGIF): Default to -lgif.
23426
234272007-06-17 Jason Rumney <jasonr@gnu.org>
23428
23429 * w32menu.c (add_menu_item): Don't use multibyte string functions on
23430 unicode strings.
23431
234322007-06-16 Juanma Barranquero <lekktu@gmail.com>
23433
23434 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
23435 Fix typo in docstring.
23436
234372007-06-16 Eli Zaretskii <eliz@gnu.org>
23438
23439 * w32menu.c (add_menu_item): Escape `&' characters in menu items
23440 and their keybindings.
23441
234422007-06-15 Chong Yidong <cyd@stupidchicken.com>
23443
23444 * composite.c (update_compositions): Fix last fix.
23445
234462007-06-14 Jason Rumney <jasonr@gnu.org>
23447
23448 * w32.c (get_process_times_fn): New function pointer.
23449 (globals_of_w32): Intialize it if present in kernel32.dll.
23450 (w32_get_internal_run_time): New function.
23451
23452 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
23453
234542007-06-14 Kenichi Handa <handa@etlken.m17n.org>
23455
23456 * composite.c (update_compositions): Check the validness of
23457 compositions.
23458
234592007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23460
23461 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
23462 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
23463
23464 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
23465 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
23466
23467 * macgui.h (USE_MAC_TOOLBAR): New define.
23468
23469 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
23470 Return immediately unless popup is activated.
23471
23472 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
23473 background to scroll bar gap.
23474 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
23475 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
23476 scroll bars on frame edge. Check fringe background extension.
23477 Don't clear extended fringe background area.
23478 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
23479 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
23480 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
23481 [USE_MAC_TOOLBAR]: New macros.
23482 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
23483 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
23484 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
23485 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
23486 [USE_MAC_TOOLBAR]: New functions.
23487 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
23488 manually if previous repositioning has failed.
23489 (mac_handle_keyboard_event): Use precomputed event kind.
23490 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
23491 as tool bar item click. Handle mouse movement over tool bar items.
23492
23493 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
23494 toolbar_win_gravity.
23495 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
23496 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
23497 Add externs.
23498
23499 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
23500 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
23501
235022007-06-14 Chong Yidong <cyd@stupidchicken.com>
23503
23504 * image.c (search_image_cache): Remove unused variable.
23505
235062007-06-13 Chong Yidong <cyd@stupidchicken.com>
23507
23508 * xfns.c, xmenu.c: Link to xaw3d if available.
23509
235102007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23511
23512 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
23513 frame_foreground and frame_background.
23514
23515 * image.c (lookup_image): Save frame foreground and background colors.
23516 (search_image_cache): Check if saved and current frame colors match.
23517
235182007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
23519
23520 * regex.c (regex_compile): Remove the `regnum' counter.
23521 Use bufp->re_nsub instead. Add support for \(?N:RE\).
23522
235232007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
23524
23525 * term.c: Include intervals.h to declare Fget_text_property.
23526
235272007-06-10 Jason Rumney <jasonr@gnu.org>
23528
23529 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
23530
235312007-06-08 Juanma Barranquero <lekktu@gmail.com>
23532
23533 * callint.c (Fcall_interactively):
23534 * editfns.c (Fdelete_and_extract_region):
23535 * fileio.c (Fread_file_name):
23536 * fns.c (Fmapconcat):
23537 * keyboard.c (cmd_error_internal):
23538 * keymap.c (Fkey_description):
23539 * lread.c (openp):
23540 * minibuf.c (read_minibuf):
23541 * search.c (wordify):
23542 * sunfns.c (sel_read):
23543 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
23544 * xfns.c (x_default_scroll_bar_color_parameter):
23545 * xmenu.c (menu_help_callback):
23546 * xselect.c (Fx_get_atom_name):
23547 * xterm.c (x_term_init): Use empty_unibyte_string.
23548
235492007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
23550
23551 * alloc.c (init_strings): Initialize canonical empty strings.
23552 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
23553 canonical empty string when the requested size is 0.
23554
23555 * emacs.c (empty_unibyte_string): Rename from empty_string.
23556 (empty_multibyte_string): New canonical empty string.
23557 (syms_of_emacs): Don't initialize empty_string.
23558
23559 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
23560 string, if appropriate.
23561 (empty_unibyte_string, empty_multibyte_string): New externs.
23562 (empty_string): Remove extern.
23563
23564 * lread.c (syms_of_lread): Use empty_unibyte_string.
23565
235662007-06-07 Jason Rumney <jasonr@gnu.org>
23567
23568 * s/ms-w32.h: Don't define HAVE_TZNAME.
23569
23570 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
23571
235722007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23573
23574 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
23575
23576 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
23577 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
23578
23579 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
23580 Don't call next handler.
23581 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
23582 Remove argument. Install handler to application.
23583 (set_frame_menubar): Don't change deep_p.
23584 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
23585 FRAME_OUTER_TO_INNER_DIFF_Y.
23586 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
23587 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
23588 [HAVE_DIALOGS]: New macros.
23589 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
23590 Use them.
23591 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
23592
23593 * macselect.c [MAC_OSX] (install_service_handler): Rename from
23594 init_service_handler. All callers changed. Return OSStatus value.
23595
23596 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
23597 All callers changed so as not to call SetPortWindowPort.
23598 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
23599 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
23600 mac_draw_string_common.
23601 (mac_draw_image_string_qd): Likewise.
23602 (mac_draw_string_common): Use them. Add INLINE.
23603 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
23604 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
23605 GetGlobalMouse.
23606 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
23607 and FRAME_OUTER_TO_INNER_DIFF_Y.
23608 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
23609 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
23610 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
23611 repositioning window to mac_handle_window_event.
23612 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
23613 saving window location to mac_handle_window_event
23614 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
23615 (install_menu_target_item_handler): Remove argument in extern.
23616 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
23617 Also accept command events.
23618 (do_keystroke): New function created from XTread_socket.
23619 (init_command_handler): Remove functions.
23620 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
23621 and save window location by kEventWindowShowing and kEventWindowHiding
23622 handlers here. Don't call next handler for window state change and
23623 focus events.
23624 (mac_handle_application_event, mac_handle_keyboard_event)
23625 [TARGET_API_MAC_CARBON]: New functions.
23626 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
23627 kEventWindowShowing and kEventWindowHiding events. Move installation
23628 of mouse, font, text input and menu target item handlers to
23629 install_application_handler.
23630 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
23631 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
23632 New function.
23633 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
23634 Register it.
23635 (XTread_socket) [TARGET_API_MAC_CARBON]:
23636 Consolidate SendEventToEventTarget calls.
23637 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
23638 Move application activation handler to mac_handle_application_event.
23639 Move keyboard handler to mac_handle_keyboard_event.
23640 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
23641 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
23642 init_command_handler. Call install_application_handler.
23643
23644 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
23645 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
23646
236472007-06-07 Glenn Morris <rgm@gnu.org>
23648
23649 * emacs.c (main): Use `emacs-copyright' in --version output.
23650
236512007-06-06 Chong Yidong <cyd@stupidchicken.com>
23652
23653 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
23654
236552007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23656
23657 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
23658
23659 * macgui.h: Replace WindowPtr with WindowRef.
23660
23661 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
23662 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
23663 Replace ControlHandle with ControlRef.
23664 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
23665
23666 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
23667 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
23668 Replace ControlHandle with ControlRef.
23669 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
23670 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
23671
23672 * macterm.h (struct scroll_bar): Rename member control_handle_low
23673 and control_handle_high to control_ref_low and control_ref_high.
23674 All uses changed.
23675 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
23676 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
23677 respectively. All uses changed.
23678 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
23679 (install_window_handler, remove_window_handler): Replace WindowPtr
23680 with WindowRef in externs.
23681
236822007-06-05 Juanma Barranquero <lekktu@gmail.com>
23683
23684 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
23685
236862007-06-03 Nick Roberts <nickrob@snap.net.nz>
23687
23688 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
23689
23690 * frame.c (Fmouse_position, Fmouse_pixel_position):
23691 Condition on HAVE_GPM too.
23692
23693 * term.c (term_mouse_highlight): Remove unused variables.
23694 (Fterm_open_connection): Set gpm_zerobased to 1.
23695 (term_mouse_movement, term_mouse_click, handle_one_term_event):
23696 Use zero based co-ordinates.
23697 (handle_one_term_event): Report a drag as mouse movement too.
23698
23699 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
23700
237012007-06-03 Chong Yidong <cyd@stupidchicken.com>
23702
23703 * image.c (search_image_cache): New function. Require background
23704 color match if background color is unspecified in the image spec.
23705 (uncache_image, lookup_image): Use it.
23706
237072007-06-01 Juanma Barranquero <lekktu@gmail.com>
23708
23709 * window.c (Fshrink_window): Reflow docstring.
23710
237112007-06-02 Chong Yidong <cyd@stupidchicken.com>
23712
23713 * Version 22.1 released.
23714
237152007-06-01 Richard Stallman <rms@gnu.org>
23716
23717 * xfns.c (x_encode_text): Add GCPRO.
23718
237192007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23720
23721 * xfns.c (x_set_name_internal): Save encoded name before
23722 x_encode_text in case string data is relocated.
23723
237242007-05-31 Richard Stallman <rms@gnu.org>
23725
23726 * buffer.c (syms_of_buffer): Doc fix.
23727
237282007-05-30 Nick Roberts <nickrob@snap.net.nz>
23729
23730 * sysdep.c (init_sys_modes): Add rather than replace with
23731 O_NONBLOCK.
23732
23733 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
23734 term_mouse_moveto.
23735
23736 * termhooks.h (term_mouse_moveto): New extern.
23737
23738 * term.c (mouse_face_window): Rename...
23739 (Qmouse_face_window): ...to this.
23740 (term_show_mouse_face, term_clear_mouse_face)
23741 (term_mouse_highlight): Use Qmouse_face_window.
23742 (term_mouse_moveto): New function.
23743 (term_mouse_position): Make it work.
23744 (syms_of_term): Uncomment assignment to mouse_position_hook.
23745 Staticpro Qmouse_face_window.
23746
237472007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23748
23749 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
23750 around current_column call.
23751
237522007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
23753
23754 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
23755 * xdisp.c (next_element_from_buffer):
23756 * window.c (delete_window):
23757 * term.c (term_mouse_highlight):
23758 * msdos.c (getdefdir):
23759 * macterm.c (mac_create_bitmap_from_bitmap_data)
23760 (init_font_name_table):
23761 * fns.c (Fsxhash):
23762 * data.c (Fmake_local_variable):
23763 * ccl.c (ccl_driver): Likewise.
23764
237652007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23766
23767 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
23768 Call mac_wakeup_from_rne on window size change.
23769
237702007-05-25 Chong Yidong <cyd@stupidchicken.com>
23771
23772 * image.c (uncache_image): Fix typo.
23773
237742007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
23775
23776 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
23777
237782007-05-22 Richard Stallman <rms@gnu.org>
23779
23780 * xterm.c (x_connection_closed): Remove NO_RETURN.
23781
237822007-05-22 Martin Rudalics <rudalics@gmx.at>
23783
23784 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
23785
237862007-05-21 Chong Yidong <cyd@stupidchicken.com>
23787
23788 * image.c (uncache_image): New function.
23789 (Fimage_refresh): New function.
23790
237912007-05-20 Jan Djärv <jan.h.d@swipnet.se>
23792
23793 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
23794
237952007-05-20 Nick Roberts <nickrob@snap.net.nz>
23796
23797 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
23798 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
23799
238002007-05-20 Nick Roberts <nickrob@snap.net.nz>
23801
23802 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
23803 conditional on [HAVE_GPM_H].
23804
238052007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
23806
23807 * syntax.c (skip_chars): Update syntax-table only after we checked that
23808 the new location is valid.
23809
238102007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23811
23812 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
23813 mac_get_window_bounds.
23814
238152007-05-20 Nick Roberts <nickrob@snap.net.nz>
23816
23817 * Makefile.in (LIBGPM): Allow it to be set from configure.
23818 If set then link Emacs with it.
23819
23820 * config.in: Regenerate.
23821
23822 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
23823 New externs.
23824
23825 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
23826 Include gpm.h.
23827 (handle_one_term_event, term_gpm): New externs.
23828
23829 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
23830 and allow it to be interrupted by SIGIO.
23831
23832 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
23833 (wait_reading_process_output): Wait on gpm_fd too.
23834 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
23835 (add_gpm_wait_descriptor_called_flag): New variable.
23836 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
23837
23838 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
23839 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
23840 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
23841 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
23842 (make_lispy_event): Add case GPM_CLICK_EVENT.
23843 (read_avail_input): Handle mouse input.
23844
23845 * term.c (write_glyphs_with_face): New function.
23846 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
23847 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
23848 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
23849 (mouse_face_face_id, term_gpm, pos_x, pos_y)
23850 (last_mouse_x, last_mouse_y): New variables.
23851 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
23852 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
23853 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
23854 (Fterm_close_connection): New functions.
23855 (term_init): Initialise mouse_face_window.
23856
238572007-05-19 Chong Yidong <cyd@stupidchicken.com>
23858
23859 * xdisp.c (redisplay_window): If first window line is a
23860 continuation line, recompute the new window start instead of
23861 recentering.
23862
238632007-05-18 Glenn Morris <rgm@gnu.org>
23864
23865 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
23866 Suggested by Alfred M. Szmidt <ams@gnu.org>.
23867
238682007-05-17 Glenn Morris <rgm@gnu.org>
23869
23870 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
23871
238722007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23873
23874 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
23875 dead key repeat and up events.
23876
238772007-05-14 Chong Yidong <cyd@stupidchicken.com>
23878
23879 * image.c (pbm_load): Check image size for monochrome pbm.
23880
238812007-05-13 Chong Yidong <cyd@stupidchicken.com>
23882
23883 * xterm.c (XTread_socket): Revert last change.
23884
238852007-05-12 Chong Yidong <cyd@stupidchicken.com>
23886
23887 * image.c (pbm_load): Correctly check image size for greyscale pbm.
23888
23889 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
23890
238912007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
23892
23893 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
23894 mixup (YAILOM).
23895
238962007-05-07 Andreas Schwab <schwab@suse.de>
23897
23898 * keymap.c (Flookup_key): Fix typo in last change.
23899
239002007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
23901
23902 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
23903 mapping for unibyte strings.
23904
239052007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23906
23907 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
23908 (Fx_popup_dialog) [MAC_OSX]: Likewise.
23909
239102007-04-29 Richard Stallman <rms@gnu.org>
23911
23912 * insdel.c (replace_range): For undo, record insertion first.
23913
239142007-04-29 Andreas Schwab <schwab@suse.de>
23915
23916 * lisp.h (VECSIZE): Use OFFSETOF.
23917
239182007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23919
23920 * xdisp.c (try_window_reusing_current_matrix): Fix number of
23921 disabled lines.
23922
239232007-04-28 Richard Stallman <rms@gnu.org>
23924
23925 * lread.c (read_escape): In a string, \s is always space.
23926
239272007-04-27 Jan Djärv <jan.h.d@swipnet.se>
23928
23929 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
23930
23931 * gtkutil.c (xg_update_menubar, create_menus): Create empty
23932 submenu for menu bar items.
23933
23934See ChangeLog.10 for earlier changes.
23935
23936;; Local Variables:
23937;; coding: utf-8
23938;; add-log-time-zone-rule: t
aac0c6e3
MR
23939;; End:
23940
e3eb1dae 23941 Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
aac0c6e3
MR
23942
23943 This file is part of GNU Emacs.
23944
23945 GNU Emacs is free software: you can redistribute it and/or modify
23946 it under the terms of the GNU General Public License as published by
23947 the Free Software Foundation, either version 3 of the License, or
23948 (at your option) any later version.
23949
23950 GNU Emacs is distributed in the hope that it will be useful,
23951 but WITHOUT ANY WARRANTY; without even the implied warranty of
23952 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23953 GNU General Public License for more details.
23954
23955 You should have received a copy of the GNU General Public License
23956 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
23957
23958;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40