Split smie-indent-calculate into more manageable chunks.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
c55d2abf
DN
12010-06-02 Dan Nicolaescu <dann@ics.uci.edu>
2
08a494a3
DN
3 Fix config.h includes.
4 * xsettings.c:
5 * xgselect.c:
6 * nsterm.m:
7 * nsselect.m:
8 * nsimage.m:
9 * nsfont.m:
10 * nsfns.m:
11 * dbusbind.c: Use #include <config.h> instead of "config.h" as all
12 other files do.
13
75934b1d
DN
14 * gmalloc.c: Remove BROKEN_PROTOTYPES reference, unused.
15
9f32a766
DN
16 * s/sol2-6.h: Remove obsolete comments.
17
c55d2abf
DN
18 Remove unnecessary alloca.h includes.
19 * keymap.c: Do not include alloca.h, config.h does that.
20 * sysdep.c: Likewise. Do not define fwrite, not used.
21
06ac62b4
SM
222010-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
23
24 * sysdep.c (child_setup_tty): Move the non-canonical initialization to
25 the HAVE_TERMIO where it belongs (bug#6149).
26
1ab8293c
SM
272010-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
28
29 * keymap.c (Fwhere_is_internal): Fix handling of remapping (in thread
30 of bug#6305).
31
6dcfd253
EZ
322010-05-30 Eli Zaretskii <eliz@gnu.org>
33
34 * bidi.c (bidi_move_to_visually_next): Make sure the sentinel
35 state is always cached (bug#6306).
36
6d26bbb2
EZ
372010-05-29 Eli Zaretskii <eliz@gnu.org>
38
06fa4a23
EZ
39 Fix cursor motion in bidi-reordered continued lines.
40 * xdisp.c (try_cursor_movement): Backup to non-continuation line
41 only after finding point's row. Fix the logic. Rewrite the loop
6d26bbb2
EZ
42 over continuation lines in bidi-reordered buffers. Return
43 CURSOR_MOVEMENT_MUST_SCROLL upon failure to find a suitable row,
44 rather than CURSOR_MOVEMENT_CANNOT_BE_USED.
45
f5783df3
MA
462010-05-28 Michael Albinus <michael.albinus@gmx.de>
47
48 * fileio.c (Fdelete_file): Pass TRASH arg to handler call.
49
7d56b2dd
KH
502010-05-28 Kenichi Handa <handa@m17n.org>
51
52 * font.c (font_delete_unmatched): Check Vface_ignored_fonts.
53 Don't sheck SPEC if it is nil.
54 (font_list_entities): Call font_delete_unmatched if
b925d231 55 Vface_ignored_fonts is non-nil. (Bug#6287)
7d56b2dd 56
e58d4ff7
GM
572010-05-28 Glenn Morris <rgm@gnu.org>
58
59 * Makefile.in (LIBES): Remove $LOADLIBES, it is never set.
60
f1a5d776
CY
612010-05-27 Chong Yidong <cyd@stupidchicken.com>
62
63 * fileio.c (Fdelete_file): Change meaning of optional arg to mean
64 whether to trash.
65 (internal_delete_file, Frename_file): Callers changed.
66 (delete_by_moving_to_trash): Doc fix.
67 (Fdelete_directory_internal): Don't move to trash.
68
69 * callproc.c (delete_temp_file):
70 * buffer.c (Fkill_buffer): Callers changed.
71
72 * lisp.h: Update prototype.
73
f44a59e6
CY
742010-05-27 Chong Yidong <cyd@stupidchicken.com>
75
76 * xdisp.c (redisplay_window): After redisplay, check if point is
77 still valid before setting it (Bug#6177).
78
81ac4f35
GM
792010-05-27 Glenn Morris <rgm@gnu.org>
80
81 * Makefile.in, autodeps.mk, deps.mk, ns.mk:
82 Convert comments to Makefile format.
83
84 * Makefile.in (bootstrap-clean): No more Makefile.c.
85
ccd89fb3
GM
862010-05-26 Glenn Morris <rgm@gnu.org>
87
90278cb6
GM
88 * Makefile.in (YMF_PASS_LDFLAGS): Remove.
89 (temacs${EXEEXT}): Use PRE_EDIT_LDFLAGS, POST_EDIT_LDFLAGS.
90
ccd89fb3
GM
91 * Makefile.in (NS_IMPL_GNUSTEP_INC, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
92 Remove.
93 (TEMACS_LDFLAGS): Do not use NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
94
b7050583
KH
952010-05-26 Kenichi Handa <handa@m17n.org>
96
97 * composite.c (composition_compute_stop_pos): Fix condition for
98 backward scanning.
99
e5458003
GM
1002010-05-25 Glenn Morris <rgm@gnu.org>
101
c345fe90
GM
102 * Makefile.in (@NS_IMPL_GNUSTEP_INC@, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
103 Move before TEMACS_LDFLAGS.
104 (TEMACS_LDFLAGS): Use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
105 (temacs${EXEEXT}): Do not use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
106
2e0689ab
GM
107 * Makefile.in (NOT_C_CODE): No longer define.
108 (config.h): No longer include.
109
8009a5e8
GM
110 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): Move definition after some
111 variables it may reference.
112
e5458003
GM
113 * Makefile.in (LD_SWITCH_SYSTEM_EXTRA): Remove.
114 (TEMACS_LDFLAGS): Remove LD_SWITCH_SYSTEM_EXTRA.
115
10f72a37
KH
1162010-05-25 Kenichi Handa <handa@m17n.org>
117
118 * dispextern.h (struct composition_it): New members rule_idx and
119 charpos.
120
121 * xdisp.c (set_iterator_to_next): While scanning backward, assume
122 that the character positions of IT point the last character of the
123 current grapheme cluster.
124 (next_element_from_composition): Don't change character positions
125 of IT.
126 (append_composite_glyph): Set glyph->charpos to
127 it->cmp_it.charpos.
128
129 * composite.c (autocmp_chars): Change the first argument to RULE,
130 and try composition with RULE only.
131 (composition_compute_stop_pos): Record the index number of the
132 composition rule in CMP_IT->rule_idx.
133 (composition_reseat_it): Call autocmp_chars repeatedly until the
134 correct rule of the composition is found.
135 (composition_update_it): Set CMP_IT->charpos. Assume the CHARPOS
136 is at the last character of the current grapheme cluster when
137 CMP_IT->reversed_p is nonzero.
138
171eda53 1392010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
f5b416d2 140
171eda53
SM
141 * editfns.c (Fbyte_to_string): New function.
142
66a9f7f4
SM
1432010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
144
145 * process.c (Fmake_network_process): Set :host to nil if it's not used.
146 Suggested by Masatake YAMATO <yamato@redhat.com>.
147
d8c315d1
EZ
1482010-05-23 Eli Zaretskii <eliz@gnu.org>
149
171eda53 150 * dispextern.h (init_iterator): Sync prototype with changed definition.
d8c315d1 151
f5b416d2 1522010-05-20 enami tsugutomo <tsugutomo.enami@jp.sony.com>
153
154 * s/netbsd.h: If terminfo is found, use it in preference to
155 termcap. (Bug#6190) [Backport from trunk]
156
0416466c
EZ
1572010-05-19 Eli Zaretskii <eliz@gnu.org>
158
11117830 159 Redesign and reimplement bidi-aware edge positions of glyph rows.
d36fe237
EZ
160
161 * dispextern.h (struct glyph_row): New members minpos and maxpos.
162 (MATRIX_ROW_START_CHARPOS, MATRIX_ROW_START_BYTEPOS)
163 (MATRIX_ROW_END_CHARPOS, MATRIX_ROW_END_BYTEPOS): Reference minpos
164 and maxpos members instead of start.pos and end.pos, respectively.
165
166 * xdisp.c (display_line): Compare IT_CHARPOS with the position in
167 row->start.pos, rather than with MATRIX_ROW_START_CHARPOS.
168 (cursor_row_p): Use row->end.pos rather than MATRIX_ROW_END_CHARPOS.
66a9f7f4
SM
169 (try_window_reusing_current_matrix, try_window_id):
170 Use ROW->minpos rather than ROW->start.pos.
d36fe237
EZ
171 (init_from_display_pos, init_iterator): Use EMACS_INT for
172 character and byte positions.
66a9f7f4 173 (find_row_edges): Rename from find_row_end. Accept additional
d36fe237
EZ
174 arguments for minimum and maximum buffer positions seen by
175 display_line for this row. Don't use iterator to find the
176 position following the maximum one; instead, increment the
11117830
EZ
177 position found by display_line directly. Fix logic; eol_pos
178 should be tested before the rest. Handle the case of characters
179 delivered from display vector (bug#6036). Fix tests related to
180 it->method. Handle the truncated_on_right_p rows.
181 (RECORD_MAX_MIN_POS): New macro.
182 (display_line): Use it to record the minimum and maximum buffer
183 positions for glyphs in the row being assembled. Record the
184 position of the newline that terminates the line. If word wrap is
185 in effect, restore minimum and maximum positions seen up to the
186 wrap point, when iterator returns to it.
187 (try_window_reusing_current_matrix): Give up if in bidi-reordered
188 row and cursor not already at point. Restore original pre-bidi
189 code for unidirectional buffers.
d36fe237
EZ
190
191 * dispnew.c (increment_row_positions, check_matrix_invariants):
192 Increment and check row->start.pos and row->end.pos, in addition
193 to MATRIX_ROW_START_CHARPOS and MATRIX_ROW_END_CHARPOS.
194
11117830
EZ
195 * .gdbinit (prowlims): Display row->minpos and row->maxpos.
196 Display truncated_on_left_p and truncated_on_right_p flags.
197 Formatting fixes.
198 (pmtxrows): Display the ordinal number of each row. Don't display
199 rows beyond the last one.
200
201 * bidi.c (bidi_cache_iterator_state): Don't zero out new_paragraph:
202 it is not copied by bidi_copy_it.
203
6e83d800
EZ
2042010-05-22 Eli Zaretskii <eliz@gnu.org>
205
206 * w32.c (sys_write): Break writes into chunks smaller than 32MB.
207 (Bug#6237)
208
110683ad
CY
2092010-05-22 Chong Yidong <cyd@stupidchicken.com>
210
211 * image.c (Fimage_flush): Rename from image-refresh.
212
98fe5161
CY
2132010-05-21 Chong Yidong <cyd@stupidchicken.com>
214
215 * xdisp.c (redisplay_internal): Clear caches even if redisplaying
216 just one window.
217
218 * image.c (Vimage_cache_eviction_delay): Decrease to 300.
219 (clear_image_cache): If the number of cached images is unusually
220 large, decrease the cache eviction delay (Bug#6230).
221
e8752c66
GM
2222010-05-21 Glenn Morris <rgm@gnu.org>
223
66dbf213
GM
224 * Makefile.in (${ns_appdir}, ${ns_appbindir}Emacs, ns-app):
225 Move these rules to ns.mk.
226 * ns.mk: New file.
227
04384b2d
GM
228 * Makefile.in (../src/$(OLDXMENU), $(OLDXMENU)): Always define rules.
229
e8752c66
GM
230 * Makefile.in (CANNOT_DUMP): New, set by configure.
231 (emacs${EXEEXT}, bootstrap-emacs${EXEEXT}): Use $CANNOT_DUMP.
232
2e2bbddb
JL
2332010-05-20 Juri Linkov <juri@jurta.org>
234
235 * fileio.c (Fdelete_file): Change interative spec to use
236 `read-file-name' like in `find-file-read-args' where the default
237 value is `default-directory' instead of `buffer-file-name'.
238 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00533.html
239
31c4aaf6
KR
2402010-05-20 Kevin Ryde <user42@zip.com.au>
241
242 * keyboard.c (Vlast_command, Vkeyboard_translate_table)
243 (Voverriding_terminal_local_map, Vsystem_key_alist)
244 (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
245
9d5cf9b6
GM
2462010-05-20 Glenn Morris <rgm@gnu.org>
247
248 * Makefile.in (DEPDIR): New constant.
249 (DEPFLAGS): Set with configure, not cpp.
250 (MKDEPDIR): New, set by configure.
251 (.c.o, .m.o, ecrt0.o): Use $MKDEPDIR.
252 (clean): Use $DEPDIR.
253 (deps_frag): Include from configure.
254 Move static/dynamic dependency stuff to deps.mk/autodeps.mk.
255 * deps.mk, autodeps.mk: New files, extracted from Makefile.in.
256
ead6f8f5
EZ
257 * bidi.c (bidi_cache_shrink, bidi_cache_iterator_state): Fix
258 reallocation of the cache. (Bug#6210)
259
7f34aec3
GM
2602010-05-19 Glenn Morris <rgm@gnu.org>
261
d494e8f2
GM
262 * s/msdos.h (ORDINARY_LINK): Move to sed2v2.inp.
263
c1d0dcfd
GM
264 * Makefile.in (LD, YMF_PASS_LDFLAGS): Set with configure, not cpp.
265 (GNULIB_VAR): Remove.
266 (LIBES): Use LIB_GCC instead of GNULIB_VAR.
267
268 * m/ibms390x.h (LINKER):
269 * m/macppc.h (LINKER) [GNU_LINUX]:
270 * s/aix4-2.h (ORDINARY_LINK):
271 * s/cygwin.h (LINKER):
272 * s/darwin.h (ORDINARY_LINK):
273 * s/gnu.h (ORDINARY_LINK):
274 * s/netbsd.h (LINKER):
275 * s/usg5-4.h (ORDINARY_LINK):
276 Move to configure.
277
7f34aec3
GM
278 * s/aix4-2.h (LINKER): Remove; this file sets ORDINARY_LINK.
279
754790b6
CY
2802010-05-18 Chong Yidong <cyd@stupidchicken.com>
281
282 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
283 prevent stack overflow if number of arguments is too large
284 (Bug#6214).
285
161e44d1
JB
2862010-05-18 Juanma Barranquero <lekktu@gmail.com>
287
288 * charset.c (load_charset_map_from_file): Don't call close after fclose.
289
be4ff9da
GM
2902010-05-18 Glenn Morris <rgm@gnu.org>
291
9539dc5d
GM
292 * s/gnu-linux.h: Combine two conditionals.
293
294 * Makefile.in (otherobj): Include $(VMLIMIT_OBJ) separately from
6665f4c5
GM
295 $(POST_ALLOC_OBJ).
296
40dc6bf4
GM
297 * Makefile.in (RALLOC_OBJ): New, set by configure.
298 (rallocobj): Replace with the previous variable.
299 (otherobj): Use $RALLOC_OBJ.
300
301 * s/gnu.h (REL_ALLOC) [DOUG_LEA_MALLOC]:
302 * s/gnu-linux.h (REL_ALLOC) [DOUG_LEA_MALLOC]: Move undef to configure.
303
be4ff9da
GM
304 * Makefile.in (GMALLOC_OBJ, VMLIMIT_OBJ): New, set by configure.
305 (gmallocobj, vmlimitobj): Replace with previous two variables.
306 (otherobj): Use $GMALLOC_OBJ, $VMLIMIT_OBJ.
307
16455a85
GM
3082010-05-17 Glenn Morris <rgm@gnu.org>
309
310 * Makefile.in (OLDXMENU_DEPS): New, set by configure.
311 (stamp-oldxmenu): Use $OLDXMENU_DEPS.
312
5fdb7468
GM
3132010-05-16 Glenn Morris <rgm@gnu.org>
314
7ca1f3f9
GM
315 * Makefile.in (${ns_appbindir}Emacs, ns-app): Always define these rules.
316
7541dad5
GM
317 * Makefile.in (clean): Get rid of HAVE_NS conditional.
318
da53fab9
GM
319 * Makefile.in (ns_appdir, ns_appbindir): Now configure adds the
320 trailing "/".
321
b02a6645
GM
322 * Makefile.in (TEMACS_LDFLAGS2): New, set by configure.
323 (temacs${EXEEXT}): Combine the NS_IMPL_GNUSTEP case with the default.
324
8877ca0f
GM
325 * Makefile.in (GNUSTEP_SYSTEM_LIBRARIES): Remove, unused.
326 (NS_IMPL_GNUSTEP_TEMACS_LDFLAGS): New, set by configure.
327 (LD) [NS_IMPL_GNUSTEP]: Set to $(CC) -rdynamic.
328 (temacs${EXEEXT}): Remove $LOCALCPP, never defined or referenced.
329 Make most of the NS_IMPL_GNUSTEP case the same as the default case.
330
5fdb7468
GM
331 * Makefile.in (temacs${EXEEXT}) [!NS_IMPL_GNUSTEP]:
332 Remove ${STARTFLAGS}, nothing ever sets it.
333
95adb4b1
DN
3342010-05-16 Dan Nicolaescu <dann@ics.uci.edu>
335
336 * m/ia64.h (UNEXEC): Remove, set in s/*.h.
337
676b6304
GM
3382010-05-16 Glenn Morris <rgm@gnu.org>
339
9beab9ce
GM
340 * Makefile.in (LIBX_BASE): Always define.
341
8a95f0e7
GM
342 * Makefile.in (LIBX_OTHER): Move out of cpp section.
343
676b6304
GM
344 * Makefile.in (LIBXT): Always define.
345
6e546d18
GM
3462010-05-15 Glenn Morris <rgm@gnu.org>
347
4235ca47 348 * Makefile.in (OLDXMENU, LIBXMENU, LIBX_OTHER): Always define.
02d4ac0e 349
6e546d18
GM
350 * Makefile.in (FONT_DRIVERS): Remove, replace with $FONT_OBJ.
351 (obj, SOME_MACHINE_OBJECTS): Use $FONT_OBJ.
352
8c5ff6dd
KR
3532010-05-15 Ken Raeburn <raeburn@raeburn.org>
354
560bb7ae 355 * lisp.h (XFLOAT_DATA): Use "0?x:x" to generate an rvalue. (Bug#5916)
52766425
KR
356 (LISP_MAKE_RVALUE) [!USE_LISP_UNION_TYPE && !__GNUC__]: Likewise.
357
8b4eb796
KR
358 * emacs.c (main): Initialize initial-environment and
359 process-environment before generating from env, not after.
360
8c5ff6dd
KR
361 Handle --version reasonably in CANNOT_DUMP configuration.
362 * emacs.c (emacs_version, emacs_copyright): New string variables.
363 (Vemacs_version, Vemacs_copyright): New Lisp_Object variables.
364 (syms_of_emacs): Defvar them, and initialize them from the C
365 string variables.
366 (main): If initialization hasn't been done, print initial version
367 info from the C strings, instead of starting an interactive session.
368
dbd3f723
EZ
3692010-05-15 Eli Zaretskii <eliz@gnu.org>
370
d20e1419
EZ
371 * bidi.c (bidi_paragraph_init): Don't leave alone garbage values
372 of bidi_it->paragraph_dir. Call bidi_initialize if needed.
2e9abc3d
EZ
373 (bidi_paragraph_init): Remove redundant assertion that we are at
374 the beginning of a line after call to bidi_find_paragraph_start.
d20e1419
EZ
375
376 * xdisp.c (Fcurrent_bidi_paragraph_direction): New function.
377 (syms_of_xdisp): Defsubr it.
378
d36fe237
EZ
379 * cmds.c (Fforward_char, Fbackward_char): Doc fix.
380
dbd3f723
EZ
381 * Makefile.in: Fix MSDOS-related comments.
382
02be533b
GM
3832010-05-15 Glenn Morris <rgm@gnu.org>
384
1a82cca9
GM
385 * Makefile.in (OLDXMENU_TARGET): New, set by configure.
386 (really-lwlib, really-oldXMenu): Always define.
387 ($OLDXMENU): Depend on $OLDXMENU_TARGET.
388
3df7b338
GM
389 * Makefile.in: Simplify cpp conditional.
390
2b5f541b
GM
391 * Makefile.in (${ns_appdir}): Simplify using umask.
392
02be533b
GM
393 * Makefile.in (${ns_appdir}): Remove references to CVS-related files.
394
4e2db1fe
SM
3952010-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
396
397 * eval.c (specbind): Remove left-over duplicate test.
398 Disallow let-binding frame-local vars. Add comment.
399
4b292a22
EZ
4002010-05-14 Eli Zaretskii <eliz@gnu.org>
401
2fe72643 402 Make the cache of bidi iterator states dynamically allocated.
1edbd309 403 * bidi.c (bidi_cache_shrink): New function.
2fe72643
EZ
404 (bidi_init_it): Call it.
405 (bidi_cache_iterator_state): Enlarge the cache if needed.
406
4e2db1fe 407 * bidi.c (bidi_move_to_visually_next): Rename from
4b292a22
EZ
408 bidi_get_next_char_visually. All callers changed.
409
82ebc97b
KH
4102010-05-14 Kenichi Handa <handa@m17n.org>
411
412 * dispextern.h (struct composition_it): New member reversed_p.
413
414 * composite.c (composition_compute_stop_pos): Search backward if
415 ENDPOS < CHARPOS.
416 (composition_reseat_it): Handle the case that ENDPOS < CHARPOS.
417 Set CMP_IT->reversed_p.
b4b6e17e 418 (composition_update_it): Pay attention to CMP_IT->reversed_p.
82ebc97b 419
4e2db1fe
SM
420 * xdisp.c (set_iterator_to_next):
421 Call composition_compute_stop_pos with negative ENDPOS if we are
82ebc97b
KH
422 scanning backward. Call composition_compute_stop_pos if scan
423 direction is changed.
424 (next_element_from_buffer): Call composition_compute_stop_pos with
425 negative ENDPOS if we are scanning backward.
426 (next_element_from_composition): Pay attention to
427 IT->cmp_it.reversed_p.
428
0e5d7800
KH
4292010-05-14 Kenichi Handa <handa@m17n.org>
430
560bb7ae 431 * font.c (font_range): Return the range for the font found at first.
0e5d7800 432
cb027b32
GM
4332010-05-14 Glenn Morris <rgm@gnu.org>
434
177b0288
GM
435 * Makefile.in (ns_appdir, ns_appbindir, ns_appsrc): Always define.
436
fbc00890
GM
437 * Makefile.in (mktime, X11, register): Move undefs to configure.
438
f14d1dfd
GM
439 * Makefile.in (MSDOS_OBJ): Default to empty, let msdos scripts set it.
440 (MSDOS_X_OBJ): New variable.
441 (MSDOS_SUPPORT_REAL): New constant.
442 (MSDOS_SUPPORT): Set as a variable, not with cpp.
443 (obj): Use MSDOS_X_OBJ.
444 (lisp): Use MSDOS_SUPPORT as a variable.
445
11842bd8
GM
446 * Makefile.in (REAL_MOUSE_SUPPORT): New constant.
447 (GPM_MOUSE_SUPPORT): Now it's a constant.
448 (MOUSE_SUPPORT, TOOLTIP_SUPPORT, WINDOW_SUPPORT): Set with configure,
449 not cpp.
450
489d31a4 451 * Makefile.in (@NS_IMPL_GNUSTEP_INC@): Use in place of #ifdef.
845612ac 452 (ns_appresdir): Remove, unused.
e20f1f07 453
489d31a4
GM
454 * Makefile.in (SHELL): Move outside cpp section.
455
cb027b32
GM
456 * s/netbsd.h (AMPERSAND_FULL_NAME): Remove (defined in AH_BOTTOM).
457
5a903aa9
GM
4582010-05-13 Glenn Morris <rgm@gnu.org>
459
3369c79f
GM
460 * Makefile.in (FONT_DRIVERS): Place with other HAVE_X_WINDOWS stuff.
461 (TOOLTIP_SUPPORT): Place with other HAVE_WINDOW_SYSTEM stuff.
462
d5e982a6
GM
463 * Makefile.in (FONT_DRIVERS): If HAVE_X_WINDOWS is defined,
464 HAVE_WINDOW_SYSTEM must be too.
465
6192e163
GM
466 * Makefile.in (WINNT_SUPPORT): Remove, nt build does not use this file.
467 (lisp): Remove WINNT_SUPPORT.
468
472c5d6b
GM
469 * Makefile.in (OLDXMENU, LIBXMENU) [!HAVE_MENUS]:
470 Let configure set these variables (to empty) in this case as well.
471
0116466b
GM
472 * Makefile.in (LD_SWITCH_X_SITE): Define as a variable, not via cpp.
473 (LIBX_BASE): Use $LD_SWITCH_X_SITE.
474
5a903aa9
GM
475 * Makefile.in (C_SWITCH_X_SYSTEM, C_SWITCH_X_SITE, LIB_STANDARD)
476 (LIB_MATH, FONTCONFIG_CFLAGS, FONTCONFIG_LIBS, FREETYPE_CFLAGS)
477 (FREETYPE_LIBS, LIBOTF_CFLAGS, LIBOTF_LIBS, M17N_FLT_CFLAGS)
478 (M17N_FLT_LIBS, GNU_OBJC_CFLAGS, GNUSTEP_SYSTEM_LIBRARIES, LIBGPM)
479 (LIBRESOLV, UNEXEC_OBJ): For clarity, define variables to hold
c0a2b70a 480 the values output by configure.
5a903aa9
GM
481 (ALL_CFLAGS, obj, LIBES, temacs${EXEEXT}): Use the above variables.
482
1a0d7c06
GM
4832010-05-12 Glenn Morris <rgm@gnu.org>
484
b5457f14
GM
485 * Makefile.in (YMF_PASS_LDFLAGS, LD, LINKER): Simplify the logic.
486 (LINKER_WAS_SPECIFIED): Remove.
487
1a0d7c06
GM
488 * Makefile.in (LIB_GCC): Set using configure, not cpp.
489 (GNULIB_VAR) [!ORDINARY_LINK]: Always set to $LIB_GCC.
490 * m/arm.h (LIB_GCC) [GNU_LINUX]:
491 * s/cygwin.h (LIB_GCC):
492 * s/freebsd.h (LIB_GCC):
493 * s/gnu-linux.h (LIB_GCC):
494 * s/msdos.h (LIB_GCC):
495 * s/netbsd.h (LIB_GCC):
496 Move to configure.
497
3ffd4615 4982010-05-11 Karel Klic <kklic@redhat.com>
c90ca7b7
KH
499
500 * ftfont.c: Fix incorrect parentheses of #if condition for
501 definining M17N_FLT_USE_NEW_FEATURE.
502
acddf8ae
GM
5032010-05-11 Glenn Morris <rgm@gnu.org>
504
505 * Makefile.in (LIBS_SYSTEM) [MSDOS]: Do not reset.
506 * s/msdos.h (MSDOS_LIBS_SYSTEM): Remove.
507
ae5e04fa
EZ
5082010-05-10 Eli Zaretskii <eliz@gnu.org>
509
510 * xdisp.c (init_iterator): Don't turn on bidi reordering in
511 unibyte buffers. See
512 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00263.html.
513
7490175b
GM
5142010-05-10 Glenn Morris <rgm@gnu.org>
515
97efb629
GM
516 * Makefile.in (LIBS_SYSTEM): Set using configure, not cpp.
517 (LIBS_SYSTEM) [MSDOS]: Reset with MSDOS_LIBS_SYSTEM.
518 (LIBES): Use LIBS_SYSTEM as a variable.
519 * s/msdos.h (LIBS_SYSTEM): Rename to MSDOS_LIBS_SYSTEM. Always define.
520 * s/aix4-2.h (LIBS_SYSTEM):
521 * s/freebsd.h (LIBS_SYSTEM):
522 * s/hpux10-20.h (LIBS_SYSTEM):
523 * s/sol2-6.h (LIBS_SYSTEM):
524 * s/unixware.h (LIBS_SYSTEM):
525 Move to configure.
526
7490175b
GM
527 * s/aix4-2.h (MAIL_USE_LOCKF):
528 * s/bsd-common.h (MAIL_USE_FLOCK):
529 * s/darwin.h (MAIL_USE_FLOCK):
530 * s/gnu-linux.h (MAIL_USE_FLOCK):
531 * s/irix6-5.h (MAIL_USE_FLOCK):
532 * s/template.h (MAIL_USE_FLOCK):
533 Move to configure.
534
0235128c 5352010-05-08 Chong Yidong <cyd@stupidchicken.com>
61a808e8
CY
536
537 * Version 23.2 released.
538
0235128c 5392010-05-08 Andreas Schwab <schwab@linux-m68k.org>
5dcde606
AS
540
541 * composite.c (autocmp_chars): Save point as marker before calling
542 auto-composition-function (Bug#5984).
543
544 * lisp.h (restore_point_unwind): Add prototype.
545
546 * fileio.c (restore_point_unwind): Remove static attribute.
547
0235128c 5482010-05-08 Kenichi Handa <handa@m17n.org>
c4170e32
KH
549
550 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
551 new feature of libotf and m17n-flt.
0235128c
SM
552 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
553 Call OTF_check_features even if no specific feature is given.
c4170e32
KH
554 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
555 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
556 that OUT is NULL. Use OTF_drive_gsub_with_log and
557 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
558 OTF_drive_gpos.
559 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
0235128c
SM
560 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
561 Setup mflt_enable_new_feature and mflt_try_otf.
562
4721152c
J
5632010-05-08 Jan Djärv <jan.h.d@swipnet.se>
564
565 * xsettings.c (Ftool_bar_get_system_style): Correct comment.
566
567 * gtkutil.c (xg_pack_tool_bar): Change show_all to show for handle
568 box and toolbar (Bug #6139).
569 (xg_create_tool_bar): Remove comment (Bug #6139).
570 (xg_make_tool_item): Remove gtk_widget_show_all (Bug #6139).
571 (xg_show_toolbar_item): Add gtk_widget_show for weventbox (Bug #6139).
572
ee0a16cf
JB
5732010-05-08 Juanma Barranquero <lekktu@gmail.com>
574
575 * makefile.w32-in ($(BLD)/eval.$(O), $(BLD)/w32fns.$(O)):
576 Update dependencies.
577
96d79611
EZ
5782010-05-08 Eli Zaretskii <eliz@gnu.org>
579
580 * fringe.c (update_window_fringes): Set up truncation bitmaps for
581 R2L lines.
582
40c17879
GM
5832010-05-08 Glenn Morris <rgm@gnu.org>
584
7b42b29f
GM
585 * Makefile.in (THIS_IS_MAKEFILE): Remove, unused.
586
40c17879
GM
587 * Makefile.in (LIBS_TERMCAP): Set with configure, not cpp.
588 (TERMCAP_OBJ): New, set by configure, replacing termcapobj.
589 (termcapobj): Replace with TERMCAP_OBJ.
590 (otherobj): Use $TERMCAP_OBJ instead of $termcapobj.
591 (LIBES): Use LIBS_TERMCAP as a variable.
592
593 * s/freebsd.h (osreldate.h): No longer include, since this file
594 does not use __FreeBSD_version any more.
595
596 * s/aix4-2.h (TERMINFO):
597 * s/cygwin.h (TERMINFO):
598 * s/darwin.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
599 * s/freebsd.h (TERMINFO, LIBS_TERMCAP):
600 * s/gnu-linux.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
601 * s/gnu.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
602 * s/hpux10-20.h (TERMINFO, LIBS_TERMCAP):
603 * s/irix6-5.h (TERMINFO):
604 * s/netbsd.h (LIBS_TERMCAP):
605 * s/openbsd.h (TERMINFO, LIBS_TERMCAP):
606 * s/sol2-6.h (LIBS_TERMCAP) [!TERMINFO]:
607 * s/usg5-4.h (TERMINFO):
608 Move to configure.
609
94b612ad
SM
6102010-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
611
612 * eval.c (unbind_to): Don't unbind a local binding into the global
613 binding when the local binding disappeared. Inversely, don't unbind
614 a global binding into a newly created local binding.
615 * data.c (set_internal): Make its `buf' arg into a `where' arg so we
616 can specify the frame to use, when applicable. Adjust callers.
617
15e12598
VB
6182010-05-07 Vincent Belaïche <vincent.belaiche@gmail.com>
619 Stefan Monnier <monnier@iro.umontreal.ca>
620
621 * floatfns.c (Fisnan, Fcopysign, Ffrexp, Fldexp): New functions.
622
f724825e
EZ
6232010-05-07 Eli Zaretskii <eliz@gnu.org>
624
5cba3209
EZ
625 * w32fns.c: Include w32.h.
626 (Fw32_shell_execute): Decode the error message before passing it
627 to `error'. (Bug#6126)
628
d16bdfc3
EZ
629 * msdos.c (dos_set_window_size):
630 * w16select.c (Fx_selection_exists_p): Use `Fsymbol_value (foo)'
631 instead of `XSYMBOL (foo)->value'.
632
59d93e87
EZ
6332010-05-07 Eli Zaretskii <eliz@gnu.org>
634
9fdec8bc
EZ
635 Fix the MS-DOS build, broken by autoconfiscation.
636
637 * Makefile.in: Don't use Make-style comments past the "start of
638 cpp stuff" line.
639 (MSDOS_OBJ): Remove xmenu.o (it is now defined by XMENU_OBJ).
640
641 * s/msdos.h (UNEXEC): Don't define (@unexec@ in Makefile.in is
642 edited directly by msdos/sed1v2.inp).
f724825e 643
2f86b22b
GM
6442010-05-07 Glenn Morris <rgm@gnu.org>
645
646 * Makefile.in (LD_SWITCH_SYSTEM): Set with configure, not cpp.
647 (LD_SWITCH_SYSTEM_EXTRA): New variable, set by configure.
648 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM and $LD_SWITCH_SYSTEM_EXTRA,
649 move out of cpp section.
650 * s/freebsd.h (LD_SWITCH_SYSTEM):
651 * s/gnu-linux.h (LD_SWITCH_SYSTEM):
652 * s/netbsd.h (LD_SWITCH_SYSTEM):
653 * s/openbsd.h (LD_SWITCH_SYSTEM): Move to configure.in.
654
49ebbd65
DN
6552010-05-07 Dan Nicolaescu <dann@ics.uci.edu>
656
657 Define LIB_STANDARD and START_FILES using autoconf.
658 * s/usg5-4.h (LIB_STANDARD):
659 * s/netbsd.h (START_FILES):
660 * s/irix6-5.h (LIB_STANDARD):
661 * s/hpux10-20.h (LIB_STANDARD, START_FILES):
662 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
663 * s/freebsd.h (START_FILES):
664 * s/darwin.h (START_FILES):
665 * s/cygwin.h (START_FILES):
666 * s/aix4-2.h (LIB_STANDARD):
667 * m/ibmrs6000.h (START_FILES): Remove, move logic to configure.in.
668 * Makefile.in (STARTFILES): Rename to START_FILES, define using
669 autoconf, not cpp.
670
d43c06d6
DN
6712010-05-06 Dan Nicolaescu <dann@ics.uci.edu>
672
28823648
DN
673 Remove NEED_BSDTTY and NEED_UNISTD_H.
674 * s/hpux10-20.h (NEED_BSDTTY): Remove.
675 * s/aix4-2.h (NEED_UNISTD_H): Remove.
676 * systty.h: Simplify conditionals for including <sys/bsdtty.h>,
677 <sys/ptyio.h> and <unistd.h>.
678
aca00430
DN
679 * emacs.c (main): Remove NO_DIR_LIBRARY conditional, unused.
680
d43c06d6
DN
681 * Makefile.in (STARTFILES): Conditionally define to make the usage clear.
682 * s/gnu.h (START_FILES): Remove empty definition.
683
3e56b11d
JD
6842010-05-06 Jan Djärv <jan.h.d@swipnet.se>
685
686 * xterm.c (x_draw_image_relief): Move declaration of extra to beginning.
687
e3cf0cde
GM
6882010-05-06 Glenn Morris <rgm@gnu.org>
689
690 * Makefile.in (CPP, LN_S): Remove unused variables.
691
774b9a60
SM
6922010-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
693
694 * syntax.c (Fchar_syntax): Check the arg is a character (bug#6080).
695
4ab92842
LM
6962010-05-05 Lawrence Mitchell <wence@gmx.li>
697
698 * m/sparc.h: Fix typo in earlier change.
699
178f2507
SM
7002010-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
701
702 Misc tweaks.
703 * eval.c (Fdefvaralias): Remove unintended nested if.
704 (internal_condition_case_2, internal_condition_case_n): Use ANSI type.
705
80f00217 7062010-05-04 Bernhard Herzog <bh@intevation.de> (tiny change)
991be6d4
JD
707
708 * xsmfns.c (smc_save_yourself_CB): strlen(client_id) => strlen(cwd).
709
ef03a4e6
DN
7102010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
711
58eb6cf0
DN
712 Remove BSD_PGRPS.
713 * s/bsd-common.h (BSD_PGRPS): Remove undef.
714 * s/gnu-linux.h (BSD_PGRPS): Remove.
715 * term.c (dissociate_if_controlling_tty):
716 * sysdep.c (narrow_foreground_group, widen_foreground_group)
717 (init_sys_modes, reset_sys_modes):
718 * emacs.c (main):
719 * callproc.c (Fcall_process, child_setup): Remove code depending
720 on BSD_PGRPS.
721
ef03a4e6
DN
722 Remove POSIX_SIGNALS.
723 * s/usg5-4.h (POSIX_SIGNALS):
724 * s/netbsd.h (POSIX_SIGNALS):
725 * s/msdos.h (POSIX_SIGNALS):
726 * s/ms-w32.h (POSIX_SIGNALS):
727 * s/hpux11.h (POSIX_SIGNALS):
728 * s/gnu.h (POSIX_SIGNALS):
729 * s/gnu-linux.h (POSIX_SIGNALS):
730 * s/freebsd.h (POSIX_SIGNALS):
731 * s/darwin.h (POSIX_SIGNALS):
732 * s/cygwin.h (POSIX_SIGNALS):
733 * s/aix4-2.h (POSIX_SIGNALS): Remove definition.
734 * s/unixware.h:
735 * s/sol2-6.h: Remove comments on POSIX_SIGNALS.
736 * process.c (create_process):
737 * syssignal.h:
738 * sysdep.c (wait_for_termination, init_signals):
739 * process.c (create_process):
740 * msdos.c: POSIX_SIGNALS is always defined on all platforms,
741 remove all code that assumes the contrary.
742
49628785
GM
7432010-05-04 Glenn Morris <rgm@gnu.org>
744
27a2cdfc
GM
745 * s/gnu-linux.h (LD_SWITCH_SYSTEM): Use LD_SWITCH_X_SITE_AUX as a shell
746 variable.
747 * s/netbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
748 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH.
749 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
750 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH instead of
751 LD_SWITCH_SYSTEM_tmp.
752 * Makefile.in (LD_SWITCH_X_SITE_AUX, LD_SWITCH_X_SITE_AUX_RPATH):
753 New variables, set by configure.
754
eb21eab5
GM
755 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
756 * s/darwin.h (HEADERPAD_EXTRA, LIBS_NSGUI): Remove.
757 (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
758 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): New variable, set by configure.
759 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM_TEMACS.
760
49628785
GM
761 * s/aix4-2.h (C_SWITCH_SYSTEM):
762 * m/alpha.h (C_SWITCH_MACHINE):
763 Move to configure.in.
764 * Makefile.in (C_SWITCH_MACHINE, C_SWITCH_SYSTEM):
765 New variables, set by configure.
766 (ALL_CFLAGS): Use $C_SWITCH_MACHINE and $C_SWITCH_SYSTEM in place of
767 $c_switch_machine and $c_switch_system.
768
7dff330b
DN
7692010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
770
771 * s/hpux10-20.h (LIB_STANDARD): New definition.
772 * Makefile.in (ORDINARY_LINK): Remove setting LIB_STANDARD based
773 on it, not used anymore.
774
53967e09
CY
7752010-05-03 Chong Yidong <cyd@stupidchicken.com>
776
777 * eval.c (internal_condition_case_n): Rename from
778 internal_condition_case_2.
779 (internal_condition_case_2): New function.
780
781 * xdisp.c (safe_call): Use internal_condition_case_n.
782
783 * fileio.c (Fdelete_file, internal_delete_file): New arg FORCE.
784 (internal_delete_file, Frename_file): Callers changed.
785
786 * buffer.c (Fkill_buffer):
787 * callproc.c (delete_temp_file): Callers changed (Bug#6070).
788
789 * lisp.h: Update prototypes.
790
3dee6fdb
GM
7912010-05-03 Glenn Morris <rgm@gnu.org>
792
793 * Makefile.in (LIBX_EXTRA, LIBX_BASE): New variables.
794 (LIBXT_OTHER, LIBX_OTHER): New, set by configure.
795 (LIBXT): Set with configure, not cpp.
796 (LIBX): Remove.
797 (LIBES): Replace $LIBX with $LIBX_BASE and $LIBX_OTHER.
798
a101e0fb
DN
7992010-05-02 Dan Nicolaescu <dann@ics.uci.edu>
800
801 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Remove.
802 The FreeBSD is not needed, the default works, Solaris version is
803 not needed, and the remaining case is not supported by configure.
804
f63d0028
JD
8052010-05-02 Jan Djärv <jan.h.d@swipnet.se>
806
807 * xsmfns.c (CHDIR_OPT): New define.
808 (smc_save_yourself_CB): Add CHDIR_OPT to options to use when
809 restarting emacs.
810
811 * xterm.c (x_connection_closed): Call Fkill_emacs instead of
812 shut_down_emacs.
813
814 * emacs.c (USAGE1): Mention --chdir.
815 (main): Handle --chdir.
816 (standard_args): Add --chdir.
817 (fatal_error_signal): Call Fkill_emacs for SIGTERM and SIGHUP (Bug
818 #5552).
819
e4814a9f
DN
8202010-05-01 Dan Nicolaescu <dann@ics.uci.edu>
821
cd03c74a
DN
822 Remove LD_SWITCH_MACHINE.
823 * Makefile.in (LD_SWITCH_MACHINE): Remove definition, unused.
824 (TEMACS_LDFLAGS): Do not use LD_SWITCH_MACHINE.
825
c3a398a1
DN
826 Clean up IRIX code.
827 * m/iris4d.h (TERMINFO, FIRST_PTY_LETTER): Move definitions ...
828 * s/irix6-5.h (TERMINFO, FIRST_PTY_LETTER): ... here.
829
87e7285c
DN
830 Clean up AIX code.
831 * m/ibmrs6000.inp: Remove file, unused.
832 * m/ibmrs6000.h (IBMR2AIX): Remove, unused.
833 (LD_SWITCH_MACHINE): Rename to LD_SWITCH_SYSTEM_TEMACS, and move
834 definition ...
835 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): ... here.
836
80f00217
JB
837 * sysdep.c (child_setup_tty, init_sys_modes): Remove !IBMR2AIX code,
838 unused.
e4814a9f 839
59ca28de
EZ
8402010-05-01 Eli Zaretskii <eliz@gnu.org>
841
197daef4
EZ
842 Emulate POSIX_SIGNALS on MS-Windows.
843
844 * s/ms-w32.h (POSIX_SIGNALS, struct sigaction, SIG_BLOCK)
845 (SIG_SETMASK, SIG_UNBLOCK): Define.
d6dae14b
EZ
846
847 * sysdep.c (sys_signal) [WINDOWSNT]: #ifdef away.
848 (wait_for_termination) [WINDOWSNT]: Move MS-Windows specific code
849 from non-POSIX_SIGNALS section to POSIX_SIGNALS section.
850
80f00217
JB
851 * w32.c (sigemptyset, sigaddset, sigfillset, sigprocmask):
852 New stubs.
197daef4 853
af7c7572
EZ
854 Miscellaneous fixes of bidi display.
855
59ca28de
EZ
856 * xdisp.c (find_row_end): New function, refactored from display_line.
857 (display_line): Use it.
017ea819
EZ
858 (extend_face_to_end_of_line): In almost-filled rows, extend only
859 if the row is R2L and not continued.
166e930d 860 (display_line): Fix prepending of truncation glyphs to R2L rows.
af7c7572 861 Preserve overlay and string info in row->end.
166e930d
EZ
862 (insert_left_trunc_glyphs): Support addition of left truncation
863 glyphs to R2L rows.
b47e0dcf 864 (set_cursor_from_row): Don't place cursor on the vertical border
af7c7572
EZ
865 glyph between adjacent windows. Fix a crash when a display string
866 is continued to the next line. Don't return zero if cursor was
867 found by `cursor' property of a display string.
b47e0dcf
EZ
868 (try_cursor_movement): Don't assume that row->end == (row+1)->start,
869 test for that explicitly.
59ca28de 870
7acac9f4
GM
8712010-05-01 Glenn Morris <rgm@gnu.org>
872
873 * Makefile.in (gmallocobj, rallocobj, vmlimitobj): Initialize to null,
874 for clarity.
875 (OTHER_OBJ): Remove.
876 (PRE_ALLOC_OBJ, POST_ALLOC_OBJ): New, set by configure.
877 (otherobj): Use PRE_ALLOC_OBJ, POST_ALLOC_OBJ rather than OTHER_OBJ.
878
45841e65
KK
8792010-05-01 Karel Klíč <kklic@redhat.com>
880
881 * fileio.c (Ffile_selinux_context): Context functions may return null.
882
afc61943
DN
8832010-04-30 Dan Nicolaescu <dann@ics.uci.edu>
884
80f00217 885 * s/gnu.h (POSIX_SIGNALS, START_FILES): New definitions.
afc61943 886
5a1bb006
GM
8872010-04-30 Glenn Morris <rgm@gnu.org>
888
889 * Makefile.in (vmlimitobj) [!SYSTEM_MALLOC]: New variable. (Bug#6065)
890 (OTHER_OBJ): Define as a separate variable, for clarity.
891
210af043
J
8922010-04-30 Jan Djärv <jan.h.d@swipnet.se>
893
894 * xsettings.c: include limits.h and update file comment.
895
0a7df391
GM
8962010-04-30 Glenn Morris <rgm@gnu.org>
897
d5096f16
GM
898 * Makefile.in (OLDXMENU, LIBXMENU) [HAVE_MENUS]:
899 Set with configure, not cpp.
900 (LIBW): Remove, replace with $TOOLKIT_LIBW.
901
7eb1ac33
GM
902 * Makefile.in (mallocobj): Remove.
903 (otherobj): Simplify using @OTHER_OBJ@.
904
517d086b
GM
905 * Makefile.in (dispnew.o, frame.o, fringe.o, font.o, fontset.o)
906 (keyboard.o, window.o, xdisp.o, xfaces.o, menu.o):
907 Don't bother making nsgui.h dependency platform-specific.
908
0a7df391
GM
909 * Makefile.in (nsfns.o): Remove duplicate nsgui.h dependency.
910
d6d23852
SM
9112010-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
912
d2630aef
SM
913 * process.c (read_process_output, exec_sentinel): Don't burp if the
914 sentinel/filter kills the current buffer (bug#6060).
915
f9dddf52 916 Fix wrong-docstring problem introduced with hash-consing. (Bug#6008)
d6d23852
SM
917 * eval.c (Fautoload): Set doc to a unique number rather than to 0.
918 Remove unused var `args'.
919 * lisp.h (XSETCARFASTINT, XSETCDRFASTINT): Remove.
920 (LOADHIST_ATTACH): Wrap with do...while to avoid surprises for callers.
921 * doc.c (store_function_docstring): Use XSETCAR.
922
f1e3642a
GM
9232010-04-28 Glenn Morris <rgm@gnu.org>
924
faf535f8
GM
925 * Makefile.in (BASE_WINDOW_SUPPORT, X_WINDOW_SUPPORT): New variables.
926 (WINDOW_SUPPORT) [HAVE_WINDOW_SYSTEM]: Use them.
927
c40f9449
GM
928 * Makefile.in (CYGWIN_OBJ): Set with configure, not cpp.
929
658f86ca
GM
930 * Makefile.in (GPM_MOUSE_SUPPORT): New, set by configure.
931 (MOUSE_SUPPORT) [!HAVE_MOUSE]: Use $GPM_MOUSE_SUPPORT.
932
bc0b5f61
GM
933 * Makefile.in (FONT_OBJ): New, set by configure.
934 (FONT_DRIVERS): Use $FONT_OBJ.
935
294c50a0
GM
936 * Makefile.in (LIBXMU): Set with configure, not cpp.
937 * s/aix4-2.h (LIBXMU):
938 * s/hpux10-20.h (LIBXMU):
939 Remove definition, now set in configure.
940
e6ec4e99
GM
941 * Makefile.in (NS_OBJ, NS_SUPPORT): Set with configure, not cpp.
942
f1e3642a
GM
943 * m/amdx86-64.h [i386]: Move this test to configure.in.
944
c6ea2936
GM
9452010-04-27 Glenn Morris <rgm@gnu.org>
946
8fdac2c3
GM
947 * Makefile.in (LIBXTR6): Set with configure, not cpp.
948 * s/unixware.h (NEED_LIBW): Remove definition.
949
986fb647
GM
950 * Makefile.in (LUCID_LIBW, MOTIF_LIBW): Remove, replacing by...
951 (TOOLKIT_LIBW): New, set by configure.
952 (@X_TOOLKIT_TYPE@): No longer define it.
953
c6ea2936
GM
954 * Makefile.in (LIBXP): Remove, since included in MOTIF_LIBW.
955 (MOTIF_LIBW): Set with configure, not cpp.
956 * s/aix4-2.h (LIB_MOTIF):
957 * s/gnu-linux.h (LIB_MOTIF):
958 * s/unixware.h (LIB_MOTIF): Move to configure.in.
959
aaa36002
DN
9602010-04-27 Dan Nicolaescu <dann@ics.uci.edu>
961
962 Reduce CPP usage.
963 * Makefile.in (LIB_X11_LIB): Remove, inline in the only user.
964 (obj): Use autoconf for unexec instead of cpp.
ed6281b0
DN
965 (C_SWITCH_SYSTEM, C_SWITCH_MACHINE, C_SWITCH_X_SITE): Remove
966 definitions and undefs. Inline definitions in the only user.
967 (ALL_CFLAGS): Substitute C_SWITCH_X_SYSTEM using autoconf.
aaa36002 968
b678dd8b
GM
9692010-04-27 Glenn Morris <rgm@gnu.org>
970
76cda504
GM
971 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Change the logic around,
972 since the defaults (set by the system file) are fine in most cases.
973 [GNU_LINUX, __OpenBSD__, __NetBSD__, __APPLE__]: Remove sections.
974 * m/ibms390x.h (START_FILES, LIB_STANDARD):
975 * m/macppc.h (START_FILES, LIB_STANDARD) [GNU_LINUX]:
976 * m/sparc.h (START_FILES, LIB_STANDARD) [__linux__]:
977 Remove definitions, since they are set correctly in s/gnu-linux.h.
978 * s/freebsd.h (START_FILES, LIB_STANDARD):
979 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
980 * s/hpux10-20.h (START_FILES):
981 * s/netbsd.h (START_FILES, LIB_STANDARD, START_FILES_1, END_FILES_1):
982 Use $CRT_DIR in place of fixed /usr/lib, /lib directories.
983
b678dd8b
GM
984 * Makefile.in (LIBXP, LUCID_LIBW, WIDGET_OBJ): Set via configure.
985 (MOTIF_LIBW): Use $LIBXP.
986 (otherobj): Use $WIDGET_OBJ.
987
9452ded1
DN
9882010-04-26 Dan Nicolaescu <dann@ics.uci.edu>
989
7e10844c
DN
990 * Makefile.in (LIBS_MACHINE): Remove, unused.
991
9452ded1
DN
992 Use autoconf instead of cpp for LIB_MATH.
993 * s/darwin.h (LIB_MATH): Do not define here, move to configure.
994 * s/cygwin.h (LIB_MATH): Likewise.
995 * Makefile.in (LIB_MATH): Do not define with cpp.
996 (LIBES): Use autoconf for LIB_MATH.
997
fcebfc6a
KH
9982010-04-26 Kenichi Handa <handa@m17n.org>
999
1000 * composite.c (Ffind_composition_internal): Fix the return value
1001 for an automatic composition.
1002
39e2ad1b
DN
10032010-04-25 Dan Nicolaescu <dann@ics.uci.edu>
1004
1005 Remove all NO_ARG_ARRAY uses.
1006 * fns.c (concat2, concat3, nconc2):
1007 * eval.c (apply1, call1, call2, call3, call4, call5, call6)
1008 (call7): Remove NO_ARG_ARRAY usage, assume it's always true.
1009 * m/xtensa.h (NO_ARG_ARRAY):
1010 * m/template.h (NO_ARG_ARRAY):
1011 * m/sparc.h (NO_ARG_ARRAY):
1012 * m/sh3.h (NO_ARG_ARRAY):
1013 * m/mips.h (NO_ARG_ARRAY):
1014 * m/macppc.h (NO_ARG_ARRAY):
1015 * m/iris4d.h (NO_ARG_ARRAY):
1016 * m/intel386.h (NO_ARG_ARRAY):
1017 * m/ibms390x.h (NO_ARG_ARRAY):
1018 * m/ibms390.h (NO_ARG_ARRAY):
1019 * m/ibmrs6000.h (NO_ARG_ARRAY):
1020 * m/ia64.h (NO_ARG_ARRAY):
1021 * m/hp800.h (NO_ARG_ARRAY):
1022 * m/arm.h (NO_ARG_ARRAY):
1023 * m/amdx86-64.h (NO_ARG_ARRAY):
1024 * m/alpha.h (NO_ARG_ARRAY): Remove definition.
1025
adf4f59c
EZ
10262010-04-25 Eli Zaretskii <eliz@gnu.org>
1027
6bdf5d65
EZ
1028 * xdisp.c (display_line): Don't assume 2nd call to
1029 get_next_display_element cannot return zero. (Bug#6030)
f538fcec
EZ
1030 (iterate_out_of_display_property): New function, body from pop_it.
1031 (pop_it): Use it.
adf4f59c 1032
dfbbda83
GM
10332010-04-24 Glenn Morris <rgm@gnu.org>
1034
1035 * m/amdx86-64.h (START_FILES, LIB_STANDARD) [__OpenBSD__]:
1036 For clarity, revert to using fixed /usr/lib rather than $CRT_DIR.
1037 (START_FILES, LIB_STANDARD) [__FreeBSD__]: Merge into the generic case,
1038 since CRT_DIR defaults to /usr/lib. Suggested by Dan Nicolaescu.
1039
2d4018aa
EZ
10402010-04-24 Eli Zaretskii <eliz@gnu.org>
1041
a49884a6
EZ
1042 * xdisp.c (display_line): Use `reseat' instead of `reseat_1', and
1043 use `get_next_display_element' and `set_iterator_to_next' to
1044 advance to the next character, when looking for the character that
1045 begins the next row.
1046
76db6fcc 1047 * .gdbinit: Add a "set Fmake_symbol" line to force GDB to load the
2d4018aa
EZ
1048 definition of "struct Lisp_Symbol".
1049
70eab5c1
GM
10502010-04-24 Glenn Morris <rgm@gnu.org>
1051
1052 * Makefile.in (CRT_DIR): New variable, set by configure.
1053 * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
1054 Use $CRT_DIR rather than HAVE_LIB64_DIR. (Bug#5655)
1055
1ad4cc3d
DN
10562010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
1057
e769f484
DN
1058 * Makefile.in: Remove C_SWITCH_X_MACHINE, unused.
1059
4196ff33
DN
1060 * s/cygwin.h (LIBS_DEBUG): Remove, unused.
1061
879b0ee4
DN
1062 Remove redundant flags.
1063 * s/freebsd.h (C_SWITCH_SYSTEM):
1064 * s/hpux10-20.h (C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
1065 * s/netbsd.h (C_SWITCH_SYSTEM):
1066 * s/openbsd.h (LD_SWITCH_X_DEFAULT): Remove, configure takes care
1067 of these.
1068
03cbbcb8
DN
1069 Simplify m/intel386.h.
1070 * m/intel386.h (CRT0_DUMMIES): Remove, inline value in the only
1071 user: ecrt0.c.
1072 (SOLARIS2): Remove LOAD_AVE_TYPE, LOAD_AVE_CVT, LIBS_MACHINE, unused.
1073 (USG5_4): Move LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE definitions to
1074 the only user: s/unixware.h.
1075 * ecrt0.c: Remove #ifndef static. Inline CRT0_DUMMIES definition
1076 from m/intel386.h.
1077 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE): Definitions
1078 moved here from m/intel386.h.
1079
1ad4cc3d
DN
1080 * m/mips.h: Remove #if 0 code.
1081
8785b888
EZ
10822010-04-23 Eli Zaretskii <eliz@gnu.org>
1083
728588cc
EZ
1084 Fix display of composed characters from L2R scripts in bidi buffers.
1085 * xdisp.c (set_iterator_to_next, next_element_from_composition):
1086 After advancing IT past the composition, resync the bidi iterator
1087 with IT's position. (Bug#5977)
1088
a63f80b4
DN
10892010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
1090
1091 * Makefile.in (LD_SWITCH_MACHINE_TEMACS): Remove, unused.
1092 (TEMACS_LDFLAGS): Don't use LD_SWITCH_SYSTEM_TEMACS.
1093
ff5dec5c
SM
10942010-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
1095
1096 * gtkutil.c: Include xsettings.h for Ftool_bar_get_system_style.
1097
8785b888
EZ
10982010-04-23 Eli Zaretskii <eliz@gnu.org>
1099
58ccf243 1100 Support `display' text properties and overlay strings in bidi buffers.
8785b888
EZ
1101 * xdisp.c (pop_it): When the stack is popped after displaying
1102 from a string, bidi-iterate to exit from the text portion covered
1103 by the `display' property or overlay. (Bug#5988, bug#5920)
1104
feeb1604
DN
11052010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
1106
8e324eb6
DN
1107 * m/macppc.h (LD_SWITCH_SYSTEM_TEMACS): Remove #undef.
1108 (LD_SWITCH_MACHINE_TEMACS): Remove, configure sets nocombreloc.
1109
809fcaba
DN
1110 * s/netbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure sets nocombreloc.
1111 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove.
1112
ed710380
DN
1113 Simplify STARTFILES definition.
1114 * s/hpux10-20.h (START_FILES): Explicitly define here instead of
1115 relying on Makefile.in to define it.
1116 * s/cygwin.h (START_FILES): Likewise.
1117 * Makefile.in (STARTFILES): Remove conditional code, not needed anymore.
1118
feeb1604
DN
1119 Clean up Solaris code.
1120 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS, C_SWITCH_X_SYSTEM)
1121 (LIB_MOTIF): Remove, configure takes care of this.
1122 (NOT_USING_MOTIF): Remove, unused.
1123 * xrdb.c: Remove #if 0-ed #include.
1124 (SYSV): Remove conditional for old SysV.
1125 * sysdep.c (closedir): Remove conditional code for Solaris,
1126 Solaris has closedir.
1127
a0d0b563
JD
11282010-04-22 Jan Djärv <jan.h.d@swipnet.se>
1129
1130 * xsettings.c (read_and_apply_settings): Check if current_font is
1131 NULL before strcmp (Bug#6001).
1132
56bae7c7
DN
11332010-04-21 Dan Nicolaescu <dann@ics.uci.edu>
1134
1135 Clean up HP-UX files.
1136 * m/hp800.h (NO_REMAP, VIRT_ADDR_VARIES, DATA_SEG_BITS)
1137 (DATA_START, TEXT_START, LOAD_AVE_TYPE, LOAD_AVE_CVT)
1138 (LDAV_SYMBOL, index, rindex): Move definitions only used in HP-UX ...
1139 * s/hpux10-20.h: ... to the only user, here.
1140
372b7a95
EZ
11412010-04-21 Eli Zaretskii <eliz@gnu.org>
1142
1143 * bidi.c (bidi_find_paragraph_start, bidi_at_paragraph_end): Don't
1144 use buffer-local values of paragraph-start and paragraph-separate.
1145 <paragraph_start_re, paragraph_separate_re>: Rename from
1146 fallback_paragraph_start_re and fallback_paragraph_separate_re.
1147 (Bug#5992)
1148
f904c0f9
JD
11492010-04-21 Jan Djärv <jan.h.d@swipnet.se>
1150
1151 * xsettings.c: Qmonospace_font_name, Qtool_bar_style and
1152 current_tool_bar_style are new.
1153 (store_config_changed_event): Rename from store_font_changed_event.
1154 (XSETTINGS_TOOL_BAR_STYLE): New define.
1155 (SEEN_FONT, SEEN_TB_STYLE): New enum values.
1156 (struct xsettings): Add font and tb_style, set xft stuff inside #ifdef
1157 HAVE_XFT.
1158 (something_changedCB): store_font_changed_event is now
1159 store_config_changed_event
1160 (parse_settings): Rename from parse_xft_settings. Read
1161 non-xft xsettings outside #ifdef HAVE_XFT.
1162 (read_settings): Renamed from read_xft_settings.
1163 (apply_xft_settings): Take current settings as parameter. Do not
1164 call read_(xft)_settings.
1165 (read_and_apply_settings): New function.
1166 (xft_settings_event): Do non-xft stuff out of HAVE_XFT. Call
1167 read_and_apply_settings if there are settings to be read.
1168 (init_xsettings): Renamed from init_xfd_settings.
1169 Call read_and_apply_settings unconditionally.
1170 (xsettings_initialize): Call init_xsettings.
1171 (Ftool_bar_get_system_style): New function.
1172 (syms_of_xsettings): Define Qmonospace_font_name and
1173 Qtool_bar_style. Initialize current_tool_bar_style to nil.
f9dddf52 1174 defsubr Stool_bar_get_system_style. Fprovide on
f904c0f9 1175 dynamic-setting.
31a01b90 1176 Move misplaced HAVE_GCONF
f904c0f9
JD
1177
1178 * xsettings.h (Ftool_bar_get_system_style): Declare.
1179
1180 * xdisp.c: Vtool_bar_style, tool_bar_max_label_size,
1181 Qtext, Qboth, Qboth_horiz are new.
1182 (syms_of_xdisp): Intern Qtext, Qboth, Qboth_horiz, DEFVAR
1183 Vtool_bar_style, tool_bar_max_label_size.
1184
1185 * lisp.h: Extern declare Qtext, Qboth, Qboth_horiz.
1186
1187 * keyboard.c: QClabel is new.
1188 (parse_tool_bar_item): Take out QClabel from tool bar items.
1189 Try to construct a label if ther is no QClabel.
1190 (syms_of_keyboard): Intern :label as QClabel.
1191
1192 * dispextern.h (tool_bar_item_idx): TOOL_BAR_ITEM_LABEL is new.
1193 (Vtool_bar_style, tool_bar_max_label_size, DEFAULT_TOOL_BAR_LABEL_SIZE):
1194 New.
1195
1196 * Makefile.in (SOME_MACHINE_LISP): font-setting.el renamed to
1197 dynamic-setting.el.
1198
1199 * gtkutil.c (xg_tool_bar_menu_proxy): Handle label in tool bar item.
1200 (xg_make_tool_item, xg_show_toolbar_item): New function.
1201 (update_frame_tool_bar): Take label from TOOL_BAR_ITEM_LABEL.
1202 Call xg_make_tool_item to make a tool bar item.
1203 Call xg_show_toolbar_item. Use wtoolbar instead of x->toolbar_widget.
1204
1205 * xterm.c (x_draw_image_relief): Take Vtool_bar_button_margin
1206 into account for toolbars.
1207
c632dfda
JD
12082010-04-21 Jan Djärv <jan.h.d@swipnet.se>
1209
1210 * data.c (make_blv): Declarations before code (Bug#5993).
1211
10efe302
GM
12122010-04-21 Glenn Morris <rgm@gnu.org>
1213
1214 * Makefile.in (DBUS_OBJ, GTK_OBJ, XMENU_OBJ, XOBJ):
1215 Define using autoconf, not cpp.
1216 (LIBXSM): New variable, set by autoconf.
1217 (LIBXT): Use $LIBXSM.
1218
4285ac5a
DN
12192010-04-21 Dan Nicolaescu <local_user@dannlt>
1220
3ec759e7
DN
1221 Remove NOMULTIPLEJOBS, unused.
1222 * s/template.h (NOMULTIPLEJOBS):
1223 * s/msdos.h (NOMULTIPLEJOBS): Remove, unused.
1224
4285ac5a
DN
1225 Simplify LD_SWITCH_SYSTEM_TEMACS usage.
1226 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS):
1227 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure
1228 detects -znocombreloc and passes it to the linker
1229 * s/hpux10-20.h (LD_SWITCH_SYSTEM_TEMACS): Remove, empty.
1230
2807228d
GM
12312010-04-21 Glenn Morris <rgm@gnu.org>
1232
1233 * Makefile.in (LIBSELINUX_LIBS): Move out of #ifdef.
1234
574c05e2
KK
12352010-04-21 Karel Klíč <kklic@redhat.com>
1236
1237 * Makefile.in (LIBSELINUX_LIBS): New.
1238 (LIBES): Add $LIBSELINUX_LIBS.
1239 * eval.c, lisp.h (call7): New function.
1240 * fileio.c [HAVE_LIBSELINUX]: Include selinux headers.
1241 (Ffile_selinux_context, Fset_file_selinux_context):
1242 New functions.
1243 (Fcopy_file): New parameter preserve-selinux-context.
1244 (Frename_file): Preserve selinux context when renaming by copy-file.
1245
91eac4bb 12462010-04-21 Juanma Barranquero <lekktu@gmail.com>
4e2af782 1247 Eli Zaretskii <eliz@gnu.org>
91eac4bb 1248
50426a04
JB
1249 Don't depend on cm.c or termcap.c on Windows, use stubs.
1250 * makefile.w32-in (OBJ1): Remove cm.$(O) and termcap.$(O).
1251 ($(BLD)/cm.$(O), $(BLD)/termcap.$(O)): Remove.
1252 * w32console.c (current_tty, cost): New vars; lifted from cm.c.
1253 (evalcost, cmputc, cmcheckmagic, cmcostinit, cmgoto, Wcm_clear)
1254 (sys_tputs, sys_tgetstr): New stubs.
1255 * s/ms-w32.h (chcheckmagic, cmcostinit, cmgoto, cmputc, Wcm_clear)
1256 (tputs, tgetstr): New; define to sys_*.
91eac4bb 1257
938efb77
JB
12582010-04-20 Juanma Barranquero <lekktu@gmail.com>
1259
1260 * buffer.c (syms_of_buffer) <bidi-display-reordering>: Doc fix.
1261
b4bf28b7
SM
12622010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
1263
8b1e1112
SM
1264 * data.c (Fmake_variable_buffer_local, Fmake_local_variable):
1265 Just signal a warning rather than an error when inside a let.
1266 (Fmake_variable_frame_local): Add the same test.
1267
933ac235
SM
1268 * font.c (syms_of_font): Make the style table vars read-only.
1269
b4bf28b7
SM
1270 * buffer.h (struct buffer): Remove unused var `direction_reversed'.
1271 * buffer.c (init_buffer_once, syms_of_buffer): Remove its initialization.
1272
1273 * bidi.c (bidi_initialize): Simplify fallback_paragraph_*_re init.
1274
93d68d0c
EZ
12752010-04-20 Eli Zaretskii <eliz@gnu.org>
1276
1277 Fix R2L paragraph display on TTY.
1278
1279 * xdisp.c (unproduce_glyphs): New function.
1280 (display_line): Use it when produced glyphs are discarded from R2L
1281 glyph rows.
1282 (append_composite_glyph): In R2L rows, prepend the glyph rather
1283 than appending it.
1284
1285 * term.c (append_composite_glyph): In R2L rows, prepend the glyph
1286 rather than append it. Set up the resolved_level and bidi_type
1287 attributes of the appended glyph.
283ccc18
EZ
1288 (produce_special_glyphs): Mirror the backslash continuation
1289 character in R2L lines.
93d68d0c 1290
283ccc18 1291 Implement display of R2L paragraphs in GUI sessions.
26cdf528 1292
283ccc18
EZ
1293 * xdisp.c [HAVE_WINDOW_SYSTEM]: Add prototype for
1294 append_stretch_glyph.
1295 (set_cursor_from_row) <cursor_x>: Remove unused variable. Fix
1296 off-by-one error in computing x at end of text in the row.
1297 (append_stretch_glyph): In reversed row, prepend the glyph rather
1298 than append it. Set resolved_level and bidi_type of the glyph.
1299 (extend_face_to_end_of_line): If the row is reversed, prepend a
1300 stretch glyph whose width is such that the rightmost glyph will be
1301 drawn at the right margin of the window. Fix off-by-one error on
1302 TTY frames in testing whether a line needs face extension. Fix
1303 face extension at ZV. If this is the last glyph row, use
1304 DEFAULT_FACE_ID, to avoid painting the rest of the window with the
1305 region face.
1306 (set_cursor_from_row, display_line): Use
26cdf528
EZ
1307 MATRIX_ROW_CONTINUATION_LINE_P instead of testing value of
1308 row->continuation_lines_width.
283ccc18
EZ
1309 (next_element_from_buffer): Don't call bidi_paragraph_init if we
1310 are at ZV. Fixes a crash when reseated to ZV by
1311 try_window_reusing_current_matrix.
45903529
EZ
1312 (display_and_set_cursor, erase_phys_cursor): Handle negative HPOS,
1313 which happens with R2L glyph rows. Fixes a crash when inserting a
1314 character at end of an R2L line.
283ccc18
EZ
1315 (set_cursor_from_row): Don't be fooled by truncated rows: don't
1316 treat them as having zero-width characters. Improve comments.
1317 Don't reverse pos_before and pos_after for reversed glyph rows.
1318 Set cursor.x to negative value when the cursor might be on the
1319 left fringe.
1320 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): For R2L lines, consider the
1321 left fringe, not the right one.
f951a506
EZ
1322 (notice_overwritten_cursor, draw_phys_cursor_glyph)
1323 (erase_phys_cursor): For reversed cursor_row, support cursor on
1324 the left fringe.
1325
283ccc18
EZ
1326 * fringe.c (update_window_fringes): For R2L rows, swap the bitmaps
1327 of continuation indicators on the fringes.
1328 (draw_fringe_bitmap): For reversed glyph rows, allow cursor on the
1329 left fringe.
1330
f951a506
EZ
1331 * w32term.c (w32_draw_window_cursor): For reversed glyph rows,
1332 draw cursor on the left fringe.
1333
1334 * xterm.c (x_draw_window_cursor): For reversed glyph rows, draw
1335 cursor on the left fringe.
1336
f951a506
EZ
1337 * dispnew.c (update_text_area): Handle reversed desired rows when
1338 the cursor is on the left fringe.
1339 (set_window_cursor_after_update): Limit cursor's hpos by -1 from
1340 below, not by 0, for when the cursor is on the left fringe.
1341
3bb49aaf
JD
13422010-04-20 Jan Djärv <jan.h.d@swipnet.se>
1343
1344 * gtkutil.c (xg_event_is_for_scrollbar): Check if grabbed
1345 widget is a scrollbar.
1346
c0be27fd
KH
13472010-04-20 Kenichi Handa <handa@m17n.org>
1348
1349 * charset.c (char_charset): Consider Vcharset_non_preferred_head
1350 only when the arg CHARSET_LIST is nil.
1351
ce5b453a
SM
13522010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
1353
1354 Make variable forwarding explicit rather the using special values.
1355 Basically, this makes the structure of buffer-local values and object
1356 forwarding explicit in the type of Lisp_Symbols rather than use
1357 special Lisp_Objects for that. This tends to lead to slightly more
1358 verbose code, but is more C-like, simpler, and makes it easier to make
1359 sure we handled all cases, among other things by letting the compiler
1360 help us check it.
1361 * lisp.h (enum Lisp_Misc_Type, union Lisp_Misc):
1362 Removing forwarding objects.
1363 (enum Lisp_Fwd_Type, enum symbol_redirect, union Lisp_Fwd): New types.
1364 (struct Lisp_Symbol): Make the various forms of variable-forwarding
1365 explicit rather than hiding them inside Lisp_Object "values".
1366 (XFWDTYPE): New macro.
1367 (XINTFWD, XBOOLFWD, XOBJFWD, XKBOARD_OBJFWD): Redefine.
1368 (XBUFFER_LOCAL_VALUE): Remove.
1369 (SYMBOL_VAL, SYMBOL_ALIAS, SYMBOL_BLV, SYMBOL_FWD, SET_SYMBOL_VAL)
1370 (SET_SYMBOL_ALIAS, SET_SYMBOL_BLV, SET_SYMBOL_FWD): New macros.
1371 (SYMBOL_VALUE, SET_SYMBOL_VALUE): Remove.
1372 (struct Lisp_Intfwd, struct Lisp_Boolfwd, struct Lisp_Objfwd)
1373 (struct Lisp_Buffer_Objfwd, struct Lisp_Kboard_Objfwd):
1374 Remove the Lisp_Misc_* header.
1375 (struct Lisp_Buffer_Local_Value): Redefine.
1376 (BLV_FOUND, SET_BLV_FOUND, BLV_VALUE, SET_BLV_VALUE): New macros.
1377 (struct Lisp_Misc_Any): Add filler to get the right size.
1378 (struct Lisp_Free): Use struct Lisp_Misc_Any rather than struct
1379 Lisp_Intfwd.
1380 (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL, DEFVAR_INT)
1381 (DEFVAR_KBOARD): Allocate a forwarding object.
1382 * data.c (do_blv_forwarding, store_blv_forwarding): New macros.
1383 (let_shadows_global_binding_p): New function.
1384 (union Lisp_Val_Fwd): New type.
1385 (make_blv): New function.
1386 (swap_in_symval_forwarding, indirect_variable, do_symval_forwarding)
1387 (store_symval_forwarding, swap_in_global_binding, Fboundp)
1388 (swap_in_symval_forwarding, find_symbol_value, Fset)
1389 (let_shadows_buffer_binding_p, set_internal, default_value)
1390 (Fset_default, Fmake_variable_buffer_local, Fmake_local_variable)
1391 (Fkill_local_variable, Fmake_variable_frame_local)
1392 (Flocal_variable_p, Flocal_variable_if_set_p)
1393 (Fvariable_binding_locus):
1394 * xdisp.c (select_frame_for_redisplay):
1395 * lread.c (Fintern, Funintern, init_obarray, defvar_int)
1396 (defvar_bool, defvar_lisp_nopro, defvar_lisp, defvar_kboard):
1397 * frame.c (store_frame_param):
1398 * eval.c (Fdefvaralias, Fuser_variable_p, specbind, unbind_to):
1399 * bytecode.c (Fbyte_code) <varref, varset>: Adapt to the new symbol
1400 value structure.
1401 * buffer.c (PER_BUFFER_SYMBOL): Move from buffer.h.
1402 (clone_per_buffer_values): Only adjust markers into the current buffer.
1403 (reset_buffer_local_variables): PER_BUFFER_IDX is never -2.
1404 (Fbuffer_local_value, set_buffer_internal_1)
1405 (swap_out_buffer_local_variables):
1406 Adapt to the new symbol value structure.
1407 (DEFVAR_PER_BUFFER): Allocate a Lisp_Buffer_Objfwd object.
1408 (defvar_per_buffer): Take a new arg for the fwd object.
1409 (buffer_lisp_local_variables): Return a proper alist (different fix
1410 for bug#4138).
1411 * alloc.c (Fmake_symbol): Use SET_SYMBOL_VAL.
1412 (Fgarbage_collect): Don't handle buffer_defaults specially.
1413 (mark_object): Handle new symbol value structure rather than the old
1414 special Lisp_Misc_* objects.
1415 (gc_sweep) <symbols>: Free also the buffer-local-value objects.
1416 * term.c (set_tty_color_mode):
1417 * bidi.c (bidi_initialize): Don't access the ->value field directly.
1418 * buffer.h (PER_BUFFER_VAR_OFFSET): Don't bother with
1419 a buffer_local_flags.
1420 * print.c (print_object): Get rid of impossible forwarding objects.
1421
fd3998ff
EZ
14222010-04-19 Eli Zaretskii <eliz@gnu.org>
1423
1424 * bidi.c (bidi_get_type, bidi_get_category)
1425 (bidi_at_paragraph_end, bidi_resolve_weak, bidi_resolve_neutral)
ce5b453a
SM
1426 (bidi_type_of_next_char, bidi_level_of_next_char):
1427 Declare static. Use `INLINE' rather than `inline'.
fd3998ff 1428
e42cd1a7
JB
14292010-04-19 Juanma Barranquero <lekktu@gmail.com>
1430
1431 * dired.c (Ffile_attributes): Fix typo in docstring.
1432
6e104790 14332010-04-19 Adrian Robert <Adrian.B.Robert@gmail.com>
79353a53
AR
1434
1435 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
1436 NSInteger (Bug#5811).
1437
6e104790 14382010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
658b9b93
YM
1439
1440 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
1441 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
1442
6e104790 14432010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16009a0e
YM
1444
1445 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
1446
6e104790
SM
14472010-04-19 Chong Yidong <cyd@stupidchicken.com>
1448
1449 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
1450 terminal frames (Bug#5837).
1451
37dcfea0
EZ
14522010-04-19 Eli Zaretskii <eliz@gnu.org>
1453
d1da276f
EZ
1454 * .gdbinit (xsubchartable): New command.
1455
37dcfea0
EZ
14562010-04-19 Eli Zaretskii <eliz@gnu.org>
1457
1458 * xdisp.c (display_line): Don't write beyond the last glyph row in
9166b0f3 1459 the desired matrix. Fixes a crash in "emacs -nw" (bug#5972), see
37dcfea0
EZ
1460 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00075.html
1461 and
1462 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00213.html
1463
e9515805
SM
14642010-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
1465
1466 * alloc.c (Fpurecopy): Hash-cons if requested.
1467 (syms_of_alloc): Update purify-flag docstring.
1468
22aa44a8
JD
14692010-04-18 Jan Djärv <jan.h.d@swipnet.se>
1470
1471 * gtkutil.c (xg_set_geometry): Set size in geometry string also.
1472 (x_wm_set_size_hint): Set USER_POS in hint_flags (Bug#5968).
1473
ebb5722e
EZ
14742010-04-17 Eli Zaretskii <eliz@gnu.org>
1475
1476 Fix a crash when an NSM character is inserted at BEGV.
1477
1478 * bidi.c (bidi_init_it): Fix initialization of bidi_it->prev.
1479 (bidi_resolve_weak): Don't use prev.type_after_w1 if it is
1480 NEUTRAL_B or UNKNOWN_BT.
1481
0f4442ef
EZ
14822010-04-16 Eli Zaretskii <eliz@gnu.org>
1483
1484 * xdisp.c (set_cursor_from_row): Don't consider possibility of
1485 other rows with cursor unless they are different from this row and
1486 this row is part of a continued line. (Bug#5943)
1487
7d4e45f8
DN
14882010-04-16 Dan Nicolaescu <dann@ics.uci.edu>
1489
1490 * s/freebsd.h: Restore osreldate.h include.
1491 Suggested by Naohiro Aota.
1492
5ba5ec85
J
14932010-04-16 Jan Djärv <jan.h.d@swipnet.se>
1494
1495 * xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used.
1496
20af301d
CY
14972010-04-16 Ken Brown <kbrown@cornell.edu> (tiny change)
1498
1499 * s/cygwin.h: Avoid linking against static libgcc.
1500
a4b000fb
JL
15012010-04-15 Juri Linkov <juri@jurta.org>
1502
1503 * window.c: Add Qscroll_command.
1504 Remove Vscroll_preserve_screen_position_commands.
1505 (window_scroll_pixel_based, window_scroll_line_based): Check the
1506 `scroll-command' property on the last command instead of searching
1507 the last command in Vscroll_preserve_screen_position_commands.
1508 (syms_of_window): Initialize and staticpro `Qscroll_command'.
1509 Put Qscroll_command property on Qscroll_up and Qscroll_down.
1510 (scroll-preserve-screen-position): Doc fix.
1511 (Vscroll_preserve_screen_position_commands): Remove variable.
1512
bc319ba4
DN
15132010-04-15 Dan Nicolaescu <dann@ics.uci.edu>
1514
6bb24457
DN
1515 * xdisp.c (message): Do not use NO_ARG_ARRAY.
1516
19d4c244
DN
15172010-04-14 Dan Nicolaescu <dann@ics.uci.edu>
1518
1519 Reduce cpp use in Makefile.in.
1520 * Makefile.in (DBUS_CFLAGS, DBUS_LIBS, GCONF_CFLAGS, GCONF_LIBS)
1521 (LIBSOUND, CFLAGS_SOUND, RSVG_LIBS, RSVG_CFLAGS, INTERVALS_H)
1522 (GETLOADAVG_LIBS, RUN_TEMACS): Move to the autoconf section.
1523 (ORDINARY_LINK): Remove, defined in src/s/gnu.h.
1524 (CRT0_COMPILE): Remove, inline it in the only user.
1525
32129746
JL
15262010-04-14 Juri Linkov <juri@jurta.org>
1527
1528 * window.c (keys_of_window): Rebind `C-v' from `scroll-up' to
1529 `scroll-up-command' and `M-v' from `scroll-down' to
1530 `scroll-down-command'.
1531
9013a7f8
JL
15322010-04-14 Juri Linkov <juri@jurta.org>
1533
1534 * window.c (Vscroll_preserve_screen_position_commands): New variable
1535 with the default value as the list of Qscroll_down and Qscroll_up.
1536 (window_scroll_pixel_based, window_scroll_line_based): Search the
1537 last command in the list Vscroll_preserve_screen_position_commands
1538 instead of comparing with Qscroll_up and Qscroll_down.
1539
4bef8d26
JD
15402010-04-13 Jan Djärv <jan.h.d@swipnet.se>
1541
92848133
JD
1542 * gtkutil.c (xg_set_geometry): Set geometry for PPosition also.
1543 (x_wm_set_size_hint): Dont set position flags, gtk_window_parse_geometry
1544 does that.
1545
4bef8d26
JD
1546 * xfns.c (Fx_create_frame, x_create_tip_frame): Set default border width
1547 to zero.
1548
58b963f7
SM
15492010-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
1550
84164a0d
SM
1551 * term.c (init_tty): Move common text outside of #ifdef TERMINFO.
1552
2b0a91e7
SM
1553 Try to solve the problem of spurious EOF chars in long lines of text
1554 sent to interactive subprocesses.
1555 * sysdep.c (child_setup_tty): Do not enable ICANON any more.
1556 (system_process_attributes): Remove unused var `ttotal'.
1557 * process.c (send_process): Don't bother breaking long line with EOF
1558 chars when talking to ttys any more.
1559 (wait_reading_process_output): Output a warning when called in such
1560 a way that it could block without being interruptible.
1561
58b963f7
SM
1562 Try to detect file modification within the same second.
1563 * buffer.h (struct buffer): New field modtime_size.
1564 * buffer.c (reset_buffer): Initialize it.
1565 * fileio.c (Finsert_file_contents, Fwrite_region): Set it.
1566 (Fverify_visited_file_modtime): Check it.
1567 (Fclear_visited_file_modtime, Fset_visited_file_modtime): Clear it.
1568 (Fset_visited_file_modtime): Set (or clear) it.
1569
01f5787b
SM
15702010-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
1571
1572 * process.c (status_notify): Remove unused var `ro'.
1573
83725342
JD
15742010-04-12 Jan Djärv <jan.h.d@swipnet.se>
1575
1576 * xfns.c (select_visual): Don't call error if XGetVisualInfo returns
1577 more than one visual (Bug#5938).
1578
b9465836
DN
15792010-04-12 Dan Nicolaescu <dann@ics.uci.edu>
1580
50426a04
JB
1581 * Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE):
1582 Undefine.
b9465836 1583
8d9c8ece
DN
15842010-04-11 Dan Nicolaescu <dann@ics.uci.edu>
1585
b1f52161
DN
1586 Remove C_SWITCH_SYSTEM_TEMACS.
1587 * s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove.
1588 (malloc, realloc, free): Use emacs, not temacs for conditional
1589 definition.
1590
1591 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove.
1592 (ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.
1593
8d9c8ece
DN
1594 Use autoconf, not cpp for some variables.
1595 * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
1596 (C_SWITCH_X_SITE): Define using autoconf, not cpp.
1597 (ALL_CFLAGS): Use them as make variables.
1598 (really-lwlib, really-oldXMenu): Do not pass them.
1599
1ecb2d3f
JD
16002010-04-11 Jan Djärv <jan.h.d@swipnet.se>
1601
1602 * xmenu.c (apply_systemfont_to_dialog): New.
1603 (create_and_show_dialog): Call apply_systemfont_to_dialog if HAVE_XFT.
1604
3a4fa2f2
SM
16052010-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
1606
97e53006
SM
1607 * process.c (exec_sentinel): Preserve current-buffer.
1608
3a4fa2f2
SM
1609 * process.c (read_process_output): Move the save-current-buffer to
1610 apply to both the filter and the non-filter branches.
1611
88df7221
DN
16122010-04-10 Dan Nicolaescu <dann@ics.uci.edu>
1613
1614 * s/msdos.h (UNEXEC): New definition.
1615
5634ff85
YM
16162010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1617
6eff5c3d
YM
1618 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
1619 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
1620
1621 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
1622 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
1623 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
1624 TRY_WINDOW_CHECK_MARGINS.
1625
1626 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
5b253e9c
YM
1627 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423). Subtract last glyph's
1628 width only when it is for padding.
5634ff85 1629
b13aef54
J
16302010-04-09 Jan Djärv <jan.h.d@swipnet.se>
1631
1632 * xfns.c (Fx_show_tip): Call try_window in a loop until
1633 fonts_changed_p is zero (Bug#2423).
1634
21d28484
EZ
16352010-04-08 Eli Zaretskii <eliz@gnu.org>
1636
1637 * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
1638 the end of TEXT_AREA. (Bug#5856)
1639
0269ef77
JD
16402010-04-08 Jan Djärv <jan.h.d@swipnet.se>
1641
1642 * xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of
1643 HAVE_GCONF.
1644
5930fe97
EZ
16452010-04-08 Eli Zaretskii <eliz@gnu.org>
1646
1647 * bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
1648 prev.orig_type, for resolving type of NSM. (Bug#5858)
1649
99852628
JD
16502010-04-08 Jan Djärv <jan.h.d@swipnet.se>
1651
1652 * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
1653 (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
1654 in current_font.
1655 (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
50426a04
JB
1656 (Ffont_get_system_normal_font, xsettings_get_system_normal_font):
1657 New functions.
1658 (syms_of_xsettings): Initialize current_font.
1659 defsubr Sfont_get_system_normal_font.
99852628
JD
1660
1661 * xsettings.h (Ffont_get_system_normal_font,
1662 xsettings_get_system_normal_font): Declare.
1663
1664 * xfns.c (extern xlwmenu_default_font): Remove.
1665 (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
1666 to xlwmenu.c.
1667
1668 * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
1669 menu items in UTF-8.
1670
1671 * xmenu.c: include xsettings.h and xlwmenu.h if USE_LUCID.
1672 (apply_systemfont_to_menu): New function.
1673 (set_frame_menubar, create_and_show_popup_menu): Call
1674 apply_systemfont_to_menu.
1675
7fc874c4
J
16762010-04-07 Jan Djärv <jan.h.d@swipnet.se>
1677
1678 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
1679 FRAME_LINE_TO_PIXEL_Y.
1680
1681 * xterm.c (x_set_window_size_1): Don't add border_width/height to
1682 pixelwidth/height.
1683
863bf481
DN
16842010-04-07 Dan Nicolaescu <dann@ics.uci.edu>
1685
5e5a3b92
DN
1686 Simplify code for HP machines.
1687 * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
1688 for GNU_LINUX, not needed.
1689 (UNEXEC, NEED_BSDTTY): Move definitions...
1690 * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
1691
863bf481
DN
1692 * m/iris4d.h (UNEXEC): Move definition ...
1693 * s/irix6-5.h (UNEXEC): ... here.
1694
3e6bec3b
JD
16952010-04-04 Jan Djärv <jan.h.d@swipnet.se>
1696
1697 * xfns.c (set_machine_and_pid_properties): New function.
1698 (Fx_create_frame): Call set_machine_and_pid_properties.
1699
2912322b
SM
17002010-04-03 Eli Zaretskii <eliz@gnu.org>
1701
1502b819
EZ
1702 * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char): Check
1703 bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
1704 BIDI_EOB. Fixes infloop with vertical cursor motion at ZV.
1705
2912322b
SM
1706 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
1707 in this function. (Bug#5703)
1708
17092010-04-03 Chong Yidong <cyd@stupidchicken.com>
1710
1711 * nsterm.h: Fix last change.
1712
c435b432
DN
17132010-04-03 Dan Nicolaescu <dann@ics.uci.edu>
1714
a568f507
DN
1715 * m/intel386.h (NO_REMAP): Move definition ...
1716 * s/msdos.h (NO_REMAP): ... here.
1717
4cd9f6c2
DN
1718 * m/vax.h (CRT0_DUMMIES): Remove, unused.
1719
c435b432
DN
1720 * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
1721 used on those platforms.
1722
42a2c622
DN
17232010-04-02 Dan Nicolaescu <dann@ics.uci.edu>
1724
1725 Remove extern errno declarations.
1726 * xterm.c:
1727 * xrdb.c:
1728 * w32term.c:
1729 * unexec.c:
1730 * unexaix.c:
1731 * sysdep.c:
1732 * process.c:
1733 * lread.c:
1734 * keyboard.c:
1735 * floatfns.c:
1736 * filelock.c:
1737 * fileio.c:
1738 * emacs.c (main):
1739 * ecrt0.c:
1740 * dispnew.c:
1741 * callproc.c:
1742 * buffer.c: Remove errno extern declarations.
1743 * s/netbsd.h (NEED_ERRNO): Remove.
1744
8224f93d
DN
17452010-04-01 Dan Nicolaescu <dann@ics.uci.edu>
1746
1747 Remove all uses of LIBX11_SYSTEM.
1748 * Makefile.in (LIBX11_SYSTEM): Remove.
1749 * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
1750 instead.
1751
814062c7
EZ
17522010-04-01 Eli Zaretskii <eliz@gnu.org>
1753
ed68db4d
EZ
1754 Remove support for DJGPP v1.x (bug#5813).
1755
1756 * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
8224f93d
DN
1757 * s/msdos.h:
1758 * unexec.c (make_hdr, copy_text_and_data):
1759 * sysdep.c (wait_for_termination, sys_subshell):
ed68db4d 1760 * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
52f4d8d5
EZ
1761 (IT_set_terminal_modes, __write, _rename, gethostname)
1762 (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
1763 (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
1764 the value of __DJGPP__.
ed68db4d
EZ
1765 (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
1766 compatibility code.
8224f93d
DN
1767 * lread.c:
1768 * gmalloc.c (memalign):
1769 * fileio.c (Fcopy_file, check_executable, Ffile_modes):
1770 * emacs.c (main):
1771 * dosfns.c (init_dosfns):
ed68db4d
EZ
1772 * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
1773
52f4d8d5
EZ
17742010-04-01 Eli Zaretskii <eliz@gnu.org>
1775
814062c7
EZ
1776 * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
1777 string with `cursor' property comes from an `after-string'
1778 overlay. (Bug#5816)
1779
0dc2e11d
GM
17802010-04-01 Glenn Morris <rgm@gnu.org>
1781
1782 * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
1783 Define as Makefile variables.
1784 (LIBX): Use above variables rather than directly using autoconf.
1785
1d29df59
DN
17862010-03-31 Dan Nicolaescu <dann@ics.uci.edu>
1787
1788 Clean up BSD_SYSTEM use.
1789 * xterm.c:
1790 * process.c:
1791 * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
1792 for including <sys/ioctl.h>.
1793 * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
1794 code is only used for MSDOS.
1795
1546c559
JL
17962010-03-31 Juri Linkov <juri@jurta.org>
1797
1798 * image.c: Add `Qextension_data'.
1799 (syms_of_image): Initialize and staticpro `Qextension_data'.
1800 (Fimage_metadata): Rename from `Fimage_extension_data'.
1801 (gif_load): Put GIF extension data to the property
1802 `Qextension_data'.
1803
b8a1d5a1
CY
18042010-04-05 Chong Yidong <cyd@stupidchicken.com>
1805
1806 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
1807 terminal frames (Bug#5837).
1808
6521c534
CY
18092010-03-31 Chong Yidong <cyd@stupidchicken.com>
1810
1811 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
1812 * nsterm.h: Fix prototype.
1813
52c30783
EZ
18142010-03-31 Eli Zaretskii <eliz@gnu.org>
1815
1816 * xdisp.c (highlight_trailing_whitespace): Support highlight of
1817 trailing whitespace in right-to-left rows.
1818
855a0da7
SM
18192010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
1820
1821 Get rid of the direct_output optimizations.
1822 * keyboard.c (nonundocount): Remove extern declaration.
1823 (command_loop_1): Remove brittle optimisation for cheap and
1824 common operations.
1825 * xdisp.c (redisplay_internal): Don't bother checking
1826 redisplay_performed_directly_p any more.
1827 * sysdep.c (init_sys_modes): Don't call direct_output_forward_char
1828 any more.
1829 * dispnew.c (redisplay_performed_directly_p)
1830 (direct_output_for_insert, direct_output_forward_char):
1831 * dispextern.h (redisplay_performed_directly_p)
1832 (direct_output_for_insert, direct_output_forward_char): Remove.
1833 * cmds.c (nonundocount): Make it static.
1834
85738751 18352010-03-31 Bernhard Herzog <bh@intevation.de> (tiny change)
a6d676d9
CY
1836
1837 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
1838
85738751 18392010-03-31 Jan Djärv <jan.h.d@swipnet.se>
67fee863
JD
1840
1841 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
1842 invisible (Bug#5766).
1843
85738751 18442010-03-31 Adrian Robert <adrian.b.robert@gmail.com>
9ae6e189 1845
855a0da7
SM
1846 * xdisp.c (x_consider_frame_title, update_window_cursor):
1847 Remove HAVE_NS conditionals.
194d44e7 1848 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
9ae6e189
CY
1849
1850 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
1851 filename for the title.
1852 (ns_set_doc_edited): Do nothing if the selected window is a
1853 minibuffer window.
1854
1855 * nsterm.h: Add prototypes for ns_set_name_as_filename and
1856 ns_set_doc_edited.
1857
1858 * nsterm.m: Remove unneeded prototype.
1859
85738751 18602010-03-31 Glenn Morris <rgm@gnu.org>
25c72475
GM
1861
1862 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
1863 in the DOC file. (Bug#5336)
1864
85738751 18652010-03-31 Chong Yidong <cyd@stupidchicken.com>
f79a01db
CY
1866
1867 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
1868
75d1428c
SM
18692010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
1870
1871 * window.c (keys_of_window): Remove redundant/overridden bindings.
1872
82043cfb
EZ
18732010-03-30 Eli Zaretskii <eliz@gnu.org>
1874
1875 * xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
1876 Restore original behavior when the iterator is not bidi_p.
1877
b5dd0ae7
DN
18782010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
1879
1880 * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
1881
bd924a5d
EZ
18822010-03-30 Eli Zaretskii <eliz@gnu.org>
1883
1884 * bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
1885 are outside the range of cached character positions.
1886
3580374b
JB
18872010-03-30 Juanma Barranquero <lekktu@gmail.com>
1888
1889 * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
1890
a7b02820
EZ
18912010-03-30 Eli Zaretskii <eliz@gnu.org>
1892
1893 Initial support for bidirectional editing.
1894
1895 * Makefile.in (obj): Include bidi.o.
1896 (bidi.o): New target.
1897
1898 * makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
1899 ($(BLD)/bidi.$(O)): New target.
1900
1901 * bidi.c: New file.
1902
1903 * buffer.h (struct buffer): New members bidi_display_reordering
1904 and bidi_paragraph_direction.
1905
1906 * buffer.c (init_buffer_once): Initialize bidi_display_reordering
1907 and bidi_paragraph_direction.
1908 (syms_of_buffer): Declare Lisp variables bidi-display-reordering
1909 and bidi-paragraph-direction.
1910 (Fbuffer_swap_text): Swap the values of
1911 bidi_display_reordering and bidi_paragraph_direction.
1912
1913 * dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
1914 (bidi_type_t, bidi_dir_t): New types.
1915 (bidi_saved_info, bidi_stack, bidi_it): New structures.
1916 (struct it): New members bidi_p, bidi_it, paragraph_embedding,
1917 prev_stop, base_level_stop, and eol_pos.
1918 (bidi_init_it, bidi_get_next_char_visually): New prototypes.
1919 (IT_STACK_SIZE): Enlarge to 5.
1920 (struct glyph_row): New member reversed_p.
1921 <string_buffer_position>: Update prototype.
1922 (PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
1923 glyph_row if bidi_it.paragraph_dir == R2L.
1924 (struct glyph): New members resolved_level and bidi_type.
1925
1926 * dispnew.c (direct_output_forward_char): Give up if we need bidi
1927 processing or buffer's direction is right-to-left.
1928 (prepare_desired_row): Preserve the reversed_p flag.
1929 (row_equal_p): Compare the reversed_p attributes as well.
1930
1931 * xdisp.c (init_iterator): Initialize it->bidi_p. Call
1932 bidi_init_it and set it->paragraph_embedding from the current
1933 buffer's value of bidi_paragraph_direction.
1934 (reseat_1): Initialize bidi_it.first_elt.
1935 (set_iterator_to_next, next_element_from_buffer): Use the value of
1936 paragraph_embedding to determine the paragraph direction.
1937 (set_iterator_to_next): Under bidi reordering, call
1938 bidi_get_next_char_visually. Call bidi_paragraph_init if the
1939 new_paragraph flag is set in the bidi iterator.
1940 (next_element_from_buffer): If bidi_it.first_elt is set,
1941 initialize paragraph direction and find the first character to
1942 display in the visual order. If reseated to a middle of a line,
1943 prime the bidi iterator starting at the line's beginning. Handle
1944 the situation where we overstepped stop_charpos due to
1945 non-linearity of the bidi iteration. Likewise for when we back up
1946 beyond the previous stop_charpos. When moving across stop_charpos,
1947 record it in prev_stop.
1948 (display_line): Set row->end and it->start for the next row to the
1949 next character in logical order. Always extend reversed_p rows to
1950 the end of line, even if they end at ZV. Copy the reversed_p flag
1951 to the next glyph row. Keep calling set_cursor_from_row for
1952 bidi-reordered rows even if we already have a possible candidate
1953 for cursor position. Set row_end after all the row's glyphs have
1954 been produced, by looping over the glyphs. Record the position
1955 after EOL in it->eol_pos, and use it to set end_pos of the last
1956 row produced for a continued line.
1957 <Qright_to_left, Qleft_to_right>: New variables.
1958 (syms_of_xdisp): Initialize and staticpro them.
1959 (string_buffer_position_lim): New function.
1960 (string_buffer_position): Most of code moved to
1961 string_buffer_position_lim. Last argument and return value are
1962 now EMACS_INT; all callers changed.
1963 (set_cursor_from_row): Rewritten to support bidirectional text and
1964 reversed glyph rows.
1965 (text_outside_line_unchanged_p, try_window_id): Disable
1966 optimizations if we are reordering bidirectional text and the
1967 paragraph direction can be affected by the change.
1968 (append_glyph, append_composite_glyph)
1969 (produce_image_glyph, append_stretch_glyph): Set the
1970 resolved_level and bidi_type members of each glyph.
1971 (append_glyph): If the glyph row is reversed, prepend the glyph
1972 rather than appending it.
1973 (handle_stop_backwards): New function.
1974 (reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
1975 (reseat): call handle_stop_backwards to recompute prev_stop and
1976 base_level_stop for the new position.
1977 (handle_invisible_prop): Under bidi iteration, skip invisible text
1978 using bidi_get_next_char_visually. If we are `reseat'ed, init the
1979 paragraph direction. Update IT->prev_stop after skipping
1980 invisible text.
1981 (move_it_in_display_line_to): New variables prev_method
1982 and prev_pos. Compare for strict equality in
1983 BUFFER_POS_REACHED_P.
1984 (try_cursor_movement): Examine all the candidate rows that occlude
1985 point, to return the best match. If rows are bidi-reordered
1986 and point moved backwards, back up to the row that is not a
1987 continuation line, and start looking for a suitable row from
1988 there.
1989
1990 * term.c (append_glyph): Reverse glyphs by pre-pending them,
1991 rather than appending, if the glyph_row's reversed_p flag is set.
1992 Set the resolved_level and bidi_type members of each glyph.
1993
1994 * .gdbinit (pbiditype): New command.
1995 (pgx): Use it to display bidi level and type of the glyph.
1996 (pitx): Display some bidi information about the iterator.
1997 (prowlims, pmtxrows): New commands.
1998
32a8894e
DN
19992010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
2000
2001 Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
2002 * s/usg5-4.h (LIBS_DEBUG):
2003 * s/irix6-5.h (C_DEBUG_SWITCH):
2004 * s/gnu-linux.h (LIBS_DEBUG):
2005 * s/darwin.h (LIBS_DEBUG):
2006 * s/bsd-common.h (LIBS_DEBUG):
2007 * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
2008 * m/iris4d.h (LIBS_DEBUG):
2009 * m/hp800.h (LIBS_DEBUG): Remove definitions.
2010
2011 * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
2012 (LIBS_DEBUG): Remove definition.
2013
649dbf36
CY
20142010-03-27 Chong Yidong <cyd@stupidchicken.com>
2015
2016 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
2017 Windows.
2018
cad4261f
YM
20192010-03-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2020
2021 * process.c (Fmake_network_process): Don't call turn_on_atimers around
2022 `connect' (Bug#5723).
2023
cd591dbc
HE
20242010-03-25 Helmut Eller <eller.helmut@gmail.com>
2025
2026 * process.c (Fmake_network_process): Call `select' for interrupted
2027 `connect' rather than creating new socket (Bug#5173).
2028
e867cb5d 20292010-03-24 Jan Djärv <jan.h.d@swipnet.se>
93318cbd
JD
2030
2031 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
2032
2033 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
2034
2035 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
2036
e867cb5d 20372010-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ad13a3ee
YM
2038
2039 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
2040 XLoadQueryFont.
2041
e867cb5d 20422010-03-24 Kenichi Handa <handa@m17n.org>
fbdc1721
KH
2043
2044 * coding.c (decode_coding_ccl): Fix previous change for the
2045 multibyte case.
fb608df3
KH
2046 (encode_coding_ccl): Don't setup ccl program here. Fix for the
2047 case that the output buffer is fullfilled.
2048 (encode_coding): Setup ccl program here.
fbdc1721 2049
e867cb5d 20502010-03-24 Andreas Politz <politza@fh-trier.de> (tiny change)
35cd7cd6
CY
2051
2052 * editfns.c (Fformat): Account for string precision when computing
2053 field width (Bug#5710).
2054
5845f0ed
DN
20552010-03-23 Dan Nicolaescu <dann@ics.uci.edu>
2056
814fb708
DN
2057 * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
2058
5845f0ed
DN
2059 Simplify LIBS_MACHINE definitions.
2060 * m/hp800.h (LIBS_MACHINE): Remove, same as default.
2061 * m/iris4d.h (LIBS_MACHINE): Likewise.
2062 * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
2063 * s/aix4-2.h (LIBS_SYSTEM): ... here.
38e3487c 2064 * s/netbsd.h: Remove commented out code.
5845f0ed 2065
b7064064
DN
20662010-03-22 Dan Nicolaescu <dann@ics.uci.edu>
2067
df7734b2
DN
2068 Remove dead code dealing with POSIX_SIGNALS.
2069 * atimer.c (set_alarm): Remove dead code, all USG systems define
2070 POSIX_SIGNALS.
2071 * data.c (arith_error): Likewise.
2072 * keyboard.c (input_available_signal, handle_user_signal)
2073 (interrupt_signal): Likewise.
2074 * process.c (sigchld_handler): Likewise.
2075 (create_process): Remove if 0 code. Remove HPUX conditional when
2076 !defined (POSIX_SIGNALS), it cannot be true.
2077 * syssignal.h: Remove USG5_4 and USG conditionals when
2078 !POSIX_SIGNALS, they cannot be true.
2079
b7064064
DN
2080 * keyboard.c (Fset_input_interrupt_mode): Remove code depending on
2081 NO_SOCK_SIGIO, not used anymore.
2082
55da5ee3
DN
20832010-03-21 Dan Nicolaescu <dann@ics.uci.edu>
2084
0be96e3a
DN
2085 * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
2086 support vax on BSDs.
2087
55da5ee3
DN
2088 * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
2089 * s/aix4-2.h (ORDINARY_LINK): ... here.
2090
c0282183
AS
20912010-03-21 Andreas Schwab <schwab@linux-m68k.org>
2092
82c3d67a
AS
2093 * Makefile.in (abs_builddir): Define.
2094 (bootstrap_exe): Use it.
2095 (VPATH): Use $(srcdir) instead of @srcdir@.
c0282183 2096
3613edce
SM
20972010-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
2098
2099 * Makefile.in (bootstrap_exe): Use an absolute name.
2100
7f110ddc
DN
21012010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
2102
22e87574
DN
2103 Remove support for old GNU/Linux using libc version 5.
2104 * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
2105 * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
2106
05a670e6
DN
2107 Consolidate redundant definitions in s/bsd-common.h.
2108 * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
2109 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
2110 (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
2111 doing it in all files that include this one.
2112 * s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
2113 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
2114 (LDAV_SYMBOL, KERNEL_FILE): Remove.
2115 * s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
2116 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
2117 (LDAV_SYMBOL, KERNEL_FILE): Remove.
2118 * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
2119 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
2120 (LDAV_SYMBOL, KERNEL_FILE): Remove.
2121
2968f561
DN
2122 Consolidate redundant definitions.
2123 * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
2124 it's undefined in all files that include this one.
2125 (POSIX_SIGNALS): Define here instead of doing it in all files that
2126 include this one.
2127 * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
2128 (POSIX_SIGNALS): Do not define.
2129 * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
2130 (POSIX_SIGNALS): Do not define.
2131 * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
2132 (POSIX_SIGNALS): Do not define.
2133
15d25dc0
DN
2134 Remove support for old UNIX System V systems.
2135 * s/unixware.h: Add the contents of s/usg-5-4-2.h.
2136 * s/usg-5-4-2.h: Remove.
2137
07e339e4
DN
2138 Remove support for Solaris on PPC and for old versions.
2139 * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
2140 (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
2141 that cancel each other.
2142 * s/sol2-3.h:
2143 * s/sol2-4.h:
2144 * s/sol2-5.h: Remove.
2145 * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
2146 (NO_REMAP): Remove, unused.
2147 (UNEXEC): Move definition ...
2148 * s/aix4-2.h (UNEXEC): ... here.
2149
7f110ddc
DN
2150 * s/openbsd.h: Remove support for non-ELF and for systems that do
2151 not support shared libraries.
2152 * s/netbsd.h:
2153 * s/freebsd.h: Likewise.
2154
605f35cd
DN
21552010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
2156
2157 Remove non-working support for lynxos 3.0.
2158 * s/lynxos.h: Remove file.
2159
2160 * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
2161 COFF_BSD_SYMBOLS, nothing defines it anymore.
2162
aed71cf4
DN
21632010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
2164
2165 Remove obsolete uses of HAVE_SHM.
2166 * emacs.c (standard_args):
2167 (Fdump_emacs):
2168 (syms_of_emacs): Remove code depending on HAVE_SHM.
2169
2170 * alloc.c: Remove HAVE_SHM dependent definition.
2171
2172 * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
2173
aded53ff
GM
21742010-03-18 Glenn Morris <rgm@gnu.org>
2175
17284745
GM
2176 * emacs.c (USAGE4): Hard-code bug address.
2177 (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
2178 (bug_reporting_address): Remove.
2179 (main): Don't call bug_reporting_address.
2180
aded53ff
GM
2181 * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
2182 (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
2183
303500aa
CY
21842010-03-15 Chong Yidong <cyd@stupidchicken.com>
2185
2186 * xfns.c (Fx_create_frame):
2187 * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
2188 on left.
2189
cef3058f
CY
21902010-03-13 Andreas Politz <politza@fh-trier.de> (tiny change)
2191
2192 * editfns.c (Fformat): Account for string precision when computing
2193 field width (Bug#5710).
2194
a647d59d
CY
21952010-03-12 Chong Yidong <cyd@stupidchicken.com>
2196
4fa42018
CY
2197 * xfns.c (Fx_create_frame): Set default to Qright.
2198
a647d59d
CY
2199 * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
2200 all window systems.
2201
6da23aaa
EZ
22022010-03-12 Eli Zaretskii <eliz@gnu.org>
2203
a96f6398 2204 These changes remove termcap.c from the build on Posix platforms.
83d02def 2205 * Makefile.in (termcapobj): Move termcap.o from here...
6da23aaa
EZ
2206 (MSDOS_OBJ): ...to here.
2207 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
2208 now identical to when LIBS_TERMCAP is defined.
2209
2210 * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
2211
2212 * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
2213
a96f6398 2214 * config.in: Regenerated. (See top-level ChangeLog.)
6da23aaa 2215
288f9fc0
CY
22162010-03-10 Chong Yidong <cyd@stupidchicken.com>
2217
2218 * Branch for 23.2.
2219
d48cd3f4
SM
22202010-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
2221
2222 Cleanup setup of gl_state in various parts of the code.
2223 * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
2224 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
2225 * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
2226 (skip_chars):
2227 * regex.c (regex_compile): Use it.
2228 (re_compile_pattern): Don't set gl_state.current_syntax_table since
2229 it's now set in regex_compile when/if we need it.
2230
618db430
SM
22312010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
2232
c0335e02
SM
2233 Make it possible to C-g in a tight bytecode loop again (bug#5680).
2234 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
2235 (QUIT): Use it to consolidate code and remove redundancy.
2236 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
2237
254c06a8
SM
2238 * regex.c (regex_compile): Setup gl_state as well.
2239
618db430
SM
2240 * syntax.c (skip_chars): Setup gl_state (bug#3823).
2241 (in_classes): Use CONSP before XCAR/XCDR.
2242
233f0c9f
CY
22432010-03-03 Chong Yidong <cyd@stupidchicken.com>
2244
2245 * keymap.c (Fwhere_is_internal): Use Fequal to compare
2246 definitions, so that keyboard macros are correctly handled
2247 (Bug#5481).
2248
75f80e63
EZ
22492010-03-02 Eli Zaretskii <eliz@gnu.org>
2250
2251 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
2252 text that could be relocated inside the call to emacs_mule_char.
2253 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
2254 (CODING_DECODE_CHAR): Add a comment describing its purpose.
2255
dcfb9bc4
KH
22562010-03-02 Kenichi Handa <handa@m17n.org>
2257
fc9a17bc
KH
2258 * character.c (parse_str_as_multibyte): Fix handling of the
2259 multibyte form of raw-bytes.
2260 (str_as_multibyte): Likewise.
2261
dcfb9bc4
KH
2262 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
2263 form of raw-bytes.
2264
412c01b6
CY
22652010-02-28 Chong Yidong <cyd@stupidchicken.com>
2266
2267 * charset.c (load_charset_map_from_file)
2268 (load_charset_map_from_vector): Zero out allocated
2269 charset_map_entries before using them.
2270
df7e1ea0
AS
22712010-02-27 Andreas Schwab <schwab@linux-m68k.org>
2272
2273 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
2274
fe69a722
CY
22752010-02-27 Chong Yidong <cyd@stupidchicken.com>
2276
4ed28cf4
CY
2277 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
2278 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
fe69a722 2279
7379cfce
KH
22802010-02-26 Kenichi Handa <handa@m17n.org>
2281
f88cc4d6
KH
2282 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
2283
7379cfce
KH
2284 * xdisp.c (reseat_to_string): Fix previous change.
2285
cf2fdcfb
CY
22862010-02-26 David Reitter <david.reitter@gmail.com>
2287
2288 * nsfont.m (nsfont_draw): ns_antialias_text should be a
2289 Lisp_Object (Bug#4736).
2290
cc6c7c75
KH
22912010-02-25 Kenichi Handa <handa@m17n.org>
2292
2293 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
2294
32e737d7
JD
22952010-02-24 Jan Djärv <jan.h.d@swipnet.se>
2296
2297 * xterm.c (XTflash): Move declarations before statements.
2298
2299 * gtkutil.c (xg_get_gdk_display): Remove (unused).
2300 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
2301 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
2302 (xg_create_tool_bar): Remove unused variables.
2303 (x_wm_set_size_hint): Move declarations before statements.
a73f9c9d 2304 (xg_create_frame_widgets): Remove variable grav.
32e737d7 2305
676cae9f
CY
23062010-02-21 Chong Yidong <cyd@stupidchicken.com>
2307
2308 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
2309
886cc2b8
SM
23102010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
2311
2312 * term.c (fatal): Add a final \n if needed (bug#5596).
2313
ddb2d8e2
CY
23142010-02-18 Chong Yidong <cyd@stupidchicken.com>
2315
2316 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
2317
2a4f8d3d
GM
23182010-02-18 Glenn Morris <rgm@gnu.org>
2319
2320 * callint.c (Finteractive): Doc fix.
2321
ebaf11b6
KH
23222010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
2323
886cc2b8
SM
2324 * coding.c (record_conversion_result):
2325 Handle CODING_RESULT_INSUFFICIENT_DST.
ebaf11b6
KH
2326 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
2327 memory allocation error.
2328
d0396581
KH
23292010-02-17 Kenichi Handa <handa@m17n.org>
2330
886cc2b8
SM
2331 * coding.c (decode_coding_ccl): Don't setup ccl program here.
2332 Fix for the case that the output buffer is fullfilled.
d0396581
KH
2333 (decode_coding): Setup ccl program here. Keep looping when the
2334 decoder stopped because the output buffer is
2335 fullfilled (bug#5534).
2336
2337 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
2338
98599f74
JD
23392010-02-13 Jan Djärv <jan.h.d@swipnet.se>
2340
471e4f04 2341 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
98599f74 2342 bug #5571.
886cc2b8 2343 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
471e4f04 2344 overdrawn.
98599f74 2345
182659ae
JD
23462010-02-10 Jan Djärv <jan.h.d@swipnet.se>
2347
2348 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
2349 doing_interact here.
2350 (ice_connection_closed): New function.
2351 (x_session_check_input, smc_die_CB, ice_io_error_handler)
2352 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
2353 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
2354 returns I/O error.
2355 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
2356 bug #5512.
2357
9be32c4e 23582010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
14a225f9
CY
2359
2360 * nsfont.m (nsfont_open): The system's value for the font descent
2361 is negative, so round it down to avoid clipping.
2362
a2f3eb19
CY
23632010-02-06 Chong Yidong <cyd@stupidchicken.com>
2364
2365 * charset.c (load_charset_map_from_file)
2366 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
953d248c 2367 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
a2f3eb19 2368
3088147c
CY
23692010-02-05 Chong Yidong <cyd@stupidchicken.com>
2370
2371 * charset.c (load_charset_map_from_file): Allocate large
2372 charset_map_entries structure on the heap rather than the stack.
2373 (Bug#5526).
2374
b57d9029
KH
23752010-01-31 Kenichi Handa <handa@m17n.org>
2376
2377 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
115e4fd3 2378 size in NAME is invalid, return -1 (Bug#5396).
b57d9029 2379
c67d885b
CY
23802010-01-31 Chong Yidong <cyd@stupidchicken.com>
2381
2382 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
2383 <deactivated@gmail.com> (Bug#3605).
2384
8fab2362
CY
23852010-01-31 David De La Harpe Golden <david@harpegolden.net>
2386
2387 * fileio.c (Frename_file): Correctly rename symlinks to
2388 directories (Bug#5496).
2389
cb2a62f2
CY
23902010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
2391
2392 * nsterm.m (ns_ring_bell): Handle visible bell like X.
2393
944c7a26
AS
23942010-01-30 Andreas Schwab <schwab@linux-m68k.org>
2395
2396 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
2397
c024ac08
CY
23982010-01-29 Chong Yidong <cyd@stupidchicken.com>
2399
2400 * frame.c (DEFAULT_ROWS): Change default to 35.
2401
2402 * xfns.c (x_default_font_parameter): Change default XFT font to
2403 monospace-10 (Bug#3643).
2404
af93af83
EZ
24052010-01-29 Eli Zaretskii <eliz@gnu.org>
2406
2407 * w32inevt.c (key_event): Remove unnecessary comparison of
2408 event->uChar.AsciiChar with 128.
2409
ca0eb708
CY
24102010-01-28 Chong Yidong <cyd@stupidchicken.com>
2411
b242dbfc
CY
2412 * fileio.c (Frename_file): Fix last change (Bug#5487).
2413
ca0eb708
CY
2414 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
2415
2416 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
2417
45d45af5
JD
24182010-01-28 Jan Djärv <jan.h.d@swipnet.se>
2419
2420 * xfns.c (Fx_create_frame): Remove window size matching code from
2421 2010-01-15.
a73f9c9d 2422 (x_get_current_desktop, x_get_desktop_workarea): Remove.
45d45af5 2423
7e233730
JR
24242010-01-27 Jason Rumney <jasonr@gnu.org>
2425
2426 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
a292592c 2427 (key_event): Use unicode for characters 128 and higher (Bug#4567).
7e233730 2428
86e893e3
KH
24292010-01-27 Kenichi Handa <handa@m17n.org>
2430
2431 * regex.c (analyse_first): Fix setting of fastmap for unibyte
c8b96b2a 2432 pattern string (Bug#4209).
86e893e3 2433
8719abec
CY
24342010-01-27 David De La Harpe Golden <david@harpegolden.net>
2435
2436 * fileio.c (Frename_file): Call copy-directory and
2437 delete-directory for directories, in order to handle cross-device
2438 renaming (Bug#3353).
2439
844794c8
JD
24402010-01-25 Jan Djärv <jan.h.d@swipnet.se>
2441
aa3e13b5 2442 * xfns.c (Fx_create_frame): If frame height is too big, try
ac146f82 2443 sizes 24 and 10. Bug #3643.
844794c8 2444
bd4b5750
SM
24452010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
2446
8dc1adf6 2447 Try and fix bug#788, hopefully for real this time.
bd4b5750
SM
2448 * keymap.c (shadow_lookup): Add `remap' arg.
2449 (describe_map, describe_vector): Update calls to shadow_lookup.
2450 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
2451 `remapped' so this flag is applicable to `sequence'. Be careful to
8dc1adf6
SM
2452 perform remapping during shadow_lookup check of remapped_sequences.
2453
285d07e2
CY
24542010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
2455
2456 * image.c (png_load): Use png_sig_cmp instead of the obsolete
2457 png_check_sig, which has been removed in libpng 1.4.
2458
c6d09b8d
CY
24592010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
2460
2461 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
2462 lacks this header file).
2463
3d782998
YM
24642010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2465
2466 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
2467 as in Emacs 22.
2468
2aff7c53
YM
24692010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2470
2471 * lisp.h (make_pure_string): String pointer arg now points to const.
2472
2473 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
2474 args now point to const.
2475
74327f7a
EZ
24762010-01-22 Eli Zaretskii <eliz@gnu.org>
2477
2478 * lread.c (Fload): Don't treat files without .elc extension as
2479 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
2480 them. (bug#5303)
2481
4d1e6632
KH
24822010-01-20 Kenichi Handa <handa@m17n.org>
2483
2484 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
2485 treat the source as actual byte sequence.
2486
1fdede8f
AM
24872010-01-19 Alan Mackenzie <acm@muc.de>
2488
2489 Fix spurious before-change-functions invocation from (insert ?\n).
194d44e7 2490 * textprop.c (set_text_properties): Rename parameter
1fdede8f
AM
2491 `signal_after_change_p' to `coherent_change_p', and make the
2492 invocation of `modify_region' conditional on it.
2493
67477f30
JD
24942010-01-19 Jan Djärv <jan.h.d@swipnet.se>
2495
2496 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
2497 for debug purpose.
2498 (syms_of_xsettings): Declare xft-settings.
2499
244b023e
CY
25002010-01-18 Chong Yidong <cyd@stupidchicken.com>
2501
2502 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
2503
617364fe
CY
25042010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
2505
2506 * xterm.c (event_handler_gdk): Block input (Bug#5037).
2507
4fe22cdf
CY
25082010-01-16 Chong Yidong <cyd@stupidchicken.com>
2509
2510 * emacs.c (standard_args): Adjust arg priorities to reflect how
2511 they are processed in startup.el.
2512
e118d2be
AS
25132010-01-16 Andreas Schwab <schwab@linux-m68k.org>
2514
2515 * Makefile.in (lisp, shortlisp): Update.
2516
523ae620
SM
25172010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
2518
2519 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
2520 code, link the new kboard into all_kboard before running Lisp code,
2521 and protect the new terminal with GCPRO (Bug#5365).
2522 (x_term_init): Remove unused var `atom'.
2523 (x_delete_display, x_delete_terminal): Remove unused var `i'.
2524
f0d13888
JD
25252010-01-15 Jan Djärv <jan.h.d@swipnet.se>
2526
2527 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
2528 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
2529 to find out usable size of the desktop. Don't make frames larger than
ac146f82 2530 this. Bug #3643.
f0d13888 2531
cc320f07
KH
25322010-01-15 Kenichi Handa <handa@m17n.org>
2533
2534 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
2535
7ffdf101
CY
25362010-01-15 Chong Yidong <cyd@stupidchicken.com>
2537
2538 * nsterm.m (Qnone): Define.
2539
2540 * nsfns.m (Qnone): Move definition to nsterm.m.
2541
d12bd917
KH
25422010-01-14 Kenichi Handa <handa@m17n.org>
2543
2544 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
2545 systems.
2546
d9a7c140
KH
25472010-01-14 Kenichi Handa <handa@m17n.org>
2548
2549 Make auto-composition work on all buffers even if they are
2550 fundamental mode.
2551
2552 * composite.c (Vauto_composition_mode): New variable.
2553 (composition_compute_stop_pos): Check Vauto_composition_mode
2554 instead of Vauto_composition_function.
2555 (composition_adjust_point, Ffind_composition_internal): Likewise.
2556 (syms_of_composite): Declare Lisp variable
2557 "auto-composition-mode" here.
2558
63286bb2
CY
25592010-01-13 Chong Yidong <cyd@stupidchicken.com>
2560
2561 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
2562 during call to vendor-specific-keysyms (Bug#5365).
2563
c2623ee7
YM
25642010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2565
2566 * keyboard.c (input_available_signal) [SYNC_INPUT]:
2567 Call SIGNAL_THREAD_CHECK (Bug#5333).
2568
2569 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
2570 Call SIGNAL_THREAD_CHECK.
2571
0b5397c2
SM
25722010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
2573
2574 Try to fix bug#5314. This is probably not the final word, tho.
2575 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
2576 recent-auto-save-p as a side-effect.
2577 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
2578 * buffer.c (Fkill_buffer, reset_buffer):
2579 * editfns.c (Fsubst_char_in_region):
2580 * fileio.c (Finsert_file_contents, Fdo_auto_save)
2581 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
2582
dc954cb2
KH
25832010-01-13 Kenichi Handa <handa@m17n.org>
2584
2585 Display buffer name, etc. in mode line by composing correctly.
2586
2587 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
2588 STRING is not nil.
0b5397c2 2589 (display_mode_element): Adjust for the change of
dc954cb2
KH
2590 decode_mode_spec and display_line.
2591 (decode_mode_spec): Change arg MULTIBYTE to STRING.
2592 (display_string): Handle the case that STRING is non-null and
2593 LISP_STRING is not nil.
2594
0b5397c2
SM
2595 * xterm.c (x_draw_composite_glyph_string_foreground):
2596 Pay attention to s->face->overstrike.
dc954cb2
KH
2597
2598 * composite.c (composition_reseat_it): Don't check PT if STRING is
2599 non nil.
2600
4a00eaca
YM
26012010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2602
2603 * keyboard.c (read_char): Don't apply previous change when current
2604 buffer is unchanged by command execution.
2605
60abb287
JD
26062010-01-12 Jan Djärv <jan.h.d@swipnet.se>
2607
2608 * keyboard.c (read_char): Return after executing from special map.
2609
893db5bc
GM
26102010-01-12 Glenn Morris <rgm@gnu.org>
2611
2612 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
2613 bug-gnu-emacs rather than emacs-pretest-bug.
2614
4d03ece0
CY
26152010-01-11 Chong Yidong <cyd@stupidchicken.com>
2616
2617 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
2618 initializing the Lisp variables that depend on them.
2619
1df47e38
YM
26202010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2621
2622 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
2623 Clear areas that will not be updated after change of menu bar lines.
2624 Clear the menu bar window's current matrix when the window gets empty.
2625
2f1c6384
CY
26262010-01-09 Chong Yidong <cyd@stupidchicken.com>
2627
e398c61c
CY
2628 * intervals.h, textprop.c (extend_property_ranges): Return value
2629 and args changed. Discard properties that begin at or after the
2630 new end (Bug#5306).
2631
2632 * editfns.c (Fformat): Caller changed.
2633
e5a29a10
CY
2634 * nsterm.m (ns_set_default_prefs): Delete function.
2635 (syms_of_nsterm): Initialize ns_command_modifier,
2636 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
2637 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
2638
2f1c6384
CY
2639 * xdisp.c (pos_visible_p): Check for invisible text at the correct
2640 position (Bug#4040).
2641
d427a9fa
EZ
26422010-01-09 Eli Zaretskii <eliz@gnu.org>
2643
2644 * editfns.c (Ffloat_time): Doc fix.
2645
21b9df2f
JD
26462010-01-09 Jan Djärv <jan.h.d@swipnet.se>
2647
2648 * xfns.c (Fx_create_frame): Don't create frame larger than display
2649 by default bug#3643.
2650
4b00d3b1
YM
26512010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2652
2653 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
2654 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
2655 windows above internal border.
2656
2657 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
2658 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
2659 windows above internal border.
2660
2661 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
2662 tool bar windows specially.
2663
2664 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
2665
2666 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
2667 specially.
2668 (XTflash): Take account of menu bar height.
2669
2670 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
2671 specially.
2672
5075d853
JD
26732010-01-08 Jan Djärv <jan.h.d@swipnet.se>
2674
ac146f82 2675 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
5075d853
JD
2676 also be true before we can return early (bug #5339).
2677
474217c8
CY
26782010-01-06 David Reitter <david.reitter@gmail.com>
2679
2680 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
2681 (Fns_display_usable_bounds): Rewrite, computing bounds properly
2682 (Bug#3233).
2683
c0e6d47d
JD
26842010-01-06 Jan Djärv <jan.h.d@swipnet.se>
2685
d0cf45b7
JD
2686 * font.c (font_open_entity): Enable chache and call cached_font_ok
2687 for the driver if defined.
2688 (QCuser_spec): New symbol.
2689 (font_spec_from_name): Save name as user-spec.
2690 (font_load_for_lface): Keep user-spec instead of name.
2691 (font_open_by_name): Save name as user-spec.
2692 (syms_of_font): Initialize QCuser_spec.
b7f8e4f5 2693 (font_clear_prop): Clear name if it exists in font (bug#5157).
d0cf45b7
JD
2694
2695 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
2696 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
2697 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
2698
2699 * font.h (struct font_driver): Add cached_font_ok.
2700
c0e6d47d
JD
2701 * xterm.c (x_clear_frame): Queue draw for scroll bars.
2702
7c583cd8
JD
27032010-01-05 Jan Djärv <jan.h.d@swipnet.se>
2704
2705 * xterm.c (x_new_font): Move code for setting rows/cols before
2706 resizing ...
ac146f82 2707 (x_set_window_size): ... to here. Bug #2568.
7c583cd8
JD
2708
2709 * gtkutil.c (xg_clear_under_internal_border): New function.
0b5397c2
SM
2710 (xg_frame_resized, xg_frame_set_char_size):
2711 Call xg_clear_under_internal_border.
7c583cd8 2712 (xg_update_scrollbar_pos): Clear under old scroll bar position.
69e2f185 2713
03f77f0a
CY
27142010-01-05 Chong Yidong <cyd@stupidchicken.com>
2715
2716 * keyboard.c (read_key_sequence): Catch keyboard switch after
2717 making a new tty frame (Bug#5095).
2718
2a1ef5be
KH
27192010-01-05 Kenichi Handa <handa@m17n.org>
2720
2721 * fontset.c (fontset_find_font): Fix getting the frame pointer.
2722
e3eb1dae
SM
27232010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
2724
2725 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
2726 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
2727 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
2728
777013f2
MA
27292010-01-03 Michael Albinus <michael.albinus@gmx.de>
2730
2731 * dbusbind.c (xd_add_watch): Improve debug message.
2732 (xd_remove_watch): Improve debug message. If DATA is the session
2733 bus, unset D-Bus session environment.
2734 (Fdbus_init_bus): Pass the bus as argument to
2735 dbus_connection_set_watch_functions. (Bug#5283)
7c583cd8 2736
8932b1c2
CY
27372010-01-01 Chong Yidong <cyd@stupidchicken.com>
2738
87231e2c
CY
2739 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
2740
4801c5fa
CY
2741 * lread.c (syms_of_lread): Make it clearer that these are the
2742 names of loaded files (Bug#5068).
2743
8932b1c2
CY
2744 * eval.c (run_hook_with_args): Handle the case where the global
2745 value has the obsolete single-function form (Bug#5026).
2746
11e3c684
CY
27472009-12-27 Chong Yidong <cyd@stupidchicken.com>
2748
2749 * minibuf.c (Fall_completions): Minor optimization.
2750
5b28ce35
EZ
27512009-12-26 Eli Zaretskii <eliz@gnu.org>
2752
5ce6e4f4
JB
2753 * .gdbinit (pgx): Fix display of composite glyphs.
2754 Display cmp.from and cmp.to as well.
2755 (pitx): Fix last change.
5b28ce35 2756
bcffff46
KH
27572009-12-25 Kenichi Handa <handa@m17n.org>
2758
2759 * composite.h (composition_adjust_point): Update prototype.
2760
2761 * composite.c (composition_reseat_it): Don't make a composition
2762 spanning over point.
2763 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
2764 composable characters.
2765 (composition_adjust_point): New arg NEW_PT. Callers changed.
2766
2767 * keyboard.c (command_loop_1): Force redisplay if the last point
2768 was within a composition.
2769 (adjust_point_for_property): Don't adjust point for automatic
2770 composition when called after buffer modification.
2771
3f670e9a
EZ
27722009-12-19 Eli Zaretskii <eliz@gnu.org>
2773
5ce6e4f4
JB
2774 * .gdbinit (pitx): Don't use enum names, use their values.
2775 Remove reference to non-existing value GET_FROM_COMPOSITION.
be996d82
EZ
2776 (pgx): Don't use enum names, use their values.
2777 (pitmethod): New helper command.
2778 (pitx): Use it to display iteration method.
2779 (pgrowit): New command.
2780
ad903955
EZ
2781 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
2782
3f670e9a
EZ
2783 Update dependencies in Makefile.in.
2784
2785 * Makefile.in (alloc.o): Depend on termhooks.h.
2786 (atimer.o): Depend on blockinput.h.
2787 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
2788 and frame.h.
2789 (callint.o): Depend on systime.h, coding.h, and composite.h.
2790 (callproc.o): Depend on buffer.h.
2791 (casefiddle.o): Don't depend on charset.h.
2792 (casetab.o): Depend on character.h.
2793 (ccl.o): Depend on composite.h.
2794 (chartab.o): Depend on ccl.h.
2795 (cm.o): Depend on dispextern.h.
2796 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
2797 (coding.o): Don't depend on $(INTERVALS_H).
2798 (composite.o): Don't depend on dispextern.h explicitly (it's in
2799 $(INTERVALS_H)). Depend on ccl.h.
2800 (data.o): Depend on systime.h, coding.h, composite.h,
2801 dispextern.h, font.h, and ccl.h.
2802 (dired.o): Depend on composite.h.
2803 (dispnew.o): Depend on coding.h. Don't depend explicitly on
2804 composite.h (it's in $(INTERVALS_H)).
2805 (doc.o): Depend on systime.h, coding.h, and composite.h.
2806 (editfns.o): Don't depend explicitly on dispextern.h.
2807 (emacs.o): Depend on frame.h and coding.h.
2808 (eval.o): Depend on coding.h, composite.h, and xterm.h.
2809 (fileio.o): Depend on frame.h and commands.h. Don't depend
2810 explicitly on dispextern.h.
2811 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
2812 composite.h.
2813 (fns.o): Don't depend on termhooks.h.
2814 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
2815 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
2816 coding.h, $(INTERVALS_H), window.h, xterm.h.
2817 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
2818 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
2819 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
2820 fontset.h, ccl.h, and ftfont.h.
2821 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
2822 (gtkutil.o): Depend on dispextern.h and composite.h.
2823 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
2824 termhooks.h, and ccl.h.
2825 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
2826 (intervals.o): Depend on systime.h and coding.h.
2827 (keyboard.o): Depend on composite.h and coding.h.
2828 (keymap.o): Depend on coding.h and frame.h.
2829 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
2830 (macros.o): Depend on systime.h, coding.h, and composite.h.
2831 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
2832 and atimer.h.
2833 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
2834 dispextern.h explicitly.
0b5397c2
SM
2835 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
2836 Don't depend explicitly on dispextern.h and composite.h.
3f670e9a
EZ
2837 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
2838 (regex.o): Don't depend on charset.h.
2839 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
2840 (search.o): Don't depend explicitly on composite.h.
2841 (sound.o): Depend on atimer.h and systime.h.
2842 (syntax.o): Don't depend explicitly on composite.h.
2843 (sysdep.o): Depend on coding.h and composite.h.
2844 (term.o): Depend on xterm.h and buffer.h.
2845 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
2846 (textprop.o): Don't depend on dispextern.h explicitly.
2847 (undo.o): Depend on dispextern.h.
2848 (window.o): Depend on coding.h and termhooks.h. Don't depend on
2849 dispextern.h and composite.h explicitly.
2850 (xdisp.o): Depend on ccl.h.
2851 (xfaces.o): Depend on coding.h and ccl.h.
2852 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
2853 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
2854 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
2855 ftfont.h.
2856 (xgselect.o): New dependency.
2857 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
2858 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
2859 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
2860 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
2861 (xsmfns.o): Depend on frame.h and dispextern.h.
2862 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
2863 sysselect.h.
2864
7a6f7fea
AS
28652009-12-19 Andreas Schwab <schwab@linux-m68k.org>
2866
2867 * font.c (Fclear_font_cache): Pass correct cache argument to
2868 font_clear_cache.
2869
f4c21026
AS
28702009-12-16 Andreas Schwab <schwab@linux-m68k.org>
2871
2872 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
2873 twice.
2874
f7ab0997
CY
28752009-12-15 Chong Yidong <cyd@stupidchicken.com>
2876
2877 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
2878 calling file-remote-p. Reported by Jim Meyering.
2879
fa8e045a
MA
28802009-12-15 Michael Albinus <michael.albinus@gmx.de>
2881
2882 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
777013f2 2883 avoid compiler warnings. (Bug #5217)
fa8e045a 2884
a63dba42
KH
28852009-12-14 Kenichi Handa <handa@m17n.org>
2886
2887 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
2888 in 8-bit encoding.
2889
5ce6e4f4 28902009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
36acb2a7
JD
2891
2892 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
2893 tooltip windows.
2894
223e5fc6
JD
28952009-12-13 Jan Djärv <jan.h.d@swipnet.se>
2896
36acb2a7
JD
2897 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
2898 Xatom_net_window_type.
2899
2900 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
2901 Xatom_net_window_type.
2902
b8f00677
JD
2903 * xterm.c (my_log_handler): New function.
2904 (x_term_init): Set my_log_handler as log handler during gtk_init
5ce6e4f4 2905 so we can filter out buggy messages. (Bug #5120).
b8f00677 2906
e5f0bc9a
JD
2907 * xterm.c (xg_scroll_callback): Parameter list changed,
2908 use parameter GtkScrollType to determine scroll/line/page.
2909 Only allow dragging if a button < 4 is grabbed (bug #5177).
2910 (xg_end_scroll_callback): New function.
2911 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
2912 xg_create_scroll_bar.
2913
2914 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
2915 (scroll_end_callback): Remove.
2916 (xg_create_scroll_bar): Add parameter end_callback, bind it to
2917 button-release-event. Replace value-changed event with change-value,
2918 bug #5177,
2919 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
2920 bug #5177.
2921
2922 * gtkutil.h (XG_LAST_SB_DATA): Remove.
2923 (xg_create_scroll_bar): Add GCallback end_callback.
2924
223e5fc6
JD
2925 * xftfont.c (QClcdfilter): New variable.
2926 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
2927 (syms_of_xftfont): Initialize QClcdfilter.
2928
3c055b77
JD
29292009-12-12 Jan Djärv <jan.h.d@swipnet.se>
2930
2931 * xsettings.c (struct xsettings): Add member seen.
2932 (parse_xft_settings): Update member seen with what we have read.
ba68c0b0 2933 Return non-zero if Xft-settings have been parsed, 0 otherwise.
3c055b77
JD
2934 (apply_xft_settings): Only update Xft settings with what member seen
2935 indicates as new.
2936
05fe33ff
EZ
29372009-12-12 Eli Zaretskii <eliz@gnu.org>
2938
2939 * dispextern.h (struct text_pos): Use EMACS_INT;
2940 (struct glyph): Use EMACS_INT for charpos.
2941 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
2942 region_beg_charpos, region_end_charpos,
2943 redisplay_end_trigger_charpos, and also for
2944 iterator_stack_entry.end_charpos and
2945 iterator_stack_entry.stop_charpos.
2946
e8d7886a
JD
29472009-12-12 Jan Djärv <jan.h.d@swipnet.se>
2948
5ce6e4f4 2949 * gtkutil.c (scroll_end_callback): New function (bug #5177).
e8d7886a
JD
2950 (xg_create_scroll_bar): Call scroll_end_callback on button release
2951 event (bug #5177).
2952 (xg_event_is_for_scrollbar): != replaced with ==.
2953
d0db2ec8
KH
29542009-12-12 Kenichi Handa <handa@m17n.org>
2955
2956 * ftfont.c (struct ftfont_info): New member matrix.
2957 (ftfont_open): Setup xftfont_info->matrix.
2958 (MFLTFontFT): New member matrix.
2959 (FLOOR, CEIL, ROUND): New macros.
2960 (ftfont_get_metrics): Handle matrix transformation.
2961 (ftfont_shape_by_flt): New arg matrix. Callers changed.
2962
2963 * xftfont.c (struct xftfont_info): New member matrix.
2964 (xftfont_open): Setup xftfont_info->matrix.
2965
29662009-12-10 Kenichi Handa <handa@m17n.org>
2967
2968 * xdisp.c (append_space_for_newline): Consider face-remapping.
2969
2cc7b62f
AS
29702009-12-09 Andreas Schwab <schwab@linux-m68k.org>
2971
b87dd913
AS
2972 * xsettings.c: Include "keyboard.h".
2973
eba5eb94
AS
2974 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
2975
2cc7b62f
AS
2976 Fix implicit function declarations.
2977 * cmds.c: Include "frame.h".
2978 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
2979 * frame.h: Move declaration of delete_frame outside of
2980 HAVE_WINDOW_SYSTEM.
2981
a4ef73c8
CY
29822009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
2983
2984 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
2985
2986 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
2987 GTK builds.
2988
944a300c
AS
29892009-12-07 Andreas Schwab <schwab@linux-m68k.org>
2990
2991 * unexelf.c (unexec): Don't search for .data twice.
2992
022eef62
CY
29932009-12-05 Chong Yidong <cyd@stupidchicken.com>
2994
426ac949
CY
2995 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
2996 if push failed.
2997 (handle_line_prefix): Set avoid_cursor_p here. Check return value
2998 of push_display_prop (Bug#5000).
2999
022eef62
CY
3000 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
3001 value of font_list_entities (Bug#5085).
3002
be95bee9
JB
30032009-12-04 Juanma Barranquero <lekktu@gmail.com>
3004
3005 Fix `string-to-number' to deal consistently with integers and floats.
3006 * lread.c (isfloat_string): New argument ignore_trailing to accept all
3007 trailing characters, not just whitespace.
3008 (read1): Pass new arg 0 to keep old behavior.
3009 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
3010 trailing chars, as it is already done for integers. Doc fixes.
3011 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
3012
24c2d7ce
EZ
30132009-12-04 Eli Zaretskii <eliz@gnu.org>
3014
0b5397c2
SM
3015 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
3016 Delete unused enumeration value.
24c2d7ce 3017
7e694795
EZ
30182009-12-03 Eli Zaretskii <eliz@gnu.org>
3019
3020 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
3021
84b31826
SM
30222009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
3023
3024 * process.c (Fmake_network_process): Fix up the tests for
3025 "connectionless socket", so they DTRT for seqpacket sockets as well.
3026
f00c449b
SM
30272009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
3028
3029 * process.c (Qseqpacket): New symbol.
3030 (HAVE_SEQPACKET): New macro.
3031 (Fmake_network_process): Accept new :type `seqpacket'.
3032 (init_process): Add `seqpacket' feature when applicable.
3033 (syms_of_process): Initialize Qseqpacket.
3034
8096a0ff
YM
30352009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3036
3037 * font.c (font_load_for_lface, font_open_by_name): Don't store name
3038 if entity is Qnil.
3039
3e0de07f
SM
30402009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
3041
3042 * print.c (print_preprocess): Preprocess the key_and_value table of
3043 hashtables, even tho they're "hidden" (bug#5082).
3044
abeafb2a
JD
30452009-11-29 Jan Djärv <jan.h.d@swipnet.se>
3046
3047 * frame.c (frame_make_pointer_invisible)
3048 (frame_make_pointer_visible): Declare f before statements.
3049
4bf47195
EZ
30502009-11-28 Eli Zaretskii <eliz@gnu.org>
3051
3052 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
3053 omitted dependencies on lisp.h.
3054
c525b3f2
JD
30552009-11-27 Jan Djärv <jan.h.d@swipnet.se>
3056
ece2d4ed
JD
3057 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
3058 is NULL.
3059
3060 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
3061
3062 * frame.c (frame_make_pointer_invisible)
3e0de07f 3063 (frame_make_pointer_visible): Just return if there isn't any selected
ece2d4ed
JD
3064 frame.
3065
c525b3f2
JD
3066 * search.c (simple_search): Remove warning by making *p const.
3067
2f00e299
DN
30682009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
3069
3070 * xdisp.c (power_letter): Remove duplicate const.
3071
084b049b
JD
30722009-11-25 Jan Djärv <jan.h.d@swipnet.se>
3073
a1fadc6f
JD
3074 * term.c (delete_tty): Remove check for last terminal (bug#4970).
3075
5ce6e4f4 3076 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
084b049b
JD
3077 defaults (bug #5025).
3078
28259cac
SM
30792009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
3080
3081 * insdel.c (adjust_markers_for_delete): Move it in the
3082 right direction! (bug#4803)
3083
e8e14166
YM
30842009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3085
3086 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
3087
3088 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
3089
86677b58
GM
30902009-11-24 Glenn Morris <rgm@gnu.org>
3091
3092 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
3093
581e51e8
JD
30942009-11-23 Jan Djärv <jan.h.d@swipnet.se>
3095
cfc86c7a
JD
3096 * Makefile.in: Must create deps for ecrt0.o in its rule.
3097
581e51e8
JD
3098 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
3099 because that is what Gtk+ font dialog understands.
3100
3101 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
3102 of Fcopy_sequence.
3103 (font_open_by_name): Put name given into QCname for font-object returned.
3104
3105 * frame.c (x_set_font): Save original font name as frame parameter
3106 font-parameter.
3107
3108 * xsettings.c (set_default_xft_settings): New function.
3109 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
3110 is found.
3111
8b264ecb
AS
31122009-11-22 Andreas Schwab <schwab@linux-m68k.org>
3113
3114 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
3115 searching backwards through multibyte buffer.
3116
872870b2
JD
31172009-11-21 Jan Djärv <jan.h.d@swipnet.se>
3118
3119 * xterm.c: #include xgselect.h.
3120 (x_initialize): Call xgselect_initialize.
3121
3122 * xsettings.c (something_changedCB): C++ comments => C comments.
3123 (init_gconf): Do not deal with any GLib file descriptors, xg_select
3124 does that now.
3125
3126 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
3127 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
3128 (scroll_bar_button_cb): Remove.
5ce6e4f4 3129 (create_menus): C++ comments => C comments. Don't bind grab-notify
872870b2
JD
3130 event.
3131 (xg_create_scroll_bar): Don't bind button-press-event and
3132 button-release-event.
3133
3134 * process.c: Include xgselect.h if defined (USE_GTK) ||
3135 defined (HAVE_GCONF).
3136 (wait_reading_process_output): Call xg_select for the same condition.
3137
3138 * xgselect.c (xg_select): New function to better integrate with
3139 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
3140
3141 * xgselect.h: New file, declare xg_select, xgselect_initialize.
3142
3143 * Makefile.in (XOBJ): Add xgselect.o.
3144
62a6e103
AS
31452009-11-21 Andreas Schwab <schwab@linux-m68k.org>
3146
0b5397c2
SM
3147 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
3148 Remove ignored second argument. All callers changed.
62a6e103
AS
3149 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
3150 (RE_STRING_CHAR_AND_LENGTH): Likewise.
3151 * xdisp.c (string_char_and_length): Likewise.
3152
b0ca0f33
DN
31532009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
3154
3155 * xterm.c (x_new_font):
3156 * print.c (print_object):
3157 * cmds.c (Fself_insert_command): Move declarations before statements.
3158
dd5a6279
CY
31592009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
3160
3161 * s/cygwin.h: Remove unneeded linker flags.
3162
4a8e097d
JD
31632009-11-20 Jan Djärv <jan.h.d@swipnet.se>
3164
0d1d0d26
JD
3165 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
3166
3167 * xsettings.h: Declare xsettings_get_system_font.
3168
3169 * xsettings.c (xsettings_get_system_font): New function.
3170 (init_gconf): No use initiating gconf unless we have Xft also.
3171 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
3172 HAVE_GCONF.
3173
4a8e097d
JD
3174 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
3175 add a blank entry so it doesn't collapse into nothing.
3176
8ab1650e
SM
31772009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
3178
3179 * lread.c (Funintern): Comment out last change.
3180
82c602f0
RS
31812009-11-19 Richard Stallman <rms@gnu.org>
3182
3183 * lread.c (Funintern): Error if symbol is t or nil.
3184
87e32266
SM
31852009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
3186
3187 * insdel.c (make_gap_larger): Don't make as many assumptions about the
3188 representation of Lisp integers.
3189 Reported by MJ Chan <mjchan.inbox@gmail.com>.
3190
1b9ac145
AS
31912009-11-17 Andreas Schwab <schwab@linux-m68k.org>
3192
3193 * lisp.h: Remove declaration of Ffont_get_system_font.
3194 * xfns.c: Move include of "xsettings.h".
3195 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
3196
dfb3c4c6
JD
31972009-11-17 Jan Djärv <jan.h.d@swipnet.se>
3198
87e32266
SM
3199 * xsettings.c (something_changedCB, Ffont_get_system_font):
3200 Check use_system_font.
dfb3c4c6
JD
3201 (syms_of_xsettings): DEFVAR font-use-system-font.
3202
9370c1d8
AS
32032009-11-17 Andreas Schwab <schwab@linux-m68k.org>
3204
25fe851a
AS
3205 * xfns.c (x_default_font_parameter): Remove dead assignment.
3206
9370c1d8
AS
3207 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
3208
637fa988
JD
32092009-11-17 Jan Djärv <jan.h.d@swipnet.se>
3210
87e32266 3211 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
21050de1 3212 not have FC_LCD_*. #define them if not there.
a6eb20d8 3213
87e32266 3214 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
a6eb20d8 3215
637fa988
JD
3216 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
3217
3218 * xterm.c (handle_one_xevent): Call xft_settings_event for
3219 ClientMessage, PropertyNotify and DestroyNotify.
3220 (x_term_init): If we have XFT, get DPI from Xft.dpi.
3221 Call xsettings_initialize.
3222
3223 * xftfont.c (xftfont_fix_match): New function.
3224 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
3225 Call xftfont_fix_match after XftFontMatch.
3226
3227 * xfont.c (xfont_driver): Initialize all members.
3228
87e32266
SM
3229 * xfns.c (x_default_font_parameter):
3230 Try font from Ffont_get_system_font.
637fa988
JD
3231 Do not get font from x_default_parameter if we got one from
3232 Ffont_get_system_font.
87e32266 3233 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
637fa988
JD
3234
3235 * w32font.c (w32font_driver): Initialize all members.
3236
3237 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
3238
3239 * lisp.h: Declare syms_of_xsettings.
3240
87e32266
SM
3241 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
3242 Handle CONFIG_CHANGED_EVENT.
637fa988
JD
3243
3244 * ftfont.c (ftfont_filter_properties): New function.
3245
3246 * frame.c (x_set_font): Remove unused variable lval.
3247
87e32266 3248 * font.h (struct font_driver): Add filter_properties.
637fa988
JD
3249
3250 * font.c (font_put_extra): Don't return if val is nil, it means
3251 boolean option is off.
3252 (font_parse_fcname): Collect all extra properties in extra_props
3253 and call filter_properties for all drivers with extra_props and
3254 font as parameter.
87e32266
SM
3255 (font_open_entity): Do not use cache, it does not pick up new
3256 fontconfig settings like hinting.
637fa988
JD
3257 (font_load_for_lface): If spec had a name in it, store it in entity.
3258
a73f9c9d 3259 * emacs.c (main): Call syms_of_xsettings.
637fa988
JD
3260
3261 * config.in: HAVE_GCONF is new.
3262
3263 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
3264 xsettings.o is new.
3265
5a942932
KH
32662009-11-17 Kenichi Handa <handa@m17n.org>
3267
3268 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
3269 back to the default font in case that no suitable font is found.
3270
b7c7a4d1
SM
32712009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
3272
3273 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
3274 Suggested by Chad Brown <yandros@mit.edu>.
3275 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
3276
072f1e39
JD
32772009-11-16 Jan Djärv <jan.h.d@swipnet.se>
3278
3279 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
3280
5d1e70a2
AS
32812009-11-14 Andreas Schwab <schwab@linux-m68k.org>
3282
87e32266 3283 * Makefile.in: Ignore errors from mkdir when creating deps directory.
5d1e70a2 3284
a53cfbe5
JD
32852009-11-14 Jan Djärv <jan.h.d@swipnet.se>
3286
473a99b7
JD
3287 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
3288 has a parent.
3289
a53cfbe5 3290 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
5ce6e4f4 3291 dependency files in deps/. Include those files into Makefile.
a53cfbe5
JD
3292
3293 * config.in: Generated (AUTO_DEPEND).
3294
f04bb9b2
MA
32952009-11-13 Michael Albinus <michael.albinus@gmx.de>
3296
b7c7a4d1 3297 * dbusbind.c (Vdbus_registered_objects_table): Rename from
f04bb9b2
MA
3298 Vdbus_registered_functions_table, because it contains also
3299 properties. Fix docstring.
b7c7a4d1 3300 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
f04bb9b2 3301
8f11f7ec
SM
33022009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
3303
3304 * alloc.c (mark_object): Don't reprocess marked strings.
3305 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
3306 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
3307
8a605fe8
KH
33082009-11-13 Kenichi Handa <handa@m17n.org>
3309
8f11f7ec 3310 * category.c (word_boundary_p): Adjust for the change of the
8a605fe8
KH
3311 semantics of Vword_combining_categories.
3312 (Vword_combining_categories): Describe the slight change of the
3313 semantics.
3314
241c4680
EZ
33152009-11-13 Eli Zaretskii <eliz@gnu.org>
3316
3317 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
3318
3319 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
3320
5d58e44c
SM
33212009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
3322
3323 * xdisp.c (syms_of_xdisp): Fix typo in last change.
3324
5e13f9d3
JB
33252009-11-12 Juanma Barranquero <lekktu@gmail.com>
3326
3327 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
3328
cf54c754
DR
33292009-11-11 David Reitter <david.reitter@gmail.com>
3330
3331 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
3332 variables to fix 2009-11-09 change.
3333
a4ada374
DN
33342009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
3335
91433552
DN
3336 * process.c (ifflag_def): Make flag_sym constant.
3337 (Fnetwork_interface_info): Use a constant pointer.
3338 (ifflag_table):
3339 * xfns.c (cursor_bits):
3340 * xdisp.c (power_letter):
3341 * termcap.c (speeds, esctab):
3342 * sysdep.c (baud_convert):
3343 * keyboard.c (lispy_accent_codes, modifier_names):
3344 * image.c (xbm_format, xpm_format, pbm_format, png_format)
3345 (jpeg_format, tiff_format, gif_format, svg_format)
3346 (interlace_start, interlace_increment, gs_format):
3347 * gtkutil.c (separator_names):
3348 * fringe.c (swap_nibble):
3349 * fns.c (base64_value_to_char, base64_char_to_value):
3350 * fileio.c (make_temp_name_tbl):
3351 * coding.c (suffixes): Make constant.
3352
f4265f6c
DN
3353 * frame.c (make_initial_frame):
3354 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
3355 build_string.
3356 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
3357
04420943
DN
3358 * s/freebsd.h:
3359 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
3360
0a5d24ae
DN
3361 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
3362 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
3363
a4ada374
DN
3364 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
3365 * xterm.c (syms_of_xterm):
3366 * xfaces.c (syms_of_xfaces):
3367 * xdisp.c (syms_of_xdisp):
3368 * lread.c (syms_of_lread):
3369 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
3370 build_string.
91433552 3371
a4ada374
DN
3372 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
3373
af98fc7f
SM
33742009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
3375
8ab1650e 3376 * fns.c (Fplist_get): Merge the active and the commented out code.
af98fc7f 3377
e90292a9
JD
33782009-11-10 Jan Djärv <jan.h.d@swipnet.se>
3379
3380 * keyboard.h: Declare timer_check.
3381
3382 * keyboard.c (timer_check_2): New function that does what the old
3383 timer_check did.
3384 (timer_check): Call timer_check_2 until -1 or a non-zero time is
3385 returned, i.e. don't return -1 with timers pending.
3386
3387 * process.c: Remove extern declaration of timer_check.
3388
3389 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
3390 even if timer_check returned -1.
3391
af98fc7f
SM
3392 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
3393 xg_dialog_data.
e90292a9
JD
3394 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
3395 the event loop.
3396 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
3397 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
3398 Destroy the dialog after xg_dialog_run.
3399
045b83c0
SM
34002009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
3401
3402 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
3403
1fb99a3a
JD
34042009-11-10 Jan Djärv <jan.h.d@swipnet.se>
3405
3406 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
3407
04e452cb
JB
34082009-11-09 Juanma Barranquero <lekktu@gmail.com>
3409
3410 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
3411
ef7417fd
SM
34122009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
3413
3414 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
3415 w32menu.c, and nsmenu.m.
3416 Simplify the obsolete case where position is nil.
3417 (cleanup_popup_menu): New function, moved from nsmenu.m.
3418 (struct skp): Remove slot `notreal'.
3419 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
3420 adjust callers.
3421 (single_menu_item): Adjust call to parse_menu_item.
3422 (syms_of_menu): Defsubr x-popup-menu.
3423 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
3424 (keymap_panes): Don't export any more.
3425 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
3426 (xmenu_show): Declare.
3427 * keyboard.c (parse_menu_item): Remove arg `notreal'.
3428 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
3429 * keyboard.h (parse_menu_item): Update declaration.
3430 * xmenu.c (Fx_popup_menu): Remove.
3431 (syms_of_xmenu): Don't defsubr x-popup-menu.
3432 * w32menu.c (Fx_popup_menu): Remove.
3433 (syms_of_w32menu): Don't defsubr x-popup-menu.
3434 * nsmenu.m (cleanup_popup_menu): Remove.
3435 (ns_menu_show): Rename from ns_popup_menu and remove all the code
3436 moved to menu.c's Fx_popup_menu.
3437 (Fx_popup_menu): Remove.
3438 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
3439 menu_items (it's done in menu.c already).
3440
424d6179
SM
34412009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
3442
3443 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
3444 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
3445
c0df13a6 34462009-11-08 Chong Yidong <cyd@stupidchicken.com>
a20903d0
CY
3447
3448 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
c0df13a6 3449 xmenu_show. Hide any tooltip before opening a menu.
a20903d0
CY
3450 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
3451 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
3452
2de9f71c
SM
34532009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
3454
3455 Let integers use up 2 tags to give them one extra bit and thus double
3456 their range.
3457 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
3458 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
3459 New macros.
3460 (enum Lisp_Type): Use them. Give explicit values.
3461 (Lisp_Type_Limit): Remove.
3462 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
3463 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
3464 Pay attention to USE_2_TAGS_FOR_INTS.
3465 (INTEGERP): Use LISP_INT_TAG_P.
3466 * fns.c (internal_equal): Simplify the default case.
3467 (sxhash): Use case_Lisp_Int.
3468 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
3469 any more.
3470 (Ftype_of): Use case_Lisp_Int.
3471 (store_symval_forwarding): Take into account the fact that Ints can
3472 now have more than one tag.
3473 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
3474 buffer_slot_type_mismatch):
3475 * xfaces.c (face_attr_equal_p):
3476 * print.c (print_object):
3477 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
3478 Use case_Lisp_Int.
3479
323637a2
EZ
34802009-11-06 Eli Zaretskii <eliz@gnu.org>
3481
7ac65b38
EZ
3482 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
3483
323637a2
EZ
3484 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
3485 warning.
3486
e511451f
JD
34872009-11-06 Jan Djärv <jan.h.d@swipnet.se>
3488
3489 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
3490
3491 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
3492
3493 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
3494 ButtonPressRelease and MotionNotify (bug#4870).
3495
5e2327cf
DN
34962009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
3497
5adc433e
DN
3498 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
3499
d67b4f80
DN
3500 * xterm.c (syms_of_xterm):
3501 * xselect.c (syms_of_xselect):
3502 * xmenu.c (syms_of_xmenu):
3503 * xfns.c (syms_of_xfns):
3504 * xfaces.c (syms_of_xfaces):
3505 * xdisp.c (syms_of_xdisp):
3506 * window.c (syms_of_window):
3507 * w32fns.c (syms_of_w32fns):
3508 * undo.c (syms_of_undo):
3509 * textprop.c (syms_of_textprop):
3510 * terminal.c (syms_of_terminal):
3511 * syntax.c (syms_of_syntax):
3512 * sound.c (syms_of_sound):
3513 * search.c (syms_of_search):
3514 * print.c (syms_of_print):
3515 * minibuf.c (syms_of_minibuf):
3516 * macros.c (syms_of_macros):
3517 * keymap.c (syms_of_keymap, initial_define_key)
3518 (initial_define_lispy_key):
3519 * keyboard.c (syms_of_keyboard):
3520 * insdel.c (syms_of_insdel):
3521 * image.c (syms_of_image):
3522 * fringe.c (syms_of_fringe):
3523 * frame.c (syms_of_frame):
3524 * fontset.c (syms_of_fontset):
3525 * fns.c (syms_of_fns):
3526 * fns.c (syms_of_fns):
3527 * fileio.c (syms_of_fileio):
3528 * fileio.c (syms_of_fileio):
3529 * eval.c (syms_of_eval):
3530 * doc.c (syms_of_doc):
3531 * dispnew.c (syms_of_display):
3532 * dired.c (syms_of_dired):
3533 * dbusbind.c (syms_of_dbusbind):
3534 * data.c (syms_of_data):
3535 * composite.c (syms_of_composite):
3536 * coding.c (syms_of_coding):
3537 * cmds.c (syms_of_cmds):
3538 * charset.c (define_charset_internal, syms_of_character):
3539 * ccl.c (syms_of_ccl):
3540 * category.c (syms_of_category, init_category_once):
3541 * casetab.c (syms_of_casetab):
3542 * casefiddle.c (syms_of_casefiddle):
3543 * callint.c (syms_of_callint):
3544 * bytecode.c (syms_of_bytecode):
3545 * buffer.c (keys_of_buffer, syms_of_buffer):
3546 * alloc.c (syms_of_alloc):
3547 * process.c (syms_of_process, init_process):
3548 * lread.c (syms_of_lread, init_obarray):
3549 * font.c (build_style_table):
3550 * emacs.c (syms_of_emacs, main): Replace calls to intern with
3551 intern_c_string, calls to make_pure_string with
3552 make_pure_c_string. Use pure_cons instead of Fcons.
3553
5e2327cf
DN
3554 * process.c (socket_options): Make it const.
3555 (set_socket_option, init_process): Use a const pointer.
3556
3557 * lread.c (intern_c_string): New function.
3558 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
3559 (defvar_int): Uset it. Make the name const char*.
3560
3561 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
3562 (defvar_int): Update prototypes.
3563 (DEFUN, EXFUN): Support for prototypes is now required.
3564 (intern_c_string): New prototype.
3565 (struct Lisp_Subr): Make symbol_name constant.
3566
3567 * font.c (struct table_entry): Remove unused member. Make NAMES
3568 constant.
3569 (weight_table, slant_table, width_table): Make constant.
3570
3571 * emacs.c (struct standard_args): Make name and longname constant.
3572
3573 * character.h (DEFSYM): Use intern_c_string.
3574
a56eaaef
DN
35752009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
3576
3577 * alloc.c (make_pure_c_string): New function.
3578
3579 * eval.c (Fautoload): Purecopy all arguments.
3580
f6a07420
KH
35812009-11-05 Kenichi Handa <handa@m17n.org>
3582
3583 * fileio.c (Finsert_file_contents): Be sure set coding-system of
3584 the buffer in case of replace.
3585
5d28d4b1
DN
35862009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
3587
3588 * puresize.h (BASE_PURESIZE): Increase to 1620000.
3589
b349d111
SM
35902009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
3591
d528b1ce
SM
3592 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
3593 when applicable (bug#4851).
3594
b349d111
SM
3595 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
3596 (P_): Support for prototypes is now required.
3597
c38eb027
CY
35982009-10-31 Chong Yidong <cyd@stupidchicken.com>
3599
3600 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
3601 (Bug#4827).
3602
0405f8d9
EZ
36032009-10-30 Eli Zaretskii <eliz@gnu.org>
3604
d528b1ce 3605 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
0405f8d9 3606
ca0a881a
DN
36072009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
3608
3609 * puresize.h (BASE_PURESIZE): Increase to 1470000.
3610
d528b1ce
SM
3611 * lread.c (Fload): Purecopy the file name when building
3612 Vpreloaded_file_list.
ca0a881a 3613
47e0e0e4
JR
36142009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
3615
3616 * w32fns.c (syms_of_w32fns): Change default value of
3617 w32-scroll-lock-modifier to nil. (Bug#2827)
3618
057bce6f
JB
36192009-10-26 Juanma Barranquero <lekktu@gmail.com>
3620
782a943e 3621 * minibuf.c (Fall_completions): Fix typos in docstring.
057bce6f 3622
242bc74c
AS
36232009-10-26 Andreas Schwab <schwab@redhat.com>
3624
3625 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
3626
522d013a
JB
36272009-10-26 Juanma Barranquero <lekktu@gmail.com>
3628
3629 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
3630 For delta < 0, skip check that only makes sense when the mini-window
3631 is going to be enlarged. (Bug#4534)
3632
18060980
CY
36332009-10-25 Chong Yidong <cyd@stupidchicken.com>
3634
3635 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
3636 string in menu maps (Bug#4471).
3637
fec8f0fe
CY
36382009-10-24 Chong Yidong <cyd@stupidchicken.com>
3639
3640 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
3641 FRAME_NS_VIEW on terminal frames (Bug#4765).
3642
10d66ec0
AS
36432009-10-24 Andreas Schwab <schwab@linux-m68k.org>
3644
1cae01f7
AS
3645 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
3646 DBUS_TYPE_UINTnn separately to get proper sign extension.
3647
58a12889
AS
3648 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
3649 can properly handle unsigned types.
d528b1ce 3650 (make_uid, make_gid): Remove.
58a12889 3651
987c9327
AS
3652 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
3653 types again.
3654
522d013a 3655 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10d66ec0
AS
3656 (system_process_attributes): Likewise.
3657
905a9ed3
DN
36582009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
3659
3660 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
3661
3662 * eval.c (Fautoload): Purecopy the filename. Simplify.
3663
3664 * category.c (Fdefine_category): Purecopy docstring.
3665
a599b3e8
AS
36662009-10-23 Andreas Schwab <schwab@linux-m68k.org>
3667
7b792fc9
AS
3668 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
3669
a599b3e8
AS
3670 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
3671
b35ac83e
CY
36722009-10-23 Chong Yidong <cyd@stupidchicken.com>
3673
3674 * window.c (Fwindow_edges, Fwindow_pixel_edges)
3675 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
3676 (Bug#4775).
3677
e8903e00
SM
36782009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
3679
3680 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
3681 (init_fileio_once):
3682 * lisp.h (init_fileio_once): Remove.
3683 * emacs.c (main): Don't call init_fileio_once.
3684
8f43cbf3
DN
36852009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
3686
3687 * puresize.h (BASE_PURESIZE): Increase to 1430000.
3688
26898943
AS
36892009-10-21 Andreas Schwab <schwab@linux-m68k.org>
3690
3691 * doprnt.c (doprnt): Fix overflow check.
3692
5c646d5a
JD
36932009-10-21 Jan Djärv <jan.h.d@swipnet.se>
3694
3132a7ea
JD
3695 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
3696
5c646d5a
JD
3697 * xterm.h (x_wait_for_event): Declare it.
3698
3699 * xterm.c (pending_event_wait): New variable.
3700 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
3701 see pending_event_wait.eventtype.
3702 (handle_one_xevent): Don't change gravity when parent changes.
d528b1ce
SM
3703 (x_new_font): Call change_frame_size with new rows/columns before we
3704 try to resize the frame.
5c646d5a 3705 (x_wait_for_event): New function.
d528b1ce
SM
3706 (x_set_window_size_1): Don't change gravity unless change_gravity
3707 is set.
5c646d5a
JD
3708 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
3709 don't change frame size, instead wait for the ConfigureNotify.
3710 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
3711 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
3712 (x_initialize): Initialize pending_event_wait.
3713
3714 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
3715 size.
3716
3717 * widget.c (EmacsFrameSetValues): Add comment.
3718 (EmacsFrameSetCharSize): Just call x_set_window_size.
3719
3720 * gtkutil.c (xg_frame_set_char_size): Flush events and call
3721 x_wait_for_event.
d528b1ce 3722 (flush_and_sync): Remove again.
5c646d5a
JD
3723 (xg_get_font_name): Suggest monospace if no previous font is known.
3724
e9c1637d
SM
37252009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
3726
3727 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
46be764e 3728 8th bit, since that only made sense in the ASCII world (bug#4751).
e9c1637d 3729
5a72cccb
YM
37302009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3731
3732 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
3733 processing pending events when event is filtered for input method.
ab04798f 3734 (Bug#3681)
5a72cccb 3735
2629aa37
JB
37362009-10-20 Juanma Barranquero <lekktu@gmail.com>
3737
3738 * fns.c: Add #endif accidentally removed in previous change.
3739
c3417a74
DN
37402009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
3741
3742 * fns.c: Remove code for unsupported system: MAC_OS.
3743 * image.c: Likewise. Include setjmp.h.
3744
9685cef2
JD
37452009-10-19 Jan Djärv <jan.h.d@swipnet.se>
3746
3747 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
3748 pixel -1 (bug #4742).
3749
d7306fe6
DN
37502009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
3751
019d2c4c
DN
3752 * process.c (create_pty): Remove conditionals for no longer
3753 supported systems: UNIPLUS and RTU.
3754
ee6bacd4
DN
3755 * xterm.c:
3756 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
3757
d7306fe6
DN
3758 * alloc.c: Do not define struct catchtag.
3759 * eval.c: Move struct catchtag definition ...
3760 * lisp.h: ... here.
3761
3762 * image.c: Move png.h #include earlier to avoid warnings.
3763
3764 * xterm.c:
3765 * xsmfns.c:
3766 * xselect.c:
3767 * xrdb.c:
3768 * xmenu.c:
3769 * xftfont.c:
3770 * xfont.c:
3771 * xfns.c:
3772 * xfaces.c:
3773 * xdisp.c:
3774 * window.c:
3775 * widget.c:
3776 * w32xfns.c:
3777 * w32uniscribe.c:
3778 * w32term.c:
3779 * w32select.c:
3780 * w32reg.c:
3781 * w32proc.c:
3782 * w32menu.c:
3783 * w32inevt.c:
3784 * w32heap.c:
3785 * w32font.c:
3786 * w32fns.c:
3787 * w32console.c:
3788 * w32.c:
3789 * w16select.c:
3790 * vm-limit.c:
3791 * unexsol.c:
3792 * unexec.c:
3793 * unexcw.c:
3794 * unexaix.c:
3795 * undo.c:
3796 * tparam.c:
3797 * textprop.c:
3798 * terminfo.c:
3799 * terminal.c:
3800 * termcap.c:
3801 * term.c:
3802 * syntax.c:
3803 * sound.c:
3804 * sheap.c:
3805 * search.c:
3806 * scroll.c:
3807 * region-cache.c:
3808 * regex.c:
3809 * ralloc.c:
3810 * process.c:
3811 * print.c:
b024548b
DN
3812 * nsterm.m:
3813 * nsselect.m:
3814 * nsmenu.m:
3815 * nsimage.m:
3816 * nsfont.m:
3817 * nsfns.m:
d7306fe6
DN
3818 * msdos.c:
3819 * minibuf.c:
3820 * menu.c:
3821 * marker.c:
3822 * macros.c:
3823 * keymap.c:
3824 * keyboard.c:
3825 * intervals.c:
3826 * insdel.c:
3827 * indent.c:
3828 * gtkutil.c:
3829 * ftxfont.c:
3830 * ftfont.c:
3831 * fringe.c:
3832 * frame.c:
3833 * fontset.c:
3834 * font.c:
3835 * fns.c:
3836 * floatfns.c:
3837 * filelock.c:
3838 * fileio.c:
3839 * emacs.c:
3840 * editfns.c:
3841 * dosfns.c:
3842 * doprnt.c:
3843 * doc.c:
3844 * dispnew.c:
3845 * dired.c:
3846 * dbusbind.c:
3847 * data.c:
3848 * composite.c:
3849 * coding.c:
3850 * cmds.c:
3851 * cm.c:
3852 * chartab.c:
3853 * charset.c:
3854 * character.c:
3855 * ccl.c:
3856 * category.c:
3857 * casetab.c:
3858 * casefiddle.c:
3859 * callproc.c:
3860 * callint.c:
3861 * bytecode.c:
3862 * buffer.c:
3863 * atimer.c: Include setjmp.h. (Bug#4643)
3864
fd5f21e6
SM
38652009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
3866
4c0354d7
SM
3867 Remove leftover table unibyte_to_multibyte_table.
3868 * character.c (unibyte_to_multibyte_table): Remove.
3869 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
3870 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
3871 * character.h (UNIBYTE_TO_CHAR): New macro.
3872 (MAKE_CHAR_MULTIBYTE): Use it.
3873 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
3874 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
3875 (message_dolog, set_message_1):
3876 * search.c (Freplace_match):
3877 * editfns.c (Fcompare_buffer_substrings):
3878 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
3879 (concat):
3880 * insdel.c (copy_text, count_size_as_multibyte):
3881 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
3882 * term.c (produce_glyphs):
3883 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
3884 * regex.c (RE_CHAR_TO_MULTIBYTE):
3885 * cmds.c (internal_self_insert):
3886 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
3887
fd5f21e6
SM
3888 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
3889
4418646e
DN
38902009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
3891
3892 * puresize.h (BASE_PURESIZE): Increase to 1310000.
3893
35f5c1d2
JB
38942009-10-16 Juanma Barranquero <lekktu@gmail.com>
3895
3896 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
3897
a0cd8f6b
AR
38982009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
3899
3900 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
3901 still needed under Tiger.
3902
3903 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
3904
3905 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
3906 __Apple__.
3907
3908 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
3909
01a8d3fa
KH
39102009-10-15 Kenichi Handa <handa@m17n.org>
3911
3912 * print.c (print_object): Escape a symbol like "2E10" too.
3913
bf6c75c9 39142009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6e4780c5
JB
3915
3916 Cleanups and changes for 64-bit compile under Snow Leopard.
3917 Based on suggestions by Erik Charlebois.
bf6c75c9
AR
3918
3919 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
3920
c5959062 3921 * nsfont.m (ns_char_width): Replace deprecated call.
bf6c75c9
AR
3922 (ns_findfonts, nsfont_list_family): Use long format in printf, and
3923 cast argument.
3924 (nsfont_open): Use ns_char_width() everywhere.
d528b1ce 3925 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
bf6c75c9
AR
3926
3927 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
3928
3929 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
3930 where appropriate.
3931
3932 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
3933 where appropriate.
6e4780c5
JB
3934 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
3935 Use stringWithUTF8String.
bf6c75c9
AR
3936 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
3937
6e4780c5
JB
3938 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
3939 Add formal protocol mention to inheritance.
bf6c75c9
AR
3940 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
3941
6e4780c5
JB
3942 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
3943 Fix printf format.
bf6c75c9
AR
3944 (ns_query_color): Use CGFloat where appropriate.
3945 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
ac146f82 3946 (EmacsScroller-mouseDown:): Use long format in printf, and cast
bf6c75c9
AR
3947 argument.
3948
3d87f118
AR
3949 * config.in (NS_HAVE_NSINTEGER): Drop.
3950
a95c8102
AR
3951 * dbusbind.c (dbus-method-return-internal)
3952 (dbus-method-error-internal): Use long format in printf, and cast
3953 argument.
3954
3955 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
3956 in printf, and cast argument.
3957
6873acca 3958 * process.c (list_processes_1): Use long format in printf, and
a95c8102
AR
3959 cast argument.
3960
9ec6f100
GM
39612009-10-11 Glenn Morris <rgm@gnu.org>
3962
3963 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
3964
5be883cd
JD
39652009-10-08 Jan Djärv <jan.h.d@swipnet.se>
3966
3967 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
3968 menu bar with a small width so it doesn't enlarge the frame.
3969
d7a39b51
JB
39702009-10-08 Juanma Barranquero <lekktu@gmail.com>
3971
3972 * fontset.c (Fset_fontset_font): Fix typos in error messages.
3973
0c2b6f8e
GM
39742009-10-06 Glenn Morris <rgm@gnu.org>
3975
3976 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
3977 SOME_MACHINE_LISP (this enters indirectly via DOC).
3978
e02131a2
EZ
39792009-10-05 Eli Zaretskii <eliz@gnu.org>
3980
3981 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
3982
b4744254
EZ
39832009-10-04 Eli Zaretskii <eliz@gnu.org>
3984
3985 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
3986 Doc fix.
3987
dbf64827
JB
39882009-10-03 Martin Rudalics <rudalics@gmx.at>
3989
3990 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
3991
e9a0aef8
MA
39922009-10-02 Michael Albinus <michael.albinus@gmx.de>
3993
d528b1ce 3994 * lisp.h (Qdelete_directory_internal): Remove, because it is not
e9a0aef8
MA
3995 used anymore outside fileio.c.
3996
3997 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
3998
64eb2b56
JB
39992009-10-01 Juanma Barranquero <lekktu@gmail.com>
4000
4001 * lisp.h (Qdelete_directory_internal):
4002 Declare, instead of Qdelete_directory.
4003
4004 * w32fns.c (Fsystem_move_file_to_trash): Use it.
4005
9d28c33e
SM
40062009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
4007
4008 * eval.c (Fcalled_interactively_p): Add `kind' argument.
4009
9d8f3bd9
MA
40102009-10-01 Michael Albinus <michael.albinus@gmx.de>
4011
9d28c33e 4012 * fileio.c (Fdelete_directory_internal): Rename from
9d8f3bd9
MA
4013 Fdelete_directory. It is not a command anymore. It has no file
4014 name handler.
4015
9694740b
SM
40162009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
4017
4018 * xdisp.c (get_next_display_element): Use an enum in last change.
4019
748e162f
KH
40202009-09-28 Kenichi Handa <handa@m17n.org>
4021
9694740b 4022 * xdisp.c (get_next_display_element): Pay attention to
748e162f
KH
4023 unibyte_display_via_language_environment in handling
4024 Vnobreak_char_display.
4025
17efd58d
AR
40262009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
4027
4028 * nsterm.h (ns_app_name): New extern variable.
4029
4030 * nsterm.m (ns_app_name): New variable.
4031 (ns_term_init): Set and use it.
4032 (ns_term_shutdown): Use it.
4033
4034 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
4035 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
4036
4037 * nsfns.m (ns_set_name_iconic, ns_set_name)
4038 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
4039 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
4040
9694740b
SM
4041 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
4042 Remove double-casting in client_data comparison.
31c2d412 4043
3208cb35
YM
40442009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4045
4046 * keyboard.c (make_lispy_event): Remember last wheel direction.
4047 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
4048
b7d552d6
GM
40492009-09-26 Glenn Morris <rgm@gnu.org>
4050
4051 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
4052 internal.elc. Add term/pc-win.elc.
4053 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
4054 term/x-win.elc.
4055 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
4056 term/w32-win.elc.
4057 (NS_SUPPORT): New.
4058 (lisp): Add NS_SUPPORT.
4059 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
4060
4ff670a8
DR
40612009-09-25 David Reitter <david.reitter@gmail.com>
4062
4063 * nsmenu.m (EmacsMenu-clear): Recognize application menu
4064 on Mac OS X 10.6+ (bug#4513).
4065
feabfb6c
JB
40662009-09-24 Juanma Barranquero <lekktu@gmail.com>
4067
4068 * frame.c (xrdb_get_resource): Return nil for empty string resources;
d528b1ce
SM
4069 some parts of Emacs code (like font selection) don't grok them.
4070 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
feabfb6c 4071
de59072a
AS
40722009-09-24 Andreas Schwab <schwab@redhat.com>
4073
4074 * coding.c (decode_coding_iso_2022): Fix operator precedence.
4075
a489517b
JB
40762009-09-24 Juanma Barranquero <lekktu@gmail.com>
4077
4078 * dired.c (Fdirectory_files): Fix typo in docstring.
4079
0592970c
AR
40802009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
4081
4082 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
4083 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
4084 (EmacsScroller-setPosition:portion:whole:): Remove -display call
4085 under GNUstep.
4086 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
4087
4088 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
4089 glyph advancement.
4090
48e8a88b
AR
40912009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
4092
4093 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
b3aac06a 4094 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
48e8a88b
AR
4095
4096 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
4097 deleted (bug #4492).
4098
e14f0a78
AR
4099 * nsfont.m (Vns_reg_to_script): New lisp variable.
4100 (syms_of_nsfont): Declare it.
4101 (ns_registry_to_script): New function.
4102 (ns_get_req_script): Call it.
4103 (ns_findfonts): Don't give up on non-unicode registry.
4104
4105 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
4106
5b650faa
SM
41072009-09-20 Tom Tromey <tromey@redhat.com>
4108
4109 * eval.c (find_handler_clause): Make stack-trace-on-error work in
4110 batch mode (bug#4228).
4111
a489517b 41122009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
0bae4e09
AR
4113
4114 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
a489517b 4115 carefully. (Bug #4339)
0bae4e09 4116
fcfe06f3
CY
41172009-09-18 Chong Yidong <cyd@stupidchicken.com>
4118
d798ba87 4119 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
fcfe06f3 4120
31642728
AR
41212009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
4122
4123 * emacs.c (inhibit_x_resources): Update doc string for NS.
4124 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
cff11156 4125 legacy code for -NXHost. Fix error printf in daemon case.
31642728
AR
4126
4127 * nsterm.h (ns_no_defaults): Remove.
4128
4129 * nsterm.m (ns_no_defaults): Remove.
4130 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
4131 (ns_use_qd_smoothing): Remove legacy variable.
6516d10a
AR
4132 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
4133 don't update the NSWindow itself.
4134 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
a489517b 4135 state detection and store user rect ourselves. (Bug #3581)
31642728
AR
4136
4137 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
4138 ns_use_qd_smoothing.
4139
4140 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
4141 platform versions. Drop support for emacs-20-style face specs.
8aad0aea 4142 (x-close-connection): Drop PSFlush() under OS X.
a489517b 4143 (x-focus-frame): Activate the app first. (Bug #4180)
31642728 4144
8686ac71
JB
41452009-09-17 Juanma Barranquero <lekktu@gmail.com>
4146
4147 * emacs.c (inhibit_x_resources): New variable.
4148 (main) [HAVE_NS]: Don't process --quick command line option.
4149 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
4150
4151 * lisp.h (inhibit_x_resources): Declare it extern.
4152
4153 * w32reg.c (x_get_string_resource):
4154 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
4155
e227ba05
EZ
41562009-09-17 Eli Zaretskii <eliz@gnu.org>
4157
362654a6
JB
4158 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
4159 Add lisp/term/internal.elc.
e227ba05 4160
742d40e8
SM
41612009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
4162
4163 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
4164 (bug#4461).
4165
005bd5a2
DN
41662009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
4167
4168 * puresize.h (BASE_PURESIZE): Increase to 1290000.
4169
4170 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
4171 (OBJECTS_MACHINE): Remove, unused.
4172
f9af9719
SM
41732009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
4174
4175 * frame.c (x_get_resource_string): Remove unused.
4176
0307c7d2
JD
41772009-09-15 Jan Djärv <jan.h.d@swipnet.se>
4178
4179 * xterm.c (x_new_font): Call change_frame_size before calling
4180 x_set_window_size, in case frame size won't change.
4181
4182 * frame.c (x_set_font): Remove dead code.
4183
428b13d6
SM
41842009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
4185
4186 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
4187
5766c380
SM
41882009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
4189
4190 * lread.c (Fload): Don't output a message after loading an obsolete
4191 package any more (done in Lisp now).
4192
2fd0161b
CY
41932009-09-12 Chong Yidong <cyd@stupidchicken.com>
4194
4195 * fns.c (syms_of_fns): Doc fix (Bug#4227).
4196
bc5e75b6
SM
41972009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
4198
4199 * keymap.c (Fwhere_is_internal): Use nconc2.
4200
c31c985e
AM
42012009-09-11 Alan Mackenzie <acm@muc.de>
4202
4203 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
4204 batch mode.
4205
78012bd2
AS
42062009-09-11 Andreas Schwab <schwab@linux-m68k.org>
4207
4208 * xdisp.c (display_mode_element): Detect cycles.
4209
9d889332
SM
42102009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
4211
4212 * keymap.c (where_is_internal): Don't erroneously return nil right after
4213 filling the cache.
4214 (where_is_internal_1): Fix up typo.
4215
7ab5d780
GM
42162009-09-11 Glenn Morris <rgm@gnu.org>
4217
4218 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
4219 share a common doc-string.
4220
5238a749
SM
42212009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
4222
66d77eda
SM
4223 * keymap.c (get_keymap): Return the actual keymap symbol rather than
4224 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
4225
5238a749
SM
4226 * keymap.c (QCadvertised_binding): New constant.
4227 (syms_of_keymap): Initialize it.
4228 (Fwhere_is_internal): Try and use bindings from :advertised-binding
4229 if applicable.
4230
19f48442
SM
42312009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
4232
50d4ba39
SM
4233 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
4234 (parse_menu_item): Streamline since bindings are recomputed all the
4235 time anyway. Don't bother checking Vdefine_key_rebound_commands any
4236 more and don't support lmenu's menu-alias any more either.
4237
a88a5372
SM
4238 * keymap.c (where_is_internal_data): Make noindirect a boolean.
4239 (where_is_internal): Strip it down to only traverse the keymaps.
4240 Move the cache handling from Fwhere_is_internal to here.
4241 (Fwhere_is_internal): Move the handling of remapping and the choice of
4242 the best binding from where_is_internal to here.
4243 Unify the cached/noncached paths, so remapping is also handled
4244 correctly when the cache is used, and so the cache can be used to
4245 speed up remap-handling when applicable.
4246 Give preference to non-remapped bindings.
4247 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
4248 non-remapped bindings.
4249 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
4250 command remapping.
4251
19f48442
SM
4252 * xdisp.c (display_mode_element): Move list length limit from 50 to
4253 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
4254
599498c3 42552009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
c1905ca3
AR
4256
4257 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
4258
f9b7b5ac
SM
42592009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
4260
a53af587
JB
4261 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
4262 (Bug#4334)
4263
f9b7b5ac
SM
4264 * keymap.c (where_is_internal): Filter out shadowed remappings.
4265 Assume that where_is_internal returns unshadowed bindings to simplify
4266 the code and get rid of the gotos. Use ASIZE.
4267
04f4b72d
JD
42682009-09-04 Jan Djärv <jan.h.d@swipnet.se>
4269
4da146f2
JD
4270 * xterm.c (x_focus_changed): If we get a focusout and pointer
4271 is invisible, make it visible.
4272
04f4b72d
JD
4273 * xterm.h: Remove condition for declaration of
4274 x_*_window_to_frame.
4275
7cef7ce3
SM
42762009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
4277
4278 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
4279 initial terminal as well.
4280
a54fa5b7
JD
42812009-09-02 Jan Djärv <jan.h.d@swipnet.se>
4282
4283 * xterm.h: Rename x_non_menubar_window_to_frame to
7cef7ce3 4284 x_menubar_window_to_frame.
a54fa5b7 4285
50426a04 4286 * xterm.c: Remove declarations also in xterm.h.
a54fa5b7
JD
4287 (XTmouse_position): Do not return valid positions
4288 for clicks in the menubar and the toolbar for Gtk+.
4289
4290 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
4291 if the widget for the event has the same top level as a frame,
4292 return the frame.
4293 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
4294 internal windows, bug #4122.
4295 (x_non_menubar_window_to_frame): Remove.
4296
5a021dd0
GM
42972009-09-02 Glenn Morris <rgm@gnu.org>
4298
4299 * buffer.c (default-major-mode): Move most of the doc from here...
4300 (major-mode): ... to here.
4301
548fe2f3
NR
43022009-08-30 Nick Roberts <nickrob@snap.net.nz>
4303
4304 * process.c (wait_reading_process_output): Keep the descriptor
4305 when pty is used by a non-child process, e.g., in I/O buffer of
4306 GDB this allows inferior to be restarted.
4307
e0840eef
EZ
43082009-08-29 Eli Zaretskii <eliz@gnu.org>
4309
4310 * xdisp.c (redisplay_internal): Remove redundant test and collapse
4311 both branches into one.
4312
82e98df4
SM
43132009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
4314
4315 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
4316 (main): Use enable-multibyte-characters rather than
4317 default-enable-multibyte-characters. Output a warning message when
4318 running a unibyte session.
4319
890617cb
YM
43202009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4321
4322 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
4323 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
4324 (copy_data_segment): Also copy __program_vars section.
4325 (copy_dyld_info) [LC_DYLD_INFO]: New function.
4326 (dump_it) [LC_DYLD_INFO]: Use it.
4327
4328 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
4329
e7adeadc
EZ
43302009-08-28 Eli Zaretskii <eliz@gnu.org>
4331
4332 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
4333 $(SRC)/buildobj.h.
4334 (buildobj.h): Renamed from $(SRC)/buildobj.h.
4335 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
4336 $(SRC)/buildobj.h.
4337 (clean): Add buildobj.h.
4338
3ed8bbdc
TZ
43392009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
4340
4341 * print.c (print_object): Set escapeflag to 1 when printing
4342 hashtable keys and values.
4343
155a6764
SM
43442009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
4345
4346 * lread.c (read_integer): Use doubles (and potentially return a float
4347 number) as we do in string-to-number.
4348 (read1): Use strtol to read integers, signal errors on strtol's
4349 overflow and use floats if strtol's output is too large for
4350 Elisp integers.
4351
877610de
EZ
43522009-08-27 Eli Zaretskii <eliz@gnu.org>
4353
4354 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
4355 (make-buildobj-SH): Fix last change.
4356 (SRC): Move to before where it's first used.
4357
ef73e7be
KH
43582009-08-27 Kenichi Handa <handa@m17n.org>
4359
550c8289
KH
4360 * process.c (send_process): Use encode_coding_object instead of
4361 encode_coding_string to perform eol-conversion even if the string
4362 is unibyte.
4363
60afa08d
KH
4364 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
4365 character.
4366
ef73e7be 4367 * cmds.c (Fself_insert_command): Avoid unnecessay
8a0b709a 4368 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
ef73e7be 4369
7b3a82d7
DN
43702009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
4371
5654bf63
DN
4372 * callproc.c (Fcall_process): Remove always true #if.
4373
7b3a82d7
DN
4374 * lisp.h: Replace #if 0 code for checking with text pointing to
4375 the --enable-checking configure flag.
4376
4377 * emacs.c (main): Mention the --enable-profiling configure flag
4378 instead of using CFLAGS.
4379
878bde49
KR
43802009-08-26 Ken Raeburn <raeburn@raeburn.org>
4381
4382 * Makefile.in (buildobj.h): New target.
4383 (doc.o): Depend on it.
4384 (temacs${EXEEXT}): Don't generate buildobj.lst.
4385 (mostlyclean): Delete buildobj.h, not buildobj.lst.
4386 * makefile.w32-in ($(SRC)/buildobj.h): New target.
4387 ($(BLD)/doc.$(O)): Depend on it.
4388 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
4389 provided by Eli Zaretskii.)
4390 ($(TEMACS)): Don't generate buildobj.lst.
4391 * doc.c: Include buildobj.h.
4392 (buildobj): New static variable.
4393 (Fsnarf_documentation): Use it, instead of opening and reading
4394 buildobj.lst.
4395
1574224c
MA
43962009-08-25 Michael Albinus <michael.albinus@gmx.de>
4397
4398 * dbusbind.c (Fdbus_call_method)
4399 (Fdbus_call_method_asynchronously): Use English numeric format for
4400 timeout values in doc string.
4401
d9da2f45
KH
44022009-08-25 Kenichi Handa <handa@m17n.org>
4403
ef73e7be
KH
4404 * alloc.c (mark_char_table): New function.
4405 (mark_object): Use mark_char_table for a char-table.
4406
d9da2f45
KH
4407 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
4408 (CHAR_TABLE_REF): Use it.
4409
c8edcc01
KR
44102009-08-23 Ken Raeburn <raeburn@raeburn.org>
4411
4412 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
4413 before invoking the newly build emacs to check for load-path
4414 shadowing.
4415
7763401b
GM
44162009-08-22 Glenn Morris <rgm@gnu.org>
4417
4418 * Makefile.in (bootstrap_exe): New variable.
4419 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
4420 Use ${bootstrap_exe}.
4421
729eadda
EZ
44222009-08-22 Eli Zaretskii <eliz@gnu.org>
4423
4424 * coding.h (encode_coding_string): Don't encode unibyte strings.
4425 (Bug#4047)
4426
eb4c6ace
MA
44272009-08-22 Michael Albinus <michael.albinus@gmx.de>
4428
4429 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
4430
4431 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
4432 intended as hotfix only.
4433 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
4434
36e34d1b
AR
44352009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
4436
4437 * nsterm.m (ns_get_color): Update documentation properly for last
4438 change, and clean up loose ends in the code left by it. Fix
4439 longstanding bug with 16-bit hex parsing, and add support for
4440 yet another X11 format (rgb:r/g/b) for compatibility.
4441 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
4442 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
4443
f983eb8a
SM
44442009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
4445
4446 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
4447
3f56d3c6
MA
44482009-08-20 Michael Albinus <michael.albinus@gmx.de>
4449
4450 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
4451 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
4452 (xd_initialize, xd_pending_messages): Check, whether
4453 $DBUS_SESSION_BUS_ADDRESS is set.
4454
fb641d68
YM
44552009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4456
4457 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
4458
4459 * nsterm.m (ns_get_color): Remove incompatible color formats again.
4460
cf59a374
GM
44612009-08-20 Glenn Morris <rgm@gnu.org>
4462
4463 * emacs.c (system-type): Doc fix.
4464
1373f3be
SM
44652009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
4466
4467 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
4468 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
4469
058ed861
MA
44702009-08-18 Michael Albinus <michael.albinus@gmx.de>
4471
1373f3be
SM
4472 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
4473 New functions.
058ed861
MA
4474 (xd_initialize): Revert change from 2009-08-16.
4475
563a866e 44762009-08-18 Kenichi Handa <handa@m17n.org>
5fc05db0
KH
4477
4478 * fontset.c (Ffontset_font): If a nil element is found in a
563a866e 4479 font-group vector, return nil.
5fc05db0 4480
e42bdf01
CY
44812009-08-17 Chong Yidong <cyd@stupidchicken.com>
4482
4483 * process.c (status_notify): Don't perform redisplay.
4484 (Fdelete_process, list_processes_1, process_send_signal):
4485 Expliticly perform redisplay.
4486 (wait_reading_process_output): Always check process status, but
4487 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
4488
4230ab74
KR
44892009-08-17 Ken Raeburn <raeburn@raeburn.org>
4490
1373f3be 4491 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
f601cdf3
KR
4492 (XFLOAT_INIT): New macro for storing a float value.
4493 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
4494 * fns.c (sxhash): Copy out the value of a float in order to
4495 examine its bytes.
4496 * dbusbind.c (xd_append_arg): Likewise.
4497
4230ab74
KR
4498 * emacs.c (main): Don't call syms_of_data twice.
4499
a0645cdd
MA
45002009-08-16 Michael Albinus <michael.albinus@gmx.de>
4501
4502 * dbusbind.c (xd_initialize): Add connection file descriptor to
4503 input_wait_mask, in order to let select() detect, whether a new
4504 message has been arrived.
ca4f31ea 4505 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
a0645cdd 4506
485db0ba
MA
45072009-08-15 Michael Albinus <michael.albinus@gmx.de>
4508
1373f3be
SM
4509 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
4510 New functions.
485db0ba
MA
4511
4512 * lisp.h (xd_pending_messages): Declare.
4513
4514 * keyboard.c (readable_events): Call xd_pending_messages.
4515
b5b98ff4
CY
45162009-08-15 Chong Yidong <cyd@stupidchicken.com>
4517
1373f3be 4518 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
84b17ab0 4519
f8354c6e
CY
4520 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
4521
b5b98ff4
CY
4522 * buffer.c (set_buffer_internal_1)
4523 (swap_out_buffer_local_variables): Check for unbound local
4524 variables (Bug#4138).
4525
8b9fc636
EZ
45262009-08-14 Eli Zaretskii <eliz@gnu.org>
4527
4528 * process.c (create_pty): Fix last change.
4529
ce959360
CY
45302009-08-13 Chong Yidong <cyd@stupidchicken.com>
4531
4532 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
4533 (xbm_load_image): Caller changed.
64b807c9 4534 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
ce959360 4535
c7baf7e9
NR
45362009-08-13 Nick Roberts <nickrob@snap.net.nz>
4537
4538 * process.c (create_pty): New function.
4539 (Fstart_process): Use it to allow Emacs to just associate a pty
4540 with the buffer. See associated change in gdb-mi.el.
4541 (list_processes_1): Deal with no program name.
4542 (start_process_unwind): Use pid == -2 to mean no process.
4543
1ac9108a
SM
45442009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
4545
4546 * cmds.c (nonundocount): New global variable.
4547 (keys_of_cmds): Initialize it.
4548 (Fself_insert_command): Use it to combine upto 20 sequential chars
4549 into a single undo entry, just like the Qself_insert_command code in
4550 keyboard.c does.
4551 Call frame_make_pointer_invisible, also like the Qself_insert_command
4552 code in keyboard.c does.
4553 * keyboard.c (command_loop_1): Use the new global nonundocount rather
4554 than its own local replacement for it.
4555
e267324c
KR
45562009-08-10 Ken Raeburn <raeburn@raeburn.org>
4557
1ac9108a 4558 * fns.c (concat): Don't re-set string length to its current value.
77437343 4559
1ac9108a
SM
4560 * coding.h (decode_coding_string, encode_coding_string):
4561 Use SBYTES macro.
f0bed503 4562
1ac9108a 4563 * doprnt.c (doprnt_lisp): Delete unused function.
e267324c
KR
4564 (doprnt): Merge with doprnt1, discarding lispstrings code.
4565 * lisp.h (doprnt_lisp): Don't declare.
4566
416e006d
JL
45672009-08-07 Juri Linkov <juri@jurta.org>
4568
4569 * puresize.h (BASE_PURESIZE): Increase to 1270000.
4570
6f7d5780
DN
45712009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
4572
4573 * print.c (syms_of_print): Undo previous change.
4574
f19a0f5b
TZ
45752009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
4576
4577 * lread.c (read1, syms_of_lread): Read hashtables back from the
4578 readable format.
4579
4580 * print.c (print_preprocess, print_object): Print hashtables fully
4581 and readably.
4582 (syms_of_print): Provide 'hashtable-print-readable.
4583
b9173dc2
AR
45842009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
4585
4586 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
4587 no family set.
4588 (nsfont_open): Handle case when entity has no family.
4589
1586503c
AR
45902009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
4591
4592 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
4593 element, not a list, for match case.
4594
087048cd
KH
45952009-07-28 Kenichi Handa <handa@m17n.org>
4596
4597 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
4598 rigidly.
4599
4600 * xfont.c (xfont_list_pattern): Don't ignore the return value of
4601 font_parse_xlfd. Check font properties more rigidly.
4602
780c2506
DN
46032009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
4604
31fd7c5c
JB
4605 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
4606 bsd-common.h.
780c2506 4607
a8c0cc18
KH
46082009-07-27 Kenichi Handa <handa@m17n.org>
4609
4610 * xfaces.c (face_with_height): Call font_clear_prop.
4611
4fbe2306
CY
46122009-07-26 Chong Yidong <cyd@stupidchicken.com>
4613
111d9af3
CY
4614 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
4615
4616 * xterm.c (x_term_init): Use Qx.
4617
4fbe2306
CY
4618 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
4619
1ac9108a 4620 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4fbe2306
CY
4621 (ns_get_color): Revert 2009-07-16 change.
4622
beb0b7f9
EZ
46232009-07-25 Eli Zaretskii <eliz@gnu.org>
4624
4625 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1ac9108a 4626 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
beb0b7f9 4627
2baf5e76
KR
46282009-07-25 Ken Raeburn <raeburn@raeburn.org>
4629
1ac9108a
SM
4630 * coding.h (decode_coding_string, encode_coding_string):
4631 Use SCHARS macro.
8890e5f5 4632
2baf5e76 4633 * lread.c: Rewrite 2009-07-21 changes.
1ac9108a 4634 (load_depth): Delete.
2baf5e76
KR
4635 (Qload_in_progress): New variable.
4636 (load_unwind): Don't reference load_depth or load_in_progress.
4637 (Fload): Likewise; specbind Qload_in_progress instead.
4638 (init_lread): Don't initialize load_depth.
4639 (syms_of_lread): Initialize and protect Qload_in_progress.
4640
1395c6f5
AR
46412009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
4642
4643 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
4644
4e2f36cf
AR
46452009-07-23 Yavor Doganov <yavor@gnu.org>
4646
4647 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
4648
5dd9a6f7
AR
46492009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
4650
4651 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
4652 Bugs 3792, 3720, 2402.
4653 (ns_lookup_indexed_color): Check for bad index.
4654 (ns_index_color): Init unused slot to 0.
4655 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
4656 Bug 3714, possibly 3082.
5dd9a6f7 4657
c902b920
JR
46582009-07-22 Jason Rumney <jasonr@gnu.org>
4659
1ac9108a
SM
4660 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
4661 Position IME window at cursor (Bug#2570).
c902b920
JR
4662 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
4663 (globals_of_w32fns): Dynamically load functions required above.
4664
4665 * w32term.c (w32_draw_window_cursor): Send message to reposition
4666 any IME window.
4667
090101cf
CY
46682009-07-21 Chong Yidong <cyd@stupidchicken.com>
4669
4670 * fileio.c: Revert 2009-07-16 changes.
4671 (Vauto_save_include_big_deletions): New variable.
4672 (Fdo_auto_save): Disable auto-save only if
4673 auto-save-include-big-deletions is nil.
4674
e6583e3d
CY
46752009-07-21 Chong Yidong <cyd@stupidchicken.com>
4676
4677 * xdisp.c (move_it_to): For continued lines ending in a tab, take
4678 the overflowed pixels into account (Bug#3879).
4679
ece435a5
KR
46802009-07-21 Ken Raeburn <raeburn@raeburn.org>
4681
4682 * lread.c (load_depth): New variable.
4683 (Fload, load_unwind, init_lread): Set it to the load recursion
4684 depth; set load_in_progress as a simple boolean based on the
4685 current load_depth. (Bug#3892)
4686
40b2d973
AR
46872009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
4688
4689 * nsfont.m (ns_has_attribute): Remove.
4690 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
4691
10be7e0d
JL
46922009-07-18 Juri Linkov <juri@jurta.org>
4693
4694 * process.c (Fset_process_query_on_exit_flag): Mention killing
4695 a buffer in docstring.
4696
fa055055
KH
46972009-07-17 Kenichi Handa <handa@m17n.org>
4698
4699 * casetab.c (shuffle): Fix the logic of setting up the cycle.
4700
042f7b69
YM
47012009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4702
4703 * nsfns.m (Fns_set_alpha): Remove function.
4704 (syms_of_nsfns): Don't defsubr it.
4705
4706 * nsterm.m (ns_get_color): Remove incompatible color formats.
4707 (ns_color_to_lisp): Generate #rrggbb color format string.
4708
4be941e3
RS
47092009-07-16 Richard Stallman <rms@gnu.org>
4710
4711 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
4712 (Fset_buffer_auto_saved): Handle save_length = -2.
4713
4e6b227d
CY
47142009-07-16 Chong Yidong <cyd@stupidchicken.com>
4715
4716 * xterm.c (Qx_gtk_map_stock): New var.
4717
4718 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
4719 of calling intern each time.
4720
a1856973
YM
47212009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4722
4723 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
4724 does tiling.
4725
4726 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
4727
497e54d8
KH
47282009-07-14 Kenichi Handa <handa@m17n.org>
4729
72d36834
KH
4730 * font.c (font_vconcat_entity_vectors): New function.
4731 (struct font_sort_data): New member font_driver_preference.
4732 (font_compare): Check font_driver_preference.
4733 (font_sort_entities): The format of the first argument changed.
4734 (font_delete_unmatched): Likewise.
4735 (font_list_entities): The return type changed.
4736 (font_select_entity): The format of the second argument changed.
1ac9108a
SM
4737 (font_find_for_lface): Adjuste for the above changes.
4738 Don't suppress the checking of C even if the repertory supports it.
4739 (Flist_fonts): Adjust for the above changes.
72d36834 4740
1ac9108a
SM
4741 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
4742 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
497e54d8
KH
4743 Reject a font who has adstyle property that is different from a
4744 langname derived from registry property.
1ac9108a 4745 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
497e54d8 4746
b6046155
EZ
47472009-07-13 Eli Zaretskii <eliz@gnu.org>
4748
4749 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
4750 local copy of dirfilename.
4751
fb6b6049
KH
47522009-07-13 Kenichi Handa <handa@m17n.org>
4753
e2402a5e
KH
4754 * chartab.c (sub_char_table_ref_and_range): Fix the range check
4755 against max_char.
4756
fb6b6049
KH
4757 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
4758 calling XSYMBOL (sym).
4759
65156807
EZ
47602009-07-11 Eli Zaretskii <eliz@gnu.org>
4761
1ac9108a
SM
4762 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
4763 New function.
4764 (directory_files_internal) [WINDOWSNT]:
4765 Bind w32-get-true-file-attributes to either t or nil, depending whether
65156807
EZ
4766 the filesystem of the directory is fast or slow.
4767
4768 * w32.c (logon_network_drive): Don't assume PATH is an absolute
4769 file name.
4770 (is_slow_fs): New function.
4771 (stat): Use it to determine whether to issue more system calls to
4772 get accurate file attributes, when w32-get-true-file-attributes is
4773 `local'.
4774
e0ab5fcf
JD
47752009-07-10 Jan Djärv <jan.h.d@swipnet.se>
4776
4777 * xfns.c (Fx_select_font): Remember last font selected in
31fd7c5c 4778 x_last_font_name and use that the next time. Also try the frame
e0ab5fcf
JD
4779 parameter font-parameter as default to the font dialog.
4780
784ceded
KH
47812009-07-10 Kenichi Handa <handa@m17n.org>
4782
4783 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
4784
fb8edc0b
EZ
47852009-07-09 Eli Zaretskii <eliz@gnu.org>
4786
1ac9108a 4787 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
017dab84 4788
fb8edc0b
EZ
4789 * w32.c (stat): Treat UNC file names as residing on remote
4790 drives. (Bug#3542)
4791
635c75b1
KH
47922009-07-09 Kenichi Handa <handa@m17n.org>
4793
4794 * fontset.c (fontset_find_font): Fix previous change.
4795
c1d5ce94
MA
47962009-07-08 Michael Albinus <michael.albinus@gmx.de>
4797
4798 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
4799 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
4800 error flag.
4801
edb61b39
KH
48022009-07-08 Kenichi Handa <handa@m17n.org>
4803
374bf7e4
KH
4804 * fontset.c (fontset_find_font): Fix the logic of handling
4805 charset_matched.
4806 (font_for_char): Delete unused var.
4807 (generate_ascii_font_name): Delete it.
4808
edb61b39
KH
4809 * coding.h (JIS_TO_SJIS2): Fix the code range check.
4810
4811 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
4812 (encode_coding_sjis): Fix the code range check.
4813
0f3f018c
CY
48142009-07-07 Chong Yidong <cyd@stupidchicken.com>
4815
4816 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
4817 (Fexpand_file_name): Copy string data properly (Bug#3772).
4818
fcaf6f3a
JD
48192009-07-07 Jan Djärv <jan.h.d@swipnet.se>
4820
4821 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
4822 first MapNotify.
4823
6809ca75
KH
48242009-07-07 Kenichi Handa <handa@m17n.org>
4825
4826 * character.h (unibyte_has_multibyte_table): Delete extern.
4827 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
4828
4829 * charset.c (Fset_charset_priority): Update charset_unibyte.
4830 (syms_of_charset): Initialize charset_unibyte.
4831
4832 * character.c (unibyte_has_multibyte_table): Delete it.
4833 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
4834 charset_unibyte.
4835 (multibyte_char_to_unibyte_safe): Likewise.
4836 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
4837
1ac9108a 4838 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6809ca75
KH
4839 (x_produce_glyphs): Likewise.
4840
4841 * .gdbinit (xcharset): Fix the treating $arg0.
4842
ad9e2d54
EZ
48432009-07-04 Eli Zaretskii <eliz@gnu.org>
4844
4845 Emulation of `getloadavg' on MS-Windows.
50426a04 4846 * w32.c: Include float.h.
ad9e2d54
EZ
4847 (g_b_init_get_native_system_info, g_b_init_get_system_times)
4848 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
4849 (get_native_system_info, get_system_times): New functions.
4850 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
4851 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
4852 (globals_of_w32): Initialize g_b_init_get_native_system_info,
4853 g_b_init_get_system_times, and num_of_processors.
4854
0a3472c7
JR
48552009-07-03 Jason Rumney <jasonr@gnu.org>
4856
4857 * w32term.c (w32_initialize): Use standard types.
4858
80904120
EZ
48592009-07-03 Eli Zaretskii <eliz@gnu.org>
4860
4861 * dired.c (Ffile_attributes): Decode user and group names by the
4862 locale's encoding. (Bug#3443)
4863
6978862d
DN
48642009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
4865
f8d23104
DN
4866 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
4867 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
4868
4869 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
4870
4871 * term.c (init_tty): Remove spurious #ifdef.
4872
6978862d
DN
4873 * m/mips.h: Mention this file is also used for netbsd.
4874 * m/pmax.h: Remove file.
4875
e044e4fc
JD
48762009-07-03 Jan Djärv <jan.h.d@swipnet.se>
4877
4878 * xterm.h (struct x_display_info): Add invisible_cursor.
4879 (struct x_output): Add current_cursor.
4880
4881 * xterm.c (XTtoggle_invisible_pointer): New function.
4882 (x_define_frame_cursor): Don't define cursor if invisible or the
4883 same as before. Set current_cursor.
4884 (x_create_terminal): Set toggle_invisible_pointer_hook.
4885
4886 * xfns.c (make_invisible_cursor): New function.
4887 (x_set_mouse_color): Call make_invisible_cursor.
4888 Set current_cursor.
4889 (x_window): Set current_cursor.
4890
4891 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
4892
4893 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
4894 inserting a character.
4895 (read_avail_input): Call frame_make_pointer_visible.
4896
4897 * frame.c (Vmake_pointer_invisible): New variable.
1ac9108a
SM
4898 (frame_make_pointer_invisible, frame_make_pointer_visible):
4899 New functions.
e044e4fc
JD
4900 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
4901
4902 * frame.h: Declare frame_make_pointer_invisible and
4903 frame_make_pointer_visible.
4904 (struct frame): Add pointer_invisible.
4905
574c8efa
JD
49062009-07-02 Jan Djärv <jan.h.d@swipnet.se>
4907
7b507248
JD
4908 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
4909 frame isn't visible.
4910 (xg_frame_resized): If width/height is -1, get size of window
4911 from X server.
4912
4913 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
4914 for MapNotify.
4915
835bdaa7 4916 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
31fd7c5c 4917 here or call change_frame_size. Just call flush_and_sync.
1ac9108a 4918 (flush_and_sync): Reintroduce.
574c8efa 4919
3f1c6666 49202009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 4921
31fd7c5c 4922 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
acd51077
JD
4923
4924 * xterm.c (x_handle_net_wm_state): Also look for sticky.
4925 (x_term_init): Initialize Xatom_net_wm_state_sticky.
4926
4927 * frame.h: Declare Qsticky.
4928
cad9ef74
JD
4929 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
4930
4931 * nsfns.m (ns_frame_parm_handlers): Ditto.
4932
4933 * frame.c: Declare Qsticky.
4934 (frame_parms): Add sticky.
4935
4936 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
4937
4938 * xterm.h: Declare x_set_sticky.
4939
4940 * xterm.c (x_set_sticky): New function.
4941
69b16610
JD
4942 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
4943 (xg_tool_bar_menu_proxy): Attach enter/leave events to
4944 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
4945
4946 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
4947
4948 * frame.c: Qmaximized is new.
4949 (x_set_frame_parameters): Do not handle fullscreen specially.
4950 Only set width and height if explicitly set.
4951 (x_set_fullscreen): Handle Qmaximized.
4952 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
4953 (syms_of_frame): Initialize Qmaximized.
4954
1ac9108a
SM
4955 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
4956 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3f1c6666
JD
4957
4958 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
31fd7c5c
JB
4959 for Expose event. Add call to x_check_fullscreen for MapNotify event.
4960 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3f1c6666
JD
4961 set gravity to NorthWestGravity when USE_GTK.
4962 (set_wm_state): New function.
31fd7c5c 4963 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3f1c6666
JD
4964 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
4965 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
31fd7c5c 4966 or the case when no window manager is running. That means remove calls
3f1c6666
JD
4967 to x_real_positions and x_fullscreen_adjust.
4968
4969 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
4970 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
4971 flush_and_sync.
4972 (xg_height_changed): New function.
4973 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1ac9108a
SM
4974 and gtk_window_set_policy. Set frame gravity after parsing the
4975 geometry string.
3f1c6666
JD
4976 (xg_update_frame_menubar, free_frame_menubar)
4977 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
4978 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
4979 Remove calls to xg_frame_set_char_size.
4980
fd503d99
KH
49812009-07-01 Kenichi Handa <handa@m17n.org>
4982
4983 * keyboard.c (decode_keyboard_code): New function.
4984 (tty_read_avail_input): Decode the input bytes if necessary.
4985
1ac9108a
SM
4986 * coding.c (setup_coding_system):
4987 Initialize coding->carryover_bytes to 0.
fd503d99
KH
4988 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
4989 use Qno_conversion.
4990
24ed93fb
YM
49912009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4992
4993 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
4994
99061dfc
CY
49952009-06-30 Chong Yidong <cyd@stupidchicken.com>
4996
1ac9108a 4997 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
99061dfc 4998
ff90fbde
JR
49992009-06-30 Jason Rumney <jasonr@gnu.org>
5000
5001 * w32term.c (w32_initialize): Use GetModuleHandle for library that
5002 is already loaded.
5003 Set user model ID if supported (bug#1849).
5004
5f445726
JM
50052009-06-29 Jim Meyering <meyering@redhat.com>
5006
5007 Remove useless if-before-xfree test.
5008 * nsfont.m (nsfont_close): Remove useless test.
5009 * term.c (delete_tty): Likewise.
5010 * w32.c (system_process_attributes): Likewise.
5011 * w32font.c (w32font_close): Likewise.
5012 * xfaces.c (x_free_gc): Likewise.
5013 * xselect.c (buffer): Likewise.
5014
b9607587
AS
50152009-06-28 Andreas Schwab <schwab@linux-m68k.org>
5016
5017 * process.c (send_process): Keep decoded string in a local
5018 variable and protect it from GC. (Bug#3521)
5019
89ba96f4
EZ
50202009-06-28 Eli Zaretskii <eliz@gnu.org>
5021
5022 * term.c (create_tty_output) [MSDOS]: #ifdef away.
5023 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
5024
098a1589
CY
50252009-06-28 Chong Yidong <cyd@stupidchicken.com>
5026
485422be
CY
5027 * xdisp.c (start_display, handle_face_prop)
5028 (move_it_vertically_backward, cursor_row_fully_visible_p)
1ac9108a
SM
5029 (redisplay_window, try_window_id, produce_image_glyph):
5030 Delete some #ifdef-ed out code chunks that are now obsolete.
485422be 5031
098a1589
CY
5032 * xterm.c (x_update_window_begin, x_new_focus_frame)
5033 (x_scroll_bar_handle_click, handle_one_xevent)
5034 (handle_one_xevent, XTread_socket, x_focus_on_frame)
5035 (x_make_frame_visible, x_make_frame_invisible)
5036 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
5037 code chunks that are now obsolete.
5038
78c38319
MA
50392009-06-28 Michael Albinus <michael.albinus@gmx.de>
5040
5041 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
5042 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
5043 for hours, when optimzation is enabled.
5044 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
5045 (xd_read_message): Make them static.
5046
4189ed40
CY
50472009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
5048
5049 * term.c (turn_on_face): Allow simultaneously bold and dim
5050 terminal faces (Bug#3530).
5051
cd9b5e16
CY
50522009-06-27 Chong Yidong <cyd@stupidchicken.com>
5053
4e23bedb
CY
5054 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
5055
cd9b5e16
CY
5056 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
5057 truncation glyphs (Bug#3686).
5058
07cc3c35
GM
50592009-06-27 Glenn Morris <rgm@gnu.org>
5060
5061 * m/pmax.h: Restore file, with only netbsd portions.
5062
31fd7c5c 50632009-06-26 David Reitter <david.reitter@gmail.com>
25c5550f 5064
cd9b5e16 5065 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 5066
42d4a64f
KH
50672009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
5068
5069 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
5070 the arg FORCE_SYMBOL.
5071
930fe55b 50722009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
5073
5074 * fontset.c (fontset_find_font): When a usable rfont_def is found
5075 in a fallback font-group, make it the first element of the group.
5076
57ebc3fd
CY
50772009-06-24 Chong Yidong <cyd@stupidchicken.com>
5078
5079 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
5080
f084f942
KH
50812009-06-24 Kenichi Handa <handa@m17n.org>
5082
5083 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
5084 set for C.
5085 (fontset_font): Record the availability of a font for C both in
5086 the realized fontsets of the current one and the default one.
5087
2f686c87
DN
50882009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
5089
5090 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
5091 conditional, it is always defined on AIX.
5092
666e158e
MB
50932009-06-23 Miles Bader <miles@gnu.org>
5094
5095 * window.c (Vrecenter_redisplay): New variable.
5096 (syms_of_window): Initialize it.
5097 (Qtty): New extern declaration.
5098 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
5099
c6da7cd2
JM
51002009-06-23 Jim Meyering <meyering@redhat.com>
5101
1ac9108a
SM
5102 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
5103 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
632c2030 5104 pointer dereferences are guaranteed to be valid.
c6da7cd2 5105
678dca3d
KH
51062009-06-23 Kenichi Handa <handa@m17n.org>
5107
74d75424
KH
5108 * emacs.c (main): Call init_font ().
5109
5110 * font.h (Vfont_log): Extern it.
5111 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
5112
5113 * font.c (font_sort_entities, font_list_entities)
5114 (font_matching_entity, font_open_entity)
5115 (font_close_object): Change font_add_log to FONT_ADD_LOG.
5116 (Vfont_log): Delete static.
5117 (font_log_env_checked): Delete this variable.
5118 (font_add_log): Don't check font_log_env_checked.
5119 (font_deferred_log): Check Vfont_log.
5120 (init_font): New function.
5121
678dca3d
KH
5122 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
5123
5124 * w32font.c: Change font_add_log to FONT_ADD_LOG.
5125
5126 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
5127
5128 * xfont.c: Change font_add_log to FONT_ADD_LOG.
5129
5130 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
5131 (face_for_char): Don't call font_deferred_log here.
5132 (font_for_char): Likewise.
5133
8a668709
CY
51342009-06-22 Chong Yidong <cyd@stupidchicken.com>
5135
9a01ee33
CY
5136 * w32term.c (x_draw_glyph_string): Use the glyph string's width
5137 rather than its background_width for drawing the overline and
5138 underline (Bug#489).
5139
5140 * xterm.c (x_draw_glyph_string): Use the glyph string's width
5141 rather than its background_width for drawing the overline and
5142 underline (Bug#489).
ec7c9926
CY
5143 (xg_default_icon_file): New variable.
5144 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
5145 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 5146
8a668709
CY
5147 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
5148 (load_overlay_strings): Remove externs.
5149 (fast_find_position): Function deleted.
5150 (mouse_face_from_buffer_pos): New function, based on
5151 fast_find_position. Correctly handle before-strings,
5152 display-strings, and after-strings (Bug#1220).
5153 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
5154
4d4c02d8
CY
51552009-06-21 Chong Yidong <cyd@stupidchicken.com>
5156
1ac9108a 5157 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4d4c02d8
CY
5158 (move_it_in_display_line_to, move_it_in_display_line_to)
5159 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
5160
70243478
CY
51612009-06-21 Chong Yidong <cyd@stupidchicken.com>
5162
5163 * Branch for 23.1.
5164
13087e59
JR
51652009-06-21 Jason Rumney <jasonr@gnu.org>
5166
5167 * w32term.c (keyboard_codepage): New static variable.
5168 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
5169 (w32_read_socket) [WM_CHAR]: Use it to decode character
5170 input (bug#3237).
5171 (w32_initialize): Initialize it.
5172 (codepage_for_locale): New function.
5173
4735b74e
KR
51742009-06-20 Ken Raeburn <raeburn@raeburn.org>
5175
5176 * process.c (status_message): Pass Faset index argument as a lisp
5177 object, so as to work with USE_LISP_UNION_TYPE.
5178
0e727afa
YM
51792009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5180
5181 * coding.c (Ffind_coding_systems_region_internal):
5182 Cache checked characters.
5183
cf299835
KH
51842009-06-18 Kenichi Handa <handa@m17n.org>
5185
1ac9108a 5186 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
cf299835 5187
90f20d94
AS
51882009-06-18 Andreas Schwab <aschwab@redhat.com>
5189
5190 * xdisp.c (redisplay_internal): Check that the frame is still
5191 live after redisplay of its windows.
5192 (redisplay_windows): Check that the window is still live.
5193
7f1faf1c
KH
51942009-06-17 Andreas Schwab <schwab@linux-m68k.org>
5195
5196 * coding.c (detect_coding_utf_16): Fix previous change.
5197
cc13543e
KH
51982009-06-16 Kenichi Handa <handa@m17n.org>
5199
5200 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
5201 UTF-16 by checking the dispersion of Eth and Oth bytes.
5202
977b85f4
AS
52032009-06-15 Andreas Schwab <schwab@linux-m68k.org>
5204
5205 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
5206
66bd43d1
KH
52072009-06-15 Kenichi Handa <handa@m17n.org>
5208
5209 * process.c (status_message): Fix previous change. Be sure to
5210 decode a localized string.
5211
cb5ca9c5
YM
52122009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5213
5214 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
5215 add comment explaining why.
5216
ec7709ba 52172009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 5218
ec7709ba 5219 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 5220
4b7f335c
AR
52212009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
5222
5223 * nsfont.m (ns_attribute_value): Remove.
5224 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
5225 (ns_has_attribute): Shrink the normal range.
5226 (ns_findfonts): Don't worry about requested spec in determining
5227 need for synthItal.
e41820ee 5228 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 5229
73b26103
SZ
52302009-06-14 Seiji Zenitani <zenitani@mac.com>
5231
5232 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
5233
5753e4da
KH
52342009-06-11 Kenichi Handa <handa@m17n.org>
5235
5236 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
5237 overhang for the static composition case.
5238
3561b671
KH
52392009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5240
5753e4da
KH
5241 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
5242 overhang for the automatic composition case.
5243
3561b671
KH
5244 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
5245 composition case.
5246
852bbd41
CY
52472009-06-10 Chong Yidong <cyd@stupidchicken.com>
5248
5249 * xdisp.c (get_next_display_element): When handling wrap-prefix
5250 and line-prefix, treat \n as a control character (bug#3502).
5251
9903d1e6
KH
52522009-06-10 Kenichi Handa <handa@m17n.org>
5253
5254 * font.c (font_parse_family_registry): Fix for one-char foundry.
5255 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
5256
0bcbaaaa
CY
52572009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
5258
5259 * process.c (status_message): Fix handling of multibyte signal
5260 string (Bug#3499).
5261
40aa3f13
JM
52622009-06-09 Jim Meyering <meyering@redhat.com>
5263
1f80c7e2
CY
5264 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
5265 color name is missing.
40aa3f13 5266
72d51285
KH
52672009-06-09 Kenichi Handa <handa@m17n.org>
5268
5269 * charset.c (Fmap_charset_chars): In docstring, state clearly that
5270 FROM-CODE and TO-CODE are codepoints of CHARSET.
5271
c1d04d84
AR
52722009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
5273
5274 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
5275
52762009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
5277
5278 Changes to support :script/:lang/:otf in NS font driver.
5279 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
5280 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
5281 indicate not part of font driver interface, and change callers.
5282 (ns_get_family): Remove pointless null check.
5283 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
5284 ns_spec_to_descriptor, ns_descriptor_to_entity.
5285 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
5286 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
5287 (ns_spec_to_descriptor, ns_descriptor_to_entity)
5288 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
5289 (ns_get_req_script, ns_accumulate_script_ranges)
5290 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
5291 New functions.
5292 (nsfont_list, nsfont_match): Use ns_findfonts.
5293 (nsfont_open): Use font descriptor instead of traits.
5294 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
5295 (dump_glyphstring): Rename to ns_dump_glyphstring.
5296
c7eb9816
AR
5297 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
5298
c1d04d84
AR
5299 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
5300
5301 * fontset.c (fontset_from_font): Remove NS-specific code.
5302
ec7709ba 53032009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
5304
5305 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
5306 nonactive windows.
5307
31fd7c5c 53082009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
c1d04d84 5309
1ac9108a 5310 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
c1d04d84 5311
68852c13 53122009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
5313
5314 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
5315
6756cd1d
CY
53162009-06-07 Chong Yidong <cyd@stupidchicken.com>
5317
5318 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
5319 account for the overflowing of newlines into the last glyph on the
5320 display line (Bug#3482).
5321
28bf482a
DR
53222009-06-05 David Reitter <david.reitter@gmail.com>
5323
ec7709ba
JB
5324 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
5325 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
5326 Fns_selection_exists_p, Fns_selection_owner_p.
5327
fdb55376
JR
53282009-06-03 Jason Rumney <jasonr@gnu.org>
5329
5330 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
5331 available. (Bug#3379)
5332
05129fbe
KH
53332009-05-29 Kenichi Handa <handa@m17n.org>
5334
1ac9108a
SM
5335 * coding.c (get_translation_table):
5336 Check Venable_character_translation.
05129fbe 5337
ec7709ba 53382009-05-26 David Reitter <david.reitter@gmail.com>
15891144 5339
ec7709ba
JB
5340 * nsterm.m (ns_raise_frame): Only raise frame if visible.
5341 (x_make_frame_visible): Move frame to front rather than calling
15891144 5342 ns_raise_frame().
ec7709ba 5343 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 5344 isn't key window.
ec7709ba 5345 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
5346 drawRect may be called by NSView even if the frame is hidden.
5347
ec7709ba
JB
5348 * nsfns.m (Fx_create_frame): Follow other ports in
5349 determining visibility; default to t. Ensure async_visible is set.
15891144 5350
21f73755
EZ
53512009-05-23 Eli Zaretskii <eliz@gnu.org>
5352
5353 * dired.c (Ffile_attributes): Doc fix.
5354
34001e41
CY
53552009-05-22 Chong Yidong <cyd@stupidchicken.com>
5356
5357 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
5358
46306a17
SM
53592009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
5360
5361 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
5362 and xfont_scratch_props.
5363 (syms_of_xfont): Do it here instead.
5364 (xfont_find_ccl_program): Delete, unused.
5365 (xfont_open): Delete unused var `i'.
5366
ef6e0694
KH
53672009-05-21 Kenichi Handa <handa@m17n.org>
5368
5369 * fontset.c (Qlatin): Don't make it static.
5370
46306a17
SM
5371 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
5372 New functions.
ef6e0694
KH
5373 (xfont_scripts_cache, xfont_scratch_props): New variables.
5374 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
5375 (xfont_list_pattern): Argument changed. Callers changed.
5376 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
5377 (xfont_list): Don't reject a font spec with :script property.
5378 (xfont_has_char): Fix setting of encoding.
5379 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
5380 xfont_scratch_props.
5381
53822009-05-19 Kenichi Handa <handa@m17n.org>
5383
46306a17 5384 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
5385 Callers changed.
5386
53872009-05-18 Kenichi Handa <handa@m17n.org>
5388
5389 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
5390
ac71ced7
SM
53912009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
5392
5393 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
5394 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
5395
1c6d1051
YM
53962009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5397
5398 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
5399 (x_delete_terminal): Dissociate resource database from display and
5400 then call XrmDestroyDatabase before closing display.
5401
9b9b779c
AR
54022009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
5403
5404 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
5405 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
5406 whether selected frame is viable before raising it (based on patch
5407 by David Reitter), and improve commentary.
5408 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 5409
cccd42d5
KH
54102009-05-15 Kenichi Handa <handa@m17n.org>
5411
5412 * font.c (Ffont_spec): Check arguments.
5413
337fbd17
CY
54142009-05-14 Chong Yidong <cyd@stupidchicken.com>
5415
5416 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
5417 weight when testing attributes (Bug#3282).
5418
47a6002f
JD
54192009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5420
5421 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
5422 what we expect to get in the next ConfigureNotify event.
5423
9cb363db
YM
5424 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
5425 before Xft one (Bug#1696).
5426
b9126609
CY
54272009-05-07 David Reitter <david.reitter@gmail.com>
5428
5429 * nsfns.m (Fx_display_planes): Compute bitplanes using
5430 NSBitsPerPixelFromDepth (Bug#3207).
5431
27a69fd9
CY
54322009-05-10 Chong Yidong <cyd@stupidchicken.com>
5433
5434 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
5435
00f37552
TTN
54362009-05-10 Ulrich Mueller <ulm@gentoo.org>
5437
5438 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
5439
2d82a920
DR
54402009-05-07 David Reitter <david.reitter@gmail.com>
5441
ec7709ba
JB
5442 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
5443 Respect mouse face background.
2d82a920 5444
46b0d52d
DR
54452009-05-07 David Reitter <david.reitter@gmail.com>
5446
ec7709ba
JB
5447 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
5448 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
5449 in ns_update_begin and ns_update_end.
5450
ce1b23bb
SM
54512009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
5452
5996e1b7
SM
5453 * nsfns.m (ns_get_screen): Rewrite.
5454 Don't presume selected-frame is of type `ns'.
5455
ba98e3a0
SM
5456 * font.c (font_update_drivers): Sanity fallback to avoid disabling
5457 all drivers.
5458
ce1b23bb
SM
5459 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
5460
bcda200f
YM
54612009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5462
5463 * keyboard.h (add_user_signal): Fix typo in extern.
5464
5465 * lisp.h (add_user_signal): Remove extern.
5466
5467 * unexelf.c (unexec): Consider a section to precede the .bss section
5468 if its addresses overlap that of .bss.
5469 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
5470 instead of dumping process.
5471
864660a2
SM
54722009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
5473
5474 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
5475
50da4e56
SM
54762009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
5477
5478 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
5479
51520a1a
DN
54802009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
5481
5482 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
5483 any statements.
5484
409ea3a1
AS
54852009-05-02 Andreas Schwab <schwab@linux-m68k.org>
5486
59c4c60f
AS
5487 * process.c (read_process_output): Make sure the current buffer is
5488 always restored.
5489
409ea3a1
AS
5490 * coding.c (record_conversion_result): Don't modify
5491 Vlast_code_conversion_error for successful result.
5492 (alloc_destination): Don't clobber conversion result. (Bug#1650)
5493
56f00ed2
KH
54942009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
5495
5496 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 5497 (load_charset_map): Remove unnecessary code.
56f00ed2 5498
4491c9d2
DR
54992009-04-30 David Reitter <david.reitter@gmail.com>
5500
35f5b128 5501 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
5502 through f24.
5503
6970f632
CY
55042009-04-30 Chong Yidong <cyd@stupidchicken.com>
5505
5506 * xfaces.c (face_at_buffer_position): New arg base_face_id.
5507
5508 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
5509 face_at_buffer_position.
5510 (face_before_or_after_it_pos, get_next_display_element)
5511 (note_mouse_highlight): Update face_at_buffer_position call.
5512
5513 * term.c (term_mouse_highlight):
5514 * msdos.c (IT_note_mouse_highlight):
5515 * fontset.c (Finternal_char_font):
35f5b128 5516 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
5517
5518 * dispextern.h (face_at_buffer_position): Update prototype.
5519
0c616f63
KH
55202009-04-30 Kenichi Handa <handa@m17n.org>
5521
35f5b128 5522 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 5523
ad3aaf33
AS
55242009-04-29 Andreas Schwab <schwab@linux-m68k.org>
5525
5526 * callproc.c (Fcall_process): Fix GC protection. Make sure
5527 current buffer is always restored.
5528
c3c963a0
YM
55292009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5530
5531 * atimer.c (init_atimer): Also clear stopped_atimers.
5532
5533 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
5534
7e3386cb
YM
5535 * process.c (create_process): Clean up merger residues of
5536 2008-07-17 change.
5537
91f68422
CY
55382009-04-29 Ulrich Mueller <ulm@gentoo.org>
5539
5540 * lread.c (Vread_circle): New variable.
5541 (read1): Disable recursive read if Vread_circle is nil.
5542
24b34550
KH
55432009-04-29 Kenichi Handa <handa@m17n.org>
5544
5545 * fontset.h (set_default_ascii_font): Delete extern.
5546
5547 * fontset.c (set_default_ascii_font): Delete this unused function.
5548
5549 * frame.c (x_set_font): When ARG is a font-object, check if the
5550 font-object matches with the ASCII font-spec of the frame's
9c358bda 5551 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 5552
77bf07e1
AS
55532009-04-28 Andreas Schwab <schwab@linux-m68k.org>
5554
5555 * fns.c (Flocale_info): Protect vector from GC during decoding.
5556
5557 * process.c (Fstart_process): Protect argv strings from GC during
5558 encoding.
5559
2c55aacf
AS
55602009-04-27 Andreas Schwab <schwab@linux-m68k.org>
5561
5562 * sysdep.c: Include <ctype.h>.
5563
b892d3c9
DR
55642009-04-27 David Reitter <david.reitter@gmail.com>
5565
35f5b128 5566 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
5567 Remove commented-out code.
5568
9d0644c4
JB
55692009-04-26 Johan Bockgård <bojohan@gnu.org>
5570
5571 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
5572
b7053016
JR
55732009-04-25 Jason Rumney <jasonr@gnu.org>
5574
5575 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
5576
4e8231f3
YM
55772009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5578
5579 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
5580 Swap bytes in short integer if fringe bitmap width > 8.
5581
493dcf2c
KH
55822009-04-23 Kenichi Handa <handa@m17n.org>
5583
5584 * xfaces.c (Fx_list_fonts): If a font size is specified in
5585 PATTERN, set it in returned scalable fonts.
5586
401e9e57
CY
55872009-04-22 Chong Yidong <cyd@stupidchicken.com>
5588
708e05dc
CY
5589 * keyboard.c (Fset_input_meta_mode): Doc fix.
5590
5591 * dispnew.c (Fsend_string_to_terminal): Doc fix.
5592
1ac9108a 5593 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
708e05dc
CY
5594
5595 * coding.c (Fterminal_coding_system): Doc fix.
5596
5597 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
5598 (Fx_display_pixel_height, Fx_display_planes)
5599 (Fx_display_color_cells, Fx_server_max_request_size)
5600 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
5601 (Fx_display_mm_height, Fx_display_mm_width)
5602 (Fx_display_backing_store, Fx_display_visual_class)
1ac9108a
SM
5603 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
5604 Doc fixes, replacing "terminal id" with "terminal object".
708e05dc
CY
5605 (check_x_display_info): Handle terminal objects instead of
5606 terminal ids.
5607
401e9e57
CY
5608 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
5609 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1ac9108a
SM
5610 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
5611 Doc fixes, replacing "terminal id" with "terminal object".
401e9e57 5612
df80c7f0
KH
56132009-04-21 Kenichi Handa <handa@m17n.org>
5614
5a8f12af 5615 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 5616 (font_score): Check AVGWIDTH too.
908567ef 5617
df80c7f0
KH
5618 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
5619 worst case.
1ac9108a
SM
5620 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
5621 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
df80c7f0 5622
705af33f
JR
56232009-04-19 Jason Rumney <jasonr@gnu.org>
5624
5625 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 5626 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
5627
5628 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
5629 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
5630 get_phys_cursor_geometry.
5631
b71ac3dd 5632 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
5633 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
5634 using get_phys_cursor_geometry.
5635
5636 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
5637 correctly calculated.
5638
dc2933eb
JD
56392009-04-19 Jan Djärv <jan.h.d@swipnet.se>
5640
1ac9108a
SM
5641 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
5642 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
dc2933eb
JD
5643 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
5644 is deprecated.
5645
973e7849
AS
56462009-04-18 Andreas Schwab <schwab@linux-m68k.org>
5647
5648 * font.c (font_put_frame_data): Use xfree instead of free.
5649
314d66f4
JB
56502009-04-17 Juanma Barranquero <lekktu@gmail.com>
5651
5652 * w32font.c (Qja, Qko): Remove declarations.
5653 (syms_of_w32font): Don't DEFSYM them.
5654
cf702558
CY
56552009-04-17 Chong Yidong <cyd@stupidchicken.com>
5656
5657 * font.c (Qja, Qko): Move definitions here from ftfont.c.
5658
5659 * font.h (Qja, Qko): Extern them.
5660
5661 * ftfont.c (Qja, Qko): Remove declarations.
5662
5663 * xfont.c (Qja, Qko): Remove declarations.
5664
b50504f5
KH
56652009-04-17 Kenichi Handa <handa@m17n.org>
5666
bde25748
KH
5667 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
5668 string from a vector to handle Latin-1 characters correctly.
5669
b50504f5
KH
5670 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
5671 entity even if the cache hits.
5672
f4646fff
AS
56732009-04-16 Andreas Schwab <schwab@linux-m68k.org>
5674
5675 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 5676 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 5677
e7deaab0
AS
5678 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
5679 * lisp.h: Adjust prototypes.
5680
0a0e7d49
CY
56812009-04-16 Chong Yidong <cyd@stupidchicken.com>
5682
5683 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
5684 change (Bug#3003).
5685
3c908a57
KH
56862009-04-16 Kenichi Handa <handa@m17n.org>
5687
1ac9108a 5688 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
bd0af90d
KH
5689
5690 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
5691 adstyle.
5692
5693 * ftfont.c (Qja, Qko): Don't make them static.
5694 (enum ftfont_cache_for): New enum.
5695 (fc_charset_table): Undo the previous change.
5696 (ftfont_get_latin1_charset): Delete it.
1ac9108a
SM
5697 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
5698 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
bd0af90d
KH
5699 non-scarable font, try to get AVERAGE_WIDTH.
5700 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
5701 Change ft_face_cache from a list of a hash-table. Don't check
5702 `ja' and `ko' adstyle here.
5703 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
5704 FTFONT_CACHE_FOR_CHARET.
5705 (ftfont_get_charset): Undo the previous change.
1ac9108a 5706 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
bd0af90d
KH
5707 (ftfont_close): Likewise.
5708 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
5709
5710 * font.c (font_sort_entites): Change the meaning of the arg
5711 BEST-ONLY. Don't optimize for VEC of lenght 1.
5712 (font_select_entity): Just return the value of font_sort_entites.
5713
5714 * xfaces.c (merge_face_vectors): Reflect font properties in
5715 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
5716 font_clear_prop if a face attribute doesn't change.
5717
3c908a57
KH
5718 * charset.h (charset_ksc5601): Extern it.
5719
5720 * charset.c (charset_ksc5601): New variable.
5721 (Fdefine_charset_internal): Set charset_ksc5601.
5722 (init_charset_once): Initialize charset_ksc5601 to -1.
5723
d65859c3
DN
57242009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
5725
5726 * fileio.c (history_delete_duplicates): Remove unused declaration.
5727
5728 * callint.c (history_delete_duplicates): New declaration.
5729 (Fcall_interactively): Remove command history duplicates when
5730 history_delete_duplicates is true.
5731
3ba010e5
EZ
57322009-04-14 Eli Zaretskii <eliz@gnu.org>
5733
5734 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
5735
06f19b91
KH
57362009-04-14 Kenichi Handa <handa@m17n.org>
5737
5738 * font.c (Ffont_info): Fix docstring. Fix the second element of
5739 the returned value (bug#2949).
5740
2cce8bfc
CY
57412009-04-14 Chong Yidong <cyd@stupidchicken.com>
5742
5743 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
5744
d156542d
KH
57452009-04-14 Kenichi Handa <handa@m17n.org>
5746
5747 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
5748 encoding charset is ascii_compatible.
5749
5750 * charset.c (Fdefine_charset_internal): Make charset
5751 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
5752 code_offset is 0, and covers all ASCII characters.
5753
86fa089e
SM
57542009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
5755
5756 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
5757 (ns_string_to_pasteboard_internal):
5758 * nsmenu.m (process_dialog):
5759 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
5760 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
5761 * lisp.h (Fx_load_color_file): Declare.
5762
a8a3728b
KH
57632009-04-13 Kenichi Handa <handa@m17n.org>
5764
1ac9108a 5765 * font.c (font_delete_unmatched): Preserve the order of list elements.
a8a3728b
KH
5766 (font_select_entity): Suppress the code to optimize for the same
5767 kind of fonts.
5768 (font_load_for_lface): Get a font that supports at least ASCII
5769 characters.
5770
5771 * ftfont.c (Qja, Qko): New variables.
5772 (fc_charset_table): Delete uniquifier data for iso8859-1.
5773 (ftfont_get_latin1_charset): New function.
5774 (get_adstyle_property): New function.
5775 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
5776 bitmap fonts.
5777 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
5778 Delete iso-8859-1 range from the charset of fonts whose adstyle is
5779 `ko' or `ja'.
5780 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1ac9108a 5781 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
a8a3728b
KH
5782 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
5783 property.
5784 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
5785 (syms_of_ftfont): DEFSYM Qja and Qko.
5786
483670b5
KH
57872009-04-09 Kenichi Handa <handa@m17n.org>
5788
12b55765
KH
5789 * charset.c (map_charset_chars): For a charset of `superset'
5790 method, fix calculation of code range.
5791
483670b5
KH
5792 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
5793 from the list of extra properties.
5794 (font_clear_prop): Be sure to delete `:name' font property.
5795
57d3b93b
KH
57962009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5797
b4b2c2ca
YM
5798 * dispnew.c (redraw_overlapping_rows): Fix detection of
5799 overlapping for topmost and bottommost rows.
5800
1ac9108a 5801 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
57d3b93b 5802
472c3609
JR
58032009-04-06 Jason Rumney <jasonr@gnu.org>
5804
5805 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
5806
ab193662
KH
58072009-04-06 Kenichi Handa <handa@m17n.org>
5808
5809 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
5810
5811 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
5812
0c26f026
KH
58132009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5814
5815 * ftfont.c (ftfont_open): Fix checking of the return value of
5816 FT_Load_Char. Fix setting font->underline_thickness.
5817
e173bbce
CY
58182009-04-04 Chong Yidong <cyd@stupidchicken.com>
5819
5820 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
5821 (Fterminal_parameters, Fterminal_parameter)
5822 (Fset_terminal_parameter): In doc string, refer to terminal
5823 objects rather than terminal ids.
5824
693a2698
EZ
58252009-04-04 Eli Zaretskii <eliz@gnu.org>
5826
5827 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
5828 ret_lim_data. (Bug#2867)
5829
d5221487
CY
58302009-04-03 Chong Yidong <cyd@stupidchicken.com>
5831
5832 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
5833 so they don't get wider than the window, matching 2006-01-23
5834 change to the partner function in xdisp.c (Bug#2800).
5835
223509a3
KH
58362009-04-03 Kenichi Handa <handa@m17n.org>
5837
5838 * print.c (print_object): Make each lowest sub_char_table start a
5839 new line (Bug#2866).
5840
74fcd0b1
KH
58412009-04-02 Kenichi Handa <handa@m17n.org>
5842
5843 * fontset.c (fontset_font): Record no-font when a fontset
5844 explicitly tells not to try another font-specs.
5845
c542407d
SM
58462009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
5847
5848 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
5849
e3869731
KH
58502009-03-30 Kenichi Handa <handa@m17n.org>
5851
d8d2f142
KH
5852 * fontset.c (fontset_from_font): Specify only registry in a
5853 font-spec for all characters supported by that registry.
5854
e3869731
KH
5855 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
5856 even if HAVE_M17N_FLT is not defined.
5857
5da5f805
CY
58582009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
5859
5860 * ftfont.c: Conditionalize prototyping and use of
5861 ftfont_variation_glyphs.
5862
ab226c50
SM
58632009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
5864
9628fed7
SM
5865 * frame.c (delete_frame): Work around compiler bug.
5866
5867 * editfns.c (general_insert_function): Adjust to insdel.c changes.
5868 * insdel.c (prepare_to_modify_buffer, signal_before_change):
5869 Some more EMACS_INT.
5870 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
5871
5872 * xdisp.c (dump_glyph): Fix typo.
5873
ae19ba7c
SM
5874 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
5875 (adjust_markers_gap_motion, adjust_markers_for_delete)
5876 (adjust_markers_for_insert, adjust_point)
5877 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
5878 (make_gap, copy_text, count_size_as_multibyte, insert)
5879 (insert_and_inherit, insert_before_markers)
5880 (insert_before_markers_and_inherit, insert_1)
5881 (count_combining_before, count_combining_after, insert_1_both)
5882 (insert_from_string, insert_from_string_before_markers)
5883 (insert_from_string_1, insert_from_gap, insert_from_buffer)
5884 (insert_from_buffer_1, adjust_after_replace)
5885 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
5886 (replace_range_2, del_range, del_range_1, del_range_byte)
5887 (del_range_both, del_range_2, modify_region)
5888 (prepare_to_modify_buffer, signal_before_change)
5889 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
5890 for buffer positions and sizes.
5891 * lisp.h: Adjust prototypes accordingly.
5892
5893 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
5894 (non_regular_inserted, non_regular_nbytes, read_non_regular)
5895 (Finsert_file_contents): Use EMACS_INT for buffer positions.
5896
ab226c50
SM
5897 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
5898
46dfb8fb
JD
58992009-03-27 Jan Djärv <jan.h.d@swipnet.se>
5900
5901 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
5902 lines and columns so we keep the same pixel height and width.
5903
5904 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
5905 the property _NET_WM_STATE has changed.
46dfb8fb
JD
5906 (x_handle_net_wm_state): New function to update frame parameter
5907 fullscreen.
5908 (x_term_init): Initialize atoms for _NET_WM_STATE.
5909
5910 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
5911
d347e494
SM
59122009-03-27 Kevin Ryde <user42@zip.com.au>
5913
5914 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
5915 Gpm_GetEvent as an error that justifies closing the filedescriptor.
5916 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
5917 (Fgpm_mouse_stop): Pass that new parameter.
5918 * termhooks.h (close_gpm): Adjust prototype.
5919
84db11d6
SM
59202009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
5921
c95a5008
SM
5922 * lisp.h (Fx_focus_frame): Declare.
5923
84db11d6
SM
5924 * callint.c (Fcall_interactively): For '^' just delegate the work to
5925 handle-shift-selection.
5926 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
5927
0a1958d6
CY
59282009-03-24 Chong Yidong <cyd@stupidchicken.com>
5929
0bfdff23
CY
5930 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
5931
0a1958d6
CY
5932 * data.c (Qinteractive_form): New variable.
5933 (Finteractive_form): Use it.
5934
5935 * eval.c (Fcommandp): Use Qinteractive_form.
5936
58aec0d6
JR
59372009-03-24 Jason Rumney <jasonr@gnu.org>
5938
5939 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
5940 Calculate total size precisely. Decode environment variables
5941 before substituting. (Bug#38)
5942
553dd618
KH
59432009-03-24 Kenichi Handa <handa@m17n.org>
5944
5945 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 5946 encoding (Bug#2722).
553dd618 5947
c39ea606
JD
59482009-03-23 Jan Djärv <jan.h.d@swipnet.se>
5949
5950 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
5951 that gdpy is set.
5952
bc9b2b5e
AM
59532009-03-22 Alan Mackenzie <acm@muc.de>
5954
5955 * callint.c (Finteractive): Clarify the doc string - even
5956 promptless elements need \n separators.
5957
9f995a76
JR
59582009-03-22 Jason Rumney <jasonr@gnu.org>
5959
5960 * w32term.c (syms_of_w32term): Doc fix for
5961 x-use-underline-position-properties.
5962
22749e9a
EZ
59632009-03-21 Eli Zaretskii <eliz@gnu.org>
5964
5965 * w32.c (getpwuid): Change argument type to unsigned.
5966 (struct w32_id): Change type of `rid' member to unsigned.
5967 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
5968 argument ID to unsigned. All callers changed.
5969 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
5970
e00553bf
EZ
59712009-03-20 Eli Zaretskii <eliz@gnu.org>
5972
5973 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
5974 negative, produce a float value.
5975
5976 * dired.c (make_uid, make_gid): New functions.
5977 (Ffile_attributes): Use them to avoid negative UID and GID.
5978
f761d6b6
JB
59792009-03-20 Juanma Barranquero <lekktu@gmail.com>
5980
5981 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
5982 (syms_of_keyboard) <command-hook-internal, input-method-function>:
5983 Fix typos in docstrings.
5984
d507f8d7
KH
59852009-03-19 Kenichi Handa <handa@m17n.org>
5986
5987 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
5988 changed, use font_load_for_lface to get a new font object.
5989 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
5990
5991 * frame.c (x_set_font): Handle the case that ARG is a cons.
5992
c68845e0
GM
59932009-03-19 Glenn Morris <rgm@gnu.org>
5994
5995 * fileio.c (Fsubstitute_in_file_name): Doc fix.
5996
bfa49dd1
CY
59972009-03-19 Chong Yidong <cyd@stupidchicken.com>
5998
5999 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
6000
8458d4c1
KH
60012009-03-19 Kenichi Handa <handa@m17n.org>
6002
6003 * charset.c (load_charset_map_from_file): When a mapfile can't be
6004 loaded, signal an error.
6005
78e7d1fe
EZ
60062009-03-18 Eli Zaretskii <eliz@gnu.org>
6007
6008 * dired.c (Ffile_attributes): Make sure UID and GID are always
6009 positive, even if the value is too large for a positive EMACS_INT.
6010 Doc fix.
6011
6012 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
6013
5da9fdfa
YM
60142009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6015
6016 * xmenu.c (xdialog_show): Move Fredisplay call ...
6017 (Fx_popup_dialog): ... here.
6018
7519c40d
SM
60192009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
6020
6021 * dired.c (file_name_completion): Disable the first optimization just
6022 installed, since it is not implemented correctly.
6023
2cd298e2
SM
60242009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
6025
6026 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 6027 only if the entry can affect bestmatch.
2cd298e2
SM
6028 Stop the search early, as Ftry_completion already does.
6029
48d37adf
CY
60302009-03-17 Chong Yidong <cyd@stupidchicken.com>
6031
e10c9c93 6032 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 6033
9286b16a
CY
60342009-03-15 Chong Yidong <cyd@stupidchicken.com>
6035
6036 * keyboard.c (parse_menu_item): Don't display remappings as menu
6037 equivalent bindings (Bug#788).
6038
f7b146dc
JR
60392009-03-15 Jason Rumney <jasonr@gnu.org>
6040
6041 * w32term.h (WM_EMACS_PAINT): New message.
6042 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
6043 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
6044 before passing to lisp thread. (Bug#950)
6045
f761d6b6 60462009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 6047
d93f9575
CY
6048 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
6049 variable as it was never reset.
6050 (ns_term_init): Remove initialization of Lisp-settable defaults
6051 and ns_expand_space.
6052 (-setPanelFromDefaultValues): Remove ns_expand_space.
6053 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
6054 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
6055 i.e. no additional spacing, similar to Carbon port.
6056
d93f9575
CY
6057 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
6058 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 6059
305018ec
JD
60602009-03-14 Jan Djärv <jan.h.d@swipnet.se>
6061
6062 * sound.c (alsa_configure): Remove call to deprecated
6063 snd_pcm_sw_params_set_xfer_align.
6064
f761d6b6 60652009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
6066
6067 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
6068 after clicking in a detached tool bar.
6069 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
6070
46e722a9
SM
60712009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
6072
348db3dd
SM
6073 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
6074 int/Lisp_Object mixup).
46e722a9 6075
a3d16f39
KH
60762009-03-13 Kenichi Handa <handa@m17n.org>
6077
6078 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 6079 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
6080 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
6081 (set_fontset_font): Change ARG to a vector. Handle range_list in
6082 ARG correctly.
6083 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 6084 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
6085 the above change.
6086 (fontset_from_font): Fix previous change.
fe24f56a 6087 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
6088 entry. If FONTSET is the default fontset, don't set the extra
6089 slot of the returning char-table.
6090
b066e6b6
JB
60912009-03-12 Juanma Barranquero <lekktu@gmail.com>
6092
6093 * nsfns.m (Fx_close_connection): Doc fix.
6094 (Fns_do_applescript): Reflow docstring.
6095 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
6096 (Fx_display_pixel_width, Fx_display_pixel_height)
6097 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
6098 Fix typos in docstrings.
6099 (Fns_set_alpha): Fix typos in error messages.
6100
d472514e 61012009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 6102
d472514e 6103 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
6104 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
6105 were used for such events.
6106
d472514e
JB
6107 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
6108 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 6109
d472514e 6110 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
6111 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
6112
fb930676
KH
61132009-03-11 Kenichi Handa <handa@m17n.org>
6114
ff85581a
KH
6115 * font.h (font_open_by_spec): Extern it.
6116
c50b7e98
KH
6117 * font.c (font_open_by_spec): New function.
6118 (font_open_by_name): Use font_open_by_spec.
6119
fb930676
KH
6120 * frame.c (x_set_font): When ARG is a font-object, don't alter the
6121 fontset of the frame.
6122
6123 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
6124 modify the default font of frames that use this fontset.
6125 (num_auto_fontsets): New variable.
6126 (fontset_from_font): Use num_auto_fontsets to decide a fontset
6127 name. Be sure to set FONTSET_ASCII to the correct font name.
6128 (update_auto_fontset_alist): New function.
6129
df4e8455
JB
61302009-03-11 Juanma Barranquero <lekktu@gmail.com>
6131
6132 * makefile.w32-in: Update dependencies.
6133
0a375797
AR
61342009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
6135
6136 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
6137
61313fa3
SM
61382009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
6139
6140 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
6141
b55103fb
CY
61422009-03-10 Chong Yidong <cyd@stupidchicken.com>
6143
6144 * lread.c (Feval_buffer): Doc fix.
6145
dde2559c
KH
61462009-03-09 Kenichi Handa <handa@m17n.org>
6147
6148 * charset.c (Qfile_name_handler_alist): Extern it.
6149 (load_charset_map_from_file): Temporarily bind
6150 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
6151
df4e8455 61522009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 6153
47f588bb
GM
6154 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
6155 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 6156
4ddf94bd
AR
61572009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
6158
4c9bdfc2
AR
6159 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
6160 (x_set_window_size): Change back to calculated method of setting
6161 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
6162 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
6163 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
6164
fe41ae9e
AR
6165 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
6166
4c9bdfc2
AR
6167 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
6168 accelerator in parens under GNUstep.
6169
825d0875
KH
61702009-03-06 Kenichi Handa <handa@m17n.org>
6171
6172 These changes are to detect incorrect composition sequence without
f3b3be74 6173 looking ahead the source. (Bug#2370)
825d0875
KH
6174
6175 * coding.h: Include "composite.h".
6176 (enum compisition_state): New enum.
6177 (struct compisition_status): New struct.
6178 (struct iso_2022_spec): New member cmp_status.
6179 (struct emacs_mule_spec): New struct.
6180 (struct coding_system): New members ctext_extended_segment_len and
6181 embedded_utf_8. Change the union member
6182 spec.emacs_mule_full_support to spec.emacs_mule.
6183
6184 * coding.c (CODING_ISO_CMP_STATUS): New macro.
6185 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 6186 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
6187 (ADD_COMPOSITION_DATA): New arg nbytes.
6188 (emacs_mule_char): New arg cmp_status.
6189 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
6190 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
6191 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
6192 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
6193 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
6194 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
6195 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
6196 (EMACS_MULE_COMPOSITION_END): New macro.
6197 (emacs_mule_finish_composition): New function.
6198 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
6199 (decode_coding_emacs_mule): Avoid long looking ahead while
6200 handling composition.
6201 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
6202 (ENCODE_COMPOSITION_RULE): New macro.
6203 (finish_composition): New function.
6204 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
6205 (DECODE_COMPOSITION_START): New implementation.
6206 (DECODE_COMPOSITION_END): Likewise.
6207 (STORE_COMPOSITION_RULE): New macro.
6208 (decode_coding_iso_2022): Avoid long looking ahead while handling
6209 composition, CTEXT extended segment, and embedded UTF-8.
6210 (setup_coding_system): For a coding of type iso-2022, reset
6211 CODING_ISO_EXTSEGMENT_LEN (coding) and
6212 CODING_ISO_EMBEDDED_UTF_8 (coding).
6213 (get_translation): Delete arguments last_block, from_nchars,
6214 to_nchars. Callers changed.
6215 (produce_chars): Don't modify charbuf. Adjusted for the change of
6216 get_translation.
98a326f7 6217 (produce_composition): Adjust for the new annotation sequence.
825d0875 6218 (handle_composition_annotation): Likewise.
98a326f7 6219 (consume_chars): Adjust for the change of get_translation.
825d0875 6220
ccbc4452
AR
62212009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
6222
4ddf94bd 6223 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 6224
988a7ddb
KH
62252009-03-05 Kenichi Handa <handa@m17n.org>
6226
6227 * font.c (font_select_entity): New function.
6228 (font_find_for_lface): Use font_select_entity to select a font.
6229
6230 * fontset.c (fontset_find_font): If a font found without
a8a3728b 6231 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
6232 font with C restriction.
6233
98a326f7 62342009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 6235
be1bce46 6236 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 6237
10ea2b82
JR
62382009-03-04 Jason Rumney <jasonr@gnu.org>
6239
2c93b248 6240 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 6241 characters that have already been read. (Bug#2569)
2c93b248 6242
10ea2b82
JR
6243 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
6244 Log an error message if check_image_size failed.
6245 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 6246 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 6247
71a0c011
EZ
62482009-03-02 Eli Zaretskii <eliz@gnu.org>
6249
6250 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
6251 when decoding process output.
6252
2f63bba8
RS
62532009-03-01 Richard M Stallman <rms@gnu.org>
6254
6255 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
6256
6257 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
6258
0a9564cb
EZ
62592009-02-28 Eli Zaretskii <eliz@gnu.org>
6260
6261 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
6262 (decode_coding_emacs_mule, decode_coding_iso_2022)
6263 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
6264 (decode_coding_raw_text, decode_coding_charset)
6265 (setup_coding_system, decode_eol, decode_coding, consume_chars):
6266 Honor inhibit-eol-conversion. (Bug #2186)
6267
449148b3
JR
62682009-02-28 Jason Rumney <jasonr@gnu.org>
6269
6270 * coding.c (detect_coding_charset): If not checking latin extra,
6271 fail on characters between 0x80 and 0xA0. (Bug#2354)
6272
a4aee864
EZ
62732009-02-28 Eli Zaretskii <eliz@gnu.org>
6274
6275 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 6276 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 6277
d88bee5a
GM
62782009-02-27 Glenn Morris <rgm@gnu.org>
6279
6280 * callint.c (Finteractive): Doc fix.
6281
a808f22d
KH
62822009-02-27 Kenichi Handa <handa@m17n.org>
6283
6284 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
6285
caf8d60c
CY
62862009-02-27 Chong Yidong <cyd@stupidchicken.com>
6287
6288 * font.c (font_style_to_value): Set value for unknown symbols to
6289 100 instead of 255.
b61137ea
CY
6290 (weight_table, slant_table, width_table): Treat "unspecified" as
6291 the default value.
caf8d60c 6292
1a0de25c
JB
62932009-02-26 Juanma Barranquero <lekktu@gmail.com>
6294
6295 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
6296
8fc45744
JB
62972009-02-25 Juanma Barranquero <lekktu@gmail.com>
6298
107bd7d1
JB
6299 * lread.c (Fload): Stop checking Vloads_in_progress and signal
6300 error as soon as a recursive load is detected.
8fc45744 6301
f097e223
AR
63022009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
6303
6304 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
6305 before caching.
6306
8810a12f
KH
63072009-02-24 Kenichi Handa <handa@m17n.org>
6308
6309 * fontset.c (fontset_find_font): Fix the condition for checking
6310 unavailable font.
6311
2c7d1565
GM
63122009-02-24 Glenn Morris <rgm@gnu.org>
6313
6314 * xfaces.c (Finternal_set_font_selection_order): Remove leading
6315 whitespace that confuses documentation.
6316
a20878b6
MB
63172009-02-23 Miles Bader <miles@gnu.org>
6318
6319 * process.c (Flist_system_processes, Fprocess_attributes)
6320 (syms_of_process): Rename `system-process-attributes' to
6321 `process-attributes'.
6322
b3b58c01
AS
63232009-02-22 Andreas Schwab <schwab@linux-m68k.org>
6324
1b3b981b
AS
6325 * coding.h (struct coding_system): Make safe_charsets a pointer to
6326 unsigned char.
6327 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
6328 being 255.
6329 (SAFE_CHARSET_P): Likewise.
6330 (setup_iso_safe_charsets): Properly setup safe_charsets.
6331 (Fdefine_coding_system_internal): Likewise.
6332 (setup_coding_system): Likewise. Remove unneeded casts.
6333 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
6334 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
6335 unneeded casts.
6336
b3b58c01
AS
6337 * insdel.c (del_range_2): Don't modify gap contents when called
6338 from decode_coding_object. (Bug#1809)
6339
0b6f228c
CY
63402009-02-21 Chong Yidong <cyd@stupidchicken.com>
6341
6342 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
6343 Qfont_object.
6344 (Ftype_of): Recognize font objects.
6345
6346 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
6347
6348 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
6349 moved to data.c.
6350
52f8870b
AR
63512009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
6352
6353 * nsterm.m (x_make_frame_invisible): Unset async_visible,
6354 async_iconified. Based on a patch by Christian Lynbech
6355 <christian.lynbech@tieto.com>.
6356 (EmacsView-windowDidMiniaturize:): Unset async_visible.
6357
7087d5e9
GM
63582009-02-20 Glenn Morris <rgm@gnu.org>
6359
6360 * syntax.c (Fskip_chars_forward): Fix doc typo.
6361
41d2ceef
CY
63622009-02-20 Chong Yidong <cyd@stupidchicken.com>
6363
6364 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
6365
1a3b7ca6
CY
63662009-02-19 Chong Yidong <cyd@stupidchicken.com>
6367
6368 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
6369
73cce38d
KH
63702009-02-19 Kenichi Handa <handa@m17n.org>
6371
6372 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 6373 Don't overflow coding->carryover. (Bug#2370)
73cce38d 6374
a51092ee
DN
63752009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
6376
6377 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
6378
c423ecca
KH
63792009-02-18 Kenichi Handa <handa@m17n.org>
6380
6381 * font.c (font_check_otf_features): Fix handling of `nil' element.
6382 (Ffont_spec): Describe :lang and :otf in the docstring.
6383
4c1958f4
AS
63842009-02-16 Andreas Schwab <schwab@suse.de>
6385
6386 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
6387 string.
6388
5704f39a
KH
63892009-02-16 Kenichi Handa <handa@m17n.org>
6390
6391 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 6392 (Bug#1723)
5704f39a 6393
8f0085aa
CY
63942009-02-14 Chong Yidong <cyd@stupidchicken.com>
6395
a057d86a 6396 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
6397
6398 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
6399 (handle_line_prefix): Suppress wrapping of wrap prefixes.
6400
aff01dd9
EZ
64012009-02-14 Eli Zaretskii <eliz@gnu.org>
6402
6403 * msdos.c (MAX_SCREEN_BUF): New macro.
6404 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
6405 Encode the entire run of glyphs sharing the same face, instead of
6406 doing that one glyph at a time (fixes a bug with displaying
6407 double-size characters).
6408
ba301db3
AR
64092009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
6410
6411 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
6412
6413 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
6414 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 6415 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
6416
6417 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 6418 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 6419
51d861de
SM
64202009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
6421
ac146f82 6422 * keyboard.c (adjust_point_for_property): Allow stopping between two
51d861de
SM
6423 invisible areas.
6424
7fed8996
JR
64252009-02-12 Jason Rumney <jasonr@gnu.org>
6426
631ea4fb
JR
6427 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
6428 (add_font_entity_to_list): Call check_face_name even when family
6429 is unspecified.
6430
cb4a3e42
JR
6431 * w32term.c (x_display_pixel_height, x_display_pixel_width):
6432 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 6433 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 6434
7fed8996 6435 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 6436 raster fonts. (Bug#2219)
7fed8996 6437
895416e3
KH
64382009-02-12 Kenichi Handa <handa@m17n.org>
6439
6440 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
6441 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
6442 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 6443 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
6444 (find_automatic_composition): While looking forward and backward,
6445 check static composition. Fix where to stop looking forward.
6446 (composition_adjust_point): Fix checking of static composition.
6447 (Fcomposition_get_gstring): Pay attention to
1dacf998 6448 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
6449
6450 * lisp.h (fast_looking_at): Extern it.
6451
6452 * search.c (fast_looking_at): New function.
6453
51d861de 6454 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
6455 <struct glyph>.u.cmp.to.
6456 (append_composite_glyph): Likewise.
6457
51d861de 6458 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
6459 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
6460 composition.
51d861de 6461 (append_composite_glyph): Adjust for the change of
895416e3
KH
6462 <strcut glyph>.u.cmp.to.
6463
8510724d
JB
64642009-02-11 Juanma Barranquero <lekktu@gmail.com>
6465
6466 * casetab.c (init_casetab_once):
6467 * coding.c (ALLOC_CONVERSION_WORK_AREA):
6468 * font.c (font_update_lface):
6469 * fontset.c (Fnew_fontset):
6470 * ftfont.c (ftfont_drive_otf):
6471 * xfont.c (xfont_open):
6472 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
6473
294fa707
SM
64742009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
6475
6476 * fileio.c (Fwrite_region): !NILP -> CONSP.
6477
b5bfebec
AS
64782009-02-10 Andreas Schwab <schwab@suse.de>
6479
6480 * process.c (send_process): Properly relocate pointer into data
adab88bd 6481 when using encoded data. (Bug#2272)
b5bfebec 6482
cb84a2be
KH
64832009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
6484
6485 * coding.c (detect_coding_charset): Fix previous change.
6486
89e09428
JR
64872009-02-08 Jason Rumney <jasonr@gnu.org>
6488
6489 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 6490 disappeared while hourglass was displayed. (Bug #2193)
89e09428 6491
4470a277
AS
64922009-02-07 Andreas Schwab <schwab@suse.de>
6493
6494 * unexelf.c (unexec): Fix error message.
6495
3175b12a
AR
64962009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
6497
6498 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 6499 when modal window is active. (Bug #2152)
3175b12a
AR
6500 (applicationShouldTerminate:): Remove now-unneeded while loop
6501 around NSRunAlertPanel.
6502
6503 * nsmenu.m (popupSession): New file-global variable.
6504 (pop_down_menu): End the popupSession before closing dialog.
6505 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
6506 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
6507 don't query NSApp for events (just sleep instead).
6508
8434d0b8
EZ
65092009-02-07 Eli Zaretskii <eliz@gnu.org>
6510
51d861de
SM
6511 * coding.c (syms_of_coding) <translation-table-for-input>:
6512 Modify doc string to discourage use for character code unification.
8434d0b8 6513
aa82edfd
CY
65142009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6515
6516 * atimer.c (run_timers): Update pending_atimers.
6517
2d283c7c
CY
65182009-02-06 Chong Yidong <cyd@stupidchicken.com>
6519
eb306cab
CY
6520 * image.c (svg_load_image): Fix last change.
6521
2d283c7c
CY
6522 * xfns.c (Fx_create_frame): Signal an error if no font is
6523 found (Bug#2147).
6524
4d8e170e
JB
65252009-02-05 Juanma Barranquero <lekktu@gmail.com>
6526
6527 * character.c (syms_of_character) <script-representative-chars>:
6528 Fix typo in docstring.
6529
c96169a0
AR
65302009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
6531
6532 * nsmenu.m (pop_down_menu): New function.
6533 (ns_popup_dialog): Call it on unwind.
6534 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
6535 call timer_check() (Bug#2154).
6536 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
6537 handling_signal is set.
6538 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
6539
31fd7c5c 6540 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
c96169a0
AR
6541
6542 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
6543
6544 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
6545
51d861de
SM
6546 * keyboard.c (poll_for_input_1, handle_async_input):
6547 Set handling_signal under HAVE_NS.
c96169a0 6548
aacd8ba1
GM
65492009-02-04 Glenn Morris <rgm@gnu.org>
6550
6551 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
6552
4cb75c4b
KH
65532009-02-04 Kenichi Handa <handa@m17n.org>
6554
6555 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
6556
6557 * charset.c (Fchar_charset): New optional arg restriction.
6558
6559 * coding.h (coding_system_charset_list): Extern it.
6560
6561 * coding.c (coding_system_charset_list): New function.
6562
6563 * composite.c: Include coding.h and termhooks.h.
6564 (composition_gstring_p): Fix for the terminal case.
6565 (composition_gstring_width): Likewise.
6566 (fill_gstring_body): Likewise.
6567 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
6568 the frame.
6569 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
6570 is within a composition.
867d4bb3 6571 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
6572
6573 * term.c (encode_terminal_code): Fix handling of composition.
6574 (produce_composite_glyph): For static composition, get pixel_width
6575 from struct composition.
6576
826ba17e
AS
65772009-02-02 Andreas Schwab <schwab@suse.de>
6578
6579 * unexelf.c (unexec): Handle unaligned bss offset.
6580
8ad093db
AR
65812009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
6582
6583 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
6584 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 6585
8ad093db
AR
6586 * keyboard.c (handle_interrupt): Don't call
6587 quit_throw_to_read_char() under NS.
d0a76a6e 6588
8ad093db
AR
6589 * blockinput.h: Remove NS-specific code.
6590
4d18a7a2
DN
65912009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
6592
db878925
DN
6593 * dispnew.c (window_change_signal): Don't try to get the size of a
6594 suspended tty frame.
6595 * term.c (Fresume_tty): Resize if the size has changed while the
6596 tty was suspended.
6597
4d18a7a2
DN
6598 * alloc.c (mark_stack): Properly conditionalize previous change.
6599
8984df7c
JB
66002009-01-30 Juanma Barranquero <lekktu@gmail.com>
6601
6602 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
6603 * w32term.c (w32_read_socket) [SYNC_INPUT]:
6604 Remove; this code is not used on Windows.
6605
75f4f1ac
EZ
66062009-01-30 Eli Zaretskii <eliz@gnu.org>
6607
6608 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
6609 EOLs that also has stray ^M characters.
6610
07a1e794
JB
66112009-01-30 Juanma Barranquero <lekktu@gmail.com>
6612
6613 * atimer.c (run_timers, alarm_signal_handler):
6614 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
6615 * w32inevt.c (w32_console_read_socket):
6616 * w32term.c (w32_read_socket):
6617 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
6618
a8b11cc9
CY
66192009-01-30 Chong Yidong <cyd@stupidchicken.com>
6620
6621 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
6622 Initialize it as a relative filename pattern.
6623 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
6624 (Fcall_process_region): Simplify temp file creation using
6625 temporary-file-directory.
6626
c279587b
EZ
66272009-01-29 Eli Zaretskii <eliz@gnu.org>
6628
6629 * msdos.c: Rename pending_signals to msdos_pending_signals.
6630 (sig_suspender, sigprocmask): Adjust.
6631
a8fe3242
CY
66322009-01-29 Chong Yidong <cyd@stupidchicken.com>
6633
6634 * keyboard.c (pending_signals): New var.
6635 (poll_for_input, input_available_signal, init_keyboard): Set it.
6636 (process_pending_signals): New function.
6637
6638 * lisp.h (QUIT): Check pending_signals instead of
6639 interrupt_input_pending. Use process_pending_signals.
6640
51d861de 6641 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 6642
51d861de 6643 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
6644
6645 * sysdep.c (emacs_write): Use process_pending_signals.
6646
6647 * xterm.c (XTread_socket): Update pending_signals.
6648
6649 * w32term.c (w32_read_socket): Update pending_signals.
6650
6651 * w32inevt.c (w32_console_read_socket): Update pending_signals.
6652
6570a1c4
KH
66532009-01-29 Kenichi Handa <handa@m17n.org>
6654
6655 * xftfont.c (xftfont_has_char): New function.
6656 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
6657
d72a4afa
AR
66582009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
6659
6660 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
6661 under GNUstep.
6662 (ns_query_color): New declaration.
6663
6664 * nsterm.m (ns_confirm_quit): New variable.
6665 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
6666 (EmacsApp-applicationShouldTerminate:): Use it.
6667 (EmacsPrefsController): Let user set it.
6668 (ns_query_color): New function.
6669 (ns_defined_color): Use it.
6670 (ns_initialize): Drop.
6671 (ns_term_init): Add two lines from ns_initialize(), and set
6672 input_interrupt_mode to nil.
6673
6674 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 6675 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 6676
9fe78804
KH
66772009-01-28 Kenichi Handa <handa@m17n.org>
6678
6679 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
6680 (fontset_get_font_group): Remember that no font-group is specified
6681 for C.
9fe78804 6682
fa57de36
CY
66832009-01-27 Chong Yidong <cyd@stupidchicken.com>
6684
930600e9
CY
6685 * fns.c (concat): Check for string overflow (bug#1787).
6686
fa57de36
CY
6687 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
6688 Quadruple undo limits (bug#1501).
6689
7179ce7b
KH
66902009-01-27 Kenichi Handa <handa@m17n.org>
6691
6692 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
6693 directly use GT_Get_Char_index.
6694
6695 * xftfont.c (struct xftfont_info): New member `index'.
6696
6697 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 6698 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 6699
5be8fcc0
CY
67002009-01-26 Kenichi Handa <handa@m17n.org>
6701
6702 * fontset.c (fontset_find_font): Fix handling of non-cons return
6703 value of fontset_get_font_group.
6704 (fontset_font): Revert last change.
6705
19ae3e61
JR
67062009-01-26 Jason Rumney <jasonr@gnu.org>
6707
6708 * w32font.c (w32font_list_internal): Return quickly if registry is
6709 unknown. Simplify final return.
6710 (add_font_entity_to_list): Break complex logic down into more
6711 manageable chunks. Move unknown registry check to
6712 w32font_list_internal.
6713
8612b71a
AR
67142009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
6715
6716 Changes to remove Feval calls from GUI under NS.
6717
d8038940
JB
6718 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
6719 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
6720 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
6721
6722 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
6723 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
6724 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
6725 instead of NON_ASCII_KEYSTROKE_EVENT.
6726 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
6727 (EmacsApp-applicationShouldTerminate:): Query user.
6728 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
6729 instead of Feval.
6730
6731 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
6732
6733 * keyboard.c (kbd_buffer_get_event): Check for it.
6734 (keys_of_keyboard): Define lispy keys for
6735 ns-put/unput-working-text.
6736
6737 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
6738 versions.
6739 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
6740
6288ae55
CY
67412009-01-25 Chong Yidong <cyd@stupidchicken.com>
6742
6743 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 6744 setting current_buffer directly. (Bug#2044)
6288ae55 6745
289e7f8f
CY
67462009-01-24 Chong Yidong <cyd@stupidchicken.com>
6747
5ce87308 6748 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 6749 any work. (Bug#1952, bug#1990).
5ce87308 6750
64cc3cf6 6751 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 6752
b3243e6f
AR
67532009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
6754
6755 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
6756 (ns_no_defaults): New declaration.
6757 (main): Use it.
e0d2e69a 6758
d900b2af 6759 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 6760
d900b2af 6761 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 6762
d900b2af
AR
6763 * nsterm.m (ns_no_defaults): New variable.
6764 (ns_initialize): Don't read defaults when ns_no_defaults.
6765 (EmacsView-readSelectionFromPasteboard:)
6766 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 6767 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
6768 (ns_dumpglyphs_stretch): New function.
6769 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 6770 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 6771
e0d2e69a
AR
6772 * nsimage.m (setPixmapData:): Set to ignore image DPI.
6773
3ac71f5d
CY
67742009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
6775
6776 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
6777 call for Sparc64.
6778
3fe53a83
AR
67792009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
6780
6781 * nsfns.m:
6782 * nsgui.h:
6783 * nsmenu.m:
6784 * nsselect.m:
6785 * nsterm.h:
6786 * nsterm.m: Remove '23' comments that indicated code added during
6787 update from emacs-20 -> emacs-23.
6788
10f87c6f 67892009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
6790
6791 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 6792 ns_alternate_modifier. (Bug#1217)
a3b53a85 6793
c7cef62d
AR
6794 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
6795 Display all shortcuts, including those w/o super modifier.
6796
575fb8bd
AR
6797 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
6798
918b848b
CY
67992009-01-22 Chong Yidong <cyd@stupidchicken.com>
6800
6801 * fileio.c (Vwrite_region_post_annotation_function)
6802 (Vwrite_region_annotation_buffers): New vars.
6803 (build_annotations_unwind): Just reset
6804 Vwrite_region_annotation_buffers.
6805 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
6806 Call write-region-post-annotation-function.
6807 (build_annotations): Add to Vwrite_region_annotation_buffers if
6808 buffer changes.
6809
a39e2539
AR
68102009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
6811
6812 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
6813 Tiger.
51d861de
SM
6814 * nsfns.m (ns_do_applescript):
6815 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 6816
35ed44db
AR
68172009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
6818
6819 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
6820
cbe0b5bf
AR
68212009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
6822
6823 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 6824
6049d3a0
AR
6825 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
6826
6827 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
6828 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
6829 handle Ctrl-tab. (Bug#1841)
6830 (ns_get_color): Use unsigned long long for scanned hex string value.
6831 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 6832 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 6833 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 6834 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 6835 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 6836 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 6837 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 6838
d3810c21 6839 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 6840 DPI. (Bug#1316)
d3810c21
AR
6841 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
6842 values in onTiger section.
4c7077c3 6843
e301e634
CY
68442009-01-19 Chong Yidong <cyd@stupidchicken.com>
6845
7f82490b
CY
6846 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
6847 Check return value of font_spec_from_name.
64cc3cf6 6848 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
6849
6850 * font.c (font_spec_from_name): Return Qnil if font name could not
6851 be parsed.
6852 (font_parse_name): Treat a `?' character as part of an XLFD.
6853
e301e634
CY
6854 * fns.c (Fsubstring): Doc fix.
6855
1c0db158
KH
68562009-01-19 Kenichi Handa <handa@m17n.org>
6857
51d861de 6858 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
6859 (ftfont_list): Likewise.
6860
acf20901
JB
68612009-01-18 Juanma Barranquero <lekktu@gmail.com>
6862
fff4e459
JB
6863 * dbusbind.c (Fdbus_register_signal):
6864 * process.c (conv_sockaddr_to_lisp):
6865 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
6866
acf20901
JB
6867 * callproc.c (Fgetenv_internal): Doc fix.
6868
e7abcdfb
CY
68692009-01-16 Chong Yidong <cyd@stupidchicken.com>
6870
6871 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
6872 it is not even used.
6873
b60861e6
GM
68742009-01-16 Glenn Morris <rgm@gnu.org>
6875
6876 * font.c (Ffont_variation_glyphs): Silence compiler.
6877
8db52afe
JB
68782009-01-15 Juanma Barranquero <lekktu@gmail.com>
6879
6880 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
6881 Reported by David Robinow <drobinow@gmail.com>.
6882
4cddb209
KH
68832009-01-15 Kenichi Handa <handa@m17n.org>
6884
51d861de 6885 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 6886
f247f67b
JR
68872009-01-14 Jason Rumney <jasonr@gnu.org>
6888
6889 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 6890 never a fontset. (Bug#1562)
f247f67b 6891
f56a4450
KH
68922009-01-14 Kenichi Handa <handa@m17n.org>
6893
6894 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 6895 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 6896
4e99855e
CY
68972009-01-13 Chong Yidong <cyd@stupidchicken.com>
6898
6899 * font.c (font_clear_prop): If clearing the family, clear the font
6900 width index too.
6901
fff4e459 6902 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 6903
24f01470
JB
69042009-01-12 Juanma Barranquero <lekktu@gmail.com>
6905
6906 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
6907 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
6908 functions, use sizeof.
6909
a41240a3
MR
69102009-01-12 Martin Rudalics <rudalics@gmx.at>
6911
6912 * keyboard.c (read_char): Fix case where last_nonmenu_event
6913 returned a bad value with submenus. (Bug#447)
6914
944636b8
CY
69152009-01-12 Chong Yidong <cyd@stupidchicken.com>
6916
6917 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
6918 family, clear the font width index too.
6919
0dad7c6f
JR
69202009-01-11 Jason Rumney <jasonr@gnu.org>
6921
6922 * keyboard.c (cmd_error_internal): Exit when errors occur before
6923 frame creation and not in daemon mode. (Bug#1836)
6924
7c2363af
CY
69252009-01-10 Chong Yidong <cyd@stupidchicken.com>
6926
6927 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
6928 of a display vector, backtrack.
6929 (try_window_reusing_current_matrix): Check glyph type before
6930 referencing charpos member.
6931
97b1b294
EZ
69322009-01-10 Eli Zaretskii <eliz@gnu.org>
6933
6934 Fix Bug #876:
6935
6936 * coding.c (inhibit_null_byte_detection): New variable.
6937 (detect_coding, detect_coding_system): Don't pay attention to null
6938 bytes if inhibit_null_byte_detection is non-zero.
51d861de 6939 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
6940 <inhibit-iso-escape-detection>: Doc fix.
6941
4624b6e3
JR
69422009-01-09 Jason Rumney <jasonr@gnu.org>
6943
6944 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 6945 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
6946 Only report Unicode Plane 2 fonts as unicode-sip.
6947
323b840c
CY
69482009-01-09 Chong Yidong <cyd@stupidchicken.com>
6949
51d861de
SM
6950 * xfaces.c (Fx_font_family_list): Delete function.
6951 Move compatibility version to faces.el.
323b840c 6952
51d861de 6953 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 6954
eba7400d
MR
69552009-01-09 Martin Rudalics <rudalics@gmx.at>
6956
6957 * frame.c (x_set_frame_parameters): Remember requested value for
6958 fullscreen before it's reset by the parameter handler.
6959
4b09796d
GM
69602009-01-09 Glenn Morris <rgm@gnu.org>
6961
6962 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 6963 (last_command_event): ... and update all users.
4b09796d
GM
6964 (last_input_char): For clarity, rename to...
6965 (last_input_event): ... and update all users.
6966 (last-command-char, last-input-char): Move to subr.el as aliases.
6967 * cmds.c, commands.h: Update for last_command_char rename.
6968
14ccea62
CY
69692009-01-08 Chong Yidong <cyd@stupidchicken.com>
6970
51d861de 6971 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 6972
5f004711
JR
69732009-01-08 Jason Rumney <jasonr@gnu.org>
6974
6975 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
6976 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
6977 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
6978 Don't declare.
fff4e459 6979 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
6980 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
6981
b71f6f73
KH
69822009-01-07 Kenichi Handa <handa@m17n.org>
6983
50b06221 6984 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 6985 remember the coding system used for decoding in
50b06221
KH
6986 coding_system (Bug#1039).
6987
b71f6f73 6988 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 6989 breaking the loop. (Bug#870)
b71f6f73
KH
6990 (decode_coding_utf_16, decode_coding_emacs_mule)
6991 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
6992 (decode_coding_charset): Likewise.
6993
56f668f7
MR
69942009-01-05 Martin Rudalics <rudalics@gmx.at>
6995
6996 * frame.c (x_set_frame_parameters): Make sure height (width) get
6997 applied when fullwidth (fullheight) is set. (Bug#1522)
6998
5da9424d
JB
69992009-01-04 Juanma Barranquero <lekktu@gmail.com>
7000
7001 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
7002 (utc_base): Declare as ULONGLONG, not long double.
7003 (convert_time_raw): Delete.
7004 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
7005 (initialize_utc_base): New function.
7006 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
7007 (convert_from_time_t): Use initialize_utc_base; compute result with
7008 64-bit arithmetic.
7009 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
7010
c4605e09
EZ
70112009-01-03 Eli Zaretskii <eliz@gnu.org>
7012
9acef61c 7013 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
7014 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
7015 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
7016 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
7017 [!subprocesses]: Define.
7018 (syms_of_process) [!subprocesses]: Intern and staticpro them.
7019 (Flist_system_processes, Fsystem_process_attributes)
7020 [!subprocesses]: Call list_system_processes and
7021 system_process_attributes instead of returning Qnil.
7022
9acef61c
JB
7023 * dosfns.c (system_process_attributes, list_system_processes):
7024 New functions.
c4605e09
EZ
7025
7026 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
7027
7028 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
7029 Don't use the default (no-op) implementation.
7030
8b7d0a16
JR
70312009-01-03 Jason Rumney <jasonr@gnu.org>
7032
a6d46bc1
JR
7033 * keyboard.c (parse_modifiers_uncached): Wheel events are
7034 clicks (bug#687).
7035
8b7d0a16
JR
7036 * w32term.c (x_query_colors, x_query_color): New functions.
7037
7038 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
7039 (svg_load_image): Cast returned pointers from dynamically loaded
7040 functions. Eliminate W32 specific code.
7041
bfe11752
DN
70422009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
7043
89e2438a
DN
7044 * nsfns.m (x_set_foreground_color, x_set_background_color)
7045 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
7046 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
7047 x_ prefix instead of ns_. Update references.
7048 (syms_of_nsfns): Add a FIXME comment.
7049
7050 * nsterm.m (x_set_cursor_type): New prototype.
7051 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
7052
bfe11752
DN
7053 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
7054 for Solaris instead of incorrectly providing Qutime and Qcutime.
7055
031da700
EZ
70562009-01-02 Eli Zaretskii <eliz@gnu.org>
7057
7058 * w32.c (process_times): Compute sum of utime and stime.
7059 (system_process_attributes): Add Qtime to the alist.
7060
7061 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
7062 and add them to the alist.
7063
7064 * process.c (top level) <Qtime, Qctime>: New variables.
7065 (syms_of_process): staticpro them.
7066 (Fsystem_process_attributes): Add their documentation to the doc
7067 string.
7068
7069 * process.h: Declare Qtime and Qctime.
7070
df23bf08
JR
70712009-01-02 Jason Rumney <jasonr@gnu.org>
7072
9acef61c 7073 * image.c (Qgobject): New symbol.
df23bf08
JR
7074 (syms_of_image): Initialize it.
7075 (init_svg_functions): Load some functions from gobject library.
7076
5bbdf7aa
DN
70772009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
7078
7079 * frame.c (make_terminal_frame): Remove redundant code and useless
7080 block.
7081
63136da6
AS
70822009-01-01 Andreas Schwab <schwab@suse.de>
7083
7084 * process.c (conv_sockaddr_to_lisp): Add workaround for
7085 getsockname bug on BSD.
7086
9ef69046
CY
70872009-01-01 Chong Yidong <cyd@stupidchicken.com>
7088
d6fafbe0
CY
7089 * xfns.c (x_create_tip_frame): Set border width of the X window.
7090
51d861de 7091 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 7092
f9c34147
JR
70932009-01-01 Jason Rumney <jasonr@gnu.org>
7094
9acef61c 7095 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
7096 Don't block input, as per earlier xterm.c changes.
7097
f5497e45
AR
70982008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
7099
7100 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
7101 (ns_appkit_version_int): New function.
7102 (x-server-version): Use ns_appkit_version_int and follow 21+
7103 convention of returning 3 integers.
7104
c19cab20
KH
71052008-12-30 Kenichi Handa <handa@m17n.org>
7106
7107 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
7108 (CHAR_SURROGATE_PAIR_P): New macro.
7109
7110 * font.h (struct font_driver): New member get_variation_glyphs.
7111
9acef61c 7112 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
7113 (Ffont_variation_glyphs): New function.
7114 (syms_of_font): Defsubr it.
7115
7116 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
7117 ftfont_variation_glyphs.
7118 (setup_otf_gstring): New function.
7119 (ftfont_drive_otf): Use it.
7120 (ftfont_shape_by_flt): Handle variation selector.
7121 (ftfont_variation_glyphs): New function.
7122
28cd591f
MR
71232008-12-30 Martin Rudalics <rudalics@gmx.at>
7124
7125 * frame.c (Vemacs_iconified): Remove.
7126
7f714baf
JR
71272008-12-30 Jason Rumney <jasonr@gnu.org>
7128
7129 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 7130 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 7131
9d2d22ab
CY
71322008-12-30 Chong Yidong <cyd@stupidchicken.com>
7133
7134 * indent.c (Fvertical_motion): Don't advance iterator if we have
7135 reseated to the desired position.
7136
7137 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
7138 checking for pos match.
7139
545312c2
KH
71402008-12-30 Kenichi Handa <handa@m17n.org>
7141
1ede3eb6
KH
7142 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
7143 just get the low 8-bit of the code.
7144
545312c2
KH
7145 * font.c (font_intern_prop): Validate str as multibyte.
7146
bd7bbf29
DN
71472008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
7148
31e0750e
DN
7149 * dispextern.h (struct face): Move lface and hash from the middle
7150 of bitfields.
7151
bd7bbf29
DN
7152 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
7153
b5672e7c
DN
71542008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
7155
7156 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
7157 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
7158 instead of intervals.h.
7159
d704470f
AS
71602008-12-26 Andreas Schwab <schwab@suse.de>
7161
7162 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
7163 cons.
7164
54b33868
MR
71652008-12-26 Martin Rudalics <rudalics@gmx.at>
7166
7167 * textprop.c (Qminibuffer_prompt): New variable.
7168 (syms_of_textprop): Initialize it.
7169 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
7170 in minibuffer-prompt face. (Bug#1662)
7171
40b615d6
JR
71722008-12-25 Jason Rumney <jasonr@gnu.org>
7173
7174 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
7175
baae5c2d
JR
71762008-12-24 Jason Rumney <jasonr@gnu.org>
7177
7178 * ralloc.c (r_alloc_reset_variable): New function.
7179
7180 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 7181 record of what points where. (Bug#716)
baae5c2d 7182
a9051c88
DN
71832008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
7184
7185 * minibuf.c (read_minibuf): Follow the non-interactive case when
7186 running as a daemon, before detaching.
7187
8b146312
AS
71882008-12-22 Andreas Schwab <schwab@suse.de>
7189
7190 * buffer.c (init_buffer): Use realloc instead of xrealloc.
7191 * gtkutil.c (free_widget_value): Use xfree instead of free.
7192
56f2de10
MR
71932008-12-22 Martin Rudalics <rudalics@gmx.at>
7194
7195 * frame.c (delete_frame): New function derived from
7196 Fdelete_frame to handle Qnoelisp value for FORCE argument.
7197 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
7198 (Fdelete_frame): Call delete_frame. Remove line from doc-string
7199 saying that FORCE non-nil doesn't run `delete-frame-functions'.
7200 * frame.h: Extern delete_frame.
7201 * window.c (window_loop):
7202 * terminal.c (delete_terminal):
7203 * xterm.c (x_connection_closed):
7204 * xfns.c (Fx_hide_tip):
9acef61c 7205 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 7206
1fc200d6
JR
72072008-12-21 Jason Rumney <jasonr@gnu.org>
7208
7209 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
7210 when character maps to .notdef character.
7211
5e252df2
SM
72122008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
7213
7214 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
7215
99b72cc4
JR
72162008-12-20 Jason Rumney <jasonr@gnu.org>
7217
7218 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 7219 a graphical frame on Windows. (Bug#1325)
99b72cc4 7220
acc49a52
JD
72212008-12-20 Jan Djärv <jan.h.d@swipnet.se>
7222
7223 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
7224
6ea15123
CY
72252008-12-20 Chong Yidong <cyd@stupidchicken.com>
7226
7227 * minibuf.c (Fread_buffer): Doc fix.
7228
b2dab6c8
JR
72292008-12-20 Jason Rumney <jasonr@gnu.org>
7230
54ea0c87 7231 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 7232 server name in UNC paths. (Bug#719)
54ea0c87 7233
b2dab6c8 7234 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 7235 charbuf. (Bug#1035)
b2dab6c8 7236
6d1921be
DN
72372008-12-19 Daniel Engeler <engeler@gmail.com>
7238
7239 * sysdep.c (serial_configure): Fix typo.
7240
53934c98
DN
72412008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
7242
7243 * sysdep.c: Include alloca.h.
f4f634e8
DN
7244 (system_process_attributes): Add implementation for Solaris.
7245
7246 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 7247
06e111a6
DN
72482008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
7249
7250 Reorganize implementation of Flist_system_processes and
7251 Fsystem_process_attributes. No functional changes.
7252 * process.c: Don't #include pwd.h, grp.h and limits.h.
7253 (Flist_system_processes): Just call list_system_processes.
7254 (Fsystem_process_attributes): Just call system_process_attributes.
7255 (procfs_list_system_processes, time_from_jiffies)
7256 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
7257 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
7258
7259 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
7260 (list_system_processes): Rename from
7261 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
7262 Provide a do nothing implementation.
7263 (system_process_attributes): Rename from
7264 procfs_list_system_processes.
7265 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 7266 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
7267
7268 * w32.c (list_system_processes): Rename from
7269 w32_list_system_processes.
7270 (system_process_attributes): Rename from
7271 w32_system_process_attributes.
7272
7273 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
7274
7275 * process.h (w32_list_system_processes)
7276 (w32_system_process_attributes): Remove.
362654a6
JB
7277 (list_system_processes, system_process_attributes):
7278 New prototypes.
06e111a6 7279
6a705b23
KH
72802008-12-19 Kenichi Handa <handa@m17n.org>
7281
7282 * xfont.c (xfont_decode_coding_xlfd): New function.
7283 (xfont_encode_coding_xlfd): New function.
7284 (xfont_list_pattern): Decode XLFD by iso-8859-1.
7285 (xfont_list): Decode and encode XLFD by iso-8859-1.
7286 (xfont_match): Likewise.
7287 (xfont_list_family): Likewise.
7288 (xfont_open): Likewise.
7289
d66c0241 7290 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
7291 names are utf-8.
7292
d66c0241 7293 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
7294 names are utf-8.
7295
5a130941
JD
72962008-12-18 Jan Djärv <jan.h.d@swipnet.se>
7297
7298 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
7299 changed.
bfd20325
JD
7300 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
7301 clicked on a detached tool bar button.
5a130941 7302
fd95644b
DN
73032008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
7304
7305 * emacs.c (main): Print and error and exit when no data is read
7306 from the pipe.
7307
e6eee6ae
JR
73082008-12-17 Jason Rumney <jasonr@gnu.org>
7309
7310 * w32font.c (w32font_has_char): Always return -1.
7311
a35dd56b
KH
73122008-12-16 Kenichi Handa <handa@m17n.org>
7313
7314 * font.c (font_open_entity): Fix previous change.
7315
0e3635c2
DN
73162008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
7317
7318 * process.c: Include <limits.h>.
7319
d4835507 73202008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
7321
7322 * font.c (font_update_drivers): Fix mistake in reconstructing the
7323 driver list.
7324
73252008-12-16 Chong Yidong <cyd@stupidchicken.com>
7326
7327 * font.c (font_clear_cache): Fix format of font cache data.
7328
e2cbc401
CY
73292008-12-15 Chong Yidong <cyd@stupidchicken.com>
7330
7331 * xftfont.c (xftfont_open): Free Xft font pattern if
7332 XftFontOpenPattern fails.
7333
7334 * xterm.c (x_free_frame_resources): Remove extraneous call to
7335 free_frame_faces.
7336
b131d535
CY
73372008-12-13 Chong Yidong <cyd@stupidchicken.com>
7338
7339 * xterm.c (x_delete_display): Move xim_close_dpy call to
7340 x_delete_terminal.
7341 (x_delete_terminal): Call xim_close_dpy.
7342
e6df5336
JR
73432008-12-13 Jason Rumney <jasonr@gnu.org>
7344
7345 * w32font.c (intern_font_name): New function.
7346 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
7347 (w32font_open_internal, Fx_select_font): Decode font name.
7348 (fill_in_logfont, list_all_matching_fonts): Encode font name.
7349
7350 * w32font.h (intern_font_name): Declare new function.
7351
7352 * w32uniscribe.c (add_opentype_font_name_to_list):
7353 Use intern_font_name.
7354
20d68145
CY
73552008-12-13 Chong Yidong <cyd@stupidchicken.com>
7356
9f2554de
CY
7357 * frame.c (Fdelete_frame): Call free_font_driver_list.
7358
3d9bec9a
CY
7359 * font.c (free_font_driver_list): Implement missing function.
7360
20d68145
CY
7361 * w32term.c (w32_term_init): Don't initialize the image cache
7362 here; it will be done in init_frame_faces.
7363
7364 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
7365 (struct x_display_info): Remove unused member null_pixel. New
7366 member xim_callback_data.
7367
7368 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
7369 (xim_initialize): Save pointer to callback function data.
7370 (xim_close_dpy): Free callback function data. Call XCloseIM,
7371 reverting 2008-11-04 change by David Smith.
7372 (x_term_init): Don't initialize the image cache here; it will be
7373 done in init_frame_faces. Remove ancient "null_pixel" cruft.
7374 (x_delete_display): Free x_dnd_atoms member.
7375
96f9306b
KH
73762008-12-13 Kenichi Handa <handa@m17n.org>
7377
6dec9044
JB
7378 * font.c (font_rescale_ratio): Moved from xfaces.c.
7379 Argument type changed. Handle a font-spec too.
96f9306b 7380 (font_score): Check Vface_font_rescale_alist.
6dec9044 7381 (font_open_entity): Likewise. (Bug#1547)
96f9306b
KH
7382
7383 * xfaces.c (font_rescale_ratio): Moved to font.c.
7384
8d5b4964
CY
73852008-12-13 Chong Yidong <cyd@stupidchicken.com>
7386
7387 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
7388
e6df5336
JR
73892008-12-12 Jason Rumney <jasonr@gnu.org>
7390
7391 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
7392 Vwindow_system_version to the real w32 major version.
7393
97c6058a
DN
73942008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
7395
7396 * term.c (init_tty): Move setting the terminal name before the
7397 potential user: maybe_fatal.
7398
ec4e88d7
CY
73992008-12-11 Chong Yidong <cyd@stupidchicken.com>
7400
d4835507
JB
7401 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
7402 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 7403
b4233ec9
JR
74042008-12-11 Jason Rumney <jasonr@gnu.org>
7405
8ec71e23 7406 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 7407 SYMBOL_CHARSET. (Bug#547)
8ec71e23 7408
b4233ec9 7409 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 7410 size for surrogates. (Bug#1096, bug#872)
b4233ec9 7411
011a0143
JB
74122008-12-11 Juanma Barranquero <lekktu@gmail.com>
7413
7414 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
7415
3c309f34
JB
74162008-12-11 Juanma Barranquero <lekktu@gmail.com>
7417
7418 * process.c (Fsystem_process_attributes, syms_of_process):
7419 Fix typo in name of Ssystem_process_attributes.
7420 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
7421
fedc6ab5
JB
74222008-12-11 Juanma Barranquero <lekktu@gmail.com>
7423
7424 * syntax.c (Fmodify_syntax_entry): Doc fix.
7425
ba3de0e8
JB
74262008-12-10 Juanma Barranquero <lekktu@gmail.com>
7427
7428 * font.c (Ffont_spec): Move usage to end of docstring.
7429
174f1c74
JR
74302008-12-10 Jason Rumney <jasonr@gnu.org>
7431
7432 * w32font.c (Qcham): New symbol.
7433 (font_supported_scripts): Add cham, and comments for other new
7434 scripts in bitfield from OpenType spec.
9d32f818
JR
7435 (add_font_entity_to_list): Limit unicode-sip fonts to those that
7436 contain characters beyond the bmp.
174f1c74 7437
7b649478
KH
74382008-12-10 Kenichi Handa <handa@m17n.org>
7439
7440 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 7441 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
7442 Qunicode_sip.
7443
2133e2d1
JB
74442008-12-10 Juanma Barranquero <lekktu@gmail.com>
7445
7446 * coding.c (QCdefault_char): Rename from QCdefalut_char.
7447 (Fcoding_system_put): Use QCdefault_char.
7448 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
7449
9af886ee
CY
74502008-12-09 Chong Yidong <cyd@stupidchicken.com>
7451
74d819eb
CY
7452 * xftfont.c (syms_of_xftfont): Fix typo.
7453
4ccfa1c0 7454 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 7455
7c19d3ae
DN
74562008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
7457
7458 * emacs.c (main): Close daemon_pipe on exec.
7459
567826bb
CY
74602008-12-08 Chong Yidong <cyd@stupidchicken.com>
7461
7462 * termchar.h (struct tty): New members termcap_term_buffer and
7463 termcap_strings_buffer.
7464
7465 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 7466 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
7467 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
7468 All callers changed.
7469 (init_tty): Store termcap data and string buffers in new struct
7470 tty members termcap_term_buffer and termcap_strings_buffer.
7471 (delete_tty): Free them.
4ccfa1c0 7472 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 7473
aa96c42b
SZ
74742008-12-07 Seiji Zenitani <zenitani@mac.com>
7475
7476 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 7477 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 7478
b7e1d896
CY
74792008-12-06 Chong Yidong <cyd@stupidchicken.com>
7480
7481 * coding.c (make_conversion_work_buffer): Disable buffer
7482 modification hooks in the work buffer.
7483
b5ec91a5
EZ
74842008-12-05 Eli Zaretskii <eliz@gnu.org>
7485
7486 * process.c (procfs_system_process_attributes): If `nread' has a
7487 negative value, assign zero to it.
7488
a5d2a52b
CY
74892008-12-05 Chong Yidong <cyd@stupidchicken.com>
7490
68c5540b 7491 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 7492
7bf1bb21
KH
74932008-12-05 Kenichi Handa <handa@m17n.org>
7494
7495 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
7496 second character is a combining character.
7497
2fdc7d00
EZ
74982008-12-05 Eli Zaretskii <eliz@gnu.org>
7499
7500 * process.c (procfs_system_process_attributes): Don't use cmd,
7501 cmdsize, and q without initializing them first.
7502
bf6bfba8
JR
75032008-12-04 Jason Rumney <jasonr@gnu.org>
7504
7505 * w32font.c (w32font_draw): Initialize orig_clip before getting
7506 it, and delete it when finished.
7507
a3b1a468
DN
75082008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
7509
7510 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
7511 case when running as a daemon before detaching.
7512
8b8be8eb
JB
75132008-12-03 Juanma Barranquero <lekktu@gmail.com>
7514
805f2638 7515 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 7516
b1bde622
KH
75172008-12-03 Kenichi Handa <handa@m17n.org>
7518
e500c47d
KH
7519 * font.c (font_at): Set `multibyte' at first.
7520
ca516334
KH
7521 * coding.c (decode_coding_charset): Check type of an element of
7522 vector VALIDS.
7bf1bb21 7523 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 7524
4ccfa1c0 7525 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
7526 (font_for_char): Likewise.
7527
1e5ecd37
CY
75282008-12-03 Chong Yidong <cyd@stupidchicken.com>
7529
d5b01609 7530 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
7531 (font_update_lface): Handle fonts with corrupted size specs,
7532 i.e. non-int and non-float.
d5b01609 7533
11e3a6e4 7534 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 7535 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 7536 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 7537
ab06788b
CY
7538 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
7539
1e5ecd37 7540 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 7541 underline_minimum_offset for underline position.
1e5ecd37 7542
63c125ab
DN
75432008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
7544
7545 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
7546
7547 * character.c (c_string_width): Specify the type for LEN.
7548
3a8406e1
KH
75492008-12-03 Kenichi Handa <handa@m17n.org>
7550
4ccfa1c0 7551 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 7552 (decode_coding_utf_8): Likewise.
4ccfa1c0 7553 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 7554 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 7555
651df7d9
CY
75562008-12-02 Chong Yidong <cyd@stupidchicken.com>
7557
7558 * keyboard.c (make_lispy_position): Only use PT if the selected
7559 window is current.
7560
1f625c6c
AS
75612008-12-02 Andreas Schwab <schwab@suse.de>
7562
f7741ce9
AS
7563 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
7564
1f625c6c
AS
7565 * doprnt.c (doprnt1): Fix size of charbuf.
7566
92bc2678
CY
75672008-12-02 Chong Yidong <cyd@stupidchicken.com>
7568
7569 * keyboard.c (timer_check): Revert last change.
7570
93b9e8cc
JB
75712008-12-02 Juanma Barranquero <lekktu@gmail.com>
7572
7573 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
7574
fd7a37d5
JB
75752008-12-01 Juanma Barranquero <lekktu@gmail.com>
7576
7577 * makefile.w32-in: Update dependencies.
7578 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
7579
c115043b
AS
75802008-12-01 Andreas Schwab <schwab@suse.de>
7581
7582 * font.c (register_font_driver): Use xmalloc.
7583 (font_put_frame_data): Likewise.
7584
f5668d2a
CY
75852008-12-01 Chong Yidong <cyd@stupidchicken.com>
7586
860d96be
CY
7587 * xfaces.c (realize_x_face): Make abort condition clearer.
7588
f5668d2a
CY
7589 * gtkutil.c (update_frame_tool_bar): Initialize variable.
7590
379c17e7
CY
75912008-11-30 Chong Yidong <cyd@stupidchicken.com>
7592
7593 * keyboard.c (timer_check): After a timer runs, ensure that the
7594 selected window's buffer is current.
7595
35f36d65
JB
75962008-11-30 Juanma Barranquero <lekktu@gmail.com>
7597
f952c61c
JB
7598 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
7599 It was accidentally restored by the Unicode merge.
7600
35f36d65
JB
7601 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
7602
b23077df
JB
76032008-11-29 Juanma Barranquero <lekktu@gmail.com>
7604
7605 * w32proc.c: Include "coding.h".
7606 (Fw32_short_file_name): Encode filename passed to Windows API.
7607 (Fw32_long_file_name): Encode filename passed to Windows API and
7608 decode back the result. (Bug#1433)
7609
b8ebe9dd
KH
76102008-11-29 Kenichi Handa <handa@m17n.org>
7611
8cc53f96
KH
7612 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
7613 not before accessing it.
7614
b8ebe9dd
KH
7615 * charset.c (Fdefine_charset_internal): After calculating
7616 min_char, max_char, and fastmap, copy the charset structure again.
7617 (encode_char): Fix the previous change.
7618
59bc82c0
SZ
76192008-11-28 Seiji Zenitani <zenitani@mac.com>
7620
7621 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
7622
7623 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
7624
7625 * nsterm.m (x_set_frame_alpha): New function.
7626
32247e3d
EZ
76272008-11-27 Eli Zaretskii <eliz@gnu.org>
7628
7629 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
7630
b003e5ff
JB
76312008-11-27 Juanma Barranquero <lekktu@gmail.com>
7632
7633 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
7634 pointer to check_face_name.
7635
708550f5
KH
76362008-11-27 Kenichi Handa <handa@m17n.org>
7637
7638 * category.h (SET_CATEGORY_SET): Call set_category_set.
7639 (set_category_set): Extern it.
7640
7641 * category.c (hash_get_category_set): New function.
7642 (Fmodify_category_entry): Adjusted for the change of
7643 char_table_ref_and_range. Call hash_get_category_set to get a
7644 category set to store in the table.
7645
7646 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
7647 Funify_charset.
7648
2ae37cf0 7649 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
7650 (DECODE_CHAR): Check if the decoder vector is ready.
7651 (ENCODE_CHAR): Check if the encoder char-table is ready.
7652 (maybe_unify_char): Extern it.
7653
7654 * charset.c (Vchar_unified_charset_table): Delete it.
7655 (inhibit_load_charset_map): New variable.
7656 (temp_charset_work): New variable.
7657 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
7658 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
7659 New macros.
7660 (load_charset_map): Meaning of control_flag changed. If
7661 inhibit_load_charset_map is nonzero, setup a table in
7662 temp_charset_work.
7663 (load_charset): New argument control_flag.
7664 (map_charset_for_dump): New function.
7665 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
7666 map_charset_for_dump.
7667 (Fdefine_charset_internal): If the charset method is MAP, load
7668 mapping tables by calling load_charset.
7669 (Funify_charset): Don't load a mapping table but directly set
7670 Vchar_unify_table.
7671 (maybe_unify_char): New function.
7672 (decode_char): Don't handle the deleted method MAP_DEFERRED.
7673 Handle the case of inhibit_load_charset_map being nonzero.
7674 (encode_char): Don't handle the deleted method MAP_DEFERRED.
7675 Handle the case of inhibit_load_charset_map being nonzero.
7676 (Fclear_charset_maps): Just free temp_charset_work.
7677 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
7678 variable.
7679
7680 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
7681 change of char_table_ref_and_range.
7682 (char_table_ref_and_range): Change the meaning of argument FROM
7683 and TO. Now the caller must provide initial values for *FROM
7684 and *TO.
7685
7686 * fontset.c (fontset_add): Adjusted for the change of
7687 char_table_ref_and_range.
7688 (fontset_get_font_group): Likewise.
7689 (Ffontset_info): Likewise.
7690
7691 * keymap.c (describe_vector): Adjusted for the change of
7692 char_table_ref_and_range. For char-table, put boundary between
7693 non-ASCII and 8-bit characters.
7694
7695 * print.c (print_object): For bool-vector, delete unnecessary
7696 check of ASCII_BYTE_P.
7697
9196133b
JR
76982008-11-26 Jason Rumney <jasonr@gnu.org>
7699
7700 * w32font.c (w32font_open_internal): Don't include external
9acef61c 7701 leading in font height. (Bug#879)
9196133b 7702
9f688acf
GM
77032008-11-26 Glenn Morris <rgm@gnu.org>
7704
7705 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
7706 redefinition with ifdef. (Bug#1383)
7707
90d19aff
AR
77082008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
7709
7710 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
7711
4ccfa1c0 77122008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
7713
7714 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
7715 New EmacsView methods.
7716 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
7717 Fixes bug #1048,1357,1414.
7718
77192008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
7720
7721 Fix bug #1362.
7722 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
7723 is not an indexed color.
7724 * nsterm.m (free_indexed_color): Add argument checking.
7725 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
7726
e7d5ecb3
CY
77272008-11-24 Chong Yidong <cyd@stupidchicken.com>
7728
7729 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
7730 Document confirm-after-completion value for
7731 minibuffer-completion-confirm.
7732
c285743c
JR
77332008-11-24 Jason Rumney <jasonr@gnu.org>
7734
7735 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
7736 warning.
7737
b0857706
JR
77382008-11-23 Jason Rumney <jasonr@gnu.org>
7739
7740 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
7741 restored before returning.
7742
7743 * w32font.c (check_face_name): New function.
7744 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 7745 fonts. (Bug#642)
b0857706 7746
ee50ff07
MR
77472008-11-22 Martin Rudalics <rudalics@gmx.at>
7748
7749 * buffer.c (Fswitch_to_buffer): Reword and mention new option
7750 confirm-nonexistent-file-or-buffer in doc-string.
7751
b8ff72fa
SM
77522008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
7753
7754 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
7755 Fix copy/paste typo. Add checks.
7756
cee53ed4
KH
77572008-11-21 Kenichi Handa <handa@m17n.org>
7758
7759 * coding.c (detect_coding_iso_2022): Reject invalid composition
7760 sequence.
7761 (DECODE_COMPOSITION_START): If the current source is the last
7762 block, and the current composition doesn't end, regard this
7763 sequence as invalid.
7764 (decode_coding_iso_2022): Handle invalid composition sequence.
7765
f6ef1e65
MR
77662008-11-20 Martin Rudalics <rudalics@gmx.at>
7767
7768 * window.c (coordinates_in_window): Don't return
7769 ON_VERTICAL_BORDER for the rightmost position of a mode/header
7770 line when the window is not the rightmost one. (Bug#1372)
7771
e08b1705
MR
77722008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
7773
7774 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
7775
ad98e89f
EZ
77762008-11-15 Eli Zaretskii <eliz@gnu.org>
7777
7778 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
7779 and bright_bg if noninteractive is non-zero.
7780
fb098a4b
CY
77812008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7782
7783 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
7784 x_draw_glyph_string_background.
7785
7786 * w32term.c (x_draw_glyph_string): Likewise.
7787
ce952b6e
CY
77882008-11-15 Chong Yidong <cyd@stupidchicken.com>
7789
7790 * xterm.c (x_draw_glyph_string): Stop drawing the background of
7791 the next glyph string once past the overhang width.
7792
7793 * nsterm.m (ns_draw_glyph_string): Likewise.
7794
7795 * w32term.c (x_draw_glyph_string): Likewise.
7796
26ea7079
CY
77972008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
7798
7799 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
7800 double file close.
7801
1c33c906
MR
78022008-11-14 Martin Rudalics <rudalics@gmx.at>
7803
7804 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
7805 dedicated status of window before attempting to display another
7806 buffer in it.
7807
8fc29035
JB
78082008-11-14 Juanma Barranquero <lekktu@gmail.com>
7809
7810 * msdos.c (Fmsdos_long_file_names):
7811 (syms_of_msdos) <dos-unsupported-char-glyph>:
7812 * dosfns.c (Fint86): Fix typos in docstrings.
7813
55fb4286
EZ
78142008-11-14 Eli Zaretskii <eliz@gnu.org>
7815
7816 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
7817
3fda0315
KY
78182008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
7819
7820 * puresize.h (BASE_PURESIZE): Increase to 1260000.
7821
7e849c17
CY
78222008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
7823
7824 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
7825
7826 * frame.h: Negative alpha means "don't touch".
7827
7828 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
7829
7830 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
7831
b9fd67bd
DN
78322008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
7833
7834 * hftctl.c:
7835 * chpdef.h:
7836 * acldef.h: Remove files used only for systems no longer supported.
7837
7838 * Makefile.in: Fix .o alphabetical ordering.
7839 (hftctl.o): Remove dependency, file removed.
7840 (keymap.o, print.o): Depend on charset.h.
7841
d5998e03
KH
78422008-11-10 Kenichi Handa <handa@m17n.org>
7843
2ae37cf0 7844 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 7845
be70e183
CY
78462008-11-08 Chong Yidong <cyd@stupidchicken.com>
7847
7848 * dired.c (file_name_completion): If completion_ignore_case is
7849 enabled, ignore case when checking completion-regexp-list.
7850
7cf94eac
EZ
78512008-11-08 Eli Zaretskii <eliz@gnu.org>
7852
7853 * vm-limit.c (get_lim_data): Fix last change.
7854
ee107a89
KH
78552008-11-08 Kenichi Handa <handa@m17n.org>
7856
7857 * character.c (Fget_byte): New function.
7858 (syms_of_character): Defsubr Fget_byte.
7859
5fd15622
CY
78602008-11-07 Chong Yidong <cyd@stupidchicken.com>
7861
7862 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
7863 cursor position is valid after scrolling.
7864
13d62fad
JB
78652008-11-06 Juanma Barranquero <lekktu@gmail.com>
7866
7867 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
7868
a1dd2936
GM
78692008-11-06 Glenn Morris <rgm@gnu.org>
7870
7871 * xterm.c (handle_one_xevent): Don't let popup menus cause
7872 mouse-autoselect-window related window switching. (Bug#1261)
7873
860cd236
CY
78742008-11-04 David Smith <davidsmith@acm.org> (tiny change)
7875
7876 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
7877
653a3150
AS
78782008-11-04 Andreas Schwab <schwab@suse.de>
7879
7880 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
7881
870f5cac
CY
78822008-11-03 Chong Yidong <cyd@stupidchicken.com>
7883
7884 * xfns.c (Fx_wm_set_size_hint): New function.
7885
1e02f3cb
MR
78862008-11-03 Martin Rudalics <rudalics@gmx.at>
7887
7888 * textprop.c (Fprevious_single_char_property_change): Return 0
7889 when there's no change in a string. (Bug#1301)
7890
e630dfc6
MR
78912008-11-02 Martin Rudalics <rudalics@gmx.at>
7892
7893 * frame.c (do_switch_frame): New argument NORECORD passed to
7894 Fselect_window.
7895 (Fselect_frame): New argument NORECORD passed to
7896 do_switch_frame.
7897 (Fset_frame_selected_window): New argument NORECORD passed to
7898 Fselect_frame.
7899 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
7900 in call of do_switch_frame.
7901 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
7902 Handle NORECORD argument in call of Fselect_frame.
7903 * lisp.h (do_switch_frame, Fselect_frame)
7904 (Fset_frame_selected_window): Adjust declarations.
7905 * window.c (select_frame_norecord): New function.
7906 (run_window_configuration_change_hook): Use it and call
7907 Fselect_frame with NORECORD set.
7908 (Fselect_window): Pass NORECORD to Fselect_frame.
7909 (Fset_window_configuration): Handle NORECORD argument in call of
7910 do_switch_frame.
7911 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
7912 Fset_frame_selected_window.
7913 * keyboard.c (command_loop_1): Handle NORECORD in call of
7914 Fselect_frame (currently ifdefd).
7915
9020b223
GM
79162008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
7917
7918 * emacs.c (USAGE2): Untabify.
7919
793ffee8
SM
79202008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
7921
7922 * composite.c (fill_gstring_header): Fix copy/paste typo.
7923
ab6d1131
MR
79242008-10-31 Martin Rudalics <rudalics@gmx.at>
7925
7926 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
7927 (Fother_window): Rename argument and rewrite doc-string.
7928 (select_window_norecord): Fix return value. (Bug#1276)
7929
601a9cf1
JB
79302008-10-30 Juanma Barranquero <lekktu@gmail.com>
7931
7932 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
7933 new frames overriding foreground for tooltips. Based on similar patch
7934 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
7935
813b0652
CY
79362008-10-29 Chong Yidong <cyd@stupidchicken.com>
7937
7938 * emacs.c (Fdaemon_initialized): Initialize nfd.
7939
4414f58f
MR
79402008-10-29 Martin Rudalics <rudalics@gmx.at>
7941
7942 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
7943 (Fwindow_text_height): Clarify doc-strings.
7944 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
7945 doc-string of window-scroll-functions.
7946
ecdcaa09
RS
79472008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
7948
7949 * category.c (syms_of_category): Fix typo in docstring.
7950
23fe745a
JB
79512008-10-28 Juanma Barranquero <lekktu@gmail.com>
7952
7953 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
7954 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
7955 Fix typos in docstrings.
7956
ff808935
DN
79572008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
7958
7959 * emacs.c (daemon_pipe): Make non-static.
7960 (IS_DAEMON): Move definition ...
7961 * lisp.h (IS_DAEMON): ... here.
7962 (daemon_pipe): Declare.
7963 (is_daemon): Remove.
7964 * dispnew.c (init_display): Use IS_DAEMON.
7965
fc012771
SM
79662008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
7967
7968 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
7969 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
7970
7971 * emacs.c (is_daemon): Remove.
7972 (main): Don't set is_daemon.
7973 (IS_DAEMON): New macro.
7974 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 7975 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
7976 parent exits.
7977 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
7978
d8bdbe6f
CY
79792008-10-27 Chong Yidong <cyd@stupidchicken.com>
7980
d1a072bf
CY
7981 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
7982 over-sized glyph, draw it with the default glyph width.
7983
e2e325aa
CY
7984 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
7985 glyph, draw it with the default glyph width.
7986
7987 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
7988 glyph, draw it with the default glyph width.
7989
d8bdbe6f
CY
7990 * xdisp.c (try_scrolling): When computing the distance from the
7991 scroll margin to PT, try moving some distance past the window
7992 bottom before giving up.
7993
7bfac547
MR
79942008-10-27 Martin Rudalics <rudalics@gmx.at>
7995
7996 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
7997 (Fset_window_buffer): Explain in doc-string that a window can be
7998 "strongly" dedicated to its buffer.
7999
4ff029f6
DN
80002008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
8001
8002 * emacs.c (daemon_name): New variable.
8003 (main): Deal with --daemon=SERVER_NAME.
8004 (Fdaemonp): Return a name if one was passed to --daemon.
8005
5790ef40
DN
80062008-10-26 Romain Francoise <romain@orebokech.com>
8007
f9bd0df9 8008 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
8009 (main): Create a pipe before forking, make the parent exit only after
8010 the child has closed its end of the pipe. Move closing the
8011 descriptors ...
8012 (Fdaemon_initialized): ... here. New function.
8013
f5385255
SM
80142008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
8015
4d632321
SM
8016 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
8017 the previous unoptimized table.
8018
f5385255
SM
8019 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
8020 the distinction between non-nil and non-t value of `dedicated'.
8021
6c56a0f3
CY
80222008-10-25 Chong Yidong <cyd@stupidchicken.com>
8023
8024 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 8025 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 8026
fec89261
MR
80272008-10-25 Martin Rudalics <rudalics@gmx.at>
8028
8029 * window.c (Fget_buffer_window, Fdelete_windows_on)
8030 (Freplace_buffer_in_windows): Make buffer argument optional and
8031 rename to buffer_or_name.
8032
34fcddd0
CY
80332008-10-24 Chong Yidong <cyd@stupidchicken.com>
8034
f5385255
SM
8035 * xdisp.c (handle_single_display_spec, handle_display_prop):
8036 Undo 2005-05-16 change.
34fcddd0
CY
8037 (handle_stop): Pop iterator if it's loaded with an empty string.
8038 (get_overlay_strings_1): Don't save iterator if it's loaded with
8039 an empty string (bug#1201).
8040
064766f2
KH
80412008-10-24 Kenichi Handa <handa@m17n.org>
8042
8043 * ftfont.c (ftfont_otf_features): Fix previous change.
8044 (ftfont_otf_capability): Check FeatureList.FeatureCount before
8045 calling ftfont_otf_features.
8046
f9bd0df9 80472008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
8048
8049 * font.c (font_match_p): Fix for the case that a vector of
8050 characters is in script-representative-chars.
8051
1dae9197
MA
80522008-10-24 Michael Albinus <michael.albinus@gmx.de>
8053
8054 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 8055 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
8056 (xd_read_queued_messages): Catch Qdbus_error from the macros.
8057 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
777013f2 8058 macro. (Bug#1186)
1dae9197 8059
f9bd0df9 80602008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
8061
8062 * s/sol2-10.h: New file.
8063
878a4584
JB
80642008-10-23 Juanma Barranquero <lekktu@gmail.com>
8065
8066 * xdisp.c (fill_glyph_string): Fix typo in source (though the
8067 poor beast has survived 9+ years and the jump from xterm.c!).
8068
cd265ca6
MR
80692008-10-23 Martin Rudalics <rudalics@gmx.at>
8070
8071 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
8072 Reword doc-string.
f5385255 8073 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 8074
472a4dc9
JB
80752008-10-23 Juanma Barranquero <lekktu@gmail.com>
8076
8077 * character.c (syms_of_character) <script-representative-chars>:
8078 <unicode-category-table>: Doc fixes.
8079
159bd5a2
NF
80802008-10-23 Noah Friedman <friedman@splode.com>
8081
8082 * coding.c (make_conversion_work_buffer): Check that
8083 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
8084 Fget_buffer_create.
8085
49f9c344
KH
80862008-10-23 Kenichi Handa <handa@m17n.org>
8087
8088 * font.c (font_add_log): Check the values of extra properties.
8089
12bb3111
MR
80902008-10-22 Martin Rudalics <rudalics@gmx.at>
8091
8092 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
8093 Reword doc-string.
8094 (Fset_window_parameter): Use NILP.
8095 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 8096 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 8097
bbeb4e99
JB
80982008-10-22 Juanma Barranquero <lekktu@gmail.com>
8099
8100 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
8101
81022008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
8103
8104 * nsfns.m (ns_appkit_version): New function.
8105 (x-server-version): Use it.
8106 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
8107 (x-server-vendor): Don't check_ns().
8108
8109 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
8110
a9b555d3
JB
81112008-10-22 Juanma Barranquero <lekktu@gmail.com>
8112
8113 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
8114 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
8115
4626499f
KH
81162008-10-22 Kenichi Handa <handa@m17n.org>
8117
e3681952
KH
8118 * syntax.c (scan_words): Call word_boundary_p instead of comparing
8119 scripts.
8120
4626499f
KH
8121 * category.c (word_boundary_p): Check scripts instead of charset.
8122 Handle nil value in word-separating-categories and
8123 word-combining-categories.
8124 (syms_of_category): Fix docstrings of word-separating-categories
8125 and word-combining-categories.
8126
1560f91a
EZ
81272008-10-21 Eli Zaretskii <eliz@gnu.org>
8128
8129 * coding.c (Fencode_coding_region, Fdecode_coding_region)
8130 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
8131
f4668441
MR
81322008-10-21 Martin Rudalics <rudalics@gmx.at>
8133
8134 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
8135 Rename arg "buffer" to "buffer_or_name".
8136 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
8137 it optional.
8138 (no_switch_window): Remove since the return value is not used.
a9b555d3 8139 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
8140 Consider window as dedicated when Fwindow_dedicated_p returns a
8141 non-nil value.
8142 * lisp.h: Remove prototype for no_switch_window.
8143
fd75ddb2
JD
81442008-10-21 Jan Djärv <jan.h.d@swipnet.se>
8145
8146 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 8147 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 8148
07295713
KH
81492008-10-21 Kenichi Handa <handa@m17n.org>
8150
8151 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
8152 check Vlatin_extra_code_table.
8153
712adc82
EZ
81542008-10-20 Eli Zaretskii <eliz@gnu.org>
8155
8156 * fileio.c (Fset_file_modes): Doc fix.
8157
f549eb0b
MA
81582008-10-19 Michael Albinus <michael.albinus@gmx.de>
8159
8160 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
8161 in arrays.
8162
aac0c6e3
MR
81632008-10-19 Martin Rudalics <rudalics@gmx.at>
8164
8165 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
8166 Mention kill-buffer in doc-string.
8167 (Fset_window_buffer): Reinsert tem check removed in last commit.
8168 (Fenlarge_window, Fshrink_window): Have argument names and
8169 doc-string follow Elisp manual more closely.
8170
81712008-10-18 Eli Zaretskii <eliz@gnu.org>
8172
8173 * fileio.c (Fset_file_modes): Doc fix.
8174
81752008-10-18 Martin Rudalics <rudalics@gmx.at>
8176
8177 * window.c (Fwindow_width, Fset_window_start)
8178 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
8179 (Fdelete_windows_on, Freplace_buffer_in_windows):
8180 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
8181 (Fwindow_dedicated_p): Make window argument optional.
8182 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
8183 (Fset_window_buffer): Respect any non-nil dedicated value for
8184 window. Rename "buffer" argument to "buffer_or_name".
8185
81862008-10-18 Ulrich Mueller <ulm@gentoo.org>
8187
8188 * m/sh3.h: New file, machine description for SuperH.
8189
81902008-10-17 Martin Rudalics <rudalics@gmx.at>
8191
8192 * window.c (Fsplit_window): Rename arg horflag to horizontal.
8193
81942008-10-17 Kenichi Handa <handa@m17n.org>
8195
8196 * ftfont.c (ftfont_otf_features): Fix indexing
8197 gsub_gpos->FeatureList.Feature. Check the validity of indices.
8198
81992008-10-16 Magnus Henoch <mange@freemail.hu>
8200
8201 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
8202 (Fdbus_call_method_asynchronously): Ditto.
8203 This change makes C-h f display the argument list.
8204
82052008-10-16 Chong Yidong <cyd@stupidchicken.com>
8206
8207 * fileio.c (Fexpand_file_name): Doc fix.
8208
8209 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
8210 of :foreground and :background equivalent to unspecified (20.x
8211 compatibility).
8212
82132008-10-15 Eli Zaretskii <eliz@gnu.org>
8214
8215 * buffer.c (syms_of_buffer): Doc fix.
8216
82172008-10-14 Kenichi Handa <handa@m17n.org>
8218
8219 * font.c (font_clear_prop): When clearing font width, clear the
8220 average width field too.
8221
82222008-10-12 Andreas Schwab <schwab@suse.de>
8223
8224 * ftfont.c (ftfont_shape_by_flt): Make static.
8225 * ftfont.h (ftfont_shape_by_flt): Don't declare.
8226
8227 * font.c: Don't include <m17n-flt.h>.
8228
82292008-10-10 Eli Zaretskii <eliz@gnu.org>
8230
8231 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
8232
82332008-10-09 Eli Zaretskii <eliz@gnu.org>
8234
8235 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
8236 away code.
8237
82382008-10-09 Chong Yidong <cyd@stupidchicken.com>
8239
8240 * dispnew.c (update_text_area): Avoid looping due to large glyph
8241 overhangs (bug#1070).
8242
82432008-10-09 Kenichi Handa <handa@m17n.org>
8244
8245 * fontset.c (face_for_char): If face->fontset is negative, just
8246 return ascii_face.
8247
f5385255
SM
8248 * font.c (font_delete_unmatched): Fix previous change.
8249 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
8250
82512008-10-09 Martin Rudalics <rudalics@gmx.at>
8252
8253 * frame.c (Fraise_frame): On text-only terminals select frame in
8254 order to make it visible. (Bug#1061)
8255
82562008-10-08 Chong Yidong <cyd@stupidchicken.com>
8257
8258 * fontset.c (fontset_find_font): Check frame validity.
8259
82602008-10-07 Chong Yidong <cyd@stupidchicken.com>
8261
a9b555d3 8262 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
8263 (xg_display_close): Allow Emacs to close all displays (bug#985).
8264
82652008-10-06 Andreas Schwab <schwab@suse.de>
8266
f5385255 8267 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
8268
82692008-10-06 Chong Yidong <cyd@stupidchicken.com>
8270
f5385255 8271 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 8272
a9b555d3 8273 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
8274
8275 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
8276 during initialization.
8277
82782008-10-04 Eli Zaretskii <eliz@gnu.org>
8279
8280 * xdisp.c (redisplay_internal): If frame switched, redisplay the
8281 whole thing on MSDOS frames as well as on a TTY.
8282
8283 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
8284 well as for TTY.
8285 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
8286 well as on a TTY.
8287
8288 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
8289 as well as for TTY.
8290
8291 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
8292
8293 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
8294 MSDOS frames as well.
8295
82962008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
8297
8298 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
8299 correct arguments.
b71ac3dd 8300 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
8301
83022008-10-03 Glenn Morris <rgm@gnu.org>
8303
8304 * emacs.c (USAGE1): Add --daemon.
8305
83062008-10-02 Eli Zaretskii <eliz@gnu.org>
8307
8308 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
8309 100, so it's in percents as advertised.
8310
83112008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
8312
8313 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
8314 (ns_output.current_cursor, ns_output.desired_cursor)
8315 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
8316 (FRAME_NEW_CURSOR_COLOR): Remove.
8317
8318 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 8319 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
8320 enumeration (HOLLOW_BOX_CURSOR, etc.).
8321
8322 * nsterm.m (ns_frame_rehighlight): Remove commented code.
8323 (draw_window_cursor): Simplify code.
f5385255
SM
8324 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
8325 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 8326 updates manually.
a9b555d3
JB
8327 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
8328 Use core Emacs cursor types.
aac0c6e3 8329
b8ff72fa 8330 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
8331
83322008-10-02 Martin Rudalics <rudalics@gmx.at>
8333
8334 * process.c (Faccept_process_output): Fix doc-string.
8335
83362008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
8337
8338 * gmalloc.c (__sbrk): Also define for uClibc.
8339
8340 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
8341 for uClibc.
8342
83432008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
8344
8345 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
8346 styles.
8347 (nsfont_open): Reenable the cache.
8348
83492008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
8350
8351 * font.c (font_matching_entity): Reflect ATTRS in font selection.
8352 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
8353
83542008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
8355
8356 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
8357 a suspended terminal.
8358
83592008-09-30 Michael Albinus <michael.albinus@gmx.de>
8360
8361 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
8362
83632008-09-30 Eli Zaretskii <eliz@gnu.org>
8364
8365 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
8366
83672008-09-30 Chong Yidong <cyd@stupidchicken.com>
8368
8369 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
8370 in a continued line coincides with a line beginning.
8371
83722008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
8373
8374 * nsfont.m (nsfont_trait_distance): Fix bug.
8375 (nsfont_list): Return a list rather than a vector (syncs with Handa
8376 changes of 2008-05-14).
8377 (nsfont_open): Improve logging.
8378
83792008-09-29 Andreas Schwab <schwab@suse.de>
8380
8381 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
8382
83832008-09-28 Martin Rudalics <rudalics@gmx.at>
8384
8385 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
8386 name as char-resolve-modifiers.
8387 Reported by: Markus Triska <markus.triska@gmx.at>
8388
83892008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
8390
8391 * dispnew.c (init_display): Return earlier when running as a daemon.
8392
83932008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
8394
8395 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
8396
83972008-09-27 Eli Zaretskii <eliz@gnu.org>
8398
8399 * composite.c (Fcomposition_get_gstring)
8400 (Fcompose_region_internal, Fcompose_string_internal)
8401 (Ffind_composition_internal): Doc fix.
8402 (syms_of_composite) <compose-chars-after-function>: Doc fix.
8403 (syms_of_composite) <auto-composition-function>: Doc fix.
8404 (syms_of_composite) <composition-function-table>: Doc fix.
8405
84062008-09-25 Chong Yidong <cyd@stupidchicken.com>
8407
8408 * search.c (wordify): New argument for lax word-ends.
8409 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
8410
84112008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
8412
8413 * lisp.h (is_daemon): Declare.
8414 * dispnew.c (init_display): Do not try to initialize the terminal
8415 when running as a daemon.
8416
84172008-09-22 Chong Yidong <cyd@stupidchicken.com>
8418
8419 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
8420 x_display_pixel_height.
8421
84222008-09-22 Martin Rudalics <rudalics@gmx.at>
8423
8424 * undo.c (record_point): Don't call Fundo_boundary for first
8425 change. (Bug#731)
8426
84272008-09-22 Juanma Barranquero <lekktu@gmail.com>
8428
8429 * emacs.c (Fdaemonp): Doc fix.
8430
84312008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
8432
8433 * emacs.c (main): Place #ifdef in the proper place.
8434
84352008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
8436
8437 * emacs.c (standard_args): Add --daemon.
8438 (main): Disconnect from the terminal when --daemon is passed.
8439 (is_daemon): New variable.
8440 (Fdaemonp): New function.
8441 (syms_of_emacs): Defsubr it.
8442
84432008-09-20 Chong Yidong <cyd@stupidchicken.com>
8444
8445 * xdisp.c (get_next_display_element): Handle string display
8446 correctly when checking for the end of a box run.
8447
84482008-09-20 Glenn Morris <rgm@gnu.org>
8449
8450 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
8451 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
8452 (Frename_file): Avoid copying to trash if a rename involves
8453 a delete. (Bug#964).
8454
84552008-09-20 Eli Zaretskii <eliz@gnu.org>
8456
8457 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
8458 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
8459 frames as well as termcap frames.
8460 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
8461 get_named_tty.
8462
84632008-09-19 Eli Zaretskii <eliz@gnu.org>
8464
8465 * process.c (procfs_system_process_attributes): Fix cmdline in
8466 case /proc/PID/cmdline is empty.
8467
8468 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
8469 x_display_pixel_height.
8470
84712008-09-19 Juanma Barranquero <lekktu@gmail.com>
8472
8473 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
8474
8475 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
8476 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
8477
84782008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
8479
8480 * dispextern.h (struct it): Move line_wrap away from the middle of
8481 bitfields. Move voffset in struct iterator_stack_entry after the
8482 bitfields. Move tab_width near after another short.
8483
84842008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
8485
8486 * frame.h (struct frame): Move alpha from the middle of bitfields.
8487
8488 * window.h (struct window): Move frozen_window_start_p after the
8489 rest of the bitfields to reduce padding.
8490
84912008-09-18 Chong Yidong <cyd@stupidchicken.com>
8492
8493 * xterm.h (x_display_info): Remove `height' and `width' members.
8494
8495 * nsterm.h (ns_display_info): Remove `height' and `width' members.
8496
8497 * w32term.h (w32_display_info): Remove `height', `width',
8498 `height_in', and `width_in' members.
8499
b8ff72fa
SM
8500 * xterm.c (x_display_pixel_height, x_display_pixel_width):
8501 New functions.
aac0c6e3
MR
8502 (x_calc_absolute_position): Use them.
8503 (x_term_init): Omit removed `height' and `width' members.
8504
b8ff72fa
SM
8505 * w32term.c (x_display_pixel_height, x_display_pixel_width):
8506 New functions.
aac0c6e3
MR
8507 (w32_read_socket, x_calc_absolute_position): Use them.
8508 (w32_initialize_display_info, w32_term_init): Omit removed members
8509 of w32_display_info.
8510
b8ff72fa
SM
8511 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
8512 New functions.
8513 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 8514
b8ff72fa
SM
8515 * xterm.c (x_display_pixel_height, x_display_pixel_width):
8516 New functions.
aac0c6e3
MR
8517 (x_calc_absolute_position): Use them.
8518 (x_term_init): Omit removed `height' and `width' members.
8519
8520 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
8521 (compute_tip_xy):
8522 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
8523 * xmenu.c (menu_position_func): Use x_display_pixel_height and
8524 x_display_pixel_width.
8525
85262008-09-18 Kenichi Handa <handa@m17n.org>
8527
8528 * composite.c (fill_gstring_header): Don't check FROM and TO here.
8529 (composition_compute_stop_pos): Fix handling of static composition.
8530 (Fcomposition_get_gstring): Check FROM and TO at first.
8531
85322008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
8533
46e722a9 8534 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
8535 mixup (YAILOM).
8536
85372008-09-17 Chong Yidong <cyd@stupidchicken.com>
8538
8539 * indent.c (Fvertical_motion): Use position reported by iterator
8540 instead of PT for determining screen motion (bug#943).
8541
85422008-09-17 Romain Francoise <romain@orebokech.com>
8543
8544 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
8545
85462008-09-17 Kenichi Handa <handa@m17n.org>
8547
8548 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
8549
8550 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
8551 if necessary.
8552
85532008-09-16 Kenichi Handa <handa@m17n.org>
8554
8555 * coding.c (make_conversion_work_buffer): Avoid calling
8556 Fget_buffer_create if it is not necessary.
8557
85582008-09-15 Martin Rudalics <rudalics@gmx.at>
8559
8560 * window.c (Fselect_window): Don't update window_select_count and
8561 use_time when norecord is not nil.
8562
85632008-09-14 Kenichi Handa <handa@m17n.org>
8564
8565 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
8566 specpdl_ptr.
8567
85682008-09-12 Kenichi Handa <handa@m17n.org>
8569
8570 * indent.c (scan_for_column): Don't handle automatic composition
8571 if the current buffer is not associated with a window.
8572
8573 * composite.c (composition_reseat_it): If the current buffer is
8574 not associated with a window, ignore the automatic composition.
8575 (find_automatic_composition): Likewise.
8576
85772008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
8578
8579 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
8580 (Fgpm_mouse_stop): Use it.
8581 * termhooks.h (close_gpm): Declare.
8582 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
8583 connection if Gpm_GetEvent fails.
8584
8585 * window.c (set_window_buffer): Always preserve current-buffer.
8586
85872008-09-12 Glenn Morris <rgm@gnu.org>
8588
8589 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
8590
85912008-09-11 Glenn Morris <rgm@gnu.org>
8592
8593 * charset.c (charset-map-path): Doc fix.
8594
85952008-09-10 Kenichi Handa <handa@m17n.org>
8596
8597 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
8598
8599 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
8600 compose a grapheme cluster with the preceding base glyph.
8601
8602 * composite.c (composition_compute_stop_pos): Fix previous change.
8603 Reset cmp_it->id to -1 at first.
8604
86052008-09-10 Glenn Morris <rgm@gnu.org>
8606
8607 * Makefile.in (character.o, chartab.o): Fix config.h typo.
8608
86092008-09-09 Chong Yidong <cyd@stupidchicken.com>
8610
8611 * keyboard.c (read_key_sequence): Reapply translation maps when
8612 switching keyboards.
8613
86142008-09-09 Kenichi Handa <handa@m17n.org>
8615
8616 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
8617 characters.
8618
8619 * composite.c (FORWARD_CHAR): Fix calculation
8620 of (POSITION).pos_byte.
8621 (composition_compute_stop_pos): Limit the search of composition to
8622 at most 500 characters ahead. If we reach the limit or find a
8623 newline, set cmp_it->ch to -2 and return 0.
8624 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
8625
86262008-09-08 Kenichi Handa <handa@m17n.org>
8627
8628 * indent.c (Fvertical_motion): Be sure to set
8629 it_overshoot_expected if it.cmp_it.id is non-negative.
8630
86312008-09-07 Andreas Schwab <schwab@suse.de>
8632
8633 * callproc.c (Fcall_process): Don't hold references to string data
8634 across garbage collection. Move initialisation of new_argv down
8635 to avoid compiler bug.
8636
86372008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
8638
8639 * process.c (Fsystem_process_attributes): Doc fix.
8640
86412008-09-07 Chong Yidong <cyd@stupidchicken.com>
8642
8643 * callproc.c (Fcall_process): Canonicalize current directory name.
8644
8645 * xdisp.c (move_it_to): When moving by vpos, ensure that the
8646 iterator advances to the next line if the current line ends in a
8647 continued tab.
8648
86492008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
8650
8651 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
8652 member to point to cmp_from.
8653
8654 * xdisp.c: Doc fix for references to gidx data member.
8655
86562008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
8657
8658 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
8659
86602008-09-07 Kenichi Handa <handa@m17n.org>
8661
8662 * composite.c (FORWARD_CHAR): Check STOP after
8663 incrementing (POSITION).pos.
8664
86652008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
8666
8667 * process.c (Fsystem_process_attributes): Doc fix.
8668
86692008-09-06 Chong Yidong <cyd@stupidchicken.com>
8670
8671 * keyboard.c (Ftop_level): Doc fix.
8672
86732008-09-06 Eli Zaretskii <eliz@gnu.org>
8674
8675 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
8676 minibuffer, don't let lower part of menu invade the echo area.
8677
8678 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
8679 "char *q" to access menu text and advance through it. Revert the
8680 change that displayed ">" instead of ASCII character 0x10.
8681
86822008-09-05 Eli Zaretskii <eliz@gnu.org>
8683
8684 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
8685 toggle boxes and radio buttons on MS-DOS as well.
8686
86872008-09-05 Kenichi Handa <handa@m17n.org>
8688
8689 * composite.c (autocmp_chars): Check lookback count.
8690 (composition_compute_stop_pos): Set cmp_it->lookback.
8691 (composition_reseat_it): Check lookback count.
8692 (struct position_record): New struct.
8693 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
8694 (find_automatic_composition): New function.
8695 (composition_adjust_point): Use find_automatic_composition.
8696
8697 * dispextern.h (struct composition_it): New member lookback.
8698
86992008-09-02 Chong Yidong <cyd@stupidchicken.com>
8700
8701 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
8702 if moving by a single line.
8703
87042008-09-02 Andreas Schwab <schwab@suse.de>
8705
8706 * xterm.c (x_delete_display): Fix merge error.
8707
8708 * fileio.c (Fexpand_file_name): Remove unused variables.
8709
87102008-09-02 Eli Zaretskii <eliz@gnu.org>
8711
8712 * fileio.c (Fexpand_file_name): Copy argument `name' into local
8713 storage on all platforms, not just on DOS_NT.
8714
87152008-09-02 Jason Rumney <jasonr@gnu.org>
8716
b8ff72fa
SM
8717 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
8718 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
8719
87202008-09-01 Chong Yidong <cyd@stupidchicken.com>
8721
8722 * xfaces.c (Finternal_set_alternative_font_family_alist)
8723 (Finternal_set_alternative_font_registry_alist): Properly copy
8724 entire alist structure.
8725
87262008-09-01 Kenichi Handa <handa@m17n.org>
8727
d66c0241 8728 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 8729 representative chars of the script is a vector.
d66c0241
JB
8730 (ftfont_list): Handle the case where the representative chars of
8731 the script is a vector.
aac0c6e3
MR
8732
8733 * character.c (syms_of_character): Docstring of
8734 script-representative-chars fixed.
8735
87362008-08-31 Eli Zaretskii <eliz@gnu.org>
8737
8738 * msdos.c (BUILD_CHAR_GLYPH): New macro.
8739 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
8740 the menu. Allocate larger buffer for `text', to account for
8741 possible ^C characters.
8742
87432008-08-31 Martin Rudalics <rudalics@gmx.at>
8744
8745 * xdisp.c (prepare_menu_bars): Don't call
8746 Vwindow_size_change_functions with arg Qt.
8747
87482008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
8749
8750 * font.h (font_range):
8751 * fileio.c (report_file_error):
46e722a9
SM
8752 * composite.c (composition_update_it): Yet another int/Lisp_Object
8753 mixup (YAILOM).
aac0c6e3
MR
8754
87552008-08-30 Glenn Morris <rgm@gnu.org>
8756
8757 * data.c (Fmake_variable_frame_local): Doc fix.
8758
8759 * frame.c (Fmodify_frame_parameters): Doc fix.
8760
87612008-08-30 Eli Zaretskii <eliz@gnu.org>
8762
8763 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
8764 needed by GetTokenInformation.
8765 (w32_system_process_attributes): Check return values of all system
8766 APIs.
8767
8768 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
8769 only when the state changes.
8770 (IT_update_begin, IT_update_end): Add termscript trace.
8771
8772 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
8773 clipboard is unavailable. Set dst to NULL if it doesn't point to
8774 malloc'ed data.
8775 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
8776 passing random values to xfree.
8777
8778 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 8779 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
8780
87812008-08-29 Jason Rumney <jasonr@gnu.org>
8782
8783 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
8784
87852008-08-29 Eli Zaretskii <eliz@gnu.org>
8786
8787 * composite.c (fill_gstring_body): Avoid compiler warnings.
8788
8789 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
8790 LGLYPH_SET_CODE to avoid compiler warnings.
8791
2ae37cf0 8792 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
8793
8794 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
8795
8796 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
8797 LGLYPH_SET_CODE.
8798
87992008-08-29 Kenichi Handa <handa@m17n.org>
8800
8801 * fileio.c (report_file_error): Don't downcase the first character
8802 of errstring if it is still unibyte.
8803
88042008-08-29 Kenichi Handa <handa@m17n.org>
8805
8806 These changes are to re-implement the automatic composition so
8807 that it doesn't use text properties.
8808
8809 * Makefile.in (ftfont.o): Depend on composite.h.
8810 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
8811
8812 * character.h (Vunicode_category_table): Extern it.
8813
8814 * character.c (Vunicode_category_table): New variable.
8815 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
8816
8817 * chartab.c (optimize_sub_char_table): Perform more greedy
8818 optimization.
8819
b8ff72fa
SM
8820 * composite.h (enum composition_method):
8821 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
8822 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
8823 (Vcomposition_function_table): Extern it.
8824 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
8825 (composition_gstring_put_cache, composition_gstring_from_id)
8826 (composition_gstring_p, composition_gstring_width)
8827 (composition_compute_stop_pos, composition_reseat_it)
8828 (composition_update_it, composition_adjust_point): Extern them.
8829 (Fcomposition_get_gstring): EXFUN it.
8830
d66c0241 8831 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
8832 (Vcomposition_function_table)
8833 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
8834 (gstring_hash_table, gstring_work, gstring_work_headers):
8835 New variables.
aac0c6e3
MR
8836 (gstring_lookup_cache, composition_gstring_put_cache)
8837 (composition_gstring_from_id, composition_gstring_p)
8838 (composition_gstring_width, fill_gstring_header)
8839 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
8840 (composition_reseat_it, composition_update_it)
b8ff72fa 8841 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
8842 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
8843 and gstring_work_headers. DEFVAR_LISP composition-function-table.
a73f9c9d 8844 Defsubr composition_get_gstring.
aac0c6e3
MR
8845
8846 * dispextern.h (struct glyph): New union u.cmp. Delete the member
8847 cmp_id.
8848 (struct glyph_string): Delete the member gidx. New members
8849 cmp_id, cmp_from, and cmp_to.
8850 (enum it_method): Delete GET_FROM_COMPOSITION.
8851 (struct composition_it): New struct.
8852 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
8853 Delete c, len, cmp_id, cmp_len in u.comp.
8854
8855 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 8856 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 8857 (enum lglyph_indices): Likewise.
b8ff72fa 8858 (font_range): Adjust extern.
aac0c6e3
MR
8859 (font_fill_lglyph_metrics): Extern it.
8860
8861 * font.c (QCf): New variable.
8862 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
8863 (font_prepare_composition): Delete this function.
8864 (font_range): Type and arguments changed.
8865 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
8866 (font_fill_lglyph_metrics): New function.
b8ff72fa 8867 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 8868 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
8869 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
8870 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
8871
8872 * fontset.h (font_for_char): Extern it.
8873
8874 * fontset.c (font_for_char): New function.
8875
8876 * ftfont.c: Include composite.h.
8877 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 8878 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
8879
8880 * indent.c: Include composite.h and dispextern.h.
8881 (check_composition): Delete this function.
8882 (scan_for_column): Handle composition by
8883 composition_compute_stop_pos, composition_reseat_it, and
8884 composition_update_it.
8885 (compute_motion): Likewise.
8886 (Fvertical_motion): Fix checking of composition.
8887
8888 * keyboard.c (adjust_point_for_property): Check composition by
8889 composition_adjust_point.
8890
b8ff72fa 8891 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
8892 struct glyph_string.
8893
b8ff72fa
SM
8894 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
8895 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
8896 struct glyph.
8897 (produce_composite_glyph): Likewise.
8898
b8ff72fa
SM
8899 * w32term.c (x_draw_composite_glyph_string_foreground):
8900 Adjust for the change of struct glyph_string.
aac0c6e3
MR
8901 (x_draw_glyph_string): Likewise.
8902
8903 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
8904 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
8905
8906 * xdisp.c: Include font.h.
8907 (it_props): Delete the entry for Qauto_composed.
8908 (init_iterator): Initialize it->cmp_it.id to -1.
8909 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 8910 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
8911 (handle_auto_composed_prop): Delete it.
8912 (handle_composition_prop): Handle only static composition.
8913 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
8914 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 8915 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
8916 (pop_it): Likewise.
8917 (get_next_element): Delete next_element_from_composition.
8918 (CHAR_COMPOSED_P): New macro.
8919 (get_next_display_element): For automatic composition, get a face
8920 from the font in the glyph-string.
8921 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 8922 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
8923 (next_element_from_string): Check if the character at the current
8924 position is composed by CHAR_COMPOSED_P.
8925 (next_element_from_buffer): Likewise.
d66c0241
JB
8926 (next_element_from_composition): Adjust for the change of struct it.
8927 Update it->cmp_it.
b8ff72fa
SM
8928 (dump_glyph): Adjust for the change of struct glyph.
8929 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
8930 it and struct glyph. Don't handle automatic composition here.
8931 (fill_gstring_glyph_string): New function.
8932 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 8933 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
8934 (BUILD_GSTRING_GLYPH_STRING): New macro.
8935 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
8936 automatic composition.
b8ff72fa 8937 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 8938 struct glyph.
b8ff72fa 8939 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 8940
b8ff72fa 8941 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
8942 the change of struct glyph_string.
8943 (x_draw_glyph_string): Likewise.
8944
89452008-08-29 Glenn Morris <rgm@gnu.org>
8946
8947 * buffer.c (word-wrap): Doc fix.
8948 * xdisp.c (truncate-partial-width-windows): Doc fix.
8949 Increase default to 50.
8950
89512008-08-29 Chong Yidong <cyd@stupidchicken.com>
8952
8953 * xdisp.c (update_tool_bar_unwind): New function.
8954 (update_tool_bar): Temporarily set selected frame before building
8955 tool-bar items.
8956
89572008-08-28 Michael Albinus <michael.albinus@gmx.de>
8958
8959 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
8960 snprintf, respectively.
8961 (xd_append_arg): Convert strings with Fstring_make_unibyte.
8962
89632008-08-28 Chong Yidong <cyd@stupidchicken.com>
8964
8965 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
8966 LDFLAGS to GNUstep CC invocation.
8967
89682008-08-27 Chong Yidong <cyd@stupidchicken.com>
8969
8970 * indent.c (Fvertical_motion): Revert last change. Handle the
8971 general case where we are moving forward, and PT spans multiple
8972 screen lines.
8973
8974 * eval.c (find_handler_clause): Temporarily increase
8975 max-lisp-eval-depth while printing the backtrace buffer, to
8976 guarantee that help-mode code can run.
8977
89782008-08-27 Eli Zaretskii <eliz@gnu.org>
8979
8980 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
8981 colors under -rv.
8982 (IT_set_frame_parameters): Don't swap foreground and background
8983 colors if `(reverse . t)' is present in the frame properties.
8984 (internal_terminal_init): Call init_frame_faces only for the
8985 initial frame.
8986
89872008-08-27 Andreas Schwab <schwab@suse.de>
8988
8989 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
8990
89912008-08-27 Andreas Schwab <schwab@suse.de>
8992
8993 * search.c (search_buffer): Set char_base to zero only at the end.
8994
89952008-08-27 Kenichi Handa <handa@m17n.org>
8996
b8ff72fa 8997 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
8998
89992008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
9000
9001 * xterm.c (x_term_init): Temporarily hide the partially
9002 initialized terminal while calling vendor-specific-keysyms.
9003
90042008-08-26 Eli Zaretskii <eliz@gnu.org>
9005
9006 * msdos.c (internal_terminal_init): Most initializations done only
9007 once, especially initial_screen_colors[] and termscript open.
9008
90092008-08-26 Chong Yidong <cyd@stupidchicken.com>
9010
9011 * eval.c (Fcondition_case): Doc fix.
9012
9013 * widgetprv.h (EmacsFramePart): Change font member to the new font
9014 struct.
9015
9016 * widget.c: Include character.h and font.h for XSETFONT.
9017 (setup_frame_gcs): Compute X font id from font struct, just once.
9018
90192008-08-26 Eli Zaretskii <eliz@gnu.org>
9020
9021 * term.c (get_named_tty): Fix last change.
9022
90232008-08-26 Chong Yidong <cyd@stupidchicken.com>
9024
9025 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 9026 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
9027
90282008-08-25 Eli Zaretskii <eliz@gnu.org>
9029
9030 * frame.c (do_switch_frame): Mark previously displayed frame as
9031 obscured for FRAME_MSDOS_P frames as well.
9032
90332008-08-24 Eli Zaretskii <eliz@gnu.org>
9034
9035 * frame.c (make_terminal_frame): Initialize f->terminal,
9036 f->terminal->reference_count, and scroll bars on MS-DOS as well.
9037 Set the top frame to newly created frame.
9038 (Fmake_terminal_frame): Reuse the_only_display_info.
9039
9040 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
9041 estimating available memory.
9042
b97439ce 90432008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
9044
9045 * nsterm.m (ns_draw_window_cursor): Don't call
9046 NSDisableScreenUpdates and NSEnableScreenUpdates on
9047 non-NS_IMPL_COCOA systems.
9048
90492008-08-23 Andreas Schwab <schwab@suse.de>
9050
9051 * process.c (procfs_system_process_attributes): Fix use of
9052 uninitialized variables.
9053
90542008-08-23 Eli Zaretskii <eliz@gnu.org>
9055
9056 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
9057
9058 * dispnew.c (init_display): Remove MS-DOS specific conditions for
9059 calling tty-set-up-initial-frame-faces.
9060
b8ff72fa
SM
9061 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
9062 Allow MSDOS frames along with X frames.
aac0c6e3
MR
9063
9064 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
9065 addition to output_termcap.
9066
9067 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
9068
9069 * termchar.h (FRAME_TTY): Support output_msdos_raw.
9070 (struct tty_display_info) [MSDOS]: Add fields related to mouse
9071 highlight.
9072
9073 * process.c [!subprocesses]: Define QCname.
9074 (syms_of_process): Intern and staticpro it.
9075
9076 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
9077 Adjust for changes in encoding/decoding routines.
9078 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
9079 encode_coding and decode_coding.
9080
b8ff72fa 9081 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
9082
9083 * dosfns.c: Include frame.h before termhooks.h.
9084 (dos_cleanup): Use CURTTY ()->termscript instead of a global
9085 variable termscript.
9086
9087 * s/msdos.h (USER_FULL_NAME): Define.
9088 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
9089
9090 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
9091 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
9092 pw->pw_gecos.
9093
9094 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
9095 SELECTED_FRAME as additional (1st) argument.
9096 (tty_read_avail_input): Handle output_msdos_raw in
9097 addition to output_termcap.
9098
9099 * msdos.c: Include frame.h before termhooks.h.
9100 (mouse_on, mouse_off, mouse_moveto, mouse_init)
9101 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
9102 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
9103 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
9104 (IT_set_terminal_modes, IT_reset_terminal_modes)
9105 (IT_set_frame_parameters): Use tty->termscript instead of a global
9106 variable termscript.
9107 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
9108 global variable terminal_coding. Don't refer to
9109 Vnonascii_translation_table.
9110 (internal_terminal_init): Set Vwindow_system in current_kboard.
9111 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
9112 Announce date and time of session start, if termscript is open.
9113 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
9114 term.c:init_tty). Open termscript only of not already open.
9115 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
9116 here instead of dos_ttraw. Don't initialize display if this is an
9117 initial tty. Don't set FRAME_FONT.
9118 (Vwindow_system_version): Bump to 23.
9119 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
9120 is available, set up mouse_position_hook.
9121 (dos_ttraw, IT_set_terminal_modes): If called with initial
9122 terminal, do nothing.
9123 (IT_set_frame_parameters): Handle the Qtty_type frame
9124 parameter by calling internal_terminal_init.
9125 (dos_set_window_size, show_mouse_face)
9126 (clear_mouse_face, IT_note_mode_line_highlight)
9127 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
9128 (dos_rawgetc): Use tty_display_info instead of x_display_info.
9129 (initialize_msdos_display): New function.
9130 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
9131 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
9132 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
9133 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 9134 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
9135 (request_sigio, unrequest_sigio): Don't define, now defined on
9136 sysdep.c.
9137 (IT_write_glyphs): Rewrite to use encode_terminal_code.
9138
9139 * term.c [MSDOS]: Include msdos.h.
9140 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
9141 conditional to DOS_NT. Allow only one call to this function in a
9142 session. Don't allocate a new struct tty_display_info; instead,
9143 reuse the_only_display_info. Call get_tty_size to get screen
9144 dimensions. Call init_baud_rate to set bad_rate.
9145 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
9146 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 9147 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
9148 (get_tty_terminal, get_named_tty, Ftty_type)
9149 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
9150 output_termcap.
b8ff72fa
SM
9151 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
9152 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 9153 only when subprocesses are supported.
aac0c6e3
MR
9154
9155 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
9156 f->output_data.x.
9157 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
9158 terminal devices.
9159
5582fbc7 9160 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
9161 x_output.
9162 (FRAME_FONT): Use output_data.tty.
9163 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
9164 (struct x_display_info): Rename from display_info. Update all users in
9165 msdos.c.
aac0c6e3 9166 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 9167 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
9168 (dos_ttraw): Update prototype.
9169
9170 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
9171 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
9172
91732008-08-23 Jason Rumney <jasonr@gnu.org>
9174
9175 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
9176 (fn_TIFFSetDirectory): New library function used.
9177 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
9178 (tiff_load): Use :index to select among multiple images. Set count
9179 property when multiple images exist.
9180 (gif_format): Use :index, not :image.
9181
91822008-08-23 Chong Yidong <cyd@stupidchicken.com>
9183
9184 * xdisp.c (try_scrolling): Check INT_MAX instead of
9185 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
9186 to obtain INT_MAX.
9187
91882008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
9189
9190 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
9191
91922008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
9193
9194 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
9195 GNUstep library location.
9196
91972008-08-21 Chong Yidong <cyd@stupidchicken.com>
9198
9199 * xfaces.c (x_update_menu_appearance): Check validity of menu font
9200 before using it.
9201
9202 * puresize.h (BASE_PURESIZE): Increase to 1250000.
9203
92042008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
9205
9206 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
9207 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
9208 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
9209 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
9210 (EmacsApp-cursor_blink_handler): Remove declaration.
9211 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
9212 match 01 Feb 2008 changes in xterm.c.
9213 (ns_read_socket): Add cast to avoid warning.
9214 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
9215 GNUstep.
9216
92172008-08-20 Chong Yidong <cyd@stupidchicken.com>
9218
9219 * xselect.c (x_get_foreign_selection): Return nil if desired
9220 selection could not be obtained, instead of signalling an error.
9221
92222008-08-20 David Reitter <david.reitter@gmail.com>
9223
9224 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
9225 * nsterm.m: Remove ns-specific code for cursor blinking.
9226 (ns_draw_window_cursor): Clear cursor properly rather than
9227 redrawing the area. Respect width of bar cursors.
9228 These changes enable the use of generic blink-cursor-mode and
9229 generic cursor types in NS and support smooth cursor movements (do
9230 not blink off after command).
9231 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
9232 Nextstep, too.
9233
92342008-08-19 Kenichi Handa <handa@m17n.org>
9235
9236 * font.c (Vfont_log_deferred): New variable.
9237 (font_add_log): Check Vfont_log_deferred.
9238 (font_deferred_log): New function.
9239
9240 * font.h (font_deferred_log): Extern it.
9241
9242 * fontset.c (reorder_font_vector): Use encoding charset of fonts
9243 for sorting.
9244 (face_for_char): Use deferred log.
9245
92462008-08-18 Kenichi Handa <handa@m17n.org>
9247
9248 * fontset.c (face_for_char): Add font log.
9249
9250 * font.c (font_add_log): Add the font properties :script, :lang,
9251 and :otf in the log.
9252
92532008-08-17 Chong Yidong <cyd@stupidchicken.com>
9254
9255 * xdisp.c: Remove dead code.
9256 (handle_invisible_prop, next_overlay_string): Defer call to
9257 setup_for_ellipsis.
9258 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
9259
92602008-08-15 Chong Yidong <cyd@stupidchicken.com>
9261
9262 * xfaces.c (lookup_derived_face): Properly handle possible zero
9263 return value of get_lface_attributes.
9264 (merge_faces): Don't tell lookup_derived_face to signal an error
9265 if face is not found.
9266
9267 * dired.c (Fdirectory_files): Doc fix.
9268
9269 * process.c (make_process): Initialize kill_without_query struct
9270 member.
9271
92722008-08-15 Eli Zaretskii <eliz@gnu.org>
9273
9274 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
9275 Alternative calculation of totphys for Visual Studio 6.
9276
9277 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
9278
9279 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
9280 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
9281 All users changed.
9282 (stat): Only root directory passed to GetDriveType. Allow RAM
9283 disk as well as local fixed disk when w32-get-true-file-attributes
9284 is set to `local'.
9285 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
9286 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
9287 (w32_cached_id, w32_add_to_cache): New functions.
9288 (get_name_and_id): Look account names in the cache before calling
9289 lookup_account_sid.
9290 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
9291 New initialization flags.
9292 (globals_of_w32): Initialize them to zero.
9293 (w32_system_process_attributes): Use w32_cached_id and
9294 w32_add_to_cache.
9295
92962008-08-14 Lawrence Mitchell <wence@gmx.li>
9297
9298 * lread.c (Fread_char, Fread_char_exclusive): If no character
9299 event is read before timeout is reached, return nil, rather than
9300 converting to a number.
9301
93022008-08-14 Chong Yidong <cyd@stupidchicken.com>
9303
9304 * fns.c (use_dialog_box): Doc fix.
9305
9306 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
9307 on OS X.
9308
93092008-08-13 Chong Yidong <cyd@stupidchicken.com>
9310
9311 * frame.c (Qns_parse_geometry): New var.
9312 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
9313
93142008-08-11 Chong Yidong <cyd@stupidchicken.com>
9315
9316 * xdisp.c (x_produce_glyphs): Handle the case when font has no
9317 space character in calculating tabs.
9318
93192008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
9320
9321 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
9322
93232008-08-10 Glenn Morris <rgm@gnu.org>
9324
9325 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
9326 silence gcc "limited range of data type" warnings in some
9327 make_fixnum_or_float calls.
9328
93292008-08-09 Eli Zaretskii <eliz@gnu.org>
9330
9331 * w32.c (w32_system_process_attributes): If the process does not
9332 exist, return nil.
9333
9334 * w32.c: Include thelp32.h, psapi.h and coding.h.
9335 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
9336 declarations.
9337 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
9338 (Process32Next_Proc): New typedefs.
9339 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
9340 (g_b_init_process32_next, g_b_init_open_thread_token)
9341 (g_b_init_impersonate_self, g_b_init_revert_to_self)
9342 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
9343 (g_b_init_get_process_working_set_size)
9344 (g_b_init_global_memory_status_ex): New static variables.
9345 (globals_of_w32): Initialize them.
9346 (create_toolhelp32_snapshot, process32_first, process32_next)
9347 (open_thread_token, impersonate_self, revert_to_self)
9348 (get_process_memory_info, get_process_working_set_size)
9349 (global_memory_status, global_memory_status_ex): New wrapper
9350 functions.
9351 (w32_list_system_processes, w32_system_process_attributes)
9352 (enable_privilege, restore_privilege, ltime, process_times):
9353 New functions.
9354 (convert_time_raw): New function.
9355 (convert_time): Remove conversion of FILETIME into time in 100
9356 nsec units, call convert_time_raw instead.
9357
9358 * process.h (w32_list_system_processes, w32_system_process_attributes):
9359 Add prototypes.
9360 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
9361 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
9362 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
9363 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
9364
9365 * process.c (Fsystem_process_attributes): Doc fix.
9366
93672008-08-08 Chong Yidong <cyd@stupidchicken.com>
9368
9369 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
9370 a continued multi-char glyph; if so, advance to the actual glyph.
9371
93722008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
9373
9374 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
9375
9376 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
9377 (.m.o): Use it.
9378 * config.in: Regenerate.
9379
93802008-08-07 Chong Yidong <cyd@stupidchicken.com>
9381
9382 * xdisp.c (redisplay_window): Revert last change.
9383 (try_window): Check bottom scroll margin too.
9384
93852008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
9386
9387 * config.in: Regenerate.
9388
9389 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
9390 -list-load-path-shadows'.
9391 (nsgui.h): Reduce number of things depending on it.
9392
93932008-08-06 Chong Yidong <cyd@stupidchicken.com>
9394
9395 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
9396 instead of window-end which does the wrong thing at eob.
9397 (try_cursor_movement): Minor optimization.
9398 (redisplay_window): If scroll margin is defined, don't assume
9399 window doesn't need scrolling.
9400
94012008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
9402
9403 * config.in: Regenerate.
9404
9405 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
9406 (mostlyclean): Don't delete *.d under NS.
9407
9408 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
9409
94102008-08-06 Kenichi Handa <handa@m17n.org>
9411
9412 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
9413
94142008-08-06 Andreas Schwab <schwab@suse.de>
9415
9416 * config.in: Regenerate.
9417
94182008-08-05 Chong Yidong <cyd@stupidchicken.com>
9419
9420 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
9421 forcing a window start.
9422
9423 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
9424 (auto_save_1): Update modtime when auto-save-list-file-name is on.
9425
94262008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
9427
9428 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
9429 argument.
9430
94312008-08-05 Juanma Barranquero <lekktu@gmail.com>
9432
9433 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
9434 <scroll-down-aggressively, before-change-functions>:
9435 <after-change-functions>: Reflow docstrings.
9436
94372008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
4e2af782 9438 Ken Raeburn <raeburn@gnu.org>
aac0c6e3
MR
9439
9440 Dock menu customization, based on a patch by Ken Raeburn, plus some
9441 other fixes.
9442 * nsmenu.m (dockMenu): New variable.
9443 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
9444
9445 * nsterm.h (dockMenu): Declare.
9446
9447 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
9448 (ns_term_init): Initialize dockMenu.
9449 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
9450 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
9451 left.
9452
9453 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
9454
94552008-08-04 Chong Yidong <cyd@stupidchicken.com>
9456
9457 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
9458
9459 * config.in: Regenerate.
9460
94612008-08-04 Seiji Zenitani <zenitani@mac.com>
9462
9463 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
9464
94652008-08-04 Chong Yidong <cyd@stupidchicken.com>
9466
9467 * nsterm.h (find_and_call_menu_selection): Fix prototype.
9468
94692008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
9470
9471 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
9472
9473 * keyboard.h: Comment an #endif.
9474
9475 * lisp.h (have_menus_p): Adjust comment.
9476
9477 * menu.c (find_and_return_menu_selection): Fix comparison with
9478 client_data.
9479
9480 * nsmenu.m (popup_activated_flag): New variable.
9481 (popup_activated): New function.
9482 (menu-or-popup-active-p): New exported lisp definition.
9483 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
9484 when popup done.
9485 (ns_popup_dialog): Set popup_activated_flag.
9486
9487 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
9488 version for GNUstep (handled by conditional typedef in nsterm.m).
9489 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
9490 in rgb.txt).
9491
9492 * process.c (init_process): Use DARWIN_OS, not DARWIN.
9493
9494 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
9495
9496 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
9497
9498 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
9499 shortcircuit if popup_activated like GTK and X toolkit.
9500
9501 * m/inter386.h: Change DARWIN to DARWIN_OS.
9502
9503 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
9504 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
9505 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
9506 comment on NO_SOCK_SIGIO.
9507
95082008-08-03 Chong Yidong <cyd@stupidchicken.com>
9509
9510 * nsterm.m (windowDidResize): Remove stopModal call.
9511
95122008-08-03 Andreas Schwab <schwab@suse.de>
9513
9514 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
9515 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
9516
95172008-08-02 Chong Yidong <cyd@stupidchicken.com>
9518
9519 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
9520 Don't use uninitialized pointer variable when using getrlimit.
9521
95222008-08-02 Jason Rumney <jasonr@gnu.org>
9523
9524 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
9525
95262008-08-02 Eli Zaretskii <eliz@gnu.org>
9527
9528 * alloc.c (NSTATICS): Bump to 0x640.
9529
9530 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
9531
9532 * lisp.h: Add prototype for directory_files_internal.
9533
9534 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
9535 New functions.
9536 (syms_of_process): Defsubr them. Add initializations for various
9537 Q* symbols used in procfs_system_process_attributes.
9538 (procfs_list_system_processes, procfs_system_process_attributes)
9539 [HAVE_PROCFS]: New functions.
9540 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
9541 (procfs_get_total_memory): New functions.
9542
95432008-08-01 Juanma Barranquero <lekktu@gmail.com>
9544
9545 * xfaces.c (Fx_load_color_file): Fix previous change;
9546 it is #ifdef WINDOWSNT, not WINDOWS_NT.
9547
95482008-08-01 Michael Albinus <michael.albinus@gmx.de>
9549
9550 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
9551
95522008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
9553
9554 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
9555
95562008-08-01 Chong Yidong <cyd@stupidchicken.com>
9557
9558 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
9559
9560 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
9561 define NSApplicationDelegateReplySuccess.
9562 (EmacsView -converstationIdentifier): Use long instead of
9563 NSInteger for GNUstep, since it doesn't have NSInteger.
9564
9565 * xmenu.c: Revert last change.
9566
9567 * keyboard.h: Fix last change.
9568
95692008-08-01 Juanma Barranquero <lekktu@gmail.com>
9570
9571 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
9572 on Windows.
9573
95742008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
9575
9576 Warning clearing and clean-up in NS port.
9577 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
9578 Add prototypes.
9579 * nsgui.h (FACE_DEFAULT): Remove, unused.
9580 (XGCValues): Change colors to unsigned long.
9581 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
9582 nsterm.m.
9583 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
9584 (ns_list_fonts): Remove, unused.
9585 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
9586 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
9587 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
9588 (nsfont_draw): Compare face colors to 0, not nil.
9589 * nsmenu.m (struct widget_value): Drop unneeded declaration.
9590 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
9591 (-addSubmenuWithTitle:): Use NSMenuItem class.
9592 (ns_popup_menu): Use NO, not NULL, for enabled setting.
9593 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
9594 (ns_clip_to_row): Make gc arg a BOOL.
9595 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
9596 ns_clip_to_row() call.
9597 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
9598 used). Cast FRAME_FONT assignments.
9599 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
9600 (ns_string_to_lispmod): Change arg to const char.
9601 (ns_term_init): Use NSMenuItem class.
9602 (EmacsApp -openFile:): Move to different section of file.
9603 (EmacsApp -application:openFiles:): Don't return a value, call
9604 -replyToOpenOrPrint:.
9605 (EmacsView -keyDown:): Fix up cast.
9606 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
9607 (EmacsView -menuDown:): Cast tag in call to
9608 find_and_call_menu_selection().
9609 (ns_list_fonts): Remove, unused.
9610 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
9611 (ns_fontname_to_xlfd): Make static.
9612 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
9613 Remove prototypes (now in keyboard.h).
9614 (next_menubar_widget_id): Remove, unused.
9615 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
9616 Remove prototypes (now in keyboard.h).
9617 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
9618
96192008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
9620
9621 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
9622 (floatfns.o): Depend on syssignal.h.
9623 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
9624
9625 * systty.h: Fix previous change that removed BSD_TERMIOS.
9626 Add comments to #ifdefs.
9627
96282008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
9629
9630 * w32fns.c (w32-load-color-file): Remove.
9631 (x-open-connection): Use renamed Fx_load_color_file.
9632 * xfaces.c (x-load-color-file): Add.
9633 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
9634 Emacs.clr.
9635 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
9636
96372008-07-31 Michael Albinus <michael.albinus@gmx.de>
9638
9639 * dbusbind.c (Fdbus_call_method_asynchronously)
9640 (Fdbus_method_error_internal): New defuns.
9641 (xd_read_message): Handle also reply messages.
9642 (Vdbus_registered_functions_table): Extend docstring.
9643
96442008-07-31 Juanma Barranquero <lekktu@gmail.com>
9645
9646 * keyboard.c (gobble_input): Fix previous change.
9647
96482008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
9649
9650 * bitmaps/README:
9651 * xfns.c:
9652 * termcap.c:
9653 * term.c:
9654 * syswait.h:
9655 * systty.h:
9656 * systime.h:
9657 * syssignal.h:
9658 * sysdep.c:
9659 * process.h:
9660 * process.c:
9661 * print.c:
9662 * ndir.h:
9663 * lread.c:
9664 * keyboard.c:
9665 * getpagesize.h:
9666 * floatfns.c:
9667 * fileio.c:
9668 * emacs.c:
9669 * doc.c:
9670 * dispnew.c:
9671 * dired.c:
9672 * data.c:
9673 * callproc.c:
9674 * buffer.c:
9675 * README:
9676 * Makefile.in:
9677 * s/template.h:
9678 * s/msdos.h:
9679 * m/vax.h: Remove VMS support.
9680 * s/vms.h:
9681 * vlimit.h:
9682 * uaf.h:
9683 * temacs.opt:
9684 * param.h:
9685 * ioctl.h: Remove file.
9686
96872008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
9688
9689 * s/ms-w32.h (MULTI_KBOARD): Remove.
9690 * xterm.c:
9691 * xselect.c:
9692 * xfns.c:
9693 * window.c:
9694 * w32term.c:
9695 * w32fns.c:
9696 * terminal.c:
9697 * termhooks.h:
9698 * term.c:
9699 * sysdep.c:
9700 * keyboard.h:
9701 * keyboard.c:
9702 * frame.h:
9703 * frame.c:
9704 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
9705 * config.in: Regenerate.
9706
97072008-07-30 Jason Rumney <jasonr@gnu.org>
9708
9709 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
9710
9711 * w32font.c (w32font_encode_char): Leave as unicode if in range.
9712 (w32font_open_internal): Get unicode version of textmetrics.
9713 Don't enable or disable glyph indices here.
9714 (w32font_open): Disable use of glyph indices.
9715
9716 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
9717
97182008-07-30 Chong Yidong <cyd@stupidchicken.com>
9719
9720 * minibuf.c (Vread_buffer_function): Doc fix.
9721
97222008-07-30 John Paul Wallington <jpw@pobox.com>
9723
9724 * minibuf.c (read_buffer_completion_ignore_case): New var.
9725 (Fread_buffer): Use it.
9726
97272008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
9728
9729 * systty.h (sensemode): Remove empty #if. Remove reference to
9730 BSD_TERMIOS, unused.
9731
9732 * sysdep.c: Remove reference to DGUX.
9733 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
9734
9735 * config.in: Regenerate.
9736
97372008-07-30 Jason Rumney <jasonr@gnu.org>
9738
9739 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
9740
97412008-07-29 Jason Rumney <jasonr@gnu.org>
9742
9743 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
9744 is populated.
9745 (uniscribe_encode_char): Always use uniscribe.
9746 Avoid using context if cache is populated.
9747
97482008-07-29 Jan Djärv <jan.h.d@swipnet.se>
9749
9750 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
9751 open menu.
9752
9753 * gtkutil.c (menu_nav_ended): Remove.
9754 (create_menus): Remove signal connect for menu_nav_ended.
9755
97562008-07-28 Chong Yidong <cyd@stupidchicken.com>
9757
9758 * xdisp.c (redisplay_window): Check return value of
9759 compute_window_start_on_continuation_line before forcing a window
9760 start.
9761
97622008-07-28 Jason Rumney <jasonr@gnu.org>
9763
9764 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
9765
9766 * w32term.c (w32_enable_unicode_output, cleartype_active):
9767 Remove obsolete display options.
9768 (x_draw_glyph_string_background): Don't use old cleartype_active
9769 workaround.
9770 (w32_initialize): Remove cleartype_active initialization.
9771 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
9772
97732008-07-28 Andreas Schwab <schwab@suse.de>
9774
9775 * lisp.h (init_weak_hash_tables, syms_of_font)
9776 (xd_read_queued_messages, syms_of_dbusbind): Declare.
9777 (remove_hash_entry): Don't declare.
9778 * eval.c (maybe_call_debugger): Make static and move before use.
9779 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
9780 * xdisp.c: Include "gtkutil.h" if USE_GTK.
9781 * xterm.h (x_set_frame_alpha): Declare.
9782
97832008-07-28 Jan Djärv <jan.h.d@swipnet.se>
9784
9785 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
9786 (create_menus): Connect selection-done to menu_nav_ended.
9787
97882008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
9789
9790 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
9791 Set Vx_resource_name to a fallback. Replace read of 'buffered'
9792 parameter with read of 'alpha' one.
9793 (Qns_frame_parameter): Remove.
5582fbc7 9794 * nsselect.m (selection-coding-system)
aac0c6e3
MR
9795 (next-selection-coding-system, Vselection_coding_system)
9796 (Vnext_selection_coding_system): Drop.
9797
97982008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
9799
9800 * nsfns.m (do-applescript, do_applescript): Rename to
9801 ns-do-applescript, ns_do_applescript, and move within file.
9802
98032008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
9804
9805 Remove support for Mac Carbon.
9806 * mactoolbox.c:
9807 * macterm.h:
9808 * macterm.c:
9809 * macselect.c:
9810 * macmenu.c:
9811 * macgui.h:
9812 * macfns.c:
9813 * mac.c: Remove file.
9814 * s/darwin.h:
9815 * m/intel386.h:
9816 * xfaces.c:
9817 * xdisp.c:
9818 * window.c:
9819 * tparam.c:
9820 * termhooks.h:
9821 * termcap.c:
9822 * term.c:
9823 * syssignal.h:
9824 * sysselect.h:
9825 * sysdep.c:
9826 * process.c:
9827 * lread.c:
9828 * lisp.h:
9829 * keyboard.c:
9830 * image.c:
9831 * fringe.c:
9832 * frame.h:
9833 * frame.c:
9834 * fontset.c:
9835 * font.h:
9836 * font.c:
9837 * fns.c:
9838 * fileio.c:
9839 * emacs.c:
9840 * dispnew.c:
9841 * dispextern.h:
9842 * config.in:
9843 * atimer.c:
2ae37cf0 9844 * Makefile.in: Remove code for Carbon.
aac0c6e3 9845
f0131492 98462008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
9847
9848 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
9849
98502008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9851
9852 * macterm.h (kCGBitmapByteOrder32Host): New define for
9853 non-universal SDKs.
9854
9855 * image.c (mac_create_cg_image_from_image, image_load_image_io)
9856 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
9857
9858 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
9859 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
9860
98612008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
9862
9863 * w32inevt.c: Include dispextern.h.
9864
98652008-07-26 Andreas Schwab <schwab@suse.de>
9866
9867 * print.c (print_object): Fix off-by-one in last change.
9868
98692008-07-25 Juanma Barranquero <lekktu@gmail.com>
9870
9871 * term.c (syms_of_term): Don't initialize default_orig_pair,
9872 default_set_foreground and default_set_background on Windows.
9873
98742008-07-25 Jason Rumney <jasonr@gnu.org>
9875
9876 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
9877 ScriptItemize. Clean up return value checking. Remove unused
9878 variables.
9879 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
9880 shaping engine.
9881
9882 * w32font.c (w32font_has_char): Handle the case where we can't
9883 determine the script for a character.
9884
98852008-07-25 Chong Yidong <cyd@stupidchicken.com>
9886
9887 * term.c (syms_of_term): Initialize default_orig_pair,
9888 default_set_foreground, and default_set_background.
9889
9890 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
9891 clash (bug#86).
9892 (getloadavg): Callers changed.
9893
9894 * image.c (svg_load_image): Fix last change.
9895 (svg_load_image): Use rsvg_handle_get_dimensions to check that
9896 image size is valid. Use g_object_unref instead of deprecated
9897 rsvg_handle_free to free rsvg handle.
9898 (x_from_xcolors): Don't initialize pixmap (silence compiler).
9899
99002008-07-25 Jason Rumney <jasonr@gnu.org>
9901
9902 * w32font.c (w32font_encode_char): Encode characters outside BMP as
9903 surrogates before looking up glyph index.
9904 (w32font_text_extents): Encode as surrogates if falling back to
9905 functions that need UTF-16 wide chars.
9906
9907 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
9908 BMP as surrogates before looking up glyph index.
9909
99102008-07-25 Chong Yidong <cyd@stupidchicken.com>
9911
9912 * image.c (svg_load_image): Check for failure in return value of
9913 rsvg_handle_get_pixbuf. Free rsvg handle when done.
9914
99152008-07-25 Jason Rumney <jasonr@gnu.org>
9916
9917 * w32font.c (Fx_select_font): Reverse sense of second arg.
9918
99192008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
9920
9921 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
9922 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
9923
9924 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
9925 (PURESIZE): Use it.
9926
99272008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
9928
9929 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
9930 * m/alpha.h (TEXT_END):
9931 * m/ibmrs6000.h (TEXT_END):
9932 * m/macppc.h (TEXT_END):
9933 * s/darwin.h (TEXT_END):
9934 * s/msdos.h (TEXT_END): Remove, unused.
9935 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
9936 * s/cygwin.h: Remove comment.
9937
9938 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
9939 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
9940 * m/intel386.h (DOT_GLOBAL_START):
9941 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
9942 (USG): Remove, file not used on USG platforms.
9943
9944 * Makefile.in (HAVE_X11): Remove empty #else.
9945
99462008-07-24 Andreas Schwab <schwab@suse.de>
9947
9948 * fileio.c (Finsert_file_contents): Properly adjust undo list
9949 after format conversion.
9950
99512008-07-24 Jan Djärv <jan.h.d@swipnet.se>
9952
9953 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
9954 (menu_nav_ended): Remove.
9955 (create_menus): Remove signal connect for menu_nav_ended.
9956 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
9957 create_menus.
9958 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
9959
99602008-07-23 Jason Rumney <jasonr@gnu.org>
9961
9962 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
9963 with opened font.
9964 (w32font_open): Set font type to gdi.
9965
9966 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
9967
99682008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
9969
9970 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
9971 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
9972 defines it.
9973 * unexec.c (ADDR_CORRECT): Define unconditionally.
9974
9975 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
9976
9977 * unexec.c: Remove code depending on !COFF and USG, the file is
9978 not used for such systems.
9979
9980 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
9981 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
9982 (LD_SWITCH_SYSTEM_1): Remove, update users.
9983
9984 * s/darwin.h (DATA_END):
9985 * m/intel386.h (DATA_END):
9986 * m/ibmrs6000.h (DATA_END):
9987 * m/alpha.h (DATA_END): Remove, unused.
9988
9989 * config.in: Regenerate.
9990 * s/ms-w32.h (subprocesses): Define unconditionally.
9991 * s/template.h (subprocesses): Update comment.
9992 * s/vms.h (subprocesses):
9993 * s/usg5-4.h (subprocesses):
9994 * s/hpux10-20.h (subprocesses):
9995 * s/gnu-linux.h (subprocesses):
9996 * s/cygwin.h (subprocesses):
9997 * s/bsd-common.h (subprocesses):
9998 * s/aix4-2.h (subprocesses):
9999 * s/darwin.h (subprocesses): Do not define, defined by default now.
10000
10001 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
10002 Remove all references.
10003 (temacs): Add GNUstep specific ld flags.
10004
10005 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
10006 similarly to what X does.
10007
100082008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
10009
10010 * nsfns.m (x-list-fonts): Remove.
10011 (syms_of_nsfns): Drop the x-list-fonts declaration.
10012 * nsterm.m: Get rid of remaining "//" comments.
10013
100142008-07-22 Chong Yidong <cyd@stupidchicken.com>
10015
10016 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
10017
10018 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
10019 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
10020 (Fns_own_selection_internal, Fx_disown_selection_internal)
10021 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
10022
10023 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
10024 ... */' style of docstrings. Doc fixes.
10025
100262008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
10027
10028 * terminfo.c (UP, BC, PC): Undo previous change.
10029
10030 * nsfns.m: Rename ns prefixed functions/variables to the
10031 corresponding x versions. Update references.
10032
100332008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
10034
10035 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
10036
100372008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
10038
10039 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
10040 Remove forwarding functions.
10041 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
10042 non-static.
10043 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
10044 non-static.
10045 (ns_frame_parm_handlers): Use the new names.
10046 (syms_of_nsfns): Move to the end of file.
10047
10048 * nsterm.m (syms_of_nsterm): Move to the end of file.
10049
10050 * dispnew.c (init_display): Remove code for X10.
10051
100522008-07-22 Jason Rumney <jasonr@gnu.org>
10053
10054 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
10055 bare drive.
10056
100572008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
10058
10059 * nsterm.m (syms_of_nsterm): Remove debugging println.
10060
100612008-07-22 David Reitter <david.reitter@gmail.com>
10062
10063 * nsfns.m (do_applescript, F_do_applescript): NS version of the
10064 Carbon implementation of the same functionality: execute arbitrary
10065 AppleScript code.
10066
100672008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
10068
10069 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
10070 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
10071 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
10072 (Fx_display_mm_height, Fx_display_mm_width)
10073 (Fx_display_backing_store, Fx_display_visual_class)
10074 (Fx_display_save_under, Fx_open_connection)
10075 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
10076 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
10077 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
10078 (Fx_display_pixel_width, Fx_display_pixel_height)
10079 (Fx_display_usable_bounds, Fx_display_planes)
10080 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
10081 ... */' style of docstrings.
10082
100832008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
10084
10085 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
10086 on this platform.
10087 (mips):
10088 * m/iris4d.h (mips): Do not define.
10089 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
10090
10091 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
10092
10093 * image.c:
10094 * nsfns.m:
10095 * nsselect.m:
10096 * nsterm.h:
10097 * nsterm.m: Rename ns prefixed functions/variables to the
10098 corresponding x versions. Update references.
10099
10100 * m/ibms390x.h (NO_REMAP): Do not undefine.
10101
10102 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
10103
101042008-07-21 Chong Yidong <cyd@stupidchicken.com>
10105
10106 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
10107 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
10108 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
10109 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
10110 (Fns_display_mm_height, Fns_display_mm_width)
10111 (Fns_display_backing_store, Fns_display_visual_class)
10112 (Fns_display_save_under, Fns_open_connection)
10113 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
10114 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
10115 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
10116 (Fns_display_pixel_width, Fns_display_pixel_height)
10117 (Fns_display_usable_bounds, Fx_display_planes)
10118 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
10119
101202008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
10121
10122 * print.c (print_object): Check print_depth before searching for
10123 circularities.
10124
101252008-07-21 Michael Albinus <michael.albinus@gmx.de>
10126
10127 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
10128 only sprintf.
10129
101302008-07-21 Kenichi Handa <handa@m17n.org>
10131
10132 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
10133
101342008-07-20 Andreas Schwab <schwab@suse.de>
10135
10136 * syntax.c (find_start_pos, find_start_value)
10137 (find_start_value_byte, find_start_begv, find_defun_start)
10138 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
10139
101402008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
10141
10142 * s/sol2-3.h: Insert contents of s/sol2.h.
10143 (LD_SWITCH_SYSTEM): Remove redundant definition.
10144 * s/sol2.h: Remove, unused.
10145
101462008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
10147
10148 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
10149
101502008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
10151
10152 * Makefile.in (ns_appdir): Fix typo in find command.
10153
101542008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
10155
10156 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
10157
10158 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
10159 added not supported anymore.
10160
10161 * s/usg5-4-2.h (LIBS_SYSTEM):
10162 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
10163
10164 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
10165 * s/lynxos.h (GETPGRP_NO_ARG):
10166 * s/hpux10-20.h (NO_SIOCTL_H):
10167 * s/gnu.h (GETPGRP_NO_ARG):
10168 * s/gnu-linux.h (NO_SIOCTL_H):
10169 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
10170 * s/cygwin.h (GETPGRP_NO_ARG):
10171 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
10172 (C_DEBUG_SWITCH): Remove duplicate definition.
10173
10174 * m/ibms390.h: Remove boilerplate comments.
10175
10176 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
10177
10178 * process.c (HAVE_SERIAL): Consolidate ifdefs.
10179 (wait_reading_process_output): Remove code for SunOS, platform not
10180 supported anymore. Use SOLARIS2 instead of sun.
10181
101822008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
10183
10184 * font.c (font_open_by_name): Under NS, default lface height to zero.
10185 (font_open_for_lface): Under NS, set size based on frame fontsize.
10186 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
10187 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
10188
101892008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
10190
10191 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
10192 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
10193 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
10194 YES/NO.
10195 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
10196 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
10197 * Makefile.in (clean): Clear out build destination dir.
10198
101992008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
10200
10201 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
10202 xterm, xselect.
10203 * lisp.h: Remove declaration of hash_remove.
10204 * nsgui.h: Remove redefinitions of hash_remove.
10205 * fns.c (hash_remove): Rename to hash_remove_from_table.
10206
102072008-07-19 Seiji Zenitani <zenitani@mac.com>
10208
10209 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
10210 strdup() the family UTF8String before modifying it.
10211
102122008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
10213
10214 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
10215 NS_FACE_BACKGROUND with 0 instead of nil.
10216 * nsfont.m (nsfont_draw): Same.
10217
102182008-07-19 Chong Yidong <cyd@stupidchicken.com>
10219
10220 * nsfns.m (ns_set_background_color): Fix crash.
10221
102222008-07-18 Chong Yidong <cyd@stupidchicken.com>
10223
10224 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
10225
102262008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
10227
10228 * puresize.h (BASE_PURESIZE): Increase to 1240000.
10229
102302008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10231
10232 * gtkutil.c: Include <config.h> instead of "config.h".
10233
10234 * lisp.h (Foverlay_buffer): Add EXFUN.
10235
10236 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
10237 child process to complete child_setup. Undo 2005-09-21 change.
10238
10239 * s/darwin.h: Mention setsid after vfork.
10240
102412008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10242
10243 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
10244 Depend on macgui.h.
10245
10246 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
10247 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
10248
10249 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
10250 and f19.
10251 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
10252
10253 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
10254 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
10255 Remove enumerators.
10256
10257 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
10258 Check if FACE_FROM_ID returns NULL.
10259
102602008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
10261
10262 * w32inevt.c (change_frame_size): Remove extern declaration.
10263 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
10264 change_frame_size.
10265
102662008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
10267
10268 * getloadavg.c: Revert last change (2008-07-15).
10269
102702008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
10271
10272 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
362654a6 10273 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
aac0c6e3
MR
10274 from configure.
10275
102762008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
10277
10278 * s/sol2.h:
10279 * s/sol2-4.h: Reorganize conditionals.
10280
10281 * ecrt0.c: Remove code depending on m68000, not used anymore.
10282
10283 * fns.c (hash_remove): Make static.
10284 * lisp.h (hash_remove): Don't prototype.
10285
10286 * m/ibmrs6000.h:
10287 * m/ibms390x.h:
10288 * m/macppc.h: Remove boilerplate comments.
10289
10290 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
10291 Solaris, which does not need them.
10292
10293 * m/vax.h: Remove comments about unsupported systems.
10294
10295 * s/darwin.h: Reorganize ifdefs.
10296
102972008-07-17 Andreas Schwab <schwab@suse.de>
10298
10299 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
10300
103012008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
10302
10303 Use SDATA. Follow coding convention of placing operators at
10304 beginning of next line rather than end of previous line, and placing
10305 spaces around infix operators.
10306
10307 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
10308 in case it was defined already.
10309 USE @GNUSTEP_MAKEFILES@ rather than envvars.
10310 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
10311 ns_default.
10312 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
10313 Lisp_Objects.
10314 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
10315 (ns_defined_color, ns_color_to_lisp): Declare.
10316 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
10317 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
10318 it's accepted even with USE_LISP_UNION_TYPE.
10319 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
10320 (update_frame_tool_bar): Remove apparently obsolete tests for
10321 non-integerness of f->tool_bar_lines.
10322 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
10323 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
10324 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
10325 (nsfont_open): Don't confuse NULL for Qnil.
10326 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
10327 * menu.h (find_and_call_menu_selection):
10328 * menu.c (find_and_call_menu_selection): Use just int for vector size.
10329 (find_and_return_menu_selection): Always return something.
10330 * frame.h: Include dispextern.h for Display_Info.
10331 (display_x_get_resource): Declare.
10332
103332008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
10334
10335 * syntax.c: Remove stdio.h include accidentally introduced in
10336 Emacs.app commit.
10337 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
10338 NS_IMPL_COCOA.
10339 * keyboard.c (handle_async_input, input_available_signal): Remove
10340 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
10341
103422008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
10343
10344 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
10345 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
10346 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
10347 Use SDATA.
10348
10349 * keymap.c: Remove all NS-specific code.
10350 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
10351 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
10352 where_is_preferred_modifier, return a different value depending on how
10353 preferred is the binding.
10354 (where_is_internal): Adjust accordingly.
10355 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
10356 Adjust to new preferred_sequence_p.
10357 (syms_of_keymap): Declare `where-is-preferred-modifier'.
10358 * keyboard.c (parse_solitary_modifier): Not static any more.
10359 * keyboard.h (parse_solitary_modifier): Declare.
10360
103612008-07-16 Andreas Schwab <schwab@suse.de>
10362
10363 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
10364 of easymenu.
10365
103662008-07-16 Chong Yidong <cyd@stupidchicken.com>
10367
10368 * xdisp.c (move_it_in_display_line): Account for word wrap, so
10369 that we don't move off the line.
10370
103712008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
10372
10373 * keyboard.c (Qsuper): Remove.
10374 (parse_menu_item): Don't call where_is_internal specially for NS.
10375
103762008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
10377
10378 * s/gnu-linux.h: Remove boilerplate comments.
10379
10380 * m/alpha.h (__ELF__): Consolidate conditions.
10381
10382 * m/m68k.h (linux): Use GNU_LINUX instead.
10383 Remove boilerplate comments.
10384
10385 * m/intel386.h: Undo refactoring from previous change.
10386 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
10387 too, remove dead code.
10388 (linux): Use GNU_LINUX instead.
10389
103902008-07-16 Jason Rumney <jasonr@gnu.org>
10391
10392 * w32gui.h: Repeat 26 June changes lost by last change.
10393
103942008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
10395
10396 * systty.h: Remove code for Aix on 386, unsupported platform.
10397
10398 * s/ms-w32.h: Remove boilerplate comments.
10399 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
10400
10401 * s/gnu-linux.h (TERM): Remove support.
10402 (HAVE_SYSVIPC): Remove, unused.
10403 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
10404 for this system.
10405
10406 * process.c: Remove support for IRIS, unused.
10407 Remove support for TERM, not relevant anymore.
10408
10409 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
10410 used with the definition.
10411
10412 * s/aix4-2.h (static): Do not undef.
10413
10414 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
10415 only used on Aix.
10416 (HAVE_SYSVIPC): Remove, unused.
10417
10418 * m/hp800.h (CANNOT_DUMP): Do not undef.
10419
10420 * m/alpha.h: Fix comment.
10421
10422 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
10423 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
10424 used by this configuration.
10425 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
10426 * unexec.c: Remove code depending on HPUX and
10427 USG_SHARED_LIBRARIES, not used with this file. Remove code
10428 depending on IRIS, unused. Remove if 0-ed code.
10429
10430 * s/template.h: Remove comments about static.
10431
10432 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
10433 Remove if 0-ed code.
10434 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
10435 were the same as the default.
10436 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
10437 Remove boilerplate comments.
10438 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
10439 (HAVE_SYSVIPC): Remove, unused.
10440 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
10441
10442 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
10443 Remove boilerplate comments.
10444 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
10445 Remove boilerplate comments.
10446 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
10447 Remove boilerplate comments.
10448 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
10449
10450 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
10451 USG systems which do not use DATA_SEG_BITS.
10452 Refactor code. Remove boilerplate comments.
10453
10454 * m/ibms390.h:
10455 * m/m68k.h:
10456 * s/bsd-common.h:
10457 * s/cygwin.h:
10458 * s/darwin.h:
10459 * s/freebsd.h:
10460 * s/gnu.h:
10461 * s/msdos.h: Remove boilerplate comments.
10462
10463 * m/iris4d.h: Remove boilerplate comments and code for systems that
6873acca 10464 do not use this file.
aac0c6e3
MR
10465 (IRIS_4D): Remove, unused.
10466
10467 * m/mips.h: Remove boilerplate comments and code for systems that
6873acca 10468 do not use this file.
aac0c6e3
MR
10469 (SIGN_EXTEND_CHAR):
10470 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
10471 * unexmips.c: Remove file, unused.
10472
10473 * editfns.c (Fuser_full_name): Replace the only use of
10474 USER_FULL_NAME with its value.
10475 * config.in: Regenerate.
10476
104772008-07-16 David Reitter <david.reitter@gmail.com>
10478
10479 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
10480 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
10481
104822008-07-16 Glenn Morris <rgm@gnu.org>
10483
10484 * emacs.c (system-type): Doc fix.
10485
104862008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
10487
10488 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
10489 If the cache doesn't work, let's fix it, rather than work around it.
10490
104912008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
10492
10493 * Makefile.in: Correct additions for nsfont.o in last commit.
10494 * nsfont.m: New file (forgot last commit).
10495
104962008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
10497
10498 * callproc.c (set_initial_environment): Initialize
10499 Vprocess_environment under CANNOT_DUMP (fixes crash when
10500 batch-compiling for bootstrap).
10501
105022008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
4e2af782 10503 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
10504
10505 (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
10506 fix crash due to different init order.
10507
105082008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
10509
10510 Changes and additions for NeXTstep windowing system (Cocoa and
10511 GNUstep) support.
10512
10513 * Makefile.in:
10514 * config.in: Support defines and build commands for NS port.
10515 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
10516 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
10517 * dispextern.h: Include nsgui.h and add needed typedefs under NS
10518 windowing.
10519 (struct face): Add synth_ital field.
10520 * dispnew.c: Include nsterm.h when compiling under NS windowing.
10521 (init_display): Initialize Vinitial_window_system to "ns" when so
10522 compiled.
10523 * emacs.c: Include GSConfig.h when compiling under GNUstep.
10524 (display_arg): Use under NS.
10525 (main): Under NS, allocate autorelease pool and handle command line
10526 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
10527 (standard_args): Add NS-specific args.
10528 (shut_down_emacs): Shut down NS terminal if compiled under NS.
10529 * font.c (DEFAULT_ENCODING): New variable.
10530 (font_find_for_lface): Use it.
10531 (syms_of_font): Load syms_of_nsfont under NS.
10532 * font.h: Declare nsfont_driver when compiled under NS.
10533 * fontset.c: When compiling under NS, include nsterm.h.
10534 (fontset_from_font): Autoconstruct fontset under NS.
10535 * frame.c (various): Under NS, include nsterm.h, add Qns window system
10536 symbol, document and use it.
10537 (do_switch_frame): When for_deletion under Cocoa, add
10538 Fraise_frame(Qnil).
10539 (x_set_frame_parameters): Ensure font attribute changes are picked up.
10540 (x_get_arg): Allow "yes" and "no" as boolean values.
10541 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
10542 Qright under Cocoa.
10543 (focus-follows-mouse): Default to 0 under NS.
10544 * frame.h (enum output_method): Add output_ns.
10545 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
10546 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
10547 (FRAME_WINDOW_P): NS-specific definition.
10548 * fringe.c (max_used_fringe_bitmap): Make public.
10549 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
10550 (getloadavg): Use NeXT code under descendant OS's.
10551 * image.c (includes and header section, x_create_bitmap_from_data)
10552 (x_create_bitmap_from_file, free_bitmap_record, image_background)
10553 (image_background_transparent, x_clear_image_1)
10554 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
10555 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
10556 (x_to_xcolors, x_from_xcolors, x_disable_image)
10557 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
10558 other GUIs, including XPM support using code originally written for
10559 Carbon GUI.
10560 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
10561 using NS API.
10562 (image_ascent): Use font metrics macros instead of direct struct field
10563 access.
10564 * keyboard.c (includes): Add nsterm.h when compiling under NS.
10565 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
10566 Also, handle NS as GTK for menu bar purposes.
10567 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
10568 toolkit where they differ.
10569 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
10570 use cachelist, still needed under NS.
10571 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
10572 (struct widget_value): Define it here for menu.c.
10573 * keymap.c (includes): Include modifier internals.
10574 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
10575 NS.
10576 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
10577 support for preferring sequences using certain modifiers, specified by
10578 the FIRSTONLY argument.
10579 * lisp.h (hash_remove): Rename to avoid name clash when compiling
10580 under NS GNUstep implementation.
10581 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
10582 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
10583 * menu.c: Include nsterm.h under NS.
10584 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
10585 (free_menubar_widget_tree_value, update_submenu_strings)
10586 (find_and_call_menu_selection): Treat NS as X and NT.
10587 (find_and_return_menu_selection): New function, used for popup menus.
10588 * nsgui.h:
10589 * nsterm.h:
10590 * nsfns.m:
10591 * nsimage.m:
10592 * nsmenu.m:
10593 * nsselect.m:
10594 * nsterm.m: New files.
10595 * process.c (wait_reading_process_output): Under NS, call ns_select()
10596 instead of plain select().
10597 * syntax.c (char_quoted): Under NS, avoid a crash when called near
10598 beginning of buffer.
10599 * sysselect.h (init_process): Rename when compiling under Cocoa to
10600 avoid name conflict.
10601 * termhooks.h (display_info): Add ns_display_info to union.
10602 * terminal.c (Fterminal_live_p): Add ns to terminal types.
10603 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
10604 COCOA environment.
10605 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
10606 unexec() signature. (Note, this will dump, but the resulting file
10607 crashes; unexosx is used instead; keeping around for reference and
10608 possible aid in getting dump working under GNUstep.)
10609 * w32gui.h (button_type, widget_value): Remove definitions (now in
10610 keyboard.h).
10611 * window.c: Include nsterm.h when compiling under NS.
10612 * xdisp.c (includes): Include nsterm.h when compiling under NS.
10613 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
10614 other GUI windowing systems.
10615 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
10616 GTK.
10617 (x_consider_frame_title): Under NS, set icon type and frame
10618 modified-state indicator; use ns_set_name_as_filename() when using
10619 formatted title.
10620 (update_window_cursor): Make public when compiling under NS.
10621 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
10622 (hourglass_atimer, Vhourglass_delay
10623 * xfaces.c (header section, init_frame_faces, clear_font_table)
10624 (defined_color, unload_color, x_face_list_fonts)
10625 (prepare_face_for_display): Add NS support parallel to other GUIs.
10626 Emulate GCs like other non-X GUIs.
10627 (split_font_name): Don't lowercase font name under NS.
10628 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
10629 under NS.
10630 * s/darwin.h: Add support for compilation under NS.
10631
106322008-07-15 Jason Rumney <jasonr@gnu.org>
10633
10634 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
10635 (w32_show_hourglass): Rename from show_hourglass.
10636 (w32_hide_hourglass): Rename from hide_hourglass.
10637 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
10638 (Vhourglass_delay): Declare extern.
10639 (hourglass_started): Remove.
10640
10641 * xdisp.c (Vhourglass_delay): Remove static.
10642 (hourglass_started, start_hourglass, cancel_hourglass):
10643 Don't include these versions on WINDOWSNT.
10644
106452008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
10646
10647 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
10648 variables (formerly in xfns.c).
10649 (show_hourglass, hide_hourglass): New prototypes (same).
10650 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
10651 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
10652 in xfns.c).
10653 (syms_of_xdisp): Declare/initialize display-hourglass,
10654 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
10655 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
10656 formerly in xfns.c.
10657 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
10658 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
10659 (start_hourglass, cancel_hourglass): Remove.
10660 (show_hourglass, hide_hourglass): Remove prototypes and static
10661 modifiers.
10662 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
10663 hourglass_atimer, hourglass_shown_p declaration/initialization.
10664 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
10665 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
10666 (start_hourglass, cancel_hourglass): Remove.
10667 (show_hourglass, hide_hourglass): Remove prototypes and static
10668 modifiers.
10669 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
10670 hourglass_atimer, hourglass_shown_p declaration/initialization.
10671 * w32fns.c (display_hourglass_p, Vhourglass_delay)
10672 (DEFAULT_HOURGLASS_DELAY): Remove.
10673 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
10674 hourglass_shown_p declaration/initialization.
10675
106762008-07-14 Jason Rumney <jasonr@gnu.org>
10677
10678 * w32fns.c (w32_get_arg): Remove wrapper function.
10679 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
10680 directly.
10681 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
10682
106832008-07-14 Kenichi Handa <handa@m17n.org>
10684
10685 * xfont.c (xfont_open): Add workaround for X's bug.
10686
106872008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
10688
10689 * fontset.c: Include <stdio.h> unconditionally.
10690
106912008-07-13 Michael Albinus <michael.albinus@gmx.de>
10692
10693 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
10694 for filtering.
10695
106962008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
10697
10698 * s/vms.h: Use __GNUC__ instead of _GNUC_.
10699
10700 * m/macppc.h:
10701 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
10702
10703 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
10704 (SPECIAL_EMACS_INT):
10705 * m/ia64.h (SPECIAL_EMACS_INT):
10706 * m/amdx86-64.h (SPECIAL_EMACS_INT):
10707 * s/gnu.h (NLIST_STRUCT):
10708 * s/aix4-2.h (X11R5_INHIBIT_I18N):
10709 * s/gnu-linux.h (LINUX):
10710 * s/msdos.h (HAVE_FACES):
10711 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
10712
10713 * systty.h:
10714 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
10715 anymore.
10716
107172008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
10718
10719 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
10720 always defined as int.
10721
10722 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
10723 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
10724 * s/gnu-linux.h (HAVE_WAIT_HEADER):
10725 * s/freebsd.h (HAVE_WAIT_HEADER):
10726 * s/bsd-common.h (HAVE_UNION_WAIT):
10727 * s/aix4-2.h (HAVE_WAIT_HEADER):
10728 * m/mips.h (HAVE_UNION_WAIT):
10729 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
10730 (COFF, static): Do not define, they are undefined later in the file.
10731
10732 * process.c (update_status): Don't use a union.
10733 (status_convert):
10734 (sigchld_handler): Use int instead of WAITTYPE.
10735
107362008-07-12 Chong Yidong <cyd@stupidchicken.com>
10737
10738 * indent.c (Fvertical_motion): Restore hscroll before moving to
10739 goal column.
10740
107412008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
10742
10743 * lisp.h: Remove left over code.
10744
107452008-07-11 Andreas Schwab <schwab@suse.de>
10746
10747 * lisp.h: Fix logic in last change.
10748
10749 * menu.h: New file.
10750 * menu.c: Include it.
10751 * xmenu.c: Likewise.
10752 * Makefile.in: Update dependencies.
10753
107542008-07-11 Kenichi Handa <handa@m17n.org>
10755
10756 * fontset.c (fontset_from_font): Cancel the previous change.
10757
107582008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
10759
10760 * lisp.h:
10761 * w32heap.c:
10762 * emacs.c:
10763 * alloc.c: Replace all references of NO_UNION_TYPE with
10764 USE_LISP_UNION_TYPE.
10765
10766 * m/xtensa.h (NO_UNION_TYPE):
10767 * m/vax.h (NO_UNION_TYPE):
10768 * m/template.h (NO_UNION_TYPE):
10769 * m/sparc.h (NO_UNION_TYPE):
10770 * m/mips.h (NO_UNION_TYPE):
10771 * m/macppc.h (NO_UNION_TYPE):
10772 * m/m68k.h (NO_UNION_TYPE):
10773 * m/iris4d.h (NO_UNION_TYPE):
10774 * m/intel386.h (NO_UNION_TYPE):
10775 * m/ibms390x.h (NO_UNION_TYPE):
10776 * m/ibms390.h (NO_UNION_TYPE):
10777 * m/ibmrs6000.h (NO_UNION_TYPE):
10778 * m/ia64.h (NO_UNION_TYPE):
10779 * m/hp800.h (NO_UNION_TYPE):
10780 * m/arm.h (NO_UNION_TYPE):
10781 * m/amdx86-64.h (NO_UNION_TYPE):
10782 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
10783 defining it the same.
10784
107852008-07-10 Chong Yidong <cyd@stupidchicken.com>
10786
10787 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
10788
107892008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
10790
10791 * fileio.c:
50426a04 10792 * sysdep.c:
aac0c6e3
MR
10793 * systty.h:
10794 * m/ibmrs6000.h:
10795 * m/iris4d.h:
10796 * s/aix4-2.h:
10797 * s/freebsd.h:
10798 * s/gnu-linux.h:
10799 * s/hpux10-20.h:
10800 * s/hpux11.h:
10801 * s/netbsd.h:
10802 * s/sol2-3.h:
10803 * s/sol2-4.h:
10804 * s/sol2.h:
10805 * s/usg5-4.h:
10806 * s/vms.h: Remove references to unused variables.
10807
108082008-07-10 Andreas Schwab <schwab@suse.de>
10809
10810 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
10811 pattern before matching the generic family.
10812
108132008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
10814
10815 * unexec.c:
10816 * s/vms.h:
10817 * s/usg5-4-2.h:
10818 * s/sol2-5.h:
10819 * s/freebsd.h:
10820 * s/darwin.h: Remove dead code.
10821
10822 * m/template.h:
10823 * m/sparc.h:
10824 * m/mips.h:
10825 * m/m68k.h:
10826 * m/iris4d.h:
10827 * m/intel386.h:
10828 * m/ibms390x.h:
10829 * m/ibms390.h:
10830 * m/ia64.h:
10831 * m/hp800.h:
10832 * m/arm.h:
10833 * m/amdx86-64.h: Remove dead code and references to unused
10834 and compiler defined symbols.
10835
10836 * unexmips.c:
10837 * unexelf.c: Remove references to desupported systems.
10838
10839 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
10840
10841 * m/powermac.h: Remove boilerplate comments.
10842 (NO_REMAP): Remove unused definition.
10843
10844 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
10845 define them.
10846
108472008-07-10 Kenichi Handa <handa@m17n.org>
10848
10849 * xfont.c (xfont_open): Log the reason of failure.
10850
108512008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
10852
10853 * fontset.c (fontset_get_font_group):
10854 * font.c (font_check_otf): Specify argument types.
10855
108562008-07-09 Kenichi Handa <handa@m17n.org>
10857
10858 * coding.c (detect_coding_utf_8): Set detect_info->found only when
10859 non-ASCII char is found.
10860
10861 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
10862 (reorder_font_vector): Change the arg preferred_family to font.
10863 Prefer the spec matching with font.
10864 (fontset_get_font_group): New function.
10865 (fontset_find_font): Change the format of an element of a realized
10866 fontset. Use fontset_get_font_group.
10867 (fontset_font): Try the current fontset, the default fontset, the
10868 fallbacks of the current fontset, and the fallbacks of the default
10869 fontset in this order.
10870 (face_for_char): Delete the shortcut to use the current font.
10871 (fontset_from_font): Don't set fonts for Latin in the fontset.
10872
10873 * font.h (font_make_object, font_match_p): Adjust prototypes.
10874
10875 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
10876
10877 * font.c (font_make_object): New arg entity and pixelsize.
10878 (font_check_otf_features, font_check_otf): New functions.
10879 (font_match_p): Check :lang, :script, and :otf properties.
10880
10881 * xfont.c (xfont_open): Adjust it for the change of
10882 font_make_object.
10883 (xfont_text_extents): Fix initial setting of metrics.
10884
10885 * ftfont.c (struct ftfont_info): New member index, delete member
10886 fc_charset_idx. Make the member order compatible with struct
10887 xftfont_info.
10888 (fc_charset_table): Change charset names to registry names.
10889 (ftfont_pattern_entity): Delete the args registry and
10890 fc_charset_idx. Change the value of :font-entity property
10891 to (FONTNAME . INDEX). Always set :registry property to
10892 `iso10646-1'.
10893 (struct ftfont_cache_data): New struct.
10894 (ftfont_lookup_cache): New arg for_face.
10895 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
10896 (ftfont_driver): Set the member otf_capability.
10897 (ftfont_get_charset): Adjust it for the change of
10898 fc_charset_table.
10899 (OTF_TAG_SYM): New macro.
10900 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
10901 for the change of fc_charset_table.
10902 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
10903 ftfont_pattern_entity. Add FC_INDEX to objset.
10904 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
10905 and ftfont_pattern_entity.
10906 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
10907 font_make_object, struct ftfont_info.
10908 (ftfont_has_char): Use ftfont_get_fc_charset.
10909 (ftfont_otf_features, ftfont_otf_capability): New functions.
10910 (ftfont_shape): Use ftfont_get_otf.
10911 (ftfont_text_extents): Fix initial setting of metrics.
10912
10913 * xftfont.c (struct xftfont_info): New member ft_size. Make the
10914 member order compatible with struct ftfont_info.
10915 (xftfont_open): Add FC_CHARSET to the pattern. Set
10916 xftfont_info->ft_size. Don't unlock the face. Check BDF
10917 properties if appropriate.
10918 (xftfont_close): Unlock the face.
10919 (xftfont_anchor_point, xftfont_shape): Deleted.
10920 (syms_of_xftfont): Don't set members anchor_point and shape of
10921 xftfont_driver.
10922
10923 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
10924 font_make_object.
10925
10926 * w32font.c (w32font_open): Adjust it for the change of
10927 font_make_object.
10928 (w32font_open_internal): Don't set properties of font_object here.
10929
109302008-07-08 Chong Yidong <cyd@stupidchicken.com>
10931
10932 * macfns.c (x_create_tip_frame):
10933 * w32fns.c (x_create_tip_frame):
10934 * xfns.c (x_create_tip_frame): Pass parameter argument to
10935 face-set-after-frame-default.
10936
10937 * xfaces.c (Finternal_merge_in_global_face): Save merged
10938 attributes for the default face back into the face vector.
10939
109402008-07-08 Andreas Schwab <schwab@suse.de>
10941
10942 * fontset.h: Declare fontset_from_font. Don't declare
10943 new_fontset_from_font and fontset_from_font_name.
10944 * xterm.c: Include "fontset.h".
10945 * Makefile.in (xterm.o): Update dependencies.
10946
109472008-07-08 Glenn Morris <rgm@gnu.org>
10948
10949 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
10950 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
10951
109522008-07-07 Chong Yidong <cyd@stupidchicken.com>
10953
10954 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
10955 (x_set_frame_parameters): Don't bind it.
10956
109572008-07-07 Juanma Barranquero <lekktu@gmail.com>
10958
10959 * w32fns.c (map_w32_filename): Declare extern.
10960
109612008-07-07 Jason Rumney <jasonr@gnu.org>
10962
10963 * w32term.c (WS_EX_LAYERED): Define if not already.
10964
109652008-07-06 Chong Yidong <cyd@stupidchicken.com>
10966
10967 * xfaces.c (set_font_frame_param): Don't try to set the font
10968 parameter if it is still unspecified in the lface.
10969
109702008-07-05 Chong Yidong <cyd@stupidchicken.com>
10971
10972 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
10973 face if it didn't already exist.
10974
10975 * xdisp.c (try_window_id): Give up if word-wrapping is on.
10976
109772008-07-05 Andreas Schwab <schwab@suse.de>
10978
10979 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
10980
109812008-07-05 Chong Yidong <cyd@stupidchicken.com>
10982
10983 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
10984 word-wrapping.
10985 (IT_DISPLAYING_WHITESPACE): New macro.
10986 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
10987 when word-wrapping. Simplify word-wrapping logic. Use correct
10988 pixel positions when saving copies of the iterator.
10989 (display_line): Use proper wrap point if the last character on a
10990 line was preceded by whitespace.
10991
109922008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
10993
10994 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
10995
109962008-07-04 Kenichi Handa <handa@m17n.org>
10997
10998 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
10999
11000 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
11001
110022008-07-02 Jason Rumney <jasonr@gnu.org>
11003
11004 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 11005 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
11006
11007 * xdisp.c (next_element_from_display_vector): Move assignment out
11008 of if statement.
11009
110102008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
11011
11012 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
11013
11014 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
11015 (syms_of_fileio): Initialize and export them.
11016 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
11017
11018 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
11019 (Fsystem_move_file_to_trash): New function.
11020 (syms_of_w32fns): Export it to lisp.
11021
110222008-07-01 Jason Rumney <jasonr@gnu.org>
11023
11024 * w32font.c (w32font_text_extents): Don't count overhang as part
11025 of width.
11026
110272008-06-30 Miles Bader <miles@gnu.org>
11028
11029 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
11030 Add `avoid_cursor_p' field.
11031
11032 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
11033 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
11034 (append_glyph, append_composite_glyph, produce_image_glyph)
11035 (append_stretch_glyph): Initialize avoid_cursor_p.
11036 (get_it_property): Rename from `get_line_height_property'.
11037 (x_produce_glyphs): Use get_it_property.
11038 (handle_line_prefix, push_display_prop): New functions.
11039 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
11040 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
11041 New variables.
11042 (syms_of_xdisp): Initialize them.
11043
110442008-06-30 Kenichi Handa <handa@m17n.org>
11045
11046 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
11047 XftDefaultSubstitute (they are called in XftFontMatch).
11048 (xftfont_open): Fix args to ftfont_font_format.
11049
11050 * ftfont.c (fc_charset_table): New member lang.
11051 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 11052 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
11053 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
11054 (ftfont_open): Fix args to ftfont_font_format.
11055 (ftfont_font_format): New arg filename.
11056
110572008-06-30 Chong Yidong <cyd@stupidchicken.com>
11058
11059 * xfaces.c (Finternal_merge_in_global_face): If default face was
11060 modified, realize it again. Update the font face attribute.
11061
110622008-06-29 Jason Rumney <jasonr@gnu.org>
11063
11064 * w32term.c (x_set_frame_alpha): Fix logic.
11065
110662008-06-29 Kenichi Handa <handa@m17n.org>
11067
11068 * fontset.c (Finternal_char_font): Return font-object instead of
11069 font-name.
11070
11071 * composite.c (get_composition_id): Fix the width calculation for TAB.
11072
110732008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
11074
11075 * indent.c (Fvertical_motion): Properly handle float column arg.
11076
110772008-06-28 Jason Rumney <jasonr@gnu.org>
11078
11079 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
11080 (pfnSetLayeredWindowAttributes): New function pointer.
11081 (w32_initialize): Initialize it when supported.
11082 (x_set_frame_alpha): New function.
11083
11084 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
11085 (w32_frame_parm_handlers): Set alpha handler.
11086
11087 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
11088
110892008-06-27 Jason Rumney <jasonr@gnu.org>
11090
11091 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
11092 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
11093 (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 to w32font.c.
11101 (Qw32_charset_unicode): Remove.
11102 (syms_of_w32fns): Update for above changes.
11103
11104 * w32font.c (w32_to_x_charset, x_to_w32_charset)
11105 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
11106 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
11107 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
11108 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
11109 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
11110 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
11111 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
11112 (syms_of_w32font): Update for above changes.
11113
111142008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
11115
11116 * s/usg5-4.h: Fix previous change: keep the correct branch of a
11117 removed #if.
11118 (USG_SHARED_LIBRARIES): Remove duplicate definition.
11119
111202008-06-26 Juanma Barranquero <lekktu@gmail.com>
4e2af782 11121 Eli Zaretskii <eliz@gnu.org>
aac0c6e3
MR
11122
11123 * makefile.w32-in (LOCAL_FLAGS):
11124 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
11125
11126 * sysdep.c (_spawnlp, _getpid):
11127 Declare with explicit _cdecl instead of _CRTAPI1.
11128
11129 * editfns.c (Fget_internal_run_time):
11130 Check for WINDOWSNT with #ifdef, not #if.
11131
111322008-06-26 Jason Rumney <jasonr@gnu.org>
11133
11134 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
11135
11136 * w32term.c (x_draw_glyph_string_foreground)
11137 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
11138 Use FONT_HANDLE macro.
11139 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
11140
11141 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
11142 (uniscribe_encode_char): Use FONT_HANDLE macro.
11143
11144 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
11145 (w32font_text_extents): Use precast w32_font.
11146 (w32font_close): Free cached metrics.
11147 (w32font_open_internal): Allocate space for name on stack.
11148
111492008-06-26 Chong Yidong <cyd@stupidchicken.com>
11150
11151 * xdisp.c (extend_face_to_end_of_line): Fix last change.
11152
111532008-06-26 Jason Rumney <jasonr@gnu.org>
11154
11155 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
11156 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
11157
111582008-06-26 Juanma Barranquero <lekktu@gmail.com>
11159
11160 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
11161
111622008-06-26 Jason Rumney <jasonr@gnu.org>
11163
11164 * w32bdf.c, w32bdf.h: Remove obsolete files.
11165
11166 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
11167
11168 * w32gui.h: Don't include w32bdf.h.
11169 (XCharStruct, enum w32_char_font_type, W32FontStruct):
11170 Remove obsolete font support.
11171
11172 * w32font.h (struct w32font_info): Remove compat_w32_font.
11173 Add hfont member.
11174 (FONT_COMPAT): Remove obsolete macro.
11175
11176 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
11177 (w32font_encode_char, w32font_text_extents): Use new hfont member.
11178 (w32font_open_internal): Remove compat code. Set new hfont member.
11179 (Fx_select_font): Use new hfont member.
11180
11181 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
11182 (uniscribe_encode_char): Use new hfont member.
11183
11184 * w32term.c (x_draw_glyph_string_foreground)
11185 (x_draw_composite_glyph_string_foreground): Use new hfont member.
11186 (x_draw_glyph_string): Use metrics in w32font_info.
11187
111882008-06-26 Kenichi Handa <handa@m17n.org>
11189
11190 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
11191
111922008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
11193
11194 * unexnext.c:
11195 * m/ews4800.h:
11196 * m/hp9000s300.h:
11197 * m/ibm370aix.h:
11198 * m/mips-siemens.h:
11199 * m/ncr386.h:
11200 * m/next.h:
11201 * m/pmax.h:
11202 * m/powerpcle.h:
11203 * m/tandem-s2.h:
11204 * s/386bsd.h:
11205 * s/bsd386.h:
11206 * s/bsd4-1.h:
11207 * s/bsd4-2.h:
11208 * s/bsdos2-1.h:
11209 * s/bsdos2.h:
11210 * s/bsdos3.h:
11211 * s/bsdos4.h:
11212 * s/nextstep.h:
11213 * s/ultrix4-3.h:
11214 * s/usg5-0.h:
11215 * s/usg5-2-2.h:
11216 * s/usg5-2.h:
11217 * s/usg5-4-3.h:
11218 * s/ux4800.h:
11219 * s/uxpds.h:
11220 * s/uxpv.h: Remove support for obsolete systems.
11221 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 11222 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
11223 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
11224 Remove, insert contents in s/aix4-2.h.
11225 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
11226 * s/bsd4-3.h: Rename to ...
11227 * s/bsd-common.h: ... this.
11228 * data.c:
11229 * doc.c:
11230 * ecrt0.c:
11231 * emacs.c:
11232 * fileio.c:
11233 * floatfns.c:
11234 * keyboard.c:
11235 * mem-limits.h:
11236 * print.c:
11237 * process.c:
11238 * sysdep.c:
11239 * syssignal.h:
11240 * systty.h:
11241 * syswait.h:
11242 * term.c:
11243 * unexec.c:
11244 * unexelf.c:
11245 * unexhp9k800.c:
11246 * m/hp800.h:
11247 * m/ibmrs6000.h:
11248 * m/mips.h:
11249 * m/vax.h:
11250 * s/darwin.h:
11251 * s/freebsd.h:
11252 * s/gnu.h:
11253 * s/ms-w32.h:
11254 * s/msdos.h:
11255 * s/netbsd.h:
11256 * s/template.h: Remove references to obsolete variables.
11257
11258 * Makefile.in: Add dependencies for all unexec files.
11259 (admindir): Remove unused variable.
11260 (UNEXEC_SRC): Remove references.
11261
112622008-06-25 Chong Yidong <cyd@stupidchicken.com>
11263
11264 * xfns.c (x_default_font_parameter): If Xft is available, first
11265 try Monospace-12 for the default font.
11266
112672008-06-25 Jason Rumney <jasonr@gnu.org>
11268
11269 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
11270
112712008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
11272
11273 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
11274
11275 * buffer.c (syms_of_buffer): Remove default-word-wrap.
11276
112772008-06-25 Juanma Barranquero <lekktu@gmail.com>
11278
11279 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
11280 <scroll-conservatively>: Fix typo in docstring.
11281
11282 * xselect.c (Fx_send_client_event): Doc fix.
11283
112842008-06-25 Kenichi Handa <handa@m17n.org>
11285
11286 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
11287
11288 * font.c (font_parse_fcname): Remove unused variables.
11289 (font_sort_entites): Delete the arg SPEC. Caller changed.
11290 Fix for the case of ! best_only.
11291 (font_delete_unmatched): Check DPI and AVGWIDTH too.
11292
11293 * lisp.h (Fstring_to_unibyte): EXFUN it.
11294
11295 * character.h (str_to_unibyte): Extern it.
11296
11297 * character.c (str_to_unibyte): New function.
11298
11299 * fns.c (Fstring_to_unibyte): New function.
11300 (syms_of_fns): Defsubr it.
11301
113022008-06-24 Kenichi Handa <handa@m17n.org>
11303
11304 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
11305 DPI too.
11306 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
11307
113082008-06-24 Andreas Schwab <schwab@suse.de>
11309
11310 * Makefile.in (${lispsource}loaddefs.el): Rename from
11311 ../lisp/loaddefs.el.
11312 (bootstrap-clean): Do what distclean does but don't remove
11313 Makefile.
11314 (distclean): Depend on bootstrap-clean and remove Makefile.
11315
113162008-06-24 Chong Yidong <cyd@stupidchicken.com>
11317
11318 * buffer.h (struct buffer): New member word_wrap.
11319
11320 * buffer.c (syms_of_buffer): New variables default-word-wrap and
11321 word-wrap.
11322 (init_buffer_once): Initialize them.
11323
11324 * dispextern.h (struct it): Replace bool truncate_lines_p with a
11325 line_wrap enum possessing three possible values.
11326
11327 * termopts.h: Replace truncate_partial_width_windows with
11328 Vtruncate_partial_width_windows.
11329
11330 * dispnew.c (direct_output_for_insert): Avoid direct output when
11331 inserting a space with word wrap on.
11332
11333 * indent.c (compute_motion): Obey integer values of
11334 truncate-partial-width-windows.
11335
11336 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
11337 replacing truncate_partial_width_windows.
11338 (init_iterator): If Vtruncate_partial_width_windows is an integer,
11339 truncate only if the window width is below that integer.
11340 (start_display, resize_mini_window, produce_stretch_glyph)
11341 (display_string, move_it_in_display_line_to): Use line_wrap.
11342 (back_to_previous_visible_line_start, reseat_1): Reset
11343 string_from_display_prop_p.
11344 (display_line): Extend default face to end of line when wrapping.
11345
113462008-06-24 Kim F. Storm <storm@cua.dk>
11347
11348 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
11349 to wrap continued lines at word boundaries.
11350
113512008-06-24 Jason Rumney <jasonr@gnu.org>
11352
11353 * font.c (Ffont_face_attributes): Multiply pixel size before point
11354 conversion to avoid multiplying rounding error.
11355
113562008-06-23 Jason Rumney <jasonr@gnu.org>
11357
11358 * w32term.c (x_draw_glyph_string_background)
11359 (x_draw_glyph_string): Remove old bdf font code.
11360
11361 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
11362
113632008-06-22 Kenichi Handa <handa@m17n.org>
11364
11365 * font.c (font_find_for_lface): Try the adstyle specified in
11366 the property of LFACE_FONT of LFACE (if any).
11367
113682008-06-21 Seiji Zenitani <zenitani@mac.com>
4e2af782 11369 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
11370
11371 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
11372
113732008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
11374
11375 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
11376 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
11377 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
11378 (witness-emacs): Remove.
11379 (lisp, shortlisp): Move loaddefs.el earlier.
11380 (mostlyclean): Forget about witness-emacs.
11381
113822008-06-22 Glenn Morris <rgm@gnu.org>
11383
11384 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
11385 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
11386
113872008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
11388
11389 * Makefile.in (PRECOMP): Remove.
11390 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
11391 (witness-emacs): Run `compile-first'.
11392 (.el.elc): Use the new compile-onefile target.
11393
113942008-06-21 Kenichi Handa <handa@m17n.org>
11395
11396 * xftfont.c (xftfont_open): Handle QCembolden only when
11397 FC_EMBOLDEN is defined.
11398
113992008-06-21 Andreas Schwab <schwab@suse.de>
11400
11401 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
11402 (.el.elc): Likewise.
11403
114042008-06-21 Miles Bader <miles@gnu.org>
11405
11406 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
11407 build dir, not the lisp source dir.
11408
114092008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
11410
11411 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
11412 (bootstrapclean): Remove.
11413 (.el.elc): New rule.
11414 (PRECOMP): New var.
11415 (../lisp/subdirs.el): Remove.
11416 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
11417 (witness-emacs): New target.
11418 (mostlyclean): Remove witness-emacs as well.
11419 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
11420 Add witness-emacs dependency.
11421
114222008-06-20 Chong Yidong <cyd@stupidchicken.com>
11423
11424 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
11425 defined by the font.
11426
114272008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
11428
11429 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
11430 (bootstrap-clean): New target that keeps TAGS around.
11431 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
11432 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
11433
114342008-06-20 Jason Rumney <jasonr@gnu.org>
11435
11436 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
11437 Remove obsolete font code.
11438
11439 * w32font.c (font_matches_spec): Use csb bitfield from font signature
11440 to determine language support.
11441
114422008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
11443
11444 * sysdep.c (cfsetspeed): New fun extracted from the code.
11445 (cfmakeraw): Move before first use.
11446
114472008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
11448
11449 * sysdep.c (cfmakeraw): Provide fallback implementation.
11450 (serial_configure): Provide fallback implementation of cfsetspeed.
11451
114522008-06-20 Kenichi Handa <handa@m17n.org>
11453
11454 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
11455 the pattern.
11456
11457 * fontset.c (fontset_from_font): Copy font_spec before changing
11458 the elements.
11459
11460 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
11461
114622008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
11463
11464 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
11465 for explicit `font' parameters.
11466
11467 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
11468
114692008-06-19 Kenichi Handa <handa@m17n.org>
11470
11471 * frame.c: Include <ctype.h>.
11472 (x_set_font_backend): Allow spacing characters in the X resource
11473 for FontBackend.
11474
114752008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
11476
11477 * w32fns.c, xfns.c (Qfont_param): New var.
11478 (syms_of_w32fns): Initialize it.
11479 (x_default_font_parameter): Record explicit `font' into
11480 `font-parameter'.
11481
114822008-06-18 Kenichi Handa <handa@m17n.org>
11483
11484 * font.c (font_parse_xlfd): Fix previous change.
11485 (font_parse_fcname): Don't use :fc-unknown-spec.
11486 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
11487 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
11488 (font_add_log): Prepend the driver name to the resulting fonts.
11489
11490 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
11491 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
11492 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
11493
11494 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
11495 (QCembolden): New variables.
11496 (syms_of_xftfont): DEFSYM them.
11497 (xftfont_open): Call XftFontMatch. Don't trust the result of
11498 XftTextExtents8 if the pixel_size is less than 5.
11499
115002008-06-18 Andreas Schwab <schwab@suse.de>
11501
11502 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
11503 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
11504
115052008-06-18 Jason Rumney <jasonr@gnu.org>
11506
11507 * w32font.c (w32font_list, w32font_match): Add logging.
11508
11509 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
11510
115112008-06-17 Chong Yidong <cyd@stupidchicken.com>
11512
11513 * font.c (font_parse_fcname): Store divider characters for
11514 unknown-spec list. For known key symbols, intern using correct
11515 symbol name.
11516
115172008-06-17 Kenichi Handa <handa@m17n.org>
11518
11519 * xfaces.c (realize_default_face): If the frame is not on window
11520 system, set the fontset of face to nil.
11521
115222008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
11523
11524 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
11525
115262008-06-16 Juanma Barranquero <lekktu@gmail.com>
11527
11528 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
11529 (build_font_name_from_vector): Delete externs.
11530
11531 * xfaces.c (struct font_name): Don't declare.
11532
115332008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
11534
11535 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
11536
115372008-06-16 Chong Yidong <cyd@stupidchicken.com>
11538
11539 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
11540
115412008-06-16 Juanma Barranquero <lekktu@gmail.com>
11542
11543 * font.c (Ffont_spec): Fix usage in docstring.
11544 (Ffont_face_attributes): Doc fix.
11545
115462008-06-16 Andreas Schwab <schwab@suse.de>
11547
11548 * font.c (Ffont_face_attributes): Fix definition.
11549
115502008-06-16 Jason Rumney <jasonr@gnu.org>
11551
11552 * font.h (font_style_symbolic_from_value): Remove.
11553
11554 * font.c (font_style_symbolic_from_value): Remove.
11555 (font_style_symbolic): Revert to pre 2008-06-13 version.
11556
11557 * w32font.c (w32_to_fc_weight): New function.
11558 (w32font_full_name, logfont_to_fcname): Use it.
11559
115602008-06-16 Kenichi Handa <handa@m17n.org>
11561
11562 * font.c (font_check_object): Delete it.
11563 (font_clear_cache): Check if a font-object is alive.
11564 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
11565 font-object to nil.
11566 (font_close_object): Don't check FONT_CLOSE_OBJECT.
11567 (font_at): Don't call font_check_object.
11568 (Ffont_get): Return a symbol for :weight, :slant, and :width.
11569
115702008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
11571
11572 * puresize.h (BASE_PURESIZE): Increase to 1230000.
11573
115742008-06-16 Chong Yidong <cyd@stupidchicken.com>
11575
11576 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
11577
115782008-06-15 Chong Yidong <cyd@stupidchicken.com>
11579
11580 * font.c (font_parse_fcname): Only one decimal point.
11581 (font_unparse_fcname): Handle data in family and foundry indices
11582 as symbols, not strings.
11583 (font_unparse_gtkname, Ffont_face_attributes): New functions.
11584
11585 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
11586
11587 * font.h (font_unparse_gtkname): Add prototype.
11588
115892008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
11590
11591 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
11592
115932008-06-15 Andreas Schwab <schwab@suse.de>
11594
11595 * font.c (font_update_drivers): Fix crash when no drivers match.
11596
115972008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
11598
11599 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
11600 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
11601
116022008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
11603
11604 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
11605
116062008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
11607
11608 * process.c (Fserial_process_configure, Fprocess_send_eof):
11609 Use EQ to compare Lisp_Objects.
11610
116112008-06-13 Jason Rumney <jasonr@gnu.org>
11612
11613 * w32fns.c (Fw32_select_font): Remove old font API function.
11614
11615 * w32font.c (logfont_to_fcname): New function.
11616 (Fx_select_font): New font dialog function compatible with
11617 GTK/fontconfig version.
11618
11619 * font.c (font_style_symbolic_from_value): New function.
11620 (font_style_symbolic): Use it.
11621
11622 * font.h (font_style_symbolic_from_value): Declare new function.
11623
116242008-06-13 Juanma Barranquero <lekktu@gmail.com>
11625
11626 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
11627 <font-width-table>: Fix typos in docstrings.
11628
116292008-06-13 Daniel Engeler <engeler@gmail.com>
11630
11631 These changes add serial port access.
11632 * process.c: Add HAVE_SERIAL.
11633 (Fdelete_process, Fprocess_status, Fset_process_buffer)
11634 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
11635 (list_processes_1, select_wrapper, Fstop_process)
11636 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
11637 (status_notify): Modify to handle serial processes.
11638 [HAVE_SERIAL] (Fserial_process_configure)
11639 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
11640 New functions.
11641 * process.h (struct Lisp_Process): Add `type'.
11642 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
11643 New functions.
11644 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
11645 serial ports.
b71ac3dd 11646 (serial_open, serial_configure): New functions.
aac0c6e3
MR
11647 * w32.h: Add FILE_SERIAL.
11648 (struct _child_process): Add ovl_read, ovl_write.
11649
116502008-06-13 Kenichi Handa <handa@m17n.org>
11651
11652 * dispextern.h (enum lface_attribute_index): New member
11653 LFACE_FOUNDRY_INDEX.
11654
11655 * font.c (font_score): Delete arg alternate_families. Check only
11656 weight, slant, width, and size. Ignore the difference of alias
11657 style symbols.
11658 (font_sort_entites): Adjust for the above change. Reflect the
11659 order of font-driver to scores.
11660 (font_list_entities): Don't check alternate_familes here.
11661 (font_clear_prop): Handle foundry.
11662 (font_update_lface): Don't parse "foundry-family" form here.
11663 Handle FONT_FOUNDRY_INDEX.
11664 (font_find_for_lface): Likewise. Handle alternate families here.
11665 If registry is nil, try iso8859-1 and ascii-0.
11666 (font_open_for_lface): Pay attention to size in ENTITY.
11667 (font_open_by_name): Simplify by calling font_load_for_lface.
11668 (free_font_driver_list): Delete it.
11669 (font_update_drivers): Preserve the order of backends.
11670 (syms_of_font): Setting of sort_shift_bits adjusted for the change
11671 of font_score and font_sort_entites.
11672 (font_update_sort_order): Likewise.
11673
11674 * xfaces.c (LFACE_FOUNDRY): New macro.
11675 (check_lface_attrs): Check foundry.
11676 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
11677 (merge_face_vectors): Check foundry.
11678 (merge_face_ref): Likewise.
11679 (Finternal_set_lisp_face_attribute): Likewise.
11680 (x_update_menu_appearance): Likewise.
11681 (Finternal_get_lisp_face_attribute): Likewise.
11682 (lface_hash): Likewise.
11683 (lface_same_font_attributes_p): Likewise.
11684 (x_supports_face_attributes_p): Likewise.
11685 (tty_supports_face_attributes_p): Likewise.
11686 (Finternal_set_alternative_font_family_alist): Intern strings.
11687 (Finternal_set_alternative_font_registry_alist): Downcase strings.
11688 (realize_default_face): Set LFACE_FOUNDRY (lface).
11689
11690 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
11691 font-driver at first.
11692
11693 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
11694
116952008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
11696
11697 * lread.c (Fload): Use xfree, not free on saved_doc_string.
11698
116992008-06-12 Jim Meyering <meyering@redhat.com>
11700
11701 Make unexec_free handle NULL the same way free does.
11702 * unexmacosx.c (unexec_free): Ignore a NULL argument.
11703
117042008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
11705
11706 * character.h (CHAR_TO_BYTE_SAFE): New macro.
11707 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
11708 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
11709 (WEAK_ALIAS): Simplify.
11710 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
11711 when searching a unibyte buffer.
11712
117132008-06-12 Chong Yidong <cyd@stupidchicken.com>
11714
11715 * xfns.c (Fx_select_font): Rename from x-font-dialog.
11716
117172008-06-12 Juanma Barranquero <lekktu@gmail.com>
11718
11719 * w32font.c: Include ctype.h.
11720
117212008-06-11 Jason Rumney <jasonr@gnu.org>
11722
11723 * w32font.c (w32font_encode_char): Detect missing glyphs that are
11724 misreported as space.
11725 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
11726 as aliases for registry iso10646-1.
11727
117282008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
11729
11730 * buffer.c (clone_per_buffer_values): Skip `name'.
11731
117322008-06-11 Chong Yidong <cyd@stupidchicken.com>
11733
11734 * font.c (font_parse_fcname): Fix last change; accept decimal
11735 points in font size.
11736
117372008-06-10 Jason Rumney <jasonr@gnu.org>
11738
11739 * w32uniscribe.c (add_opentype_font_name_to_list):
11740 Skip non unicode fonts.
11741
117422008-06-10 Chong Yidong <cyd@stupidchicken.com>
11743
11744 * xfns.c (Fx_font_dialog): New function.
11745
11746 * gtkutil.c (xg_dialog_response_cb): Rename from
11747 xg_file_response_callback.
11748 (pop_down_dialog): Rename from pop_down_file_dialog.
11749 (xg_get_file_name): Callers changed.
11750 (xg_get_font_name): New function.
11751
11752 * gtkutil.h (xg_get_font_name): Insert prototype.
11753
117542008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
11755
11756 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
11757 x_underline_minimum_display_offset.
11758 (syms_of_xdisp): Declare it here rather than in xterm.c.
11759 * dispextern.h (underline_minimum_offset): Declare it.
11760 * w32term.c (x_draw_glyph_string): Use it.
11761 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
11762 (syms_of_xterm): Don't declare it any more.
11763 (x_draw_glyph_string): Adjust to the new name.
11764
8719abec 117652008-06-10 David De La Harpe Golden <david@harpegolden.net>
aac0c6e3
MR
11766
11767 * xterm.c (x_underline_minimum_display_offset): New var.
11768 (x_draw_glyph_string): Use it.
11769 (syms_of_xterm): Declare it.
11770
117712008-06-10 Chong Yidong <cyd@stupidchicken.com>
11772
11773 * font.c (font_parse_fcname): Accept GTK-style font names too.
11774
117752008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
11776
11777 * dired.c (file_name_completion): Don't return t if the match is exact
11778 but with different capitalization.
11779 * minibuf.c (Ftry_completion): Simplify.
11780
11781 * window.c (Vwindow_point_insertion_type): New var.
11782 (set_window_buffer): Use it.
11783 (syms_of_window): Init and export it to Lisp.
11784
117852008-06-10 Kenichi Handa <handa@m17n.org>
11786
11787 * font.h (font_intern_prop): Prototype adjusted.
11788
11789 * font.c (font_intern_prop): New arg force_symbol.
11790 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
11791 Adjust for the change of font_intern_prop.
11792
11793 * ftfont.c (ftfont_pattern_entity):
11794 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
11795 (w32_registry):
11796 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
11797 the change of font_intern_prop.
11798
117992008-06-09 Juanma Barranquero <lekktu@gmail.com>
11800
11801 * w32menu.c (digest_single_submenu): Declare extern.
11802
118032008-06-09 Jason Rumney <jasonr@gnu.org>
11804
11805 * w32term.c (x_make_frame_visible): Use alternate restore flags.
11806
11807 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
11808 (parse_single_submenu): Remove.
11809 (digest_single_submenu): Remove.
11810 (syms_of_w32menu): Don't initialise variables that have moved
11811 to menu.c.
11812 (set_frame_menubar): Sync with version in xmenu.c.
11813 (w32_menu_show): Sync with xmenu_show in xmenu.c.
11814
11815 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
11816 Make static again.
11817
118182008-06-09 Jason Rumney <jasonr@gnu.org>
11819
11820 Changes to w32 files related to the move of common menu code
11821 to menu.c on 2008-06-08 by Chong Yidong.
11822
11823 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
11824 defs to w32gui.h.
11825 (single_keymap_panes, push_menu_item, push_menu_pane):
11826 Make globally visible.
11827
11828 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
11829 (local_free, malloc_widget_value, free_widget_value)
11830 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
11831 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
11832 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
11833 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
11834 (menu_items, menu_items_allocated, menu_items_used)
11835 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
11836 (init_menu_items, finish_menu_items, discard_menu_items)
11837 (grow_menu_items, push_submenu_start, push_submenu_end)
11838 (push_left_right_boundary, push_menu_pane, push_menu_item)
11839 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
11840 (free_menubar_widget_tree_value, parse_single_submenu)
11841 (update_submenu_strings): Remove functions.
11842 (xmalloc_widget_value): Remove and declare extern.
11843
11844 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
11845 (OBJ1): Build it.
11846
11847 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
11848 (local_heap, local_alloc, local_free, malloc_widget_value)
11849 (free_widget_value): Define here.
11850
118512008-06-09 Kenichi Handa <handa@m17n.org>
11852
11853 * font.h (Qascii_0): Extern it.
11854
11855 * font.c (Qascii_0): New variable.
11856 (syms_of_font): DEFSYM it.
11857 (font_open_by_name): If the registry "iso8859-1" fails, try also
11858 "ascii-0".
11859
11860 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
11861
118622008-06-08 Kenichi Handa <handa@m17n.org>
11863
11864 * .gdbinit (xfont): New command.
11865
118662008-06-08 Andreas Schwab <schwab@suse.de>
11867
11868 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
11869 * Makefile.in (menu.o): Update dependencies.
11870
11871 * Makefile.in (obj): Always add menu.o.
11872 * emacs.c (main): Always call syms_of_menu.
11873 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
11874
118752008-06-08 Chong Yidong <cyd@stupidchicken.com>
11876
11877 * Makefile.in: Compile menu.c.
11878
11879 * lisp.h: Declare syms_of_menu.
11880
11881 * emacs.c (main): Call syms_of_menu.
11882
11883 * keyboard.h: Relocate platform-independent menu definitions from
11884 xmenu.c.
11885
11886 * menu.c: New file. Relocate platform-independent menu
11887 definitions from xmenu.c. Suggested by Adrian Robert.
11888
11889 * xmenu.c: Remove platform-independent menu definitions.
560bb7ae 11890 (menu_items, menu_items_inuse, menu_items_allocated)
aac0c6e3
MR
11891 (menu_items_used, menu_items_n_panes)
11892 (menu_items_submenu_depth): Move to keyboard.h.
11893 (init_menu_items, finish_menu_items, unuse_menu_items)
11894 (discard_menu_items, restore_menu_items, save_menu_items)
11895 (grow_menu_items, push_submenu_start, push_submenu_end)
11896 (push_left_right_boundary, push_menu_pane, push_menu_item)
11897 (keymap_panes, single_keymap_panes, single_menu_item)
11898 (list_of_panes, list_of_items, find_and_call_menu_selection)
11899 (xmalloc_widget_value, free_menubar_widget_value_tree)
11900 (parse_single_submenu, digest_single_submenu)
11901 (update_submenu_strings): Move to menu.c.
11902
119032008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
11904
11905 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
11906
119072008-06-06 Miles Bader <miles@gnu.org>
11908
11909 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
11910 face, not frame default.
11911
119122008-06-05 Martin Rudalics <rudalics@gmx.at>
11913
11914 * window.c (pop_up_windows, pop_up_frames)
11915 (display_buffer_reuse_frames, Vpop_up_frame_function)
11916 (Vdisplay_buffer_function, Veven_window_heights)
11917 (Vspecial_display_buffer_names, Vspecial_display_regexps)
11918 (Vspecial_display_function, Vsame_window_buffer_names)
11919 (Vsame_window_regexps, split_height_threshold)
11920 (Vsplit_window_preferred_function): Move those vars to window.el.
11921 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
11922 (Fdisplay_buffer): Move those functions to window.el.
11923 (syms_of_window): Remove corresponding declarations.
11924 (display_buffer): New function.
11925 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
11926 * dispnew.c (Flast_nonminibuf_frame): New function.
11927 * buffer.c (Fpop_to_buffer): Move to window.el.
11928
119292008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
11930
11931 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
11932
119332008-06-05 Kenichi Handa <handa@m17n.org>
11934
11935 * coding.c (detect_coding): Fix previous change.
11936 (detect_coding_system): Likewise.
11937
119382008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
11939
11940 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
11941
11942 * keymap.c (Vminibuffer_local_filename_must_match_map):
11943 Rename from Vminibuffer_local_must_match_filename_map.
11944 (syms_of_keymap):
11945 * minibuf.c (Fcompleting_read): Adjust accordingly.
11946 * commands.h: Rename declaration as well.
11947
119482008-06-05 Kenichi Handa <handa@m17n.org>
11949
11950 * font.c (Ffont_spec): Don't use font_parse_family_registry for
11951 family name.
11952 (Ffont_put): Likewise.
11953
11954 * fontset.c (fontset_find_font): Call font_open_for_lface with the
11955 current font-spec.
11956
11957 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
11958 is unspecified.
11959
11960 * xfaces.c (realize_x_face): If the font-related face attributes
11961 are the same as those of default face, realize a new fontset from
11962 default->fontset.
11963 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
11964
119652008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
11966
11967 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
11968 (move_it_in_display_line): New wrapper.
11969
11970 * window.c (window_scroll_pixel_based_preserve_x)
11971 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
11972 (window_scroll_pixel_based, window_scroll_line_based):
11973 Use them to preserve column positions.
11974 (syms_of_window): Initialize them.
11975
11976 * indent.c (Fvertical_motion): Extend first arg to allow passing an
11977 (HPOS . VPOS) pair.
11978
11979 * dispextern.h (move_it_in_display_line): Declare.
11980
119812008-06-05 Juanma Barranquero <lekktu@gmail.com>
11982
11983 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
11984 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
11985 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
11986
119872008-06-04 Juanma Barranquero <lekktu@gmail.com>
11988
11989 * window.c (Fset_window_parameter): Doc fix.
11990 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
11991
119922008-06-04 Joakim Verona <joakim@verona.se>
11993
11994 * window.h (struct window): Add new member window_parameters.
11995
11996 * window.c (Fwindow_parameters, Fwindow_parameter)
11997 (Fset_window_parameter): New defuns.
11998 (syms_of_window): Defsubr the new defuns.
11999 (make_window): Initialize window_parameters to nil.
12000
120012008-06-04 John Paul Wallington <jpw@pobox.com>
12002
12003 * eval.c (Fdefmacro): Doc fix.
12004
120052008-06-04 Kenichi Handa <handa@m17n.org>
12006
12007 * coding.c (detect_coding): Fix handling of coding->head_ascii.
12008 Be sure to call setup_coding_system when we find a proper coding system.
12009 (detect_coding_system): Fix handling of coding->head_ascii.
12010
120112008-06-03 Andreas Schwab <schwab@suse.de>
12012
12013 * font.c (font_prop_validate_spacing): Fix last change.
12014
120152008-06-03 Kenichi Handa <handa@m17n.org>
12016
12017 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
12018 (font_parse_fcname): Fix handling of unknown key.
12019
12020 * xfont.c (xfont_list): Try an alias.
12021
12022 * charset.c (char_charset): Return NULL if the arg charset_list is
12023 specified and C doesn't belong to any of them.
12024
120252008-06-02 Chip Coldwell <coldwell@redhat.com>
12026
12027 * font.c (font_pixel_size): Don't take cdr of an integer.
12028
120292008-06-02 Jim Meyering <meyering@redhat.com>
12030
12031 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
12032 * alloc.c (xfree): Return right away for a NULL arg.
12033 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
12034 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
12035 * mac.c (create_apple_event_from_event_ref): Likewise.
12036 (create_apple_event_from_drag_ref, cfstring_create_normalized):
12037 Likewise.
12038 * doprnt.c (doprnt1): Likewise.
12039 * frame.c (frame): Likewise.
12040 * keyboard.c (wipe_kboard): Likewise.
12041 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
12042 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
12043 * term.c (tty_default_color_capabilities, maybe_fatal)
12044 (delete_tty): Likewise.
12045 * w16select.c (string): Likewise.
12046 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
12047 * w32bdf.c (w32_free_bdf_font): Likewise.
12048 * w32fns.c (w32_unload_font): Likewise.
12049 * w32font.c (w32font_close): Likewise.
12050 * window.c (size_window): Likewise.
12051 * xselect.c (receive_incremental_selection): Likewise.
12052 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
12053 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
12054 * w32.c (stat): Likewise.
12055
12056 Remove useless if-before-free tests.
12057 * editfns.c (Fset_time_zone_rule): Likewise.
12058 * lread.c (nosuffix): Likewise.
12059 * ralloc.c (get_bloc): Likewise.
12060 * regex.c (reg_free): Likewise.
12061 * xftfont.c (xftfont_open, xftfont_close): Likewise.
12062 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
12063 * xsmfns.c (smc_save_yourself_CB): Likewise.
12064
120652008-06-02 Kenichi Handa <handa@m17n.org>
12066
12067 * font.c (font_find_for_lface): Handle float font size.
12068 (font_open_for_lface): Likewise.
12069
12070 * xfaces.c (x_supports_face_attributes_p): Check face->font before
12071 comparing the properties.
12072
120732008-06-01 Jason Rumney <jasonr@gnu.org>
12074
12075 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
12076 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
12077 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
12078 Don't add empty script list.
12079 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
12080
120812008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
12082
12083 * Makefile.in (dot, dotdot): Remove, update users.
12084 ".." has been used elsewhere in the file for a long time.
12085 (LIBXT_STATIC): Remove conditional based on unused variable.
12086
120872008-06-01 Miles Bader <miles@gnu.org>
12088
12089 * xfaces.c (Vface_remapping_alist): New variable.
12090 (syms_of_xfaces): Initialize it.
12091 (enum named_merge_point_kind): New type.
12092 (struct named_merge_point): Add `named_merge_point_kind' field.
12093 (push_named_merge_point): Make cycle detection respect different
12094 named-merge-point kinds.
12095 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
12096 Remove face-name alias resolution.
12097 (lface_from_face_name): New definition using
12098 `lface_from_face_name_no_resolve'.
12099 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
12100 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
12101 (get_lface_attributes): New definition that layers face-remapping on
12102 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
12103 (lookup_basic_face): New function.
12104 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
12105 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
12106 `get_lface_attributes'.
12107 (face_at_buffer_position): Use `lookup_basic_face' to lookup
12108 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
12109 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
12110
12111 * xdisp.c (init_iterator): Pass base_face_id through
12112 `lookup_basic_face' when we actually use it as a face-id.
12113 (handle_single_display_prop): Use `lookup_basic_face' to lookup
12114 DEFAULT_FACE_ID.
12115
12116 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
12117 lookup the initial face-id.
12118
12119 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
12120
121212008-06-01 Juanma Barranquero <lekktu@gmail.com>
12122
12123 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
12124 (Fremove_text_properties): Fix typos in docstrings.
12125
121262008-05-31 Kenichi Handa <handa@m17n.org>
12127
12128 * font.c (font_list_entities): Fix the car part of data to be
12129 stored in the cache.
12130
12131 * ftfont.c (ftfont_font_format): Don't use strcasestr.
12132
121332008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
12134
12135 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
12136 Add a `test' argument so another predicate than `equal' can be used.
12137 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
12138 (map_char_table): Remove unused vars `c' and `i'.
12139 * lisp.h (Foptimize_char_table): Adjust declaration.
12140 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
12141
121422008-05-30 Kenichi Handa <handa@m17n.org>
12143
12144 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
12145 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
12146 defined.
12147
121482008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
12149
12150 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
12151 (Fmake_variable_frame_local): Disallow mixing buffer-local and
12152 frame-local settings for the same variable.
12153
121542008-05-30 Kenichi Handa <handa@m17n.org>
12155
12156 * fontset.c (Ffont_info): Move to font.c.
12157 (syms_of_fontset): Delete defsubr of Sfont_info.
12158
12159 * font.c (font_style_to_value, font_score): Delete casting of the
12160 args to xstcasecmp.
12161 (register_font_driver): Increment num_font_drivers only when
12162 registering the driver globally.
12163 (Ffont_info): Move from fontset.c. Handle a font object too.
12164 (syms_of_font): Defsubr Sfont_info.
12165
121662008-05-29 Kenichi Handa <handa@m17n.org>
12167
12168 * coding.h (enum define_coding_utf8_arg_index): New enum.
12169 (enum coding_attr_index): Change coding_attr_utf_16_bom to
12170 coding_attr_utf_bom.
12171 (enum utf_bom_type): Rename from utf_16_bom_type.
12172 (struct utf_16_spec): Adjust for the above change.
12173 (struct coding_system): Add utf_8_bom in `spec' union.
12174
12175 * coding.c (CODING_UTF_8_BOM): New macro.
12176 (enum coding_category): Delete coding_category_utf_8, add
12177 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
12178 coding_category_utf_8_sig.
12179 (CATEGORY_MASK_UTF_8): Delete it.
12180 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
12181 (CATEGORY_MASK_UTF_8_SIG): New macros.
12182 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
12183 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
12184 CATEGORY_MASK_UTF_8_SIG.
12185 (CATEGORY_MASK_UTF_8): New macro.
12186 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
12187 (detect_coding_utf_8): Check BOM.
12188 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
12189 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
12190 (encode_coding_utf_16): Likewise.
12191 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
12192 (detect_coding, detect_coding_system): Handle utf-8-auto.
12193 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
12194 (syms_of_coding): Fix setting up of Vcoding_category_table.
12195
121962008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
12197
12198 * process.c (Faccept_process_output): If `millisec' is non-nil,
12199 `seconds' default to 0.
12200 (wait_reading_process_output): Also return non-nil if we read output
12201 from a non-running process.
12202
122032008-05-29 Jason Rumney <jasonr@gnu.org>
12204
12205 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
12206 `raster' specified.
12207 (add_font_entity_to_list): Allow non-opentype truetype fonts back
12208 in the uniscribe backend, but disallow any font that has no
12209 unicode subrange support.
12210
122112008-05-29 Juanma Barranquero <lekktu@gmail.com>
12212
12213 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
12214 Fix typos in docstrings.
12215
122162008-05-29 Kenichi Handa <handa@m17n.org>
12217
12218 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
12219 (Fx_family_fonts): Set frame correctly.
12220
122212008-05-28 Jason Rumney <jasonr@gnu.org>
12222
12223 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
12224
122252008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
12226
12227 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
12228 calling build_annotations.
12229
122302008-05-28 Juanma Barranquero <lekktu@gmail.com>
12231
12232 * coding.c (Fdecode_coding_region, Fencode_coding_region)
12233 (Fencode_coding_string):
12234 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
12235 <latin-extra-code-table>: Fix typos in docstrings.
12236 (syms_of_coding) <coding-system-alist>: Doc fix.
12237 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
12238
122392008-05-28 Kenichi Handa <handa@m17n.org>
12240
12241 * fontset.c (Ffont_info): Don't call font_close_object.
12242
12243 * font.c (font_parse_family_registry): Use Ffont_put to validate
12244 foundry and family.
12245 (font_delete_unmatched): Don't check spacing.
12246 (font_list_entities): Add spacing to the spec to list fonts.
12247
12248 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
12249 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
12250
12251 * coding.c (encode_coding_raw_text): Fix previous change.
12252 (encode_coding_object): When the dst_object is a buffer and is
12253 different from src_object, move gap to PT.
12254
122552008-05-27 Chong Yidong <cyd@stupidchicken.com>
12256
12257 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
12258
122592008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
12260
12261 * coding.c (encode_coding_raw_text): Set coding->produced_char for
12262 all branches. Compute it differently.
12263
12264 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
12265
122662008-05-27 Juanma Barranquero <lekktu@gmail.com>
12267
12268 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
12269 into "else if () ... else ...".
12270
122712008-05-27 Jason Rumney <jasonr@gnu.org>
12272
12273 * w32font.c (w32font_open_internal): Determine if glyph indices
12274 are likely to work here.
12275
122762008-05-27 Chong Yidong <cyd@stupidchicken.com>
12277
12278 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
12279 draw overlap glyphs with appropriate highlighting.
12280
122812008-05-27 Kenichi Handa <handa@m17n.org>
12282
12283 * xfont.c (xfont_open): Fix calculation of font->average_width.
12284
122852008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
12286
12287 * casefiddle.c (casify_object): Try to guess better whether the
12288 argument is a byte or a char.
12289
122902008-05-26 Andreas Schwab <schwab@suse.de>
12291
12292 * xselect.c (x_reply_selection_request): Properly handle format == 32.
12293 Always send multiples of format size.
12294
12295 * xterm.c (x_set_frame_alpha): Fix type mismatch.
12296
122972008-05-26 Jason Rumney <jasonr@gnu.org>
12298
12299 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
12300 (compute_metrics): Don't set failure if we just cleared the cache.
12301 (w32_weight_table): Remove unused variable.
12302 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
12303 backwards compatibility.
12304
123052008-05-25 Kenichi Handa <handa@m17n.org>
12306
12307 * w32term.c (x_draw_glyph_string):
12308 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
12309
12310 * xfaces.c: Delete unused function prototypes.
12311 (xstrlwr, font_frame): Delete them.
12312 (clear_face_cache): Delete unused variable.
12313
12314 * xftfont.c (xftfont_open): Delete unused variable.
12315 If underline_thickness is not 1, adjust underline_position.
12316
12317 * ftxfont.c (ftxfont_open): Delete unused variable.
12318
12319 * fontset.c (face_for_char): Optimize for the case of no charset
12320 property.
12321
12322 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
12323 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
12324 (otf_open, font_otf_capability, generate_otf_features)
12325 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
12326 Comment out by surrounding "#if 0" and "#endif" for the moment.
12327 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
12328 (syms_of_font): Codes for accessing above commented out.
12329
123302008-05-24 Eli Zaretskii <eliz@gnu.org>
12331
12332 * w32proc.c: Include dispextern.h.
12333
12334 * w32.c: Include dispextern.h.
12335
123362008-05-23 Juanma Barranquero <lekktu@gmail.com>
12337
12338 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
12339 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
12340 Fix typos in docstrings.
12341
123422008-05-23 Jason Rumney <jasonr@gnu.org>
12343
12344 * xsmfns.c: Remove includes that are already included by config.h.
12345
123462008-05-23 Kenichi Handa <handa@m17n.org>
12347
12348 * charset.c (Qemacs, charset_emacs): New variables.
12349 (char_charset): Fix for non-Unicode characters.
12350 (syms_of_charset): Define charset_emacs.
12351
12352 * w32term.c (x_draw_glyph_string): Be sure to update
12353 s->underline_thickness and s->underline_position. Be sure to draw
12354 underline within the current line area.
12355
12356 * xterm.c (x_draw_glyph_string): Be sure to update
12357 s->underline_thickness and s->underline_position. Be sure to draw
12358 underline within the current line area.
12359
12360 * fontset.c: Delete unused variables and add casting for char *
12361 throughout the file.
12362 (fontset_font): Try the fallback fonts of the current fontset
12363 before consulting the default fontset.
12364
12365 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
12366
12367 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
12368
123692008-05-22 Jason Rumney <jasonr@gnu.org>
12370
12371 * font.c: Don't include strings.h.
12372
12373 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
12374
12375 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
12376 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
12377 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
12378 to call xstrcasecmp.
12379
12380 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
12381
12382 * fontset.c (fs_query_fontset): Use xstrcasecmp.
12383
12384 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
12385
12386 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
12387
123882008-05-22 Kenichi Handa <handa@m17n.org>
12389
12390 * puresize.h (BASE_PURESIZE): Increase to 1220000.
12391
12392 * font.c (font_prop_validate_style): Adjust for the format
12393 change of font_style_table.
12394
12395 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
12396 two args.
12397
12398 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
12399 two args.
12400
124012008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
12402
12403 * minibuf.c (keys_of_minibuf): Delete.
12404 * lisp.h (keys_of_minibuf): Delete.
12405 * emacs.c (main): Don't call keys_of_minibuf.
12406
124072008-05-22 Kenichi Handa <handa@m17n.org>
12408
12409 * ftfont.c (ftfont_resolve_generic_family): Rename from
12410 ftfont_list_generic_family. Return a single family for each
12411 generic family.
12412 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
12413 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
12414 Call font_add_log.
12415 (ftfont_match): Call font_add_log.
12416
12417 * font.h (Ffont_xlfd_name): EXFUN adjusted.
12418 (FONT_DEBUG): Define it.
12419 (font_add_log): Extern it.
12420 (font_assert): Rename from xassert.
12421
12422 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
12423 (xfont_list_family): Call font_add_log.
12424 (xfont_match): Likewise.
12425 (memq_no_quit): Delete.
12426
12427 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
12428 call of Ffont_xlfd_name.
12429
12430 * xfaces.c (struct table_entry, slant_table, weight_table)
12431 (swidth_table): Move to font.c.
12432
12433 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
12434 xassert are changed to font_assert. Delete many unused variables.
12435 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
12436 New variables.
12437 (struct table_entry): Move from xfaces.c and modified.
12438 (weight_table, slant_table, width_table): Move from xfaces.c and
12439 contents adjusted for the change of struct table_entry.
12440 (font_style_to_value, font_style_symbolic): Adjust for the
12441 format change of font_style_table.
12442 (font_parse_family_registry): Don't overwrite existing foundry and
12443 family of font_spec.
12444 (font_score): Fix calculation of diff for sizes.
12445 (font_sort_entites): Call font_add_log.
12446 (font_delete_unmatched): Return a newly created list.
12447 (font_list_entities): Fix previous change. Call font_add_log.
12448 (font_matching_entity, font_open_entity, font_close_entity):
12449 Call font_add_log.
12450 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
12451 (Finternal_set_font_style_table): Delete.
12452 (BUILD_STYLE_TABLE): New macro.
12453 (build_style_table): New function.
12454 (Vfont_log, font_log_env_checked): New variables.
12455 (font_add_log): New function.
12456 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
12457 Declare Lisp variables "font-weight-table", "font-slant-table",
12458 "font-width-table", and "font-log". Initialize font_style_table.
12459
124602008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
12461
12462 * xterm.c (x_set_frame_alpha): Move declarations before statements.
12463
124642008-05-21 Seiji Zenitani <zenitani@mac.com>
4e2af782 12465 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
12466
12467 * frame.c (Qalpha): Add a new frame parameter `alpha'.
12468 (Vframe_alpha_lower_limit): New variable.
12469 (x_set_alpha): New function.
12470
12471 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
12472
12473 * xfns.c (x-create-frame, Qalpha):
12474 Initialize the frame parameter `alpha'.
12475 * xterm.c (OPAQUE, OPACITY): New.
12476 (x_set_frame_alpha): New function.
12477 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
12478
12479 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
12480 * w32fns.c (w32_frame_parm_handlers): Likewise.
12481
124822008-05-20 Jason Rumney <jasonr@gnu.org>
12483
12484 * w32font.c (add_font_entity_to_list): Don't add non-opentype
12485 truetype fonts to opentype list.
12486
124872008-05-20 Juanma Barranquero <lekktu@gmail.com>
12488
12489 * fontset.c (Ffontset_info): Doc fix.
12490 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
12491 <ignore-relative-composition>: Fix typos in docstrings.
12492
12493 * font.c (syms-of-font) <font-encoding-alist>:
12494 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
12495 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
12496 (Ffont_otf_alternates): Doc fixes.
12497
124982008-05-20 Kenichi Handa <handa@m17n.org>
12499
12500 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
12501 font.h through out the file.
12502 (FONT_DRIVERS): Rename from FONTOBJ.
12503 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
12504 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
12505
12506 * emacs.c (main): Call syms_of_font unconditionally.
12507
12508 * font.h (find_font_encoding): Extern it.
12509
12510 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
12511 fontset.c.
194d44e7 12512 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
aac0c6e3
MR
12513 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
12514 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
12515 only when HAVE_WINDOW_SYSTEM is defined.
12516 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
12517 when HAVE_WINDOW_SYSTEM is defined.
12518
12519 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
12520 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
12521
12522 * xfaces.c: Include font.h unconditionally.
12523 (merge_face_ref, merge_face_vectors)
12524 (Finternal_set_lisp_face_attribute): Cancel the previous change.
12525
125262008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
12527
12528 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
12529 indirect_variable.
12530 * eval.c (lisp_indirect_variable): New fun.
12531 (Fuser_variable_p): Use it.
12532
125332008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
12534
12535 * lisp.h (indirect_variable):
12536 * data.c (indirect_variable, let_shadows_buffer_binding_p):
12537 Use Lisp_Symbol pointers rather than Lisp_Object.
12538 Adjust callers.
12539 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
12540 To this end, change calling-convention.
12541
12542 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
12543 if some non-hidden buffers are selected by string&pred.
12544
125452008-05-19 Chong Yidong <cyd@stupidchicken.com>
12546
12547 * process.c (wait_reading_process_output): Always check status
12548 when in batch mode.
12549
125502008-05-19 Kenichi Handa <handa@m17n.org>
12551
12552 * font.c (font_list_entities): Fix handling of cache.
12553 (font_matching_entity): Likewise.
12554
12555 * ftfont.c (cs_iso8859_1): Delete.
12556 (ft_face_cache): New variable.
12557 (struct ftfont_info): New member fc_charset_idx.
12558 (ftfont_build_basic_charsets): Delete.
12559 (fc_charset_table): New variable.
12560 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
12561 . FC_CHARSET_IDX) as :font-entity property in the font entity.
12562 Callers changed.
12563 (ftfont_lookup_cache, ftfont_get_charset): New functions.
12564 (ftfont_spec_pattern): New argument fc_charset_idx.
12565 Check registry more rigidly. Change callers.
12566 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
12567 change of :font-entity property of the font.
12568
12569 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
12570 property of the font.
12571
125722008-05-18 Juanma Barranquero <lekktu@gmail.com>
12573
12574 * coding.c (Fcoding_system_p): Rename argument to match docstring.
12575 (Funencodable_char_position, Fcheck_coding_systems_region)
12576 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
12577 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
12578 (Ffind_operation_coding_system, Fset_coding_system_priority)
12579 (Fcoding_system_eol_type): Doc fixes.
12580
125812008-05-17 Glenn Morris <rgm@gnu.org>
12582
12583 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
12584
125852008-05-16 Eli Zaretskii <eliz@gnu.org>
12586
12587 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
12588 and st_gid.
12589
12590 * frame.c (Fdelete_frame): Don't call font_update_drivers if
12591 HAVE_WINDOW_SYSTEM is not defined.
12592
12593 * xfaces.c (merge_face_ref, merge_face_vectors)
12594 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
12595 HAVE_WINDOW_SYSTEM is defined.
12596 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
12597
125982008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
12599
12600 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
12601
126022008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12603
12604 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
12605
126062008-05-15 Kenichi Handa <handa@m17n.org>
12607
12608 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
12609 preference.
12610
126112008-05-15 Glenn Morris <rgm@gnu.org>
12612
12613 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
12614
126152008-05-15 Chong Yidong <cyd@stupidchicken.com>
12616
12617 * fns.c (init_fns): Don't initialize weak_hash_tables here.
12618 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
12619
12620 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
12621
126222008-05-15 Kenichi Handa <handa@m17n.org>
12623
12624 * ftfont.c (ftfont_list): Downcase family name to check generic
12625 families.
12626
12627 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
12628 font-spec for QCfont value.
12629
12630 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
12631 buffer. Check the return value of it.
12632
126332008-05-14 Jason Rumney <jasonr@gnu.org>
12634
12635 * w32term.c (w32_get_glyph_overhangs): Remove.
12636 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
12637
126382008-05-14 Kenichi Handa <handa@m17n.org>
12639
12640 * font.c (font_prop_validate): Make nil a valid value.
12641 (font_clear_cache): Check if the cached vector of entities is nil
12642 or not.
12643
126442008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12645
12646 * emacs.c (main_thread): Conditionalize on
12647 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
12648 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
12649
12650 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
12651 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
12652 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
12653
126542008-05-14 Kenichi Handa <handa@m17n.org>
12655
12656 * coding.c (detect_coding_iso_2022): Ignore a coding category that
12657 has no corresponding coding system.
12658
126592008-05-14 Jason Rumney <jasonr@gnu.org>
12660
12661 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
12662
12663 * w32font.h (w32font_open_internal): Update declaration.
12664
12665 * w32font.c (w32font_open_internal): Change last argument from
12666 w32font_info struct to font object. Fill in font object from
12667 font_entity. Get Outline metrics if possible. Use them to
12668 calculate underline position and thickness. Use xlfd name as name
12669 property. Don't set codepage.
12670 (w32font_open): Pass font_object to w32font_open_internal. Don't
12671 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
12672 (w32font_draw): Use s->font.
12673 (clear_cached_metrics): Don't clear non-existent blocks.
12674
12675 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
12676 font was not found.
12677 (x_draw_glyph_string): Use underline position and thickness from font.
12678
12679 * w32uniscribe.c (uniscribe_open): Pass font_object to
12680 w32font_open_internal.
12681
126822008-05-14 Kenichi Handa <handa@m17n.org>
12683
12684 These changes are to delete all legacy font-handling codes, and
12685 make Emacs use only font-backends.
12686
12687 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
12688 (frame.o, image.o, print.o): Depend on $(FONTSRC).
12689
12690 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
12691
12692 * charset.h (Vcharset_non_preferred_head)
12693 (Vcurrent_iso639_language): Extern them.
12694
12695 * charset.c (Vcharset_non_preferred_head): New variable.
12696 (Vcurrent_iso639_language): New variable.
12697 (syms_of_charset): Declare it as a Lisp variable.
12698 (char_charset): Don't check non preferred charsets. As a last
12699 resort, return charset_unicode.
12700 (Fset_charset_priority): Update Vcharset_non_preferred_head.
12701
12702 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
12703 conditionals. Don't check enable_font_backend. Delete all codes
12704 used only when USE_FONT_BACKEND is not defined.
12705
12706 * dispextern.h (struct glyph_string): Change type of `font' to
12707 `struct font *'.
12708 (struct glyph_string): New member underline_position and
12709 underline_thickness.
12710 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
12711 (struct face): Change type of `font' to `struct font *'. Remove
12712 members `font_name', `font_info_id'.
12713 (per_char_metric, encode_char): Delete externs.
12714 (calc_pixel_width_or_height): Adjust the prototype.
12715
12716 * emacs.c (enable_font_backend): Delete extern.
12717 (main): Don't set enable_font_backend. Don't check the command
12718 line argument "-disable-font-backend".
12719
12720 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
12721 (enum font_property_index): New members FONT_DPI_INDEX,
12722 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
12723 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
12724 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
12725 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
12726 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
12727 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
12728 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
12729 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
12730 (struct font_spec, struct font_entity): New structs.
12731 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
12732 (struct font): Many members from old "struct font_info" moved to
12733 here. Members font and entity deleted.
12734 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
12735 the new font-related objects.
12736 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
12737 (CHECK_FONT_GET_OBJECT): Likewise.
12738 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
12739 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
12740 (struct font_driver): New members case_sensitive anc check. Type
12741 of the member list and open changed.
12742 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
12743 (font_symbolic_width, font_find_object, font_get_spec)
12744 (font_set_lface_from_name): Delete extern.
12745 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
12746
12747 * font.c: Include <strings.h>.
12748 (enable_font_backend): Delete it.
12749 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
12750 (CHECK_VALIDATE_FONT_SPEC): Delete it.
12751 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
12752 (null_string): Delete it.
12753 (null_vector): Make it static.
12754 (font_family_alist): Delete it.
12755 (Qnormal): Extern it.
12756 (QCextra, QClanguage): Delete it.
12757 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
12758 (font_make_spec, font_make_entity, font_make_object)
12759 (font_intern_prop): Renamed from intern_downcase. Don't downcase
12760 the string. Callers changed.
12761 (font_pixel_size): Adjusted for the format change of font-related
12762 objects.
12763 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
12764 (font_style_to_value, font_style_symbolic): New function.
12765 (build_font_family_alist): Delete it.
12766 (font_registry_charsets): Use Fassoc_string instead of
12767 assq_no_quit.
12768 (font_prop_validate_symbol): Don't return null_string.
12769 (font_prop_validate_style): Adjusted for the change of
12770 style-related values in a font vector.
12771 (font_property_table): Delete entries for QClanguage and
12772 QCantialias, add entries for QCavgwidth.
12773 (get_font_prop_index): Delete the 2nd argument FROM.
12774 (font_prop_validate): Arguments changed.
12775 (font_put_extra): Adjusted for the change of font-related objects.
12776 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
12777 (font_parse_fcname, font_unparse_fcname)
12778 (font_prepare_composition): Likewise.
12779 (font_parse_family_registry): Renamed from font_merge_old_spec.
12780 (otf_open): Delete the 1st arg entity.
12781 (font_otf_capability): Adjusted for the above change.
12782 (font_score): New arg alternate_families. Adjusted for the change
12783 of font-related objects.
12784 (font_sort_entites): New arg best_only.
12785 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
12786 Delete them.
12787 (font_match_p): Check alternate families.
12788 (font_find_object): Delete it.
12789 (font_check_object): New function.
12790 (font_clear_cache): Adjusted for the change of font-related objects.
12791 (font_delete_unmatched): New arg.
12792 (font_list_entities): Call font_driver->list with a spec that
12793 doesn't specify style-related properties.
12794 (font_matching_entity): Arguments changed. Caller changed.
12795 (font_open_entity): Adjusted for the change of font-related objects.
12796 (font_close_object, font_has_char, font_encode_char)
12797 (font_get_name, font_get_spec): Likewise.
12798 (font_spec_from_name, font_clear_prop, font_update_lface):
12799 New functions.
12800 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
12801 (font_prepare_for_face, font_done_for_face, font_open_by_name)
12802 (font_at): Adjusted for the change of font-related objects.
12803 (font_range): New function.
12804 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
12805 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
12806 (Fcopy_font_spec, Fmerge_font_spec): New function.
12807 (Ffont_family_list): Renamed from list-families.
12808 (Finternal_set_font_style_table): Arguments changed.
12809 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
12810 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
12811 change of font-related objects.
12812 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
12813
12814 * fontset.h (struct font_info): Delete it. Most members go to
12815 struct font.
12816 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
12817 (enum FONT_SPEC_INDEX): Delete it.
12818 (font_info, list_fonts_func, load_font_func, query_font_func)
12819 (set_frame_fontset_func, find_ccl_program_func)
12820 (get_font_repertory_func, new_fontset_from_font_name): Delete
12821 externs.
12822 (fontset_from_font_name): Extern it.
12823 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
12824 (FONT_INFO_FROM_FACE): Deleted.
12825 (face_for_font): Adjust prototype.
12826
12827 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
12828 conditionals. Don't check enable_font_backend. Delete all codes
12829 used only when USE_FONT_BACKEND is not defined.
12830 (get_font_info_func, list_font_func, load_font_func)
12831 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
12832 (get_font_repertory_func): Delete them.
12833 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
12834 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
12835 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
12836 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
12837 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
12838 (fontset_compare_rfontdef): New function.
12839 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
12840 rfont-defs by qsort. Adjusted for the change of font-group vector.
12841 (load_font_get_repertory): Deleted.
12842 (fontset_find_font): Use new macros to ref/set elements of
12843 font-def and rfont-def.
12844 (fontset_font): Fix the timing of remembering that no font for C.
12845 (free_face_fontset): Do nothing if the face has no fontset.
12846 (face_suitable_for_char_p): Use new macros to ref/set elements of
12847 rfont-def.
12848 (face_for_char): Likewise. Call face_for_char with font_object.
12849 (fs_load_font): Delete. Delete #pragma surrounding it.
12850 (fs_query_fontset): Use strcasecmp instead of strcmp.
12851 (generate_ascii_font_name): Adjusted for the format change of
12852 font-spec.
12853 (Fset_fontset_font): Likewise. Use new macros to set elements of
12854 font-def.
12855 (Fnew_fontset): Use font_unparse_xlfd to generate
12856 FONTSET_ASCII (fontset).
12857 (new_fontset_from_font_name): Deleted.
12858 (fontset_from_font): Renamed from new_fontset_from_font. Check if
12859 a fontset is already created for the font. FIx updating of
12860 Vfontset_alias_alist.
12861 (fontset_ascii_font): Deleted.
12862 (Ffont_info): Adjusted for the format change of font-spec.
12863 (Finternal_char_font): Likewise.
12864 (Ffontset_info): Likewise.
12865 (syms_of_fontset): Don't check load_font_func.
12866
12867 * fns.c (internal_equal): Handle PREV_FONT.
12868
12869 * frame.h: Delete USE_FONT_BACKEND conditional.
12870
12871 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
12872 conditionals. Don't check enable_font_backend. Delete all codes
12873 used only when USE_FONT_BACKEND is not defined.
12874 (x_set_font): Call x_new_font, not x_new_fontset2.
12875 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
12876 already set for the frame.
12877
12878 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
12879 a font-entity by font_make_entity. Use font_intern_prop instead
12880 of intern_downcase. Use FONT_SET_STYLE to set a style-related
12881 font property. If a font is scalable, set avgwidth property to 0.
12882 Set font-entity property by font_put_extra.
12883 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
12884 (ffont_driver): Adjusted for the change of struct font_driver.
12885 (ftfont_spec_pattern): New function.
12886 (ftfont_list): Return a list, not vector.
12887 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
12888 (ftfont_list_family): Don't downcase names.
12889 (ftfont_free_entity): Deleted.
12890 (ftfont_open): Return a font-object. Adjusted for the change of
12891 struct font. Get underline_thickness and underline_position from
12892 font property. Don't update dpyinfo->smallest_font_height and
12893 dpyinfo->smallest_char_width.
12894 (ftfont_close): Don't free `struct font'.
12895 (ftfont_has_char): Adjusted for the format change of font-entity.
12896 (ftfont_encode_char, ftfont_text_extents): Likewise.
12897
12898 * ftxfont.c (ftxfont_list): Return a list, not vector.
12899 (ftxfont_open): Return a font-object. Adjusted for the change of
12900 struct font. Get underline_thickness and underline_position from
12901 font property. Don't update dpyinfo->smallest_font_height and
12902 dpyinfo->smallest_char_width.
12903 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
12904 (ftxfont_draw): Adjusted for the change of struct font.
12905
12906 * image.c (image_ascent): Don't include "charset.h". Include
12907 "character.h" and "font.h".
12908
12909 * lisp.h (enum pvec_type): New member PREV_FONT.
12910 (Fassoc_string): EXFUN it.
12911
12912 * print.c: Include font.h.
12913 (print_object): Handle font-related objects.
12914
12915 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
12916 conditionals. Don't check enable_font_backend. Delete all codes
12917 used only when USE_FONT_BACKEND is not defined.
12918 (handle_auto_composed_prop): Do nothing if it->f is not on a
12919 window system. Check how many following characters can be
12920 displayed by the same font.
12921 (calc_pixel_width_or_height): Type of the 4th arg is changed to
12922 'struct font *'.
12923 (get_char_face_and_encoding): Assign the whole encoding task to
12924 the `encode-char' method of a font driver.
12925 (fill_composite_glyph_string): Adjusted for the change of `struct
12926 face' and `struct glyph_string'.
12927 (fill_glyph_string): Likewise.
12928 (get_per_char_metric): Arguments changed.
12929 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
12930 and `struct glyph_string'.
12931 (produce_stretch_glyph, calc_line_height_property)
12932 (x_produce_glyphs): Likewise.
12933
12934 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
12935 conditionals. Don't check enable_font_backend. Delete all codes
12936 used only when USE_FONT_BACKEND is not defined. Use
12937 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
12938 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
12939 (Qp): Extern them.
12940 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
12941 Deleted.
12942 (struct font_name): Deleted.
12943 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
12944 (compare_fonts_by_sort_order): New function.
12945 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
12946 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
12947 Deleted.
12948 (Fx_family_fonts): Use font_list_entities, and sort fonts by
12949 compare_fonts_by_sort_order.
12950 (Fx_font_family_list): Call Ffont_family_list.
12951 (face_numeric_value, face_numeric_weight, face_numeric_slant)
12952 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
12953 (face_symbolic_slant, face_symbolic_swidth)
12954 (split_font_name_into_vector, build_font_name_from_vector)
12955 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
12956 (font_rescale_ratio, split_font_name, build_font_name)
12957 (free_font_names, sort_fonts, x_face_list_fonts)
12958 (face_font_available_p, sorted_font_list, cmp_font_names)
12959 (font_list_1, concat_font_list, font_list, remove_duplicates):
12960 Deleted.
12961 (Fx_list_fonts): Use Ffont_list.
12962 (LFACE_AVGWIDTH): Deleted.
12963 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
12964 by FONTP.
12965 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
12966 (set_lface_from_font_name): Delete it.
12967 (set_lface_from_font): Renamed from
12968 set_lface_from_font_and_fontset. Caller changed. Don't set
12969 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
12970 for face.
12971 (merge_face_vectors): Copy font-spec if necessary.
12972 Clear properties of the font-spec if necessary.
12973 (merge_face_ref): Clear properties of the font-spec if necessary.
12974 (Finternal_set_lisp_face_attribute): Likewise.
12975 (set_font_frame_param): Use font_load_for_lface to load a
12976 font-object, and call Fmodify_frame_parameters with it.
12977 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
12978 font name by Ffont_xlfd_name.
12979 (Finternal_lisp_face_attribute_values): Don't check QCweight,
12980 QCslant, and QCwidth.
12981 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
12982 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
12983 Compare fonts by EQ.
12984 (lookup_non_ascii_face): Deleted.
12985 (face_for_font): The 2nd argument changed.
12986 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
12987 Check atomic font properties by case insensitive.
12988 (realize_non_ascii_face): Set face->overstrike correctly.
12989 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
12990 (dump_realized_face): Get font name from
12991 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
12992
12993 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
12994 conditionals. Don't check enable_font_backend. Delete all codes
12995 used only when USE_FONT_BACKEND is not defined.
12996 (xic_create_xfontset): Original code deleted and renamed from
12997 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
12998 (x_make_gc): Don't set GCFont in GCs.
12999 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
13000 opened by "fixed".
13001 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
13002 find_ccl_program_func, query_font_func, set_frame_fontset_func,
13003 get_font_repertory_func.
13004
13005 * xfont.c: Include <stdlib.h> and "ccl.h".
13006 (struct xfont_info): New structure.
13007 (xfont_query_font): Deleted.
13008 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
13009 moved from xterm.c.
13010 (xfont_driver): Adjusted for the change of struct font_driver.
13011 (compare_font_names): New function.
13012 (xfont_list_pattern): Sort font names case insensitively. Make
13013 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
13014 (xfont_list): Return a list, not vector.
13015 (xfont_match): If the font doesn't have QCname property, generate
13016 a name from the other font properties.
13017 (xfont_open): Return a font-object. Adjusted for the change of
13018 struct font. Get underline_thickness and underline_position from
13019 font property. Don't update dpyinfo->smallest_font_height and
13020 dpyinfo->smallest_char_width.
13021 (xfont_close): Don't free struct font.
13022 (xfont_prepare_face): Adjusted for the change of struct font.
13023 (xfont_done_face): Deleted.
13024 (xfont_has_char): Adjusted for the change of struct font.
13025 (xfont_encode_char, xfont_draw): Likewise.
13026 (xfont_check): New function.
13027
13028 * xftfont.c (xftfont_list): Adjusted for the change of `list'
13029 callback function.
13030 (xftfont_match): Adjusted for the format change of font-entity.
13031 (xftfont_open): Adjusted for the format change of font-entity and
13032 font-object. Adjusted for the change of struct font. Return a
13033 font-object. Don't update dpyinfo->smallest_font_height and
13034 dpyinfo->smallest_char_width.
13035 (xftfont_close): Block input while calling XftFontClose.
13036 (xftfont_prepare_face): Don't block input while calling
13037 xftfont_get_colors. Adjusted for the change of struct font.
13038 (xftfont_shape): Return value of error case fixed.
13039
13040 * xrdb.c (x_load_resources): Don't setup a fontset resource.
13041
13042 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
13043 conditionals.
13044 (FONT_WIDTH): Return (f)->max_width.
13045 (struct x_display_info): Delete member `font'.
13046 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
13047 (x_find_ccl_program, x_get_font_repertory): Delete externs.
13048 (struct x_output): Change type of `font' to `struct font *'.
13049
13050 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
13051 conditionals. Don't check enable_font_backend. Delete all codes
13052 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
13053 (x_per_char_metric, x_encode_char): Deleted.
13054 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
13055 (x_compute_glyph_string_overhangs): Adjusted for the change of
13056 `struct face'.
13057 (x_draw_glyph_string_foreground)
13058 (x_draw_composite_glyph_string_foreground): Likewise.
13059 (x_draw_glyph_string): Likewise. Use font->underline_position and
13060 font->underline_thickness.
13061 (x_new_font): Renamed from x_new_fontset2.
13062 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
13063 (x_check_font): Call `check' method of a font driver.
13064 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
13065 (x_query_font, x_get_font_repertory): Deleted.
13066 (x_find_ccl_program): Renamed and moved to xfont.c.
13067 (x_redisplay_interface): Adjusted for the change of `struct
13068 redisplay_interface'.
13069
13070 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
13071 conditionals. Don't check enable_font_backend. Delete all codes
13072 used only when USE_FONT_BACKEND is not defined. Surround non-used
13073 code by "#ifdef OLD_FONT" and "endif".
13074 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
13075
13076 * w32font.h (struct w32font_info): New member.
13077 (FONT_COMPAT): New macro.
13078 (w32font_open_internal): Prototype adjusted.
13079
13080 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
13081 OLD_FONT" and "endif".
13082
13083 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
13084 conditionals. Don't check enable_font_backend. Delete all codes
13085 used only when USE_FONT_BACKEND is not defined.
13086 (w32font_open): Return a font-object. Make a font-object by
13087 font_make_object. Adjusted for the change of struct w32font_info.
13088 (w32font_close): Don't free struct font. Adjusted for the change
13089 of struct w32font_info.
13090 (w32font_encode_char, w32font_text_extents, w32font_draw):
13091 Adjusted for the change of struct w32font_info.
13092 (w32font_draw): Likewise.
13093 (w32font_list_internal): Return a list, not vector.
13094 (w32font_open_internal): Change the 4th arg to font-object.
13095 Adjusted for the change of struct w32font_info and font-object format.
13096 (add_font_name_to_list): Don't downcase names.
13097 (w32_enumfont_pattern_entity): Make a font-entity by
13098 font_make_entity. Adjusted for the format change of font-entity.
13099 Use FONT_SET_STYLE to set a style-related font property. If a
13100 font is scalable, set avgwidth property to 0. Set font-entity
13101 property by font_put_extra.
13102 (font_matches_spec): Adjusted for the format change of font-entity.
13103 (w32_weight_table, w32_decode_weight): New variables.
13104 (w32_encode_weight): New function.
13105 (fill_in_logfont): Adjusted for the format change of font-spec.
13106 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
13107 weight value.
13108 (w32font_driver): Adjusted for the change of struct font_driver.
13109
13110 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
13111 conditionals. Don't check enable_font_backend. Surround non-used
13112 code by "#ifdef OLD_FONT" and "endif".
13113 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
13114 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
13115
13116 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
13117 conditionals. Don't check enable_font_backend. Delete all codes
13118 used only when USE_FONT_BACKEND is not defined. Surround non-used
13119 code by "#ifdef OLD_FONT" and "endif".
13120
13121 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
13122 (uniscribe_open): Return value changed to font-object.
13123 Adjusted for the format change of font-object.
13124 (uniscribe_otf_capability): Adjusted for the change of struct font.
13125 (add_opentype_font_name_to_list): Don't downcase names.
13126 (uniscribe_font_driver): Adjusted for the change of struct
13127 font_driver.
13128
131292008-05-13 Chong Yidong <cyd@stupidchicken.com>
13130
13131 * dispnew.c (update_frame_1): Check if tty output is still valid
13132 before flushing it.
13133
131342008-05-13 Jan Djärv <jan.h.d@swipnet.se>
13135
13136 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
13137 to Gtk+ menus.
13138
131392008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
13140
13141 * dired.c (file_name_completion): Tweak the code so as to always do it
13142 in a single pass. Tighten the scope of some variables.
13143
13144 * dired.c (Qdefault_directory): New var.
13145 (file_name_completion): Use it instead of Fexpand_file_name.
13146 (syms_of_dired): Initialize it.
13147
131482008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
13149
13150 * fileio.c (double_dollars): Remove dead code.
13151
131522008-05-10 Eli Zaretskii <eliz@gnu.org>
13153
13154 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
13155 Mention w32-get-true-file-attributes in doc string.
13156
13157 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
13158
131592008-05-09 Glenn Morris <rgm@gnu.org>
13160
13161 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
13162 2008-04-23.
13163
131642008-05-09 Eli Zaretskii <eliz@gnu.org>
13165
13166 Support for reporting owner and group of each file on MS-Windows:
13167 * dired.c (stat_uname, stat_gname): New functions, with special
13168 implementation for w32.
13169 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
13170
13171 * w32.c: Rename the_passwd_* to dflt_passwd_*.
13172 (dflt_group_name): New static variable.
13173 (dflt_group): Rename from the_group.
13174 (init_user_info): Init dflt_group fields. Get user's group name
13175 from LookupAccountSid.
13176 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
13177 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
13178 New initialization states.
13179 (globals_of_w32): Initialize them to zero. Initialize the default
13180 group name to "None".
13181 (GetFileSecurity_Name): New global var, the name of the function
13182 to call for GetFileSecurity.
13183 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
13184 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
13185 (get_file_security, get_security_descriptor_owner)
13186 (get_security_descriptor_group, is_valid_sid)
13187 (get_file_security_desc, get_rid, get_name_and_id)
13188 (get_file_owner_and_group): New functions.
13189 (stat): Use get_file_security_desc and get_file_owner_and_group to
13190 report the owner and primary group of each file. Don't ignore the
13191 high 32 bits of file's size, now that st_size is 64-bit wide.
13192 Fix test when to get true file attributes.
13193 (init_user_info): Use get_rid instead of equivalent inline code.
13194 (fstat): Don't ignore the high 32 bits of file's size.
13195
131962008-05-09 Chong Yidong <cyd@stupidchicken.com>
13197
13198 * image.c (png_load): Use correct bit-depth for setting background
13199 color.
13200
132012008-05-08 Eli Zaretskii <eliz@gnu.org>
13202
13203 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
13204 epa-hook.elc.
13205
132062008-05-08 Juanma Barranquero <lekktu@gmail.com>
13207
13208 * font.c (Ffont_match_p): Don't use `iff' in docstring.
13209
132102008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
13211
13212 * macfns.c (Fx_create_frame): Make a copy of frame parameters
13213 because the original parameters are in pure storage now.
13214 (mac_window): Remove unused params. Update callers.
13215
132162008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
13217
13218 * lread.c (substitute_object_recurse): Use lower-level primitives.
13219 Don't signal errors when traversing sub-char-tables.
13220 Don't loop over all the possible characters when traversing char-tables.
13221
13222 * print.c (print_preprocess): Add sub-char-tables to the print-table,
13223 just like we do in print.c.
13224
132252008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
13226
13227 * minibuf.c (Ftry_completion): Remove code left over from when we used
13228 scmp instead of Fcompare_strings.
13229
132302008-05-04 Juanma Barranquero <lekktu@gmail.com>
13231
13232 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
13233
132342008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13235
13236 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
13237 Create bitmap context in native byte order.
13238
13239 * macterm.c (XDrawLine)
13240 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
13241 context in native byte order.
13242
132432008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13244
13245 * config.in: Regenerate.
13246
13247 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
13248 New definitions for Image I/O support.
13249 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
13250 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
13251 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
13252 (mac_data_provider_release_data, image_load_image_io)
13253 [USE_MAC_IMAGE_IO]: New functions.
13254 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
13255 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
13256 (init_image_func_pointer) [MAC_OSX]: Remove function.
13257 (image_load_quartz2d) [MAC_OSX]: Check availability of
13258 CGImageCreateWithPNGDataProvider at compile time.
13259 Use lowercase `false' for boolean constant.
13260 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
13261 Use image_load_image_io.
13262 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
13263 Don't check MyCGImageCreateWithPNGDataProvider.
13264 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
13265 Don't call init_image_func_pointer.
13266
13267 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
13268
13269 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
13270 Make variable non-static.
13271 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
13272 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
13273
13274 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
13275 (RED_FROM_ULONG): Mask off higher bits.
13276 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
13277
13278 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
13279 Include AvailabilityMacros.h.
13280 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
13281 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
13282
132832008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
13284
13285 * chartab.c (Fset_char_table_range): If range is t, really set all
13286 chars to that value.
13287
132882008-05-03 Eli Zaretskii <eliz@gnu.org>
13289
13290 * dired.c (Ffile_attributes): Don't allow the device number become
13291 negative.
13292
132932008-05-02 Daiki Ueno <ueno@unixuser.org>
13294
13295 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
13296
132972008-05-02 Juri Linkov <juri@jurta.org>
13298
13299 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
13300 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
13301 DEFAULT argument as a list of default values in docstrings.
13302
133032008-05-01 Chong Yidong <cyd@stupidchicken.com>
13304
13305 * puresize.h (BASE_PURESIZE): Increase to 1210000.
13306
133072008-05-01 Martin Rudalics <rudalics@gmx.at>
13308
13309 * dispnew.c (change_frame_size_1): Preserve small windows when
13310 shrinking frames by calling set_window_height|width with third
13311 arg 2.
13312
13313 * window.h (struct window): Replace field too_small_ok by field
13314 resize_proportionally.
13315
13316 * window.c (make_window): Initialize resize_proportionally.
13317 (enlarge_window): Temporarily set resize_proportionally to make
13318 sure that shrink_windows does scale the window proportionally.
13319 (shrink_windows): When window has resize_proportionally set try
13320 to shrink it proportionally by stealing from other windows.
13321 (struct saved_window, Fset_window_configuration)
13322 (compare_window_configurations): Handle resize_proportionally.
13323 (WINDOW_TOTAL_SIZE): New macro.
13324 (window_min_size, shrink_windows, size_window): Use it.
13325 (check_min_window_sizes): Remove. Invalid values of
13326 window-min-height|width are handled by window_min_size_2 now.
13327 (size_window, Fsplit_window, enlarge_window)
13328 (adjust_window_trailing_edge, grow_mini_window): Don't call
13329 check_min_window_sizes.
13330 (window_min_size_2, window_min_size_1, window_min_size):
13331 New argument safe_p for retrieving "safe" minimum sizes.
13332 (Fdisplay_buffer, Fsplit_window, enlarge_window)
13333 (adjust_window_trailing_edge, grow_mini_window):
13334 Adjust arguments of window_min_size... functions.
13335 (shrink_windows): Argument min_size removed. New argument
13336 safe_p allows shrinking windows to their safe minimum sizes.
13337 Calculate minimum size and decide whether a window shall be
13338 deleted for each window individually.
13339 (size_window): When nodelete_p equals 2, tell shrink_windows to
13340 delete windows only if their new minimum size is no more safe.
13341 (shrink_window_lowest_first): Call window_min_size_1 to make
13342 sure to preserve modeline of bottom-most window when resizing
13343 the minibuffer.
13344 (Fset_window_configuration, Fcurrent_window_configuration)
13345 (compare_window_configurations): Do not handle
13346 window-min-height|width any more.
13347 (syms_of_window): Clarify window-min-height|width doc-strings.
13348
133492008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
13350
13351 * dired.c (file_name_completion): Fix up the encoding/decoding issue
13352 some more. Copy some of the code from Ftry_completions.
13353 Remove special case code that dates back to initial revision when the
13354 slash was only added when necessary and that can't trigger nowadays.
13355
133562008-04-27 Kenichi Handa <handa@m17n.org>
13357
13358 * font.c (font_prop_validate): Signal `error' instead of `font'.
13359
133602008-04-29 Jason Rumney <jasonr@gnu.org>
13361
13362 * w32fns.c (Fw32_battery_status): New defun.
13363 (syms_of_w32fns): Defsubr it.
13364
133652008-04-28 Andreas Schwab <schwab@suse.de>
13366
13367 * dired.c (file_name_completion): Fix another mixing of encoded
13368 and decoded names.
13369
133702008-04-28 Juanma Barranquero <lekktu@gmail.com>
13371
13372 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
13373
133742008-04-27 Juanma Barranquero <lekktu@gmail.com>
13375
13376 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
13377
133782008-04-27 Andreas Schwab <schwab@suse.de>
13379
13380 * dired.c (file_name_completion): Fix inappropriate mixing of
13381 encoded and decoded names.
13382
13383 * xterm.c (XTread_socket): Fix use of uninitialized variable.
13384
13385 * puresize.h (BASE_PURESIZE): Increase to 1200000.
13386
133872008-04-26 Eli Zaretskii <eliz@gnu.org>
13388
13389 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
13390 2008-03-31, it's not needed anymore with `struct stat' definition
13391 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
13392 for the same reasons.
13393
133942008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
13395
13396 * m/sparc.h: Additional redefinitions for GNU/Linux.
13397
133982008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13399
13400 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
13401 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
13402 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
13403 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
13404 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
13405 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
13406 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
13407 Likewise.
13408
13409 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
13410 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
13411 (mac_ax_number_of_characters): Add externs.
13412 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
13413 [USE_MAC_TSM]: Likewise.
13414 (mac_handle_text_input_event) [MAC_OSX]:
13415 Handle kEventTextInputOffsetToPos for no active input area case.
13416 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
13417 (mac_handle_document_access_event)
13418 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
13419 (install_application_handler) [MAC_OSX]: Register handlers for
13420 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
13421 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
13422 Register mac_handle_document_access_event.
13423
13424 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
13425 Make functions non-static.
13426
134272008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
13428
13429 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
13430 (read_file_name_completion_ignore_case, insert_default_directory)
13431 (Qdefault_directory): Move to minibuffer.el.
13432 (Fread_file_name): Call the new `read-file-name' instead.
13433
134342008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13435
13436 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
13437 Make function non-static.
13438 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
13439 Remove function.
13440 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
13441 Move to mactoolbox.c.
13442 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
13443
13444 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
13445 (mac_rect_make): New macro.
13446
13447 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
13448 instead of float.
13449 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
13450 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
13451 (XSetBackground) [USE_CG_DRAWING]: Likewise.
13452 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
13453 CGRectMake.
13454 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
13455 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
13456 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
13457 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
13458 instead of WindowRef in argument type.
13459 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
13460 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
13461 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
13462 instead of DISPLAY. All uses changed.
13463 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
13464 (x_calc_absolute_position): Simplify so as not to use
13465 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
13466
13467 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
13468 instead of WindowRef in argument type.
13469 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
13470 [TARGET_API_MAC_CARBON]: Remove externs.
13471 (create_apple_event, mac_event_parameters_to_lisp)
13472 [TARGET_API_MAC_CARBON]: Add externs.
13473
13474 * mactoolbox.c (Vmac_ts_script_language_on_focus)
13475 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
13476 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
13477 is clicked.
13478 (x_activate_menubar): Remove extern for saved_menu_event_location.
13479 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
13480 Move from mac.c.
13481
134822008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13483
13484 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
13485 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
13486
134872008-04-23 Jason Rumney <jasonr@gnu.org>
13488
13489 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
13490 attributes only for local files.
13491
13492 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
13493 default to Qlocal.
13494
134952008-04-22 Juri Linkov <juri@jurta.org>
13496
13497 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
13498 read-buffer-to-switch instead of using the letter "B".
13499
135002008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
13501
13502 * fileio.c (Qdefault_directory): New variable.
13503 (Fread_file_name): Use it to pass `dir' to the completion functions.
13504
135052008-04-20 Chong Yidong <cyd@stupidchicken.com>
13506
13507 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
13508
135092008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
13510
13511 * keyboard.c (Vpre_help_message): Remove.
13512 (show_help_echo): Remove default C code.
13513
13514 * dired.c (directory_files_internal, file_name_completion):
13515 Only call ENCODE_FILE if the string is indeed decoded.
13516
135172008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
13518
13519 * Makefile.in (TOOLKIT_DEFINES): Remove.
13520 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
13521
135222008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13523
13524 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
13525 (mactoolbox.o): New target.
13526
13527 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
13528 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
13529
13530 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
13531 Use mac_set_frame_window_background instead of XSetWindowBackground.
13532 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
13533 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
13534 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
13535 instead of SetWindowTitleWithCFString.
13536 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
13537 Move function to mactoolbox.c.
13538 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
13539 Use mac_set_window_modified instead of SetWindowModified.
13540 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
13541 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
13542 (Fx_focus_frame): Use mac_front_non_floating_window instead of
13543 FrontNonFloatingWindow. Use mac_activate_window instead of
13544 ActivateWindow. Use mac_active_non_floating_window instead of
13545 ActiveNonFloatingWindow.
13546 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
13547 Use mac_show_hourglass and mac_hide_hourglass.
13548 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
13549 instead of GetGlobalMouse.
13550 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
13551 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
13552 Use mac_bring_window_to_front instead of BringToFront.
13553 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
13554 mactoolbox.c.
13555 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
13556 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
13557 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
13558 mactoolbox.c.
13559
13560 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
13561 (XtPointer): Move typedef from macmenu.c.
13562 (enum button_type): Move enum from macmenu.c.
13563 (widget_value): Move typedef from macmenu.c.
13564 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
13565 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
13566 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
13567 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
13568 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
13569 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
13570 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
13571 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
13572 (Selection): Move typedef from macselect.c.
13573 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
13574 macterm.c.
13575 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
13576 (mac_is_window_collapsed, mac_bring_window_to_front)
13577 (mac_send_window_behind, mac_hide_window, mac_show_window)
13578 (mac_collapse_window, mac_front_non_floating_window)
13579 (mac_active_non_floating_window, mac_activate_window)
13580 (mac_move_window_structure, mac_move_window, mac_size_window)
13581 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
13582
13583 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
13584 (enum mac_menu_kind): Move enum to mactoolbox.c.
13585 (min_menu_id): Move variable to mactoolbox.c.
13586 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
13587 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
13588 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
13589 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
13590 [TARGET_API_MAC_CARBON]: Likewise.
13591 (XtPointer): Move typedef to macgui.h.
13592 (enum button_type): Move enum to macgui.h.
13593 (widget_value): Move typedef to macgui.h.
13594 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
13595 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
13596 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
13597 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
13598 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
13599 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
13600 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
13601 (popup_activated_flag): Make variable non-static.
13602 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
13603 (add_menu_item, fill_menu, dispose_menus):
13604 Move functions to mactoolbox.c.
13605 (restore_show_help_function, menu_target_item_handler)
13606 (install_menu_target_item_handler, mac_handle_dialog_event)
13607 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
13608 [TARGET_API_MAC_CARBON]: Likewise.
13609 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
13610 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
13611 (find_and_call_menu_selection, name_is_separator): Make function
13612 non-static.
13613 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
13614 to mactoolbox.c.
13615 (set_frame_menubar): Don't call install_menu_quit_handler.
13616 (menu_item_selection): New variable.
13617 (mac_menu_show): Use create_and_show_popup_menu.
13618 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
13619 selection but set variable menu_item_selection. All uses changed.
13620 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
13621 Call install_menu_quit_handler. Move to mactoolbox.c.
13622
13623 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
13624 (Selection): Move typedef to macgui.h.
13625 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
13626 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
13627 Make variables non-static.
13628 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
13629 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
13630 Make functions non-static.
13631 (Vmac_service_selection) [MAC_OSX]: Likewise.
13632 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
13633 (mac_valid_selection_target_p, mac_clear_selection)
13634 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
13635 (mac_put_selection_value, mac_selection_has_target_p)
13636 (mac_get_selection_value, mac_get_selection_target_list)
13637 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
13638 Move functions to mactoolbox.c.
13639 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
13640 Likewise.
13641 (copy_scrap_flavor_data, mac_handle_service_event)
13642 (install_service_handler) [MAC_OSX]: Likewise.
13643 (syms_of_macselect) <Vmac_dnd_known_types>:
13644 Use mac_dnd_default_known_types.
13645
13646 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
13647 Move to mactoolbox.c.
13648 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
13649 (Fx_selection_owner_p): Add EXFUN.
13650 (install_window_handler, remove_window_handler, XSetWindowBackground):
13651 Remove externs.
13652 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
13653 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
13654 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
13655 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
13656 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
13657 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
13658 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
13659 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
13660 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
13661 (create_and_show_popup_menu, mac_get_selection_from_symbol)
13662 (mac_valid_selection_target_p, mac_clear_selection)
13663 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
13664 (mac_put_selection_value, mac_selection_has_target_p)
13665 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
13666 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
13667 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
13668 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
13669 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
13670 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
13671 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
13672 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
13673 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
13674
13675 * mactoolbox.c: New file.
13676
136772008-04-18 Jason Rumney <jasonr@gnu.org>
13678
13679 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
13680
136812008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
13682
13683 * character.c (Fmultibyte_char_to_unibyte):
13684 Return latin1 chars unchanged.
13685
13686 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
13687 relocated if it points to `name'.
13688
136892008-04-17 Kenichi Handa <handa@m17n.org>
13690
13691 * data.c (Faset): Allow setting a multibyte character in an
13692 ASCII-only unibyte string.
13693
13694 * lisp.h (STRING_SET_MULTIBYTE): New macro.
13695
136962008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
13697
13698 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
13699 done in config.h.
13700
137012008-04-16 Juanma Barranquero <lekktu@gmail.com>
13702
13703 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
13704 (Fchar_direction): Add usage in the docstring.
13705
137062008-04-15 Chong Yidong <cyd@stupidchicken.com>
13707
13708 * keyboard.c (read_key_sequence): Remove always-true checks.
13709
137102008-04-14 Jason Rumney <jasonr@gnu.org>
13711
13712 * w32font.c (w32font_open_internal): Set max_bounds.descent in
13713 compatibility struct, for better underline positioning.
13714
137152008-04-13 David Hansen <david.hansen@gmx.net>
13716
13717 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
13718 string.
13719
137202008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
13721
13722 * m/hp800.h (XUINT, XSET): Remove.
13723
137242008-04-12 Juanma Barranquero <lekktu@gmail.com>
13725
13726 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
13727 previous change.
13728
137292008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
13730
13731 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
13732 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
13733
137342008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
13735
13736 * keymap.h (map_keymap_canonical): Declare.
13737 * xmenu.c (single_keymap_panes): Use it.
13738
137392008-04-11 Glenn Morris <rgm@gnu.org>
13740
13741 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
13742 set the target's value to that of the alias.
13743
137442008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
13745
13746 * term.c (set_tty_color_mode): Left over typo.
13747
137482008-04-10 Michael Albinus <michael.albinus@gmx.de>
13749
13750 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
13751 only after check for file name handler functions. Signal, when
13752 native functionality is not supported.
13753 (syms_of_fileio): Declare it unconditionally.
13754
137552008-04-10 Jason Rumney <jasonr@gnu.org>
13756
13757 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
13758 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
13759
13760 * w32.c (logon_network_drive): Also logon to remote drives that
13761 are mapped to drive letters.
13762
137632008-04-10 Glenn Morris <rgm@gnu.org>
13764
13765 * xdisp.c (truncate-partial-width-windows): Doc fix.
13766
137672008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
13768
13769 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
13770 Move functions to minibuffer.el.
13771 (syms_of_fileio): Don't declare them.
13772
137732008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
13774
13775 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
13776 (syms_of_minibuf): Remove its initialization.
13777
13778 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
13779
137802008-04-09 Juanma Barranquero <lekktu@gmail.com>
13781
13782 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
13783
137842008-04-09 Jason Rumney <jasonr@gnu.org>
13785
13786 * makefile.w32-in (distclean): Delete makefile too.
13787 (maintainer-clean): New target.
13788
13789 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
13790
13791 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
13792 for new font backend and composite cases.
13793
137942008-04-09 Jan Djärv <jan.h.d@swipnet.se>
13795
13796 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
13797 Most of the code moved to run_timers.
13798 (do_pending_atimers): Call run_timers.
13799 (run_timers): New function.
13800
13801 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
13802 run atimers.
13803
13804 * process.c (wait_reading_process_output): The same as above.
13805
138062008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
13807
13808 * minibuf.c (last_exact_completion): Remove variable.
13809 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
13810 (complete_and_exit_1, complete_and_exit_2)
13811 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
13812 (Fdisplay_completion_list, display_completion_list_1)
13813 (Fminibuffer_completion_help, Fself_insert_and_exit)
13814 (Fexit_minibuffer, Fminibuffer_message): Move functions to
13815 minibuffer.el.
13816 (syms_of_minibuf): Remove corresponding initializations.
13817
13818 * keyboard.c (Qdeactivate_mark): New var.
13819 (command_loop_1): Use it to call `deactivate-mark'.
13820 (syms_of_keyboard): Initialize it.
13821
13822 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
13823 to another frame.
13824 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
13825 Don't call set_tty_color_mode.
13826 (store_frame_param): Reset previous_frame rather than call
13827 set_tty_color_mode.
13828 * term.c (set_tty_color_mode): Rewrite.
13829 * dispextern.h (set_tty_color_mode): New type.
13830 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
13831
138322008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
13833
13834 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
13835 for generic chars, which do not exist any more in emacs-unicode.
13836
138372008-04-08 Michael Albinus <michael.albinus@gmx.de>
13838
13839 * coding.c (detect_coding_emacs_mule)
13840 (Ffind_operation_coding_system): Fix typo.
13841
138422008-04-08 Jason Rumney <jasonr@gnu.org>
13843
13844 * w32uniscribe.c (SNAME): Extract only symbol name.
13845
13846 * w32font.h (struct w32_metric_cache): New struct.
13847 (w32font_info): Use it.
13848 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
13849 (CACHE_BLOCKSIZE): New constants.
13850
13851 * w32font.c (Qja, Qko, Qzh): New symbols.
13852 (syms_of_w32font): Initialise them.
13853 (font_matches_spec): Use them to filter by language.
13854 (recompute_cached_metrics): Remove function.
13855 (compute_metrics, clear_cached_metrics): New functions.
13856 (w32font_encode_char): Use them to manage metric cache.
13857 (w32font_text_extents): Cache metrics for all glyphs on demand.
13858 Delay converting glyph indices to WORD until needed.
13859 (w32font_open_internal): Initialize metric cache to empty.
13860 (registry_to_w32_charset): Charset should always be a symbol.
13861 (fill_in_logfont, list_all_matching_fonts): Family should
13862 always be a symbol.
13863
138642008-04-06 Jason Rumney <jasonr@gnu.org>
13865
13866 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
13867 Give up if glyph indices not supported. Use uniscribe obtained
13868 ABC widths for individual metrics. Map glyph clusters back to
13869 characters using fClusterStart flag. Return number of glyphs
13870 produced, not chars processed.
13871 (uniscribe_shape): Map char at FROM to current glyph.
13872
138732008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13874
13875 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
13876 Use SetMenuItemHierarchicalMenu.
13877
138782008-04-05 Jason Rumney <jasonr@gnu.org>
13879
13880 * image.c (pbm_load): Allow color values up to 65535.
13881 Throw an error if max_color_idx is outside the supported range.
13882 Report an error when image size is invalid.
13883 Read two bytes at a time when raw images have max_color_idx above 255.
13884
138852008-04-05 Eli Zaretskii <eliz@gnu.org>
13886
13887 * w32.c (readdir): If FindFirstFile/FindNextFile return in
13888 cFileName a file name that includes `?' characters, use the 8+3
13889 alias in cAlternateFileName instead.
13890
138912008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
13892
13893 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
13894 append "CCL: Quitted" when the CCL program is quitted.
13895 (setup_ccl_program): Initialize ccl->quit_silently to zero.
13896
13897 * ccl.h (struct ccl_program): New member quit_silently.
13898
138992008-04-05 Chong Yidong <cyd@stupidchicken.com>
13900
13901 * search.c (compile_pattern_1): Treat non-nil and non-string of
13902 search-spaces-regexp as nil.
13903
13904 * minibuf.c (Fassoc_string): Tweak docstring.
13905
139062008-04-05 Eli Zaretskii <eliz@gnu.org>
13907
13908 * dired.c (Ffile_attributes): Support inode numbers wider than 32
13909 bits. Remove ugly WINDOWSNT-specific kludge introduced on
13910 2008-03-14 to force inode be positive.
13911
13912 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
13913 _S_* ones, since we now use our own sys/stat.h.
13914 (stat, fstat): Don't mangle the inode number.
13915 (init_user_info): Don't restrict UID and GID to 0-60000 range.
13916
139172008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
13918
13919 * frame.h (struct frame): Give one more bit to `visible' since we use
13920 values larger than 1 to indicate obscured frames on ttys.
13921
13922 * keymap.c (Qkeymap_canonicalize): New var.
13923 (Fmap_keymap_internal): New fun.
13924 (describe_map): Use keymap-canonicalize.
13925
13926 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
13927 (Fundo_boundary): Set them.
13928 (syms_of_undo): Initialize them.
13929 (record_point): Use them instead of last_point_position*.
13930 (last_undo_buffer): Change type.
13931
139322008-04-04 Jason Rumney <jasonr@gnu.org>
13933
13934 * w32font.c (w32font_text_extents): Use font's ascent and descent.
13935 (recompute_cached_metrics): Don't set ascent and descent per char.
13936
13937 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
13938 (uniscribe_check_otf): Add GC protection before consing.
13939 Rearrange loop for counting features.
13940
139412008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
13942
13943 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
13944 buffer with byte-size of source buffer.
13945
139462008-04-03 Chong Yidong <cyd@stupidchicken.com>
13947
13948 * callint.c (Fcall_interactively): Handle temporary region even
13949 when shift-select-mode is off.
13950
139512008-04-03 Jason Rumney <jasonr@gnu.org>
13952
13953 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
13954
139552008-04-03 Kenichi Handa <handa@m17n.org>
13956
13957 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
13958 (CATEGORY_MASK_UTF_16): Likewise.
13959 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
13960 binary file.
13961 (detect_coding): Add null-byte detection for a binary file.
13962 (detect_coding_system): Likewise.
13963
139642008-04-03 Jason Rumney <jasonr@gnu.org>
13965
13966 * w32uniscribe.c: New file.
13967
13968 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
13969
13970 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
13971
13972 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
13973 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
13974 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
13975 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
13976 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
13977 (Qphonetic): New symbols.
13978 (syms_of_w32font): Initialize them.
13979 (font_supported_scripts): Use them.
13980 (w32font_list_family): List all charsets.
13981 (w32font_text_extents, recompute_cached_metrics): Fix metric
13982 calculations.
13983 (w32_enumfont_pattern_entity): Make full_type a DWORD.
13984 Give opentype fonts their own format.
13985 (font_matches_spec): New arguments backend and logfont.
13986 Handle :otf spec for uniscribe backend.
13987 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
13988 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
13989
13990 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
13991 font backend.
13992 (globals_of_w32fns): Initialize uniscribe font backend.
13993
13994 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
13995 dependencies.
13996 (w32uniscribe.$(O)): New file to build.
13997 (FONT_OBJ): Include w32uniscribe.$(O).
13998 (LIBS): Add uniscribe libraries.
13999
14000 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
14001
140022008-04-02 Chong Yidong <cyd@stupidchicken.com>
14003
14004 * callint.c (Vshift_select_mode): New var.
14005 (Finteractive): Document new ^ spec.
14006 (Fcall_interactively): Call handle-shift-selection if the ^ spec
14007 is present.
14008
14009 * keyboard.c (Vthis_command_keys_shift_translated): New var.
14010 (command_loop_1): Avoid running the direct display versions of
14011 forward-char and backward-char if shift-selection may occur.
14012 (read_key_sequence): Set Vthis_command_keys_shift_translated if
14013 shift-translation takes place.
14014
14015 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
14016 avoid clobbering by define-minor-mode.
14017
14018 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
14019 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
14020
14021 * syntax.c (Fforward_word): Add ^ interactive spec.
14022
14023 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
14024 (Fscroll_right): Add ^ interactive spec.
14025
140262008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
14027
14028 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
14029
14030 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
14031
14032 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
14033
140342008-03-31 Juri Linkov <juri@jurta.org>
14035
14036 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
14037
140382008-03-30 Jan Djärv <jan.h.d@swipnet.se>
14039
14040 * gtkutil.c (xg_set_geometry): Fix indentation.
14041 (xg_resize_outer_widget): Remove.
14042 (x_wm_size_hint_off): Fix indentation.
14043 (xg_frame_set_char_size): Call flush_and_sync after
14044 gtk_window_resize.
14045 (x_wm_set_size_hint): Pass NULL as geometry window to
14046 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
14047 Add menu bar and tool bar height to base height.
14048 (xg_update_frame_menubar, free_frame_menubar)
14049 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
14050 (update_frame_tool_bar, free_frame_tool_bar):
14051 Change xg_resize_outer_widget to xg_frame_set_char_size.
14052
140532008-03-30 Michael Albinus <michael.albinus@gmx.de>
14054
14055 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
14056 (Fdbus_call_method): New parameter TIMEOUT.
14057 (dbus-send-signal): Optimize UNGCPRO call.
14058
140592008-03-29 Juri Linkov <juri@jurta.org>
14060
14061 * window.c (Fdisplay_buffer): Move call to
14062 Vsplit_window_preferred_function out of conditions that check
14063 if window is eligible for vertical splitting.
14064 When Vsplit_window_preferred_function is non-nil, call it and use
14065 its non-nil return value as window. Otherwise, continue doing
14066 vertical splitting using Fsplit_window with arg horflag=nil.
14067 (syms_of_window) <Vsplit_window_preferred_function>: Change the
14068 default value from `split-window' to nil.
14069
140702008-03-29 Juri Linkov <juri@jurta.org>
14071
14072 * callint.c (Fcall_interactively): Revert 2008-03-16 change
14073 for interactive code letters 'b' and 'B'.
14074
140752008-03-29 Eli Zaretskii <eliz@gnu.org>
14076
14077 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
14078 multibyte string.
14079
140802008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
14081
14082 * keyboard.c (pending_funcalls): New var.
14083 (timer_check): Run it.
14084 (syms_of_keyboard): Initialize it.
14085 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
14086 (Vdelete_terminal_functions): New vars.
14087 (syms_of_terminal): Initialize them.
14088 (Fdelete_terminal): Run delete-terminal-functions.
14089 * xdisp.c (safe_eval): Rewrite.
14090 (safe_call2): New fun.
14091 * frame.c (Qdelete_frame_functions): New var.
14092 (syms_of_frame): Initialize it.
14093 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
14094 * lisp.h (safe_call2, pending_funcalls): Declare.
14095
140962008-03-28 Andreas Schwab <schwab@suse.de>
14097
14098 * indent.c (Fmove_to_column): Move declaration before statements.
14099
141002008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
14101
14102 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
14103 (struct frame): Use bit fields for boolean vars.
14104
14105 * process.c (server_accept_connection): Simplify naming.
14106 (emacs_get_tty_pgrp): Use SDATA.
14107
14108 * coding.c (decode_coding_object): Fix last change.
14109
141102008-03-27 Jason Rumney <jasonr@gnu.org>
14111
14112 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
14113
141142008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
14115
14116 * charset.c (Fdefine_charset_internal): Change the way of
14117 registering charsets in Vcharset_order_list.
14118 (syms_of_charset): Make the charset `eight-bit' supplementary.
14119
141202008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
14121
14122 * regex.c (EXTEND_BUFFER): Change order of pointer addition
14123 operations, to avoid having the difference between pointers
14124 overflow.
14125
141262008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
14127
14128 * indent.c (check_display_width): New fun.
14129 (scan_for_column): Use it.
14130
14131 * data.c (syms_of_data): Mark most-positive-fixnum and
14132 most-negative-fixnum as constants.
14133
14134 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
14135
14136 * indent.c (scan_for_column): Extract from current_column_1.
14137 Merge with the same code from Fmove_to_column.
14138 (current_column_1, Fmove_to_column): Use it.
14139
141402008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
14141
14142 * keymap.c (map_keymap_internal): New fun.
14143 (map_keymap): Use it.
14144 (Fmap_keymap_internal): New fun.
14145 (Fmap_keymap): Remove left-out test from before make_save_value.
14146
14147 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
14148
14149 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
14150 Use XCAR/XCDR.
14151
14152 * process.h (struct Lisp_Process): Remove filter_multibyte.
14153 * process.c (QCfilter_multibyte): Remove.
14154 (setup_process_coding_systems): Don't use filter_multibyte.
14155 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
14156 (read_process_output): Don't adjust multibyteness to filter_multibyte.
14157 (Fset_process_filter_multibyte): Change the coding-system to
14158 approximate the previous behavior.
14159 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
14160 coding-system.
14161
14162 * coding.c (decode_coding_object): When not decoding into a buffer,
14163 obey the coding system's preference of (uni|multi)byte.
14164
141652008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
14166
14167 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
14168 every char is changed and has a different byte-length.
14169 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
14170 Fix int -> EMACS_INT.
14171
141722008-03-23 David Hansen <david.hansen@gmx.net>
14173
14174 * dbusbind.c (xd_read_message): Remove extra copying of message
14175 strings. Check for NULL `interface' or `member'.
14176
141772008-03-22 Eli Zaretskii <eliz@gnu.org>
14178
14179 * w32.c (readdir): If FindFirstFile/FindNextFile return in
14180 cFileName a file name that includes `?' characters, use the 8+3
14181 alias in cAlternateFileName instead.
14182
141832008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
14184
14185 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
14186
141872008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
14188
14189 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
14190 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
14191 work on current_buffer only instead (that was already the case
14192 for some of the code anyway).
14193 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
14194 (temp_set_point, temp_set_point_both): Use EMACS_INT.
14195 (SET_PT, SET_PT_BOTH): Adjust.
14196 * intervals.h (set_point, temp_set_point, set_point_both)
14197 (temp_set_point_both): Remove redundant declarations.
14198
141992008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
14200
14201 * fileio.c (Finsert_file_contents):
14202 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
14203 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
14204 when buffer != current_buffer anyway.
14205
142062008-03-20 Andreas Schwab <schwab@suse.de>
14207
14208 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
14209 as default.
14210
142112008-03-19 Jason Rumney <jasonr@gnu.org>
14212
14213 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
14214 (syms_of_w32fns): Initialize them.
14215 (HOURGLASS_ID): New constant.
14216 (x_window_to_frame): Don't check hourglass_window.
14217 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
14218 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
14219 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
14220 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
14221 Only change the cursor if hourglass is not active.
14222 (Fx_create_frame): Initialize frame's current_cursor.
14223 (hourglass_atimer): Remove.
14224 (hourglass_started): New function.
14225 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
14226 (show_hourglass): Adapt to w32, changing argument to frame.
14227
14228 * w32term.h (struct w32_output): Remove hourglass_window.
14229 Add current_cursor.
14230
14231 * eval.c (call_debugger, Fsignal):
14232 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
14233 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
14234 (Fexecute_extended_command, cancel_hourglass_unwind):
14235 * minibuf.c (read_minibuf):
14236 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
14237
142382008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
14239
14240 * window.c (run_funs): New fun.
14241 (run_window_configuration_change_hook): Use it to run the buffer-local
14242 and the global part of the hook.
14243
14244 * xdisp.c (format_mode_line_unwind_data): Add window argument.
14245 (unwind_format_mode_line): Restore selected window.
14246 (x_consider_frame_title, Fformat_mode_line): Set selected window.
14247
142482008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
14249
14250 * editfns.c (Fchar_equal): Check they are valid characters.
14251
14252 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
14253
142542008-03-17 Andreas Schwab <schwab@suse.de>
14255
14256 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
14257 against a charset.
14258
14259 * lisp.h (Fbuffer_list): Declare.
14260
142612008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 14262
aac0c6e3
MR
14263 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
14264 handlebox_widget is != 0.
14265
142662008-03-16 Juri Linkov <juri@jurta.org>
14267
14268 * callint.c (Fcall_interactively): For interactive code letters
14269 'b' and 'B' put the buffer list into the list of default "future"
14270 values of the minibuffer.
14271
142722008-03-16 Andreas Schwab <schwab@suse.de>
14273
14274 * keyboard.c (read_key_sequence): Fix downcasing of letters with
14275 modifiers.
14276
14277 * regex.c (re_match_2_internal): Correct matching of a charset
14278 against latin-1 characters.
14279
142802008-03-16 Kenichi Handa <handa@m17n.org>
14281
14282 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
14283 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
14284 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
14285 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
14286 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
14287 CHAR_STRING_ADVANCE.
14288 (produce_chars): Fix for the case that the source and the
14289 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
14290 instead of CHAR_STRING_ADVANCE.
14291 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
14292 STRING_CHAR_ADVANCE.
14293
142942008-03-15 Andreas Schwab <schwab@suse.de>
14295
14296 * regex.c (re_match_2_internal): Correct matching of eight bit
14297 characters in unibyte strings.
14298
142992008-03-15 Martin Rudalics <rudalics@gmx.at>
14300
14301 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
14302 at end of range when it coincides with the end of the buffer.
14303
143042008-03-14 Eli Zaretskii <eliz@gnu.org>
14305
14306 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
14307
14308 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
14309
143102008-03-14 Jason Rumney <jasonr@gnu.org>
14311
14312 * editfns.c (initial_tz): New variable.
14313 (syms_of_editfns): Initialize it.
14314 (Fset_time_zone_rule): Set it when first called.
14315 Use it when TZSTRING is nil.
14316
14317 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
14318 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
14319 (monitor_from_point_fn, get_monitor_info_fn): New globals.
14320 (globals_of_w32fns): Initialize them.
14321 (compute_tip_xy): Use them to position tooltips.
14322
143232008-03-14 Glenn Morris <rgm@gnu.org>
14324
14325 * emacs.c (main): Revert previous change.
14326 (standard_args): Revert -internal-script back to -scriptload,
14327 and remove the long-option form.
14328
143292008-03-13 Glenn Morris <rgm@gnu.org>
14330
14331 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
14332 Remove option -enable-font-backend.
14333
143342008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
14335
14336 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
14337
143382008-03-11 Jan Djärv <jan.h.d@swipnet.se>
14339
14340 * xterm.c (x_connection_closed): For GTK: If this is the last
14341 terminal just exit without closing the display.
14342
143432008-03-11 Jason Rumney <jasonr@gnu.org>
14344
14345 * w32font.c (w32font_full_name): Use floor to round.
14346
f0131492 143472008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
14348
14349 * sound.c (alsa_configure): Declare vol at beginning of block.
14350
14351 * fontset.c (Ffontset_info): Remove extra semicolon.
14352
143532008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
14354
14355 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
14356 size of resulting string.
14357
143582008-03-10 Jason Rumney <jasonr@gnu.org>
14359
14360 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
14361
143622008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14363
14364 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
14365 Don't pretend as if characters with display property haven't been
14366 consumed for string-replacing-string case.
14367
143682008-03-08 Kim F. Storm <storm@cua.dk>
14369
14370 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
14371 (get_next_display_element, next_element_from_string)
14372 (next_element_from_ellipsis, next_element_from_buffer): Use it.
14373
143742008-03-08 Andreas Schwab <schwab@suse.de>
14375
14376 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
14377
143782008-03-06 Jason Rumney <jasonr@gnu.org>
14379
14380 * w32font.c (w32_registry): Take font_type argument. Use ANSI
14381 when charset not specified. Only translate ANSI to unicode when
14382 font_type is truetype.
14383 (w32font_coverage_ok): New function.
14384 (add_font_entity_to_list): Use it to filter unsuitable fonts.
14385
143862008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
14387
14388 * lread.c (Fread_char): Resolve modifiers.
14389 (Fread_char_exclusive): Likewise.
14390
14391 * character.c (char_resolve_modifier_mask): New function.
14392 (char_string): Use char_resolve_modifier_mask.
14393 (Fchar_resolve_modifiers): New function.
14394 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
14395 function.
14396
143972008-03-04 Jason Rumney <jasonr@gnu.org>
14398
14399 * makefile.w32-in: Always include w32font.c in the build.
14400 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
14401
144022008-03-04 Andreas Schwab <schwab@suse.de>
14403
14404 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
14405 (versionclean): Likewise.
14406
144072008-03-04 Juanma Barranquero <lekktu@gmail.com>
14408
14409 * .cvsignore: Add oo.
14410
144112008-03-03 Andreas Schwab <schwab@suse.de>
14412
14413 * coding.c (decode_coding_object): Inhibit gap shrinking while
14414 decoding in place.
14415
144162008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
14417
14418 * w32term.c: Remove unused include "gnu.h".
14419 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
14420
14421 * gnu.h: Rename to ...
14422 * emacs-icon.h: ... this.
14423 * xterm.c: Use emacs-icon.h instead of gnu.h.
14424 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
14425
144262008-03-03 Juanma Barranquero <lekktu@gmail.com>
14427
14428 * w32font.c: Include math.h.
14429
144302008-03-03 Jason Rumney <jasonr@gnu.org>
14431
14432 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
14433 Compute options separately.
14434 (w32font_open_internal): Set glyph_idx before caching metrics.
14435
14436 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
14437 Define if system headers don't.
14438 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
14439 (w32font_encode_char): Don't declare here.
14440
14441 * w32font.c (Quniscribe, QCformat): New symbols.
14442 (syms_of_w32font): Define them.
14443 (w32font_has_char): Indicate uncertainty.
14444 (w32font_encode_char): Encode as glyph point. Make static.
14445 (recompute_cached_metrics): New function.
14446 (w32font_open_internal): Use it. Set font to use glyph points
14447 initially. Set format based on type of font.
14448 (w32font_text_extents, w32font_draw): Optionally use glyph points.
14449 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
14450 on it. Set format based on information available here.
14451 (add_font_entity_to_list): Identify backend based on opentype_only.
14452
144532008-03-02 Andreas Schwab <schwab@suse.de>
14454
14455 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
14456
14457 * coding.c (decode_coding_big5, produce_chars):
14458 Fix typos in last change.
14459
144602008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
14461
14462 * gnu.h: New icon.
14463
144642008-03-02 Kenichi Handa <handa@m17n.org>
14465
14466 * coding.c (decode_coding_utf_8): When eol-type of CODING is
14467 `dos', don't decode '\r' if that is the last in the source.
14468 (decode_coding_utf_16, decode_coding_emacs_mule)
14469 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
14470 (decode_coding_raw_text, decode_coding_charset): Likewise.
14471 (produce_chars): Don't decode EOL here. Use EMACS_INT.
14472
144732008-03-01 Jason Rumney <jasonr@gnu.org>
14474
14475 * w32font.c (w32font_full_name): Report point size for scalable fonts.
14476
144772008-03-01 Kim F. Storm <storm@cua.dk>
14478
14479 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
14480
144812008-03-01 Jason Rumney <jasonr@gnu.org>
14482
14483 * w32font.c (w32font_full_name): New function.
14484 (w32font_open_internal): Use it.
14485
144862008-03-01 Kim F. Storm <storm@cua.dk>
14487
14488 * dispnew.c (line_draw_cost): Fix invalid glyph check.
14489
144902008-03-01 Jason Rumney <jasonr@gnu.org>
14491
14492 * font.c (font_unparse_fcname): Increase len when style is a symbol.
14493
144942008-03-01 Jan Djärv <jan.h.d@swipnet.se>
14495
14496 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
14497 xg_frame_resized when the event is for the edit widget.
14498
14499 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
14500
14501 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
14502 set_char_size.
14503 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
14504 operations on widgets here. Just set frame size if needed.
14505 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
14506 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
14507 (x_wm_set_size_hint): Set size hints on the edit widget only, not
14508 the whole frame.
14509 (xg_create_tool_bar): Move attachment of the tool bar to
14510 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
14511 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
14512
145132008-03-01 Jason Rumney <jasonr@gnu.org>
14514
14515 * w32fns.c (w32_msg_pump): Disable debug code.
14516
145172008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14518
14519 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
14520
145212008-02-29 Chong Yidong <cyd@stupidchicken.com>
14522
14523 * xdisp.c (next_overlay_string): Don't set
14524 overlay_strings_at_end_processed_p if we're currently reading from
14525 a display string.
14526
145272008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
14528
14529 * xdisp.c (get_overlay_strings_1): Fix typo.
14530
145312008-02-29 Chong Yidong <cyd@stupidchicken.com>
14532
14533 * xdisp.c (get_overlay_strings_1): Add missing argument type.
14534
145352008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
14536
14537 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
14538
14539 * xdisp.c (display_mode_element): Cancel the previous change.
14540 (decode_mode_spec): Likewise.
14541 (handle_auto_composed_prop): Don't make composition if it->string
14542 is a string.
14543
145442008-02-27 Kim F. Storm <storm@cua.dk>
14545
14546 * lisp.h (GLYPH): Change type from int to struct with separate char
14547 and face_id members.
14548 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
14549 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
14550 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
14551 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
14552 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
14553 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
14554 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
14555 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
14556 handle new Lisp glyph code encoding, either an integer or a cons.
14557
14558 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
14559 (GLYPH_ALIAS): Delete.
14560 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
14561 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
14562 (GLYPH_FROM_CHAR): Replace macro by ...
14563 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
14564
14565 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
14566 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
14567 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
14568 (GLYPH_INVALID_P): New macro.
14569 (spec_glyph_lookup_face): Update prototype.
14570
14571 * dispnew.c (line_draw_cost): Adapt to new glyph type.
14572 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
14573 new glyph code encoding.
14574 (spec_glyph_lookup_face): No return value; update passed glyph instead.
14575 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
14576
14577 * xdisp.c (get_next_display_element, next_element_from_display_vector):
14578 Adapt to new glyph type and new glyph code encoding.
14579
14580 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
14581
14582 * indent.c (current_column, current_column_1, Fmove_to_column)
14583 (compute_motion): Adapt to new glyph code encoding.
14584
14585 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
14586
145872008-02-27 Chong Yidong <cyd@stupidchicken.com>
14588
14589 * process.c (wait_reading_process_output): Check for window
14590 changes caused by timers.
14591 Suggested by Johan Bockgård.
14592
145932008-02-27 Glenn Morris <rgm@gnu.org>
14594
14595 * emacs.c (USAGE1): Add `--disable-font-backend'.
14596
145972008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
14598
14599 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
14600 is made to the buffer.
14601
146022008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
14603
14604 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
14605 (face_at_string_position):
14606 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
14607 (face_at_string_position):
14608 * xdisp.c (display_string, next_overlay_change):
14609 * buffer.h (overlays_at):
14610 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
14611 Update callers.
14612
146132008-02-26 Chong Yidong <cyd@stupidchicken.com>
14614
14615 * editfns.c (Fformat): Doc fix.
14616
146172008-02-26 Juanma Barranquero <lekktu@gmail.com>
14618
14619 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
14620 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
14621 (Ffont_otf_alternates, Fquery_font): Doc fixes.
14622
146232008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
14624
14625 * buffer.c (Fbuffer_swap_text): New function.
14626 (syms_of_buffer): Defsubr it.
14627
146282008-02-25 Chong Yidong <cyd@stupidchicken.com>
14629
14630 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
14631
146322008-02-25 Jason Rumney <jasonr@gnu.org>
14633
14634 * w32font.c (w32font_draw): Draw one character at a time when padding.
14635
146362008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
14637
14638 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
14639 Handle a nil arg. Use run_window_configuration_change_hook.
14640 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
14641 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
14642 Use run_window_configuration_change_hook.
14643
146442008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
14645
14646 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
14647 1-pixel width.
14648
146492008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
14650
14651 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
14652 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
14653 if the glyph in the font is zero pixel with.
14654
14655 * dispextern.h (struct glyph_string): New member padding_p.
14656
14657 * w32font.c (w32font_draw): Pay attention to s->padding_p.
14658
14659 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
14660
14661 * xfont.c (xfont_draw): Pay attention to s->padding_p.
14662
14663 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
14664
14665 * font.c: If the font driver doesn't have `shape' function, return Qnil.
14666
146672008-02-25 Jason Rumney <jasonr@gnu.org>
14668
14669 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
14670
146712008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
14672
14673 Allow fine-grained image-cache flushing.
14674 * dispextern.h (struct image): Add `dependencies' field.
14675 (clear_image_caches): Change arg to Lisp_Object.
14676 * image.c (make_image): Initialize `dependencies' field.
14677 (clear_image_cache): Change arg to allow fine-grained flushing.
14678 Perform the flush even if image-cache-eviction-delay is nil.
14679 (clear_image_caches): Change arg to Lisp_Object.
14680 (Fclear_image_cache): Expand meaning of the argument.
14681 (mark_image): Mark `dependencies' field.
14682 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
14683 (lface_hash): Use XHASH rather than XFASTINT.
14684 (face_at_buffer_position): Fix int -> EMACS_INT position.
14685 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
14686 (select_frame_for_redisplay): Remove code duplication.
14687 (redisplay_internal): Adapt arg to call to clear_image_caches.
14688
146892008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
14690
14691 * s/vms4-0.h:
14692 * s/vms4-2.h:
14693 * s/vms4-4.h:
14694 * s/vms5-5.h: Remove, unused.
14695
14696 * s/irix5-2.h:
14697 * s/irix6-0.h:
14698 * s/riscos5.h:
14699 * s/mach-bsd4-3.h:
14700 * m/mips4.h: Remove files for obsolete systems.
14701
14702 * Makefile.in:
14703 * filelock.c:
14704 * unexmips.c:
14705 * m/hp9000s300.h:
14706 * m/iris4d.h:
14707 * s/aix3-1.h:
14708 * s/hpux.h:
14709 * s/msdos.h:
14710 * s/usg5-0.h:
14711 * s/usg5-2-2.h:
14712 * s/usg5-2.h:
14713 * s/usg5-3.h: Remove references to obsolete variables.
14714
14715 * s/irix5-0.h: Remove, move all the contents ...
14716 * s/irix6-5.h: ... here. Simplify.
14717 * config.in: Regenerate.
14718
147192008-02-24 Jason Rumney <jasonr@gnu.org>
14720
14721 * w32term.c (x_draw_glyph_string_background): Clear the background
14722 manually when cleartype is in use.
14723 (x_draw_glyph_string_foreground): Draw text transparently when
14724 cleartype is in use.
14725
14726 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
14727 a font into it unless we have to.
14728
147292008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
14730
14731 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
14732 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 14733
aac0c6e3
MR
147342008-02-18 Jason Rumney <jasonr@gnu.org>
14735
14736 * w32fns.c (Fw32_shell_execute): Encode parameters.
14737
147382008-02-09 Eli Zaretskii <eliz@gnu.org>
14739
14740 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
14741
147422008-02-05 Juanma Barranquero <lekktu@gmail.com>
14743
14744 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
14745
147462008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
14747
14748 * xterm.c (x_set_offset): Don't change the gravity if
14749 CHANGE_GRAVITY is -1.
14750
147512008-02-23 Chong Yidong <cyd@stupidchicken.com>
14752
14753 * fileio.c (auto_save_error_occurred): New var.
14754 (auto_save_error): Set it.
14755 (Fdo_auto_save): Don't overwrite the error message if an auto-save
14756 error occurred.
14757
147582008-02-23 Eli Zaretskii <eliz@gnu.org>
14759
14760 * w32.c (globals_of_w32): Add initializations for
14761 g_b_init_get_sid_sub_authority and
14762 g_b_init_get_sid_sub_authority_count.
14763
147642008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
14765
14766 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
14767 (font_parse_xlfd): Use them for sanity check.
14768 (Finternal_set_font_style_table): Make sure the table is bijective.
14769
14770 Consolidate the image_cache to the terminal struct.
14771 * termhooks.h (P_): Remove redundant def.
14772 (struct terminal): New field `image_cache'.
14773 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
14774 of FRAME_X_IMAGE_CACHE.
14775 * xterm.h (struct x_display_info): Remove image_cache field.
14776 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
14777 * w32term.h (struct w32_display_info): Remove image_cache field.
14778 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
14779 * macterm.h (struct mac_display_info): Remove image_cache field.
14780 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
14781 * xterm.c (x_term_init):
14782 * w32term.c (w32_term_init):
14783 * macterm.c (mac_term_init): Set the image_cache in the terminal.
14784 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
14785 Remove declarations.
14786 (clear_image_caches, mark_image_cache): New declarations.
14787 * xfaces.c (clear_face_cache):
14788 * xdisp.c (redisplay_internal): Use clear_image_caches.
14789 * image.c (clear_image_cache): Don't check that a frame is on
14790 a window-system before checking if it shares the same cache.
14791 (clear_image_caches): New function.
14792 (Fclear_image_cache): Use it.
14793 (mark_image): Move from allo.c.
14794 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
14795 * alloc.c (mark_image, mark_image_cache): Move to image.c.
14796 (mark_object): Don't call mark_image_cache for frames.
14797 (mark_terminals): Call mark_image_cache.
14798
14799 * lisp.h (Fdelete_terminal): Declare.
14800
14801 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
14802 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
14803 wrong_type_argument.
14804
148052008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
14806
14807 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
14808 malayalam.el, and tamil.el. Add sinhala.el.
14809
148102008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
14811
14812 * xterm.c (x_connection_closed): Consolidate identical tests.
14813 (x_delete_terminal): Don't crash if called via x_connection_closed.
14814
148152008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
14816
14817 * xdisp.c (decode_mode_spec): New arg string.
14818 (display_mode_element): Adjust for the above change.
14819
148202008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
14821
14822 * callint.c (Fcall_interactively): Use AREF.
14823
148242008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
14825
14826 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
14827
148282008-02-18 Jan Djärv <jan.h.d@swipnet.se>
14829
14830 * xfns.c (Fx_show_tip): Set string to " " if empty.
14831
148322008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
14833
14834 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
14835 with Qt.
14836
148372008-02-17 Kenichi Handa <handa@m17n.org>
14838
14839 * ftfont.c (ftfont_shape): Return Lispy number.
14840
14841 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
14842 for GCs.
14843 (Finternal_set_font_selection_order): Call font_update_sort_order
14844 only when enable_font_backend is set.
14845 (realize_x_face): Set face->font_info to that of default face only
14846 when enable_font_backend is set.
14847
14848 * xdisp.c (handle_composition_prop): Set it->c to the fist
14849 character of the composed region.
14850 (fill_composite_glyph_string): Set base_face->font_info to
14851 s->font_info. Get a face for ascii from base_face->ascii_face.
14852 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
14853 with a face already decided.
14854 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
14855 non-negative.
14856 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
14857 call font_prepare_composition unconditionally.
14858
14859 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
14860
14861 * xterm.h (struct x_display_info): New member font.
14862
14863 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
14864 (x_set_mouse_face_gc, x_new_font): Likewise.
14865 (x_term_init): Setup display_info->font.
14866 (x_delete_terminal): Free display_info->font.
14867
14868 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
14869
14870 * ftxfont.c (ftxfont_default_fid): Delete it.
14871 (ftxfont_open): Set xfont->fid to 0.
14872 (ftxfont_end_for_frame): Clear data specific to the frame and the
14873 font-driver.
14874
14875 * xftfont.c (xftfont_default_fid): Delete it.
14876 (xftfont_open): Set xfont->fid to 0.
14877
14878 * fontset.c (FONTSET_OBJLIST): New macro.
14879 (fontset_find_font): Update font-object list of the fontset.
14880 (free_realized_fontset): New function.
14881 (free_face_fontset): Call free_realized_fontset.
14882 (Ffont_info): Call font_close_object only when enable_font_backend
14883 is set.
14884
14885 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
14886 [HAVE_NTGUI]: Include w32term.h.
14887 [MAC_OS]: Include macterm.ch.
14888 (font_otf_ValueRecord): Use make_number.
14889 (font_finish_cache): Fix handling of reference count.
14890 (font_clear_cache): Update num_fonts.
14891 (font_open_entity): Update smallest_char_width and
14892 smallest_font_height of the frame.
14893 (font_close_object): Update num_fonts.
14894 (Fclear_font_cache): Fix finding the target cache data.
14895
148962008-02-16 Glenn Morris <rgm@gnu.org>
14897
14898 * fontset.c (Finternal_char_font): Fix compilation warning.
14899
149002008-02-16 Eli Zaretskii <eliz@gnu.org>
14901
14902 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
14903 instead of char arrays. Enlarge the size of array passed to
14904 get_token_information.
14905
14906 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
14907 warnings.
14908
149092008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
14910
14911 * .gdbinit: Don't set `args', it breaks gdb --args.
14912
149132008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
14914
14915 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
14916 within a narrowed buffer.
14917
149182008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
14919
14920 * coding.c (decode_coding_object, encode_coding_object):
14921 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
14922
149232008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
14924
14925 * coding.c (coding_set_destination): Use BEG_BYTE rather than
14926 hardcoding 1.
14927 (detect_coding_system):
14928 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
14929 (string_char_to_byte, string_byte_to_char, insert_from_gap):
14930 * insdel.c (insert_from_gap):
14931 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
14932 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
14933 (string_to_multibyte):
14934 * character.c (chars_in_text, multibyte_chars_in_text):
14935 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
14936
14937 * character.h (FETCH_STRING_CHAR_ADVANCE)
14938 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
14939 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
14940 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
14941
14942 * casefiddle.c (casify_region): Only call after-change and composition
14943 functions on the part of the region that was changed.
14944
14945 * keyboard.c (read_avail_input):
14946 * frame.c (Fdelete_frame): Call Fdelete_terminal.
14947
149482008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
14949
14950 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
14951 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
14952
149532008-02-11 Juanma Barranquero <lekktu@gmail.com>
14954
14955 * w32menu.c (push_submenu_start, push_submenu_end)
14956 (push_left_right_boundary, push_menu_pane, push_menu_item):
14957 * keyboard.c (read_key_sequence): Don't pass args with side effects
14958 to AREF, it fails when compiling with -DENABLE_CHECKING.
14959
149602008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
14961
14962 * Makefile.in (${lispsource}international/charprop.el):
14963 Delete this target.
14964
14965 * search.c (boyer_moore): Fix incorrect synching of the trunk and
14966 emacs-unicode-2.
14967
149682008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
14969
14970 * terminal.c (Fdelete_terminal): Clean up the `force' path.
14971
149722008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
14973
14974 * frame.c (Qnoelisp): New symbol.
14975 (syms_of_frame): Initialize it.
14976 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
14977 harmless Elisp code, from a strong `force' from x_connection_closed.
14978 * frame.h (Qnoelisp): Declare.
14979 * xterm.c (x_connection_closed): Pass `noelisp'.
14980
14981 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
14982 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
14983 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
14984 rather than `int' for the type of `type'.
14985
149862008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
14987
14988 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
14989
14990 * Makefile.in (GNUC): Remove support for gcc-1.x.
14991
149922008-02-10 Richard Stallman <rms@gnu.org>
14993
14994 * lisp.h (ASET): Use AREF, not ASLOT.
14995
149962008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
14997
14998 * lisp.h (ASET): Check bounds.
14999
150002008-02-10 Glenn Morris <rgm@gnu.org>
15001
15002 * buffer.c (mode-name): Doc fix.
15003
150042008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
15005
15006 * Makefile.in:
15007 * emacs.c:
15008 * gmalloc.c:
15009 * keyboard.c:
15010 * lisp.h:
15011 * m/ibm370aix.h:
15012 * process.c:
15013 * regex.c:
15014 * s/hpux.h:
15015 * sysdep.c:
15016 * sysselect.h:
15017 * systty.h:
15018 * unexec.c:
15019 * w32term.c:
15020 * xsmfns.c:
15021 * xterm.c: Remove code that deals with obsolete variables.
15022
15023 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
15024
15025 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
15026 nothing else needs it anymore.
15027
150282008-02-09 Eli Zaretskii <eliz@gnu.org>
15029
15030 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
15031 instead of unibyte_char_to_multibyte.
15032
150332008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
15034
15035 * s/gnu-linux.h: Remove commented out code.
15036
15037 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
15038
15039 * Makefile.in: Update what RMS says about using autoconf.
15040 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
15041 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
15042 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
15043 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
15044
150452008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
15046
15047 * keymap.c (Fkey_description): Move side effect outside of macro call.
15048
15049 * xfaces.c (Finternal_make_lisp_face):
15050 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
15051
15052 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
15053 (syms_of_fontset): Use ASET.
15054
15055 * fns.c (concat): Move side effect outside of macro call.
15056 (hash_clear): Use ASET.
15057
150582008-02-08 Richard Stallman <rms@gnu.org>
15059
15060 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
15061 If FORCE, and frame has a surrogate minibuffer for another frame,
15062 delete the other frame first.
15063
150642008-02-07 Timo Savola <timo.savola@iki.fi>
15065
15066 * xterm.c (x_detect_focus_change): Handle embed client message.
15067 (handle_one_xevent): Ditto.
15068 (handle_one_xevent): If embedded and we get a button press/release,
15069 request focus.
15070 (xembed_set_info, xembed_send_message): New functions.
15071 (x_make_frame_visible): Call xembed_set_info if embedded.
15072 (x_make_frame_invisible): Call xembed_set_info if embedded.
15073 (x_term_init): Initialize Xatom_XEMBED.
15074 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
15075 (x_iconify_frame): Ditto.
15076
15077 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
15078 (enum xembed_info, enum xembed_message, enum xembed_focus)
15079 (enum xembed_modifier, enum xembed_accelerator): New.
15080 (xembed_set_info, xembed_send_message): Declare.
15081 (FRAME_X_EMBEDDED_P): New.
15082
15083 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
15084 gtk_plug_new.
15085
15086 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
15087 window ID of a frame.
15088 (x_window): Reparent frame if embedded.
15089 (Fx_create_frame): Don't set border width if embedded.
15090
15091 * emacs.c (USAGE3): Add --parent-id.
15092 (standard_args): Ditto.
15093
150942008-02-07 Jan Djärv <jan.h.d@swipnet.se>
15095
15096 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
15097
150982008-02-07 Jim Meyering <meyering@redhat.com>
15099
15100 Use "do...while (0)", not "if (1)...else" in macro definitions.
15101 The latter provokes a warning from gcc about the empty else, when
15102 followed by ";". Also, without that trailing semicolon, it would
15103 silently swallow up any following statement.
15104 * syntax.h (SETUP_SYNTAX_TABLE)
15105 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
15106 * buffer.h (DECODE_POSITION): Likewise.
15107 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
15108 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
15109 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
15110 (FETCH_CHAR_ADVANCE): Likewise.
15111 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
15112
151132008-02-07 Jim Meyering <meyering@redhat.com>
15114
15115 * lread.c [lint]: Don't include <sys/inode.h>.
15116
151172008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
15118
15119 * xselect.c (x_handle_dnd_message):
15120 * xmenu.c (digest_single_submenu, xmenu_show):
15121 * xdisp.c (with_echo_area_buffer_unwind_data)
15122 (format_mode_line_unwind_data, unwind_format_mode_line)
15123 (display_menu_bar):
15124 * eval.c (Ffetch_bytecode):
15125 * doc.c (store_function_docstring):
15126 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
15127 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
15128 * buffer.c (add_overlay_mod_hooklist): Use ASET.
15129
151302008-02-07 Kenichi Handa <handa@m17n.org>
15131
15132 * ftxfont.c (ftxfont_open): Don't set
15133 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
15134
15135 * ftfont.c (ftfont_open): Fix previous change.
15136
151372008-02-06 Jason Rumney <jasonr@gnu.org>
15138
15139 * w32font.c (w32font_text_extents): Fill in lbearing metric.
15140 Use cached metrics for ASCII characters.
15141 (w32font_open_internal): Don't set font's owning_frame.
15142 Cache metrics for ASCII characters.
15143
15144 * w32font.h (struct w32font_info): Add ascii_metrics.
15145 Remove owning_frame.
15146
151472008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
15148
15149 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
15150 to negative value.
15151
15152 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
15153
15154 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
15155
15156 * charset.c (syms_of_charset): Set QCtest and Qeq.
15157
151582008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
15159
15160 * process.c (Fstart_process):
15161 * callproc.c (Fcall_process): Handle the case where
15162 Funhandled_file_name_directory returns nil.
15163
15164 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
15165 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
15166 * font.c (check_gstring): Use them and AREF to access the vector before
15167 we know it's really a gstring.
15168 (Ffont_shape_text): Fix typo.
46e722a9 15169 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
15170
15171 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
15172 Declare.
15173
15174 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
15175
151762008-02-05 Jason Rumney <jasonr@gnu.org>
15177
15178 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
15179 Set smallest_font_height and smallest_char_width in display info.
15180
151812008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
15182
15183 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
15184
151852008-02-05 Miles Bader <miles@gnu.org>
15186
15187 * xfaces.c (get_lface_attributes, merge_named_face)
15188 (lookup_named_face, lookup_derived_face, realize_named_face):
15189 Revert 2008-02-01 change by cyd@stupidchicken.com.
15190
151912008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
15192
15193 * fontset.c (Ffontset_info): Handle the case of inhibitting the
15194 fallback fonts.
15195 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
15196
151972008-02-04 Jason Rumney <jasonr@gnu.org>
15198
15199 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
15200 set full_name.
15201 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
15202
152032008-02-03 Jason Rumney <jasonr@gnu.org>
15204
15205 * makefile.w32-in (OBJ1): Include font.o here.
15206 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
15207
152082008-02-02 Jason Rumney <jasonr@gnu.org>
15209
15210 * makefile.w32-in (temacs): Bump EMHEAP to 21.
15211
152122008-02-01 Jason Rumney <jasonr@gnu.org>
15213
15214 * s/cygwin.h: Define VIRT_ADDR_VARIES.
15215
15216 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
15217
152182008-02-01 Andreas Schwab <schwab@suse.de>
15219
15220 * Makefile.in (shortlisp, lisp): Update for rename of
15221 ../lisp/language/myanmar.el.
15222
152232008-02-01 Chong Yidong <cyd@stupidchicken.com>
15224
15225 * xfaces.c (get_lface_attributes): Delete function.
15226 (merge_named_face, lookup_named_face, lookup_derived_face)
15227 (realize_named_face): Call lface_from_face_name directly, and use
15228 the fact that merge_face_vectors does not alter its FROM argument.
15229
152302008-02-01 Jason Rumney <jasonr@gnu.org>
15231
15232 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
15233 input in the default locale. Handle non-Unicode multibyte input.
15234
152352008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15236
15237 * fontset.c (reorder_font_vector): Exclude nil elements from the
15238 font group. Don't try multiple fonts.
15239 (fontset_font): Adjust for the above change.
15240 (Finternal_char_font): Return nil if the found font doesn't
15241 contain the character ch.
15242
15243 * Makefile.in (lisp, shortlisp): Add cham.el.
15244
152452008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15246
15247 * font.h (FONTP): Make it return 1 also for a font-object.
15248
15249 * .gdbinit (xfontset): New function.
15250
15251 * font.c (font_find_for_lface): Check if the character C is
15252 supported or not only for the first font.
15253
15254 * fontset.c (reorder_font_vector): Fix typo.
15255 (fontset_find_font): Don't add a font-spec specifying a script.
15256 Use 0 (not Qt) for the indication of empty font-group. Change the
15257 format of RFONT-DEF. Return Qt if no font in the font-group
15258 support the character.
15259 (fontset_font): Adjust for the above change. If no font was
15260 found the character, remember that.
15261 (face_for_char): Adjust for the change of RFONT-DEF.
15262 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
15263 no font for the target.
15264 (Finternal_char_font): Adjust for the change of RFONT-DEF.
15265
152662008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15267
15268 * font.c (font_load_for_face): Handle the case that the font in
15269 face->lface is a string.
15270
152712008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15272
15273 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
15274
152752008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15276
15277 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
15278 Fix previous change. If the frame is not on a window system,
15279 signal an error.
15280
152812008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15282
15283 * coding.c (decode_coding_object, encode_coding_object): Adjust
15284 marker positions after conversion.
15285
15286 * lisp.h (struct Lisp_Marker): New member need_adjustment.
15287
152882008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15289
15290 * font.c (font_find_for_lface): Fix the handling of the return
15291 value of font_has_char.
15292 (Ffont_shape_text): Fix previous change.
15293
15294 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
15295 (fontset_ref_and_range): Delete it.
15296 (fontset_find_font): Call char_table_ref_and_range instead of
15297 FONTSET_REF_AND_RANGE.
15298 (make_fontset): Don't setup font groups of Latin here.
15299 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
15300 (new_fontset_from_font): Make the specified font the default for
15301 all Latin characters.
15302
153032008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15304
15305 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
15306 is on a window system before accessing the fontset of the frame.
15307
153082008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15309
15310 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
15311
15312 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
15313 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
15314
15315 * font.c (Ffont_shape_text): If the font driver doesn't have a
15316 shaper function, make zero-width glyphs to have at least one-pixel
15317 width. Fix setting of `to' field of glyphs.
15318
153192008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15320
15321 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
15322 glyphs.
15323
15324 * font.h (struct font_driver): Improve docstring of member `shape'.
15325
153262008-02-01 Kenichi Handa <handa@m17n.org>
15327
15328 * composite.c (syms_of_composite): Fix docstring of
15329 auto-composition-function.
15330
15331 * font.h (LGLYPH_SIZE): New macro.
15332
15333 * font.c (Ffont_fill_gstring): Stop filling when a character not
15334 supported by the font is found.
15335 (Ffont_shape_text): When a shape callback function returns nil,
15336 try at most two more times with larger gstring.
15337 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
15338
15339 * xdisp.c (handle_auto_composed_prop): Change the argument to
15340 auto-composition-function.
15341
15342 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
15343 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
15344 Lispy glyph and store it in the lgstring.
15345
15346 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
15347
15348 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
15349
153502008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15351
15352 * font.c (Ffont_shape_text): Avoid unnecessary composition.
15353
15354 * fontset.c (Vfont_encoding_charset_alist): New variable.
15355 (syms_of_fontset): DEFVAR it.
15356 (reorder_font_vector, fontset_find_font): Optimize for the case of
15357 no need of reordering.
15358 (face_for_char): Map the charset property by
15359 Vfont_encoding_charset_alist.
15360
153612008-02-01 Jason Rumney <jasonr@gnu.org>
15362
15363 * w32font.c (logfonts_match): Don't check adstyle here.
15364 (font_matches_spec): Check here against physical font instead.
15365 (add_font_entity_to_list): Avoid some substitutions.
15366
15367 * font.c (font_parse_fcname): Default weight and slant to normal.
15368 (font_score): Prefer normal fonts if weight or slant unspecified.
15369 (font_score) [WINDOWSNT]: Scale weight difference down to closer
15370 match freetype scores.
15371
153722008-02-01 Jason Rumney <jasonr@gnu.org>
15373
15374 * w32font.c (w32font_text_extents): Don't use the frame stored in the
15375 font, as it may have been deleted.
15376 (w32_enumfont_pattern_entity): Map generic family to adstyle using
15377 most common hyphenless variation.
15378 (logfonts_match): Check generic family.
15379 (font_matches_spec): Don't check generic family here.
15380 (fill_in_logfont): Set generic family based on adstyle.
15381
15382 * w32font.h (w32font_get_cache): Update declaration.
15383
153842008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15385
15386 * ftfont.c (ftfont_get_cache): Adjust the argument type.
15387
15388 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
15389 If none of the new drivers are available, call font_update_drivers
15390 with the old drivers.
15391
15392 * w32font.c (w32font_get_cache): Adjust the argument type.
15393
15394 * xfont.c (xfont_get_cache): Adjust the argument type.
15395
15396 * font.h (struct font_driver): Change argument type of get_cache.
15397
15398 * xftfont.c (xftfont_start_for_frame): Delete prototype.
15399
15400 * font.c (Ffont_get): Fix arguments to Fassoc.
15401 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
15402 (font_clear_cache): New function.
15403 (font_list_entities, font_matching_entity): Use font_get_cache.
15404 (font_update_drivers): Call font_clear_cache when finishing a driver.
15405
15406 * fontset.c (fontset_find_font): Fix previous change.
15407
154082008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15409
15410 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
15411 dpyinfo->font_table.
15412 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
15413 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
15414
15415 * font.c (font_at): Handle the case that the arg C is negative.
15416 Handle the unibyte case.
15417 (Ffont_at): Call font_at with the arg C -1.
15418
15419 * xdisp.c (handle_auto_composed_prop): Don't get a character at
15420 the position here, and call font_at with the arg C -1.
15421 Don't check the range of the existing composition at the point.
15422
154232008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15424
15425 * fontset.c (fontset_add): New args charset_id and family.
15426 Change caller.
15427 (load_font_get_repertory, fontset_find_font): Assume that
15428 font_spec is always a font-spec object.
15429 (Fset_fontset_font): Always store a font-spec object in a fontset.
15430
15431 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
15432 instead of get_property_and_range.
15433
154342008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15435
15436 * xftfont.c (struct xftfont_info): Delete the member ft_face.
15437 (xftfont_open): Don't keep locking face.
15438 (xftfont_close): Don't unlock face.
15439 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
15440
15441 * fontset.c (fontset_find_font): Don't prefer a font of
15442 supplementary charset.
15443
154442008-02-01 Kenichi Handa <handa@m17n.org>
15445
15446 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
15447 script, langsys_tag to langsys, new member script.
15448 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 15449 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
15450 listing to the script specified in that property. Fix arg to
15451 OTF_check_features.
15452
154532008-02-01 Jason Rumney <jasonr@gnu.org>
15454
15455 * w32font.h: New file.
15456
15457 * w32font.c: Include it.
15458 (struct w32font_info): Add owning_frame field. Move to w32font.h.
15459 (w32font_open): Set owning_frame.
15460 (w32font_text_extents): Use owning_frame.
15461 (struct font_callback_data): Add opentype_only field.
15462 (add_font_entity_to_list): Use it to filter fonts.
15463 Don't check against full name.
15464 (w32font_list_internal): New function.
15465 (w32font_list): Use it.
15466 (w32font_match_internal): New function.
15467 (w32font_match): Use it.
15468 (w32font_open_internal): New function.
15469 (w32font_open): Use it.
15470 (w32font_get_cache, w32font_close, w32font_has_char)
15471 (w32font_encode_char, w32font_text_extents, w32font_draw):
15472 Make non-static.
15473
15474 * makefile.w32-in (w32font.o): Depend on w32font.h.
15475
154762008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15477
15478 * charset.c (Fdefine_charset_internal): Record a supplementary
15479 charset at the tail of Vcharset_order_list.
15480
15481 * font.c (Ffont_shape_text): Fix the return value.
15482
15483 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
15484
15485 * xdisp.c (handle_auto_composed_prop): Fix previous change.
15486
154872008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15488
15489 * ftfont.c (struct OpenTypeSpec): New struct.
15490 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
15491 (ftfont_get_open_type_spec): New function.
15492 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
15493
15494 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
15495
154962008-02-01 Jason Rumney <jasonr@gnu.org>
15497
15498 * w32font.c (add_font_entity_to_list): Compare only the beginning
15499 of full name.
15500
155012008-02-01 Kenichi Handa <handa@m17n.org>
15502
15503 * xdisp.c (handle_auto_composed_prop): Simplify the code.
15504 Never return HANDLED_RECOMPUTE_PROPS.
15505
155062008-02-01 Kenichi Handa <handa@m17n.org>
15507
15508 * font.c (font_gstring_produce): Delete it.
15509
15510 * composite.h (COMPOSITION_METHOD):
15511 Handle COMPOSITION_WITH_GLYPH_STRING.
15512
155132008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15514
15515 * xfont.c (Qx): Delete.
15516 (syms_of_xfont): Don't initialize Qx.
15517
15518 * composite.h (enum composition_method):
15519 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
15520
155212008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15522
15523 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
15524 (choose_face_font): Accept new form of font-spec.
15525
15526 * frame.h (font_driver_list): Declare it unconditionally.
15527 (struct frame): Define members font_driver_list and font_data_list
15528 unconditionally.
15529
15530 * fontset.c: Include "font.h" unconditionally.
15531 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
15532 (Fset_fontset_font): Accept a font-spec object.
15533
15534 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
15535 PIXEL_SIZE part a wild card.
15536
15537 * dispextern.h (struct glyph_string): Define members clip and
15538 num_clips unconditionally.
15539 (struct face): Define members font_info and extra unconditionally.
15540
15541 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
15542 ftfont_info only when HAVE_LIBOTF is defined.
15543
155442008-02-01 Andreas Schwab <schwab@suse.de>
15545
15546 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
15547 and end.
15548
155492008-02-01 Jason Rumney <jasonr@gnu.org>
15550
15551 * w32font.c (w32font_driver): Add new fields.
15552
155532008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15554
15555 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
15556 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
15557 (LIBES): Add @M17N_FLT_CFLAGS@.
15558
15559 * composite.c (compose_text): Don't treat the new style
15560 composition specially.
15561
15562 * emacs.c (main): Call syms_of_font unconditionally.
15563
15564 * font.h (FONT_ENTITY_NOT_LOADABLE)
15565 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
15566 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
15567 (struct font_driver): New member shape.
15568 (font_registry_charsets): Extern it.
15569 (font_find_for_lface, font_prepare_composition): Adjust prototype.
15570 (font_otf_capability, font_drive_otf): Delete their externs.
15571
15572 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
15573 (font_charset_alist, font_registry_charsets): Move from xfont.c
15574 and rename.
15575 (font_prop_validate_otf): New function.
15576 (font_property_table): Register it for QCotf.
15577 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
15578 (font_drive_otf): Delete.
15579 (font_prepare_composition): New arg F. Adjust for the change of
15580 lispy gstring.
15581 (font_find_for_lface): New arg C.
15582 (font_load_for_face): Adjust for the change of font_find_for_lface.
15583 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
15584 lispy gstring.
15585 (Ffont_shape_text): New function.
15586 (Fopen_font): If the font size is not given, use 12-pixel.
15587 (Ffont_at): New arg STRING.
15588 (syms_of_font): Initalize font_charset_alist.
15589 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
15590 conditionally.
15591
15592 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
15593 fonts of the same font-spec. Change the format of RFONT-DEF.
15594 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
15595 Adjust for the change of RFONT-DEF.
15596 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
15597
15598 * ftfont.h: New file.
15599
15600 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
15601 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
15602 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
15603 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
15604 font_otf_capability and font_drive_otf, set ftfont_shape.
15605 (ftfont_list): Adjust for the change of :otf property value.
15606 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
15607 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
15608 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
15609 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
15610 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
15611 (otf_gstring, gstring, m17n_flt_initialized): New variables.
15612
15613 * w32term.c (x_draw_composite_glyph_string_foreground):
15614 Adjust for the change of lispy gstring.
15615
15616 * xdisp.c (handle_composition_prop): Adjust for the change of
15617 lispy gstring. Call a function for auto-composition with the
15618 third arg it->window.
15619 (fill_composite_glyph_string): Adjust for the change of lispy string.
15620 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
15621
15622 * xfaces.c (set_font_frame_param): Adjust for the change of
15623 font_find_for_lface.
15624
15625 * xfont.c (x_font_charset_alist): Move to font.c and rename.
15626 (xfont_registry_charsets): Likewise. Change caller.
15627 (syms_of_xfont): Don't handle x_font_charset_alist.
15628
15629 * xftfont.c: Include "ftfont.h".
15630 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
15631 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
15632 (xftfont_close) [HAVE_LIBOTF]: Close otf.
15633 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
15634 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
15635 Set xftfont_driver.shape to xftfont_shape.
15636
15637 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
15638 the change of lispy gstring.
15639
156402008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15641
15642 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
15643
156442008-02-01 Jason Rumney <jasonr@gnu.org>
15645
15646 * w32font.c (w32font_draw): Fill background manually.
15647
156482008-02-01 Jason Rumney <jasonr@gnu.org>
15649
15650 * font.c (Qfontp): Remove unused symbol.
15651 (QCantialias): New symbol.
15652 (syms_of_font): Define it.
15653 (font_property_table): Set a validator for QCantialias.
15654
15655 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
15656 Define if not already.
15657 (QCfamily): Share with xfaces.c.
15658 (Qstandard, Qsubpixel, Qnatural): New symbols.
15659 (syms_of_w32font): Define them. Don't define QCfamily here.
15660 (w32_antialias_type, lispy_antialias_type): New functions.
15661 (w32_enumfont_pattern_entity): New arg requested_font.
15662 Set antialias parameter if non-default was requested.
15663 (fill_in_logfont): Fill in lfQuality if :antialias specified.
15664
156652008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15666
15667 * lread.c (read1): Undo the previous change.
15668
156692008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
15670
15671 * frame.c (Fdelete_frame): Call font_update_drivers only when
15672 USE_FONT_BACKEND is defined.
15673
156742008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15675
15676 * font.h (struct font_bitmap): New member bits_per_pixel.
15677 (struct font_driver): New members start_for_frame and end_for_frame.
15678 (struct font_data_list): New struct.
15679 (font_put_frame_data, font_get_frame_data): Extern them.
15680
15681 * frame.h (struct frame): New member font_data_list.
15682
15683 * font.c (font_update_drivers): Call driver->start_for_frame and
15684 driver->end_for_frame at proper timings.
15685 (font_put_frame_data, font_get_frame_data): New functions.
15686 (Ffont_spec): Add usage in the docstring.
15687
15688 * frame.c (make_frame): Initialize f->font_data_list to NULL.
15689 (Fdelete_frame): Call font_update_drivers.
15690
15691 * xftfont.c (struct xftface_info): Delete the member xft_draw.
15692 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
15693 (xftfont_get_xft_draw): New function.
15694 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
15695 (xftfont_end_for_frame): New function.
15696 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
15697
15698 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
15699 Change argument. Cache GCs in the per-frame data.
15700 (struct ftxfont_frame_data): New struct.
15701 (ftxfont_draw_bitmap): New arg gc_fore and flush.
15702 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
15703 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
15704 (ftxfont_end_for_frame): New function.
15705 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
15706
15707 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
15708
157092008-02-01 Kenichi Handa <handa@m17n.org>
15710
15711 * xselect.c (Vselection_coding_system)
15712 (Vnext_selection_coding_system): Delete them.
15713 (syms_of_xselect): Don't declare selection-coding-system and
15714 next-selection-coding-system. They are declared in select.el.
15715
157162008-02-01 Jason Rumney <jasonr@gnu.org>
15717
15718 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
15719
15720 * w32fns.c: Include imm.h.
15721 (get_composition_string_fn, get_ime_context_fn): New optional
15722 system functions.
15723 (globals_of_w32fns): Load them from imm32.dll.
15724 (ignore_ime_char): New flag.
15725 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
15726 WM_IME_ENDCOMPOSITION messages.
15727
15728 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
15729 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
15730
157312008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15732
15733 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
15734 (READCHAR_REPORT_MULTIBYTE): New macro.
15735 (readchar): New 2nd arg MULTIBYTE.
15736 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
15737 Make symbol's name multibyte according to the multibyteness of the
15738 source.
15739
157402008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15741
15742 * xfaces.c (face_for_overlay_string): Call lookup_face with
15743 correct arguments (fix of synching with the trunk).
15744
157452008-02-01 Kenichi Handa <handa@m17n.org>
15746
15747 * font.c (font_prop_validate_symbol, font_prop_validate_style)
15748 (font_prop_validate_non_neg, font_prop_validate_spacing):
15749 Delete argument prop_index.
15750 (font_property_table): Change arguments to validater. Change Callers.
15751 (font_lispy_object): Delete.
15752 (font_at): Use font_find_object instead fo font_lispy_object.
15753
157542008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15755
15756 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
15757 and file names.
15758
157592008-02-01 Jason Rumney <jasonr@gnu.org>
15760
15761 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
15762 (font_matches_spec): Remove debug output.
15763 (add_font_entity_to_list): Avoid using substituted fonts.
15764
157652008-02-01 Jason Rumney <jasonr@gnu.org>
15766
15767 * doc.c (Fsnarf_documentation):
15768 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
15769
157702008-02-01 Miles Bader <miles@gnu.org>
15771
15772 * dispextern.h (struct glyph_row): Only define "clip" field if
15773 HAVE_WINDOW_SYSTEM is defined.
15774
157752008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
15776
15777 Fix up multi-tty merge.
15778
15779 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
15780 and indentation.
15781
15782 * xfaces.c (free_realized_face, clear_face_gcs):
15783 Include font_done_for_face in the input_blocked section, just in case.
15784
15785 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
15786 (get_char_face_and_encoding): Undo last change and remove the *other*
15787 duplicate definition (i.e. keep the one that's better scoped and that
15788 includes code for the font-backend).
15789
15790 * terminal.c (create_terminal): Default keyboard_coding to
15791 `no-conversion' and terminal_coding to `undecided'.
15792
15793 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
15794
15795 * fontset.c (free_realized_fontsets): Check that the table entry does
15796 contain a fontset before trying to compare it to `base'.
15797
15798 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
15799 syms_of_charset, and syms_of_coding earlier because init_window_once
15800 now needs Vcoding_system_hash_table to be setup.
15801
15802 * coding.h (default_buffer_file_coding): Remove.
15803
15804 * coding.c (default_buffer_file_coding): Remove.
15805 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
15806 than ->symbol, and use the terminal-local coding system.
15807 (syms_of_coding): Don't setup the coding-systems that are not
15808 terminal-local.
15809 (Fdefine_coding_system_internal): Use XCAR/XCDR.
15810
15811 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
15812 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
15813
15814 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
15815 in chartab.c and were re-added here by mistake.
15816 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
15817
15818 * doc.c (Fsnarf_documentation):
15819 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
15820 src to etc.
15821
15822 * ChangeLog.10: Add mistakenly removed entry.
15823
158242008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
15825
15826 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
15827
158282008-02-01 Miles Bader <miles@gnu.org>
15829
15830 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
15831 Add extra args to FACE_FOR_CHAR.
15832
158332008-02-01 Kenichi Handa <handa@m17n.org>
15834
15835 * keymap.c (where_is_internal_1): If key is a cons, store the copy
15836 in sequence.
15837
15838 * chartab.c (map_sub_char_table, map_char_table): If the range
15839 contains just one character, call the function with that character
15840 even if the depth is not 3.
15841
158422008-02-01 Jason Rumney <jasonr@gnu.org>
15843
15844 * w32font.c (w32font_text_extents): Calculate metrics for the
15845 whole string.
15846
158472008-02-01 Jason Rumney <jasonr@gnu.org>
15848
15849 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
15850
158512008-02-01 Jason Rumney <jasonr@gnu.org>
15852
15853 * w32term.c (x_set_glyph_string_clipping): Use
15854 get_glyph_string_clip_rects.
15855 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
15856 Adjust for the change of struct glyph_string.
15857
15858 * w32font.c (w32font_draw): Do clipping here.
15859
158602008-02-01 Kenichi Handa <handa@m17n.org>
15861
15862 * xftfont.c (xftfont_draw): Adjust for the change of struct
15863 glyph_string.
15864
15865 * xterm.c (x_set_glyph_string_clipping): Use
15866 get_glyph_string_clip_rects.
15867 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
15868 Adjust for the change of struct glyph_string.
15869
15870 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
15871 the resulting clip(s}.
15872 (expose_overlaps): Add arg r. Change callers. Set it to
15873 row->clip temporarily.
15874 (expose_window): Redraw rows overlapping the exposed area.
15875
15876 * dispextern.h (struct glyph_row): New member clip.
15877 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
15878 clip_height, new member clip, and num_clips.
15879
158802008-02-01 Kenichi Handa <handa@m17n.org>
15881
15882 * data.c (Fchar_or_string_p): Fix docstring.
15883
158842008-02-01 Kenichi Handa <handa@m17n.org>
15885
15886 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
15887 create a temporary XftDraw object.
15888
158892008-02-01 Kenichi Handa <handa@m17n.org>
15890
15891 * font.c (Ffontp): Fix docstring.
15892
15893 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
15894 strong evidence of ISO-2022.
15895
158962008-02-01 Kenichi Handa <handa@m17n.org>
15897
15898 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
15899 SYNTAX_ENTRY_FOLLOW_PARENT.
15900
159012008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
15902
15903 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
15904 its type.
15905 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
15906 Update to the new type of weak_hash_tables and next_weak.
15907
15908 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
15909 a plain C pointer to Lisp_Hash_Table.
15910
15911 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
15912 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
15913 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
15914 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
15915 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
15916 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
15917 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
15918 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
15919 (GC_EQ): Remove since they've been identical to their non-GC_
15920 alter-egos ever since the markbit was eradicated.
15921
15922 * alloc.c:
15923 * buffer.c:
15924 * buffer.h:
15925 * data.c:
15926 * fileio.c:
15927 * filelock.c:
15928 * fns.c:
15929 * frame.h:
15930 * lisp.h:
15931 * macterm.c:
15932 * print.c:
15933 * process.c:
15934 * w32fns.c:
15935 * w32menu.c:
15936 * w32term.c:
15937 * xfns.c:
15938 * xmenu.c:
15939 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
15940
159412008-02-01 Kenichi Handa <handa@m17n.org>
15942
15943 * chartab.c (map_sub_char_table): Make it work for the top-level
15944 char-table. Fix handling of parent char-table.
15945 (map_char_table): Adjust for the above change.
15946
159472008-02-01 Jason Rumney <jasonr@gnu.org>
15948
15949 * w32font.c (Qgdi): Rename from Qw32.
15950
159512008-02-01 Jason Rumney <jasonr@gnu.org>
15952
15953 * w32bdf.c (get_quoted_string): Make function static.
15954
159552008-02-01 Kenichi Handa <handa@m17n.org>
15956
15957 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
15958 bigger ascent and descent than those of the font, use them as
15959 font's ascent and descent.
15960
159612008-02-01 Kenichi Handa <handa@m17n.org>
15962
15963 * Makefile.in (${lispsource}international/charprop.el): Move this
15964 target within "#ifdef HAVE_UNIDATA" and "#endif".
15965
159662008-02-01 Kenichi Handa <handa@m17n.org>
15967
15968 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
15969 (shortlisp): Add ../lisp/language/tai-viet.el.
15970
159712008-02-01 Ulrich Mueller <ulm@gentoo.org>
15972
15973 * Makefile.in (${lispsource}international/charprop.el): Depend on
15974 temacs${EXEEXT}.
15975
159762008-02-01 Jason Rumney <jasonr@gnu.org>
15977
15978 * w32font.c (w32font_close): Delete the GDI font object.
15979
15980 * w32menu.c: Include character.h.
15981
15982 * w32proc.c: Likewise.
15983
15984 * w32select.c: Likewise.
15985
15986 * makefile.w32-in (w32proc.o): Depend on character.h.
15987
159882008-02-01 Jason Rumney <jasonr@gnu.org>
15989
15990 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
15991
15992 * w32menu.c (syms_of_w32menu): Likewise.
15993
15994 * w32proc.c (syms_of_ntproc): Likewise.
15995
15996 * w32select.c (syms_of_w32select): Likewise.
15997
15998 * w32term.c (syms_of_w32term): Likewise.
15999
160002008-02-01 Jason Rumney <jasonr@gnu.org>
16001
16002 * w32font.c (w32font_draw): Delete brush after using it.
16003
160042008-02-01 Jason Rumney <jasonr@gnu.org>
16005
16006 * w32font.c (w32font_open): Don't set font_idx.
16007 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
16008 to font settings.
16009 (w32font_draw): Fill background explicitly.
16010
160112008-02-01 Jason Rumney <jasonr@gnu.org>
16012
16013 * w32term.c (w32_initialize): Don't call w32font_initialize.
16014
16015 * w32font.c (w32font_info): Remove subranges.
16016 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
16017 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
16018 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
16019 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
16020 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
16021 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
16022 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
16023 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
16024 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
16025 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
16026 New symbols.
16027 (font_callback_data): New struct.
16028 (w32font_list, w32font_match): Use it.
16029 (w32font_open): Don't populate subranges.
16030 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
16031 (w32font_encode_char): Always return unicode code-point as-is.
16032 (w32font_text_extents): Supply a transformation matrix to
16033 GetGlyphOutline. Never look up by glyph index. Avoid looping
16034 twice. Use unicode version of GetTexExtentPoint32 instead of
16035 glyph index version.
16036 (set_fonts_frame): Remove.
16037 (w32_enumfont_pattern_entity): Add frame parameter, use it to
16038 set frame parameter. Use backward compatible fake foundries.
16039 Save generic family in extra slot under QCfamily. Make width slot
16040 constant. Save QCspacing value. Save list of scripts instead of
16041 binary subranges.
16042 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
16043 (add_font_entity_to_list): Use font_callback_data struct. Filter
16044 unwanted fonts.
16045 (add_one_font_entity_to_list): Use font_callback_data struct.
16046 (w32_registry): Default to iso10646_1.
16047 (fill_in_logfont): Use dpi from extra slot. Don't bother with
16048 string font registries. Don't fill in font name if it is a generic
16049 family name, fill family instead. Use spacing, family and script
16050 extra info to fill pitch, family and charset fields.
16051 (list_all_matching_fonts): Use font_callback_data struct.
16052 (unicode_range_for_char): Remove.
16053 (font_supported_scripts): New function.
16054 (w32font_initialize): Remove.
16055 (syms_of_w32font): Update which symbols are defined.
16056
160572008-02-01 Jason Rumney <jasonr@gnu.org>
16058
16059 * font.c (font_pixel_size): Reverse assq_no_quit args.
16060
16061 * w32term.h (FONT_WIDTH): Report max width, not average.
16062 (FONT_MAX_WIDTH): Remove.
16063 (FONT_AVG_WIDTH): New macro.
16064
16065 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
16066 redefinition of FONT_WIDTH.
16067
16068 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
16069 (w32_cache_char_metrics): Use FONT_WIDTH.
16070
16071 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
16072
160732008-02-01 Jason Rumney <jasonr@gnu.org>
16074
16075 * w32font.c (w32font_open): Make lfHeight negative.
16076
16077 * w32fns.c (x_default_font_parameter): Use new style font name.
16078 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
16079
160802008-02-01 Jason Rumney <jasonr@gnu.org>
16081
16082 * w32font.c (QCsubranges): New symbol.
16083 (w32font_open, w32font_has_char): Get subranges from subproperty
16084 of extra.
16085 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
16086 (syms_of_w32font): Define :subranges symbol.
16087
16088 * font.c (font_put_extra): Expose externally.
16089
16090 * font.h (font_put_extra): Move declaration from font.c.
16091
16092 * font.c (Ffont_get): Use font driver to determine otf capability.
16093 (adjust_anchor): Check if driver defines anchor_point before using.
16094
16095 * w32font.c (w32font_open): Handle size, height and pixel_size better.
16096 (w32font_draw): Use options.
16097 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
16098 Fix detection of truetype fonts.
16099 (registry_to_w32_charset): Handle charsets other than iso8859-1
16100 expressed as lisp symbols.
16101 (w32_registry): Express charset as lisp symbol.
16102 (fill_in_logfont): Reverse pixel and point height logic.
16103 Don't set width here. Set quality to default.
16104
16105 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
16106 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
16107
16108 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
16109 Remove redundant loop and allocation.
16110
16111 * makefile.w32-in (font.o, w32font.o): New objects.
16112 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
16113 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
16114
16115 * xdisp.c (fill_composite_glyph_string): Make the first arg to
16116 STORE_XCHARB a valid l-value.
16117
16118 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
16119 calculations for non-Truetype fonts.
16120 (x_draw_glyph_string): Sync with xterm.c.
16121 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
16122 Remove redundant code.
16123 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
16124
16125 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
16126 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
16127
16128 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
16129 (x_to_w32_charset, w32_to_x_charset): Expose externally.
16130
16131 * w32font.c: New file for w32 font backend.
16132
161332008-02-01 Kenichi Handa <handa@m17n.org>
16134
16135 * term.c: Don't include "buffer.h" twice.
16136
161372008-02-01 Kenichi Handa <handa@m17n.org>
16138
16139 * character.c (Funibyte_string): New function.
16140 (syms_of_character): Defsubr it.
16141
161422008-02-01 Jason Rumney <jasonr@gnu.org>
16143
16144 * w32term.c [USE_FONT_BACKEND]:
16145 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
16146 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
16147 (x_draw_glyph_string, x_draw_glyph_string_foreground)
16148 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
16149 (x_free_frame_resources): Sync with xterm.c.
16150
161512008-02-01 Andreas Schwab <schwab@suse.de>
16152
16153 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
16154 char-table size.
16155
161562008-02-01 Kenichi Handa <handa@m17n.org>
16157
16158 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
16159
161602008-02-01 Kenichi Handa <handa@m17n.org>
16161
16162 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
16163 font_otf_gpos, add font_drive_otf.
16164
16165 * fontset.c (fontset_find_font): Pay attention to font size
16166 specified for a font.
16167 (reorder_font_vector): Check contents of font_def.
16168
16169 * font.c (struct otf_list): Delete it.
16170 (otf_list): Make it a lisp variable.
16171 (otf_open): Use lispy otf_list.
16172 (generate_otf_features): Rename from parse_gsub_gpos_spec.
16173 (check_otf_features): New function.
16174 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
16175 New functions.
16176 (font_drive_otf): New function merging font_otf_gsub and
16177 font_otf_gpos.
16178 (font_open_for_lface): New arg spec. Change argument order.
16179 (font_load_for_face): Adjust for the change of font_open_for_lface.
16180 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
16181 Ffont_otf_gpos.
16182 (syms_of_font): Staticpro otf_list. Delete defsubr of
16183 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
16184
16185 * xfaces.c (set_font_frame_param): Adjust for the change of
16186 font_open_for_lface.
16187
16188 * font.h (font_open_for_lface): Adjust prototype.
16189 (struct font_driver): Delete members otf_gsub and otf_gpos, add
16190 member otf_drive.
16191 (font_otf_gsub, font_otf_gpos): Delete externs.
16192 (font_drive_otf): Extern it.
16193
161942008-02-01 Kenichi Handa <handa@m17n.org>
16195
16196 * font.c (font_at): If the window W is not on a window system,
16197 return Qnil.
16198
16199 * coding.c (produce_chars, encode_coding): Don't call
16200 insert_from_gap if no characters to produce.
16201
162022008-02-01 Kenichi Handa <handa@m17n.org>
16203
16204 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
16205 Fclear_face_cache.
16206
16207 * xfaces.c (face_for_font): Check also face->font==font->font.font.
16208
162092008-02-01 Miles Bader <miles@gnu.org>
16210
16211 * emacs.c (main): Change default value of `enable_font_backend' to 1.
16212 Parse "--disable-font-backend" option.
16213 (standard_args): Add "--disable-font-backend" option.
16214
162152008-02-01 Kenichi Handa <handa@m17n.org>
16216
16217 * fontset.c (fontset_find_font): New function.
16218 (fontset_font): Use fontset_find_font.
16219 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
16220 Register the specified font for all Latin characters.
16221 (new_fontset_from_font): Register the specified font for all Latin
16222 characters.
16223 (dump_fontset): For a realized fontset, include the base fontset
16224 name in the returned vector.
16225
162262008-02-01 Kenichi Handa <handa@m17n.org>
16227
16228 * character.h (CHAR_STRING): Cast C to unsigned on calling
16229 char_string.
16230
16231 * character.c (char_string): Type of arg C changed to unsigned.
16232 Signal an error if C is an invalid character code.
16233
16234 * editfns.c (general_insert_function, Fchar_to_string):
16235 Use CHARACTERP, not INTEGERP.
16236
162372008-02-01 Kenichi Handa <handa@m17n.org>
16238
16239 * character.h (MIN_MULTIBYTE_LEADING_CODE)
16240 (MAX_MULTIBYTE_LEADING_CODE): New macros.
16241
16242 * regex.c (analyse_first): Fix for multibyte characters in "case
16243 charset:" and "case categoryspec:".
16244
162452008-02-01 Andreas Schwab <schwab@suse.de>
16246
16247 * Makefile.in (LIBES): Move standard libraries to the end.
16248
162492008-02-01 Kenichi Handa <handa@m17n.org>
16250
16251 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
16252 nonzero, don't shrink the buffer nextb.
16253
16254 * buffer.h (struct buffer_text): New member inhibit_shrinking.
16255
16256 * coding.c (coding_alloc_by_making_gap): New arg offset.
16257 (alloc_destination): Call coding_alloc_by_making_gap with the arg
16258 offset.
16259 (decode_coding_iso_2022): Update coding->safe_charsets.
16260 (decode_coding_gap): Temporarily set
16261 current_buffer->text->inhibit_shrinking to 1.
16262
162632008-02-01 Kenichi Handa <handa@m17n.org>
16264
16265 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
16266 indexing into elements of s->cmp and s->char2b.
16267
162682008-02-01 Juanma Barranquero <lekktu@gmail.com>
16269
16270 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
16271
162722008-02-01 Kenichi Handa <handa@m17n.org>
16273
16274 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
16275 target_multibyte instead of multibyte.
16276 (re_match_2_internal): Call bcmp_translate with target_multibyte.
16277 (bcmp_translate): Change the argument name from multibyte to
16278 target_multibyte.
16279
162802008-02-01 Kenichi Handa <handa@m17n.org>
16281
16282 These changes are to compile a regexp into a pattern that can be
16283 used both for multibyte and unibyte targets.
16284
16285 * Makefile.in (search.o): Depend on charset.h.
16286
16287 * character.c (multibyte_char_to_unibyte_safe): New function.
16288
16289 * search.c: Include "charset.h".
16290 (compile_pattern_1): Delete argument multibyte. Don't set
16291 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
16292 (compile_pattern): Don't compare cp->buf.target_multibyte.
16293 Compare cp->buf.charset_unibyte.
16294 (compile_pattern): Set cp->buf.target_multibyte.
16295
16296 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
16297
16298 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
16299
16300 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
16301 multibyte. Change callers.
16302 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
16303 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
16304 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
16305 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
16306 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
16307 (regex_compile): Make the compiled pattern usable both for
16308 multibyte and unibyte targets.
16309 (analyse_first): Make the fastmap usable both for multibyte and
16310 unibyte targets.
16311 (TRANSLATE_VIA_MULTIBYTE): Delete.
16312 (re_match_2_internal): Pay attention to the case that the
16313 multibyteness of bufp and target may be different.
16314
163152008-02-01 Kenichi Handa <handa@m17n.org>
16316
16317 * xdisp.c (x_produce_glyphs): When a font is not found, make the
16318 empty box occupy at least one column width.
16319
163202008-02-01 Miles Bader <miles@gnu.org>
16321
16322 * Makefile.in: Remove redundant HAVE_XFT clause.
16323
163242008-02-01 Kenichi Handa <handa@m17n.org>
16325
16326 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
16327
163282008-02-01 Kenichi Handa <handa@m17n.org>
16329
16330 * fontset.c (Finternal_char_font): Fix for the case of POSITION
16331 being nil.
16332
163332008-02-01 Kenichi Handa <handa@m17n.org>
16334
16335 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
16336
163372008-02-01 Kenichi Handa <handa@m17n.org>
16338
16339 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
16340
163412008-02-01 Kenichi Handa <handa@m17n.org>
16342
16343 * search.c (simple_search): Fix previous change.
16344
163452008-02-01 Kenichi Handa <handa@m17n.org>
16346
16347 * xftfont.c (ftfont_font_format): Extern declaration.
16348
16349 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
16350
16351 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
16352 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
16353
16354 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
16355 (ftfont_font_format): Fix previous change.
16356
16357 * font.h (Ffont_xlfd_name): EXFUN it.
16358
16359 * font.c (font_parse_xlfd): Fix the array size of `f'.
16360 (register_font_driver): Use EQ to compare driver->type.
16361
16362 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
16363 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
16364 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
16365
163662008-02-01 Kenichi Handa <handa@m17n.org>
16367
16368 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
16369 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
16370
163712008-02-01 Kenichi Handa <handa@m17n.org>
16372
16373 * xfont.c (xfont_open): Set font->format.
16374
16375 * xftfont.c (xftfont_open): Set font->format.
16376
16377 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
16378 (ftfont_list): Include FC_FONTFORMAT in FcObject.
16379 (ftfont_open): Set font->format.
16380 (ftfont_font_format): New function.
16381
16382 * font.h (struct font): New member format.
16383
16384 * font.c (Qopentype): New variable.
16385 (syms_of_font): Defsym it.
16386 (Fquery_font): Change the format of the last element of the return
16387 value.
16388
163892008-02-01 Kenichi Handa <handa@m17n.org>
16390
16391 * xfns.c (xic_create_xfontset): Try the default fontset name as a
16392 last resort.
16393
163942008-02-01 Kenichi Handa <handa@m17n.org>
16395
16396 * coding.c (detect_coding_charset): Fix detection of multi-byte
16397 charset.
16398
163992008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
16400
16401 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
16402
164032008-02-01 Kenichi Handa <handa@m17n.org>
16404
16405 * xdisp.c (get_next_display_element): Set it->face_id for the
16406 first component of a composition.
16407 (x_produce_glyphs): Check if the font is changed or not for composition.
16408
164092008-02-01 Kenichi Handa <handa@m17n.org>
16410
16411 * fontset.c (Qlatin): New variable.
16412 (syms_of_fontset): Define it as a lisp symbol.
16413 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
16414
164152008-02-01 Kenichi Handa <handa@m17n.org>
16416
16417 * font.c (font_unparse_fcname): Pay attention to the case that
16418 some of font property is a null string.
16419
164202008-02-01 Kenichi Handa <handa@m17n.org>
16421
16422 * term.c: Include "composite.h".
16423 (encode_terminal_code): Output all components of composition.
16424 Check the size of encode_terminal_src.
16425 (produce_glyphs): For composition, call produce_composite_glyph.
16426 (append_composite_glyph, produce_composite_glyph): New functions.
16427
16428 * xdisp.c (x_produce_glyphs): In handling composition, if a font
16429 is not found, get font_info from the current ascii face.
16430
164312008-02-01 Kenichi Handa <handa@m17n.org>
16432
16433 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
16434 buffer-file-name to Qnil before calling insert_from_buffer.
16435
16436 * font.c (font_unparse_fcname): Pay attention to the case that
16437 foundry is a null string.
16438
164392008-02-01 Kenichi Handa <handa@m17n.org>
16440
16441 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
16442
16443 * font.c (Qunicode_sip): New variable.
16444 (syms_of_font): Declare it as a Lisp symbol.
16445
16446 * font.h (Qunicode_sip): Extern it.
16447
164482008-02-01 Kenichi Handa <handa@m17n.org>
16449
16450 * composite.c (get_composition_id): Pay attention to TAB component.
16451
16452 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
16453 TAB. Adjust for the change of s->char2b which always points to
16454 the first element of allocated memory.
16455
16456 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
16457
16458 * xdisp.c (handle_composition_prop): Set it->c to the first
16459 non-TAB component.
16460 (fill_composite_glyph_string): Change argument.
16461 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
16462 (x_produce_glyphs): Fix handling of left/right padding.
16463
164642008-02-01 Kenichi Handa <handa@m17n.org>
16465
16466 * coding.c (detect_coding_system): Fix for handling off
16467 inhibit_iso_escape_detection. Fix for the case that no coding
16468 system is defined for a specific coding category.
16469
164702008-02-01 Kenichi Handa <handa@m17n.org>
16471
16472 * font.c (font_matching_entity): Delete unused local var.
16473
16474 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
16475 opening a font.
16476
16477 * fileio.c (Finsert_file_contents): On recovering a file, assume
16478 Unix-like eol.
16479 (choose_write_coding_system): On auto-saving a file, force
16480 Unix-like eol.
16481
16482 * coding.c (setup_coding_system): Fix setting of
16483 coding->common_flags based on eol_type.
16484 (coding_inherit_eol_type): If PARENT is not nil, be sure to
16485 inherit from it.
16486
164872008-02-01 Kenichi Handa <handa@m17n.org>
16488
16489 * alloc.c (NSTATICS): Increas to 0x600.
16490
164912008-02-01 Kenichi Handa <handa@m17n.org>
16492
16493 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
16494 (ftfont_list): Don't check :name property.
16495 (ftfont_match): New function.
16496 (ftfont_pattern_entity): If the pattern doesn't contain
16497 FC_SPACING, don't assume FC_MONO.
16498
16499 * font.h (struct font_driver): New member `match'.
16500 (font_update_drivers): Adjust prototype.
16501
16502 * font.c (font_parse_fcname, font_parse_name): Don't change :name
16503 property of FONT.
16504 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
16505 them unconditionally.
16506 (font_matching_entity): New function.
16507 (font_open_by_name): Try font_matching_entity if exact match is
16508 not found.
16509 (font_update_drivers): Delete the arg FONT. Return a list of
16510 actually used backends. Don't free faces, font caches here.
16511 Don't store data in frame parameters. Don't call x_set_font.
16512 (Ffont_spec): Store :name property as is.
16513 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
16514 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
16515 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
16516 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
16517 Call font->driver->otf_gsub instead of font_otf_gsub.
16518
16519 * frame.c (x_set_font_backend): Do more works that were done in
16520 font_update_drivers before.
16521
16522 * xfont.c (xfont_match): New function.
16523 (xfont_driver): Set xfont_driver.match to xfont_match.
16524 (xfont_draw): Set font in GC if necessary.
16525
16526 * ftxfont.c (ftxfont_match): New function.
16527 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
16528
16529 * xftfont.c (xftfont_match): New function.
16530 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
16531
165322008-02-01 Kenichi Handa <handa@m17n.org>
16533
16534 * font.h (struct font): New member scalable.
16535 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
16536 (font_otf_gsub): Adjust prototype.
16537
16538 * font.c (font_otf_capability): Fix handling of the default langsys.
16539 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
16540 Check the contents of SPEC.
16541 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
16542 (check_gstring): New function.
16543 (REPLACEMENT_CHARACTER): New macro.
16544 (font_otf_gsub): New arg alternate_subst. Be sure to set all
16545 glyph codes of GSTRING.
16546 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
16547 (font_prepare_composition): Set cmp->glyph_len.
16548 (font_open_entity): Set font->scalable.
16549 (Ffont_get): Handle :otf property.
16550 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
16551 functions.
16552 (Fquery_font): Use font->font.full_name.
16553 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
16554 Sfont_otf_alternates.
16555
16556 * ftfont.c (ftfont_open): Set font->font.full_name and
16557 font->font.name properly. Fix calculation of font->font.height
16558 and font->min_width.
16559
16560 * ftxfont.c (ftxfont_create_gcs): New function.
16561 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
16562 (ftxfont_draw_backgrond): Fix filling region.
16563 (ftxfont_default_fid): New function.
16564 (ftxfont_open): Set xfont->fid to the return value of
16565 ftxfont_default_fid.
16566 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
16567 (ftxfont_done_face): Free only GCs that are created by
16568 ftxfont_create_gcs.
16569 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
16570
16571 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
16572 Clip to src->width, etc (not src->clip_XXX).
16573
16574 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
16575 FontBackend frame parameter.
16576
165772008-02-01 Kenichi Handa <handa@m17n.org>
16578
16579 * font.h (struct font_driver_list): New member `on'.
16580 (Fclear_font_cache): EXFUN it.
16581 (font_update_drivers): Extern it.
16582
16583 * font.c (font_unparse_fcname): Fix typo (swidth->width).
16584 (font_list_entities): Check driver_list->on.
16585 (register_font_driver): Initalize `on' member to 0.
16586 (font_update_drivers): New function.
16587 (Fclear_font_cache): Check driver_list->on.
16588
16589 * frame.h (Qfont_backend): Extern it.
16590 (x_set_font_backend): Extern it.
16591
16592 * frame.c (Qfont_backend): New variable.
16593 (frame_parms): New element for font-backend.
16594 (x_set_font_backend): New function.
16595
16596 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
16597 FontBackend frame parameter.
16598 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
16599 x_set_font_backend.
16600
16601 * xfont.c (xfont_list): Don't try listing by :name property if the
16602 name is not for XLFD.
16603
166042008-02-01 Kenichi Handa <handa@m17n.org>
16605
16606 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
16607 (LGLYPH_SET_TO): New macros.
16608 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
16609 element of G is vector or not.
16610 (font_at): Extern it.
16611
16612 * font.c: Include window.h.
16613 (font_lispy_object): New function.
16614 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
16615 end of valid glyph.
16616 (font_close_object): Fix getting (struct font *).
16617 (font_at): New function.
16618 (Ffont_get): If FONT is a font-object, get entity from it.
16619 (Ffont_make_gstring): Initialize elements of glyphs with nil.
16620 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
16621 range check.
16622 (Ffont_at): New function.
16623 (syms_of_font): Defsubr Sfont_at.
16624
16625 * xdisp.c (it_props): Move the entry for Qauto_composed to just
16626 before the entry for Qcomposition.
16627 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
16628 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
16629 the font in gstring.
16630 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
16631 LGLYPH_FORM (g) to detect the end of valid glyph.
16632 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
16633 we are composing with gstring.
16634
16635 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
16636 Check if adjustment is vector or not.
16637
16638 * Makefile.in (font.o): Make it depends on window.h.
16639
166402008-02-01 Kenichi Handa <handa@m17n.org>
16641
16642 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
16643 adjustment is vector or not.
16644
166452008-02-01 Miles Bader <miles@gnu.org>
16646
16647 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
16648
166492008-02-01 Kenichi Handa <handa@m17n.org>
16650
16651 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
16652 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
16653 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
16654
16655 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
16656 (DEVICE_DELTA): Fix typo.
16657 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
16658 LGLYPH format.
16659
16660 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
16661 the change of LGLYPH format.
16662
166632008-02-01 Kenichi Handa <handa@m17n.org>
16664
16665 * ftfont.c (ftfont_list): Fix typo.
16666 (ftfont_build_basic_charsets): Don't include letters with diacritics.
16667
166682008-02-01 Jan Djärv <jan.h.d@swipnet.se>
16669
16670 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
16671
16672 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
16673 xftface_info is non-NULL.
16674
166752008-02-01 Jan Djärv <jan.h.d@swipnet.se>
16676
16677 * ftfont.c (ftfont_list): Move misplaced #endif.
16678
166792008-02-01 Kenichi Handa <handa@m17n.org>
16680
16681 * ftfont.c (ftfont_list): Pay attention to the case that
16682 FC_CAPABILITY is not defined.
16683
166842008-02-01 Kenichi Handa <handa@m17n.org>
16685
16686 * xftfont.c (xftfont_open): Set charset related members to -1.
16687
16688 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
16689 QCname.
16690 (ftfont_open): Set charset related members to -1.
16691
16692 * fontset.c (Votf_script_alist): New variable.
16693 (syms_of_fontset): Initialize it.
16694 (fontset_font): Delete unused variable.
16695
16696 * fontset.h (Votf_script_alist): Extern it.
16697
16698 * font.c (font_find_for_lface): Optimize code.
16699
16700 * font.h (font_close_object, font_merge_old_spec): Extern them.
16701
167022008-02-01 Kenichi Handa <handa@m17n.org>
16703
16704 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
16705 (syms_of_font): Initialize them.
16706 (font_pixel_size): Allow float value in dpi.
16707 (font_prop_validate_type): Delete.
16708 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
16709 Change caller.
16710 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
16711 (font_prop_validate_extra): Delete.
16712 (font_prop_validate_spacing): New function.
16713 (font_property_table): Add elements for all known properties.
16714 (get_font_prop_index): Rename from check_font_prop_name. New
16715 argument FROM. Change caller.
16716 (font_prop_validate): Validate all known properties.
16717 (font_put_extra): Delete argument force. Change caller.
16718 (font_expand_wildcards): Make it static. Fix the way of shrinking
16719 the possible range.
16720 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
16721 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
16722 Change caller.
16723 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
16724 (font_parse_fcname): Delete argument merge. Fix parsing of point
16725 size. Don't validate properties values here. Change caller.
16726 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
16727 (font_open_by_name): Delete unused variable.
16728 (Ffont_spec): Likewise. Validate property values.
16729 (Ffont_match_p): New function.
16730
16731 * font.h (QCscalable): Extern it.
16732 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
16733
16734 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
16735
16736 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
16737 (xfont_list_pattern): New function.
16738 (xfont_list): Use xfont_list_pattern.
16739
167402008-02-01 Kenichi Handa <handa@m17n.org>
16741
16742 * font.h (Flist_fonts): EXFUN it.
16743
167442008-02-01 Jason Rumney <jasonr@gnu.org>
16745
16746 * w32term.c (w32_initialize): Add back smoothing_type and
16747 smoothing_enabled definitions.
16748
167492008-02-01 Kenichi Handa <handa@m17n.org>
16750
16751 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
16752 s->face->font on determining underline position.
16753
167542008-02-01 Kenichi Handa <handa@m17n.org>
16755
16756 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
16757 (font_has_char): Accept font-object too.
16758 (font_find_for_lface): Try at first with a size specified in face.
16759
167602008-02-01 Kenichi Handa <handa@m17n.org>
16761
16762 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
16763 font_open_by_name.
16764
167652008-02-01 Kenichi Handa <handa@m17n.org>
16766
16767 * font.h (QCspacing, QCdpi): Extern them.
16768 (enum font_spacing): New enum.
16769 (FONT_PIXEL_SIZE_QUANTUM): New macro.
16770
16771 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
16772 (QCspacing, QCdpi): New variables.
16773 (syms_of_font): Initialize them.
16774 (font_pixel_size): New function.
16775 (font_put_extra): New function.
16776 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
16777 in FONT_EXTRA.
16778 (font_parse_fcname): Handle enumerated values (e.g. bold).
16779 Fix handling font size. Add QCname property that contains only
16780 unknown properties.
16781 (font_score): Change argument. Change caller. Pay attention to
16782 FONT_PIXEL_SIZE_QUANTUM.
16783 (font_sort_entites, font_list_entities, font_find_for_lface)
16784 (font_open_for_lface, font_open_by_name): Fix handling of font size.
16785 (Ffont_spec): Add QCname property that contains only unknown properties.
16786
16787 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
16788 include weight in listing pattern, instead check weight of each
16789 listed font. Don't include scalable in pattern. Pay attention to
16790 FONT_PIXEL_SIZE_QUANTUM.
16791
167922008-02-01 Kenichi Handa <handa@m17n.org>
16793
16794 * font.c (font_parse_fcname): Fix parsing of point-size.
16795 (font_unparse_fcname): Produce symbolic names for style properties.
16796 (font_list_entities): Handle float size correctly.
16797 (font_open_by_name): Prefer `normal' property values if the name
16798 doesn't specify them.
16799
16800 * fontset.c (Finternal_char_font): Use font_get_name, not
16801 Ffont_xlfd_name.
16802
16803 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
16804 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
16805 pattern. Don't force scalable.
16806
16807 * xftfont.c (xftfont_open): For generating a name, start from
16808 96-byte buffer.
16809
168102008-02-01 Jan Djärv <jan.h.d@swipnet.se>
16811
16812 * frame.h (x_new_fontset2): Fix prototype.
16813
168142008-02-01 Kenichi Handa <handa@m17n.org>
16815
16816 * font.h (struct font_driver): Delete member parse_name.
16817 (font_match_p, font_get_spec, font_parse_fcname)
16818 (font_unparse_fcname): Extern them.
16819 (font_get_name): Adjust prototype.
16820
16821 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
16822 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
16823 (font_expand_wildcards): Fix handling ENCODING field. Avoid
16824 unnecessary checks for weight, slant, and swidth.
16825 (font_parse_fcname): New function.
16826 (font_unparse_fcname): New function.
16827 (font_parse_name): New function.
16828 (font_match_p): New function.
16829 (font_get_name): Change return value to Lisp string.
16830 (font_get_spec): New function.
16831 (Qunspecified, Qignore_defface): Don't extern them.
16832 (font_find_for_lface): Assume that LFACE is fully specified.
16833 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
16834 object, use it for FACE.
16835 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
16836 driver->parse_name.
16837 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
16838
16839 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
16840 prototype.
16841
16842 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
16843 argument F. Don't call Fnew_fontset. Instead, directly call
16844 make_fontset.
16845
16846 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
16847
16848 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
16849 of x_new_fontset2.
16850
16851 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
16852 (Qsans__serif): New variables.
16853 (ftfont_generic_family_list): New variable.
16854 (syms_of_ftfont): Initialize the above variables.
16855 (ftfont_pattern_entity): Delete argument NAME.
16856 (ftfont_list_generic_family): New function.
16857 (ftfont_parse_name): Delete this function.
16858 (ftfont_list): Try generic family only when FcFontList found no font.
16859 (ftfont_list_family): Fix args to FcObjectSetBuild.
16860
16861 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
16862 object in attrs[LFACE_FONT_INDEX].
16863 (set_lface_from_font_name): Cancel all changes for font-backend.
16864 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
16865 function.
16866 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
16867 font object in QCfont attribute.
16868 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
16869 (realize_default_face) [USE_FONT_BACKEND]: Call
16870 set_lface_from_font_and_fontset.
16871
16872 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
16873 "fixed", and signal error here if no suitable font was found.
16874
16875 * xfont.c (xfont_parse_name): Delete this function.
16876
16877 * xftfont.c (xftfont_open): Change coding style of error
16878 handling. Generate fontconfig's fontname pattern.
16879
16880 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
16881 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
16882
16883 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
16884 Both args FONTSET and FONT_OBJECT must be existing ones.
16885
168862008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16887
16888 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
16889
168902008-02-01 Kenichi Handa <handa@m17n.org>
16891
16892 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
16893
16894 * font.h (struct font): Fix typo.
16895
16896 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
16897 XLFD_XXX_INDEX.
16898 (enum xlfd_field_mask): New enum.
16899 (intern_font_field): Changed argument. Change caller. If digits
16900 are followed by non-digits, return a symbol.
16901 (font_expand_wildcards): New function.
16902 (font_parse_xlfd): Fix wildcard handling.
16903 (Ffont_spec): If :name is specified, reflect the info in the other
16904 properties.
16905
16906 * ftfont.c (ftfont_pattern_entity): Fix typo.
16907 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
16908 locale.
16909
169102008-02-01 Kenichi Handa <handa@m17n.org>
16911
16912 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
16913
16914 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
16915 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
16916 registry doesn't specify encoding part.
16917 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
16918 (font_open_by_name): At first try parsing the name.
16919 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
16920 as Lisp symbols.
16921
16922 * fontset.c (reorder_font_vector): Pay attention to the case that
16923 the 3rd element of font_def is nil.
16924 (fontset_font): For the default fontset, append one more fontset
16925 elements for a script-based font specification. Don't add script
16926 attribute on finding a font.
16927 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
16928 font name.
16929 (fontset_ascii_font): If a font can't be opened, return nil.
16930
16931 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
16932 (ftfont_pattern_entity): New function.
16933 (ftfont_get_cache): Assume that freetype_font_cache is already
16934 initialized.
16935 (ftfont_list): Handle the case that a file is specified in font
16936 name. Use ftfont_pattern_entity to generate entities.
16937 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
16938 (syms_of_ftfont): Initialize freetype_font_cache.
16939
16940 * xftfont.c (xftfont_open): Make the font name fontconfig's
16941 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
16942 (xftfont_close): Free font->font.name if not NULL.
16943
16944 * xfont.c (xfont_list): If script is specified for a font, return
16945 null_vector.
16946 (xfont_list_family): Declare argument type.
16947
16948 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
16949 name, set LFACE_FONT (lface) to nil.
16950
16951 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
16952 return Qnil.
16953
169542008-02-01 Kenichi Handa <handa@m17n.org>
16955
16956 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
16957 (standard_args): Add "-enable-font-backend".
16958
169592008-02-01 Kenichi Handa <handa@m17n.org>
16960
16961 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
16962 (struct xftdraw_list, xftdraw_list): Delete them.
16963 (register_xftdraw, check_xftdraw): Delete them.
16964 (xftfont_prepare_face): Don't call register_xftdraw.
16965 (xftfont_done_face): Don't call check_xftdraw.
16966 (xftfont_draw): Get background color only when with_background is
16967 nonzero.
16968
16969 * xfont.c (xfont_encode_char): Fix calculation of char2b.
16970
169712008-02-01 Kenichi Handa <handa@m17n.org>
16972
16973 These changes are for the new font handling codes.
16974
16975 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
16976 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
16977 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
16978 (FONTSRC, FONTOBJ): New variables.
16979 (obj): Add $(FONTOBJ).
16980 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
16981 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
16982 @LIBOTF_LIBS@.
16983 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
16984 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
16985
16986 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
16987
16988 * character.h (Vscript_representative_chars): Extern it.
16989
16990 * character.c (Vscript_representative_chars): New variable.
16991 (syms_of_character): Declare it as a Lisp variable.
16992
16993 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
16994 enable_font_backend is nonzero, accept the composition method
16995 COMPOSITION_WITH_GLYPH_STRING.
16996
16997 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
16998 enumeration COMPOSITION_WITH_GLYPH_STRING.
16999
17000 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
17001 members clip_x, clip_y, clip_width, and clip_height.
17002 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
17003
17004 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
17005 --enable-font-backend. Call syms_of_font.
17006
17007 * fns.c (assoc_no_quit): New function.
17008
17009 * fontset.h (FONT_INFO_FROM_FACE): New macro.
17010 (face_for_font, new_fontset_from_font)
17011 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
17012
17013 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
17014 (fontset_font, fontset_ascii, face_for_char)
17015 (make_fontset_for_ascii_face, Ffont_info)
17016 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
17017 is nonzero, use font-backend mechanism.
17018 (find_font_encoding): Make it non-static.
17019 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
17020 New functions.
17021
17022 * frame.h (struct frame): New members resx and resy.
17023 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
17024 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
17025
17026 * frame.c [USE_FONT_BACKEND]: Include "font.h".
17027 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
17028
17029 * lisp.h (assoc_no_quit): Extern it.
17030
17031 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
17032 Through out the file, use FONT_INFO_FROM_FACE instead of
17033 FONT_INFO_FROM_ID, use get_per_char_metric instead of
17034 rif->per_char_metric.
17035 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
17036 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
17037 (get_glyph_face_and_encoding, fill_composite_glyph_string)
17038 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
17039 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
17040 nonzero, use font-backend mechanism.
17041 (get_per_char_metric): New function.
17042
17043 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
17044 (set_lface_from_font_name)
17045 (set_font_frame_param, free_realized_face)
17046 (prepare_face_for_display, clear_face_gcs)
17047 (Finternal_set_font_selection_order, realize_x_face)
17048 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
17049 font-backend mechanism.
17050 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
17051 (load_face_font) [USE_FONT_BACKEND]: Abort.
17052 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
17053 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
17054
17055 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
17056 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
17057 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
17058 nonzero, register all available font drivers. Call
17059 x_default_font_parameter for deciding a font.
17060 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
17061
17062 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
17063 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
17064 (x_set_glyph_string_clipping_exactly)
17065 (x_compute_glyph_string_overhangs)
17066 (x_draw_glyph_string_foreground)
17067 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
17068 (x_free_frame_resources) [USE_FONT_BACKEND]: If
17069 enable_font_backend is nonzero, use font-backend mechanism.
17070 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
17071
170722008-02-01 Kenichi Handa <handa@m17n.org>
17073
17074 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
17075 system_eol_type.
17076 (syms_of_coding): Initialize system_eol_type.
17077
17078 * process.c (Fset_process_coding_system): Inherit system's eol
17079 format if necessary.
17080
170812008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17082
17083 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
17084
170852008-02-01 Kenichi Handa <handa@m17n.org>
17086
17087 * coding.c (decode_eol): Pay attention to buffer relocation in
17088 del_range_2.
17089 (decode_coding): Call decode_eol before restoring undo_list.
17090
170912008-02-01 Kenichi Handa <handa@m17n.org>
17092
17093 * charset.c (Fdefine_charset_internal): Fix setting of
17094 emacs_mule_bytes.
17095
170962008-02-01 Kenichi Handa <handa@m17n.org>
17097
17098 * keyboard.c (read_char): Check if C is a character or not before
17099 looking up Vkeyboard_translate_table.
17100
171012008-02-01 Kenichi Handa <handa@m17n.org>
17102
17103 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
17104 condition to terminate the loop.
17105
171062008-02-01 Kenichi Handa <handa@m17n.org>
17107
17108 * coding.c (produce_composition): Compare charbuf[i] instead of
17109 args[i] against 0.
17110 (Fterminal_coding_system): Use EQ to compare Lisp objects.
17111
171122008-02-01 Kenichi Handa <handa@m17n.org>
17113
17114 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
17115 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
17116 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
17117 detect_coding.
17118 (emacs_mule_char): Handle old style (Emacs 20) component character
17119 of a composition.
17120 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
17121 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
17122 composition rule.
17123 (decode_coding_emacs_mule): Handle invalid bytes correctly.
17124
171252008-02-01 Kenichi Handa <handa@m17n.org>
17126
17127 * coding.c (encode_coding_ccl): Allocate destination dynamically
17128 when necessary.
17129
171302008-02-01 Kenichi Handa <handa@m17n.org>
17131
17132 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
17133 the loop. When quitted, show a proper error message.
17134
171352008-02-01 Kenichi Handa <handa@m17n.org>
17136
17137 * xterm.c (x_set_glyph_string_clipping_exactly): Set
17138 src->clip_head and src->clip_tail temporarily instead of src->hl.
17139
17140 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
17141 character sequence.
17142 (Fccl_execute_on_string): Use ASET, not XSET.
17143
171442008-02-01 Kenichi Handa <handa@m17n.org>
17145
17146 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
17147
171482008-02-01 Kenichi Handa <handa@m17n.org>
17149
17150 * coding.c (decode_coding): Fix the condition of terminating the
17151 decoding loop.
17152
171532008-02-01 Kenichi Handa <handa@m17n.org>
17154
17155 * data.c (Faset): On setting a character bigger than 255 in a
17156 unibyte string, signal an error instead of make the string multibyte.
17157
171582008-02-01 Kenichi Handa <handa@m17n.org>
17159
17160 * charset.c (map_charset_chars): Fix for ascii-compatible charset
17161 made by a mapping table.
17162
171632008-02-01 Kenichi Handa <handa@m17n.org>
17164
17165 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
17166 not.
17167 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
17168 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
17169
17170 * xterm.c (x_draw_composite_glyph_string_foreground): Check
17171 s->face is NULL or not.
17172
171732008-02-01 Kenichi Handa <handa@m17n.org>
17174
17175 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
17176 (x_draw_glyph_string): Fix drawing of right_overhang and
17177 left_overhang around/on cursor.
17178
17179 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
17180
171812008-02-01 Kenichi Handa <handa@m17n.org>
17182
17183 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
17184
171852008-02-01 Kenichi Handa <handa@m17n.org>
17186
17187 * coding.c (Fdefine_coding_system_internal)
17188 (Fdefine_coding_system_alias): Avoid a duplicated element in
17189 Vcoding_system_alist.
17190
171912008-02-01 Kenichi Handa <handa@m17n.org>
17192
17193 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
17194
17195 * coding.c (Qcoding_system_define_form): New variable.
17196 (syms_of_coding): Intern and staticpro it.
17197 (Fcoding_system_p): Check Qcoding_system_define_form.
17198 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
17199
17200 * coding.h (CODING_SYSTEM_P): If ID is not available, call
17201 Fcoding_system_p.
17202 (CHECK_CODING_SYSTEM): If ID is not available, call
17203 Fcheck_coding_system.
17204 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
17205 Try also Fcheck_coding_system.
17206
172072008-02-01 Kenichi Handa <handa@m17n.org>
17208
17209 * coding.c (code_conversion_restore): GCPRO arg.
17210
172112008-02-01 Kenichi Handa <handa@m17n.org>
17212
17213 * character.c (lisp_string_width): Check multibyteness of STRING.
17214
172152008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17216
17217 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
17218 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
17219 (decode_mac_font_name): Use decode_coding_c_string instead of
17220 decode_coding.
17221 (x_load_font): Initialize fontp->fontset to -1. Set
17222 fontp->encoding_type.
17223
172242008-02-01 Kenichi Handa <handa@m17n.org>
17225
17226 * search.c (search_buffer): Give up BM search on case-fold-search
17227 if one of a target character has a case-equivalence of different
17228 byte length even if that target charcter is an ASCII.
17229 (simple_search): Fix calculation of byte length of matched text.
17230 (boyer_moore): Fix handling of case-equivalent multibyte characters.
17231
172322008-02-01 Kenichi Handa <handa@m17n.org>
17233
17234 * coding.c (decode_coding): Fix handling of invalid bytes.
17235
172362008-02-01 Kenichi Handa <handa@m17n.org>
17237
17238 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
17239 Unicode characters.
17240
172412008-02-01 Kenichi Handa <handa@m17n.org>
17242
17243 * coding.c (encode_coding_object): If a pre-write-conversion
17244 function makes a new buffer, kill it.
17245
172462008-02-01 Kenichi Handa <handa@m17n.org>
17247
17248 * coding.c (QCascii_compatible_p): New variable.
17249 (syms_of_coding): Initialize it.
17250 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
17251 calling string_char.
17252 (record_conversion_result): Add `default:' case.
17253 (coding_charset_list): Delete unused variable `coding_type'.
17254 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
17255 property in the plist of the coding system.
17256 (Fcoding_system_put): Check QCascii_compatible_p.
17257
172582008-02-01 Miles Bader <miles@gnu.org>
17259
17260 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
17261 removed calculation of frame `f', as it's now used.
17262
172632008-02-01 Kenichi Handa <handa@m17n.org>
17264
17265 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
17266 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
17267 (UNIDATA): New variable.
17268 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
17269 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
17270 $(RUN_TEMACS) unconditionally.
17271
172722008-02-01 Kenichi Handa <handa@m17n.org>
17273
17274 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
17275 (admindir): New variable.
17276 ($(lispsource)international/charprop.el): New target.
17277
172782008-02-01 Miles Bader <miles@gnu.org>
17279
17280 * character.c (chars-in-region): Remove obsolete function.
17281 (syms_of_character): Remove its initialization.
17282
172832008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
17284
17285 * w32select.c (validate_coding_system)
17286 (setup_windows_coding_system): New functions.
17287 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
17288 setup_windows_coding_system.
17289 (setup_config, Fw32_get_clipboard_data): Use
17290 validate_coding_system.
17291 (Fx_selection_exists): Move call to setup_config to a place
17292 where signals are allowed.
17293
17294 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
17295 (Fcheck_coding_system): Add declarations.
17296
172972008-02-01 Kenichi Handa <handa@m17n.org>
17298
17299 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
17300
173012008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17302
17303 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
17304 string as the second argument for x_new_fontset.
17305
173062008-02-01 Kenichi Handa <handa@m17n.org>
17307
17308 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
17309 (encode_coding_object): Use safe_call instead of call2.
17310
173112008-02-01 Kenichi Handa <handa@m17n.org>
17312
17313 * fontset.c (Fset_fontset_font): Check family element of a given vector.
17314
17315 * Makefile.in (lisp): Include charprop.el.
17316
173172008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17318
17319 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
17320 Not sure if it's unnecessary.
17321
173222008-02-01 Steven Tamm <steventamm@mac.com>
17323
17324 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
17325 some possibly unnecessary fontset checking code that crashed
17326 when creating a new frame.
17327
173282008-02-01 Kenichi Handa <handa@m17n.org>
17329
17330 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
17331 lookup_face.
17332
17333 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
17334
17335 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
17336
173372008-02-01 Kenichi Handa <handa@m17n.org>
17338
17339 * coding.c: Cancel the change done in HEAD on 2008-02-01.
17340 (coding_charset_list): New function.
17341
17342 * coding.h (coding_charset_list): Extern it.
17343
173442008-02-01 Kenichi Handa <handa@m17n.org>
17345
17346 * fontset.c (Fset_fontset_font): Call find_font_encoding with
17347 concatenation of family and registry.
17348
173492008-02-01 Kenichi Handa <handa@m17n.org>
17350
17351 * character.h (BYTE8_STRING): Fix typo.
17352
17353 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
17354 string to multibyte (sync to HEAD).
17355
17356 * casefiddle.c (casify_region): Handle changes in byte-length
17357 using replace_range_2 (sync to HEAD).
17358
173592008-02-01 Andreas Schwab <schwab@suse.de>
17360
17361 * chartab.c (map_char_table): GCPRO table and arg.
17362
173632008-02-01 Kenichi Handa <handa@m17n.org>
17364
17365 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
17366 already at limit.
17367
173682008-02-01 Kenichi Handa <handa@m17n.org>
17369
17370 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
17371 instead of fast_c_string_match_ignore_case.
17372 (find_font_encoding): Change argument to Lisp_Object. Use
17373 fast_string_match_ignore_case instead of
17374 fast_c_string_match_ignore_case. Change caller.
17375
173762008-02-01 Kenichi Handa <handa@m17n.org>
17377
17378 * xdisp.c (get_next_display_element): In unibyte case, decide to
17379 display in octal form by checking a character by
17380 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
17381
17382 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
17383
17384 * character.c (unibyte_has_multibyte_table): New variable.
17385
17386 * character.h (unibyte_has_multibyte_table): Extern it.
17387 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
17388
173892008-02-01 Kenichi Handa <handa@m17n.org>
17390
17391 * coding.c (encode_coding_iso_2022): Fix handling of charset
17392 annotation.
17393
173942008-02-01 Kenichi Handa <handa@m17n.org>
17395
17396 * coding.c (setup_coding_system): If coding_system is nil, use
17397 Qundecided.
17398 (Fterminal_coding_system): Return nil if terminal coding system is
17399 `undecided'.
17400 (syms_of_coding): Define coding-system `undecided' here. Setup
17401 terminal_coding as `undecided'.
17402
174032008-02-01 Kenichi Handa <handa@m17n.org>
17404
17405 * xdisp.c (message_dolog, set_message_1): Call
17406 unibyte_char_to_multibyte with arg type int.
17407
17408 * lread.c (read1): Fix reading of a char-table.
17409
17410 * print.c (print_object): Include sub char-table in circularities
17411 detection.
17412
174132008-02-01 Kenichi Handa <handa@m17n.org>
17414
17415 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
17416 Append the found sequences in car of ARGS instead of prepending.
17417
174182008-02-01 Kenichi Handa <handa@m17n.org>
17419
17420 * fileio.c (report_file_error): Make a unibyte string from
17421 strerror (errorno).
17422 (Fsubstitute_in_file_name): Fix the arg to
17423 unibyte_char_to_multibyte. It is evaluated twice.
17424
174252008-02-01 Kenichi Handa <handa@m17n.org>
17426
17427 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
17428
174292008-02-01 Kenichi Handa <handa@m17n.org>
17430
17431 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
17432 BOM is not found.
17433 (detect_coding, detect_coding_system): Optimization for ISO-2022
17434 when no 8-bit data is found.
17435
174362008-02-01 Jason Rumney <jasonr@gnu.org>
17437
17438 * w32fns.c (x_to_w32_font): Update to use new coding struct.
17439
174402008-02-01 Kenichi Handa <handa@m17n.org>
17441
17442 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
17443 CHARS.
17444
174452008-02-01 Steven Tamm <steventamm@mac.com>
17446
17447 * macterm.c (mac_encode_char): Add charset argument and update
17448 to use encoding_type.
17449 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
17450 switch to pure fontset.
17451 (decode_mac_font_name): Temporarily remove decoding.
17452 (x_font_name_to_mac_font_name): Temporarily remove encoding.
17453 (x_load_font): Temporarily remove encoding.
17454
174552008-02-01 Kenichi Handa <handa@m17n.org>
17456
17457 * xfaces.c (Fface_font): If frame is not on a window system,
17458 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
17459 refer to face->font.
17460 (split_font_name_into_vector, build_font_name_from_vector)
17461 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
17462 when HAVE_WINDOW_SYSTEM is defined.
17463
174642008-02-01 Kenichi Handa <handa@m17n.org>
17465
17466 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
17467 (x_produce_glyphs): Fix setting of members of cmp in case
17468 cmp->glyph_len is zero.
17469
17470 * fontset.c (Fset_fontset_font): Fix docstring.
17471 (Ffontset_info): Make it backward compatible. New arg ALL.
17472
174732008-02-01 Kim F. Storm <storm@cua.dk>
17474
17475 * process.c (read_process_output): Grow decoding_buf when needed;
17476 this could cause a crash in allocate_string and compact_small_strings.
17477
174782008-02-01 Kenichi Handa <handa@m17n.org>
17479
17480 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
17481
174822008-02-01 Kenichi Handa <handa@m17n.org>
17483
17484 * coding.c (setup_coding_system): Set coding->common_flags
17485 correctly for raw-text.
17486 (consume_chars): On encoding unibyte text by raw-text, don't check
17487 multibyte form.
17488 (encode_coding): On encoding by raw-text, never use translation tables.
17489
17490 * fileio.c (e_write): Short cut for the case of no encoding.
17491
174922008-02-01 Kenichi Handa <handa@m17n.org>
17493
17494 * coding.c (detect_coding, detect_coding_system): Delete unused
17495 variables.
17496
174972008-02-01 Kenichi Handa <handa@m17n.org>
17498
17499 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
17500 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
17501
175022008-02-01 Kenichi Handa <handa@m17n.org>
17503
17504 * coding.c (Ffind_coding_systems_region_internal): Include
17505 raw-text and no-conversion in the result.
17506
175072008-02-01 Kenichi Handa <handa@m17n.org>
17508
17509 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
17510 (load_font_get_repertory): Delete unnecessary check of ENCODING of
17511 FONT_DEF.
17512 (font_def_arg, add_arg, from_arg, to_arg): New args.
17513 (set_fontset_font): Change argument.
17514 (Fset_fontset_font): Fix for the case that TARGET is a script
17515 name and charset name.
17516 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
17517
175182008-02-01 Kenichi Handa <handa@m17n.org>
17519
17520 * fontset.c (fontset_font): Rename from fontset_face. Change return
17521 value.
17522 (face_suitable_for_char_p, face_for_char): Adjust for the change
17523 of fontset_font.
17524 (make_fontset_for_ascii_face): Fix setting of the fontset element
17525 for ASCII.
17526 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
17527 to get a font name.
17528 (Ffontset_info): Adjust for the change of fontset_font.
17529
17530 * coding.c (emacs_mule_char): Check invalid code more rigidly.
17531
17532 * character.h (LEADING_CODE_LATIN_1_MIN)
17533 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
17534
175352008-02-01 Kenichi Handa <handa@m17n.org>
17536
17537 * editfns.c (check_translation): New function.
17538 (Ftranslate_region_internal): Handle M:N mapping.
17539
175402008-02-01 Kenichi Handa <handa@m17n.org>
17541
17542 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
17543
175442008-02-01 Kenichi Handa <handa@m17n.org>
17545
17546 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
17547 goto invalid_code.
17548 (decode_coding_iso_2022): Fix handling of invalid designation.
17549
17550 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
17551 after calling code_conversion_save.
17552
175532008-02-01 Kenichi Handa <handa@m17n.org>
17554
17555 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
17556
17557 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
17558
17559 * fontset.c: Include "intervals.h".
17560 (fontset_face): Fix comparing of Lisp_Objects.
17561 (free_face_fontset, new_fontset_from_font_name): Fix
17562 Lisp_Object/int mixup.
17563
17564 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
17565
17566 * coding.c: Add many prototypes for static functions.
17567 (get_translation_table): Allow max_lookup to be NULL.
17568 (decode_coding, Ffind_coding_systems_region_internal)
17569 (Funencodable_char_position, Fcheck_coding_systems_region): Call
17570 get_translation_table with max_lookup NULL.
17571
175722008-02-01 Kenichi Handa <handa@m17n.org>
17573
17574 * coding.c (get_translation_table): Declare it as Lisp_Object.
17575 (LOOKUP_TRANSLATION_TABLE): New macro.
17576 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
17577 instead of CHAR_TABLE_REF.
17578
175792008-02-01 Kenichi Handa <handa@m17n.org>
17580
17581 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
17582 annotation data format.
17583 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
17584 Change arguments FROM and TO to single argument NCHARS. Change caller.
17585 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
17586 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
17587 (decode_coding_ccl, decode_coding_charset): Pay attention to
17588 coding->charbuf_used.
17589 (get_translation): New function.
17590 (produce_chars): New arguments translation_table and last_block.
17591 Translate characters here. Return number of carryover chars.
17592 Change caller.
17593 (produce_composition): New argument pos. Change caller.
17594 Adjust for the change of annotation data format.
17595 (produce_charset, produce_annotation): Likewise.
17596 (decode_coding, encode_coding): Don't call translate_chars.
17597 (consume_chars): New arg translation_table. Change caller.
17598 (translate_chars): Delete.
17599 (syms_of_coding): Make translation-table's number of extra slots 2.
17600
176012008-02-01 Kenichi Handa <handa@m17n.org>
17602
17603 * search.c (simple_search): Fix setting this_pos_byte in backward
17604 search.
17605
17606 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
17607 byte sequence.
17608 (detect_coding_ccl): Fix setting of the variable valids.
17609
176102008-02-01 Kenichi Handa <handa@m17n.org>
17611
17612 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
17613
17614 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
17615
17616 * editfns.c (Ftranslate_region_internal): Rename from
17617 Ftranslate_region. Accept a char-table in TABLE.
17618 (syms_of_editfns): Defsubr Stranslate_region_internal.
17619
17620 * xfaces.c (set_lface_from_font_name): If a font is specified for
17621 a frame, generate a fontset from the font.
17622 (build_scalable_font_name): If the scalable font is requested for
17623 a specific size, don't change that size.
17624 (try_font_list): Try a scalable font also in the case that a
17625 pattern string is specified.
17626
176272008-02-01 Kenichi Handa <handa@m17n.org>
17628
17629 * xfaces.c (Fface_font): New optional arg CHARACTER.
17630
176312008-02-01 Kenichi Handa <handa@m17n.org>
17632
17633 * charset.h (CHARSET_OFFSET): New macro.
17634
176352008-02-01 Kenichi Handa <handa@m17n.org>
17636
17637 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
17638
17639 * fontset.c (fontset_face): Handle the case that repertory is a
17640 char-table.
17641 (find_font_encoding): Return nil for unknown encoding.
17642 (Fset_fontset_font): Ignore a font of unknown encoding.
17643
176442008-02-01 Kenichi Handa <handa@m17n.org>
17645
17646 * keymap.c (describe_vector): Handle default value of a char table.
17647
17648 * fontset.c (fontset_face): Handle fallback fonts correctly.
17649 (Ffontset_info): Return infomation about fallback fonts.
17650
176512008-02-01 Kenichi Handa <handa@m17n.org>
17652
17653 * fontset.c (FONTSET_DEFAULT): New macro.
17654 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
17655 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
17656 the case that it is nil.
17657 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
17658 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
17659
17660 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
17661 subset or superset.
17662
176632008-02-01 Kenichi Handa <handa@m17n.org>
17664
17665 * emacs.c (main): Call init_charset after syms_of_XXX.
17666
17667 * charset.c (Vcharset_map_directory): Delete.
17668 (Vcharset_map_path): New variable.
17669 (load_charset_map_from_file): Use Vcharset_map_path instead.
17670 (init_charset): Initialize Vcharset_map_path.
17671 (syms_of_charset): Delete declaration of "charset-map-directory",
17672 add declaration of "charset-map-path".
17673
176742008-02-01 Kenichi Handa <handa@m17n.org>
17675
17676 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
17677 ASCII only string.
17678
17679 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
17680
17681 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
17682 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
17683
176842008-02-01 Kenichi Handa <handa@m17n.org>
17685
17686 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
17687
17688 * coding.c (QCmnemonic, QCdefalut_char)
17689 (QCdecode_translation_table, QCencode_translation_table)
17690 (QCpost_read_conversion, QCpre_write_conversion): New variables.
17691 (get_translation_table): Return a list of translation tables if
17692 necessary.
17693 (decode_coding): Call get_translation_table with ENCODEP 0.
17694 (char_encodable_p): If translation_table is non-nil, always call
17695 translate_char.
17696 (Fdefine_coding_system_internal): Accept list of translation
17697 tables as :encode-translation-table and :decode-translation-table.
17698 (Fcoding_system_put): New function.
17699 (syms_of_coding): Declare new symbols. Defsubr
17700 Scoding_system_put.
17701 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
17702 typically JISX0212.
17703
17704 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
17705 when the charset is superset type.
17706
17707 * character.c (translate_char): Accept list of translation tables.
17708
177092008-02-01 Kenichi Handa <handa@m17n.org>
17710
17711 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
17712 (CODING_ATTR_TRANS_TBL): New macro.
17713
17714 * coding.c (get_translation_table): New function.
17715 (translate_chars): Fix the bug of skipping annotation data.
17716 (decode_coding, encode_coding): Utilize get_translation_table.
17717 (char_encodable_p, Funencodable_char_position): Translate char if
17718 necessary.
17719 (Ffind_coding_systems_region_internal)
17720 (Fcheck_coding_systems_region): Setup translation table for encode
17721 in a coding system attribute vector in advance.
17722 (Fdefine_coding_system_internal): Allow a symbol as translation
17723 table. For shift-jis type coding system, allow 4th charset.
17724
177252008-02-01 Kenichi Handa <handa@m17n.org>
17726
17727 * coding.c (decode_coding_sjis): Check the first byte rigidly.
17728
17729 * xdisp.c (get_next_display_element): Pass -1 as POS to
17730 FACE_FOR_CHAR if displaying a C-string.
17731
177322008-02-01 Kenichi Handa <handa@m17n.org>
17733
17734 * composite.c (get_composition_id): Handle xoff and yoff in a
17735 composition rule.
17736
17737 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
17738 (struct composition): New member lbearing and rbearing.
17739
17740 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
17741 (x_get_glyph_overhangs): Handle a composition glyph.
17742 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
17743
17744 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
17745 composition glyph.
17746
177472008-02-01 Kenichi Handa <handa@m17n.org>
17748
17749 * print.c: Include charset.h.
17750 (Vprint_charset_text_property): New variable.
17751 (Qdefault): Extern it.
17752 (PRINT_STRING_NON_CHARSET_FOUND)
17753 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
17754 (print_check_string_result): New variable.
17755 (print_check_string_charset_prop): New function.
17756 (print_prune_charset_plist): New variable.
17757 (print_prune_string_charset): New function.
17758 (print_object): Call print_prune_string_charset if
17759 Vprint_charset_text_property is not t.
17760 (print_interval): Print nothing if interval->plist is nil.
17761 (syms_of_print): Declare Vprint_charset_text_property as a lisp
17762 variable. Init and staticpro print_prune_charset_plist.
17763
177642008-02-01 Kenichi Handa <handa@m17n.org>
17765
17766 * fontset.c (new_fontset_from_font_name): Use the specified font
17767 for all characters in the new fontset.
17768
17769 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
17770 OBJECT args.
17771
17772 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
17773 OBJECT args for composition too.
17774
17775 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
17776 OBJECT args.
17777
177782008-02-01 Kenichi Handa <handa@m17n.org>
17779
17780 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
17781
17782 * fontset.c (reorder_font_vector): Adjust for the change of
17783 FONT_DEF format.
17784 (fontset_face): New arg id. Change caller.
17785 (face_for_char): New args pos and object.
17786 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
17787 (fs_query_fontset): Check NAME by Fassoc too.
17788 (Fset_fontset_font): Allow non-XLFD font name.
17789 (Ffontset_info): Adjust for the change of FONT_DEF format.
17790
17791 * fontset.h (face_for_char): Adjust prototype.
17792
17793 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
17794 (append_space, extend_face_to_end_of_line)
17795 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
17796 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
17797
17798 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
17799 POS and OBJECT args.
17800
17801 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
17802 POS and OBJECT args.
17803
178042008-02-01 Jason Rumney <jasonr@gnu.org>
17805
17806 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
17807 of GlobalAlloc'ed memory.
17808
178092008-02-01 Kenichi Handa <handa@m17n.org>
17810
17811 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
17812
17813 * charset.h (charset_table_used): Delete extern.
17814
17815 * charset.c (charset_table_used): Make it static.
17816 (map_charset_chars): Fix args to c_function with.
17817
17818 * chartab.c (map_sub_char_table_for_charset): Fix args to
17819 c_function with.
17820
17821 * coding.h (enum coding_result_code): Delete
17822 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
17823
17824 * coding.c (Qinsufficient_source, Qinconsistent_eol)
17825 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
17826 (Vlast_code_conversion_error): New variables.
17827 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
17828 (ONE_MORE_BYTE): Record error if any instead of signaling an
17829 error. If non-ASCII multibyte char is found, return the negative
17830 value of the code. All callers changed to check it.
17831 (ONE_MORE_BYTE_NO_CHECK): Likewise.
17832 (record_conversion_result): New function. Change all codes setting
17833 coding->result to call this function.
17834 (detect_coding_utf_8, decode_coding_utf_8)
17835 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
17836 Don't use the local variable incomplete.
17837 (emacs_mule_char): Change the second arg to `const'.
17838 (decode_coding): Fix of flushing out unprocessed data.
17839 (make_conversion_work_buffer): Fix making of a work buffer.
17840 (decode_coding_object): Return coding->dst_object.
17841
17842 * fontset.c (set_fontset_font): Fix args.
17843
17844 * lisp.h (CHARACTERBITS): Define as 22.
17845
17846 * process.c (send_process): Be sure to set coding->src_multibyte.
17847
17848 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
17849
178502008-02-01 Kenichi Handa <handa@m17n.org>
17851
17852 * xdisp.c (handle_auto_composed_prop): Give limit to
17853 Fnext_single_char_property_change.
17854
178552008-02-01 Kenichi Handa <handa@m17n.org>
17856
17857 * composite.c (syms_of_composite): Don't make the composition hash
17858 table weak.
17859
17860 * fontset.c (Fset_fontset_font): Fix docstring.
17861
17862 * lisp.h (detect_coding_system): Adjust prototype.
17863
17864 * fileio.c (kill_workbuf_unwind): Delete this function.
17865 (Finsert_file_contents): Adjust the call of detect_coding_system.
17866 Get conversion_buffer by code_conversion_save. Use the macro
17867 CODING_MAY_REQUIRE_DECODING. After decoding, update
17868 coding_system.
17869
17870 * coding.h (make_conversion_work_buffer): Delete extern.
17871 (code_conversion_save): Extern it.
17872
17873 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
17874 (CODING_GET_INFO): Delete argument eol_type. Change callers.
17875 (decode_coding_utf_8): Don't do eol converion.
17876 (detect_coding_utf_16): Check coding->src_chars, not
17877 coding->src_bytes. Add heuristics for those that have no signature.
17878 (decode_coding_emacs_mule, decode_coding_iso_2022)
17879 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
17880 Don't do eol converion.
17881 (adjust_coding_eol_type): Return a new coding system.
17882 (detect_coding): Don't detect eol. Fix for utf-16 detection.
17883 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
17884 each change.
17885 (decode_coding): Pay attention to undo_list. Do eol conversion for
17886 all types of coding-systems (if necessary).
17887 (Vcode_conversion_work_buf_list): Delete it.
17888 (Vcode_conversion_reused_workbuf): Rename from
17889 Vcode_conversion_reused_work_buf.
17890 (Vcode_conversion_workbuf_name): New variable.
17891 (reused_workbuf_in_use): New variable.
17892 (make_conversion_work_buffer): Delete the arg DEPTH.
17893 (code_conversion_restore): Change argument to cons.
17894 (code_conversion_save): Delete the argument BUFFER. Change callers.
17895 (detect_coding_system): New argument src_chars. Change callers.
17896 Fix for utf-16 detection.
17897 (init_coding_once): Don't use ISO_carriage_return.
17898 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
17899 reused_workbuf_in_use.
17900
179012008-02-01 Kenichi Handa <handa@m17n.org>
17902
17903 * keymap.c (store_in_keymap): Pay attention to the case that idx
17904 is a cons specifying a character range.
17905
179062008-02-01 Kenichi Handa <handa@m17n.org>
17907
17908 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
17909 HANDLED_RECOMPUTE_PROPS.
17910
17911 * coding.c (Fdefine_coding_system_internal): Fix checking of
17912 ascii compatibility.
17913
179142008-02-01 Kenichi Handa <handa@m17n.org>
17915
17916 * charset.c (find_charsets_in_text): Delete unused locale variable.
17917 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
17918
17919 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
17920 Resync charset_list to Vemacs_mule_charset_list.
17921
17922 * keymap.c (store_in_keymap): Pay attention to the case that idx
17923 is a cons specifying a character range.
17924
179252008-02-01 Kenichi Handa <handa@m17n.org>
17926
17927 * composite.c (update_compositions): Bind inhibit-read-only, etc
17928 to t before calling remove-list-of-text-properties.
17929
17930 * print.c (print_object): Always print ASCII chars as is.
17931
179322008-02-01 Kenichi Handa <handa@m17n.org>
17933
17934 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
17935
17936 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
17937 is a char table.
17938
179392008-02-01 Kenichi Handa <handa@m17n.org>
17940
17941 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
17942
179432008-02-01 Kenichi Handa <handa@m17n.org>
17944
17945 * xfaces.c (set_lface_from_font_name): Fix for the case that
17946 FONTNAME is not fontset name.
17947
179482008-02-01 Kenichi Handa <handa@m17n.org>
17949
17950 * fns.c (base64_encode_1): Fix previous change.
17951
179522008-02-01 Kenichi Handa <handa@m17n.org>
17953
17954 * fontset.c (set_fontset_font): New function.
17955 (Fset_fontset_font): If a font is specified for a charset, use
17956 map_charset_chars to store the font spec in a fontset.
17957
179582008-02-01 Kenichi Handa <handa@m17n.org>
17959
17960 * fontset.c (fontset_face): Create a fallback fontset on demand.
17961 (make_fontset): Don't create a fallback fontset here.
17962 (free_face_fontset): Free a fallback fontset (if any) too.
17963 (n_auto_fontsets): Delete this variable.
17964 (auto_fontset_alist): New variable.
17965 (new_fontset_from_font_name): Check auto_fontset_alist.
17966 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
17967 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
17968 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
17969 Defsubr Sfontset_list_all.
17970
179712008-02-01 Kenichi Handa <handa@m17n.org>
17972
17973 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
17974
179752008-02-01 Kenichi Handa <handa@m17n.org>
17976
17977 * fontset.c (Fnew_fontset): Check NAME more rigidly.
17978
179792008-02-01 Kenichi Handa <handa@m17n.org>
17980
17981 * editfns.c (Fgoto_char): Fix docstring.
17982
179832008-02-01 Kenichi Handa <handa@m17n.org>
17984
17985 * insdel.c (insert_from_gap): Adjust intervals correctly.
17986
179872008-02-01 Jason Rumney <jasonr@gnu.org>
17988
17989 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
17990 (pfnGetFontUnicodeRanges): New dynamically loaded function.
17991 (w32_initialize): Try to load it.
17992 (x_get_font_repertory): Use it if available.
17993 (w32_encode_char): Add shortcut for unicode output.
17994
17995 * w32fns.c (w32_load_system_font): Default charset to -1.
17996 (x_to_w32_charset): Match all fonts for unicode.
17997 (w32_to_x_charset): New parameter matching. Don't return partial
17998 or wildcard charsets.
17999 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
18000 (w32_codepage_for_font): Return CP_UNICODE for unicode.
18001 (w32_to_x_font): Match charset to real charset.
18002 (enum_font_cb2): Always list unicode versions.
18003
18004 * makefile.w32-in (temacs): Increase EMHEAP.
18005
180062008-02-01 Jason Rumney <jasonr@gnu.org>
18007
18008 * w32term.c (w32_encode_char): New charset parameter.
18009 font_info.encoding becomes encoding_type.
18010 (x_get_font_repertory): New function. Warning: stub only!
18011 (x_new_font): Return quickly if font already set.
18012 (x_new_fontset): fontsetname parameter is Lisp_Object.
18013 Use new fs_query_fontset. Try new_fontset_from_font_name.
18014 Use fontset_name for return value.
18015
18016 * w32term.h: Declare x_get_font_repertory.
18017
18018 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
18019 place of find_charset_in_text. Use encode_coding_object in place
18020 of encode_coding.
18021 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
18022 decode_coding.
18023
18024 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
18025 of x_new_fontset.
18026 (w32_load_system_font): Initialize charset as unicode.
18027 font_info.encoding becomes encoding_type.
18028 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
18029 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
18030 (syms_of_w32fns): Set get_font_repertory_func.
18031
18032 * w32console.c: Include character.h. Use terminal_encode_buffer
18033 from term.c.
18034 (write_glyphs): Use new version of encode_terminal_code. Use
18035 encode_coding_object in place of encode_coding.
18036
18037 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
18038 encoding becomes encoding_type.
18039
18040 * term.c (terminal_encode_buffer): Make externally visible.
18041
18042 * makefile.w32-in: Add character.h dependancies.
18043 (character.o, chartab.o): New targets.
18044
180452008-02-01 Kenichi Handa <handa@m17n.org>
18046
18047 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
18048 CODING_ID_EOL_TYPE.
18049
180502008-02-01 Andreas Schwab <schwab@suse.de>
18051
18052 * coding.c (produce_chars): Revert last change.
18053
180542008-02-01 Kenichi Handa <handa@m17n.org>
18055
18056 * charset.h (charset_unicode): Extern it.
18057
18058 * charset.c (string_xstring_p): Check by (C >= 0x100).
18059 (find_charsets_in_text): Change format of the arc CHARSETS. New
18060 arg MULTIBYTE.
18061 (Ffind_charset_region, Ffind_charset_string): Adjust for the
18062 change of find_charsets_in_text.
18063 (Fsplit_char): Fix doc. Never return unknown.
18064
18065 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
18066
18067 * coding.c (Fdefine_coding_system_alias): Update
18068 Vcoding_system_list.
18069
18070 * fontset.c (load_font_get_repertory): Pay attention to the case
18071 that ENCODING of a font is specified by a char-table.
18072
18073 * xterm.c (x_get_font_repertory): Handle the case that the
18074 encoding of font is other than Unicode.
18075
180762008-02-01 Kenichi Handa <handa@m17n.org>
18077
18078 * term.c (encode_terminal_code): Don't handle glyph-table. Check
18079 if a character is encodable by the terminal coding system. If
18080 not, produces proper number of `?'s. Update
18081 terminal_encode_buffer and terminal_encode_buf_size if necessary.
18082 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
18083
180842008-02-01 Kenichi Handa <handa@m17n.org>
18085
18086 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
18087 variables.
18088 (encode_terminal_code): Change argument. Encode multiple
18089 characters at once. Store the result of encoding in
18090 terminal_encode_buffer.
18091 (write_glyphs, insert_glyphs): Adjust for the change of
18092 encode_terminal_code.
18093 (term_init): Initialize terminal_encode_buffer and
18094 terminal_encode_buf_size.
18095
18096 * coding.c (consume_chars): If coding->src_object is nil, don't
18097 check annotation.
18098
180992008-02-01 Kenichi Handa <handa@m17n.org>
18100
18101 * character.c (char_string): Use ASCII_CHAR_P instead of
18102 SINGLE_BYTE_CHAR_P.
18103
181042008-02-01 Kenichi Handa <handa@m17n.org>
18105
18106 * xdisp.c (handle_auto_composed_prop): Check if the last
18107 characters of auto-composed region is newly composed with the
18108 following characters.
18109 (handle_composition_prop): Fix checking of point being inside
18110 composition.
18111
181122008-02-01 Kenichi Handa <handa@m17n.org>
18113
18114 * fns.c (concat): Don't change multibyteness of the result by
18115 concatenating an 8-bit character.
18116
18117 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
18118 multibyteness of the result when newelt is an 8-bit character.
18119
181202008-02-01 Dave Love <fx@gnu.org>
18121
18122 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
18123 EMACS_INT.
18124
18125 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
18126
18127 * xfaces.c (face_numeric_value): Declare dim size_t.
18128 (Finternal_lisp_face_equal_p): Remove unused f.
18129
18130 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
18131 (MATRIX_ROW): Remove unused vars.
18132 (draw_glyphs, x_insert_glyphs, fast_find_position)
18133 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
18134 byte/char counts.
18135
18136 * regex.c (regex_compile): Remove unused var.
18137
18138 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
18139
18140 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
18141 (Faccessible_keymaps, where_is_internal): Remove unused vars.
18142
18143 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
18144
18145 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
18146
18147 * fileio.c (Fwrite_region): Remove unused var.
18148
18149 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
18150 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
18151
18152 * composite.c (Fremove_list_of_text_properties): Declare.
18153
18154 * coding.c (inhibit_pre_post_conversion): Remove (unused).
18155 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
18156 (coding_inherit_eol_type): Remove unused attrs.
18157 (detect_coding): Cast arg of detect_eol.
18158
18159 * charset.c (syms_of_charset): Remove unused var p.
18160 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
18161 byte/char counts.
18162
18163 * casetab.c (set_case_table): Remove unused var.
18164
18165 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
18166 unused vars.
18167
181682008-02-01 Dave Love <fx@gnu.org>
18169
18170 * xterm.c (x_bitmap_mask): Declare.
18171
181722008-02-01 Dave Love <fx@gnu.org>
18173
18174 * xterm.c (x_term_init): Fix type error.
18175
18176 * lisp.h: Add Funibyte_char_to_multibyte.
18177
18178 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
18179 (Fset_coding_system_priority): Doc fix.
18180
18181 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
18182
18183 * indent.c (check_composition): Make start and end EMACS_INT.
18184
18185 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
18186
18187 * xdisp.c (handle_composition_prop, check_point_in_composition):
18188 Make buffer positions EMACS_INT.
18189
18190 * composite.c (find_composition, run_composition_function)
18191 (update_compositions, Ffind_composition_internal): Make buffer
18192 positions EMACS_INT.
18193
18194 * composite.h (find_composition, update_compositions): Make
18195 position args EMACS_INT.
18196
18197 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
18198
18199 * intervals.c (get_property_and_range):
18200 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
18201
18202 * unexalpha.c: Don't include varargs.h.
18203
182042008-02-01 Dave Love <fx@gnu.org>
18205
18206 * coding.h (ENCODE_UTF_8): New.
18207
18208 * Makefile.in (gtkutil.o): Depend on coding.h.
18209
18210 * coding.c (Fset_coding_system_priority): Doc fix.
18211
182122008-02-01 Kenichi Handa <handa@m17n.org>
18213
18214 * fileio.c (Finsert_file_contents): Call setup_coding_system in
18215 the case of auto saving.
18216
182172008-02-01 Andreas Schwab <schwab@suse.de>
18218
18219 * chartab.c (map_char_table, map_char_table_for_charset): Protect
18220 `range' from GC.
18221
182222008-02-01 Kenichi Handa <handa@m17n.org>
18223
18224 * coding.c (decode_coding_sjis): Check bytes more rigidly.
18225
182262008-02-01 Kenichi Handa <handa@m17n.org>
18227
18228 * fileio.c (choose_write_coding_system): Return a decided coding system.
18229 (Fwrite_region): Set Vlast_coding_system_used to the return value
18230 of choose_write_coding_system.
18231
182322008-02-01 Kenichi Handa <handa@m17n.org>
18233
18234 * charset.c (Fset_charset_priority): Pay attention to duplicated
18235 arguments.
18236
18237 * coding.c (QCcategory): New variable.
18238 (syms_of_coding): Defsym it. Set all elements of
18239 Vcoding_category_table and their symbol values.
18240 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
18241 coding-category-XXX, and coding-category-list.
18242 (Fdefine_coding_system_internal): Add category in the plist.
18243
182442008-02-01 Kenichi Handa <handa@m17n.org>
18245
18246 * callproc.c (Fcall_process): Handle carryover correctly.
18247
18248 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
18249 (raw_text_coding_system): Check NILP (coding_system).
18250 (coding_inherit_eol_type): Check NILP (coding_system) and
18251 NILP (parent).
18252 (consume_chars): Fix for the case of raw-text.
18253
18254 * process.c (read_process_output): Handle carryover correctly.
18255
182562008-02-01 Dave Love <fx@gnu.org>
18257
18258 * regex.c (re_search_2): Fix last change.
18259
182602008-02-01 Kenichi Handa <handa@m17n.org>
18261
18262 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
18263 target_multibyte. Even in a unibyte case, return a converted
18264 multibyte char.
18265 (GET_CHAR_AFTER): New macro.
18266 (PATFETCH): Translate via multibyte char.
18267 (HANDLE_UNIBYTE_RANGE): Delete this macro.
18268 (SETUP_MULTIBYTE_RANGE): New macro.
18269 (regex_compile): Setup compiled code so that its multibyteness
18270 matches that of a target. Fix the handling of "[X-YZ]" using
18271 SETUP_MULTIBYTE_RANGE.
18272 (analyse_first) <charset>: For filling fastmap for all multibyte
18273 characters, don't check by BASE_LEADING_CODE_P.
18274 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
18275 the same as RE_MULTIBYTE_P (bufp) now.
18276 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
18277 (TARGET_CHAR_AND_LENGTH): Delete this macro.
18278 (TRANSLATE_VIA_MULTIBYTE): New macro.
18279 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
18280 It is the same as RE_MULTIBYTE_P (bufp) now.
18281 <exactn>: Translate via multibyte.
18282 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
18283 translate it.
18284 <charset, charset_not>: Fetch a character by
18285 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
18286 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
18287 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
18288 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
18289 by GET_CHAR_AFTER.
18290 (bcmp_translate): Likewise.
18291
18292 * search.c (compile_pattern): Check the member target_multibyte,
18293 not the member multibyte of buf.
18294
18295 * lread.c (read1): While reading a string, set force_singlebyte
18296 and force_multibyte correctly.
18297
18298 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
18299 up of unibyte_to_multibyte_table.
18300
183012008-02-01 Kenichi Handa <handa@m17n.org>
18302
18303 * coding.c (setup_coding_system): If coding has
18304 post-read-conversion or pre-write-conversion, set
18305 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
18306 respectively.
18307 (decode_coding_gap): Run post-read-conversion if any.
18308
18309 * fileio.c (Finsert_file_contents): Even if we read into a
18310 unibyte buffer, check if we must decode the result or not.
18311
183122008-02-01 Kenichi Handa <handa@m17n.org>
18313
18314 * coding.c (make_conversion_work_buffer): Change the work buffer
18315 name to the same one as that of Emacs 21.
18316
183172008-02-01 Kenichi Handa <handa@m17n.org>
18318
18319 * coding.h (make_conversion_work_buffer): Adjust prototype.
18320 (code_conversion_restore): Don't extern it.
18321
18322 * coding.c (detected_mask): Delete unused variable.
18323 (decode_coding_iso_2022): Pay attention to the byte sequence of
18324 CTEXT extended segment, and retain those bytes as is.
18325 (decode_coding_ccl): Delete unused variable `valids'.
18326 (setup_coding_system): Delete unused variable `category'.
18327 (consume_chars): Delete unused variable `category'. Make it work
18328 for non-multibyte case.
18329 (make_conversion_work_buffer): Change argument.
18330 (saved_coding): Delete unused variable.
18331 (code_conversion_restore): Don't check saved_coding->destination.
18332 (code_conversion_save): New function.
18333 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
18334 instead of record_unwind_protect.
18335 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
18336 (detect_coding_system): Delete unused variable `mask'.
18337 (Fdefine_coding_system_internal): Delete unused variable id.
18338
18339 * fileio.c (kill_workbuf_unwind): New function.
18340 (Finsert_file_contents): On replacing, call
18341 make_conversion_work_buffer with correct args, and call
18342 record_unwind_protect with the first arg kill_workbuf_unwind.
18343
18344 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
18345
183462008-02-01 Kenichi Handa <handa@m17n.org>
18347
18348 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
18349 (fontset_add): Fix for the case that TO is less than TO1.
18350 (Ffontset_info): Don't use fallback fontset on checking the
18351 default fontset.
18352 (dump_fontset): New function for debugging.
18353
18354 * coding.c (Fdefine_coding_system_internal): Fix for the case that
18355 coding_type is Qcharset.
18356
183572008-02-01 Kenichi Handa <handa@m17n.org>
18358
18359 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
18360 (map_char_table): Don't inherit the value from the parent on
18361 initializing VAL. Adjust for the above change.
18362
183632008-02-01 Kenichi Handa <handa@m17n.org>
18364
18365 * coding.c (Qsignature, Qendian): Delete these variables.
18366 (syms_of_coding): Don't initialize them.
18367 (CATEGORY_MASK_UTF_16_AUTO): New macro.
18368 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
18369 detect_info->found.
18370 (decode_coding_utf_16): Don't detect BOM here.
18371 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
18372 is NOT utf_16_without_bom.
18373 (setup_coding_system): For a coding system of type utf-16, check
18374 if the attribute :endian is Qbig or not (not nil or not), and set
18375 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
18376 (detect_coding): If coding type is utf-16 and BOM detection is
18377 required, detect it.
18378 (Fdefine_coding_system_internal): For a coding system of type
18379 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
18380
183812008-02-01 Kenichi Handa <handa@m17n.org>
18382
18383 * coding.c (coding_set_source): Fix for the case that the current
18384 buffer is different from coding->src_object.
18385 (decode_coding_object): Don't use the conversion work buffer if
18386 DST_OBJECT is a buffer.
18387
183882008-02-01 Dave Love <fx@gnu.org>
18389
18390 * lread.c (read_emacs_mule_char) [len==2]: Index
18391 emacs_mule_charset correctly.
18392
183932008-02-01 Dave Love <fx@gnu.org>
18394
18395 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
18396 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
18397 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
18398 treated specially.)
18399 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
18400 (detected_mask): Remove Big5 bits.
18401
184022008-02-01 Kenichi Handa <handa@m17n.org>
18403
18404 The following changes are to make the font rescaling facility
18405 compatible with Emacs 21.
18406
18407 * xfaces.c (Vface_font_rescale_alist): Rename from
18408 Vface_resizing_fonts.
18409 (struct font_name): Rename member resizing_ratio to rescale_ratio.
18410 (font_rescale_ratio): Rename from font_resizing_ratio.
18411 (split_font_name): Set font->rescale_ratio.
18412 (better_font_p): Pay attention to font->rescale_ratio.
18413 (build_scalable_font_name): Likewise. Change RESX, and RESY
18414 fields.
18415 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
18416
184172008-02-01 Kenichi Handa <handa@m17n.org>
18418
18419 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
18420 (Qutf_16_le): Remove these variables.
18421 (syms_of_coding): Don't DEFSYM them.
18422 (decode_coding_utf_16): Fix handling of BOM.
18423 (encode_coding_utf_16): Fix handling of BOM.
18424
184252008-02-01 Kenichi Handa <handa@m17n.org>
18426
18427 * fileio.c (Finsert_file_contents): On replacing, before decoding
18428 the file into the work buffer, set point of the work buffer to the end.
18429
184302008-02-01 Dave Love <fx@gnu.org>
18431
18432 * coding.c (Fcheck_coding_systems_region): Fix type errors.
18433
184342008-02-01 Dave Love <fx@gnu.org>
18435
18436 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
18437 and fix C types.
18438
184392008-02-01 Kenichi Handa <handa@m17n.org>
18440
18441 * xdisp.c (SKIP_GLYPHS): New macro.
18442 (set_cursor_from_row): Pay attention to string display properties.
18443
18444 * category.c (copy_category_entry): Fix for the case that RANGE
18445 is an integer.
18446
18447 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
18448
18449 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
18450
184512008-02-01 Kenichi Handa <handa@m17n.org>
18452
18453 * charset.c (Fcharset_id_internal): New function.
18454 (syms_of_charset): Defsubr it.
18455
18456 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
18457 with the last arg charset_list acquired from coding.
18458 (Fdefine_coding_system_internal): For ccl-based coding system, fix
18459 the attribute coding_attr_ccl_valids.
18460
18461 * coding.h (enum define_coding_ccl_arg_index): Set the first
18462 member coding_arg_ccl_decoder to coding_arg_max.
18463
18464 * ccl.h (ccl_driver): Adjust prototype.
18465
18466 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
18467 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 18468 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
18469 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
18470 last arg Qnil.
18471
184722008-02-01 Kenichi Handa <handa@m17n.org>
18473
18474 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
18475 call encode_char.
18476
18477 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
18478
184792008-02-01 Dave Love <fx@gnu.org>
18480
18481 * composite.c (syms_of_composite): Make composition_hash_table weak.
18482
184832008-02-01 Kenichi Handa <handa@m17n.org>
18484
18485 * dispextern.h (check_face_attributes, generate_ascii_font_name)
18486 (font_name_registry): Don't extern them.
18487 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
18488
18489 * fontset.h (Qfontset): Don't extern it.
18490 (new_fontset_from_font_name): Extern it.
18491
18492 * fontset.c: Give 8 extra slots to fontset objects.
18493 (Qfontset_info): New variable.
18494 (syms_of_fontset): Defsym it.
18495 (FONTSET_FALLBACK): New macro.
18496 (fontset_face): Try also the default fontset.
18497 (make_fontset): Realize a fallback fontset from the default fontset.
18498 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
18499 using split_font_name_into_vector and build_font_name_from_vector.
18500 (Fset_fontset_font): Access the elements of font_spec by enum
18501 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
18502 name by using split_font_name_into_vector.
18503 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
18504 generate a proper font name from the fontset name. Update
18505 Vfontset_alias_alist.
18506 (n_auto_fontsets): New variable.
18507 (new_fontset_from_font_name): New function.
18508 (Ffont_info): Store the information about fonts generated from the
18509 default fontset in the first extra slot of the returned char-table.
18510
18511 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
18512 (font_name_registry): Delete function.
18513 (split_font_name_into_vector): New function.
18514 (build_font_name_from_vector): New function.
18515 (font_list): The argument REGISTRY is now a list of registry names.
18516 (choose_face_font): If we are choosing an ASCII font, and ATTRS
18517 specifies an explicit font name, return the name as is. Make a
18518 list of registy names.
18519
18520 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
18521 of x_new_fontset.
18522 (Fx_create_frame): Don't call x_new_fontset here. Just use
18523 x_list_fonts to check the existence of fonts.
18524
18525 * xterm.h (x_new_fontset): Adjust prototype.
18526
18527 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
18528 string. Use new_fontset_from_font_name to create a fontset from a
18529 font name.
18530
185312008-02-01 Kenichi Handa <handa@m17n.org>
18532
18533 * syntax.c (Vfind_word_boundary_function_table): New name for
18534 Vnext_word_boundary_function_table.
18535 (find-word-boundary-function-table): New name for
18536 next-word-boundary-function-table.
18537
185382008-02-01 Dave Love <fx@gnu.org>
18539
18540 * Makefile.in: Fix some dependencies.
18541
18542 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
18543 set it to nil before returning.
18544
18545 * composite.c (update_compositions): Fix type error.
18546
18547 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
18548
185492008-02-01 Kenichi Handa <handa@m17n.org>
18550
18551 * xterm.c (x_new_font): Optimize for the case that the font is
18552 already set for the frame.
18553
185542008-02-01 Kenichi Handa <handa@m17n.org>
18555
18556 * chartab.c (char_table_ascii): Check if the char table contents
18557 is sub-char-table or not.
18558 (char_table_set, char_table_set_range): Fix argument to
18559 char_table_ascii.
18560
18561 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
18562 (detect_coding_utf_8, detect_coding_utf_16)
18563 (detect_coding_emacs_mule, detect_coding_iso_2022)
18564 (detect_coding_sjis, detect_coding_big5)
18565 (detect_coding_ccl, detect_coding_charset): Change argument MASK
18566 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
18567 sequence is valid in this coding system. Change callers.
18568 (MAX_ANNOTATION_LENGTH): New macro.
18569 (ADD_ANNOTATION_DATA): New macro.
18570 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
18571 ADD_ANNOTATION_DATA. Change the format of annotation data.
18572 (ADD_CHARSET_DATA): New macro.
18573 (emacs_mule_char): New argument ID. Change callers.
18574 (decode_coding_emacs_mule, decode_coding_iso_2022)
18575 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
18576 Produce charset annotation data in coding->charbuf.
18577 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
18578 to charset annotation data in coding->charbuf.
18579 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
18580 coding->common_flags if the coding system is iso-2022 based and
18581 uses designation.
18582 (produce_composition): Adjust for the new annotation data format.
18583 (produce_charset): New function.
18584 (produce_annotation): Handle charset annotation.
18585 (handle_composition_annotation, handle_charset_annotation): New
18586 functions.
18587 (consume_chars): Handle charset annotation. Utilize the above two
18588 functions.
18589 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
18590 buffer, get the deleted text as a string and set
18591 coding->src_object to that string.
18592 (detect_coding, detect_coding_system): Use the new struct
18593 coding_detection_info.
18594
18595 * coding.h (struct coding_detection_info): New structure.
18596 (struct coding_system): Adjust prototype of the member `detector'.
18597 (CODING_ANNOTATE_CHARSET_MASK): New macro.
18598
185992008-02-01 Kenichi Handa <handa@m17n.org>
18600
18601 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
18602
186032008-02-01 Dave Love <fx@gnu.org>
18604
18605 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
18606 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
18607 to new local and nullify apropos_accumulate before returning.
18608 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
18609
186102008-02-01 Kenichi Handa <handa@m17n.org>
18611
18612 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
18613 correctly.
e3eea1fc 18614
aac0c6e3
MR
186152008-02-01 Dave Love <fx@gnu.org>
18616
18617 * fns.c (Flanginfo): Call synchronize_system_time_locale.
18618
186192008-02-01 Kenichi Handa <handa@m17n.org>
18620
18621 The following changes are to make character composition happen
18622 automatically on displaying.
18623
18624 * Makefile.in (lisp, shortlisp): Add composite.elc.
18625
18626 * composite.h (Qauto_composed, Vauto_composition_function)
18627 (Qauto_composition_function): Extern them.
18628
18629 * composite.c (Vcomposition_function_table)
18630 (Qcomposition_function_table): Delete variables.
18631 (Qauto_composed, Vauto_composition_function)
18632 (Qauto_composition_function): New variables.
18633 (run_composition_function): Don't call
18634 compose-chars-after-function.
18635 (update_compositions): Clear `auto-composed' text property.
18636 (compose_chars_in_text): Delete this function.
18637 (syms_of_composite): Staticpro Qauto_composed and
18638 Qauto_composition_function. Declare Vauto_composition_function as
18639 a Lisp variable.
18640
18641 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
18642
18643 * xdisp.c (it_props): Add an entry for Qauto_composed.
18644 (handle_auto_composed_prop): New function.
18645
18646 * xselect.c (selection_data_to_lisp_data): Don't call
18647 compose_chars_in_text.
18648
186492008-02-01 Dave Love <fx@gnu.org>
18650
18651 * keyboard.c (read_char): Modify checking around use of
18652 Vkeyboard_translate_table.
18653
18654 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
18655 and fix C types.
18656
186572008-02-01 Kenichi Handa <handa@m17n.org>
18658
18659 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
18660 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
18661 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
18662 the case that the last byte is '\r' correctly.
18663 (decode_coding): Flush out the unprocessed data correctly.
18664 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
18665
186662008-02-01 Dave Love <fx@gnu.org>
18667
18668 * xterm.c (XTread_socket): Fix changes for defined keysyms.
18669 Add XK_ISO... case.
18670 (xaw_scroll_callback): Revert last change.
18671
186722008-02-01 Kenichi Handa <handa@m17n.org>
18673
18674 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
18675
186762008-02-01 Kenichi Handa <handa@m17n.org>
18677
18678 * xfaces.c (Vface_resizing_fonts): New variable.
18679 (struct font_name): New member `resizing_ratio'.
18680 (font_resizing_ratio): New function.
18681 (split_font_name): Set font->resizing_ratio.
18682 (better_font_p): Pay attention to font->resizing_ratio.
18683 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
18684 RESX, and RESY fields.
18685 (try_alternative_families): Try scalable fonts if
18686 Vscalable_fonts_allowed is not Qt.
18687 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
18688
186892008-02-01 Dave Love <fx@gnu.org>
18690
18691 * xterm.c (xaw_scroll_callback): Cast correctly.
18692
186932008-02-01 Dave Love <fx@gnu.org>
18694
18695 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
18696 (lispy_kana_keys): Comment out.
18697 (make_lispy_event) [XK_kana_A]: Comment out.
18698
18699 * xterm.c (xaw_scroll_callback): Cast call_data.
18700 (XTread_socket): Deal with ASCII keysyms.
18701 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
18702
187032008-02-01 Dave Love <fx@gnu.org>
18704
18705 * xterm.c (Vx_keysym_table): New.
18706 (syms_of_xterm): Initialize it.
18707 (XTread_socket): Use it.
18708 From head: Eliminate incorrect optimization that tried to avoid
18709 decoding the output of X*LookupString.
18710 (x_get_font_repertory): Delete charset declaration.
18711
187122008-02-01 Kenichi Handa <handa@m17n.org>
18713
18714 * coding.c (detect_coding_charset): If only ASCII bytes are found,
18715 return 0.
18716 (Fdefine_coding_system_internal): Setup
18717 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
18718
187192008-02-01 Dave Love <fx@gnu.org>
18720
18721 * coding.c (Fcheck_coding_system): Doc fix.
18722
18723 * editfns.c (Finsert_byte): Return a proper value.
18724
187252008-02-01 Kenichi Handa <handa@m17n.org>
18726
18727 * coding.c (decode_coding): Fix args to translate_chars. Pay
18728 attention to Vstandard_translation_table_for_decode.
18729 (encode_coding): Fix args to translate_chars. Pay attention to
18730 Vstandard_translation_table_for_encode.
18731
18732 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
18733 SINGLE_BYTE_CHAR_P.
18734
18735 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
18736 not by SINGLE_BYTE_CHAR_P.
18737
18738 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
18739 SINGLE_BYTE_CHAR_P.
18740
18741 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
18742 SINGLE_BYTE_CHAR_P.
18743
18744 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
18745 by SINGLE_BYTE_CHAR_P.
18746
18747 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
18748 SINGLE_BYTE_CHAR_P.
18749
187502008-02-01 Dave Love <fx@gnu.org>
18751
18752 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
18753
187542008-02-01 Dave Love <fx@gnu.org>
18755
18756 * fns.c (Flanginfo): Fix typo.
18757
18758 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
18759
187602008-02-01 Kenichi Handa <handa@m17n.org>
18761
18762 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
18763 (detect_coding_emacs_mule, detect_coding_iso_2022)
18764 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
18765 incomplete byte sequence. Don't update *mask when correctly detected.
18766 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
18767 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
18768 (detect_coding, detect_coding_system): Adjust for the changes above.
18769
187702008-02-01 Kenichi Handa <handa@m17n.org>
18771
18772 * character.c (char_string): Rename from
18773 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
18774 (string_char): Rename from string_char.
18775
18776 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
18777 if C is greater than MAX_3_BYTE_CHAR.
18778 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
18779 string_char instead of string_char_with_unification.
18780
187812008-02-01 Dave Love <fx@gnu.org>
18782
18783 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
18784
187852008-02-01 Kenichi Handa <handa@m17n.org>
18786
18787 * keymap.c (push_key_description): Pay attention to force_multibyte.
18788
18789 * regex.c (re_search_2): Fix for the case of unibyte buffer.
18790
187912008-02-01 Dave Love <fx@gnu.org>
18792
18793 * charset.c (define_charset_internal): Rename `supprementary'.
18794
18795 * Makefile.in (lisp, shortlisp): Remove latin-N.
18796
187972008-02-01 Dave Love <fx@gnu.org>
18798
18799 * xfns.c (x_window, x_window): Use use_xim.
18800
18801 * xterm.c (use_xim): Initialize.
18802 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
18803 (x_term_init): Maybe set use_xim.
18804
18805 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
18806
188072008-02-01 Kenichi Handa <handa@m17n.org>
18808
18809 * search.c (search_buffer): Fix case-fold-search of multibyte
18810 characters.
18811 (boyer_moore): Rename the last argument to char_high_bits.
18812
188132008-02-01 Kenichi Handa <handa@m17n.org>
18814
18815 * xdisp.c (display_string): Fix for the case of zero width glyph.
18816
18817 * xfns.c (x_set_font): Change the error message of the case that
18818 x_new_fontset returns Qt.
18819
18820 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
18821 (Finternal_set_lisp_face_attribute): Use signal_error for the
18822 error of invalid fontset.
18823
18824 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
18825 fontset, return Qt.
18826
188272008-02-01 Dave Love <fx@gnu.org>
18828
18829 * unexelf.c (unexec): Make .got handling not SGI-specific.
18830
18831 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
18832
18833 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
18834
18835 * keyboard.c (read_key_sequence): Fix type error.
18836
18837 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
18838 type error.
18839
18840 * fontset.c (fontset_add): Return Lisp_Object.
18841
188422008-02-01 Dave Love <fx@gnu.org>
18843
18844 * charset.h (charset_ordered_list_tick): Declare extern.
18845
188462008-02-01 Kenichi Handa <handa@m17n.org>
18847
18848 The following changes (and some of 2008-02-01 changes of mine) are
18849 for handling syntax, category, and case conversion for unibyte
18850 characters by converting them to multibyte on the fly. With these
18851 changes, we don't have to setup syntax and case tables for unibyte
18852 characters in each language environment.
18853
18854 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
18855 multibyte if necessary.
18856
18857 * bytecode.c (Fbyte_code): Likewise.
18858
18859 * character.h (LEADING_CODE_LATIN_1_MIN)
18860 (LEADING_CODE_LATIN_1_MAX): New macros.
18861 (unibyte_to_multibyte_table): Extern it.
18862 (unibyte_char_to_multibyte): New macro.
18863 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
18864 (CHAR_LEADING_CODE): New macro.
18865 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
18866
18867 * character.c (unibyte_to_multibyte_table): New variable.
18868 (unibyte_char_to_multibyte): Move to character.h and define as macro.
18869 (multibyte_char_to_unibyte): If C is an eight-bit character,
18870 convert it to the corresponding byte value.
18871
18872 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
18873 not 1, signals an error. Update the elements of
18874 unibyte_to_multibyte_table.
18875 (init_charset_once): Initialize unibyte_to_multibyte_table.
18876 (syms_of_charset): Define the charset `iso-8859-1'.
18877
18878 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
18879 as is without converting it to unibyte. In a unibyte buffer,
18880 convert C to multibyte before checking the syntax.
18881
18882 * lisp.h (unibyte_char_to_multibyte): Delete extern.
18883
18884 * minibuf.c (Fminibuffer_complete_word): Use the macro
18885 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
18886
18887 * regex.h (struct re_pattern_buffer): New member target_multibyte.
18888
18889 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
18890 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
18891 that is zero, convert an eight-bit char to multibyte.
18892 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
18893 non-emacs case.
18894 (PATFETCH): Convert an eight-bit char to multibyte.
18895 (HANDLE_UNIBYTE_RANGE): New macro.
18896 (regex_compile): Setup the compiled pattern for multibyte chars
18897 even if the given regex string is unibyte. Use PATFETCH_RAW
18898 instead of PATFETCH in many places. To handle `charset'
18899 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
18900 only for ASCII chars.
18901 (analyse_first) <exactn>: Simplify because the compiled pattern
18902 is multibyte.
18903 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
18904 <charset>: Use CHAR_LEADING_CODE to get leading codes.
18905 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
18906 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
18907 multibyte always 1.
18908 (re_search_2): In emacs, set the locale variable multibyte to 1,
18909 otherwise to 0. New local variable target_multibyte. Check it
18910 to decide the multibyteness of STR1 and STR2. If
18911 target_multibyte is zero, convert unibyte chars to multibyte
18912 before translating and checking fastmap.
18913 (TARGET_CHAR_AND_LENGTH): New macro.
18914 (re_match_2_internal): In emacs, set the locale variable multibyte
18915 to 1, otherwise to 0. New local variable target_multibyte. Check
18916 it to decide the multibyteness of STR1 and STR2. Use
18917 TARGET_CHAR_AND_LENGTH to fetch a character from D.
18918 <charset, charset_not>: If multibyte is nonzero, check fastmap
18919 only for ASCII chars. Call bcmp_translate with
18920 target_multibyte, not with multibyte.
18921 <begline>: Declare the local variable C as `unsigned'.
18922 (bcmp_translate): Change the last arg name to target_multibyte.
18923
18924 * search.c (compile_pattern_1): Don't adjust the multibyteness of
18925 the regexp pattern and the matching target. Set cp->buf.multibyte
18926 to the multibyteness of the regexp pattern. Set
18927 cp->but.target_multibyte to the multibyteness of the matching target.
18928 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
18929 FETCH_STRING_CHAR_ADVANCE.
18930 (Freplace_match): Convert unibyte chars to multibyte.
18931
18932 * syntax.c (char_quoted, back_comment, scan_words)
18933 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
18934 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
18935 unibyte chars to multibyte.
18936 (skip_chars): Delete the arg syntaxp, and move the code for
18937 handling syntaxes to skip_syntaxes. Change callers.
18938 Fix the case that the multibyteness of STRING and the current
18939 buffer doesn't match.
18940 (skip_syntaxes): New function.
18941 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
18942 SINGLE_BYTE_CHAR_P.
18943
189442008-02-01 Kenichi Handa <handa@m17n.org>
18945
18946 * xfaces.c (QCfontset): New variable.
18947 (LFACE_FONTSET): New macro.
18948 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
18949 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
18950 (Finternal_set_lisp_face_attribute)
18951 (Finternal_get_lisp_face_attribute): Handle QCfontset.
18952 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
18953 check also LFACE_FONTSET_INDEX.
18954 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
18955 attrs[LFACE_FONT_INDEX].
18956 (syms_of_xfaces): Intern and staticpro QCfontset.
18957
18958 * dispextern.h (enum lface_attribute_index): New member
18959 LFACE_FONTSET_INDEX.
18960
18961 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
18962
189632008-02-01 Kenichi Handa <handa@m17n.org>
18964
18965 * coding.c (coding_set_destination): Fix coding->destination for
18966 the case converting a region.
18967 (encode_coding_utf_8): Encode eight-bit chars as single byte.
18968 (encode_coding_object): Fix coding->dst_pos and
18969 coding->dst_pos_byte for the case converting a region.
18970
18971 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
18972
18973 * character.h (BYTE8_STRING): New macro.
18974
18975 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
18976
189772008-02-01 Kenichi Handa <handa@m17n.org>
18978
18979 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
18980 characters by octal form.
18981
18982 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
18983
18984 * buffer.h (_fetch_multibyte_char_len): Delete extern.
18985 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
18986 _fetch_multibyte_char_len.
18987 (FETCH_CHAR_AS_MULTIBYTE): New macro.
18988
18989 * casetab.c (set_canon, set_identity, shuffle): Simplify.
18990
18991 * casefiddle.c (casify_object): Simplify. Handle the case that
18992 the case conversion change the byte length.
18993 (casify_region): Likewise.
18994
18995 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
18996
18997 * character.c (_fetch_multibyte_char_len): Delete this variable.
18998 (syms_of_character): Setup Vprintable_chars.
18999
19000 * editfns.c (Fchar_equal): Fix for the unibyte case.
19001 (Finsert_byte): New function.
19002 (syms_of_editfns): Defsubr it.
19003
19004 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
19005 of direct code 0x3ffff.
19006
19007 * search.c (Freplace_match): Fix for the unibyte case.
19008
190092008-02-01 Kenichi Handa <handa@m17n.org>
19010
19011 * lread.c (safe_to_load_p): Fix the logic.
19012
19013 * syntax.c (scan_words): Don't treat characters belonging to
19014 different scripts as constituting a word.
19015
19016 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
19017
19018 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
19019
19020 * emacs.c (main): In the case of --unibyte, instead of aborting on
19021 finding non-empty buffer, make it unibyte.
19022
190232008-02-01 Kenichi Handa <handa@m17n.org>
19024
19025 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
19026 to create a fontset.
19027
190282008-02-01 Dave Love <fx@gnu.org>
19029
19030 * character.c (Funibyte_char_to_multibyte): Doc fix.
19031
19032 * xfns.c [HAVE_STDLIB_H]: Fix last change.
19033
190342008-02-01 Kenichi Handa <handa@m17n.org>
19035
19036 * fontset.c (fontset_add): Make the type `int'.
19037 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
19038
19039 * character.c (unibyte_char_to_multibyte)
19040 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
19041 charset_unibyte, not charset_primary.
19042
19043 * charset.h (charset_unibyte): Extern it instead of charset_primary.
19044
19045 * charset.c (charset_unibyte): Rename from charset_primary.
19046 (Funibyte_charset): Rename from Fprimary_charset.
19047 (Fset_unibyte_charset): Rename from Fset_primary_charset.
19048 (syms_of_charset): Adjust for the above changes.
19049
19050 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
19051 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
19052 it->multibyte_p is zero.
19053
19054 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
19055 Delete extern.
19056
190572008-02-01 Kenichi Handa <handa@m17n.org>
19058
19059 * coding.c (Fdefine_coding_system_internal): Fix category setting
19060 for a coding system of type iso-2022.
19061
190622008-02-01 Kenichi Handa <handa@m17n.org>
19063
19064 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
19065
190662008-02-01 Kenichi Handa <handa@m17n.org>
19067
19068 * syntax.c (Vnext_word_boundary_function_table): New variable.
19069 (next-word-boundary-function-table): Declare it as a Lisp variable
19070 in syms_of_syntax.
19071 (scan_words): Call functions in Vnext_word_boundary_function_table
19072 if any.
19073
19074 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
19075
19076 * fontset.c (fs_load_font): If fontp->charset is not negative,
19077 return fontp without setting its members.
19078
190792008-02-01 Dave Love <fx@gnu.org>
19080
19081 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
19082
19083 * m/sparc.h (HAVE_ALLOCA): Delete.
19084
19085 * s/irix6-5.h: Don't include strings.h.
19086 (bcopy, bzero, bcmp): Don't undef.
19087
19088 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
19089
19090 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
19091 (TIOCSIGSEND): Don't test IRIX6.
19092 (bcopy, bzero, bcmp): Define conditionally.
19093
190942008-02-01 Kenichi Handa <handa@m17n.org>
19095
19096 * buffer.c (Qas, Qmake, Qto): New variables.
19097 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
19098 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
19099
19100 * callproc.c (Fcall_process): Don't call insert_1_both directly if
19101 we are inserting a process output into a multibyte buffer.
19102
19103 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
19104 multibyte_char_to_unibyte.
19105
19106 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
19107 by the primary charset, make it eight-bit char.
19108 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
19109
19110 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
19111 (charset_8_bit__control, charset_8_bit_graphic)
19112 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
19113 (define_charset_internal): New function.
19114 (syms_of_charset): Call define_charset_internal for pre-defined
19115 charsets.
19116
19117 * charset.h (charset_8_bit): Extern it.
19118
19119 * coding.c (make_conversion_work_buffer): Adjust for the change
19120 of Fset_buffer_multibyte.
19121 (encode_coding_raw_text): Increment p0 in the loop.
19122
19123 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
19124
19125 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
19126 for the change of Fset_buffer_multibyte.
19127
19128 * fns.c (Fstring_to_multibyte): New function.
19129 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
19130
191312008-02-01 Dave Love <fx@gnu.org>
19132
19133 * xfns.c (x_put_x_image): Declare args.
19134
19135 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
19136 (try_font_list): Declare an arg.
19137
19138 * xdisp.c (message2_nolog, set_message): Declare an arg.
19139
19140 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
19141
19142 * syntax.c (scan_sexps_forward): Declare an arg.
19143
19144 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
19145 Declare an arg.
19146
19147 * lisp.h (Fnew_fontset): Declare.
19148
19149 * keymap.c (push_key_description): Call CHARACTERP correctly.
19150
19151 * fontset.c (fontset_add): Declare args. Call make_number correctly.
19152 (face_for_char): Delete unused vars.
19153 (Fset_fontset_font): Doc fix. Delete unused vars.
19154
19155 * doc.c (Fsubstitute_command_keys): Delete unused vars.
19156
19157 * composite.c (update_compositions): Declare arg.
19158
19159 * cm.c (calccost, cmgoto): Declare args.
19160
19161 * charset.c: Remove `emacs' conditional. Doc fixes.
19162 (map_char_table_for_charset): Declare.
19163
19164 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
19165
19166 * ccl.c: Remove `emacs' conditional.
19167
191682008-02-01 Kenichi Handa <handa@m17n.org>
19169
19170 The following changes are to allow specifying multiple font
19171 patterns for a character range (specified by script or charset).
19172
19173 * Makefile.in (abbrev.o): Depend on syntax.h.
19174 (xfaces.o): Depend on charset.h.
19175
19176 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
19177 SINGLE_BYTE_CHAR_P.
19178
19179 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
19180
19181 * character.h (Vchar_script_table): Extern it.
19182
19183 * character.c (Vscript_alist): Delete.
19184 (Vchar_script_table, Qchar_script_table): New variable.
19185 (syms_of_character): Declare Vchar_script_table as a lisp variable
19186 and initialize it.
19187
19188 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
19189 have property char-table-extra-slots, make no extra slot.
19190
19191 * dispextern.h (struct face): Delete member `charset'.
19192 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
19193 SINGLE_BYTE_CHAR_P.
19194 (choose_face_font, lookup_non_ascii_face, font_name_registry):
19195 Add prototypes.
19196 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
19197 (generate_ascii_font_name): Rename from generate_ascii_font.
19198
19199 * fontset.h (get_font_repertory_func): New prototype.
19200 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
19201 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
19202
19203 * fontset.c (Qprepend, Qappend): New variables.
19204 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
19205 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
19206 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
19207 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
19208 (fontset_ref_and_range, fontset_add, reorder_font_vector)
19209 (load_font_get_repertory): New functions.
19210 (fontset_set): Delete.
19211 (fontset_face): New arg FACE. Return face ID, not face.
19212 Complete re-write to handle new fontset structure. Change caller.
19213 (free_face_fontset): Use ASET istead of AREF (X) = Y.
19214 (face_for_char): Don't call lookup_face.
19215 (make_fontset_for_ascii_face): New arg FACE.
19216 (fs_load_font): New arg CHARSET_ID. Don't check
19217 Vfont_encoding_alist here.
19218 (find_font_encoding): New function.
19219 (list_fontsets): Use STRINGP, not ! NILP.
19220 (accumulate_script_ranges): New function.
19221 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
19222 re-written to handle new fontset structure.
19223 (Ffontset_font): Return a copy of element.
19224 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
19225 docstring of font-encoding-alist.
19226
19227 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
19228 (Fset_fotset_font): Fix arguments to 5.
19229
19230 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
19231
19232 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
19233 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
19234 (highlight_trailing_whitespace): Adjust for the change of
19235 lookup_named_face.
19236
19237 * xfaces.c: Include charset.h.
19238 (load_face_font): Delete argument C. Change caller.
19239 (generate_ascii_font_name): Rename from generate_ascii_font.
19240 (font_name_registry): New function.
19241 (cache_face): Store ascii faces before non-ascii faces in buckets.
19242 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
19243 Lookup only ascii faces.
19244 (lookup_non_ascii_face): New function.
19245 (lookup_named_face): Delete argument C. Change caller.
19246 (lookup_derived_face): Delete argument C. Change caller.
19247 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
19248 a string, just call font_list with it.
19249 (choose_face_font): Delete arguments FACE and C. New arg
19250 FONT_SPEC. Change caller.
19251 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
19252 Change caller.
19253 (realize_non_ascii_face): New function.
19254 (realize_x_face): Call load_face_font here.
19255 (realize_tty_face): Delete argument C. Change caller.
19256 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
19257 get a face ID.
19258 (dump_realized_face): Don't print charset of FACE.
19259
19260 * xfns.c (x_set_font): Always call x_new_fontset and
19261 store_frame_parameter.
19262 (Fx_create_frame): Call x_new_fontset, not x_new_font.
19263 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
19264
19265 * xterm.h (x_get_font_repertory): Extern it.
19266
19267 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
19268 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
19269 it->multibyte_p is zero.
19270 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
19271 (x_new_fontset): If FONTSETNAME doesn't match any existing
19272 fontsets, create a new one.
19273 (x_get_font_repertory): New function.
19274
192752008-02-01 Kenichi Handa <handa@m17n.org>
19276
19277 * coding.c (Ffind_coding_systems_region_internal): Detect an
19278 ASCII only string correctly.
19279
19280 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
19281 version is 0.
19282
192832008-02-01 Kenichi Handa <handa@m17n.org>
19284
19285 * lread.c: Include "coding.h".
19286 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
19287 (load_each_byte, unread_char): New variables.
19288 (readchar_backlog): Delete.
19289 (readchar): Return a character unless load_each_byte is nonzero.
19290 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
19291 cons. If unread_char is not -1, simply return it.
19292 (unreadchar): Handle the case that readcharfun is
19293 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
19294 (read_multibyte): Delete.
19295 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
19296 (read_emacs_mule_char): New functions.
19297 (Fload): Even if the file doesn't have the extension ".elc", if
19298 safe_to_load_p returns a positive version number, assume that the
19299 file contains bytecompiled code. If the version is less than 22,
19300 load the file while decoding multibyte sequences by emacs-mule.
19301 (readevalloop): Don't use readchar_backlog.
19302 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
19303 (Fread_from_string): Pay attention to the case that STREAM is a cons.
19304 (read_escape): Delete the arg BYTEREP.
19305 (read1): Set load_each_byte to 1 temporarily while handling
19306 #@NUMBER. Don't call read_multibyte.
19307 (read_vector): Call Fread with a cons. If readcharfun is
19308 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
19309 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
19310 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
19311 and Qload_force_doc_strings.
19312
193132008-02-01 Kenichi Handa <handa@m17n.org>
19314
19315 * xdisp.c (face_before_or_after_it_pos): Call
19316 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
19317
193182008-02-01 Kenichi Handa <handa@m17n.org>
19319
19320 * character.h (TRAILING_CODE_P): New macro.
19321 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
19322 (string_char_with_unification): Fix prototype.
19323 (Vscript_alist): Extern it.
19324
19325 * character.c (Vscript_alist): New variable.
19326 (string_char_with_unification, str_as_unibyte)
19327 (string_escape_byte8): Add `const' to local variables.
19328 (syms_of_character): Declare script-alist as a Lisp variable.
19329
19330 * charset.h (Vcharset_ordered_list): Extern it.
19331 (charset_ordered_list_tick): Extern it.
19332 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
19333 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
19334 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
19335 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
19336 (Funify_charset): Adjust for the change of Funify_charset.
19337
19338 * charset.c (charset_ordered_list_tick): New variable.
19339 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
19340 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
19341 deunify intead of unify a charset.
19342 (string_xstring_p): Add `const' to local variables.
19343 (find_charsets_in_text): Add `const' to arguments and local variables.
19344 (encode_char): Adjust for the change of Funify_charset. Fix
19345 detecting of invalid code.
19346 (Fset_charset_priority): Increment charset_ordered_list_tick.
19347 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
19348 and TO_CODE.
19349
19350 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
19351 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
19352 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
19353 (decode_coding_ccl, consume_chars)
19354 (Ffind_coding_systems_region_internal)
19355 (Fcheck_coding_systems_region): Add `const' to local variables.
19356
19357 * print.c (print_object): Use octal form for printing the
19358 contents of a bool vector.
19359
193602008-02-01 Dave Love <fx@gnu.org>
19361
19362 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
19363 <version == 20>: Refuse to load.
19364
193652008-02-01 Dave Love <fx@gnu.org>
19366
19367 * fns.c: Move coding.h.
19368 (Qcodeset, Qdays, Qmonths): New.
19369 (concat): Use CHARACTERP instead of INTEGERP.
19370 (Flocale_codeset): Delete.
19371 (Flanginfo): New function.
19372 (syms_of_fns): Change accordingly.
19373
19374 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
19375
193762008-02-01 Dave Love <fx@gnu.org>
19377
19378 * casetab.c (init_casetab_once, init_casetab_once): Fix
19379 CHAR_TABLE_SET call.
19380
19381 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
19382
19383 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
19384
19385 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
19386 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
19387 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
19388
19389 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
19390
19391 * coding.c (ENCODE_DESIGNATION, decode_eol)
19392 (make_conversion_work_buffer, code_conversion_restore)
19393 (Fdefine_coding_system_internal): Convert Lisp types.
19394 (code_conversion_restore): Use EQ, not ==.
19395 (Fencode_coding_string): Fix code_convert_string call.
19396
19397 * coding.h (code_convert_region): Fix prototype.
19398
19399 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
19400
19401 * fontset.c (fontset_ref, fontset_set, fs_load_font)
19402 (Ffontset_info): Convert Lisp types.
19403
19404 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
19405
19406 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
19407
19408 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
19409
19410 * chartab.c: Include "...h", not <...h> in some cases.
19411
19412 * callproc.c (Fcall_process): Remove unused variables.
19413
194142008-02-01 Dave Love <fx@gnu.org>
19415
19416 * coding.c (Fset_coding_system_priority): Allow null arg list.
19417
194182008-02-01 Dave Love <fx@gnu.org>
19419
19420 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
19421 (Fself_insert_and_exit): Use CHARACTERP.
19422
19423 * callproc.c (Fcall_process): Remove unused vars.
19424
19425 * xterm.c (XTread_socket): Add extra dead keysyms.
19426
19427 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
19428
19429 * dispextern.h: Remove prototypes for redraw_frame,
19430 redraw_garbaged_frames.
19431
19432 * cmds.c (Fself_insert_command): Use CHARACTERP.
19433
19434 * chartab.c (make_sub_char_table): Remove unused var.
19435 (Fset_char_table_default, Fmap_char_table): Doc fix.
19436
19437 * keymap.c (access_keymap): Remove generic char code.
19438 (push_key_description): Use CHARACTERP.
19439
194402008-02-01 Dave Love <fx@gnu.org>
19441
19442 * charset.c: Doc fixes.
19443 (Funify_charset): Extra checking.
19444
194452008-02-01 Dave Love <fx@gnu.org>
19446
19447 * lread.c: Remove some unused variables.
19448 (safe_to_load_p): If safe, return the magic number version byte.
19449 (Fload): Maybe use load-with-code-conversion.
19450
194512008-02-01 Kenichi Handa <handa@m17n.org>
19452
19453 * category.c (Fmodify_category_entry): Don't modify the contents
19454 of category_set for characters out of the range. Avoid
19455 unnecessary modification.
19456
19457 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
19458 Vchar_unify_table. The default value of the table is now nil.
19459
19460 * character.c (syms_of_character): Setup Vchar_width_table for
19461 eight-bit-control and raw-byte chars.
19462
19463 * charset.h (enum define_charset_arg_index): Delete
19464 charset_arg_parents and add charset_arg_subset and
19465 charset_arg_superset.
19466 (enum charset_attr_index): Delete charset_parents and add
19467 charset_subset and charset_superset.
19468 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
19469 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
19470 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
19471 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
19472 (CHARSET_SUPERSET): New macros.
19473 (charset_work): Extern it.
19474 (ENCODE_CHAR): Use charset_work.
19475 (CHAR_CHARSET_P): Adjust for the change of encoder format.
19476 (map_charset_chars): Extern it.
19477
19478 * charset.c (load_charset_map): Set the default value of encoder
19479 and deunifier char-tables to nil.
19480 (map_charset_chars): Change argument. Change callers. Use
19481 map_char_table_for_charset instead of map_char_table.
19482 (Fmap_charset_chars): New optional args from_code and to_code.
19483 (Fdefine_charset_internal): Adjust for the change of
19484 `define-charset' (:parents -> :subset or :superset).
19485 (charset_work): New variable.
19486 (encode_char, syms_of_charset): Adjust for the change of
19487 Fdefine_charset_internal.
19488 (Ffind_charset_string): Setup the vector `charsets' correctly.
19489
19490 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
19491 the previous change.
19492 (char_table_ref_and_range): Adjust for the above change.
19493 (map_sub_char_table_for_charset): New function.
19494 (map_char_table_for_charset): New function.
19495
19496 * keymap.c (describe_vector): Handle a char-table directly here.
19497 (describe_char_table): Delete.
19498
19499 * lisp.h (map_charset_chars): Delete.
19500
195012008-02-01 Dave Love <fx@gnu.org>
19502
19503 * fns.c (count_combining): Comment out (unused).
19504 (Flocale_codeset): New.
19505 (syms_of_fns): Defsubr it.
19506
19507 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
19508 (size_t): Remove.
19509
195102008-02-01 Dave Love <fx@gnu.org>
19511
19512 * Makefile.in (chartab.o): Depend on charset.h.
19513
195142008-02-01 Kenichi Handa <handa@m17n.org>
19515
19516 * character.c (syms_of_character): Set the default value of
19517 Vprintable_chars to Qnil.
19518
195192008-02-01 Dave Love <fx@gnu.org>
19520
19521 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
19522
195232008-02-01 Kenichi Handa <handa@m17n.org>
19524
19525 * charset.c (load_charset_map): Handle the case that from < to
19526 correctly.
19527
19528 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
19529 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
19530 Pay attention to raw-8-bit chars.
19531
195322008-02-01 Kenichi Handa <handa@m17n.org>
19533
19534 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
19535 It is not bytecompiled now.
19536
19537 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
19538 (charset_jisx0208): New variables.
19539 (Fdefine_charset_internal): Setup them if appropriate.
19540 (init_charset_once): Initialize them to -1.
19541
19542 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
19543 (charset_jisx0208): Extern them.
19544
19545 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
19546 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
19547 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
19548 (setup_iso_safe_charsets): Fix arguments to Fassq.
19549 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
19550 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
19551 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
19552 (encode_coding_iso_2022): Change the 1st arg to
19553 ENCODE_ISO_CHARACTER to a variable.
19554
195552008-02-01 Kenichi Handa <handa@m17n.org>
19556
19557 * charset.h (enum define_charset_arg_index): New enums
19558 charset_arg_min_code and charset_arg_max_code.
19559 (struct charset): New member char_index_offset.
19560
19561 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
19562 Take charset->char_index_offset into account.
19563 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
19564 args[charset_arg_max_code]. Setup charset.char_index_offset.
19565 (syms_of_charset): Fix args to Fdefine_charset_internal.
19566
195672008-02-01 Dave Love <fx@gnu.org>
19568
19569 * coding.c (decode_coding_utf_8): Reject overlong sequences.
19570
195712008-02-01 Dave Love <fx@gnu.org>
19572
19573 * coding.c: Doc fixes.
19574 (Fcoding_system_aliases): Fix return value.
19575 (Qmac): Remove (duplicated) definition.
19576
195772008-02-01 Dave Love <fx@gnu.org>
19578
362654a6
JB
19579 * charset.c (Fcharset_priority_list, Fset_charset_priority):
19580 New functions.
aac0c6e3
MR
19581
19582 * character.c (Fstring): Doc fix.
19583
19584 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
19585
362654a6 19586 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
aac0c6e3
MR
19587 (font-encoding-alist): Doc fix.
19588
195892008-02-01 Dave Love <fx@gnu.org>
19590
19591 * term.c (costs_set): Declare static, non-initialized for pcc.
19592 (encode_terminal_code): Remove unused var.
19593
19594 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
19595 for K&R.
19596
19597 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
19598
19599 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
19600 (suffixes): Move out of make_subsidiaries for K&R.
19601
19602 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
19603
19604 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
19605
196062008-02-01 Dave Love <fx@gnu.org>
19607
19608 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
19609
19610 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
19611
196122008-02-01 Yong Lu <lyongu@asia-infonet.com>
19613
19614 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
19615
19616 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
19617
196182008-02-01 Kenichi Handa <handa@m17n.org>
19619
19620 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
19621 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
19622
196232008-02-01 Kenichi Handa <handa@m17n.org>
19624
19625 * coding.c (decode_coding_charset): Adjust for the change of
19626 Fdefine_coding_system_internal.
19627 (Fdefine_coding_system_internal): For a coding system of
19628 `charset' type, store a list of charset IDs in
19629 `charset_attr_charset_valids' element of coding attributes.
19630
196312008-02-01 Kenichi Handa <handa@m17n.org>
19632
19633 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
19634 (emacs_mule_char): New arg src. Delete arg `composition'. Change
19635 caller. Handle 2-byte and 3-byte charsets correctly.
19636 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
19637 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
19638 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
19639 (DECODE_EMACS_MULE_21_COMPOSITION): Call
19640 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
19641 sequence.
19642 (decode_coding_emacs_mule): Handle composition correctly. Rewind
19643 `src' and `consumed_chars' correctly before calling emacs_mule_char.
19644 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
19645 and alt&rule composition.
19646 (decode_coding_iso_2022): Handle composition correctly.
19647 (init_coding_once): Setup emacs_mule_bytes for private charsets.
19648
19649 * charset.c (Fdefine_charset_internal): Fix bug for the case of
19650 re-defining a charset. If the charset has :emacs-mule-id, setup
19651 emacs_mule_bytes.
19652 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
19653
196542008-02-01 Kenichi Handa <handa@m17n.org>
19655
19656 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
19657 (encode_coding_big5, encode_coding_charset): If coding requires safe
19658 encoding, produce a character specified by
19659 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
19660
196612008-02-01 Dave Love <fx@gnu.org>
19662
19663 * xterm.c (XSetIMValues): Declare.
19664
19665 * process.c: Conditionally include sys/wait.h, pty.h.
19666
19667 * print.c (print_object): Fix print format for 64-bit systems.
19668
19669 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
19670
19671 * buffer.c (emacs_strerror): Declare.
19672
19673 * fontset.c (Fclear_face_cache): Declare.
19674 (accumulate_font_info): Comment-out (unused).
19675 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
19676 variables.
19677
19678 * character.h (string_escape_byte8): Declare.
19679
19680 * charset.c (load_charset_map, load_charset_map_from_file): Remove
19681 unused vars.
19682 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
19683 (Fmap_charset_chars): Doc fix.
19684
19685 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
19686 (Fset_coding_system_priority, Fset_coding_system_priority)
19687 (Fdefine_coding_system_internal): Doc fix.
19688
196892008-02-01 Dave Love <fx@gnu.org>
19690
19691 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
19692
196932008-02-01 Kenichi Handa <handa@m17n.org>
19694
19695 * character.c (string_escape_byte8): Make multibyte string with
19696 correct size.
19697
19698 * charset.c (Fmake_char): Delete unnecessary code.
19699
197002008-02-01 Kenichi Handa <handa@m17n.org>
19701
19702 * xfns.c (x_encode_text): Allocate coding.destination here, and
19703 call encode_coding_object with dst_object Qnil.
19704
19705 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
19706 multibyte form correctly.
19707
19708 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
19709 against Vfont_encoding_alist.
19710
19711 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
19712 handling of charset list.
19713 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
19714 (decode_coding_object): Move point to coding->dst_pos before
19715 calling post-read-conversion function.
19716 (encode_coding_object): Give correct arguments to
19717 pre-write-conversion. Ignore the return value of
19718 pre-write-conversion function. Pay attention to the case that
19719 pre-write-conversion changes the current buffer. If dst_object is
19720 Qt, even if coding->src_bytes is zero, allocate at least one byte
19721 to coding->destination.
19722
19723 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
19724
19725 * charset.c (Fmake_char): Make it more backward compatible.
19726 (Fmap_charset_chars): Fix docstring.
19727
197282008-02-01 Dave Love <fx@gnu.org>
19729
19730 * coding.c: Doc fixes.
19731 (Fdefine_coding_system_alias): Use names, not symbols, in
19732 coding-system-alist.
19733
197342008-02-01 Kenichi Handa <handa@m17n.org>
19735
19736 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
19737 of calling free_realized_face.
19738
197392008-02-01 Yong Lu <lyongu@asia-infonet.com>
19740
19741 * charset.c (read_hex): Don't treat SPC as a comment starter.
19742 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
19743 (Fdecode_char): Fix typo.
19744
197452008-02-01 Kenichi Handa <handa@m17n.org>
19746
19747 * charset.h (struct charset): New member `code_space_mask'.
19748
19749 * coding.c (coding_set_source): Delete the local variable beg_byte.
19750 (encode_coding_charset, Fdefine_coding_system_internal):
19751 Delete the local variable charset.
19752 (Fdefine_coding_system_internal): Setup
19753 attrs[coding_attr_charset_valids] correctly.
19754
19755 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
19756 member to check if CODE is valid or not.
19757 (Fdefine_charset_internal): Initialize `code_space_mask' member.
19758 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
19759 is within the range of charset->min_code and carset->max_code.
19760
197612008-02-01 Dave Love <fx@gnu.org>
19762
19763 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
19764
19765 * dispextern.h (generate_ascii_font): Fix return type.
19766
19767 * xfaces.c (generate_ascii_font): Fix arg declaration.
19768
19769 * coding.c (coding_inherit_eol_type)
19770 (Fset_terminal_coding_system_internal)
19771 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
19772
197732008-02-01 Kenichi Handa <handa@m17n.org>
19774
19775 * coding.c (decode_coding_charset, encode_coding_charset): Handle
19776 multiple charsets correctly.
19777
197782008-02-01 Kenichi Handa <handa@m17n.org>
19779
19780 * search.c (boyer_moore): Fix handling of multibyte character
19781 translation.
19782
19783 * xdisp.c (display_mode_element): When the variable `elt' is
19784 changed, update `this' and `lisp_string'.
19785
197862008-02-01 Kenichi Handa <handa@m17n.org>
19787
19788 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
19789
19790 * callproc.c (Fcall_process): Be sure to give the current buffer
19791 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
19792
19793 * charset.c (struct charset_map_entries): New struct.
19794 (load_charset_map): Rename from parse_charset_map. New args
19795 entries and n_entries. Change caller.
19796 (load_charset_map_from_file): Rename from load_charset_map.
19797 Change caller. New arg control_flag. Call load_charset_map at
19798 the tail.
19799 (load_charset_map_from_vector): New function.
19800 (Fdefine_charset_internal): Setup charset.compact_codes_p.
19801 (encode_char): If the charset is compact, change a character index
19802 to a code point.
19803
19804 * coding.c (coding_alloc_by_making_gap): Check the case that the
19805 source and destination are the same correctly.
19806 (decode_coding_raw_text): Set coding->consumed_char and
19807 coding->consumed to 0.
19808 (produce_chars): If coding->chars_at_source is nonzero, update
19809 coding->consumed_char and coding->consumed before calling
19810 alloc_destination.
19811 (Fdefine_coding_system_alias): Register ALIAS in
19812 Vcoding_system_alist.
19813 (syms_of_coding): Define `no-conversion' coding system at the tail.
19814
19815 * fileio.c (Finsert_file_contents): Set coding_system instead of
19816 val. If the current buffer is multibyte, always call
19817 decode_coding_gap.
19818
19819 * xfaces.c (try_font_list): Give higher priority to fontset's
19820 family than face's family.
19821
198222008-02-01 Kenichi Handa <handa@m17n.org>
19823
19824 * callproc.c (Fcall_process): Be sure to give the current buffer
19825 to decode_coding_c_string.
19826
19827 * xfaces.c (try_font_list): Give a family specified in a fontset
19828 higher priority than a family specified in a face.
19829
198302008-02-01 Kenichi Handa <handa@m17n.org>
19831
19832 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
19833 Fix arguments to insert_from_buffer.
19834
19835 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
19836
198372008-02-01 Kenichi Handa <handa@m17n.org>
19838
19839 * coding.c (produce_chars): Set the variable `multibytep' correctly.
19840 (decode_coding_gap): Set coding->dst_multibyte correctly.
19841
198422008-02-01 Kenichi Handa <handa@m17n.org>
19843
19844 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
19845 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
19846 (encode_coding_utf_16): Substitute coding->default_char for
19847 non-Unicode characters.
19848 (decode_coding): Don't call record_insert here.
19849 (setup_coding_system): Initialize `surrogate' of
19850 coding->spec.utf_16 to 0.
19851 (EMIT_ONE_BYTE): Fix for multibyte case.
19852
19853 * insdel.c (insert_from_gap): Call record_insert.
19854
198552008-02-01 Kenichi Handa <handa@m17n.org>
19856
19857 * casefiddle.c (casify_region): Fix multibyte case.
19858
19859 * character.c (c_string_width): Add return type `int'.
19860 (char_string_with_unification): Delete arg ADVANCED.
19861
19862 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
19863 (CHAR_STRING): Adjust for the change of char_string_with_unification.
19864 (CHAR_STRING_ADVANCE): Make it do-while statement.
19865
19866 * chartab.c (sub_char_table_set_range): Optimize for the case
19867 DEPTH == 3. Add workaround code for a GCC optimization bug.
19868
19869 * charset.c (parse_charset_map): Remove an unused variable.
19870
19871 * coding.c: Delete unused variables.
19872
19873 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
19874 earlier. If inserted is zero and the coding system doesn't
19875 require flushing, don't call decode_coding_gap.
19876
19877 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
19878
198792008-02-01 Kenichi Handa <handa@m17n.org>
19880
19881 The following changes are for using Unicode as an internal
19882 character model, and use UTF-8 format for buffer/string
19883 representation.
19884
19885 * .gdbinit (xchartable): Adjust for the change of char table structure.
19886 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
19887
19888 * Makefile.in (obj): Add character.o and chartab.o.
19889 (lisp, shortlisp): Remove utf-8.elc.
19890 (*.o): For many files, change dependency on charset.h to
19891 character.h, and add dependency on character.h.
19892 (character.o, chartab.o): New targets.
19893
19894 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
19895 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
19896 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
19897 of "charset.h".
19898
19899 * dired.c, filelock.c: Include "character.h".
19900
19901 * alloc.c: Include "character.h" instead of "charset.h".
19902 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
19903 (syms_of_alloc): Remove defsubr for Smake_char_table.
19904
19905 * buffer.c: Include "character.h" instead of "charset.h", don't
19906 include "coding.h".
19907 (Fset_buffer_multibyte): Adjust for UTF-8.
19908
19909 * buffer.h: EXFUN Fbuffer_live_p.
19910
19911 * callproc.c: Include "character.h" instead of "charset.h".
19912 (Fcall_process): Big change for the new code-conversion APIs.
19913
19914 * casetab.c: Include "character.h" instead of "charset.h".
19915 (set_canon, set_identity, shuffle): Adjust for the new
19916 map_char_table spec.
19917 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
19918 accessing the char table structure.
19919
19920 * chartab.c: New file that implements char table.
19921
19922 * category.c: Include "character.h".
19923 (copy_category_entry): New function.
19924 (copy_category_table): Call map_char_table and copy_category_entry.
19925 (Fmake_category_table): Initialize all top-level slots.
19926 (char_category_set): New function.
19927 (modify_lower_category_set): Delete.
19928 (Fmodify_category_entry): Call char_table_ref_and_range.
19929
19930 * category.h (CATEGORY_SET): Just call char_category_set.
19931
19932 * ccl.c: Include "character.h".
19933 (Qccl, Qcclp): New variables.
19934 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
19935 it's less than 256.
19936 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
19937 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
19938 and DST type.
19939 (ccl_driver): Change types of argument, adjust code accordingly.
19940 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
19941 ccl_driver.
19942 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
19943
19944 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
19945 New members src_multibyte, dst_multibyte, consumed, and produced.
19946 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
19947 (CODING_SPEC_CCL_PROGRAM): New macro.
19948 (ccl_driver): Update prototype.
19949 (Qccl, Qcclp, Fccl_program_p): Extern them.
19950 (CHECK_CCL_PROGRAM): New macro.
19951
19952 * character.c, character.h, chartab.c: New files.
19953
19954 * charset.c: Mostly re-written. Move character and multibyte sequence
19955 handling codes to character.c.
19956
19957 * charset.h: Mostly re-written. Move character and multibyte sequence
19958 handling codes to character.h.
19959
19960 * coding.c, coding.h: Mostly re-written.
19961
19962 * composite.c: Include "character.h" instead of "charset.h".
19963 (CHAR_WIDTH): Move to character.h.
19964 (HASH_KEY, HASH_VALUE): Delete.
19965
19966 * composite.h (enum composition_method): Change order of enumeration
19967 symbols.
19968
19969 * data.c: Include "character.h" instead of "charset.h".
19970 (Faref): Call CHAR_TABLE_REF for a char table.
19971 (Faset): Call CHAR_TABLE_SET for a char table.
19972
19973 * dispextern.h (free_realized_face, check_face_attribytes)
19974 (generate_ascii_font): Extern them.
19975 (free_realized_multibyte_face): Delete extern.
19976
19977 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
19978 table structure.
19979
19980 * editfns.c: Include "character.h" instead of "charset.h".
19981 (Fchar_to_string): Always call CHAR_STRING.
19982
19983 * emacs.c (main): Call init_charset_once, init_charset,
19984 syms_of_chartab, and syms_of_character.
19985
19986 * fileio.c: Include "character.h" instead of "charset.h".
19987 (Finsert_file_contents): Big change for the new code-conversion API.
19988 (choose_write_coding_system, Fwrite_region): Likewise.
19989 (build_annotations_2): Delete.
19990 (e_write): Big change for the new code-conversion API.
19991
19992 * fns.c: Include "character.h" instead of "charset.h".
19993 (copy_sub_char_table): Move to chartab.c.
19994 (Fcopy_sequence): Call copy_char_table for a char table.
19995 (concat): Delete codes calling count_multibyte.
19996 (string_char_to_byte, string_byte_to_char): Adjust for the new
19997 multibyte form.
19998 (internal_equal): Adjust for the change of char table structure.
19999 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
20000 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
20001 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
20002 (char_table_translate, optimize_sub_char_table)
20003 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
20004 chartab.c.
20005 (char_table_ref_and_index): Delete.
20006 (HASH_KEY, HASH_VALUE): Move to lisp.h.
20007 (Fmd5): Call preferred_coding_system instead of accessing
20008 Vcoding_category_list. Adjust for the new code-conversion API.
20009 (syms_of_fns): Move defsubr for char table related functions to
20010 chartab.c.
20011
20012 * fontset.c: Mostly re-written.
20013
20014 * fontset.h (struct font_info): Change type of the member encoding_type.
20015 (enum FONT_SPEC_INDEX): New enum.
20016 (fontset_font_pattern, fs_load_font): Update prototype.
20017 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
20018
20019 * indent.c: Include "character.h" instead of "charset.h".
20020 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
20021
20022 * insdel.c: Include "character.h" instead of "charset.h".
20023 (copy_text): Don't refer to Vnonascii_translation_table.
20024 (insert_from_gap): New function.
20025
20026 * keyboard.c: Include "character.h" instead of "charset.h".
20027 (command_loop_1): Never call direct_output_forward_char before
20028 a non-ASCII character.
20029 (read_char): If Vkeyboard_translate_table is a char table, always
20030 translate a character.
20031
20032 * keymap.c: Include "character.h".
20033 (store_in_keymap): Handle the case that IDX is a cons.
20034 (Fdefine_key): Handle the case that KEY is a cons and the car part
20035 is also a cons (range).
20036 (push_key_description): Adjust for the new character code.
20037 (describe_vector): Call describe_char_table for a char table.
20038 (describe_char_table): New function.
20039
20040 * keymap.h (describe_char_table): Extern it.
20041
20042 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
20043 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
20044 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
20045 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
20046 Delete.
20047 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
20048 structure.
20049 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
20050 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
20051 (CHARTAB_SIZE_BITS_3): New macros.
20052 (chartab_size): Extern it.
20053 (struct Lisp_Char_Table): Re-design.
20054 (struct Lisp_Sub_Char_Table): New structure.
20055 (HASH_KEY, HASH_VALUE): Move from fns.c.
20056 (CHARACTERBITS): Define as 22.
20057 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
20058 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
20059 (GC_SUB_CHAR_TABLE_P): New macro.
20060 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
20061 (code_convert_string_norecord): Deleted extern.
20062 (init_character_once, syms_of_character, init_charset)
20063 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
20064
20065 * lread.c: Include "character.h".
20066 (read_multibyte): New arg NBYTES.
20067 (read_escape): Change the meaning of returned *BYTEREP.
20068 (to_multibyte): Delete.
20069 (read1): Adjust the handling of char table and string.
20070
20071 * print.c: Include "character.h" instead of "charset.h".
20072 (print_string): Convert 8-bit raw bytes to octal form by
20073 string_escape_byte8.
20074 (print_object): Adjust for the new multibyte form. Print 8-bit
20075 raw bytes always in octal form. Handle sub char table correctly.
20076
20077 * process.c: Include "character.h" instead of "charset.h".
20078 (read_process_output, send_process): Adjust for the new
20079 code-conversion API.
20080
20081 * puresize.h (BASE_PURESIZE): Increase.
20082
20083 * regex.c: Include "character.h" instead of "charset.h".
20084 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
20085 (regex_compile): Accept a range whose starting and ending
20086 character have different leading bytes.
20087 (analyse_first): Adjust for the above change.
20088
20089 * search.c: Include "character.h" instead of "charset.h".
20090 (search_buffer, boyer_moore): Adjust for the new multibyte form.
20091 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
20092
20093 * syntax.c: Include "character.h" instead of "charset.h".
20094 (syntax_parent_lookup): Delete.
20095 (Fmodify_syntax_entry): Accept a cons as CHAR.
20096 (skip_chars): Adjust for the new multibyte form.
20097 (init_syntax_once): Call char_table_set_range instead of directly
20098 accessing the structure of a char table.
20099
20100 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
20101 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
20102 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
20103 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
20104
20105 * term.c: Include "buffer.h" and "character.h".
20106 (encode_terminal_code, write_glyphs): Adjust for the new
20107 code-conversion API.
20108 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
20109
20110 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
20111
20112 * xdisp.c: Include "character.h".
20113 (get_next_display_element): Adjust for the new multibyte form.
20114 (disp_char_vector): Adjust for the new char table structure.
20115 (decode_mode_spec_coding): Adjust for the new structure of
20116 coding system.
20117 (decode_mode_spec): Adjust for the new code-conversion API.
20118
20119 * xfaces.c: Include "character.h" instead of "charset.h".
20120 (load_face_font): Adjust for the change of choose_face_font and
20121 FS_LOAD_FONT.
20122 (generate_ascii_font): New function.
20123 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
20124 (set_font_frame_param): Adjust for the change of choose_face_font.
20125 (free_realized_face): Make it public.
20126 (free_realized_faces_for_fontset): Rename from
20127 free_realized_multibyte_face. Free also faces realized for ASCII.
20128 (choose_face_font): Change arguments. Adjust for the change of
20129 fontset_font_pattern and FS_LOAD_FONT.
20130
20131 * xfns.c: Include "character.h".
20132 (x_encode_text): Adjust for the new code-conversion API.
20133
20134 * xselect.c: Don't include "charset.h".
20135 (selection_data_to_lisp_data): Adjust for the new code conversion API.
20136
20137 * xterm.c: Include "character.h".
20138 (x_encode_char): New argument CHARSET. Change caller.
20139 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
20140 Call ENCODE_CHAR instead of SPLIT_CHAR.
20141 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
20142 CHAR_WIDTH instead of CHARSET_WIDTH.
20143 (XTread_socket): Adjust for the new code-conversion API.
20144 (x_new_font): Adjust for the change of FS_LOAD_FONT.
20145 (x_load_font): Adjust for the change of struct font.
20146
201472008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
20148
20149 * xfaces.c (face_at_buffer_position): Remove unused vars.
20150
201512008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20152
20153 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
20154 Fix overflow checking.
20155
201562008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20157
20158 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
20159 Cancel previous change.
20160
201612008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
20162
20163 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
20164 ccl->eight_bit_control. Fix check for buffer overflow.
20165 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
20166 (ccl_driver): Initialize extra_bytes to 0.
20167
201682008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
20169
20170 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
20171 return it ORed with ctrl_modifier.
20172
201732008-01-29 Miles Bader <miles@gnu.org>
20174
20175 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
20176
201772008-01-28 Jason Rumney <jasonr@gnu.org>
20178
20179 * w32.c (stat): Don't double check for networked drive.
20180
201812008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
20182
20183 * window.c (run_window_configuration_change_hook): New function.
20184 Code extracted from set_window_buffer. Set the selected frame.
20185 (set_window_buffer): Use it.
20186 * window.h (run_window_configuration_change_hook): Declare.
20187 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
20188
20189 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
20190
201912008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
20192
20193 * Makefile.in: Remove references to unused macros.
20194
201952008-01-26 Eli Zaretskii <eliz@gnu.org>
20196
20197 * w32.c (g_b_init_get_sid_sub_authority)
20198 (g_b_init_get_sid_sub_authority_count): New static variables.
20199 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
20200 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
20201 (init_user_info): Use them to retrieve uid and gid.
20202 Use 500/513, the Windows defaults, as Administrator's uid/gid.
20203 (fstat): Use pw_uid and pw_gid from the_passwd structure for
20204 st_uid and st_gid of the file.
20205
202062008-01-26 Jason Rumney <jasonr@gnu.org>
20207
20208 * w32.c (logon_network_drive): New function.
20209 (stat): Use it.
20210
202112008-01-26 Chong Yidong <cyd@stupidchicken.com>
20212
20213 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
20214 invisible text covered with an ellipsis.
20215
202162008-01-25 Richard Stallman <rms@gnu.org>
20217
20218 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
20219 jump back to beginning. Move some other initializations after that.
20220 (Qwindow_text_change_functions, Vwindow_text_change_functions):
20221 New variables.
20222 (syms_of_xdisp): Init them.
20223
20224 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
20225
20226 * buffer.c (reset_buffer_local_variables):
20227 Implement `permanent-local-hook'.
20228 (Qpermanent_local_hook): New variable.
20229 (syms_of_buffer): Init and staticpro it.
20230
202312008-01-25 Michael Albinus <michael.albinus@gmx.de>
20232
20233 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
20234
202352008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
20236
20237 * fns.c (Fclrhash): Return TABLE.
20238
202392008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20240
20241 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
20242 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
20243 is set even without positional changes.
20244 (x_scroll_bar_clear): Set bar->redraw_needed_p.
20245
20246 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
20247
202482008-01-23 Jason Rumney <jasonr@gnu.org>
20249
20250 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
20251
20252 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
20253 the unicode range available in MULE by locale-coding-system.
20254 Improve dbcs lead byte detection. Set event timestamp and modifiers
20255 earlier.
20256
202572008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20258
20259 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
20260 [MAC_OSX] (init_mac_osx_environment): Initialize it.
20261 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
20262 when used on child processes.
20263
202642008-01-21 Michael Albinus <michael.albinus@gmx.de>
20265
20266 * dbusbind.c (Fdbus_method_return_internal): Rename from
20267 Fdbus_method_return.
20268 (Fdbus_unregister_object): Move to dbus.el.
20269 (Fdbus_call_method, Fdbus_method_return_internal)
20270 (Fdbus_send_signal): Improve debug messages.
20271
202722008-01-20 Martin Rudalics <rudalics@gmx.at>
20273
20274 * undo.c (undo_inhibit_record_point): New variable.
20275 (syms_of_undo): Initialize it.
20276 (record_point): Don't record point when undo_inhibit_record_point
20277 is set.
20278
202792008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
20280
20281 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
20282
20283 * xdisp.c (Qauto_hscroll_mode): New var.
20284 (syms_of_xdisp): Initialize it.
20285 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
20286 window's buffer.
20287 (hscroll_windows): Don't check automatic_hscrolling_p here.
20288
20289 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
20290 vscroll if we're setting window-buffer to the value it already has.
20291
202922008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
20293
20294 * m/intel386.h: Remove references to XENIX.
20295
202962008-01-17 Andreas Schwab <schwab@suse.de>
20297
20298 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
20299 instead of HAVE_X86_64_LIB64_DIR.
20300 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
20301
203022008-01-17 Glenn Morris <rgm@gnu.org>
20303
20304 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
20305 to HAVE_X86_64_LIB64_DIR.
20306
203072008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
20308
20309 * s/irix3-3.h:
20310 * s/irix4-0.h:
20311 * s/386-ix.h:
20312 * s/domain.h:
20313 * s/hpux9-x11r4.h:
20314 * s/hpux9shxr4.h: Remove files for systems no longer supported.
20315
20316 * sysdep.c: Remove code containing references to symbols defined
20317 by unsupported systems.
20318
203192008-01-16 Glenn Morris <rgm@gnu.org>
20320
20321 * coding.c (select-safe-coding-system-function): Doc fix.
20322
203232008-01-15 Glenn Morris <rgm@gnu.org>
20324
20325 * config.in: Revert 2008-01-13 change: this is a generated file.
20326
203272008-01-13 Tom Tromey <tromey@redhat.com>
20328
20329 * lisp.h: Fix typo.
20330
203312008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
20332
20333 * m/sequent-ptx.h:
20334 * m/sequent.h:
20335 * s/ptx.h:
20336 * s/ptx4-2.h:
20337 * s/ptx4.h: Remove files for systems no longer supported.
20338
20339 * callproc.c (Fcall_process): Fix previous change.
20340
203412008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
20342
20343 * unexsunos4.c: Remove file, system not supported anymore.
20344
20345 * m/mips.h:
20346 * m/intel386.h:
20347 * callproc.c:
20348 * config.in:
20349 * ecrt0.c:
20350 * emacs.c:
20351 * fileio.c:
20352 * frame.c:
20353 * getpagesize.h:
20354 * keyboard.c:
20355 * lread.c:
20356 * process.c:
20357 * puresize.h:
20358 * sysdep.c:
20359 * systty.h:
20360 * syswait.h:
20361 * unexec.c:
20362 * xdisp.c:
20363 * alloc.c: Remove code containing references to symbols defined by
20364 unsupported systems.
20365
203662008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
20367
20368 * coding.c (detect_coding_mask): Fix previous change.
20369
203702008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
20371
20372 * coding.c (detect_coding_iso2022): New arg
20373 latin_extra_code_state. Allow Latin extra codes only
20374 when *latin_extra_code_state is nonzero.
20375 (detect_coding_mask): If there is a NULL byte, detect the encoding
20376 as UTF-16 or binary. If Latin extra codes exist, detect the
20377 encoding as ISO-2022 only when there's no other proper encoding is
20378 found.
20379
203802008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20381
20382 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
20383 #ifdef MAC_OS.
20384
203852008-01-08 Richard Stallman <rms@gnu.org>
20386
20387 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
20388
203892008-01-06 Nick Roberts <nickrob@snap.net.nz>
20390
20391 * keyboard.c (parse_menu_item): Don't enclose key bindings on
20392 menu bar in parentheses.
20393
203942008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
20395
20396 * m/7300.h:
20397 * m/acorn.h:
20398 * m/alliant-2800.h:
20399 * m/alliant.h:
20400 * m/alliant1.h:
20401 * m/alliant4.h:
20402 * m/altos.h:
20403 * m/amdahl.h:
20404 * m/apollo.h:
20405 * m/att3b.h:
20406 * m/aviion-intel.h:
20407 * m/aviion.h:
20408 * m/celerity.h:
20409 * m/clipper.h:
20410 * m/cnvrgnt.h:
20411 * m/convex.h:
20412 * m/cydra5.h:
20413 * m/delta88k.h:
20414 * m/dpx2.h:
20415 * m/dual.h:
20416 * m/elxsi.h:
20417 * m/f301.h:
20418 * m/gould-np1.h:
20419 * m/gould.h:
20420 * m/i860.h:
20421 * m/ibmps2-aix.h:
20422 * m/ibmrt-aix.h:
20423 * m/ibmrt.h:
20424 * m/irist.h:
20425 * m/is386.h:
20426 * m/isi-ov.h:
20427 * m/mega68.h:
20428 * m/mg1.h:
20429 * m/news-r6.h:
20430 * m/news-risc.h:
20431 * m/news.h:
20432 * m/nh3000.h:
20433 * m/nh4000.h:
20434 * m/ns16000.h:
20435 * m/ns32000.h:
20436 * m/nu.h:
20437 * m/orion.h:
20438 * m/orion105.h:
20439 * m/paragon.h:
20440 * m/pfa50.h:
20441 * m/plexus.h:
20442 * m/pyramid.h:
20443 * m/pyrmips.h:
20444 * m/sh3el.h:
20445 * m/sps7.h:
20446 * m/sr2k.h:
20447 * m/stride.h:
20448 * m/sun1.h:
20449 * m/sun2.h:
20450 * m/sun3-68881.h:
20451 * m/sun3-fpa.h:
20452 * m/sun3-soft.h:
20453 * m/sun3.h:
20454 * m/sun386.h:
20455 * m/symmetry.h:
20456 * m/tad68k.h:
20457 * m/tahoe.h:
20458 * m/targon31.h:
20459 * m/tek4300.h:
20460 * m/tekxd88.h:
20461 * m/tower32.h:
20462 * m/tower32v3.h:
20463 * m/ustation.h:
20464 * m/wicat.h:
20465 * m/xps100.h:
20466 * s/cxux.h:
20467 * s/cxux7.h:
20468 * s/dgux.h:
20469 * s/dgux4.h:
20470 * s/dgux5-4-3.h:
20471 * s/dgux5-4r2.h:
20472 * s/esix.h:
20473 * s/esix5r4.h:
20474 * s/hiuxmpp.h:
20475 * s/hiuxwe2.h:
20476 * s/iris3-5.h:
20477 * s/iris3-6.h:
20478 * s/isc2-2.h:
20479 * s/isc3-0.h:
20480 * s/isc4-0.h:
20481 * s/isc4-1.h:
20482 * s/newsos5.h:
20483 * s/newsos6.h:
20484 * s/osf1.h:
20485 * s/osf5-0.h:
20486 * s/riscix1-1.h:
20487 * s/riscix12.h:
20488 * s/sco4.h:
20489 * s/sco5.h:
20490 * s/sunos4-0.h:
20491 * s/sunos4-1.h:
20492 * s/sunos413.h:
20493 * s/sunos4shr.h:
20494 * s/umax.h:
20495 * s/unipl5-2.h:
20496 * s/xenix.h:
20497 * cxux-crt0.s:
20498 * unexapollo.c:
20499 * unexconvex.c:
20500 * unexenix.c:
20501 * unexsni.c: Remove files for systems no longer supported.
20502
20503 * m/intel386.h: Remove references to unsupported systems.
20504
20505 * w32.c (get_emacs_configuration): Remove reference to i860.
20506
20507 * sysdep.c: Remove dead code.
20508
205092008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
20510
20511 * s/rtu.h:
20512 * m/masscomp.h: Remove files. Platform is obsolete.
20513
205142008-01-04 Michael Albinus <michael.albinus@gmx.de>
20515
20516 * dbusbind.c (Fdbus_method_return): New function.
20517 (xd_read_message): Add the serial number to the event.
20518 (Fdbus_register_method): Activate the function.
20519
205202008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
20521
20522 * keyboard.c (read_key_sequence): Fix typo.
20523
205242008-01-03 Michael Albinus <michael.albinus@gmx.de>
20525
20526 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
20527 (xd_signature, xd_append_arg): Handle element type detection for
20528 empty arrays.
20529 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
20530 SDATA () calls; this must be solved more general.
20531 (Fdbus_register_signal): Use SBYTES instead of strlen.
20532
205332008-01-03 Magnus Henoch <magnus@zemdatav>
20534
20535 * dbusbind.c (xd_append_arg): Use unsigned char instead of
20536 unsigned int for byte values (necessary for big-endian platform).
20537 (Fdbus_call_method): Handle the case of no returned arguments.
20538
205392007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
20540
20541 * dbusbind.c (xd_read_message): Use non-static input_event struct.
20542
205432007-12-31 Magnus Henoch <mange@freemail.hu>
20544
20545 * dbusbind.c (xd_signature): Signature of variant is just "v".
20546
205472007-12-30 Michael Albinus <michael.albinus@gmx.de>
20548
20549 * dbusbind.c: Fix several errors and compiler warnings.
20550 Reported by Tom Tromey <tromey@redhat.com>.
20551 (XD_ERROR, XD_DEBUG_MESSAGE)
20552 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
20553 (xd_append_arg): Part for basic D-Bus types rewritten.
20554 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
20555 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
20556 appropriate.
20557 (xd_read_message): Return Qnil. Don't signal an error; it is not
20558 useful during event reading.
20559 (Fdbus_register_signal): Signal an error if the check for
20560 FUNCTIONP fails.
20561 (Fdbus_register_method): New function. The implementation is not
20562 complete, the call of the function signals an error therefore.
20563 (Fdbus_unregister_object): New function, renamed from
20564 Fdbus_unregister_signal. The initial check signals an error, if
20565 the object is not well formed.
20566
205672007-12-30 Richard Stallman <rms@gnu.org>
20568
20569 * textprop.c (get_char_property_and_overlay):
20570 Signal error if POSITION is out of range in a buffer.
20571
205722007-12-29 Martin Rudalics <rudalics@gmx.at>
20573
20574 * w32fns.c (Fx_create_frame): Make copy of frame parameters
20575 because the original parameters are in pure storage now.
20576
205772007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20578
20579 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
20580
205812007-12-22 Eli Zaretskii <eliz@gnu.org>
20582
20583 * callint.c (syms_of_callint) <command-history>: Add reference to
20584 history-length in the doc string.
20585
205862007-12-17 Jason Rumney <jasonr@gnu.org>
20587
20588 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
20589 before passing as wParam.
20590
205912007-12-22 Michael Albinus <michael.albinus@gmx.de>
20592
20593 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
20594 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
20595 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
20596 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
20597 as number.
20598 (Fdbus_call_method): Fix docstring.
20599
206002007-12-21 Michael Albinus <michael.albinus@gmx.de>
20601
20602 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
20603 New macros.
20604 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
20605 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
20606 Simplify.
20607 (xd_signature): New function.
20608 (xd_append_arg): Compute also signatures. Major rewrite.
20609 (xd_retrieve_arg): Make debug messages friendly.
20610 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
20611 Check for signatures of arguments.
20612
206132007-12-19 Michael Albinus <michael.albinus@gmx.de>
20614
20615 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
20616 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
20617 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
20618 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
20619 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
20620 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
20621 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
20622 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
20623 (xd_retrieve_value): Remove. Functionality included in ...
20624 (xd_append_arg): New function.
20625 (Fdbus_call_method, Fdbus_send_signal): Apply it.
20626
206272007-12-16 Michael Albinus <michael.albinus@gmx.de>
20628
20629 * dbusbind.c (top): Include <stdio.h>.
20630 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
20631 dbus_message_new_method_call and dbus_message_new_signal.
20632 (Fdbus_register_signal): Rename unique_name to uname.
20633 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
20634 non-existing unique name. Fix typos in matching rule. Return an
20635 object which is useful in Fdbus_unregister_signal.
20636 (Fdbus_unregister_signal): Reimplementation, in order to remove
20637 only the corresponding entry.
20638 (Vdbus_registered_functions_table): Change the order of entries.
20639 Apply these changes in xd_read_message and Fdbus_register_signal.
20640
206412007-12-16 Andreas Schwab <schwab@suse.de>
20642
20643 * fileio.c (Finsert_file_contents): Fix overflow check to not
20644 depend on undefined integer overflow.
20645
206462007-12-14 Jason Rumney <jasonr@gnu.org>
20647
20648 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
20649 for characters above 127.
20650
206512007-12-13 Jason Rumney <jasonr@gnu.org>
20652
20653 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
20654 before dereferencing array.
20655 (lookup_vk_code): Remove zero comparison.
20656
206572007-12-14 Michael Albinus <michael.albinus@gmx.de>
20658
20659 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
20660 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
20661 Use `unsigned int' instead of `uint'.
20662 (xd_read_message, Fdbus_register_signal): Split expressions into
20663 multiple lines before operators "&&" and "||", according to the
20664 GNU Coding Standards.
20665
206662007-12-14 Eli Zaretskii <eliz@gnu.org>
20667
20668 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
20669
206702007-12-12 Juri Linkov <juri@jurta.org>
20671
20672 * buffer.c (Frename_buffer): In interactive spec replace
20673 `read-buffer' with `read-string' that uses `buffer-name-history'
20674 as history, and the current buffer's name as default.
20675
206762007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
20677
20678 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
20679 manipulating the backtrace manually.
20680 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
20681 (struct backtrace, backtrace_list): Remove.
20682 (command_loop_1): Remove dead var `no_direct'.
20683
20684 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
20685 preserve non-built-in buffer-local variables.
20686 (Fkill_all_local_variables): Don't re-create&re-set permanent
20687 buffer-local variables.
20688
206892007-12-09 Juri Linkov <juri@jurta.org>
20690
20691 * buffer.c (Frename_buffer): Change interactive spec from "s" to
20692 Lisp code that uses `read-buffer' with current buffer as default.
20693
206942007-12-08 Michael Albinus <michael.albinus@gmx.de>
20695
20696 * dbusbind.c (xd_read_message): Generate an event for every
20697 registered handler. There might be several handlers registered
20698 for the same signal.
20699 (Fdbus_register_signal): Don't overwrite a registration for the
20700 same signal. Add a new registration if handlers are different.
20701 (Vdbus_registered_functions_table): Rework doc string.
20702
207032007-12-07 Michael Albinus <michael.albinus@gmx.de>
20704
20705 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
20706 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
20707 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
20708 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
20709 Unify argument lists.
20710 (xd_read_message, Fdbus_register_signal): Reorder and extend event
20711 arguments and hash table keys. Use unique name for service.
20712 (Fdbus_unregister_signal): Remove checks.
20713 (Vdbus_registered_functions_table): Fix doc string.
20714
207152007-12-05 Magnus Henoch <mange@freemail.hu>
20716
20717 * process.c (make_process): Initialize pty_flag to 0.
20718
207192007-12-05 Jason Rumney <jasonr@gnu.org>
20720
20721 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
20722 specified XBMs.
20723
207242007-12-05 Richard Stallman <rms@gnu.org>
20725
20726 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
20727
207282007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20729
20730 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
20731 New variable.
20732 (mac_try_close_socket) [MAC_OSX]: New function.
20733 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
20734 Update cfsockets_for_select. Replace invalid CFRunLoop source.
20735
20736 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
20737 Use mac_try_close_socket.
20738
207392007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20740
20741 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
20742 reloc_base.
20743 (copy_dysymtab): Compute relocation base here.
20744 (rebase_reloc_address) [__ppc64__]: New function.
20745 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
20746 changed.
20747
207482007-12-05 Jason Rumney <jasonr@gnu.org>
20749
20750 * w32proc.c (sys_spawnve): Quote args with wildcards.
20751
207522007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20753
20754 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
20755 __objc_* sections.
20756 (unrelocate) [_LP64]: Set relocation base to address of data segment.
20757
207582007-12-05 Michael Albinus <michael.albinus@gmx.de>
20759
20760 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
20761 Move check for Vdbus_registered_functions_table to
20762 xd_read_queued_messages.
20763 (xd_read_queued_messages): Protect xd_read_message calls by
20764 internal_condition_case_1.
20765
207662007-12-04 Michael Albinus <michael.albinus@gmx.de>
20767
20768 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
20769 Qdbus_system_bus and Qdbus_session_bus, respectively.
20770 (Vdbus_intern_symbols): Remove.
20771 (Vdbus_registered_functions_table): New hash table.
20772 (XD_SYMBOL_INTERN_SYMBOL): Remove.
20773 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
20774 Rewrite in order to manage registered functions by hash table
20775 Vdbus_registered_functions_table.
20776
207772007-12-03 Jan Djärv <jan.h.d@swipnet.se>
20778
20779 * xterm.c: Update URL to Window Manager Specification in comment.
20780
207812007-12-02 Michael Albinus <michael.albinus@gmx.de>
20782
20783 * config.in (HAVE_DBUS): Add.
20784
20785 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
20786 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
20787 (obj): Add $(DBUS_OBJ).
20788 (LIBES): Add $(DBUS_LIBS).
20789 (dbusbind.o): New target.
20790
20791 * dbusbind.c: New file.
20792
20793 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
20794
20795 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
20796 (Qdbus_event): New Lisp symbol.
20797 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
20798 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 20799 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
20800
20801 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
20802
208032007-12-01 Richard Stallman <rms@gnu.org>
20804
20805 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
20806
208072007-11-30 Jason Rumney <jasonr@gnu.org>
20808
20809 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
20810 (w32con_reset_terminal_modes): Clear screen buffer.
20811 (w32_face_attributes): Don't use color indexes that are out of range.
20812 Only reverse the default colors.
20813
20814 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
20815 WINDOWSNT.
20816
20817 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
20818
208192007-11-29 Jason Rumney <jasonr@gnu.org>
20820
20821 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
20822 (w32_face_attributes): Use Vtty_defined_color_alist to determine
20823 if the terminal colors are initialized.
20824 (unspecified_fg, unspecified_bg): Remove unused declarations.
20825
208262007-11-29 Andreas Schwab <schwab@suse.de>
20827
20828 * keyboard.c (apply_modifiers): Fix typo.
20829
208302007-11-29 Richard Stallman <rms@gnu.org>
20831
20832 * keymap.c (Fcurrent_local_map): Doc fix.
20833
208342007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
20835
20836 * s/gnu-kfreebsd.h: New file.
20837
208382007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
20839
20840 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
20841 Don't cast redundantly.
20842
20843 * keyboard.c (KEY_TO_CHAR): New macro.
20844 (parse_modifiers, apply_modifiers): Accept integer arguments.
20845 (read_key_sequence): Use them to unify the "shift->unshift" mapping
20846 for chars and symbol keys.
20847 After doing such remapping, apply function-key-map again.
20848
208492007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
20850
20851 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
20852 compiled anymore.
20853
208542007-11-26 Andreas Schwab <schwab@suse.de>
20855
20856 * process.c (list_processes_1): Fix indentation level of the
20857 command column.
20858
208592007-11-23 Andreas Schwab <schwab@suse.de>
20860
20861 * editfns.c (Fformat): Handle %c specially since it requires the
20862 argument to be of type int.
20863
208642007-11-23 Markus Triska <markus.triska@gmx.at>
20865
20866 * emacs.c (main): Call init_editfns before init_process, since
20867 init_process sets Vprocess_connection_type depending on OS release.
20868
208692007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
20870
20871 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
20872 (find_symbol_value): Use do_symval_forwarding.
20873
20874 * data.c (set_internal): Set the value in the `cons-cell' (for
20875 Buffer_Local_values) not only for frame-local variables.
20876
208772007-11-22 Andreas Schwab <schwab@suse.de>
20878
20879 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
20880 values to sprintf.
20881 * keymap.c (Fsingle_key_description): Likewise.
20882 * print.c (print_object): Likewise.
20883
208842007-11-22 Jan Djärv <jan.h.d@swipnet.se>
20885
20886 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
20887 file for image is nil.
20888
208892007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
20890
20891 * term.c: Include stdarg.h.
20892 (fatal): Implement using varargs.
20893 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
20894
208952007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
20896
20897 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
20898 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
20899 Update call to buffer_slot_type_mismatch.
20900 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
20901 (buffer_slot_type_mismatch): Update.
20902 * buffer.c (buffer_local_types): Remove.
20903 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
20904 (defvar_per_buffer): Set the type in the buffer_objfwd.
20905
209062007-11-21 Jason Rumney <jasonr@gnu.org>
20907
20908 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
20909 CreateFileMapping returns NULL on failure.
20910
209112007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
20912
20913 * search.c (Fset_match_data): Remove the `evaporate' feature.
20914 (unwind_set_match_data): Don't use the `evaporate' feature.
20915
209162007-11-21 Jason Rumney <jasonr@gnu.org>
20917
20918 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
20919
20920 * w32console.c (w32con_write_glyphs): Remove unused variables.
20921
209222007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
20923
20924 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
20925
20926 * s/darwin.h (MULTI_KBOARD): Remove.
20927
20928 * macfns.c (x_create_tip_frame, Fx_create_frame)
20929 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
20930
209312007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
20932
20933 * buffer.c (Fbuffer_local_value): Remove redundant test.
20934 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
20935 than in `current-buffer' to match the comment.
20936 Do the swap using swap_in_global_binding.
20937
20938 * data.c (store_symval_forwarding, set_internal):
20939 * eval.c (specbind): Remove dead code.
20940
20941 * coding.c (detect_coding, Fupdate_coding_systems_internal):
20942 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
20943 Since we do not want to see internal Lisp_*fwd objects here.
20944
209452007-11-18 Jan Djärv <jan.h.d@swipnet.se>
20946
20947 * sysdep.c (init_system_name): Use getaddrinfo if available.
20948
20949 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
20950 (x_scroll_bar_note_movement): start, end, with, height in struct
20951 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
20952
209532007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
20954
20955 * puresize.h (BASE_PURESIZE): Increase to 1190000.
20956
209572007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
20958
20959 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
20960 This undoes Richard's change of 14-Oct-2002.
20961
20962 * alloc.c (allocate_other_vector):
20963 * lisp.h (allocate_other_vector): Remove.
20964
20965 * window.c (struct save_window_data): Move non-lisp data to the end
20966 and make it `int' rather than Lisp_Object.
20967 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
20968 Done wrap/unwrap integer values.
20969 (Fset_window_configuration, compare_window_configurations):
20970 Update use of fields to their new types.
20971
20972 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
20973 Turn integer fields into `int'. Merge x_window_low and x_window_high.
20974 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
20975 (SET_SCROLL_BAR_X_WINDOW): Remove.
20976 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
20977 Access the new x_window field directly.
20978 * xterm.c (x_scroll_bar_create): Use a pseudovector.
20979 Don't wrap/unwrap integers into Lisp_Objects.
20980 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
20981 (x_scroll_bar_report_motion):
20982 Don't wrap/unwrap integers into Lisp_Objects.
20983 (x_term_init): Use SDATA.
20984 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
20985 (x_scroll_bar_set_handle, x_scroll_bar_remove)
20986 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
20987 (x_scroll_bar_report_motion, x_scroll_bar_clear):
20988 * xfns.c (x_set_background_color):
20989 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
20990 Access the new x_window field directly.
20991
20992 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
20993 (allocate_pseudovector): Make non-static.
20994
20995 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
20996 (allocate_pseudovector): Declare.
20997 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
20998
209992007-11-15 Andreas Schwab <schwab@suse.de>
21000
21001 * editfns.c (Fformat): Correctly format EMACS_INT values.
21002 Also take precision into account when formatting an integer.
21003
21004 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
21005
210062007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
21007
21008 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
21009 (syms_of_keyboard): Defsubr it.
21010
21011 * data.c (swap_in_global_binding): Fix longstanding bug where
21012 store_symval_forwarding was not called with the right second argument,
21013 thus causing objfwd-ing from being dropped.
21014
210152007-11-14 Juanma Barranquero <lekktu@gmail.com>
21016
21017 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
21018 (Fx_display_pixel_height, Fx_display_planes)
21019 (Fx_display_color_cells, Fx_server_max_request_size)
21020 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
21021 (Fx_display_visual_class, Fx_display_save_under):
21022 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
21023 (Fx_display_pixel_height, Fx_display_planes)
21024 (Fx_display_color_cells, Fx_server_max_request_size)
21025 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
21026 (Fx_display_mm_height, Fx_display_mm_width)
21027 (Fx_display_backing_store, Fx_display_visual_class)
21028 (Fw32_select_font, Fx_display_save_under):
21029 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
21030 (Fx_display_pixel_height, Fx_display_planes)
21031 (Fx_display_color_cells, Fx_server_max_request_size)
21032 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
21033 (Fx_display_save_under): Fix typos in docstrings.
21034
210352007-11-14 Juanma Barranquero <lekktu@gmail.com>
21036
21037 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
21038 corresponding to deleted entries; they are an implementation detail.
21039 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
21040 Remove variables.
21041 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
21042 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
21043 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
21044 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
21045 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
21046 (Fw32_define_rgb_color, Fw32_load_color_file)
21047 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
21048 Fix typos in docstrings.
21049 (Fx_server_version): Reflow docstring.
21050 (Fw32_shell_execute): Doc fixes.
21051
210522007-11-13 Juanma Barranquero <lekktu@gmail.com>
21053
21054 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
21055 if w32_parse_hot_key returned nil.
21056
210572007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
21058
21059 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
21060
210612007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 21062
aac0c6e3
MR
21063 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
21064
21065 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
21066
21067 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
21068 Remove W32_SCROLL_BAR_CLICK_EVENT.
21069
21070 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
21071 Add MULTIMEDIA_KEY_EVENT.
21072
21073 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
21074 (lispy_multimedia_keys) [WINDOWSNT]: New array.
21075 (make_lispy_event) [WINDOWSNT]: Use it to translate
21076 MULTIMEDIA_KEY_EVENT.
21077
21078 * w32term.h (WM_APPCOMMAND): Define if not already.
21079 (GET_APPCOMMAND_LPARAM): Likewise.
21080
21081 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
21082 WM_APPCOMMAND.
21083
21084 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
21085 (syms_of_w32fns): Export and initialize it.
21086 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
21087
210882007-11-09 Chong Yidong <cyd@stupidchicken.com>
21089
21090 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
21091 twice.
21092
21093 * xdisp.c (handle_face_prop): Fix last change.
21094
210952007-11-09 Richard Stallman <rms@gnu.org>
21096
21097 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
21098 not just for after-strings and before-strings.
21099 Call face_for_overlay_string and pass the overlay to it.
21100 (handle_display_prop): Determine whether property came from an overlay.
21101 Pass OVERLAY arg to handle_single_display_spec.
21102 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
21103 (load_overlay_strings): Fill in it->string_overlays.
21104 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
21105
21106 * xfaces.c (face_for_overlay_string): Function renamed from
21107 face_at_buffer_position_no_overlays, and add arg OVERLAY.
21108
21109 * dispextern.h (struct it): New elt string_overlays.
21110 New elt from_overlay, also in stack.
21111 Rearrange a few elements.
21112 (face_for_overlay_string): Decl renamed from
21113 face_at_buffer_position_no_overlays, and add argument.
21114
211152007-11-09 Richard Stallman <rms@gnu.org>
21116
21117 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
21118 to get the base face for an overlay string.
21119
21120 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
21121
21122 * xfaces.c (face_at_buffer_position_no_overlays): New function.
21123
21124 * xdisp.c (handle_stop): Move some code out of loop.
21125
211262007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21127
21128 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
21129 Fix conversion from Lisp object to ATSUFontID.
21130
211312007-11-09 Jason Rumney <jasonr@gnu.org>
21132
21133 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
21134
211352007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21136
21137 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
21138 Don't assume regions are aligned to page boundary.
21139 (print_load_command_name): Add LC_UUID if defined.
21140
211412007-11-09 Richard Stallman <rms@gnu.org>
21142
21143 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
21144
211452007-11-07 Jason Rumney <jasonr@gnu.org>
21146
21147 * s/windows95.h: Remove.
21148
211492007-11-06 Jan Djärv <jan.h.d@swipnet.se>
21150
21151 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
21152 abort with a message on unhandled store_type values.
21153
211542007-11-01 Jan Djärv <jan.h.d@swipnet.se>
21155
21156 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
21157 Remove HAVE_X11R5 and HAVE_X11R4.
21158
211592007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
21160
21161 * Makefile.in: Remove references to sunfns.c and sunfns.o.
21162
211632007-11-01 Johan Bockgård <bojohan@gnu.org>
21164
21165 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
21166 Don't set s->stippled_p here, since it has already been set by
21167 x_set_glyph_string_gc from x_draw_glyph_string.
21168
211692007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
21170
21171 * sunfns.c: Remove file.
21172
21173 * m/sun386.h:
21174 * m/sun2.h:
21175 * m/sparc.h: Remove Sun windows code.
21176
211772007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
21178
21179 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
21180 (init_keyboard): Set current_kboard's window-system to nil.
21181 (tty_read_avail_input): Typo.
21182 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
21183
211842007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
21185
21186 * s/usg5-4.h:
21187 * s/usg5-3.h:
21188 * s/ptx.h:
21189 * m/is386.h:
21190 * m/ibmps2-aix.h:
21191 * Makefile.in: Remove all mentions of X10.
21192
21193 * dispnew.c (syms_of_display): Don't mention version 10.
21194
211952007-10-28 Juanma Barranquero <lekktu@gmail.com>
21196
21197 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
21198 ($(BLD)/abbrev.$(O)): Remove.
21199
212002007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
21201
21202 Rewrite abbrev.c in Elisp.
21203 * image.c (Qcount): Don't declare as extern.
21204 (syms_of_image): Initialize and staticpro `Qcount'.
21205 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
21206 * emacs.c (main): Don't call syms_of_abbrev.
21207 * Makefile.in (obj): Remove abbrev.o.
21208 (abbrev.o): Remove.
21209 * abbrev.c: Remove.
21210
212112007-10-26 Martin Rudalics <rudalics@gmx.at>
21212
21213 * window.c (window_min_size_2): Don't count header-line.
21214
212152007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
21216
21217 * frame.h (struct frame): Move all bit fields after the first bit
21218 field to take advantage of the available space. Group all the
21219 chars together to reduce wasted space due to padding.
21220
212212007-10-26 Juanma Barranquero <lekktu@gmail.com>
21222
21223 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
21224
21225 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
21226 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
21227 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
21228 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
21229 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
21230 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
21231 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
21232 (last_marked, mark_object_loop_halt): Make static.
21233
21234 * frame.c (syms_of_frame) <delete-frame-functions>:
21235 Fix typo in docstring.
21236
212372007-10-25 Juanma Barranquero <lekktu@gmail.com>
21238
21239 * w32.c (init_environment): Fix tiny memory leak.
21240 (w32_get_resource): Remove unused variable `ok'.
21241
212422007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
21243
21244 Make `window-system' into a keyboard-local variable (rather than
21245 frame-local as done originally by multi-tty).
21246
21247 * keyboard.h (struct kboard): Add Vwindow_system.
21248 * keyboard.c (init_kboard): Set a default for Vwindow_system.
21249 (mark_kboards): Mark Vwindow_system.
21250
21251 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
21252 (init_display): Don't set the obsolete `window-system' frame-param.
21253
21254 * xterm.c (x_term_init):
21255 * w32term.c (w32_create_terminal):
21256 * term.c (init_tty): Set Vwindow_system.
21257 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
21258 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
21259
21260 * xfns.c (Fx_create_frame, x_create_tip_frame):
21261 * w32fns.c (Fx_create_frame, x_create_tip_frame):
21262 * macfns.c (Fx_create_frame):
21263 Don't set the obsolete `window-system' frame-param.
21264
21265 * frame.h (Qwindow_system): Remove.
21266 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
21267 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
21268
212692007-10-24 Richard Stallman <rms@gnu.org>
21270
21271 * frame.c (x_figure_window_size): For fullscreen case,
21272 set USPosition | PPosition without clobbering rest of window_prompting.
21273
21274 * keyboard.c (Fcurrent_idle_time): Doc fix.
21275
21276 * print.c (Fwith_output_to_temp_buffer): Doc fix.
21277
212782007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
21279
21280 * process.c (unwind_request_sigio): Only define if __ultrix__.
21281
21282 * callproc.c (child_setup): Remove spurious *.
21283
21284 * lisp.h (Fget_text_property): Declare.
21285 (have_menus_p): Declare it here rather than in sys-dep header files.
21286 * macterm.h (have_menus_p):
21287 * msdos.h (have_menus_p):
21288 * xterm.h (have_menus_p): Remove.
21289
21290 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
21291 (Fmake_variable_frame_local): Just check the variable's const-ness
21292 rather than checking nil or t.
21293
212942007-10-22 Jason Rumney <jasonr@gnu.org>
21295
21296 * w32fns.c: Include math.h.
21297 (w32_abort): Declaration moved to nt/config.nt.
21298
21299 * s/ms-w32.h (HAVE_STDLIB_H): Define.
21300 (abort): Redefinition moved to nt/config.nt.
21301
21302 * m/windowsnt.h: Remove.
21303
213042007-10-22 Juanma Barranquero <lekktu@gmail.com>
21305
21306 * emacs.c (Fdump_emacs): Fix typo in message.
21307 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
21308 <installation-directory>: Reflow docstring.
21309
213102007-10-22 Juri Linkov <juri@jurta.org>
21311
21312 * minibuf.c: Allow minibuffer default to be a list of default values.
21313 With empty input use the first element of this list as returned default.
21314 (string_to_object)
21315 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
21316 (read_minibuf): If defalt is cons, set histstring to its car.
21317 (Fread_string): If default_value is cons, set val to its car.
21318 (Fread_buffer): If def is cons, use its car.
21319 (Fcompleting_read): If defalt is cons, set val to its car.
21320
213212007-10-21 Michael Albinus <michael.albinus@gmx.de>
21322
21323 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
21324
213252007-10-20 Juanma Barranquero <lekktu@gmail.com>
21326
21327 * doc.c (Fdocumentation): Check for advice in all cases.
21328
213292007-10-19 Chong Yidong <cyd@stupidchicken.com>
21330
21331 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
21332
213332007-10-19 Richard Stallman <rms@gnu.org>
21334
21335 * doc.c (Fdocumentation): Check for and handle an advised function.
21336
213372007-10-19 Juanma Barranquero <lekktu@gmail.com>
21338
21339 * process.c (Fset_process_filter): Doc fix.
21340
213412007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
21342
21343 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
21344 which caused key-translation-map to applied repeatedly (thus breaking
21345 double-mode).
21346
213472007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
21348
21349 * xselect.c (x_own_selection, x_handle_selection_clear)
21350 (x_clear_frame_selections):
21351 * w32menu.c (list_of_panes, list_of_items):
21352 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
21353 * textprop.c (validate_plist, interval_has_all_properties)
21354 (interval_has_some_properties, interval_has_some_properties_list)
21355 (add_properties, text_property_list):
21356 * process.c (Fget_buffer_process, list_processes_1, status_notify):
21357 * minibuf.c (Fassoc_string):
21358 * macselect.c (x_own_selection, x_clear_frame_selections)
21359 (Fx_disown_selection_internal):
21360 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
21361 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
21362
213632007-10-17 Chong Yidong <cyd@stupidchicken.com>
21364
21365 * process.c: Link to libs for calling res_init() if available.
21366 (Fmake_network_process): Call res_init() before getaddrinfo or
21367 gethostbyname, if possible.
21368
213692007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
21370
21371 * lread.c (read1): Set pvectype for char_tables.
21372
21373 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
21374 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
21375 Add type checks.
21376 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
21377
21378 * alloc.c (free_misc): Use XMISCTYPE.
21379 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
21380
213812007-10-17 Glenn Morris <rgm@gnu.org>
21382
21383 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
21384 (syms_of_minibuf): Add Qcompletion_ignore_case.
21385 * dired.c (Qcompletion_ignore_case): Change to external.
21386 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
21387 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
21388 (Fread_file_name): Use it rather than intern'ing.
21389
21390 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
21391 (Fread_coding_system): Ignore case of user input.
21392
213932007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21394
21395 * xdisp.c (handle_display_prop): Ignore display specs after
21396 replacing one when string text is being replaced.
21397 (handle_single_display_spec): Pretend as if characters with display
21398 property haven't been consumed only when buffer text is being replaced.
21399
214002007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
21401
21402 * xfns.c (Fx_create_frame, Fx_display_list):
21403 * window.c (window_fixed_size_p, enlarge_window)
21404 (shrink_window_lowest_first):
21405 * macterm.c (init_font_name_table):
21406 * macfns.c (Fx_create_frame, Fx_display_list):
21407 * lread.c (close_load_descs):
21408 * keyboard.c (read_char_x_menu_prompt):
21409 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
21410 * coding.c (code_convert_region_unwind): Test the type of an object
21411 rather than just !NILP before extracting data from it.
21412
21413 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
21414
21415 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
21416 (XMISCANY): New macro.
21417 (XMISCTYPE): Use it.
21418 (struct Lisp_Misc_Any): New type.
21419 (union Lisp_Misc): Use it.
21420 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
21421 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
21422 (find_symbol_value, set_internal, default_value, Fset_default)
21423 (Fmake_variable_buffer_local, Fmake_local_variable)
21424 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
21425 (Flocal_variable_if_set_p, Fvariable_binding_locus):
21426 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
21427 * alloc.c (allocate_buffer): Set the size and tag.
21428 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
21429 Use XMISCANY.
21430 (die): Follow the GNU convention for error messages.
21431 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
21432 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
21433 tag any more.
21434 (set_buffer_internal_1):
21435 * frame.c (store_frame_param):
21436 * eval.c (specbind):
21437 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
21438
21439 * doc.c (Fsnarf_documentation): Simplify.
21440
214412007-10-14 Juanma Barranquero <lekktu@gmail.com>
21442
21443 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
21444 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
21445
214462007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
21447
21448 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
21449
214502007-10-14 Juanma Barranquero <lekktu@gmail.com>
21451
21452 * eval.c (do_autoload): Don't save autoloads.
21453
21454 * data.c (Ffset): Save autoload of the function being set.
21455
214562007-10-07 John Paul Wallington <jpw@pobox.com>
21457
21458 * xfns.c (x_create_tip_frame): Set the `display-type' frame
21459 parameter before setting up faces.
21460
214612007-10-13 Eli Zaretskii <eliz@gnu.org>
21462
21463 * ccl.c (Fregister_code_conversion_map):
21464 * keyboard.c (append_tool_bar_item): Reformat last change.
21465
21466 * lisp.h (eabs): Rename from `abs'. All callers changed.
21467
214682007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
21469
21470 * buffer.c (add_overlay_mod_hooklist):
21471 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
21472 * fontset.c (make_fontset):
21473 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
21474 (append_tool_bar_item):
21475 * macmenu.c (grow_menu_items):
21476 * w32menu.c (grow_menu_items):
21477 * xmenu.c (grow_menu_items): Use larger_vector.
21478
214792007-10-13 Eli Zaretskii <eliz@gnu.org>
21480
21481 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
21482 selected frame'' on MSDOS).
21483
214842007-10-12 Martin Rudalics <rudalics@gmx.at>
21485
21486 * frame.c (Qexplicit_name): New variable.
21487 (x_report_frame_params): Report it in parameter alist.
21488 (syms_of_frame): Intern and staticpro it.
21489
214902007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
21491
21492 * macfns.c (x_create_tip_frame): Set terminal for frame.
21493
214942007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
21495
21496 * frame.c (Qenvironment): Remove.
21497 (syms_of_frame) <Qenvironment>: Don't initialize.
21498 (Fdelete_frame): Don't treat the `environment' param specially.
21499 * frame.h (Qenvironment): Don't declare.
21500 * callproc.c (set_initial_environment): Don't set unused frame param.
21501
21502 * frame.c (Fframe_with_environment): Remove.
21503 (syms_of_frame) <Sframe_with_environment>: Don't declare.
21504
21505 * lisp.h (Fframe_with_environment): Don't declare.
21506
215072007-10-10 Juanma Barranquero <lekktu@gmail.com>
21508
21509 * indent.c (indent_tabs_mode, last_known_column)
21510 (last_known_column_modified): Make static.
21511 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
21512
215132007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
21514
21515 * puresize.h (BASE_PURESIZE): Increase to 1170000.
21516
215172007-10-09 Jason Rumney <jasonr@gnu.org>
21518
21519 * w32term.c (x_set_window_size): Disable code that attempts to tell
21520 Lisp code about a size change before it actually happens.
21521
215222007-10-09 Richard Stallman <rms@gnu.org>
21523
21524 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
21525 return HANDLED_RETURN.
21526
215272007-10-08 Martin Rudalics <rudalics@gmx.at>
21528
21529 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
21530 when there's an unread command event.
21531
21532 * frame.c (focus_follows_mouse): Move here from frame.el to allow
21533 window autoselection act appropriately when leaving selected frame.
21534 (syms_of_frame): Initialize focus_follows_mouse.
21535 * frame.h (focus_follows_mouse): Extern it.
21536 * macterm.c (XTread_socket): When focus_follows_mouse is nil
21537 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
21538 * msdos.c (dos_rawgetc): Likewise.
21539 * w32term.c (w32_read_socket): Likewise.
21540 * xterm.c (handle_one_xevent): Likewise.
21541 * xdisp.c (syms_of_xdisp): In doc-string of
21542 mouse-autoselect-window mention focus-follows-mouse.
21543
215442007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21545
21546 * macterm.c (mac_load_query_font): Fix missing return value.
21547 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
21548 Add BLOCK_INPUT.
21549
215502007-10-08 Richard Stallman <rms@gnu.org>
21551
21552 * xdisp.c (get_window_cursor_type): Implement documented behavior
21553 for cursor-in-non-selected-windows = t.
21554
215552007-10-08 Jason Rumney <jasonr@gnu.org>
21556
21557 * w32.c (w32_get_resource): Always close registry keys.
21558
215592007-10-08 Jason Rumney <jasonr@gnu.org>
21560
21561 * makefile.w32-in (LIBS): Add COMCTL32.
21562
21563 * w32fns.c (globals_of_w32fns): Init common controls.
21564
215652007-10-08 Richard Stallman <rms@gnu.org>
21566
21567 * image.c (our_memory_buffer): Rename from omfib_buffer.
21568
215692007-10-08 Richard Stallman <rms@gnu.org>
21570
21571 * buffer.c (Foverlays_at): Doc fix.
21572
215732007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
21574
21575 * fns.c (Fplist_put): Preserve uneven tail data.
21576
215772007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
21578
21579 * termhooks.h (enum event_kind): Remove trailing comma.
21580
21581 * frame.h (enum): Remove trailing comma.
21582
215832007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
21584
21585 * w32proc.c (delete_child): Don't terminate threads of zombies.
21586
215872007-10-08 Martin Rudalics <rudalics@gmx.at>
21588
21589 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
21590
21591 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
21592 last-repeatable-command.
21593 (init_kboard): Initialize Vlast_repeatable_command.
21594 (command_loop_1): Set it to real_this_command unless that was
21595 bound to an input event.
21596 (mark_kboards): Mark it.
21597
215982007-10-08 Richard Stallman <rms@gnu.org>
21599
21600 * eval.c (condition-case): Doc fix.
21601
216022007-10-08 Masatake YAMATO <jet@gyve.org>
21603
21604 * xfaces.c (tty_supports_face_attributes_p): Fix code
21605 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
21606 was copied and not edited.
21607
216082007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
21609
21610 Add new `input-decode-map' keymap and use it for terminal
21611 escape sequences.
21612 * keyboard.h (struct kboard): Add Vinput_decode_map.
21613 Remove Vlocal_key_translation_map.
21614 * keyboard.c (read_key_sequence): Add support for input-decode-map.
21615 (init_kboard): Init input-decode-map.
21616 Replace local-key-translation-map back with key-translation-map.
21617 (syms_of_keyboard): Declare input-decode-map.
21618 Remove local-key-translation-map. Update docstrings.
21619 (mark_kboards): Mark Vinput_decode_map.
21620 Don't mark Vlocal_key_translation_map.
21621 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
21622 Replace local-key-translation-map back with key-translation-map.
21623 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
21624 Bind in input-decode-map rather than function-key-map.
21625
21626 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
21627 This was made redundant by the previous introduction of XSETPVECTYPE.
21628
216292007-10-09 Richard Stallman <rms@gnu.org>
21630
21631 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
21632
216332007-09-29 Richard Stallman <rms@gnu.org>
21634
21635 * eval.c (internal_condition_case_2, internal_condition_case_1)
21636 (internal_condition_case): Reenable abort if x_catching_errors ()
21637 to see if that really happens and why.
21638
216392007-10-06 Andreas Schwab <schwab@suse.de>
21640
21641 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
21642
216432007-10-04 Juanma Barranquero <lekktu@gmail.com>
21644
21645 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
21646
216472007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
21648
21649 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
21650
216512007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
21652
21653 * window.h (struct window):
21654 * window.c (struct save_window_data, struct saved_window):
21655 * termhooks.h (struct terminal):
21656 * process.h (struct Lisp_Process):
21657 * frame.h (struct frame):
21658 * buffer.h (struct buffer):
21659 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
21660 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
21661 The size field of (pseudo)vectors is now unsigned.
21662 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
21663
21664 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
21665 Turn `count' into an integer.
21666
21667 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
21668 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
21669 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
21670 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
21671 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
21672
21673 * alloc.c (allocate_pseudovector): New fun.
21674 (ALLOCATE_PSEUDOVECTOR): New macro.
21675 (allocate_window, allocate_terminal, allocate_frame)
21676 (allocate_process): Use it.
21677 (mark_vectorlike): New function.
21678 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
21679 (mark_terminals): Use it.
21680 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
21681 (Fmake_byte_code): Use XSETPVECTYPE.
21682
21683 * frame.c (Fframe_parameters): Minor simplification.
21684
21685 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
21686
21687 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
21688
21689 * buffer.c (Fget_buffer_create, init_buffer_once):
21690 * lread.c (defsubr):
21691 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
21692
21693 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
21694 defined differently in the m/*.h files.
21695 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
21696 (XSETPVECTYPE): New macro.
21697 (XSETPSEUDOVECTOR): Use it.
21698
21699 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
21700 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
21701
21702 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
21703 * lread.c (defvar_per_buffer):
21704 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
21705
21706 * window.c (candidate_window_p): Only consider as visible frames that
21707 are on the same terminal.
21708
21709 * m/ibms390x.h (MARKBIT): Remove unused macro.
21710
217112007-10-01 Juanma Barranquero <lekktu@gmail.com>
21712
21713 * lread.c (Fload): Fix typo in docstring.
21714
217152007-10-01 Michaël Cadilhac <michael@cadilhac.name>
21716
21717 * floatfns.c (Fexpt): Manually check for overflows, so that a power
21718 of a non-zero value can't yield zero.
21719
217202007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
21721
21722 * term.c (term_clear_mouse_face, term_mouse_highlight)
21723 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
21724
21725 * print.c (safe_debug_print): Use XHASH.
21726
21727 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
21728 Lisp elements such as tags.
21729 (XHASH): New macro.
21730 (EQ): Use it.
21731 (SREF, SSET, STRING_COPYIN): Use SDATA.
21732 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
21733
21734 * alloc.c (mark_terminal): Remove left-over declaration.
21735 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
21736 (allocate_vectorlike): Remove type argument. Adjust callers.
21737 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
21738 Only handle the one remaining MEM_TYPE_VECTORLIKE.
21739
21740 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
21741 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
21742 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
21743 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
21744 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
21745 Use them.
21746
21747 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
21748 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
21749 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
21750
217512007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
21752
21753 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
21754 loaded by default.
21755
217562007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
21757
21758 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
21759 on this tty.
21760 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
21761
21762 * term.c (mouse_face_window): Rename from Qmouse_face_window.
21763 Update all users.
21764 (handle_one_term_event): Use Gpm_DrawPointer.
21765 (Fgpm_mouse_start): Rename from Fterm_open_connection.
21766 Signal errors instead of returning nil. Always return nil.
21767 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
21768 Make it a noop if gpm-mouse was not activated.
21769 (syms_of_term): Update names.
21770
217712007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
21772
21773 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
21774 (init_sys_modes): Check that gpm_tty is the current tty.
21775
21776 * alloc.c (allocate_terminal): Set the vector size to only count the
21777 lisp fields. Initialize those to nil.
21778 (mark_object): Don't treat terminals specially.
21779 (mark_terminal): Remove.
21780 (mark_terminals): Use mark_object instead.
21781
21782 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
21783 the GC to the beginning.
21784
21785 * indent.h:
21786 * indent.c: Use EMACS_INT for ints coming from Elisp data.
21787
21788 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
21789
217902007-09-25 Jason Rumney <jasonr@gnu.org>
21791
21792 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
21793
21794 * w32console.c (create_w32cons_output): Remove.
21795
21796 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
21797
21798 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
21799 (reset_sys_modes): Use reset_terminal_modes_hook.
21800
218012007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
21802
21803 * eval.c (do_autoload): Don't output any message.
21804
218052007-09-24 Juri Linkov <juri@jurta.org>
21806
21807 * emacs.c (standard_args): Change priority of "--no-splash"
21808 from 40 to 3. Add "--no-desktop" with the same priority.
21809
218102007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
21811
21812 * alloc.c (gc_sweep): Check cons cell mark bits word by word
21813 and optimize the case where they are all 1.
21814
218152007-09-23 Johannes Weiner <hannes@saeurebad.de>
21816
21817 * lisp.h (abs): Define if not defined.
21818 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
21819 Don't define `abs', since it's defined in lisp.h.
21820
218212007-09-22 Eli Zaretskii <eliz@gnu.org>
21822
21823 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
21824 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
21825 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
21826 (init_tty): Use DEV_TTY instead of "/dev/tty".
21827 [WINDOWSNT]: No need to protect from NAME arg being null.
21828
218292007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
21830
21831 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
21832 up the tty state.
21833
218342007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
21835
21836 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
21837 (gpm_tty): Change its type.
21838 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
21839 (gpm_tty): Change its type and initialize it.
21840 (Fterm_open_connection): Check the frame is indeed a tty.
21841 Use the new gpm_tty.
21842 (Fterm_close_connection): Use the new gpm_tty.
21843 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
21844 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
21845
218462007-09-21 Juanma Barranquero <lekktu@gmail.com>
21847
21848 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
21849 underline_color, to draw strike-through.
21850
218512007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
21852
21853 * lisp.h (allocate_terminal): Declare.
21854
21855 * window.c (candidate_window_p): Consider frames that are being placed
21856 by the user as somewhere between visible and iconified.
21857 (window_loop): Prefer windows on the current frame.
21858 (Fselect_window): Move the use of select-frame to the beginning so we
21859 can just delegate all the work (it'll call us back anyway).
21860
21861 * frame.c (Qdisplay_environment_variable):
21862 * frame.h (Qdisplay_environment_variable): Delete.
21863
21864 * .gdbinit (xbacktrace): Print the arg's address rather than the value
21865 of the first arg, since that value may be a union.
21866
21867 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
21868 parameter rather than Qdisplay_environment_variable. If all else
21869 fails, look for DISPLAY in initial-environment.
21870
218712007-09-21 Glenn Morris <rgm@gnu.org>
21872
21873 * Makefile.in (emacstool): Remove target.
21874 (lisp, shortlisp): Remove termdev.elc.
21875
218762007-09-21 Markus Triska <markus.triska@gmx.at>
21877
21878 * xterm.c (x_delete_display): Compile session management conditionally.
21879
218802007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
21881
21882 * callproc.c (getenv_internal_1): New function.
21883 (getenv_internal): Use it.
21884 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
21885
21886 * terminal.c (get_terminal): Don't accept ints to represent terminals.
21887 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
21888 (Fset_terminal_parameter): Work with dead terminals as well.
21889 (Fmodify_terminal_parameters): Remove.
21890
21891 * terminal.c (get_terminal): Handle terminals.
21892 Make sure the terminal returned is live.
21893 (create_terminal): Use allocate_terminal.
21894 (mark_terminals): Move to alloc.c.
21895 (delete_terminal): Use terminal->name as liveness status.
21896 NULL out fields after freeing their contents.
21897 Don't deallocate the object.
21898 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
21899 rather than an int.
21900 (Fterminal_live_p): Accept non-integer arguments.
21901 (Fterminal_list): Return terminal objects rather than an ints.
21902
21903 * alloc.c (enum mem_type): New member for `terminal' objects.
21904 (allocate_terminal): New function.
21905 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
21906 Handle terminals.
21907 (mark_terminal): New fun.
21908 (mark_terminals): Move from terminal.c.
21909
21910 * term.c (get_tty_terminal): Don't treat output_initial specially.
21911 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
21912 (delete_tty): Use terminal->name as liveness status.
21913
21914 * termhooks.h (struct terminal): Make it into a pseudovector.
21915 Remove `deleted' replaced by checking `name's nullness.
21916
21917 * print.c (print_object): Handle terminals.
21918
21919 * lisp.h (enum pvec_type): New `terminal' pseudovector.
21920 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
21921
21922 * frame.c (make_terminal_frame):
21923 * keyboard.c (tty_read_avail_input):
21924 * w32term.c (x_delete_terminal):
21925 * xfns.c (Fx_create_frame, x_create_tip_frame):
21926 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
21927
219282007-09-20 Glenn Morris <rgm@gnu.org>
21929
21930 * process.c (Fmake_network_process): Doc fix.
21931
219322007-09-19 Jason Rumney <jasonr@gnu.org>
21933
21934 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
21935
219362007-09-19 Michaël Cadilhac <michael@cadilhac.name>
21937
21938 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
21939 Fix a C warning regarding variable constness.
21940
21941 * xterm.c (handle_one_xevent): Fix a C warning.
21942
219432007-09-18 Jason Rumney <jasonr@gnu.org>
21944
21945 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
21946
219472007-09-17 Jan Djärv <jan.h.d@swipnet.se>
21948
21949 * gtkutil.c (gdpy_def): New variable.
21950 (xg_initialize): Initialize gdpy_def.
21951 (xg_display_close): If no other display exists, set gdpy_def to a
21952 new connection.
21953
219542007-09-16 Jan Djärv <jan.h.d@swipnet.se>
21955
21956 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
21957 when we have no file name for the icon.
21958 (xg_tool_bar_expose_callback): Remove.
21959 (xg_create_tool_bar): Don't connect expose signal to
21960 xg_tool_bar_expose_callback.
21961 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
21962
219632007-09-16 Andreas Schwab <schwab@suse.de>
21964
21965 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
21966 values instead of zapping them.
21967
219682007-09-14 Glenn Morris <rgm@gnu.org>
21969
21970 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
21971 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
21972 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
21973 scope and rename to omfib_buffer for clarity.
21974 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
21975
219762007-09-14 Kenichi Handa <handa@m17n.org>
21977
21978 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
21979
219802007-09-13 Jason Rumney <jasonr@gnu.org>
21981
21982 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
21983
21984 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
21985
21986 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
21987 (mac_term_init): Call here instead, passing rif.
21988
219892007-09-13 Glenn Morris <rgm@gnu.org>
21990
21991 * s/hpux.h: No longer define `static' as nothing.
21992
219932007-09-13 Johan Bockgård <bojohan@gnu.org>
21994
21995 * callint.c (Fcall_interactively): Remove unused var `fun'.
21996
219972007-09-12 Romain Francoise <romain@orebokech.com>
21998
21999 * window.c (prefer_window_split_horizontally, display_buffer):
22000 Revert 2007-09-08 change.
22001
220022007-09-12 Glenn Morris <rgm@gnu.org>
22003
22004 * alloca.c: Remove file.
22005 * Makefile.in (alloca): Do not undef.
22006 (allocaobj, alloca.o): Remove.
22007 (otherobj): Remove allocaobj.
22008 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
22009 * regex.c (C_ALLOCA): Remove all references and code that was only
22010 used when this was defined.
22011 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
22012 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
22013 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
22014
22015 * Makefile.in (SOURCES, unlock, relock): Delete.
22016
22017 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
22018 (menu_grab_callback): All uses changed.
22019
22020 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
22021 (x_reply_selection_request): All uses changed.
22022
220232007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
22024
22025 * lread.c (load_warn_old_style_backquotes): Change message to look
22026 better when it appears in the middle of byte-compiler messages.
22027
220282007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
22029
22030 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
22031
22032 * xterm.c (x_create_terminal): Add comment.
22033
22034 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
22035
220362007-09-10 Richard Stallman <rms@gnu.org>
22037
22038 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
22039
220402007-09-10 Michaël Cadilhac <michael@cadilhac.name>
22041
22042 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
22043 (DEFUN): Document `intspec', use it instead of `prompt'.
22044
22045 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
22046
22047 * data.c (Finteractive_form): If the interactive specification starts
22048 with a `(', use it as a Lisp form.
22049
22050 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
22051 name and file modes.
22052
22053 * callint.c (Fcall_interactively): Comment fixes.
22054
220552007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
22056
22057 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
22058 and compiled functions.
22059
220602007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
22061
22062 * window.c (prefer_window_split_horizontally): New variable.
22063 (display_buffer): Consider splitting window horizontally depending
22064 on prefer_window_split_horizontally.
22065
220662007-09-08 Eli Zaretskii <eliz@gnu.org>
22067
22068 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
22069
220702007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
22071
22072 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
22073
22074 * frame.c (x_set_frame_parameters): Check number is positive before
22075 using XFASTINT.
22076
22077 * window.c (freeze_window_start): Don't presume selected_window holds
22078 a window object.
22079 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
22080
220812007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
22082
22083 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
22084
220852007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
22086
22087 * window.c (Vsplit_window_preferred_function): New var.
22088 (Fdisplay_buffer): Use it.
22089 (syms_of_window): Export, and initialize it.
22090
220912007-09-06 Pixel <pixel@mandriva.com> (tiny change)
22092
22093 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
22094
220952007-09-06 Glenn Morris <rgm@gnu.org>
22096
22097 * gtkutil.c (menu_grab_callback) <cnt>:
22098 * xselect.c (x_reply_selection_request) <cnt>: Move static
22099 variable to file scope.
22100
221012007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
22102
22103 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
22104 consistent values of selected_frame and selected_window.
22105
221062007-09-04 Jason Rumney <jasonr@gnu.org>
22107
22108 * w32console.c (initialize_w32_display): Zero unused hooks.
22109
221102007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
22111
22112 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
22113 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
22114
221152007-09-04 Jason Rumney <jasonr@gnu.org>
22116
22117 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
22118 in w32console.c. Set up input. Remove XXX comments that have been
22119 confirmed as correct.
22120
22121 * s/ms-w32.h (MULTI_KBOARD): Define.
22122
22123 * w32console.c (one_and_only_w32cons): Remove.
22124 (initialize_w32_display): Take terminal argument.
22125
22126 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
22127 initialize_w32_display.
22128 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
22129
22130 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
22131
22132 * keyboard.c (discard_mouse_events): Discard it.
22133 (make_lispy_event): Translate it to a lisp event.
22134 (lispy_wheel_names): Add wheel-left and right events.
22135 (syms_of_keyboard): Enlarge wheel_syms.
22136
22137 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
22138 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
22139
22140 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
22141
22142 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
22143 from WM_MOUSEHWHEEL.
22144 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
22145
22146 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
22147 terminal.
22148
22149 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
22150 keyboard for the terminal.
22151
221522007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
22153
22154 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
22155 (Vresume_tty_hook): Rename from Vresume_tty_functions.
22156 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
22157 and resume-tty-function to resume-tty-hook.
22158 (Fsuspend_tty, Fresume_tty): Use new names.
22159
221602007-09-02 Jan Djärv <jan.h.d@swipnet.se>
22161
22162 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
22163 if it starts with "n:".
22164
221652007-08-31 Jan Djärv <jan.h.d@swipnet.se>
22166
22167 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
22168
221692007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
22170
22171 * frame.h:
22172 * frame.c (Qterm_environment_variable): Remove.
22173 (syms_of_frame): Don't init and staticpro it.
22174
22175 * callproc.c (getenv_internal): Remove special case for $TERM.
22176
22177 * callproc.c (Vinitial_environment): New variable.
22178 (set_initial_environment): Initialize it.
22179 (syms_of_callproc): Declare it.
22180 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
22181 TERM under which a process runs is never related to the TERM in which
22182 Emacs is running.
22183
221842007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
22185
22186 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
22187 * s/darwin.h: ... do it here.
22188
221892007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
22190
22191 * lisp.h (set_initial_environment): Rename from set_global_environment.
22192
22193 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
22194 removed by mistake on the multi-tty branch.
22195
22196 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
22197 (Fmodify_frame_parameters): Return a value.
22198
22199 * image.c (png_load): Comment-out var only used in commented-out code.
22200
22201 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
22202 before passing it to mark_object.
22203
22204 * xfaces.c (internal_resolve_face_name): Return a value.
22205 (internal_resolve_face_name, resolve_face_name_error): Comment out.
22206
22207 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
22208 (x_icon): Comment-out var only used in commented-out code.
22209
222102007-08-29 Romain Francoise <romain@orebokech.com>
22211
22212 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
22213 QUIT hasn't been provided.
22214
222152007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
22216
22217 * callproc.c (child_setup, getenv_internal): Use the
22218 display-environment-variable and term-environment-variable frame params.
22219 (set_initial_environment): Initialise Vprocess_environment.
22220
22221 * config.in: Disable multi-keyboard support on a mac.
22222
22223 * frame.c (Qterm_environment_variable)
22224 (Qdisplay_environment_variable): New variables.
22225 (syms_of_frame): Intern and staticpro them.
22226 (Fmake_terminal_frame): Disable output method test.
22227
22228 * frame.h: Declare them here.
22229
22230 * macfns.c (x_set_mouse_color): Get rif from the frame.
22231 (x_set_tool_bar_lines): Don't use updating_frame.
22232 (mac_window): Add 2 new parameters for consistency with other systems.
22233 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
22234 frame parameters following what is done in X11 and w32. Don't use
22235 FRAME_MAC_DISPLAY_INFO.
22236 (Fx_open_connection, start_hourglass): Remove window-system check.
22237 (x_create_tip_frame): Get the keyboard from the terminal.
22238
22239 * macmenu.c: Reorder includes.
22240 (Fx_popup_menu): Use terminal specific mouse_position_hook.
22241
22242 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
22243 terminal parameter.
22244 (x_clear_frame): Add a frame parameter.
22245 (note_mouse_movement): Get rif from the frame.
22246 (mac_term_init): Initialize the terminal.
22247 (mac_initialize): Make static and move terminal initialization ...
22248 (mac_create_terminal): ... to this new function.
22249
22250 * macterm.h (struct mac_display_info): Add terminal.
22251 (mac_initialize): Delete declaration.
22252
22253 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
22254
22255 * sysdep.c: Comment out text after #endif.
22256
22257 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
22258 is defined. Better initialize ttys in windows. Use terminal
22259 specific mouse_position_hook.
22260
22261 * termhooks.h (union display_info): Add mac_display_info.
22262
22263 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
22264 Set the default minibuffer frame, window_system and the rest of the
22265 frame parameters following what is done in X11.
22266
22267 * w32term.c (w32_initialize): Make static.
22268
22269 * xselect.c (x_handle_selection_clear): Only access
22270 terminal->kboard when MULTI_KBOARD is defined.
22271
22272 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
22273 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
22274
222752007-08-29 Jason Rumney <jasonr@gnu.org>
22276
22277 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
22278 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
22279
22280 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
22281 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
22282
22283 * keyboard.c (restore_kboard_configuration): Only define when
22284 MULTI_KBOARD defined.
22285
22286 * makefile.w32-in: Update dependancies from Makefile.in.
22287 (OBJ1): Add terminal.$(O)
22288
22289 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
22290 Don't define function body.
22291 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
22292
22293 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
22294
22295 * w32.c (request_sigio, unrequest_sigio): Remove.
22296
22297 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
22298 (w32con_clear_frame, w32con_clear_end_of_line)
22299 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
22300 (w32con_delete_glyphs, w32con_set_terminal_window)
22301 (scroll_line, w32_sys_ring_bell): Add frame arg.
22302 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
22303 Add terminal arg.
22304 (PICK_FRAME): Remove.
22305 (w32con_write_glyphs): Use frame specific terminal coding.
22306 (one_and_only_w32cons): New global variable.
22307 (initialize_w32_display): Use it for storing hooks.
22308 (create_w32cons_output): New function.
22309
22310 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
22311 arg a frame.
22312
22313 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
22314 Set window_system.
22315 (x_set_tool_bar_lines): Don't use updating_frame.
22316 (Fx_create_frame): Set terminal and ref count.
22317 (Fx_open_connection): Remove window-system check.
22318
22319 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
22320
22321 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
22322 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
22323 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
22324 Add frame arg.
22325 (x_delete_terminal, w32_create_terminal): New functions.
22326 (w32_term_init): Create a terminal.
22327 (w32_initialize): Move terminal specific initialization to
22328 w32_create_terminal.
22329
22330 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
22331 (w32_clear_rect, w32_clear_area): Use background from frame.
22332 (w32_display_info): Add terminal.
22333 (w32_sys_ring_bell, x_delete_display): Declare here.
22334
22335 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
22336
22337 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
22338
223392007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
22340
22341 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
22342 Fix get_named_tty calls for the controlling tty.
22343
223442007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
22345
194d44e7 22346 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
aac0c6e3
MR
22347
223482007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
22349
22350 * term.c (tty_insert_glyphs): Add missing first parameter.
22351
223522007-08-29 Károly Lőrentey <karoly@lorentey.hu>
22353
22354 * buffer.c (Fbuffer_list, Fbury_buffer):
22355 Take frame->buried_buffer_list into account.
22356
22357 * cm.c (current_tty): New variable, for cmputc().
22358 (cmputc): Use it.
22359 (cmcheckmagic): Add tty parameter, look up terminal streams there.
22360 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
22361 (cmgoto): Add tty parameter. Pass it on to calccost().
22362 Use emacs_tputs() instead of tputs().
22363
22364 * cm.h (emacs_tputs): New macro to set current_tty, and then call
22365 tputs().
22366 (current_tty): New variable, for cmputc().
22367 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
22368
22369 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
22370 (internal_condition_case, internal_condition_case_1)
22371 (internal_condition_case_2): Don't abort when x_catching_errors.
22372
22373 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
22374 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
22375 prevent crashes caused by bogus longjmps in read_char.
22376
22377 * keymap.h (Fset_keymap_parent): Add EXFUN.
22378
22379 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
22380 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
22381 Remove redundant definition.
22382
22383 * macfns.c (x_set_mouse_color, x_make_gc):
22384 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
22385
22386 * w32term.c (x_free_frame_resources):
22387 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
22388 (w32_initialize): Use the accessor macros for terminal characteristics.
22389
22390 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
22391 Use the accessor macros for terminal characteristics.
22392 * msdos.c (internal_terminal_init): Use the accessor macros for
22393 terminal characteristics.
22394 (ScreenVisualBell, internal_terminal_init):
22395 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
22396
22397 * termopts.h (no_redraw_on_reenter): Declare.
22398
22399 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
22400 (mark_terminals, mark_ttys): Declare.
22401 (Fgarbage_collect): Call them.
22402 (mark_object): Mark buried_buffer_list.
22403
22404 * prefix-args.c: Include stdlib.h for exit.
22405
22406 * syssignal.h: Add comment.
22407
22408 * indent.c: Include stdio.h.
22409
22410 * window.h (Vinitial_window_system): Declare.
22411 (Vwindow_system): Delete declaration.
22412
22413 * fontset.c (Finternal_char_font): Use FRAME_RIF.
22414
22415 * image.c (lookup_image): Don't initialize `c' until the xasserts
22416 have been run.
22417
22418 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
22419 FRAME_FOREGROUND_PIXEL.
22420
22421 * print.c (print_preprocess): Don't lose print_depth levels while
22422 iterating.
22423
22424 * widget.c (update_from_various_frame_slots):
22425 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
22426
22427 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
22428 frames.
22429 (window_internal_height): Remove bogus make_number call.
22430 (init_window_once): Call make_terminal_frame with two zero parameters.
22431
22432 * fileio.c (Fread_file_name): Update comment.
22433
22434 * callint.c (Fcall_interactively):
22435 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
22436 Make sure it is correctly unwound.
22437
22438 * xsmfns.c (x_session_close): New function.
22439
22440 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
22441 Delete declarations.
22442
22443 * xterm.h: Remove declaration for x_fully_uncatch_errors.
22444 (x_output): Remove background_pixel and foreground_pixel fields.
22445 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
22446 (x_delete_device, x_session_close): Declare.
22447
22448 * lread.c: Include setjmp.h. Update declaration of `read_char'.
22449 (read_filtered_event): Call `read_char' with a local
22450 `wrong_kboard_jmpbuf'.
22451
22452 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
22453 Don't call single_kboard_state. Use FRAME_RIF.
22454
22455 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
22456 systems.
22457
22458 * lisp.h (set_process_environment): Rename to `set_global_environment'.
22459 (Fframe_with_environment, Fset_input_meta_mode)
22460 (Fset_quit_char): EXFUN.
22461 (x_create_device, tty_output, terminal, tty_display_info): Declare.
22462 (init_sys_modes, reset_sys_modes): Update prototypes.
22463 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
22464
22465 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
22466 Vlocal_key_translation_map, and Vkeyboard_translate_table.
22467 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
22468 Delete declarations.
22469 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
22470 (temporarily_switch_to_single_kboard, tty_read_avail_input):
22471 New declarations.
22472
22473 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
22474 already does that during init_display(). Call syms_of_keymap
22475 before syms_of_keyboard. Call `syms_of_terminal'.
22476 Call set_initial_environment, not set_process_environment.
22477 (shut_down_emacs): Call reset_all_sys_modes() instead of
22478 reset_sys_modes().
22479
22480 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
22481 (internal_resolve_face_name, resolve_face_name_error): New functions.
22482 (resolve_face_name): Protect against loops and errors thrown by Fget.
22483 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
22484 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
22485
22486 * scroll.c: Replace CURTTY() with local variables throughout the
22487 file (where applicable).
22488 (calculate_scrolling, calculate_direct_scrolling)
22489 (scrolling_1, scroll_cost): Use the accessor macros for terminal
22490 characteristics.
22491
22492 * keymap.c (Vfunction_key_map): Remove.
22493 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
22494 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
22495 (Vkey_translation_map): Remove.
22496 (syms_of_keymap): Remove DEFVAR for key-translation-map.
22497 (Fdescribe_buffer_bindings)
22498 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
22499 Update for terminal-local key-translation-map.
22500
22501 * Makefile.in (callproc.o): Update dependencies.
22502 (lisp, shortlisp): Add termdev.elc.
22503 (obj): Add terminal.o.
22504 (terminal.o): Add dependencies.
22505 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
22506 (data.o, fns.o): Add termhooks.h dependency.
22507 (SOME_MACHINE_LISP): Add dnd.elc.
22508 (minibuf.o): Fix typo.
22509 Update dependencies.
22510
22511 * data.c (do_symval_forwarding, store_symval_forwarding)
22512 (find_symbol_value): Use the selected frame's keyboard, not
22513 current_kboard.
22514
22515 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
22516 Vwindow_system.
22517
22518 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
22519 Fmenu_bar_open.
22520 (syms_of_xmenu): Update defsubr.
22521 (mouse_position_for_popup, Fx_popup_menu)
22522 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
22523 (set_frame_menubar, free_frame_menubar)
b97439ce 22524 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
22525 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
22526 an X frame.
22527
22528 * xselect.c (x_own_selection): Abort if not an X frame.
22529 (some_frame_on_display): Check if it is an X frame.
22530 (x_handle_selection_clear): Deal with MULTI_KBOARD.
22531
22532 * coding.c: Include frame.h and termhooks.h.
22533 (terminal_coding, keyboard_coding): Delete.
22534 (Fset_terminal_coding_system_internal)
22535 (Fset_keyboard_coding_system_internal)
22536 (Fkeyboard_coding_system)
22537 (Fterminal_coding_system): Add a terminal parameter.
22538 Get terminal_coding from the terminal.
22539 (init_coding_once): Don't call setup_coding_system here.
22540
22541 * dispextern.h (set_scroll_region, turn_off_insert)
22542 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
22543 (tty_clear_end_of_line, tty_setup_colors)
22544 (delete_tty, updating_frame)
22545 (produce_special_glyphs, produce_glyphs, write_glyphs)
22546 (insert_glyphs): Remove.
22547 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
22548 (tty_turn_off_highlight, get_tty_size): Add declaration.
22549 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
22550
22551 * frame.h (enum output_method): Add output_initial.
22552 (struct x_output): Delete.
22553 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
22554 Access foreground_pixel and background_pixel directly from the frame.
22555 (tty_display): Delete.
22556 (struct frame): Add buried_buffer_list, foreground_pixel,
22557 background_pixel and terminal. Delete kboard.
22558 (union output_data): Add tty.
22559 (FRAME_KBOARD): Get the kboard from the terminal.
22560 (FRAME_INITIAL_P): New macro.
22561 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
22562 (Qterm_environment_variable, Qdisplay_environment_variable)
22563 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
22564 New declarations.
22565
22566 * termchar.h (tty_output, tty_display_info): New structures.
22567 (tty_list): Declare.
22568 (FRAME_TTY, CURTTY): New macros.
22569 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
22570 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
22571 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
22572 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
22573
22574 * callproc.c: Include frame.h and termhooks.h, for terminal
22575 parameters.
22576 (add_env): New function.
22577 (child_setup): Use it.
22578 (child_setup, getenv_internal): Handle the new Vprocess_environment.
22579 (getenv_internal): Fix get_terminal_param call.
22580 (Fgetenv_internal, egetenv): Update doc.
22581 (syms_of_callproc): Initialize Vprocess_environment to nil.
22582 Register and initialize them. Remove obsolete defvars. Update doc
22583 strings.
22584 (child_setup): Handle Vlocal_environment_variables.
22585 (getenv_internal): Add terminal parameter.
22586 Handle Vlocal_environment_variables.
22587 (Fgetenv_internal): Add terminal parameter.
22588 (child_setup, getenv_internal, Fgetenv_internal): Store the local
22589 environment in a frame (not terminal) parameter. Update doc strings.
22590 (set_initial_environment): Rename from set_global_environment.
22591 Store Emacs environment in initial frame parameter.
22592
22593 * xdisp.c (redisplay_internal): Update references to
22594 `previous_terminal_frame'.
22595 (display_mode_line, Fformat_mode_line): Replace calls to
22596 `push_frame_kboard' with `push_kboard'.
22597 (get_glyph_string_clip_rects): Add extra parentheses and
22598 braces to prevent compiler warnings.
22599 (calc_pixel_width_or_height): Add xassert to check that the
22600 frame is alive. Don't call `lookup_image' on a termcap frame.
22601 (message2_nolog, message3_nolog, redisplay_internal)
22602 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
22603 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
22604 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
22605 (Fx_display_pixel_width, Fx_display_pixel_height)
22606 (Fx_display_planes, Fx_display_color_cells)
22607 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
22608 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
22609 (Fx_display_backing_store, Fx_display_visual_class)
22610 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
22611 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
22612
22613 * xfns.c (x_set_foreground_color x_set_background_color)
22614 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
22615 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
22616 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
22617 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
22618 terminal that is being deleted.
22619 (Fx_create_frame): Use `store_frame_param' to set `window-system'
22620 frame parameter, and make sure it overrides any user-supplied setting.
22621 (Fx_close_connection, Fx_synchronize): Unify argument names with
22622 the rest of the DEFUNs.
22623
22624 * dispnew.c (Fsend_string_to_terminal): Update call to
22625 `get_tty_terminal'.
22626 (Fredraw_frame, Fsend_string_to_terminal)
22627 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
22628 FRAME_TERMCAP_P and FRAME_TTY.
22629 (window_change_signal): Don't believe width/height values that are
22630 impossibly small.
22631 (Vinitial_window_system): Rename from Vwindow_system.
22632 (termscript, Wcm, rif): Delete.
22633
22634 * termhooks.h (struct terminal): New struct containing the
22635 previously global text display hooks and new members NAME,
22636 DELETED and PARAM_ALIST.
22637 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
22638 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
22639 (FRAME_RIF): New macros.
22640 (get_terminal_param, get_device): New declarations.
22641 (termscript): Delete declaration.
22642
22643 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
22644 (XTflash, x_free_frame_resources, x_scroll_bar_create)
22645 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
22646 FRAME_FOREGROUND_PIXEL.
22647 (x_fully_uncatch_errors): Disable definition.
22648 (x_scroll_bar_expose): Fix reference to foreground pixel.
22649 (XTread_socket): Disable loop on all X displays.
22650 (x_delete_terminal): Don't set terminal->deleted and let
22651 delete_terminal delete the frames on the terminal.
22652 (x_delete_display): Doc update to reflect changes in
22653 delete_terminal.
22654 (x_display_info) <terminal>: Move member earlier in the struct.
22655 (deleting_tty): Remove old variable.
22656 (Fsuspend_tty): Call clear_tty_hooks.
22657 (Fresume_tty, init_tty): Call set_tty_hooks.
22658 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
22659 errors on X frames.
22660 (x_catch_errors_unwind): Abort if x_error_message is NULL.
22661 (handle_one_xevent): Initialize `f' to NULL.
22662 (x_delete_terminal, x_create_terminal): New functions.
22663 (XTset_terminal_modes, XTreset_terminal_modes)
22664 (XTread_socket, x_connection_closed, x_term_init)
22665 (x_term_init, x_delete_display): Add terminal parameter.
22666 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
22667 X connections.
22668
22669 * frame.c: Include termchar.h.
22670 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
22671 (Qwindow_system, Qenvironment, Qterm_environment_variable)
22672 (Qdisplay_environment_variable): New vars.
22673 (Fframep): Deal with output_initial.
22674 (Fframe-live-p): Doc fix.
22675 (Fwindow-system): New function.
22676 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
22677 (make_terminal_frame): Don't create frames on a terminal that is
22678 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
22679 (store_frame_param): Check for found_for_frame before calling XFRAME.
22680 (Fmake_terminal_frame): Handle NULL tty names correctly.
22681 (syms_of_frame): Enhance doc string of `default-frame-alist'.
22682 (Fdelete_frame): Remove unused variable `count'. Don't allow other
22683 frames to refer to a deleted frame in their 'environment parameter.
22684 (Fframe_with_environment): New function.
22685 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
22686 (get_future_frame_param): New function.
22687 (Fmake_terminal_frame): Use it.
22688 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
22689
22690 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
22691 * sysdep.c (reset_sys_modes): Update for renames.
22692
22693 * keyboard.c (tty_read_avail_input): New function.
22694 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
22695 (syms_of_keyboard): Defsubr them.
22696 (Fset_input_meta_mode, Fset_quit_char): New functions.
22697 (Fset_input_mode): Split to above functions.
22698 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
22699 parameter. Use it in call to `read_char'.
22700 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
22701 Set wrong_kboard_jmpbuf correctly in recursive calls.
22702 Use current_kboard to access Vkeyboard_translate_table.
22703 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
22704 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
22705 Update longjmp invocations. Remember the original current_kboard,
22706 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
22707 changes it. Comment out unnecessary calls to
22708 `record_single_kboard_state' and `any_kboard_state'.
22709 Update recursive calls.
22710 (wrong_kboard_jmpbuf): Remove global variable.
22711 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
22712 Handle deleted interrupted_kboards correctly; that is a legal
22713 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
22714 and read_char calls. Abort if interrupted_kboard died in read_char.
22715 (any_kboard_state, single_kboard_state)
22716 (push_frame_kboard): Remove function.
22717 (pop_kboard): Switch out of single_kboard mode if the kboard has
22718 been deleted. Remove unused variable. Help debugging by not
22719 changing current_kboard unnecessarily. Set current_kboard to the
22720 kboard of the selected frame when the stored kboard object has
22721 been deleted before pop_kboard.
22722 (temporarily_switch_to_single_kboard): Change first parameter to a
22723 frame pointer. Throw an error when caller wants to change kboards
22724 while in single_kboard mode. Don't push_kboard if we weren't in
22725 single kboard state. Don't pop_kboard if we popped into any
22726 kboard state.
22727 (restore_kboard_configuration): Abort if pop_kboard changed the
22728 kboard in single_kboard mode. Call pop_kboard only after setting
22729 up single_kboard mode.
22730 (Frecursive_edit): Switch to single_kboard mode only in nested
22731 command loops.
22732 (cmd_error, command_loop, command_loop_1, timer_check):
22733 Comment out unnecessary call to `any_kboard_state' and
22734 `record_single_kboard_state'.
22735 (delete_kboard): Exit single_kboard mode if we have just deleted
22736 that kboard. Use FRAME_KBOARD.
22737 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
22738 `fatal_error_signal'.
22739 (record_single_kboard_state): Don't push_kboard if we weren't in
22740 single kboard state. Don't pop_kboard if we popped into any
22741 kboard state.
22742 (push_frame_kboard): Rename to push_kboard.
22743 (kbd_buffer_get_event): Use FRAME_TERMINAL.
22744 (read_avail_input): Read input from all terminals.
22745 (mark_kboards): Also mark Vkeyboard_translate_table.
22746 (kbd_buffer_store_event_hold): Simplify condition.
22747 (read_key_sequence): Reinitialize fkey and keytran at each replay.
22748 (Vkeyboard_translate_table): Move to struct kboard.
22749 (init_kboard): Initialize Vkeyboard_translate_table.
22750 (syms_of_keyboard): Use DEFVAR_KBOARD to define
22751 Vkeyboard_translate_table. Update doc strings. Update docs of
22752 local-function-key-map and function-key-map.
22753
22754 * terminal.c: New file.
22755
22756 * term.c: Include errno.h.
22757 (Vring_bell_function, device_list, initial_device)
22758 (next_device_id, ring_bell, update_begin, update_end)
22759 (set_terminal_window, cursor_to, raw_cursor_to)
22760 (clear_to_end, clear_frame, clear_end_of_line)
22761 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
22762 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
22763 (syms_of_term): Move their initialization to terminal.c.
22764 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
22765 (Ftty_display_color_cells)
22766 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
22767 (clear_tty_hooks, set_tty_hooks)
22768 (init_tty, maybe_fatal): New functions.
22769 (Ftty_type): Return nil if terminal is not on a tty instead of
22770 throwing an error. Doc update.
22771 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
22772 Doc update. Initialize new subrs and variables.
22773 (delete_tty): Use terminal->deleted.
22774 (tty_set_terminal_modes): Rename from set_terminal_modes.
22775 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
22776 (set_scroll_region): Rename to `tty_set_scroll_region'.
22777 (turn_on_insert): Rename to `tty_turn_on_insert'.
22778 (turn_off_insert): Rename to `tty_turn_off_insert'.
22779 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
22780 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
22781 (toggle_highligh): Rename to `tty_toggle_highlight'.
22782 (background_highlight): Rename to `tty_background_highlight'.
22783 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
22784 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
22785 (tty_set_scroll_region, tty_background_highlight)
22786 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
22787 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
22788 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
22789 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
22790 Add static modifier.
22791 (tty_reset_terminal_modes, tty_set_terminal_window)
22792 (tty_set_scroll_region, tty_background_highlight)
22793 (tty_highlight_if_desired, tty_cursor_to)
22794 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
22795 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
22796 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
22797 renames.
22798
227992007-08-28 Jan Djärv <jan.h.d@swipnet.se>
22800
22801 * keyboard.c: Qrtl is new.
22802 (parse_tool_bar_item): Handle :rtl keyword.
22803 (syms_of_keyboard): Intern :rtl keyword.
22804
22805 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
22806
22807 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
22808 so no Lisp code is executed.
22809 (file_for_image, find_rtl_image): New functions.
22810 (xg_get_image_for_pixmap): Use file_for_image.
22811 (update_frame_tool_bar): If direction is RTL, use RTL image if
22812 defined. Use Gtk stock images if defined.
22813
228142007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22815
22816 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
22817 for nonexistent or zero-width glyph in composition glyph.
22818
228192007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
22820
22821 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
22822
22823 * xdisp.c (Finvisible_p): New function.
22824 (syms_of_xdisp): defsubr it.
22825
228262007-08-24 Juanma Barranquero <lekktu@gmail.com>
22827
22828 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
22829 Doc fixes.
22830
228312007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22832
22833 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
22834
228352007-08-24 Martin Rudalics <rudalics@gmx.at>
22836
22837 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
22838 whether decoding has modified buffer contents.
22839
228402007-08-24 Jason Rumney <jasonr@gnu.org>
22841
22842 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
22843 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
22844 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
22845 (init_svg_functions) [HAVE_NTGUI]: New function.
22846 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
22847 (svg_load_image): Use them.
22848 (svg_load_image) [HAVE_NTGUI]: Implement background.
22849
228502007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22851
22852 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
22853 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
22854 (LIBX): Remove @RSVG_LIBS@.
22855 (LIBES): Add $(RSVG_LIBS).
22856
22857 * image.c (svg_load_image): Blend with specified background if exists.
22858 Use IMAGE_BACKGROUND. Add Mac OS Support.
22859
22860 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
22861 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
22862 Remove macros.
22863 [MAC_OSX] (socket_callback): Do nothing.
22864 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
22865 ReceiveNextEvent.
22866 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
22867 socket_callback.
22868 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
22869
228702007-08-22 Glenn Morris <rgm@gnu.org>
22871
22872 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
22873
228742007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
22875
22876 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
22877
22878 * image.c: Add support for SVG images. Some additional comments
22879 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
22880 (svg_image_p): New function to test for SVG image.
22881 (svg_load): New function to load SVG image.
22882 (svg_load_image): New function, helper for svg_load.
22883 (Qsvg): New Lisp_object.
22884 (svg_keyword_index): New enum.
22885 (svg_format): New static `image_keyword' struct.
22886 (svg_type): New static `image_type' struct.
22887 (librsvg/rsvg.h): Include it.
22888
228892007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
22890
22891 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
22892
228932007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
22894
22895 * lread.c (Qold_style_backquotes): New var.
22896 (syms_of_lread): Init and staticpro it.
22897 (load_warn_old_style_backquotes): New fun.
22898 (Fload): Use them to warn about old style backquotes.
22899 (end_of_file_error, Fload): Remove unused vars.
22900
22901 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
22902
22903 * lread.c (Vold_style_backquotes): New var.
22904 (syms_of_lread): Init and export it to Elisp.
22905 (read1): Set it when we find an old-style (back)quote.
22906
229072007-08-22 Jason Rumney <jasonr@gnu.org>
22908
22909 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
22910
229112007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
22912
22913 * puresize.h (BASE_PURESIZE): Increase to 1140000.
22914
229152007-08-19 Richard Stallman <rms@gnu.org>
22916
22917 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
22918
229192007-08-19 Andreas Schwab <schwab@suse.de>
22920
22921 * alloc.c (pure): Round PURESIZE up.
22922
229232007-08-17 Jan Djärv <jan.h.d@swipnet.se>
22924
22925 * xterm.c (handle_one_xevent): Remove check that mouse click is in
22926 active frame.
22927
229282007-08-16 Richard Stallman <rms@gnu.org>
22929
22930 * eval.c (Fcommandp): Add parens to clarify.
22931
22932 * minibuf.c (Fall_completions): Use enum for type of table.
22933
22934 * emacs.c (USAGE2): Improve text.
22935
229362007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
22937
22938 * term.c (tty_default_color_capabilities): Declare static
22939 variables in file scope, to avoid HPUX compiler problem.
22940
229412007-08-13 Jan Djärv <jan.h.d@swipnet.se>
22942
22943 * gtkutil.c (update_frame_tool_bar): Use -1 as index
22944 to gtk_toolbar_insert.
22945
229462007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
22947
22948 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
22949
22950 * insdel.c (reset_var_on_error): New fun.
22951 (signal_before_change, signal_after_change):
22952 Use it to reset (after|before)-change-functions to nil in case of error.
22953 Bind inhibit-modification-hooks to t.
22954 Don't bind (after|before)-change-functions to nil while they run.
22955
229562007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22957
22958 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
22959 filling pixmap with stippled background.
22960
229612007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22962
22963 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
22964 Don't use invisible frame as parent window for repositioning.
22965
229662007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
22967
22968 * print.c (new_backquote_output): Rename from old_backquote_output.
22969 (print): Inverse its logic (according to its name) so as to match the
22970 behavior of new_backquote_flag in lread.c.
22971
229722007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22973
22974 * gmalloc.c (posix_memalign): New function.
22975
22976 * macterm.c (frame_highlight, frame_unhighlight): Don't call
22977 ActivateControl/DeactivateControl here.
22978 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
22979 frame-notice-user-settings is non-nil.
22980 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
22981 for kEventParamFMFontStyle.
22982 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
22983 mac_pass_command_to_system and mac_pass_control_to_system here.
22984 (XTread_socket): Call ActivateControl/DeactivateControl here.
22985 (XTread_socket) [TARGET_API_MAC_CARBON]:
22986 Check mac_pass_command_to_system and mac_pass_control_to_system here.
22987 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
22988 for window repositioning.
22989
229902007-08-08 Glenn Morris <rgm@gnu.org>
22991
22992 * Replace `iff' in doc-strings and comments.
22993
229942007-08-07 Chong Yidong <cyd@stupidchicken.com>
22995
22996 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
22997
229982007-08-07 Martin Rudalics <rudalics@gmx.at>
22999
23000 * fileio.c (Finsert_file_contents): Run format-decode and
23001 after_insert_file_functions on entire buffer when REPLACE is
23002 non-nil and inhibit modification_hooks and point_motion_hooks.
23003 For consistency, run after_insert_file_functions iff something
23004 got inserted. Move signal_after_change and update_compositions
23005 after code running after_insert_file_functions. Make sure that
23006 undo_list doesn't record intermediate steps of the decoding process.
23007
230082007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23009
23010 * emacs.c (main)
23011 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
23012 Call malloc_enable_thread on interactive startup.
23013
23014 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
23015 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
23016 [USE_PTHREAD]: Conditionalize with it.
23017 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
23018 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
23019 New functions.
23020
230212007-08-06 Chong Yidong <cyd@stupidchicken.com>
23022
23023 * xdisp.c (redisplay_window): When restoring original buffer
23024 position, make sure it is still valid.
23025
23026 * image.c (png_load): Ignore png-supplied background color.
23027
230282007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23029
23030 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
23031 Use kCFAbsoluteTimeIntervalSince1970.
23032
23033 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
23034 New variable.
23035 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
23036 event loop should be quit.
23037 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
23038 Quit dialog event loop if quit_dialog_event_loop is set.
23039
23040 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
23041 (Selection): New typedef. Use instead of ScrapRef.
23042 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
23043 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
23044 (mac_clear_selection): Rename from clear_scrap.
23045 (get_flavor_type_from_symbol): New argument SEL and subsume function of
23046 scrap_has_target_type. All uses changed.
23047 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
23048 (mac_selection_has_target_p): New functions.
23049 (mac_put_selection_value): Rename from put_scrap_string.
23050 (mac_get_selection_value): Rename from get_scrap_string.
23051 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
23052 (put_scrap_private_timestamp, scrap_has_target_type)
23053 (get_scrap_private_timestamp): Remove functions.
23054 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
23055 (x_own_selection, x_get_local_selection):
23056 Use mac_valid_selection_value_p.
23057 (x_own_selection): Don't use put_scrap_private_timestamp.
23058 Record OWNERSHIP-INFO into Vselection_alist instead.
23059 (x_get_local_selection): Don't check type if request is local.
23060 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
23061 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
23062
230632007-08-04 Jan Djärv <jan.h.d@swipnet.se>
23064
23065 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
23066 add comment explaining why.
23067
230682007-08-03 Richard Stallman <rms@gnu.org>
23069
23070 * fileio.c (Fvisited_file_modtime): Use make_time.
23071
230722007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
23073
23074 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
23075 build.
23076
230772007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
23078
23079 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
23080
230812007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
23082
23083 * puresize.h (BASE_PURESIZE): Increase to 1130000.
23084
230852007-07-30 Richard Stallman <rms@gnu.org>
23086
23087 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
23088
230892007-07-29 Jan Djärv <jan.h.d@swipnet.se>
23090
23091 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
23092
230932007-07-28 Nick Roberts <nickrob@snap.net.nz>
23094
23095 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
23096 remote default-directory.
23097
23098 * buffer.c (mode-line-format): Update doc string.
23099
231002007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23101
23102 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
23103 scroll bar gap.
23104 (x_scroll_bar_create): Set bar->fringe_extended_p.
23105 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
23106 on frame edge. Check fringe background extension. Don't clear
23107 extended fringe background area.
23108
23109 * w32term.h (struct scroll_bar): New member fringe_extended_p.
23110 (w32_fill_area): Enclose multiple statements with do ... while (0).
23111
23112 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
23113 Extend fringe background to scroll bar gap.
23114 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
23115 Set bar->fringe_extended_p.
23116 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
23117 Put leftmost/rightmost scroll bars on frame edge. Check fringe
23118 background extension. Don't clear extended fringe background area.
23119
23120 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
23121 New member fringe_extended_p.
23122
231232007-07-25 Glenn Morris <rgm@gnu.org>
23124
23125 * Relicense all FSF files to GPLv3 or later.
23126
23127 * COPYING: Switch to GPLv3.
23128
231292007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
23130
23131 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
23132
23133 * data.c (Finteractive_form): Check for the presence of an
23134 `interactive-form' symbol property more thoroughly.
23135
23136 * data.c (Finteractive_form): Use an `interactive-form' property if
23137 present, analogous to the function-documentation property.
23138
231392007-07-24 Jason Rumney <jasonr@gnu.org>
23140
23141 * w32fns.c (x_real_positions): Get real position from OS instead of
23142 calculating it.
23143
231442007-07-23 Jason Rumney <jasonr@gnu.org>
23145
23146 * filelock.c (current_lock_owner): Allow for @ sign in username.
23147
231482007-07-22 Nick Roberts <nickrob@snap.net.nz>
23149
23150 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
23151 remote default-directory.
23152
23153 * buffer.c (mode-line-format): Describe above case in doc string.
23154
231552007-07-20 Eli Zaretskii <eliz@gnu.org>
23156
23157 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
23158 Define if not defined.
23159
231602007-07-18 Jason Rumney <jasonr@gnu.org>
23161
23162 * w32proc.c (w32_executable_type): Handle 64 bit executables.
23163
231642007-07-18 Richard Stallman <rms@gnu.org>
23165
23166 * data.c (Fsetq_default): Doc fix.
23167
23168 * eval.c (Fsetq): Doc fix.
23169
231702007-07-18 Juanma Barranquero <lekktu@gmail.com>
23171
23172 * coding.c (Ffind_operation_coding_system):
23173 * eval.c (For, Fand): Doc fixes.
23174 Reported by Johan Bockgård.
23175
231762007-07-18 Jan Djärv <jan.h.d@swipnet.se>
23177
23178 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
23179
23180 * xterm.h: Declare x_ewmh_activate_frame.
23181
23182 * xterm.c (x_ewmh_activate_frame): New function.
23183 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
23184
231852007-07-17 Martin Rudalics <rudalics@gmx.at>
23186
23187 * window.c (Fdisplay_buffer): If largest or LRU window is the
23188 only window, split it even if it is not eligible for splitting.
23189 This restores the original behavior broken by the 2007-07-15
23190 change.
23191
231922007-07-17 Glenn Morris <rgm@gnu.org>
23193
23194 * abbrev.c (abbrev_check_chars): New function.
23195 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
23196 Call abbrev_check_chars to check abbrev characters are word
23197 constituents. Doc fix.
23198
231992007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
23200
23201 * process.c (Fstart_process, Fmake_network_process)
23202 (read_process_output): Fix up last changes.
23203
232042007-07-16 Eli Zaretskii <eliz@gnu.org>
23205
23206 * makefile.w32-in (clean): Don't delete *~.
23207
232082007-07-16 Andreas Schwab <schwab@suse.de>
23209
23210 * window.c (Fdisplay_buffer): Use NILP.
23211 (Fset_window_scroll_bars): Likewise.
23212
232132007-07-15 Martin Rudalics <rudalics@gmx.at>
23214
23215 * window.c (window_min_size_2): New function.
23216 (window_min_size_1, size_window, Fdisplay_buffer)
23217 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
23218 windows without mode- or header-lines when window-min-height is
23219 too small.
23220 (size_window): Reset nodelete_p after testing it, following an
23221 earlier note by Kim F. Storm.
23222 (display_buffer): Do not set split_height_threshold to twice the
23223 value of window_min_height to avoid changing the value of a
23224 customizable variable. Rather explicitly check whether the
23225 height of the window that shall be splitted is at least as large
23226 as split_height_threshold.
23227 (Fwindow_full_width_p): New defun.
23228 (syms_of_window): Defsubr it.
23229
23230 * window.h: Add EXFUN for Fwindow_full_width_p.
23231
232322007-07-14 Jason Rumney <jasonr@gnu.org>
23233
23234 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
23235
232362007-07-14 Richard Stallman <rms@gnu.org>
23237
23238 * eval.c (maybe_call_debugger): New function.
23239 (find_handler_clause): Use maybe_call_debugger.
23240 Call it when the handler says `debug'.
23241 Eliminate DEBUGGER_VALUE_PTR.
23242 (Fsignal): Eliminate debugger_value.
23243 (Qdebug): New variable.
23244 (syms_of_eval): Initialize it.
23245
232462007-07-14 Juanma Barranquero <lekktu@gmail.com>
23247
23248 * eval.c (Fprogn):
23249 * keyboard.c (Ftrack_mouse):
23250 * print.c (Fwith_output_to_temp_buffer):
23251 * window.c (Fsave_window_excursion): Doc fix.
23252
232532007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
23254
23255 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
23256
232572007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
23258
23259 * process.h (struct Lisp_Process): Turn slots infd, outfd,
23260 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
23261 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
23262 read_output_delay, and read_output_skip from Lisp_Objects to ints.
23263 Remove unused encoding_carryover.
23264 * process.c: Adjust all functions accordingly.
23265
232662007-07-12 Richard Stallman <rms@gnu.org>
23267
23268 * term.c: Include unistd.h only if HAVE_UNISTD_H.
23269
232702007-07-11 Jason Rumney <jasonr@gnu.org>
23271
23272 * makefile.w32-in (LIBS): Include OLE32.
23273
23274 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
23275 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
23276
232772007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
23278
23279 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
23280 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
23281 from a Lisp_Object into a bare pointer.
23282 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
23283 Adjust the code correspondingly.
23284
23285 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
23286
23287 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
23288 (term_show_mouse_face): Remove unused var `j'.
23289 (handle_one_term_event): Remove unused vars `i' and `j'.
23290 Don't cast return value of ttyname since it's not necessary.
23291
232922007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
23293
23294 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
23295 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
23296
23297 * fns.c (map_char_table): Use an array of int for `indices' rather than
23298 an array of Lisp_Objects (which are only ever integers anyway).
23299 (Fmap_char_table): Update caller.
23300 * lisp.h: Update prototype.
23301 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
23302 * fontset.c (Ffontset_info):
23303 * casetab.c (set_case_table): Update callers.
23304
23305 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
23306
23307 * keymap.c (struct accessible_keymaps_data)
23308 (struct where_is_internal_data): New structures.
23309 (accessible_keymaps_1, where_is_internal_1): Use them to change
23310 interface to adhere to the one used by map_keymap.
23311 (Faccessible_keymaps, where_is_internal): Use map_keymap.
23312 (accessible_keymaps_char_table, where_is_internal_2): Remove.
23313
23314 * keymap.h (map_keymap_function_t): More informative prototype.
23315
233162007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
23317
23318 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
23319 (looking_at_1): Don't change search_regs and last_thing_searched
23320 if `inhibit-changing-match-data' is non-nil.
23321 (string_match_1, search_buffer, set_search_regs): Likewise.
23322 (syms_of_search): Add Lisp level definition for
23323 `inhibit-changing-match-data' and set it to nil.
23324 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
23325 start and end of the match, instead of using values in search_regs.
23326
233272007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
23328
23329 * minibuf.c (Fcompleting_read): New value `confirm-only'
23330 for `require-match'.
23331
233322007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
23333
23334 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
23335 part of the 2007-06-27 change to syms_of_fileio.
23336
233372007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23338
23339 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
23340 Check WINDOWP before using XWINDOW. Consolidate return statements.
23341
233422007-06-27 Richard Stallman <rms@gnu.org>
23343
23344 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
23345
233462007-06-27 Juanma Barranquero <lekktu@gmail.com>
23347
23348 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
23349
233502007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23351
23352 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
23353 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
23354 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
23355 (_free_internal, memalign): Use them.
23356 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
23357 Initialize to PTHREAD_MUTEX_INITIALIZER.
23358 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
23359 (morecore_nolock): Rename from morecore. All uses changed.
23360 Use only nolock versions of internal allocation functions.
23361 (_malloc_internal_nolock, _realloc_internal_nolock)
23362 (_free_internal_nolock): New functions created from
23363 _malloc_internal, _realloc_internal, and _free_internal.
23364 (_malloc_internal, _realloc_internal, _free_internal): Use them.
23365 Copy hook value to automatic variable before its use.
23366 (memalign): Copy hook value to automatic variable before its use.
23367
233682007-06-26 Kenichi Handa <handa@m17n.org>
23369
23370 * coding.c (Ffind_operation_coding_system): Docstring improved.
23371 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
23372
233732007-06-25 David Kastrup <dak@gnu.org>
23374
23375 * keymap.c (Fcurrent_active_maps): Add `position' argument.
23376 (Fwhere_is_internal): Adjust call to `current-active-maps' to
23377 cater for additional parameter.
23378
23379 * keymap.h: Adjust number of parameters to `current-active-maps'.
23380
23381 * doc.c (Fsubstitute_command_keys): Adjust call of
23382 `current-active-maps'.
23383
233842007-06-25 David Kastrup <dak@gnu.org>
23385
23386 * callint.c (Fcall_interactively): Make the parsing of interactive
23387 specs somewhat more readable.
23388
233892007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23390
23391 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
23392 to scroll bar gap also when bitmap fills fringe. Draw only foreground
23393 if extended background has already been filled.
23394
233952007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23396
23397 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
23398 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
23399
23400 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
23401 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
23402 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
23403 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
23404 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
23405 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
23406 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
23407 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
23408 Run timers during dialog popup.
23409 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
23410
234112007-06-21 Jason Rumney <jasonr@gnu.org>
23412
23413 * image.c (convert_mono_to_color_image): Swap fore and background.
23414
234152007-06-20 Jason Rumney <jasonr@gnu.org>
23416
23417 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
23418 (w32_free_bdf_font): Unmap memory not handle.
23419
234202007-06-20 Sam Steingold <sds@gnu.org>
23421
23422 * gmalloc.c (__morecore): Fix the declaration to comply with the
23423 definition.
23424
234252007-06-20 Juanma Barranquero <lekktu@gmail.com>
23426
23427 * w32term.c (w32_delete_display): Remove leftover declaration.
23428 (w32_define_cursor, w32_initialize): Make static.
23429
23430 * w32.c (_wsa_errlist): Fix typo in error message.
23431 (init_environment): Ignore any environment variable from the
23432 registry having a null value.
23433
234342007-06-20 Glenn Morris <rgm@gnu.org>
23435
23436 * Makefile.in (LIBGIF): Default to -lgif.
23437
234382007-06-17 Jason Rumney <jasonr@gnu.org>
23439
23440 * w32menu.c (add_menu_item): Don't use multibyte string functions on
23441 unicode strings.
23442
234432007-06-16 Juanma Barranquero <lekktu@gmail.com>
23444
23445 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
23446 Fix typo in docstring.
23447
234482007-06-16 Eli Zaretskii <eliz@gnu.org>
23449
23450 * w32menu.c (add_menu_item): Escape `&' characters in menu items
23451 and their keybindings.
23452
234532007-06-15 Chong Yidong <cyd@stupidchicken.com>
23454
23455 * composite.c (update_compositions): Fix last fix.
23456
234572007-06-14 Jason Rumney <jasonr@gnu.org>
23458
23459 * w32.c (get_process_times_fn): New function pointer.
23460 (globals_of_w32): Intialize it if present in kernel32.dll.
23461 (w32_get_internal_run_time): New function.
23462
23463 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
23464
234652007-06-14 Kenichi Handa <handa@etlken.m17n.org>
23466
23467 * composite.c (update_compositions): Check the validness of
23468 compositions.
23469
234702007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23471
23472 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
23473 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
23474
23475 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
23476 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
23477
23478 * macgui.h (USE_MAC_TOOLBAR): New define.
23479
23480 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
23481 Return immediately unless popup is activated.
23482
23483 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
23484 background to scroll bar gap.
23485 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
23486 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
23487 scroll bars on frame edge. Check fringe background extension.
23488 Don't clear extended fringe background area.
23489 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
23490 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
23491 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
23492 [USE_MAC_TOOLBAR]: New macros.
23493 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
23494 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
23495 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
23496 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
23497 [USE_MAC_TOOLBAR]: New functions.
23498 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
23499 manually if previous repositioning has failed.
23500 (mac_handle_keyboard_event): Use precomputed event kind.
23501 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
23502 as tool bar item click. Handle mouse movement over tool bar items.
23503
23504 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
23505 toolbar_win_gravity.
23506 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
23507 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
23508 Add externs.
23509
23510 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
23511 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
23512
235132007-06-14 Chong Yidong <cyd@stupidchicken.com>
23514
23515 * image.c (search_image_cache): Remove unused variable.
23516
235172007-06-13 Chong Yidong <cyd@stupidchicken.com>
23518
23519 * xfns.c, xmenu.c: Link to xaw3d if available.
23520
235212007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23522
23523 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
23524 frame_foreground and frame_background.
23525
23526 * image.c (lookup_image): Save frame foreground and background colors.
23527 (search_image_cache): Check if saved and current frame colors match.
23528
235292007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
23530
23531 * regex.c (regex_compile): Remove the `regnum' counter.
23532 Use bufp->re_nsub instead. Add support for \(?N:RE\).
23533
235342007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
23535
23536 * term.c: Include intervals.h to declare Fget_text_property.
23537
235382007-06-10 Jason Rumney <jasonr@gnu.org>
23539
23540 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
23541
235422007-06-08 Juanma Barranquero <lekktu@gmail.com>
23543
23544 * callint.c (Fcall_interactively):
23545 * editfns.c (Fdelete_and_extract_region):
23546 * fileio.c (Fread_file_name):
23547 * fns.c (Fmapconcat):
23548 * keyboard.c (cmd_error_internal):
23549 * keymap.c (Fkey_description):
23550 * lread.c (openp):
23551 * minibuf.c (read_minibuf):
23552 * search.c (wordify):
23553 * sunfns.c (sel_read):
23554 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
23555 * xfns.c (x_default_scroll_bar_color_parameter):
23556 * xmenu.c (menu_help_callback):
23557 * xselect.c (Fx_get_atom_name):
23558 * xterm.c (x_term_init): Use empty_unibyte_string.
23559
235602007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
23561
23562 * alloc.c (init_strings): Initialize canonical empty strings.
23563 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
23564 canonical empty string when the requested size is 0.
23565
23566 * emacs.c (empty_unibyte_string): Rename from empty_string.
23567 (empty_multibyte_string): New canonical empty string.
23568 (syms_of_emacs): Don't initialize empty_string.
23569
23570 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
23571 string, if appropriate.
23572 (empty_unibyte_string, empty_multibyte_string): New externs.
23573 (empty_string): Remove extern.
23574
23575 * lread.c (syms_of_lread): Use empty_unibyte_string.
23576
235772007-06-07 Jason Rumney <jasonr@gnu.org>
23578
23579 * s/ms-w32.h: Don't define HAVE_TZNAME.
23580
23581 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
23582
235832007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23584
23585 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
23586
23587 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
23588 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
23589
23590 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
23591 Don't call next handler.
23592 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
23593 Remove argument. Install handler to application.
23594 (set_frame_menubar): Don't change deep_p.
23595 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
23596 FRAME_OUTER_TO_INNER_DIFF_Y.
23597 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
23598 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
23599 [HAVE_DIALOGS]: New macros.
23600 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
23601 Use them.
23602 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
23603
23604 * macselect.c [MAC_OSX] (install_service_handler): Rename from
23605 init_service_handler. All callers changed. Return OSStatus value.
23606
23607 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
23608 All callers changed so as not to call SetPortWindowPort.
23609 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
23610 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
23611 mac_draw_string_common.
23612 (mac_draw_image_string_qd): Likewise.
23613 (mac_draw_string_common): Use them. Add INLINE.
23614 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
23615 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
23616 GetGlobalMouse.
23617 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
23618 and FRAME_OUTER_TO_INNER_DIFF_Y.
23619 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
23620 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
23621 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
23622 repositioning window to mac_handle_window_event.
23623 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
23624 saving window location to mac_handle_window_event
23625 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
23626 (install_menu_target_item_handler): Remove argument in extern.
23627 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
23628 Also accept command events.
23629 (do_keystroke): New function created from XTread_socket.
23630 (init_command_handler): Remove functions.
23631 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
23632 and save window location by kEventWindowShowing and kEventWindowHiding
23633 handlers here. Don't call next handler for window state change and
23634 focus events.
23635 (mac_handle_application_event, mac_handle_keyboard_event)
23636 [TARGET_API_MAC_CARBON]: New functions.
23637 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
23638 kEventWindowShowing and kEventWindowHiding events. Move installation
23639 of mouse, font, text input and menu target item handlers to
23640 install_application_handler.
23641 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
23642 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
23643 New function.
23644 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
23645 Register it.
23646 (XTread_socket) [TARGET_API_MAC_CARBON]:
23647 Consolidate SendEventToEventTarget calls.
23648 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
23649 Move application activation handler to mac_handle_application_event.
23650 Move keyboard handler to mac_handle_keyboard_event.
23651 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
23652 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
23653 init_command_handler. Call install_application_handler.
23654
23655 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
23656 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
23657
236582007-06-07 Glenn Morris <rgm@gnu.org>
23659
23660 * emacs.c (main): Use `emacs-copyright' in --version output.
23661
236622007-06-06 Chong Yidong <cyd@stupidchicken.com>
23663
23664 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
23665
236662007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23667
23668 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
23669
23670 * macgui.h: Replace WindowPtr with WindowRef.
23671
23672 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
23673 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
23674 Replace ControlHandle with ControlRef.
23675 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
23676
23677 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
23678 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
23679 Replace ControlHandle with ControlRef.
23680 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
23681 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
23682
23683 * macterm.h (struct scroll_bar): Rename member control_handle_low
23684 and control_handle_high to control_ref_low and control_ref_high.
23685 All uses changed.
23686 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
23687 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
23688 respectively. All uses changed.
23689 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
23690 (install_window_handler, remove_window_handler): Replace WindowPtr
23691 with WindowRef in externs.
23692
236932007-06-05 Juanma Barranquero <lekktu@gmail.com>
23694
23695 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
23696
236972007-06-03 Nick Roberts <nickrob@snap.net.nz>
23698
23699 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
23700
23701 * frame.c (Fmouse_position, Fmouse_pixel_position):
23702 Condition on HAVE_GPM too.
23703
23704 * term.c (term_mouse_highlight): Remove unused variables.
23705 (Fterm_open_connection): Set gpm_zerobased to 1.
23706 (term_mouse_movement, term_mouse_click, handle_one_term_event):
23707 Use zero based co-ordinates.
23708 (handle_one_term_event): Report a drag as mouse movement too.
23709
23710 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
23711
237122007-06-03 Chong Yidong <cyd@stupidchicken.com>
23713
23714 * image.c (search_image_cache): New function. Require background
23715 color match if background color is unspecified in the image spec.
23716 (uncache_image, lookup_image): Use it.
23717
237182007-06-01 Juanma Barranquero <lekktu@gmail.com>
23719
23720 * window.c (Fshrink_window): Reflow docstring.
23721
237222007-06-02 Chong Yidong <cyd@stupidchicken.com>
23723
23724 * Version 22.1 released.
23725
237262007-06-01 Richard Stallman <rms@gnu.org>
23727
23728 * xfns.c (x_encode_text): Add GCPRO.
23729
237302007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23731
23732 * xfns.c (x_set_name_internal): Save encoded name before
23733 x_encode_text in case string data is relocated.
23734
237352007-05-31 Richard Stallman <rms@gnu.org>
23736
23737 * buffer.c (syms_of_buffer): Doc fix.
23738
237392007-05-30 Nick Roberts <nickrob@snap.net.nz>
23740
23741 * sysdep.c (init_sys_modes): Add rather than replace with
23742 O_NONBLOCK.
23743
23744 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
23745 term_mouse_moveto.
23746
23747 * termhooks.h (term_mouse_moveto): New extern.
23748
23749 * term.c (mouse_face_window): Rename...
23750 (Qmouse_face_window): ...to this.
23751 (term_show_mouse_face, term_clear_mouse_face)
23752 (term_mouse_highlight): Use Qmouse_face_window.
23753 (term_mouse_moveto): New function.
23754 (term_mouse_position): Make it work.
23755 (syms_of_term): Uncomment assignment to mouse_position_hook.
23756 Staticpro Qmouse_face_window.
23757
237582007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23759
23760 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
23761 around current_column call.
23762
237632007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
23764
23765 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
23766 * xdisp.c (next_element_from_buffer):
23767 * window.c (delete_window):
23768 * term.c (term_mouse_highlight):
23769 * msdos.c (getdefdir):
23770 * macterm.c (mac_create_bitmap_from_bitmap_data)
23771 (init_font_name_table):
23772 * fns.c (Fsxhash):
23773 * data.c (Fmake_local_variable):
23774 * ccl.c (ccl_driver): Likewise.
23775
237762007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23777
23778 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
23779 Call mac_wakeup_from_rne on window size change.
23780
237812007-05-25 Chong Yidong <cyd@stupidchicken.com>
23782
23783 * image.c (uncache_image): Fix typo.
23784
237852007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
23786
23787 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
23788
237892007-05-22 Richard Stallman <rms@gnu.org>
23790
23791 * xterm.c (x_connection_closed): Remove NO_RETURN.
23792
237932007-05-22 Martin Rudalics <rudalics@gmx.at>
23794
23795 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
23796
237972007-05-21 Chong Yidong <cyd@stupidchicken.com>
23798
23799 * image.c (uncache_image): New function.
23800 (Fimage_refresh): New function.
23801
238022007-05-20 Jan Djärv <jan.h.d@swipnet.se>
23803
23804 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
23805
238062007-05-20 Nick Roberts <nickrob@snap.net.nz>
23807
23808 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
23809 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
23810
238112007-05-20 Nick Roberts <nickrob@snap.net.nz>
23812
23813 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
23814 conditional on [HAVE_GPM_H].
23815
238162007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
23817
23818 * syntax.c (skip_chars): Update syntax-table only after we checked that
23819 the new location is valid.
23820
238212007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23822
23823 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
23824 mac_get_window_bounds.
23825
238262007-05-20 Nick Roberts <nickrob@snap.net.nz>
23827
23828 * Makefile.in (LIBGPM): Allow it to be set from configure.
23829 If set then link Emacs with it.
23830
23831 * config.in: Regenerate.
23832
23833 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
23834 New externs.
23835
23836 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
23837 Include gpm.h.
23838 (handle_one_term_event, term_gpm): New externs.
23839
23840 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
23841 and allow it to be interrupted by SIGIO.
23842
23843 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
23844 (wait_reading_process_output): Wait on gpm_fd too.
23845 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
23846 (add_gpm_wait_descriptor_called_flag): New variable.
23847 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
23848
23849 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
23850 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
23851 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
23852 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
23853 (make_lispy_event): Add case GPM_CLICK_EVENT.
23854 (read_avail_input): Handle mouse input.
23855
23856 * term.c (write_glyphs_with_face): New function.
23857 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
23858 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
23859 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
23860 (mouse_face_face_id, term_gpm, pos_x, pos_y)
23861 (last_mouse_x, last_mouse_y): New variables.
23862 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
23863 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
23864 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
23865 (Fterm_close_connection): New functions.
23866 (term_init): Initialise mouse_face_window.
23867
238682007-05-19 Chong Yidong <cyd@stupidchicken.com>
23869
23870 * xdisp.c (redisplay_window): If first window line is a
23871 continuation line, recompute the new window start instead of
23872 recentering.
23873
238742007-05-18 Glenn Morris <rgm@gnu.org>
23875
23876 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
23877 Suggested by Alfred M. Szmidt <ams@gnu.org>.
23878
238792007-05-17 Glenn Morris <rgm@gnu.org>
23880
23881 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
23882
238832007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23884
23885 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
23886 dead key repeat and up events.
23887
238882007-05-14 Chong Yidong <cyd@stupidchicken.com>
23889
23890 * image.c (pbm_load): Check image size for monochrome pbm.
23891
238922007-05-13 Chong Yidong <cyd@stupidchicken.com>
23893
23894 * xterm.c (XTread_socket): Revert last change.
23895
238962007-05-12 Chong Yidong <cyd@stupidchicken.com>
23897
23898 * image.c (pbm_load): Correctly check image size for greyscale pbm.
23899
23900 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
23901
239022007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
23903
23904 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
23905 mixup (YAILOM).
23906
239072007-05-07 Andreas Schwab <schwab@suse.de>
23908
23909 * keymap.c (Flookup_key): Fix typo in last change.
23910
239112007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
23912
23913 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
23914 mapping for unibyte strings.
23915
239162007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23917
23918 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
23919 (Fx_popup_dialog) [MAC_OSX]: Likewise.
23920
239212007-04-29 Richard Stallman <rms@gnu.org>
23922
23923 * insdel.c (replace_range): For undo, record insertion first.
23924
239252007-04-29 Andreas Schwab <schwab@suse.de>
23926
23927 * lisp.h (VECSIZE): Use OFFSETOF.
23928
239292007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23930
23931 * xdisp.c (try_window_reusing_current_matrix): Fix number of
23932 disabled lines.
23933
239342007-04-28 Richard Stallman <rms@gnu.org>
23935
23936 * lread.c (read_escape): In a string, \s is always space.
23937
239382007-04-27 Jan Djärv <jan.h.d@swipnet.se>
23939
23940 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
23941
23942 * gtkutil.c (xg_update_menubar, create_menus): Create empty
23943 submenu for menu bar items.
23944
23945See ChangeLog.10 for earlier changes.
23946
23947;; Local Variables:
23948;; coding: utf-8
23949;; add-log-time-zone-rule: t
aac0c6e3
MR
23950;; End:
23951
e3eb1dae 23952 Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
aac0c6e3
MR
23953
23954 This file is part of GNU Emacs.
23955
23956 GNU Emacs is free software: you can redistribute it and/or modify
23957 it under the terms of the GNU General Public License as published by
23958 the Free Software Foundation, either version 3 of the License, or
23959 (at your option) any later version.
23960
23961 GNU Emacs is distributed in the hope that it will be useful,
23962 but WITHOUT ANY WARRANTY; without even the implied warranty of
23963 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23964 GNU General Public License for more details.
23965
23966 You should have received a copy of the GNU General Public License
23967 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
23968
23969;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40