(EMACS): Doc fix.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
9204cb8b
CY
12008-07-05 Chong Yidong <cyd@stupidchicken.com>
2
3 * xdisp.c (try_window_id): Give up if word-wrapping is on.
4
6c95e70d
AS
52008-07-05 Andreas Schwab <schwab@suse.de>
6
7 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM
8 section.
9
59230395
CY
102008-07-05 Chong Yidong <cyd@stupidchicken.com>
11
12 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
13 word-wrapping.
14 (IT_DISPLAYING_WHITESPACE): New macro.
15 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
16 when word-wrapping. Simplify word-wrapping logic. Use correct
17 pixel positions when saving copies of the iterator.
18 (display_line): Use proper wrap point if the last character on a
19 line was preceded by whitespace.
20
d7c664f3
SM
212008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
22
23 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
24
9ffc8a3a
KH
252008-07-04 Kenichi Handa <handa@m17n.org>
26
27 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
28
29 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
30
946598bf
JR
312008-07-02 Jason Rumney <jasonr@gnu.org>
32
d7c664f3
SM
33 * xfns.c (syms_of_xfns): Only define x-select-font when both
34 HAVE_FREETYPE and USE_GTK
946598bf 35
d7c664f3
SM
36 * xdisp.c (next_element_from_display_vector): Move assignment out
37 of if statement.
946598bf 38
6cf29fe8
JR
392008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
40
d7c664f3 41 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
6cf29fe8 42
d7c664f3
SM
43 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
44 (syms_of_fileio): Initialize and export them.
45 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
6cf29fe8 46
d7c664f3
SM
47 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
48 (Fsystem_move_file_to_trash): New function.
49 (syms_of_w32fns): Export it to lisp.
6cf29fe8 50
79ca7db1
JR
512008-07-01 Jason Rumney <jasonr@gnu.org>
52
d7c664f3
SM
53 * w32font.c (w32font_text_extents): Don't count overhang as part
54 of width.
79ca7db1 55
c2786a3d 562008-06-30 Miles Bader <miles@gnu.org>
c4f4682b
MB
57
58 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
59 Add `avoid_cursor_p' field.
60
61 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
62 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
63 (append_glyph, append_composite_glyph, produce_image_glyph)
c2786a3d
JB
64 (append_stretch_glyph): Initialize avoid_cursor_p.
65 (get_it_property): Rename from `get_line_height_property'.
c4f4682b
MB
66 (x_produce_glyphs): Use get_it_property.
67 (handle_line_prefix, push_display_prop): New functions.
68 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
c2786a3d
JB
69 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
70 New variables.
c4f4682b
MB
71 (syms_of_xdisp): Initialize them.
72
7d7ad10e
KH
732008-06-30 Kenichi Handa <handa@m17n.org>
74
75 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
76 XftDefaultSubstitute (they are called in XftFontMatch).
77 (xftfont_open): Fix args to ftfont_font_format.
78
79 * ftfont.c (fc_charset_table): New member lang.
80 (ftfont_resolve_generic_family): New arg pattern.
81 (ftfont_spec_pattern): Check fc_cahrset_table[]->lang.
82 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
83 (ftfont_open): Fix args to ftfont_font_format.
84 (ftfont_font_format): New arg filename.
85
44b754c7
CY
862008-06-30 Chong Yidong <cyd@stupidchicken.com>
87
88 * xfaces.c (Finternal_merge_in_global_face): If default face was
89 modified, realize it again. Update the font face attribute.
90
a4521b03
JR
912008-06-29 Jason Rumney <jasonr@gnu.org>
92
c2786a3d 93 * w32term.c (x_set_frame_alpha): Fix logic.
a4521b03 94
fe44f009
KH
952008-06-29 Kenichi Handa <handa@m17n.org>
96
97 * fontset.c (Finternal_char_font): Return font-object instead of
98 font-name.
99
c2786a3d 100 * composite.c (get_composition_id): Fix the width calculation for TAB.
fe44f009 101
baed8445
SM
1022008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
103
104 * indent.c (Fvertical_motion): Properly handle float column arg.
105
8b61a891
JR
1062008-06-28 Jason Rumney <jasonr@gnu.org>
107
baed8445
SM
108 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
109 (pfnSetLayeredWindowAttributes): New function pointer.
110 (w32_initialize): Initialize it when supported.
111 (x_set_frame_alpha): New function.
8b61a891 112
baed8445
SM
113 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
114 (w32_frame_parm_handlers): Set alpha handler.
8b61a891 115
baed8445 116 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
8b61a891 117
57016d37
JR
1182008-06-27 Jason Rumney <jasonr@gnu.org>
119
baed8445
SM
120 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
121 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
122 (w32_to_x_charset, x_to_w32_charset)
123 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
124 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
125 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
126 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
127 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
128 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
129 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
130 (Qw32_charset_unicode): Remove.
131 (syms_of_w32fns): Update for above changes.
132
133 * w32font.c (w32_to_x_charset, x_to_w32_charset)
134 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
135 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
136 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
137 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
138 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
139 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
140 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
141 (syms_of_w32font): Update for above changes.
57016d37 142
d6bf1bdb
DN
1432008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
144
145 * s/usg5-4.h: Fix previous change: keep the correct branch of a
146 removed #if.
9fa1c445 147 (USG_SHARED_LIBRARIES): Remove duplicate definition.
d6bf1bdb 148
43db14bb
JB
1492008-06-26 Juanma Barranquero <lekktu@gmail.com>
150 Eli Zaretskii <eliz@gnu.org>
151
152 * makefile.w32-in (LOCAL_FLAGS):
153 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
154
155 * sysdep.c (_spawnlp, _getpid):
156 Declare with explicit _cdecl instead of _CRTAPI1.
157
158 * editfns.c (Fget_internal_run_time):
159 Check for WINDOWSNT with #ifdef, not #if.
160
c35f9821
JR
1612008-06-26 Jason Rumney <jasonr@gnu.org>
162
43db14bb 163 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
c35f9821 164
57016d37 165 * w32term.c (x_draw_glyph_string_foreground)
43db14bb
JB
166 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
167 Use FONT_HANDLE macro.
168 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
c35f9821 169
57016d37 170 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
43db14bb 171 (uniscribe_encode_char): Use FONT_HANDLE macro.
c35f9821 172
43db14bb
JB
173 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
174 (w32font_text_extents): Use precast w32_font.
175 (w32font_close): Free cached metrics.
176 (w32font_open_internal): Allocate space for name on stack.
c35f9821 177
1f8ad719
CY
1782008-06-26 Chong Yidong <cyd@stupidchicken.com>
179
180 * xdisp.c (extend_face_to_end_of_line): Fix last change.
181
97e71655
JR
1822008-06-26 Jason Rumney <jasonr@gnu.org>
183
43db14bb
JB
184 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
185 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
97e71655 186
c9fc02c7
JB
1872008-06-26 Juanma Barranquero <lekktu@gmail.com>
188
189 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
190
1b5defe6
JR
1912008-06-26 Jason Rumney <jasonr@gnu.org>
192
c9fc02c7 193 * w32bdf.c, w32bdf.h: Remove obsolete files.
1b5defe6 194
c9fc02c7 195 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
1b5defe6 196
c9fc02c7
JB
197 * w32gui.h: Don't include w32bdf.h.
198 (XCharStruct, enum w32_char_font_type, W32FontStruct):
199 Remove obsolete font support.
1b5defe6 200
c9fc02c7
JB
201 * w32font.h (struct w32font_info): Remove compat_w32_font.
202 Add hfont member.
203 (FONT_COMPAT): Remove obsolete macro.
1b5defe6 204
c9fc02c7
JB
205 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
206 (w32font_encode_char, w32font_text_extents): Use new hfont member.
207 (w32font_open_internal): Remove compat code. Set new hfont member.
208 (Fx_select_font): Use new hfont member.
1b5defe6 209
57016d37 210 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
c9fc02c7 211 (uniscribe_encode_char): Use new hfont member.
1b5defe6 212
57016d37 213 * w32term.c (x_draw_glyph_string_foreground)
c9fc02c7
JB
214 (x_draw_composite_glyph_string_foreground): Use new hfont member.
215 (x_draw_glyph_string): Use metrics in w32font_info.
1b5defe6 216
1fc66bca
KH
2172008-06-26 Kenichi Handa <handa@m17n.org>
218
219 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
220
f2a77c3a
DN
2212008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
222
223 * unexnext.c:
224 * m/ews4800.h:
225 * m/hp9000s300.h:
226 * m/ibm370aix.h:
227 * m/mips-siemens.h:
228 * m/ncr386.h:
229 * m/next.h:
230 * m/pmax.h:
231 * m/powerpcle.h:
232 * m/tandem-s2.h:
233 * s/386bsd.h:
234 * s/bsd386.h:
235 * s/bsd4-1.h:
236 * s/bsd4-2.h:
237 * s/bsdos2-1.h:
238 * s/bsdos2.h:
239 * s/bsdos3.h:
240 * s/bsdos4.h:
241 * s/nextstep.h:
242 * s/ultrix4-3.h:
243 * s/usg5-0.h:
244 * s/usg5-2-2.h:
245 * s/usg5-2.h:
246 * s/usg5-4-3.h:
247 * s/ux4800.h:
248 * s/uxpds.h:
249 * s/uxpv.h: Remove support for obsolete systems.
250 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
251 Remove, insert contents in s/hpux-10.20.h
252 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
253 Remove, insert contents in s/aix-4.2.h
254 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
255 * s/bsd4-3.h: Rename to ..
256 * s/bsd-common.h: ... this.
257 * src/data.c:
258 * src/doc.c:
259 * src/ecrt0.c:
260 * src/emacs.c:
261 * src/fileio.c:
262 * src/floatfns.c:
263 * src/keyboard.c:
264 * src/mem-limits.h:
265 * src/print.c:
266 * src/process.c:
267 * src/sysdep.c:
268 * src/syssignal.h:
269 * src/systty.h:
270 * src/syswait.h:
271 * src/term.c:
272 * src/unexec.c:
273 * src/unexelf.c:
274 * src/unexhp9k800.c:
275 * src/m/hp800.h:
276 * src/m/ibmrs6000.h:
277 * src/m/mips.h:
278 * src/m/vax.h:
279 * src/s/darwin.h:
280 * src/s/freebsd.h:
281 * src/s/gnu.h:
282 * src/s/ms-w32.h:
283 * src/s/msdos.h:
284 * src/s/netbsd.h:
285 * src/s/template.h: Remove references to obsolete variables.
286
287 * Makefile.in: Add dependencies for all unexec files.
288 (admindir): Remove unused variable.
289 (UNEXEC_SRC): Remove references.
290
bd02793a
CY
2912008-06-25 Chong Yidong <cyd@stupidchicken.com>
292
293 * xfns.c (x_default_font_parameter): If Xft is available, first
294 try Monospace-12 for the default font.
295
ccedd259
JR
2962008-06-25 Jason Rumney <jasonr@gnu.org>
297
c9fc02c7 298 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
ccedd259 299
fbe062b7
SM
3002008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
301
603a0937
SM
302 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
303
fbe062b7
SM
304 * buffer.c (syms_of_buffer): Remove default-word-wrap.
305
69785ad0
JB
3062008-06-25 Juanma Barranquero <lekktu@gmail.com>
307
308 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
309 <scroll-conservatively>: Fix typo in docstring.
310
311 * xselect.c (Fx_send_client_event): Doc fix.
312
249e6f76
KH
3132008-06-25 Kenichi Handa <handa@m17n.org>
314
34e97272
KH
315 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
316
317 * font.c (font_parse_fcname): Remove unused variables.
69785ad0
JB
318 (font_sort_entites): Delete the arg SPEC. Caller changed.
319 Fix for the case of ! best_only.
34e97272
KH
320 (font_delete_unmatched): Check DPI and AVGWIDTH too.
321
249e6f76
KH
322 * lisp.h (Fstring_to_unibyte): EXFUN it.
323
69785ad0 324 * character.h (str_to_unibyte): Extern it.
249e6f76
KH
325
326 * character.c (str_to_unibyte): New function.
327
328 * fns.c (Fstring_to_unibyte): New function.
329 (syms_of_fns): Defsubr it.
330
65c108e4
KH
3312008-06-24 Kenichi Handa <handa@m17n.org>
332
333 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
334 DPI too.
335 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
336
4c3f18fe
AS
3372008-06-24 Andreas Schwab <schwab@suse.de>
338
69785ad0 339 * Makefile.in (${lispsource}loaddefs.el): Rename from
4c3f18fe 340 ../lisp/loaddefs.el.
fd13748d
AS
341 (bootstrap-clean): Do what distclean does but don't remove
342 Makefile.
343 (distclean): Depend on bootstrap-clean and remove Makefile.
4c3f18fe 344
faa6190f
CY
3452008-06-24 Chong Yidong <cyd@stupidchicken.com>
346
347 * buffer.h (struct buffer): New member word_wrap.
348
349 * buffer.c (syms_of_buffer): New variables default-word-wrap and
350 word-wrap.
351 (init_buffer_once): Initialize them.
352
353 * dispextern.h (struct it): Replace bool truncate_lines_p with a
354 line_wrap enum possessing three possible values.
355
356 * termopts.h: Replace truncate_partial_width_windows with
357 Vtruncate_partial_width_windows.
358
359 * dispnew.c (direct_output_for_insert): Avoid direct output when
360 inserting a space with word wrap on.
361
362 * indent.c (compute_motion): Obey integer values of
363 truncate-partial-width-windows.
364
365 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
366 replacing truncate_partial_width_windows.
367 (init_iterator): If Vtruncate_partial_width_windows is an integer,
368 truncate only if the window width is below that integer.
369 (start_display. resize_mini_window, produce_stretch_glyph)
370 (display_string, move_it_in_display_line_to): Use line_wrap.
371 (back_to_previous_visible_line_start, reseat_1): Reset
372 string_from_display_prop_p.
373 (display_line): Extend default face to end of line when wrapping.
374
3752008-06-24 Kim F. Storm <storm@cua.dk>
376
377 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
378 to wrap continued lines at word boundaries.
379
c3bb5465
JR
3802008-06-24 Jason Rumney <jasonr@gnu.org>
381
69785ad0
JB
382 * font.c (Ffont_face_attributes): Multiply pixel size before point
383 conversion to avoid multiplying rounding error.
c3bb5465 384
0b07ad98
JR
3852008-06-23 Jason Rumney <jasonr@gnu.org>
386
f245f2c6
JB
387 * w32term.c (x_draw_glyph_string_background)
388 (x_draw_glyph_string): Remove old bdf font code.
0b07ad98 389
69785ad0 390 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
0b07ad98 391
22459668
KH
3922008-06-22 Kenichi Handa <handa@m17n.org>
393
394 * font.c (font_find_for_lface): Try the adstyle specified in
395 the property of LFACE_FONT of LFACE (if any).
396
d925a426 3972008-06-21 Seiji Zenitani <zenitani@mac.com>
f245f2c6 398 Ryo Yoshitake <ryo@shiftmode.net>
d925a426
SM
399
400 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
401
b4945b95
SM
4022008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
403
404 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
405 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
406 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
407 (witness-emacs): Remove.
408 (lisp, shortlisp): Move loaddefs.el earlier.
409 (mostlyclean): Forget about witness-emacs.
410
64124279
GM
4112008-06-22 Glenn Morris <rgm@gnu.org>
412
413 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
36565815 414 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
64124279 415
768efd84
SM
4162008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
417
418 * Makefile.in (PRECOMP): Remove.
419 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
420 (witness-emacs): Run `compile-first'.
421 (.el.elc): Use the new compile-onefile target.
422
808dd567
KH
4232008-06-21 Kenichi Handa <handa@m17n.org>
424
425 * xftfont.c (xftfont_open): Handle QCembolden only when
426 FC_EMBOLDEN is defined.
427
0de59eae
AS
4282008-06-21 Andreas Schwab <schwab@suse.de>
429
430 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
58e8833b 431 (.el.elc): Likewise.
0de59eae 432
fb38e9c9
MB
4332008-06-21 Miles Bader <miles@gnu.org>
434
435 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
436 build dir, not the lisp source dir.
437
fc46d219
SM
4382008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
439
440 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
441 (bootstrapclean): Remove.
442 (.el.elc): New rule.
443 (PRECOMP): New var.
444 (../lisp/subdirs.el): Remove.
445 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
446 (witness-emacs): New target.
447 (mostlyclean): Remove witness-emacs as well.
448 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
449 Add witness-emacs dependency.
450
eaf1f6e7
CY
4512008-06-20 Chong Yidong <cyd@stupidchicken.com>
452
453 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
454 defined by the font.
455
49f6eb95
SM
4562008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
457
458 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
459 (bootstrap-clean): New target that keeps TAGS around.
460 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
461 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
462
4c100a01
JR
4632008-06-20 Jason Rumney <jasonr@gnu.org>
464
49f6eb95
SM
465 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
466 Remove obsolete font code.
db61a7f8 467
49f6eb95
SM
468 * w32font.c (font_matches_spec): Use csb bitfield from font signature
469 to determine language support.
4c100a01 470
759d3f32
SM
4712008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
472
473 * sysdep.c (cfsetspeed): New fun extracted from the code.
474 (cfmakeraw): Move before first use.
475
25241b4d
SM
4762008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
477
478 * sysdep.c (cfmakeraw): Provide fallback implementation.
479 (serial_configure): Provide fallback implementation of cfsetspeed.
480
d7afccca
KH
4812008-06-20 Kenichi Handa <handa@m17n.org>
482
dc2226d0
KH
483 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
484 the pattern.
485
9b9cd864
KH
486 * fontset.c (fontset_from_font): Copy font_spec before changing
487 the elements.
488
d7afccca
KH
489 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
490
770e2e6e
SM
4912008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
492
493 * w32fns.c, xfnc.c (x_default_font_parameter): Only set `font-param'
494 for explicit `font' parameters.
495
496 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
497
22e64f7c
KH
4982008-06-19 Kenichi Handa <handa@m17n.org>
499
500 * frame.c: Include <ctype.h>.
501 (x_set_font_backend): Allow spacing characters in the X resource
502 for FontBackend.
503
27129af9
SM
5042008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
505
506 * w32fns.c, xfns.c (Qfont_param): New var.
507 (syms_of_w32fns): Initialize it.
22e64f7c
KH
508 (x_default_font_parameter): Record explicit `font' into
509 `font-parameter'.
27129af9 510
d26424c5
KH
5112008-06-18 Kenichi Handa <handa@m17n.org>
512
513 * font.c (font_parse_xlfd): Fix previous change.
514 (font_parse_fcname): Don't use :fc-unknown-spec.
515 (FRAME_X_DISPLAY_INFO): Besure to have at least 1 pixel height.
516 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
517 (font_add_log): Prepend the driver name to the resulting fonts.
518
519 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
520 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
521 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
522
523 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
524 (QCembolden): New variables.
525 (syms_of_xftfont): DEFSYM them.
526 (xftfont_open): Call XftFontMatch. Don't trust the result of
527 XftTextExtents8 if the pixel_size is less than 5.
528
51cf11be
AS
5292008-06-18 Andreas Schwab <schwab@suse.de>
530
f245f2c6 531 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
51cf11be
AS
532 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
533
07d9ba9b
JR
5342008-06-18 Jason Rumney <jasonr@gnu.org>
535
27129af9 536 * w32font.c (w32font_list, w32font_match): Add logging.
07d9ba9b 537
27129af9 538 * w32uniscribe (uniscribe_list, uniscribe_match): Add logging.
07d9ba9b 539
0c36bc4e
CY
5402008-06-17 Chong Yidong <cyd@stupidchicken.com>
541
542 * font.c (font_parse_fcname): Store divider characters for
1578da31
CY
543 unknown-spec list. For known key symbols, intern using correct
544 symbol name.
0c36bc4e 545
70d6ecc6
KH
5462008-06-17 Kenichi Handa <handa@m17n.org>
547
548 * xfaces.c (realize_default_face): If the frame is not on window
549 system, set the fontset of face to nil.
550
821bc4db
KH
5512008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
552
f245f2c6 553 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
821bc4db 554
3554e566
JB
5552008-06-16 Juanma Barranquero <lekktu@gmail.com>
556
557 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
558 (build_font_name_from_vector): Delete externs.
559
560 * xfaces.c (struct font_name): Don't declare.
561
93eed26b
SM
5622008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
563
564 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
565
d756bcd0
CY
5662008-06-16 Chong Yidong <cyd@stupidchicken.com>
567
568 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
569
7a18a178
JB
5702008-06-16 Juanma Barranquero <lekktu@gmail.com>
571
572 * font.c (Ffont_spec): Fix usage in docstring.
48105a6a 573 (Ffont_face_attributes): Doc fix.
7a18a178 574
6f568955
AS
5752008-06-16 Andreas Schwab <schwab@suse.de>
576
577 * font.c (Ffont_face_attributes): Fix definition.
578
3ef8c1b4
JR
5792008-06-16 Jason Rumney <jasonr@gnu.org>
580
93eed26b 581 * font.h (font_style_symbolic_from_value): Remove.
3ef8c1b4 582
93eed26b
SM
583 * font.c (font_style_symbolic_from_value): Remove.
584 (font_style_symbolic): Revert to pre 2008-06-13 version.
3ef8c1b4 585
93eed26b
SM
586 * w32font.c (w32_to_fc_weight): New function.
587 (w32font_full_name, logfont_to_fcname): Use it.
3ef8c1b4 588
5e634ec9
KH
5892008-06-16 Kenichi Handa <handa@m17n.org>
590
591 * font.c (font_check_object): Delete it.
592 (font_clear_cache): Check if a font-object is alive.
593 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
594 font-object to nil.
595 (font_close_object): Don't check FONT_CLOSE_OBJECT.
596 (font_at): Don't call font_check_object.
2babb359 597 (Ffont_get): Return a symbol for :weight, :slant, and :width.
5e634ec9 598
6409a955
KY
5992008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
600
601 * puresize.h (BASE_PURESIZE): Increase to 1230000.
602
ce4eaddb
CY
6032008-06-16 Chong Yidong <cyd@stupidchicken.com>
604
605 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
606
523dbe64
CY
6072008-06-15 Chong Yidong <cyd@stupidchicken.com>
608
54b2ab27 609 * font.c (font_parse_fcname): Only one decimal point.
523dbe64
CY
610 (font_unparse_fcname): Handle data in family and foundry indices
611 as symbols, not strings.
612 (font_unparse_gtkname, Ffont_face_attributes): New functions.
613
54b2ab27 614 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
523dbe64
CY
615
616 * font.h (font_unparse_gtkname): Add prototype.
617
9f296082
KH
6182008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
619
54b2ab27 620 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
9f296082 621
3306c6dc
AS
6222008-06-15 Andreas Schwab <schwab@suse.de>
623
624 * font.c (font_update_drivers): Fix crash when no drivers match.
625
a099c27a
SM
6262008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
627
628 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
629 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
630
a8aa344d
SM
6312008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
632
633 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
634
a879ee6f
SM
6352008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
636
637 * process.c (Fserial_process_configure, Fprocess_send_eof):
638 Use EQ to compare Lisp_Objects.
639
6fe9826d
JR
6402008-06-13 Jason Rumney <jasonr@gnu.org>
641
a879ee6f 642 * w32fns.c (Fw32_select_font): Remove old font API function.
6fe9826d 643
a879ee6f
SM
644 * w32font.c (logfont_to_fcname): New function.
645 (Fx_select_font): New font dialog function compatible with
646 GTK/fontconfig version.
6fe9826d 647
a879ee6f
SM
648 * font.c (font_style_symbolic_from_value): New function.
649 (font_style_symbolic): Use it.
6fe9826d 650
a879ee6f 651 * font.h (font_style_symbolic_from_value): Declare new function.
6fe9826d 652
17ab8f5d
JB
6532008-06-13 Juanma Barranquero <lekktu@gmail.com>
654
655 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
656 <font-width-table>: Fix typos in docstrings.
657
d888760c
GM
6582008-06-13 Daniel Engeler <engeler@gmail.com>
659
660 These changes add serial port access.
661 * process.c: Add HAVE_SERIAL.
662 (Fdelete_process, Fprocess_status, Fset_process_buffer)
663 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
664 (list_processes_1, select_wrapper, Fstop_process)
665 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
666 (status_notify): Modify to handle serial processes.
667 [HAVE_SERIAL] (Fserial_process_configure)
668 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
669 New functions.
670 * process.h (struct Lisp_Process): Add `type'.
671 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
672 New functions.
673 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
674 serial ports.
675 (serial_open, serial_configure) New functions.
676 * w32.h: Add FILE_SERIAL.
677 (struct _child_process): Add ovl_read, ovl_write.
678
f4cc0153
KH
6792008-06-13 Kenichi Handa <handa@m17n.org>
680
681 * dispextern.h (enum lface_attribute_index): New member
682 LFACE_FOUNDRY_INDEX.
683
684 * font.c (font_score): Delete arg alternate_families. Check only
7a18e381 685 weight, slant, width, and size. Ignore the difference of alias
f4cc0153 686 style symbols.
7a18e381 687 (font_sort_entites): Adjust for the above change. Reflect the
f4cc0153
KH
688 order of font-driver to scores.
689 (font_list_entities): Don't check alternate_familes here.
690 (font_clear_prop): Handle foundry.
691 (font_update_lface): Don't parse "foundry-family" form here.
692 Handle FONT_FOUNDRY_INDEX.
693 (font_find_for_lface): Likewise. Handle alternate families here.
a879ee6f 694 If registry is nil, try iso8859-1 and ascii-0.
f4cc0153 695 (font_open_for_lface): Pay attention to size in ENTITY.
7a18e381 696 (font_open_by_name): Simplify by calling font_load_for_lface.
f4cc0153
KH
697 (free_font_driver_list): Delete it.
698 (font_update_drivers): Preserve the order of backends.
699 (syms_of_font): Setting of sort_shift_bits adjusted for the change
700 of font_score and font_sort_entites.
701 (font_update_sort_order): Likewise.
702
703 * xfaces.c (LFACE_FOUNDRY): New macro.
704 (check_lface_attrs): Check foundry.
7a18e381 705 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
f4cc0153
KH
706 (merge_face_vectors): Check foundry.
707 (merge_face_ref): Likewise.
708 (Finternal_set_lisp_face_attribute): Likewise.
709 (x_update_menu_appearance): Likewise.
710 (Finternal_get_lisp_face_attribute): Likewise.
711 (lface_hash): Likewise.
712 (lface_same_font_attributes_p): Likewise.
713 (x_supports_face_attributes_p): Likewise.
714 (tty_supports_face_attributes_p): Likewise.
715 (Finternal_set_alternative_font_family_alist): Intern strings.
716 (Finternal_set_alternative_font_registry_alist): Downcase strings.
717 (realize_default_face): Set LFACE_FOUNDRY (lface).
718
719 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
720 font-driver at first.
721
722 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
723
d434fef5 7242008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
97dead2d
JM
725
726 * lread.c (Fload): Use xfree, not free on saved_doc_string.
727
9c5e177e
JM
7282008-06-12 Jim Meyering <meyering@redhat.com>
729
d434fef5 730 Make unexec_free handle NULL the same way free does.
9c5e177e
JM
731 * unexmacosx.c (unexec_free): Ignore a NULL argument.
732
2afc21f5
SM
7332008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
734
735 * character.h (CHAR_TO_BYTE_SAFE): New macro.
736 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
737 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
738 (WEAK_ALIAS): Simplify.
739 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
740 when searching a unibyte buffer.
741
76c0de62
CY
7422008-06-12 Chong Yidong <cyd@stupidchicken.com>
743
744 * xfns.c (Fx_select_font): Rename from x-font-dialog.
745
0500dcc9
JB
7462008-06-12 Juanma Barranquero <lekktu@gmail.com>
747
748 * w32font.c: Include ctype.h.
749
f42adef6
JR
7502008-06-11 Jason Rumney <jasonr@gnu.org>
751
2afc21f5
SM
752 * w32font.c (w32font_encode_char): Detect missing glyphs that are
753 misreported as space.
754 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
755 as aliases for registry iso10646-1.
f42adef6 756
4b7cdc0e
SM
7572008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
758
759 * buffer.c (clone_per_buffer_values): Skip `name'.
760
cc02ebe1
CY
7612008-06-11 Chong Yidong <cyd@stupidchicken.com>
762
763 * font.c (font_parse_fcname): Fix last change; accept decimal
764 points in font size.
765
351ccb76
JR
7662008-06-10 Jason Rumney <jasonr@gnu.org>
767
0500dcc9
JB
768 * w32uniscribe.c (add_opentype_font_name_to_list):
769 Skip non unicode fonts.
351ccb76 770
f473ed6f
CY
7712008-06-10 Chong Yidong <cyd@stupidchicken.com>
772
773 * xfns.c (Fx_font_dialog): New function.
774
5d6333d5 775 * gtkutil.c (xg_dialog_response_cb): Rename from
f473ed6f
CY
776 xg_file_response_callback.
777 (pop_down_dialog): Rename from pop_down_file_dialog.
778 (xg_get_file_name): Callers changed.
779 (xg_get_font_name): New function.
780
5d6333d5 781 * gtkutil.h (xg_get_font_name): Insert prototype.
f473ed6f 782
2a3bd2e1
SM
7832008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
784
785 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
786 x_underline_minimum_display_offset.
787 (syms_of_xdisp): Declare it here rather than in xterm.c.
788 * dispextern.h (underline_minimum_offset): Declare it.
789 * w32term.c (x_draw_glyph_string): Use it.
790 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
791 (syms_of_xterm): Don't declare it any more.
792 (x_draw_glyph_string): Adjust to the new name.
793
d5dc6163
SM
7942008-06-10 David De La Harpe Golden <david@harpegolden.net> (tiny change)
795
796 * xterm.c (x_underline_minimum_display_offset): New var.
797 (x_draw_glyph_string): Use it.
798 (syms_of_xterm): Declare it.
799
0abdd197
CY
8002008-06-10 Chong Yidong <cyd@stupidchicken.com>
801
802 * font.c (font_parse_fcname): Accept GTK-style font names too.
803
a1562258
SM
8042008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
805
928b5acc
SM
806 * dired.c (file_name_completion): Don't return t if the match is exact
807 but with different capitalization.
808 * minibuf.c (Ftry_completion): Simplify.
809
a1562258
SM
810 * window.c (Vwindow_point_insertion_type): New var.
811 (set_window_buffer): Use it.
812 (syms_of_window): Init and export it to Lisp.
813
9552dbd1
KH
8142008-06-10 Kenichi Handa <handa@m17n.org>
815
816 * font.h (font_intern_prop): Prototype adjusted.
817
818 * font.c (font_intern_prop): New arg force_symbol.
a1562258
SM
819 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
820 Adjust for the change of font_intern_prop.
9552dbd1 821
a1562258
SM
822 * ftfont.c (ftfont_pattern_entity):
823 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
824 (w32_registry):
825 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
9552dbd1
KH
826 the change of font_intern_prop.
827
8993ad2e
JB
8282008-06-09 Juanma Barranquero <lekktu@gmail.com>
829
830 * w32menu.c (digest_single_submenu): Declare extern.
831
0c2258fc
JR
8322008-06-09 Jason Rumney <jasonr@gnu.org>
833
a1562258 834 * w32term.c (x_make_frame_visible): Use alternate restore flags.
12f71857 835
a1562258
SM
836 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
837 (parse_single_submenu): Remove.
838 (digest_single_submenu): Remove.
839 (syms_of_w32menu): Don't initialise variables that have moved
840 to menu.c.
841 (set_frame_menubar): Sync with version in xmenu.c.
842 (w32_menu_show): Sync with xmenu_show in xmenu.c.
593c843c 843
8993ad2e
JB
844 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
845 Make static again.
0c2258fc 846
02246cb8
JR
8472008-06-09 Jason Rumney <jasonr@gnu.org>
848
8993ad2e
JB
849 Changes to w32 files related to the move of common menu code
850 to menu.c on 2008-06-08 by Chong Yidong.
851
852 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
853 defs to w32gui.h.
854 (single_keymap_panes, push_menu_item, push_menu_pane):
855 Make globally visible.
856
d434fef5
JB
857 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
858 (local_free, malloc_widget_value, free_widget_value)
859 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
860 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
861 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
8993ad2e 862 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
d434fef5 863 (menu_items, menu_items_allocated, menu_items_used)
8993ad2e
JB
864 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
865 (init_menu_items, finish_menu_items, discard_menu_items)
866 (grow_menu_items, push_submenu_start, push_submenu_end)
867 (push_left_right_boundary, push_menu_pane, push_menu_item)
868 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
d434fef5 869 (free_menubar_widget_tree_value, parse_single_submenu)
8993ad2e
JB
870 (update_submenu_strings): Remove functions.
871 (xmalloc_widget_value): Remove and declare extern.
872
873 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
874 (OBJ1): Build it.
875
876 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
877 (local_heap, local_alloc, local_free, malloc_widget_value)
878 (free_widget_value): Define here.
02246cb8 879
9e1bb909
KH
8802008-06-09 Kenichi Handa <handa@m17n.org>
881
366664ad
KH
882 * font.h (Qascii_0): Extern it.
883
9e1bb909
KH
884 * font.c (Qascii_0): New variable.
885 (syms_of_font): DEFSYM it.
886 (font_open_by_name): If the registry "iso8859-1" fails, try also
887 "ascii-0".
888
889 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
890
b2ee479e
KH
8912008-06-08 Kenichi Handa <handa@m17n.org>
892
8f440b79 893 * .gdbinit (xfont): New command.
b2ee479e 894
01ef9d36
AS
8952008-06-08 Andreas Schwab <schwab@suse.de>
896
a4240420
AS
897 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
898 * Makefile.in (menu.o): Update dependencies.
899
0181bf66 900 * Makefile.in (obj): Always add menu.o.
01ef9d36
AS
901 * emacs.c (main): Always call syms_of_menu.
902 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
903
c07cbae6
CY
9042008-06-08 Chong Yidong <cyd@stupidchicken.com>
905
906 * Makefile.in: Compile menu.c.
907
908 * lisp.h: Declare syms_of_menu.
909
910 * emacs.c (main): Call syms_of_menu.
911
912 * keyboard.h: Relocate platform-independent menu definitions from
913 xmenu.c.
914
915 * menu.c: New file. Relocate platform-independent menu
904d8c69 916 definitions from xmenu.c. Suggested by Adrian Robert.
c07cbae6
CY
917
918 * xmenu.c: Remove platform-independent menu definitions.
919 (menu_items menu_items_inuse, menu_items_allocated)
920 (menu_items_used, menu_items_n_panes)
921 (menu_items_submenu_depth): Move to keyboard.h.
922 (init_menu_items, finish_menu_items, unuse_menu_items)
923 (discard_menu_items, restore_menu_items, save_menu_items)
924 (grow_menu_items, push_submenu_start, push_submenu_end)
925 (push_left_right_boundary, push_menu_pane, push_menu_item)
926 (keymap_panes, single_keymap_panes, single_menu_item)
927 (list_of_panes, list_of_items, find_and_call_menu_selection)
928 (xmalloc_widget_value, free_menubar_widget_value_tree)
929 (parse_single_submenu, digest_single_submenu)
930 (update_submenu_strings): Move to menu.c.
931
4958ed94
SM
9322008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
933
934 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
935
408b8ab4
MB
9362008-06-06 Miles Bader <miles@gnu.org>
937
938 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
939 face, not frame default.
940
87478b52
SM
9412008-06-05 Martin Rudalics <rudalics@gmx.at>
942
943 * window.c (pop_up_windows, pop_up_frames)
944 (display_buffer_reuse_frames, Vpop_up_frame_function)
945 (Vdisplay_buffer_function, Veven_window_heights)
946 (Vspecial_display_buffer_names, Vspecial_display_regexps)
947 (Vspecial_display_function, Vsame_window_buffer_names)
948 (Vsame_window_regexps, split_height_threshold)
949 (Vsplit_window_preferred_function): Move those vars to window.el.
950 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
951 (Fdisplay_buffer): Move those functions to window.el.
952 (syms_of_window): Remove corresponding declarations.
953 (display_buffer): New function.
954 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
955 * dispnew.c (Flast_nonminibuf_frame): New function.
956 * buffer.c (Fpop_to_buffer): Move to window.el.
957
9e0e0d77
SM
9582008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
959
960 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
961
4a485df8
KH
9622008-06-05 Kenichi Handa <handa@m17n.org>
963
964 * coding.c (detect_coding): Fix previous change.
965 (detect_coding_system): Likewise.
966
8ba31f36
SM
9672008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
968
c0dc8f64
SM
969 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
970
8ba31f36
SM
971 * keymap.c (Vminibuffer_local_filename_must_match_map):
972 Rename from Vminibuffer_local_must_match_filename_map.
973 (syms_of_keymap):
974 * minibuf.c (Fcompleting_read): Adjust accordingly.
975 * commands.h: Rename declaration as well.
976
7740d2c7
KH
9772008-06-05 Kenichi Handa <handa@m17n.org>
978
e7438ece
KH
979 * font.c (Ffont_spec): Don't use font_parse_family_registry for
980 family name.
981 (Ffont_put): Likewise.
982
983 * fontset.c (fontset_find_font): Call font_open_for_lface with the
984 current font-spec.
985
7740d2c7
KH
986 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
987 is unspecified.
988
989 * xfaces.c (realize_x_face): If the font-related face attributes
e7438ece
KH
990 are the same as those of default face, realize a new fontset from
991 default->fontset.
9e0e0d77 992 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
7740d2c7 993
c876b227
SM
9942008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
995
996 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
997 (move_it_in_display_line): New wrapper.
998
999 * window.c (window_scroll_pixel_based_preserve_x)
1000 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
1001 (window_scroll_pixel_based, window_scroll_line_based):
1002 Use them to preserve column positions.
1003 (syms_of_window): Initialize them.
1004
1005 * indent.c (Fvertical_motion): Extend first arg to allow passing an
1006 (HPOS . VPOS) pair.
1007
1008 * dispextern.h (move_it_in_display_line): Declare.
1009
927abf37
JB
10102008-06-05 Juanma Barranquero <lekktu@gmail.com>
1011
1012 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
1013 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
1014 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
1015
9d14503e
JB
10162008-06-04 Juanma Barranquero <lekktu@gmail.com>
1017
1018 * window.c (Fset_window_parameter): Doc fix.
1019 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
1020
e6841c3b
JB
10212008-06-04 Joakim Verona <joakim@verona.se>
1022
1023 * window.h (struct window): Add new member window_parameters.
1024
1025 * window.c (Fwindow_parameters, Fwindow_parameter)
1026 (Fset_window_parameter): New defuns.
1027 (syms_of_window): Defsubr the new defuns.
1028 (make_window): Initialize window_parameters to nil.
1029
4ba50634
JPW
10302008-06-04 John Paul Wallington <jpw@pobox.com>
1031
1032 * eval.c (Fdefmacro): Doc fix.
1033
c0e16b14
KH
10342008-06-04 Kenichi Handa <handa@m17n.org>
1035
1036 * coding.c (detect_coding): Fix handling of coding->head_ascii.
9e0e0d77 1037 Be sure to call setup_coding_system when we find a proper coding system.
c0e16b14
KH
1038 (detect_coding_system): Fix handling of coding->head_ascii.
1039
0615d903
AS
10402008-06-03 Andreas Schwab <schwab@suse.de>
1041
1042 * font.c (font_prop_validate_spacing): Fix last change.
1043
8a1816bb
KH
10442008-06-03 Kenichi Handa <handa@m17n.org>
1045
eea9c5c4
KH
1046 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
1047 (font_parse_fcname): Fix handling of unknown key.
1048
1049 * xfont.c (xfont_list): Try an alias.
1050
8a1816bb
KH
1051 * charset.c (char_charset): Return NULL if the arg charset_list is
1052 specified and C doesn't belong to any of them.
1053
2f593f4c 10542008-06-02 Chip Coldwell <coldwell@redhat.com>
6c5e8775
CY
1055
1056 * font.c (font_pixel_size): Don't take cdr of an integer.
1057
c2cd06e6
JM
10582008-06-02 Jim Meyering <meyering@redhat.com>
1059
70fdbb46
JM
1060 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
1061 * alloc.c (xfree): Return right away for a NULL arg.
1062 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
1063 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
1064 * mac.c (create_apple_event_from_event_ref): Likewise.
2f593f4c
JB
1065 (create_apple_event_from_drag_ref, cfstring_create_normalized):
1066 Likewise.
70fdbb46
JM
1067 * doprnt.c (doprnt1): Likewise.
1068 * frame.c (frame): Likewise.
1069 * keyboard.c (wipe_kboard): Likewise.
1f204af3 1070 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
70fdbb46
JM
1071 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
1072 * term.c (tty_default_color_capabilities, maybe_fatal)
1073 (delete_tty): Likewise.
1074 * w16select.c (string): Likewise.
1075 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
1076 * w32bdf.c (w32_free_bdf_font): Likewise.
1077 * w32fns.c (w32_unload_font): Likewise.
1078 * w32font.c (w32font_close): Likewise.
1079 * window.c (size_window): Likewise.
1080 * xselect.c (receive_incremental_selection): Likewise.
1081 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
1082 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
1083 * w32.c (stat): Likewise.
1084
2f593f4c 1085 Remove useless if-before-free tests.
70fdbb46
JM
1086 * editfns.c (Fset_time_zone_rule): Likewise.
1087 * lread.c (nosuffix): Likewise.
1088 * ralloc.c (get_bloc): Likewise.
1089 * regex.c (reg_free): Likewise.
1090 * xftfont.c (xftfont_open, xftfont_close): Likewise.
1091 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
1092 * xsmfns.c (smc_save_yourself_CB): Likewise.
c2cd06e6 1093
4fc1984a
KH
10942008-06-02 Kenichi Handa <handa@m17n.org>
1095
1d1e1245
KH
1096 * font.c (font_find_for_lface): Handle float font size.
1097 (font_open_for_lface): Likewise.
1098
4fc1984a
KH
1099 * xfaces.c (x_supports_face_attributes_p): Check face->font before
1100 comparing the properties.
1101
aee986fd
JR
11022008-06-01 Jason Rumney <jasonr@gnu.org>
1103
e6841c3b
JB
1104 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
1105 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
1106 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
1107 Don't add empty script list.
1108 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
aee986fd 1109
60a3d7ee
DN
11102008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
1111
aee986fd 1112 * Makefile.in (dot, dotdot): Remove, update users.
60a3d7ee
DN
1113 ".." has been used elsewhere in the file for a long time.
1114 (LIBXT_STATIC): Remove conditional based on unused variable.
1115
f2cec7a9
MB
11162008-06-01 Miles Bader <miles@gnu.org>
1117
1118 * xfaces.c (Vface_remapping_alist): New variable.
1119 (syms_of_xfaces): Initialize it.
1120 (enum named_merge_point_kind): New type.
1121 (struct named_merge_point): Add `named_merge_point_kind' field.
1122 (push_named_merge_point): Make cycle detection respect different
1123 named-merge-point kinds.
c876b227 1124 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
f2cec7a9
MB
1125 Remove face-name alias resolution.
1126 (lface_from_face_name): New definition using
1127 `lface_from_face_name_no_resolve'.
c876b227 1128 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
f2cec7a9
MB
1129 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
1130 (get_lface_attributes): New definition that layers face-remapping on
1131 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
1132 (lookup_basic_face): New function.
1133 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
1134 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
1135 `get_lface_attributes'.
1136 (face_at_buffer_position): Use `lookup_basic_face' to lookup
1137 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
1138 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
1139
1140 * xdisp.c (init_iterator): Pass base_face_id through
1141 `lookup_basic_face' when we actually use it as a face-id.
1142 (handle_single_display_prop): Use `lookup_basic_face' to lookup
1143 DEFAULT_FACE_ID.
1144
1145 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
1146 lookup the initial face-id.
1147
1148 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
1149
518c0b83
JB
11502008-06-01 Juanma Barranquero <lekktu@gmail.com>
1151
1152 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
1153 (Fremove_text_properties): Fix typos in docstrings.
1154
719b3d63
KH
11552008-05-31 Kenichi Handa <handa@m17n.org>
1156
e4c93315
KH
1157 * font.c (font_list_entities): Fix the car part of data to be
1158 stored in the cache.
1159
719b3d63
KH
1160 * ftfont.c (ftfont_font_format): Don't use strcasestr.
1161
d0827857
SM
11622008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
1163
1164 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
1165 Add a `test' argument so another predicate than `equal' can be used.
1166 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
1167 (map_char_table): Remove unused vars `c' and `i'.
1168 * lisp.h (Foptimize_char_table): Adjust declaration.
1169 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
1170
a266686a
KH
11712008-05-30 Kenichi Handa <handa@m17n.org>
1172
d0827857 1173 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
a266686a
KH
1174 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
1175 defined.
1176
fd9440c5
SM
11772008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
1178
1179 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
1180 (Fmake_variable_frame_local): Disallow mixing buffer-local and
1181 frame-local settings for the same variable.
1182
fd2ae9b2
KH
11832008-05-30 Kenichi Handa <handa@m17n.org>
1184
9e0e0d77 1185 * fontset.c (Ffont_info): Move to font.c.
fd2ae9b2
KH
1186 (syms_of_fontset): Delete defsubr of Sfont_info.
1187
1188 * font.c (font_style_to_value, font_score): Delete casting of the
1189 args to xstcasecmp.
1190 (register_font_driver): Increment num_font_drivers only when
1191 registering the driver globally.
9e0e0d77 1192 (Ffont_info): Move from fontset.c. Handle a font object too.
fd2ae9b2
KH
1193 (syms_of_font): Defsubr Sfont_info.
1194
eaf11618
KH
11952008-05-29 Kenichi Handa <handa@m17n.org>
1196
1197 * coding.h (enum define_coding_utf8_arg_index): New enum.
1198 (enum coding_attr_index): Change coding_attr_utf_16_bom to
1199 coding_attr_utf_bom.
fd9440c5
SM
1200 (enum utf_bom_type): Rename from utf_16_bom_type.
1201 (struct utf_16_spec): Adjust for the above change.
eaf11618
KH
1202 (struct coding_system): Add utf_8_bom in `spec' union.
1203
1204 * coding.c (CODING_UTF_8_BOM): New macro.
1205 (enum coding_category): Delete coding_category_utf_8, add
1206 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
1207 coding_category_utf_8_sig.
1208 (CATEGORY_MASK_UTF_8): Delete it.
1209 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
1210 (CATEGORY_MASK_UTF_8_SIG): New macros.
1211 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
1212 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
1213 CATEGORY_MASK_UTF_8_SIG.
1214 (CATEGORY_MASK_UTF_8): New macro.
1215 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
1216 (detect_coding_utf_8): Check BOM.
1217 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
fd9440c5 1218 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
eaf11618
KH
1219 (encode_coding_utf_16): Likewise.
1220 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
1221 (detect_coding, detect_coding_system): Handle utf-8-auto.
1222 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
1223 (syms_of_coding): Fix setting up of Vcoding_category_table.
1224
891bd142
SM
12252008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
1226
1227 * process.c (Faccept_process_output): If `millisec' is non-nil,
1228 `seconds' default to 0.
1229 (wait_reading_process_output): Also return non-nil if we read output
1230 from a non-running process.
1231
1519d52e
JR
12322008-05-29 Jason Rumney <jasonr@gnu.org>
1233
fd9440c5
SM
1234 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
1235 `raster' specified.
1236 (add_font_entity_to_list): Allow non-opentype truetype fonts back
1237 in the uniscribe backend, but disallow any font that has no
1238 unicode subrange support.
1519d52e 1239
d5ab09cd
JB
12402008-05-29 Juanma Barranquero <lekktu@gmail.com>
1241
1242 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
1243 Fix typos in docstrings.
1244
a4eec626
KH
12452008-05-29 Kenichi Handa <handa@m17n.org>
1246
1247 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
e887f2ac 1248 (Fx_family_fonts): Set frame correctly.
a4eec626 1249
a6e0b7e5
JR
12502008-05-28 Jason Rumney <jasonr@gnu.org>
1251
d5ab09cd 1252 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
a6e0b7e5 1253
6b3d752c
SM
12542008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
1255
1256 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
1257 calling build_annotations.
1258
c3f9fba8
JB
12592008-05-28 Juanma Barranquero <lekktu@gmail.com>
1260
1261 * coding.c (Fdecode_coding_region, Fencode_coding_region)
1262 (Fencode_coding_string):
1263 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
1264 <latin-extra-code-table>: Fix typos in docstrings.
1265 (syms_of_coding) <coding-system-alist>: Doc fix.
1266 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
1267
00c670e1
KH
12682008-05-28 Kenichi Handa <handa@m17n.org>
1269
b75d7f28
KH
1270 * fontset.c (Ffont_info): Don't call font_close_object.
1271
1272 * font.c (font_parse_family_registry): Use Ffont_put to validate
1273 foundry and family.
1274 (font_delete_unmatched): Don't check spacing.
1275 (font_list_entities): Add spacing to the spec to list fonts.
1276
1277 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
d5ab09cd 1278 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
b75d7f28 1279
00c670e1
KH
1280 * coding.c (encode_coding_raw_text): Fix previous change.
1281 (encode_coding_object): When the dst_object is a buffer and is
1282 different from src_object, move gap to PT.
1283
45feca91
CY
12842008-05-27 Chong Yidong <cyd@stupidchicken.com>
1285
c3f9fba8 1286 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
45feca91 1287
5dd5d9eb
SM
12882008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
1289
01d45367
SM
1290 * coding.c (encode_coding_raw_text): Set coding->produced_char for
1291 all branches. Compute it differently.
1292
5dd5d9eb
SM
1293 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
1294
9c623c85
JB
12952008-05-27 Juanma Barranquero <lekktu@gmail.com>
1296
1297 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
1298 into "else if () ... else ...".
1299
943f2093
JR
13002008-05-27 Jason Rumney <jasonr@gnu.org>
1301
5dd5d9eb
SM
1302 * w32font.c (w32font_open_internal): Determine if glyph indices
1303 are likely to work here.
943f2093 1304
7385fe74
CY
13052008-05-27 Chong Yidong <cyd@stupidchicken.com>
1306
1307 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
1308 draw overlap glyphs with appropriate highlighting.
1309
4f64a164
KH
13102008-05-27 Kenichi Handa <handa@m17n.org>
1311
1312 * xfont.c (xfont_open): Fix calculation of font->average_width.
1313
1fb5aad7
SM
13142008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
1315
1316 * casefiddle.c (casify_object): Try to guess better whether the
1317 argument is a byte or a char.
1318
f8eb1603
AS
13192008-05-26 Andreas Schwab <schwab@suse.de>
1320
1fb5aad7
SM
1321 * xselect.c (x_reply_selection_request): Properly handle format == 32.
1322 Always send multiples of format size.
5a9c35e5 1323
f8eb1603
AS
1324 * xterm.c (x_set_frame_alpha): Fix type mismatch.
1325
ba93d684
JR
13262008-05-26 Jason Rumney <jasonr@gnu.org>
1327
1fb5aad7
SM
1328 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
1329 (compute_metrics): Don't set failure if we just cleared the cache.
1330 (w32_weight_table): Remove unused variable.
1331 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
1332 backwards compatibility.
ba93d684 1333
505ecc49
KH
13342008-05-25 Kenichi Handa <handa@m17n.org>
1335
1fb5aad7
SM
1336 * w32term.c (x_draw_glyph_string):
1337 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
505ecc49
KH
1338
1339 * xfaces.c: Delete unused function prototypes.
1340 (xstrlwr, font_frame): Delete them.
1341 (clear_face_cache): Delete unused variable.
1342
1fb5aad7
SM
1343 * xftfont.c (xftfont_open): Delete unused variable.
1344 If underline_thickness is not 1, adjust underline_position.
505ecc49
KH
1345
1346 * ftxfont.c (ftxfont_open): Delete unused variable.
1347
1348 * fontset.c (face_for_char): Optimize for the case of no charset
1349 property.
1350
1351 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
1352 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
1353 (otf_open, font_otf_capability, generate_otf_features)
1354 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
1fb5aad7 1355 Comment out by surrounding "#if 0" and "#endif" for the moment.
505ecc49
KH
1356 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
1357 (syms_of_font): Codes for accessing above commented out.
1358
f481eb31
EZ
13592008-05-24 Eli Zaretskii <eliz@gnu.org>
1360
1361 * w32proc.c: Include dispextern.h.
1362
1363 * w32.c: Include dispextern.h.
1364
20746fe4
JB
13652008-05-23 Juanma Barranquero <lekktu@gmail.com>
1366
1367 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
1368 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
1369 Fix typos in docstrings.
1370
e7150846
JR
13712008-05-23 Jason Rumney <jasonr@gnu.org>
1372
20746fe4 1373 * xsmfns.c: Remove includes that are already included by config.h.
e7150846 1374
dbf46ba6
KH
13752008-05-23 Kenichi Handa <handa@m17n.org>
1376
6c652beb
KH
1377 * charset.c (Qemacs, charset_emacs): New variables.
1378 (char_charset): Fix for non-Unicode characters.
1379 (syms_of_charset): Define charset_emacs.
1380
baf4d3b3 1381 * w32term.c (x_draw_glyph_string): Be sure to update
328fab2a
KH
1382 s->underline_thickness and s->underline_position. Be sure to draw
1383 underline within the current line area.
baf4d3b3
KH
1384
1385 * xterm.c (x_draw_glyph_string): Be sure to update
328fab2a 1386 s->underline_thickness and s->underline_position. Be sure to draw
90dc78a3 1387 underline within the current line area.
baf4d3b3 1388
dbf46ba6
KH
1389 * fontset.c: Delete unused variables and add casting for char *
1390 throughout the file.
1391 (fontset_font): Try the fallback fonts of the current fontset
1392 before consulting the default fontset.
1393
1394 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
1395
9e0e0d77 1396 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
dbf46ba6 1397
3b780338
JR
13982008-05-22 Jason Rumney <jasonr@gnu.org>
1399
20746fe4 1400 * font.c: Don't include strings.h.
577eba22 1401
9e0e0d77 1402 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
05131107 1403
20746fe4
JB
1404 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
1405 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
b1722a46
EZ
1406 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
1407 to call xstrcasecmp.
05131107 1408
b1722a46 1409 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
3b780338 1410
b1722a46 1411 * fontset.c (fs_query_fontset): Use xstrcasecmp.
3b780338 1412
b1722a46 1413 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
3b780338 1414
b1722a46 1415 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
3b780338 1416
a30e1957
KH
14172008-05-22 Kenichi Handa <handa@m17n.org>
1418
20746fe4 1419 * puresize.h (BASE_PURESIZE): Increase to 1220000.
955b979c 1420
20746fe4 1421 * font.c (font_prop_validate_style): Adjust for the format
64b900e3
KH
1422 change of font_style_table.
1423
a30e1957
KH
1424 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
1425 two args.
1426
1427 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
1428 two args.
1429
631248e5
SM
14302008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
1431
1432 * minibuf.c (keys_of_minibuf): Delete.
1433 * lisp.h (keys_of_minibuf): Delete.
1434 * emacs.c (main): Don't call keys_of_minibuf.
1435
318548be
KH
14362008-05-22 Kenichi Handa <handa@m17n.org>
1437
631248e5 1438 * ftfont.c (ftfont_resolve_generic_family): Rename from
318548be
KH
1439 ftfont_list_generic_family. Return a single family for each
1440 generic family.
1441 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
20746fe4
JB
1442 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
1443 Call font_add_log.
318548be
KH
1444 (ftfont_match): Call font_add_log.
1445
1446 * font.h (Ffont_xlfd_name): EXFUN adjusted.
1447 (FONT_DEBUG): Define it.
1448 (font_add_log): Extern it.
631248e5 1449 (font_assert): Rename from xassert.
318548be
KH
1450
1451 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
1452 (xfont_list_family): Call font_add_log.
1453 (xfont_match): Likewise.
631248e5 1454 (memq_no_quit): Delete.
318548be
KH
1455
1456 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
1457 call of Ffont_xlfd_name.
1458
1459 * xfaces.c (struct table_entry, slant_table, weight_table)
631248e5 1460 (swidth_table): Move to font.c.
318548be
KH
1461
1462 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
631248e5 1463 xassert are changed to font_assert. Delete many unused variables.
20746fe4
JB
1464 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
1465 New variables.
631248e5
SM
1466 (struct table_entry): Move from xfaces.c and modified.
1467 (weight_table, slant_table, width_table): Move from xfaces.c and
318548be 1468 contents adjusted for the change of struct table_entry.
20746fe4 1469 (font_style_to_value, font_style_symbolic): Adjust for the
64b900e3 1470 format change of font_style_table.
318548be
KH
1471 (font_parse_family_registry): Don't overwrite existing foundry and
1472 family of font_spec.
1473 (font_score): Fix calculation of diff for sizes.
1474 (font_sort_entites): Call font_add_log.
1475 (font_delete_unmatched): Return a newly created list.
1476 (font_list_entities): Fix previous change. Call font_add_log.
20746fe4
JB
1477 (font_matching_entity, font_open_entity, font_close_entity):
1478 Call font_add_log.
318548be 1479 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
631248e5 1480 (Finternal_set_font_style_table): Delete.
318548be
KH
1481 (BUILD_STYLE_TABLE): New macro.
1482 (build_style_table): New function.
1483 (Vfont_log, font_log_env_checked): New variables.
1484 (font_add_log): New function.
1485 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
1486 Declare Lisp variables "font-weight-table", "font-slant-table",
1487 "font-width-table", and "font-log". Initialize font_style_table.
1488
6aac1c03
DN
14892008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
1490
bcc850aa 1491 * xterm.c (x_set_frame_alpha): Move declarations before statements.
6aac1c03 1492
7950790f
GM
14932008-05-21 Seiji Zenitani <zenitani@mac.com>
1494 Ryo Yoshitake <ryo@shiftmode.net>
a2979e8e 1495
7950790f 1496 * frame.c (Qalpha): Add a new frame parameter `alpha'.
bcc850aa 1497 (Vframe_alpha_lower_limit): New variable.
b9fb2c45 1498 (x_set_alpha): New function.
a2979e8e 1499
7950790f 1500 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
a2979e8e 1501
7950790f
GM
1502 * xfns.c (x-create-frame, Qalpha):
1503 Initialize the frame parameter `alpha'.
b9fb2c45
GM
1504 * xterm.c (OPAQUE, OPACITY): New.
1505 (x_set_frame_alpha): New function.
1506 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
a2979e8e 1507
7950790f
GM
1508 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
1509 * w32fns.c (w32_frame_parm_handlers): Likewise.
a2979e8e 1510
5c2a72d9
JR
15112008-05-20 Jason Rumney <jasonr@gnu.org>
1512
20746fe4
JB
1513 * w32font.c (add_font_entity_to_list): Don't add non-opentype
1514 truetype fonts to opentype list.
5c2a72d9 1515
eb152aa9
JB
15162008-05-20 Juanma Barranquero <lekktu@gmail.com>
1517
1518 * fontset.c (Ffontset_info): Doc fix.
1519 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
1520 <ignore-relative-composition>: Fix typos in docstrings.
1521
1522 * font.c (syms-of-font) <font-encoding-alist>:
1523 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
1524 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
1525 (Ffont_otf_alternates): Doc fixes.
1526
ad00e1a3
KH
15272008-05-20 Kenichi Handa <handa@m17n.org>
1528
1529 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
1530 font.h through out the file.
9e0e0d77 1531 (FONT_DRIVERS): Rename from FONTOBJ.
12855572 1532 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
ad00e1a3
KH
1533 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
1534
1535 * emacs.c (main): Call syms_of_font unconditionally.
1536
1537 * font.h (find_font_encoding): Extern it.
1538
9e0e0d77 1539 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
ad00e1a3
KH
1540 fontset.c.
1541 (font_pixel_size)[! HAVE_WINDOW_SYSTEM]: Return 1.
1542 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
1543 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
1544 only when HAVE_WINDOW_SYSTEM is defined.
1545 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
1546 when HAVE_WINDOW_SYSTEM is defined.
1547
9e0e0d77
SM
1548 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
1549 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
ad00e1a3
KH
1550
1551 * xfaces.c: Include font.h unconditionally.
1552 (merge_face_ref, merge_face_vectors)
1553 (Finternal_set_lisp_face_attribute): Cancel the previous change.
1554
40a69fac
SM
15552008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
1556
1557 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
1558 indirect_variable.
1559 * eval.c (lisp_indirect_variable): New fun.
1560 (Fuser_variable_p): Use it.
1561
8c2dccbf
SM
15622008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
1563
ad97b375
SM
1564 * lisp.h (indirect_variable):
1565 * data.c (indirect_variable, let_shadows_buffer_binding_p):
1566 Use Lisp_Symbol pointers rather than Lisp_Object.
1567 Adjust callers.
1568 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
1569 To this end, change calling-convention.
1570
8c2dccbf
SM
1571 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
1572 if some non-hidden buffers are selected by string&pred.
1573
ad97b375
SM
15742008-05-19 Chong Yidong <cyd@stupidchicken.com>
1575
1576 * process.c (wait_reading_process_output): Always check status
1577 when in batch mode.
1578
25b81df4
KH
15792008-05-19 Kenichi Handa <handa@m17n.org>
1580
1581 * font.c (font_list_entities): Fix handling of cache.
1582 (font_matching_entity): Likewise.
1583
8c2dccbf 1584 * ftfont.c (cs_iso8859_1): Delete.
25b81df4 1585 (ft_face_cache): New variable.
1f204af3 1586 (struct ftfont_info): New member fc_charset_idx.
8c2dccbf 1587 (ftfont_build_basic_charsets): Delete.
25b81df4
KH
1588 (fc_charset_table): New variable.
1589 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
1590 . FC_CHARSET_IDX) as :font-entity property in the font entity.
1591 Callers changed.
dde8403f 1592 (ftfont_lookup_cache, ftfont_get_charset): New functions.
8c2dccbf
SM
1593 (ftfont_spec_pattern): New argument fc_charset_idx.
1594 Check registry more rigidly. Change callers.
a2979e8e 1595 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
25b81df4
KH
1596 change of :font-entity property of the font.
1597
a2979e8e 1598 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
25b81df4
KH
1599 property of the font.
1600
d4a1d553
JB
16012008-05-18 Juanma Barranquero <lekktu@gmail.com>
1602
1603 * coding.c (Fcoding_system_p): Rename argument to match docstring.
1604 (Funencodable_char_position, Fcheck_coding_systems_region)
1605 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
1606 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
1607 (Ffind_operation_coding_system, Fset_coding_system_priority)
1608 (Fcoding_system_eol_type): Doc fixes.
1609
07cfc4e7
GM
16102008-05-17 Glenn Morris <rgm@gnu.org>
1611
1612 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
1613
1cab27d2
EZ
16142008-05-16 Eli Zaretskii <eliz@gnu.org>
1615
1616 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
1617 and st_gid.
1618
dde8403f 1619 * frame.c (Fdelete_frame): Don't call font_update_drivers if
1cab27d2
EZ
1620 HAVE_WINDOW_SYSTEM is not defined.
1621
1622 * xfaces.c (merge_face_ref, merge_face_vectors)
1623 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
1624 HAVE_WINDOW_SYSTEM is defined.
1625 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
1626
86b89713
SM
16272008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
1628
1629 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
1630
6750bd93
YM
16312008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1632
62867b11 1633 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
6750bd93 1634
79f105c9
KH
16352008-05-15 Kenichi Handa <handa@m17n.org>
1636
1637 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
1638 preference.
1639
6b33da9f
GM
16402008-05-15 Glenn Morris <rgm@gnu.org>
1641
1642 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
1643
d0e4433b
CY
16442008-05-15 Chong Yidong <cyd@stupidchicken.com>
1645
1646 * fns.c (init_fns): Don't initialize weak_hash_tables here.
1647 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
1648
1649 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
1650
5f2d79e0
KH
16512008-05-15 Kenichi Handa <handa@m17n.org>
1652
fd8a1cae
KH
1653 * ftfont.c (ftfont_list): Downcase family name to check generic
1654 families.
1655
1656 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
1657 font-spec for QCfont value.
1658
5f2d79e0
KH
1659 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
1660 buffer. Check the return value of it.
1661
e5e29349
JR
16622008-05-14 Jason Rumney <jasonr@gnu.org>
1663
1664 * w32term.c (w32_get_glyph_overhangs): Remove.
1665 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
1666
1f09f444
KH
16672008-05-14 Kenichi Handa <handa@m17n.org>
1668
1669 * font.c (font_prop_validate): Make nil a valid value.
be9442ad
KH
1670 (font_clear_cache): Check if the cached vector of entities is nil
1671 or not.
1f09f444 1672
ecae6af9 16732008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
f8240abd
YM
1674
1675 * emacs.c (main_thread): Conditionalize on
1676 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
1677 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
1678
1679 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
1680 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
1681 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
1682
c6b278e7
KH
16832008-05-14 Kenichi Handa <handa@m17n.org>
1684
1685 * coding.c (detect_coding_iso_2022): Ignore a coding category that
1686 has no corresponding coding system.
1687
16882008-05-14 Jason Rumney <jasonr@gnu.org>
1689
1690 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
1691
1692 * w32font.h (w32font_open_internal): Update declaration.
1693
1694 * w32font.c (w32font_open_internal): Change last argument from
1695 w32font_info struct to font object. Fill in font object from
1696 font_entity. Get Outline metrics if possible. Use them to
1697 calculate underline position and thickness. Use xlfd name as name
1698 property. Don't set codepage.
1699 (w32font_open): Pass font_object to w32font_open_internal. Don't
a879ee6f 1700 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
c6b278e7
KH
1701 (w32font_draw): Use s->font.
1702 (clear_cached_metrics): Don't clear non-existent blocks.
1703
1704 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
1705 font was not found.
a879ee6f 1706 (x_draw_glyph_string): Use underline position and thickness from font.
c6b278e7
KH
1707
1708 * w32uniscribe.c (uniscribe_open): Pass font_object to
1709 w32font_open_internal.
1710
17112008-05-14 Kenichi Handa <handa@m17n.org>
1712
1713 These changes are to delete all legacy font-handling codes, and
1714 make Emacs use only font-backends.
1715
1716 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
1717 (frame.o, image.o, print.o): Depend on $(FONTSRC).
1718
1719 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
1720
1721 * charset.h (Vcharset_non_preferred_head)
1722 (Vcurrent_iso639_language): Extern them.
1723
1724 * charset.c (Vcharset_non_preferred_head): New variable.
1725 (Vcurrent_iso639_language): New variable.
1726 (syms_of_charset): Declare it as a Lisp variable.
1727 (char_charset): Don't check non preferred charsets. As a last
1728 resort, return charset_unicode.
1729 (Fset_charset_priority): Update Vcharset_non_preferred_head.
1730
1731 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
1732 conditionals. Don't check enable_font_backend. Delete all codes
1733 used only when USE_FONT_BACKEND is not defined.
1734
1735 * dispextern.h (struct glyph_string): Change type of `font' to
1736 `struct font *'.
1737 (struct glyph_string): New member underline_position and
1738 underline_thickness.
1739 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
1740 (struct face): Change type of `font' to `struct font *'. Remove
1741 members `font_name', `font_info_id'.
1742 (per_char_metric, encode_char): Delete externs.
1743 (calc_pixel_width_or_height): Adjust the prototype.
1744
1745 * emacs.c (enable_font_backend): Delete extern.
1746 (main): Don't set enable_font_backend. Don't check the command
1747 line argument "-disable-font-backend".
1748
1749 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
1750 (enum font_property_index): New members FONT_DPI_INDEX,
1751 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
1752 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
1753 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
1754 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
1755 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
1756 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
1757 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
1758 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
1759 (struct font_spec, struct font_entity): New structs.
1760 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
1761 (struct font): Many members from old "struct font_info" moved to
1762 here. Members font and entity deleted.
1763 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
1764 the new font-related objects.
1765 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
1766 (CHECK_FONT_GET_OBJECT): Likewise.
1767 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
1768 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
1769 (struct font_driver): New members case_sensitive anc check. Type
1770 of the member list and open changed.
1771 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
1772 (font_symbolic_width, font_find_object, font_get_spec)
1773 (font_set_lface_from_name): Delete extern.
20746fe4 1774 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
c6b278e7
KH
1775
1776 * font.c: Include <strings.h>.
1777 (enable_font_backend): Delete it.
1778 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
1779 (CHECK_VALIDATE_FONT_SPEC): Delete it.
1780 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
1781 (null_string): Delete it.
1782 (null_vector): Make it static.
1783 (font_family_alist): Delete it.
1784 (Qnormal): Extern it.
1785 (QCextra, QClanguage): Delete it.
1f204af3 1786 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
c6b278e7
KH
1787 (font_make_spec, font_make_entity, font_make_object)
1788 (font_intern_prop): Renamed from intern_downcase. Don't downcase
1789 the string. Callers changed.
1790 (font_pixel_size): Adjusted for the format change of font-related
1791 objects.
1792 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
1793 (font_style_to_value, font_style_symbolic): New function.
1794 (build_font_family_alist): Delete it.
1795 (font_registry_charsets): Use Fassoc_string instead of
1796 assq_no_quit.
1797 (font_prop_validate_symbol): Don't return null_string.
1798 (font_prop_validate_style): Adjusted for the change of
1799 style-related values in a font vector.
20746fe4 1800 (font_property_table): Delete entries for QClanguage and
c6b278e7
KH
1801 QCantialias, add entries for QCavgwidth.
1802 (get_font_prop_index): Delete the 2nd argument FROM.
1803 (font_prop_validate): Arguments changed.
1804 (font_put_extra): Adjusted for the change of font-related objects.
1805 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
1806 (font_parse_fcname, font_unparse_fcname)
1807 (font_prepare_composition): Likewise.
1808 (font_parse_family_registry): Renamed from font_merge_old_spec.
1809 (otf_open): Delete the 1st arg entity.
1810 (font_otf_capability): Adjusted for the above change.
1811 (font_score): New arg alternate_families. Adjusted for the change
1812 of font-related objects.
1813 (font_sort_entites): New arg best_only.
1814 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
1815 Delete them.
1816 (font_match_p): Check alternate families.
1817 (font_find_object): Delete it.
1818 (font_check_object): New function.
c3f9fba8 1819 (font_clear_cache): Adjusted for the change of font-related objects.
c6b278e7
KH
1820 (font_delete_unmatched): New arg.
1821 (font_list_entities): Call font_driver->list with a spec that
1822 doesn't specify style-related properties.
1823 (font_matching_entity): Arguments changed. Caller changed.
c3f9fba8 1824 (font_open_entity): Adjusted for the change of font-related objects.
c6b278e7
KH
1825 (font_close_object, font_has_char, font_encode_char)
1826 (font_get_name, font_get_spec): Likewise.
c3f9fba8
JB
1827 (font_spec_from_name, font_clear_prop, font_update_lface):
1828 New functions.
1829 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
c6b278e7
KH
1830 (font_prepare_for_face, font_done_for_face, font_open_by_name)
1831 (font_at): Adjusted for the change of font-related objects.
1832 (font_range): New function.
1833 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
c3f9fba8 1834 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
c6b278e7
KH
1835 (Fcopy_font_spec, Fmerge_font_spec): New function.
1836 (Ffont_family_list): Renamed from list-families.
1837 (Finternal_set_font_style_table): Arguments changed.
1838 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
1839 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
1840 change of font-related objects.
c3f9fba8 1841 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
c6b278e7 1842
3554e566 1843 * fontset.h (struct font_info): Delete it. Most members go to
c6b278e7
KH
1844 struct font.
1845 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
1846 (enum FONT_SPEC_INDEX): Delete it.
1847 (font_info, list_fonts_func, load_font_func, query_font_func)
1848 (set_frame_fontset_func, find_ccl_program_func)
1849 (get_font_repertory_func, new_fontset_from_font_name): Delete
1850 externs.
1851 (fontset_from_font_name): Extern it.
1852 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
1853 (FONT_INFO_FROM_FACE): Deleted.
1854 (face_for_font): Adjust prototype.
1855
1856 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
1857 conditionals. Don't check enable_font_backend. Delete all codes
1858 used only when USE_FONT_BACKEND is not defined.
1859 (get_font_info_func, list_font_func, load_font_func)
1860 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
1861 (get_font_repertory_func): Delete them.
1862 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
1863 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
1864 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
1865 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
1866 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
1867 (fontset_compare_rfontdef): New function.
1868 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
1869 ront-defs by qsort. Adjusted for the change of font-group vector.
1870 (load_font_get_repertory): Deleted.
1871 (fontset_find_font): Use new macros to ref/set elements of
1872 font-def and rfont-def.
1873 (fontset_font): Fix the timing of remembering that no font for C.
1874 (free_face_fontset): Do nothing if the face has no fontset.
1875 (face_suitable_for_char_p): Use new macros to ref/set elements of
1876 rfont-def.
1877 (face_for_char): Likewise. Call face_for_char with font_object.
1878 (fs_load_font): Delete. Delete #pragma surrounding it.
1879 (fs_query_fontset): Use strcasecmp instead of strcmp.
1880 (generate_ascii_font_name): Adjusted for the format change of
1881 font-spec.
1882 (Fset_fontset_font): Likewise. Use new macros to set elements of
1883 font-def.
1884 (Fnew_fontset): Use font_unparse_xlfd to generate
1885 FONTSET_ASCII (fontset).
1886 (new_fontset_from_font_name): Deleted.
1887 (fontset_from_font): Renamed from new_fontset_from_font. Check if
1888 a fontset is already created for the font. FIx updating of
1889 Vfontset_alias_alist.
1890 (fontset_ascii_font): Deleted.
1891 (Ffont_info): Adjusted for the format change of font-spec.
1892 (Finternal_char_font): Likewise.
1893 (Ffontset_info): Likewise.
1894 (syms_of_fontset): Don't check load_font_func.
1895
1896 * fns.c (internal_equal): Handle PREV_FONT.
1897
1898 * frame.h: Delete USE_FONT_BACKEND conditional.
1899
1900 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
1901 conditionals. Don't check enable_font_backend. Delete all codes
1902 used only when USE_FONT_BACKEND is not defined.
1903 (x_set_font): Call x_new_font, not x_new_fontset2.
1904 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
1905 already set for the frame.
1906
1907 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
1908 a font-entity by font_make_entity. Use font_intern_prop instead
1909 of intern_downcase. Use FONT_SET_STYLE to set a style-related
1910 font property. If a font is scalable, set avgwidth property to 0.
1911 Set font-entity property by font_put_extra.
1912 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
1913 (ffont_driver): Adjusted for the change of struct font_driver.
1914 (ftfont_spec_pattern): New function.
1915 (ftfont_list): Return a list, not vector.
1916 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
1917 (ftfont_list_family): Don't downcase names.
1918 (ftfont_free_entity): Deleted.
1919 (ftfont_open): Return a font-ojbect. Adjusted for the change of
1920 struct font. Get underline_thickness and underline_position from
1921 font property. Don't update dpyinfo->smallest_font_height and
1922 dpyinfo->smallest_char_width.
1923 (ftfont_close): Don't free `struct font'.
1924 (ftfont_has_char): Adjusted for the format change of font-entity.
1925 (ftfont_encode_char, ftfont_text_extents): Likewise.
1926
1927 * ftxfont.c (ftxfont_list): Return a list, not vector.
1928 (ftxfont_open): Return a font-ojbect. Adjusted for the change of
1929 struct font. Get underline_thickness and underline_position from
1930 font property. Don't update dpyinfo->smallest_font_height and
1931 dpyinfo->smallest_char_width.
1932 (ftxfont_close): Don't decrese FRAME_X_DISPLAY_INFO (f)->n_fonts.
1933 (ftxfont_draw): Adjusted for the change of struct font.
1934
1935 * image.c (image_ascent): Don't include "charset.h". Include
1936 "character.h" and "font.h".
1937
1938 * lisp.h (enum pvec_type): New member PREV_FONT.
1939 (Fassoc_string): EXFUN it.
1940
1941 * print.c: Include font.h.
1942 (print_object): Handle font-related objects.
1943
1944 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
1945 conditionals. Don't check enable_font_backend. Delete all codes
1946 used only when USE_FONT_BACKEND is not defined.
1947 (handle_auto_composed_prop): Do nothing if it->f is not on a
1948 window system. Check how many following characters can be
1949 displayed by the same font.
1950 (calc_pixel_width_or_height): Type of the 4th arg is changed to
1951 'struct font *'.
1952 (get_char_face_and_encoding): Assign the whole encoding task to
1953 the `encode-char' method of a font driver.
1954 (fill_composite_glyph_string): Adjusted for the change of `struct
1955 face' and `struct glyph_string'.
1956 (fill_glyph_string): Likewise.
1957 (get_per_char_metric): Arguments changed.
1958 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
1959 and `struct glyph_string'.
1960 (produce_stretch_glyph, calc_line_height_property)
1961 (x_produce_glyphs): Likewise.
1962
1963 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
1964 conditionals. Don't check enable_font_backend. Delete all codes
1965 used only when USE_FONT_BACKEND is not defined. Use
1966 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
1967 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
1968 (Qp): Extern them.
1969 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
1970 Deleted.
1971 (struct font_name): Deleted.
1972 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
1973 (compare_fonts_by_sort_order): New function.
1974 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
1975 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
1976 Deleted.
1977 (Fx_family_fonts): Use font_list_entities, and sort fonts by
1978 compare_fonts_by_sort_order.
1979 (Fx_font_family_list): Call Ffont_family_list.
1980 (face_numeric_value, face_numeric_weight, face_numeric_slant)
1981 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
1982 (face_symbolic_slant, face_symbolic_swidth)
1983 (split_font_name_into_vector, build_font_name_from_vector)
1984 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
1985 (font_rescale_ratio, split_font_name, build_font_name)
1986 (free_font_names, sort_fonts, x_face_list_fonts)
1987 (face_font_available_p, sorted_font_list, cmp_font_names)
1988 (font_list_1, concat_font_list, font_list, remove_duplicates):
1989 Deleted.
1990 (Fx_list_fonts): Use Ffont_list.
1991 (LFACE_AVGWIDTH): Deleted.
1992 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
1993 by FONTP.
1994 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
1995 (set_lface_from_font_name): Delete it.
1996 (set_lface_from_font): Renamed from
1997 set_lface_from_font_and_fontset. Caller changed. Don't set
1998 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
1999 for face.
c3f9fba8
JB
2000 (merge_face_vectors): Copy font-spec if necessary.
2001 Clear properties of the font-spec if necessary.
c6b278e7
KH
2002 (merge_face_ref): Clear properties of the font-spec if necessary.
2003 (Finternal_set_lisp_face_attribute): Likewise.
2004 (set_font_frame_param): Use font_load_for_lface to load a
2005 font-object, and call Fmodify_frame_parameters with it.
2006 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
2007 font name by Ffont_xlfd_name.
2008 (Finternal_lisp_face_attribute_values): Don't check QCweight,
2009 QCslant, and QCwidth.
2010 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
2011 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
2012 Compare fonts by EQ.
2013 (lookup_non_ascii_face): Deleted.
2014 (face_for_font): The 2nd argument changed.
c3f9fba8
JB
2015 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
2016 Check atomic font properties by case insensitive.
c6b278e7
KH
2017 (realize_non_ascii_face): Set face->overstrike correctly.
2018 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
2019 (dump_realized_face): Get font name from
2020 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
2021
2022 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
2023 conditionals. Don't check enable_font_backend. Delete all codes
2024 used only when USE_FONT_BACKEND is not defined.
2025 (xic_create_xfontset): Original code deleted and renamed from
2026 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
2027 (x_make_gc): Don't set GCFont in GCs.
2028 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
2029 opened by "fixed".
2030 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
2031 find_ccl_program_func, query_font_func, set_frame_fontset_func,
2032 get_font_repertory_func.
2033
2034 * xfont.c: Include <stdlib.h> and "ccl.h".
2035 (struct xfont_info): New structure.
2036 (xfont_query_font): Deleted.
2037 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
2038 moved from xterm.c.
2039 (xfont_driver): Adjusted for the change of struct font_driver.
2040 (compare_font_names): New function.
2041 (xfont_list_pattern): Sort font names case insensitively. Make
2042 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
2043 (xfont_list): Return a list, not vector.
2044 (xfont_match): If the font doesn't have QCname property, generate
2045 a name from the other font properties.
2046 (xfont_open): Return a font-ojbect. Adjusted for the change of
2047 struct font. Get underline_thickness and underline_position from
2048 font property. Don't update dpyinfo->smallest_font_height and
2049 dpyinfo->smallest_char_width.
2050 (xfont_close): Don't free struct font.
2051 (xfont_prepare_face): Adjusted for the change of struct font.
2052 (xfont_done_face): Deleted.
2053 (xfont_has_char): Adjusted for the change of struct font.
2054 (xfont_encode_char, xfont_draw): Likewise.
2055 (xfont_check): New function.
2056
2057 * xftfont.c (xftfont_list): Adjusted for the change of `list'
2058 callback function.
2059 (xftfont_match): Adjusted for the fontmat change of font-entity.
2060 (xftfont_open): Adjusted for the format change of font-entity and
2061 font-object. Adjusted for the change of struct font. Return a
2062 font-object. Don't update dpyinfo->smallest_font_height and
2063 dpyinfo->smallest_char_width.
2064 (xftfont_close): Block input while calling XftFontClose.
2065 (xftfont_prepare_face): Don't block input while calling
2066 xftfont_get_colors. Adjusted for the change of struct font.
2067 (xftfont_shape): Return value of error case fixed.
2068
2069 * xrdb.c (x_load_resources): Don't setup a fontset resource.
2070
2071 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
2072 conditionals.
2073 (FONT_WIDTH): Return (f)->max_width.
2074 (struct x_display_info): Delete member `font'.
2075 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
2076 (x_find_ccl_program, x_get_font_repertory): Delete externs.
2077 (struct x_output): Change type of `font' to `struct font *'.
2078
2079 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
2080 conditionals. Don't check enable_font_backend. Delete all codes
c3f9fba8 2081 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
c6b278e7
KH
2082 (x_per_char_metric, x_encode_char): Deleted.
2083 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
2084 (x_compute_glyph_string_overhangs): Adjusted for the change of
c3f9fba8 2085 `struct face'.
c6b278e7
KH
2086 (x_draw_glyph_string_foreground)
2087 (x_draw_composite_glyph_string_foreground): Likewise.
2088 (x_draw_glyph_string): Likewise. Use font->underline_position and
2089 font->underline_thickness.
2090 (x_new_font): Renamed from x_new_fontset2.
2091 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
2092 (x_check_font): Call `check' method of a font driver.
2093 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
2094 (x_query_font, x_get_font_repertory): Deleted.
2095 (x_find_ccl_program): Renamed and moved to xfont.c.
2096 (x_redisplay_interface): Adjusted for the change of `struct
2097 redisplay_interface'.
2098
2099 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
2100 conditionals. Don't check enable_font_backend. Delete all codes
2101 used only when USE_FONT_BACKEND is not defined. Surround non-used
2102 code by "#ifdef OLD_FONT" and "endif".
2103 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
2104
2105 * w32font.h (struct w32font_info): New member.
2106 (FONT_COMPAT): New macro.
2107 (w32font_open_internal): Prototype adjusted.
2108
2109 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
2110 OLD_FONT" and "endif".
2111
2112 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
2113 conditionals. Don't check enable_font_backend. Delete all codes
2114 used only when USE_FONT_BACKEND is not defined.
2115 (w32font_open): Return a font-object. Make a font-object by
2116 font_make_object. Adjusted for the change of struct w32font_info.
2117 (w32font_close): Don't free struct font. Adjusted for the change
2118 of struct w32font_info.
2119 (w32font_encode_char, w32font_text_extents, w32font_draw):
2120 Adjusted for the change of struct w32font_info.
2121 (w32font_draw): Likewise.
2122 (w32font_list_internal): Return a list, not vector.
2123 (w32font_open_internal): Change the 4th arg to font-object.
c3f9fba8 2124 Adjusted for the change of struct w32font_info and font-object format.
c6b278e7
KH
2125 (add_font_name_to_list): Don't downcase names.
2126 (w32_enumfont_pattern_entity): Make a font-entity by
2127 font_make_entity. Adjusted for the format change of font-entity.
2128 Use FONT_SET_STYLE to set a style-related font property. If a
2129 font is scalable, set avgwidth property to 0. Set font-entity
2130 property by font_put_extra.
c3f9fba8 2131 (font_matches_spec): Adjusted for the format change of font-entity.
c6b278e7
KH
2132 (w32_weight_table, w32_decode_weight): New variables.
2133 (w32_encode_weight): New function.
2134 (fill_in_logfont): Adjusted for the format change of font-spec.
2135 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
2136 weight value.
2137 (w32font_driver): Adjusted for the change of struct font_driver.
2138
2139 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
f245f2c6 2140 conditionals. Don't check enable_font_backend. Surround non-used
c6b278e7
KH
2141 code by "#ifdef OLD_FONT" and "endif".
2142 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
2143 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
2144
2145 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
2146 conditionals. Don't check enable_font_backend. Delete all codes
2147 used only when USE_FONT_BACKEND is not defined. Surround non-used
2148 code by "#ifdef OLD_FONT" and "endif".
2149
2150 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
c3f9fba8
JB
2151 (uniscribe_open): Return value changed to font-object.
2152 Adjusted for the format change of font-object.
2153 (uniscribe_otf_capability): Adjusted for the change of struct font.
c6b278e7
KH
2154 (add_opentype_font_name_to_list): Don't downcase names.
2155 (uniscribe_font_driver): Adjusted for the change of struct
2156 font_driver.
2157
f9d4c199
CY
21582008-05-13 Chong Yidong <cyd@stupidchicken.com>
2159
2160 * dispnew.c (update_frame_1): Check if tty output is still valid
2161 before flushing it.
2162
44f249c0
JD
21632008-05-13 Jan Djärv <jan.h.d@swipnet.se>
2164
2165 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
2166 to Gtk+ menus.
2167
01bb4018
SM
21682008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
2169
3271a8f5
SM
2170 * dired.c (file_name_completion): Tweak the code so as to always do it
2171 in a single pass. Tighten the scope of some variables.
2172
01bb4018
SM
2173 * dired.c (Qdefault_directory): New var.
2174 (file_name_completion): Use it instead of Fexpand_file_name.
2175 (syms_of_dired): Initialize it.
2176
728bb8e0
SM
21772008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
2178
2179 * fileio.c (double_dollars): Remove dead code.
2180
ed4c17bb
EZ
21812008-05-10 Eli Zaretskii <eliz@gnu.org>
2182
6c5665e9
EZ
2183 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
2184 Mention w32-get-true-file-attributes in doc string.
2185
ed4c17bb
EZ
2186 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
2187
71e1f69d
GM
21882008-05-09 Glenn Morris <rgm@gnu.org>
2189
2190 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
2191 2008-04-23.
2192
ee7a2e7a
EZ
21932008-05-09 Eli Zaretskii <eliz@gnu.org>
2194
8aaaec6b
EZ
2195 Support for reporting owner and group of each file on MS-Windows:
2196 * dired.c (stat_uname, stat_gname): New functions, with special
2197 implementation for w32.
2198 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
2199
ee7a2e7a
EZ
2200 * w32.c: Rename the_passwd_* to dflt_passwd_*.
2201 (dflt_group_name): New static variable.
728bb8e0 2202 (dflt_group): Rename from the_group.
ee7a2e7a
EZ
2203 (init_user_info): Init dflt_group fields. Get user's group name
2204 from LookupAccountSid.
8aaaec6b
EZ
2205 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
2206 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
2207 New initialization states.
2208 (globals_of_w32): Initialize them to zero. Initialize the default
2209 group name to "None".
2210 (GetFileSecurity_Name): New global var, the name of the function
2211 to call for GetFileSecurity.
2212 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
2213 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
2214 (get_file_security, get_security_descriptor_owner)
2215 (get_security_descriptor_group, is_valid_sid)
2216 (get_file_security_desc, get_rid, get_name_and_id)
2217 (get_file_owner_and_group): New functions.
2218 (stat): Use get_file_security_desc and get_file_owner_and_group to
2219 report the owner and primary group of each file. Don't ignore the
728bb8e0
SM
2220 high 32 bits of file's size, now that st_size is 64-bit wide.
2221 Fix test when to get true file attributes.
8aaaec6b
EZ
2222 (init_user_info): Use get_rid instead of equivalent inline code.
2223 (fstat): Don't ignore the high 32 bits of file's size.
ee7a2e7a 2224
b199c436
CY
22252008-05-09 Chong Yidong <cyd@stupidchicken.com>
2226
2227 * image.c (png_load): Use correct bit-depth for setting background
2228 color.
2229
86914123
EZ
22302008-05-08 Eli Zaretskii <eliz@gnu.org>
2231
2232 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
2233 epa-hook.elc.
2234
67b5d7de
JB
22352008-05-08 Juanma Barranquero <lekktu@gmail.com>
2236
2237 * font.c (Ffont_match_p): Don't use `iff' in docstring.
2238
1a111394
DN
22392008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
2240
2241 * macfns.c (Fx_create_frame): Make a copy of frame parameters
2242 because the original parameters are in pure storage now.
2243 (mac_window): Remove unused params. Update callers.
2244
6d77fa95
SM
22452008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
2246
7a3d90dc
SM
2247 * lread.c (substitute_object_recurse): Use lower-level primitives.
2248 Don't signal errors when traversing sub-char-tables.
2249 Don't loop over all the possible characters when traversing char-tables.
2250
6d77fa95
SM
2251 * print.c (print_preprocess): Add sub-char-tables to the print-table,
2252 just like we do in print.c.
2253
140eb764
SM
22542008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
2255
2256 * minibuf.c (Ftry_completion): Remove code left over from when we used
2257 scmp instead of Fcompare_strings.
2258
e9184ccb
JB
22592008-05-04 Juanma Barranquero <lekktu@gmail.com>
2260
2261 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
2262
0e9378b3
YM
22632008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2264
2265 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
2266 Create bitmap context in native byte order.
2267
f67e15be
MB
2268 * macterm.c (XDrawLine)
2269 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
2270 context in native byte order.
064032d0 2271
f67e15be 22722008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
50eff40f
YM
2273
2274 * config.in: Regenerate.
2275
2276 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
2277 New definitions for Image I/O support.
2278 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
2279 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
2280 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
2281 (mac_data_provider_release_data, image_load_image_io)
2282 [USE_MAC_IMAGE_IO]: New functions.
2283 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
2284 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
2285 (init_image_func_pointer) [MAC_OSX]: Remove function.
2286 (image_load_quartz2d) [MAC_OSX]: Check availability of
2287 CGImageCreateWithPNGDataProvider at compile time.
2288 Use lowercase `false' for boolean constant.
2289 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
2290 Use image_load_image_io.
2291 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
2292 Don't check MyCGImageCreateWithPNGDataProvider.
2293 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
2294 Don't call init_image_func_pointer.
2295
2296 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
2297
2298 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
2299 Make variable non-static.
2300 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
2301 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
2302
2303 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
2304 (RED_FROM_ULONG): Mask off higher bits.
2305 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
2306
2307 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
2308 Include AvailabilityMacros.h.
2309 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
2310 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
2311
c6bff69e
SM
23122008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
2313
2314 * chartab.c (Fset_char_table_range): If range is t, really set all
2315 chars to that value.
2316
7412d429
EZ
23172008-05-03 Eli Zaretskii <eliz@gnu.org>
2318
2319 * dired.c (Ffile_attributes): Don't allow the device number become
2320 negative.
2321
f83bbfac
DU
23222008-05-02 Daiki Ueno <ueno@unixuser.org>
2323
5a81d3d7 2324 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
f83bbfac 2325
2e3148e2
JL
23262008-05-02 Juri Linkov <juri@jurta.org>
2327
2328 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
728bb8e0
SM
2329 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
2330 DEFAULT argument as a list of default values in docstrings.
2e3148e2 2331
923fb88c
CY
23322008-05-01 Chong Yidong <cyd@stupidchicken.com>
2333
2334 * puresize.h (BASE_PURESIZE): Increase to 1210000.
2335
047aaeb9
MR
23362008-05-01 Martin Rudalics <rudalics@gmx.at>
2337
2338 * dispnew.c (change_frame_size_1): Preserve small windows when
2339 shrinking frames by calling set_window_height|width with third
2340 arg 2.
2341
2342 * window.h (struct window): Replace field too_small_ok by field
2343 resize_proportionally.
2344
2345 * window.c (make_window): Initialize resize_proportionally.
2346 (enlarge_window): Temporarily set resize_proportionally to make
2347 sure that shrink_windows does scale the window proportionally.
2348 (shrink_windows): When window has resize_proportionally set try
2349 to shrink it proportionally by stealing from other windows.
2350 (struct saved_window, Fset_window_configuration)
2351 (compare_window_configurations): Handle resize_proportionally.
2352 (WINDOW_TOTAL_SIZE): New macro.
2353 (window_min_size, shrink_windows, size_window): Use it.
c6bff69e 2354 (check_min_window_sizes): Remove. Invalid values of
047aaeb9
MR
2355 window-min-height|width are handled by window_min_size_2 now.
2356 (size_window, Fsplit_window, enlarge_window)
2357 (adjust_window_trailing_edge, grow_mini_window): Don't call
2358 check_min_window_sizes.
c6bff69e
SM
2359 (window_min_size_2, window_min_size_1, window_min_size):
2360 New argument safe_p for retrieving "safe" minimum sizes.
c3f9fba8 2361 (Fdisplay_buffer, Fsplit_window, enlarge_window)
c6bff69e
SM
2362 (adjust_window_trailing_edge, grow_mini_window):
2363 Adjust arguments of window_min_size... functions.
047aaeb9
MR
2364 (shrink_windows): Argument min_size removed. New argument
2365 safe_p allows shrinking windows to their safe minimum sizes.
2366 Calculate minimum size and decide whether a window shall be
2367 deleted for each window individually.
2368 (size_window): When nodelete_p equals 2, tell shrink_windows to
2369 delete windows only if their new minimum size is no more safe.
2370 (shrink_window_lowest_first): Call window_min_size_1 to make
2371 sure to preserve modeline of bottom-most window when resizing
2372 the minibuffer.
2373 (Fset_window_configuration, Fcurrent_window_configuration)
2374 (compare_window_configurations): Do not handle
2375 window-min-height|width any more.
2376 (syms_of_window): Clarify window-min-height|width doc-strings.
2377
2a54a229
SM
23782008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
2379
2380 * dired.c (file_name_completion): Fix up the encoding/decoding issue
2381 some more. Copy some of the code from Ftry_completions.
2382 Remove special case code that dates back to initial revision when the
2383 slash was only added when necessary and that can't trigger nowadays.
2384
384bc634
KH
23852008-04-27 Kenichi Handa <handa@m17n.org>
2386
2387 * font.c (font_prop_validate): Signal `error' instead of `font'.
2388
2c2279c6
JR
23892008-04-29 Jason Rumney <jasonr@gnu.org>
2390
2391 * w32fns.c (Fw32_battery_status): New defun.
2392 (syms_of_w32fns): Defsubr it.
2393
fb4a622a
AS
23942008-04-28 Andreas Schwab <schwab@suse.de>
2395
2396 * dired.c (file_name_completion): Fix another mixing of encoded
2397 and decoded names.
2398
23f250f4
JB
23992008-04-28 Juanma Barranquero <lekktu@gmail.com>
2400
2401 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
2402
d8d30dff
JB
24032008-04-27 Juanma Barranquero <lekktu@gmail.com>
2404
2405 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
2406
ea6104a8
AS
24072008-04-27 Andreas Schwab <schwab@suse.de>
2408
9c691c00
AS
2409 * dired.c (file_name_completion): Fix inappropriate mixing of
2410 encoded and decoded names.
2411
ec1bf773
AS
2412 * xterm.c (XTread_socket): Fix use of uninitialized variable.
2413
ea6104a8
AS
2414 * puresize.h (BASE_PURESIZE): Increase to 1200000.
2415
01388a3d
EZ
24162008-04-26 Eli Zaretskii <eliz@gnu.org>
2417
2418 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
2419 2008-03-31, it's not needed anymore with `struct stat' definition
2420 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
2421 for the same reasons.
2422
175aea10 24232008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
27af566c
CY
2424
2425 * m/sparc.h: Additional redefinitions for GNU/Linux.
2426
1289aeb8
YM
24272008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2428
2429 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
2430 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
2431 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
2432 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
2433 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
2434 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
2435 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
2436 Likewise.
2437
2438 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
c3f9fba8 2439 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
1289aeb8
YM
2440 (mac_ax_number_of_characters): Add externs.
2441 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
2442 [USE_MAC_TSM]: Likewise.
2443 (mac_handle_text_input_event) [MAC_OSX]:
2444 Handle kEventTextInputOffsetToPos for no active input area case.
2445 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
2446 (mac_handle_document_access_event)
2447 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
2448 (install_application_handler) [MAC_OSX]: Register handlers for
2449 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
2450 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
2451 Register mac_handle_document_access_event.
2452
2453 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
2454 Make functions non-static.
2455
dbd50d4b
SM
24562008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
2457
2458 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
2459 (read_file_name_completion_ignore_case, insert_default_directory)
2460 (Qdefault_directory): Move to minibuffer.el.
2461 (Fread_file_name): Call the new `read-file-name' instead.
2462
9ea37b9d 24632008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
81fe843b
YM
2464
2465 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
2466 Make function non-static.
2467 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
2468 Remove function.
2469 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
2470 Move to mactoolbox.c.
2471 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
2472
2473 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
2474 (mac_rect_make): New macro.
2475
2476 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
2477 instead of float.
2478 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
2479 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
2480 (XSetBackground) [USE_CG_DRAWING]: Likewise.
2481 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
2482 CGRectMake.
2483 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
2484 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
2485 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
2486 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
2487 instead of WindowRef in argument type.
2488 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
2489 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
2490 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
2491 instead of DISPLAY. All uses changed.
2492 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
2493 (x_calc_absolute_position): Simplify so as not to use
2494 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
81fe843b
YM
2495
2496 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
2497 instead of WindowRef in argument type.
2498 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
2499 [TARGET_API_MAC_CARBON]: Remove externs.
2500 (create_apple_event, mac_event_parameters_to_lisp)
2501 [TARGET_API_MAC_CARBON]: Add externs.
2502
d8d30dff 2503 * mactoolbox.c (Vmac_ts_script_language_on_focus)
81fe843b
YM
2504 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
2505 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
2506 is clicked.
2507 (x_activate_menubar): Remove extern for saved_menu_event_location.
2508 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
2509 Move from mac.c.
2510
9ea37b9d 25112008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
a1b41389
YM
2512
2513 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
2514 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
2515
9ea37b9d 25162008-04-23 Jason Rumney <jasonr@gnu.org>
bd735631
JR
2517
2518 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
2519 attributes only for local files.
2520
2521 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
e9184ccb 2522 default to Qlocal.
bd735631 2523
88970542
JL
25242008-04-22 Juri Linkov <juri@jurta.org>
2525
2526 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
2527 read-buffer-to-switch instead of using the letter "B".
2528
92ec67e3
SM
25292008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
2530
2531 * fileio.c (Qdefault_directory): New variable.
2532 (Fread_file_name): Use it to pass `dir' to the completion functions.
2533
a32b2382
CY
25342008-04-20 Chong Yidong <cyd@stupidchicken.com>
2535
2a2e8de7 2536 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
a32b2382 2537
6c8b4f07
SM
25382008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
2539
ece5f847
SM
2540 * keyboard.c (Vpre_help_message): Remove.
2541 (show_help_echo): Remove default C code.
2542
6c8b4f07
SM
2543 * dired.c (directory_files_internal, file_name_completion):
2544 Only call ENCODE_FILE if the string is indeed decoded.
2545
73d798d5
SM
25462008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
2547
2548 * Makefile.in (TOOLKIT_DEFINES): Remove.
2549 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
2550
d8d30dff 25512008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9e13f0c3
YM
2552
2553 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
2554 (mactoolbox.o): New target.
2555
2556 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
2557 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
2558
2559 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
2560 Use mac_set_frame_window_background instead of XSetWindowBackground.
2561 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
2562 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
2563 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
2564 instead of SetWindowTitleWithCFString.
2565 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
2566 Move function to mactoolbox.c.
2567 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
2568 Use mac_set_window_modified instead of SetWindowModified.
2569 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
2570 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
2571 (Fx_focus_frame): Use mac_front_non_floating_window instead of
2572 FrontNonFloatingWindow. Use mac_activate_window instead of
2573 ActivateWindow. Use mac_active_non_floating_window instead of
2574 ActiveNonFloatingWindow.
2575 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
2576 Use mac_show_hourglass and mac_hide_hourglass.
2577 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
2578 instead of GetGlobalMouse.
2579 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
2580 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
2581 Use mac_bring_window_to_front instead of BringToFront.
2582 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
2583 mactoolbox.c.
2584 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
2585 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
2586 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
2587 mactoolbox.c.
2588
2589 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
2590 (XtPointer): Move typedef from macmenu.c.
2591 (enum button_type): Move enum from macmenu.c.
2592 (widget_value): Move typedef from macmenu.c.
2593 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
2594 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
2595 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
2596 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
2597 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
2598 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
2599 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
2600 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
2601 (Selection): Move typedef from macselect.c.
2602 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
2603 macterm.c.
2604 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
2605 (mac_is_window_collapsed, mac_bring_window_to_front)
2606 (mac_send_window_behind, mac_hide_window, mac_show_window)
2607 (mac_collapse_window, mac_front_non_floating_window)
2608 (mac_active_non_floating_window, mac_activate_window)
2609 (mac_move_window_structure, mac_move_window, mac_size_window)
2610 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
2611
2612 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
2613 (enum mac_menu_kind): Move enum to mactoolbox.c.
2614 (min_menu_id): Move variable to mactoolbox.c.
2615 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
2616 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
2617 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
2618 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
2619 [TARGET_API_MAC_CARBON]: Likewise.
2620 (XtPointer): Move typedef to macgui.h.
2621 (enum button_type): Move enum to macgui.h.
d02fe47d
MB
2622 (widget_value): Move typedef to macgui.h.
2623 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
2624 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
2625 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
2626 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
2627 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
2628 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
2629 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
2630 (popup_activated_flag): Make variable non-static.
2631 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
2632 (add_menu_item, fill_menu, dispose_menus):
2633 Move functions to mactoolbox.c.
2634 (restore_show_help_function, menu_target_item_handler)
2635 (install_menu_target_item_handler, mac_handle_dialog_event)
2636 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
2637 [TARGET_API_MAC_CARBON]: Likewise.
2638 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
2639 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
2640 (find_and_call_menu_selection, name_is_separator): Make function
2641 non-static.
2642 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
2643 to mactoolbox.c.
2644 (set_frame_menubar): Don't call install_menu_quit_handler.
2645 (menu_item_selection): New variable.
2646 (mac_menu_show): Use create_and_show_popup_menu.
2647 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
2648 selection but set variable menu_item_selection. All uses changed.
2649 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
2650 Call install_menu_quit_handler. Move to mactoolbox.c.
edd3ff1d 2651
d02fe47d
MB
2652 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
2653 (Selection): Move typedef to macgui.h.
2654 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
2655 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
2656 Make variables non-static.
2657 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
2658 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
2659 Make functions non-static.
2660 (Vmac_service_selection) [MAC_OSX]: Likewise.
2661 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
2662 (mac_valid_selection_target_p, mac_clear_selection)
2663 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
2664 (mac_put_selection_value, mac_selection_has_target_p)
2665 (mac_get_selection_value, mac_get_selection_target_list)
2666 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
2667 Move functions to mactoolbox.c.
2668 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
2669 Likewise.
2670 (copy_scrap_flavor_data, mac_handle_service_event)
2671 (install_service_handler) [MAC_OSX]: Likewise.
2672 (syms_of_macselect) <Vmac_dnd_known_types>:
2673 Use mac_dnd_default_known_types.
463f55ee 2674
d02fe47d
MB
2675 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
2676 Move to mactoolbox.c.
2677 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
2678 (Fx_selection_owner_p): Add EXFUN.
2679 (install_window_handler, remove_window_handler, XSetWindowBackground):
2680 Remove externs.
2681 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
2682 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
2683 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
2684 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
2685 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
2686 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
2687 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
2688 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
2689 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
2690 (create_and_show_popup_menu, mac_get_selection_from_symbol)
2691 (mac_valid_selection_target_p, mac_clear_selection)
2692 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
2693 (mac_put_selection_value, mac_selection_has_target_p)
2694 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
2695 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
2696 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
2697 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
2698 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
2699 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
2700 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
2701 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
2702 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
463f55ee 2703
d02fe47d 2704 * mactoolbox.c: New file.
af253914 2705
d8d30dff 27062008-04-18 Jason Rumney <jasonr@gnu.org>
af253914 2707
d02fe47d 2708 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
af253914 2709
8ee085a4
SM
27102008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
2711
73d798d5
SM
2712 * character.c (Fmultibyte_char_to_unibyte):
2713 Return latin1 chars unchanged.
5556875b 2714
8ee085a4
SM
2715 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
2716 relocated if it points to `name'.
2717
5dff5999
KH
27182008-04-17 Kenichi Handa <handa@m17n.org>
2719
2720 * data.c (Faset): Allow setting a multibyte character in an
2721 ASCII-only unibyte string.
2722
2723 * lisp.h (STRING_SET_MULTIBYTE): New macro.
2724
a51f4969
SM
27252008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
2726
2727 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
2728 done in config.h.
2729
add553ac
JB
27302008-04-16 Juanma Barranquero <lekktu@gmail.com>
2731
2732 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
2733 (Fchar_direction): Add usage in the docstring.
2734
8ad7b280
CY
27352008-04-15 Chong Yidong <cyd@stupidchicken.com>
2736
2737 * keyboard.c (read_key_sequence): Remove always-true checks.
2738
e157d7ba
JR
27392008-04-14 Jason Rumney <jasonr@gnu.org>
2740
2741 * w32font.c (w32font_open_internal): Set max_bounds.descent in
2742 compatibility struct, for better underline positioning.
2743
9ec3aaef 27442008-04-13 David Hansen <david.hansen@gmx.net>
48f7d213
MA
2745
2746 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
2747 string.
2748
36c08864
DN
27492008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
2750
2751 * m/hp800.h (XUINT, XSET): Remove.
2752
f5acc071
JB
27532008-04-12 Juanma Barranquero <lekktu@gmail.com>
2754
2755 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
2756 previous change.
2757
5b5a2ea1
SM
27582008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
2759
2760 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
2761 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
2762
492d9fd6
SM
27632008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
2764
2765 * keymap.h (map_keymap_canonical): Declare.
2766 * xmenu.c (single_keymap_panes): Use it.
2767
dd60787c
GM
27682008-04-11 Glenn Morris <rgm@gnu.org>
2769
2770 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
2771 set the target's value to that of the alias.
2772
c23b5410
SM
27732008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
2774
2775 * term.c (set_tty_color_mode): Left over typo.
2776
e89b536d
MA
27772008-04-10 Michael Albinus <michael.albinus@gmx.de>
2778
2779 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
f5acc071 2780 only after check for file name handler functions. Signal, when
e89b536d
MA
2781 native functionality is not supported.
2782 (syms_of_fileio): Declare it unconditionally.
2783
40a339c8
JR
27842008-04-10 Jason Rumney <jasonr@gnu.org>
2785
31403b24
JR
2786 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
2787 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
2788
40a339c8
JR
2789 * w32.c (logon_network_drive): Also logon to remote drives that
2790 are mapped to drive letters.
2791
96a7394f
GM
27922008-04-10 Glenn Morris <rgm@gnu.org>
2793
2794 * xdisp.c (truncate-partial-width-windows): Doc fix.
2795
34b67b0f
SM
27962008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
2797
2798 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
2799 Move functions to minibuffer.el.
2800 (syms_of_fileio): Don't declare them.
2801
c025fb0a
SM
28022008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
2803
ba5ff07b
SM
2804 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
2805 (syms_of_minibuf): Remove its initialization.
2806
c025fb0a
SM
2807 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
2808
7a6a86ad
JB
28092008-04-09 Juanma Barranquero <lekktu@gmail.com>
2810
2811 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
2812
cf907d69
JR
28132008-04-09 Jason Rumney <jasonr@gnu.org>
2814
3dc94c30
JR
2815 * makefile.w32-in (distclean): Delete makefile too.
2816 (maintainer-clean): New target.
2817
8d28646b
JR
2818 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
2819
cf907d69
JR
2820 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
2821 for new font backend and composite cases.
2822
ef5eb925
JD
28232008-04-09 Jan Djärv <jan.h.d@swipnet.se>
2824
2825 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
2826 Most of the code moved to run_timers.
2827 (do_pending_atimers): Call run_timers.
2828 (run_timers): New function.
2829
cf907d69
JR
2830 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
2831 run atimers.
ef5eb925
JD
2832
2833 * process.c (wait_reading_process_output): The same as above.
2834
9b2cd403
SM
28352008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
2836
32bae13c
SM
2837 * minibuf.c (last_exact_completion): Remove variable.
2838 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
2839 (complete_and_exit_1, complete_and_exit_2)
2840 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
2841 (Fdisplay_completion_list, display_completion_list_1)
2842 (Fminibuffer_completion_help, Fself_insert_and_exit)
8d28646b
JR
2843 (Fexit_minibuffer, Fminibuffer_message): Move functions to
2844 minibuffer.el.
32bae13c
SM
2845 (syms_of_minibuf): Remove corresponding initializations.
2846
5c4cc82a
SM
2847 * keyboard.c (Qdeactivate_mark): New var.
2848 (command_loop_1): Use it to call `deactivate-mark'.
2849 (syms_of_keyboard): Initialize it.
2850
9b2cd403
SM
2851 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
2852 to another frame.
2853 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
2854 Don't call set_tty_color_mode.
2855 (store_frame_param): Reset previous_frame rather than call
2856 set_tty_color_mode.
2857 * term.c (set_tty_color_mode): Rewrite.
2858 * dispextern.h (set_tty_color_mode): New type.
2859 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
2860
84cb7b45
SM
28612008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
2862
2863 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
2864 for generic chars, which do not exist any more in emacs-unicode.
2865
3ed051d4
MA
28662008-04-08 Michael Albinus <michael.albinus@gmx.de>
2867
2868 * coding.c (detect_coding_emacs_mule)
2869 (Ffind_operation_coding_system): Fix typo.
2870
58c3ea42
JR
28712008-04-08 Jason Rumney <jasonr@gnu.org>
2872
3bf8d230
JR
2873 * w32uniscribe.c (SNAME): Extract only symbol name.
2874
56a70cca
JR
2875 * w32font.h (struct w32_metric_cache): New struct.
2876 (w32font_info): Use it.
2877 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
2878 (CACHE_BLOCKSIZE): New constants.
3ed051d4 2879
58c3ea42
JR
2880 * w32font.c (Qja, Qko, Qzh): New symbols.
2881 (syms_of_w32font): Initialise them.
2882 (font_matches_spec): Use them to filter by language.
2883 (recompute_cached_metrics): Remove function.
2884 (compute_metrics, clear_cached_metrics): New functions.
2885 (w32font_encode_char): Use them to manage metric cache.
2886 (w32font_text_extents): Cache metrics for all glyphs on demand.
2887 Delay converting glyph indices to WORD until needed.
2888 (w32font_open_internal): Initialize metric cache to empty.
2889 (registry_to_w32_charset): Charset should always be a symbol.
2890 (fill_in_logfont, list_all_matching_fonts): Family should
2891 always be a symbol.
2892
0ce24b2d
JR
28932008-04-06 Jason Rumney <jasonr@gnu.org>
2894
2895 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
2896 Give up if glyph indices not supported. Use uniscribe obtained
2897 ABC widths for individual metrics. Map glyph clusters back to
2898 characters using fClusterStart flag. Return number of glyphs
2899 produced, not chars processed.
b7655e0c 2900 (uniscribe_shape): Map char at FROM to current glyph.
0ce24b2d 2901
5bc6ddff 29022008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
56613f06 2903
fbf57abb
JB
2904 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
2905 Use SetMenuItemHierarchicalMenu.
56613f06 2906
5bc6ddff 29072008-04-05 Jason Rumney <jasonr@gnu.org>
93421a1f 2908
5bc6ddff
MB
2909 * image.c (pbm_load): Allow color values up to 65535.
2910 Throw an error if max_color_idx is outside the supported range.
2911 Report an error when image size is invalid.
2912 Read two bytes at a time when raw images have max_color_idx above 255.
1f816871 2913
5bc6ddff 29142008-04-05 Eli Zaretskii <eliz@gnu.org>
5ed6ba5b 2915
5bc6ddff
MB
2916 * w32.c (readdir): If FindFirstFile/FindNextFile return in
2917 cFileName a file name that includes `?' characters, use the 8+3
2918 alias in cAlternateFileName instead.
5ed6ba5b 2919
5bc6ddff 29202008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
32c06229 2921
5bc6ddff
MB
2922 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
2923 append "CCL: Quitted" when the CCL program is quitted.
2924 (setup_ccl_program): Initialize ccl->quit_silently to zero.
32c06229 2925
5bc6ddff 2926 * ccl.h (struct ccl_program): New member quit_silently.
32c06229 2927
c36e15db
CY
29282008-04-05 Chong Yidong <cyd@stupidchicken.com>
2929
9605d567
CY
2930 * search.c (compile_pattern_1): Treat non-nil and non-string of
2931 search-spaces-regexp as nil.
2932
c36e15db
CY
2933 * minibuf.c (Fassoc_string): Tweak docstring.
2934
40beb147
EZ
29352008-04-05 Eli Zaretskii <eliz@gnu.org>
2936
2937 * dired.c (Ffile_attributes): Support inode numbers wider than 32
2938 bits. Remove ugly WINDOWSNT-specific kludge introduced on
2939 2008-03-14 to force inode be positive.
2940
2941 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
2942 _S_* ones, since we now use our own sys/stat.h.
2943 (stat, fstat): Don't mangle the inode number.
aa08d1ff 2944 (init_user_info): Don't restrict UID and GID to 0-60000 range.
40beb147 2945
4591d6cb
SM
29462008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
2947
d4417eb0
SM
2948 * frame.h (struct frame): Give one more bit to `visible' since we use
2949 values larger than 1 to indicate obscured frames on ttys.
2950
00f7c5ed
SM
2951 * keymap.c (Qkeymap_canonicalize): New var.
2952 (Fmap_keymap_internal): New fun.
2953 (describe_map): Use keymap-canonicalize.
2954
4591d6cb
SM
2955 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
2956 (Fundo_boundary): Set them.
2957 (syms_of_undo): Initialize them.
2958 (record_point): Use them instead of last_point_position*.
2959 (last_undo_buffer): Change type.
2960
3187540e
JR
29612008-04-04 Jason Rumney <jasonr@gnu.org>
2962
0ce24b2d
JR
2963 * w32font.c (w32font_text_extents): Use font's ascent and descent.
2964 (recompute_cached_metrics): Don't set ascent and descent per char.
2965
3187540e 2966 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
4591d6cb 2967 (uniscribe_check_otf): Add GC protection before consing.
d0bfec76 2968 Rearrange loop for counting features.
3187540e 2969
f1a6b216
SM
29702008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
2971
2972 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
2973 buffer with byte-size of source buffer.
2974
1d8dcf63
CY
29752008-04-03 Chong Yidong <cyd@stupidchicken.com>
2976
2977 * callint.c (Fcall_interactively): Handle temporary region even
2978 when shift-select-mode is off.
2979
6b8aa22a
JR
29802008-04-03 Jason Rumney <jasonr@gnu.org>
2981
2982 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
2983
2f3cbb32
KH
29842008-04-03 Kenichi Handa <handa@m17n.org>
2985
2986 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
2987 (CATEGORY_MASK_UTF_16): Likewise.
2988 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
2989 binary file.
2990 (detect_coding): Add null-byte detection for a binary file.
2991 (detect_coding_system): Likewise.
2992
43f4f91c
JR
29932008-04-03 Jason Rumney <jasonr@gnu.org>
2994
0c1b4ae2
JR
2995 * w32uniscribe.c: New file.
2996
2997 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
2998
2999 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
3000
3001 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
3002 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
3003 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
3004 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
3005 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
3006 (Qphonetic): New symbols.
3007 (syms_of_w32font): Initialize them.
3008 (font_supported_scripts): Use them.
3009 (w32font_list_family): List all charsets.
3010 (w32font_text_extents, recompute_cached_metrics): Fix metric
3011 calculations.
3012 (w32_enumfont_pattern_entity): Make full_type a DWORD.
3013 Give opentype fonts their own format.
3014 (font_matches_spec): New arguments backend and logfont.
3015 Handle :otf spec for uniscribe backend.
3016 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
3017 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
4591d6cb 3018
0c1b4ae2
JR
3019 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
3020 font backend.
3021 (globals_of_w32fns): Initialize uniscribe font backend.
3022
fbf57abb 3023 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
0c1b4ae2
JR
3024 dependencies.
3025 (w32uniscribe.$(O)): New file to build.
3026 (FONT_OBJ): Include w32uniscribe.$(O).
3027 (LIBS): Add uniscribe libraries.
3028
43f4f91c
JR
3029 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
3030
75043a7d
CY
30312008-04-02 Chong Yidong <cyd@stupidchicken.com>
3032
3033 * callint.c (Vshift_select_mode): New var.
3034 (Finteractive): Document new ^ spec.
3035 (Fcall_interactively): Call handle-shift-selection if the ^ spec
3036 is present.
3037
3038 * keyboard.c (Vthis_command_keys_shift_translated): New var.
3039 (command_loop_1): Avoid running the direct display versions of
3040 forward-char and backward-char if shift-selection may occur.
75043a7d
CY
3041 (read_key_sequence): Set Vthis_command_keys_shift_translated if
3042 shift-translation takes place.
3043
3044 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
3045 avoid clobbering by define-minor-mode.
3046
3047 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
3048 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
3049
3050 * syntax.c (Fforward_word): Add ^ interactive spec.
3051
3052 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
3053 (Fscroll_right): Add ^ interactive spec.
3054
b2b7f29e
SM
30552008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
3056
a432c0a6
SM
3057 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
3058
994b75e0
SM
3059 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
3060
b2b7f29e
SM
3061 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
3062
e99c7806
JL
30632008-03-31 Juri Linkov <juri@jurta.org>
3064
3065 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
3066
1c9c1270
JD
30672008-03-30 Jan Djärv <jan.h.d@swipnet.se>
3068
3069 * gtkutil.c (xg_set_geometry): Fix indentation.
994b75e0 3070 (xg_resize_outer_widget): Remove.
1c9c1270
JD
3071 (x_wm_size_hint_off): Fix indentation.
3072 (xg_frame_set_char_size): Call flush_and_sync after
3073 gtk_window_resize.
3074 (x_wm_set_size_hint): Pass NULL as geometry window to
3075 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
3076 Add menu bar and tool bar height to base height.
3077 (xg_update_frame_menubar, free_frame_menubar)
3078 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
994b75e0
SM
3079 (update_frame_tool_bar, free_frame_tool_bar):
3080 Change xg_resize_outer_widget to xg_frame_set_char_size.
1c9c1270 3081
90b3fc84
MA
30822008-03-30 Michael Albinus <michael.albinus@gmx.de>
3083
3084 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
3085 (Fdbus_call_method): New parameter TIMEOUT.
3086 (dbus-send-signal): Optimize UNGCPRO call.
3087
7ae6d1d1
JL
30882008-03-29 Juri Linkov <juri@jurta.org>
3089
3090 * window.c (Fdisplay_buffer): Move call to
3091 Vsplit_window_preferred_function out of conditions that check
3092 if window is eligible for vertical splitting.
3093 When Vsplit_window_preferred_function is non-nil, call it and use
3094 its non-nil return value as window. Otherwise, continue doing
3095 vertical splitting using Fsplit_window with arg horflag=nil.
3096 (syms_of_window) <Vsplit_window_preferred_function>: Change the
3097 default value from `split-window' to nil.
3098
f03f8f2c
JL
30992008-03-29 Juri Linkov <juri@jurta.org>
3100
3101 * callint.c (Fcall_interactively): Revert 2008-03-16 change
3102 for interactive code letters 'b' and 'B'.
3103
6d557778
EZ
31042008-03-29 Eli Zaretskii <eliz@gnu.org>
3105
3106 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
3107 multibyte string.
3108
58555d81
SM
31092008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
3110
3111 * keyboard.c (pending_funcalls): New var.
3112 (timer_check): Run it.
3113 (syms_of_keyboard): Initialize it.
3114 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
3115 (Vdelete_terminal_functions): New vars.
3116 (syms_of_terminal): Initialize them.
3117 (Fdelete_terminal): Run delete-terminal-functions.
3118 * xdisp.c (safe_eval): Rewrite.
3119 (safe_call2): New fun.
3120 * frame.c (Qdelete_frame_functions): New var.
3121 (syms_of_frame): Initialize it.
3122 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
3123 * lisp.h (safe_call2, pending_funcalls): Declare.
3124
4c92f429
AS
31252008-03-28 Andreas Schwab <schwab@suse.de>
3126
3127 * indent.c (Fmove_to_column): Move declaration before statements.
3128
a1567c45
SM
31292008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
3130
2806a183
SM
3131 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
3132 (struct frame): Use bit fields for boolean vars.
3133
eef60308
SM
3134 * process.c (server_accept_connection): Simplify naming.
3135 (emacs_get_tty_pgrp): Use SDATA.
3136
a1567c45
SM
3137 * coding.c (decode_coding_object): Fix last change.
3138
30076589
JR
31392008-03-27 Jason Rumney <jasonr@gnu.org>
3140
3141 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
3142
880820fe
KH
31432008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
3144
3145 * charset.c (Fdefine_charset_internal): Change the way of
3146 registering charsets in Vcharset_order_list.
3147 (syms_of_charset): Make the charset `eight-bit' supplementary.
3148
3cf8cdfb
CY
31492008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
3150
3151 * regex.c (EXTEND_BUFFER): Change order of pointer addition
3152 operations, to avoid having the difference between pointers
3153 overflow.
3154
ef6f5c0e
SM
31552008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
3156
80e3db56
SM
3157 * indent.c (check_display_width): New fun.
3158 (scan_for_column): Use it.
3159
c397dc7a
SM
3160 * data.c (syms_of_data): Mark most-positive-fixnum and
3161 most-negative-fixnum as constants.
3162
bf6b4d58
SM
3163 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
3164
ef6f5c0e
SM
3165 * indent.c (scan_for_column): Extract from current_column_1.
3166 Merge with the same code from Fmove_to_column.
3167 (current_column_1, Fmove_to_column): Use it.
3168
72d5003d
SM
31692008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
3170
12270607
SM
3171 * keymap.c (map_keymap_internal): New fun.
3172 (map_keymap): Use it.
3173 (Fmap_keymap_internal): New fun.
3174 (Fmap_keymap): Remove left-out test from before make_save_value.
3175
a10cca6c
SM
3176 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
3177
d7b10f4c
SM
3178 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
3179 Use XCAR/XCDR.
3180
5431bd6a
SM
3181 * process.h (struct Lisp_Process): Remove filter_multibyte.
3182 * process.c (QCfilter_multibyte): Remove.
3183 (setup_process_coding_systems): Don't use filter_multibyte.
3184 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
3185 (read_process_output): Don't adjust multibyteness to filter_multibyte.
3186 (Fset_process_filter_multibyte): Change the coding-system to
3187 approximate the previous behavior.
3188 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
3189 coding-system.
3190
72d5003d
SM
3191 * coding.c (decode_coding_object): When not decoding into a buffer,
3192 obey the coding system's preference of (uni|multi)byte.
3193
438eba3c
SM
31942008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
3195
3196 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
3197 every char is changed and has a different byte-length.
3198 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
3199 Fix int -> EMACS_INT.
3200
9ec3aaef 32012008-03-23 David Hansen <david.hansen@gmx.net>
a8e72f4f 3202
438eba3c 3203 * dbusbind.c (xd_read_message): Remove extra copying of message
a8e72f4f
MA
3204 strings. Check for NULL `interface' or `member'.
3205
b07103dc
EZ
32062008-03-22 Eli Zaretskii <eliz@gnu.org>
3207
3208 * w32.c (readdir): If FindFirstFile/FindNextFile return in
3209 cFileName a file name that includes `?' characters, use the 8+3
3210 alias in cAlternateFileName instead.
3211
5371d722
SM
32122008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
3213
3214 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
3215
6ba7f443
SM
32162008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
3217
3218 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
3219 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
3220 work on current_buffer only instead (that was already the case
3221 for some of the code anyway).
3222 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
3223 (temp_set_point, temp_set_point_both): Use EMACS_INT.
3224 (SET_PT, SET_PT_BOTH): Adjust.
3225 * intervals.h (set_point, temp_set_point, set_point_both)
3226 (temp_set_point_both): Remove redundant declarations.
3227
bf1c0f27
SM
32282008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
3229
3230 * fileio.c (Finsert_file_contents):
3231 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
3232 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
3233 when buffer != current_buffer anyway.
3234
acab783e
AS
32352008-03-20 Andreas Schwab <schwab@suse.de>
3236
3237 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
3238 as default.
3239
d148e14d
JR
32402008-03-19 Jason Rumney <jasonr@gnu.org>
3241
3242 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
3243 (syms_of_w32fns): Initialize them.
3244 (HOURGLASS_ID): New constant.
3245 (x_window_to_frame): Don't check hourglass_window.
3246 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
3247 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
3248 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
3249 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
3250 Only change the cursor if hourglass is not active.
3251 (Fx_create_frame): Initialize frame's current_cursor.
3252 (hourglass_atimer): Remove.
3253 (hourglass_started): New function.
3254 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
3255 (show_hourglass): Adapt to w32, changing argument to frame.
3256
3257 * w32term.h (struct w32_output): Remove hourglass_window.
3258 Add current_cursor.
3259
3260 * eval.c (call_debugger, Fsignal):
3261 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
3262 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
3263 (Fexecute_extended_command, cancel_hourglass_unwind):
3264 * minibuf.c (read_minibuf):
3265 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
63558020 3266
a5c54077
JB
32672008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
3268
3269 * window.c (run_funs): New fun.
3270 (run_window_configuration_change_hook): Use it to run the buffer-local
3271 and the global part of the hook.
3272
3273 * xdisp.c (format_mode_line_unwind_data): Add window argument.
3274 (unwind_format_mode_line): Restore selected window.
3275 (x_consider_frame_title, Fformat_mode_line): Set selected window.
3276
f9f3238f
SM
32772008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
3278
253c3c82
SM
3279 * editfns.c (Fchar_equal): Check they are valid characters.
3280
f9f3238f
SM
3281 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
3282
065a118d
AS
32832008-03-17 Andreas Schwab <schwab@suse.de>
3284
0b8be006
AS
3285 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
3286 against a charset.
3287
065a118d
AS
3288 * lisp.h (Fbuffer_list): Declare.
3289
880820fe 32902008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d3b2a6da
JD
3291
3292 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
3293 handlebox_widget is != 0.
3294
6206d6c2
JL
32952008-03-16 Juri Linkov <juri@jurta.org>
3296
3297 * callint.c (Fcall_interactively): For interactive code letters
3298 'b' and 'B' put the buffer list into the list of default "future"
3299 values of the minibuffer.
3300
f5020181
AS
33012008-03-16 Andreas Schwab <schwab@suse.de>
3302
a864f6d6
AS
3303 * keyboard.c (read_key_sequence): Fix downcasing of letters with
3304 modifiers.
3305
f5020181
AS
3306 * regex.c (re_match_2_internal): Correct matching of a charset
3307 against latin-1 characters.
3308
03f244e2
KH
33092008-03-16 Kenichi Handa <handa@m17n.org>
3310
3311 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
3312 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
f9f3238f
SM
3313 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
3314 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
03f244e2
KH
3315 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
3316 CHAR_STRING_ADVANCE.
3317 (produce_chars): Fix for the case that the source and the
3318 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
3319 instead of CHAR_STRING_ADVANCE.
3320 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
3321 STRING_CHAR_ADVANCE.
3322
0e2501ed
AS
33232008-03-15 Andreas Schwab <schwab@suse.de>
3324
3325 * regex.c (re_match_2_internal): Correct matching of eight bit
3326 characters in unibyte strings.
3327
7723e095
MR
33282008-03-15 Martin Rudalics <rudalics@gmx.at>
3329
3330 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
3331 at end of range when it coincides with the end of the buffer.
3332
f507f365
EZ
33332008-03-14 Eli Zaretskii <eliz@gnu.org>
3334
294f1153
EZ
3335 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
3336
f507f365
EZ
3337 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
3338
64f0809d
JR
33392008-03-14 Jason Rumney <jasonr@gnu.org>
3340
956ae531
JR
3341 * editfns.c (initial_tz): New variable.
3342 (syms_of_editfns): Initialize it.
3343 (Fset_time_zone_rule): Set it when first called.
3344 Use it when TZSTRING is nil.
3345
64f0809d
JR
3346 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
3347 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
3348 (monitor_from_point_fn, get_monitor_info_fn): New globals.
3349 (globals_of_w32fns): Initialize them.
3350 (compute_tip_xy): Use them to position tooltips.
3351
21a4ff8e
GM
33522008-03-14 Glenn Morris <rgm@gnu.org>
3353
3354 * emacs.c (main): Revert previous change.
3355 (standard_args): Revert -internal-script back to -scriptload,
3356 and remove the long-option form.
3357
a09a5b5b
GM
33582008-03-13 Glenn Morris <rgm@gnu.org>
3359
3360 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
3361 Remove option -enable-font-backend.
3362
1c55ebd1
SM
33632008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
3364
3365 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
3366
880820fe 33672008-03-11 Jan Djärv <jan.h.d@swipnet.se>
c523e161
JD
3368
3369 * xterm.c (x_connection_closed): For GTK: If this is the last
3370 terminal just exit without closing the display.
3371
7145be81
JR
33722008-03-11 Jason Rumney <jasonr@gnu.org>
3373
3374 * w32font.c (w32font_full_name): Use floor to round.
3375
e6201af3 33762008-03-10 dhruva <dhruvakm@gmail.com> (tiny change)
ce9033f8
JD
3377
3378 * sound.c (alsa_configure): Declare vol at beginning of block.
3379
e6201af3 3380 * fontset.c (Ffontset_info): Remove extra semicolon.
ce9033f8 3381
390b81fa 33822008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
acd37560 3383
56388398
MB
3384 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
3385 size of resulting string.
af0ad939 3386
390b81fa 33872008-03-10 Jason Rumney <jasonr@gnu.org>
acd37560 3388
56388398 3389 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
acd37560 3390
390b81fa 33912008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
acd37560 3392
56388398
MB
3393 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
3394 Don't pretend as if characters with display property haven't been
3395 consumed for string-replacing-string case.
acd37560 3396
223ed6db
KS
33972008-03-08 Kim F. Storm <storm@cua.dk>
3398
3399 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
3400 (get_next_display_element, next_element_from_string)
3401 (next_element_from_ellipsis, next_element_from_buffer): Use it.
3402
28545f7c
AS
34032008-03-08 Andreas Schwab <schwab@suse.de>
3404
3405 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
3406
c960bff8
JR
34072008-03-06 Jason Rumney <jasonr@gnu.org>
3408
290afd83
JB
3409 * w32font.c (w32_registry): Take font_type argument. Use ANSI
3410 when charset not specified. Only translate ANSI to unicode when
c960bff8
JR
3411 font_type is truetype.
3412 (w32font_coverage_ok): New function.
3413 (add_font_entity_to_list): Use it to filter unsuitable fonts.
3414
87b8ce92
KH
34152008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
3416
3417 * lread.c (Fread_char): Resolve modifiers.
3418 (Fread_char_exclusive): Likewise.
3419
3420 * character.c (char_resolve_modifier_mask): New function.
3421 (char_string): Use char_resolve_modifier_mask.
3422 (Fchar_resolve_modifiers): New function.
3423 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
3424 function.
3425
cefd56f6
JR
34262008-03-04 Jason Rumney <jasonr@gnu.org>
3427
3428 * makefile.w32-in: Always include w32font.c in the build.
3429 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
3430
03bd3c1f
AS
34312008-03-04 Andreas Schwab <schwab@suse.de>
3432
3433 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
3434 (versionclean): Likewise.
3435
6f69e89b
JB
34362008-03-04 Juanma Barranquero <lekktu@gmail.com>
3437
3438 * .cvsignore: Add oo.
3439
f4a3cc44
AS
34402008-03-03 Andreas Schwab <schwab@suse.de>
3441
3442 * coding.c (decode_coding_object): Inhibit gap shrinking while
3443 decoding in place.
3444
73f838ad
DN
34452008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
3446
3447 * w32term.c: Remove unused include "gnu.h".
6f69e89b 3448 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
73f838ad
DN
3449
3450 * gnu.h: Rename to ...
3451 * emacs-icon.h: ... this.
3452 * xterm.c: Use emacs-icon.h instead of gnu.h.
3453 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
3454
ce9c1f06
JB
34552008-03-03 Juanma Barranquero <lekktu@gmail.com>
3456
3457 * w32font.c: Include math.h.
3458
34fd2d28
JR
34592008-03-03 Jason Rumney <jasonr@gnu.org>
3460
54efdcd1
JR
3461 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
3462 Compute options separately.
3463 (w32font_open_internal): Set glyph_idx before caching metrics.
3464
ce9c1f06
JB
3465 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
3466 Define if system headers don't.
3467 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
34fd2d28
JR
3468 (w32font_encode_char): Don't declare here.
3469
3470 * w32font.c (Quniscribe, QCformat): New symbols.
3471 (syms_of_w32font): Define them.
3472 (w32font_has_char): Indicate uncertainty.
ce9c1f06 3473 (w32font_encode_char): Encode as glyph point. Make static.
34fd2d28 3474 (recompute_cached_metrics): New function.
ce9c1f06
JB
3475 (w32font_open_internal): Use it. Set font to use glyph points
3476 initially. Set format based on type of font.
34fd2d28 3477 (w32font_text_extents, w32font_draw): Optionally use glyph points.
ce9c1f06
JB
3478 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
3479 on it. Set format based on information available here.
34fd2d28
JR
3480 (add_font_entity_to_list): Identify backend based on opentype_only.
3481
14daee73
AS
34822008-03-02 Andreas Schwab <schwab@suse.de>
3483
f907fb2e
AS
3484 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
3485
ce9c1f06
JB
3486 * coding.c (decode_coding_big5, produce_chars):
3487 Fix typos in last change.
14daee73 3488
c9cc6462
DN
34892008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
3490
3491 * gnu.h: New icon.
3492
119852e7
KH
34932008-03-02 Kenichi Handa <handa@m17n.org>
3494
3495 * coding.c (decode_coding_utf_8): When eol-type of CODING is
3496 `dos', don't decode '\r' if that is the last in the source.
3497 (decode_coding_utf_16, decode_coding_emacs_mule)
3498 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
3499 (decode_coding_raw_text, decode_coding_charset): Likewise.
3500 (produce_chars): Don't decode EOL here. Use EMACS_INT.
3501
a823468b
JR
35022008-03-01 Jason Rumney <jasonr@gnu.org>
3503
3504 * w32font.c (w32font_full_name): Report point size for scalable fonts.
3505
4ddc7e30
KS
35062008-03-01 Kim F. Storm <storm@cua.dk>
3507
3508 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
3509
67997c79
JR
35102008-03-01 Jason Rumney <jasonr@gnu.org>
3511
3512 * w32font.c (w32font_full_name): New function.
3513 (w32font_open_internal): Use it.
3514
3f4e9c35
KS
35152008-03-01 Kim F. Storm <storm@cua.dk>
3516
3517 * dispnew.c (line_draw_cost): Fix invalid glyph check.
3518
f3b9e479
JR
35192008-03-01 Jason Rumney <jasonr@gnu.org>
3520
3521 * font.c (font_unparse_fcname): Increase len when style is a symbol.
3522
880820fe 35232008-03-01 Jan Djärv <jan.h.d@swipnet.se>
7ee480ce
JD
3524
3525 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
3526 xg_frame_resized when the event is for the edit widget.
3527
3528 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
3529
3530 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
3531 set_char_size.
3532 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
3533 operations on widgets here. Just set frame size if needed.
3534 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
3535 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
3536 (x_wm_set_size_hint): Set size hints on the edit widget only, not
3537 the whole frame.
3538 (xg_create_tool_bar): Move attachement of the tool bar to
3539 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
3540 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
3541
6c8acaa1
JR
35422008-03-01 Jason Rumney <jasonr@gnu.org>
3543
3544 * w32fns.c (w32_msg_pump): Disable debug code.
3545
51fb064b 35462008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
03eb5fab 3547
51fb064b 3548 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
cb681b34 3549
60221a33
CY
35502008-02-29 Chong Yidong <cyd@stupidchicken.com>
3551
3552 * xdisp.c (next_overlay_string): Don't set
3553 overlay_strings_at_end_processed_p if we're currently reading from
3554 a display string.
3555
10cbc34f
SM
35562008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
3557
3558 * xdisp.c (get_overlay_strings_1): Fix typo.
3559
73c0054e
CY
35602008-02-29 Chong Yidong <cyd@stupidchicken.com>
3561
3562 * xdisp.c (get_overlay_strings_1): Add missing argument type.
3563
ec1c4354
KH
35642008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
3565
55082642
KH
3566 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
3567
ec1c4354
KH
3568 * xdisp.c (display_mode_element): Cancel the previous change.
3569 (decode_mode_spec): Likewise.
ee548a94
KH
3570 (handle_auto_composed_prop): Don't make composition if it->string
3571 is a string.
ec1c4354 3572
b6d898a2
KS
35732008-02-27 Kim F. Storm <storm@cua.dk>
3574
3575 * lisp.h (GLYPH): Change type from int to struct with separate char
3576 and face_id members.
3577 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
3578 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
3579 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
3580 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
3581 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
3582 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
3583 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
3584 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
3585 handle new Lisp glyph code encoding, either an integer or a cons.
3586
3587 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
3588 (GLYPH_ALIAS): Delete.
3589 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
3590 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
3591 (GLYPH_FROM_CHAR): Replace macro by ...
3592 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
3593
3594 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
3595 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
3596 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
3597 (GLYPH_INVALID_P): New macro.
3598 (spec_glyph_lookup_face): Update prototype.
3599
3600 * dispnew.c (line_draw_cost): Adapt to new glyph type.
3601 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
3602 new glyph code encoding.
3603 (spec_glyph_lookup_face): No return value; update passed glyph instead.
3604 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
3605
3606 * xdisp.c (get_next_display_element, next_element_from_display_vector):
3607 Adapt to new glyph type and new glyph code encoding.
3608
3609 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
3610
3611 * indent.c (current_column, current_column_1, Fmove_to_column)
3612 (compute_motion): Adapt to new glyph code encoding.
3613
3614 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
3615
af2080a2
CY
36162008-02-27 Chong Yidong <cyd@stupidchicken.com>
3617
3618 * process.c (wait_reading_process_output): Check for window
3619 changes caused by timers.
880820fe 3620 Suggested by Johan Bockgård.
af2080a2 3621
253ed25e
GM
36222008-02-27 Glenn Morris <rgm@gnu.org>
3623
3624 * emacs.c (USAGE1): Add `--disable-font-backend'.
3625
18a9f8d9
SM
36262008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
3627
3628 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
3629 is made to the buffer.
3630
0f8b27ea
SM
36312008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
3632
3633 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
3634 (face_at_string_position):
3635 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
3636 (face_at_string_position):
3637 * xdisp.c (display_string, next_overlay_change):
3638 * buffer.h (overlays_at):
3639 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
3640 Update callers.
3641
4e7c53ca
CY
36422008-02-26 Chong Yidong <cyd@stupidchicken.com>
3643
3644 * editfns.c (Fformat): Doc fix.
3645
51c01100
JB
36462008-02-26 Juanma Barranquero <lekktu@gmail.com>
3647
3648 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
3649 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
3650 (Ffont_otf_alternates, Fquery_font): Doc fixes.
3651
13cda5f9
SM
36522008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
3653
3654 * buffer.c (Fbuffer_swap_text): New function.
3655 (syms_of_buffer): Defsubr it.
3656
8018d430
CY
36572008-02-25 Chong Yidong <cyd@stupidchicken.com>
3658
3659 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
3660
9bde1a21
JR
36612008-02-25 Jason Rumney <jasonr@gnu.org>
3662
3663 * w32font.c (w32font_draw): Draw one character at a time when padding.
3664
eeca6f6f
SM
36652008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
3666
3667 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
3668 Handle a nil arg. Use run_window_configuration_change_hook.
3669 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
3670 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
3671 Use run_window_configuration_change_hook.
3672
ec1c4354
KH
36732008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
3674
3675 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
3676 1-pixel width.
3677
ae185452
KH
36782008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
3679
3680 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
3681 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
3682 if the glyph in the font is zero pixel with.
3683
3684 * dispextern.h (struct glyph_string): New member padding_p.
3685
3686 * w32font.c (w32font_draw): Pay attention to s->padding_p.
3687
3688 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
3689
3690 * xfont.c (xfont_draw): Pay attention to s->padding_p.
3691
3692 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
3693
eeca6f6f 3694 * font.c: If the font driver doesn't have `shape' function, return Qnil.
ae185452 3695
ffe832ea 36962008-02-25 Jason Rumney <jasonr@gnu.org>
c9029fe5 3697
ffe832ea 3698 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
16782258 3699
06045130
SM
37002008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
3701
3702 Allow fine-grained image-cache flushing.
3703 * dispextern.h (struct image): Add `dependencies' field.
3704 (clear_image_caches): Change arg to Lisp_Object.
3705 * image.c (make_image): Initialize `dependencies' field.
3706 (clear_image_cache): Change arg to allow fine-grained flushing.
3707 Perform the flush even if image-cache-eviction-delay is nil.
3708 (clear_image_caches): Change arg to Lisp_Object.
3709 (Fclear_image_cache): Expand meaning of the argument.
3710 (mark_image): Mark `dependencies' field.
3711 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
3712 (lface_hash): Use XHASH rather than XFASTINT.
3713 (face_at_buffer_position): Fix int -> EMACS_INT position.
3714 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
3715 (select_frame_for_redisplay): Remove code duplication.
3716 (redisplay_internal): Adapt arg to call to clear_image_caches.
3717
9d2818d6
DN
37182008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
3719
3720 * s/vms4-0.h:
3721 * s/vms4-2.h:
3722 * s/vms4-4.h:
3723 * s/vms5-5.h: Remove, unused.
3724
3725 * s/irix5-2.h:
3726 * s/irix6-0.h:
3727 * s/riscos5.h:
3728 * s/mach-bsd4-3.h:
2a2e8de7 3729 * m/mips4.h: Remove files for obsolete systems.
9d2818d6
DN
3730
3731 * Makefile.in:
3732 * filelock.c:
3733 * unexmips.c:
3734 * m/hp9000s300.h:
3735 * m/iris4d.h:
3736 * s/aix3-1.h:
3737 * s/hpux.h:
3738 * s/msdos.h:
3739 * s/usg5-0.h:
3740 * s/usg5-2-2.h:
3741 * s/usg5-2.h:
3742 * s/usg5-3.h: Remove references to obsolete variables.
3743
3744 * s/irix5-0.h: Remove, move all the contents ...
3745 * s/irix6-5.h: ... here. Simplify.
3746 * config.in: Regenerate.
3747
2a36efcf
JR
37482008-02-24 Jason Rumney <jasonr@gnu.org>
3749
c5ad7a3d 3750 * w32term.c (x_draw_glyph_string_background): Clear the background
2face669
JR
3751 manually when cleartype is in use.
3752 (x_draw_glyph_string_foreground): Draw text transparently when
3753 cleartype is in use.
3754
2a36efcf
JR
3755 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
3756 a font into it unless we have to.
3757
b03f96dc 37582008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
92a8ce63 3759
b03f96dc
MB
3760 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
3761 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
92a8ce63 3762
b03f96dc 37632008-02-18 Jason Rumney <jasonr@gnu.org>
92a8ce63 3764
b03f96dc 3765 * w32fns.c (Fw32_shell_execute): Encode parameters.
92a8ce63 3766
b03f96dc 37672008-02-09 Eli Zaretskii <eliz@gnu.org>
20f1ef2e 3768
b03f96dc 3769 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
32d0a9dc 3770
b03f96dc 37712008-02-05 Juanma Barranquero <lekktu@gmail.com>
20f1ef2e 3772
b03f96dc 3773 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
77d1daf2 3774
d5958163
CY
37752008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
3776
3777 * xterm.c (x_set_offset): Don't change the gravity if
3778 CHANGE_GRAVITY is -1.
3779
9997701e
CY
37802008-02-23 Chong Yidong <cyd@stupidchicken.com>
3781
3782 * fileio.c (auto_save_error_occurred): New var.
3783 (auto_save_error): Set it.
3784 (Fdo_auto_save): Don't overwrite the error message if an auto-save
3785 error occurred.
3786
9d95a291
EZ
37872008-02-23 Eli Zaretskii <eliz@gnu.org>
3788
3789 * w32.c (globals_of_w32): Add initializations for
3790 g_b_init_get_sid_sub_authority and
3791 g_b_init_get_sid_sub_authority_count.
3792
43d1af23
SM
37932008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
3794
43a1d19b
SM
3795 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
3796 (font_parse_xlfd): Use them for sanity check.
608c3307 3797 (Finternal_set_font_style_table): Make sure the table is bijective.
43a1d19b 3798
354884c4
SM
3799 Consolidate the image_cache to the terminal struct.
3800 * termhooks.h (P_): Remove redundant def.
3801 (struct terminal): New field `image_cache'.
3802 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
3803 of FRAME_X_IMAGE_CACHE.
3804 * xterm.h (struct x_display_info): Remove image_cache field.
3805 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
3806 * w32term.h (struct w32_display_info): Remove image_cache field.
3807 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
3808 * macterm.h (struct mac_display_info): Remove image_cache field.
3809 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
3810 * xterm.c (x_term_init):
3811 * w32term.c (w32_term_init):
3812 * macterm.c (mac_term_init): Set the image_cache in the terminal.
3813 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
3814 Remove declarations.
3815 (clear_image_caches, mark_image_cache): New declarations.
3816 * xfaces.c (clear_face_cache):
3817 * xdisp.c (redisplay_internal): Use clear_image_caches.
3818 * image.c (clear_image_cache): Don't check that a frame is on
3819 a window-system before checking if it shares the same cache.
3820 (clear_image_caches): New function.
3821 (Fclear_image_cache): Use it.
3822 (mark_image): Move from allo.c.
3823 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
3824 * alloc.c (mark_image, mark_image_cache): Move to image.c.
3825 (mark_object): Don't call mark_image_cache for frames.
3826 (mark_terminals): Call mark_image_cache.
3827
c2e42690
SM
3828 * lisp.h (Fdelete_terminal): Declare.
3829
43d1af23
SM
3830 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
3831 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
3832 wrong_type_argument.
3833
cc8d1311
KH
38342008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
3835
3836 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
4a4bdfc7 3837 malayalam.el, and tamil.el. Add sinhala.el.
cc8d1311 3838
6bd92640
SM
38392008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
3840
3841 * xterm.c (x_connection_closed): Consolidate identical tests.
3842 (x_delete_terminal): Don't crash if called via x_connection_closed.
3843
a73b5627
KH
38442008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
3845
3846 * xdisp.c (decode_mode_spec): New arg string.
6bd92640 3847 (display_mode_element): Adjust for the above change.
a73b5627 3848
1b511542
SM
38492008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
3850
3851 * callint.c (Fcall_interactively): Use AREF.
3852
81aefea4
SM
38532008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
3854
3855 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
3856
880820fe 38572008-02-18 Jan Djärv <jan.h.d@swipnet.se>
2d7117fe
JD
3858
3859 * xfns.c (Fx_show_tip): Set string to " " if empty.
3860
a2b84f35
DN
38612008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
3862
3863 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
3864 with Qt.
3865
43c0454d
KH
38662008-02-17 Kenichi Handa <handa@m17n.org>
3867
3868 * ftfont.c (ftfont_shape): Return Lispy number.
3869
3870 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
3871 for GCs.
3872 (Finternal_set_font_selection_order): Call font_update_sort_order
3873 only when enable_font_backend is set.
3874 (realize_x_face): Set face->font_info to that of default face only
3875 when enable_font_backend is set.
3876
3877 * xdisp.c (handle_composition_prop): Set it->c to the fist
3878 characte of the composed region.
3879 (fill_composite_glyph_string): Set base_face->font_info to
3880 s->font_info. Get a face for ascii from base_face->ascii_face.
3881 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
3882 with a face already decided.
3883 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
3884 non-negative.
978bef9a
JB
3885 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
3886 call font_prepare_composition unconditionally.
43c0454d 3887
978bef9a 3888 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
43c0454d
KH
3889
3890 * xterm.h (struct x_display_info): New member font.
3891
3892 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
3893 (x_set_mouse_face_gc, x_new_font): Likewise.
3894 (x_term_init): Setup display_info->font.
3895 (x_delete_terminal): Free display_info->font.
3896
3897 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
3898
3899 * ftxfont.c (ftxfont_default_fid): Delete it.
3900 (ftxfont_open): Set xfont->fid to 0.
978bef9a 3901 (ftxfont_end_for_frame): Clear data specific to the frame and the
43c0454d
KH
3902 font-driver.
3903
3904 * xftfont.c (xftfont_default_fid): Delete it.
3905 (xftfont_open): Set xfont->fid to 0.
3906
3907 * fontset.c (FONTSET_OBJLIST): New macro.
3908 (fontset_find_font): Update font-object list of the fontset.
3909 (free_realized_fontset): New function.
3910 (free_face_fontset): Call free_realized_fontset.
3911 (Ffont_info): Call font_close_object only when enable_font_backend
3912 is set.
3913
3914 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
3915 [HAVE_NTGUI]: Include w32term.h.
3916 [MAC_OS]: Include macterm.ch.
3917 (font_otf_ValueRecord): Use make_number.
3918 (font_finish_cache): Fix handling of reference count.
3919 (font_clear_cache): Update num_fonts.
3920 (font_open_entity): Update smallest_char_width and
3921 smallest_font_height of the frame.
3922 (font_close_object): Update num_fonts.
3923 (Fclear_font_cache): Fix finding the target cache data.
3924
be617367
GM
39252008-02-16 Glenn Morris <rgm@gnu.org>
3926
3927 * fontset.c (Finternal_char_font): Fix compilation warning.
3928
2930d117
EZ
39292008-02-16 Eli Zaretskii <eliz@gnu.org>
3930
634d3003
EZ
3931 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
3932 instead of char arrays. Enlarge the size of array passed to
3933 get_token_information.
3934
2930d117
EZ
3935 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
3936 warnings.
3937
79214046
DN
39382008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
3939
3940 * .gdbinit: Don't set `args', it breaks gdb --args.
3941
7f5d2c72
SM
39422008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
3943
3944 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
3945 within a narrowed buffer.
3946
6edacc43
KH
39472008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
3948
b270d6af
JB
3949 * coding.c (decode_coding_object, encode_coding_object):
3950 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
6edacc43 3951
174105f7
SM
39522008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
3953
b270d6af
JB
3954 * coding.c (coding_set_destination): Use BEG_BYTE rather than
3955 hardcoding 1.
13818c30
SM
3956 (detect_coding_system):
3957 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
3958 (string_char_to_byte, string_byte_to_char, insert_from_gap):
3959 * insdel.c (insert_from_gap):
3960 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
3961 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
3962 (string_to_multibyte):
3963 * character.c (chars_in_text, multibyte_chars_in_text):
3964 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
3965
f1c99628
SM
3966 * character.h (FETCH_STRING_CHAR_ADVANCE)
3967 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
3968 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
3969 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
3970
7927d8e3
SM
3971 * casefiddle.c (casify_region): Only call after-change and composition
3972 functions on the part of the region that was changed.
3973
adf6a429 3974 * keyboard.c (read_avail_input):
174105f7
SM
3975 * frame.c (Fdelete_frame): Call Fdelete_terminal.
3976
3ee24aec
SM
39772008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
3978
3979 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
3980 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
3981
4ed4b975
JB
39822008-02-11 Juanma Barranquero <lekktu@gmail.com>
3983
3984 * w32menu.c (push_submenu_start, push_submenu_end)
3985 (push_left_right_boundary, push_menu_pane, push_menu_item):
3986 * keyboard.c (read_key_sequence): Don't pass args with side effects
3987 to AREF, it fails when compiling with -DENABLE_CHECKING.
3988
79e3bfb8
KH
39892008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
3990
4ed4b975
JB
3991 * Makefile.in (${lispsource}international/charprop.el):
3992 Delete this target.
6e76043f 3993
79e3bfb8
KH
3994 * search.c (boyer_moore): Fix incorrect synching of the trunk and
3995 emacs-unicode-2.
3996
5b8de9c5
SM
39972008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
3998
3999 * terminal.c (Fdelete_terminal): Clean up the `force' path.
4000
eac1939a
SM
40012008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
4002
c53956fe
SM
4003 * frame.c (Qnoelisp): New symbol.
4004 (syms_of_frame): Initialize it.
4005 (Fdelete_frame): Use it to distinguish a mere `force' passed from
4006 someharmles Elisp code, from a strong `force' from x_connection_closed.
4007 * frame.h (Qnoelisp): Declare.
4008 * xterm.c (x_connection_closed): Pass `noelisp'.
4009
eac1939a
SM
4010 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
4011 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
4012 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
4013 rather than `int' for the type of `type'.
4014
13f6772b
DN
40152008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
4016
4017 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
4018
4019 * Makefile.in (GNUC): Remove support for gcc-1.x.
4020
e8455367
RS
40212008-02-10 Richard Stallman <rms@gnu.org>
4022
4023 * lisp.h (ASET): Use AREF, not ASLOT.
4024
4b75ffab
SM
40252008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
4026
4027 * lisp.h (ASET): Check bounds.
4028
d224e8c2
GM
40292008-02-10 Glenn Morris <rgm@gnu.org>
4030
4031 * buffer.c (mode-name): Doc fix.
4032
4624371d
DN
40332008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
4034
290afd83
JB
4035 * Makefile.in:
4036 * emacs.c:
4037 * gmalloc.c:
4038 * keyboard.c:
4039 * lisp.h:
4040 * m/ibm370aix.h:
4041 * process.c:
4042 * regex.c:
4043 * s/hpux.h:
4044 * sysdep.c:
4045 * sysselect.h:
4046 * systty.h:
4047 * unexec.c:
4048 * w32term.c:
4049 * xsmfns.c:
4050 * xterm.c: Remove code that deals with obsolete variables.
4624371d
DN
4051
4052 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
4053
4054 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
4055 nothing else needs it anymore.
4056
274ec34b
EZ
40572008-02-09 Eli Zaretskii <eliz@gnu.org>
4058
4059 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
4060 instead of unibyte_char_to_multibyte.
4061
deeaffe1
DN
40622008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
4063
4064 * s/gnu-linux.h: Remove commented out code.
4065
4ed4b975 4066 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
deeaffe1
DN
4067
4068 * Makefile.in: Update what RMS says about using autoconf.
4ed4b975 4069 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
c3f9fba8 4070 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
deeaffe1
DN
4071 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
4072 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
4073
68b587a6
SM
40742008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
4075
9141ca5e
SM
4076 * keymap.c (Fkey_description): Move side effect outside of macro call.
4077
dfae5f9a 4078 * xfaces.c (Finternal_make_lisp_face):
b1ebcadb
SM
4079 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
4080
ff7a2223
SM
4081 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
4082 (syms_of_fontset): Use ASET.
4083
68b587a6
SM
4084 * fns.c (concat): Move side effect outside of macro call.
4085 (hash_clear): Use ASET.
4086
a31787b1
RS
40872008-02-08 Richard Stallman <rms@gnu.org>
4088
4089 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
4090 If FORCE, and frame has a surrogate minibuffer for another frame,
4091 delete the other frame first.
4092
987be29b 40932008-02-07 Timo Savola <timo.savola@iki.fi>
1540a61a
JD
4094
4095 * xterm.c (x_detect_focus_change): Handle embed client message.
4096 (handle_one_xevent): Ditto.
4097 (handle_one_xevent): If embedded and we get a button press/release,
4098 request focus.
4099 (xembed_set_info, xembed_send_message): New functions.
4100 (x_make_frame_visible): Call xembed_set_info if embedded.
4101 (x_make_frame_invisible): Call xembed_set_info if embedded.
4102 (x_term_init): Initialize Xatom_XEMBED.
4103 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
4104 (x_iconify_frame): Ditto.
4105
4106 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
4107 (enum xembed_info, enum xerm srmbed_message, enum xembed_focus)
4108 (enum xembed_modifier, enum xembed_accelerator): New.
4109 (xembed_set_info, xembed_send_message): Declare.
4110 (FRAME_X_EMBEDDED_P): New.
4111
4112 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
4113 gtk_plug_new.
4114
4115 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
4116 window ID of a frame.
4117 (x_window): Reparent frame if embedded.
4118 (Fx_create_frame): Don't set border width if embedded.
4119
1f204af3 4120 * emacs.c (USAGE3): Add --parent-id.
1540a61a
JD
4121 (standard_args): Ditto.
4122
880820fe 41232008-02-07 Jan Djärv <jan.h.d@swipnet.se>
f937a7db
JD
4124
4125 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
4126
92413ef3
JD
41272008-02-07 Jim Meyering <meyering@redhat.com>
4128
6f69e89b 4129 Use "do...while (0)", not "if (1)...else" in macro definitions.
987be29b
RF
4130 The latter provokes a warning from gcc about the empty else, when
4131 followed by ";". Also, without that trailing semicolon, it would
4132 silently swallow up any following statement.
c3f9fba8 4133 * syntax.h (SETUP_SYNTAX_TABLE)
987be29b
RF
4134 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
4135 * buffer.h (DECODE_POSITION): Likewise.
4136 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
4137 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
4138 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
4139 (FETCH_CHAR_ADVANCE): Likewise.
4140 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
92413ef3 4141
03fa5713
GM
41422008-02-07 Jim Meyering <meyering@redhat.com>
4143
4144 * lread.c [lint]: Don't include <sys/inode.h>.
4145
3ae565b3
SM
41462008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
4147
4148 * xselect.c (x_handle_dnd_message):
4149 * xmenu.c (digest_single_submenu, xmenu_show):
4150 * xdisp.c (with_echo_area_buffer_unwind_data)
4151 (format_mode_line_unwind_data, unwind_format_mode_line)
4152 (display_menu_bar):
4153 * eval.c (Ffetch_bytecode):
4154 * doc.c (store_function_docstring):
4155 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
4156 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
4157 * buffer.c (add_overlay_mod_hooklist): Use ASET.
4158
146b6e55
KH
41592008-02-07 Kenichi Handa <handa@m17n.org>
4160
4161 * ftxfont.c (ftxfont_open): Don't set
4162 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
4163
4164 * ftfont.c (ftfont_open): Fix previous change.
4165
46a923ac
JR
41662008-02-06 Jason Rumney <jasonr@gnu.org>
4167
4168 * w32font.c (w32font_text_extents): Fill in lbearing metric.
4169 Use cached metrics for ASCII characters.
3ae565b3
SM
4170 (w32font_open_internal): Don't set font's owning_frame.
4171 Cache metrics for ASCII characters.
46a923ac
JR
4172
4173 * w32font.h (struct w32font_info): Add ascii_metrics.
4174 Remove owning_frame.
4175
da7d7c21
KH
41762008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
4177
4178 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
4179 to negative value.
4180
4181 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
4182
3ae565b3 4183 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
da7d7c21
KH
4184
4185 * charset.c (syms_of_charset): Set QCtest and Qeq.
4186
c62c8ddb
SM
41872008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
4188
ca319910
SM
4189 * process.c (Fstart_process):
4190 * callproc.c (Fcall_process): Handle the case where
4191 Funhandled_file_name_directory returns nil.
4192
76860cbb
SM
4193 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
4194 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
f9ffa1ea
SM
4195 * font.c (check_gstring): Use them and AREF to access the vector before
4196 we know it's really a gstring.
4197 (Ffont_shape_text): Fix typo.
4198 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Oject mixups.
76860cbb 4199
15139d67
SM
4200 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
4201 Declare.
4202
c62c8ddb
SM
4203 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
4204
04b65d2b
JR
42052008-02-05 Jason Rumney <jasonr@gnu.org>
4206
4207 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
4208 Set smallest_font_height and smallest_char_width in display info.
4209
fccaebfd
KH
42102008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
4211
4212 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
4213
e7d7fd8c
MB
42142008-02-05 Miles Bader <miles@gnu.org>
4215
4216 * xfaces.c (get_lface_attributes, merge_named_face)
4217 (lookup_named_face, lookup_derived_face, realize_named_face):
4218 Revert 2008-02-01 change by cyd@stupidchicken.com.
4219
3d4448a8
KH
42202008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
4221
4222 * fontset.c (Ffontset_info): Handle the case of inhibitting the
4223 fallback fonts.
15139d67 4224 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
3d4448a8 4225
5ace1ec1
JR
42262008-02-04 Jason Rumney <jasonr@gnu.org>
4227
4228 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
4229 set full_name.
e3a77b22 4230 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
5ace1ec1 4231
ffe42183
JR
42322008-02-03 Jason Rumney <jasonr@gnu.org>
4233
4234 * makefile.w32-in (OBJ1): Include font.o here.
4235 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
4236
526dc3b3
JR
42372008-02-02 Jason Rumney <jasonr@gnu.org>
4238
a0fece35 4239 * makefile.w32-in (temacs): Bump EMHEAP to 21.
526dc3b3 4240
af805c82
JR
42412008-02-01 Jason Rumney <jasonr@gnu.org>
4242
4243 * s/cygwin.h: Define VIRT_ADDR_VARIES.
4244
4245 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
4246
7f6519c5
AS
42472008-02-01 Andreas Schwab <schwab@suse.de>
4248
1f45f627 4249 * Makefile.in (shortlisp, lisp): Update for rename of
7f6519c5 4250 ../lisp/language/myanmar.el.
7f6519c5 4251
26f8aa27
CY
42522008-02-01 Chong Yidong <cyd@stupidchicken.com>
4253
1f45f627 4254 * xfaces.c (get_lface_attributes): Delete function.
26f8aa27
CY
4255 (merge_named_face, lookup_named_face, lookup_derived_face)
4256 (realize_named_face): Call lface_from_face_name directly, and use
4257 the fact that merge_face_vectors does not alter its FROM argument.
4258
73acf815 42592008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
4260
4261 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
1f45f627 4262 input in the default locale. Handle non-Unicode multibyte input.
aca7a3d2 4263
73acf815 42642008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
4265
4266 * fontset.c (reorder_font_vector): Exclude nil elements from the
4267 font group. Don't try multiple fonts.
15139d67 4268 (fontset_font): Adjust for the above change.
aca7a3d2
MB
4269 (Finternal_char_font): Return nil if the found font doesn't
4270 contain the character ch.
4271
4c4475a8 4272 * Makefile.in (lisp, shortlisp): Add cham.el.
aca7a3d2 4273
73acf815 42742008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
4275
4276 * font.h (FONTP): Make it return 1 also for a font-object.
4277
4278 * .gdbinit (xfontset): New function.
4279
4280 * font.c (font_find_for_lface): Check if the character C is
4281 supported or not only for the first font.
4282
4283 * fontset.c (reorder_font_vector): Fix typo.
4284 (fontset_find_font): Don't add a font-spec specifying a script.
4285 Use 0 (not Qt) for the indication of empty font-group. Change the
4286 format of RFONT-DEF. Return Qt if no font in the font-group
4287 support the character.
15139d67 4288 (fontset_font): Adjust for the above change. If no font was
aca7a3d2 4289 found the character, remember that.
15139d67 4290 (face_for_char): Adjust for the change of RFONT-DEF.
aca7a3d2
MB
4291 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
4292 no font for the target.
15139d67 4293 (Finternal_char_font): Adjust for the change of RFONT-DEF.
aca7a3d2 4294
73acf815 42952008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
4296
4297 * font.c (font_load_for_face): Handle the case that the font in
4298 face->lface is a string.
4299
73acf815 43002008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2 4301
1f45f627 4302 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
aca7a3d2 4303
73acf815 43042008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
4305
4306 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
4307 Fix previous change. If the frame is not on a window system,
4308 signal an error.
4309
73acf815 43102008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2 4311
4c4475a8
GM
4312 * coding.c (decode_coding_object, encode_coding_object): Adjust
4313 marker positions after conversion.
aca7a3d2
MB
4314
4315 * lisp.h (struct Lisp_Marker): New member need_adjustment.
4316
73acf815 43172008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
4318
4319 * font.c (font_find_for_lface): Fix the handling of the return
4320 value of font_has_char.
4321 (Ffont_shape_text): Fix previous change.
4322
4323 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
4324 (fontset_ref_and_range): Delete it.
4325 (fontset_find_font): Call char_table_ref_and_range instead of
4326 FONTSET_REF_AND_RANGE.
4327 (make_fontset): Don't setup font groups of Latin here.
4328 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
4329 (new_fontset_from_font): Make the specified font the default for
4330 all Latin characters.
4331
73acf815 43322008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
4333
4334 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
4335 is on a window system before accessing the fontset of the frame.
4336
73acf815 43372008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2 4338
1f45f627 4339 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
aca7a3d2
MB
4340
4341 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
4342 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
4343
4344 * font.c (Ffont_shape_text): If the font driver doesn't have a
4345 shaper function, make zero-width glyphs to have at least one-pixel
4346 width. Fix setting of `to' field of glyphs.
4347
73acf815 43482008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
4349
4350 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
4351 glyphs.
4352
1f45f627 4353 * font.h (struct font_driver): Improve docstring of member `shape'.
aca7a3d2 4354
73acf815 43552008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4356
4357 * composite.c (syms_of_composite): Fix docstring of
4358 auto-composition-function.
4359
4360 * font.h (LGLYPH_SIZE): New macro.
4361
4362 * font.c (Ffont_fill_gstring): Stop filling when a character not
4363 supported by the font is found.
4364 (Ffont_shape_text): When a shape callback function returns nil,
4365 try at most two more times with larger gstring.
15139d67 4366 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
aca7a3d2
MB
4367
4368 * xdisp.c (handle_auto_composed_prop): Change the argument to
4369 auto-composition-function.
4370
4371 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
4372 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
4373 Lispy glyph and store it in the lgstring.
4374
4375 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
4376
4377 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
4378
73acf815 43792008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
4380
4381 * font.c (Ffont_shape_text): Avoid unnecessary composition.
4382
4383 * fontset.c (Vfont_encoding_charset_alist): New variable.
4384 (syms_of_fontset): DEFVAR it.
4c4475a8
GM
4385 (reorder_font_vector, fontset_find_font): Optimize for the case of
4386 no need of reordering.
aca7a3d2
MB
4387 (face_for_char): Map the charset property by
4388 Vfont_encoding_charset_alist.
4389
73acf815 43902008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
4391
4392 * w32font.c (logfonts_match): Don't check adstyle here.
4393 (font_matches_spec): Check here against physical font instead.
4394 (add_font_entity_to_list): Avoid some substitutions.
4395
4396 * font.c (font_parse_fcname): Default weight and slant to normal.
4397 (font_score): Prefer normal fonts if weight or slant unspecified.
4398 (font_score) [WINDOWSNT]: Scale weight difference down to closer
4399 match freetype scores.
4400
73acf815 44012008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
4402
4403 * w32font.c (w32font_text_extents): Don't use the frame stored in the
4404 font, as it may have been deleted.
4405 (w32_enumfont_pattern_entity): Map generic family to adstyle using
4406 most common hyphenless variation.
4407 (logfonts_match): Check generic family.
4408 (font_matches_spec): Don't check generic family here.
4409 (fill_in_logfont): Set generic family based on adstyle.
4410
4411 * w32font.h (w32font_get_cache): Update declaration.
4412
73acf815 44132008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
4414
4415 * ftfont.c (ftfont_get_cache): Adjust the argument type.
4416
15139d67 4417 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
dde8403f 4418 If none of the new drivers are available, call font_update_drivers
aca7a3d2
MB
4419 with the old drivers.
4420
4421 * w32font.c (w32font_get_cache): Adjust the argument type.
4422
4423 * xfont.c (xfont_get_cache): Adjust the argument type.
4424
4425 * font.h (struct font_driver): Change argument type of get_cache.
4426
4427 * xftfont.c (xftfont_start_for_frame): Delete prototype.
4428
4429 * font.c (Ffont_get): Fix arguments to Fassoc.
15139d67 4430 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
aca7a3d2 4431 (font_clear_cache): New function.
4c4475a8 4432 (font_list_entities, font_matching_entity): Use font_get_cache.
15139d67 4433 (font_update_drivers): Call font_clear_cache when finishing a driver.
aca7a3d2
MB
4434
4435 * fontset.c (fontset_find_font): Fix previous change.
4436
73acf815 44372008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
4438
4439 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
4440 dpyinfo->font_table.
4441 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
15139d67 4442 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
aca7a3d2
MB
4443
4444 * font.c (font_at): Handle the case that the arg C is negative.
4445 Handle the unibyte case.
4446 (Ffont_at): Call font_at with the arg C -1.
4447
4448 * xdisp.c (handle_auto_composed_prop): Don't get a character at
15139d67
SM
4449 the position here, and call font_at with the arg C -1.
4450 Don't check the range of the existing composition at the point.
aca7a3d2 4451
73acf815 44522008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2 4453
15139d67 4454 * fontset.c (fontset_add): New args charset_id and family.
1f45f627 4455 Change caller.
4c4475a8
GM
4456 (load_font_get_repertory, fontset_find_font): Assume that
4457 font_spec is always a font-spec object.
aca7a3d2
MB
4458 (Fset_fontset_font): Always store a font-spec object in a fontset.
4459
4460 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
4461 instead of get_property_and_range.
4462
73acf815 44632008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
4464
4465 * xftfont.c (struct xftfont_info): Delete the member ft_face.
4466 (xftfont_open): Don't keep locking face.
4467 (xftfont_close): Don't unlock face.
4c4475a8 4468 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
aca7a3d2
MB
4469
4470 * fontset.c (fontset_find_font): Don't prefer a font of
4471 supplementary charset.
4472
73acf815 44732008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 4474
1f45f627
GM
4475 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
4476 script, langsys_tag to langsys, new member script.
aca7a3d2
MB
4477 (OTF_TAG_STR): Terminate by '\0'.
4478 (ftfont_get_open_type_spec): If :otf prop is is spec, Limit the
4479 listing to the script specified in that property. Fix arg to
4480 OTF_check_features.
4481
73acf815 44822008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
4483
4484 * w32font.h: New file.
4485
4486 * w32font.c: Include it.
4487 (struct w32font_info): Add owning_frame field. Move to w32font.h.
4488 (w32font_open): Set owning_frame.
4489 (w32font_text_extents): Use owning_frame.
4490 (struct font_callback_data): Add opentype_only field.
4491 (add_font_entity_to_list): Use it to filter fonts.
4492 Don't check against full name.
4493 (w32font_list_internal): New function.
4494 (w32font_list): Use it.
4495 (w32font_match_internal): New function.
4496 (w32font_match): Use it.
4497 (w32font_open_internal): New function.
4498 (w32font_open): Use it.
4499 (w32font_get_cache, w32font_close, w32font_has_char)
4500 (w32font_encode_char, w32font_text_extents, w32font_draw):
4501 Make non-static.
4502
4503 * makefile.w32-in (w32font.o): Depend on w32font.h.
4504
73acf815 45052008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
4506
4507 * charset.c (Fdefine_charset_internal): Record a supplementary
4508 charset at the tail of Vcharset_order_list.
4509
4510 * font.c (Ffont_shape_text): Fix the return value.
4511
4512 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
4513
4514 * xdisp.c (handle_auto_composed_prop): Fix previous change.
4515
73acf815 45162008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
4517
4518 * ftfont.c (struct OpenTypeSpec): New struct.
4519 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
4520 (ftfont_get_open_type_spec): New function.
4521 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
4522
15139d67 4523 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
aca7a3d2 4524
73acf815 45252008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
4526
4527 * w32font.c (add_font_entity_to_list): Compare only the beginning
4528 of full name.
4529
73acf815 45302008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 4531
15139d67
SM
4532 * xdisp.c (handle_auto_composed_prop): Simplify the code.
4533 Never return HANDLED_RECOMPUTE_PROPS.
aca7a3d2 4534
73acf815 45352008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4536
4537 * font.c (font_gstring_produce): Delete it.
4538
15139d67
SM
4539 * composite.h (COMPOSITION_METHOD):
4540 Handle COMPOSITION_WITH_GLYPH_STRING.
aca7a3d2 4541
73acf815 45422008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2 4543
15139d67 4544 * xfont.c (Qx): Delete.
aca7a3d2
MB
4545 (syms_of_xfont): Don't initialize Qx.
4546
15139d67
SM
4547 * composite.h (enum composition_method):
4548 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
aca7a3d2 4549
73acf815 45502008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
4551
4552 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
4553 (choose_face_font): Accept new form of font-spec.
4554
4555 * frame.h (font_driver_list): Declare it unconditionally.
4556 (struct frame): Define members font_driver_list and font_data_list
4557 unconditionally.
4558
4559 * fontset.c: Include "font.h" unconditionally.
15139d67 4560 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
aca7a3d2
MB
4561 (Fset_fontset_font): Accept a font-spec object.
4562
4563 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
4564 PIXEL_SIZE part a wild card.
4565
4566 * dispextern.h (struct glyph_string): Define members clip and
4567 num_clips unconditionally.
4568 (struct face): Define members font_info and extra unconditionally.
4569
4570 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
4571 ftfont_info only when HAVE_LIBOTF is defined.
4572
73acf815 45732008-02-01 Andreas Schwab <schwab@suse.de>
aca7a3d2
MB
4574
4575 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
4576 and end.
4577
73acf815 45782008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
4579
4580 * w32font.c (w32font_driver): Add new fields.
4581
73acf815 45822008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2 4583
aca7a3d2
MB
4584 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
4585 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
4586 (LIBES): Add @M17N_FLT_CFLAGS@.
4587
4588 * composite.c (compose_text): Don't treat the new style
4589 composition specially.
4590
4591 * emacs.c (main): Call syms_of_font unconditionally.
4592
4593 * font.h (FONT_ENTITY_NOT_LOADABLE)
4594 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
15139d67 4595 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
aca7a3d2 4596 (struct font_driver): New member shape.
1f45f627 4597 (font_registry_charsets): Extern it.
4c4475a8 4598 (font_find_for_lface, font_prepare_composition): Adjust prototype.
aca7a3d2
MB
4599 (font_otf_capability, font_drive_otf): Delete their externs.
4600
4601 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
4c4475a8
GM
4602 (font_charset_alist, font_registry_charsets): Move from xfont.c
4603 and rename.
aca7a3d2
MB
4604 (font_prop_validate_otf): New function.
4605 (font_property_table): Register it for QCotf.
4606 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
15139d67 4607 (font_drive_otf): Delete.
1f45f627 4608 (font_prepare_composition): New arg F. Adjust for the change of
aca7a3d2
MB
4609 lispy gstring.
4610 (font_find_for_lface): New arg C.
15139d67 4611 (font_load_for_face): Adjust for the change of font_find_for_lface.
4c4475a8
GM
4612 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
4613 lispy gstring.
aca7a3d2
MB
4614 (Ffont_shape_text): New function.
4615 (Fopen_font): If the font size is not given, use 12-pixel.
4616 (Ffont_at): New arg STRING.
15139d67
SM
4617 (syms_of_font): Initalize font_charset_alist.
4618 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
aca7a3d2
MB
4619 conditionally.
4620
4621 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
4622 fonts of the same font-spec. Change the format of RFONT-DEF.
4c4475a8
GM
4623 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
4624 Adjust for the change of RFONT-DEF.
15139d67 4625 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
aca7a3d2
MB
4626
4627 * ftfont.h: New file.
4628
4629 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
4630 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
4631 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
4632 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
4633 font_otf_capability and font_drive_otf, set ftfont_shape.
15139d67 4634 (ftfont_list): Adjust for the change of :otf property value.
aca7a3d2
MB
4635 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
4636 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
4637 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
1f204af3 4638 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
aca7a3d2
MB
4639 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
4640 (otf_gstring, gstring, m17n_flt_initialized): New variables.
4641
15139d67
SM
4642 * w32term.c (x_draw_composite_glyph_string_foreground):
4643 Adjust for the change of lispy gstring.
aca7a3d2 4644
15139d67 4645 * xdisp.c (handle_composition_prop): Adjust for the change of
aca7a3d2 4646 lispy gstring. Call a function for auto-composition with the
15139d67
SM
4647 third arg it->window.
4648 (fill_composite_glyph_string): Adjust for the change of lispy string.
4649 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
aca7a3d2 4650
15139d67 4651 * xfaces.c (set_font_frame_param): Adjust for the change of
aca7a3d2
MB
4652 font_find_for_lface.
4653
1f45f627
GM
4654 * xfont.c (x_font_charset_alist): Move to font.c and rename.
4655 (xfont_registry_charsets): Likewise. Change caller.
aca7a3d2
MB
4656 (syms_of_xfont): Don't handle x_font_charset_alist.
4657
4658 * xftfont.c: Include "ftfont.h".
15139d67 4659 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
aca7a3d2
MB
4660 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
4661 (xftfont_close) [HAVE_LIBOTF]: Close otf.
4662 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
15139d67
SM
4663 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
4664 Set xftfont_driver.shape to xftfont_shape.
aca7a3d2 4665
15139d67 4666 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aca7a3d2
MB
4667 the change of lispy gstring.
4668
73acf815 46692008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
4670
4671 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
4672
73acf815 46732008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
4674
4675 * w32font.c (w32font_draw): Fill background manually.
4676
73acf815 46772008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
4678
4679 * font.c (Qfontp): Remove unused symbol.
4680 (QCantialias): New symbol.
4681 (syms_of_font): Define it.
4682 (font_property_table): Set a validator for QCantialias.
4683
15139d67
SM
4684 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
4685 Define if not already.
aca7a3d2
MB
4686 (QCfamily): Share with xfaces.c.
4687 (Qstandard, Qsubpixel, Qnatural): New symbols.
1f45f627 4688 (syms_of_w32font): Define them. Don't define QCfamily here.
aca7a3d2
MB
4689 (w32_antialias_type, lispy_antialias_type): New functions.
4690 (w32_enumfont_pattern_entity): New arg requested_font.
4691 Set antialias parameter if non-default was requested.
4692 (fill_in_logfont): Fill in lfQuality if :antialias specified.
4693
73acf815 46942008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
4695
4696 * lread.c (read1): Undo the previous change.
4697
73acf815 46982008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
aca7a3d2
MB
4699
4700 * frame.c (Fdelete_frame): Call font_update_drivers only when
6f69e89b 4701 USE_FONT_BACKEND is defined.
aca7a3d2 4702
73acf815 47032008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
4704
4705 * font.h (struct font_bitmap): New member bits_per_pixel.
4706 (struct font_driver): New members start_for_frame and end_for_frame.
4707 (struct font_data_list): New struct.
4708 (font_put_frame_data, font_get_frame_data): Extern them.
4709
4710 * frame.h (struct frame): New member font_data_list.
4711
4712 * font.c (font_update_drivers): Call driver->start_for_frame and
4713 driver->end_for_frame at proper timings.
4714 (font_put_frame_data, font_get_frame_data): New functions.
4715 (Ffont_spec): Add usage in the docstring.
4716
4717 * frame.c (make_frame): Initialize f->font_data_list to NULL.
4718 (Fdelete_frame): Call font_update_drivers.
4719
4720 * xftfont.c (struct xftface_info): Delete the member xft_draw.
4c4475a8 4721 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
aca7a3d2
MB
4722 (xftfont_get_xft_draw): New function.
4723 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
4724 (xftfont_end_for_frame): New function.
4725 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
4726
15139d67 4727 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
1f45f627 4728 Change argument. Cache GCs in the per-frame data.
aca7a3d2
MB
4729 (struct ftxfont_frame_data): New struct.
4730 (ftxfont_draw_bitmap): New arg gc_fore and flush.
4731 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
15139d67 4732 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
aca7a3d2
MB
4733 (ftxfont_end_for_frame): New function.
4734 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
4735
4736 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
4737
73acf815 47382008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4739
4740 * xselect.c (Vselection_coding_system)
4741 (Vnext_selection_coding_system): Delete them.
4742 (syms_of_xselect): Don't declare selection-coding-system and
4743 next-selection-coding-system. They are declared in select.el.
4744
73acf815 47452008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
4746
4747 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
4748
4749 * w32fns.c: Include imm.h.
4750 (get_composition_string_fn, get_ime_context_fn): New optional
4751 system functions.
4752 (globals_of_w32fns): Load them from imm32.dll.
4753 (ignore_ime_char): New flag.
4754 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
4755 WM_IME_ENDCOMPOSITION messages.
4756
4757 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
4758 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
4759
73acf815 47602008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
4761
4762 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
4763 (READCHAR_REPORT_MULTIBYTE): New macro.
4764 (readchar): New 2nd arg MULTIBYTE.
15139d67
SM
4765 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
4766 Make symbol's name multibyte according to the multibyteness of the
aca7a3d2
MB
4767 source.
4768
73acf815 47692008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
4770
4771 * xfaces.c (face_for_overlay_string): Call lookup_face with
4772 correct arguments (fix of synching with the trunk).
4773
73acf815 47742008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 4775
4c4475a8
GM
4776 * font.c (font_prop_validate_symbol, font_prop_validate_style)
4777 (font_prop_validate_non_neg, font_prop_validate_spacing):
4778 Delete argument prop_index.
15139d67
SM
4779 (font_property_table): Change arguments to validater. Change Callers.
4780 (font_lispy_object): Delete.
aca7a3d2
MB
4781 (font_at): Use font_find_object instead fo font_lispy_object.
4782
73acf815 47832008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
4784
4785 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
4786 and file names.
4787
73acf815 47882008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
4789
4790 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
4791 (font_matches_spec): Remove debug output.
4792 (add_font_entity_to_list): Avoid using substituted fonts.
4793
73acf815 47942008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
4795
4796 * doc.c (Fsnarf_documentation):
4797 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
4798
73acf815 47992008-02-01 Miles Bader <miles@gnu.org>
aca7a3d2 4800
290afd83 4801 * dispextern.h (struct glyph_row): Only define "clip" field if
aca7a3d2
MB
4802 HAVE_WINDOW_SYSTEM is defined.
4803
73acf815 48042008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
aca7a3d2
MB
4805
4806 Fix up multi-tty merge.
4807
4808 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
4809 and indentation.
4810
4811 * xfaces.c (free_realized_face, clear_face_gcs):
4812 Include font_done_for_face in the input_blocked section, just in case.
4813
4814 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
4815 (get_char_face_and_encoding): Undo last change and remove the *other*
4816 duplicate definition (i.e. keep the one that's better scoped and that
4817 includes code for the font-backend).
4818
4819 * terminal.c (create_terminal): Default keyboard_coding to
4820 `no-conversion' and terminal_coding to `undecided'.
4821
4822 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
4823
4824 * fontset.c (free_realized_fontsets): Check that the table entry does
4825 contain a fontset before trying to compare it to `base'.
4826
4827 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
4828 syms_of_charset, and syms_of_coding earlier because init_window_once
4829 now needs Vcoding_system_hash_table to be setup.
4830
4831 * coding.h (default_buffer_file_coding): Remove.
4832
4833 * coding.c (default_buffer_file_coding): Remove.
4834 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
4835 than ->symbol, and use the terminal-local coding system.
4836 (syms_of_coding): Don't setup the coding-systems that are not
4837 terminal-local.
4838 (Fdefine_coding_system_internal): Use XCAR/XCDR.
4839
4840 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
4841 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
4842
4843 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
4844 in chartab.c and were re-added here by mistake.
4845 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
4846
4847 * doc.c (Fsnarf_documentation):
4848 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
4849 src to etc.
4850
4851 * ChangeLog.10: Add mistakenly removed entry.
4852
73acf815 48532008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
aca7a3d2
MB
4854
4855 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
4856
73acf815 48572008-02-01 Miles Bader <miles@gnu.org>
aca7a3d2
MB
4858
4859 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
4860 Add extra args to FACE_FOR_CHAR.
4861
73acf815 48622008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4863
4864 * keymap.c (where_is_internal_1): If key is a cons, store the copy
4865 in sequence.
4866
4c4475a8
GM
4867 * chartab.c (map_sub_char_table, map_char_table): If the range
4868 contains just one character, call the function with that character
4869 even if the depth is not 3.
aca7a3d2 4870
73acf815 48712008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
4872
4873 * w32font.c (w32font_text_extents): Calculate metrics for the
4874 whole string.
4875
73acf815 48762008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
4877
4878 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
4879
73acf815 48802008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
4881
4882 * w32term.c (x_set_glyph_string_clipping): Use
4883 get_glyph_string_clip_rects.
4c4475a8
GM
4884 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
4885 Adjust for the change of struct glyph_string.
aca7a3d2
MB
4886
4887 * w32font.c (w32font_draw): Do clipping here.
4888
73acf815 48892008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 4890
1f45f627 4891 * xftfont.c (xftfont_draw): Adjust for the change of struct
aca7a3d2
MB
4892 glyph_string.
4893
4894 * xterm.c (x_set_glyph_string_clipping): Use
4895 get_glyph_string_clip_rects.
4c4475a8
GM
4896 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
4897 Adjust for the change of struct glyph_string.
aca7a3d2
MB
4898
4899 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
4900 the resulting clip(s}.
1f45f627 4901 (expose_overlaps): Add arg r. Change callers. Set it to
aca7a3d2
MB
4902 row->clip temporarily.
4903 (expose_window): Redraw rows overlapping the exposed area.
4904
4905 * dispextern.h (struct glyph_row): New member clip.
4906 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
4907 clip_height, new member clip, and num_clips.
4908
73acf815 49092008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4910
4911 * data.c (Fchar_or_string_p): Fix docstring.
4912
73acf815 49132008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4914
4915 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
4916 create a temporal XftDraw object.
4917
73acf815 49182008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4919
4920 * font.c (Ffontp): Fix docstring.
4921
4922 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
4923 strong evidence of ISO-2022.
4924
73acf815 49252008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4926
4927 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
4928 SYNTAX_ENTRY_FOLLOW_PARENT.
4929
73acf815 49302008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
aca7a3d2
MB
4931
4932 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
4933 its type.
4934 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
4935 Update to the new type of weak_hash_tables and next_weak.
4936
4937 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
4938 a plain C pointer to Lisp_Hash_Table.
4939
4940 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
4941 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
4942 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
4943 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
4944 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
4945 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
4946 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
4947 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
4948 (GC_EQ): Remove since they've been identical to their non-GC_
4949 alter-egos ever since the markbit was eradicated.
4950
290afd83
JB
4951 * alloc.c:
4952 * buffer.c:
4953 * buffer.h:
4954 * data.c:
4955 * fileio.c:
4956 * filelock.c:
4957 * fns.c:
4958 * frame.h:
4959 * lisp.h:
4960 * macterm.c:
4961 * print.c:
4962 * process.c:
4963 * w32fns.c:
4964 * w32menu.c:
4965 * w32term.c:
4966 * xfns.c:
4967 * xmenu.c:
4968 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
aca7a3d2 4969
73acf815 49702008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4971
4972 * chartab.c (map_sub_char_table): Make it work for the top-level
4973 char-table. Fix handling of parent char-table.
c5ad7a3d 4974 (map_char_table): Adjust for the above change.
aca7a3d2 4975
73acf815 49762008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
4977
4978 * w32font.c (Qgdi): Rename from Qw32.
4979
73acf815 49802008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
4981
4982 * w32bdf.c (get_quoted_string): Make function static.
4983
73acf815 49842008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4985
4986 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
4987 bigger ascent and descent than those of the font, use them as
4988 font's ascent and descent.
4989
73acf815 49902008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4991
4992 * Makefile.in (${lispsource}international/charprop.el): Move this
4993 target within "#ifdef HAVE_UNIDATA" and "#endif".
4994
73acf815 49952008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4996
4997 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
4998 (shortlisp): Add ../lisp/language/tai-viet.el.
4999
1f45f627 50002008-02-01 Ulrich Mueller <ulm@gentoo.org>
aca7a3d2
MB
5001
5002 * Makefile.in (${lispsource}international/charprop.el): Depend on
5003 temacs${EXEEXT}.
5004
73acf815 50052008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
5006
5007 * w32font.c (w32font_close): Delete the GDI font object.
5008
6f69e89b 5009 * w32menu.c: Include character.h.
aca7a3d2
MB
5010
5011 * w32proc.c: Likewise.
5012
5013 * w32select.c: Likewise.
5014
6f69e89b 5015 * makefile.w32-in (w32proc.o): Depend on character.h.
aca7a3d2 5016
73acf815 50172008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
5018
5019 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
5020
5021 * w32menu.c (syms_of_w32menu): Likewise.
5022
5023 * w32proc.c (syms_of_ntproc): Likewise.
5024
5025 * w32select.c (syms_of_w32select): Likewise.
5026
5027 * w32term.c (syms_of_w32term): Likewise.
5028
73acf815 50292008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
5030
5031 * w32font.c (w32font_draw): Delete brush after using it.
5032
73acf815 50332008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
5034
5035 * w32font.c (w32font_open): Don't set font_idx.
5036 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
5037 to font settings.
5038 (w32font_draw): Fill background explicitly.
5039
73acf815 50402008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
5041
5042 * w32term.c (w32_initialize): Don't call w32font_initialize.
5043
5044 * w32font.c (w32font_info): Remove subranges.
5045 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
5046 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
5047 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
5048 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
5049 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
5050 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
5051 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
5052 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
5053 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
5054 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
5055 New symbols.
5056 (font_callback_data): New struct.
5057 (w32font_list, w32font_match): Use it.
5058 (w32font_open): Don't populate subranges.
5059 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
5060 (w32font_encode_char): Always return unicode code-point as-is.
5061 (w32font_text_extents): Supply a tranformation matrix to
1f45f627
GM
5062 GetGlyphOutline. Never look up by glyph index. Avoid looping
5063 twice. Use unicode version of GetTexExtentPoint32 instead of
aca7a3d2 5064 glyph index version.
1f204af3 5065 (set_fonts_frame): Remove.
aca7a3d2 5066 (w32_enumfont_pattern_entity): Add frame parameter, use it to
1f45f627
GM
5067 set frame parameter. Use backward compatible fake foundries.
5068 Save generic family in extra slot under QCfamily. Make width slot
5069 constant. Save QCspacing value. Save list of scripts instead of
aca7a3d2
MB
5070 binary subranges.
5071 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
1f45f627 5072 (add_font_entity_to_list): Use font_callback_data struct. Filter
aca7a3d2
MB
5073 unwanted fonts.
5074 (add_one_font_entity_to_list): Use font_callback_data struct.
1f45f627
GM
5075 (w32_registry): Default to iso10646_1.
5076 (fill_in_logfont): Use dpi from extra slot. Don't bother with
5077 string font registries. Don't fill in font name if it is a generic
5078 family name, fill family instead. Use spacing, family and script
aca7a3d2
MB
5079 extra info to fill pitch, family and charset fields.
5080 (list_all_matching_fonts): Use font_callback_data struct.
5081 (unicode_range_for_char): Remove.
5082 (font_supported_scripts): New function.
5083 (w32font_initialize): Remove.
5084 (syms_of_w32font): Update which symbols are defined.
5085
73acf815 50862008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
5087
5088 * font.c (font_pixel_size): Reverse assq_no_quit args.
5089
5090 * w32term.h (FONT_WIDTH): Report max width, not average.
5091 (FONT_MAX_WIDTH): Remove.
5092 (FONT_AVG_WIDTH): New macro.
5093
5094 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
5095 redefinition of FONT_WIDTH.
5096
5097 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
5098 (w32_cache_char_metrics): Use FONT_WIDTH.
5099
5100 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
5101
73acf815 51022008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
5103
5104 * w32font.c (w32font_open): Make lfHeight negative.
5105
5106 * w32fns.c (x_default_font_parameter): Use new style font name.
5107 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
5108
73acf815 51092008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
5110
5111 * w32font.c (QCsubranges): New symbol.
5112 (w32font_open, w32font_has_char): Get subranges from subproperty
5113 of extra.
5114 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
5115 (syms_of_w32font): Define :subranges symbol.
5116
5117 * font.c (font_put_extra): Expose externally.
5118
1f45f627 5119 * font.h (font_put_extra): Move declaration from font.c.
aca7a3d2
MB
5120
5121 * font.c (Ffont_get): Use font driver to determine otf capability.
5122 (adjust_anchor): Check if driver defines anchor_point before using.
5123
5124 * w32font.c (w32font_open): Handle size, height and pixel_size better.
5125 (w32font_draw): Use options.
5126 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
5127 Fix detection of truetype fonts.
5128 (registry_to_w32_charset): Handle charsets other than iso8859-1
5129 expressed as lisp symbols.
5130 (w32_registry): Express charset as lisp symbol.
5131 (fill_in_logfont): Reverse pixel and point height logic.
1f45f627 5132 Don't set width here. Set quality to default.
aca7a3d2
MB
5133
5134 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
5135 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
5136
5137 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
5138 Remove redundant loop and allocation.
5139
5140 * makefile.w32-in (font.o, w32font.o): New objects.
6f69e89b 5141 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
aca7a3d2
MB
5142 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
5143
5144 * xdisp.c (fill_composite_glyph_string): Make the first arg to
5145 STORE_XCHARB a valid l-value.
5146
5147 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
5148 calculations for non-Truetype fonts.
5149 (x_draw_glyph_string): Sync with xterm.c.
c3f9fba8
JB
5150 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
5151 Remove redundant code.
aca7a3d2
MB
5152 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
5153
5154 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
5155 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
5156
5157 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
5158 (x_to_w32_charset, w32_to_x_charset): Expose externally.
5159
5160 * w32font.c: New file for w32 font backend.
5161
73acf815 51622008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5163
5164 * term.c: Don't include "buffer.h" twice.
5165
73acf815 51662008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5167
5168 * character.c (Funibyte_string): New function.
5169 (syms_of_character): Defsubr it.
5170
73acf815 51712008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
5172
5173 * w32term.c [USE_FONT_BACKEND]:
c3f9fba8
JB
5174 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
5175 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
5176 (x_draw_glyph_string, x_draw_glyph_string_foreground)
5177 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
aca7a3d2
MB
5178 (x_free_frame_resources): Sync with xterm.c.
5179
73acf815 51802008-02-01 Andreas Schwab <schwab@suse.de>
aca7a3d2
MB
5181
5182 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
5183 char-table size.
5184
73acf815 51852008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5186
c3f9fba8 5187 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
aca7a3d2 5188
73acf815 51892008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5190
5191 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
5192 font_otf_gpos, add font_drive_otf.
5193
5194 * fontset.c (fontset_find_font): Pay attention to font size
5195 specified for a font.
5196 (reorder_font_vector): Check contents of font_def.
5197
5198 * font.c (struct otf_list): Delete it.
6f69e89b 5199 (otf_list): Make it a lisp variable.
aca7a3d2 5200 (otf_open): Use lispy otf_list.
1f45f627 5201 (generate_otf_features): Rename from parse_gsub_gpos_spec.
aca7a3d2 5202 (check_otf_features): New function.
c3f9fba8
JB
5203 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
5204 New functions.
aca7a3d2
MB
5205 (font_drive_otf): New function merging font_otf_gsub and
5206 font_otf_gpos.
5207 (font_open_for_lface): New arg spec. Change argument order.
1f45f627 5208 (font_load_for_face): Adjust for the change of font_open_for_lface.
aca7a3d2
MB
5209 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
5210 Ffont_otf_gpos.
5211 (syms_of_font): Staticpro otf_list. Delete defsubr of
5212 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
5213
1f45f627 5214 * xfaces.c (set_font_frame_param): Adjust for the change of
aca7a3d2
MB
5215 font_open_for_lface.
5216
5217 * font.h (font_open_for_lface): Adjust prototype.
5218 (struct font_driver): Delete members otf_gsub and otf_gpos, add
5219 member otf_drive.
5220 (font_otf_gsub, font_otf_gpos): Delete externs.
5221 (font_drive_otf): Extern it.
5222
73acf815 52232008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5224
5225 * font.c (font_at): If the window W is not on a window system,
5226 return Qnil.
5227
4c4475a8
GM
5228 * coding.c (produce_chars, encode_coding): Don't call
5229 insert_from_gap if no characters to produce.
aca7a3d2 5230
73acf815 52312008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5232
5233 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
5234 Fclear_face_cache.
5235
5236 * xfaces.c (face_for_font): Check also face->font==font->font.font.
5237
73acf815 52382008-02-01 Miles Bader <miles@gnu.org>
aca7a3d2
MB
5239
5240 * emacs.c (main): Change default value of `enable_font_backend' to 1.
5241 Parse "--disable-font-backend" option.
5242 (standard_args): Add "--disable-font-backend" option.
5243
73acf815 52442008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5245
5246 * fontset.c (fontset_find_font): New function.
5247 (fontset_font): Use fontset_find_font.
5248 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
5249 Register the specified font for all Latin characters.
5250 (new_fontset_from_font): Register the specified font for all Latin
5251 characters.
5252 (dump_fontset): For a realized fontset, include the base fontset
5253 name in the returned vector.
5254
73acf815 52552008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5256
5257 * character.h (CHAR_STRING): Cast C to unsigned on calling
5258 char_string.
5259
5260 * character.c (char_string): Type of arg C changed to unsigned.
5261 Signal an error if C is an invalid character code.
5262
4c4475a8
GM
5263 * editfns.c (general_insert_function, Fchar_to_string):
5264 Use CHARACTERP, not INTEGERP.
aca7a3d2 5265
73acf815 52662008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5267
5268 * character.h (MIN_MULTIBYTE_LEADING_CODE)
5269 (MAX_MULTIBYTE_LEADING_CODE): New macros.
5270
5271 * regex.c (analyse_first): Fix for multibyte characters in "case
5272 charset:" and "case categoryspec:".
5273
73acf815 52742008-02-01 Andreas Schwab <schwab@suse.de>
aca7a3d2
MB
5275
5276 * Makefile.in (LIBES): Move standard libraries to the end.
5277
73acf815 52782008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5279
5280 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
5281 nonzero, don't shrink the buffer nextb.
5282
5283 * buffer.h (struct buffer_text): New member inhibit_shrinking.
5284
5285 * coding.c (coding_alloc_by_making_gap): New arg offset.
5286 (alloc_destination): Call coding_alloc_by_making_gap with the arg
5287 offset.
5288 (decode_coding_iso_2022): Update coding->safe_charsets.
5289 (decode_coding_gap): Temporarily set
5290 current_buffer->text->inhibit_shrinking to 1.
5291
73acf815 52922008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5293
5294 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
5295 indexing into elements of s->cmp and s->char2b.
5296
73acf815 52972008-02-01 Juanma Barranquero <lekktu@gmail.com>
aca7a3d2
MB
5298
5299 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
5300
73acf815 53012008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5302
5303 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
5304 target_multibyte instead of multibyte.
5305 (re_match_2_internal): Call bcmp_translate with target_multibyte.
5306 (bcmp_translate): Change the argument name from multibyte to
5307 target_multibyte.
5308
73acf815 53092008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5310
5311 These changes are to compile a regexp into a pattern that can be
5312 used both for multibyte and unibyte targets.
5313
5314 * Makefile.in (search.o): Depend on charset.h.
5315
5316 * character.c (multibyte_char_to_unibyte_safe): New function.
5317
5318 * search.c: Include "charset.h".
5319 (compile_pattern_1): Delete argument multibyte. Don't set
5320 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
5321 (compile_pattern): Don't compare cp->buf.target_multibyte.
5322 Compare cp->buf.charset_unibyte.
5323 (compile_pattern): Set cp->buf.target_multibyte.
5324
5325 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
5326
5327 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
5328
5329 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
1f45f627 5330 multibyte. Change callers.
aca7a3d2 5331 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
1f45f627
GM
5332 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
5333 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
aca7a3d2
MB
5334 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
5335 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
5336 (regex_compile): Make the compiled pattern usable both for
5337 multibyte and unibyte targets.
5338 (analyse_first): Make the fastmap usable both for multibyte and
5339 unibyte targets.
1f45f627 5340 (TRANSLATE_VIA_MULTIBYTE): Delete.
aca7a3d2
MB
5341 (re_match_2_internal): Pay attention to the case that the
5342 multibyteness of bufp and target may be different.
5343
73acf815 53442008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5345
5346 * xdisp.c (x_produce_glyphs): When a font is not found, make the
5347 empty box occupy at least one column width.
5348
73acf815 53492008-02-01 Miles Bader <miles@gnu.org>
aca7a3d2
MB
5350
5351 * Makefile.in: Remove redundant HAVE_XFT clause.
5352
73acf815 53532008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5354
5355 * xrdb.c (x_load_resources): Setup the default fontSet X reource.
5356
73acf815 53572008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5358
5359 * fontset.c (Finternal_char_font): Fix for the case of POSITION
5360 being nil.
5361
73acf815 53622008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5363
5364 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
5365
73acf815 53662008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5367
5368 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
5369
73acf815 53702008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5371
5372 * search.c (simple_search): Fix previous change.
5373
73acf815 53742008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5375
5376 * xftfont.c (ftfont_font_format): Extern declaration.
5377
5378 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
5379
5380 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
5381 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
5382
5383 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
5384 (ftfont_font_format): Fix previous change.
5385
5386 * font.h (Ffont_xlfd_name): EXFUN it.
5387
5388 * font.c (font_parse_xlfd): Fix the array size of `f'.
5389 (register_font_driver): Use EQ to compare driver->type.
5390
5391 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
5392 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
5393 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
5394
73acf815 53952008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5396
4c4475a8
GM
5397 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
5398 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
aca7a3d2 5399
73acf815 54002008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5401
5402 * xfont.c (xfont_open): Set font->format.
5403
5404 * xftfont.c (xftfont_open): Set font->format.
5405
5406 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
5407 (ftfont_list): Include FC_FONTFORMAT in FcObject.
5408 (ftfont_open): Set font->format.
5409 (ftfont_font_format): New function.
5410
5411 * font.h (struct font): New memeber format.
5412
5413 * font.c (Qopentype): New variable.
5414 (syms_of_font): Defsym it.
5415 (Fquery_font): Change the format of the last element of the return
5416 value.
5417
73acf815 54182008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5419
5420 * xfns.c (xic_create_xfontset): Try the default fontset name as a
5421 last resort.
5422
73acf815 54232008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5424
5425 * coding.c (detect_coding_charset): Fix detection of multi-byte
5426 charset.
5427
73acf815 54282008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
aca7a3d2
MB
5429
5430 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
5431
73acf815 54322008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5433
5434 * xdisp.c (get_next_display_element): Set it->face_id for the
5435 first component of a composition.
1f45f627 5436 (x_produce_glyphs): Check if the font is changed or not for composition.
aca7a3d2 5437
73acf815 54382008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5439
5440 * fontset.c (Qlatin): New variable.
5441 (syms_of_fontset): Define it as a lisp symbol.
1f45f627 5442 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
aca7a3d2 5443
73acf815 54442008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5445
5446 * font.c (font_unparse_fcname): Pay attention to the case that
5447 some of font property is a null string.
5448
73acf815 54492008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5450
5451 * term.c: Include "composite.h".
5452 (encode_terminal_code): Output all components of composition.
5453 Check the size of encode_terminal_src.
424c157f 5454 (produce_glyphs): For composition, call produce_composite_glyph.
aca7a3d2
MB
5455 (append_composite_glyph, produce_composite_glyph): New functions.
5456
5457 * xdisp.c (x_produce_glyphs): In handling composition, if a font
5458 is not found, get font_info from the current ascii face.
5459
73acf815 54602008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5461
5462 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
5463 buffer-file-name to Qnil before calling insert_from_buffer.
5464
5465 * font.c (font_unparse_fcname): Pay attention to the case that
5466 foundry is a null string.
5467
73acf815 54682008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5469
5470 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
5471
5472 * font.c (Qunicode_sip): New variable.
5473 (syms_of_font): Declare it as a Lisp symbol.
5474
5475 * font.h (Qunicode_sip): Extern it.
5476
73acf815 54772008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5478
1f45f627 5479 * composite.c (get_composition_id): Pay attention to TAB component.
aca7a3d2
MB
5480
5481 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
1f45f627 5482 TAB. Adjust for the change of s->char2b which always points to
aca7a3d2
MB
5483 the first elememnt of allocated memory.
5484
1f45f627 5485 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
aca7a3d2
MB
5486
5487 * xdisp.c (handle_composition_prop): Set it->c to the first
5488 non-TAB component.
1f45f627
GM
5489 (fill_composite_glyph_string): Change argument.
5490 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
aca7a3d2
MB
5491 (x_produce_glyphs): Fix handling of left/right padding.
5492
73acf815 54932008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5494
5495 * coding.c (detect_coding_system): Fix for handling off
5496 inhibit_iso_escape_detection. Fix for the case that no coding
5497 system is defined for a specific coding category.
5498
73acf815 54992008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5500
1f45f627 5501 * font.c (font_matching_entity): Delete unused local var.
aca7a3d2
MB
5502
5503 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
5504 opening a font.
5505
5506 * fileio.c (Finsert_file_contents): On recovering a file, assume
5507 Unix-like eol.
5508 (choose_write_coding_system): On auto-saving a file, force
5509 Unix-like eol.
5510
5511 * coding.c (setup_coding_system): Fix setting of
5512 coding->common_flags based on eol_type.
5513 (coding_inherit_eol_type): If PARENT is not nil, be sure to
5514 inherit from it.
5515
73acf815 55162008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5517
1f45f627 5518 * alloc.c (NSTATICS): Increas to 0x600.
aca7a3d2 5519
73acf815 55202008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5521
1f45f627 5522 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
aca7a3d2
MB
5523 (ftfont_list): Don't check :name property.
5524 (ftfont_match): New function.
5525 (ftfont_pattern_entity): If the pattern doesn't contain
5526 FC_SPACING, don't assuce FC_MONO.
5527
5528 * font.h (struct font_driver): New member `match'.
1f45f627 5529 (font_update_drivers): Adjust prototype.
aca7a3d2 5530
4c4475a8
GM
5531 * font.c (font_parse_fcname, font_parse_name): Don't change :name
5532 property of FONT.
aca7a3d2
MB
5533 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
5534 them unconditionally.
5535 (font_matching_entity): New function.
5536 (font_open_by_name): Try font_matching_entity if exact match is
5537 not found.
5538 (font_update_drivers): Delete the arg FONT. Return a list of
5539 actually used backends. Don't free faces, font caches here.
5540 Don't store data in frame parameters. Don't call x_set_font.
5541 (Ffont_spec): Store :name property as is.
5542 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
1f45f627
GM
5543 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
5544 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
aca7a3d2
MB
5545 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
5546 Call font->driver->otf_gsub instead of font_otf_gsub.
5547
5548 * frame.c (x_set_font_backend): Do more works that were done in
5549 font_update_drivers before.
5550
5551 * xfont.c (xfont_match): New function.
5552 (xfont_driver): Set xfont_driver.match to xfont_match.
5553 (xfont_draw): Set font in GC if necessary.
5554
5555 * ftxfont.c (ftxfont_match): New function.
5556 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
5557
5558 * xftfont.c (xftfont_match): New function.
5559 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
5560
73acf815 55612008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5562
5563 * font.h (struct font): New member scalable.
5564 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
1f45f627 5565 (font_otf_gsub): Adjust prototype.
aca7a3d2 5566
1f45f627
GM
5567 * font.c (font_otf_capability): Fix handling of the default langsys.
5568 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
aca7a3d2
MB
5569 Check the contents of SPEC.
5570 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
5571 (check_gstring): New function.
5572 (REPLACEMENT_CHARACTER): New macro.
5573 (font_otf_gsub): New arg alternate_subst. Be sure to set all
5574 glyph codes of GSTRING.
5575 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
5576 (font_prepare_composition): Set cmp->glyph_len.
5577 (font_open_entity): Set font->scalable.
5578 (Ffont_get): Handle :otf property.
5579 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
5580 functions.
5581 (Fquery_font): Use font->font.full_name.
5582 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
5583 Sfont_otf_alternates.
5584
5585 * ftfont.c (ftfont_open): Set font->font.full_name and
5586 font->font.name properly. Fix calculation of font->font.height
5587 and font->min_width.
5588
5589 * ftxfont.c (ftxfont_create_gcs): New function.
5590 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
5591 (ftxfont_draw_backgrond): Fix filling region.
5592 (ftxfont_default_fid): New function.
5593 (ftxfont_open): Set xfotn->fid to the return value of
5594 ftxfont_default_fid.
5595 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
5596 (ftxfont_done_face): Free only GCs that are created by
5597 ftxfont_create_gcs.
5598 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
5599
5600 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
5601 Clip to src->width, etc (not src->clip_XXX).
5602
5603 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
5604 FontBackend frame parameter.
5605
73acf815 56062008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5607
5608 * font.h (struct font_driver_list): New member `on'.
5609 (Fclear_font_cache): EXFUN it.
5610 (font_update_drivers): Extern it.
5611
5612 * font.c (font_unparse_fcname): Fix typo (swidth->width).
5613 (font_list_entities): Check driver_list->on.
5614 (register_font_driver): Initalize `on' member to 0.
5615 (font_update_drivers): New function.
5616 (Fclear_font_cache): Check driver_list->on.
5617
5618 * frame.h (Qfont_backend): Extern it.
5619 (x_set_font_backend): Extern it.
5620
5621 * frame.c (Qfont_backend): New variable.
5622 (frame_parms): New element for font-backend.
5623 (x_set_font_backend): New function.
5624
5625 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
5626 FontBackend frame parameter.
5627 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
5628 x_set_font_backend.
5629
5630 * xfont.c (xfont_list): Don't try listing by :name property if the
5631 name is not for XLFD.
5632
73acf815 56332008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5634
5635 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
5636 (LGLYPH_SET_TO): New macros.
5637 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
5638 element of G is vector or not.
5639 (font_at): Extern it.
5640
5641 * font.c: Include window.h.
5642 (font_lispy_object): New function.
5643 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
5644 end of valid glyph.
5645 (font_close_object): Fix getting (struct font *).
5646 (font_at): New function.
5647 (Ffont_get): If FONT is a font-object, get entity from it.
5648 (Ffont_make_gstring): Initialize elements of glyphs with nil.
5649 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
5650 range check.
5651 (Ffont_at): New function.
5652 (syms_of_font): Defsubr Sfont_at.
5653
5654 * xdisp.c (it_props): Move the entry for Qauto_composed to just
424c157f 5655 before the entry for Qcomposition.
1f45f627 5656 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
aca7a3d2
MB
5657 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
5658 the font in gstring.
5659 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
5660 LGLYPH_FORM (g) to detect the end of valid glyph.
5661 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
5662 we are composing with gstring.
5663
5664 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
5665 Check if adjustment is vector or not.
5666
5667 * Makefile.in (font.o): Make it depends on window.h.
5668
73acf815 56692008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5670
5671 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
5672 adjustment is vector or not.
5673
73acf815 56742008-02-01 Miles Bader <miles@gnu.org>
aca7a3d2
MB
5675
5676 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
5677
73acf815 56782008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5679
5680 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
5681 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
5682 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
5683
1f45f627 5684 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
aca7a3d2 5685 (DEVICE_DELTA): Fix typo.
4c4475a8
GM
5686 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
5687 LGLYPH format.
aca7a3d2 5688
1f45f627 5689 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aca7a3d2
MB
5690 the change of LGLYPH format.
5691
73acf815 56922008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5693
5694 * ftfont.c (ftfont_list): Fix typo.
1f45f627 5695 (ftfont_build_basic_charsets): Don't include letters with diacritics.
aca7a3d2 5696
880820fe 56972008-02-01 Jan Djärv <jan.h.d@swipnet.se>
aca7a3d2
MB
5698
5699 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
5700
5701 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
5702 xftface_info is non-NULL.
5703
880820fe 57042008-02-01 Jan Djärv <jan.h.d@swipnet.se>
aca7a3d2 5705
1f45f627 5706 * ftfont.c (ftfont_list): Move misplaced #endif.
aca7a3d2 5707
73acf815 57082008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5709
5710 * ftfont.c (ftfont_list): Pay attention to the case that
5711 FC_CAPABILITY is not defined.
5712
73acf815 57132008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5714
5715 * xftfont.c (xftfont_open): Set charset related members to -1.
5716
1f45f627
GM
5717 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
5718 QCname.
aca7a3d2
MB
5719 (ftfont_open): Set charset related members to -1.
5720
5721 * fontset.c (Votf_script_alist): New variable.
5722 (syms_of_fontset): Initialize it.
5723 (fontset_font): Delete unused variable.
5724
5725 * fontset.h (Votf_script_alist): Extern it.
5726
1f45f627 5727 * font.c (font_find_for_lface): Optimize code.
aca7a3d2
MB
5728
5729 * font.h (font_close_object, font_merge_old_spec): Extern them.
5730
73acf815 57312008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5732
5733 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
5734 (syms_of_font): Initialize them.
5735 (font_pixel_size): Allow float value in dpi.
1f45f627
GM
5736 (font_prop_validate_type): Delete.
5737 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
5738 Change caller.
5739 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
5740 (font_prop_validate_extra): Delete.
aca7a3d2
MB
5741 (font_prop_validate_spacing): New function.
5742 (font_property_table): Add elements for all known properties.
1f45f627
GM
5743 (get_font_prop_index): Rename from check_font_prop_name. New
5744 argument FROM. Change caller.
aca7a3d2 5745 (font_prop_validate): Validate all known properties.
1f45f627 5746 (font_put_extra): Delete argument force. Change caller.
aca7a3d2
MB
5747 (font_expand_wildcards): Make it static. Fix the way of shrinking
5748 the possible range.
1f45f627 5749 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
aca7a3d2 5750 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
1f45f627 5751 Change caller.
aca7a3d2 5752 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
1f45f627
GM
5753 (font_parse_fcname): Delete argument merge. Fix parsing of point
5754 size. Don't validate properties values here. Change caller.
5755 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
aca7a3d2
MB
5756 (font_open_by_name): Delete unused variable.
5757 (Ffont_spec): Likewise. Validate property values.
5758 (Ffont_match_p): New function.
5759
5760 * font.h (QCscalable): Extern it.
1f45f627 5761 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
aca7a3d2 5762
1f45f627 5763 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
aca7a3d2 5764
1f45f627 5765 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
aca7a3d2
MB
5766 (xfont_list_pattern): New function.
5767 (xfont_list): Use xfont_list_pattern.
5768
73acf815 57692008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5770
5771 * font.h (Flist_fonts): EXFUN it.
5772
73acf815 57732008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
5774
5775 * w32term.c (w32_initialize): Add back smoothing_type and
5776 smoothing_enabled definitions.
5777
73acf815 57782008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5779
5780 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
5781 s->face->font on determining underline position.
5782
73acf815 57832008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5784
5785 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
5786 (font_has_char): Accept font-object too.
5787 (font_find_for_lface): Try at first with a size specified in face.
5788
73acf815 57892008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5790
5791 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
5792 font_open_by_name.
5793
73acf815 57942008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5795
5796 * font.h (QCspacing, QCdpi): Extern them.
5797 (enum font_spacing): New enum.
5798 (FONT_PIXEL_SIZE_QUANTUM): New macro.
5799
5800 * font.c (POINT_TO_PIXEL): Don't divice POINT by 10.
5801 (QCspacing, QCdpi): New variables.
5802 (syms_of_font): Initialize them.
5803 (font_pixel_size): New function.
5804 (font_put_extra): New function.
5805 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
5806 in FONT_EXTRA.
e9184ccb
JB
5807 (font_parse_fcname): Handle enumenrated values (e.g. bold).
5808 Fix handling font size. Add QCname property that contains only
aca7a3d2 5809 unknown properties.
1f45f627 5810 (font_score): Change argument. Change caller. Pay attention to
aca7a3d2 5811 FONT_PIXEL_SIZE_QUANTUM.
4c4475a8
GM
5812 (font_sort_entites, font_list_entities, font_find_for_lface)
5813 (font_open_for_lface, font_open_by_name): Fix handling of font size.
1f45f627 5814 (Ffont_spec): Add QCname property that contains only unknown properties.
aca7a3d2
MB
5815
5816 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
5817 include weight in listing pattern, instead check weight of each
5818 listed font. Don't include scalable in pattern. Pay attention to
5819 FONT_PIXEL_SIZE_QUANTUM.
5820
73acf815 58212008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5822
aca7a3d2 5823 * font.c (font_parse_fcname): Fix parsing of point-size.
1f45f627 5824 (font_unparse_fcname): Produce symbolic names for style properties.
aca7a3d2
MB
5825 (font_list_entities): Handle float size correctly.
5826 (font_open_by_name): Prefer `normal' property values if the name
5827 doesn't specify them.
5828
5829 * fontset.c (Finternal_char_font): Use font_get_name, not
5830 Ffont_xlfd_name.
5831
5832 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
5833 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
5834 pattern. Don't force scalable.
5835
5836 * xftfont.c (xftfont_open): For generating a name, start from
5837 96-byte buffer.
5838
880820fe 58392008-02-01 Jan Djärv <jan.h.d@swipnet.se>
aca7a3d2
MB
5840
5841 * frame.h (x_new_fontset2): Fix prototype.
5842
73acf815 58432008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5844
1f45f627 5845 * font.h (struct font_driver): Delete member parse_name.
aca7a3d2
MB
5846 (font_match_p, font_get_spec, font_parse_fcname)
5847 (font_unparse_fcname): Extern them.
1f45f627 5848 (font_get_name): Adjust prototype.
aca7a3d2
MB
5849
5850 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
5851 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
5852 (font_expand_wildcards): Fix handling ENCODING field. Avoid
5853 unnecessary checks for weight, slant, and swidth.
5854 (font_parse_fcname): New function.
5855 (font_unparse_fcname): New function.
5856 (font_parse_name): New function.
5857 (font_match_p): New function.
1f45f627 5858 (font_get_name): Change return value to Lisp string.
aca7a3d2
MB
5859 (font_get_spec): New function.
5860 (Qunspecified, Qignore_defface): Don't extern them.
5861 (font_find_for_lface): Assume that LFACE is fully specified.
5862 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
5863 object, use it for FACE.
5864 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
5865 driver->parse_name.
5866 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
5867
1f45f627
GM
5868 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
5869 prototype.
aca7a3d2 5870
1f45f627
GM
5871 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
5872 argument F. Don't call Fnew_fontset. Instead, directly call
aca7a3d2
MB
5873 make_fontset.
5874
1f45f627 5875 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
aca7a3d2 5876
1f45f627 5877 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
aca7a3d2
MB
5878 of x_new_fontset2.
5879
5880 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
5881 (Qsans__serif): New variables.
5882 (ftfont_generic_family_list): New variable.
5883 (syms_of_ftfont): Initialize the above variables.
1f45f627 5884 (ftfont_pattern_entity): Delete argument NAME.
aca7a3d2
MB
5885 (ftfont_list_generic_family): New function.
5886 (ftfont_parse_name): Delete this function.
1f45f627 5887 (ftfont_list): Try generic family only when FcFontList found no font.
aca7a3d2
MB
5888 (ftfont_list_family): Fix args to FcObjectSetBuild.
5889
5890 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
5891 object in attrs[LFACE_FONT_INDEX].
5892 (set_lface_from_font_name): Cancel all changes for font-backend.
5893 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
5894 function.
5895 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
5896 font object in QCfont attribute.
5897 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
5898 (realize_default_face) [USE_FONT_BACKEND]: Call
5899 set_lface_from_font_and_fontset.
5900
5901 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
5902 "fixed", and signal error here if no suitable font was found.
5903
5904 * xfont.c (xfont_parse_name): Delete this function.
5905
5906 * xftfont.c (xftfont_open): Change coding style of error
5907 handling. Generate fontconfig's fontname pattern.
5908
5909 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
5910 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
5911
5912 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
5913 Both args FONTSET and FONT_OBJECT must be existing ones.
5914
73acf815 59152008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aca7a3d2
MB
5916
5917 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
5918
73acf815 59192008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5920
5921 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
5922
5923 * font.h (struct font): Fix typo.
5924
5925 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
5926 XLFD_XXX_INDEX.
5927 (enum xlfd_field_mask): New enum.
1f45f627 5928 (intern_font_field): Changed argument. Change caller. If digits
aca7a3d2
MB
5929 are followed by non-digits, return a symbol.
5930 (font_expand_wildcards): New function.
5931 (font_parse_xlfd): Fix wildcard handling.
5932 (Ffont_spec): If :name is specified, reflect the info in the other
5933 properties.
5934
5935 * ftfont.c (ftfont_pattern_entity): Fix typo.
5936 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
5937 locale.
5938
73acf815 59392008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5940
5941 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
5942
1f45f627 5943 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
aca7a3d2
MB
5944 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
5945 registry doesn't specify encoding part.
5946 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
5947 (font_open_by_name): At first try parsing the name.
5948 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
5949 as Lisp symbols.
5950
5951 * fontset.c (reorder_font_vector): Pay attention to the case that
5952 the 3rd element of font_def is nil.
5953 (fontset_font): For the default fontset, append one more fontset
5954 elements for a script-based font specification. Don't add script
5955 attribute on finding a font.
5956 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
5957 font name.
5958 (fontset_ascii_font): If a font can't be opened, return nil.
5959
1f45f627 5960 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
aca7a3d2
MB
5961 (ftfont_pattern_entity): New function.
5962 (ftfont_get_cache): Assume that freetype_font_cache is already
5963 initialized.
5964 (ftfont_list): Handle the case that a file is specified in font
5965 name. Use ftfont_pattern_entity to generate entities.
5966 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
5967 (syms_of_ftfont): Initialize freetype_font_cache.
5968
5969 * xftfont.c (xftfont_open): Make the font name fontconfig's
5970 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
5971 (xftfont_close): Free font->font.name if not NULL.
5972
5973 * xfont.c (xfont_list): If script is specified for a font, return
5974 null_vector.
5975 (xfont_list_family): Declare argument type.
5976
5977 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
5978 name, set LFACE_FONT (lface) to nil.
5979
5980 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
5981 return Qnil.
5982
73acf815 59832008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5984
1f45f627 5985 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
aca7a3d2
MB
5986 (standard_args): Add "-enable-font-backend".
5987
73acf815 59882008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5989
5990 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
5991 (struct xftdraw_list, xftdraw_list): Delete them.
5992 (register_xftdraw, check_xftdraw): Delete them.
5993 (xftfont_prepare_face): Don't call register_xftdraw.
5994 (xftfont_done_face): Don't call check_xftdraw.
5995 (xftfont_draw): Get backroudn color only when with_background is
5996 nonzero.
5997
5998 * xfont.c (xfont_encode_char): Fix calculation of char2b.
5999
73acf815 60002008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6001
6002 These changes are for the new font handling codes.
6003
6004 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
6005 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
6006 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
6007 (FONTSRC, FONTOBJ): New variables.
6008 (obj): Add $(FONTOBJ).
6009 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
6010 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
6011 @LIBOTF_LIBS@.
6012 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
1f45f627 6013 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
aca7a3d2 6014
1f45f627 6015 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
aca7a3d2
MB
6016
6017 * character.h (Vscript_representative_chars): Extern it.
6018
6019 * character.c (Vscript_representative_chars): New variable.
6020 (syms_of_character): Declare it as a Lisp variable.
6021
6022 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
6023 enable_font_backend is nonzero, accept the composition method
6024 COMPOSITION_WITH_GLYPH_STRING.
6025
6026 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
6027 enumeration COMPOSITION_WITH_GLYPH_STRING.
6028
aca7a3d2
MB
6029 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
6030 members clip_x, clip_y, clip_width, and clip_height.
6031 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
6032
6033 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
6034 --enable-font-backend. Call syms_of_font.
6035
6036 * fns.c (assoc_no_quit): New function.
6037
6038 * fontset.h (FONT_INFO_FROM_FACE): New macro.
6039 (face_for_font, new_fontset_from_font)
6040 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
6041
6042 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
6043 (fontset_font, fontset_ascii, face_for_char)
6044 (make_fontset_for_ascii_face, Ffont_info)
6045 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
6046 is nonzero, use font-backend mechanism.
6047 (find_font_encoding): Make it non-static.
6048 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
6049 New functions.
6050
6051 * frame.h (struct frame): New members resx and resy.
6052 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
6053 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
6054
6055 * frame.c [USE_FONT_BACKEND]: Include "font.h".
1f45f627 6056 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
aca7a3d2
MB
6057
6058 * lisp.h (assoc_no_quit): Extern it.
6059
6060 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
6061 Through out the file, use FONT_INFO_FROM_FACE instead of
6062 FONT_INFO_FROM_ID, use get_per_char_metric instead of
6063 rif->per_char_metric.
6064 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
6065 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
6066 (get_glyph_face_and_encoding, fill_composite_glyph_string)
6067 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
6068 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
6069 nonzero, use font-backend mechanism.
6070 (get_per_char_metric): New function.
6071
6072 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
6073 (set_lface_from_font_name)
6074 (set_font_frame_param, free_realized_face)
6075 (prepare_face_for_display, clear_face_gcs)
6076 (Finternal_set_font_selection_order, realize_x_face)
6077 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
6078 font-backend mechanism.
1f45f627 6079 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
aca7a3d2
MB
6080 (load_face_font) [USE_FONT_BACKEND]: Abort.
6081 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
1f45f627 6082 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
aca7a3d2
MB
6083
6084 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
6085 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
6086 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
6087 nonzero, register all available font drivers. Call
6088 x_default_font_parameter for deciding a font.
6089 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
6090
6091 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
6092 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
6093 (x_set_glyph_string_clipping_exactly)
6094 (x_compute_glyph_string_overhangs)
6095 (x_draw_glyph_string_foreground)
6096 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
6097 (x_free_frame_resources) [USE_FONT_BACKEND]: If
6098 enable_font_backend is nonzero, use font-backend mechanism.
6099 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
6100
73acf815 61012008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6102
fcb314b2 6103 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
aca7a3d2
MB
6104 system_eol_type.
6105 (syms_of_coding): Initialize system_eol_type.
6106
fcb314b2
GM
6107 * process.c (Fset_process_coding_system): Inherit system's eol
6108 format if necessary.
aca7a3d2 6109
73acf815 61102008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aca7a3d2
MB
6111
6112 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
6113
73acf815 61142008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6115
6116 * coding.c (decode_eol): Pay attention to buffer relocation in
6117 del_range_2.
6118 (decode_coding): Call decode_eol before restoring undo_list.
6119
73acf815 61202008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6121
6122 * charset.c (Fdefine_charset_internal): Fix setting of
6123 emacs_mule_bytes.
6124
73acf815 61252008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6126
6127 * keyboard.c (read_char): Check if C is a character or not before
6128 looking up Vkeyboard_translate_table.
6129
73acf815 61302008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6131
6132 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
6133 condition to terminate the loop.
6134
73acf815 61352008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6136
6137 * coding.c (produce_composition): Compare charbuf[i] instead of
6138 args[i] against 0.
6139 (Fterminal_coding_system): Use EQ to compare Lisp objects.
6140
73acf815 61412008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6142
6143 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
6144 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
6145 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
6146 detect_coding.
6147 (emacs_mule_char): Handle old style (Emacs 20) component character
6148 of a composition.
4c4475a8
GM
6149 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
6150 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
6151 composition rule.
aca7a3d2
MB
6152 (decode_coding_emacs_mule): Handle invalid bytes correctly.
6153
73acf815 61542008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6155
6156 * coding.c (encode_coding_ccl): Allocate destination dynamically
6157 when necessary.
6158
73acf815 61592008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6160
6161 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
6162 the loop. When quitted, show a proper error message.
6163
73acf815 61642008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6165
aca7a3d2
MB
6166 * xterm.c (x_set_glyph_string_clipping_exactly): Set
6167 src->clip_head and src->clip_tail temporarily instead of src->hl.
6168
6169 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
6170 character sequence.
6171 (Fccl_execute_on_string): Use ASET, not XSET.
6172
73acf815 61732008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6174
1f45f627 6175 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
aca7a3d2 6176
73acf815 61772008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6178
6179 * coding.c (decode_coding): Fix the condition of terminating the
6180 decoding loop.
6181
73acf815 61822008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6183
6184 * data.c (Faset): On setting a character bigger than 255 in a
1f45f627 6185 unibyte string, signal an error instead of make the string multibyte.
aca7a3d2 6186
73acf815 61872008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6188
6189 * charset.c (map_charset_chars): Fix for ascii-compatible charset
6190 made by a mapping table.
6191
73acf815 61922008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6193
6194 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
6195 not.
6196 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
6197 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
6198
6199 * xterm.c (x_draw_composite_glyph_string_foreground): Check
6200 s->face is NULL or not.
6201
73acf815 62022008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6203
6204 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
6205 (x_draw_glyph_string): Fix drawing of right_overhang and
6206 left_overhang around/on cursor.
6207
1f45f627 6208 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
aca7a3d2 6209
73acf815 62102008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6211
6212 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
6213
73acf815 62142008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6215
4c4475a8
GM
6216 * coding.c (Fdefine_coding_system_internal)
6217 (Fdefine_coding_system_alias): Avoid a duplicated element in
6218 Vcoding_system_alist.
aca7a3d2 6219
73acf815 62202008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6221
6222 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
6223
fcb314b2 6224 * coding.c (Qcoding_system_define_form): New variable.
aca7a3d2
MB
6225 (syms_of_coding): Intern and staticpro it.
6226 (Fcoding_system_p): Check Qcoding_system_define_form.
1f45f627 6227 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
aca7a3d2
MB
6228
6229 * coding.h (CODING_SYSTEM_P): If ID is not available, call
6230 Fcoding_system_p.
6231 (CHECK_CODING_SYSTEM): If ID is not available, call
6232 Fcheck_coding_system.
4c4475a8
GM
6233 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
6234 Try also Fcheck_coding_system.
aca7a3d2 6235
73acf815 62362008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6237
aca7a3d2
MB
6238 * coding.c (code_conversion_restore): GCPRO arg.
6239
73acf815 62402008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6241
6242 * character.c (lisp_string_width): Check multibyteness of STRING.
6243
73acf815 62442008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aca7a3d2
MB
6245
6246 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
6247 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
6248 (decode_mac_font_name): Use decode_coding_c_string instead of
6249 decode_coding.
6250 (x_load_font): Initialize fontp->fontset to -1. Set
6251 fontp->encoding_type.
6252
73acf815 62532008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6254
6255 * search.c (search_buffer): Give up BM search on case-fold-search
6256 if one of a target character has a case-equivalence of different
6257 byte length even if that target charcter is an ASCII.
1f45f627
GM
6258 (simple_search): Fix calculation of byte length of matched text.
6259 (boyer_moore): Fix handling of case-equivalent multibyte characters.
aca7a3d2 6260
73acf815 62612008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6262
6263 * coding.c (decode_coding): Fix handling of invalid bytes.
6264
73acf815 62652008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6266
6267 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
6268 Unicode characters.
6269
73acf815 62702008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6271
6272 * coding.c (encode_coding_object): If a pre-write-conversion
6273 function makes a new buffer, kill it.
6274
73acf815 62752008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6276
6277 * coding.c (QCascii_compatible_p): New variable.
6278 (syms_of_coding): Initialize it.
4c4475a8
GM
6279 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
6280 calling string_char.
aca7a3d2
MB
6281 (record_conversion_result): Add `default:' case.
6282 (coding_charset_list): Delete unused variable `coding_type'.
6283 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
6284 property in the plist of the coding system.
6285 (Fcoding_system_put): Check QCascii_compatible_p.
6286
73acf815 62872008-02-01 Miles Bader <miles@gnu.org>
aca7a3d2
MB
6288
6289 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
6290 removed calculation of frame `f', as it's now used.
6291
73acf815 62922008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6293
1f45f627 6294 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
aca7a3d2
MB
6295 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
6296 (UNIDATA): New variable.
6297 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
6298 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
6299 $(RUN_TEMACS) unconditionally.
6300
73acf815 63012008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6302
1f45f627 6303 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
aca7a3d2
MB
6304 (admindir): New variable.
6305 ($(lispsource)international/charprop.el): New target.
6306
73acf815 63072008-02-01 Miles Bader <miles@gnu.org>
aca7a3d2 6308
1f45f627 6309 * character.c (chars-in-region): Remove obsolete function.
aca7a3d2
MB
6310 (syms_of_character): Remove its initialization.
6311
73acf815 63122008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
aca7a3d2
MB
6313
6314 * w32select.c (validate_coding_system)
6315 (setup_windows_coding_system): New functions.
6316 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
6317 setup_windows_coding_system.
6318 (setup_config, Fw32_get_clipboard_data): Use
6319 validate_coding_system.
6320 (Fx_selection_exists): Move call to setup_config to a place
1f45f627 6321 where signals are allowed.
aca7a3d2
MB
6322
6323 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
6324 (Fcheck_coding_system): Add declarations.
6325
73acf815 63262008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6327
1f45f627 6328 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
aca7a3d2 6329
73acf815 63302008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aca7a3d2
MB
6331
6332 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
6333 string as the second argument for x_new_fontset.
6334
73acf815 63352008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6336
6337 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
6338 (encode_coding_object): Use safe_call instead of call2.
6339
73acf815 63402008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6341
1f45f627 6342 * fontset.c (Fset_fontset_font): Check family element of a given vector.
aca7a3d2
MB
6343
6344 * Makefile.in (lisp): Include charprop.el.
6345
73acf815 63462008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aca7a3d2
MB
6347
6348 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
6349 Not sure if it's unnecessary.
6350
73acf815 63512008-02-01 Steven Tamm <steventamm@mac.com>
aca7a3d2
MB
6352
6353 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
6354 some possibly unnecessary fontset checking code that crashed
1f45f627 6355 when creating a new frame.
aca7a3d2 6356
73acf815 63572008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6358
6359 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
6360 lookup_face.
6361
6362 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
6363
1f45f627 6364 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
aca7a3d2 6365
73acf815 63662008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6367
73acf815 6368 * coding.c: Cancel the change done in HEAD on 2008-02-01.
aca7a3d2
MB
6369 (coding_charset_list): New function.
6370
6371 * coding.h (coding_charset_list): Extern it.
6372
73acf815 63732008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6374
6375 * fontset.c (Fset_fontset_font): Call find_font_encoding with
6376 concatenation of family and registry.
6377
73acf815 63782008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6379
6380 * character.h (BYTE8_STRING): Fix typo.
6381
6382 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
6383 string to multibyte (sync to HEAD).
6384
6385 * casefiddle.c (casify_region): Handle changes in byte-length
6386 using replace_range_2 (sync to HEAD).
6387
73acf815 63882008-02-01 Andreas Schwab <schwab@suse.de>
aca7a3d2
MB
6389
6390 * chartab.c (map_char_table): GCPRO table and arg.
6391
73acf815 63922008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6393
6394 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
6395 already at limit.
6396
73acf815 63972008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6398
6399 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
6400 instead of fast_c_string_match_ignore_case.
1f45f627 6401 (find_font_encoding): Change argument to Lisp_Object. Use
aca7a3d2 6402 fast_string_match_ignore_case instead of
1f45f627 6403 fast_c_string_match_ignore_case. Change caller.
aca7a3d2 6404
73acf815 64052008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6406
6407 * xdisp.c (get_next_display_element): In unibyte case, decide to
6408 display in octal form by checking a chacter by
6409 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
6410
1f45f627 6411 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
aca7a3d2
MB
6412
6413 * character.c (unibyte_has_multibyte_table): New variable.
6414
6415 * character.h (unibyte_has_multibyte_table): Extern it.
6416 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
6417
73acf815 64182008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6419
6420 * coding.c (encode_coding_iso_2022): Fix handling of charset
6421 annotation.
6422
73acf815 64232008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6424
6425 * coding.c (setup_coding_system): If coding_system is nil, use
6426 Qundecided.
6427 (Fterminal_coding_system): Return nil if terminal coding system is
6428 `undecided'.
6429 (syms_of_coding): Define coding-system `undecided' here. Setup
6430 terminal_coding as `undecided'.
6431
73acf815 64322008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6433
6434 * xdisp.c (message_dolog, set_message_1): Call
6435 unibyte_char_to_multibyte with arg type int.
6436
aca7a3d2
MB
6437 * lread.c (read1): Fix reading of a char-table.
6438
6439 * print.c (print_object): Include sub char-table in cicularities
6440 detection.
6441
73acf815 64422008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6443
6444 * keymap.c (where_is_internal_2): Fix for the case that KEY is a
1f45f627 6445 cons. Append the found sequences in car of ARGS instead of prepending.
aca7a3d2 6446
73acf815 64472008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6448
6449 * fileio.c (report_file_error): Make a unibyte string from
6450 strerror (errorno).
6451 (Fsubstitute_in_file_name): Fix the arg to
6452 unibyte_char_to_multibyte. It is evaluated twice.
6453
73acf815 64542008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6455
6456 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
6457
73acf815 64582008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6459
6460 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
6461 BOM is not found.
4c4475a8
GM
6462 (detect_coding, detect_coding_system): Optimization for ISO-2022
6463 when no 8-bit data is found.
aca7a3d2 6464
73acf815 64652008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
6466
6467 * w32fns.c (x_to_w32_font): Update to use new coding struct.
6468
73acf815 64692008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6470
4c4475a8
GM
6471 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
6472 CHARS.
aca7a3d2 6473
73acf815 64742008-02-01 Steven Tamm <steventamm@mac.com>
aca7a3d2
MB
6475
6476 * macterm.c (mac_encode_char): Add charset argument and update
6477 to use encoding_type.
2a2e8de7 6478 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
1f45f627
GM
6479 switch to pure fontset.
6480 (decode_mac_font_name): Temporarily remove decoding.
6481 (x_font_name_to_mac_font_name): Temporarily remove encoding.
6482 (x_load_font): Temporarily remove encoding.
aca7a3d2 6483
73acf815 64842008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6485
6486 * xfaces.c (Fface_font): If frame is not on a window system,
6487 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
6488 refer to face->font.
6489 (split_font_name_into_vector, build_font_name_from_vector)
6490 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
6491 whne HAVE_WINDOW_SYSTEM is defined.
6492
73acf815 64932008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6494
6495 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
6496 (x_produce_glyphs): Fix setting of members of cmp in case
1f45f627 6497 cmp->glyph_len is zero.
aca7a3d2 6498
1f45f627 6499 * fontset.c (Fset_fontset_font): Fix docstring.
aca7a3d2
MB
6500 (Ffontset_info): Make it backward compatible. New arg ALL.
6501
73acf815 65022008-02-01 Kim F. Storm <storm@cua.dk>
aca7a3d2
MB
6503
6504 * process.c (read_process_output): Grow decoding_buf when needed;
6505 this could cause a crash in allocate_string and compact_small_strings.
6506
73acf815 65072008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6508
1f45f627 6509 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
aca7a3d2 6510
73acf815 65112008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6512
6513 * coding.c (setup_coding_system): Set coding->common_flags
6514 correctly for raw-text.
6515 (consume_chars): On encoding unibyte text by raw-text, don't check
6516 multibyte form.
1f45f627 6517 (encode_coding): On encoding by raw-text, never use translation tables.
aca7a3d2
MB
6518
6519 * fileio.c (e_write): Short cut for the case of no encoding.
6520
73acf815 65212008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6522
4c4475a8
GM
6523 * coding.c (detect_coding, detect_coding_system): Delete unused
6524 variables.
aca7a3d2 6525
73acf815 65262008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6527
6528 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
6529 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
6530
73acf815 65312008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6532
6533 * coding.c (Ffind_coding_systems_region_internal): Include
6534 raw-text and no-conversion in the result.
6535
73acf815 65362008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6537
1f45f627 6538 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
aca7a3d2
MB
6539 (load_font_get_repertory): Delete unnecessary check of ENCODING of
6540 FONT_DEF.
6541 (font_def_arg, add_arg, from_arg, to_arg): New args.
1f45f627 6542 (set_fontset_font): Change argument.
aca7a3d2
MB
6543 (Fset_fontset_font): Fix for the case that TARGET is a script
6544 name and charset name.
6545 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
6546
73acf815 65472008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6548
1f45f627
GM
6549 * fontset.c (fontset_font): Rename from fontset_face. Change return
6550 value.
4c4475a8
GM
6551 (face_suitable_for_char_p, face_for_char): Adjust for the change
6552 of fontset_font.
aca7a3d2
MB
6553 (make_fontset_for_ascii_face): Fix setting of the fontset element
6554 for ASCII.
6555 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
6556 to get a font name.
1f45f627 6557 (Ffontset_info): Adjust for the change of fontset_font.
aca7a3d2 6558
fcb314b2 6559 * coding.c (emacs_mule_char): Check invalid code more regidly.
aca7a3d2
MB
6560
6561 * character.h (LEADING_CODE_LATIN_1_MIN)
6562 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
6563
73acf815 65642008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6565
fcb314b2 6566 * editfns.c (check_translation): New function.
aca7a3d2
MB
6567 (Ftranslate_region_internal): Handle M:N mapping.
6568
73acf815 65692008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6570
6571 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
6572
73acf815 65732008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6574
6575 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
6576 goto invalid_code.
6577 (decode_coding_iso_2022): Fix handling of invalid designation.
6578
6579 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
6580 after calling code_conversion_save.
6581
73acf815 65822008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6583
6584 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
6585
6586 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
6587
6588 * fontset.c: Include "intervals.h".
6589 (fontset_face): Fix comparing of Lisp_Objects.
4c4475a8
GM
6590 (free_face_fontset, new_fontset_from_font_name): Fix
6591 Lisp_Object/int mixup.
aca7a3d2
MB
6592
6593 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
6594
6595 * coding.c: Add many prototypes for static functions.
6596 (get_translation_table): Allow max_lookup to be NULL.
2a2e8de7 6597 (decode_coding, Ffind_coding_systems_region_internal)
4c4475a8
GM
6598 (Funencodable_char_position, Fcheck_coding_systems_region): Call
6599 get_translation_table with max_lookup NULL.
aca7a3d2 6600
73acf815 66012008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6602
6603 * coding.c (get_translation_table): Declare it as Lisp_Object.
6604 (LOOKUP_TRANSLATION_TABLE): New macro.
4c4475a8
GM
6605 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
6606 instead of CHAR_TABLE_REF.
aca7a3d2 6607
73acf815 66082008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6609
1f45f627 6610 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
aca7a3d2
MB
6611 annotation data format.
6612 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
1f45f627 6613 Change arguments FROM and TO to single argument NCHARS. Change caller.
4c4475a8 6614 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
aca7a3d2 6615 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
4c4475a8
GM
6616 (decode_coding_ccl, decode_coding_charset): Pay attention to
6617 coding->charbuf_used.
aca7a3d2
MB
6618 (get_translation): New function.
6619 (produce_chars): New arguments translation_table and last_block.
6620 Translate characters here. Return number of carryover chars.
1f45f627
GM
6621 Change caller.
6622 (produce_composition): New argument pos. Change caller.
6623 Adjust for the change of annotation data format.
aca7a3d2
MB
6624 (produce_charset, produce_annotation): Likewise.
6625 (decode_coding, encode_coding): Don't call translate_chars.
1f45f627
GM
6626 (consume_chars): New arg translation_table. Change caller.
6627 (translate_chars): Delete.
6628 (syms_of_coding): Make translation-table's number of extra slots 2.
aca7a3d2 6629
73acf815 66302008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6631
6632 * search.c (simple_search): Fix setting this_pos_byte in backward
6633 search.
6634
6635 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
6636 byte sequence.
6637 (detect_coding_ccl): Fix setting of the variable valids.
6638
73acf815 66392008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6640
6641 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
6642
6643 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
6644
1f45f627 6645 * editfns.c (Ftranslate_region_internal): Rename from
aca7a3d2
MB
6646 Ftranslate_region. Accept a char-table in TABLE.
6647 (syms_of_editfns): Defsubr Stranslate_region_internal.
6648
6649 * xfaces.c (set_lface_from_font_name): If a font is specified for
6650 a frame, generate a fontset from the font.
6651 (build_scalable_font_name): If the scalable font is requested for
6652 a specific size, don't change that size.
6653 (try_font_list): Try a scalable font also in the case that a
1f45f627 6654 pattern string is specified.
aca7a3d2 6655
73acf815 66562008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6657
6658 * xfaces.c (Fface_font): New optional arg CHARACTER.
6659
73acf815 66602008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6661
6662 * charset.h (CHARSET_OFFSET): New macro.
6663
73acf815 66642008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6665
6666 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
6667
6668 * fontset.c (fontset_face): Handle the case that repertory is a
6669 char-table.
6670 (find_font_encoding): Return nil for unknown encoding.
6671 (Fset_fontset_font): Ignore a font of unknown encoding.
6672
73acf815 66732008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6674
1f45f627 6675 * keymap.c (describe_vector): Handle default value of a char table.
aca7a3d2
MB
6676
6677 * fontset.c (fontset_face): Handle fallback fonts correctly.
6678 (Ffontset_info): Return infomation about fallback fonts.
6679
73acf815 66802008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6681
6682 * fontset.c (FONTSET_DEFAULT): New macro.
4c4475a8 6683 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
aca7a3d2
MB
6684 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
6685 the case that it is nil.
6686 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
1f45f627 6687 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
aca7a3d2
MB
6688
6689 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
6690 subset or superset.
6691
73acf815 66922008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6693
6694 * emacs.c (main): Call init_charset after syms_of_XXX.
6695
1f45f627 6696 * charset.c (Vcharset_map_directory): Delete.
1f204af3 6697 (Vcharset_map_path): New variable.
aca7a3d2
MB
6698 (load_charset_map_from_file): Use Vcharset_map_path instead.
6699 (init_charset): Initialize Vcharset_map_path.
6700 (syms_of_charset): Delete declaration of "charset-map-directory",
6701 add declaration of "charset-map-path".
6702
73acf815 67032008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6704
4c4475a8
GM
6705 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
6706 ASCII only string.
aca7a3d2
MB
6707
6708 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
6709
6710 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
6f69e89b 6711 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
aca7a3d2 6712
73acf815 67132008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6714
6715 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
6716
6717 * coding.c (QCmnemonic, QCdefalut_char)
6718 (QCdecode_translation_table, QCencode_translation_table)
6719 (QCpost_read_conversion, QCpre_write_conversion): New variables.
6720 (get_translation_table): Return a list of translation tables if
6721 necessary.
6722 (decode_coding): Call get_translation_table with ENCODEP 0.
6723 (char_encodable_p): If translation_table is non-nil, always call
6724 translate_char.
6725 (Fdefine_coding_system_internal): Accept list of translation
6726 tables as :encode-translation-table and :decode-translation-table.
6727 (Fcoding_system_put): New function.
6728 (syms_of_coding): Declare new symbols. Defsubr
6729 Scoding_system_put.
4c4475a8
GM
6730 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
6731 typically JISX0212.
aca7a3d2
MB
6732
6733 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
6734 when the charset is superset type.
6735
6736 * character.c (translate_char): Accept list of translation tables.
6737
73acf815 67382008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6739
1f45f627 6740 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
aca7a3d2
MB
6741 (CODING_ATTR_TRANS_TBL): New macro.
6742
6743 * coding.c (get_translation_table): New function.
6744 (translate_chars): Fix the bug of skipping annotation data.
4c4475a8
GM
6745 (decode_coding, encode_coding): Utilize get_translation_table.
6746 (char_encodable_p, Funencodable_char_position): Translate char if
6747 necessary.
6748 (Ffind_coding_systems_region_internal)
6749 (Fcheck_coding_systems_region): Setup translation table for encode
6750 in a coding system attribute vector in advance.
aca7a3d2
MB
6751 (Fdefine_coding_system_internal): Allow a symbol as translation
6752 table. For shift-jis type coding system, allow 4th charset.
6753
73acf815 67542008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6755
6756 * coding.c (decode_coding_sjis): Check the first byte rigidly.
6757
6758 * xdisp.c (get_next_display_element): Pass -1 as POS to
6759 FACE_FOR_CHAR if displaying a C-string.
6760
73acf815 67612008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6762
6763 * composite.c (get_composition_id): Handle xoff and yoff in a
6764 composition rule.
6765
6766 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
6767 (struct composition): New member lbearing and rbearing.
6768
6769 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
6770 (x_get_glyph_overhangs): Handle a composition glyph.
1f45f627 6771 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
aca7a3d2
MB
6772
6773 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
6774 composition glyph.
6775
73acf815 67762008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6777
6778 * print.c: Include charset.h.
6779 (Vprint_charset_text_property): New variable.
6780 (Qdefault): Extern it.
6781 (PRINT_STRING_NON_CHARSET_FOUND)
6782 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
6783 (print_check_string_result): New variable.
6784 (print_check_string_charset_prop): New function.
6785 (print_prune_charset_plist): New variable.
6786 (print_prune_string_charset): New function.
6787 (print_object): Call print_prune_string_charset if
6788 Vprint_charset_text_property is not t.
6789 (print_interval): Print nothing if itnerval->plist is nil.
6790 (syms_of_print): Declare Vprint_charset_text_property as a lisp
6791 variable. Init and staticpro print_prune_charset_plist.
6792
73acf815 67932008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6794
6795 * fontset.c (new_fontset_from_font_name): Use the specified font
6796 for all characters in the new fontset.
6797
6798 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
6799 OBJECT args.
6800
6801 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
6802 OBJECT args for composition too.
6803
6804 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
6805 OBJECT args.
6806
73acf815 68072008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6808
6809 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
6810
1f45f627 6811 * fontset.c (reorder_font_vector): Adjust for the change of
aca7a3d2 6812 FONT_DEF format.
1f45f627 6813 (fontset_face): New arg id. Change caller.
aca7a3d2 6814 (face_for_char): New args pos and object.
1f204af3 6815 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
aca7a3d2
MB
6816 (fs_query_fontset): Check NAME by Fassoc too.
6817 (Fset_fontset_font): Allow non-XLFD font name.
1f45f627 6818 (Ffontset_info): Adjust for the change of FONT_DEF format.
aca7a3d2 6819
1f45f627 6820 * fontset.h (face_for_char): Adjust prototype.
aca7a3d2 6821
4c4475a8
GM
6822 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
6823 (append_space, extend_face_to_end_of_line)
6824 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
6825 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
aca7a3d2
MB
6826
6827 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
6828 POS and OBJECT args.
6829
6830 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
6831 POS and OBJECT args.
6832
73acf815 68332008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
6834
6835 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
6836 of GlobalAlloc'ed memory.
6837
73acf815 68382008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6839
6840 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
6841
6842 * charset.h (charset_table_used): Delete extern.
6843
6844 * charset.c (charset_table_used): Make it static.
6845 (map_charset_chars): Fix args to c_function with.
6846
6847 * chartab.c (map_sub_char_table_for_charset): Fix args to
6848 c_function with.
6849
6850 * coding.h (enum coding_result_code): Delete
6851 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
6852
6853 * coding.c (Qinsufficient_source, Qinconsistent_eol)
1f45f627 6854 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
aca7a3d2
MB
6855 (Vlast_code_conversion_error): New variables.
6856 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
6857 (ONE_MORE_BYTE): Record error if any instead of signaling an
6858 error. If non-ASCII multibyte char is found, return the negative
6859 value of the code. All callers changed to check it.
6860 (ONE_MORE_BYTE_NO_CHECK): Likewise.
1f45f627
GM
6861 (record_conversion_result): New function. Change all codes setting
6862 coding->result to call this function.
4c4475a8
GM
6863 (detect_coding_utf_8, decode_coding_utf_8)
6864 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
6865 Don't use the local variable incomplete.
aca7a3d2 6866 (emacs_mule_char): Change the second arg to `const'.
aca7a3d2
MB
6867 (decode_coding): Fix of flushing out unprocessed data.
6868 (make_conversion_work_buffer): Fix making of a work buffer.
2a2e8de7 6869 (decode_coding_object): Return coding->dst_object.
aca7a3d2
MB
6870
6871 * fontset.c (set_fontset_font): Fix args.
6872
6873 * lisp.h (CHARACTERBITS): Define as 22.
6874
6875 * process.c (send_process): Be sure to set coding->src_multibyte.
6876
6877 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
6878
73acf815 68792008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6880
6881 * xdisp.c (handle_auto_composed_prop): Give limit to
6882 Fnext_single_char_property_change.
6883
73acf815 68842008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6885
424c157f 6886 * composite.c (syms_of_composite): Don't make the composition hash
1f45f627 6887 table weak.
aca7a3d2
MB
6888
6889 * fontset.c (Fset_fontset_font): Fix docstring.
6890
6891 * lisp.h (detect_coding_system): Adjust prototype.
6892
6893 * fileio.c (kill_workbuf_unwind): Delete this function.
6894 (Finsert_file_contents): Adjust the call of detect_coding_system.
6895 Get conversion_buffer by code_conversion_save. Use the macor
6896 CODING_MAY_REQUIRE_DECODING. After decoding, update
6897 coding_system.
6898
6899 * coding.h (make_conversion_work_buffer): Delete extern.
6900 (code_conversion_save): Extern it.
6901
6902 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
1f45f627 6903 (CODING_GET_INFO): Delete argument eol_type. Change callers.
aca7a3d2
MB
6904 (decode_coding_utf_8): Don't do eol converion.
6905 (detect_coding_utf_16): Check coding->src_chars, not
1f45f627 6906 coding->src_bytes. Add heuristics for those that have no signature.
4c4475a8
GM
6907 (decode_coding_emacs_mule, decode_coding_iso_2022)
6908 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
6909 Don't do eol converion.
aca7a3d2
MB
6910 (adjust_coding_eol_type): Return a new coding system.
6911 (detect_coding): Don't detect eol. Fix for utf-16 detection.
6912 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
6913 each change.
6914 (decode_coding): Pay attention to undo_list. Do eol convesion for
6915 all types of coding-systems (if necessary).
6916 (Vcode_conversion_work_buf_list): Delete it.
1f45f627 6917 (Vcode_conversion_reused_workbuf): Rename from
aca7a3d2
MB
6918 Vcode_conversion_reused_work_buf.
6919 (Vcode_conversion_workbuf_name): New variable.
6920 (reused_workbuf_in_use): New variable.
6921 (make_conversion_work_buffer): Delete the arg DEPTH.
4c4475a8 6922 (code_conversion_restore): Change argument to cons.
1f45f627
GM
6923 (code_conversion_save): Delete the argument BUFFER. Change callers.
6924 (detect_coding_system): New argument src_chars. Change callers.
aca7a3d2
MB
6925 Fix for utf-16 detection.
6926 (init_coding_once): Don't use ISO_carriage_return.
1f45f627 6927 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
aca7a3d2
MB
6928 reused_workbuf_in_use.
6929
73acf815 69302008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6931
6932 * keymap.c (store_in_keymap): Pay attention to the case that idx
6933 is a cons specifying a character range.
6934
73acf815 69352008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6936
6937 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
6938 HANDLED_RECOMPUTE_PROPS.
6939
6940 * coding.c (Fdefine_coding_system_internal): Fix checking of
6941 ascii compatibility.
6942
73acf815 69432008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6944
1f45f627 6945 * charset.c (find_charsets_in_text): Delete unused locale variable.
aca7a3d2
MB
6946 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
6947
6948 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
6949 Resync charset_list to Vemacs_mule_charset_list.
6950
6951 * keymap.c (store_in_keymap): Pay attention to the case that idx
6952 is a cons specifying a character range.
6953
73acf815 69542008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6955
6956 * composite.c (update_compositions): Bind inhibit-read-only, etc
6957 to t before calling remove-list-of-text-properties.
6958
6959 * print.c (print_object): Always print ASCII chars as is.
6960
73acf815 69612008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6962
1f45f627 6963 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
aca7a3d2 6964
4c4475a8
GM
6965 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
6966 is a char table.
aca7a3d2 6967
73acf815 69682008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6969
1f45f627 6970 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
aca7a3d2 6971
73acf815 69722008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6973
6974 * xfaces.c (set_lface_from_font_name): Fix for the case that
6975 FONTNAME is not fontset name.
6976
73acf815 69772008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6978
6979 * fns.c (base64_encode_1): Fix previous change.
6980
73acf815 69812008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6982
6983 * fontset.c (set_fontset_font): New function.
6984 (Fset_fontset_font): If a font is specified for a charset, use
6985 map_charset_chars to store the font spec in a fontset.
6986
73acf815 69872008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6988
1f204af3 6989 * fontset.c (fontset_face): Create a fallback fontset on demand.
aca7a3d2
MB
6990 (make_fontset): Don't create a fallback fontset here.
6991 (free_face_fontset): Free a fallback fontset (if any) too.
6992 (n_auto_fontsets): Delete this variable.
6993 (auto_fontset_alist): New variable.
6994 (new_fontset_from_font_name): Check auto_fontset_alist.
6995 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
6996 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
6997 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
6998 Defsubr Sfontset_list_all.
6999
73acf815 70002008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7001
7002 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
7003
73acf815 70042008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7005
7006 * fontset.c (Fnew_fontset): Check NAME more rigidly.
7007
73acf815 70082008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7009
7010 * editfns.c (Fgoto_char): Fix docstring.
7011
73acf815 70122008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7013
7014 * insdel.c (insert_from_gap): Adjust intervals correctly.
7015
73acf815 70162008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
7017
7018 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
7019 (pfnGetFontUnicodeRanges): New dynamically loaded function.
7020 (w32_initialize): Try to load it.
7021 (x_get_font_repertory): Use it if available.
7022 (w32_encode_char): Add shortcut for unicode output.
7023
7024 * w32fns.c (w32_load_system_font): Default charset to -1.
7025 (x_to_w32_charset): Match all fonts for unicode.
1f45f627 7026 (w32_to_x_charset): New parameter matching. Don't return partial
aca7a3d2
MB
7027 or wildcard charsets.
7028 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
7029 (w32_codepage_for_font): Return CP_UNICODE for unicode.
7030 (w32_to_x_font): Match charset to real charset.
7031 (enum_font_cb2): Always list unicode versions.
7032
7033 * makefile.w32-in (temacs): Increase EMHEAP.
7034
73acf815 70352008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
7036
7037 * w32term.c (w32_encode_char): New charset parameter.
7038 font_info.encoding becomes encoding_type.
1f45f627 7039 (x_get_font_repertory): New function. Warning: stub only!
aca7a3d2
MB
7040 (x_new_font): Return quickly if font already set.
7041 (x_new_fontset): fontsetname parameter is Lisp_Object.
2a2e8de7
JB
7042 Use new fs_query_fontset. Try new_fontset_from_font_name.
7043 Use fontset_name for return value.
aca7a3d2
MB
7044
7045 * w32term.h: Declare x_get_font_repertory.
7046
7047 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
1f45f627 7048 place of find_charset_in_text. Use encode_coding_object in place
aca7a3d2
MB
7049 of encode_coding.
7050 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
7051 decode_coding.
7052
7053 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
7054 of x_new_fontset.
7055 (w32_load_system_font): Initialize charset as unicode.
7056 font_info.encoding becomes encoding_type.
1f45f627
GM
7057 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
7058 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
aca7a3d2
MB
7059 (syms_of_w32fns): Set get_font_repertory_func.
7060
1f45f627 7061 * w32console.c: Include character.h. Use terminal_encode_buffer
aca7a3d2 7062 from term.c.
1f45f627 7063 (write_glyphs): Use new version of encode_terminal_code. Use
aca7a3d2
MB
7064 encode_coding_object in place of encode_coding.
7065
7066 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
7067 encoding becomes encoding_type.
7068
7069 * term.c (terminal_encode_buffer): Make externally visible.
7070
7071 * makefile.w32-in: Add character.h dependancies.
7072 (character.o, chartab.o): New targets.
7073
73acf815 70742008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7075
7076 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
1f45f627 7077 CODING_ID_EOL_TYPE.
aca7a3d2 7078
73acf815 70792008-02-01 Andreas Schwab <schwab@suse.de>
aca7a3d2
MB
7080
7081 * coding.c (produce_chars): Revert last change.
7082
73acf815 70832008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7084
7085 * charset.h (charset_unicode): Extern it.
7086
7087 * charset.c (string_xstring_p): Check by (C >= 0x100).
1f45f627 7088 (find_charsets_in_text): Change format of the arc CHARSETS. New
aca7a3d2 7089 arg MULTIBYTE.
1f45f627 7090 (Ffind_charset_region, Ffind_charset_string): Adjust for the
aca7a3d2
MB
7091 change of find_charsets_in_text.
7092 (Fsplit_char): Fix doc. Never return unknown.
7093
7094 * chartab.c (char_table_translate): Use CHARACTERP, not INETEGERP.
7095
7096 * coding.c (Fdefine_coding_system_alias): Update
7097 Vcoding_system_list.
7098
7099 * fontset.c (load_font_get_repertory): Pay attention to the case
7100 that ENCODING of a font is specified by a char-table.
7101
7102 * xterm.c (x_get_font_repertory): Handle the case that the
7103 encoding of font is other than Unicode.
7104
73acf815 71052008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7106
7107 * term.c (encode_terminal_code): Don't handle glyph-table. Check
7108 if a character is encodable by the terminal coding system. If
7109 not, produces proper number of `?'s. Update
7110 terminal_encode_buffer and terminal_encode_buf_size if necessary.
7111 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
7112
73acf815 71132008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7114
7115 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
7116 variables.
1f45f627 7117 (encode_terminal_code): Change argument. Encode multiple
aca7a3d2
MB
7118 characters at once. Store the result of encoding in
7119 terminal_encode_buffer.
4c4475a8
GM
7120 (write_glyphs, insert_glyphs): Adjust for the change of
7121 encode_terminal_code.
aca7a3d2
MB
7122 (term_init): Initialize terminal_encode_buffer and
7123 terminal_encode_buf_size.
7124
7125 * coding.c (consume_chars): If coding->src_object is nil, don't
7126 check annotation.
7127
73acf815 71282008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7129
7130 * character.c (char_string): Use ASCII_CHAR_P instead of
7131 SINGLE_BYTE_CHAR_P.
7132
73acf815 71332008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7134
7135 * xdisp.c (handle_auto_composed_prop): Check if the last
7136 characters of auto-composed region is newly composed with the
7137 following characters.
7138 (handle_composition_prop): Fix checking of point being inside
7139 composition.
7140
73acf815 71412008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7142
7143 * fns.c (concat): Don't change multibyteness of the result by
7144 concatenating an 8-bit character.
7145
7146 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
7147 multibyteness of the result when newelt is an 8-bit character.
7148
73acf815 71492008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7150
7151 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
7152 EMACS_INT.
7153
7154 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
7155
7156 * xfaces.c (face_numeric_value): Declare dim size_t.
7157 (Finternal_lisp_face_equal_p): Remove unused f.
7158
7159 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
7160 (MATRIX_ROW): Remove unused vars.
7161 (draw_glyphs, x_insert_glyphs, fast_find_position)
7162 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
7163 byte/char counts.
7164
7165 * regex.c (regex_compile): Remove unused var.
7166
7167 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
7168
7169 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
7170 (Faccessible_keymaps, where_is_internal): Remove unused vars.
7171
7172 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
7173
7174 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
7175
7176 * fileio.c (Fwrite_region): Remove unused var.
7177
7178 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
7179 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
7180
7181 * composite.c (Fremove_list_of_text_properties): Declare.
7182
1f45f627
GM
7183 * coding.c (inhibit_pre_post_conversion): Remove (unused).
7184 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
aca7a3d2
MB
7185 (coding_inherit_eol_type): Remove unused attrs.
7186 (detect_coding): Cast arg of detect_eol.
7187
7188 * charset.c (syms_of_charset): Remove unused var p.
7189 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
7190 byte/char counts.
7191
7192 * casetab.c (set_case_table): Remove unused var.
7193
7194 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
1f45f627 7195 unused vars.
aca7a3d2 7196
73acf815 71972008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7198
7199 * xterm.c (x_bitmap_mask): Declare.
7200
73acf815 72012008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7202
7203 * xterm.c (x_term_init): Fix type error.
7204
7205 * lisp.h: Add Funibyte_char_to_multibyte.
7206
7207 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
7208 (Fset_coding_system_priority): Doc fix.
7209
aca7a3d2
MB
7210 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
7211
7212 * indent.c (check_composition): Make start and end EMACS_INT.
7213
7214 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
7215
7216 * xdisp.c (handle_composition_prop, check_point_in_composition):
7217 Make buffer positions EMACS_INT.
7218
7219 * composite.c (find_composition, run_composition_function)
7220 (update_compositions, Ffind_composition_internal): Make buffer
7221 positions EMACS_INT.
7222
7223 * composite.h (find_composition, update_compositions): Make
7224 position args EMACS_INT.
7225
1f45f627 7226 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
aca7a3d2
MB
7227
7228 * intervals.c (get_property_and_range):
7229 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
7230
7231 * unexalpha.c: Don't include varargs.h.
7232
73acf815 72332008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7234
7235 * coding.h (ENCODE_UTF_8): New.
7236
7237 * Makefile.in (gtkutil.o): Depend on coding.h.
7238
7239 * coding.c (Fset_coding_system_priority): Doc fix.
7240
73acf815 72412008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7242
7243 * fileio.c (Finsert_file_contents): Call setup_coding_system in
7244 the case of auto saving.
7245
73acf815 72462008-02-01 Andreas Schwab <schwab@suse.de>
aca7a3d2 7247
4c4475a8
GM
7248 * chartab.c (map_char_table, map_char_table_for_charset): Protect
7249 `range' from GC.
aca7a3d2 7250
73acf815 72512008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7252
7253 * coding.c (decode_coding_sjis): Check bytes more rigidly.
7254
73acf815 72552008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7256
1f45f627 7257 * fileio.c (choose_write_coding_system): Return a decided coding system.
aca7a3d2
MB
7258 (Fwrite_region): Set Vlast_coding_system_used to the return value
7259 of choose_write_coding_system.
7260
73acf815 72612008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7262
7263 * charset.c (Fset_charset_priority): Pay attention to duplicated
7264 arguments.
7265
7266 * coding.c (QCcategory): New variable.
7267 (syms_of_coding): Defsym it. Set all elements of
7268 Vcoding_category_table and their symbol values.
7269 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
7270 coding-category-XXX, and coding-category-list.
7271 (Fdefine_coding_system_internal): Add category in the plist.
7272
73acf815 72732008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7274
7275 * callproc.c (Fcall_process): Handle carryover correctly.
7276
1f45f627 7277 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
aca7a3d2
MB
7278 (raw_text_coding_system): Check NILP (coding_system).
7279 (coding_inherit_eol_type): Check NILP (coding_system) and
7280 NILP (parent).
7281 (consume_chars): Fix for the case of raw-text.
7282
7283 * process.c (read_process_output): Handle carryover correctly.
7284
73acf815 72852008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7286
7287 * regex.c (re_search_2): Fix last change.
7288
73acf815 72892008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7290
7291 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
7292 target_multibyte. Even in a unibyte case, return a converted
7293 multibyte char.
7294 (GET_CHAR_AFTER): New macro.
7295 (PATFETCH): Translate via multibyte char.
7296 (HANDLE_UNIBYTE_RANGE): Delete this macro.
7297 (SETUP_MULTIBYTE_RANGE): New macro.
7298 (regex_compile): Setup compiled code so that its multibyteness
7299 matches that of a target. Fix the handling of "[X-YZ]" using
7300 SETUP_MULTIBYTE_RANGE.
7301 (analyse_first) <charset>: For filling fastmap for all multibyte
7302 characters, don't check by BASE_LEADING_CODE_P.
7303 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
7304 the same as RE_MULTIBYTE_P (bufp) now.
1f45f627 7305 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
aca7a3d2
MB
7306 (TARGET_CHAR_AND_LENGTH): Delete this macro.
7307 (TRANSLATE_VIA_MULTIBYTE): New macro.
7308 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
7309 It is the same as RE_MULTIBYTE_P (bufp) now.
7310 <exactn>: Translate via multibyte.
7311 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
7312 translate it.
7313 <charset, charset_not>: Fetch a character by
7314 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
7315 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
7316 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
7317 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
7318 by GET_CHAR_AFTER.
c5ad7a3d 7319 (bcmp_translate): Likewise.
aca7a3d2
MB
7320
7321 * search.c (compile_pattern): Check the member target_multibyte,
7322 not the member multibyte of buf.
7323
7324 * lread.c (read1): While reading a string, set force_singlebyte
7325 and force_multibyte correctly.
7326
4c4475a8
GM
7327 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
7328 up of unibyte_to_multibyte_table.
aca7a3d2 7329
73acf815 73302008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7331
7332 * coding.c (setup_coding_system): If coding has
7333 post-read-conversion or pre-write-conversion, set
7334 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
7335 respectively.
7336 (decode_coding_gap): Run post-read-conversion if any.
7337
7338 * fileio.c (Finsert_file_contents): Even if we read into a
7339 unibyte buffer, check if we must decode the result or not.
7340
73acf815 73412008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7342
7343 * coding.c (make_conversion_work_buffer): Change the work buffer
7344 name to the same one as that of Emacs 21.
7345
73acf815 73462008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7347
1f45f627 7348 * coding.h (make_conversion_work_buffer): Adjust prototype.
aca7a3d2
MB
7349 (code_conversion_restore): Don't extern it.
7350
7351 * coding.c (detected_mask): Delete unused variable.
7352 (decode_coding_iso_2022): Pay attention to the byte sequence of
7353 CTEXT extended segment, and retain those bytes as is.
7354 (decode_coding_ccl): Delete unused variable `valids'.
7355 (setup_coding_system): Delete unused variable `category'.
7356 (consume_chars): Delete unused variable `category'. Make it work
7357 for non-multibyte case.
1f45f627 7358 (make_conversion_work_buffer): Change argument.
aca7a3d2
MB
7359 (saved_coding): Delete unused variable.
7360 (code_conversion_restore): Don't check saved_coding->destination.
7361 (code_conversion_save): New function.
7362 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
7363 instead of record_unwind_protect.
1f45f627 7364 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
aca7a3d2 7365 (detect_coding_system): Delete unused variable `mask'.
1f45f627 7366 (Fdefine_coding_system_internal): Delete unused vaiable id.
aca7a3d2
MB
7367
7368 * fileio.c (kill_workbuf_unwind): New function.
7369 (Finsert_file_contents): On replacing, call
7370 make_conversion_work_buffer with correct args, and call
7371 record_unwind_protect with the first arg kill_workbuf_unwind.
7372
7373 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
7374
73acf815 73752008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7376
1f45f627 7377 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
aca7a3d2
MB
7378 (fontset_add): Fix for the case that TO is less than TO1.
7379 (Ffontset_info): Don't use fallback fontset on checking the
7380 default fontset.
7381 (dump_fontset): New function for debugging.
7382
7383 * coding.c (Fdefine_coding_system_internal): Fix for the case that
7384 coding_type is Qcharset.
7385
73acf815 73862008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7387
7388 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
7389 (map_char_table): Don't inherit the value from the parent on
1f45f627 7390 initializing VAL. Adjust for the above change.
aca7a3d2 7391
73acf815 73922008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7393
7394 * coding.c (Qsignature, Qendian): Delete these variables.
7395 (syms_of_coding): Don't initialize them.
7396 (CATEGORY_MASK_UTF_16_AUTO): New macro.
7397 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
7398 detect_info->found.
7399 (decode_coding_utf_16): Don't detect BOM here.
7400 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
7401 is NOT utf_16_without_bom.
7402 (setup_coding_system): For a coding system of type utf-16, check
7403 if the attribute :endian is Qbig or not (not nil or not), and set
7404 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
7405 (detect_coding): If coding type is utf-16 and BOM detection is
7406 required, detect it.
7407 (Fdefine_coding_system_internal): For a coding system of type
1f45f627 7408 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
aca7a3d2 7409
73acf815 74102008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7411
7412 * coding.c (coding_set_source): Fix for the case that the current
7413 buffer is different from coding->src_object.
7414 (decode_coding_object): Don't use the conversion work buffer if
7415 DST_OBJECT is a buffer.
7416
73acf815 74172008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7418
7419 * lread.c (read_emacs_mule_char) [len==2]: Index
7420 emacs_mule_charset correctly.
7421
73acf815 74222008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7423
7424 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
7425 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
1f45f627 7426 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
aca7a3d2
MB
7427 treated specially.)
7428 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
7429 (detected_mask): Remove Big5 bits.
7430
73acf815 74312008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7432
7433 The following changes are to make the font rescaling facility
7434 compatible with Emacs 21.
7435
1f45f627 7436 * xfaces.c (Vface_font_rescale_alist): Rename from
aca7a3d2
MB
7437 Vface_resizing_fonts.
7438 (struct font_name): Rename member resizing_ratio to rescale_ratio.
1f45f627 7439 (font_rescale_ratio): Rename from font_resizing_ratio.
aca7a3d2
MB
7440 (split_font_name): Set font->rescale_ratio.
7441 (better_font_p): Pay attention to font->rescale_ratio.
7442 (build_scalable_font_name): Likewise. Change RESX, and RESY
7443 fields.
1f45f627 7444 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
aca7a3d2 7445
73acf815 74462008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7447
7448 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
7449 (Qutf_16_le): Remove these variables.
7450 (syms_of_coding): Don't DEFSYM them.
7451 (decode_coding_utf_16): Fix handling of BOM.
7452 (encode_coding_utf_16): Fix handling of BOM.
7453
73acf815 74542008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7455
7456 * fileio.c (Finsert_file_contents): On replacing, before decoding
1f45f627 7457 the file into the work buffer, set point of the work buffer to the end.
aca7a3d2 7458
73acf815 74592008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7460
7461 * coding.c (Fcheck_coding_systems_region): Fix type errors.
7462
73acf815 74632008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7464
7465 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
7466 and fix C types.
7467
73acf815 74682008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7469
7470 * xdisp.c (SKIP_GLYPHS): New macro.
7471 (set_cursor_from_row): Pay attention to string display properties.
7472
7473 * category.c (copy_category_entry): Fix for the case that RANGE
7474 is an integer.
7475
7476 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
7477
1f45f627 7478 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
aca7a3d2 7479
73acf815 74802008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7481
7482 * charset.c (Fcharset_id_internal): New function.
7483 (syms_of_charset): Defsubr it.
7484
7485 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
7486 with the last arg charset_list acquired from coding.
7487 (Fdefine_coding_system_internal): For ccl-based coding system, fix
7488 the attribute coding_attr_ccl_valids.
7489
7490 * coding.h (enum define_coding_ccl_arg_index): Set the first
7491 member coding_arg_ccl_decoder to coding_arg_max.
7492
1f45f627 7493 * ccl.h (ccl_driver): Adjust prototype.
aca7a3d2
MB
7494
7495 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
7496 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
7497 of DECODE_CAHR, ENCODE_CHAR, CHAR_CHARSET.
4c4475a8
GM
7498 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
7499 last arg Qnil.
aca7a3d2 7500
73acf815 75012008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7502
7503 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
7504 call encode_char.
7505
1f45f627 7506 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
aca7a3d2 7507
73acf815 75082008-02-01 Dave Love <fx@gnu.org>
aca7a3d2 7509
1f45f627 7510 * composite.c (syms_of_composite): Make composition_hash_table weak.
aca7a3d2 7511
73acf815 75122008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7513
7514 * dispextern.h (check_face_attributes, generate_ascii_font_name)
7515 (font_name_registry): Don't extern them.
1f45f627 7516 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
aca7a3d2
MB
7517
7518 * fontset.h (Qfontset): Don't extern it.
7519 (new_fontset_from_font_name): Extern it.
7520
7521 * fontset.c: Give 8 extra slots to fontset objects.
7522 (Qfontset_info): New variable.
7523 (syms_of_fontset): Defsym it.
7524 (FONTSET_FALLBACK): New macro.
7525 (fontset_face): Try also the default fontset.
1f45f627
GM
7526 (make_fontset): Realize a fallback fontset from the default fontset.
7527 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
aca7a3d2
MB
7528 using split_font_name_into_vector and build_font_name_from_vector.
7529 (Fset_fontset_font): Access the elements of font_spec by enum
7530 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
7531 name by using split_font_name_into_vector.
7532 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
7533 generate a proper font name from the fontset name. Update
7534 Vfontset_alias_alist.
7535 (n_auto_fontsets): New variable.
7536 (new_fontset_from_font_name): New function.
7537 (Ffont_info): Store the information about fonts generated from the
1f45f627 7538 default fontset in the first extra slot of the returned char-table.
aca7a3d2 7539
1f45f627
GM
7540 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
7541 (font_name_registry): Delete function.
aca7a3d2
MB
7542 (split_font_name_into_vector): New function.
7543 (build_font_name_from_vector): New function.
1f45f627 7544 (font_list): The argument REGISTRY is now a list of registry names.
aca7a3d2
MB
7545 (choose_face_font): If we are choosing an ASCII font, and ATTRS
7546 specifies an explicit font name, return the name as is. Make a
7547 list of registy names.
7548
1f45f627 7549 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
aca7a3d2
MB
7550 of x_new_fontset.
7551 (Fx_create_frame): Don't call x_new_fontset here. Just use
7552 x_list_fonts to check the existence of fonts.
7553
1f45f627 7554 * xterm.h (x_new_fontset): Adjust prototype.
aca7a3d2
MB
7555
7556 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
7557 string. Use new_fontset_from_font_name to create a fontset from a
7558 font name.
7559
1c8658b9
GM
75602008-02-01 Kenichi Handa <handa@m17n.org>
7561
7562 * syntax.c (Vfind_word_boundary_function_table): New name for
7563 Vnext_word_boundary_function_table.
7564 (find-word-boundary-function-table): New name for
7565 next-word-boundary-function-table.
7566
73acf815 75672008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7568
7569 * Makefile.in: Fix some dependencies.
7570
7571 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
7572 set it to nil before returning.
7573
7574 * composite.c (update_compositions): Fix type error.
7575
7576 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
7577
73acf815 75782008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7579
7580 * xterm.c (x_new_font): Optimize for the case that the font is
7581 already set for the frame.
7582
73acf815 75832008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7584
7585 * chartab.c (char_table_ascii): Check if the char table contents
7586 is sub-char-table or not.
4c4475a8
GM
7587 (char_table_set, char_table_set_range): Fix argument to
7588 char_table_ascii.
aca7a3d2
MB
7589
7590 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
7591 (detect_coding_utf_8, detect_coding_utf_16)
7592 (detect_coding_emacs_mule, detect_coding_iso_2022)
7593 (detect_coding_sjis, detect_coding_big5)
7594 (detect_coding_ccl, detect_coding_charset): Change argument MASK
7595 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
1f45f627 7596 sequence is valid in this coding system. Change callers.
aca7a3d2
MB
7597 (MAX_ANNOTATION_LENGTH): New macro.
7598 (ADD_ANNOTATION_DATA): New macro.
1f45f627
GM
7599 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
7600 ADD_ANNOTATION_DATA. Change the format of annotation data.
aca7a3d2 7601 (ADD_CHARSET_DATA): New macro.
1f45f627 7602 (emacs_mule_char): New argument ID. Change callers.
aca7a3d2
MB
7603 (decode_coding_emacs_mule, decode_coding_iso_2022)
7604 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
7605 Produce charset annotation data in coding->charbuf.
7606 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
7607 to charset annotation data in coding->charbuf.
7608 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
7609 coding->common_flags if the coding system is iso-2022 based and
7610 uses designation.
1f45f627 7611 (produce_composition): Adjust for the new annotation data format.
aca7a3d2
MB
7612 (produce_charset): New function.
7613 (produce_annotation): Handle charset annotation.
7614 (handle_composition_annotation, handle_charset_annotation): New
7615 functions.
7616 (consume_chars): Handle charset annotation. Utilize the above two
7617 functions.
7618 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
7619 buffer, get the deleted text as a string and set
7620 coding->src_object to that string.
7621 (detect_coding, detect_coding_system): Use the new struct
7622 coding_detection_info.
7623
7624 * coding.h (struct coding_detection_info): New structure.
1f45f627 7625 (struct coding_system): Adjust prototype of the member `detector'.
aca7a3d2
MB
7626 (CODING_ANNOTATE_CHARSET_MASK): New macro.
7627
73acf815 76282008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7629
7630 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
7631
73acf815 76322008-02-01 Dave Love <fx@gnu.org>
aca7a3d2 7633
1f45f627 7634 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
aca7a3d2
MB
7635 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
7636 to new local and nullify apropos_accumulate before returning.
7637 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
7638
73acf815 76392008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7640
7641 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
7642 correctly.
7643
73acf815 76442008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7645
7646 * fns.c (Flanginfo): Call synchronize_system_time_locale.
7647
73acf815 76482008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7649
7650 The following changes are to make character composition happen
7651 automatically on displaying.
7652
2a2e8de7 7653 * Makefile.in (lisp, shortlisp): Add composite.elc.
aca7a3d2 7654
1f45f627
GM
7655 * composite.h (Qauto_composed, Vauto_composition_function)
7656 (Qauto_composition_function): Extern them.
aca7a3d2 7657
1f45f627
GM
7658 * composite.c (Vcomposition_function_table)
7659 (Qcomposition_function_table): Delete variables.
7660 (Qauto_composed, Vauto_composition_function)
7661 (Qauto_composition_function): New variables.
aca7a3d2
MB
7662 (run_composition_function): Don't call
7663 compose-chars-after-function.
7664 (update_compositions): Clear `auto-composed' text property.
7665 (compose_chars_in_text): Delete this function.
7666 (syms_of_composite): Staticpro Qauto_composed and
7667 Qauto_composition_function. Declare Vauto_composition_function as
7668 a Lisp variable.
7669
7670 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
7671
7672 * xdisp.c (it_props): Add an entry for Qauto_composed.
7673 (handle_auto_composed_prop): New function.
7674
7675 * xselect.c (selection_data_to_lisp_data): Don't call
7676 compose_chars_in_text.
7677
73acf815 76782008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7679
7680 * keyboard.c (read_char): Modify checking around use of
7681 Vkeyboard_translate_table.
7682
7683 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
7684 and fix C types.
7685
73acf815 76862008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7687
4c4475a8
GM
7688 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
7689 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
7690 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
aca7a3d2 7691 the case that the last byte is '\r' correctly.
1f45f627
GM
7692 (decode_coding): Flush out the unprocessed data correctly.
7693 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
aca7a3d2 7694
73acf815 76952008-02-01 Dave Love <fx@gnu.org>
aca7a3d2 7696
f245f2c6
JB
7697 * xterm.c (XTread_socket): Fix changes for defined keysyms.
7698 Add XK_ISO... case.
aca7a3d2
MB
7699 (xaw_scroll_callback): Revert last change.
7700
73acf815 77012008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7702
1f45f627 7703 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
aca7a3d2 7704
73acf815 77052008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7706
7707 * xfaces.c (Vface_resizing_fonts): New variable.
7708 (struct font_name): New member `resizing_ratio'.
7709 (font_resizing_ratio): New function.
7710 (split_font_name): Set font->resizing_ratio.
7711 (better_font_p): Pay attention to font->resizing_ratio.
7712 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
7713 RESX, and RESY fields.
7714 (try_alternative_families): Try scalable fonts if
7715 Vscalable_fonts_allowed is not Qt.
7716 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
7717
73acf815 77182008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7719
7720 * xterm.c (xaw_scroll_callback): Cast correctly.
7721
73acf815 77222008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7723
7724 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
7725 (lispy_kana_keys): Comment out.
7726 (make_lispy_event) [XK_kana_A]: Comment out.
7727
7728 * xterm.c (xaw_scroll_callback): Cast call_data.
7729 (XTread_socket): Deal with ASCII keysyms.
7730 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
7731
73acf815 77322008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7733
7734 * xterm.c (Vx_keysym_table): New.
7735 (syms_of_xterm): Initialize it.
7736 (XTread_socket): Use it.
7737 From head: Eliminate incorrect optimization that tried to avoid
7738 decoding the output of X*LookupString.
7739 (x_get_font_repertory): Delete charset declaration.
7740
73acf815 77412008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7742
1f45f627
GM
7743 * coding.c (detect_coding_charset): If only ASCII bytes are found,
7744 return 0.
aca7a3d2
MB
7745 (Fdefine_coding_system_internal): Setup
7746 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
7747
73acf815 77482008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7749
7750 * coding.c (Fcheck_coding_system): Doc fix.
7751
7752 * editfns.c (Finsert_byte): Return a proper value.
7753
73acf815 77542008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7755
7756 * coding.c (decode_coding): Fix args to translate_chars. Pay
7757 attention to Vstandard_translation_table_for_decode.
7758 (encode_coding): Fix args to translate_chars. Pay attention to
7759 Vstandard_translation_table_for_encode.
7760
7761 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
7762 SINGLE_BYTE_CHAR_P.
7763
7764 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
7765 not by SINGLE_BYTE_CHAR_P.
7766
7767 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
7768 SINGLE_BYTE_CHAR_P.
7769
7770 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
7771 SINGLE_BYTE_CHAR_P.
7772
7773 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
7774 by SINGLE_BYTE_CHAR_P.
7775
7776 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
7777 SINGLE_BYTE_CHAR_P.
7778
73acf815 77792008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7780
7781 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
7782
73acf815 77832008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7784
7785 * fns.c (Flanginfo): Fix typo.
7786
7787 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
7788
73acf815 77892008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7790
4c4475a8
GM
7791 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
7792 (detect_coding_emacs_mule, detect_coding_iso_2022)
7793 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
7794 incomplete byte sequence. Don't update *mask when correctly detected.
aca7a3d2 7795 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
1f45f627 7796 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
4c4475a8 7797 (detect_coding, detect_coding_system): Adjust for the changes above.
aca7a3d2 7798
73acf815 77992008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7800
1f45f627
GM
7801 * character.c (char_string): Rename from
7802 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
7803 (string_char): Rename from string_char.
aca7a3d2 7804
4c4475a8
GM
7805 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
7806 if C is greater than MAX_3_BYTE_CHAR.
7807 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
7808 string_char instead of string_char_with_unification.
aca7a3d2 7809
73acf815 78102008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7811
7812 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
7813
73acf815 78142008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7815
1f45f627 7816 * keymap.c (push_key_description): Pay attention to force_multibyte.
aca7a3d2
MB
7817
7818 * regex.c (re_search_2): Fix for the case of unibyte buffer.
7819
73acf815 78202008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7821
7822 * charset.c (define_charset_internal): Rename `supprementary'.
7823
7824 * Makefile.in (lisp, shortlisp): Remove latin-N.
7825
73acf815 78262008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7827
7828 * xfns.c (x_window, x_window): Use use_xim.
7829
7830 * xterm.c (use_xim): Initialize.
7831 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
7832 (x_term_init): Maybe set use_xim.
7833
7834 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
7835
73acf815 78362008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7837
7838 * search.c (search_buffer): Fix case-fold-search of multibyte
7839 characters.
7840 (boyer_moore): Rename the last argument to char_high_bits.
7841
73acf815 78422008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7843
7844 * xdisp.c (display_string): Fix for the case of zero width glyph.
7845
7846 * xfns.c (x_set_font): Change the error message of the case that
7847 x_new_fontset returns Qt.
7848
7849 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
7850 (Finternal_set_lisp_face_attribute): Use signal_error for the
7851 error of invalid fontset.
7852
7853 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
7854 fontset, return Qt.
7855
73acf815 78562008-02-01 Dave Love <fx@gnu.org>
aca7a3d2 7857
aca7a3d2
MB
7858 * unexelf.c (unexec): Make .got handling not SGI-specific.
7859
7860 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
7861
7862 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
7863
7864 * keyboard.c (read_key_sequence): Fix type error.
7865
7866 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
7867 type error.
7868
7869 * fontset.c (fontset_add): Return Lisp_Object.
7870
73acf815 78712008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7872
7873 * charset.h (charset_ordered_list_tick): Declare extern.
7874
73acf815 78752008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7876
73acf815 7877 The following changes (and some of 2008-02-01 changes of mine) are
aca7a3d2
MB
7878 for handling syntax, category, and case conversion for unibyte
7879 characters by converting them to multibyte on the fly. With these
7880 changes, we don't have to setup syntax and case tables for unibyte
7881 characters in each language environment.
7882
7883 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
7884 multibyte if necessary.
7885
7886 * bytecode.c (Fbyte_code): Likewise.
7887
7888 * character.h (LEADING_CODE_LATIN_1_MIN)
7889 (LEADING_CODE_LATIN_1_MAX): New macros.
7890 (unibyte_to_multibyte_table): Extern it.
7891 (unibyte_char_to_multibyte): New macro.
7892 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
7893 (CHAR_LEADING_CODE): New macro.
7894 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
7895
7896 * character.c (unibyte_to_multibyte_table): New variable.
1f45f627 7897 (unibyte_char_to_multibyte): Move to character.h and define as macro.
aca7a3d2
MB
7898 (multibyte_char_to_unibyte): If C is an eight-bit character,
7899 convert it to the corresponding byte value.
7900
7901 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
7902 not 1, singals an error. Update the elements of
7903 unibyte_to_multibyte_table.
7904 (init_charset_once): Initialize unibyte_to_multibyte_table.
7905 (syms_of_charset): Define the charset `iso-8859-1'.
7906
aca7a3d2
MB
7907 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
7908 as is without converting it to unibyte. In a unibyte buffer,
7909 convert C to multibyte before checking the syntax.
7910
1f45f627 7911 * lisp.h (unibyte_char_to_multibyte): Delete extern.
aca7a3d2
MB
7912
7913 * minibuf.c (Fminibuffer_complete_word): Use the macro
7914 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
7915
7916 * regex.h (struct re_pattern_buffer): New member target_multibyte.
7917
7918 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
7919 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
7920 that is zero, convert an eight-bit char to multibyte.
7921 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
7922 non-emacs case.
7923 (PATFETCH): Convert an eight-bit char to multibyte.
7924 (HANDLE_UNIBYTE_RANGE): New macro.
7925 (regex_compile): Setup the compiled pattern for multibyte chars
7926 even if the given regex string is unibyte. Use PATFETCH_RAW
7927 instead of PATFETCH in many places. To handle `charset'
c5ad7a3d 7928 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
aca7a3d2 7929 only for ASCII chars.
1f45f627 7930 (analyse_first) <exactn>: Simplify because the compiled pattern
aca7a3d2
MB
7931 is multibyte.
7932 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
7933 <charset>: Use CHAR_LEADING_CODE to get leading codes.
1f45f627 7934 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
aca7a3d2
MB
7935 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
7936 multibyte always 1.
7937 (re_search_2): In emacs, set the locale variable multibyte to 1,
7938 otherwise to 0. New local variable target_multibyte. Check it
7939 to decide the multibyteness of STR1 and STR2. If
7940 target_multibyte is zero, convert unibyte chars to multibyte
7941 before translating and checking fastmap.
7942 (TARGET_CHAR_AND_LENGTH): New macro.
7943 (re_match_2_internal): In emacs, set the locale variable multibyte
7944 to 1, otherwise to 0. New local variable target_multibyte. Check
7945 it to decide the multibyteness of STR1 and STR2. Use
7946 TARGET_CHAR_AND_LENGTH to fetch a character from D.
7947 <charset, charset_not>: If multibyte is nonzero, check fastmap
c5ad7a3d 7948 only for ASCII chars. Call bcmp_translate with
aca7a3d2
MB
7949 target_multibyte, not with multibyte.
7950 <begline>: Declare the local variable C as `unsigned'.
7951 (bcmp_translate): Change the last arg name to target_multibyte.
7952
7953 * search.c (compile_pattern_1): Don't adjust the multibyteness of
7954 the regexp pattern and the matching target. Set cp->buf.multibyte
7955 to the multibyteness of the regexp pattern. Set
1f45f627 7956 cp->but.target_multibyte to the multibyteness of the matching target.
aca7a3d2
MB
7957 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
7958 FETCH_STRING_CHAR_ADVANCE.
7959 (Freplace_match): Convert unibyte chars to multibyte.
7960
4c4475a8
GM
7961 * syntax.c (char_quoted, back_comment, scan_words)
7962 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
7963 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
aca7a3d2 7964 unibyte chars to multibyte.
1f45f627
GM
7965 (skip_chars): Delete the arg syntaxp, and move the code for
7966 handling syntaxes to skip_syntaxes. Change callers.
aca7a3d2
MB
7967 Fix the case that the multibyteness of STRING and the current
7968 buffer doesn't match.
7969 (skip_syntaxes): New function.
7970 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
7971 SINGLE_BYTE_CHAR_P.
aca7a3d2 7972
73acf815 79732008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7974
7975 * xfaces.c (QCfontset): New variable.
7976 (LFACE_FONTSET): New macro.
7977 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
7978 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
4c4475a8
GM
7979 (Finternal_set_lisp_face_attribute)
7980 (Finternal_get_lisp_face_attribute): Handle QCfontset.
aca7a3d2
MB
7981 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
7982 check also LFACE_FONTSET_INDEX.
7983 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
7984 attrs[LFACE_FONT_INDEX].
7985 (syms_of_xfaces): Intern and staticpro QCfontset.
7986
7987 * dispextern.h (enum lface_attribute_index): New member
7988 LFACE_FONTSET_INDEX.
7989
7990 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
7991
73acf815 79922008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7993
7994 * coding.c (coding_set_destination): Fix coding->destination for
7995 the case converting a region.
7996 (encode_coding_utf_8): Encode eight-bit chars as single byte.
7997 (encode_coding_object): Fix coding->dst_pos and
7998 coding->dst_pos_byte for the case converting a region.
7999
8000 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
8001
8002 * character.h (BYTE8_STRING): New macro.
8003
8004 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
8005
73acf815 80062008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8007
8008 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
8009 characters by octal form.
8010
8011 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
8012
1f45f627 8013 * buffer.h (_fetch_multibyte_char_len): Delete extern.
4c4475a8
GM
8014 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
8015 _fetch_multibyte_char_len.
aca7a3d2
MB
8016 (FETCH_CHAR_AS_MULTIBYTE): New macro.
8017
1f45f627 8018 * casetab.c (set_canon, set_identity, shuffle): Simplify.
aca7a3d2 8019
1f45f627 8020 * casefiddle.c (casify_object): Simplify. Handle the case that
aca7a3d2 8021 the case conversion change the byte length.
1f45f627 8022 (casify_region): Likewise.
aca7a3d2 8023
1f45f627 8024 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
aca7a3d2 8025
1f45f627 8026 * character.c (_fetch_multibyte_char_len): Delet this variable.
aca7a3d2
MB
8027 (syms_of_character): Setup Vprintable_chars.
8028
8029 * editfns.c (Fchar_equal): Fix for the unibyte case.
8030 (Finsert_byte): New function.
8031 (syms_of_editfns): Defsubr it.
8032
8033 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
8034 of direct code 0x3ffff.
8035
8036 * search.c (Freplace_match): Fix for the unibyte case.
8037
73acf815 80382008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8039
8040 * lread.c (safe_to_load_p): Fix the logic.
8041
8042 * syntax.c (scan_words): Don't treat characters belonging to
8043 different scripts as constituting a word.
8044
8045 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
8046
1f45f627 8047 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
aca7a3d2
MB
8048
8049 * emacs.c (main): In the case of --unibyte, instead of aborting on
8050 finding non-empty buffer, make it unibyte.
8051
73acf815 80522008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8053
8054 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
8055 to create a fontset.
8056
73acf815 80572008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
8058
8059 * character.c (Funibyte_char_to_multibyte): Doc fix.
8060
8061 * xfns.c [HAVE_STDLIB_H]: Fix last change.
8062
73acf815 80632008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8064
8065 * fontset.c (fontset_add): Make the type `int'.
8066 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
8067
4c4475a8
GM
8068 * character.c (unibyte_char_to_multibyte)
8069 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
aca7a3d2 8070 charset_unibyte, not charset_primary.
aca7a3d2 8071
1f45f627 8072 * charset.h (charset_unibyte): Extern it instead of charset_primary.
aca7a3d2 8073
1f45f627
GM
8074 * charset.c (charset_unibyte): Rename from charset_primary.
8075 (Funibyte_charset): Rename from Fprimary_charset.
8076 (Fset_unibyte_charset): Rename from Fset_primary_charset.
8077 (syms_of_charset): Adjust for the above changes.
aca7a3d2
MB
8078
8079 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
8080 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
8081 it->multibyte_p is zero.
8082
8083 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
1f45f627 8084 Delete extern.
aca7a3d2 8085
73acf815 80862008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8087
8088 * coding.c (Fdefine_coding_system_internal): Fix category setting
8089 for a coding system of type iso-2022.
8090
73acf815 80912008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 8092
1f45f627 8093 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
aca7a3d2 8094
73acf815 80952008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8096
8097 * syntax.c (Vnext_word_boundary_function_table): New variable.
1c8658b9
GM
8098 (next-word-boundary-function-table): Declare it as a Lisp variable
8099 in syms_of_syntax.
aca7a3d2
MB
8100 (scan_words): Call functions in Vnext_word_boundary_function_table
8101 if any.
8102
8103 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
8104
8105 * fontset.c (fs_load_font): If fontp->charset is not negative,
8106 return fontp without setting its members.
8107
73acf815 81082008-02-01 Dave Love <fx@gnu.org>
aca7a3d2 8109
aca7a3d2
MB
8110 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
8111
8112 * m/sparc.h (HAVE_ALLOCA): Delete.
8113
8114 * s/irix6-5.h: Don't include strings.h.
8115 (bcopy, bzero, bcmp): Don't undef.
8116
8117 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
8118
8119 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
8120 (TIOCSIGSEND): Don't test IRIX6.
8121 (bcopy, bzero, bcmp): Define conditionally.
8122
73acf815 81232008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8124
8125 * buffer.c (Qas, Qmake, Qto): New variables.
1f45f627 8126 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
aca7a3d2
MB
8127 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
8128
8129 * callproc.c (Fcall_process): Don't call insert_1_both directly if
8130 we are inserting a process output into a multibyte buffer.
8131
8132 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
8133 multibyte_char_to_unibyte.
8134
8135 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
8136 by the primary charset, make it eight-bit char.
8137 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
8138
1f45f627
GM
8139 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
8140 (charset_8_bit__control, charset_8_bit_graphic)
8141 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
aca7a3d2
MB
8142 (define_charset_internal): New function.
8143 (syms_of_charset): Call define_charset_internal for pre-defined
8144 charsets.
8145
8146 * charset.h (charset_8_bit): Extern it.
8147
1f45f627 8148 * coding.c (make_conversion_work_buffer): Adjust for the change
aca7a3d2
MB
8149 of Fset_buffer_multibyte.
8150 (encode_coding_raw_text): Increment p0 in the loop.
8151
1f45f627 8152 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
aca7a3d2 8153
1f45f627 8154 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
aca7a3d2
MB
8155 for the change of Fset_buffer_multibyte.
8156
8157 * fns.c (Fstring_to_multibyte): New function.
8158 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
8159
73acf815 81602008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
8161
8162 * xfns.c (x_put_x_image): Declare args.
8163
1f45f627 8164 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
aca7a3d2
MB
8165 (try_font_list): Declare an arg.
8166
8167 * xdisp.c (message2_nolog, set_message): Declare an arg.
8168
8169 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
8170
8171 * syntax.c (scan_sexps_forward): Declare an arg.
8172
8173 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
8174 Declare an arg.
8175
8176 * lisp.h (Fnew_fontset): Declare.
8177
8178 * keymap.c (push_key_description): Call CHARACTERP correctly.
8179
1f45f627 8180 * fontset.c (fontset_add): Declare args. Call make_number correctly.
aca7a3d2
MB
8181 (face_for_char): Delete unused vars.
8182 (Fset_fontset_font): Doc fix. Delete unused vars.
8183
8184 * doc.c (Fsubstitute_command_keys): Delete unused vars.
8185
8186 * composite.c (update_compositions): Declare arg.
8187
8188 * cm.c (calccost, cmgoto): Declare args.
8189
8190 * charset.c: Remove `emacs' conditional. Doc fixes.
8191 (map_char_table_for_charset): Declare.
8192
1f45f627 8193 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
aca7a3d2 8194
1f45f627 8195 * ccl.c: Remove `emacs' conditional.
aca7a3d2 8196
73acf815 81972008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8198
8199 The following changes are to allow specifying multiple font
8200 patterns for a character range (specified by script or charset).
8201
8202 * Makefile.in (abbrev.o): Depend on syntax.h.
8203 (xfaces.o): Depend on charset.h.
8204
8205 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
8206 SINGLE_BYTE_CHAR_P.
8207
8208 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
8209
8210 * character.h (Vchar_script_table): Extern it.
8211
1f45f627 8212 * character.c (Vscript_alist): Delete.
aca7a3d2
MB
8213 (Vchar_script_table, Qchar_script_table): New variable.
8214 (syms_of_character): Declare Vchar_script_table as a lisp variable
8215 and initialize it.
8216
1f45f627 8217 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
aca7a3d2
MB
8218 have property char-table-extra-slots, make no extra slot.
8219
1f45f627 8220 * dispextern.h (struct face): Delete member `charset'.
4c4475a8
GM
8221 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
8222 SINGLE_BYTE_CHAR_P.
1f45f627
GM
8223 (choose_face_font, lookup_non_ascii_face, font_name_registry):
8224 Add prototypes.
8225 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
8226 (generate_ascii_font_name): Rename from generate_ascii_font.
aca7a3d2
MB
8227
8228 * fontset.h (get_font_repertory_func): New prototype.
1f45f627 8229 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
aca7a3d2
MB
8230 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
8231
8232 * fontset.c (Qprepend, Qappend): New variables.
1f45f627 8233 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
aca7a3d2
MB
8234 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
8235 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
8236 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
8237 (fontset_ref_and_range, fontset_add, reorder_font_vector)
8238 (load_font_get_repertory): New functions.
1f45f627 8239 (fontset_set): Delete.
aca7a3d2 8240 (fontset_face): New arg FACE. Return face ID, not face.
1f45f627 8241 Complete re-write to handle new fontset structure. Change caller.
aca7a3d2
MB
8242 (free_face_fontset): Use ASET istead of AREF (X) = Y.
8243 (face_for_char): Don't call lookup_face.
8244 (make_fontset_for_ascii_face): New arg FACE.
8245 (fs_load_font): New arg CHARSET_ID. Don't check
8246 Vfont_encoding_alist here.
8247 (find_font_encoding): New function.
8248 (list_fontsets): Use STRINGP, not ! NILP.
8249 (accumulate_script_ranges): New function.
8250 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
8251 re-written to handle new fontset structure.
8252 (Ffontset_font): Return a copy of element.
8253 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
8254 docstring of font-encoding-alist.
8255
8256 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
8257 (Fset_fotset_font): Fix arguments to 5.
8258
1f45f627 8259 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
aca7a3d2
MB
8260
8261 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
8262 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
1f45f627 8263 (highlight_trailing_whitespace): Adjust for the change of
aca7a3d2
MB
8264 lookup_named_face.
8265
8266 * xfaces.c: Include charset.h.
1f45f627
GM
8267 (load_face_font): Delete argument C. Change caller.
8268 (generate_ascii_font_name): Rename from generate_ascii_font.
aca7a3d2
MB
8269 (font_name_registry): New function.
8270 (cache_face): Store ascii faces before non-ascii faces in buckets.
1f45f627 8271 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
aca7a3d2
MB
8272 Lookup only ascii faces.
8273 (lookup_non_ascii_face): New function.
1f45f627
GM
8274 (lookup_named_face): Delete argument C. Change caller.
8275 (lookup_derived_face): Delete argument C. Change caller.
8276 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
aca7a3d2 8277 a string, just call font_list with it.
1f45f627
GM
8278 (choose_face_font): Delete arguments FACE and C. New arg
8279 FONT_SPEC. Change caller.
4c4475a8
GM
8280 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
8281 Change caller.
aca7a3d2
MB
8282 (realize_non_ascii_face): New function.
8283 (realize_x_face): Call load_face_font here.
1f45f627 8284 (realize_tty_face): Delete argument C. Change caller.
aca7a3d2
MB
8285 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
8286 get a face ID.
8287 (dump_realized_face): Don't print charset of FACE.
8288
8289 * xfns.c (x_set_font): Always call x_new_fontset and
8290 store_frame_parameter.
8291 (Fx_create_frame): Call x_new_fontset, not x_new_font.
1f45f627 8292 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
aca7a3d2
MB
8293
8294 * xterm.h (x_get_font_repertory): Extern it.
8295
8296 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
8297 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
8298 it->multibyte_p is zero.
8299 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
8300 (x_new_fontset): If FONTSETNAME doesn't match any existing
8301 fontsets, create a new one.
8302 (x_get_font_repertory): New function.
8303
73acf815 83042008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8305
8306 * coding.c (Ffind_coding_systems_region_internal): Detect an
8307 ASCII only string correctly.
8308
8309 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
8310 version is 0.
8311
73acf815 83122008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8313
8314 * lread.c: Include "coding.h".
1f45f627
GM
8315 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
8316 (load_each_byte, unread_char): New variables.
8317 (readchar_backlog): Delete.
aca7a3d2
MB
8318 (readchar): Return a character unless load_each_byte is nonzero.
8319 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
8320 cons. If unread_char is not -1, simply return it.
8321 (unreadchar): Handle the case that readcharfun is
1f45f627
GM
8322 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
8323 (read_multibyte): Delete.
aca7a3d2
MB
8324 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
8325 (read_emacs_mule_char): New functions.
8326 (Fload): Even if the file doesn't have the extention ".elc", if
8327 safe_to_load_p returns a positive version number, assume that the
8328 file contains bytecompiled code. If the version is less than 22,
8329 load the file while decoding multibyte sequences by emacs-mule.
8330 (readevalloop): Don't use readchar_backlog.
1f45f627
GM
8331 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
8332 (Fread_from_string): Pay attention to the case that STREAM is a cons.
8333 (read_escape): Delete the arg BYTEREP.
aca7a3d2
MB
8334 (read1): Set load_each_byte to 1 temporarily while handling
8335 #@NUMBER. Don't call read_multibyte.
8336 (read_vector): Call Fread with a cons. If readcharfun is
8337 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
1f45f627 8338 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
aca7a3d2
MB
8339 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
8340 and Qload_force_doc_strings.
8341
73acf815 83422008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8343
8344 * xdisp.c (face_before_or_after_it_pos): Call
8345 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
8346
73acf815 83472008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8348
8349 * character.h (TRAILING_CODE_P): New macro.
1f45f627 8350 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
aca7a3d2
MB
8351 (string_char_with_unification): Fix prototype.
8352 (Vscript_alist): Extern it.
8353
8354 * character.c (Vscript_alist): New variable.
4c4475a8
GM
8355 (string_char_with_unification, str_as_unibyte)
8356 (string_escape_byte8): Add `const' to local variables.
aca7a3d2
MB
8357 (syms_of_character): Declare script-alist as a Lisp variable.
8358
8359 * charset.h (Vcharset_ordered_list): Extern it.
8360 (charset_ordered_list_tick): Extern it.
8361 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
8362 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
8363 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
1f204af3 8364 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
1f45f627 8365 (Funify_charset): Adjust for the change of Funify_charset.
aca7a3d2
MB
8366
8367 * charset.c (charset_ordered_list_tick): New variable.
8368 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
8369 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
8370 deunify intead of unify a charset.
8371 (string_xstring_p): Add `const' to local variables.
1f45f627
GM
8372 (find_charsets_in_text): Add `const' to arguemnts and local variables.
8373 (encode_char): Adjust for the change of Funify_charset. Fix
aca7a3d2
MB
8374 detecting of invalid code.
8375 (Fset_charset_priority): Increment charset_ordered_list_tick.
8376 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
8377 and TO_CODE.
8378
8379 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
1f45f627
GM
8380 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
8381 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
4c4475a8
GM
8382 (decode_coding_ccl, consume_chars)
8383 (Ffind_coding_systems_region_internal)
8384 (Fcheck_coding_systems_region): Add `const' to local variables.
aca7a3d2
MB
8385
8386 * print.c (print_object): Use octal form for printing the
8387 contents of a bool vector.
8388
73acf815 83892008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
8390
8391 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
8392 <version == 20>: Refuse to load.
8393
73acf815 83942008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
8395
8396 * fns.c: Move coding.h.
8397 (Qcodeset, Qdays, Qmonths): New.
8398 (concat): Use CHARACTERP instead of INTERGERP.
1f45f627 8399 (Flocale_codeset): Delete.
aca7a3d2 8400 (Flanginfo): New function.
1f45f627 8401 (syms_of_fns): Change accordingly.
aca7a3d2
MB
8402
8403 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
8404
73acf815 84052008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
8406
8407 * casetab.c (init_casetab_once, init_casetab_once): Fix
8408 CHAR_TABLE_SET call.
8409
8410 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
8411
8412 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
8413
8414 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
8415 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
8416 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
8417
8418 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
8419
8420 * coding.c (ENCODE_DESIGNATION, decode_eol)
8421 (make_conversion_work_buffer, code_conversion_restore)
8422 (Fdefine_coding_system_internal): Convert Lisp types.
8423 (code_conversion_restore): Use EQ, not ==.
8424 (Fencode_coding_string): Fix code_convert_string call.
8425
8426 * coding.h (code_convert_region): Fix prototype.
8427
1f45f627 8428 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
aca7a3d2
MB
8429
8430 * fontset.c (fontset_ref, fontset_set, fs_load_font)
8431 (Ffontset_info): Convert Lisp types.
8432
8433 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
8434
8435 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
8436
8437 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
8438
8439 * chartab.c: Include "...h", not <...h> in some cases.
8440
8441 * callproc.c (Fcall_process): Remove unused variables.
8442
73acf815 84432008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
8444
8445 * coding.c (Fset_coding_system_priority): Allow null arg list.
8446
73acf815 84472008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
8448
8449 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
8450 (Fself_insert_and_exit): Use CHARACTERP.
8451
8452 * callproc.c (Fcall_process): Remove unused vars.
8453
8454 * xterm.c (XTread_socket): Add extra dead keysyms.
8455
8456 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
8457
8458 * dispextern.h: Remove prototypes for redraw_frame,
8459 redraw_garbaged_frames.
8460
8461 * cmds.c (Fself_insert_command): Use CHARACTERP.
8462
8463 * chartab.c (make_sub_char_table): Remove unused var.
8464 (Fset_char_table_default, Fmap_char_table): Doc fix.
8465
8466 * keymap.c (access_keymap): Remove generic char code.
8467 (push_key_description): Use CHARACTERP.
8468
73acf815 84692008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
8470
8471 * charset.c: Doc fixes.
8472 (Funify_charset): Extra checking.
8473
73acf815 84742008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
8475
8476 * lread.c: Remove some unused variables.
8477 (safe_to_load_p): If safe, return the magic number version byte.
8478 (Fload): Maybe use load-with-code-conversion.
8479
73acf815 84802008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8481
8482 * category.c (Fmodify_category_entry): Don't modify the contents
8483 of category_set for characters out of the range. Avoid
8484 unnecessary modification.
8485
1f45f627 8486 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
aca7a3d2
MB
8487 Vchar_unify_table. The default value of the table is now nil.
8488
8489 * character.c (syms_of_character): Setup Vchar_width_table for
8490 eight-bit-control and raw-byte chars.
8491
8492 * charset.h (enum define_charset_arg_index): Delete
8493 charset_arg_parents and add charset_arg_subset and
8494 charset_arg_superset.
8495 (enum charset_attr_index): Delete charset_parents and add
8496 charset_subset and charset_superset.
8497 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
8498 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
1f45f627 8499 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
aca7a3d2
MB
8500 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
8501 (CHARSET_SUPERSET): New macros.
8502 (charset_work): Extern it.
8503 (ENCODE_CHAR): Use charset_work.
1f45f627 8504 (CHAR_CHARSET_P): Adjust for the change of encoder format.
aca7a3d2
MB
8505 (map_charset_chars): Extern it.
8506
8507 * charset.c (load_charset_map): Set the default value of encoder
8508 and deunifier char-tables to nil.
1f45f627 8509 (map_charset_chars): Change argument. Change callers. Use
aca7a3d2
MB
8510 map_char_table_for_charset instead of map_char_table.
8511 (Fmap_charset_chars): New optional args from_code and to_code.
1f45f627 8512 (Fdefine_charset_internal): Adjust for the change of
aca7a3d2
MB
8513 `define-charset' (:parents -> :subset or :superset).
8514 (charset_work): New variable.
4c4475a8
GM
8515 (encode_char, syms_of_charset): Adjust for the change of
8516 Fdefine_charset_internal.
aca7a3d2
MB
8517 (Ffind_charset_string): Setup the vector `charsets' correctly.
8518
1f45f627 8519 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
aca7a3d2 8520 the previous change.
1f45f627 8521 (char_table_ref_and_range): Adjust for the above change.
aca7a3d2
MB
8522 (map_sub_char_table_for_charset): New function.
8523 (map_char_table_for_charset): New function.
8524
8525 * keymap.c (describe_vector): Handle a char-table directly here.
1f45f627 8526 (describe_char_table): Delete.
aca7a3d2 8527
1f45f627 8528 * lisp.h (map_charset_chars): Delete.
aca7a3d2 8529
73acf815 85302008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
8531
8532 * fns.c (count_combining): Comment out (unused).
8533 (Flocale_codeset): New.
8534 (syms_of_fns): Defsubr it.
8535
8536 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
1f45f627 8537 (size_t): Remove.
aca7a3d2 8538
73acf815 85392008-02-01 Dave Love <fx@gnu.org>
aca7a3d2 8540
6f69e89b 8541 * Makefile.in (chartab.o): Depend on charset.h.
aca7a3d2 8542
73acf815 85432008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8544
8545 * character.c (syms_of_character): Set the default value of
8546 Vprintable_chars to Qnil.
8547
73acf815 85482008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
8549
8550 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
8551
73acf815 85522008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8553
8554 * charset.c (load_charset_map): Handle the case that from < to
8555 correctly.
8556
4c4475a8
GM
8557 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
8558 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
8559 Pay attention to raw-8-bit chars.
aca7a3d2 8560
73acf815 85612008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 8562
4c4475a8
GM
8563 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
8564 It is not bytecompiled now.
aca7a3d2
MB
8565
8566 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
8567 (charset_jisx0208): New variables.
8568 (Fdefine_charset_internal): Setup them if appropriate.
8569 (init_charset_once): Initialize them to -1.
8570
1f45f627
GM
8571 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
8572 (charset_jisx0208): Extern them.
aca7a3d2 8573
1f204af3 8574 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
aca7a3d2 8575 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
1f45f627
GM
8576 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
8577 (setup_iso_safe_charsets): Fix arguments to Fassq.
4c4475a8
GM
8578 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
8579 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
8580 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
aca7a3d2
MB
8581 (encode_coding_iso_2022): Change the 1st arg to
8582 ENCODE_ISO_CHARACTER to a variable.
8583
73acf815 85842008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8585
8586 * charset.h (enum define_charset_arg_index): New enums
8587 charset_arg_min_code and charset_arg_max_code.
8588 (struct charset): New member char_index_offset.
8589
4c4475a8
GM
8590 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
8591 Take charset->char_index_offset into account.
aca7a3d2
MB
8592 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
8593 args[charset_arg_max_code]. Setup charset.char_index_offset.
8594 (syms_of_charset): Fix args to Fdefine_charset_internal.
8595
73acf815 85962008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
8597
8598 * coding.c (decode_coding_utf_8): Reject overlong sequences.
8599
73acf815 86002008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
8601
8602 * coding.c: Doc fixes.
8603 (Fcoding_system_aliases): Fix return value.
8604 (Qmac): Remove (duplicated) definition.
8605
73acf815 86062008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
8607
8608 * charset.c (Fcharset_priority_list, Fset_charset_priority): New
8609 functions.
8610
8611 * character.c (Fstring): Doc fix.
8612
8613 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
8614
8615 * fontset.c (Ffontset_info): Doc fix. Return charset names, not
8616 ids.
8617 (font-encoding-alist): Doc fix.
8618
73acf815 86192008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
8620
8621 * term.c (costs_set): Declare static, non-initialized for pcc.
1f45f627 8622 (encode_terminal_code): Remove unused var.
aca7a3d2
MB
8623
8624 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
8625 for K&R.
8626
8627 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
8628
8629 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
1f45f627 8630 (suffixes): Move out of make_subsidiaries for K&R.
aca7a3d2 8631
1f45f627 8632 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
aca7a3d2
MB
8633
8634 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
8635
73acf815 86362008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
8637
8638 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
8639
1f45f627 8640 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
aca7a3d2 8641
2a2e8de7 86422008-02-01 Yong Lu <lyongu@asia-infonet.com>
aca7a3d2
MB
8643
8644 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
8645
1f45f627 8646 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
aca7a3d2 8647
73acf815 86482008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 8649
4c4475a8 8650 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
aca7a3d2 8651 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
aca7a3d2 8652
73acf815 86532008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 8654
1f45f627 8655 * coding.c (decode_coding_charset): Adjust for the change of
aca7a3d2
MB
8656 Fdefine_coding_system_internal.
8657 (Fdefine_coding_system_internal): For a coding system of
8658 `charset' type, store a list of charset IDs in
8659 `charset_attr_charset_valids' element of coding attributes.
8660
73acf815 86612008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8662
8663 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
1f45f627
GM
8664 (emacs_mule_char): New arg src. Delete arg `composition'. Change
8665 caller. Handle 2-byte and 3-byte charsets correctly.
8666 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
8667 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
aca7a3d2
MB
8668 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
8669 (DECODE_EMACS_MULE_21_COMPOSITION): Call
8670 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
8671 sequence.
8672 (decode_coding_emacs_mule): Handle composition correctly. Rewind
1f45f627 8673 `src' and `consumed_chars' correctly before calling emacs_mule_char.
aca7a3d2
MB
8674 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
8675 and alt&rule composition.
8676 (decode_coding_iso_2022): Handle composition correctly.
8677 (init_coding_once): Setup emacs_mule_bytes for private charsets.
8678
8679 * charset.c (Fdefine_charset_internal): Fix bug for the case of
8680 re-defining a charset. If the charset has :emacs-mule-id, setup
8681 emacs_mule_bytes.
1f45f627 8682 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
aca7a3d2 8683
73acf815 86842008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 8685
4c4475a8
GM
8686 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
8687 (encode_coding_big5, encode_coding_charset): If coding requires safe
aca7a3d2
MB
8688 encoding, produce a character specified by
8689 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
aca7a3d2 8690
73acf815 86912008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
8692
8693 * xterm.c (XSetIMValues): Declare.
8694
8695 * process.c: Conditionally include sys/wait.h, pty.h.
8696
1f45f627 8697 * print.c (print_object): Fix print format for 64-bit systems.
aca7a3d2 8698
1f45f627 8699 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
aca7a3d2
MB
8700
8701 * buffer.c (emacs_strerror): Declare.
aca7a3d2
MB
8702
8703 * fontset.c (Fclear_face_cache): Declare.
1f45f627 8704 (accumulate_font_info): Comment-out (unused).
aca7a3d2
MB
8705 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
8706 variables.
8707
8708 * character.h (string_escape_byte8): Declare.
8709
8710 * charset.c (load_charset_map, load_charset_map_from_file): Remove
8711 unused vars.
8712 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
8713 (Fmap_charset_chars): Doc fix.
8714
1f45f627 8715 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
aca7a3d2
MB
8716 (Fset_coding_system_priority, Fset_coding_system_priority)
8717 (Fdefine_coding_system_internal): Doc fix.
8718
73acf815 87192008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
8720
8721 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
8722
73acf815 87232008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8724
8725 * character.c (string_escape_byte8): Make multibyte string with
8726 correct size.
8727
8728 * charset.c (Fmake_char): Delete unnecessary code.
8729
73acf815 87302008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8731
8732 * xfns.c (x_encode_text): Allocate coding.destination here, and
8733 call encode_coding_object with dst_object Qnil.
8734
8735 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
8736 multibyte form correctly.
8737
8738 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
8739 against Vfont_encoding_alist.
8740
8741 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
8742 handling of charset list.
8743 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
8744 (decode_coding_object): Move point to coding->dst_pos before
8745 calling post-read-conversion function.
8746 (encode_coding_object): Give correct arguments to
8747 pre-write-conversion. Ignore the return value of
8748 pre-write-conversion function. Pay attention to the case that
8749 pre-write-conversion changes the current buffer. If dst_object is
8750 Qt, even if coding->src_bytes is zero, allocate at least one byte
8751 to coding->destination.
8752
8753 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
8754
8755 * charset.c (Fmake_char): Make it more backward compatible.
8756 (Fmap_charset_chars): Fix docstring.
8757
73acf815 87582008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
8759
8760 * coding.c: Doc fixes.
8761 (Fdefine_coding_system_alias): Use names, not symbols, in
8762 coding-system-alist.
8763
73acf815 87642008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8765
8766 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
8767 of calling free_realized_face.
8768
2a2e8de7 87692008-02-01 Yong Lu <lyongu@asia-infonet.com>
aca7a3d2 8770
1f45f627
GM
8771 * charset.c (read_hex): Don't treat SPC as a comment starter.
8772 (decode_char): If CODE_POINT_TO_INDEX retruns -1, always return -1.
aca7a3d2
MB
8773 (Fdecode_char): Fix typo.
8774
73acf815 87752008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8776
8777 * charset.h (struct charset): New member `code_space_mask'.
8778
1f45f627 8779 * coding.c (coding_set_source): Delete the local variable beg_byte.
4c4475a8
GM
8780 (encode_coding_charset, Fdefine_coding_system_internal):
8781 Delete the local variable charset.
aca7a3d2
MB
8782 (Fdefine_coding_system_internal): Setup
8783 attrs[coding_attr_charset_valids] correctly.
8784
8785 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
8786 member to check if CODE is valid or not.
8787 (Fdefine_charset_internal): Initialize `code_space_mask' member.
8788 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
8789 is within the range of charset->min_code and carset->max_code.
8790
73acf815 87912008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
8792
8793 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
8794
8795 * dispextern.h (generate_ascii_font): Fix return type.
8796
8797 * xfaces.c (generate_ascii_font): Fix arg declaration.
8798
8799 * coding.c (coding_inherit_eol_type)
8800 (Fset_terminal_coding_system_internal)
8801 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
8802
73acf815 88032008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8804
8805 * coding.c (decode_coding_charset, encode_coding_charset): Handle
8806 multiple charsets correctly.
8807
73acf815 88082008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8809
8810 * search.c (boyer_moore): Fix handling of mulitbyte character
8811 translation.
8812
8813 * xdisp.c (display_mode_element): When the variable `elt' is
8814 changed, update `this' and `lisp_string'.
8815
73acf815 88162008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8817
8818 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
8819
8820 * callproc.c (Fcall_process): Be sure to give the current buffer
1f45f627 8821 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
aca7a3d2
MB
8822
8823 * charset.c (struct charset_map_entries): New struct.
1f45f627
GM
8824 (load_charset_map): Rename from parse_charset_map. New args
8825 entries and n_entries. Change caller.
8826 (load_charset_map_from_file): Rename from load_charset_map.
8827 Change caller. New arg control_flag. Call load_charset_map at
aca7a3d2
MB
8828 the tail.
8829 (load_charset_map_from_vector): New function.
8830 (Fdefine_charset_internal): Setup charset.compact_codes_p.
8831 (encode_char): If the charset is compact, change a character index
8832 to a code point.
8833
8834 * coding.c (coding_alloc_by_making_gap): Check the case that the
8835 source and destination are the same correctly.
8836 (decode_coding_raw_text): Set coding->consumed_char and
8837 coding->consumed to 0.
8838 (produce_chars): If coding->chars_at_source is nonzero, update
8839 coding->consumed_char and coding->consumed before calling
8840 alloc_destination.
8841 (Fdefine_coding_system_alias): Register ALIAS in
8842 Vcoding_system_alist.
8843 (syms_of_coding): Define `no-convesion' coding system at the tail.
8844
8845 * fileio.c (Finsert_file_contents): Set coding_system instead of
8846 val. If the current buffer is multibyte, always call
8847 decode_coding_gap.
8848
8849 * xfaces.c (try_font_list): Give higher priority to fontset's
8850 family than face's family.
8851
73acf815 88522008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8853
8854 * callproc.c (Fcall_process): Be sure to give the current buffer
8855 to decode_coding_c_string.
8856
8857 * xfaces.c (try_font_list): Give a family specified in a fontset
8858 higher priority than a family specified in a face.
8859
73acf815 88602008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8861
8862 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
8863 Fix arguments to insert_from_buffer.
8864
8865 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
8866
73acf815 88672008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8868
8869 * coding.c (produce_chars): Set the variable `multibytep' correctly.
8870 (decode_coding_gap): Set coding->dst_multibyte correctly.
8871
73acf815 88722008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8873
8874 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
1f45f627 8875 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
aca7a3d2
MB
8876 (encode_coding_utf_16): Substitute coding->default_char for
8877 non-Unicode characters.
8878 (decode_coding): Don't call record_insert here.
8879 (setup_coding_system): Initialize `surrogate' of
8880 coding->spec.utf_16 to 0.
8881 (EMIT_ONE_BYTE): Fix for multibyte case.
8882
8883 * insdel.c (insert_from_gap): Call record_insert.
8884
73acf815 88852008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8886
8887 * casefiddle.c (casify_region): Fix multibyte case.
8888
8889 * character.c (c_string_width): Add return type `int'.
1f45f627 8890 (char_string_with_unification): Delete arg ADVANCED.
aca7a3d2
MB
8891
8892 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
1f45f627 8893 (CHAR_STRING): Adjust for the change of char_string_with_unification.
aca7a3d2
MB
8894 (CHAR_STRING_ADVANCE): Make it do-while statement.
8895
1f45f627 8896 * chartab.c (sub_char_table_set_range): Optimize for the case
aca7a3d2
MB
8897 DEPTH == 3. Add workaround code for a GCC optimization bug.
8898
8899 * charset.c (parse_charset_map): Remove an unused variable.
8900
8901 * coding.c: Delete unused variables.
8902
8903 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
8904 earlier. If inserted is zero and the coding system doesn't
8905 require flushing, don't call decode_coding_gap.
8906
8907 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
8908
73acf815 89092008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8910
8911 The following changes are for using Unicode as an internal
8912 character model, and use UTF-8 format for buffer/string
8913 representation.
8914
1f45f627 8915 * .gdbinit (xchartable): Adjust for the change of char table structure.
aca7a3d2
MB
8916 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
8917
8918 * Makefile.in (obj): Add character.o and chartab.o.
c3f9fba8 8919 (lisp, shortlisp): Remove utf-8.elc.
aca7a3d2
MB
8920 (*.o): For many files, change dependency on charset.h to
8921 character.h, and add dependency on character.h.
8922 (character.o, chartab.o): New targets.
8923
1f45f627
GM
8924 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
8925 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
8926 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
aca7a3d2
MB
8927 of "charset.h".
8928
8929 * dired.c, filelock.c: Include "character.h".
8930
8931 * alloc.c: Include "character.h" instead of "charset.h".
4c4475a8 8932 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
aca7a3d2
MB
8933 (syms_of_alloc): Remove defsubr for Smake_char_table.
8934
8935 * buffer.c: Include "character.h" instead of "charset.h", don't
8936 include "coding.h".
1f45f627 8937 (Fset_buffer_multibyte): Adjust for UTF-8.
aca7a3d2
MB
8938
8939 * buffer.h: EXFUN Fbuffer_live_p.
8940
8941 * callproc.c: Include "character.h" instead of "charset.h".
8942 (Fcall_process): Big change for the new code-conversion APIs.
8943
8944 * casetab.c: Include "character.h" instead of "charset.h".
1f45f627 8945 (set_canon, set_identity, shuffle): Adjust for the new
aca7a3d2
MB
8946 map_char_table spec.
8947 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
8948 accessing the char table structure.
8949
8950 * chartab.c: New file that implements char table.
8951
8952 * category.c: Include "character.h".
8953 (copy_category_entry): New function.
8954 (copy_category_table): Call map_char_table and copy_category_entry.
8955 (Fmake_category_table): Initialize all top-vel slots.
8956 (char_category_set): New function.
1f45f627 8957 (modify_lower_category_set): Delete.
aca7a3d2
MB
8958 (Fmodify_category_entry): Call char_table_ref_and_range.
8959
8960 * category.h (CATEGORY_SET): Just call char_category_set.
8961
8962 * ccl.c: Include "character.h".
8963 (Qccl, Qcclp): New variables.
8964 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
8965 it's less than 256.
1f45f627
GM
8966 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
8967 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
aca7a3d2 8968 and DST type.
1f45f627
GM
8969 (ccl_driver): Change types of argument, adjust code accordingly.
8970 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
aca7a3d2
MB
8971 ccl_driver.
8972 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
8973
1f45f627
GM
8974 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
8975 New members src_multibyte, dst_multibyte, consumed, and produced.
8976 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
aca7a3d2 8977 (CODING_SPEC_CCL_PROGRAM): New macro.
1f45f627 8978 (ccl_driver): Update prototype.
aca7a3d2
MB
8979 (Qccl, Qcclp, Fccl_program_p): Extern them.
8980 (CHECK_CCL_PROGRAM): New macro.
8981
8982 * character.c, character.h, chartab.c: New files.
8983
1f45f627
GM
8984 * charset.c: Mostly re-written. Move character and multibyte sequence
8985 handling codes to character.c.
aca7a3d2 8986
1f45f627
GM
8987 * charset.h: Mostly re-written. Move character and multibyte sequence
8988 handling codes to character.h.
aca7a3d2
MB
8989
8990 * coding.c, coding.h: Mostly re-written.
8991
8992 * composite.c: Include "character.h" instead of "charset.h".
1f45f627
GM
8993 (CHAR_WIDTH): Move to character.h.
8994 (HASH_KEY, HASH_VALUE): Delete.
aca7a3d2 8995
1f45f627
GM
8996 * composite.h (enum composition_method): Change order of enumeration
8997 symbols.
aca7a3d2
MB
8998
8999 * data.c: Include "character.h" instead of "charset.h".
9000 (Faref): Call CHAR_TABLE_REF for a char table.
9001 (Faset): Call CHAR_TABLE_SET for a char table.
9002
1f45f627
GM
9003 * dispextern.h (free_realized_face, check_face_attribytes)
9004 (generate_ascii_font): Extern them.
9005 (free_realized_multibyte_face): Delete extern.
aca7a3d2 9006
1f45f627 9007 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
aca7a3d2
MB
9008 table structure.
9009
9010 * editfns.c: Include "character.h" instead of "charset.h".
9011 (Fchar_to_string): Always call CHAR_STRING.
9012
9013 * emacs.c (main): Call init_charset_once, init_charset,
9014 syms_of_chartab, and syms_of_character.
9015
9016 * fileio.c: Include "character.h" instead of "charset.h".
1f45f627 9017 (Finsert_file_contents): Big change for the new code-conversion API.
4c4475a8 9018 (choose_write_coding_system, Fwrite_region): Likewise.
1f45f627 9019 (build_annotations_2): Delete.
aca7a3d2
MB
9020 (e_write): Big change for the new code-conversion API.
9021
9022 * fns.c: Include "character.h" instead of "charset.h".
1f45f627 9023 (copy_sub_char_table): Move to chartab.c.
aca7a3d2
MB
9024 (Fcopy_sequence): Call copy_char_table for a char table.
9025 (concat): Delete codes calling count_multibyte.
4c4475a8
GM
9026 (string_char_to_byte, string_byte_to_char): Adjust for the new
9027 multibyte form.
1f45f627
GM
9028 (internal_equal): Adjust for the change of char table structure.
9029 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
9030 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
9031 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
9032 (char_table_translate, optimize_sub_char_table)
9033 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
aca7a3d2 9034 chartab.c.
1f45f627
GM
9035 (char_table_ref_and_index): Delete.
9036 (HASH_KEY, HASH_VALUE): Move to lisp.h.
aca7a3d2 9037 (Fmd5): Call preferred_coding_system instead of accessing
1f45f627
GM
9038 Vcoding_category_list. Adjust for the new code-conversion API.
9039 (syms_of_fns): Move defsubr for char table related functions to
aca7a3d2
MB
9040 chartab.c.
9041
9042 * fontset.c: Mostly re-written.
9043
1f45f627 9044 * fontset.h (struct font_info): Change type of the member encoding_type.
aca7a3d2 9045 (enum FONT_SPEC_INDEX): New enum.
1f45f627
GM
9046 (fontset_font_pattern, fs_load_font): Update prototype.
9047 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
aca7a3d2
MB
9048
9049 * indent.c: Include "character.h" instead of "charset.h".
1f45f627 9050 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
aca7a3d2
MB
9051
9052 * insdel.c: Include "character.h" instead of "charset.h".
9053 (copy_text): Don't refer to Vnonascii_translation_table.
9054 (insert_from_gap): New function.
9055
9056 * keyboard.c: Include "character.h" instead of "charset.h".
9057 (command_loop_1): Never call direct_output_forward_char before
9058 a non-ASCII character.
9059 (read_char): If Vkeyboard_translate_table is a char table, always
1f45f627 9060 translate a character.
aca7a3d2
MB
9061
9062 * keymap.c: Include "character.h".
9063 (store_in_keymap): Handle the case that IDX is a cons.
9064 (Fdefine_key): Handle the case that KEY is a cons and the car part
9065 is also a cons (range).
1f45f627 9066 (push_key_description): Adjust for the new character code.
aca7a3d2
MB
9067 (describe_vector): Call describe_char_table for a char table.
9068 (describe_char_table): New function.
9069
9070 * keymap.h (describe_char_table): Extern it.
9071
9072 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
9073 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
1f45f627
GM
9074 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
9075 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
9076 Delete.
9077 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
aca7a3d2
MB
9078 structure.
9079 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
1f45f627
GM
9080 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
9081 (CHARTAB_SIZE_BITS_3): New macros.
aca7a3d2 9082 (chartab_size): Extern it.
1f45f627 9083 (struct Lisp_Char_Table): Re-design.
aca7a3d2 9084 (struct Lisp_Sub_Char_Table): New structure.
1f45f627
GM
9085 (HASH_KEY, HASH_VALUE): Move from fns.c.
9086 (CHARACTERBITS): Define as 22.
9087 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
aca7a3d2
MB
9088 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
9089 (GC_SUB_CHAR_TABLE_P): New macro.
1f45f627
GM
9090 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
9091 (code_convert_string_norecord): Deleted extern.
9092 (init_character_once, syms_of_character, init_charset)
9093 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
aca7a3d2
MB
9094
9095 * lread.c: Include "character.h".
9096 (read_multibyte): New arg NBYTES.
1f45f627
GM
9097 (read_escape): Change the meaning of returned *BYTEREP.
9098 (to_multibyte): Delete.
9099 (read1): Adjust the handling of char table and string.
aca7a3d2
MB
9100
9101 * print.c: Include "character.h" instead of "charset.h".
9102 (print_string): Convert 8-bit raw bytes to octal form by
9103 string_escape_byte8.
1f45f627 9104 (print_object): Adjust for the new multibyte form. Print 8-bit
aca7a3d2
MB
9105 raw bytes always in octal form. Handle sub char table correctly.
9106
9107 * process.c: Include "character.h" instead of "charset.h".
4c4475a8
GM
9108 (read_process_output, send_process): Adjust for the new
9109 code-conversion API.
aca7a3d2 9110
1f45f627 9111 * puresize.h (BASE_PURESIZE): Increase.
aca7a3d2
MB
9112
9113 * regex.c: Include "character.h" instead of "charset.h".
9114 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
9115 (regex_compile): Accept a range whose starting and ending
9116 character have different leading bytes.
1f45f627 9117 (analyse_first): Adjust for the above change.
aca7a3d2
MB
9118
9119 * search.c: Include "character.h" instead of "charset.h".
1f45f627
GM
9120 (search_buffer, boyer_moore): Adjust for the new multibyte form.
9121 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
aca7a3d2
MB
9122
9123 * syntax.c: Include "character.h" instead of "charset.h".
1f45f627 9124 (syntax_parent_lookup): Delete.
aca7a3d2 9125 (Fmodify_syntax_entry): Accept a cons as CHAR.
1f45f627 9126 (skip_chars): Adjust for the new multibyte form.
aca7a3d2
MB
9127 (init_syntax_once): Call char_table_set_range instead of directly
9128 accessing the structure of a char table.
9129
9130 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
1f45f627 9131 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
aca7a3d2
MB
9132 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
9133 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
9134
9135 * term.c: Include "buffer.h" and "character.h".
4c4475a8
GM
9136 (encode_terminal_code, write_glyphs): Adjust for the new
9137 code-conversion API.
aca7a3d2
MB
9138 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
9139
1f45f627 9140 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
aca7a3d2
MB
9141
9142 * xdisp.c: Include "character.h".
1f45f627
GM
9143 (get_next_display_element): Adjust for the new multibyte form.
9144 (disp_char_vector): Adjust for the new char table structure.
9145 (decode_mode_spec_coding): Adjust for the new structure of
aca7a3d2 9146 coding system.
1f45f627 9147 (decode_mode_spec): Adjust for the new code-conversion API.
aca7a3d2
MB
9148
9149 * xfaces.c: Include "character.h" instead of "charset.h".
1f45f627 9150 (load_face_font): Adjust for the change of choose_face_font and
aca7a3d2
MB
9151 FS_LOAD_FONT.
9152 (generate_ascii_font): New function.
1f45f627
GM
9153 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
9154 (set_font_frame_param): Adjust for the change of choose_face_font.
aca7a3d2 9155 (free_realized_face): Make it public.
1f45f627 9156 (free_realized_faces_for_fontset): Rename from
aca7a3d2 9157 free_realized_multibyte_face. Free also faces realized for ASCII.
1f45f627 9158 (choose_face_font): Change arguments. Adjust for the change of
aca7a3d2
MB
9159 fontset_font_pattern and FS_LOAD_FONT.
9160
9161 * xfns.c: Include "character.h".
1f45f627 9162 (x_encode_text): Adjust for the new code-conversion API.
aca7a3d2
MB
9163
9164 * xselect.c: Don't include "charset.h".
1f45f627 9165 (selection_data_to_lisp_data): Adjust for the new code conversion API.
aca7a3d2
MB
9166
9167 * xterm.c: Include "character.h".
1f45f627 9168 (x_encode_char): New argument CHARSET. Change caller.
4c4475a8
GM
9169 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
9170 Call ENCODE_CHAR instead of SPLIT_CHAR.
aca7a3d2
MB
9171 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
9172 CHAR_WIDTH instead of CHARSET_WIDTH.
1f45f627
GM
9173 (XTread_socket): Adjust for the new code-conversion API.
9174 (x_new_font): Adjust for the change of FS_LOAD_FONT.
9175 (x_load_font): Adjust for the change of struct font.
aca7a3d2 9176
d6abfc14
SM
91772008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
9178
9179 * xfaces.c (face_at_buffer_position): Remove unused vars.
9180
0acdaf8d
KH
91812008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9182
4c4475a8
GM
9183 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
9184 Fix overflow checking.
0acdaf8d 9185
6c8a0ebf
GM
91862008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9187
9188 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
9189 Cancel previous change.
9190
91912008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
9192
9193 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
9194 ccl->eight_bit_control. Fix check for buffer overflow.
9195 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
9196 (ccl_driver): Initialize extra_bytes to 0.
9197
a32aad64
KH
91982008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
9199
9200 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
9201 return it ORed with ctrl_modifier.
9202
8b329dba
MB
92032008-01-29 Miles Bader <miles@gnu.org>
9204
9205 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
9206
548667aa
JR
92072008-01-28 Jason Rumney <jasonr@gnu.org>
9208
9209 * w32.c (stat): Don't double check for networked drive.
9210
0975aa24
SM
92112008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
9212
ef264c42
SM
9213 * window.c (run_window_configuration_change_hook): New function.
9214 Code extracted from set_window_buffer. Set the selected frame.
9215 (set_window_buffer): Use it.
9216 * window.h (run_window_configuration_change_hook): Declare.
9217 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
9218
0975aa24
SM
9219 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
9220
9c28b587
DN
92212008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
9222
9223 * Makefile.in: Remove references to unused macros.
9224
c617afce
EZ
92252008-01-26 Eli Zaretskii <eliz@gnu.org>
9226
9227 * w32.c (g_b_init_get_sid_sub_authority)
9228 (g_b_init_get_sid_sub_authority_count): New static variables.
9229 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
9230 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
0975aa24
SM
9231 (init_user_info): Use them to retrieve uid and gid.
9232 Use 500/513, the Windows defaults, as Administrator's uid/gid.
248c21c5
EZ
9233 (fstat): Use pw_uid and pw_gid from the_passwd structure for
9234 st_uid and st_gid of the file.
c617afce 9235
302d7d54
JR
92362008-01-26 Jason Rumney <jasonr@gnu.org>
9237
9238 * w32.c (logon_network_drive): New function.
9239 (stat): Use it.
9240
3ac7a21e
CY
92412008-01-26 Chong Yidong <cyd@stupidchicken.com>
9242
9243 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
9244 invisible text covered with an ellipsis.
9245
bbb9fc1f
RS
92462008-01-25 Richard Stallman <rms@gnu.org>
9247
9248 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
9249 jump back to beginning. Move some other initializations after that.
9250 (Qwindow_text_change_functions, Vwindow_text_change_functions):
9251 New variables.
9252 (syms_of_xdisp): Init them.
9253
9254 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
9255
0975aa24
SM
9256 * buffer.c (reset_buffer_local_variables):
9257 Implement `permanent-local-hook'.
bbb9fc1f 9258 (Qpermanent_local_hook): New variable.
0975aa24 9259 (syms_of_buffer): Init and staticpro it.
bbb9fc1f 9260
79235cbe
MA
92612008-01-25 Michael Albinus <michael.albinus@gmx.de>
9262
9263 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
9264
ccd8f7fe
TTN
92652008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
9266
9267 * fns.c (Fclrhash): Return TABLE.
9268
dfbe40f2 92692008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
223b3d1d
YM
9270
9271 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
9272 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
9273 is set even without positional changes.
9274 (x_scroll_bar_clear): Set bar->redraw_needed_p.
9275
9276 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
9277
dfbe40f2 92782008-01-23 Jason Rumney <jasonr@gnu.org>
602e142f 9279
d6169680
JR
9280 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
9281
602e142f
JR
9282 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
9283 the unicode range available in MULE by locale-coding-system.
c041e2d1 9284 Improve dbcs lead byte detection. Set event timestamp and modifiers
602e142f
JR
9285 earlier.
9286
dfbe40f2 92872008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5ee4de53
YM
9288
9289 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
9290 [MAC_OSX] (init_mac_osx_environment): Initialize it.
6f69e89b 9291 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
5ee4de53
YM
9292 when used on child processes.
9293
8c7a4ac5
MA
92942008-01-21 Michael Albinus <michael.albinus@gmx.de>
9295
e0df1b73 9296 * dbusbind.c (Fdbus_method_return_internal): Rename from
8c7a4ac5 9297 Fdbus_method_return.
e0df1b73 9298 (Fdbus_unregister_object): Move to dbus.el.
8c7a4ac5 9299 (Fdbus_call_method, Fdbus_method_return_internal)
e0df1b73 9300 (Fdbus_send_signal): Improve debug messages.
8c7a4ac5 9301
8abe0f97
MR
93022008-01-20 Martin Rudalics <rudalics@gmx.at>
9303
9304 * undo.c (undo_inhibit_record_point): New variable.
9305 (syms_of_undo): Initialize it.
9306 (record_point): Don't record point when undo_inhibit_record_point
9307 is set.
9308
c3b232e4
SM
93092008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
9310
e69c4cae
SM
9311 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
9312
823e0ebb
SM
9313 * xdisp.c (Qauto_hscroll_mode): New var.
9314 (syms_of_xdisp): Initialize it.
9315 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
9316 window's buffer.
9317 (hscroll_windows): Don't check automatic_hscrolling_p here.
9318
c3b232e4
SM
9319 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
9320 vscroll if we're setting window-buffer to the value it already has.
9321
76ed5e01
DN
93222008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
9323
9324 * m/intel386.h: Remove references to XENIX.
9325
55e6d9b2
AS
93262008-01-17 Andreas Schwab <schwab@suse.de>
9327
9328 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
9329 instead of HAVE_X86_64_LIB64_DIR.
9330 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
9331
b16ed52d
GM
93322008-01-17 Glenn Morris <rgm@gnu.org>
9333
9334 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
9335 to HAVE_X86_64_LIB64_DIR.
9336
6bed5c4a
DN
93372008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
9338
9339 * s/irix3-3.h:
9340 * s/irix4-0.h:
9341 * s/386-ix.h:
9342 * s/domain.h:
9343 * s/hpux9-x11r4.h:
9344 * s/hpux9shxr4.h: Remove files for systems no longer supported.
9345
9346 * sysdep.c: Remove code containing references to symbols defined
9347 by unsupported systems.
9348
fdecf907
GM
93492008-01-16 Glenn Morris <rgm@gnu.org>
9350
9351 * coding.c (select-safe-coding-system-function): Doc fix.
9352
9292328f
GM
93532008-01-15 Glenn Morris <rgm@gnu.org>
9354
9355 * config.in: Revert 2008-01-13 change: this is a generated file.
9356
944df511
MO
93572008-01-13 Tom Tromey <tromey@redhat.com>
9358
9359 * lisp.h: Fix typo.
9360
8111ec05
DN
93612008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
9362
f40f5dc3
DN
9363 * m/sequent-ptx.h:
9364 * m/sequent.h:
9365 * s/ptx.h:
9366 * s/ptx4-2.h:
9367 * s/ptx4.h: Remove files for systems no longer supported.
9368
ce20b664 9369 * callproc.c (Fcall_process): Fix previous change.
8111ec05 9370
e39a993c
DN
93712008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
9372
052e457f 9373 * unexsunos4.c: Remove file, system not supported anymore.
e39a993c 9374
290afd83
JB
9375 * m/mips.h:
9376 * m/intel386.h:
e39a993c
DN
9377 * callproc.c:
9378 * config.in:
9379 * ecrt0.c:
9380 * emacs.c:
9381 * fileio.c:
9382 * frame.c:
9383 * getpagesize.h:
9384 * keyboard.c:
9385 * lread.c:
9386 * process.c:
9387 * puresize.h:
9388 * sysdep.c:
9389 * systty.h:
9390 * syswait.h:
9391 * unexec.c:
9392 * xdisp.c:
9393 * alloc.c: Remove code containing references to symbols defined by
9394 unsupported systems.
9395
81cd7687
KH
93962008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
9397
9398 * coding.c (detect_coding_mask): Fix previous change.
9399
218b3b76
KH
94002008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
9401
9402 * coding.c (detect_coding_iso2022): New arg
9403 latin_extra_code_state. Allow Latin extra codes only
9404 when *latin_extra_code_state is nonzero.
9405 (detect_coding_mask): If there is a NULL byte, detect the encoding
9406 as UTF-16 or binary. If Latin extra codes exist, detect the
9407 encoding as ISO-2022 only when there's no other proper encoding is
9408 found.
9409
59ce725a 94102008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
081f2203 9411
59ce725a
MB
9412 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
9413 #ifdef MAC_OS.
048addec 9414
59ce725a 94152008-01-08 Richard Stallman <rms@gnu.org>
048addec 9416
59ce725a 9417 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
048addec 9418
8290574e
NR
94192008-01-06 Nick Roberts <nickrob@snap.net.nz>
9420
a0a3805c 9421 * keyboard.c (parse_menu_item): Don't enclose key bindings on
8290574e
NR
9422 menu bar in parentheses.
9423
f3041af1
DN
94242008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
9425
9426 * m/7300.h:
9427 * m/acorn.h:
9428 * m/alliant-2800.h:
9429 * m/alliant.h:
9430 * m/alliant1.h:
9431 * m/alliant4.h:
9432 * m/altos.h:
9433 * m/amdahl.h:
9434 * m/apollo.h:
9435 * m/att3b.h:
9436 * m/aviion-intel.h:
9437 * m/aviion.h:
9438 * m/celerity.h:
9439 * m/clipper.h:
9440 * m/cnvrgnt.h:
9441 * m/convex.h:
9442 * m/cydra5.h:
9443 * m/delta88k.h:
9444 * m/dpx2.h:
9445 * m/dual.h:
9446 * m/elxsi.h:
9447 * m/f301.h:
9448 * m/gould-np1.h:
9449 * m/gould.h:
9450 * m/i860.h:
9451 * m/ibmps2-aix.h:
9452 * m/ibmrt-aix.h:
9453 * m/ibmrt.h:
9454 * m/irist.h:
9455 * m/is386.h:
9456 * m/isi-ov.h:
9457 * m/mega68.h:
9458 * m/mg1.h:
9459 * m/news-r6.h:
9460 * m/news-risc.h:
9461 * m/news.h:
9462 * m/nh3000.h:
9463 * m/nh4000.h:
9464 * m/ns16000.h:
9465 * m/ns32000.h:
9466 * m/nu.h:
9467 * m/orion.h:
9468 * m/orion105.h:
9469 * m/paragon.h:
9470 * m/pfa50.h:
9471 * m/plexus.h:
9472 * m/pyramid.h:
9473 * m/pyrmips.h:
9474 * m/sh3el.h:
9475 * m/sps7.h:
9476 * m/sr2k.h:
9477 * m/stride.h:
9478 * m/sun1.h:
9479 * m/sun2.h:
9480 * m/sun3-68881.h:
9481 * m/sun3-fpa.h:
9482 * m/sun3-soft.h:
9483 * m/sun3.h:
9484 * m/sun386.h:
9485 * m/symmetry.h:
9486 * m/tad68k.h:
9487 * m/tahoe.h:
9488 * m/targon31.h:
9489 * m/tek4300.h:
9490 * m/tekxd88.h:
9491 * m/tower32.h:
9492 * m/tower32v3.h:
9493 * m/ustation.h:
9494 * m/wicat.h:
9495 * m/xps100.h:
9496 * s/cxux.h:
9497 * s/cxux7.h:
9498 * s/dgux.h:
9499 * s/dgux4.h:
9500 * s/dgux5-4-3.h:
9501 * s/dgux5-4r2.h:
9502 * s/esix.h:
9503 * s/esix5r4.h:
9504 * s/hiuxmpp.h:
9505 * s/hiuxwe2.h:
9506 * s/iris3-5.h:
9507 * s/iris3-6.h:
9508 * s/isc2-2.h:
9509 * s/isc3-0.h:
9510 * s/isc4-0.h:
9511 * s/isc4-1.h:
9512 * s/newsos5.h:
9513 * s/newsos6.h:
9514 * s/osf1.h:
9515 * s/osf5-0.h:
9516 * s/riscix1-1.h:
9517 * s/riscix12.h:
9518 * s/sco4.h:
9519 * s/sco5.h:
9520 * s/sunos4-0.h:
9521 * s/sunos4-1.h:
9522 * s/sunos413.h:
9523 * s/sunos4shr.h:
9524 * s/umax.h:
9525 * s/unipl5-2.h:
9526 * s/xenix.h:
9527 * cxux-crt0.s:
9528 * unexapollo.c:
9529 * unexconvex.c:
9530 * unexenix.c:
9531 * unexsni.c: Remove files for systems no longer supported.
9532
9533 * m/intel386.h: Remove references to unsupported systems.
9534
9535 * w32.c (get_emacs_configuration): Remove reference to i860.
9536
9537 * sysdep.c: Remove dead code.
9538
d35e1cd7
DN
95392008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
9540
9541 * s/rtu.h:
a0a3805c 9542 * m/masscomp.h: Remove files. Platform is obsolete.
d35e1cd7 9543
abe136ee
MA
95442008-01-04 Michael Albinus <michael.albinus@gmx.de>
9545
9546 * dbusbind.c (Fdbus_method_return): New function.
9547 (xd_read_message): Add the serial number to the event.
9548 (Fdbus_register_method): Activate the function.
9549
87df3c32
SM
95502008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
9551
9552 * keyboard.c (read_key_sequence): Fix typo.
9553
5125905e
MA
95542008-01-03 Michael Albinus <michael.albinus@gmx.de>
9555
9556 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
9557 (xd_signature, xd_append_arg): Handle element type detection for
9558 empty arrays.
9559 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
9560 SDATA () calls; this must be solved more general.
9561 (Fdbus_register_signal): Use SBYTES instead of strlen.
9562
8bba1b5c
MH
95632008-01-03 Magnus Henoch <magnus@zemdatav>
9564
9565 * dbusbind.c (xd_append_arg): Use unsigned char instead of
9566 unsigned int for byte values (necessary for big-endian platform).
2c3a8b27 9567 (Fdbus_call_method): Handle the case of no returned arguments.
8bba1b5c 9568
a0a3805c 95692007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
15f16c1b
MA
9570
9571 * dbusbind.c (xd_read_message): Use non-static input_event struct.
9572
a271e124
MH
95732007-12-31 Magnus Henoch <mange@freemail.hu>
9574
9575 * dbusbind.c (xd_signature): Signature of variant is just "v".
9576
17bc8f94
MA
95772007-12-30 Michael Albinus <michael.albinus@gmx.de>
9578
87df3c32 9579 * dbusbind.c: Fix several errors and compiler warnings.
1f204af3 9580 Reported by Tom Tromey <tromey@redhat.com>.
17bc8f94
MA
9581 (XD_ERROR, XD_DEBUG_MESSAGE)
9582 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
9583 (xd_append_arg): Part for basic D-Bus types rewitten.
9584 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
9585 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
9586 appropriate.
9587 (xd_read_message): Return Qnil. Don't signal an error; it is not
9588 useful during event reading.
9589 (Fdbus_register_signal): Signal an error if the check for
9590 FUNCTIONP fails.
9591 (Fdbus_register_method): New function. The implementation is not
9592 complete, the call of the function signals an error therefore.
9593 (Fdbus_unregister_object): New function, renamed from
9594 Fdbus_unregister_signal. The initial check signals an error, if
5125905e 9595 the object is not well formed.
17bc8f94 9596
dd6f2802
RS
95972007-12-30 Richard Stallman <rms@gnu.org>
9598
9599 * textprop.c (get_char_property_and_overlay):
9600 Signal error if POSITION is out of range in a buffer.
9601
1da8a031
MR
96022007-12-29 Martin Rudalics <rudalics@gmx.at>
9603
9604 * w32fns.c (Fx_create_frame): Make copy of frame parameters
9605 because the original parameters are in pure storage now.
9606
5742be86
YM
96072007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9608
9609 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
9610
b014713c
EZ
96112007-12-22 Eli Zaretskii <eliz@gnu.org>
9612
b17f53ab
MB
9613 * callint.c (syms_of_callint) <command-history>: Add reference to
9614 history-length in the doc string.
048addec 9615
b17f53ab 96162007-12-17 Jason Rumney <jasonr@gnu.org>
048addec 9617
b17f53ab
MB
9618 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
9619 before passing as wParam.
048addec 9620
9af5078b
MA
96212007-12-22 Michael Albinus <michael.albinus@gmx.de>
9622
9623 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
9624 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
9625 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
9626 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
9627 as number.
9628 (Fdbus_call_method): Fix docstring.
9629
87cf1a39
MA
96302007-12-21 Michael Albinus <michael.albinus@gmx.de>
9631
9632 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
9633 New macros.
87df3c32 9634 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
a0a3805c
JB
9635 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
9636 Simplify.
87cf1a39
MA
9637 (xd_signature): New function.
9638 (xd_append_arg): Compute also signatures. Major rewrite.
9639 (xd_retrieve_arg): Make debug messages friendly.
87df3c32
SM
9640 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
9641 Check for signatures of arguments.
87cf1a39 9642
54371585
MA
96432007-12-19 Michael Albinus <michael.albinus@gmx.de>
9644
9645 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
9646 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
9647 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
9648 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
9649 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
87df3c32 9650 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
54371585
MA
9651 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
9652 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
87df3c32 9653 (xd_retrieve_value): Remove. Functionality included in ...
54371585
MA
9654 (xd_append_arg): New function.
9655 (Fdbus_call_method, Fdbus_send_signal): Apply it.
9656
f5306ca3
MA
96572007-12-16 Michael Albinus <michael.albinus@gmx.de>
9658
9659 * dbusbind.c (top): Include <stdio.h>.
9660 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
9661 dbus_message_new_method_call and dbus_message_new_signal.
87df3c32
SM
9662 (Fdbus_register_signal): Rename unique_name to uname.
9663 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
f5306ca3
MA
9664 non-existing unique name. Fix typos in matching rule. Return an
9665 object which is useful in Fdbus_unregister_signal.
9666 (Fdbus_unregister_signal): Reimplementation, in order to remove
9667 only the corresponding entry.
9668 (Vdbus_registered_functions_table): Change the order of entries.
9669 Apply these changes in xd_read_message and Fdbus_register_signal.
9670
77a28bbf
AS
96712007-12-16 Andreas Schwab <schwab@suse.de>
9672
9673 * fileio.c (Finsert_file_contents): Fix overflow check to not
9674 depend on undefined integer overflow.
9675
2e3566d8
JR
96762007-12-14 Jason Rumney <jasonr@gnu.org>
9677
9678 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
9679 for characters above 127.
9680
bf254037
JR
96812007-12-13 Jason Rumney <jasonr@gnu.org>
9682
9683 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
9684 before dereferencing array.
9685 (lookup_vk_code): Remove zero comparison.
9686
eb7c7bf5
MA
96872007-12-14 Michael Albinus <michael.albinus@gmx.de>
9688
9689 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
87df3c32
SM
9690 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
9691 Use `unsigned int' instead of `uint'.
eb7c7bf5
MA
9692 (xd_read_message, Fdbus_register_signal): Split expressions into
9693 multiple lines before operators "&&" and "||", according to the
9694 GNU Coding Standards.
9695
34fb0fc9
EZ
96962007-12-14 Eli Zaretskii <eliz@gnu.org>
9697
9698 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
9699
c7d97628
JL
97002007-12-12 Juri Linkov <juri@jurta.org>
9701
9702 * buffer.c (Frename_buffer): In interactive spec replace
9703 `read-buffer' with `read-string' that uses `buffer-name-history'
9704 as history, and the current buffer's name as default.
9705
3709505e
SM
97062007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
9707
9708 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
9709 manipulating the backtrace manually.
9710 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
9711 (struct backtrace, backtrace_list): Remove.
9712 (command_loop_1): Remove dead var `no_direct'.
9713
9714 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
9715 preserve non-built-in buffer-local variables.
9716 (Fkill_all_local_variables): Don't re-create&re-set permanent
9717 buffer-local variables.
9718
e2bec886
JL
97192007-12-09 Juri Linkov <juri@jurta.org>
9720
9721 * buffer.c (Frename_buffer): Change interactive spec from "s" to
9722 Lisp code that uses `read-buffer' with current buffer as default.
9723
a31d47c7
MA
97242007-12-08 Michael Albinus <michael.albinus@gmx.de>
9725
9726 * dbusbind.c (xd_read_message): Generate an event for every
9727 registered handler. There might be several handlers registered
9728 for the same signal.
9729 (Fdbus_register_signal): Don't overwrite a registration for the
9730 same signal. Add a new registration if handlers are different.
9731 (Vdbus_registered_functions_table): Rework doc string.
9732
52da95fa
MA
97332007-12-07 Michael Albinus <michael.albinus@gmx.de>
9734
9735 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
9736 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
9737 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
9738 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
9739 Unify argument lists.
a0a3805c 9740 (xd_read_message, Fdbus_register_signal): Reorder and extend event
52da95fa
MA
9741 arguments and hash table keys. Use unique name for service.
9742 (Fdbus_unregister_signal): Remove checks.
9743 (Vdbus_registered_functions_table): Fix doc string.
9744
e5e76c04 97452007-12-05 Magnus Henoch <mange@freemail.hu>
0277bfa1
RS
9746
9747 * process.c (make_process): Initialize pty_flag to 0.
9748
e5e76c04 97492007-12-05 Jason Rumney <jasonr@gnu.org>
44b1dc2e
JR
9750
9751 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
9752 specified XBMs.
9753
e5e76c04 97542007-12-05 Richard Stallman <rms@gnu.org>
048addec 9755
e5e76c04 9756 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
048addec 9757
e5e76c04 97582007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
048addec 9759
e5e76c04
MB
9760 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
9761 New variable.
9762 (mac_try_close_socket) [MAC_OSX]: New function.
9763 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
9764 Update cfsockets_for_select. Replace invalid CFRunLoop source.
048addec 9765
e5e76c04
MB
9766 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
9767 Use mac_try_close_socket.
048addec 9768
e5e76c04 97692007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
048addec 9770
e5e76c04
MB
9771 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
9772 reloc_base.
9773 (copy_dysymtab): Compute relocation base here.
9774 (rebase_reloc_address) [__ppc64__]: New function.
9775 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
9776 changed.
048addec 9777
e5e76c04 97782007-12-05 Jason Rumney <jasonr@gnu.org>
048addec 9779
e5e76c04 9780 * w32proc.c (sys_spawnve): Quote args with wildcards.
048addec 9781
e5e76c04 97822007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
048addec 9783
e5e76c04
MB
9784 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
9785 __objc_* sections.
9786 (unrelocate) [_LP64]: Set relocation base to address of data segment.
048addec 9787
96faeb40
MA
97882007-12-05 Michael Albinus <michael.albinus@gmx.de>
9789
9790 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
9791 Move check for Vdbus_registered_functions_table to
9792 xd_read_queued_messages.
9793 (xd_read_queued_messages): Protect xd_read_message calls by
9794 internal_condition_case_1.
9795
39abdd4a
MA
97962007-12-04 Michael Albinus <michael.albinus@gmx.de>
9797
87df3c32 9798 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
39abdd4a 9799 Qdbus_system_bus and Qdbus_session_bus, respectively.
87df3c32 9800 (Vdbus_intern_symbols): Remove.
39abdd4a 9801 (Vdbus_registered_functions_table): New hash table.
87df3c32 9802 (XD_SYMBOL_INTERN_SYMBOL): Remove.
39abdd4a 9803 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
87df3c32 9804 Rewrite in order to manage registered functions by hash table
39abdd4a
MA
9805 Vdbus_registered_functions_table.
9806
880820fe 98072007-12-03 Jan Djärv <jan.h.d@swipnet.se>
7ba30657
JD
9808
9809 * xterm.c: Update URL to Window Manager Specification in comment.
9810
033b73e2
MA
98112007-12-02 Michael Albinus <michael.albinus@gmx.de>
9812
9813 * config.in (HAVE_DBUS): Add.
9814
a0a3805c 9815 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
033b73e2
MA
9816 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
9817 (obj): Add $(DBUS_OBJ).
9818 (LIBES): Add $(DBUS_LIBS).
9819 (dbusbind.o): New target.
9820
9821 * dbusbind.c: New file.
9822
9823 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
9824
9825 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
a0a3805c 9826 (Qdbus_event): New Lisp symbol.
033b73e2 9827 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
87df3c32 9828 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
033b73e2
MA
9829 (keys_of_keyboard ): Define dbus-event.
9830
9831 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
9832
39d0bf74
RS
98332007-12-01 Richard Stallman <rms@gnu.org>
9834
9835 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
9836
f3157c65
JR
98372007-11-30 Jason Rumney <jasonr@gnu.org>
9838
9839 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
9840 (w32con_reset_terminal_modes): Clear screen buffer.
f1e8dcf1
JR
9841 (w32_face_attributes): Don't use color indexes that are out of range.
9842 Only reverse the default colors.
f3157c65
JR
9843
9844 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
9845 WINDOWSNT.
9846
9847 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
9848
b510360c
JR
98492007-11-29 Jason Rumney <jasonr@gnu.org>
9850
9851 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
9852 (w32_face_attributes): Use Vtty_defined_color_alist to determine
9853 if the terminal colors are initialized.
9854 (unspecified_fg, unspecified_bg): Remove unused declarations.
9855
4b7ab1c4
AS
98562007-11-29 Andreas Schwab <schwab@suse.de>
9857
9858 * keyboard.c (apply_modifiers): Fix typo.
9859
4bb6c266
RS
98602007-11-29 Richard Stallman <rms@gnu.org>
9861
9862 * keymap.c (Fcurrent_local_map): Doc fix.
9863
aa44cd84
GM
98642007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
9865
9866 * s/gnu-kfreebsd.h: New file.
9867
21ec2c43
SM
98682007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
9869
cc648cef
SM
9870 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
9871 Don't cast redundantly.
9872
21ec2c43
SM
9873 * keyboard.c (KEY_TO_CHAR): New macro.
9874 (parse_modifiers, apply_modifiers): Accept integer arguments.
9875 (read_key_sequence): Use them to unify the "shift->unshift" mapping
9876 for chars and symbol keys.
9877 After doing such remapping, apply function-key-map again.
9878
73e72da4
DN
98792007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
9880
9881 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
9882 compiled anymore.
9883
254693ff
AS
98842007-11-26 Andreas Schwab <schwab@suse.de>
9885
9886 * process.c (list_processes_1): Fix indentation level of the
9887 command column.
9888
ff6e6ac8
AS
98892007-11-23 Andreas Schwab <schwab@suse.de>
9890
9891 * editfns.c (Fformat): Handle %c specially since it requires the
9892 argument to be of type int.
9893
f7cf8b20
SM
98942007-11-23 Markus Triska <markus.triska@gmx.at>
9895
9896 * emacs.c (main): Call init_editfns before init_process, since
2a2e8de7 9897 init_process sets Vprocess_connection_type depending on OS release.
f7cf8b20 9898
569c11e3
SM
98992007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
9900
8787dd73
SM
9901 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
9902 (find_symbol_value): Use do_symval_forwarding.
9903
569c11e3
SM
9904 * data.c (set_internal): Set the value in the `cons-cell' (for
9905 Buffer_Local_values) not only for frame-local variables.
9906
6af1696d
AS
99072007-11-22 Andreas Schwab <schwab@suse.de>
9908
9909 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
9910 values to sprintf.
9911 * keymap.c (Fsingle_key_description): Likewise.
9912 * print.c (print_object): Likewise.
9913
880820fe 99142007-11-22 Jan Djärv <jan.h.d@swipnet.se>
d4ad8c04
JD
9915
9916 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
9917 file for image is nil.
9918
7c401d15
DN
99192007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
9920
9921 * term.c: Include stdarg.h.
569c11e3 9922 (fatal): Implement using varargs.
a0a3805c 9923 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
7c401d15 9924
64e16c3c
SM
99252007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
9926
9927 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
9928 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
9929 Update call to buffer_slot_type_mismatch.
9930 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
9931 (buffer_slot_type_mismatch): Update.
9932 * buffer.c (buffer_local_types): Remove.
9933 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
9934 (defvar_per_buffer): Set the type in the buffer_objfwd.
9935
d4aa48db 99362007-11-21 Jason Rumney <jasonr@gnu.org>
5f42a7eb 9937
64e16c3c
SM
9938 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
9939 CreateFileMapping returns NULL on failure.
5f42a7eb 9940
d4aa48db 99412007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
048addec 9942
d4aa48db
MB
9943 * search.c (Fset_match_data): Remove the `evaporate' feature.
9944 (unwind_set_match_data): Don't use the `evaporate' feature.
437dfb9f 9945
bdae0540
JR
99462007-11-21 Jason Rumney <jasonr@gnu.org>
9947
9948 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
9949
9950 * w32console.c (w32con_write_glyphs): Remove unused variables.
9951
202c09a8
DN
99522007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
9953
b951420f
DN
9954 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
9955
202c09a8
DN
9956 * s/darwin.h (MULTI_KBOARD): Remove.
9957
9958 * macfns.c (x_create_tip_frame, Fx_create_frame)
9959 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
9960
bae72c12
SM
99612007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
9962
e7c10f83
SM
9963 * buffer.c (Fbuffer_local_value): Remove redundant test.
9964 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
9965 than in `current-buffer' to match the comment.
9966 Do the swap using swap_in_global_binding.
9967
136eb6ed
SM
9968 * data.c (store_symval_forwarding, set_internal):
9969 * eval.c (specbind): Remove dead code.
9970
bae72c12
SM
9971 * coding.c (detect_coding, Fupdate_coding_systems_internal):
9972 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
9973 Since we do not want to see internal Lisp_*fwd objects here.
9974
880820fe 99752007-11-18 Jan Djärv <jan.h.d@swipnet.se>
95fbaefc 9976
3d66b985
JD
9977 * sysdep.c (init_system_name): Use getaddrinfo if available.
9978
95fbaefc
JD
9979 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
9980 (x_scroll_bar_note_movement): start, end, with, height in struct
9981 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
9982
6c1d8cb6
DN
99832007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
9984
9985 * puresize.h (BASE_PURESIZE): Increase to 1190000.
9986
30f95089
SM
99872007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
9988
66b04bd4
SM
9989 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
9990 This undoes Richard's change of 14-Oct-2002.
9991
6d3f2bb2
SM
9992 * alloc.c (allocate_other_vector):
9993 * lisp.h (allocate_other_vector): Remove.
9994
b05b4e27
SM
9995 * window.c (struct save_window_data): Move non-lisp data to the end
9996 and make it `int' rather than Lisp_Object.
9997 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
9998 Done wrap/unwrap integer values.
9999 (Fset_window_configuration, compare_window_configurations):
10000 Update use of fields to their new types.
10001
056ce195
SM
10002 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
10003 Turn integer fields into `int'. Merge x_window_low and x_window_high.
10004 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
10005 (SET_SCROLL_BAR_X_WINDOW): Remove.
10006 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
10007 Access the new x_window field directly.
10008 * xterm.c (x_scroll_bar_create): Use a pseudovector.
10009 Don't wrap/unwrap integers into Lisp_Objects.
10010 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
10011 (x_scroll_bar_report_motion):
10012 Don't wrap/unwrap integers into Lisp_Objects.
10013 (x_term_init): Use SDATA.
10014 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
10015 (x_scroll_bar_set_handle, x_scroll_bar_remove)
10016 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
10017 (x_scroll_bar_report_motion, x_scroll_bar_clear):
10018 * xfns.c (x_set_background_color):
10019 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
10020 Access the new x_window field directly.
10021
30f95089
SM
10022 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
10023 (allocate_pseudovector): Make non-static.
6d3f2bb2 10024
30f95089
SM
10025 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
10026 (allocate_pseudovector): Declare.
6f69e89b 10027 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
30f95089 10028
9b6112e8
AS
100292007-11-15 Andreas Schwab <schwab@suse.de>
10030
30f95089
SM
10031 * editfns.c (Fformat): Correctly format EMACS_INT values.
10032 Also take precision into account when formatting an integer.
0f860bd7 10033
9b6112e8
AS
10034 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
10035
262fcd41
SM
100362007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
10037
58da34c7
SM
10038 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
10039 (syms_of_keyboard): Defsubr it.
10040
262fcd41
SM
10041 * data.c (swap_in_global_binding): Fix longstanding bug where
10042 store_symval_forwarding was not called with the right second argument,
10043 thus causing objfwd-ing from being dropped.
10044
d29a9848
JB
100452007-11-14 Juanma Barranquero <lekktu@gmail.com>
10046
10047 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
10048 (Fx_display_pixel_height, Fx_display_planes)
10049 (Fx_display_color_cells, Fx_server_max_request_size)
10050 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
10051 (Fx_display_visual_class, Fx_display_save_under):
10052 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
10053 (Fx_display_pixel_height, Fx_display_planes)
10054 (Fx_display_color_cells, Fx_server_max_request_size)
10055 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
10056 (Fx_display_mm_height, Fx_display_mm_width)
10057 (Fx_display_backing_store, Fx_display_visual_class)
10058 (Fw32_select_font, Fx_display_save_under):
10059 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
10060 (Fx_display_pixel_height, Fx_display_planes)
10061 (Fx_display_color_cells, Fx_server_max_request_size)
10062 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
10063 (Fx_display_save_under): Fix typos in docstrings.
10064
74084731
JB
100652007-11-14 Juanma Barranquero <lekktu@gmail.com>
10066
10067 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
10068 corresponding to deleted entries; they are an implementation detail.
10069 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
10070 Remove variables.
10071 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
10072 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
10073 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
10074 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
10075 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
d29a9848 10076 (Fw32_define_rgb_color, Fw32_load_color_file)
74084731 10077 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
02b39a28
JB
10078 Fix typos in docstrings.
10079 (Fx_server_version): Reflow docstring.
10080 (Fw32_shell_execute): Doc fixes.
74084731 10081
fb053a1f
JB
100822007-11-13 Juanma Barranquero <lekktu@gmail.com>
10083
10084 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
10085 if w32_parse_hot_key returned nil.
10086
a457417e 100872007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
9ec1bdb6 10088
a457417e 10089 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
9ec1bdb6 10090
4b219faa
JR
100912007-11-09 Jason Rumney <jasonr@gnu.org>
10092
10093 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
10094
10095 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
10096
10097 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
10098 Remove W32_SCROLL_BAR_CLICK_EVENT.
10099
10100 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
10101 Add MULTIMEDIA_KEY_EVENT.
10102
10103 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
10104 (lispy_multimedia_keys) [WINDOWSNT]: New array.
10105 (make_lispy_event) [WINDOWSNT]: Use it to translate
10106 MULTIMEDIA_KEY_EVENT.
10107
10108 * w32term.h (WM_APPCOMMAND): Define if not already.
10109 (GET_APPCOMMAND_LPARAM): Likewise.
10110
10111 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
10112 WM_APPCOMMAND.
10113
10114 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
10115 (syms_of_w32fns): Export and initialize it.
10116 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
10117
c12ecb0a 101182007-11-09 Chong Yidong <cyd@stupidchicken.com>
d388d2ac
CY
10119
10120 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
10121 twice.
10122
10123 * xdisp.c (handle_face_prop): Fix last change.
10124
c12ecb0a 101252007-11-09 Richard Stallman <rms@gnu.org>
048addec 10126
c12ecb0a
MB
10127 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
10128 not just for after-strings and before-strings.
10129 Call face_for_overlay_string and pass the overlay to it.
10130 (handle_display_prop): Determine whether property came from an overlay.
10131 Pass OVERLAY arg to handle_single_display_spec.
10132 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
10133 (load_overlay_strings): Fill in it->string_overlays.
10134 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
b5cb6072 10135
c12ecb0a
MB
10136 * xfaces.c (face_for_overlay_string): Function renamed from
10137 face_at_buffer_position_no_overlays, and add arg OVERLAY.
b5cb6072 10138
c12ecb0a
MB
10139 * dispextern.h (struct it): New elt string_overlays.
10140 New elt from_overlay, also in stack.
10141 Rearrange a few elements.
10142 (face_for_overlay_string): Decl renamed from
10143 face_at_buffer_position_no_overlays, and add argument.
15fff01d 10144
c12ecb0a 101452007-11-09 Richard Stallman <rms@gnu.org>
0065bb74 10146
c12ecb0a
MB
10147 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
10148 to get the base face for an overlay string.
0d8466cc 10149
c12ecb0a 10150 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
15fff01d 10151
c12ecb0a 10152 * xfaces.c (face_at_buffer_position_no_overlays): New function.
2fae9111 10153
c12ecb0a 10154 * xdisp.c (handle_stop): Move some code out of loop.
2d6c1fc0 10155
c12ecb0a 101562007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
07025a55 10157
c12ecb0a
MB
10158 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
10159 Fix conversion from Lisp object to ATSUFontID.
07025a55 10160
c12ecb0a 101612007-11-09 Jason Rumney <jasonr@gnu.org>
07025a55 10162
c12ecb0a 10163 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
3a232704 10164
c12ecb0a 101652007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
539e92ad 10166
c12ecb0a
MB
10167 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
10168 Don't assume regions are aligned to page boundary.
10169 (print_load_command_name): Add LC_UUID if defined.
3a232704 10170
c12ecb0a 101712007-11-09 Richard Stallman <rms@gnu.org>
0cb8bb48 10172
c12ecb0a 10173 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
539e92ad 10174
b8ddfbcc
JR
101752007-11-07 Jason Rumney <jasonr@gnu.org>
10176
10177 * s/windows95.h: Remove.
10178
880820fe 101792007-11-06 Jan Djärv <jan.h.d@swipnet.se>
e624c3f9
JD
10180
10181 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
10182 abort with a message on unhandled store_type values.
10183
880820fe 101842007-11-01 Jan Djärv <jan.h.d@swipnet.se>
ac1278c1
JD
10185
10186 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
10187 Remove HAVE_X11R5 and HAVE_X11R4.
10188
04a697fe
DN
101892007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
10190
10191 * Makefile.in: Remove references to sunfns.c and sunfns.o.
10192
880820fe 101932007-11-01 Johan Bockgård <bojohan@gnu.org>
56dad874
GM
10194
10195 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
fb053a1f 10196 Don't set s->stippled_p here, since it has already been set by
56dad874
GM
10197 x_set_glyph_string_gc from x_draw_glyph_string.
10198
07e5c0b0
DN
101992007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
10200
2a2e8de7 10201 * sunfns.c: Remove file.
07e5c0b0
DN
10202
10203 * m/sun386.h:
10204 * m/sun2.h:
10205 * m/sparc.h: Remove Sun windows code.
10206
1bc973c2
SM
102072007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
10208
10209 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
10210 (init_keyboard): Set current_kboard's window-system to nil.
10211 (tty_read_avail_input): Typo.
10212 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
10213
c22140f6
DN
102142007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
10215
10216 * s/usg5-4.h:
10217 * s/usg5-3.h:
10218 * s/ptx.h:
10219 * m/is386.h:
10220 * m/ibmps2-aix.h:
2a2e8de7 10221 * Makefile.in: Remove all mentions of X10.
c22140f6
DN
10222
10223 * dispnew.c (syms_of_display): Don't mention version 10.
10224
660a8219
JB
102252007-10-28 Juanma Barranquero <lekktu@gmail.com>
10226
10227 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
10228 ($(BLD)/abbrev.$(O)): Remove.
10229
e047f448
SM
102302007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
10231
10232 Rewrite abbrev.c in Elisp.
10233 * image.c (Qcount): Don't declare as extern.
10234 (syms_of_image): Initialize and staticpro `Qcount'.
10235 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
10236 * emacs.c (main): Don't call syms_of_abbrev.
10237 * Makefile.in (obj): Remove abbrev.o.
10238 (abbrev.o): Remove.
10239 * abbrev.c: Remove.
10240
67b73e3a
MR
102412007-10-26 Martin Rudalics <rudalics@gmx.at>
10242
10243 * window.c (window_min_size_2): Don't count header-line.
10244
e3d7bd83
DN
102452007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
10246
10247 * frame.h (struct frame): Move all bit fields after the first bit
660a8219 10248 field to take advantage of the available space. Group all the
e3d7bd83
DN
10249 chars together to reduce wasted space due to padding.
10250
a3547743
JB
102512007-10-26 Juanma Barranquero <lekktu@gmail.com>
10252
e298936f
JB
10253 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
10254
d3d47262
JB
10255 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
10256 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
10257 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
10258 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
10259 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
10260 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
10261 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
10262 (last_marked, mark_object_loop_halt): Make static.
10263
a3547743
JB
10264 * frame.c (syms_of_frame) <delete-frame-functions>:
10265 Fix typo in docstring.
10266
14c71d8b
JB
102672007-10-25 Juanma Barranquero <lekktu@gmail.com>
10268
10269 * w32.c (init_environment): Fix tiny memory leak.
66199f74 10270 (w32_get_resource): Remove unused variable `ok'.
14c71d8b 10271
70b8d0a4
SM
102722007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
10273
10274 Make `window-system' into a keyboard-local variable (rather than
10275 frame-local as done originally by multi-tty).
10276
10277 * keyboard.h (struct kboard): Add Vwindow_system.
10278 * keyboard.c (init_kboard): Set a default for Vwindow_system.
10279 (mark_kboards): Mark Vwindow_system.
10280
10281 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
10282 (init_display): Don't set the obsolete `window-system' frame-param.
10283
10284 * xterm.c (x_term_init):
10285 * w32term.c (w32_create_terminal):
10286 * term.c (init_tty): Set Vwindow_system.
10287 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
10288 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
10289
10290 * xfns.c (Fx_create_frame, x_create_tip_frame):
10291 * w32fns.c (Fx_create_frame, x_create_tip_frame):
10292 * macfns.c (Fx_create_frame):
10293 Don't set the obsolete `window-system' frame-param.
10294
10295 * frame.h (Qwindow_system): Remove.
10296 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
10297 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
10298
fdc90613 102992007-10-24 Richard Stallman <rms@gnu.org>
4521d1fc 10300
fdc90613
MB
10301 * frame.c (x_figure_window_size): For fullscreen case,
10302 set USPosition | PPosition without clobbering rest of window_prompting.
7c75be36 10303
fdc90613 10304 * keyboard.c (Fcurrent_idle_time): Doc fix.
4521d1fc 10305
fdc90613 10306 * print.c (Fwith_output_to_temp_buffer): Doc fix.
4521d1fc 10307
7357cb04
SM
103082007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
10309
98228e72
SM
10310 * process.c (unwind_request_sigio): Only define if __ultrix__.
10311
1baf6db9
SM
10312 * callproc.c (child_setup): Remove spurious *.
10313
4d0ac3d7
SM
10314 * lisp.h (Fget_text_property): Declare.
10315 (have_menus_p): Declare it here rather than in sys-dep header files.
10316 * macterm.h (have_menus_p):
10317 * msdos.h (have_menus_p):
10318 * xterm.h (have_menus_p): Remove.
10319
7357cb04
SM
10320 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
10321 (Fmake_variable_frame_local): Just check the variable's const-ness
10322 rather than checking nil or t.
10323
866e6dd6
JR
103242007-10-22 Jason Rumney <jasonr@gnu.org>
10325
b00afeae
JR
10326 * w32fns.c: Include math.h.
10327 (w32_abort): Declaration moved to nt/config.nt.
0f7f11b7 10328
c8f7c76b
JR
10329 * s/ms-w32.h (HAVE_STDLIB_H): Define.
10330 (abort): Redefinition moved to nt/config.nt.
10331
866e6dd6
JR
10332 * m/windowsnt.h: Remove.
10333
e79beb56
JB
103342007-10-22 Juanma Barranquero <lekktu@gmail.com>
10335
10336 * emacs.c (Fdump_emacs): Fix typo in message.
10337 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
10338 <installation-directory>: Reflow docstring.
10339
fb30dfd2
JL
103402007-10-22 Juri Linkov <juri@jurta.org>
10341
10342 * minibuf.c: Allow minibuffer default to be a list of default values.
10343 With empty input use the first element of this list as returned default.
e79beb56 10344 (string_to_object)
0f7f11b7 10345 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
fb30dfd2
JL
10346 (read_minibuf): If defalt is cons, set histstring to its car.
10347 (Fread_string): If default_value is cons, set val to its car.
10348 (Fread_buffer): If def is cons, use its car.
10349 (Fcompleting_read): If defalt is cons, set val to its car.
10350
1f163f28
MA
103512007-10-21 Michael Albinus <michael.albinus@gmx.de>
10352
10353 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
10354
db3534c3
JB
103552007-10-20 Juanma Barranquero <lekktu@gmail.com>
10356
10357 * doc.c (Fdocumentation): Check for advice in all cases.
10358
c6f18a07
CY
103592007-10-19 Chong Yidong <cyd@stupidchicken.com>
10360
10361 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
10362
2a1534d3
RS
103632007-10-19 Richard Stallman <rms@gnu.org>
10364
10365 * doc.c (Fdocumentation): Check for and handle an advised function.
10366
7b82c3b6
JB
103672007-10-19 Juanma Barranquero <lekktu@gmail.com>
10368
10369 * process.c (Fset_process_filter): Doc fix.
10370
3278f20e
SM
103712007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
10372
10373 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
10374 which caused key-translation-map to applied repeatedly (thus breaking
10375 double-mode).
10376
99784d63
SM
103772007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
10378
10379 * xselect.c (x_own_selection, x_handle_selection_clear)
10380 (x_clear_frame_selections):
10381 * w32menu.c (list_of_panes, list_of_items):
10382 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
10383 * textprop.c (validate_plist, interval_has_all_properties)
10384 (interval_has_some_properties, interval_has_some_properties_list)
10385 (add_properties, text_property_list):
10386 * process.c (Fget_buffer_process, list_processes_1, status_notify):
10387 * minibuf.c (Fassoc_string):
10388 * macselect.c (x_own_selection, x_clear_frame_selections)
10389 (Fx_disown_selection_internal):
10390 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
10391 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
10392
44bb704d
CY
103932007-10-17 Chong Yidong <cyd@stupidchicken.com>
10394
10395 * process.c: Link to libs for calling res_init() if available.
10396 (Fmake_network_process): Call res_init() before getaddrinfo or
10397 gethostbyname, if possible.
10398
d314756e
SM
103992007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
10400
2504022a
SM
10401 * lread.c (read1): Set pvectype for char_tables.
10402
19fa82b9
SM
10403 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
10404 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
10405 Add type checks.
10406 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
10407
d314756e
SM
10408 * alloc.c (free_misc): Use XMISCTYPE.
10409 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
10410
94b9aaa2
GM
104112007-10-17 Glenn Morris <rgm@gnu.org>
10412
10413 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
10414 (syms_of_minibuf): Add Qcompletion_ignore_case.
10415 * dired.c (Qcompletion_ignore_case): Change to external.
10416 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
10417 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
10418 (Fread_file_name): Use it rather than intern'ing.
10419
10420 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
10421 (Fread_coding_system): Ignore case of user input.
10422
da6658e8
YM
104232007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10424
10425 * xdisp.c (handle_display_prop): Ignore display specs after
10426 replacing one when string text is being replaced.
10427 (handle_single_display_spec): Pretend as if characters with display
10428 property haven't been consumed only when buffer text is being replaced.
10429
11fb4bdb
SM
104302007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
10431
9beb8baa
SM
10432 * xfns.c (Fx_create_frame, Fx_display_list):
10433 * window.c (window_fixed_size_p, enlarge_window)
10434 (shrink_window_lowest_first):
10435 * macterm.c (init_font_name_table):
10436 * macfns.c (Fx_create_frame, Fx_display_list):
10437 * lread.c (close_load_descs):
10438 * keyboard.c (read_char_x_menu_prompt):
10439 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
10440 * coding.c (code_convert_region_unwind): Test the type of an object
10441 rather than just !NILP before extracting data from it.
10442
d3f41ff5
SM
10443 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
10444
67ee9f6e
SM
10445 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
10446 (XMISCANY): New macro.
10447 (XMISCTYPE): Use it.
10448 (struct Lisp_Misc_Any): New type.
10449 (union Lisp_Misc): Use it.
10450 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
10451 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
10452 (find_symbol_value, set_internal, default_value, Fset_default)
10453 (Fmake_variable_buffer_local, Fmake_local_variable)
10454 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
10455 (Flocal_variable_if_set_p, Fvariable_binding_locus):
10456 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
10457 * alloc.c (allocate_buffer): Set the size and tag.
10458 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
10459 Use XMISCANY.
10460 (die): Follow the GNU convention for error messages.
10461 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
10462 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
10463 tag any more.
10464 (set_buffer_internal_1):
10465 * frame.c (store_frame_param):
10466 * eval.c (specbind):
10467 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
10468
11fb4bdb
SM
10469 * doc.c (Fsnarf_documentation): Simplify.
10470
decb374a
JB
104712007-10-14 Juanma Barranquero <lekktu@gmail.com>
10472
10473 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
10474 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
10475
b5a40ee7
SM
104762007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
10477
10478 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
10479
35277b03
JB
104802007-10-14 Juanma Barranquero <lekktu@gmail.com>
10481
10482 * eval.c (do_autoload): Don't save autoloads.
10483
10484 * data.c (Ffset): Save autoload of the function being set.
10485
35fdaa62
GM
104862007-10-07 John Paul Wallington <jpw@pobox.com>
10487
10488 * xfns.c (x_create_tip_frame): Set the `display-type' frame
10489 parameter before setting up faces.
10490
1ea40aa2
EZ
104912007-10-13 Eli Zaretskii <eliz@gnu.org>
10492
35fdaa62 10493 * ccl.c (Fregister_code_conversion_map):
96a5affb
EZ
10494 * keyboard.c (append_tool_bar_item): Reformat last change.
10495
1ea40aa2
EZ
10496 * lisp.h (eabs): Rename from `abs'. All callers changed.
10497
35277b03 104982007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
71d00ce4
EZ
10499
10500 * buffer.c (add_overlay_mod_hooklist):
10501 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
10502 * fontset.c (make_fontset):
10503 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
10504 (append_tool_bar_item):
10505 * macmenu.c (grow_menu_items):
35fdaa62 10506 * w32menu.c (grow_menu_items):
71d00ce4 10507 * xmenu.c (grow_menu_items): Use larger_vector.
35fdaa62 10508
bc82f120
EZ
105092007-10-13 Eli Zaretskii <eliz@gnu.org>
10510
10511 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
10512 selected frame'' on MSDOS).
10513
d57d5a78
MR
105142007-10-12 Martin Rudalics <rudalics@gmx.at>
10515
10516 * frame.c (Qexplicit_name): New variable.
10517 (x_report_frame_params): Report it in parameter alist.
10518 (syms_of_frame): Intern and staticpro it.
10519
35277b03 105202007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
04710ebd
JR
10521
10522 * macfns.c (x_create_tip_frame): Set terminal for frame.
10523
c7a4b95b
SM
105242007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
10525
26f9c7b7
SM
10526 * frame.c (Qenvironment): Remove.
10527 (syms_of_frame) <Qenvironment>: Don't initialize.
10528 (Fdelete_frame): Don't treat the `environment' param specially.
10529 * frame.h (Qenvironment): Don't declare.
10530 * callproc.c (set_initial_environment): Don't set unused frame param.
10531
c7a4b95b
SM
10532 * frame.c (Fframe_with_environment): Remove.
10533 (syms_of_frame) <Sframe_with_environment>: Don't declare.
26f9c7b7 10534
c7a4b95b
SM
10535 * lisp.h (Fframe_with_environment): Don't declare.
10536
c86f7377
JB
105372007-10-10 Juanma Barranquero <lekktu@gmail.com>
10538
10539 * indent.c (indent_tabs_mode, last_known_column)
10540 (last_known_column_modified): Make static.
10541 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
10542
d1b3a122
KY
105432007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
10544
10545 * puresize.h (BASE_PURESIZE): Increase to 1170000.
10546
d57d5a78
MR
105472007-10-09 Jason Rumney <jasonr@gnu.org>
10548
10549 * w32term.c (x_set_window_size): Disable code that attempts to tell
10550 Lisp code about a size change before it actually happens.
10551
81d3d428 105522007-10-09 Richard Stallman <rms@gnu.org>
91175673 10553
81d3d428
MB
10554 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
10555 return HANDLED_RETURN.
91175673 10556
1af74d06 105572007-10-08 Martin Rudalics <rudalics@gmx.at>
4f1b1854 10558
1af74d06
MB
10559 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
10560 when there's an unread command event.
e0fead5d 10561
c7a4b95b 10562 * frame.c (focus_follows_mouse): Move here from frame.el to allow
1af74d06
MB
10563 window autoselection act appropriately when leaving selected frame.
10564 (syms_of_frame): Initialize focus_follows_mouse.
10565 * frame.h (focus_follows_mouse): Extern it.
10566 * macterm.c (XTread_socket): When focus_follows_mouse is nil
c7a4b95b 10567 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
1af74d06
MB
10568 * msdos.c (dos_rawgetc): Likewise.
10569 * w32term.c (w32_read_socket): Likewise.
10570 * xterm.c (handle_one_xevent): Likewise.
10571 * xdisp.c (syms_of_xdisp): In doc-string of
10572 mouse-autoselect-window mention focus-follows-mouse.
e0fead5d 10573
1af74d06 105742007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
e0fead5d 10575
1af74d06
MB
10576 * macterm.c (mac_load_query_font): Fix missing return value.
10577 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
10578 Add BLOCK_INPUT.
c186cdb3 10579
1af74d06 105802007-10-08 Richard Stallman <rms@gnu.org>
c186cdb3 10581
1af74d06
MB
10582 * xdisp.c (get_window_cursor_type): Implement documented behavior
10583 for cursor-in-non-selected-windows = t.
c186cdb3 10584
1af74d06 105852007-10-08 Jason Rumney <jasonr@gnu.org>
c186cdb3 10586
1af74d06 10587 * w32.c (w32_get_resource): Always close registry keys.
58cfce98 10588
1af74d06 105892007-10-08 Jason Rumney <jasonr@gnu.org>
58cfce98 10590
1af74d06 10591 * makefile.w32-in (LIBS): Add COMCTL32.
62854fe2 10592
1af74d06 10593 * w32fns.c (globals_of_w32fns): Init common controls.
62854fe2 10594
1af74d06 105952007-10-08 Richard Stallman <rms@gnu.org>
656f46bb 10596
c7a4b95b 10597 * image.c (our_memory_buffer): Rename from omfib_buffer.
656f46bb 10598
1af74d06 105992007-10-08 Richard Stallman <rms@gnu.org>
656f46bb 10600
1af74d06 10601 * buffer.c (Foverlays_at): Doc fix.
036e218d 10602
1af74d06 106032007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
036e218d 10604
1af74d06 10605 * fns.c (Fplist_put): Preserve uneven tail data.
7ddb2c16 10606
1af74d06 106072007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
7ddb2c16 10608
1af74d06 10609 * termhooks.h (enum event_kind): Remove trailing comma.
ace9b298 10610
1af74d06 10611 * frame.h (enum): Remove trailing comma.
90647b07 10612
8993ad2e 106132007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
90647b07 10614
1af74d06 10615 * w32proc.c (delete_child): Don't terminate threads of zombies.
ace9b298 10616
1af74d06 106172007-10-08 Martin Rudalics <rudalics@gmx.at>
ace9b298 10618
1af74d06 10619 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
ace9b298 10620
1af74d06
MB
10621 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
10622 last-repeatable-command.
10623 (init_kboard): Initialize Vlast_repeatable_command.
10624 (command_loop_1): Set it to real_this_command unless that was
10625 bound to an input event.
10626 (mark_kboards): Mark it.
9fbc32aa 10627
1af74d06 106282007-10-08 Richard Stallman <rms@gnu.org>
036e218d 10629
1af74d06 10630 * eval.c (condition-case): Doc fix.
9fbc32aa 10631
1af74d06 106322007-10-08 Masatake YAMATO <jet@gyve.org>
9fbc32aa 10633
1af74d06
MB
10634 * xfaces.c (tty_supports_face_attributes_p): Fix code
10635 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
10636 was copied and not edited.
9fbc32aa 10637
beb9f745
SM
106382007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
10639
c86f7377 10640 Add new `input-decode-map' keymap and use it for terminal
4f4a84ec
SM
10641 escape sequences.
10642 * keyboard.h (struct kboard): Add Vinput_decode_map.
10643 Remove Vlocal_key_translation_map.
10644 * keyboard.c (read_key_sequence): Add support for input-decode-map.
10645 (init_kboard): Init input-decode-map.
10646 Replace local-key-translation-map back with key-translation-map.
10647 (syms_of_keyboard): Declare input-decode-map.
10648 Remove local-key-translation-map. Update docstrings.
10649 (mark_kboards): Mark Vinput_decode_map.
10650 Don't mark Vlocal_key_translation_map.
10651 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
10652 Replace local-key-translation-map back with key-translation-map.
10653 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
10654 Bind in input-decode-map rather than function-key-map.
10655
beb9f745
SM
10656 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
10657 This was made redundant by the previous introduction of XSETPVECTYPE.
10658
65342ae3
RS
106592007-10-09 Richard Stallman <rms@gnu.org>
10660
beb9f745 10661 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
65342ae3
RS
10662
106632007-09-29 Richard Stallman <rms@gnu.org>
10664
10665 * eval.c (internal_condition_case_2, internal_condition_case_1)
10666 (internal_condition_case): Reenable abort if x_catching_errors ()
10667 to see if that really happens and why.
10668
6cff77fd
AS
106692007-10-06 Andreas Schwab <schwab@suse.de>
10670
10671 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
10672
bbe6f2aa
JB
106732007-10-04 Juanma Barranquero <lekktu@gmail.com>
10674
10675 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
10676
a390930c
SM
106772007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
10678
10679 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
10680
d6aa1876
SM
106812007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
10682
d0fdb6da
SM
10683 * window.h (struct window):
10684 * window.c (struct save_window_data, struct saved_window):
10685 * termhooks.h (struct terminal):
10686 * process.h (struct Lisp_Process):
10687 * frame.h (struct frame):
10688 * buffer.h (struct buffer):
10689 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
10690 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
10691 The size field of (pseudo)vectors is now unsigned.
10692 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
10693
878f97ff
SM
10694 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
10695 Turn `count' into an integer.
d0fdb6da 10696
878f97ff
SM
10697 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
10698 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
10699 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
10700 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
10701 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
10702
d2029e5b
SM
10703 * alloc.c (allocate_pseudovector): New fun.
10704 (ALLOCATE_PSEUDOVECTOR): New macro.
10705 (allocate_window, allocate_terminal, allocate_frame)
10706 (allocate_process): Use it.
10707 (mark_vectorlike): New function.
10708 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
10709 (mark_terminals): Use it.
10710 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
10711 (Fmake_byte_code): Use XSETPVECTYPE.
10712
10713 * frame.c (Fframe_parameters): Minor simplification.
10714
10715 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
10716
10717 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
10718
10719 * buffer.c (Fget_buffer_create, init_buffer_once):
10720 * lread.c (defsubr):
10721 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
10722
10723 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
10724 defined differently in the m/*.h files.
10725 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
10726 (XSETPVECTYPE): New macro.
10727 (XSETPSEUDOVECTOR): Use it.
10728
d6aa1876
SM
10729 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
10730 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
d2029e5b 10731
d6aa1876
SM
10732 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
10733 * lread.c (defvar_per_buffer):
10734 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
10735
10736 * window.c (candidate_window_p): Only consider as visible frames that
10737 are on the same terminal.
10738
10739 * m/ibms390x.h (MARKBIT): Remove unused macro.
10740
88852d45
JB
107412007-10-01 Juanma Barranquero <lekktu@gmail.com>
10742
10743 * lread.c (Fload): Fix typo in docstring.
10744
880820fe 107452007-10-01 Michaël Cadilhac <michael@cadilhac.name>
2742fe30
MC
10746
10747 * floatfns.c (Fexpt): Manually check for overflows, so that a power
10748 of a non-zero value can't yield zero.
10749
ed0c79c6
SM
107502007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
10751
b870aa61
SM
10752 * term.c (term_clear_mouse_face, term_mouse_highlight)
10753 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
10754
4c37a414
SM
10755 * print.c (safe_debug_print): Use XHASH.
10756
b9466edb
SM
10757 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
10758 Lisp elements such as tags.
10759 (XHASH): New macro.
10760 (EQ): Use it.
10761 (SREF, SSET, STRING_COPYIN): Use SDATA.
10762 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
10763
9c545a55
SM
10764 * alloc.c (mark_terminal): Remove left-over declaration.
10765 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
10766 (allocate_vectorlike): Remove type argument. Adjust callers.
10767 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
10768 Only handle the one remaining MEM_TYPE_VECTORLIKE.
10769
dafc79fa
SM
10770 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
10771 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
10772 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
10773 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
10774 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
10775 Use them.
10776
ed0c79c6
SM
10777 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
10778 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
10779 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
10780
3c81afd4
DN
107812007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
10782
10783 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
10784 loaded by default.
10785
6178ce5e
SM
107862007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
10787
4ce5ab77
SM
10788 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
10789 on this tty.
10790 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
10791
6178ce5e
SM
10792 * term.c (mouse_face_window): Rename from Qmouse_face_window.
10793 Update all users.
10794 (handle_one_term_event): Use Gpm_DrawPointer.
10795 (Fgpm_mouse_start): Rename from Fterm_open_connection.
10796 Signal errors instead of returning nil. Always return nil.
10797 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
10798 Make it a noop if gpm-mouse was not activated.
10799 (syms_of_term): Update names.
10800
bdf5f8ef
SM
108012007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
10802
75a8734b
SM
10803 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
10804 (init_sys_modes): Check that gpm_tty is the current tty.
10805
13559ee0
SM
10806 * alloc.c (allocate_terminal): Set the vector size to only count the
10807 lisp fields. Initialize those to nil.
10808 (mark_object): Don't treat terminals specially.
10809 (mark_terminal): Remove.
10810 (mark_terminals): Use mark_object instead.
10811
ff16b875
SM
10812 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
10813 the GC to the beginning.
10814
83155776
SM
10815 * indent.h:
10816 * indent.c: Use EMACS_INT for ints coming from Elisp data.
10817
bdf5f8ef
SM
10818 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
10819
ec8705b6
JR
108202007-09-25 Jason Rumney <jasonr@gnu.org>
10821
10822 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
10823
10824 * w32console.c (create_w32cons_output): Remove.
10825
10826 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
10827
10828 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
10829 (reset_sys_modes): Use reset_terminal_modes_hook.
10830
7351b242
SM
108312007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
10832
10833 * eval.c (do_autoload): Don't output any message.
10834
16706228
JL
108352007-09-24 Juri Linkov <juri@jurta.org>
10836
10837 * emacs.c (standard_args): Change priority of "--no-splash"
10838 from 40 to 3. Add "--no-desktop" with the same priority.
10839
3ae2e3a3
RS
108402007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
10841
10842 * alloc.c (gc_sweep): Check cons cell mark bits word by word
10843 and optimize the case where they are all 1.
10844
7a58fb43
GM
108452007-09-23 Johannes Weiner <hannes@saeurebad.de>
10846
3ae2e3a3
RS
10847 * lisp.h (abs): Define if not defined.
10848 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
10849 Don't define `abs', since it's defined in lisp.h.
7a58fb43 10850
78048085
EZ
108512007-09-22 Eli Zaretskii <eliz@gnu.org>
10852
c7a4b95b 10853 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
78048085
EZ
10854 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
10855 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
10856 (init_tty): Use DEV_TTY instead of "/dev/tty".
10857 [WINDOWSNT]: No need to protect from NAME arg being null.
10858
23d4cba5
DN
108592007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
10860
10861 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
10862 up the tty state.
10863
71f44e7a
SM
108642007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
10865
10866 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
10867 (gpm_tty): Change its type.
10868 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
10869 (gpm_tty): Change its type and initialize it.
10870 (Fterm_open_connection): Check the frame is indeed a tty.
10871 Use the new gpm_tty.
10872 (Fterm_close_connection): Use the new gpm_tty.
10873 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
10874 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
10875
def7fa34
JB
108762007-09-21 Juanma Barranquero <lekktu@gmail.com>
10877
10878 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
10879 underline_color, to draw strike-through.
10880
d2bb6598
SM
108812007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
10882
273f164c
SM
10883 * lisp.h (allocate_terminal): Declare.
10884
ca2d5566
SM
10885 * window.c (candidate_window_p): Consider frames that are being placed
10886 by the user as somewhere between visible and iconified.
10887 (window_loop): Prefer windows on the current frame.
10888 (Fselect_window): Move the use of select-frame to the beginning so we
10889 can just delegate all the work (it'll call us back anyway).
10890
6168122d
SM
10891 * frame.c (Qdisplay_environment_variable):
10892 * frame.h (Qdisplay_environment_variable): Delete.
10893
c51842ec
SM
10894 * .gdbinit (xbacktrace): Print the arg's address rather than the value
10895 of the first arg, since that value may be a union.
10896
d2bb6598
SM
10897 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
10898 parameter rather than Qdisplay_environment_variable. If all else
10899 fails, look for DISPLAY in initial-environment.
10900
6f022c19
GM
109012007-09-21 Glenn Morris <rgm@gnu.org>
10902
10903 * Makefile.in (emacstool): Remove target.
f466320b 10904 (lisp, shortlisp): Remove termdev.elc.
6f022c19 10905
ea1bf8c7
GM
109062007-09-21 Markus Triska <markus.triska@gmx.at>
10907
d2bb6598 10908 * xterm.c (x_delete_display): Compile session management conditionally.
ea1bf8c7 10909
d30a25b3
SM
109102007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
10911
db699fc6
SM
10912 * callproc.c (getenv_internal_1): New function.
10913 (getenv_internal): Use it.
10914 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
10915
d2bb6598 10916 * terminal.c (get_terminal): Don't accept ints to represent terminals.
c5911e55
SM
10917 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
10918 (Fset_terminal_parameter): Work with dead terminals as well.
10919 (Fmodify_terminal_parameters): Remove.
10920
d30a25b3
SM
10921 * terminal.c (get_terminal): Handle terminals.
10922 Make sure the terminal returned is live.
10923 (create_terminal): Use allocate_terminal.
10924 (mark_terminals): Move to alloc.c.
10925 (delete_terminal): Use terminal->name as liveness status.
10926 NULL out fields after freeing their contents.
10927 Don't deallocate the object.
10928 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
10929 rather than an int.
10930 (Fterminal_live_p): Accept non-integer arguments.
10931 (Fterminal_list): Return terminal objects rather than an ints.
10932
10933 * alloc.c (enum mem_type): New member for `terminal' objects.
10934 (allocate_terminal): New function.
d2bb6598
SM
10935 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
10936 Handle terminals.
d30a25b3
SM
10937 (mark_terminal): New fun.
10938 (mark_terminals): Move from terminal.c.
10939
10940 * term.c (get_tty_terminal): Don't treat output_initial specially.
10941 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
10942 (delete_tty): Use terminal->name as liveness status.
10943
10944 * termhooks.h (struct terminal): Make it into a pseudovector.
10945 Remove `deleted' replaced by checking `name's nullness.
10946
10947 * print.c (print_object): Handle terminals.
10948
10949 * lisp.h (enum pvec_type): New `terminal' pseudovector.
10950 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
10951
10952 * frame.c (make_terminal_frame):
10953 * keyboard.c (tty_read_avail_input):
10954 * w32term.c (x_delete_terminal):
10955 * xfns.c (Fx_create_frame, x_create_tip_frame):
10956 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
10957
eba25e7c
GM
109582007-09-20 Glenn Morris <rgm@gnu.org>
10959
10960 * process.c (Fmake_network_process): Doc fix.
10961
2a29c3c1
JR
109622007-09-19 Jason Rumney <jasonr@gnu.org>
10963
10964 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
10965
880820fe 109662007-09-19 Michaël Cadilhac <michael@cadilhac.name>
ba1cbad7
MC
10967
10968 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
10969 Fix a C warning regarding variable constness.
10970
10971 * xterm.c (handle_one_xevent): Fix a C warning.
10972
334a1195
JR
109732007-09-18 Jason Rumney <jasonr@gnu.org>
10974
10975 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
10976
880820fe 109772007-09-17 Jan Djärv <jan.h.d@swipnet.se>
879ffad9
JD
10978
10979 * gtkutil.c (gdpy_def): New variable.
10980 (xg_initialize): Initialize gdpy_def.
10981 (xg_display_close): If no other display exists, set gdpy_def to a
10982 new connection.
10983
880820fe 109842007-09-16 Jan Djärv <jan.h.d@swipnet.se>
45c94881
JD
10985
10986 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
10987 when we have no file name for the icon.
10988 (xg_tool_bar_expose_callback): Remove.
10989 (xg_create_tool_bar): Don't connect expose signal to
10990 xg_tool_bar_expose_callback.
10991 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
10992
4d580af2
AS
109932007-09-16 Andreas Schwab <schwab@suse.de>
10994
10995 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
10996 values instead of zapping them.
10997
aca946f3
GM
109982007-09-14 Glenn Morris <rgm@gnu.org>
10999
11000 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
11001 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
11002 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
11003 scope and rename to omfib_buffer for clarity.
11004 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
11005
25c460e5
KH
110062007-09-14 Kenichi Handa <handa@m17n.org>
11007
11008 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
11009
09b69f01
JR
110102007-09-13 Jason Rumney <jasonr@gnu.org>
11011
11012 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
11013
11014 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
11015
11016 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
11017 (mac_term_init): Call here instead, passing rif.
11018
442218db
GM
110192007-09-13 Glenn Morris <rgm@gnu.org>
11020
11021 * s/hpux.h: No longer define `static' as nothing.
11022
880820fe 110232007-09-13 Johan Bockgård <bojohan@gnu.org>
4795c40f
GM
11024
11025 * callint.c (Fcall_interactively): Remove unused var `fun'.
11026
1971a872
RF
110272007-09-12 Romain Francoise <romain@orebokech.com>
11028
11029 * window.c (prefer_window_split_horizontally, display_buffer):
11030 Revert 2007-09-08 change.
11031
2d33f506
GM
110322007-09-12 Glenn Morris <rgm@gnu.org>
11033
585474ae 11034 * alloca.c: Remove file.
ca7af97a
GM
11035 * Makefile.in (alloca): Do not undef.
11036 (allocaobj, alloca.o): Remove.
11037 (otherobj): Remove allocaobj.
11038 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
11039 * regex.c (C_ALLOCA): Remove all references and code that was only
11040 used when this was defined.
11041 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
11042 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
99dfbaf1
GM
11043 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
11044
2d33f506 11045 * Makefile.in (SOURCES, unlock, relock): Delete.
ca7af97a
GM
11046
11047 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
11048 (menu_grab_callback): All uses changed.
11049
11050 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
11051 (x_reply_selection_request): All uses changed.
2d33f506 11052
18a4a65e
SM
110532007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
11054
11055 * lread.c (load_warn_old_style_backquotes): Change message to look
11056 better when it appears in the middle of byte-compiler messages.
11057
47cc8819
DN
110582007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
11059
b7ea0894
DN
11060 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
11061
47cc8819
DN
11062 * xterm.c (x_create_terminal): Add comment.
11063
11064 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
11065
5632bd0f
RS
110662007-09-10 Richard Stallman <rms@gnu.org>
11067
11068 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
11069
880820fe 110702007-09-10 Michaël Cadilhac <michael@cadilhac.name>
ccb5c14f 11071
4bca9161
MC
11072 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
11073 (DEFUN): Document `intspec', use it instead of `prompt'.
11074
04724b69
MC
11075 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
11076
8a6d230a
MC
11077 * data.c (Finteractive_form): If the interactive specification starts
11078 with a `(', use it as a Lisp form.
11079
09fbdf6c
MC
11080 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
11081 name and file modes.
11082
ccb5c14f
MC
11083 * callint.c (Fcall_interactively): Comment fixes.
11084
023accd6
SM
110852007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
11086
11087 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
11088 and compiled functions.
11089
f26b9544
EZ
110902007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
11091
11092 * window.c (prefer_window_split_horizontally): New variable.
11093 (display_buffer): Consider splitting window horizontally depending
11094 on prefer_window_split_horizontally.
11095
4d395425
EZ
110962007-09-08 Eli Zaretskii <eliz@gnu.org>
11097
97ddc760 11098 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
4d395425 11099
08c1d235
SM
111002007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
11101
179cef48
SM
11102 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
11103
08c1d235
SM
11104 * frame.c (x_set_frame_parameters): Check number is positive before
11105 using XFASTINT.
11106
11107 * window.c (freeze_window_start): Don't presume selected_window holds
11108 a window object.
92f94a12 11109 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
08c1d235 11110
97ddc760 111112007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
de52dcbb
DN
11112
11113 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
11114
90ab5c62
SM
111152007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
11116
11117 * window.c (Vsplit_window_preferred_function): New var.
11118 (Fdisplay_buffer): Use it.
11119 (syms_of_window): Export, and initialize it.
11120
1ab2cd43
TTN
111212007-09-06 Pixel <pixel@mandriva.com> (tiny change)
11122
11123 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
11124
0b0515bc
GM
111252007-09-06 Glenn Morris <rgm@gnu.org>
11126
57fd5c55 11127 * gtkutil.c (menu_grab_callback) <cnt>:
0b0515bc
GM
11128 * xselect.c (x_reply_selection_request) <cnt>: Move static
11129 variable to file scope.
11130
98594580
SM
111312007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
11132
11133 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
11134 consistent values of selected_frame and selected_window.
11135
0f4c7aef
JR
111362007-09-04 Jason Rumney <jasonr@gnu.org>
11137
11138 * w32console.c (initialize_w32_display): Zero unused hooks.
11139
e4019195
DN
111402007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
11141
11142 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
11143 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
11144
bce179b5
JR
111452007-09-04 Jason Rumney <jasonr@gnu.org>
11146
a0236551
JR
11147 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
11148 in w32console.c. Set up input. Remove XXX comments that have been
11149 confirmed as correct.
11150
a4926668
JR
11151 * s/ms-w32.h (MULTI_KBOARD): Define.
11152
953bf0dc
JR
11153 * w32console.c (one_and_only_w32cons): Remove.
11154 (initialize_w32_display): Take terminal argument.
11155
11156 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
11157 initialize_w32_display.
11158 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
11159
bce179b5
JR
11160 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
11161
11162 * keyboard.c (discard_mouse_events): Discard it.
11163 (make_lispy_event): Translate it to a lisp event.
11164 (lispy_wheel_names): Add wheel-left and right events.
11165 (syms_of_keyboard): Enlarge wheel_syms.
11166
11167 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
11168 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
11169
11170 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
11171
11172 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
11173 from WM_MOUSEHWHEEL.
11174 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
11175
11176 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
11177 terminal.
11178
11179 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
11180 keyboard for the terminal.
11181
92cd6a7c
DN
111822007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
11183
11184 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
11185 (Vresume_tty_hook): Rename from Vresume_tty_functions.
11186 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
11187 and resume-tty-function to resume-tty-hook.
11188 (Fsuspend_tty, Fresume_tty): Use new names.
11189
880820fe 111902007-09-02 Jan Djärv <jan.h.d@swipnet.se>
2154c964
JD
11191
11192 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
11193 if it starts with "n:".
11194
880820fe 111952007-08-31 Jan Djärv <jan.h.d@swipnet.se>
b42ff099
JD
11196
11197 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
11198
6b8e474c
SM
111992007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
11200
92d9c1d4
SM
11201 * frame.h:
11202 * frame.c (Qterm_environment_variable): Remove.
11203 (syms_of_frame): Don't init and staticpro it.
11204
92d9c1d4
SM
11205 * callproc.c (getenv_internal): Remove special case for $TERM.
11206
6b8e474c
SM
11207 * callproc.c (Vinitial_environment): New variable.
11208 (set_initial_environment): Initialize it.
11209 (syms_of_callproc): Declare it.
11210 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
11211 TERM under which a process runs is never related to the TERM in which
11212 Emacs is running.
11213
0f1444e1
DN
112142007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
11215
11216 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
11217 * s/darwin.h: ... do it here.
11218
b8866860
SM
112192007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
11220
11221 * lisp.h (set_initial_environment): Rename from set_global_environment.
11222
11223 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
11224 removed by mistake on the multi-tty branch.
11225
11226 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
11227 (Fmodify_frame_parameters): Return a value.
11228
11229 * image.c (png_load): Comment-out var only used in commented-out code.
11230
11231 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
11232 before passing it to mark_object.
11233
11234 * xfaces.c (internal_resolve_face_name): Return a value.
11235 (internal_resolve_face_name, resolve_face_name_error): Comment out.
11236
11237 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
11238 (x_icon): Comment-out var only used in commented-out code.
11239
0a42be6d
RF
112402007-08-29 Romain Francoise <romain@orebokech.com>
11241
11242 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
11243 QUIT hasn't been provided.
11244
8d9cc0b7
MB
112452007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
11246
11247 * callproc.c (child_setup, getenv_internal): Use the
ce20b664 11248 display-environment-variable and term-environment-variable frame params.
8d9cc0b7
MB
11249 (set_initial_environment): Initialise Vprocess_environment.
11250
11251 * config.in: Disable multi-keyboard support on a mac.
11252
11253 * frame.c (Qterm_environment_variable)
11254 (Qdisplay_environment_variable): New variables.
11255 (syms_of_frame): Intern and staticpro them.
11256 (Fmake_terminal_frame): Disable output method test.
11257
11258 * frame.h: Declare them here.
11259
11260 * macfns.c (x_set_mouse_color): Get rif from the frame.
11261 (x_set_tool_bar_lines): Don't use updating_frame.
11262 (mac_window): Add 2 new parameters for consistency with other systems.
11263 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
11264 frame parameters following what is done in X11 and w32. Don't use
11265 FRAME_MAC_DISPLAY_INFO.
11266 (Fx_open_connection, start_hourglass): Remove window-system check.
11267 (x_create_tip_frame): Get the keyboard from the terminal.
11268
11269 * macmenu.c: Reorder includes.
11270 (Fx_popup_menu): Use terminal specific mouse_position_hook.
11271
11272 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
11273 terminal parameter.
11274 (x_clear_frame): Add a frame parameter.
11275 (note_mouse_movement): Get rif from the frame.
11276 (mac_term_init): Initialize the terminal.
11277 (mac_initialize): Make static and move terminal initialization ...
11278 (mac_create_terminal): ... to this new function.
11279
11280 * macterm.h (struct mac_display_info): Add terminal.
7196c970 11281 (mac_initialize): Delete declaration.
8d9cc0b7 11282
381864b2 11283 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
8d9cc0b7
MB
11284
11285 * sysdep.c: Comment out text after #endif.
11286
11287 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
11288 is defined. Better initialize ttys in windows. Use terminal
11289 specific mouse_position_hook.
11290
11291 * termhooks.h (union display_info): Add mac_display_info.
11292
b8866860
SM
11293 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
11294 Set the default minibuffer frame, window_system and the rest of the
8d9cc0b7
MB
11295 frame parameters following what is done in X11.
11296
11297 * w32term.c (w32_initialize): Make static.
11298
11299 * xselect.c (x_handle_selection_clear): Only access
11300 terminal->kboard when MULTI_KBOARD is defined.
11301
11302 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
11303 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
11304
113052007-08-29 Jason Rumney <jasonr@gnu.org>
11306
11307 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
11308 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
11309
11310 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
11311 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
11312
11313 * keyboard.c (restore_kboard_configuration): Only define when
11314 MULTI_KBOARD defined.
11315
35277b03 11316 * makefile.w32-in: Update dependancies from Makefile.in.
8d9cc0b7
MB
11317 (OBJ1): Add terminal.$(O)
11318
b8866860
SM
11319 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
11320 Don't define function body.
8d9cc0b7
MB
11321 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
11322
11323 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
11324
11325 * w32.c (request_sigio, unrequest_sigio): Remove.
11326
11327 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
11328 (w32con_clear_frame, w32con_clear_end_of_line)
11329 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
11330 (w32con_delete_glyphs, w32con_set_terminal_window)
11331 (scroll_line, w32_sys_ring_bell): Add frame arg.
b8866860
SM
11332 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
11333 Add terminal arg.
8d9cc0b7
MB
11334 (PICK_FRAME): Remove.
11335 (w32con_write_glyphs): Use frame specific terminal coding.
11336 (one_and_only_w32cons): New global variable.
11337 (initialize_w32_display): Use it for storing hooks.
11338 (create_w32cons_output): New function.
11339
11340 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
11341 arg a frame.
11342
b8866860
SM
11343 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
11344 Set window_system.
8d9cc0b7
MB
11345 (x_set_tool_bar_lines): Don't use updating_frame.
11346 (Fx_create_frame): Set terminal and ref count.
11347 (Fx_open_connection): Remove window-system check.
11348
11349 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
11350
11351 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
11352 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
11353 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
11354 Add frame arg.
11355 (x_delete_terminal, w32_create_terminal): New functions.
11356 (w32_term_init): Create a terminal.
11357 (w32_initialize): Move terminal specific initialization to
11358 w32_create_terminal.
11359
b8866860 11360 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
8d9cc0b7
MB
11361 (w32_clear_rect, w32_clear_area): Use background from frame.
11362 (w32_display_info): Add terminal.
11363 (w32_sys_ring_bell, x_delete_display): Declare here.
11364
11365 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
11366
11367 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
11368
113692007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
11370
11371 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
11372 Fix get_named_tty calls for the controlling tty.
11373
113742007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
11375
11376 * term.c (dissociate_if_controlling_tty)[USG]: Fix parse error.
11377
113782007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
11379
11380 * term.c (tty_insert_glyphs): Add missing first parameter.
11381
880820fe 113822007-08-29 Károly Lőrentey <karoly@lorentey.hu>
8d9cc0b7 11383
b8866860
SM
11384 * buffer.c (Fbuffer_list, Fbury_buffer):
11385 Take frame->buried_buffer_list into account.
8d9cc0b7
MB
11386
11387 * cm.c (current_tty): New variable, for cmputc().
11388 (cmputc): Use it.
11389 (cmcheckmagic): Add tty parameter, look up terminal streams there.
11390 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
b8866860
SM
11391 (cmgoto): Add tty parameter. Pass it on to calccost().
11392 Use emacs_tputs() instead of tputs().
8d9cc0b7
MB
11393
11394 * cm.h (emacs_tputs): New macro to set current_tty, and then call
11395 tputs().
11396 (current_tty): New variable, for cmputc().
11397 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
11398
11399 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
11400 (internal_condition_case, internal_condition_case_1)
11401 (internal_condition_case_2): Don't abort when x_catching_errors.
11402
11403 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
11404 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
11405 prevent crashes caused by bogus longjmps in read_char.
11406
11407 * keymap.h (Fset_keymap_parent): Add EXFUN.
11408
11409 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
11410 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
11411 Remove redundant definition.
11412
b8866860
SM
11413 * macfns.c (x_set_mouse_color, x_make_gc):
11414 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
8d9cc0b7 11415
b8866860
SM
11416 * w32term.c (x_free_frame_resources):
11417 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
8d9cc0b7
MB
11418 (w32_initialize): Use the accessor macros for terminal characteristics.
11419
11420 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
11421 Use the accessor macros for terminal characteristics.
11422 * msdos.c (internal_terminal_init): Use the accessor macros for
11423 terminal characteristics.
b8866860
SM
11424 (ScreenVisualBell, internal_terminal_init):
11425 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
8d9cc0b7
MB
11426
11427 * termopts.h (no_redraw_on_reenter): Declare.
11428
11429 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
03f06e5c 11430 (mark_terminals, mark_ttys): Declare.
8d9cc0b7 11431 (Fgarbage_collect): Call them.
03f06e5c 11432 (mark_object): Mark buried_buffer_list.
8d9cc0b7
MB
11433
11434 * prefix-args.c: Include stdlib.h for exit.
11435
11436 * syssignal.h: Add comment.
11437
11438 * indent.c: Include stdio.h.
11439
11440 * window.h (Vinitial_window_system): Declare.
11441 (Vwindow_system): Delete declaration.
11442
11443 * fontset.c (Finternal_char_font): Use FRAME_RIF.
11444
11445 * image.c (lookup_image): Don't initialize `c' until the xasserts
11446 have been run.
11447
11448 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
11449 FRAME_FOREGROUND_PIXEL.
11450
11451 * print.c (print_preprocess): Don't lose print_depth levels while
11452 iterating.
11453
b8866860
SM
11454 * widget.c (update_from_various_frame_slots):
11455 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
8d9cc0b7
MB
11456
11457 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
11458 frames.
11459 (window_internal_height): Remove bogus make_number call.
b8866860 11460 (init_window_once): Call make_terminal_frame with two zero parameters.
8d9cc0b7
MB
11461
11462 * fileio.c (Fread_file_name): Update comment.
11463
b8866860
SM
11464 * callint.c (Fcall_interactively):
11465 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
8d9cc0b7
MB
11466 Make sure it is correctly unwound.
11467
11468 * xsmfns.c (x_session_close): New function.
11469
03f06e5c 11470 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
8d9cc0b7
MB
11471 Delete declarations.
11472
11473 * xterm.h: Remove declaration for x_fully_uncatch_errors.
11474 (x_output): Remove background_pixel and foreground_pixel fields.
03f06e5c 11475 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
c3f9fba8 11476 (x_delete_device, x_session_close): Declare.
8d9cc0b7
MB
11477
11478 * lread.c: Include setjmp.h. Update declaration of `read_char'.
11479 (read_filtered_event): Call `read_char' with a local
11480 `wrong_kboard_jmpbuf'.
11481
b8866860
SM
11482 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
11483 Don't call single_kboard_state. Use FRAME_RIF.
8d9cc0b7
MB
11484
11485 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
11486 systems.
11487
b8866860 11488 * lisp.h (set_process_environment): Rename to `set_global_environment'.
03f06e5c 11489 (Fframe_with_environment, Fset_input_meta_mode)
8d9cc0b7 11490 (Fset_quit_char): EXFUN.
03f06e5c 11491 (x_create_device, tty_output, terminal, tty_display_info): Declare.
8d9cc0b7
MB
11492 (init_sys_modes, reset_sys_modes): Update prototypes.
11493 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
11494
b8866860
SM
11495 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
11496 Vlocal_key_translation_map, and Vkeyboard_translate_table.
03f06e5c 11497 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
8d9cc0b7 11498 Delete declarations.
03f06e5c
JB
11499 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
11500 (temporarily_switch_to_single_kboard, tty_read_avail_input):
8d9cc0b7
MB
11501 New declarations.
11502
11503 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
11504 already does that during init_display(). Call syms_of_keymap
b8866860
SM
11505 before syms_of_keyboard. Call `syms_of_terminal'.
11506 Call set_initial_environment, not set_process_environment.
8d9cc0b7
MB
11507 (shut_down_emacs): Call reset_all_sys_modes() instead of
11508 reset_sys_modes().
11509
11510 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
03f06e5c
JB
11511 (internal_resolve_face_name, resolve_face_name_error): New functions.
11512 (resolve_face_name): Protect against loops and errors thrown by Fget.
11513 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
8d9cc0b7
MB
11514 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
11515
11516 * scroll.c: Replace CURTTY() with local variables throughout the
11517 file (where applicable).
11518 (calculate_scrolling, calculate_direct_scrolling)
11519 (scrolling_1, scroll_cost): Use the accessor macros for terminal
11520 characteristics.
11521
11522 * keymap.c (Vfunction_key_map): Remove.
b8866860 11523 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
8d9cc0b7
MB
11524 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
11525 (Vkey_translation_map): Remove.
11526 (syms_of_keymap): Remove DEFVAR for key-translation-map.
c3f9fba8 11527 (Fdescribe_buffer_bindings)
8d9cc0b7
MB
11528 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
11529 Update for terminal-local key-translation-map.
11530
11531 * Makefile.in (callproc.o): Update dependencies.
11532 (lisp, shortlisp): Add termdev.elc.
11533 (obj): Add terminal.o.
11534 (terminal.o): Add dependencies.
11535 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
11536 (data.o, fns.o): Add termhooks.h dependency.
11537 (SOME_MACHINE_LISP): Add dnd.elc.
11538 (minibuf.o): Fix typo.
11539 Update dependencies.
11540
11541 * data.c (do_symval_forwarding, store_symval_forwarding)
11542 (find_symbol_value): Use the selected frame's keyboard, not
11543 current_kboard.
11544
11545 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
11546 Vwindow_system.
11547
11548 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
11549 Fmenu_bar_open.
11550 (syms_of_xmenu): Update defsubr.
11551 (mouse_position_for_popup, Fx_popup_menu)
11552 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
11553 (set_frame_menubar, free_frame_menubar)
11554 (create_and_show_popup_menu, xmenu_show, )
11555 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
11556 an X frame.
11557
11558 * xselect.c (x_own_selection): Abort if not an X frame.
11559 (some_frame_on_display): Check if it is an X frame.
11560 (x_handle_selection_clear): Deal with MULTI_KBOARD.
11561
11562 * coding.c: Include frame.h and termhooks.h.
03f06e5c 11563 (terminal_coding, keyboard_coding): Delete.
c3f9fba8
JB
11564 (Fset_terminal_coding_system_internal)
11565 (Fset_keyboard_coding_system_internal)
11566 (Fkeyboard_coding_system)
03f06e5c
JB
11567 (Fterminal_coding_system): Add a terminal parameter.
11568 Get terminal_coding from the terminal.
8d9cc0b7
MB
11569 (init_coding_once): Don't call setup_coding_system here.
11570
11571 * dispextern.h (set_scroll_region, turn_off_insert)
11572 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
11573 (tty_clear_end_of_line, tty_setup_colors)
03f06e5c 11574 (delete_tty, updating_frame)
8d9cc0b7
MB
11575 (produce_special_glyphs, produce_glyphs, write_glyphs)
11576 (insert_glyphs): Remove.
11577 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
03f06e5c 11578 (tty_turn_off_highlight, get_tty_size): Add declaration.
b8866860 11579 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
8d9cc0b7
MB
11580
11581 * frame.h (enum output_method): Add output_initial.
11582 (struct x_output): Delete.
b8866860
SM
11583 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
11584 Access foreground_pixel and background_pixel directly from the frame.
8d9cc0b7
MB
11585 (tty_display): Delete.
11586 (struct frame): Add buried_buffer_list, foreground_pixel,
1f204af3 11587 background_pixel and terminal. Delete kboard.
8d9cc0b7
MB
11588 (union output_data): Add tty.
11589 (FRAME_KBOARD): Get the kboard from the terminal.
11590 (FRAME_INITIAL_P): New macro.
11591 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
11592 (Qterm_environment_variable, Qdisplay_environment_variable)
b8866860
SM
11593 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
11594 New declarations.
8d9cc0b7
MB
11595
11596 * termchar.h (tty_output, tty_display_info): New structures.
11597 (tty_list): Declare.
11598 (FRAME_TTY, CURTTY): New macros.
11599 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
11600 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
11601 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
11602 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
11603
11604 * callproc.c: Include frame.h and termhooks.h, for terminal
11605 parameters.
11606 (add_env): New function.
11607 (child_setup): Use it.
b8866860 11608 (child_setup, getenv_internal): Handle the new Vprocess_environment.
8d9cc0b7
MB
11609 (getenv_internal): Fix get_terminal_param call.
11610 (Fgetenv_internal, egetenv): Update doc.
11611 (syms_of_callproc): Initialize Vprocess_environment to nil.
03f06e5c 11612 Register and initialize them. Remove obsolete defvars. Update doc
8d9cc0b7
MB
11613 strings.
11614 (child_setup): Handle Vlocal_environment_variables.
b8866860
SM
11615 (getenv_internal): Add terminal parameter.
11616 Handle Vlocal_environment_variables.
8d9cc0b7
MB
11617 (Fgetenv_internal): Add terminal parameter.
11618 (child_setup, getenv_internal, Fgetenv_internal): Store the local
b8866860 11619 environment in a frame (not terminal) parameter. Update doc strings.
8d9cc0b7
MB
11620 (set_initial_environment): Rename from set_global_environment.
11621 Store Emacs environment in initial frame parameter.
11622
11623 * xdisp.c (redisplay_internal): Update references to
11624 `previous_terminal_frame'.
11625 (display_mode_line, Fformat_mode_line): Replace calls to
11626 `push_frame_kboard' with `push_kboard'.
11627 (get_glyph_string_clip_rects): Add extra parentheses and
11628 braces to prevent compiler warnings.
11629 (calc_pixel_width_or_height): Add xassert to check that the
11630 frame is alive. Don't call `lookup_image' on a termcap frame.
11631 (message2_nolog, message3_nolog, redisplay_internal)
11632 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
11633 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
11634 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
11635 (Fx_display_pixel_width, Fx_display_pixel_height)
11636 (Fx_display_planes, Fx_display_color_cells)
11637 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
11638 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
11639 (Fx_display_backing_store, Fx_display_visual_class)
11640 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
97ddc760 11641 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
8d9cc0b7
MB
11642
11643 * xfns.c (x_set_foreground_color x_set_background_color)
b8866860
SM
11644 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
11645 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
8d9cc0b7
MB
11646 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
11647 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
11648 terminal that is being deleted.
11649 (Fx_create_frame): Use `store_frame_param' to set `window-system'
b8866860 11650 frame parameter, and make sure it overrides any user-supplied setting.
8d9cc0b7
MB
11651 (Fx_close_connection, Fx_synchronize): Unify argument names with
11652 the rest of the DEFUNs.
11653
11654 * dispnew.c (Fsend_string_to_terminal): Update call to
11655 `get_tty_terminal'.
11656 (Fredraw_frame, Fsend_string_to_terminal)
2d33f506 11657 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
8d9cc0b7
MB
11658 FRAME_TERMCAP_P and FRAME_TTY.
11659 (window_change_signal): Don't believe width/height values that are
11660 impossibly small.
11661 (Vinitial_window_system): Rename from Vwindow_system.
11662 (termscript, Wcm, rif): Delete.
11663
11664 * termhooks.h (struct terminal): New struct containing the
11665 previously global text display hooks and new members NAME,
11666 DELETED and PARAM_ALIST.
11667 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
11668 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
11669 (FRAME_RIF): New macros.
11670 (get_terminal_param, get_device): New declarations.
11671 (termscript): Delete declaration.
11672
11673 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
11674 (XTflash, x_free_frame_resources, x_scroll_bar_create)
11675 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
11676 FRAME_FOREGROUND_PIXEL.
11677 (x_fully_uncatch_errors): Disable definition.
11678 (x_scroll_bar_expose): Fix reference to foreground pixel.
11679 (XTread_socket): Disable loop on all X displays.
11680 (x_delete_terminal): Don't set terminal->deleted and let
11681 delete_terminal delete the frames on the terminal.
11682 (x_delete_display): Doc update to reflect changes in
11683 delete_terminal.
11684 (x_display_info) <terminal>: Move member earlier in the struct.
8d9cc0b7
MB
11685 (deleting_tty): Remove old variable.
11686 (Fsuspend_tty): Call clear_tty_hooks.
11687 (Fresume_tty, init_tty): Call set_tty_hooks.
8d9cc0b7
MB
11688 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
11689 errors on X frames.
11690 (x_catch_errors_unwind): Abort if x_error_message is NULL.
11691 (handle_one_xevent): Initialize `f' to NULL.
9cab96b0 11692 (x_delete_terminal, x_create_terminal): New functions.
8d9cc0b7
MB
11693 (XTset_terminal_modes, XTreset_terminal_modes)
11694 (XTread_socket, x_connection_closed, x_term_init)
11695 (x_term_init, x_delete_display): Add terminal parameter.
11696 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
11697 X connections.
11698
bf380f53
GM
11699 * frame.c: Include termchar.h.
11700 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
11701 (Qwindow_system, Qenvironment, Qterm_environment_variable)
11702 (Qdisplay_environment_variable): New vars.
11703 (Fframep): Deal with output_initial.
11704 (Fframe-live-p): Doc fix.
11705 (Fwindow-system): New function.
8d9cc0b7
MB
11706 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
11707 (make_terminal_frame): Don't create frames on a terminal that is
bf380f53 11708 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
b8866860 11709 (store_frame_param): Check for found_for_frame before calling XFRAME.
8d9cc0b7
MB
11710 (Fmake_terminal_frame): Handle NULL tty names correctly.
11711 (syms_of_frame): Enhance doc string of `default-frame-alist'.
bf380f53
GM
11712 (Fdelete_frame): Remove unused variable `count'. Don't allow other
11713 frames to refer to a deleted frame in their 'environment parameter.
8d9cc0b7 11714 (Fframe_with_environment): New function.
b8866860 11715 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
8d9cc0b7
MB
11716 (get_future_frame_param): New function.
11717 (Fmake_terminal_frame): Use it.
2d33f506 11718 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
8d9cc0b7
MB
11719
11720 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
11721 * sysdep.c (reset_sys_modes): Update for renames.
11722
11723 * keyboard.c (tty_read_avail_input): New function.
03f06e5c 11724 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
8d9cc0b7
MB
11725 (syms_of_keyboard): Defsubr them.
11726 (Fset_input_meta_mode, Fset_quit_char): New functions.
11727 (Fset_input_mode): Split to above functions.
8d9cc0b7
MB
11728 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
11729 parameter. Use it in call to `read_char'.
b8866860
SM
11730 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
11731 Set wrong_kboard_jmpbuf correctly in recursive calls.
11732 Use current_kboard to access Vkeyboard_translate_table.
11733 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
11734 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
11735 Update longjmp invocations. Remember the original current_kboard,
11736 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
11737 changes it. Comment out unnecessary calls to
11738 `record_single_kboard_state' and `any_kboard_state'.
11739 Update recursive calls.
8d9cc0b7
MB
11740 (wrong_kboard_jmpbuf): Remove global variable.
11741 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
11742 Handle deleted interrupted_kboards correctly; that is a legal
11743 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
b8866860 11744 and read_char calls. Abort if interrupted_kboard died in read_char.
8d9cc0b7
MB
11745 (any_kboard_state, single_kboard_state)
11746 (push_frame_kboard): Remove function.
11747 (pop_kboard): Switch out of single_kboard mode if the kboard has
03f06e5c
JB
11748 been deleted. Remove unused variable. Help debugging by not
11749 changing current_kboard unnecessarily. Set current_kboard to the
8d9cc0b7
MB
11750 kboard of the selected frame when the stored kboard object has
11751 been deleted before pop_kboard.
11752 (temporarily_switch_to_single_kboard): Change first parameter to a
11753 frame pointer. Throw an error when caller wants to change kboards
11754 while in single_kboard mode. Don't push_kboard if we weren't in
11755 single kboard state. Don't pop_kboard if we popped into any
11756 kboard state.
11757 (restore_kboard_configuration): Abort if pop_kboard changed the
03f06e5c 11758 kboard in single_kboard mode. Call pop_kboard only after setting
8d9cc0b7
MB
11759 up single_kboard mode.
11760 (Frecursive_edit): Switch to single_kboard mode only in nested
11761 command loops.
b8866860
SM
11762 (cmd_error, command_loop, command_loop_1, timer_check):
11763 Comment out unnecessary call to `any_kboard_state' and
8d9cc0b7
MB
11764 `record_single_kboard_state'.
11765 (delete_kboard): Exit single_kboard mode if we have just deleted
03f06e5c 11766 that kboard. Use FRAME_KBOARD.
8d9cc0b7
MB
11767 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
11768 `fatal_error_signal'.
11769 (record_single_kboard_state): Don't push_kboard if we weren't in
11770 single kboard state. Don't pop_kboard if we popped into any
11771 kboard state.
11772 (push_frame_kboard): Rename to push_kboard.
11773 (kbd_buffer_get_event): Use FRAME_TERMINAL.
11774 (read_avail_input): Read input from all terminals.
11775 (mark_kboards): Also mark Vkeyboard_translate_table.
11776 (kbd_buffer_store_event_hold): Simplify condition.
11777 (read_key_sequence): Reinitialize fkey and keytran at each replay.
11778 (Vkeyboard_translate_table): Move to struct kboard.
11779 (init_kboard): Initialize Vkeyboard_translate_table.
11780 (syms_of_keyboard): Use DEFVAR_KBOARD to define
11781 Vkeyboard_translate_table. Update doc strings. Update docs of
11782 local-function-key-map and function-key-map.
11783
11784 * terminal.c: New file.
11785
11786 * term.c: Include errno.h.
11787 (Vring_bell_function, device_list, initial_device)
11788 (next_device_id, ring_bell, update_begin, update_end)
11789 (set_terminal_window, cursor_to, raw_cursor_to)
11790 (clear_to_end, clear_frame, clear_end_of_line)
11791 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
11792 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
11793 (syms_of_term): Move their initialization to terminal.c.
11794 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
11795 (Ftty_display_color_cells)
11796 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
9cab96b0 11797 (clear_tty_hooks, set_tty_hooks)
8d9cc0b7
MB
11798 (init_tty, maybe_fatal): New functions.
11799 (Ftty_type): Return nil if terminal is not on a tty instead of
11800 throwing an error. Doc update.
11801 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
03f06e5c 11802 Doc update. Initialize new subrs and variables.
8d9cc0b7
MB
11803 (delete_tty): Use terminal->deleted.
11804 (tty_set_terminal_modes): Rename from set_terminal_modes.
11805 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
11806 (set_scroll_region): Rename to `tty_set_scroll_region'.
11807 (turn_on_insert): Rename to `tty_turn_on_insert'.
11808 (turn_off_insert): Rename to `tty_turn_off_insert'.
11809 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
11810 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
11811 (toggle_highligh): Rename to `tty_toggle_highlight'.
11812 (background_highlight): Rename to `tty_background_highlight'.
11813 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
11814 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
11815 (tty_set_scroll_region, tty_background_highlight)
11816 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
11817 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
11818 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
11819 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
11820 Add static modifier.
11821 (tty_reset_terminal_modes, tty_set_terminal_window)
11822 (tty_set_scroll_region, tty_background_highlight)
11823 (tty_highlight_if_desired, tty_cursor_to)
11824 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
11825 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
11826 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
11827 renames.
11828
880820fe 118292007-08-28 Jan Djärv <jan.h.d@swipnet.se>
cf0590c4
JD
11830
11831 * keyboard.c: Qrtl is new.
11832 (parse_tool_bar_item): Handle :rtl keyword.
11833 (syms_of_keyboard): Intern :rtl keyword.
11834
11835 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
11836
11837 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
11838 so no Lisp code is executed.
11839 (file_for_image, find_rtl_image): New functions.
1f204af3 11840 (xg_get_image_for_pixmap): Use file_for_image.
cf0590c4
JD
11841 (update_frame_tool_bar): If direction is RTL, use RTL image if
11842 defined. Use Gtk stock images if defined.
11843
83cc8d35
YM
118442007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11845
11846 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
11847 for nonexistent or zero-width glyph in composition glyph.
11848
e60c4e15
SM
118492007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
11850
d7e2a28f
SM
11851 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
11852
e60c4e15
SM
11853 * xdisp.c (Finvisible_p): New function.
11854 (syms_of_xdisp): defsubr it.
11855
ee163e6d
JB
118562007-08-24 Juanma Barranquero <lekktu@gmail.com>
11857
11858 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
11859 Doc fixes.
11860
90fa408d
YM
118612007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11862
35277b03 11863 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
90fa408d 11864
cac4219c
MR
118652007-08-24 Martin Rudalics <rudalics@gmx.at>
11866
11867 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
11868 whether decoding has modified buffer contents.
11869
5fc9fdeb
JR
118702007-08-24 Jason Rumney <jasonr@gnu.org>
11871
11872 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
11873 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
11874 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
11875 (init_svg_functions) [HAVE_NTGUI]: New function.
11876 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
11877 (svg_load_image): Use them.
11878 (svg_load_image) [HAVE_NTGUI]: Implement background.
11879
93b23406
YM
118802007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11881
11882 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
11883 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
11884 (LIBX): Remove @RSVG_LIBS@.
11885 (LIBES): Add $(RSVG_LIBS).
11886
11887 * image.c (svg_load_image): Blend with specified background if exists.
11888 Use IMAGE_BACKGROUND. Add Mac OS Support.
11889
11890 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
11891 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
11892 Remove macros.
11893 [MAC_OSX] (socket_callback): Do nothing.
11894 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
11895 ReceiveNextEvent.
11896 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
11897 socket_callback.
11898 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
11899
2467875c
GM
119002007-08-22 Glenn Morris <rgm@gnu.org>
11901
ff8da443 11902 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
2467875c 11903
4ab27a43
GM
119042007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
11905
11906 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
ff8da443 11907
666e0eda
GM
11908 * image.c: Add support for SVG images. Some additional comments
11909 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
11910 (svg_image_p): New function to test for SVG image.
11911 (svg_load): New function to load SVG image.
11912 (svg_load_image): New function, helper for svg_load.
11913 (Qsvg): New Lisp_object.
11914 (svg_keyword_index): New enum.
11915 (svg_format): New static `image_keyword' struct.
11916 (svg_type): New static `image_type' struct.
11917 (librsvg/rsvg.h): Include it.
4ab27a43 11918
b636b4c1
SM
119192007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
11920
11921 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
11922
9ecb827b
SM
119232007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
11924
1d064697
SM
11925 * lread.c (Qold_style_backquotes): New var.
11926 (syms_of_lread): Init and staticpro it.
11927 (load_warn_old_style_backquotes): New fun.
11928 (Fload): Use them to warn about old style backquotes.
11929 (end_of_file_error, Fload): Remove unused vars.
11930
5772ed4b
SM
11931 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
11932
9ecb827b 11933 * lread.c (Vold_style_backquotes): New var.
5aa273b0 11934 (syms_of_lread): Init and export it to Elisp.
9ecb827b
SM
11935 (read1): Set it when we find an old-style (back)quote.
11936
32e1c7b1
JR
119372007-08-22 Jason Rumney <jasonr@gnu.org>
11938
11939 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
11940
b8fa755b
KY
119412007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
11942
11943 * puresize.h (BASE_PURESIZE): Increase to 1140000.
11944
1283140e
RS
119452007-08-19 Richard Stallman <rms@gnu.org>
11946
11947 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
11948
2c4685ee
AS
119492007-08-19 Andreas Schwab <schwab@suse.de>
11950
11951 * alloc.c (pure): Round PURESIZE up.
11952
880820fe 119532007-08-17 Jan Djärv <jan.h.d@swipnet.se>
e8953ebf
JD
11954
11955 * xterm.c (handle_one_xevent): Remove check that mouse click is in
11956 active frame.
11957
6e33efc4
RS
119582007-08-16 Richard Stallman <rms@gnu.org>
11959
11960 * eval.c (Fcommandp): Add parens to clarify.
11961
11962 * minibuf.c (Fall_completions): Use enum for type of table.
11963
11964 * emacs.c (USAGE2): Improve text.
11965
fcf8ff2e
GM
119662007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
11967
5205ee62
GM
11968 * term.c (tty_default_color_capabilities): Declare static
11969 variables in file scope, to avoid HPUX compiler problem.
fcf8ff2e 11970
880820fe 119712007-08-13 Jan Djärv <jan.h.d@swipnet.se>
81d13a51
JD
11972
11973 * gtkutil.c (update_frame_tool_bar): Use -1 as index
11974 to gtk_toolbar_insert.
11975
4a181359
SM
119762007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
11977
1bc99c9c
SM
11978 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
11979
4a181359
SM
11980 * insdel.c (reset_var_on_error): New fun.
11981 (signal_before_change, signal_after_change):
11982 Use it to reset (after|before)-change-functions to nil in case of error.
11983 Bind inhibit-modification-hooks to t.
11984 Don't bind (after|before)-change-functions to nil while they run.
11985
6c28435c
YM
119862007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11987
11988 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
11989 filling pixmap with stippled background.
11990
ad3b3e02
YM
119912007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11992
11993 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
11994 Don't use invisible frame as parent window for repositioning.
11995
a22dec27
SM
119962007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
11997
11998 * print.c (new_backquote_output): Rename from old_backquote_output.
11999 (print): Inverse its logic (according to its name) so as to match the
12000 behavior of new_backquote_flag in lread.c.
12001
7b7d07bb
YM
120022007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12003
12004 * gmalloc.c (posix_memalign): New function.
12005
12006 * macterm.c (frame_highlight, frame_unhighlight): Don't call
12007 ActivateControl/DeactivateControl here.
12008 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
12009 frame-notice-user-settings is non-nil.
12010 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
12011 for kEventParamFMFontStyle.
12012 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
12013 mac_pass_command_to_system and mac_pass_control_to_system here.
12014 (XTread_socket): Call ActivateControl/DeactivateControl here.
12015 (XTread_socket) [TARGET_API_MAC_CARBON]:
12016 Check mac_pass_command_to_system and mac_pass_control_to_system here.
f9426479
YM
12017 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
12018 for window repositioning.
7b7d07bb 12019
22e9fe24
GM
120202007-08-08 Glenn Morris <rgm@gnu.org>
12021
12022 * Replace `iff' in doc-strings and comments.
12023
ae494350
CY
120242007-08-07 Chong Yidong <cyd@stupidchicken.com>
12025
12026 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
12027
6f2528d8
MR
120282007-08-07 Martin Rudalics <rudalics@gmx.at>
12029
12030 * fileio.c (Finsert_file_contents): Run format-decode and
12031 after_insert_file_functions on entire buffer when REPLACE is
12032 non-nil and inhibit modification_hooks and point_motion_hooks.
12033 For consistency, run after_insert_file_functions iff something
12034 got inserted. Move signal_after_change and update_compositions
12035 after code running after_insert_file_functions. Make sure that
6b8e474c 12036 undo_list doesn't record intermediate steps of the decoding process.
6f2528d8 12037
3ceeb306
YM
120382007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12039
12040 * emacs.c (main)
12041 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
12042 Call malloc_enable_thread on interactive startup.
12043
12044 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
7b7d07bb
YM
12045 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
12046 [USE_PTHREAD]: Conditionalize with it.
3ceeb306
YM
12047 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
12048 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
12049 New functions.
12050
ca5e6fd5
CY
120512007-08-06 Chong Yidong <cyd@stupidchicken.com>
12052
32bfce5d
CY
12053 * xdisp.c (redisplay_window): When restoring original buffer
12054 position, make sure it is still valid.
12055
ca5e6fd5
CY
12056 * image.c (png_load): Ignore png-supplied background color.
12057
a5b11587
YM
120582007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12059
12060 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
12061 Use kCFAbsoluteTimeIntervalSince1970.
12062
12063 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
12064 New variable.
12065 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
12066 event loop should be quit.
12067 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
12068 Quit dialog event loop if quit_dialog_event_loop is set.
12069
12070 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
12071 (Selection): New typedef. Use instead of ScrapRef.
12072 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
12073 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
12074 (mac_clear_selection): Rename from clear_scrap.
12075 (get_flavor_type_from_symbol): New argument SEL and subsume function of
ff8da443 12076 scrap_has_target_type. All uses changed.
a5b11587
YM
12077 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
12078 (mac_selection_has_target_p): New functions.
12079 (mac_put_selection_value): Rename from put_scrap_string.
12080 (mac_get_selection_value): Rename from get_scrap_string.
12081 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
12082 (put_scrap_private_timestamp, scrap_has_target_type)
12083 (get_scrap_private_timestamp): Remove functions.
12084 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
12085 (x_own_selection, x_get_local_selection):
12086 Use mac_valid_selection_value_p.
12087 (x_own_selection): Don't use put_scrap_private_timestamp.
12088 Record OWNERSHIP-INFO into Vselection_alist instead.
12089 (x_get_local_selection): Don't check type if request is local.
12090 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
12091 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
12092
880820fe 120932007-08-04 Jan Djärv <jan.h.d@swipnet.se>
991bde0d
JD
12094
12095 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
12096 add comment explaining why.
12097
73ff9d42
RS
120982007-08-03 Richard Stallman <rms@gnu.org>
12099
12100 * fileio.c (Fvisited_file_modtime): Use make_time.
12101
54ed9a2d 121022007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
cdf5c17a
VJL
12103
12104 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
12105 build.
12106
65a9c8e2
SM
121072007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
12108
12109 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
12110
c5925799
KY
121112007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
12112
12113 * puresize.h (BASE_PURESIZE): Increase to 1130000.
12114
adef3de7
RS
121152007-07-30 Richard Stallman <rms@gnu.org>
12116
12117 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
12118
880820fe 121192007-07-29 Jan Djärv <jan.h.d@swipnet.se>
784c1472
JD
12120
12121 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
12122
a10421a1
NR
121232007-07-28 Nick Roberts <nickrob@snap.net.nz>
12124
12125 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
12126 remote default-directory.
12127
12128 * buffer.c (mode-line-format): Update doc string.
12129
0cb1ae20
YM
121302007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12131
12132 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
12133 scroll bar gap.
12134 (x_scroll_bar_create): Set bar->fringe_extended_p.
12135 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
12136 on frame edge. Check fringe background extension. Don't clear
12137 extended fringe background area.
12138
12139 * w32term.h (struct scroll_bar): New member fringe_extended_p.
12140 (w32_fill_area): Enclose multiple statements with do ... while (0).
12141
12142 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
12143 Extend fringe background to scroll bar gap.
12144 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
12145 Set bar->fringe_extended_p.
12146 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
12147 Put leftmost/rightmost scroll bars on frame edge. Check fringe
12148 background extension. Don't clear extended fringe background area.
12149
12150 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
12151 New member fringe_extended_p.
12152
cacc7b51
GM
121532007-07-25 Glenn Morris <rgm@gnu.org>
12154
12155 * Relicense all FSF files to GPLv3 or later.
12156
12157 * COPYING: Switch to GPLv3.
12158
89835619
SM
121592007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
12160
c4f46926
SM
12161 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
12162
12163 * data.c (Finteractive_form): Check for the presence of an
12164 `interactive-form' symbol property more thoroughly.
12165
12166 * data.c (Finteractive_form): Use an `interactive-form' property if
89835619
SM
12167 present, analogous to the function-documentation property.
12168
ee04257d
JR
121692007-07-24 Jason Rumney <jasonr@gnu.org>
12170
12171 * w32fns.c (x_real_positions): Get real position from OS instead of
12172 calculating it.
12173
50624218
JR
121742007-07-23 Jason Rumney <jasonr@gnu.org>
12175
12176 * filelock.c (current_lock_owner): Allow for @ sign in username.
12177
3650f60e
NR
121782007-07-22 Nick Roberts <nickrob@snap.net.nz>
12179
12180 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
12181 remote default-directory.
12182
12183 * buffer.c (mode-line-format): Describe above case in doc string.
12184
1e899515 121852007-07-20 Eli Zaretskii <eliz@gnu.org>
b395d6e1 12186
75be5258
EZ
12187 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
12188 Define if not defined.
12189
2b6e2f4d
JR
121902007-07-18 Jason Rumney <jasonr@gnu.org>
12191
12192 * w32proc.c (w32_executable_type): Handle 64 bit executables.
12193
23dacf80
JB
121942007-07-18 Richard Stallman <rms@gnu.org>
12195
12196 * data.c (Fsetq_default): Doc fix.
12197
12198 * eval.c (Fsetq): Doc fix.
12199
122002007-07-18 Juanma Barranquero <lekktu@gmail.com>
12201
12202 * coding.c (Ffind_operation_coding_system):
12203 * eval.c (For, Fand): Doc fixes.
880820fe 12204 Reported by Johan Bockgård.
23dacf80 12205
880820fe 122062007-07-18 Jan Djärv <jan.h.d@swipnet.se>
656de71a 12207
23dacf80 12208 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
656de71a 12209
23dacf80 12210 * xterm.h: Declare x_ewmh_activate_frame.
656de71a
JD
12211
12212 * xterm.c (x_ewmh_activate_frame): New function.
12213 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
12214
71ec17e6
MR
122152007-07-17 Martin Rudalics <rudalics@gmx.at>
12216
12217 * window.c (Fdisplay_buffer): If largest or LRU window is the
12218 only window, split it even if it is not eligible for splitting.
12219 This restores the original behavior broken by the 2007-07-15
12220 change.
12221
e9818042
GM
122222007-07-17 Glenn Morris <rgm@gnu.org>
12223
12224 * abbrev.c (abbrev_check_chars): New function.
6b8e474c
SM
12225 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
12226 Call abbrev_check_chars to check abbrev characters are word
e9818042
GM
12227 constituents. Doc fix.
12228
e6fca843
SM
122292007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
12230
12231 * process.c (Fstart_process, Fmake_network_process)
12232 (read_process_output): Fix up last changes.
12233
b5d2b4ab
EZ
122342007-07-16 Eli Zaretskii <eliz@gnu.org>
12235
12236 * makefile.w32-in (clean): Don't delete *~.
12237
413a79ad
AS
122382007-07-16 Andreas Schwab <schwab@suse.de>
12239
12240 * window.c (Fdisplay_buffer): Use NILP.
12241 (Fset_window_scroll_bars): Likewise.
12242
f1de8c77
MR
122432007-07-15 Martin Rudalics <rudalics@gmx.at>
12244
12245 * window.c (window_min_size_2): New function.
12246 (window_min_size_1, size_window, Fdisplay_buffer)
12247 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
12248 windows without mode- or header-lines when window-min-height is
12249 too small.
12250 (size_window): Reset nodelete_p after testing it, following an
12251 earlier note by Kim F. Storm.
12252 (display_buffer): Do not set split_height_threshold to twice the
12253 value of window_min_height to avoid changing the value of a
12254 customizable variable. Rather explicitly check whether the
12255 height of the window that shall be splitted is at least as large
12256 as split_height_threshold.
1af74d06
MB
12257 (Fwindow_full_width_p): New defun.
12258 (syms_of_window): Defsubr it.
d31053f9 12259
1af74d06 12260 * window.h: Add EXFUN for Fwindow_full_width_p.
f1de8c77 12261
5e1ab613
JR
122622007-07-14 Jason Rumney <jasonr@gnu.org>
12263
12264 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
12265
f01cbfdd
RS
122662007-07-14 Richard Stallman <rms@gnu.org>
12267
12268 * eval.c (maybe_call_debugger): New function.
12269 (find_handler_clause): Use maybe_call_debugger.
12270 Call it when the handler says `debug'.
12271 Eliminate DEBUGGER_VALUE_PTR.
12272 (Fsignal): Eliminate debugger_value.
12273 (Qdebug): New variable.
12274 (syms_of_eval): Initialize it.
12275
1bab435a
JB
122762007-07-14 Juanma Barranquero <lekktu@gmail.com>
12277
12278 * eval.c (Fprogn):
12279 * keyboard.c (Ftrack_mouse):
12280 * print.c (Fwith_output_to_temp_buffer):
12281 * window.c (Fsave_window_excursion): Doc fix.
12282
be436d23
SM
122832007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
12284
12285 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
12286
60f0fb11
SM
122872007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
12288
12289 * process.h (struct Lisp_Process): Turn slots infd, outfd,
12290 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
12291 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
12292 read_output_delay, and read_output_skip from Lisp_Objects to ints.
12293 Remove unused encoding_carryover.
12294 * process.c: Adjust all functions accordingly.
12295
d8b18043
RS
122962007-07-12 Richard Stallman <rms@gnu.org>
12297
12298 * term.c: Include unistd.h only if HAVE_UNISTD_H.
12299
d5781bb6
JR
123002007-07-11 Jason Rumney <jasonr@gnu.org>
12301
12302 * makefile.w32-in (LIBS): Include OLE32.
12303
12304 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
12305 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
12306
5bb7dfee
SM
123072007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
12308
12309 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
12310 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
12311 from a Lisp_Object into a bare pointer.
12312 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
12313 Adjust the code correspondingly.
12314
12315 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
12316
12317 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
12318 (term_show_mouse_face): Remove unused var `j'.
12319 (handle_one_term_event): Remove unused vars `i' and `j'.
12320 Don't cast return value of ttyname since it's not necessary.
12321
a1be1ce8
SM
123222007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
12323
5045e68e
SM
12324 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
12325 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
12326
8071c00f
SM
12327 * fns.c (map_char_table): Use an array of int for `indices' rather than
12328 an array of Lisp_Objects (which are only ever integers anyway).
12329 (Fmap_char_table): Update caller.
12330 * lisp.h: Update prototype.
12331 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
12332 * fontset.c (Ffontset_info):
12333 * casetab.c (set_case_table): Update callers.
12334
12335 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
12336
fab84e3c
SM
12337 * keymap.c (struct accessible_keymaps_data)
12338 (struct where_is_internal_data): New structures.
12339 (accessible_keymaps_1, where_is_internal_1): Use them to change
12340 interface to adhere to the one used by map_keymap.
12341 (Faccessible_keymaps, where_is_internal): Use map_keymap.
12342 (accessible_keymaps_char_table, where_is_internal_2): Remove.
12343
a1be1ce8
SM
12344 * keymap.h (map_keymap_function_t): More informative prototype.
12345
ef887810
RS
123462007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
12347
12348 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
12349 (looking_at_1): Don't change search_regs and last_thing_searched
12350 if `inhibit-changing-match-data' is non-nil.
12351 (string_match_1, search_buffer, set_search_regs): Likewise.
12352 (syms_of_search): Add Lisp level definition for
12353 `inhibit-changing-match-data' and set it to nil.
8071c00f
SM
12354 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
12355 start and end of the match, instead of using values in search_regs.
ef887810 12356
4d02fc25
SM
123572007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
12358
12359 * minibuf.c (Fcompleting_read): New value `confirm-only'
12360 for `require-match'.
12361
fe45b81f
SM
123622007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
12363
12364 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
12365 part of the 2007-06-27 change to syms_of_fileio.
12366
a56dd283
YM
123672007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12368
12369 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
12370 Check WINDOWP before using XWINDOW. Consolidate return statements.
12371
0cf9f5b5
RS
123722007-06-27 Richard Stallman <rms@gnu.org>
12373
12374 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
12375
a66f285a
JB
123762007-06-27 Juanma Barranquero <lekktu@gmail.com>
12377
12378 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
12379
8d0d84d2
YM
123802007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12381
12382 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
12383 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
12384 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
12385 (_free_internal, memalign): Use them.
12386 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
12387 Initialize to PTHREAD_MUTEX_INITIALIZER.
12388 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
12389 (morecore_nolock): Rename from morecore. All uses changed.
12390 Use only nolock versions of internal allocation functions.
12391 (_malloc_internal_nolock, _realloc_internal_nolock)
12392 (_free_internal_nolock): New functions created from
12393 _malloc_internal, _realloc_internal, and _free_internal.
12394 (_malloc_internal, _realloc_internal, _free_internal): Use them.
12395 Copy hook value to automatic variable before its use.
12396 (memalign): Copy hook value to automatic variable before its use.
12397
5a0bbd9a
KH
123982007-06-26 Kenichi Handa <handa@m17n.org>
12399
12400 * coding.c (Ffind_operation_coding_system): Docstring improved.
12401 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
12402
9a51747b
DK
124032007-06-25 David Kastrup <dak@gnu.org>
12404
12405 * keymap.c (Fcurrent_active_maps): Add `position' argument.
12406 (Fwhere_is_internal): Adjust call to `current-active-maps' to
12407 cater for additional parameter.
12408
12409 * keymap.h: Adjust number of parameters to `current-active-maps'.
12410
12411 * doc.c (Fsubstitute_command_keys): Adjust call of
12412 `current-active-maps'.
12413
e4305426
DK
124142007-06-25 David Kastrup <dak@gnu.org>
12415
12416 * callint.c (Fcall_interactively): Make the parsing of interactive
12417 specs somewhat more readable.
12418
511a18d9
YM
124192007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12420
12421 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
12422 to scroll bar gap also when bitmap fills fringe. Draw only foreground
12423 if extended background has already been filled.
12424
512eb161
YM
124252007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12426
12427 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
12428 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
12429
12430 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
12431 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
12432 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
12433 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
12434 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
12435 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
12436 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
12437 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
12438 Run timers during dialog popup.
12439 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
12440
2386b1f1
JR
124412007-06-21 Jason Rumney <jasonr@gnu.org>
12442
12443 * image.c (convert_mono_to_color_image): Swap fore and background.
12444
fab8b787
JR
124452007-06-20 Jason Rumney <jasonr@gnu.org>
12446
12447 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
12448 (w32_free_bdf_font): Unmap memory not handle.
12449
15bdd7a0 124502007-06-20 Sam Steingold <sds@gnu.org>
3cacba85
SS
12451
12452 * gmalloc.c (__morecore): Fix the declaration to comply with the
12453 definition.
12454
1bb8a291
JB
124552007-06-20 Juanma Barranquero <lekktu@gmail.com>
12456
12457 * w32term.c (w32_delete_display): Remove leftover declaration.
12458 (w32_define_cursor, w32_initialize): Make static.
12459
12460 * w32.c (_wsa_errlist): Fix typo in error message.
12461 (init_environment): Ignore any environment variable from the
12462 registry having a null value.
12463
92648dea
GM
124642007-06-20 Glenn Morris <rgm@gnu.org>
12465
12466 * Makefile.in (LIBGIF): Default to -lgif.
12467
ff25d115
JR
124682007-06-17 Jason Rumney <jasonr@gnu.org>
12469
12470 * w32menu.c (add_menu_item): Don't use multibyte string functions on
12471 unicode strings.
12472
a1a578a5
JB
124732007-06-16 Juanma Barranquero <lekktu@gmail.com>
12474
12475 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
12476 Fix typo in docstring.
12477
af41f8a8
EZ
124782007-06-16 Eli Zaretskii <eliz@gnu.org>
12479
12480 * w32menu.c (add_menu_item): Escape `&' characters in menu items
12481 and their keybindings.
12482
8b29cab9
CY
124832007-06-15 Chong Yidong <cyd@stupidchicken.com>
12484
12485 * composite.c (update_compositions): Fix last fix.
12486
c433c134
JR
124872007-06-14 Jason Rumney <jasonr@gnu.org>
12488
12489 * w32.c (get_process_times_fn): New function pointer.
12490 (globals_of_w32): Intialize it if present in kernel32.dll.
12491 (w32_get_internal_run_time): New function.
12492
12493 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
12494
553d3164
KH
124952007-06-14 Kenichi Handa <handa@etlken.m17n.org>
12496
12497 * composite.c (update_compositions): Check the validness of
12498 compositions.
12499
446ba96f
YM
125002007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12501
12502 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
12503 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
12504
12505 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
12506 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
12507
12508 * macgui.h (USE_MAC_TOOLBAR): New define.
12509
12510 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
12511 Return immediately unless popup is activated.
12512
12513 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
12514 background to scroll bar gap.
12515 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
12516 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
12517 scroll bars on frame edge. Check fringe background extension.
12518 Don't clear extended fringe background area.
12519 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
12520 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
12521 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
12522 [USE_MAC_TOOLBAR]: New macros.
12523 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
12524 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
12525 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
12526 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
12527 [USE_MAC_TOOLBAR]: New functions.
12528 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
12529 manually if previous repositioning has failed.
12530 (mac_handle_keyboard_event): Use precomputed event kind.
12531 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
12532 as tool bar item click. Handle mouse movement over tool bar items.
12533
12534 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
12535 toolbar_win_gravity.
12536 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
12537 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
12538 Add externs.
12539
12540 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
12541 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
12542
9720173f
CY
125432007-06-14 Chong Yidong <cyd@stupidchicken.com>
12544
12545 * image.c (search_image_cache): Remove unused variable.
12546
1217dd00
CY
125472007-06-13 Chong Yidong <cyd@stupidchicken.com>
12548
12549 * xfns.c, xmenu.c: Link to xaw3d if available.
12550
c5b8e0ea
YM
125512007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12552
12553 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
12554 frame_foreground and frame_background.
12555
12556 * image.c (lookup_image): Save frame foreground and background colors.
12557 (search_image_cache): Check if saved and current frame colors match.
12558
c69b0314
SM
125592007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
12560
12561 * regex.c (regex_compile): Remove the `regnum' counter.
12562 Use bufp->re_nsub instead. Add support for \(?N:RE\).
12563
c9612b8e
SM
125642007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
12565
12566 * term.c: Include intervals.h to declare Fget_text_property.
12567
843d2458
JR
125682007-06-10 Jason Rumney <jasonr@gnu.org>
12569
12570 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
12571
1e0d2d60 125722007-06-08 Juanma Barranquero <lekktu@gmail.com>
977f6cfb
JB
12573
12574 * callint.c (Fcall_interactively):
12575 * editfns.c (Fdelete_and_extract_region):
12576 * fileio.c (Fread_file_name):
12577 * fns.c (Fmapconcat):
12578 * keyboard.c (cmd_error_internal):
12579 * keymap.c (Fkey_description):
12580 * lread.c (openp):
12581 * minibuf.c (read_minibuf):
12582 * search.c (wordify):
12583 * sunfns.c (sel_read):
12584 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
12585 * xfns.c (x_default_scroll_bar_color_parameter):
12586 * xmenu.c (menu_help_callback):
12587 * xselect.c (Fx_get_atom_name):
12588 * xterm.c (x_term_init): Use empty_unibyte_string.
12589
15bdd7a0 125902007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
977f6cfb
JB
12591
12592 * alloc.c (init_strings): Initialize canonical empty strings.
12593 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
12594 canonical empty string when the requested size is 0.
12595
12596 * emacs.c (empty_unibyte_string): Rename from empty_string.
12597 (empty_multibyte_string): New canonical empty string.
12598 (syms_of_emacs): Don't initialize empty_string.
12599
12600 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
12601 string, if appropriate.
12602 (empty_unibyte_string, empty_multibyte_string): New externs.
12603 (empty_string): Remove extern.
12604
12605 * lread.c (syms_of_lread): Use empty_unibyte_string.
12606
42c4c67a
JR
126072007-06-07 Jason Rumney <jasonr@gnu.org>
12608
12609 * s/ms-w32.h: Don't define HAVE_TZNAME.
12610
12611 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
12612
aa8280d3
YM
126132007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12614
12615 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
12616
12617 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
12618 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
12619
12620 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
12621 Don't call next handler.
12622 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
12623 Remove argument. Install handler to application.
12624 (set_frame_menubar): Don't change deep_p.
1e0d2d60 12625 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
aa8280d3
YM
12626 FRAME_OUTER_TO_INNER_DIFF_Y.
12627 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
12628 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
12629 [HAVE_DIALOGS]: New macros.
12630 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
12631 Use them.
12632 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
12633
12634 * macselect.c [MAC_OSX] (install_service_handler): Rename from
12635 init_service_handler. All callers changed. Return OSStatus value.
12636
12637 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
12638 All callers changed so as not to call SetPortWindowPort.
12639 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
12640 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
12641 mac_draw_string_common.
12642 (mac_draw_image_string_qd): Likewise.
12643 (mac_draw_string_common): Use them. Add INLINE.
12644 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
12645 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
12646 GetGlobalMouse.
12647 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
12648 and FRAME_OUTER_TO_INNER_DIFF_Y.
12649 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
12650 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
12651 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
12652 repositioning window to mac_handle_window_event.
12653 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
12654 saving window location to mac_handle_window_event
12655 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
12656 (install_menu_target_item_handler): Remove argument in extern.
12657 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
12658 Also accept command events.
12659 (do_keystroke): New function created from XTread_socket.
12660 (init_command_handler): Remove functions.
12661 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
12662 and save window location by kEventWindowShowing and kEventWindowHiding
12663 handlers here. Don't call next handler for window state change and
12664 focus events.
12665 (mac_handle_application_event, mac_handle_keyboard_event)
12666 [TARGET_API_MAC_CARBON]: New functions.
12667 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
12668 kEventWindowShowing and kEventWindowHiding events. Move installation
12669 of mouse, font, text input and menu target item handlers to
12670 install_application_handler.
12671 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
12672 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
12673 New function.
12674 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
12675 Register it.
c9612b8e
SM
12676 (XTread_socket) [TARGET_API_MAC_CARBON]:
12677 Consolidate SendEventToEventTarget calls.
12678 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
12679 Move application activation handler to mac_handle_application_event.
12680 Move keyboard handler to mac_handle_keyboard_event.
aa8280d3
YM
12681 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
12682 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
12683 init_command_handler. Call install_application_handler.
12684
12685 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
12686 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
12687
6926c954
GM
126882007-06-07 Glenn Morris <rgm@gnu.org>
12689
12690 * emacs.c (main): Use `emacs-copyright' in --version output.
12691
6fe04c89
CY
126922007-06-06 Chong Yidong <cyd@stupidchicken.com>
12693
c9612b8e 12694 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
6fe04c89 12695
7eb0d727
YM
126962007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12697
12698 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
12699
12700 * macgui.h: Replace WindowPtr with WindowRef.
12701
12702 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
12703 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
12704 Replace ControlHandle with ControlRef.
12705 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
12706
12707 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
12708 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
12709 Replace ControlHandle with ControlRef.
12710 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
12711 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
12712
12713 * macterm.h (struct scroll_bar): Rename member control_handle_low
12714 and control_handle_high to control_ref_low and control_ref_high.
12715 All uses changed.
12716 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
12717 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
12718 respectively. All uses changed.
12719 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
12720 (install_window_handler, remove_window_handler): Replace WindowPtr
12721 with WindowRef in externs.
12722
65fddb74
JB
127232007-06-05 Juanma Barranquero <lekktu@gmail.com>
12724
12725 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
12726
db1213a9
NR
127272007-06-03 Nick Roberts <nickrob@snap.net.nz>
12728
12729 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
12730
65fddb74 12731 * frame.c (Fmouse_position, Fmouse_pixel_position):
db1213a9
NR
12732 Condition on HAVE_GPM too.
12733
12734 * term.c (term_mouse_highlight): Remove unused variables.
12735 (Fterm_open_connection): Set gpm_zerobased to 1.
12736 (term_mouse_movement, term_mouse_click, handle_one_term_event):
12737 Use zero based co-ordinates.
12738 (handle_one_term_event): Report a drag as mouse movement too.
12739
12740 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
12741
d94df25b
CY
127422007-06-03 Chong Yidong <cyd@stupidchicken.com>
12743
12744 * image.c (search_image_cache): New function. Require background
12745 color match if background color is unspecified in the image spec.
12746 (uncache_image, lookup_image): Use it.
12747
4797b6d9
JB
127482007-06-01 Juanma Barranquero <lekktu@gmail.com>
12749
12750 * window.c (Fshrink_window): Reflow docstring.
12751
1ffe7343
NR
127522007-06-02 Chong Yidong <cyd@stupidchicken.com>
12753
12754 * Version 22.1 released.
12755
127562007-06-01 Richard Stallman <rms@gnu.org>
12757
12758 * xfns.c (x_encode_text): Add GCPRO.
12759
127602007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12761
12762 * xfns.c (x_set_name_internal): Save encoded name before
12763 x_encode_text in case string data is relocated.
12764
127652007-05-31 Richard Stallman <rms@gnu.org>
12766
12767 * buffer.c (syms_of_buffer): Doc fix.
12768
127692007-05-30 Nick Roberts <nickrob@snap.net.nz>
12770
12771 * sysdep.c (init_sys_modes): Add rather than replace with
12772 O_NONBLOCK.
12773
12774 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
12775 term_mouse_moveto.
12776
12777 * termhooks.h (term_mouse_moveto): New extern.
12778
12779 * term.c (mouse_face_window): Rename...
12780 (Qmouse_face_window): ...to this.
12781 (term_show_mouse_face, term_clear_mouse_face)
12782 (term_mouse_highlight): Use Qmouse_face_window.
12783 (term_mouse_moveto): New function.
12784 (term_mouse_position): Make it work.
12785 (syms_of_term): Uncomment assignment to mouse_position_hook.
12786 Staticpro Qmouse_face_window.
12787
127882007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12789
12790 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
12791 around current_column call.
12792
127932007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
12794
12795 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
12796 * xdisp.c (next_element_from_buffer):
12797 * window.c (delete_window):
12798 * term.c (term_mouse_highlight):
12799 * msdos.c (getdefdir):
12800 * macterm.c (mac_create_bitmap_from_bitmap_data)
12801 (init_font_name_table):
12802 * fns.c (Fsxhash):
12803 * data.c (Fmake_local_variable):
12804 * ccl.c (ccl_driver): Likewise.
12805
128062007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12807
12808 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
12809 Call mac_wakeup_from_rne on window size change.
12810
128112007-05-25 Chong Yidong <cyd@stupidchicken.com>
12812
12813 * image.c (uncache_image): Fix typo.
12814
128152007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
12816
12817 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
12818
128192007-05-22 Richard Stallman <rms@gnu.org>
12820
12821 * xterm.c (x_connection_closed): Remove NO_RETURN.
12822
128232007-05-22 Martin Rudalics <rudalics@gmx.at>
12824
12825 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
12826
128272007-05-21 Chong Yidong <cyd@stupidchicken.com>
12828
12829 * image.c (uncache_image): New function.
12830 (Fimage_refresh): New function.
12831
880820fe 128322007-05-20 Jan Djärv <jan.h.d@swipnet.se>
1ffe7343
NR
12833
12834 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
12835
128362007-05-20 Nick Roberts <nickrob@snap.net.nz>
12837
12838 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
12839 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
12840
128412007-05-20 Nick Roberts <nickrob@snap.net.nz>
12842
12843 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
12844 conditional on [HAVE_GPM_H].
12845
128462007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
12847
12848 * syntax.c (skip_chars): Update syntax-table only after we checked that
12849 the new location is valid.
12850
128512007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12852
12853 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
12854 mac_get_window_bounds.
12855
128562007-05-20 Nick Roberts <nickrob@snap.net.nz>
12857
12858 * Makefile.in (LIBGPM): Allow it to be set from configure.
12859 If set then link Emacs with it.
12860
12861 * config.in: Regenerate.
12862
12863 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
12864 New externs.
12865
12866 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
12867 Include gpm.h.
12868 (handle_one_term_event, term_gpm): New externs.
12869
12870 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
12871 and allow it to be interrupted by SIGIO.
12872
12873 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
12874 (wait_reading_process_output): Wait on gpm_fd too.
12875 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
12876 (add_gpm_wait_descriptor_called_flag): New variable.
12877 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
12878
12879 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
12880 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
12881 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
12882 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
12883 (make_lispy_event): Add case GPM_CLICK_EVENT.
12884 (read_avail_input): Handle mouse input.
12885
12886 * term.c (write_glyphs_with_face): New function.
12887 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
12888 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
12889 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
12890 (mouse_face_face_id, term_gpm, pos_x, pos_y)
12891 (last_mouse_x, last_mouse_y): New variables.
12892 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
12893 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
12894 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
12895 (Fterm_close_connection): New functions.
12896 (term_init): Initialise mouse_face_window.
12897
128982007-05-19 Chong Yidong <cyd@stupidchicken.com>
12899
12900 * xdisp.c (redisplay_window): If first window line is a
12901 continuation line, recompute the new window start instead of
12902 recentering.
12903
129042007-05-18 Glenn Morris <rgm@gnu.org>
12905
12906 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
12907 Suggested by Alfred M. Szmidt <ams@gnu.org>.
12908
129092007-05-17 Glenn Morris <rgm@gnu.org>
12910
12911 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
12912
129132007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12914
12915 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
12916 dead key repeat and up events.
12917
129182007-05-14 Chong Yidong <cyd@stupidchicken.com>
12919
12920 * image.c (pbm_load): Check image size for monochrome pbm.
12921
129222007-05-13 Chong Yidong <cyd@stupidchicken.com>
12923
12924 * xterm.c (XTread_socket): Revert last change.
12925
129262007-05-12 Chong Yidong <cyd@stupidchicken.com>
12927
12928 * image.c (pbm_load): Correctly check image size for greyscale pbm.
12929
12930 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
12931
129322007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
12933
12934 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
12935 mixup (YAILOM).
12936
129372007-05-07 Andreas Schwab <schwab@suse.de>
12938
12939 * keymap.c (Flookup_key): Fix typo in last change.
12940
129412007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
12942
12943 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
12944 mapping for unibyte strings.
12945
129462007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12947
12948 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
12949 (Fx_popup_dialog) [MAC_OSX]: Likewise.
12950
129512007-04-29 Richard Stallman <rms@gnu.org>
12952
12953 * insdel.c (replace_range): For undo, record insertion first.
12954
129552007-04-29 Andreas Schwab <schwab@suse.de>
12956
12957 * lisp.h (VECSIZE): Use OFFSETOF.
12958
129592007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12960
12961 * xdisp.c (try_window_reusing_current_matrix): Fix number of
12962 disabled lines.
12963
129642007-04-28 Richard Stallman <rms@gnu.org>
12965
12966 * lread.c (read_escape): In a string, \s is always space.
12967
880820fe 129682007-04-27 Jan Djärv <jan.h.d@swipnet.se>
1ffe7343
NR
12969
12970 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
12971
12972 * gtkutil.c (xg_update_menubar, create_menus): Create empty
12973 submenu for menu bar items.
12974
382c648d 12975See ChangeLog.10 for earlier changes.
6922b018
KH
12976
12977;; Local Variables:
880820fe 12978;; coding: utf-8
33462dfa 12979;; add-log-time-zone-rule: t
67e8d28a 12980;; bug-reference-url-format: "http://emacsbugs.donarmstrong.com/cgi-bin/bugreport.cgi?bug=%s"
6922b018 12981;; End:
2a34a036 12982
59ce725a 12983 Copyright (C) 2007, 2008 Free Software Foundation, Inc.
7f6d64f8
GM
12984
12985 This file is part of GNU Emacs.
12986
5a1dde61 12987 GNU Emacs is free software: you can redistribute it and/or modify
7f6d64f8 12988 it under the terms of the GNU General Public License as published by
5a1dde61
GM
12989 the Free Software Foundation, either version 3 of the License, or
12990 (at your option) any later version.
7f6d64f8
GM
12991
12992 GNU Emacs is distributed in the hope that it will be useful,
12993 but WITHOUT ANY WARRANTY; without even the implied warranty of
12994 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12995 GNU General Public License for more details.
12996
12997 You should have received a copy of the GNU General Public License
5a1dde61 12998 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
ab5796a9 12999
28f60c3d 13000;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40