Fix syntax scanning bug causing fontification crashes.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
6e20a0d4
CY
12011-08-30 Chong Yidong <cyd@stupidchicken.com>
2
3 * syntax.c (find_defun_start): Update all cache variables if
4 exiting early (Bug#9401).
5
220fdd2e
AS
62011-08-19 Andreas Schwab <schwab@linux-m68k.org>
7
8 * keyboard.c: Include "process.h"
9
c897048c
CY
102011-07-28 Eli Zaretskii <eliz@gnu.org>
11
12 * xfaces.c (update_face_from_frame_parameter): Move out of
13 HAVE_WINDOW_SYSTEM portion. Condition window-system only parts
14 with HAVE_WINDOW_SYSTEM.
15
ea180610
AS
162011-07-26 Andreas Schwab <schwab@linux-m68k.org>
17
18 * fontset.c (fontset_get_font_group): Add proper type checks.
19 (Bug#9172)
20
7963fa06
YM
212011-07-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22
23 * unexmacosx.c (print_load_command_name): Add cases LC_FUNCTION_STARTS
24 and LC_VERSION_MIN_MACOSX.
25 (copy_linkedit_data) [LC_FUNCTION_STARTS]: New function.
26 (dump_it) [LC_FUNCTION_STARTS]: Use it.
27
f7912160
CY
282011-07-22 Chong Yidong <cyd@stupidchicken.com>
29
30 * frame.c (Fmodify_frame_parameters): In tty case, update the
31 default face if necessary (Bug#4238).
32
4050dcf8
YM
332011-07-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
34
35 * s/darwin.h (LD_SWITCH_SYSTEM_TEMACS): Add -fno-pie so as to suppress
36 address randomization (Bug#8395).
37
15fa4783
KH
382011-07-07 Kenichi Handa <handa@m17n.org>
39
40 * composite.c (composition_compute_stop_pos): Ignore a static
41 composition starting before CHARPOS (Bug#8915).
42
43 * xdisp.c (handle_composition_prop): Likewise.
44
989b42d2
YM
452011-06-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
46
47 * dispnew.c (scrolling_window): Before scrolling, turn off a
48 mouse-highlight in the window being scrolled.
49
4fd75609
GM
502011-06-16 Paul Eggert <eggert@cs.ucla.edu>
51
52 * nsmenu.m: Replace all uses of XVECTOR with ASIZE and AREF. (Bug#8839)
53
8b3115e7
DN
542011-06-02 Dan Nicolaescu <dann@ics.uci.edu>
55
56 * emacs.c (main): Warn when starting a GTK emacs in daemon mode.
57
14eca62f
YM
582011-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
59
60 * fringe.c (update_window_fringes): Don't update overlay arrow bitmap
61 in the current matrix if keep_current_p is non-zero.
62
e61124cd
YM
632011-05-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
64
65 * dispextern.h (struct glyph_row): New member fringe_bitmap_periodic_p.
66
67 * dispnew.c (shift_glyph_matrix, scrolling_window): Mark scrolled row
68 for fringe update if it has periodic bitmap.
69 (row_equal_p): Also compare left_fringe_offset, right_fringe_offset,
70 and fringe_bitmap_periodic_p.
71
72 * fringe.c (get_fringe_bitmap_data): New function.
73 (draw_fringe_bitmap_1, update_window_fringes): Use it.
74 (update_window_fringes): Record periodicity of fringe bitmap in glyph
75 row. Mark glyph row for fringe update if periodicity changed.
76
77 * xdisp.c (try_window_reusing_current_matrix): Don't mark scrolled row
78 for fringe update unless it has periodic bitmap.
79
f16d9837
KH
802011-05-25 Kenichi Handa <handa@m17n.org>
81
82 * xdisp.c (get_next_display_element): Set correct it->face_id for
83 a static composition.
84
4d8ade89
YM
852011-05-21 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
86
87 * dispnew.c (scrolling_window): Don't exclude the case that the
88 last enabled row in the desired matrix touches the bottom boundary.
89
e531bdff
DA
902011-05-11 Drew Adams <drew.adams@oracle.com>
91
92 * textprop.c (Fprevious_single_char_property_change): Doc fix (bug#8655).
93
7db47798
YM
942011-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
95
96 * w32term.c (w32_draw_fringe_bitmap): Rename local vars `left' and
97 `width' to `bar_area_x' and `bar_area_width', respectively.
98 (x_scroll_run): Take account of fringe background extension.
99
100 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]: Rename
101 local vars `left' and `width' to `bar_area_x' and
102 `bar_area_width', respectively.
103 (x_scroll_run) [USE_TOOLKIT_SCROLL_BARS]: Take account of fringe
104 background extension.
105
25fb3d74
AS
1062011-05-09 Andreas Schwab <schwab@linux-m68k.org>
107
108 * xmenu.c (set_frame_menubar): Fix submenu loops.
109
14fe7b53
EZ
1102011-05-09 Eli Zaretskii <eliz@gnu.org>
111
112 Backport revisions 103939.1.41..103939.1.44 (inclusive) from trunk.
113 (bug#8623)
114 The next log entry shows the actual changes by Paul Eggert.
115
1162011-05-08 Paul Eggert <eggert@cs.ucla.edu>
117
118 Fix a problem with aliasing and vector headers.
119 GCC 4.6.0 optimizes based on type-based alias analysis. For
120 example, if b is of type struct buffer * and v of type struct
121 Lisp_Vector *, then gcc -O2 was incorrectly assuming that &b->size
122 != &v->size, and therefore "v->size = 1; b->size = 2; return
123 v->size;" must therefore return 1. This assumption is incorrect
124 for Emacs, since it type-puns struct Lisp_Vector * with many other
125 types. To fix this problem, this patch adds a new type struct
126 vector_header that documents the constraints on layout of vectors
127 and pseudovectors, and helps optimizing compilers not get fooled
128 by Emacs's type punning. It also adds the macros XSETTYPED_PVECTYPE
129 XSETTYPED_PSEUDOVECTOR, TYPED_PSEUDOVECTORP, for similar reasons.
130 * lisp.h (XVECTOR_SIZE): New convenience macro. All previous uses of
131 XVECTOR (foo)->size replaced to use this macro, to avoid the hassle
132 of writing XVECTOR (foo)->header.size.
133 * lisp.h: Say "vectorlike header" rather than "vector header.
134 (struct vectorlike_header): Rename from struct vector_header.
135 (XVECTORLIKE_HEADER_SIZE): Renamed from XVECTOR_HEADER_SIZE.
136 All uses changed.
137 (XVECTOR_HEADER_SIZE): New macro, for use in XSETPSEUDOVECTOR.
138 (XSETTYPED_PVECTYPE): New macro, specifying the name of the size
139 member.
140 (XSETPVECTYPE): Rewrite in terms of new macro.
141 (XSETPVECTYPESIZE): New macro, specifying both type and size.
142 This is a bit clearer, and further avoids the possibility of
143 undesirable aliasing.
144 (XSETTYPED_PSEUDOVECTOR): New macro, specifying the size.
145 (XSETPSEUDOVECTOR): Rewrite in terms of XSETTYPED_PSEUDOVECTOR
146 and XVECTOR_HEADER_SIZE.
147 (XSETSUBR): Rewrite in terms of XSETTYPED_PSEUDOVECTOR and XSIZE,
148 since Lisp_Subr is a special case (no "next" field).
149 (ASIZE): Rewrite in terms of XVECTOR_SIZE.
150 (struct vector_header): New type.
151 (TYPED_PSEUDOVECTORP): New macro, also specifying the C type of the
152 object, to help avoid aliasing.
153 (PSEUDOVECTORP): Rewrite in terms of TYPED_PSEUDOVECTORP.
154 (SUBRP): Likewise, since Lisp_Subr is a special case.
155
156 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table):
157 (struct Lisp_Sub_Char_Table, struct Lisp_Bool_Vector):
158 (struct Lisp_Hash_Table): Combine first two members into a single
159 struct vector_header member. All uses of "size" and "next" members
160 changed to be "header.size" and "header.next".
161 * buffer.h (struct buffer): Likewise.
162 * font.h (struct font_spec, struct font_entity, struct font): Likewise.
163 * frame.h (struct frame): Likewise.
164 * process.h (struct Lisp_Process): Likewise.
165 * termhooks.h (struct terminal): Likewise.
166 * window.c (struct save_window_data, struct saved_window): Likewise.
167 * window.h (struct window): Likewise.
168 * alloc.c (allocate_buffer, Fmake_bool_vector, allocate_pseudovector):
169 Use XSETPVECTYPESIZE, not XSETPVECTYPE, to avoid aliasing problems.
170 * buffer.c (init_buffer_once): Likewise.
171 * lread.c (defsubr): Use XSETTYPED_PVECTYPE, since Lisp_Subr is a
172 special case.
173 * process.c (Fformat_network_address): Use local var for size,
174 for brevity.
175 * fns.c (vector): Remove; this old hack is no longer needed.
176 * bytecode.c (exec_byte_code): Don't use XVECTOR before CHECK_VECTOR.
177
fab624aa
EZ
1782011-04-29 Eli Zaretskii <eliz@gnu.org>
179
180 * w32heap.c (allocate_heap) [USE_LISP_UNION_TYPE || USE_LSB_TAG]:
181 New version that can reserve upto 2GB of heap space.
182
45cb8994
CY
1832011-04-26 Chong Yidong <cyd@stupidchicken.com>
184
185 * nsfns.m (Fns_read_file_name): Doc fix (Bug#8534).
186
97a93095
EZ
1872011-04-18 Eli Zaretskii <eliz@gnu.org>
188
189 * s/ms-w32.h (localtime): Redirect to sys_localtime.
190
191 * w32.c: Include <time.h>.
192 (sys_localtime): New function.
193
c17819f4
CY
1942011-04-13 Chong Yidong <cyd@stupidchicken.com>
195
196 * xdisp.c (init_xdisp): Initialize echo_area_window (Bug#6451).
197
300f9fca
ST
1982011-04-10 Samuel Thibault <sthibault@debian.org> (tiny change)
199
200 * sysdep.c (wait_for_termination): On GNU Hurd, kill returns -1 on
201 zombies (Bug#8467).
202
fde4eb86
CY
2032011-04-10 Chong Yidong <cyd@stupidchicken.com>
204
205 * buffer.c (syms_of_buffer): Doc fix (Bug#6902).
206
5324d904
CY
2072011-04-08 Chong Yidong <cyd@stupidchicken.com>
208
65969f63
CY
209 * ftfont.c (get_adstyle_property, ftfont_pattern_entity): Use
210 unsigned char, to match FcChar8 type definition.
211
212 * xterm.c (handle_one_xevent):
213 * xmenu.c (create_and_show_popup_menu):
214 * xselect.c (x_decline_selection_request)
215 (x_reply_selection_request): Avoid type-punned deref of X events.
5324d904 216
da2fb5b5 2172011-04-08 Samuel Thibault <sthibault@debian.org> (tiny change)
0080dc6b
SS
218
219 * term.c (init_tty): Fix incorrect ifdef placement (Bug#8450).
220
4e19a977
CS
2212011-03-19 Christoph Scholtes <cschol2112@googlemail.com>
222
223 * process.c (Fformat_network_address): Doc fix.
224
20f56955
CY
2252011-03-19 Chong Yidong <cyd@stupidchicken.com>
226
227 * buffer.h (BUF_BEGV, BUF_BEGV_BYTE, BUF_ZV, BUF_ZV_BYTE, BUF_PT)
228 (BUF_PT_BYTE): Rewrite to handle indirect buffers (Bug#8219).
229 These macros can no longer be used for assignment.
230
231 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Assign
232 struct members directly, instead of using BUF_BEGV etc.
233 (record_buffer_markers, fetch_buffer_markers): New functions for
234 recording and fetching special buffer markers.
235 (set_buffer_internal_1, set_buffer_temp): Use them.
236
237 * lread.c (unreadchar): Use SET_BUF_PT_BOTH.
238
239 * insdel.c (adjust_point): Use SET_BUF_PT_BOTH.
240
241 * intervals.c (temp_set_point_both): Use SET_BUF_PT_BOTH.
242 (get_local_map): Use SET_BUF_BEGV_BOTH and SET_BUF_ZV_BOTH.
243
244 * xdisp.c (hscroll_window_tree):
245 (reconsider_clip_changes): Use PT instead of BUF_PT.
246
45763476
JB
2472011-03-17 Juanma Barranquero <lekktu@gmail.com>
248
249 * xfaces.c (Fx_load_color_file):
250 Read color file from absolute filename (bug#8250).
251
1e048ad1
JB
2522011-03-11 Juanma Barranquero <lekktu@gmail.com>
253
254 Backport revno:103582 from trunk.
255 * w32xfns.c (select_palette): Check success of RealizePalette against
256 GDI_ERROR, not zero.
257
c47cbdfd
YM
2582011-03-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
259
126bc0dc
YM
260 * fringe.c (update_window_fringes): Remove unused variables.
261
c47cbdfd
YM
262 * unexmacosx.c (copy_data_segment): Also copy __got section.
263 (Bug#8223)
264
c6678f29 2652011-03-07 Chong Yidong <cyd@stupidchicken.com>
22770c84
CY
266
267 * Version 23.3 released.
268
e3b300a4
KH
2692011-02-22 Kenichi Handa <handa@m17n.org>
270
271 * font.c (font_open_entity): Be sure to set scaled_pixel_size.
272 (font_find_for_lface): Check if attrs[LFACE_HEIGHT_INDEX] is
273 integer.
274
f6ed3dbe
CY
2752011-02-19 Chong Yidong <cyd@stupidchicken.com>
276
277 * Makefile.in (prefix-args${EXEEXT}): Compile with ALL_CFLAGS.
278
a73d395b
EZ
2792011-02-13 Eli Zaretskii <eliz@gnu.org>
280
281 * xdisp.c (redisplay_internal): Resynchronize `w' if the selected
282 window is changed inside calls to do_pending_window_change.
283 (Bug#8020)
284
cb191a14
EZ
2852011-02-12 Eli Zaretskii <eliz@gnu.org>
286
287 * terminal.c (create_terminal): Use default-keyboard-coding-system
288 and default-terminal-coding-system to initialize coding systems of
289 the new terminal. (Bug#7840)
290
bae1fa42
MR
2912011-02-09 Martin Rudalics <rudalics@gmx.at>
292
293 * window.c (select_window): Check inhibit_point_swap argument when
294 deciding whether to return immediately.
295
9aabf64c
JD
2962011-02-08 Jan Djärv <jan.h.d@swipnet.se>
297
298 * nsterm.m (setFrame, initFrame): Make sure pixel_height doesn't become
299 zero (Bug#7348).
300
95838641
GM
3012011-02-03 Glenn Morris <rgm@gnu.org>
302
303 * xfaces.c (Finternal_set_lisp_face_attribute):
304 Try to clarify some error messages. (Bug#2659)
305
aca092ac
SM
3062011-02-02 Stefan Monnier <monnier@iro.umontreal.ca>
307
308 * editfns.c (save_restriction_restore): Don't forget to invalidate the
309 current_column cache (bug#7946).
310
ea2460a0
KH
3112011-02-02 Kenichi Handa <handa@m17n.org>
312
313 * ftfont.c (ftfont_open): Use FC_DUAL only when it is defined.
314
315 * xftfont.c (xftfont_open): Likewise.
316
29feb0e9
AS
3172011-02-01 Andreas Schwab <schwab@linux-m68k.org>
318
319 * window.c (Fselect_window): Add missing return value.
320
df61c790
AS
3212011-01-29 Andreas Schwab <schwab@linux-m68k.org>
322
323 * image.c (DEF_IMGLIB_FN): Add parameter rettype, use it instead
324 of int. All uses adjusted.
325 (PNG_JMPBUF, png_load, jpeg_load, tiff_load, gif_load)
326 (svg_load_image): Remove casts.
327
7f9c5df9
CY
3282011-01-29 Chong Yidong <cyd@stupidchicken.com>
329
330 * image.c (fn_png_longjmp, fn_png_set_longjmp_fn): New png
331 function definitions for compiling with libpng-1.5.
332 (PNG_LONGJMP, PNG_JMPBUF): New macros for libpng-1.5.
333 (my_png_error, png_load): Use them. Suggested by Thomas Klausner
334 (Bug#7908).
335
46b3f2be
CY
3362011-01-28 Chong Yidong <cyd@stupidchicken.com>
337
338 * m/intel386.h: Define NO_ARG_ARRAY. Suggested by Dan Nicolaescu.
339
37d1c45d
CY
3402011-01-27 Chong Yidong <cyd@stupidchicken.com>
341
342 * font.c (font_parse_fcname): Require GTK-style font sizes to
343 occur at the end of the font string (Bug#7853).
344
ea08011c
CY
3452011-01-26 Chong Yidong <cyd@stupidchicken.com>
346
347 * font.c (font_parse_fcname): Fix typo in string length.
348
f996bbcb
SM
3492011-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
350
351 * xdisp.c (handle_fontified_prop): Be careful with font-lock changing
352 the buffer's point-max (bug#7876).
353
19634648
CY
3542011-01-23 Chong Yidong <cyd@stupidchicken.com>
355
356 * lisp.h (XPNTR): Obey DATA_SEG_BITS in all non-USE_LSB_TAG cases.
357 Remove unused HAVE_SHM branch (Bug#6811).
358
6de1218f 3592011-01-23 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
19634648 360
6de1218f
PG
361 * s/hpux11.h: Set CANNOT_DUMP on IA64 (Bug#6811).
362
e6b84b30
MR
3632011-01-22 Martin Rudalics <rudalics@gmx.at>
364
365 * window.c (select_window): New function.
366 (Fselect_window): Call it.
367 (inhibit_point_swap): Variable deleted.
368 (Fset_window_configuration): Call select_window directly.
369
0514b4be
SM
3702011-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
371
372 * image.c (syms_of_image): Don't access XSYMBOL's internals directly.
373
e7f50e8f
EZ
3742011-01-16 Eli Zaretskii <eliz@gnu.org>
375
376 * image.c (syms_of_image): Don't use SET_SYMBOL_VALUE. (Bug#7848)
377
6dc1d2d3
MR
3782011-01-15 Martin Rudalics <rudalics@gmx.at>
379
380 * window.c (inhibit_point_swap): New variable.
381 (Fselect_window): If inhibit_point_swap is nonzero, avoid swapping
382 point this time.
383 (Fset_window_configuration): Set inhibit_point_swap to 1 instead
384 of setting selected_window to nil (Bug#7728).
385
70ba1ec8
CY
3862011-01-12 Chong Yidong <cyd@stupidchicken.com>
387
388 * config.in (TERMINFO): New definition.
389
390 * s/netbsd.h: Use it to choose between terminfo and termcap
391 (Bug#7642).
392
0ad25444
JD
3932011-01-03 Jan Djärv <jan.h.d@swipnet.se>
394
395 * coding.h (ENCODE_UTF_8): Remove "Used by ..." comment.
396
397 * nsfns.m (ns_set_name_iconic): Remove.
398 (ns_get_screen): Don't assign integer to f.
399 (ns_set_name_internal): New function (Bug#7517).
400 (Vicon_title_format): Extern declare.
401 (ns_set_name): Call ns_set_name_internal.
402 (x_explicitly_set_name): Remove call to ns_set_name_iconic.
403 (x_implicitly_set_name): Ditto.
404 (x_set_title): Remove commet about EXPLICIT. Call ns_set_name_internal.
405 (ns_set_name_as_filename): Encode name with ENCODE_UTF_8.
406 Always use buffer name for title and buffer filename only for
b762841f 407 RepresentedFilename. Handle bad UTF-8 in buffer name (Bug#7517).
0ad25444 408
fb724e55
EZ
4092011-01-03 Eli Zaretskii <eliz@gnu.org>
410
411 * image.c (png_jmpbuf): Remove definition.
412 (my_png_error, png_load): Don't use png_jmpbuf.
413
5be1c984
EZ
4142010-12-31 Eli Zaretskii <eliz@gnu.org>
415
416 * image.c <Qlibpng_version>: New variable.
417 (syms_of_image): Intern and staticpro it. Set its value to the
418 version of PNG library we were compiled with.
419 (my_png_error, png_load): Avoid GCC warnings about direct access
420 to png_ptr->jmpbuf. (Bug#7716)
18da2e74
EZ
421 (png_jmpbuf): New macro.
422 (my_png_error, png_load): Use it instead of #ifdef'ing according
423 to PNG_LIBPNG_VER_MAJOR and PNG_LIBPNG_VER_MINOR.
5be1c984 424
cf07311b
SM
4252010-12-27 Stefan Monnier <monnier@iro.umontreal.ca>
426
427 * .gdbinit (xgetptr): Fix the union+lsb case.
428 (xbacktrace): Fix the union case.
429
794b75c7
SM
4302010-12-26 Stefan Monnier <monnier@iro.umontreal.ca>
431
432 * window.c (Fmove_to_window_line): Avoid abort when called in a buffer
433 different from selected-window's.
434
2e4ab211
EZ
4352010-12-25 Eli Zaretskii <eliz@gnu.org>
436
71fe378d
EZ
437 * keyboard.c (parse_menu_item): Prepend " " to the key sequence
438 equivalent of a menu item when the key sequence is given by the
439 `:keys' attribute. (Bug#7662)
440
2e4ab211
EZ
441 * xdisp.c (Fformat_mode_line): Doc fix: no need to state that only
442 the basic faces are supported.
443
84595ff0
JD
4442010-12-24 Jan Djärv <jan.h.d@swipnet.se>
445
446 * xterm.c (x_check_fullscreen): Fix pixel/character mixup.
447
30d621a2
EZ
4482010-12-17 Eli Zaretskii <eliz@gnu.org>
449
450 * xdisp.c (Fformat_mode_line): Fix last change.
451
4bf3e46e
CY
4522010-12-16 Chong Yidong <cyd@stupidchicken.com>
453
454 * xdisp.c (Fformat_mode_line): Restrict the FACE argument to basic
455 faces (Bug#7587).
456
1b2a627f
EZ
4572010-12-13 Eli Zaretskii <eliz@gnu.org>
458
459 * fileio.c (Fexpand_file_name): One more doc fix.
460
15579471
EZ
4612010-12-12 Eli Zaretskii <eliz@gnu.org>
462
463 * fileio.c (Fexpand_file_name): Doc fix. (Bug#7617)
464
f0559026
EZ
4652010-12-11 Eli Zaretskii <eliz@gnu.org>
466
76feb864
EZ
467 * w32fns.c (Fx_show_tip): Call try_window with last argument
468 TRY_WINDOW_IGNORE_FONTS_CHANGE. Delete the TODO ifdef: problem
469 solved. Round up the tip height to an integral multiple of the
470 frame's line height. Add FRAME_COLUMN_WIDTH to the tip width.
471 (Bug#7398)
472
f0559026
EZ
473 * xdisp.c (string_pos_nchars_ahead, c_string_pos)
474 (face_before_or_after_it_pos, next_element_from_string)
475 (next_element_from_c_string, produce_stretch_glyph): Remove unused
476 calculations of maximum string length before calling
477 string_char_and_length and STRING_CHAR_AND_LENGTH.
478 (string_char_and_length): Update commentary: MAXLEN is no longer
479 needed.
480
0b9fc69a
JD
4812010-12-10 Jan Djärv <jan.h.d@swipnet.se>
482
483 * keyboard.c (kbd_buffer_get_event): Construct SAVE_SESSION_EVENT
484 as (Qsave_session arg).
485
486 * xsmfns.c (smc_interact_CB): Set arg to Qnil.
487 (smc_die_CB): Make an event with arg Qt.
488 (Fhandle_save_session): If event has Qt as argument,
489 call Fkill_emacs (Bug#7552).
490
2b815743
JD
4912010-12-07 Jan Djärv <jan.h.d@swipnet.se>
492
493 * xsmfns.c (smc_die_CB): Call Fkill_emacs (Bug#7552).
494
d8b2a962
CY
4952010-12-06 Chong Yidong <cyd@stupidchicken.com>
496
497 * dispextern.h (struct it): New member overlay_strings_charpos.
498
499 * xdisp.c (next_overlay_string, load_overlay_strings): Record the
500 charpos where we computed n_overlay_strings.
501 (next_overlay_string): Load overlay strings at recorded position,
502 which may not be the same as the iterator's charpos (Bug#7016).
503
a56d164e
JD
5042010-12-05 Jan Djärv <jan.h.d@swipnet.se>
505
506 * nsterm.m (ns_dumpglyphs_image): If drawing cursor, fill background
507 with cursor color and draw a rectangle around the image (Bug#7412).
508
77f1ed6c
CY
5092010-12-05 Chong Yidong <cyd@stupidchicken.com>
510
511 * xdisp.c (try_scrolling): Avoid infloop if the first line is
512 obscured due to a vscroll (Bug#7537).
513
2a91a0b5
JD
5142010-12-02 Jan Djärv <jhd@zeplinf.localdomain>
515
516 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGHT.
517
518 * nsterm.m (x_set_window_size, windowWillResize, initFrameFromEmacs):
519 Use FRAME_TOOLBAR_HEIGHT.
520 (x_set_offset): Handle XNegative and YNegative in
521 f->size_hint_flags (Bug#7510).
522
b84ae584
KH
5232010-11-25 Kenichi Handa <handa@m17n.org>
524
525 * charset.c (emacs_mule_charset): Make it an array of charset ID;
526 i.e. integer.
527 (Fdefine_charset_internal): Adjusted for the above change.
528 (init_charset_once): Likewise.
529
530 * charset.h (emacs_mule_charset): Adjust the prototype. Delete
531 duplicated extern.
532
533 * coding.c (emacs_mule_char): Adjust for the change of
534 emacs_mule_charset.
535
536 * lread.c (read_emacs_mule_char): Adjust for the change of
537 emacs_mule_charset.
538
b8e5cf1d
EZ
5392010-11-22 Eli Zaretskii <eliz@gnu.org>
540
541 * w32.c (_PROCESS_MEMORY_COUNTERS_EX): Don't define with versions
542 of w32api >= 3.15. (Bug#6989) (Bug#7452)
543
96ad0af7
YM
5442010-11-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
545
546 * alloc.c (mark_terminals): Ensure that the image cache is marked
547 even if the terminal object was marked earlier (Bug#6301).
548
35f1de62
CY
5492010-11-21 Chong Yidong <cyd@stupidchicken.com>
550
551 * editfns.c (Fbyte_to_string): Signal an error arg is not a byte.
552
8d7f026f
JD
5532010-11-20 Jan Djärv <jan.h.d@swipnet.se>
554
555 * gtkutil.c (menubar_map_cb): New function (Bug#7425).
556 (xg_update_frame_menubar): Connect signal map to menubar_map_cb.
b762841f 557 Use 23 as menubar height if 0. (Bug#7425).
8d7f026f 558
37de8fd0
J
5592010-11-14 Jan Djärv <jan.h.d@swipnet.se>
560
561 * xsettings.c (init_gconf): Check HAVE_G_TYPE_INIT.
562
563 * config.in (HAVE_G_TYPE_INIT): New symbol.
564
c7926fe2
EZ
5652010-11-12 Eli Zaretskii <eliz@gnu.org>
566
567 * lread.c (Fload): Mention `load-in-progress' and
568 `load-file-name'. (Bug#7346)
569
c0098065
EZ
5702010-11-09 Eli Zaretskii <eliz@gnu.org>
571
86520d8c
EZ
572 * keyboard.c (kbd_buffer_nr_stored): Define only ifdef subprocesses.
573 (kbd_buffer_store_event_hold, kbd_buffer_get_event)
574 (tty_read_avail_input): Call kbd_buffer_nr_stored only ifdef
575 subprocesses. Use buffer_free only ifdef subprocesses.
576
577 * process.c (init_process) [subprocesses]: Init kbd_is_on_hold in
578 the subprocesses version, not in the non-subprocesses one.
579
794a4b6d
EZ
580 * Makefile.in: Don't use ## comment, it breaks the MSDOS build.
581
c0098065
EZ
582 * xfns.c (x_real_positions): Fix declaration-after-statement
583 problem.
584
be3faa80
CY
5852010-11-05 Chong Yidong <cyd@stupidchicken.com>
586
587 * image.c (free_image): Don't garbage the frame here, since this
588 function can be called while redisplaying (Bug#7210).
589 (uncache_image): Garbage the frame here (Bug#6426).
590
055c91d4 5912010-11-04 Chong Yidong <cyd@stupidchicken.com>
184765cc
CY
592
593 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
594 Windows.
595
055c91d4 5962010-11-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
bd80a886
YM
597
598 * process.c (Fmake_network_process): Don't call turn_on_atimers around
599 `connect' (Bug#5723).
600
055c91d4 6012010-11-04 Helmut Eller <eller.helmut@gmail.com>
c2e124a9
HE
602
603 * process.c (Fmake_network_process): Call `select' for interrupted
604 `connect' rather than creating new socket (Bug#5173).
605
68ae6cda
KH
6062010-11-04 Kenichi Handa <handa@m17n.org>
607
608 * font.c (font_delete_unmatched): Check Vface_ignored_fonts.
609 Don't sheck SPEC if it is nil.
610 (font_list_entities): Call font_delete_unmatched if
611 Vface_ignored_fonts is non-nil.
612
db5cada2 6132010-11-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
fa884f18 614
2511e8e0
CY
615 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
616 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
617
618 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
619 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
620 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
621 TRY_WINDOW_CHECK_MARGINS.
622
623 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
624 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423).
fa884f18 625
d75c9992
JD
6262010-11-04 Jan Djärv <jan.h.d@swipnet.se>
627
31887d45
JD
628 * xfns.c (x_real_positions): Only use _NET_FRAME_EXTENTS if our
629 parent is the root window. Check this after traversing window tree.
630
d75c9992
JD
631 * xterm.c (x_term_init): Initialize Xatom_net_frame_extents.
632
633 * xterm.h (struct x_display_info): Xatom_net_frame_extents is new.
634
635 * xfns.c (x_real_positions): Try to get _NET_FRAME_EXTENTS first
636 before traversing window tree (Bug#5721).
637
754996bc
GM
6382010-11-03 Glenn Morris <rgm@gnu.org>
639
640 * Makefile.in (CRT_DIR): New variable, set by configure.
641 * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
642 Use $CRT_DIR rather than HAVE_LIB64_DIR. (Bug#5655)
643
3649d303
JD
6442010-11-01 Jan Djärv <jan.h.d@swipnet.se>
645
646 * process.c (kbd_is_on_hold): New variable.
647 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
648 New functions.
649 (wait_reading_process_output): If kbd_on_hold_p returns non-zero,
650 select on empty input mask.
651 (init_process): Initialize kbd_is_on_hold to 0.
652
653 * process.h (hold_keyboard_input, unhold_keyboard_input)
654 (kbd_on_hold_p): Declare.
655
656 * keyboard.c (input_available_signal): Declare.
657 (kbd_buffer_nr_stored): New function.
658 (kbd_buffer_store_event_hold): If kbd_buffer_nr_stored returns
659 more than KBD_BUFFER_SIZE/2, stop reding input (Bug#6571).
660 (kbd_buffer_get_event): If input is suspended and kbd_buffer_nr_stored
661 returns less than KBD_BUFFER_SIZE/4, resume reding input (Bug#6571).
662 (tty_read_avail_input): If input is on hold, return.
663 Don't read more that free slots in kbd_buffer (Bug#6571).
664
46eadc7a
CY
6652010-10-31 Chong Yidong <cyd@stupidchicken.com>
666
667 * xterm.c (x_connection_closed): Print informative error message
668 when aborting on GTK. This requires using shut_down_emacs
669 directly instead of Fkill_emacs.
670
655441b2
MA
6712010-10-25 Michael Albinus <michael.albinus@gmx.de>
672
673 * dbusbind.c (Fdbus_call_method_asynchronously)
674 (Fdbus_register_signal, Fdbus_register_method): Check, whether
675 `dbus-registered-objects-table' is initialized.
676
23c261f5
CY
6772010-10-24 Chong Yidong <cyd@stupidchicken.com>
678
679 * xterm.c (x_connection_closed): Kill Emacs unconditionally.
680
89baa1df
EZ
6812010-10-22 Eli Zaretskii <eliz@gnu.org>
682
683 * frame.c (Fframep, Fwindow_system): Deprecate use as a predicate.
684
685 * dispnew.c (syms_of_display) <initial-window-system, window-system>:
686 Deprecate use as a boolean flag.
687
5419963b
KB
6882010-10-18 Ken Brown <kbrown@cornell.edu>
689
690 * s/cygwin.h (SIGNALS_VIA_CHARACTERS): New define (bug#7225).
691
31daa5e1
KH
6922010-10-15 Kenichi Handa <handa@m17n.org>
693
694 Fix incorrect font metrics when the same font is opened with
695 different pixelsizes.
696
697 * xftfont.c: Include composite.h.
698 (xftfont_shape): New function.
699 (syms_of_xftfont): Set xftfont_driver.shape.
700
9fa82824
DP
7012010-10-13 Damyan Pepper <damyanp@gmail.com>
702
703 Fix handling of font properties on Windows (bug#6303).
704 * font.c (font_filter_properties): New function, refactored from
705 ftfont_filter_properties.
706 * font.h (font_filter_properties): Declare.
707 * ftfont.c (ftfont_filter_properties): Use font_filter_properties.
708 * w32font.c (w32font_booleans, w32font_non_booleans): New variables.
709 (w32font_filter_properties): New function.
710 (w32font_driver): Add w32font_filter_properties.
711
51e4f4a8
JB
7122010-10-12 Juanma Barranquero <lekktu@gmail.com>
713
c0943d3d 714 * font.c (Ffont_variation_glyphs):
51e4f4a8
JB
715 * ccl.c (Fccl_execute_on_string): Fix typo in docstring.
716
a2e35ef5
JD
7172010-10-10 Jan Djärv <jan.h.d@swipnet.se>
718
719 * nsterm.m (Qleft): Declare.
720 (ns_right_alternate_modifier): New variable
721 (NSRightAlternateKeyMask): New define.
722 (EV_MODIFIERS): Parse NSRightAlternateKeyMask if
723 ns_right_alternate_modifier isn't Qleft.
724 (keyDown): If ns_right_alternate_modifier isn't Qleft, use it
725 as emacs modifier for NSRightAlternateKeyMask.
726 (syms_of_nsterm): DEFVAR_LISP ns-right-alternate-modifier.
727
2e828c79
MA
7282010-10-08 Michael Albinus <michael.albinus@gmx.de>
729
730 * dbusbind.c (xd_get_dispatch_status): Return a Lisp_Object.
731 (xd_pending_messages): Catch xd_get_dispatch_status calls.
732
93d50df8
KH
7332010-10-08 Kenichi Handa <handa@m17n.org>
734
2b7c9342 735 * coding.c (complement_process_encoding_system): Fix previous change.
5886ec9c 736
a79b0f28
MA
7372010-10-03 Michael Albinus <michael.albinus@gmx.de>
738
739 * dbusbind.c (syms_of_dbusbind): Move putenv call ...
740 (Fdbus_init_bus): ... here. (Bug#7113)
741
7b2bf907
GM
7422010-10-03 Glenn Morris <rgm@gnu.org>
743
744 * buffer.c (before-change-functions, after-change-functions):
745 Three-year overdue doc fix following 2007-08-13 change.
746
1911a33b
KH
7472010-10-02 Kenichi Handa <handa@m17n.org>
748
749 * coding.c (coding_inherit_eol_type): If parent doesn't specify
750 eol-format, inherit from the system's default.
751 (complement_process_encoding_system): Make a new coding system
752 inherit the original eol-format.
753
fcaf8878
KH
7542010-09-30 Kenichi Handa <handa@m17n.org>
755
756 * coding.c (complement_process_encoding_system): New function.
757
758 * coding.h (complement_process_encoding_system): Extern it.
759
760 * callproc.c (Fcall_process): Complement the coding system for
761 encoding arguments.
762 (Fcall_process_region): Complement the coding system for encoding
763 the input to the process.
764
765 * process.c (Fstart_process): Complement the coding system for
766 encoding arguments.
767 (send_process): Complement the coding system for encoding what
768 sent to the process.
769
18acb5ad
KH
7702010-09-29 Kenichi Handa <handa@m17n.org>
771
772 * xfont.c (xfont_open): Fix setting of font->average_width from
773 :avgwidth property (Bug#7123).
774
dec83468
MA
7752010-09-28 Michael Albinus <michael.albinus@gmx.de>
776
777 * dbusbind.c (syms_of_dbusbind): Use putenv instead of setenv, it
778 is more portable.
779
780 * keyboard.c (gobble_input): Move call of xd_read_queued_messages ...
b762841f 781 (kbd_buffer_get_event): ... here. This is needed for cygwin, which
dec83468
MA
782 has not defined SIGIO.
783
e0720500
MA
7842010-09-27 Michael Albinus <michael.albinus@gmx.de>
785
11a5af7c 786 * dbusbind.c (syms_of_dbusbind): Set $DBUS_FATAL_WARNINGS to "0".
e0720500
MA
787 (Bug#7113)
788
42d3022b
J
7892010-09-26 Jan Djärv <jan.h.d@swipnet.se>
790
791 * xgselect.c (xg_select): Clear file descriptors not set from
792 rfds and wfds.
793
fbb3da77
SM
7942010-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
795
796 * syntax.c (back_comment): Detect the case where a 1-char comment
797 starter is also the 2nd char of a 2-char comment ender.
798
2b5b82db
J
7992010-09-17 Jan Djärv <jan.h.d@swipnet.se>
800
801 * gtkutil.c (xg_tool_bar_menu_proxy): Set gtk-menu-items to TRUE.
802
5f61a25c
J
8032010-09-12 Jan Djärv <jan.h.d@swipnet.se>
804
805 * xterm.c (get_current_vm_state): New function.
806 (do_ewmh_fullscreen): Call get_current_vm_state and compare with
807 want_fullscreen so set_wm_state calls are few (Bug#7013).
808 (x_handle_net_wm_state): Move code to get_current_vm_state and
809 call that function.
810
65c92e31 8112010-09-11 Courtney Bane <emacs-bugs-7626@cbane.org> (tiny change)
65b3d997
A
812
813 * term.c (tty_set_terminal_modes): Don't initialize twice (bug#7002).
814
a552b35a
KH
8152010-09-08 Kenichi Handa <handa@m17n.org>
816
817 * coding.c (encode_coding_iso_2022): Don't optimize for ASCII if
818 we may use designation or locking-shift.
819
396475b7
KH
8202010-09-07 Kenichi Handa <handa@m17n.org>
821
822 * coding.c (detect_coding_emacs_mule): Fix checking of multibyte
823 sequence when the source is multibyte.
824
d419e1d9
KH
8252010-08-31 Kenichi Handa <handa@m17n.org>
826
827 * dispextern.h (FACE_FOR_CHAR): Use an ASCII face for 8-bit
828 characters.
829
830 * term.c (encode_terminal_code): Fix the previous change.
65b3d997
A
831 (produce_glyphs): Don't set it->char_to_display here.
832 Don't handle unibyte-display-via-language-environment here.
d419e1d9
KH
833 (produce_special_glyphs): Set temp_it.char_to_display before
834 calling produce_glyphs.
835
836 * xdisp.c (get_next_display_element): Set it->char_to_display
837 here. Convert all 8-bit bytes from unibyte buffer/string to 8-bit
838 characters.
839 (get_overlay_arrow_glyph_row): Set it.char_to_display too before
840 calling PRODUCE_GLYPHS.
841 (append_space_for_newline): Save and store it->char_to_display.
842 Set it->char_to_display before calling PRODUCE_GLYPHS.
843 (extend_face_to_end_of_line): Set it->char_to_display before
844 calling PRODUCE_GLYPHS.
845 (get_glyph_face_and_encoding): Set the glyph code an 8-bit
846 character to its byte value.
847 (get_char_glyph_code): New function.
848 (produce_stretch_glyph): Set it2.char_to_display too before
849 calling x_produce_glyphs.
850 (x_produce_glyphs): Simplify by using the same code for ASCII and
65b3d997
A
851 non-ASCII characters. Don't set it->char_to_display here.
852 Don't handle unibyte-display-via-language-environment here. For a
c0943d3d 853 character of no glyph, use font->space_width instead of FONT_WIDTH.
d419e1d9 854
769ae9e1
KH
8552010-08-29 Kenichi Handa <handa@m17n.org>
856
857 * term.c (encode_terminal_code): Encode byte chars to the
858 correspnding bytes.
859
b72e0717
AS
8602010-08-17 Andreas Schwab <schwab@linux-m68k.org>
861
862 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA_LISP
863 instead of SAFE_ALLOCA.
864
3a7a9129
CY
8652010-08-17 Chong Yidong <cyd@stupidchicken.com>
866
867 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA
868 (Bug#6214).
869
983b8302
J
8702010-08-14 Jan Djärv <jan.h.d@swipnet.se>
871
872 * doc.c (Fsnarf_documentation): Set skip_file only if p[1] is S.
873
7d1b9df3
J
8742010-08-13 Jan Djärv <jan.h.d@swipnet.se>
875
876 * doc.c (Fsnarf_documentation): Initialize skip_file before
877 build-files test.
878
2294b255
PG
8792010-08-09 Peter O'Gorman <pogma@thewrittenword.com> (tiny change)
880
65b3d997
A
881 * s/hpux10-20.h (HAVE_TERMIOS, NO_TERMIO, ORDINARY_LINK):
882 New definitions.
2294b255
PG
883 (HAVE_TERMIO): Remove.
884
7a84eee5
KH
8852010-08-06 Kenichi Handa <handa@m17n.org>
886
887 * charset.c: Include <stdlib.h>
888 (struct charset_sort_data): New struct.
889 (charset_compare): New function.
c0943d3d 890 (Fsort_charsets): New function.
7a84eee5
KH
891 (syms_of_charset): Declare Fsort_charsets as a Lisp function.
892
893 * coding.c (decode_coding_iso_2022): Fix checking of dimension
894 number in CTEXT extended segment.
895
f5f6c0e0
JB
8962010-08-01 Juanma Barranquero <lekktu@gmail.com>
897
898 * w32fns.c (syms_of_w32fns) <x-max-tooltip-size>: Fix typo in docstring.
899 * xfns.c (syms_of_xfns) <x-max-tooltip-size>: Reflow docstring.
900
b756c005
JB
9012010-07-30 Juanma Barranquero <lekktu@gmail.com>
902
903 * fns.c (Fsubstring_no_properties, Fnthcdr, Ffeaturep)
904 (Fhash_table_size): Fix typos in docstrings.
905 (Fmake_hash_table): Doc fix.
906
b4f588fa
JB
9072010-07-28 Juanma Barranquero <lekktu@gmail.com>
908
909 * minibuf.c (syms_of_minibuf) <read-buffer-function>:
910 Doc fix (bug#5625).
911
9f8c08a7
KB
9122010-07-27 Ken Brown <kbrown@cornell.edu>
913
914 * dired.c (DIRENTRY_NONEMPTY) [cygwin]: Use d_ino instead of
915 the MSDOS definition.
916
a2a0d36b
CS
9172010-07-25 Christoph Scholtes <cschol2112@gmail.com>
918
919 * minibuf.c (Fread_buffer): Doc fix (bug#6528).
920
a77cfeaf
CS
9212010-07-22 Christoph Scholtes <cschol2112@gmail.com>
922
923 * window.c (Fwindow_height): Doc fix (bug#6518).
924
14fb5704
JB
9252010-07-21 Juanma Barranquero <lekktu@gmail.com>
926
927 * buffer.c (syms_of_buffer) <fringe-indicator-alist>: Doc fix.
928
499322ce
J
9292010-07-17 Jan Djärv <jan.h.d@swipnet.se>
930
931 * gtkutil.c (xg_event_is_for_menubar): Also check that event window
932 is related to the menu bar (Bug#6499).
933
b78f9767
J
9342010-07-14 Jan Djärv <jan.h.d@swipnet.se>
935
936 * xterm.h (x_menubar_window_to_frame): Second parameter is XEvent*.
937
938 * xterm.c (handle_one_xevent): Pass event to x_menubar_window_to_frame.
939
940 * xmenu.c (x_activate_menubar): Revert previous fix for Bug#6499,
941 i.e. don't put back ButtonRelease (Bug#6608).
942
943 * xfns.c (x_menubar_window_to_frame): Take XEvent as second parameter
944 instead of Window. Call xg_event_is_for_menubar when
945 USE_GTK (Bug#6499).
946
947 * gtkutil.h (xg_event_is_for_menubar): Declare.
948
949 * gtkutil.c (xg_event_is_for_menubar): New function (Bug#6499).
950
1f60c16a
EZ
9512010-07-14 Eli Zaretskii <eliz@gnu.org>
952
953 * w32fns.c (x_set_foreground_color): Fix setting the cursor color
954 when it's the same as the old foreground. (Bug#6609)
955
7c33a057
CY
9562010-07-10 Chong Yidong <cyd@stupidchicken.com>
957
958 * xfaces.c (realize_face): Garbage the frame if a face is removed
959 (Bug#6593).
960
9d70a3fc
AS
9612010-07-05 Andreas Schwab <schwab@linux-m68k.org>
962
963 * keyboard.c: Remove duplicate <setjmp.h>.
964 (read_key_sequence): Remove volatile qualifiers.
965
5a874e95
YM
9662010-07-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
967
968 * dispextern.h (FRINGE_HEIGHT_BITS): New define.
969 (struct glyph_row): New members left_fringe_offset and
970 right_fringe_offset.
971
972 * xterm.c (x_draw_fringe_bitmap): Don't clip bottom aligned bitmap
973 specially.
974 * w32term.c (w32_draw_fringe_bitmap): Likewise.
975 * nsterm.m (ns_draw_fringe_bitmap): Likewise.
976
977 * fringe.c (draw_fringe_bitmap_1): Don't clip bitmap here.
b762841f 978 Take account of bitmap offset.
5a874e95
YM
979 (draw_window_fringes): Take account of window vscroll.
980 (update_window_fringes): Likewise. Extend top-aligned top indicator
981 or bottom-aligned bottom indicator to adjacent rows if it doesn't fit
982 in one row. Don't set redraw_fringe_bitmaps_p outside row comparison.
983 Set left_fringe_offset and right_fringe_offset (Bug#5634, Bug#6325).
984
0682186e
JB
9852010-07-04 Juanma Barranquero <lekktu@gmail.com>
986
987 * w32fns.c (Qtooltip): Declare.
988 Suggested by Andy Moreton <andrewjmoreton@gmail.com>.
989
ad3e6f44
J
9902010-07-03 Jan Djärv <jan.h.d@swipnet.se>
991
992 * xmenu.c (x_activate_menubar): Send Press/Release for Gtk+ to avoid
993 grab on just Press (Bug#6499).
994
54ee7410
CY
9952010-07-02 Chong Yidong <cyd@stupidchicken.com>
996
997 * frame.c (Qtooltip): New var.
998 (delete_frame): Use it. Fix faulty if statement. Don't update
999 mode line for tooltip frames. Suggested by Martin Rudalics.
1000
1001 * xfns.c (x_create_tip_frame):
1002 * w32fns.c (x_create_tip_frame): Use it.
1003
3d8416fc
NA
10042010-06-30 Naohiro Aota <naota@elisp.net> (tiny change)
1005
1006 * xftfont.c (xftfont_open): Check font width one by one also when
1007 spacing is dual.
1008
1009 * ftfont.c (ftfont_open): Ditto.
1010
b1feb9b4
AS
10112010-06-26 Andreas Schwab <schwab@linux-m68k.org>
1012
1013 * alloc.c (Fmake_byte_code): Don't access undefined argument
1014 (Bug#6517).
1015
c7dd9743
CY
10162010-06-25 Chong Yidong <cyd@stupidchicken.com>
1017
1018 * xdisp.c (next_element_from_image): Ensure that after-strings are
1019 read the next time we hit handle_stop (Bug#1336).
1020
5721b4ed
AS
10212010-06-23 Andreas Schwab <schwab@linux-m68k.org>
1022
1023 * lread.c (read1): Signal error if #s is not followed by paren.
1024
277c5f18
CY
10252010-06-19 Chong Yidong <cyd@stupidchicken.com>
1026
52ab9bb2
CY
1027 * image.c (free_image): Mark frame as garbaged (Bug#6426).
1028
277c5f18
CY
1029 * keymap.c (Fdefine_key): Doc fix (Bug#6460).
1030
6fda6a0c
GM
10312010-06-15 Glenn Morris <rgm@gnu.org>
1032
1033 * editfns.c (Fbyte_to_string): Pacify compiler.
1034
e454a4a3
SM
10352010-06-09 Stefan Monnier <monnier@iro.umontreal.ca>
1036
1037 * dbusbind.c (xd_append_arg): Don't "make-unibyte" the string.
1038 Check `object's type before accessing its guts.
1039
657d4c0b
AS
10402010-06-08 Andreas Schwab <schwab@linux-m68k.org>
1041
1042 * minibuf.c (Fall_completions): Add more checks.
1043
9b27fd9f
JB
10442010-06-08 Juanma Barranquero <lekktu@gmail.com>
1045
1046 * minibuf.c (Fall_completions): Check COLLECTION's size (bug#6378).
1047
0eb7675e
AS
10482010-06-03 Andreas Schwab <schwab@linux-m68k.org>
1049
1050 * process.c (conv_lisp_to_sockaddr): Fix conversion of IPv4
f07b083d 1051 address. (Bug#6346)
0eb7675e 1052
78edd3b7
JB
10532010-06-03 Juanma Barranquero <lekktu@gmail.com>
1054
1055 * ccl.c (Fccl_program_p): Fix typo in docstring.
1056
1ab8293c
SM
10572010-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
1058
1059 * keymap.c (Fwhere_is_internal): Fix handling of remapping (in thread
1060 of bug#6305).
1061
5ca3929b
CY
10622010-05-27 Chong Yidong <cyd@stupidchicken.com>
1063
1064 * xdisp.c (redisplay_window): After redisplay, check if point is
1065 still valid before setting it (Bug#6177).
1066
f5b416d2 10672010-05-20 enami tsugutomo <tsugutomo.enami@jp.sony.com>
1068
1069 * s/netbsd.h: If terminfo is found, use it in preference to
1070 termcap. (Bug#6190) [Backport from trunk]
1071
aeb77d46
CY
10722010-05-20 Kevin Ryde <user42@zip.com.au>
1073
1074 * keyboard.c (Vlast_command, Vkeyboard_translate_table)
1075 (Voverriding_terminal_local_map, Vsystem_key_alist)
1076 (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
1077
c3bb441d
SM
10782010-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
1079
1080 * editfns.c (Fbyte_to_string): New function.
1081
754790b6
CY
10822010-05-18 Chong Yidong <cyd@stupidchicken.com>
1083
1084 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
1085 prevent stack overflow if number of arguments is too large
1086 (Bug#6214).
1087
c8670ded
EZ
10882010-05-11 Eli Zaretskii <eliz@gnu.org>
1089
1090 * makefile.w32-in ($(BLD)/w32fns.$(O)): Depend on $(SRC)/w32.h.
1091
1092 * w32fns.c: Include w32.h.
1093 (Fw32_shell_execute): Decode the error message before passing it
1094 to `error'. (Bug#6126)
1095
3ffd4615 10962010-05-11 Karel Klic <kklic@redhat.com>
c90ca7b7
KH
1097
1098 * ftfont.c: Fix incorrect parentheses of #if condition for
1099 definining M17N_FLT_USE_NEW_FEATURE.
1100
61a808e8
CY
11012010-05-07 Chong Yidong <cyd@stupidchicken.com>
1102
1103 * Version 23.2 released.
1104
5dcde606
AS
11052010-04-30 Andreas Schwab <schwab@linux-m68k.org>
1106
1107 * composite.c (autocmp_chars): Save point as marker before calling
1108 auto-composition-function (Bug#5984).
1109
1110 * lisp.h (restore_point_unwind): Add prototype.
1111
1112 * fileio.c (restore_point_unwind): Remove static attribute.
1113
c4170e32
KH
11142010-04-23 Kenichi Handa <handa@m17n.org>
1115
1116 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
1117 new feature of libotf and m17n-flt.
65b3d997
A
1118 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
1119 Call OTF_check_features even if no specific feature is given.
c4170e32
KH
1120 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
1121 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
1122 that OUT is NULL. Use OTF_drive_gsub_with_log and
1123 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
1124 OTF_drive_gpos.
1125 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
65b3d997
A
1126 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
1127 Setup mflt_enable_new_feature and mflt_try_otf.
c4170e32 1128
e42cd1a7
JB
11292010-04-19 Juanma Barranquero <lekktu@gmail.com>
1130
1131 * dired.c (Ffile_attributes): Fix typo in docstring.
1132
79353a53
AR
11332010-04-13 Adrian Robert <Adrian.B.Robert@gmail.com>
1134
1135 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
1136 NSInteger (Bug#5811).
1137
658b9b93
YM
11382010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1139
1140 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
1141 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
1142
16009a0e
YM
11432010-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1144
1145 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
1146
f016f225
JD
11472010-04-07 Jan Djärv <jan.h.d@swipnet.se>
1148
1149 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
1150 FRAME_LINE_TO_PIXEL_Y.
1151
1152 * xterm.c (x_set_window_size_1): Don't add border_width/height to
1153 pixelwidth/height.
1154
84257d93
CY
11552010-04-05 Chong Yidong <cyd@stupidchicken.com>
1156
1157 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
1158 terminal frames (Bug#5837).
1159
95b1abcf
CY
11602010-03-31 Chong Yidong <cyd@stupidchicken.com>
1161
1162 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
1163 * nsterm.h: Fix prototype.
1164
4a217bed
EZ
11652010-03-31 Eli Zaretskii <eliz@gnu.org>
1166
1167 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
1168 in this function. (Bug#5703)
1169
4f103e04
CY
11702010-03-31 Chong Yidong <cyd@stupidchicken.com>
1171
1172 * nsterm.h: Fix last change.
1173
a6d676d9
CY
11742010-03-30 Bernhard Herzog <bh@intevation.de> (tiny change)
1175
1176 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
1177
67fee863
JD
11782010-03-30 Jan Djärv <jan.h.d@swipnet.se>
1179
1180 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
1181 invisible (Bug#5766).
1182
9ae6e189
CY
11832010-03-29 Adrian Robert <adrian.b.robert@gmail.com>
1184
1185 * xdisp.c (x_consider_frame_title, update_window_cursor): Remove
1186 HAVE_NS conditionals.
194d44e7 1187 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
9ae6e189
CY
1188
1189 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
1190 filename for the title.
1191 (ns_set_doc_edited): Do nothing if the selected window is a
1192 minibuffer window.
1193
1194 * nsterm.h: Add prototypes for ns_set_name_as_filename and
1195 ns_set_doc_edited.
1196
1197 * nsterm.m: Remove unneeded prototype.
1198
25c72475
GM
11992010-03-28 Glenn Morris <rgm@gnu.org>
1200
1201 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
1202 in the DOC file. (Bug#5336)
1203
f79a01db
CY
12042010-03-24 Chong Yidong <cyd@stupidchicken.com>
1205
1206 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
1207
93318cbd
JD
12082010-03-20 Jan Djärv <jan.h.d@swipnet.se>
1209
1210 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
1211
1212 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
1213
1214 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
1215
ad13a3ee
YM
12162010-03-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1217
1218 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
1219 XLoadQueryFont.
1220
fbdc1721
KH
12212010-03-16 Kenichi Handa <handa@m17n.org>
1222
1223 * coding.c (decode_coding_ccl): Fix previous change for the
1224 multibyte case.
fb608df3
KH
1225 (encode_coding_ccl): Don't setup ccl program here. Fix for the
1226 case that the output buffer is fullfilled.
1227 (encode_coding): Setup ccl program here.
fbdc1721 1228
35cd7cd6
CY
12292010-03-15 Andreas Politz <politza@fh-trier.de> (tiny change)
1230
1231 * editfns.c (Fformat): Account for string precision when computing
1232 field width (Bug#5710).
1233
618db430
SM
12342010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
1235
c0335e02
SM
1236 Make it possible to C-g in a tight bytecode loop again (bug#5680).
1237 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
1238 (QUIT): Use it to consolidate code and remove redundancy.
1239 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
1240
254c06a8
SM
1241 * regex.c (regex_compile): Setup gl_state as well.
1242
618db430
SM
1243 * syntax.c (skip_chars): Setup gl_state (bug#3823).
1244 (in_classes): Use CONSP before XCAR/XCDR.
1245
233f0c9f
CY
12462010-03-03 Chong Yidong <cyd@stupidchicken.com>
1247
1248 * keymap.c (Fwhere_is_internal): Use Fequal to compare
1249 definitions, so that keyboard macros are correctly handled
1250 (Bug#5481).
1251
75f80e63
EZ
12522010-03-02 Eli Zaretskii <eliz@gnu.org>
1253
1254 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
1255 text that could be relocated inside the call to emacs_mule_char.
1256 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
1257 (CODING_DECODE_CHAR): Add a comment describing its purpose.
1258
dcfb9bc4
KH
12592010-03-02 Kenichi Handa <handa@m17n.org>
1260
fc9a17bc
KH
1261 * character.c (parse_str_as_multibyte): Fix handling of the
1262 multibyte form of raw-bytes.
1263 (str_as_multibyte): Likewise.
1264
dcfb9bc4
KH
1265 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
1266 form of raw-bytes.
1267
412c01b6
CY
12682010-02-28 Chong Yidong <cyd@stupidchicken.com>
1269
1270 * charset.c (load_charset_map_from_file)
1271 (load_charset_map_from_vector): Zero out allocated
1272 charset_map_entries before using them.
1273
df7e1ea0
AS
12742010-02-27 Andreas Schwab <schwab@linux-m68k.org>
1275
1276 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
1277
fe69a722
CY
12782010-02-27 Chong Yidong <cyd@stupidchicken.com>
1279
4ed28cf4
CY
1280 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
1281 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
fe69a722 1282
7379cfce
KH
12832010-02-26 Kenichi Handa <handa@m17n.org>
1284
f88cc4d6
KH
1285 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
1286
7379cfce
KH
1287 * xdisp.c (reseat_to_string): Fix previous change.
1288
cf2fdcfb
CY
12892010-02-26 David Reitter <david.reitter@gmail.com>
1290
1291 * nsfont.m (nsfont_draw): ns_antialias_text should be a
1292 Lisp_Object (Bug#4736).
1293
cc6c7c75
KH
12942010-02-25 Kenichi Handa <handa@m17n.org>
1295
1296 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
1297
32e737d7
JD
12982010-02-24 Jan Djärv <jan.h.d@swipnet.se>
1299
1300 * xterm.c (XTflash): Move declarations before statements.
1301
1302 * gtkutil.c (xg_get_gdk_display): Remove (unused).
1303 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
1304 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
1305 (xg_create_tool_bar): Remove unused variables.
1306 (x_wm_set_size_hint): Move declarations before statements.
a73f9c9d 1307 (xg_create_frame_widgets): Remove variable grav.
32e737d7 1308
676cae9f
CY
13092010-02-21 Chong Yidong <cyd@stupidchicken.com>
1310
1311 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
1312
886cc2b8
SM
13132010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
1314
1315 * term.c (fatal): Add a final \n if needed (bug#5596).
1316
ddb2d8e2
CY
13172010-02-18 Chong Yidong <cyd@stupidchicken.com>
1318
1319 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
1320
2a4f8d3d
GM
13212010-02-18 Glenn Morris <rgm@gnu.org>
1322
1323 * callint.c (Finteractive): Doc fix.
1324
ebaf11b6
KH
13252010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
1326
886cc2b8
SM
1327 * coding.c (record_conversion_result):
1328 Handle CODING_RESULT_INSUFFICIENT_DST.
ebaf11b6
KH
1329 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
1330 memory allocation error.
1331
d0396581
KH
13322010-02-17 Kenichi Handa <handa@m17n.org>
1333
886cc2b8
SM
1334 * coding.c (decode_coding_ccl): Don't setup ccl program here.
1335 Fix for the case that the output buffer is fullfilled.
d0396581
KH
1336 (decode_coding): Setup ccl program here. Keep looping when the
1337 decoder stopped because the output buffer is
1338 fullfilled (bug#5534).
1339
1340 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
1341
98599f74
JD
13422010-02-13 Jan Djärv <jan.h.d@swipnet.se>
1343
471e4f04 1344 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
98599f74 1345 bug #5571.
886cc2b8 1346 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
471e4f04 1347 overdrawn.
98599f74 1348
182659ae
JD
13492010-02-10 Jan Djärv <jan.h.d@swipnet.se>
1350
1351 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
1352 doing_interact here.
1353 (ice_connection_closed): New function.
1354 (x_session_check_input, smc_die_CB, ice_io_error_handler)
1355 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
1356 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
1357 returns I/O error.
1358 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
1359 bug #5512.
1360
9be32c4e 13612010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
14a225f9
CY
1362
1363 * nsfont.m (nsfont_open): The system's value for the font descent
1364 is negative, so round it down to avoid clipping.
1365
a2f3eb19
CY
13662010-02-06 Chong Yidong <cyd@stupidchicken.com>
1367
1368 * charset.c (load_charset_map_from_file)
1369 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
953d248c 1370 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
a2f3eb19 1371
3088147c
CY
13722010-02-05 Chong Yidong <cyd@stupidchicken.com>
1373
1374 * charset.c (load_charset_map_from_file): Allocate large
1375 charset_map_entries structure on the heap rather than the stack.
1376 (Bug#5526).
1377
b57d9029
KH
13782010-01-31 Kenichi Handa <handa@m17n.org>
1379
1380 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
115e4fd3 1381 size in NAME is invalid, return -1 (Bug#5396).
b57d9029 1382
c67d885b
CY
13832010-01-31 Chong Yidong <cyd@stupidchicken.com>
1384
1385 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
1386 <deactivated@gmail.com> (Bug#3605).
1387
8fab2362
CY
13882010-01-31 David De La Harpe Golden <david@harpegolden.net>
1389
1390 * fileio.c (Frename_file): Correctly rename symlinks to
1391 directories (Bug#5496).
1392
cb2a62f2
CY
13932010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
1394
1395 * nsterm.m (ns_ring_bell): Handle visible bell like X.
1396
944c7a26
AS
13972010-01-30 Andreas Schwab <schwab@linux-m68k.org>
1398
1399 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
1400
c024ac08
CY
14012010-01-29 Chong Yidong <cyd@stupidchicken.com>
1402
1403 * frame.c (DEFAULT_ROWS): Change default to 35.
1404
1405 * xfns.c (x_default_font_parameter): Change default XFT font to
1406 monospace-10 (Bug#3643).
1407
af93af83
EZ
14082010-01-29 Eli Zaretskii <eliz@gnu.org>
1409
1410 * w32inevt.c (key_event): Remove unnecessary comparison of
1411 event->uChar.AsciiChar with 128.
1412
ca0eb708
CY
14132010-01-28 Chong Yidong <cyd@stupidchicken.com>
1414
b242dbfc
CY
1415 * fileio.c (Frename_file): Fix last change (Bug#5487).
1416
ca0eb708
CY
1417 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
1418
1419 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
1420
45d45af5
JD
14212010-01-28 Jan Djärv <jan.h.d@swipnet.se>
1422
1423 * xfns.c (Fx_create_frame): Remove window size matching code from
1424 2010-01-15.
a73f9c9d 1425 (x_get_current_desktop, x_get_desktop_workarea): Remove.
45d45af5 1426
7e233730
JR
14272010-01-27 Jason Rumney <jasonr@gnu.org>
1428
1429 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
a292592c 1430 (key_event): Use unicode for characters 128 and higher (Bug#4567).
7e233730 1431
86e893e3
KH
14322010-01-27 Kenichi Handa <handa@m17n.org>
1433
1434 * regex.c (analyse_first): Fix setting of fastmap for unibyte
c8b96b2a 1435 pattern string (Bug#4209).
86e893e3 1436
8719abec
CY
14372010-01-27 David De La Harpe Golden <david@harpegolden.net>
1438
1439 * fileio.c (Frename_file): Call copy-directory and
1440 delete-directory for directories, in order to handle cross-device
1441 renaming (Bug#3353).
1442
844794c8
JD
14432010-01-25 Jan Djärv <jan.h.d@swipnet.se>
1444
aa3e13b5 1445 * xfns.c (Fx_create_frame): If frame height is too big, try
ac146f82 1446 sizes 24 and 10. Bug #3643.
844794c8 1447
bd4b5750
SM
14482010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
1449
8dc1adf6 1450 Try and fix bug#788, hopefully for real this time.
bd4b5750
SM
1451 * keymap.c (shadow_lookup): Add `remap' arg.
1452 (describe_map, describe_vector): Update calls to shadow_lookup.
1453 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
1454 `remapped' so this flag is applicable to `sequence'. Be careful to
8dc1adf6
SM
1455 perform remapping during shadow_lookup check of remapped_sequences.
1456
285d07e2
CY
14572010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
1458
1459 * image.c (png_load): Use png_sig_cmp instead of the obsolete
1460 png_check_sig, which has been removed in libpng 1.4.
1461
c6d09b8d
CY
14622010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
1463
1464 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
1465 lacks this header file).
1466
3d782998
YM
14672010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1468
1469 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
1470 as in Emacs 22.
1471
2aff7c53
YM
14722010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1473
1474 * lisp.h (make_pure_string): String pointer arg now points to const.
1475
1476 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
1477 args now point to const.
1478
74327f7a
EZ
14792010-01-22 Eli Zaretskii <eliz@gnu.org>
1480
1481 * lread.c (Fload): Don't treat files without .elc extension as
1482 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
1483 them. (bug#5303)
1484
4d1e6632
KH
14852010-01-20 Kenichi Handa <handa@m17n.org>
1486
1487 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
1488 treat the source as actual byte sequence.
1489
1fdede8f
AM
14902010-01-19 Alan Mackenzie <acm@muc.de>
1491
1492 Fix spurious before-change-functions invocation from (insert ?\n).
194d44e7 1493 * textprop.c (set_text_properties): Rename parameter
1fdede8f
AM
1494 `signal_after_change_p' to `coherent_change_p', and make the
1495 invocation of `modify_region' conditional on it.
1496
67477f30
JD
14972010-01-19 Jan Djärv <jan.h.d@swipnet.se>
1498
1499 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
1500 for debug purpose.
1501 (syms_of_xsettings): Declare xft-settings.
1502
244b023e
CY
15032010-01-18 Chong Yidong <cyd@stupidchicken.com>
1504
1505 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
1506
617364fe
CY
15072010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
1508
1509 * xterm.c (event_handler_gdk): Block input (Bug#5037).
1510
4fe22cdf
CY
15112010-01-16 Chong Yidong <cyd@stupidchicken.com>
1512
1513 * emacs.c (standard_args): Adjust arg priorities to reflect how
1514 they are processed in startup.el.
1515
e118d2be
AS
15162010-01-16 Andreas Schwab <schwab@linux-m68k.org>
1517
1518 * Makefile.in (lisp, shortlisp): Update.
1519
523ae620
SM
15202010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
1521
1522 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
1523 code, link the new kboard into all_kboard before running Lisp code,
1524 and protect the new terminal with GCPRO (Bug#5365).
1525 (x_term_init): Remove unused var `atom'.
1526 (x_delete_display, x_delete_terminal): Remove unused var `i'.
1527
f0d13888
JD
15282010-01-15 Jan Djärv <jan.h.d@swipnet.se>
1529
1530 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
1531 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
1532 to find out usable size of the desktop. Don't make frames larger than
ac146f82 1533 this. Bug #3643.
f0d13888 1534
cc320f07
KH
15352010-01-15 Kenichi Handa <handa@m17n.org>
1536
1537 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
1538
7ffdf101
CY
15392010-01-15 Chong Yidong <cyd@stupidchicken.com>
1540
1541 * nsterm.m (Qnone): Define.
1542
1543 * nsfns.m (Qnone): Move definition to nsterm.m.
1544
d12bd917
KH
15452010-01-14 Kenichi Handa <handa@m17n.org>
1546
1547 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
1548 systems.
1549
d9a7c140
KH
15502010-01-14 Kenichi Handa <handa@m17n.org>
1551
1552 Make auto-composition work on all buffers even if they are
1553 fundamental mode.
1554
1555 * composite.c (Vauto_composition_mode): New variable.
1556 (composition_compute_stop_pos): Check Vauto_composition_mode
1557 instead of Vauto_composition_function.
1558 (composition_adjust_point, Ffind_composition_internal): Likewise.
1559 (syms_of_composite): Declare Lisp variable
1560 "auto-composition-mode" here.
1561
63286bb2
CY
15622010-01-13 Chong Yidong <cyd@stupidchicken.com>
1563
1564 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
1565 during call to vendor-specific-keysyms (Bug#5365).
1566
c2623ee7
YM
15672010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1568
1569 * keyboard.c (input_available_signal) [SYNC_INPUT]:
1570 Call SIGNAL_THREAD_CHECK (Bug#5333).
1571
1572 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
1573 Call SIGNAL_THREAD_CHECK.
1574
0b5397c2
SM
15752010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
1576
1577 Try to fix bug#5314. This is probably not the final word, tho.
1578 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
1579 recent-auto-save-p as a side-effect.
1580 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
1581 * buffer.c (Fkill_buffer, reset_buffer):
1582 * editfns.c (Fsubst_char_in_region):
1583 * fileio.c (Finsert_file_contents, Fdo_auto_save)
1584 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
1585
dc954cb2
KH
15862010-01-13 Kenichi Handa <handa@m17n.org>
1587
1588 Display buffer name, etc. in mode line by composing correctly.
1589
1590 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
1591 STRING is not nil.
0b5397c2 1592 (display_mode_element): Adjust for the change of
dc954cb2
KH
1593 decode_mode_spec and display_line.
1594 (decode_mode_spec): Change arg MULTIBYTE to STRING.
1595 (display_string): Handle the case that STRING is non-null and
1596 LISP_STRING is not nil.
1597
0b5397c2
SM
1598 * xterm.c (x_draw_composite_glyph_string_foreground):
1599 Pay attention to s->face->overstrike.
dc954cb2
KH
1600
1601 * composite.c (composition_reseat_it): Don't check PT if STRING is
1602 non nil.
1603
4a00eaca
YM
16042010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1605
1606 * keyboard.c (read_char): Don't apply previous change when current
1607 buffer is unchanged by command execution.
1608
60abb287
JD
16092010-01-12 Jan Djärv <jan.h.d@swipnet.se>
1610
1611 * keyboard.c (read_char): Return after executing from special map.
1612
893db5bc
GM
16132010-01-12 Glenn Morris <rgm@gnu.org>
1614
1615 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
1616 bug-gnu-emacs rather than emacs-pretest-bug.
1617
4d03ece0
CY
16182010-01-11 Chong Yidong <cyd@stupidchicken.com>
1619
1620 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
1621 initializing the Lisp variables that depend on them.
1622
1df47e38
YM
16232010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1624
1625 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
1626 Clear areas that will not be updated after change of menu bar lines.
1627 Clear the menu bar window's current matrix when the window gets empty.
1628
2f1c6384
CY
16292010-01-09 Chong Yidong <cyd@stupidchicken.com>
1630
e398c61c
CY
1631 * intervals.h, textprop.c (extend_property_ranges): Return value
1632 and args changed. Discard properties that begin at or after the
1633 new end (Bug#5306).
1634
1635 * editfns.c (Fformat): Caller changed.
1636
e5a29a10
CY
1637 * nsterm.m (ns_set_default_prefs): Delete function.
1638 (syms_of_nsterm): Initialize ns_command_modifier,
1639 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
1640 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
1641
2f1c6384
CY
1642 * xdisp.c (pos_visible_p): Check for invisible text at the correct
1643 position (Bug#4040).
1644
d427a9fa
EZ
16452010-01-09 Eli Zaretskii <eliz@gnu.org>
1646
1647 * editfns.c (Ffloat_time): Doc fix.
1648
21b9df2f
JD
16492010-01-09 Jan Djärv <jan.h.d@swipnet.se>
1650
1651 * xfns.c (Fx_create_frame): Don't create frame larger than display
1652 by default bug#3643.
1653
4b00d3b1
YM
16542010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1655
1656 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
1657 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
1658 windows above internal border.
1659
1660 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
1661 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
1662 windows above internal border.
1663
1664 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
1665 tool bar windows specially.
1666
1667 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
1668
1669 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
1670 specially.
1671 (XTflash): Take account of menu bar height.
1672
1673 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
1674 specially.
1675
5075d853
JD
16762010-01-08 Jan Djärv <jan.h.d@swipnet.se>
1677
ac146f82 1678 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
5075d853
JD
1679 also be true before we can return early (bug #5339).
1680
474217c8
CY
16812010-01-06 David Reitter <david.reitter@gmail.com>
1682
1683 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
1684 (Fns_display_usable_bounds): Rewrite, computing bounds properly
1685 (Bug#3233).
1686
c0e6d47d
JD
16872010-01-06 Jan Djärv <jan.h.d@swipnet.se>
1688
d0cf45b7
JD
1689 * font.c (font_open_entity): Enable chache and call cached_font_ok
1690 for the driver if defined.
1691 (QCuser_spec): New symbol.
1692 (font_spec_from_name): Save name as user-spec.
1693 (font_load_for_lface): Keep user-spec instead of name.
1694 (font_open_by_name): Save name as user-spec.
1695 (syms_of_font): Initialize QCuser_spec.
b7f8e4f5 1696 (font_clear_prop): Clear name if it exists in font (bug#5157).
d0cf45b7
JD
1697
1698 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
1699 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
1700 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
1701
1702 * font.h (struct font_driver): Add cached_font_ok.
1703
c0e6d47d
JD
1704 * xterm.c (x_clear_frame): Queue draw for scroll bars.
1705
7c583cd8
JD
17062010-01-05 Jan Djärv <jan.h.d@swipnet.se>
1707
1708 * xterm.c (x_new_font): Move code for setting rows/cols before
1709 resizing ...
ac146f82 1710 (x_set_window_size): ... to here. Bug #2568.
7c583cd8
JD
1711
1712 * gtkutil.c (xg_clear_under_internal_border): New function.
0b5397c2
SM
1713 (xg_frame_resized, xg_frame_set_char_size):
1714 Call xg_clear_under_internal_border.
7c583cd8 1715 (xg_update_scrollbar_pos): Clear under old scroll bar position.
69e2f185 1716
03f77f0a
CY
17172010-01-05 Chong Yidong <cyd@stupidchicken.com>
1718
1719 * keyboard.c (read_key_sequence): Catch keyboard switch after
1720 making a new tty frame (Bug#5095).
1721
2a1ef5be
KH
17222010-01-05 Kenichi Handa <handa@m17n.org>
1723
1724 * fontset.c (fontset_find_font): Fix getting the frame pointer.
1725
e3eb1dae
SM
17262010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
1727
1728 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
1729 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
1730 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
1731
777013f2
MA
17322010-01-03 Michael Albinus <michael.albinus@gmx.de>
1733
1734 * dbusbind.c (xd_add_watch): Improve debug message.
1735 (xd_remove_watch): Improve debug message. If DATA is the session
1736 bus, unset D-Bus session environment.
1737 (Fdbus_init_bus): Pass the bus as argument to
1738 dbus_connection_set_watch_functions. (Bug#5283)
7c583cd8 1739
8932b1c2
CY
17402010-01-01 Chong Yidong <cyd@stupidchicken.com>
1741
87231e2c
CY
1742 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
1743
4801c5fa
CY
1744 * lread.c (syms_of_lread): Make it clearer that these are the
1745 names of loaded files (Bug#5068).
1746
8932b1c2
CY
1747 * eval.c (run_hook_with_args): Handle the case where the global
1748 value has the obsolete single-function form (Bug#5026).
1749
11e3c684
CY
17502009-12-27 Chong Yidong <cyd@stupidchicken.com>
1751
1752 * minibuf.c (Fall_completions): Minor optimization.
1753
5b28ce35
EZ
17542009-12-26 Eli Zaretskii <eliz@gnu.org>
1755
5ce6e4f4
JB
1756 * .gdbinit (pgx): Fix display of composite glyphs.
1757 Display cmp.from and cmp.to as well.
1758 (pitx): Fix last change.
5b28ce35 1759
bcffff46
KH
17602009-12-25 Kenichi Handa <handa@m17n.org>
1761
1762 * composite.h (composition_adjust_point): Update prototype.
1763
1764 * composite.c (composition_reseat_it): Don't make a composition
1765 spanning over point.
1766 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
1767 composable characters.
1768 (composition_adjust_point): New arg NEW_PT. Callers changed.
1769
1770 * keyboard.c (command_loop_1): Force redisplay if the last point
1771 was within a composition.
1772 (adjust_point_for_property): Don't adjust point for automatic
1773 composition when called after buffer modification.
1774
3f670e9a
EZ
17752009-12-19 Eli Zaretskii <eliz@gnu.org>
1776
5ce6e4f4
JB
1777 * .gdbinit (pitx): Don't use enum names, use their values.
1778 Remove reference to non-existing value GET_FROM_COMPOSITION.
be996d82
EZ
1779 (pgx): Don't use enum names, use their values.
1780 (pitmethod): New helper command.
1781 (pitx): Use it to display iteration method.
1782 (pgrowit): New command.
1783
ad903955
EZ
1784 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
1785
3f670e9a
EZ
1786 Update dependencies in Makefile.in.
1787
1788 * Makefile.in (alloc.o): Depend on termhooks.h.
1789 (atimer.o): Depend on blockinput.h.
1790 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
1791 and frame.h.
1792 (callint.o): Depend on systime.h, coding.h, and composite.h.
1793 (callproc.o): Depend on buffer.h.
1794 (casefiddle.o): Don't depend on charset.h.
1795 (casetab.o): Depend on character.h.
1796 (ccl.o): Depend on composite.h.
1797 (chartab.o): Depend on ccl.h.
1798 (cm.o): Depend on dispextern.h.
1799 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
1800 (coding.o): Don't depend on $(INTERVALS_H).
1801 (composite.o): Don't depend on dispextern.h explicitly (it's in
1802 $(INTERVALS_H)). Depend on ccl.h.
1803 (data.o): Depend on systime.h, coding.h, composite.h,
1804 dispextern.h, font.h, and ccl.h.
1805 (dired.o): Depend on composite.h.
1806 (dispnew.o): Depend on coding.h. Don't depend explicitly on
1807 composite.h (it's in $(INTERVALS_H)).
1808 (doc.o): Depend on systime.h, coding.h, and composite.h.
1809 (editfns.o): Don't depend explicitly on dispextern.h.
1810 (emacs.o): Depend on frame.h and coding.h.
1811 (eval.o): Depend on coding.h, composite.h, and xterm.h.
1812 (fileio.o): Depend on frame.h and commands.h. Don't depend
1813 explicitly on dispextern.h.
1814 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
1815 composite.h.
1816 (fns.o): Don't depend on termhooks.h.
1817 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
1818 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
1819 coding.h, $(INTERVALS_H), window.h, xterm.h.
1820 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
1821 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
1822 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
1823 fontset.h, ccl.h, and ftfont.h.
1824 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
1825 (gtkutil.o): Depend on dispextern.h and composite.h.
1826 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
1827 termhooks.h, and ccl.h.
1828 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
1829 (intervals.o): Depend on systime.h and coding.h.
1830 (keyboard.o): Depend on composite.h and coding.h.
1831 (keymap.o): Depend on coding.h and frame.h.
1832 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
1833 (macros.o): Depend on systime.h, coding.h, and composite.h.
1834 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
1835 and atimer.h.
1836 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
1837 dispextern.h explicitly.
0b5397c2
SM
1838 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
1839 Don't depend explicitly on dispextern.h and composite.h.
3f670e9a
EZ
1840 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
1841 (regex.o): Don't depend on charset.h.
1842 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
1843 (search.o): Don't depend explicitly on composite.h.
1844 (sound.o): Depend on atimer.h and systime.h.
1845 (syntax.o): Don't depend explicitly on composite.h.
1846 (sysdep.o): Depend on coding.h and composite.h.
1847 (term.o): Depend on xterm.h and buffer.h.
1848 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
1849 (textprop.o): Don't depend on dispextern.h explicitly.
1850 (undo.o): Depend on dispextern.h.
1851 (window.o): Depend on coding.h and termhooks.h. Don't depend on
1852 dispextern.h and composite.h explicitly.
1853 (xdisp.o): Depend on ccl.h.
1854 (xfaces.o): Depend on coding.h and ccl.h.
1855 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
1856 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
1857 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
1858 ftfont.h.
1859 (xgselect.o): New dependency.
1860 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
1861 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
1862 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
1863 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
1864 (xsmfns.o): Depend on frame.h and dispextern.h.
1865 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
1866 sysselect.h.
1867
7a6f7fea
AS
18682009-12-19 Andreas Schwab <schwab@linux-m68k.org>
1869
1870 * font.c (Fclear_font_cache): Pass correct cache argument to
1871 font_clear_cache.
1872
f4c21026
AS
18732009-12-16 Andreas Schwab <schwab@linux-m68k.org>
1874
1875 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
1876 twice.
1877
f7ab0997
CY
18782009-12-15 Chong Yidong <cyd@stupidchicken.com>
1879
1880 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
1881 calling file-remote-p. Reported by Jim Meyering.
1882
fa8e045a
MA
18832009-12-15 Michael Albinus <michael.albinus@gmx.de>
1884
1885 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
777013f2 1886 avoid compiler warnings. (Bug #5217)
fa8e045a 1887
a63dba42
KH
18882009-12-14 Kenichi Handa <handa@m17n.org>
1889
1890 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
1891 in 8-bit encoding.
1892
5ce6e4f4 18932009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
36acb2a7
JD
1894
1895 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
1896 tooltip windows.
1897
223e5fc6
JD
18982009-12-13 Jan Djärv <jan.h.d@swipnet.se>
1899
36acb2a7
JD
1900 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
1901 Xatom_net_window_type.
1902
1903 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
1904 Xatom_net_window_type.
1905
b8f00677
JD
1906 * xterm.c (my_log_handler): New function.
1907 (x_term_init): Set my_log_handler as log handler during gtk_init
5ce6e4f4 1908 so we can filter out buggy messages. (Bug #5120).
b8f00677 1909
e5f0bc9a
JD
1910 * xterm.c (xg_scroll_callback): Parameter list changed,
1911 use parameter GtkScrollType to determine scroll/line/page.
1912 Only allow dragging if a button < 4 is grabbed (bug #5177).
1913 (xg_end_scroll_callback): New function.
1914 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
1915 xg_create_scroll_bar.
1916
1917 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
1918 (scroll_end_callback): Remove.
1919 (xg_create_scroll_bar): Add parameter end_callback, bind it to
1920 button-release-event. Replace value-changed event with change-value,
1921 bug #5177,
1922 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
1923 bug #5177.
1924
1925 * gtkutil.h (XG_LAST_SB_DATA): Remove.
1926 (xg_create_scroll_bar): Add GCallback end_callback.
1927
223e5fc6
JD
1928 * xftfont.c (QClcdfilter): New variable.
1929 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
1930 (syms_of_xftfont): Initialize QClcdfilter.
1931
3c055b77
JD
19322009-12-12 Jan Djärv <jan.h.d@swipnet.se>
1933
1934 * xsettings.c (struct xsettings): Add member seen.
1935 (parse_xft_settings): Update member seen with what we have read.
ba68c0b0 1936 Return non-zero if Xft-settings have been parsed, 0 otherwise.
3c055b77
JD
1937 (apply_xft_settings): Only update Xft settings with what member seen
1938 indicates as new.
1939
05fe33ff
EZ
19402009-12-12 Eli Zaretskii <eliz@gnu.org>
1941
1942 * dispextern.h (struct text_pos): Use EMACS_INT;
1943 (struct glyph): Use EMACS_INT for charpos.
1944 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
1945 region_beg_charpos, region_end_charpos,
1946 redisplay_end_trigger_charpos, and also for
1947 iterator_stack_entry.end_charpos and
1948 iterator_stack_entry.stop_charpos.
1949
e8d7886a
JD
19502009-12-12 Jan Djärv <jan.h.d@swipnet.se>
1951
5ce6e4f4 1952 * gtkutil.c (scroll_end_callback): New function (bug #5177).
e8d7886a
JD
1953 (xg_create_scroll_bar): Call scroll_end_callback on button release
1954 event (bug #5177).
1955 (xg_event_is_for_scrollbar): != replaced with ==.
1956
d0db2ec8
KH
19572009-12-12 Kenichi Handa <handa@m17n.org>
1958
1959 * ftfont.c (struct ftfont_info): New member matrix.
1960 (ftfont_open): Setup xftfont_info->matrix.
1961 (MFLTFontFT): New member matrix.
1962 (FLOOR, CEIL, ROUND): New macros.
1963 (ftfont_get_metrics): Handle matrix transformation.
1964 (ftfont_shape_by_flt): New arg matrix. Callers changed.
1965
1966 * xftfont.c (struct xftfont_info): New member matrix.
1967 (xftfont_open): Setup xftfont_info->matrix.
1968
19692009-12-10 Kenichi Handa <handa@m17n.org>
1970
1971 * xdisp.c (append_space_for_newline): Consider face-remapping.
1972
2cc7b62f
AS
19732009-12-09 Andreas Schwab <schwab@linux-m68k.org>
1974
b87dd913
AS
1975 * xsettings.c: Include "keyboard.h".
1976
eba5eb94
AS
1977 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
1978
2cc7b62f
AS
1979 Fix implicit function declarations.
1980 * cmds.c: Include "frame.h".
1981 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
1982 * frame.h: Move declaration of delete_frame outside of
1983 HAVE_WINDOW_SYSTEM.
1984
a4ef73c8
CY
19852009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
1986
1987 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
1988
1989 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
1990 GTK builds.
1991
944a300c
AS
19922009-12-07 Andreas Schwab <schwab@linux-m68k.org>
1993
1994 * unexelf.c (unexec): Don't search for .data twice.
1995
022eef62
CY
19962009-12-05 Chong Yidong <cyd@stupidchicken.com>
1997
426ac949
CY
1998 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
1999 if push failed.
2000 (handle_line_prefix): Set avoid_cursor_p here. Check return value
2001 of push_display_prop (Bug#5000).
2002
022eef62
CY
2003 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
2004 value of font_list_entities (Bug#5085).
2005
be95bee9
JB
20062009-12-04 Juanma Barranquero <lekktu@gmail.com>
2007
2008 Fix `string-to-number' to deal consistently with integers and floats.
2009 * lread.c (isfloat_string): New argument ignore_trailing to accept all
2010 trailing characters, not just whitespace.
2011 (read1): Pass new arg 0 to keep old behavior.
2012 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
2013 trailing chars, as it is already done for integers. Doc fixes.
2014 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
2015
24c2d7ce
EZ
20162009-12-04 Eli Zaretskii <eliz@gnu.org>
2017
0b5397c2
SM
2018 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
2019 Delete unused enumeration value.
24c2d7ce 2020
7e694795
EZ
20212009-12-03 Eli Zaretskii <eliz@gnu.org>
2022
2023 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
2024
84b31826
SM
20252009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
2026
2027 * process.c (Fmake_network_process): Fix up the tests for
2028 "connectionless socket", so they DTRT for seqpacket sockets as well.
2029
f00c449b
SM
20302009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
2031
2032 * process.c (Qseqpacket): New symbol.
2033 (HAVE_SEQPACKET): New macro.
2034 (Fmake_network_process): Accept new :type `seqpacket'.
2035 (init_process): Add `seqpacket' feature when applicable.
2036 (syms_of_process): Initialize Qseqpacket.
2037
8096a0ff
YM
20382009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2039
2040 * font.c (font_load_for_lface, font_open_by_name): Don't store name
2041 if entity is Qnil.
2042
3e0de07f
SM
20432009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
2044
2045 * print.c (print_preprocess): Preprocess the key_and_value table of
2046 hashtables, even tho they're "hidden" (bug#5082).
2047
abeafb2a
JD
20482009-11-29 Jan Djärv <jan.h.d@swipnet.se>
2049
2050 * frame.c (frame_make_pointer_invisible)
2051 (frame_make_pointer_visible): Declare f before statements.
2052
4bf47195
EZ
20532009-11-28 Eli Zaretskii <eliz@gnu.org>
2054
2055 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
2056 omitted dependencies on lisp.h.
2057
c525b3f2
JD
20582009-11-27 Jan Djärv <jan.h.d@swipnet.se>
2059
ece2d4ed
JD
2060 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
2061 is NULL.
2062
2063 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
2064
2065 * frame.c (frame_make_pointer_invisible)
3e0de07f 2066 (frame_make_pointer_visible): Just return if there isn't any selected
ece2d4ed
JD
2067 frame.
2068
c525b3f2
JD
2069 * search.c (simple_search): Remove warning by making *p const.
2070
2f00e299
DN
20712009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
2072
2073 * xdisp.c (power_letter): Remove duplicate const.
2074
084b049b
JD
20752009-11-25 Jan Djärv <jan.h.d@swipnet.se>
2076
a1fadc6f
JD
2077 * term.c (delete_tty): Remove check for last terminal (bug#4970).
2078
5ce6e4f4 2079 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
084b049b
JD
2080 defaults (bug #5025).
2081
28259cac
SM
20822009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
2083
2084 * insdel.c (adjust_markers_for_delete): Move it in the
2085 right direction! (bug#4803)
2086
e8e14166
YM
20872009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2088
2089 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
2090
2091 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
2092
86677b58
GM
20932009-11-24 Glenn Morris <rgm@gnu.org>
2094
2095 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
2096
581e51e8
JD
20972009-11-23 Jan Djärv <jan.h.d@swipnet.se>
2098
cfc86c7a
JD
2099 * Makefile.in: Must create deps for ecrt0.o in its rule.
2100
581e51e8
JD
2101 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
2102 because that is what Gtk+ font dialog understands.
2103
2104 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
2105 of Fcopy_sequence.
2106 (font_open_by_name): Put name given into QCname for font-object returned.
2107
2108 * frame.c (x_set_font): Save original font name as frame parameter
2109 font-parameter.
2110
2111 * xsettings.c (set_default_xft_settings): New function.
2112 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
2113 is found.
2114
8b264ecb
AS
21152009-11-22 Andreas Schwab <schwab@linux-m68k.org>
2116
2117 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
2118 searching backwards through multibyte buffer.
2119
872870b2
JD
21202009-11-21 Jan Djärv <jan.h.d@swipnet.se>
2121
2122 * xterm.c: #include xgselect.h.
2123 (x_initialize): Call xgselect_initialize.
2124
2125 * xsettings.c (something_changedCB): C++ comments => C comments.
2126 (init_gconf): Do not deal with any GLib file descriptors, xg_select
2127 does that now.
2128
2129 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
2130 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
2131 (scroll_bar_button_cb): Remove.
5ce6e4f4 2132 (create_menus): C++ comments => C comments. Don't bind grab-notify
872870b2
JD
2133 event.
2134 (xg_create_scroll_bar): Don't bind button-press-event and
2135 button-release-event.
2136
2137 * process.c: Include xgselect.h if defined (USE_GTK) ||
2138 defined (HAVE_GCONF).
2139 (wait_reading_process_output): Call xg_select for the same condition.
2140
2141 * xgselect.c (xg_select): New function to better integrate with
2142 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
2143
2144 * xgselect.h: New file, declare xg_select, xgselect_initialize.
2145
2146 * Makefile.in (XOBJ): Add xgselect.o.
2147
62a6e103
AS
21482009-11-21 Andreas Schwab <schwab@linux-m68k.org>
2149
0b5397c2
SM
2150 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
2151 Remove ignored second argument. All callers changed.
62a6e103
AS
2152 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
2153 (RE_STRING_CHAR_AND_LENGTH): Likewise.
2154 * xdisp.c (string_char_and_length): Likewise.
2155
b0ca0f33
DN
21562009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
2157
2158 * xterm.c (x_new_font):
2159 * print.c (print_object):
2160 * cmds.c (Fself_insert_command): Move declarations before statements.
2161
dd5a6279
CY
21622009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
2163
2164 * s/cygwin.h: Remove unneeded linker flags.
2165
4a8e097d
JD
21662009-11-20 Jan Djärv <jan.h.d@swipnet.se>
2167
0d1d0d26
JD
2168 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
2169
2170 * xsettings.h: Declare xsettings_get_system_font.
2171
2172 * xsettings.c (xsettings_get_system_font): New function.
2173 (init_gconf): No use initiating gconf unless we have Xft also.
2174 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
2175 HAVE_GCONF.
2176
4a8e097d
JD
2177 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
2178 add a blank entry so it doesn't collapse into nothing.
2179
8ab1650e
SM
21802009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
2181
2182 * lread.c (Funintern): Comment out last change.
2183
82c602f0
RS
21842009-11-19 Richard Stallman <rms@gnu.org>
2185
2186 * lread.c (Funintern): Error if symbol is t or nil.
2187
87e32266
SM
21882009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
2189
2190 * insdel.c (make_gap_larger): Don't make as many assumptions about the
2191 representation of Lisp integers.
2192 Reported by MJ Chan <mjchan.inbox@gmail.com>.
2193
1b9ac145
AS
21942009-11-17 Andreas Schwab <schwab@linux-m68k.org>
2195
2196 * lisp.h: Remove declaration of Ffont_get_system_font.
2197 * xfns.c: Move include of "xsettings.h".
2198 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
2199
dfb3c4c6
JD
22002009-11-17 Jan Djärv <jan.h.d@swipnet.se>
2201
87e32266
SM
2202 * xsettings.c (something_changedCB, Ffont_get_system_font):
2203 Check use_system_font.
dfb3c4c6
JD
2204 (syms_of_xsettings): DEFVAR font-use-system-font.
2205
9370c1d8
AS
22062009-11-17 Andreas Schwab <schwab@linux-m68k.org>
2207
25fe851a
AS
2208 * xfns.c (x_default_font_parameter): Remove dead assignment.
2209
9370c1d8
AS
2210 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
2211
637fa988
JD
22122009-11-17 Jan Djärv <jan.h.d@swipnet.se>
2213
87e32266 2214 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
21050de1 2215 not have FC_LCD_*. #define them if not there.
a6eb20d8 2216
87e32266 2217 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
a6eb20d8 2218
637fa988
JD
2219 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
2220
2221 * xterm.c (handle_one_xevent): Call xft_settings_event for
2222 ClientMessage, PropertyNotify and DestroyNotify.
2223 (x_term_init): If we have XFT, get DPI from Xft.dpi.
2224 Call xsettings_initialize.
2225
2226 * xftfont.c (xftfont_fix_match): New function.
2227 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
2228 Call xftfont_fix_match after XftFontMatch.
2229
2230 * xfont.c (xfont_driver): Initialize all members.
2231
87e32266
SM
2232 * xfns.c (x_default_font_parameter):
2233 Try font from Ffont_get_system_font.
637fa988
JD
2234 Do not get font from x_default_parameter if we got one from
2235 Ffont_get_system_font.
87e32266 2236 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
637fa988
JD
2237
2238 * w32font.c (w32font_driver): Initialize all members.
2239
2240 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
2241
2242 * lisp.h: Declare syms_of_xsettings.
2243
87e32266
SM
2244 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
2245 Handle CONFIG_CHANGED_EVENT.
637fa988
JD
2246
2247 * ftfont.c (ftfont_filter_properties): New function.
2248
2249 * frame.c (x_set_font): Remove unused variable lval.
2250
87e32266 2251 * font.h (struct font_driver): Add filter_properties.
637fa988
JD
2252
2253 * font.c (font_put_extra): Don't return if val is nil, it means
2254 boolean option is off.
2255 (font_parse_fcname): Collect all extra properties in extra_props
2256 and call filter_properties for all drivers with extra_props and
2257 font as parameter.
87e32266
SM
2258 (font_open_entity): Do not use cache, it does not pick up new
2259 fontconfig settings like hinting.
637fa988
JD
2260 (font_load_for_lface): If spec had a name in it, store it in entity.
2261
a73f9c9d 2262 * emacs.c (main): Call syms_of_xsettings.
637fa988
JD
2263
2264 * config.in: HAVE_GCONF is new.
2265
2266 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
2267 xsettings.o is new.
2268
5a942932
KH
22692009-11-17 Kenichi Handa <handa@m17n.org>
2270
2271 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
2272 back to the default font in case that no suitable font is found.
2273
b7c7a4d1
SM
22742009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
2275
2276 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
2277 Suggested by Chad Brown <yandros@mit.edu>.
2278 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
2279
072f1e39
JD
22802009-11-16 Jan Djärv <jan.h.d@swipnet.se>
2281
2282 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
2283
5d1e70a2
AS
22842009-11-14 Andreas Schwab <schwab@linux-m68k.org>
2285
87e32266 2286 * Makefile.in: Ignore errors from mkdir when creating deps directory.
5d1e70a2 2287
a53cfbe5
JD
22882009-11-14 Jan Djärv <jan.h.d@swipnet.se>
2289
473a99b7
JD
2290 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
2291 has a parent.
2292
a53cfbe5 2293 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
5ce6e4f4 2294 dependency files in deps/. Include those files into Makefile.
a53cfbe5
JD
2295
2296 * config.in: Generated (AUTO_DEPEND).
2297
f04bb9b2
MA
22982009-11-13 Michael Albinus <michael.albinus@gmx.de>
2299
b7c7a4d1 2300 * dbusbind.c (Vdbus_registered_objects_table): Rename from
f04bb9b2
MA
2301 Vdbus_registered_functions_table, because it contains also
2302 properties. Fix docstring.
b7c7a4d1 2303 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
f04bb9b2 2304
8f11f7ec
SM
23052009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
2306
2307 * alloc.c (mark_object): Don't reprocess marked strings.
2308 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
2309 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
2310
8a605fe8
KH
23112009-11-13 Kenichi Handa <handa@m17n.org>
2312
8f11f7ec 2313 * category.c (word_boundary_p): Adjust for the change of the
8a605fe8
KH
2314 semantics of Vword_combining_categories.
2315 (Vword_combining_categories): Describe the slight change of the
2316 semantics.
2317
241c4680
EZ
23182009-11-13 Eli Zaretskii <eliz@gnu.org>
2319
2320 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
2321
2322 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
2323
5d58e44c
SM
23242009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
2325
2326 * xdisp.c (syms_of_xdisp): Fix typo in last change.
2327
5e13f9d3
JB
23282009-11-12 Juanma Barranquero <lekktu@gmail.com>
2329
2330 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
2331
cf54c754
DR
23322009-11-11 David Reitter <david.reitter@gmail.com>
2333
2334 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
2335 variables to fix 2009-11-09 change.
2336
a4ada374
DN
23372009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
2338
91433552
DN
2339 * process.c (ifflag_def): Make flag_sym constant.
2340 (Fnetwork_interface_info): Use a constant pointer.
2341 (ifflag_table):
2342 * xfns.c (cursor_bits):
2343 * xdisp.c (power_letter):
2344 * termcap.c (speeds, esctab):
2345 * sysdep.c (baud_convert):
2346 * keyboard.c (lispy_accent_codes, modifier_names):
2347 * image.c (xbm_format, xpm_format, pbm_format, png_format)
2348 (jpeg_format, tiff_format, gif_format, svg_format)
2349 (interlace_start, interlace_increment, gs_format):
2350 * gtkutil.c (separator_names):
2351 * fringe.c (swap_nibble):
2352 * fns.c (base64_value_to_char, base64_char_to_value):
2353 * fileio.c (make_temp_name_tbl):
2354 * coding.c (suffixes): Make constant.
2355
f4265f6c
DN
2356 * frame.c (make_initial_frame):
2357 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
2358 build_string.
2359 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
2360
04420943
DN
2361 * s/freebsd.h:
2362 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
2363
0a5d24ae
DN
2364 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
2365 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
2366
a4ada374
DN
2367 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
2368 * xterm.c (syms_of_xterm):
2369 * xfaces.c (syms_of_xfaces):
2370 * xdisp.c (syms_of_xdisp):
2371 * lread.c (syms_of_lread):
2372 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
2373 build_string.
91433552 2374
a4ada374
DN
2375 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
2376
af98fc7f
SM
23772009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
2378
8ab1650e 2379 * fns.c (Fplist_get): Merge the active and the commented out code.
af98fc7f 2380
e90292a9
JD
23812009-11-10 Jan Djärv <jan.h.d@swipnet.se>
2382
2383 * keyboard.h: Declare timer_check.
2384
2385 * keyboard.c (timer_check_2): New function that does what the old
2386 timer_check did.
2387 (timer_check): Call timer_check_2 until -1 or a non-zero time is
2388 returned, i.e. don't return -1 with timers pending.
2389
2390 * process.c: Remove extern declaration of timer_check.
2391
2392 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
2393 even if timer_check returned -1.
2394
af98fc7f
SM
2395 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
2396 xg_dialog_data.
e90292a9
JD
2397 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
2398 the event loop.
2399 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
2400 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
2401 Destroy the dialog after xg_dialog_run.
2402
045b83c0
SM
24032009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
2404
2405 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
2406
1fb99a3a
JD
24072009-11-10 Jan Djärv <jan.h.d@swipnet.se>
2408
2409 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
2410
04e452cb
JB
24112009-11-09 Juanma Barranquero <lekktu@gmail.com>
2412
2413 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
2414
ef7417fd
SM
24152009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
2416
2417 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
2418 w32menu.c, and nsmenu.m.
2419 Simplify the obsolete case where position is nil.
2420 (cleanup_popup_menu): New function, moved from nsmenu.m.
2421 (struct skp): Remove slot `notreal'.
2422 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
2423 adjust callers.
2424 (single_menu_item): Adjust call to parse_menu_item.
2425 (syms_of_menu): Defsubr x-popup-menu.
2426 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
2427 (keymap_panes): Don't export any more.
2428 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
2429 (xmenu_show): Declare.
2430 * keyboard.c (parse_menu_item): Remove arg `notreal'.
2431 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
2432 * keyboard.h (parse_menu_item): Update declaration.
2433 * xmenu.c (Fx_popup_menu): Remove.
2434 (syms_of_xmenu): Don't defsubr x-popup-menu.
2435 * w32menu.c (Fx_popup_menu): Remove.
2436 (syms_of_w32menu): Don't defsubr x-popup-menu.
2437 * nsmenu.m (cleanup_popup_menu): Remove.
2438 (ns_menu_show): Rename from ns_popup_menu and remove all the code
2439 moved to menu.c's Fx_popup_menu.
2440 (Fx_popup_menu): Remove.
2441 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
2442 menu_items (it's done in menu.c already).
2443
424d6179
SM
24442009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
2445
2446 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
2447 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
2448
c0df13a6 24492009-11-08 Chong Yidong <cyd@stupidchicken.com>
a20903d0
CY
2450
2451 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
c0df13a6 2452 xmenu_show. Hide any tooltip before opening a menu.
a20903d0
CY
2453 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
2454 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
2455
2de9f71c
SM
24562009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
2457
2458 Let integers use up 2 tags to give them one extra bit and thus double
2459 their range.
2460 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
2461 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
2462 New macros.
2463 (enum Lisp_Type): Use them. Give explicit values.
2464 (Lisp_Type_Limit): Remove.
2465 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
2466 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
2467 Pay attention to USE_2_TAGS_FOR_INTS.
2468 (INTEGERP): Use LISP_INT_TAG_P.
2469 * fns.c (internal_equal): Simplify the default case.
2470 (sxhash): Use case_Lisp_Int.
2471 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
2472 any more.
2473 (Ftype_of): Use case_Lisp_Int.
2474 (store_symval_forwarding): Take into account the fact that Ints can
2475 now have more than one tag.
2476 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
2477 buffer_slot_type_mismatch):
2478 * xfaces.c (face_attr_equal_p):
2479 * print.c (print_object):
2480 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
2481 Use case_Lisp_Int.
2482
323637a2
EZ
24832009-11-06 Eli Zaretskii <eliz@gnu.org>
2484
7ac65b38
EZ
2485 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
2486
323637a2
EZ
2487 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
2488 warning.
2489
e511451f
JD
24902009-11-06 Jan Djärv <jan.h.d@swipnet.se>
2491
2492 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
2493
2494 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
2495
2496 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
2497 ButtonPressRelease and MotionNotify (bug#4870).
2498
5e2327cf
DN
24992009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
2500
5adc433e
DN
2501 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
2502
d67b4f80
DN
2503 * xterm.c (syms_of_xterm):
2504 * xselect.c (syms_of_xselect):
2505 * xmenu.c (syms_of_xmenu):
2506 * xfns.c (syms_of_xfns):
2507 * xfaces.c (syms_of_xfaces):
2508 * xdisp.c (syms_of_xdisp):
2509 * window.c (syms_of_window):
2510 * w32fns.c (syms_of_w32fns):
2511 * undo.c (syms_of_undo):
2512 * textprop.c (syms_of_textprop):
2513 * terminal.c (syms_of_terminal):
2514 * syntax.c (syms_of_syntax):
2515 * sound.c (syms_of_sound):
2516 * search.c (syms_of_search):
2517 * print.c (syms_of_print):
2518 * minibuf.c (syms_of_minibuf):
2519 * macros.c (syms_of_macros):
2520 * keymap.c (syms_of_keymap, initial_define_key)
2521 (initial_define_lispy_key):
2522 * keyboard.c (syms_of_keyboard):
2523 * insdel.c (syms_of_insdel):
2524 * image.c (syms_of_image):
2525 * fringe.c (syms_of_fringe):
2526 * frame.c (syms_of_frame):
2527 * fontset.c (syms_of_fontset):
2528 * fns.c (syms_of_fns):
2529 * fns.c (syms_of_fns):
2530 * fileio.c (syms_of_fileio):
2531 * fileio.c (syms_of_fileio):
2532 * eval.c (syms_of_eval):
2533 * doc.c (syms_of_doc):
2534 * dispnew.c (syms_of_display):
2535 * dired.c (syms_of_dired):
2536 * dbusbind.c (syms_of_dbusbind):
2537 * data.c (syms_of_data):
2538 * composite.c (syms_of_composite):
2539 * coding.c (syms_of_coding):
2540 * cmds.c (syms_of_cmds):
2541 * charset.c (define_charset_internal, syms_of_character):
2542 * ccl.c (syms_of_ccl):
2543 * category.c (syms_of_category, init_category_once):
2544 * casetab.c (syms_of_casetab):
2545 * casefiddle.c (syms_of_casefiddle):
2546 * callint.c (syms_of_callint):
2547 * bytecode.c (syms_of_bytecode):
2548 * buffer.c (keys_of_buffer, syms_of_buffer):
2549 * alloc.c (syms_of_alloc):
2550 * process.c (syms_of_process, init_process):
2551 * lread.c (syms_of_lread, init_obarray):
2552 * font.c (build_style_table):
2553 * emacs.c (syms_of_emacs, main): Replace calls to intern with
2554 intern_c_string, calls to make_pure_string with
2555 make_pure_c_string. Use pure_cons instead of Fcons.
2556
5e2327cf
DN
2557 * process.c (socket_options): Make it const.
2558 (set_socket_option, init_process): Use a const pointer.
2559
2560 * lread.c (intern_c_string): New function.
2561 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
2562 (defvar_int): Uset it. Make the name const char*.
2563
2564 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
2565 (defvar_int): Update prototypes.
2566 (DEFUN, EXFUN): Support for prototypes is now required.
2567 (intern_c_string): New prototype.
2568 (struct Lisp_Subr): Make symbol_name constant.
2569
2570 * font.c (struct table_entry): Remove unused member. Make NAMES
2571 constant.
2572 (weight_table, slant_table, width_table): Make constant.
2573
2574 * emacs.c (struct standard_args): Make name and longname constant.
2575
2576 * character.h (DEFSYM): Use intern_c_string.
2577
a56eaaef
DN
25782009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
2579
2580 * alloc.c (make_pure_c_string): New function.
2581
2582 * eval.c (Fautoload): Purecopy all arguments.
2583
f6a07420
KH
25842009-11-05 Kenichi Handa <handa@m17n.org>
2585
2586 * fileio.c (Finsert_file_contents): Be sure set coding-system of
2587 the buffer in case of replace.
2588
5d28d4b1
DN
25892009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
2590
2591 * puresize.h (BASE_PURESIZE): Increase to 1620000.
2592
b349d111
SM
25932009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
2594
d528b1ce
SM
2595 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
2596 when applicable (bug#4851).
2597
b349d111
SM
2598 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
2599 (P_): Support for prototypes is now required.
2600
c38eb027
CY
26012009-10-31 Chong Yidong <cyd@stupidchicken.com>
2602
2603 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
2604 (Bug#4827).
2605
0405f8d9
EZ
26062009-10-30 Eli Zaretskii <eliz@gnu.org>
2607
d528b1ce 2608 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
0405f8d9 2609
ca0a881a
DN
26102009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
2611
2612 * puresize.h (BASE_PURESIZE): Increase to 1470000.
2613
d528b1ce
SM
2614 * lread.c (Fload): Purecopy the file name when building
2615 Vpreloaded_file_list.
ca0a881a 2616
47e0e0e4
JR
26172009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
2618
2619 * w32fns.c (syms_of_w32fns): Change default value of
2620 w32-scroll-lock-modifier to nil. (Bug#2827)
2621
057bce6f
JB
26222009-10-26 Juanma Barranquero <lekktu@gmail.com>
2623
782a943e 2624 * minibuf.c (Fall_completions): Fix typos in docstring.
057bce6f 2625
242bc74c
AS
26262009-10-26 Andreas Schwab <schwab@redhat.com>
2627
2628 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
2629
522d013a
JB
26302009-10-26 Juanma Barranquero <lekktu@gmail.com>
2631
2632 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
2633 For delta < 0, skip check that only makes sense when the mini-window
2634 is going to be enlarged. (Bug#4534)
2635
18060980
CY
26362009-10-25 Chong Yidong <cyd@stupidchicken.com>
2637
2638 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
2639 string in menu maps (Bug#4471).
2640
fec8f0fe
CY
26412009-10-24 Chong Yidong <cyd@stupidchicken.com>
2642
2643 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
2644 FRAME_NS_VIEW on terminal frames (Bug#4765).
2645
10d66ec0
AS
26462009-10-24 Andreas Schwab <schwab@linux-m68k.org>
2647
1cae01f7
AS
2648 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
2649 DBUS_TYPE_UINTnn separately to get proper sign extension.
2650
58a12889
AS
2651 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
2652 can properly handle unsigned types.
d528b1ce 2653 (make_uid, make_gid): Remove.
58a12889 2654
987c9327
AS
2655 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
2656 types again.
2657
522d013a 2658 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10d66ec0
AS
2659 (system_process_attributes): Likewise.
2660
905a9ed3
DN
26612009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
2662
2663 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
2664
2665 * eval.c (Fautoload): Purecopy the filename. Simplify.
2666
2667 * category.c (Fdefine_category): Purecopy docstring.
2668
a599b3e8
AS
26692009-10-23 Andreas Schwab <schwab@linux-m68k.org>
2670
7b792fc9
AS
2671 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
2672
a599b3e8
AS
2673 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
2674
b35ac83e
CY
26752009-10-23 Chong Yidong <cyd@stupidchicken.com>
2676
2677 * window.c (Fwindow_edges, Fwindow_pixel_edges)
2678 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
2679 (Bug#4775).
2680
e8903e00
SM
26812009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
2682
2683 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
2684 (init_fileio_once):
2685 * lisp.h (init_fileio_once): Remove.
2686 * emacs.c (main): Don't call init_fileio_once.
2687
8f43cbf3
DN
26882009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
2689
2690 * puresize.h (BASE_PURESIZE): Increase to 1430000.
2691
26898943
AS
26922009-10-21 Andreas Schwab <schwab@linux-m68k.org>
2693
2694 * doprnt.c (doprnt): Fix overflow check.
2695
5c646d5a
JD
26962009-10-21 Jan Djärv <jan.h.d@swipnet.se>
2697
3132a7ea
JD
2698 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
2699
5c646d5a
JD
2700 * xterm.h (x_wait_for_event): Declare it.
2701
2702 * xterm.c (pending_event_wait): New variable.
2703 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
2704 see pending_event_wait.eventtype.
2705 (handle_one_xevent): Don't change gravity when parent changes.
d528b1ce
SM
2706 (x_new_font): Call change_frame_size with new rows/columns before we
2707 try to resize the frame.
5c646d5a 2708 (x_wait_for_event): New function.
d528b1ce
SM
2709 (x_set_window_size_1): Don't change gravity unless change_gravity
2710 is set.
5c646d5a
JD
2711 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
2712 don't change frame size, instead wait for the ConfigureNotify.
2713 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
2714 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
2715 (x_initialize): Initialize pending_event_wait.
2716
2717 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
2718 size.
2719
2720 * widget.c (EmacsFrameSetValues): Add comment.
2721 (EmacsFrameSetCharSize): Just call x_set_window_size.
2722
2723 * gtkutil.c (xg_frame_set_char_size): Flush events and call
2724 x_wait_for_event.
d528b1ce 2725 (flush_and_sync): Remove again.
5c646d5a
JD
2726 (xg_get_font_name): Suggest monospace if no previous font is known.
2727
e9c1637d
SM
27282009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
2729
2730 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
46be764e 2731 8th bit, since that only made sense in the ASCII world (bug#4751).
e9c1637d 2732
5a72cccb
YM
27332009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2734
2735 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
2736 processing pending events when event is filtered for input method.
ab04798f 2737 (Bug#3681)
5a72cccb 2738
2629aa37
JB
27392009-10-20 Juanma Barranquero <lekktu@gmail.com>
2740
2741 * fns.c: Add #endif accidentally removed in previous change.
2742
c3417a74
DN
27432009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
2744
2745 * fns.c: Remove code for unsupported system: MAC_OS.
2746 * image.c: Likewise. Include setjmp.h.
2747
9685cef2
JD
27482009-10-19 Jan Djärv <jan.h.d@swipnet.se>
2749
2750 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
2751 pixel -1 (bug #4742).
2752
d7306fe6
DN
27532009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
2754
019d2c4c
DN
2755 * process.c (create_pty): Remove conditionals for no longer
2756 supported systems: UNIPLUS and RTU.
2757
ee6bacd4
DN
2758 * xterm.c:
2759 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
2760
d7306fe6
DN
2761 * alloc.c: Do not define struct catchtag.
2762 * eval.c: Move struct catchtag definition ...
2763 * lisp.h: ... here.
2764
2765 * image.c: Move png.h #include earlier to avoid warnings.
2766
2767 * xterm.c:
2768 * xsmfns.c:
2769 * xselect.c:
2770 * xrdb.c:
2771 * xmenu.c:
2772 * xftfont.c:
2773 * xfont.c:
2774 * xfns.c:
2775 * xfaces.c:
2776 * xdisp.c:
2777 * window.c:
2778 * widget.c:
2779 * w32xfns.c:
2780 * w32uniscribe.c:
2781 * w32term.c:
2782 * w32select.c:
2783 * w32reg.c:
2784 * w32proc.c:
2785 * w32menu.c:
2786 * w32inevt.c:
2787 * w32heap.c:
2788 * w32font.c:
2789 * w32fns.c:
2790 * w32console.c:
2791 * w32.c:
2792 * w16select.c:
2793 * vm-limit.c:
2794 * unexsol.c:
2795 * unexec.c:
2796 * unexcw.c:
2797 * unexaix.c:
2798 * undo.c:
2799 * tparam.c:
2800 * textprop.c:
2801 * terminfo.c:
2802 * terminal.c:
2803 * termcap.c:
2804 * term.c:
2805 * syntax.c:
2806 * sound.c:
2807 * sheap.c:
2808 * search.c:
2809 * scroll.c:
2810 * region-cache.c:
2811 * regex.c:
2812 * ralloc.c:
2813 * process.c:
2814 * print.c:
b024548b
DN
2815 * nsterm.m:
2816 * nsselect.m:
2817 * nsmenu.m:
2818 * nsimage.m:
2819 * nsfont.m:
2820 * nsfns.m:
d7306fe6
DN
2821 * msdos.c:
2822 * minibuf.c:
2823 * menu.c:
2824 * marker.c:
2825 * macros.c:
2826 * keymap.c:
2827 * keyboard.c:
2828 * intervals.c:
2829 * insdel.c:
2830 * indent.c:
2831 * gtkutil.c:
2832 * ftxfont.c:
2833 * ftfont.c:
2834 * fringe.c:
2835 * frame.c:
2836 * fontset.c:
2837 * font.c:
2838 * fns.c:
2839 * floatfns.c:
2840 * filelock.c:
2841 * fileio.c:
2842 * emacs.c:
2843 * editfns.c:
2844 * dosfns.c:
2845 * doprnt.c:
2846 * doc.c:
2847 * dispnew.c:
2848 * dired.c:
2849 * dbusbind.c:
2850 * data.c:
2851 * composite.c:
2852 * coding.c:
2853 * cmds.c:
2854 * cm.c:
2855 * chartab.c:
2856 * charset.c:
2857 * character.c:
2858 * ccl.c:
2859 * category.c:
2860 * casetab.c:
2861 * casefiddle.c:
2862 * callproc.c:
2863 * callint.c:
2864 * bytecode.c:
2865 * buffer.c:
2866 * atimer.c: Include setjmp.h. (Bug#4643)
2867
fd5f21e6
SM
28682009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
2869
4c0354d7
SM
2870 Remove leftover table unibyte_to_multibyte_table.
2871 * character.c (unibyte_to_multibyte_table): Remove.
2872 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
2873 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
2874 * character.h (UNIBYTE_TO_CHAR): New macro.
2875 (MAKE_CHAR_MULTIBYTE): Use it.
2876 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
2877 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
2878 (message_dolog, set_message_1):
2879 * search.c (Freplace_match):
2880 * editfns.c (Fcompare_buffer_substrings):
2881 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
2882 (concat):
2883 * insdel.c (copy_text, count_size_as_multibyte):
2884 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
2885 * term.c (produce_glyphs):
2886 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
2887 * regex.c (RE_CHAR_TO_MULTIBYTE):
2888 * cmds.c (internal_self_insert):
2889 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
2890
fd5f21e6
SM
2891 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
2892
4418646e
DN
28932009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
2894
2895 * puresize.h (BASE_PURESIZE): Increase to 1310000.
2896
35f5c1d2
JB
28972009-10-16 Juanma Barranquero <lekktu@gmail.com>
2898
2899 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
2900
a0cd8f6b
AR
29012009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
2902
2903 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
2904 still needed under Tiger.
2905
2906 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
2907
2908 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
2909 __Apple__.
2910
2911 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
2912
01a8d3fa
KH
29132009-10-15 Kenichi Handa <handa@m17n.org>
2914
2915 * print.c (print_object): Escape a symbol like "2E10" too.
2916
bf6c75c9 29172009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6e4780c5
JB
2918
2919 Cleanups and changes for 64-bit compile under Snow Leopard.
2920 Based on suggestions by Erik Charlebois.
bf6c75c9
AR
2921
2922 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
2923
c5959062 2924 * nsfont.m (ns_char_width): Replace deprecated call.
bf6c75c9
AR
2925 (ns_findfonts, nsfont_list_family): Use long format in printf, and
2926 cast argument.
2927 (nsfont_open): Use ns_char_width() everywhere.
d528b1ce 2928 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
bf6c75c9
AR
2929
2930 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
2931
2932 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
2933 where appropriate.
2934
2935 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
2936 where appropriate.
6e4780c5
JB
2937 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
2938 Use stringWithUTF8String.
bf6c75c9
AR
2939 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
2940
6e4780c5
JB
2941 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
2942 Add formal protocol mention to inheritance.
bf6c75c9
AR
2943 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
2944
6e4780c5
JB
2945 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
2946 Fix printf format.
bf6c75c9
AR
2947 (ns_query_color): Use CGFloat where appropriate.
2948 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
ac146f82 2949 (EmacsScroller-mouseDown:): Use long format in printf, and cast
bf6c75c9
AR
2950 argument.
2951
3d87f118
AR
2952 * config.in (NS_HAVE_NSINTEGER): Drop.
2953
a95c8102
AR
2954 * dbusbind.c (dbus-method-return-internal)
2955 (dbus-method-error-internal): Use long format in printf, and cast
2956 argument.
2957
2958 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
2959 in printf, and cast argument.
2960
6873acca 2961 * process.c (list_processes_1): Use long format in printf, and
a95c8102
AR
2962 cast argument.
2963
9ec6f100
GM
29642009-10-11 Glenn Morris <rgm@gnu.org>
2965
2966 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
2967
5be883cd
JD
29682009-10-08 Jan Djärv <jan.h.d@swipnet.se>
2969
2970 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
2971 menu bar with a small width so it doesn't enlarge the frame.
2972
d7a39b51
JB
29732009-10-08 Juanma Barranquero <lekktu@gmail.com>
2974
2975 * fontset.c (Fset_fontset_font): Fix typos in error messages.
2976
0c2b6f8e
GM
29772009-10-06 Glenn Morris <rgm@gnu.org>
2978
2979 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
2980 SOME_MACHINE_LISP (this enters indirectly via DOC).
2981
e02131a2
EZ
29822009-10-05 Eli Zaretskii <eliz@gnu.org>
2983
2984 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
2985
b4744254
EZ
29862009-10-04 Eli Zaretskii <eliz@gnu.org>
2987
2988 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
2989 Doc fix.
2990
dbf64827
JB
29912009-10-03 Martin Rudalics <rudalics@gmx.at>
2992
2993 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
2994
e9a0aef8
MA
29952009-10-02 Michael Albinus <michael.albinus@gmx.de>
2996
d528b1ce 2997 * lisp.h (Qdelete_directory_internal): Remove, because it is not
e9a0aef8
MA
2998 used anymore outside fileio.c.
2999
3000 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
3001
64eb2b56
JB
30022009-10-01 Juanma Barranquero <lekktu@gmail.com>
3003
3004 * lisp.h (Qdelete_directory_internal):
3005 Declare, instead of Qdelete_directory.
3006
3007 * w32fns.c (Fsystem_move_file_to_trash): Use it.
3008
9d28c33e
SM
30092009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
3010
3011 * eval.c (Fcalled_interactively_p): Add `kind' argument.
3012
9d8f3bd9
MA
30132009-10-01 Michael Albinus <michael.albinus@gmx.de>
3014
9d28c33e 3015 * fileio.c (Fdelete_directory_internal): Rename from
9d8f3bd9
MA
3016 Fdelete_directory. It is not a command anymore. It has no file
3017 name handler.
3018
9694740b
SM
30192009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
3020
3021 * xdisp.c (get_next_display_element): Use an enum in last change.
3022
748e162f
KH
30232009-09-28 Kenichi Handa <handa@m17n.org>
3024
9694740b 3025 * xdisp.c (get_next_display_element): Pay attention to
748e162f
KH
3026 unibyte_display_via_language_environment in handling
3027 Vnobreak_char_display.
3028
17efd58d
AR
30292009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
3030
3031 * nsterm.h (ns_app_name): New extern variable.
3032
3033 * nsterm.m (ns_app_name): New variable.
3034 (ns_term_init): Set and use it.
3035 (ns_term_shutdown): Use it.
3036
3037 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
3038 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
3039
3040 * nsfns.m (ns_set_name_iconic, ns_set_name)
3041 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
3042 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
3043
9694740b
SM
3044 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
3045 Remove double-casting in client_data comparison.
31c2d412 3046
3208cb35
YM
30472009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3048
3049 * keyboard.c (make_lispy_event): Remember last wheel direction.
3050 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
3051
b7d552d6
GM
30522009-09-26 Glenn Morris <rgm@gnu.org>
3053
3054 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
3055 internal.elc. Add term/pc-win.elc.
3056 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
3057 term/x-win.elc.
3058 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
3059 term/w32-win.elc.
3060 (NS_SUPPORT): New.
3061 (lisp): Add NS_SUPPORT.
3062 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
3063
4ff670a8
DR
30642009-09-25 David Reitter <david.reitter@gmail.com>
3065
3066 * nsmenu.m (EmacsMenu-clear): Recognize application menu
3067 on Mac OS X 10.6+ (bug#4513).
3068
feabfb6c
JB
30692009-09-24 Juanma Barranquero <lekktu@gmail.com>
3070
3071 * frame.c (xrdb_get_resource): Return nil for empty string resources;
d528b1ce
SM
3072 some parts of Emacs code (like font selection) don't grok them.
3073 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
feabfb6c 3074
de59072a
AS
30752009-09-24 Andreas Schwab <schwab@redhat.com>
3076
3077 * coding.c (decode_coding_iso_2022): Fix operator precedence.
3078
a489517b
JB
30792009-09-24 Juanma Barranquero <lekktu@gmail.com>
3080
3081 * dired.c (Fdirectory_files): Fix typo in docstring.
3082
0592970c
AR
30832009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
3084
3085 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
3086 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
3087 (EmacsScroller-setPosition:portion:whole:): Remove -display call
3088 under GNUstep.
3089 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
3090
3091 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
3092 glyph advancement.
3093
48e8a88b
AR
30942009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
3095
3096 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
b3aac06a 3097 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
48e8a88b
AR
3098
3099 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
3100 deleted (bug #4492).
3101
e14f0a78
AR
3102 * nsfont.m (Vns_reg_to_script): New lisp variable.
3103 (syms_of_nsfont): Declare it.
3104 (ns_registry_to_script): New function.
3105 (ns_get_req_script): Call it.
3106 (ns_findfonts): Don't give up on non-unicode registry.
3107
3108 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
3109
5b650faa
SM
31102009-09-20 Tom Tromey <tromey@redhat.com>
3111
3112 * eval.c (find_handler_clause): Make stack-trace-on-error work in
3113 batch mode (bug#4228).
3114
a489517b 31152009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
0bae4e09
AR
3116
3117 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
a489517b 3118 carefully. (Bug #4339)
0bae4e09 3119
fcfe06f3
CY
31202009-09-18 Chong Yidong <cyd@stupidchicken.com>
3121
d798ba87 3122 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
fcfe06f3 3123
31642728
AR
31242009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
3125
3126 * emacs.c (inhibit_x_resources): Update doc string for NS.
3127 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
cff11156 3128 legacy code for -NXHost. Fix error printf in daemon case.
31642728
AR
3129
3130 * nsterm.h (ns_no_defaults): Remove.
3131
3132 * nsterm.m (ns_no_defaults): Remove.
3133 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
3134 (ns_use_qd_smoothing): Remove legacy variable.
6516d10a
AR
3135 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
3136 don't update the NSWindow itself.
3137 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
a489517b 3138 state detection and store user rect ourselves. (Bug #3581)
31642728
AR
3139
3140 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
3141 ns_use_qd_smoothing.
3142
3143 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
3144 platform versions. Drop support for emacs-20-style face specs.
8aad0aea 3145 (x-close-connection): Drop PSFlush() under OS X.
a489517b 3146 (x-focus-frame): Activate the app first. (Bug #4180)
31642728 3147
8686ac71
JB
31482009-09-17 Juanma Barranquero <lekktu@gmail.com>
3149
3150 * emacs.c (inhibit_x_resources): New variable.
3151 (main) [HAVE_NS]: Don't process --quick command line option.
3152 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
3153
3154 * lisp.h (inhibit_x_resources): Declare it extern.
3155
3156 * w32reg.c (x_get_string_resource):
3157 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
3158
e227ba05
EZ
31592009-09-17 Eli Zaretskii <eliz@gnu.org>
3160
362654a6
JB
3161 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
3162 Add lisp/term/internal.elc.
e227ba05 3163
742d40e8
SM
31642009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
3165
3166 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
3167 (bug#4461).
3168
005bd5a2
DN
31692009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
3170
3171 * puresize.h (BASE_PURESIZE): Increase to 1290000.
3172
3173 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
3174 (OBJECTS_MACHINE): Remove, unused.
3175
f9af9719
SM
31762009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
3177
3178 * frame.c (x_get_resource_string): Remove unused.
3179
0307c7d2
JD
31802009-09-15 Jan Djärv <jan.h.d@swipnet.se>
3181
3182 * xterm.c (x_new_font): Call change_frame_size before calling
3183 x_set_window_size, in case frame size won't change.
3184
3185 * frame.c (x_set_font): Remove dead code.
3186
428b13d6
SM
31872009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
3188
3189 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
3190
5766c380
SM
31912009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
3192
3193 * lread.c (Fload): Don't output a message after loading an obsolete
3194 package any more (done in Lisp now).
3195
2fd0161b
CY
31962009-09-12 Chong Yidong <cyd@stupidchicken.com>
3197
3198 * fns.c (syms_of_fns): Doc fix (Bug#4227).
3199
bc5e75b6
SM
32002009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
3201
3202 * keymap.c (Fwhere_is_internal): Use nconc2.
3203
c31c985e
AM
32042009-09-11 Alan Mackenzie <acm@muc.de>
3205
3206 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
3207 batch mode.
3208
78012bd2
AS
32092009-09-11 Andreas Schwab <schwab@linux-m68k.org>
3210
3211 * xdisp.c (display_mode_element): Detect cycles.
3212
9d889332
SM
32132009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
3214
3215 * keymap.c (where_is_internal): Don't erroneously return nil right after
3216 filling the cache.
3217 (where_is_internal_1): Fix up typo.
3218
7ab5d780
GM
32192009-09-11 Glenn Morris <rgm@gnu.org>
3220
3221 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
3222 share a common doc-string.
3223
5238a749
SM
32242009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
3225
66d77eda
SM
3226 * keymap.c (get_keymap): Return the actual keymap symbol rather than
3227 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
3228
5238a749
SM
3229 * keymap.c (QCadvertised_binding): New constant.
3230 (syms_of_keymap): Initialize it.
3231 (Fwhere_is_internal): Try and use bindings from :advertised-binding
3232 if applicable.
3233
19f48442
SM
32342009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
3235
50d4ba39
SM
3236 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
3237 (parse_menu_item): Streamline since bindings are recomputed all the
3238 time anyway. Don't bother checking Vdefine_key_rebound_commands any
3239 more and don't support lmenu's menu-alias any more either.
3240
a88a5372
SM
3241 * keymap.c (where_is_internal_data): Make noindirect a boolean.
3242 (where_is_internal): Strip it down to only traverse the keymaps.
3243 Move the cache handling from Fwhere_is_internal to here.
3244 (Fwhere_is_internal): Move the handling of remapping and the choice of
3245 the best binding from where_is_internal to here.
3246 Unify the cached/noncached paths, so remapping is also handled
3247 correctly when the cache is used, and so the cache can be used to
3248 speed up remap-handling when applicable.
3249 Give preference to non-remapped bindings.
3250 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
3251 non-remapped bindings.
3252 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
3253 command remapping.
3254
19f48442
SM
3255 * xdisp.c (display_mode_element): Move list length limit from 50 to
3256 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
3257
599498c3 32582009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
c1905ca3
AR
3259
3260 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
3261
f9b7b5ac
SM
32622009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
3263
a53af587
JB
3264 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
3265 (Bug#4334)
3266
f9b7b5ac
SM
3267 * keymap.c (where_is_internal): Filter out shadowed remappings.
3268 Assume that where_is_internal returns unshadowed bindings to simplify
3269 the code and get rid of the gotos. Use ASIZE.
3270
04f4b72d
JD
32712009-09-04 Jan Djärv <jan.h.d@swipnet.se>
3272
4da146f2
JD
3273 * xterm.c (x_focus_changed): If we get a focusout and pointer
3274 is invisible, make it visible.
3275
04f4b72d
JD
3276 * xterm.h: Remove condition for declaration of
3277 x_*_window_to_frame.
3278
7cef7ce3
SM
32792009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
3280
3281 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
3282 initial terminal as well.
3283
a54fa5b7
JD
32842009-09-02 Jan Djärv <jan.h.d@swipnet.se>
3285
3286 * xterm.h: Rename x_non_menubar_window_to_frame to
7cef7ce3 3287 x_menubar_window_to_frame.
a54fa5b7
JD
3288
3289 * xterm.c: Remove declarations also in xterm.h
3290 (XTmouse_position): Do not return valid positions
3291 for clicks in the menubar and the toolbar for Gtk+.
3292
3293 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
3294 if the widget for the event has the same top level as a frame,
3295 return the frame.
3296 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
3297 internal windows, bug #4122.
3298 (x_non_menubar_window_to_frame): Remove.
3299
5a021dd0
GM
33002009-09-02 Glenn Morris <rgm@gnu.org>
3301
3302 * buffer.c (default-major-mode): Move most of the doc from here...
3303 (major-mode): ... to here.
3304
548fe2f3
NR
33052009-08-30 Nick Roberts <nickrob@snap.net.nz>
3306
3307 * process.c (wait_reading_process_output): Keep the descriptor
3308 when pty is used by a non-child process, e.g., in I/O buffer of
3309 GDB this allows inferior to be restarted.
3310
e0840eef
EZ
33112009-08-29 Eli Zaretskii <eliz@gnu.org>
3312
3313 * xdisp.c (redisplay_internal): Remove redundant test and collapse
3314 both branches into one.
3315
82e98df4
SM
33162009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
3317
3318 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
3319 (main): Use enable-multibyte-characters rather than
3320 default-enable-multibyte-characters. Output a warning message when
3321 running a unibyte session.
3322
890617cb
YM
33232009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3324
3325 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
3326 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
3327 (copy_data_segment): Also copy __program_vars section.
3328 (copy_dyld_info) [LC_DYLD_INFO]: New function.
3329 (dump_it) [LC_DYLD_INFO]: Use it.
3330
3331 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
3332
e7adeadc
EZ
33332009-08-28 Eli Zaretskii <eliz@gnu.org>
3334
3335 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
3336 $(SRC)/buildobj.h.
3337 (buildobj.h): Renamed from $(SRC)/buildobj.h.
3338 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
3339 $(SRC)/buildobj.h.
3340 (clean): Add buildobj.h.
3341
3ed8bbdc
TZ
33422009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
3343
3344 * print.c (print_object): Set escapeflag to 1 when printing
3345 hashtable keys and values.
3346
155a6764
SM
33472009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
3348
3349 * lread.c (read_integer): Use doubles (and potentially return a float
3350 number) as we do in string-to-number.
3351 (read1): Use strtol to read integers, signal errors on strtol's
3352 overflow and use floats if strtol's output is too large for
3353 Elisp integers.
3354
877610de
EZ
33552009-08-27 Eli Zaretskii <eliz@gnu.org>
3356
3357 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
3358 (make-buildobj-SH): Fix last change.
3359 (SRC): Move to before where it's first used.
3360
ef73e7be
KH
33612009-08-27 Kenichi Handa <handa@m17n.org>
3362
550c8289
KH
3363 * process.c (send_process): Use encode_coding_object instead of
3364 encode_coding_string to perform eol-conversion even if the string
3365 is unibyte.
3366
60afa08d
KH
3367 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
3368 character.
3369
ef73e7be 3370 * cmds.c (Fself_insert_command): Avoid unnecessay
8a0b709a 3371 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
ef73e7be 3372
7b3a82d7
DN
33732009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
3374
5654bf63
DN
3375 * callproc.c (Fcall_process): Remove always true #if.
3376
7b3a82d7
DN
3377 * lisp.h: Replace #if 0 code for checking with text pointing to
3378 the --enable-checking configure flag.
3379
3380 * emacs.c (main): Mention the --enable-profiling configure flag
3381 instead of using CFLAGS.
3382
878bde49
KR
33832009-08-26 Ken Raeburn <raeburn@raeburn.org>
3384
3385 * Makefile.in (buildobj.h): New target.
3386 (doc.o): Depend on it.
3387 (temacs${EXEEXT}): Don't generate buildobj.lst.
3388 (mostlyclean): Delete buildobj.h, not buildobj.lst.
3389 * makefile.w32-in ($(SRC)/buildobj.h): New target.
3390 ($(BLD)/doc.$(O)): Depend on it.
3391 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
3392 provided by Eli Zaretskii.)
3393 ($(TEMACS)): Don't generate buildobj.lst.
3394 * doc.c: Include buildobj.h.
3395 (buildobj): New static variable.
3396 (Fsnarf_documentation): Use it, instead of opening and reading
3397 buildobj.lst.
3398
1574224c
MA
33992009-08-25 Michael Albinus <michael.albinus@gmx.de>
3400
3401 * dbusbind.c (Fdbus_call_method)
3402 (Fdbus_call_method_asynchronously): Use English numeric format for
3403 timeout values in doc string.
3404
d9da2f45
KH
34052009-08-25 Kenichi Handa <handa@m17n.org>
3406
ef73e7be
KH
3407 * alloc.c (mark_char_table): New function.
3408 (mark_object): Use mark_char_table for a char-table.
3409
d9da2f45
KH
3410 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
3411 (CHAR_TABLE_REF): Use it.
3412
c8edcc01
KR
34132009-08-23 Ken Raeburn <raeburn@raeburn.org>
3414
3415 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
3416 before invoking the newly build emacs to check for load-path
3417 shadowing.
3418
7763401b
GM
34192009-08-22 Glenn Morris <rgm@gnu.org>
3420
3421 * Makefile.in (bootstrap_exe): New variable.
3422 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
3423 Use ${bootstrap_exe}.
3424
729eadda
EZ
34252009-08-22 Eli Zaretskii <eliz@gnu.org>
3426
3427 * coding.h (encode_coding_string): Don't encode unibyte strings.
3428 (Bug#4047)
3429
eb4c6ace
MA
34302009-08-22 Michael Albinus <michael.albinus@gmx.de>
3431
3432 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
3433
3434 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
3435 intended as hotfix only.
3436 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
3437
36e34d1b
AR
34382009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
3439
3440 * nsterm.m (ns_get_color): Update documentation properly for last
3441 change, and clean up loose ends in the code left by it. Fix
3442 longstanding bug with 16-bit hex parsing, and add support for
3443 yet another X11 format (rgb:r/g/b) for compatibility.
3444 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
3445 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
3446
f983eb8a
SM
34472009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
3448
3449 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
3450
3f56d3c6
MA
34512009-08-20 Michael Albinus <michael.albinus@gmx.de>
3452
3453 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
3454 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
3455 (xd_initialize, xd_pending_messages): Check, whether
3456 $DBUS_SESSION_BUS_ADDRESS is set.
3457
fb641d68
YM
34582009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3459
3460 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
3461
3462 * nsterm.m (ns_get_color): Remove incompatible color formats again.
3463
cf59a374
GM
34642009-08-20 Glenn Morris <rgm@gnu.org>
3465
3466 * emacs.c (system-type): Doc fix.
3467
1373f3be
SM
34682009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
3469
3470 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
3471 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
3472
058ed861
MA
34732009-08-18 Michael Albinus <michael.albinus@gmx.de>
3474
1373f3be
SM
3475 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
3476 New functions.
058ed861
MA
3477 (xd_initialize): Revert change from 2009-08-16.
3478
563a866e 34792009-08-18 Kenichi Handa <handa@m17n.org>
5fc05db0
KH
3480
3481 * fontset.c (Ffontset_font): If a nil element is found in a
563a866e 3482 font-group vector, return nil.
5fc05db0 3483
e42bdf01
CY
34842009-08-17 Chong Yidong <cyd@stupidchicken.com>
3485
3486 * process.c (status_notify): Don't perform redisplay.
3487 (Fdelete_process, list_processes_1, process_send_signal):
3488 Expliticly perform redisplay.
3489 (wait_reading_process_output): Always check process status, but
3490 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
3491
4230ab74
KR
34922009-08-17 Ken Raeburn <raeburn@raeburn.org>
3493
1373f3be 3494 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
f601cdf3
KR
3495 (XFLOAT_INIT): New macro for storing a float value.
3496 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
3497 * fns.c (sxhash): Copy out the value of a float in order to
3498 examine its bytes.
3499 * dbusbind.c (xd_append_arg): Likewise.
3500
4230ab74
KR
3501 * emacs.c (main): Don't call syms_of_data twice.
3502
a0645cdd
MA
35032009-08-16 Michael Albinus <michael.albinus@gmx.de>
3504
3505 * dbusbind.c (xd_initialize): Add connection file descriptor to
3506 input_wait_mask, in order to let select() detect, whether a new
3507 message has been arrived.
ca4f31ea 3508 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
a0645cdd 3509
485db0ba
MA
35102009-08-15 Michael Albinus <michael.albinus@gmx.de>
3511
1373f3be
SM
3512 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
3513 New functions.
485db0ba
MA
3514
3515 * lisp.h (xd_pending_messages): Declare.
3516
3517 * keyboard.c (readable_events): Call xd_pending_messages.
3518
b5b98ff4
CY
35192009-08-15 Chong Yidong <cyd@stupidchicken.com>
3520
1373f3be 3521 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
84b17ab0 3522
f8354c6e
CY
3523 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
3524
b5b98ff4
CY
3525 * buffer.c (set_buffer_internal_1)
3526 (swap_out_buffer_local_variables): Check for unbound local
3527 variables (Bug#4138).
3528
8b9fc636
EZ
35292009-08-14 Eli Zaretskii <eliz@gnu.org>
3530
3531 * process.c (create_pty): Fix last change.
3532
ce959360
CY
35332009-08-13 Chong Yidong <cyd@stupidchicken.com>
3534
3535 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
3536 (xbm_load_image): Caller changed.
64b807c9 3537 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
ce959360 3538
c7baf7e9
NR
35392009-08-13 Nick Roberts <nickrob@snap.net.nz>
3540
3541 * process.c (create_pty): New function.
3542 (Fstart_process): Use it to allow Emacs to just associate a pty
3543 with the buffer. See associated change in gdb-mi.el.
3544 (list_processes_1): Deal with no program name.
3545 (start_process_unwind): Use pid == -2 to mean no process.
3546
1ac9108a
SM
35472009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
3548
3549 * cmds.c (nonundocount): New global variable.
3550 (keys_of_cmds): Initialize it.
3551 (Fself_insert_command): Use it to combine upto 20 sequential chars
3552 into a single undo entry, just like the Qself_insert_command code in
3553 keyboard.c does.
3554 Call frame_make_pointer_invisible, also like the Qself_insert_command
3555 code in keyboard.c does.
3556 * keyboard.c (command_loop_1): Use the new global nonundocount rather
3557 than its own local replacement for it.
3558
e267324c
KR
35592009-08-10 Ken Raeburn <raeburn@raeburn.org>
3560
1ac9108a 3561 * fns.c (concat): Don't re-set string length to its current value.
77437343 3562
1ac9108a
SM
3563 * coding.h (decode_coding_string, encode_coding_string):
3564 Use SBYTES macro.
f0bed503 3565
1ac9108a 3566 * doprnt.c (doprnt_lisp): Delete unused function.
e267324c
KR
3567 (doprnt): Merge with doprnt1, discarding lispstrings code.
3568 * lisp.h (doprnt_lisp): Don't declare.
3569
416e006d
JL
35702009-08-07 Juri Linkov <juri@jurta.org>
3571
3572 * puresize.h (BASE_PURESIZE): Increase to 1270000.
3573
6f7d5780
DN
35742009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
3575
3576 * print.c (syms_of_print): Undo previous change.
3577
f19a0f5b
TZ
35782009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
3579
3580 * lread.c (read1, syms_of_lread): Read hashtables back from the
3581 readable format.
3582
3583 * print.c (print_preprocess, print_object): Print hashtables fully
3584 and readably.
3585 (syms_of_print): Provide 'hashtable-print-readable.
3586
b9173dc2
AR
35872009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
3588
3589 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
3590 no family set.
3591 (nsfont_open): Handle case when entity has no family.
3592
1586503c
AR
35932009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
3594
3595 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
3596 element, not a list, for match case.
3597
087048cd
KH
35982009-07-28 Kenichi Handa <handa@m17n.org>
3599
3600 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
3601 rigidly.
3602
3603 * xfont.c (xfont_list_pattern): Don't ignore the return value of
3604 font_parse_xlfd. Check font properties more rigidly.
3605
780c2506
DN
36062009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
3607
31fd7c5c
JB
3608 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
3609 bsd-common.h.
780c2506 3610
a8c0cc18
KH
36112009-07-27 Kenichi Handa <handa@m17n.org>
3612
3613 * xfaces.c (face_with_height): Call font_clear_prop.
3614
4fbe2306
CY
36152009-07-26 Chong Yidong <cyd@stupidchicken.com>
3616
111d9af3
CY
3617 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
3618
3619 * xterm.c (x_term_init): Use Qx.
3620
4fbe2306
CY
3621 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
3622
1ac9108a 3623 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4fbe2306
CY
3624 (ns_get_color): Revert 2009-07-16 change.
3625
beb0b7f9
EZ
36262009-07-25 Eli Zaretskii <eliz@gnu.org>
3627
3628 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1ac9108a 3629 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
beb0b7f9 3630
2baf5e76
KR
36312009-07-25 Ken Raeburn <raeburn@raeburn.org>
3632
1ac9108a
SM
3633 * coding.h (decode_coding_string, encode_coding_string):
3634 Use SCHARS macro.
8890e5f5 3635
2baf5e76 3636 * lread.c: Rewrite 2009-07-21 changes.
1ac9108a 3637 (load_depth): Delete.
2baf5e76
KR
3638 (Qload_in_progress): New variable.
3639 (load_unwind): Don't reference load_depth or load_in_progress.
3640 (Fload): Likewise; specbind Qload_in_progress instead.
3641 (init_lread): Don't initialize load_depth.
3642 (syms_of_lread): Initialize and protect Qload_in_progress.
3643
1395c6f5
AR
36442009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
3645
3646 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
3647
4e2f36cf
AR
36482009-07-23 Yavor Doganov <yavor@gnu.org>
3649
3650 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
3651
5dd9a6f7
AR
36522009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
3653
3654 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
3655 Bugs 3792, 3720, 2402.
3656 (ns_lookup_indexed_color): Check for bad index.
3657 (ns_index_color): Init unused slot to 0.
3658 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
3659 Bug 3714, possibly 3082.
5dd9a6f7 3660
c902b920
JR
36612009-07-22 Jason Rumney <jasonr@gnu.org>
3662
1ac9108a
SM
3663 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
3664 Position IME window at cursor (Bug#2570).
c902b920
JR
3665 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
3666 (globals_of_w32fns): Dynamically load functions required above.
3667
3668 * w32term.c (w32_draw_window_cursor): Send message to reposition
3669 any IME window.
3670
090101cf
CY
36712009-07-21 Chong Yidong <cyd@stupidchicken.com>
3672
3673 * fileio.c: Revert 2009-07-16 changes.
3674 (Vauto_save_include_big_deletions): New variable.
3675 (Fdo_auto_save): Disable auto-save only if
3676 auto-save-include-big-deletions is nil.
3677
e6583e3d
CY
36782009-07-21 Chong Yidong <cyd@stupidchicken.com>
3679
3680 * xdisp.c (move_it_to): For continued lines ending in a tab, take
3681 the overflowed pixels into account (Bug#3879).
3682
ece435a5
KR
36832009-07-21 Ken Raeburn <raeburn@raeburn.org>
3684
3685 * lread.c (load_depth): New variable.
3686 (Fload, load_unwind, init_lread): Set it to the load recursion
3687 depth; set load_in_progress as a simple boolean based on the
3688 current load_depth. (Bug#3892)
3689
40b2d973
AR
36902009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
3691
3692 * nsfont.m (ns_has_attribute): Remove.
3693 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
3694
10be7e0d
JL
36952009-07-18 Juri Linkov <juri@jurta.org>
3696
3697 * process.c (Fset_process_query_on_exit_flag): Mention killing
3698 a buffer in docstring.
3699
fa055055
KH
37002009-07-17 Kenichi Handa <handa@m17n.org>
3701
3702 * casetab.c (shuffle): Fix the logic of setting up the cycle.
3703
042f7b69
YM
37042009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3705
3706 * nsfns.m (Fns_set_alpha): Remove function.
3707 (syms_of_nsfns): Don't defsubr it.
3708
3709 * nsterm.m (ns_get_color): Remove incompatible color formats.
3710 (ns_color_to_lisp): Generate #rrggbb color format string.
3711
4be941e3
RS
37122009-07-16 Richard Stallman <rms@gnu.org>
3713
3714 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
3715 (Fset_buffer_auto_saved): Handle save_length = -2.
3716
4e6b227d
CY
37172009-07-16 Chong Yidong <cyd@stupidchicken.com>
3718
3719 * xterm.c (Qx_gtk_map_stock): New var.
3720
3721 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
3722 of calling intern each time.
3723
a1856973
YM
37242009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3725
3726 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
3727 does tiling.
3728
3729 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
3730
497e54d8
KH
37312009-07-14 Kenichi Handa <handa@m17n.org>
3732
72d36834
KH
3733 * font.c (font_vconcat_entity_vectors): New function.
3734 (struct font_sort_data): New member font_driver_preference.
3735 (font_compare): Check font_driver_preference.
3736 (font_sort_entities): The format of the first argument changed.
3737 (font_delete_unmatched): Likewise.
3738 (font_list_entities): The return type changed.
3739 (font_select_entity): The format of the second argument changed.
1ac9108a
SM
3740 (font_find_for_lface): Adjuste for the above changes.
3741 Don't suppress the checking of C even if the repertory supports it.
3742 (Flist_fonts): Adjust for the above changes.
72d36834 3743
1ac9108a
SM
3744 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
3745 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
497e54d8
KH
3746 Reject a font who has adstyle property that is different from a
3747 langname derived from registry property.
1ac9108a 3748 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
497e54d8 3749
b6046155
EZ
37502009-07-13 Eli Zaretskii <eliz@gnu.org>
3751
3752 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
3753 local copy of dirfilename.
3754
fb6b6049
KH
37552009-07-13 Kenichi Handa <handa@m17n.org>
3756
e2402a5e
KH
3757 * chartab.c (sub_char_table_ref_and_range): Fix the range check
3758 against max_char.
3759
fb6b6049
KH
3760 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
3761 calling XSYMBOL (sym).
3762
65156807
EZ
37632009-07-11 Eli Zaretskii <eliz@gnu.org>
3764
1ac9108a
SM
3765 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
3766 New function.
3767 (directory_files_internal) [WINDOWSNT]:
3768 Bind w32-get-true-file-attributes to either t or nil, depending whether
65156807
EZ
3769 the filesystem of the directory is fast or slow.
3770
3771 * w32.c (logon_network_drive): Don't assume PATH is an absolute
3772 file name.
3773 (is_slow_fs): New function.
3774 (stat): Use it to determine whether to issue more system calls to
3775 get accurate file attributes, when w32-get-true-file-attributes is
3776 `local'.
3777
e0ab5fcf
JD
37782009-07-10 Jan Djärv <jan.h.d@swipnet.se>
3779
3780 * xfns.c (Fx_select_font): Remember last font selected in
31fd7c5c 3781 x_last_font_name and use that the next time. Also try the frame
e0ab5fcf
JD
3782 parameter font-parameter as default to the font dialog.
3783
784ceded
KH
37842009-07-10 Kenichi Handa <handa@m17n.org>
3785
3786 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
3787
fb8edc0b
EZ
37882009-07-09 Eli Zaretskii <eliz@gnu.org>
3789
1ac9108a 3790 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
017dab84 3791
fb8edc0b
EZ
3792 * w32.c (stat): Treat UNC file names as residing on remote
3793 drives. (Bug#3542)
3794
635c75b1
KH
37952009-07-09 Kenichi Handa <handa@m17n.org>
3796
3797 * fontset.c (fontset_find_font): Fix previous change.
3798
c1d5ce94
MA
37992009-07-08 Michael Albinus <michael.albinus@gmx.de>
3800
3801 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
3802 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
3803 error flag.
3804
edb61b39
KH
38052009-07-08 Kenichi Handa <handa@m17n.org>
3806
374bf7e4
KH
3807 * fontset.c (fontset_find_font): Fix the logic of handling
3808 charset_matched.
3809 (font_for_char): Delete unused var.
3810 (generate_ascii_font_name): Delete it.
3811
edb61b39
KH
3812 * coding.h (JIS_TO_SJIS2): Fix the code range check.
3813
3814 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
3815 (encode_coding_sjis): Fix the code range check.
3816
0f3f018c
CY
38172009-07-07 Chong Yidong <cyd@stupidchicken.com>
3818
3819 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
3820 (Fexpand_file_name): Copy string data properly (Bug#3772).
3821
fcaf6f3a
JD
38222009-07-07 Jan Djärv <jan.h.d@swipnet.se>
3823
3824 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
3825 first MapNotify.
3826
6809ca75
KH
38272009-07-07 Kenichi Handa <handa@m17n.org>
3828
3829 * character.h (unibyte_has_multibyte_table): Delete extern.
3830 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
3831
3832 * charset.c (Fset_charset_priority): Update charset_unibyte.
3833 (syms_of_charset): Initialize charset_unibyte.
3834
3835 * character.c (unibyte_has_multibyte_table): Delete it.
3836 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
3837 charset_unibyte.
3838 (multibyte_char_to_unibyte_safe): Likewise.
3839 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
3840
1ac9108a 3841 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6809ca75
KH
3842 (x_produce_glyphs): Likewise.
3843
3844 * .gdbinit (xcharset): Fix the treating $arg0.
3845
ad9e2d54
EZ
38462009-07-04 Eli Zaretskii <eliz@gnu.org>
3847
3848 Emulation of `getloadavg' on MS-Windows.
3849 * w32.c: Include float.h
3850 (g_b_init_get_native_system_info, g_b_init_get_system_times)
3851 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
3852 (get_native_system_info, get_system_times): New functions.
3853 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
3854 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
3855 (globals_of_w32): Initialize g_b_init_get_native_system_info,
3856 g_b_init_get_system_times, and num_of_processors.
3857
0a3472c7
JR
38582009-07-03 Jason Rumney <jasonr@gnu.org>
3859
3860 * w32term.c (w32_initialize): Use standard types.
3861
80904120
EZ
38622009-07-03 Eli Zaretskii <eliz@gnu.org>
3863
3864 * dired.c (Ffile_attributes): Decode user and group names by the
3865 locale's encoding. (Bug#3443)
3866
6978862d
DN
38672009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
3868
f8d23104
DN
3869 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
3870 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
3871
3872 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
3873
3874 * term.c (init_tty): Remove spurious #ifdef.
3875
6978862d
DN
3876 * m/mips.h: Mention this file is also used for netbsd.
3877 * m/pmax.h: Remove file.
3878
e044e4fc
JD
38792009-07-03 Jan Djärv <jan.h.d@swipnet.se>
3880
3881 * xterm.h (struct x_display_info): Add invisible_cursor.
3882 (struct x_output): Add current_cursor.
3883
3884 * xterm.c (XTtoggle_invisible_pointer): New function.
3885 (x_define_frame_cursor): Don't define cursor if invisible or the
3886 same as before. Set current_cursor.
3887 (x_create_terminal): Set toggle_invisible_pointer_hook.
3888
3889 * xfns.c (make_invisible_cursor): New function.
3890 (x_set_mouse_color): Call make_invisible_cursor.
3891 Set current_cursor.
3892 (x_window): Set current_cursor.
3893
3894 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
3895
3896 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
3897 inserting a character.
3898 (read_avail_input): Call frame_make_pointer_visible.
3899
3900 * frame.c (Vmake_pointer_invisible): New variable.
1ac9108a
SM
3901 (frame_make_pointer_invisible, frame_make_pointer_visible):
3902 New functions.
e044e4fc
JD
3903 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
3904
3905 * frame.h: Declare frame_make_pointer_invisible and
3906 frame_make_pointer_visible.
3907 (struct frame): Add pointer_invisible.
3908
574c8efa
JD
39092009-07-02 Jan Djärv <jan.h.d@swipnet.se>
3910
7b507248
JD
3911 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
3912 frame isn't visible.
3913 (xg_frame_resized): If width/height is -1, get size of window
3914 from X server.
3915
3916 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
3917 for MapNotify.
3918
835bdaa7 3919 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
31fd7c5c 3920 here or call change_frame_size. Just call flush_and_sync.
1ac9108a 3921 (flush_and_sync): Reintroduce.
574c8efa 3922
3f1c6666 39232009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 3924
31fd7c5c 3925 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
acd51077
JD
3926
3927 * xterm.c (x_handle_net_wm_state): Also look for sticky.
3928 (x_term_init): Initialize Xatom_net_wm_state_sticky.
3929
3930 * frame.h: Declare Qsticky.
3931
cad9ef74
JD
3932 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
3933
3934 * nsfns.m (ns_frame_parm_handlers): Ditto.
3935
3936 * frame.c: Declare Qsticky.
3937 (frame_parms): Add sticky.
3938
3939 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
3940
3941 * xterm.h: Declare x_set_sticky.
3942
3943 * xterm.c (x_set_sticky): New function.
3944
69b16610
JD
3945 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
3946 (xg_tool_bar_menu_proxy): Attach enter/leave events to
3947 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
3948
3949 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
3950
3951 * frame.c: Qmaximized is new.
3952 (x_set_frame_parameters): Do not handle fullscreen specially.
3953 Only set width and height if explicitly set.
3954 (x_set_fullscreen): Handle Qmaximized.
3955 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
3956 (syms_of_frame): Initialize Qmaximized.
3957
1ac9108a
SM
3958 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
3959 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3f1c6666
JD
3960
3961 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
31fd7c5c
JB
3962 for Expose event. Add call to x_check_fullscreen for MapNotify event.
3963 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3f1c6666
JD
3964 set gravity to NorthWestGravity when USE_GTK.
3965 (set_wm_state): New function.
31fd7c5c 3966 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3f1c6666
JD
3967 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
3968 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
31fd7c5c 3969 or the case when no window manager is running. That means remove calls
3f1c6666
JD
3970 to x_real_positions and x_fullscreen_adjust.
3971
3972 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
3973 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
3974 flush_and_sync.
3975 (xg_height_changed): New function.
3976 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1ac9108a
SM
3977 and gtk_window_set_policy. Set frame gravity after parsing the
3978 geometry string.
3f1c6666
JD
3979 (xg_update_frame_menubar, free_frame_menubar)
3980 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
3981 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
3982 Remove calls to xg_frame_set_char_size.
3983
fd503d99
KH
39842009-07-01 Kenichi Handa <handa@m17n.org>
3985
3986 * keyboard.c (decode_keyboard_code): New function.
3987 (tty_read_avail_input): Decode the input bytes if necessary.
3988
1ac9108a
SM
3989 * coding.c (setup_coding_system):
3990 Initialize coding->carryover_bytes to 0.
fd503d99
KH
3991 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
3992 use Qno_conversion.
3993
24ed93fb
YM
39942009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3995
3996 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
3997
99061dfc
CY
39982009-06-30 Chong Yidong <cyd@stupidchicken.com>
3999
1ac9108a 4000 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
99061dfc 4001
ff90fbde
JR
40022009-06-30 Jason Rumney <jasonr@gnu.org>
4003
4004 * w32term.c (w32_initialize): Use GetModuleHandle for library that
4005 is already loaded.
4006 Set user model ID if supported (bug#1849).
4007
5f445726
JM
40082009-06-29 Jim Meyering <meyering@redhat.com>
4009
4010 Remove useless if-before-xfree test.
4011 * nsfont.m (nsfont_close): Remove useless test.
4012 * term.c (delete_tty): Likewise.
4013 * w32.c (system_process_attributes): Likewise.
4014 * w32font.c (w32font_close): Likewise.
4015 * xfaces.c (x_free_gc): Likewise.
4016 * xselect.c (buffer): Likewise.
4017
b9607587
AS
40182009-06-28 Andreas Schwab <schwab@linux-m68k.org>
4019
4020 * process.c (send_process): Keep decoded string in a local
4021 variable and protect it from GC. (Bug#3521)
4022
89ba96f4
EZ
40232009-06-28 Eli Zaretskii <eliz@gnu.org>
4024
4025 * term.c (create_tty_output) [MSDOS]: #ifdef away.
4026 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
4027
098a1589
CY
40282009-06-28 Chong Yidong <cyd@stupidchicken.com>
4029
485422be
CY
4030 * xdisp.c (start_display, handle_face_prop)
4031 (move_it_vertically_backward, cursor_row_fully_visible_p)
1ac9108a
SM
4032 (redisplay_window, try_window_id, produce_image_glyph):
4033 Delete some #ifdef-ed out code chunks that are now obsolete.
485422be 4034
098a1589
CY
4035 * xterm.c (x_update_window_begin, x_new_focus_frame)
4036 (x_scroll_bar_handle_click, handle_one_xevent)
4037 (handle_one_xevent, XTread_socket, x_focus_on_frame)
4038 (x_make_frame_visible, x_make_frame_invisible)
4039 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
4040 code chunks that are now obsolete.
4041
78c38319
MA
40422009-06-28 Michael Albinus <michael.albinus@gmx.de>
4043
4044 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
4045 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
4046 for hours, when optimzation is enabled.
4047 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
4048 (xd_read_message): Make them static.
4049
4189ed40
CY
40502009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
4051
4052 * term.c (turn_on_face): Allow simultaneously bold and dim
4053 terminal faces (Bug#3530).
4054
cd9b5e16
CY
40552009-06-27 Chong Yidong <cyd@stupidchicken.com>
4056
4e23bedb
CY
4057 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
4058
cd9b5e16
CY
4059 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
4060 truncation glyphs (Bug#3686).
4061
07cc3c35
GM
40622009-06-27 Glenn Morris <rgm@gnu.org>
4063
4064 * m/pmax.h: Restore file, with only netbsd portions.
4065
31fd7c5c 40662009-06-26 David Reitter <david.reitter@gmail.com>
25c5550f 4067
cd9b5e16 4068 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 4069
42d4a64f
KH
40702009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
4071
4072 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
4073 the arg FORCE_SYMBOL.
4074
930fe55b 40752009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
4076
4077 * fontset.c (fontset_find_font): When a usable rfont_def is found
4078 in a fallback font-group, make it the first element of the group.
4079
57ebc3fd
CY
40802009-06-24 Chong Yidong <cyd@stupidchicken.com>
4081
4082 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
4083
f084f942
KH
40842009-06-24 Kenichi Handa <handa@m17n.org>
4085
4086 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
4087 set for C.
4088 (fontset_font): Record the availability of a font for C both in
4089 the realized fontsets of the current one and the default one.
4090
2f686c87
DN
40912009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
4092
4093 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
4094 conditional, it is always defined on AIX.
4095
666e158e
MB
40962009-06-23 Miles Bader <miles@gnu.org>
4097
4098 * window.c (Vrecenter_redisplay): New variable.
4099 (syms_of_window): Initialize it.
4100 (Qtty): New extern declaration.
4101 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
4102
c6da7cd2
JM
41032009-06-23 Jim Meyering <meyering@redhat.com>
4104
1ac9108a
SM
4105 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
4106 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
632c2030 4107 pointer dereferences are guaranteed to be valid.
c6da7cd2 4108
678dca3d
KH
41092009-06-23 Kenichi Handa <handa@m17n.org>
4110
74d75424
KH
4111 * emacs.c (main): Call init_font ().
4112
4113 * font.h (Vfont_log): Extern it.
4114 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
4115
4116 * font.c (font_sort_entities, font_list_entities)
4117 (font_matching_entity, font_open_entity)
4118 (font_close_object): Change font_add_log to FONT_ADD_LOG.
4119 (Vfont_log): Delete static.
4120 (font_log_env_checked): Delete this variable.
4121 (font_add_log): Don't check font_log_env_checked.
4122 (font_deferred_log): Check Vfont_log.
4123 (init_font): New function.
4124
678dca3d
KH
4125 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
4126
4127 * w32font.c: Change font_add_log to FONT_ADD_LOG.
4128
4129 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
4130
4131 * xfont.c: Change font_add_log to FONT_ADD_LOG.
4132
4133 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
4134 (face_for_char): Don't call font_deferred_log here.
4135 (font_for_char): Likewise.
4136
8a668709
CY
41372009-06-22 Chong Yidong <cyd@stupidchicken.com>
4138
9a01ee33
CY
4139 * w32term.c (x_draw_glyph_string): Use the glyph string's width
4140 rather than its background_width for drawing the overline and
4141 underline (Bug#489).
4142
4143 * xterm.c (x_draw_glyph_string): Use the glyph string's width
4144 rather than its background_width for drawing the overline and
4145 underline (Bug#489).
ec7c9926
CY
4146 (xg_default_icon_file): New variable.
4147 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
4148 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 4149
8a668709
CY
4150 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
4151 (load_overlay_strings): Remove externs.
4152 (fast_find_position): Function deleted.
4153 (mouse_face_from_buffer_pos): New function, based on
4154 fast_find_position. Correctly handle before-strings,
4155 display-strings, and after-strings (Bug#1220).
4156 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
4157
4d4c02d8
CY
41582009-06-21 Chong Yidong <cyd@stupidchicken.com>
4159
1ac9108a 4160 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4d4c02d8
CY
4161 (move_it_in_display_line_to, move_it_in_display_line_to)
4162 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
4163
70243478
CY
41642009-06-21 Chong Yidong <cyd@stupidchicken.com>
4165
4166 * Branch for 23.1.
4167
13087e59
JR
41682009-06-21 Jason Rumney <jasonr@gnu.org>
4169
4170 * w32term.c (keyboard_codepage): New static variable.
4171 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
4172 (w32_read_socket) [WM_CHAR]: Use it to decode character
4173 input (bug#3237).
4174 (w32_initialize): Initialize it.
4175 (codepage_for_locale): New function.
4176
4735b74e
KR
41772009-06-20 Ken Raeburn <raeburn@raeburn.org>
4178
4179 * process.c (status_message): Pass Faset index argument as a lisp
4180 object, so as to work with USE_LISP_UNION_TYPE.
4181
0e727afa
YM
41822009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4183
4184 * coding.c (Ffind_coding_systems_region_internal):
4185 Cache checked characters.
4186
cf299835
KH
41872009-06-18 Kenichi Handa <handa@m17n.org>
4188
1ac9108a 4189 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
cf299835 4190
90f20d94
AS
41912009-06-18 Andreas Schwab <aschwab@redhat.com>
4192
4193 * xdisp.c (redisplay_internal): Check that the frame is still
4194 live after redisplay of its windows.
4195 (redisplay_windows): Check that the window is still live.
4196
7f1faf1c
KH
41972009-06-17 Andreas Schwab <schwab@linux-m68k.org>
4198
4199 * coding.c (detect_coding_utf_16): Fix previous change.
4200
cc13543e
KH
42012009-06-16 Kenichi Handa <handa@m17n.org>
4202
4203 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
4204 UTF-16 by checking the dispersion of Eth and Oth bytes.
4205
977b85f4
AS
42062009-06-15 Andreas Schwab <schwab@linux-m68k.org>
4207
4208 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
4209
66bd43d1
KH
42102009-06-15 Kenichi Handa <handa@m17n.org>
4211
4212 * process.c (status_message): Fix previous change. Be sure to
4213 decode a localized string.
4214
cb5ca9c5
YM
42152009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4216
4217 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
4218 add comment explaining why.
4219
ec7709ba 42202009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 4221
ec7709ba 4222 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 4223
4b7f335c
AR
42242009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
4225
4226 * nsfont.m (ns_attribute_value): Remove.
4227 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
4228 (ns_has_attribute): Shrink the normal range.
4229 (ns_findfonts): Don't worry about requested spec in determining
4230 need for synthItal.
e41820ee 4231 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 4232
73b26103
SZ
42332009-06-14 Seiji Zenitani <zenitani@mac.com>
4234
4235 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
4236
5753e4da
KH
42372009-06-11 Kenichi Handa <handa@m17n.org>
4238
4239 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
4240 overhang for the static composition case.
4241
3561b671
KH
42422009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4243
5753e4da
KH
4244 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
4245 overhang for the automatic composition case.
4246
3561b671
KH
4247 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
4248 composition case.
4249
852bbd41
CY
42502009-06-10 Chong Yidong <cyd@stupidchicken.com>
4251
4252 * xdisp.c (get_next_display_element): When handling wrap-prefix
4253 and line-prefix, treat \n as a control character (bug#3502).
4254
9903d1e6
KH
42552009-06-10 Kenichi Handa <handa@m17n.org>
4256
4257 * font.c (font_parse_family_registry): Fix for one-char foundry.
4258 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
4259
0bcbaaaa
CY
42602009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
4261
4262 * process.c (status_message): Fix handling of multibyte signal
4263 string (Bug#3499).
4264
40aa3f13
JM
42652009-06-09 Jim Meyering <meyering@redhat.com>
4266
1f80c7e2
CY
4267 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
4268 color name is missing.
40aa3f13 4269
72d51285
KH
42702009-06-09 Kenichi Handa <handa@m17n.org>
4271
4272 * charset.c (Fmap_charset_chars): In docstring, state clearly that
4273 FROM-CODE and TO-CODE are codepoints of CHARSET.
4274
c1d04d84
AR
42752009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
4276
4277 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
4278
42792009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
4280
4281 Changes to support :script/:lang/:otf in NS font driver.
4282 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
4283 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
4284 indicate not part of font driver interface, and change callers.
4285 (ns_get_family): Remove pointless null check.
4286 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
4287 ns_spec_to_descriptor, ns_descriptor_to_entity.
4288 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
4289 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
4290 (ns_spec_to_descriptor, ns_descriptor_to_entity)
4291 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
4292 (ns_get_req_script, ns_accumulate_script_ranges)
4293 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
4294 New functions.
4295 (nsfont_list, nsfont_match): Use ns_findfonts.
4296 (nsfont_open): Use font descriptor instead of traits.
4297 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
4298 (dump_glyphstring): Rename to ns_dump_glyphstring.
4299
c7eb9816
AR
4300 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
4301
c1d04d84
AR
4302 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
4303
4304 * fontset.c (fontset_from_font): Remove NS-specific code.
4305
ec7709ba 43062009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
4307
4308 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
4309 nonactive windows.
4310
31fd7c5c 43112009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
c1d04d84 4312
1ac9108a 4313 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
c1d04d84 4314
68852c13 43152009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
4316
4317 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
4318
6756cd1d
CY
43192009-06-07 Chong Yidong <cyd@stupidchicken.com>
4320
4321 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
4322 account for the overflowing of newlines into the last glyph on the
4323 display line (Bug#3482).
4324
28bf482a
DR
43252009-06-05 David Reitter <david.reitter@gmail.com>
4326
ec7709ba
JB
4327 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
4328 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
4329 Fns_selection_exists_p, Fns_selection_owner_p.
4330
fdb55376
JR
43312009-06-03 Jason Rumney <jasonr@gnu.org>
4332
4333 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
4334 available. (Bug#3379)
4335
05129fbe
KH
43362009-05-29 Kenichi Handa <handa@m17n.org>
4337
1ac9108a
SM
4338 * coding.c (get_translation_table):
4339 Check Venable_character_translation.
05129fbe 4340
ec7709ba 43412009-05-26 David Reitter <david.reitter@gmail.com>
15891144 4342
ec7709ba
JB
4343 * nsterm.m (ns_raise_frame): Only raise frame if visible.
4344 (x_make_frame_visible): Move frame to front rather than calling
15891144 4345 ns_raise_frame().
ec7709ba 4346 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 4347 isn't key window.
ec7709ba 4348 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
4349 drawRect may be called by NSView even if the frame is hidden.
4350
ec7709ba
JB
4351 * nsfns.m (Fx_create_frame): Follow other ports in
4352 determining visibility; default to t. Ensure async_visible is set.
15891144 4353
21f73755
EZ
43542009-05-23 Eli Zaretskii <eliz@gnu.org>
4355
4356 * dired.c (Ffile_attributes): Doc fix.
4357
34001e41
CY
43582009-05-22 Chong Yidong <cyd@stupidchicken.com>
4359
4360 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
4361
46306a17
SM
43622009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
4363
4364 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
4365 and xfont_scratch_props.
4366 (syms_of_xfont): Do it here instead.
4367 (xfont_find_ccl_program): Delete, unused.
4368 (xfont_open): Delete unused var `i'.
4369
ef6e0694
KH
43702009-05-21 Kenichi Handa <handa@m17n.org>
4371
4372 * fontset.c (Qlatin): Don't make it static.
4373
46306a17
SM
4374 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
4375 New functions.
ef6e0694
KH
4376 (xfont_scripts_cache, xfont_scratch_props): New variables.
4377 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
4378 (xfont_list_pattern): Argument changed. Callers changed.
4379 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
4380 (xfont_list): Don't reject a font spec with :script property.
4381 (xfont_has_char): Fix setting of encoding.
4382 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
4383 xfont_scratch_props.
4384
43852009-05-19 Kenichi Handa <handa@m17n.org>
4386
46306a17 4387 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
4388 Callers changed.
4389
43902009-05-18 Kenichi Handa <handa@m17n.org>
4391
4392 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
4393
ac71ced7
SM
43942009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
4395
4396 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
4397 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
4398
1c6d1051
YM
43992009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4400
4401 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
4402 (x_delete_terminal): Dissociate resource database from display and
4403 then call XrmDestroyDatabase before closing display.
4404
9b9b779c
AR
44052009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
4406
4407 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
4408 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
4409 whether selected frame is viable before raising it (based on patch
4410 by David Reitter), and improve commentary.
4411 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 4412
cccd42d5
KH
44132009-05-15 Kenichi Handa <handa@m17n.org>
4414
4415 * font.c (Ffont_spec): Check arguments.
4416
337fbd17
CY
44172009-05-14 Chong Yidong <cyd@stupidchicken.com>
4418
4419 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
4420 weight when testing attributes (Bug#3282).
4421
47a6002f
JD
44222009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4423
4424 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
4425 what we expect to get in the next ConfigureNotify event.
4426
9cb363db
YM
4427 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
4428 before Xft one (Bug#1696).
4429
b9126609
CY
44302009-05-07 David Reitter <david.reitter@gmail.com>
4431
4432 * nsfns.m (Fx_display_planes): Compute bitplanes using
4433 NSBitsPerPixelFromDepth (Bug#3207).
4434
27a69fd9
CY
44352009-05-10 Chong Yidong <cyd@stupidchicken.com>
4436
4437 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
4438
00f37552
TTN
44392009-05-10 Ulrich Mueller <ulm@gentoo.org>
4440
4441 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
4442
2d82a920
DR
44432009-05-07 David Reitter <david.reitter@gmail.com>
4444
ec7709ba
JB
4445 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
4446 Respect mouse face background.
2d82a920 4447
46b0d52d
DR
44482009-05-07 David Reitter <david.reitter@gmail.com>
4449
ec7709ba
JB
4450 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
4451 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
4452 in ns_update_begin and ns_update_end.
4453
ce1b23bb
SM
44542009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
4455
5996e1b7
SM
4456 * nsfns.m (ns_get_screen): Rewrite.
4457 Don't presume selected-frame is of type `ns'.
4458
ba98e3a0
SM
4459 * font.c (font_update_drivers): Sanity fallback to avoid disabling
4460 all drivers.
4461
ce1b23bb
SM
4462 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
4463
bcda200f
YM
44642009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4465
4466 * keyboard.h (add_user_signal): Fix typo in extern.
4467
4468 * lisp.h (add_user_signal): Remove extern.
4469
4470 * unexelf.c (unexec): Consider a section to precede the .bss section
4471 if its addresses overlap that of .bss.
4472 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
4473 instead of dumping process.
4474
864660a2
SM
44752009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
4476
4477 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
4478
50da4e56
SM
44792009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
4480
4481 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
4482
51520a1a
DN
44832009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
4484
4485 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
4486 any statements.
4487
409ea3a1
AS
44882009-05-02 Andreas Schwab <schwab@linux-m68k.org>
4489
59c4c60f
AS
4490 * process.c (read_process_output): Make sure the current buffer is
4491 always restored.
4492
409ea3a1
AS
4493 * coding.c (record_conversion_result): Don't modify
4494 Vlast_code_conversion_error for successful result.
4495 (alloc_destination): Don't clobber conversion result. (Bug#1650)
4496
56f00ed2
KH
44972009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
4498
4499 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 4500 (load_charset_map): Remove unnecessary code.
56f00ed2 4501
4491c9d2
DR
45022009-04-30 David Reitter <david.reitter@gmail.com>
4503
35f5b128 4504 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
4505 through f24.
4506
6970f632
CY
45072009-04-30 Chong Yidong <cyd@stupidchicken.com>
4508
4509 * xfaces.c (face_at_buffer_position): New arg base_face_id.
4510
4511 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
4512 face_at_buffer_position.
4513 (face_before_or_after_it_pos, get_next_display_element)
4514 (note_mouse_highlight): Update face_at_buffer_position call.
4515
4516 * term.c (term_mouse_highlight):
4517 * msdos.c (IT_note_mouse_highlight):
4518 * fontset.c (Finternal_char_font):
35f5b128 4519 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
4520
4521 * dispextern.h (face_at_buffer_position): Update prototype.
4522
0c616f63
KH
45232009-04-30 Kenichi Handa <handa@m17n.org>
4524
35f5b128 4525 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 4526
ad3aaf33
AS
45272009-04-29 Andreas Schwab <schwab@linux-m68k.org>
4528
4529 * callproc.c (Fcall_process): Fix GC protection. Make sure
4530 current buffer is always restored.
4531
c3c963a0
YM
45322009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4533
4534 * atimer.c (init_atimer): Also clear stopped_atimers.
4535
4536 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
4537
7e3386cb
YM
4538 * process.c (create_process): Clean up merger residues of
4539 2008-07-17 change.
4540
91f68422
CY
45412009-04-29 Ulrich Mueller <ulm@gentoo.org>
4542
4543 * lread.c (Vread_circle): New variable.
4544 (read1): Disable recursive read if Vread_circle is nil.
4545
24b34550
KH
45462009-04-29 Kenichi Handa <handa@m17n.org>
4547
4548 * fontset.h (set_default_ascii_font): Delete extern.
4549
4550 * fontset.c (set_default_ascii_font): Delete this unused function.
4551
4552 * frame.c (x_set_font): When ARG is a font-object, check if the
4553 font-object matches with the ASCII font-spec of the frame's
9c358bda 4554 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 4555
77bf07e1
AS
45562009-04-28 Andreas Schwab <schwab@linux-m68k.org>
4557
4558 * fns.c (Flocale_info): Protect vector from GC during decoding.
4559
4560 * process.c (Fstart_process): Protect argv strings from GC during
4561 encoding.
4562
2c55aacf
AS
45632009-04-27 Andreas Schwab <schwab@linux-m68k.org>
4564
4565 * sysdep.c: Include <ctype.h>.
4566
b892d3c9
DR
45672009-04-27 David Reitter <david.reitter@gmail.com>
4568
35f5b128 4569 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
4570 Remove commented-out code.
4571
9d0644c4
JB
45722009-04-26 Johan Bockgård <bojohan@gnu.org>
4573
4574 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
4575
b7053016
JR
45762009-04-25 Jason Rumney <jasonr@gnu.org>
4577
4578 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
4579
4e8231f3
YM
45802009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4581
4582 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
4583 Swap bytes in short integer if fringe bitmap width > 8.
4584
493dcf2c
KH
45852009-04-23 Kenichi Handa <handa@m17n.org>
4586
4587 * xfaces.c (Fx_list_fonts): If a font size is specified in
4588 PATTERN, set it in returned scalable fonts.
4589
401e9e57
CY
45902009-04-22 Chong Yidong <cyd@stupidchicken.com>
4591
708e05dc
CY
4592 * keyboard.c (Fset_input_meta_mode): Doc fix.
4593
4594 * dispnew.c (Fsend_string_to_terminal): Doc fix.
4595
1ac9108a 4596 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
708e05dc
CY
4597
4598 * coding.c (Fterminal_coding_system): Doc fix.
4599
4600 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
4601 (Fx_display_pixel_height, Fx_display_planes)
4602 (Fx_display_color_cells, Fx_server_max_request_size)
4603 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
4604 (Fx_display_mm_height, Fx_display_mm_width)
4605 (Fx_display_backing_store, Fx_display_visual_class)
1ac9108a
SM
4606 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
4607 Doc fixes, replacing "terminal id" with "terminal object".
708e05dc
CY
4608 (check_x_display_info): Handle terminal objects instead of
4609 terminal ids.
4610
401e9e57
CY
4611 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
4612 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1ac9108a
SM
4613 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
4614 Doc fixes, replacing "terminal id" with "terminal object".
401e9e57 4615
df80c7f0
KH
46162009-04-21 Kenichi Handa <handa@m17n.org>
4617
5a8f12af 4618 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 4619 (font_score): Check AVGWIDTH too.
908567ef 4620
df80c7f0
KH
4621 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
4622 worst case.
1ac9108a
SM
4623 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
4624 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
df80c7f0 4625
705af33f
JR
46262009-04-19 Jason Rumney <jasonr@gnu.org>
4627
4628 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 4629 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
4630
4631 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
4632 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
4633 get_phys_cursor_geometry.
4634
b71ac3dd 4635 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
4636 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
4637 using get_phys_cursor_geometry.
4638
4639 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
4640 correctly calculated.
4641
dc2933eb
JD
46422009-04-19 Jan Djärv <jan.h.d@swipnet.se>
4643
1ac9108a
SM
4644 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
4645 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
dc2933eb
JD
4646 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
4647 is deprecated.
4648
973e7849
AS
46492009-04-18 Andreas Schwab <schwab@linux-m68k.org>
4650
4651 * font.c (font_put_frame_data): Use xfree instead of free.
4652
314d66f4
JB
46532009-04-17 Juanma Barranquero <lekktu@gmail.com>
4654
4655 * w32font.c (Qja, Qko): Remove declarations.
4656 (syms_of_w32font): Don't DEFSYM them.
4657
cf702558
CY
46582009-04-17 Chong Yidong <cyd@stupidchicken.com>
4659
4660 * font.c (Qja, Qko): Move definitions here from ftfont.c.
4661
4662 * font.h (Qja, Qko): Extern them.
4663
4664 * ftfont.c (Qja, Qko): Remove declarations.
4665
4666 * xfont.c (Qja, Qko): Remove declarations.
4667
b50504f5
KH
46682009-04-17 Kenichi Handa <handa@m17n.org>
4669
bde25748
KH
4670 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
4671 string from a vector to handle Latin-1 characters correctly.
4672
b50504f5
KH
4673 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
4674 entity even if the cache hits.
4675
f4646fff
AS
46762009-04-16 Andreas Schwab <schwab@linux-m68k.org>
4677
4678 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 4679 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 4680
e7deaab0
AS
4681 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
4682 * lisp.h: Adjust prototypes.
4683
0a0e7d49
CY
46842009-04-16 Chong Yidong <cyd@stupidchicken.com>
4685
4686 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
4687 change (Bug#3003).
4688
3c908a57
KH
46892009-04-16 Kenichi Handa <handa@m17n.org>
4690
1ac9108a 4691 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
bd0af90d
KH
4692
4693 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
4694 adstyle.
4695
4696 * ftfont.c (Qja, Qko): Don't make them static.
4697 (enum ftfont_cache_for): New enum.
4698 (fc_charset_table): Undo the previous change.
4699 (ftfont_get_latin1_charset): Delete it.
1ac9108a
SM
4700 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
4701 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
bd0af90d
KH
4702 non-scarable font, try to get AVERAGE_WIDTH.
4703 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
4704 Change ft_face_cache from a list of a hash-table. Don't check
4705 `ja' and `ko' adstyle here.
4706 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
4707 FTFONT_CACHE_FOR_CHARET.
4708 (ftfont_get_charset): Undo the previous change.
1ac9108a 4709 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
bd0af90d
KH
4710 (ftfont_close): Likewise.
4711 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
4712
4713 * font.c (font_sort_entites): Change the meaning of the arg
4714 BEST-ONLY. Don't optimize for VEC of lenght 1.
4715 (font_select_entity): Just return the value of font_sort_entites.
4716
4717 * xfaces.c (merge_face_vectors): Reflect font properties in
4718 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
4719 font_clear_prop if a face attribute doesn't change.
4720
3c908a57
KH
4721 * charset.h (charset_ksc5601): Extern it.
4722
4723 * charset.c (charset_ksc5601): New variable.
4724 (Fdefine_charset_internal): Set charset_ksc5601.
4725 (init_charset_once): Initialize charset_ksc5601 to -1.
4726
d65859c3
DN
47272009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
4728
4729 * fileio.c (history_delete_duplicates): Remove unused declaration.
4730
4731 * callint.c (history_delete_duplicates): New declaration.
4732 (Fcall_interactively): Remove command history duplicates when
4733 history_delete_duplicates is true.
4734
3ba010e5
EZ
47352009-04-14 Eli Zaretskii <eliz@gnu.org>
4736
4737 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
4738
06f19b91
KH
47392009-04-14 Kenichi Handa <handa@m17n.org>
4740
4741 * font.c (Ffont_info): Fix docstring. Fix the second element of
4742 the returned value (bug#2949).
4743
2cce8bfc
CY
47442009-04-14 Chong Yidong <cyd@stupidchicken.com>
4745
4746 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
4747
d156542d
KH
47482009-04-14 Kenichi Handa <handa@m17n.org>
4749
4750 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
4751 encoding charset is ascii_compatible.
4752
4753 * charset.c (Fdefine_charset_internal): Make charset
4754 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
4755 code_offset is 0, and covers all ASCII characters.
4756
86fa089e
SM
47572009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
4758
4759 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
4760 (ns_string_to_pasteboard_internal):
4761 * nsmenu.m (process_dialog):
4762 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
4763 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
4764 * lisp.h (Fx_load_color_file): Declare.
4765
a8a3728b
KH
47662009-04-13 Kenichi Handa <handa@m17n.org>
4767
1ac9108a 4768 * font.c (font_delete_unmatched): Preserve the order of list elements.
a8a3728b
KH
4769 (font_select_entity): Suppress the code to optimize for the same
4770 kind of fonts.
4771 (font_load_for_lface): Get a font that supports at least ASCII
4772 characters.
4773
4774 * ftfont.c (Qja, Qko): New variables.
4775 (fc_charset_table): Delete uniquifier data for iso8859-1.
4776 (ftfont_get_latin1_charset): New function.
4777 (get_adstyle_property): New function.
4778 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
4779 bitmap fonts.
4780 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
4781 Delete iso-8859-1 range from the charset of fonts whose adstyle is
4782 `ko' or `ja'.
4783 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1ac9108a 4784 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
a8a3728b
KH
4785 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
4786 property.
4787 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
4788 (syms_of_ftfont): DEFSYM Qja and Qko.
4789
483670b5
KH
47902009-04-09 Kenichi Handa <handa@m17n.org>
4791
12b55765
KH
4792 * charset.c (map_charset_chars): For a charset of `superset'
4793 method, fix calculation of code range.
4794
483670b5
KH
4795 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
4796 from the list of extra properties.
4797 (font_clear_prop): Be sure to delete `:name' font property.
4798
57d3b93b
KH
47992009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4800
b4b2c2ca
YM
4801 * dispnew.c (redraw_overlapping_rows): Fix detection of
4802 overlapping for topmost and bottommost rows.
4803
1ac9108a 4804 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
57d3b93b 4805
472c3609
JR
48062009-04-06 Jason Rumney <jasonr@gnu.org>
4807
4808 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
4809
ab193662
KH
48102009-04-06 Kenichi Handa <handa@m17n.org>
4811
4812 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
4813
4814 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
4815
0c26f026
KH
48162009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4817
4818 * ftfont.c (ftfont_open): Fix checking of the return value of
4819 FT_Load_Char. Fix setting font->underline_thickness.
4820
e173bbce
CY
48212009-04-04 Chong Yidong <cyd@stupidchicken.com>
4822
4823 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
4824 (Fterminal_parameters, Fterminal_parameter)
4825 (Fset_terminal_parameter): In doc string, refer to terminal
4826 objects rather than terminal ids.
4827
693a2698
EZ
48282009-04-04 Eli Zaretskii <eliz@gnu.org>
4829
4830 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
4831 ret_lim_data. (Bug#2867)
4832
d5221487
CY
48332009-04-03 Chong Yidong <cyd@stupidchicken.com>
4834
4835 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
4836 so they don't get wider than the window, matching 2006-01-23
4837 change to the partner function in xdisp.c (Bug#2800).
4838
223509a3
KH
48392009-04-03 Kenichi Handa <handa@m17n.org>
4840
4841 * print.c (print_object): Make each lowest sub_char_table start a
4842 new line (Bug#2866).
4843
74fcd0b1
KH
48442009-04-02 Kenichi Handa <handa@m17n.org>
4845
4846 * fontset.c (fontset_font): Record no-font when a fontset
4847 explicitly tells not to try another font-specs.
4848
c542407d
SM
48492009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
4850
4851 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
4852
e3869731
KH
48532009-03-30 Kenichi Handa <handa@m17n.org>
4854
d8d2f142
KH
4855 * fontset.c (fontset_from_font): Specify only registry in a
4856 font-spec for all characters supported by that registry.
4857
e3869731
KH
4858 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
4859 even if HAVE_M17N_FLT is not defined.
4860
5da5f805
CY
48612009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
4862
4863 * ftfont.c: Conditionalize prototyping and use of
4864 ftfont_variation_glyphs.
4865
ab226c50
SM
48662009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
4867
9628fed7
SM
4868 * frame.c (delete_frame): Work around compiler bug.
4869
4870 * editfns.c (general_insert_function): Adjust to insdel.c changes.
4871 * insdel.c (prepare_to_modify_buffer, signal_before_change):
4872 Some more EMACS_INT.
4873 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
4874
4875 * xdisp.c (dump_glyph): Fix typo.
4876
ae19ba7c
SM
4877 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
4878 (adjust_markers_gap_motion, adjust_markers_for_delete)
4879 (adjust_markers_for_insert, adjust_point)
4880 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
4881 (make_gap, copy_text, count_size_as_multibyte, insert)
4882 (insert_and_inherit, insert_before_markers)
4883 (insert_before_markers_and_inherit, insert_1)
4884 (count_combining_before, count_combining_after, insert_1_both)
4885 (insert_from_string, insert_from_string_before_markers)
4886 (insert_from_string_1, insert_from_gap, insert_from_buffer)
4887 (insert_from_buffer_1, adjust_after_replace)
4888 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
4889 (replace_range_2, del_range, del_range_1, del_range_byte)
4890 (del_range_both, del_range_2, modify_region)
4891 (prepare_to_modify_buffer, signal_before_change)
4892 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
4893 for buffer positions and sizes.
4894 * lisp.h: Adjust prototypes accordingly.
4895
4896 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
4897 (non_regular_inserted, non_regular_nbytes, read_non_regular)
4898 (Finsert_file_contents): Use EMACS_INT for buffer positions.
4899
ab226c50
SM
4900 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
4901
46dfb8fb
JD
49022009-03-27 Jan Djärv <jan.h.d@swipnet.se>
4903
4904 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
4905 lines and columns so we keep the same pixel height and width.
4906
4907 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
4908 the property _NET_WM_STATE has changed.
46dfb8fb
JD
4909 (x_handle_net_wm_state): New function to update frame parameter
4910 fullscreen.
4911 (x_term_init): Initialize atoms for _NET_WM_STATE.
4912
4913 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
4914
d347e494
SM
49152009-03-27 Kevin Ryde <user42@zip.com.au>
4916
4917 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
4918 Gpm_GetEvent as an error that justifies closing the filedescriptor.
4919 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
4920 (Fgpm_mouse_stop): Pass that new parameter.
4921 * termhooks.h (close_gpm): Adjust prototype.
4922
84db11d6
SM
49232009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
4924
c95a5008
SM
4925 * lisp.h (Fx_focus_frame): Declare.
4926
84db11d6
SM
4927 * callint.c (Fcall_interactively): For '^' just delegate the work to
4928 handle-shift-selection.
4929 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
4930
0a1958d6
CY
49312009-03-24 Chong Yidong <cyd@stupidchicken.com>
4932
0bfdff23
CY
4933 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
4934
0a1958d6
CY
4935 * data.c (Qinteractive_form): New variable.
4936 (Finteractive_form): Use it.
4937
4938 * eval.c (Fcommandp): Use Qinteractive_form.
4939
58aec0d6
JR
49402009-03-24 Jason Rumney <jasonr@gnu.org>
4941
4942 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
4943 Calculate total size precisely. Decode environment variables
4944 before substituting. (Bug#38)
4945
553dd618
KH
49462009-03-24 Kenichi Handa <handa@m17n.org>
4947
4948 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 4949 encoding (Bug#2722).
553dd618 4950
c39ea606
JD
49512009-03-23 Jan Djärv <jan.h.d@swipnet.se>
4952
4953 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
4954 that gdpy is set.
4955
bc9b2b5e
AM
49562009-03-22 Alan Mackenzie <acm@muc.de>
4957
4958 * callint.c (Finteractive): Clarify the doc string - even
4959 promptless elements need \n separators.
4960
9f995a76
JR
49612009-03-22 Jason Rumney <jasonr@gnu.org>
4962
4963 * w32term.c (syms_of_w32term): Doc fix for
4964 x-use-underline-position-properties.
4965
22749e9a
EZ
49662009-03-21 Eli Zaretskii <eliz@gnu.org>
4967
4968 * w32.c (getpwuid): Change argument type to unsigned.
4969 (struct w32_id): Change type of `rid' member to unsigned.
4970 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
4971 argument ID to unsigned. All callers changed.
4972 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
4973
e00553bf
EZ
49742009-03-20 Eli Zaretskii <eliz@gnu.org>
4975
4976 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
4977 negative, produce a float value.
4978
4979 * dired.c (make_uid, make_gid): New functions.
4980 (Ffile_attributes): Use them to avoid negative UID and GID.
4981
f761d6b6
JB
49822009-03-20 Juanma Barranquero <lekktu@gmail.com>
4983
4984 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
4985 (syms_of_keyboard) <command-hook-internal, input-method-function>:
4986 Fix typos in docstrings.
4987
d507f8d7
KH
49882009-03-19 Kenichi Handa <handa@m17n.org>
4989
4990 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
4991 changed, use font_load_for_lface to get a new font object.
4992 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
4993
4994 * frame.c (x_set_font): Handle the case that ARG is a cons.
4995
c68845e0
GM
49962009-03-19 Glenn Morris <rgm@gnu.org>
4997
4998 * fileio.c (Fsubstitute_in_file_name): Doc fix.
4999
bfa49dd1
CY
50002009-03-19 Chong Yidong <cyd@stupidchicken.com>
5001
5002 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
5003
8458d4c1
KH
50042009-03-19 Kenichi Handa <handa@m17n.org>
5005
5006 * charset.c (load_charset_map_from_file): When a mapfile can't be
5007 loaded, signal an error.
5008
78e7d1fe
EZ
50092009-03-18 Eli Zaretskii <eliz@gnu.org>
5010
5011 * dired.c (Ffile_attributes): Make sure UID and GID are always
5012 positive, even if the value is too large for a positive EMACS_INT.
5013 Doc fix.
5014
5015 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
5016
5da9fdfa
YM
50172009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5018
5019 * xmenu.c (xdialog_show): Move Fredisplay call ...
5020 (Fx_popup_dialog): ... here.
5021
7519c40d
SM
50222009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
5023
5024 * dired.c (file_name_completion): Disable the first optimization just
5025 installed, since it is not implemented correctly.
5026
2cd298e2
SM
50272009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
5028
5029 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 5030 only if the entry can affect bestmatch.
2cd298e2
SM
5031 Stop the search early, as Ftry_completion already does.
5032
48d37adf
CY
50332009-03-17 Chong Yidong <cyd@stupidchicken.com>
5034
e10c9c93 5035 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 5036
9286b16a
CY
50372009-03-15 Chong Yidong <cyd@stupidchicken.com>
5038
5039 * keyboard.c (parse_menu_item): Don't display remappings as menu
5040 equivalent bindings (Bug#788).
5041
f7b146dc
JR
50422009-03-15 Jason Rumney <jasonr@gnu.org>
5043
5044 * w32term.h (WM_EMACS_PAINT): New message.
5045 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
5046 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
5047 before passing to lisp thread. (Bug#950)
5048
f761d6b6 50492009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 5050
d93f9575
CY
5051 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
5052 variable as it was never reset.
5053 (ns_term_init): Remove initialization of Lisp-settable defaults
5054 and ns_expand_space.
5055 (-setPanelFromDefaultValues): Remove ns_expand_space.
5056 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
5057 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
5058 i.e. no additional spacing, similar to Carbon port.
5059
d93f9575
CY
5060 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
5061 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 5062
305018ec
JD
50632009-03-14 Jan Djärv <jan.h.d@swipnet.se>
5064
5065 * sound.c (alsa_configure): Remove call to deprecated
5066 snd_pcm_sw_params_set_xfer_align.
5067
f761d6b6 50682009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
5069
5070 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
5071 after clicking in a detached tool bar.
5072 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
5073
46e722a9
SM
50742009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
5075
348db3dd
SM
5076 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
5077 int/Lisp_Object mixup).
46e722a9 5078
a3d16f39
KH
50792009-03-13 Kenichi Handa <handa@m17n.org>
5080
5081 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 5082 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
5083 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
5084 (set_fontset_font): Change ARG to a vector. Handle range_list in
5085 ARG correctly.
5086 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 5087 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
5088 the above change.
5089 (fontset_from_font): Fix previous change.
fe24f56a 5090 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
5091 entry. If FONTSET is the default fontset, don't set the extra
5092 slot of the returning char-table.
5093
b066e6b6
JB
50942009-03-12 Juanma Barranquero <lekktu@gmail.com>
5095
5096 * nsfns.m (Fx_close_connection): Doc fix.
5097 (Fns_do_applescript): Reflow docstring.
5098 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
5099 (Fx_display_pixel_width, Fx_display_pixel_height)
5100 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
5101 Fix typos in docstrings.
5102 (Fns_set_alpha): Fix typos in error messages.
5103
d472514e 51042009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 5105
d472514e 5106 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
5107 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
5108 were used for such events.
5109
d472514e
JB
5110 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
5111 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 5112
d472514e 5113 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
5114 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
5115
fb930676
KH
51162009-03-11 Kenichi Handa <handa@m17n.org>
5117
ff85581a
KH
5118 * font.h (font_open_by_spec): Extern it.
5119
c50b7e98
KH
5120 * font.c (font_open_by_spec): New function.
5121 (font_open_by_name): Use font_open_by_spec.
5122
fb930676
KH
5123 * frame.c (x_set_font): When ARG is a font-object, don't alter the
5124 fontset of the frame.
5125
5126 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
5127 modify the default font of frames that use this fontset.
5128 (num_auto_fontsets): New variable.
5129 (fontset_from_font): Use num_auto_fontsets to decide a fontset
5130 name. Be sure to set FONTSET_ASCII to the correct font name.
5131 (update_auto_fontset_alist): New function.
5132
df4e8455
JB
51332009-03-11 Juanma Barranquero <lekktu@gmail.com>
5134
5135 * makefile.w32-in: Update dependencies.
5136
0a375797
AR
51372009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
5138
5139 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
5140
61313fa3
SM
51412009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
5142
5143 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
5144
b55103fb
CY
51452009-03-10 Chong Yidong <cyd@stupidchicken.com>
5146
5147 * lread.c (Feval_buffer): Doc fix.
5148
dde2559c
KH
51492009-03-09 Kenichi Handa <handa@m17n.org>
5150
5151 * charset.c (Qfile_name_handler_alist): Extern it.
5152 (load_charset_map_from_file): Temporarily bind
5153 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
5154
df4e8455 51552009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 5156
47f588bb
GM
5157 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
5158 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 5159
4ddf94bd
AR
51602009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
5161
4c9bdfc2
AR
5162 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
5163 (x_set_window_size): Change back to calculated method of setting
5164 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
5165 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
5166 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
5167
fe41ae9e
AR
5168 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
5169
4c9bdfc2
AR
5170 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
5171 accelerator in parens under GNUstep.
5172
825d0875
KH
51732009-03-06 Kenichi Handa <handa@m17n.org>
5174
5175 These changes are to detect incorrect composition sequence without
f3b3be74 5176 looking ahead the source. (Bug#2370)
825d0875
KH
5177
5178 * coding.h: Include "composite.h".
5179 (enum compisition_state): New enum.
5180 (struct compisition_status): New struct.
5181 (struct iso_2022_spec): New member cmp_status.
5182 (struct emacs_mule_spec): New struct.
5183 (struct coding_system): New members ctext_extended_segment_len and
5184 embedded_utf_8. Change the union member
5185 spec.emacs_mule_full_support to spec.emacs_mule.
5186
5187 * coding.c (CODING_ISO_CMP_STATUS): New macro.
5188 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 5189 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
5190 (ADD_COMPOSITION_DATA): New arg nbytes.
5191 (emacs_mule_char): New arg cmp_status.
5192 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
5193 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
5194 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
5195 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
5196 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
5197 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
5198 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
5199 (EMACS_MULE_COMPOSITION_END): New macro.
5200 (emacs_mule_finish_composition): New function.
5201 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
5202 (decode_coding_emacs_mule): Avoid long looking ahead while
5203 handling composition.
5204 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
5205 (ENCODE_COMPOSITION_RULE): New macro.
5206 (finish_composition): New function.
5207 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
5208 (DECODE_COMPOSITION_START): New implementation.
5209 (DECODE_COMPOSITION_END): Likewise.
5210 (STORE_COMPOSITION_RULE): New macro.
5211 (decode_coding_iso_2022): Avoid long looking ahead while handling
5212 composition, CTEXT extended segment, and embedded UTF-8.
5213 (setup_coding_system): For a coding of type iso-2022, reset
5214 CODING_ISO_EXTSEGMENT_LEN (coding) and
5215 CODING_ISO_EMBEDDED_UTF_8 (coding).
5216 (get_translation): Delete arguments last_block, from_nchars,
5217 to_nchars. Callers changed.
5218 (produce_chars): Don't modify charbuf. Adjusted for the change of
5219 get_translation.
98a326f7 5220 (produce_composition): Adjust for the new annotation sequence.
825d0875 5221 (handle_composition_annotation): Likewise.
98a326f7 5222 (consume_chars): Adjust for the change of get_translation.
825d0875 5223
ccbc4452
AR
52242009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
5225
4ddf94bd 5226 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 5227
988a7ddb
KH
52282009-03-05 Kenichi Handa <handa@m17n.org>
5229
5230 * font.c (font_select_entity): New function.
5231 (font_find_for_lface): Use font_select_entity to select a font.
5232
5233 * fontset.c (fontset_find_font): If a font found without
a8a3728b 5234 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
5235 font with C restriction.
5236
98a326f7 52372009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 5238
be1bce46 5239 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 5240
10ea2b82
JR
52412009-03-04 Jason Rumney <jasonr@gnu.org>
5242
2c93b248 5243 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 5244 characters that have already been read. (Bug#2569)
2c93b248 5245
10ea2b82
JR
5246 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
5247 Log an error message if check_image_size failed.
5248 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 5249 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 5250
71a0c011
EZ
52512009-03-02 Eli Zaretskii <eliz@gnu.org>
5252
5253 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
5254 when decoding process output.
5255
2f63bba8
RS
52562009-03-01 Richard M Stallman <rms@gnu.org>
5257
5258 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
5259
5260 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
5261
0a9564cb
EZ
52622009-02-28 Eli Zaretskii <eliz@gnu.org>
5263
5264 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
5265 (decode_coding_emacs_mule, decode_coding_iso_2022)
5266 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
5267 (decode_coding_raw_text, decode_coding_charset)
5268 (setup_coding_system, decode_eol, decode_coding, consume_chars):
5269 Honor inhibit-eol-conversion. (Bug #2186)
5270
449148b3
JR
52712009-02-28 Jason Rumney <jasonr@gnu.org>
5272
5273 * coding.c (detect_coding_charset): If not checking latin extra,
5274 fail on characters between 0x80 and 0xA0. (Bug#2354)
5275
a4aee864
EZ
52762009-02-28 Eli Zaretskii <eliz@gnu.org>
5277
5278 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 5279 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 5280
d88bee5a
GM
52812009-02-27 Glenn Morris <rgm@gnu.org>
5282
5283 * callint.c (Finteractive): Doc fix.
5284
a808f22d
KH
52852009-02-27 Kenichi Handa <handa@m17n.org>
5286
5287 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
5288
caf8d60c
CY
52892009-02-27 Chong Yidong <cyd@stupidchicken.com>
5290
5291 * font.c (font_style_to_value): Set value for unknown symbols to
5292 100 instead of 255.
b61137ea
CY
5293 (weight_table, slant_table, width_table): Treat "unspecified" as
5294 the default value.
caf8d60c 5295
1a0de25c
JB
52962009-02-26 Juanma Barranquero <lekktu@gmail.com>
5297
5298 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
5299
8fc45744
JB
53002009-02-25 Juanma Barranquero <lekktu@gmail.com>
5301
107bd7d1
JB
5302 * lread.c (Fload): Stop checking Vloads_in_progress and signal
5303 error as soon as a recursive load is detected.
8fc45744 5304
f097e223
AR
53052009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
5306
5307 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
5308 before caching.
5309
8810a12f
KH
53102009-02-24 Kenichi Handa <handa@m17n.org>
5311
5312 * fontset.c (fontset_find_font): Fix the condition for checking
5313 unavailable font.
5314
2c7d1565
GM
53152009-02-24 Glenn Morris <rgm@gnu.org>
5316
5317 * xfaces.c (Finternal_set_font_selection_order): Remove leading
5318 whitespace that confuses documentation.
5319
a20878b6
MB
53202009-02-23 Miles Bader <miles@gnu.org>
5321
5322 * process.c (Flist_system_processes, Fprocess_attributes)
5323 (syms_of_process): Rename `system-process-attributes' to
5324 `process-attributes'.
5325
b3b58c01
AS
53262009-02-22 Andreas Schwab <schwab@linux-m68k.org>
5327
1b3b981b
AS
5328 * coding.h (struct coding_system): Make safe_charsets a pointer to
5329 unsigned char.
5330 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
5331 being 255.
5332 (SAFE_CHARSET_P): Likewise.
5333 (setup_iso_safe_charsets): Properly setup safe_charsets.
5334 (Fdefine_coding_system_internal): Likewise.
5335 (setup_coding_system): Likewise. Remove unneeded casts.
5336 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
5337 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
5338 unneeded casts.
5339
b3b58c01
AS
5340 * insdel.c (del_range_2): Don't modify gap contents when called
5341 from decode_coding_object. (Bug#1809)
5342
0b6f228c
CY
53432009-02-21 Chong Yidong <cyd@stupidchicken.com>
5344
5345 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
5346 Qfont_object.
5347 (Ftype_of): Recognize font objects.
5348
5349 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
5350
5351 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
5352 moved to data.c.
5353
52f8870b
AR
53542009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
5355
5356 * nsterm.m (x_make_frame_invisible): Unset async_visible,
5357 async_iconified. Based on a patch by Christian Lynbech
5358 <christian.lynbech@tieto.com>.
5359 (EmacsView-windowDidMiniaturize:): Unset async_visible.
5360
7087d5e9
GM
53612009-02-20 Glenn Morris <rgm@gnu.org>
5362
5363 * syntax.c (Fskip_chars_forward): Fix doc typo.
5364
41d2ceef
CY
53652009-02-20 Chong Yidong <cyd@stupidchicken.com>
5366
5367 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
5368
1a3b7ca6
CY
53692009-02-19 Chong Yidong <cyd@stupidchicken.com>
5370
5371 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
5372
73cce38d
KH
53732009-02-19 Kenichi Handa <handa@m17n.org>
5374
5375 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 5376 Don't overflow coding->carryover. (Bug#2370)
73cce38d 5377
a51092ee
DN
53782009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
5379
5380 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
5381
c423ecca
KH
53822009-02-18 Kenichi Handa <handa@m17n.org>
5383
5384 * font.c (font_check_otf_features): Fix handling of `nil' element.
5385 (Ffont_spec): Describe :lang and :otf in the docstring.
5386
4c1958f4
AS
53872009-02-16 Andreas Schwab <schwab@suse.de>
5388
5389 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
5390 string.
5391
5704f39a
KH
53922009-02-16 Kenichi Handa <handa@m17n.org>
5393
5394 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 5395 (Bug#1723)
5704f39a 5396
8f0085aa
CY
53972009-02-14 Chong Yidong <cyd@stupidchicken.com>
5398
a057d86a 5399 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
5400
5401 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
5402 (handle_line_prefix): Suppress wrapping of wrap prefixes.
5403
aff01dd9
EZ
54042009-02-14 Eli Zaretskii <eliz@gnu.org>
5405
5406 * msdos.c (MAX_SCREEN_BUF): New macro.
5407 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
5408 Encode the entire run of glyphs sharing the same face, instead of
5409 doing that one glyph at a time (fixes a bug with displaying
5410 double-size characters).
5411
ba301db3
AR
54122009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
5413
5414 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
5415
5416 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
5417 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 5418 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
5419
5420 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 5421 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 5422
51d861de
SM
54232009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
5424
ac146f82 5425 * keyboard.c (adjust_point_for_property): Allow stopping between two
51d861de
SM
5426 invisible areas.
5427
7fed8996
JR
54282009-02-12 Jason Rumney <jasonr@gnu.org>
5429
631ea4fb
JR
5430 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
5431 (add_font_entity_to_list): Call check_face_name even when family
5432 is unspecified.
5433
cb4a3e42
JR
5434 * w32term.c (x_display_pixel_height, x_display_pixel_width):
5435 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 5436 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 5437
7fed8996 5438 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 5439 raster fonts. (Bug#2219)
7fed8996 5440
895416e3
KH
54412009-02-12 Kenichi Handa <handa@m17n.org>
5442
5443 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
5444 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
5445 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 5446 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
5447 (find_automatic_composition): While looking forward and backward,
5448 check static composition. Fix where to stop looking forward.
5449 (composition_adjust_point): Fix checking of static composition.
5450 (Fcomposition_get_gstring): Pay attention to
1dacf998 5451 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
5452
5453 * lisp.h (fast_looking_at): Extern it.
5454
5455 * search.c (fast_looking_at): New function.
5456
51d861de 5457 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
5458 <struct glyph>.u.cmp.to.
5459 (append_composite_glyph): Likewise.
5460
51d861de 5461 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
5462 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
5463 composition.
51d861de 5464 (append_composite_glyph): Adjust for the change of
895416e3
KH
5465 <strcut glyph>.u.cmp.to.
5466
8510724d
JB
54672009-02-11 Juanma Barranquero <lekktu@gmail.com>
5468
5469 * casetab.c (init_casetab_once):
5470 * coding.c (ALLOC_CONVERSION_WORK_AREA):
5471 * font.c (font_update_lface):
5472 * fontset.c (Fnew_fontset):
5473 * ftfont.c (ftfont_drive_otf):
5474 * xfont.c (xfont_open):
5475 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
5476
294fa707
SM
54772009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
5478
5479 * fileio.c (Fwrite_region): !NILP -> CONSP.
5480
b5bfebec
AS
54812009-02-10 Andreas Schwab <schwab@suse.de>
5482
5483 * process.c (send_process): Properly relocate pointer into data
adab88bd 5484 when using encoded data. (Bug#2272)
b5bfebec 5485
cb84a2be
KH
54862009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
5487
5488 * coding.c (detect_coding_charset): Fix previous change.
5489
89e09428
JR
54902009-02-08 Jason Rumney <jasonr@gnu.org>
5491
5492 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 5493 disappeared while hourglass was displayed. (Bug #2193)
89e09428 5494
4470a277
AS
54952009-02-07 Andreas Schwab <schwab@suse.de>
5496
5497 * unexelf.c (unexec): Fix error message.
5498
3175b12a
AR
54992009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
5500
5501 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 5502 when modal window is active. (Bug #2152)
3175b12a
AR
5503 (applicationShouldTerminate:): Remove now-unneeded while loop
5504 around NSRunAlertPanel.
5505
5506 * nsmenu.m (popupSession): New file-global variable.
5507 (pop_down_menu): End the popupSession before closing dialog.
5508 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
5509 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
5510 don't query NSApp for events (just sleep instead).
5511
8434d0b8
EZ
55122009-02-07 Eli Zaretskii <eliz@gnu.org>
5513
51d861de
SM
5514 * coding.c (syms_of_coding) <translation-table-for-input>:
5515 Modify doc string to discourage use for character code unification.
8434d0b8 5516
aa82edfd
CY
55172009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5518
5519 * atimer.c (run_timers): Update pending_atimers.
5520
2d283c7c
CY
55212009-02-06 Chong Yidong <cyd@stupidchicken.com>
5522
eb306cab
CY
5523 * image.c (svg_load_image): Fix last change.
5524
2d283c7c
CY
5525 * xfns.c (Fx_create_frame): Signal an error if no font is
5526 found (Bug#2147).
5527
4d8e170e
JB
55282009-02-05 Juanma Barranquero <lekktu@gmail.com>
5529
5530 * character.c (syms_of_character) <script-representative-chars>:
5531 Fix typo in docstring.
5532
c96169a0
AR
55332009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
5534
5535 * nsmenu.m (pop_down_menu): New function.
5536 (ns_popup_dialog): Call it on unwind.
5537 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
5538 call timer_check() (Bug#2154).
5539 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
5540 handling_signal is set.
5541 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
5542
31fd7c5c 5543 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
c96169a0
AR
5544
5545 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
5546
5547 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
5548
51d861de
SM
5549 * keyboard.c (poll_for_input_1, handle_async_input):
5550 Set handling_signal under HAVE_NS.
c96169a0 5551
aacd8ba1
GM
55522009-02-04 Glenn Morris <rgm@gnu.org>
5553
5554 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
5555
4cb75c4b
KH
55562009-02-04 Kenichi Handa <handa@m17n.org>
5557
5558 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
5559
5560 * charset.c (Fchar_charset): New optional arg restriction.
5561
5562 * coding.h (coding_system_charset_list): Extern it.
5563
5564 * coding.c (coding_system_charset_list): New function.
5565
5566 * composite.c: Include coding.h and termhooks.h.
5567 (composition_gstring_p): Fix for the terminal case.
5568 (composition_gstring_width): Likewise.
5569 (fill_gstring_body): Likewise.
5570 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
5571 the frame.
5572 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
5573 is within a composition.
867d4bb3 5574 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
5575
5576 * term.c (encode_terminal_code): Fix handling of composition.
5577 (produce_composite_glyph): For static composition, get pixel_width
5578 from struct composition.
5579
826ba17e
AS
55802009-02-02 Andreas Schwab <schwab@suse.de>
5581
5582 * unexelf.c (unexec): Handle unaligned bss offset.
5583
8ad093db
AR
55842009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
5585
5586 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
5587 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 5588
8ad093db
AR
5589 * keyboard.c (handle_interrupt): Don't call
5590 quit_throw_to_read_char() under NS.
d0a76a6e 5591
8ad093db
AR
5592 * blockinput.h: Remove NS-specific code.
5593
4d18a7a2
DN
55942009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
5595
db878925
DN
5596 * dispnew.c (window_change_signal): Don't try to get the size of a
5597 suspended tty frame.
5598 * term.c (Fresume_tty): Resize if the size has changed while the
5599 tty was suspended.
5600
4d18a7a2
DN
5601 * alloc.c (mark_stack): Properly conditionalize previous change.
5602
8984df7c
JB
56032009-01-30 Juanma Barranquero <lekktu@gmail.com>
5604
5605 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
5606 * w32term.c (w32_read_socket) [SYNC_INPUT]:
5607 Remove; this code is not used on Windows.
5608
75f4f1ac
EZ
56092009-01-30 Eli Zaretskii <eliz@gnu.org>
5610
5611 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
5612 EOLs that also has stray ^M characters.
5613
07a1e794
JB
56142009-01-30 Juanma Barranquero <lekktu@gmail.com>
5615
5616 * atimer.c (run_timers, alarm_signal_handler):
5617 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
5618 * w32inevt.c (w32_console_read_socket):
5619 * w32term.c (w32_read_socket):
5620 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
5621
a8b11cc9
CY
56222009-01-30 Chong Yidong <cyd@stupidchicken.com>
5623
5624 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
5625 Initialize it as a relative filename pattern.
5626 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
5627 (Fcall_process_region): Simplify temp file creation using
5628 temporary-file-directory.
5629
c279587b
EZ
56302009-01-29 Eli Zaretskii <eliz@gnu.org>
5631
5632 * msdos.c: Rename pending_signals to msdos_pending_signals.
5633 (sig_suspender, sigprocmask): Adjust.
5634
a8fe3242
CY
56352009-01-29 Chong Yidong <cyd@stupidchicken.com>
5636
5637 * keyboard.c (pending_signals): New var.
5638 (poll_for_input, input_available_signal, init_keyboard): Set it.
5639 (process_pending_signals): New function.
5640
5641 * lisp.h (QUIT): Check pending_signals instead of
5642 interrupt_input_pending. Use process_pending_signals.
5643
51d861de 5644 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 5645
51d861de 5646 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
5647
5648 * sysdep.c (emacs_write): Use process_pending_signals.
5649
5650 * xterm.c (XTread_socket): Update pending_signals.
5651
5652 * w32term.c (w32_read_socket): Update pending_signals.
5653
5654 * w32inevt.c (w32_console_read_socket): Update pending_signals.
5655
6570a1c4
KH
56562009-01-29 Kenichi Handa <handa@m17n.org>
5657
5658 * xftfont.c (xftfont_has_char): New function.
5659 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
5660
d72a4afa
AR
56612009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
5662
5663 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
5664 under GNUstep.
5665 (ns_query_color): New declaration.
5666
5667 * nsterm.m (ns_confirm_quit): New variable.
5668 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
5669 (EmacsApp-applicationShouldTerminate:): Use it.
5670 (EmacsPrefsController): Let user set it.
5671 (ns_query_color): New function.
5672 (ns_defined_color): Use it.
5673 (ns_initialize): Drop.
5674 (ns_term_init): Add two lines from ns_initialize(), and set
5675 input_interrupt_mode to nil.
5676
5677 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 5678 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 5679
9fe78804
KH
56802009-01-28 Kenichi Handa <handa@m17n.org>
5681
5682 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
5683 (fontset_get_font_group): Remember that no font-group is specified
5684 for C.
9fe78804 5685
fa57de36
CY
56862009-01-27 Chong Yidong <cyd@stupidchicken.com>
5687
930600e9
CY
5688 * fns.c (concat): Check for string overflow (bug#1787).
5689
fa57de36
CY
5690 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
5691 Quadruple undo limits (bug#1501).
5692
7179ce7b
KH
56932009-01-27 Kenichi Handa <handa@m17n.org>
5694
5695 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
5696 directly use GT_Get_Char_index.
5697
5698 * xftfont.c (struct xftfont_info): New member `index'.
5699
5700 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 5701 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 5702
5be8fcc0
CY
57032009-01-26 Kenichi Handa <handa@m17n.org>
5704
5705 * fontset.c (fontset_find_font): Fix handling of non-cons return
5706 value of fontset_get_font_group.
5707 (fontset_font): Revert last change.
5708
19ae3e61
JR
57092009-01-26 Jason Rumney <jasonr@gnu.org>
5710
5711 * w32font.c (w32font_list_internal): Return quickly if registry is
5712 unknown. Simplify final return.
5713 (add_font_entity_to_list): Break complex logic down into more
5714 manageable chunks. Move unknown registry check to
5715 w32font_list_internal.
5716
8612b71a
AR
57172009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
5718
5719 Changes to remove Feval calls from GUI under NS.
5720
d8038940
JB
5721 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
5722 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
5723 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
5724
5725 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
5726 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
5727 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
5728 instead of NON_ASCII_KEYSTROKE_EVENT.
5729 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
5730 (EmacsApp-applicationShouldTerminate:): Query user.
5731 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
5732 instead of Feval.
5733
5734 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
5735
5736 * keyboard.c (kbd_buffer_get_event): Check for it.
5737 (keys_of_keyboard): Define lispy keys for
5738 ns-put/unput-working-text.
5739
5740 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
5741 versions.
5742 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
5743
6288ae55
CY
57442009-01-25 Chong Yidong <cyd@stupidchicken.com>
5745
5746 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 5747 setting current_buffer directly. (Bug#2044)
6288ae55 5748
289e7f8f
CY
57492009-01-24 Chong Yidong <cyd@stupidchicken.com>
5750
5ce87308 5751 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 5752 any work. (Bug#1952, bug#1990).
5ce87308 5753
64cc3cf6 5754 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 5755
b3243e6f
AR
57562009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
5757
5758 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
5759 (ns_no_defaults): New declaration.
5760 (main): Use it.
e0d2e69a 5761
d900b2af 5762 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 5763
d900b2af 5764 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 5765
d900b2af
AR
5766 * nsterm.m (ns_no_defaults): New variable.
5767 (ns_initialize): Don't read defaults when ns_no_defaults.
5768 (EmacsView-readSelectionFromPasteboard:)
5769 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 5770 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
5771 (ns_dumpglyphs_stretch): New function.
5772 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 5773 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 5774
e0d2e69a
AR
5775 * nsimage.m (setPixmapData:): Set to ignore image DPI.
5776
3ac71f5d
CY
57772009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
5778
5779 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
5780 call for Sparc64.
5781
3fe53a83
AR
57822009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
5783
5784 * nsfns.m:
5785 * nsgui.h:
5786 * nsmenu.m:
5787 * nsselect.m:
5788 * nsterm.h:
5789 * nsterm.m: Remove '23' comments that indicated code added during
5790 update from emacs-20 -> emacs-23.
5791
10f87c6f 57922009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
5793
5794 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 5795 ns_alternate_modifier. (Bug#1217)
a3b53a85 5796
c7cef62d
AR
5797 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
5798 Display all shortcuts, including those w/o super modifier.
5799
575fb8bd
AR
5800 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
5801
918b848b
CY
58022009-01-22 Chong Yidong <cyd@stupidchicken.com>
5803
5804 * fileio.c (Vwrite_region_post_annotation_function)
5805 (Vwrite_region_annotation_buffers): New vars.
5806 (build_annotations_unwind): Just reset
5807 Vwrite_region_annotation_buffers.
5808 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
5809 Call write-region-post-annotation-function.
5810 (build_annotations): Add to Vwrite_region_annotation_buffers if
5811 buffer changes.
5812
a39e2539
AR
58132009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
5814
5815 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
5816 Tiger.
51d861de
SM
5817 * nsfns.m (ns_do_applescript):
5818 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 5819
35ed44db
AR
58202009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
5821
5822 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
5823
cbe0b5bf
AR
58242009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
5825
5826 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 5827
6049d3a0
AR
5828 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
5829
5830 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
5831 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
5832 handle Ctrl-tab. (Bug#1841)
5833 (ns_get_color): Use unsigned long long for scanned hex string value.
5834 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 5835 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 5836 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 5837 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 5838 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 5839 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 5840 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 5841
d3810c21 5842 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 5843 DPI. (Bug#1316)
d3810c21
AR
5844 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
5845 values in onTiger section.
4c7077c3 5846
e301e634
CY
58472009-01-19 Chong Yidong <cyd@stupidchicken.com>
5848
7f82490b
CY
5849 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
5850 Check return value of font_spec_from_name.
64cc3cf6 5851 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
5852
5853 * font.c (font_spec_from_name): Return Qnil if font name could not
5854 be parsed.
5855 (font_parse_name): Treat a `?' character as part of an XLFD.
5856
e301e634
CY
5857 * fns.c (Fsubstring): Doc fix.
5858
1c0db158
KH
58592009-01-19 Kenichi Handa <handa@m17n.org>
5860
51d861de 5861 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
5862 (ftfont_list): Likewise.
5863
acf20901
JB
58642009-01-18 Juanma Barranquero <lekktu@gmail.com>
5865
fff4e459
JB
5866 * dbusbind.c (Fdbus_register_signal):
5867 * process.c (conv_sockaddr_to_lisp):
5868 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
5869
acf20901
JB
5870 * callproc.c (Fgetenv_internal): Doc fix.
5871
e7abcdfb
CY
58722009-01-16 Chong Yidong <cyd@stupidchicken.com>
5873
5874 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
5875 it is not even used.
5876
b60861e6
GM
58772009-01-16 Glenn Morris <rgm@gnu.org>
5878
5879 * font.c (Ffont_variation_glyphs): Silence compiler.
5880
8db52afe
JB
58812009-01-15 Juanma Barranquero <lekktu@gmail.com>
5882
5883 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
5884 Reported by David Robinow <drobinow@gmail.com>.
5885
4cddb209
KH
58862009-01-15 Kenichi Handa <handa@m17n.org>
5887
51d861de 5888 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 5889
f247f67b
JR
58902009-01-14 Jason Rumney <jasonr@gnu.org>
5891
5892 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 5893 never a fontset. (Bug#1562)
f247f67b 5894
f56a4450
KH
58952009-01-14 Kenichi Handa <handa@m17n.org>
5896
5897 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 5898 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 5899
4e99855e
CY
59002009-01-13 Chong Yidong <cyd@stupidchicken.com>
5901
5902 * font.c (font_clear_prop): If clearing the family, clear the font
5903 width index too.
5904
fff4e459 5905 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 5906
24f01470
JB
59072009-01-12 Juanma Barranquero <lekktu@gmail.com>
5908
5909 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
5910 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
5911 functions, use sizeof.
5912
a41240a3
MR
59132009-01-12 Martin Rudalics <rudalics@gmx.at>
5914
5915 * keyboard.c (read_char): Fix case where last_nonmenu_event
5916 returned a bad value with submenus. (Bug#447)
5917
944636b8
CY
59182009-01-12 Chong Yidong <cyd@stupidchicken.com>
5919
5920 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
5921 family, clear the font width index too.
5922
0dad7c6f
JR
59232009-01-11 Jason Rumney <jasonr@gnu.org>
5924
5925 * keyboard.c (cmd_error_internal): Exit when errors occur before
5926 frame creation and not in daemon mode. (Bug#1836)
5927
7c2363af
CY
59282009-01-10 Chong Yidong <cyd@stupidchicken.com>
5929
5930 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
5931 of a display vector, backtrack.
5932 (try_window_reusing_current_matrix): Check glyph type before
5933 referencing charpos member.
5934
97b1b294
EZ
59352009-01-10 Eli Zaretskii <eliz@gnu.org>
5936
5937 Fix Bug #876:
5938
5939 * coding.c (inhibit_null_byte_detection): New variable.
5940 (detect_coding, detect_coding_system): Don't pay attention to null
5941 bytes if inhibit_null_byte_detection is non-zero.
51d861de 5942 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
5943 <inhibit-iso-escape-detection>: Doc fix.
5944
4624b6e3
JR
59452009-01-09 Jason Rumney <jasonr@gnu.org>
5946
5947 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 5948 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
5949 Only report Unicode Plane 2 fonts as unicode-sip.
5950
323b840c
CY
59512009-01-09 Chong Yidong <cyd@stupidchicken.com>
5952
51d861de
SM
5953 * xfaces.c (Fx_font_family_list): Delete function.
5954 Move compatibility version to faces.el.
323b840c 5955
51d861de 5956 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 5957
eba7400d
MR
59582009-01-09 Martin Rudalics <rudalics@gmx.at>
5959
5960 * frame.c (x_set_frame_parameters): Remember requested value for
5961 fullscreen before it's reset by the parameter handler.
5962
4b09796d
GM
59632009-01-09 Glenn Morris <rgm@gnu.org>
5964
5965 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 5966 (last_command_event): ... and update all users.
4b09796d
GM
5967 (last_input_char): For clarity, rename to...
5968 (last_input_event): ... and update all users.
5969 (last-command-char, last-input-char): Move to subr.el as aliases.
5970 * cmds.c, commands.h: Update for last_command_char rename.
5971
14ccea62
CY
59722009-01-08 Chong Yidong <cyd@stupidchicken.com>
5973
51d861de 5974 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 5975
5f004711
JR
59762009-01-08 Jason Rumney <jasonr@gnu.org>
5977
5978 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
5979 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
5980 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
5981 Don't declare.
fff4e459 5982 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
5983 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
5984
b71f6f73
KH
59852009-01-07 Kenichi Handa <handa@m17n.org>
5986
50b06221 5987 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 5988 remember the coding system used for decoding in
50b06221
KH
5989 coding_system (Bug#1039).
5990
b71f6f73 5991 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 5992 breaking the loop. (Bug#870)
b71f6f73
KH
5993 (decode_coding_utf_16, decode_coding_emacs_mule)
5994 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
5995 (decode_coding_charset): Likewise.
5996
56f668f7
MR
59972009-01-05 Martin Rudalics <rudalics@gmx.at>
5998
5999 * frame.c (x_set_frame_parameters): Make sure height (width) get
6000 applied when fullwidth (fullheight) is set. (Bug#1522)
6001
5da9424d
JB
60022009-01-04 Juanma Barranquero <lekktu@gmail.com>
6003
6004 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
6005 (utc_base): Declare as ULONGLONG, not long double.
6006 (convert_time_raw): Delete.
6007 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
6008 (initialize_utc_base): New function.
6009 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
6010 (convert_from_time_t): Use initialize_utc_base; compute result with
6011 64-bit arithmetic.
6012 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
6013
c4605e09
EZ
60142009-01-03 Eli Zaretskii <eliz@gnu.org>
6015
9acef61c 6016 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
6017 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
6018 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
6019 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
6020 [!subprocesses]: Define.
6021 (syms_of_process) [!subprocesses]: Intern and staticpro them.
6022 (Flist_system_processes, Fsystem_process_attributes)
6023 [!subprocesses]: Call list_system_processes and
6024 system_process_attributes instead of returning Qnil.
6025
9acef61c
JB
6026 * dosfns.c (system_process_attributes, list_system_processes):
6027 New functions.
c4605e09
EZ
6028
6029 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
6030
6031 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
6032 Don't use the default (no-op) implementation.
6033
8b7d0a16
JR
60342009-01-03 Jason Rumney <jasonr@gnu.org>
6035
a6d46bc1
JR
6036 * keyboard.c (parse_modifiers_uncached): Wheel events are
6037 clicks (bug#687).
6038
8b7d0a16
JR
6039 * w32term.c (x_query_colors, x_query_color): New functions.
6040
6041 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
6042 (svg_load_image): Cast returned pointers from dynamically loaded
6043 functions. Eliminate W32 specific code.
6044
bfe11752
DN
60452009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
6046
89e2438a
DN
6047 * nsfns.m (x_set_foreground_color, x_set_background_color)
6048 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
6049 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
6050 x_ prefix instead of ns_. Update references.
6051 (syms_of_nsfns): Add a FIXME comment.
6052
6053 * nsterm.m (x_set_cursor_type): New prototype.
6054 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
6055
bfe11752
DN
6056 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
6057 for Solaris instead of incorrectly providing Qutime and Qcutime.
6058
031da700
EZ
60592009-01-02 Eli Zaretskii <eliz@gnu.org>
6060
6061 * w32.c (process_times): Compute sum of utime and stime.
6062 (system_process_attributes): Add Qtime to the alist.
6063
6064 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
6065 and add them to the alist.
6066
6067 * process.c (top level) <Qtime, Qctime>: New variables.
6068 (syms_of_process): staticpro them.
6069 (Fsystem_process_attributes): Add their documentation to the doc
6070 string.
6071
6072 * process.h: Declare Qtime and Qctime.
6073
df23bf08
JR
60742009-01-02 Jason Rumney <jasonr@gnu.org>
6075
9acef61c 6076 * image.c (Qgobject): New symbol.
df23bf08
JR
6077 (syms_of_image): Initialize it.
6078 (init_svg_functions): Load some functions from gobject library.
6079
5bbdf7aa
DN
60802009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
6081
6082 * frame.c (make_terminal_frame): Remove redundant code and useless
6083 block.
6084
63136da6
AS
60852009-01-01 Andreas Schwab <schwab@suse.de>
6086
6087 * process.c (conv_sockaddr_to_lisp): Add workaround for
6088 getsockname bug on BSD.
6089
9ef69046
CY
60902009-01-01 Chong Yidong <cyd@stupidchicken.com>
6091
d6fafbe0
CY
6092 * xfns.c (x_create_tip_frame): Set border width of the X window.
6093
51d861de 6094 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 6095
f9c34147
JR
60962009-01-01 Jason Rumney <jasonr@gnu.org>
6097
9acef61c 6098 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
6099 Don't block input, as per earlier xterm.c changes.
6100
f5497e45
AR
61012008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
6102
6103 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
6104 (ns_appkit_version_int): New function.
6105 (x-server-version): Use ns_appkit_version_int and follow 21+
6106 convention of returning 3 integers.
6107
c19cab20
KH
61082008-12-30 Kenichi Handa <handa@m17n.org>
6109
6110 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
6111 (CHAR_SURROGATE_PAIR_P): New macro.
6112
6113 * font.h (struct font_driver): New member get_variation_glyphs.
6114
9acef61c 6115 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
6116 (Ffont_variation_glyphs): New function.
6117 (syms_of_font): Defsubr it.
6118
6119 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
6120 ftfont_variation_glyphs.
6121 (setup_otf_gstring): New function.
6122 (ftfont_drive_otf): Use it.
6123 (ftfont_shape_by_flt): Handle variation selector.
6124 (ftfont_variation_glyphs): New function.
6125
28cd591f
MR
61262008-12-30 Martin Rudalics <rudalics@gmx.at>
6127
6128 * frame.c (Vemacs_iconified): Remove.
6129
7f714baf
JR
61302008-12-30 Jason Rumney <jasonr@gnu.org>
6131
6132 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 6133 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 6134
9d2d22ab
CY
61352008-12-30 Chong Yidong <cyd@stupidchicken.com>
6136
6137 * indent.c (Fvertical_motion): Don't advance iterator if we have
6138 reseated to the desired position.
6139
6140 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
6141 checking for pos match.
6142
545312c2
KH
61432008-12-30 Kenichi Handa <handa@m17n.org>
6144
1ede3eb6
KH
6145 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
6146 just get the low 8-bit of the code.
6147
545312c2
KH
6148 * font.c (font_intern_prop): Validate str as multibyte.
6149
bd7bbf29
DN
61502008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
6151
31e0750e
DN
6152 * dispextern.h (struct face): Move lface and hash from the middle
6153 of bitfields.
6154
bd7bbf29
DN
6155 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
6156
b5672e7c
DN
61572008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
6158
6159 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
6160 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
6161 instead of intervals.h.
6162
d704470f
AS
61632008-12-26 Andreas Schwab <schwab@suse.de>
6164
6165 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
6166 cons.
6167
54b33868
MR
61682008-12-26 Martin Rudalics <rudalics@gmx.at>
6169
6170 * textprop.c (Qminibuffer_prompt): New variable.
6171 (syms_of_textprop): Initialize it.
6172 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
6173 in minibuffer-prompt face. (Bug#1662)
6174
40b615d6
JR
61752008-12-25 Jason Rumney <jasonr@gnu.org>
6176
6177 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
6178
baae5c2d
JR
61792008-12-24 Jason Rumney <jasonr@gnu.org>
6180
6181 * ralloc.c (r_alloc_reset_variable): New function.
6182
6183 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 6184 record of what points where. (Bug#716)
baae5c2d 6185
a9051c88
DN
61862008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
6187
6188 * minibuf.c (read_minibuf): Follow the non-interactive case when
6189 running as a daemon, before detaching.
6190
8b146312
AS
61912008-12-22 Andreas Schwab <schwab@suse.de>
6192
6193 * buffer.c (init_buffer): Use realloc instead of xrealloc.
6194 * gtkutil.c (free_widget_value): Use xfree instead of free.
6195
56f2de10
MR
61962008-12-22 Martin Rudalics <rudalics@gmx.at>
6197
6198 * frame.c (delete_frame): New function derived from
6199 Fdelete_frame to handle Qnoelisp value for FORCE argument.
6200 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
6201 (Fdelete_frame): Call delete_frame. Remove line from doc-string
6202 saying that FORCE non-nil doesn't run `delete-frame-functions'.
6203 * frame.h: Extern delete_frame.
6204 * window.c (window_loop):
6205 * terminal.c (delete_terminal):
6206 * xterm.c (x_connection_closed):
6207 * xfns.c (Fx_hide_tip):
9acef61c 6208 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 6209
1fc200d6
JR
62102008-12-21 Jason Rumney <jasonr@gnu.org>
6211
6212 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
6213 when character maps to .notdef character.
6214
5e252df2
SM
62152008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
6216
6217 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
6218
99b72cc4
JR
62192008-12-20 Jason Rumney <jasonr@gnu.org>
6220
6221 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 6222 a graphical frame on Windows. (Bug#1325)
99b72cc4 6223
acc49a52
JD
62242008-12-20 Jan Djärv <jan.h.d@swipnet.se>
6225
6226 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
6227
6ea15123
CY
62282008-12-20 Chong Yidong <cyd@stupidchicken.com>
6229
6230 * minibuf.c (Fread_buffer): Doc fix.
6231
b2dab6c8
JR
62322008-12-20 Jason Rumney <jasonr@gnu.org>
6233
54ea0c87 6234 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 6235 server name in UNC paths. (Bug#719)
54ea0c87 6236
b2dab6c8 6237 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 6238 charbuf. (Bug#1035)
b2dab6c8 6239
6d1921be
DN
62402008-12-19 Daniel Engeler <engeler@gmail.com>
6241
6242 * sysdep.c (serial_configure): Fix typo.
6243
53934c98
DN
62442008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
6245
6246 * sysdep.c: Include alloca.h.
f4f634e8
DN
6247 (system_process_attributes): Add implementation for Solaris.
6248
6249 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 6250
06e111a6
DN
62512008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
6252
6253 Reorganize implementation of Flist_system_processes and
6254 Fsystem_process_attributes. No functional changes.
6255 * process.c: Don't #include pwd.h, grp.h and limits.h.
6256 (Flist_system_processes): Just call list_system_processes.
6257 (Fsystem_process_attributes): Just call system_process_attributes.
6258 (procfs_list_system_processes, time_from_jiffies)
6259 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
6260 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
6261
6262 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
6263 (list_system_processes): Rename from
6264 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
6265 Provide a do nothing implementation.
6266 (system_process_attributes): Rename from
6267 procfs_list_system_processes.
6268 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 6269 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
6270
6271 * w32.c (list_system_processes): Rename from
6272 w32_list_system_processes.
6273 (system_process_attributes): Rename from
6274 w32_system_process_attributes.
6275
6276 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
6277
6278 * process.h (w32_list_system_processes)
6279 (w32_system_process_attributes): Remove.
362654a6
JB
6280 (list_system_processes, system_process_attributes):
6281 New prototypes.
06e111a6 6282
6a705b23
KH
62832008-12-19 Kenichi Handa <handa@m17n.org>
6284
6285 * xfont.c (xfont_decode_coding_xlfd): New function.
6286 (xfont_encode_coding_xlfd): New function.
6287 (xfont_list_pattern): Decode XLFD by iso-8859-1.
6288 (xfont_list): Decode and encode XLFD by iso-8859-1.
6289 (xfont_match): Likewise.
6290 (xfont_list_family): Likewise.
6291 (xfont_open): Likewise.
6292
d66c0241 6293 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
6294 names are utf-8.
6295
d66c0241 6296 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
6297 names are utf-8.
6298
5a130941
JD
62992008-12-18 Jan Djärv <jan.h.d@swipnet.se>
6300
6301 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
6302 changed.
bfd20325
JD
6303 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
6304 clicked on a detached tool bar button.
5a130941 6305
fd95644b
DN
63062008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
6307
6308 * emacs.c (main): Print and error and exit when no data is read
6309 from the pipe.
6310
e6eee6ae
JR
63112008-12-17 Jason Rumney <jasonr@gnu.org>
6312
6313 * w32font.c (w32font_has_char): Always return -1.
6314
a35dd56b
KH
63152008-12-16 Kenichi Handa <handa@m17n.org>
6316
6317 * font.c (font_open_entity): Fix previous change.
6318
0e3635c2
DN
63192008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
6320
6321 * process.c: Include <limits.h>.
6322
d4835507 63232008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
6324
6325 * font.c (font_update_drivers): Fix mistake in reconstructing the
6326 driver list.
6327
63282008-12-16 Chong Yidong <cyd@stupidchicken.com>
6329
6330 * font.c (font_clear_cache): Fix format of font cache data.
6331
e2cbc401
CY
63322008-12-15 Chong Yidong <cyd@stupidchicken.com>
6333
6334 * xftfont.c (xftfont_open): Free Xft font pattern if
6335 XftFontOpenPattern fails.
6336
6337 * xterm.c (x_free_frame_resources): Remove extraneous call to
6338 free_frame_faces.
6339
b131d535
CY
63402008-12-13 Chong Yidong <cyd@stupidchicken.com>
6341
6342 * xterm.c (x_delete_display): Move xim_close_dpy call to
6343 x_delete_terminal.
6344 (x_delete_terminal): Call xim_close_dpy.
6345
e6df5336
JR
63462008-12-13 Jason Rumney <jasonr@gnu.org>
6347
6348 * w32font.c (intern_font_name): New function.
6349 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
6350 (w32font_open_internal, Fx_select_font): Decode font name.
6351 (fill_in_logfont, list_all_matching_fonts): Encode font name.
6352
6353 * w32font.h (intern_font_name): Declare new function.
6354
6355 * w32uniscribe.c (add_opentype_font_name_to_list):
6356 Use intern_font_name.
6357
20d68145
CY
63582008-12-13 Chong Yidong <cyd@stupidchicken.com>
6359
9f2554de
CY
6360 * frame.c (Fdelete_frame): Call free_font_driver_list.
6361
3d9bec9a
CY
6362 * font.c (free_font_driver_list): Implement missing function.
6363
20d68145
CY
6364 * w32term.c (w32_term_init): Don't initialize the image cache
6365 here; it will be done in init_frame_faces.
6366
6367 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
6368 (struct x_display_info): Remove unused member null_pixel. New
6369 member xim_callback_data.
6370
6371 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
6372 (xim_initialize): Save pointer to callback function data.
6373 (xim_close_dpy): Free callback function data. Call XCloseIM,
6374 reverting 2008-11-04 change by David Smith.
6375 (x_term_init): Don't initialize the image cache here; it will be
6376 done in init_frame_faces. Remove ancient "null_pixel" cruft.
6377 (x_delete_display): Free x_dnd_atoms member.
6378
96f9306b
KH
63792008-12-13 Kenichi Handa <handa@m17n.org>
6380
6dec9044
JB
6381 * font.c (font_rescale_ratio): Moved from xfaces.c.
6382 Argument type changed. Handle a font-spec too.
96f9306b 6383 (font_score): Check Vface_font_rescale_alist.
6dec9044 6384 (font_open_entity): Likewise. (Bug#1547)
96f9306b
KH
6385
6386 * xfaces.c (font_rescale_ratio): Moved to font.c.
6387
8d5b4964
CY
63882008-12-13 Chong Yidong <cyd@stupidchicken.com>
6389
6390 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
6391
e6df5336
JR
63922008-12-12 Jason Rumney <jasonr@gnu.org>
6393
6394 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
6395 Vwindow_system_version to the real w32 major version.
6396
97c6058a
DN
63972008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
6398
6399 * term.c (init_tty): Move setting the terminal name before the
6400 potential user: maybe_fatal.
6401
ec4e88d7
CY
64022008-12-11 Chong Yidong <cyd@stupidchicken.com>
6403
d4835507
JB
6404 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
6405 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 6406
b4233ec9
JR
64072008-12-11 Jason Rumney <jasonr@gnu.org>
6408
8ec71e23 6409 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 6410 SYMBOL_CHARSET. (Bug#547)
8ec71e23 6411
b4233ec9 6412 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 6413 size for surrogates. (Bug#1096, bug#872)
b4233ec9 6414
011a0143
JB
64152008-12-11 Juanma Barranquero <lekktu@gmail.com>
6416
6417 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
6418
3c309f34
JB
64192008-12-11 Juanma Barranquero <lekktu@gmail.com>
6420
6421 * process.c (Fsystem_process_attributes, syms_of_process):
6422 Fix typo in name of Ssystem_process_attributes.
6423 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
6424
fedc6ab5
JB
64252008-12-11 Juanma Barranquero <lekktu@gmail.com>
6426
6427 * syntax.c (Fmodify_syntax_entry): Doc fix.
6428
ba3de0e8
JB
64292008-12-10 Juanma Barranquero <lekktu@gmail.com>
6430
6431 * font.c (Ffont_spec): Move usage to end of docstring.
6432
174f1c74
JR
64332008-12-10 Jason Rumney <jasonr@gnu.org>
6434
6435 * w32font.c (Qcham): New symbol.
6436 (font_supported_scripts): Add cham, and comments for other new
6437 scripts in bitfield from OpenType spec.
9d32f818
JR
6438 (add_font_entity_to_list): Limit unicode-sip fonts to those that
6439 contain characters beyond the bmp.
174f1c74 6440
7b649478
KH
64412008-12-10 Kenichi Handa <handa@m17n.org>
6442
6443 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 6444 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
6445 Qunicode_sip.
6446
2133e2d1
JB
64472008-12-10 Juanma Barranquero <lekktu@gmail.com>
6448
6449 * coding.c (QCdefault_char): Rename from QCdefalut_char.
6450 (Fcoding_system_put): Use QCdefault_char.
6451 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
6452
9af886ee
CY
64532008-12-09 Chong Yidong <cyd@stupidchicken.com>
6454
74d819eb
CY
6455 * xftfont.c (syms_of_xftfont): Fix typo.
6456
4ccfa1c0 6457 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 6458
7c19d3ae
DN
64592008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
6460
6461 * emacs.c (main): Close daemon_pipe on exec.
6462
567826bb
CY
64632008-12-08 Chong Yidong <cyd@stupidchicken.com>
6464
6465 * termchar.h (struct tty): New members termcap_term_buffer and
6466 termcap_strings_buffer.
6467
6468 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 6469 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
6470 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
6471 All callers changed.
6472 (init_tty): Store termcap data and string buffers in new struct
6473 tty members termcap_term_buffer and termcap_strings_buffer.
6474 (delete_tty): Free them.
4ccfa1c0 6475 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 6476
aa96c42b
SZ
64772008-12-07 Seiji Zenitani <zenitani@mac.com>
6478
6479 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 6480 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 6481
b7e1d896
CY
64822008-12-06 Chong Yidong <cyd@stupidchicken.com>
6483
6484 * coding.c (make_conversion_work_buffer): Disable buffer
6485 modification hooks in the work buffer.
6486
b5ec91a5
EZ
64872008-12-05 Eli Zaretskii <eliz@gnu.org>
6488
6489 * process.c (procfs_system_process_attributes): If `nread' has a
6490 negative value, assign zero to it.
6491
a5d2a52b
CY
64922008-12-05 Chong Yidong <cyd@stupidchicken.com>
6493
68c5540b 6494 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 6495
7bf1bb21
KH
64962008-12-05 Kenichi Handa <handa@m17n.org>
6497
6498 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
6499 second character is a combining character.
6500
2fdc7d00
EZ
65012008-12-05 Eli Zaretskii <eliz@gnu.org>
6502
6503 * process.c (procfs_system_process_attributes): Don't use cmd,
6504 cmdsize, and q without initializing them first.
6505
bf6bfba8
JR
65062008-12-04 Jason Rumney <jasonr@gnu.org>
6507
6508 * w32font.c (w32font_draw): Initialize orig_clip before getting
6509 it, and delete it when finished.
6510
a3b1a468
DN
65112008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
6512
6513 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
6514 case when running as a daemon before detaching.
6515
8b8be8eb
JB
65162008-12-03 Juanma Barranquero <lekktu@gmail.com>
6517
805f2638 6518 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 6519
b1bde622
KH
65202008-12-03 Kenichi Handa <handa@m17n.org>
6521
e500c47d
KH
6522 * font.c (font_at): Set `multibyte' at first.
6523
ca516334
KH
6524 * coding.c (decode_coding_charset): Check type of an element of
6525 vector VALIDS.
7bf1bb21 6526 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 6527
4ccfa1c0 6528 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
6529 (font_for_char): Likewise.
6530
1e5ecd37
CY
65312008-12-03 Chong Yidong <cyd@stupidchicken.com>
6532
d5b01609 6533 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
6534 (font_update_lface): Handle fonts with corrupted size specs,
6535 i.e. non-int and non-float.
d5b01609 6536
11e3a6e4 6537 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 6538 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 6539 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 6540
ab06788b
CY
6541 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
6542
1e5ecd37 6543 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 6544 underline_minimum_offset for underline position.
1e5ecd37 6545
63c125ab
DN
65462008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
6547
6548 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
6549
6550 * character.c (c_string_width): Specify the type for LEN.
6551
3a8406e1
KH
65522008-12-03 Kenichi Handa <handa@m17n.org>
6553
4ccfa1c0 6554 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 6555 (decode_coding_utf_8): Likewise.
4ccfa1c0 6556 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 6557 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 6558
651df7d9
CY
65592008-12-02 Chong Yidong <cyd@stupidchicken.com>
6560
6561 * keyboard.c (make_lispy_position): Only use PT if the selected
6562 window is current.
6563
1f625c6c
AS
65642008-12-02 Andreas Schwab <schwab@suse.de>
6565
f7741ce9
AS
6566 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
6567
1f625c6c
AS
6568 * doprnt.c (doprnt1): Fix size of charbuf.
6569
92bc2678
CY
65702008-12-02 Chong Yidong <cyd@stupidchicken.com>
6571
6572 * keyboard.c (timer_check): Revert last change.
6573
93b9e8cc
JB
65742008-12-02 Juanma Barranquero <lekktu@gmail.com>
6575
6576 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
6577
fd7a37d5
JB
65782008-12-01 Juanma Barranquero <lekktu@gmail.com>
6579
6580 * makefile.w32-in: Update dependencies.
6581 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
6582
c115043b
AS
65832008-12-01 Andreas Schwab <schwab@suse.de>
6584
6585 * font.c (register_font_driver): Use xmalloc.
6586 (font_put_frame_data): Likewise.
6587
f5668d2a
CY
65882008-12-01 Chong Yidong <cyd@stupidchicken.com>
6589
860d96be
CY
6590 * xfaces.c (realize_x_face): Make abort condition clearer.
6591
f5668d2a
CY
6592 * gtkutil.c (update_frame_tool_bar): Initialize variable.
6593
379c17e7
CY
65942008-11-30 Chong Yidong <cyd@stupidchicken.com>
6595
6596 * keyboard.c (timer_check): After a timer runs, ensure that the
6597 selected window's buffer is current.
6598
35f36d65
JB
65992008-11-30 Juanma Barranquero <lekktu@gmail.com>
6600
f952c61c
JB
6601 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
6602 It was accidentally restored by the Unicode merge.
6603
35f36d65
JB
6604 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
6605
b23077df
JB
66062008-11-29 Juanma Barranquero <lekktu@gmail.com>
6607
6608 * w32proc.c: Include "coding.h".
6609 (Fw32_short_file_name): Encode filename passed to Windows API.
6610 (Fw32_long_file_name): Encode filename passed to Windows API and
6611 decode back the result. (Bug#1433)
6612
b8ebe9dd
KH
66132008-11-29 Kenichi Handa <handa@m17n.org>
6614
8cc53f96
KH
6615 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
6616 not before accessing it.
6617
b8ebe9dd
KH
6618 * charset.c (Fdefine_charset_internal): After calculating
6619 min_char, max_char, and fastmap, copy the charset structure again.
6620 (encode_char): Fix the previous change.
6621
59bc82c0
SZ
66222008-11-28 Seiji Zenitani <zenitani@mac.com>
6623
6624 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
6625
6626 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
6627
6628 * nsterm.m (x_set_frame_alpha): New function.
6629
32247e3d
EZ
66302008-11-27 Eli Zaretskii <eliz@gnu.org>
6631
6632 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
6633
b003e5ff
JB
66342008-11-27 Juanma Barranquero <lekktu@gmail.com>
6635
6636 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
6637 pointer to check_face_name.
6638
708550f5
KH
66392008-11-27 Kenichi Handa <handa@m17n.org>
6640
6641 * category.h (SET_CATEGORY_SET): Call set_category_set.
6642 (set_category_set): Extern it.
6643
6644 * category.c (hash_get_category_set): New function.
6645 (Fmodify_category_entry): Adjusted for the change of
6646 char_table_ref_and_range. Call hash_get_category_set to get a
6647 category set to store in the table.
6648
6649 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
6650 Funify_charset.
6651
2ae37cf0 6652 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
6653 (DECODE_CHAR): Check if the decoder vector is ready.
6654 (ENCODE_CHAR): Check if the encoder char-table is ready.
6655 (maybe_unify_char): Extern it.
6656
6657 * charset.c (Vchar_unified_charset_table): Delete it.
6658 (inhibit_load_charset_map): New variable.
6659 (temp_charset_work): New variable.
6660 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
6661 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
6662 New macros.
6663 (load_charset_map): Meaning of control_flag changed. If
6664 inhibit_load_charset_map is nonzero, setup a table in
6665 temp_charset_work.
6666 (load_charset): New argument control_flag.
6667 (map_charset_for_dump): New function.
6668 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
6669 map_charset_for_dump.
6670 (Fdefine_charset_internal): If the charset method is MAP, load
6671 mapping tables by calling load_charset.
6672 (Funify_charset): Don't load a mapping table but directly set
6673 Vchar_unify_table.
6674 (maybe_unify_char): New function.
6675 (decode_char): Don't handle the deleted method MAP_DEFERRED.
6676 Handle the case of inhibit_load_charset_map being nonzero.
6677 (encode_char): Don't handle the deleted method MAP_DEFERRED.
6678 Handle the case of inhibit_load_charset_map being nonzero.
6679 (Fclear_charset_maps): Just free temp_charset_work.
6680 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
6681 variable.
6682
6683 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
6684 change of char_table_ref_and_range.
6685 (char_table_ref_and_range): Change the meaning of argument FROM
6686 and TO. Now the caller must provide initial values for *FROM
6687 and *TO.
6688
6689 * fontset.c (fontset_add): Adjusted for the change of
6690 char_table_ref_and_range.
6691 (fontset_get_font_group): Likewise.
6692 (Ffontset_info): Likewise.
6693
6694 * keymap.c (describe_vector): Adjusted for the change of
6695 char_table_ref_and_range. For char-table, put boundary between
6696 non-ASCII and 8-bit characters.
6697
6698 * print.c (print_object): For bool-vector, delete unnecessary
6699 check of ASCII_BYTE_P.
6700
9196133b
JR
67012008-11-26 Jason Rumney <jasonr@gnu.org>
6702
6703 * w32font.c (w32font_open_internal): Don't include external
9acef61c 6704 leading in font height. (Bug#879)
9196133b 6705
9f688acf
GM
67062008-11-26 Glenn Morris <rgm@gnu.org>
6707
6708 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
6709 redefinition with ifdef. (Bug#1383)
6710
90d19aff
AR
67112008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
6712
6713 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
6714
4ccfa1c0 67152008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
6716
6717 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
6718 New EmacsView methods.
6719 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
6720 Fixes bug #1048,1357,1414.
6721
67222008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
6723
6724 Fix bug #1362.
6725 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
6726 is not an indexed color.
6727 * nsterm.m (free_indexed_color): Add argument checking.
6728 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
6729
e7d5ecb3
CY
67302008-11-24 Chong Yidong <cyd@stupidchicken.com>
6731
6732 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
6733 Document confirm-after-completion value for
6734 minibuffer-completion-confirm.
6735
c285743c
JR
67362008-11-24 Jason Rumney <jasonr@gnu.org>
6737
6738 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
6739 warning.
6740
b0857706
JR
67412008-11-23 Jason Rumney <jasonr@gnu.org>
6742
6743 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
6744 restored before returning.
6745
6746 * w32font.c (check_face_name): New function.
6747 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 6748 fonts. (Bug#642)
b0857706 6749
ee50ff07
MR
67502008-11-22 Martin Rudalics <rudalics@gmx.at>
6751
6752 * buffer.c (Fswitch_to_buffer): Reword and mention new option
6753 confirm-nonexistent-file-or-buffer in doc-string.
6754
b8ff72fa
SM
67552008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
6756
6757 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
6758 Fix copy/paste typo. Add checks.
6759
cee53ed4
KH
67602008-11-21 Kenichi Handa <handa@m17n.org>
6761
6762 * coding.c (detect_coding_iso_2022): Reject invalid composition
6763 sequence.
6764 (DECODE_COMPOSITION_START): If the current source is the last
6765 block, and the current composition doesn't end, regard this
6766 sequence as invalid.
6767 (decode_coding_iso_2022): Handle invalid composition sequence.
6768
f6ef1e65
MR
67692008-11-20 Martin Rudalics <rudalics@gmx.at>
6770
6771 * window.c (coordinates_in_window): Don't return
6772 ON_VERTICAL_BORDER for the rightmost position of a mode/header
6773 line when the window is not the rightmost one. (Bug#1372)
6774
e08b1705
MR
67752008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
6776
6777 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
6778
ad98e89f
EZ
67792008-11-15 Eli Zaretskii <eliz@gnu.org>
6780
6781 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
6782 and bright_bg if noninteractive is non-zero.
6783
fb098a4b
CY
67842008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6785
6786 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
6787 x_draw_glyph_string_background.
6788
6789 * w32term.c (x_draw_glyph_string): Likewise.
6790
ce952b6e
CY
67912008-11-15 Chong Yidong <cyd@stupidchicken.com>
6792
6793 * xterm.c (x_draw_glyph_string): Stop drawing the background of
6794 the next glyph string once past the overhang width.
6795
6796 * nsterm.m (ns_draw_glyph_string): Likewise.
6797
6798 * w32term.c (x_draw_glyph_string): Likewise.
6799
26ea7079
CY
68002008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
6801
6802 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
6803 double file close.
6804
1c33c906
MR
68052008-11-14 Martin Rudalics <rudalics@gmx.at>
6806
6807 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
6808 dedicated status of window before attempting to display another
6809 buffer in it.
6810
8fc29035
JB
68112008-11-14 Juanma Barranquero <lekktu@gmail.com>
6812
6813 * msdos.c (Fmsdos_long_file_names):
6814 (syms_of_msdos) <dos-unsupported-char-glyph>:
6815 * dosfns.c (Fint86): Fix typos in docstrings.
6816
55fb4286
EZ
68172008-11-14 Eli Zaretskii <eliz@gnu.org>
6818
6819 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
6820
3fda0315
KY
68212008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
6822
6823 * puresize.h (BASE_PURESIZE): Increase to 1260000.
6824
7e849c17
CY
68252008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
6826
6827 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
6828
6829 * frame.h: Negative alpha means "don't touch".
6830
6831 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
6832
6833 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
6834
b9fd67bd
DN
68352008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
6836
6837 * hftctl.c:
6838 * chpdef.h:
6839 * acldef.h: Remove files used only for systems no longer supported.
6840
6841 * Makefile.in: Fix .o alphabetical ordering.
6842 (hftctl.o): Remove dependency, file removed.
6843 (keymap.o, print.o): Depend on charset.h.
6844
d5998e03
KH
68452008-11-10 Kenichi Handa <handa@m17n.org>
6846
2ae37cf0 6847 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 6848
be70e183
CY
68492008-11-08 Chong Yidong <cyd@stupidchicken.com>
6850
6851 * dired.c (file_name_completion): If completion_ignore_case is
6852 enabled, ignore case when checking completion-regexp-list.
6853
7cf94eac
EZ
68542008-11-08 Eli Zaretskii <eliz@gnu.org>
6855
6856 * vm-limit.c (get_lim_data): Fix last change.
6857
ee107a89
KH
68582008-11-08 Kenichi Handa <handa@m17n.org>
6859
6860 * character.c (Fget_byte): New function.
6861 (syms_of_character): Defsubr Fget_byte.
6862
5fd15622
CY
68632008-11-07 Chong Yidong <cyd@stupidchicken.com>
6864
6865 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
6866 cursor position is valid after scrolling.
6867
13d62fad
JB
68682008-11-06 Juanma Barranquero <lekktu@gmail.com>
6869
6870 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
6871
a1dd2936
GM
68722008-11-06 Glenn Morris <rgm@gnu.org>
6873
6874 * xterm.c (handle_one_xevent): Don't let popup menus cause
6875 mouse-autoselect-window related window switching. (Bug#1261)
6876
860cd236
CY
68772008-11-04 David Smith <davidsmith@acm.org> (tiny change)
6878
6879 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
6880
653a3150
AS
68812008-11-04 Andreas Schwab <schwab@suse.de>
6882
6883 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
6884
870f5cac
CY
68852008-11-03 Chong Yidong <cyd@stupidchicken.com>
6886
6887 * xfns.c (Fx_wm_set_size_hint): New function.
6888
1e02f3cb
MR
68892008-11-03 Martin Rudalics <rudalics@gmx.at>
6890
6891 * textprop.c (Fprevious_single_char_property_change): Return 0
6892 when there's no change in a string. (Bug#1301)
6893
e630dfc6
MR
68942008-11-02 Martin Rudalics <rudalics@gmx.at>
6895
6896 * frame.c (do_switch_frame): New argument NORECORD passed to
6897 Fselect_window.
6898 (Fselect_frame): New argument NORECORD passed to
6899 do_switch_frame.
6900 (Fset_frame_selected_window): New argument NORECORD passed to
6901 Fselect_frame.
6902 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
6903 in call of do_switch_frame.
6904 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
6905 Handle NORECORD argument in call of Fselect_frame.
6906 * lisp.h (do_switch_frame, Fselect_frame)
6907 (Fset_frame_selected_window): Adjust declarations.
6908 * window.c (select_frame_norecord): New function.
6909 (run_window_configuration_change_hook): Use it and call
6910 Fselect_frame with NORECORD set.
6911 (Fselect_window): Pass NORECORD to Fselect_frame.
6912 (Fset_window_configuration): Handle NORECORD argument in call of
6913 do_switch_frame.
6914 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
6915 Fset_frame_selected_window.
6916 * keyboard.c (command_loop_1): Handle NORECORD in call of
6917 Fselect_frame (currently ifdefd).
6918
9020b223
GM
69192008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
6920
6921 * emacs.c (USAGE2): Untabify.
6922
793ffee8
SM
69232008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
6924
6925 * composite.c (fill_gstring_header): Fix copy/paste typo.
6926
ab6d1131
MR
69272008-10-31 Martin Rudalics <rudalics@gmx.at>
6928
6929 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
6930 (Fother_window): Rename argument and rewrite doc-string.
6931 (select_window_norecord): Fix return value. (Bug#1276)
6932
601a9cf1
JB
69332008-10-30 Juanma Barranquero <lekktu@gmail.com>
6934
6935 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
6936 new frames overriding foreground for tooltips. Based on similar patch
6937 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
6938
813b0652
CY
69392008-10-29 Chong Yidong <cyd@stupidchicken.com>
6940
6941 * emacs.c (Fdaemon_initialized): Initialize nfd.
6942
4414f58f
MR
69432008-10-29 Martin Rudalics <rudalics@gmx.at>
6944
6945 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
6946 (Fwindow_text_height): Clarify doc-strings.
6947 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
6948 doc-string of window-scroll-functions.
6949
ecdcaa09
RS
69502008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
6951
6952 * category.c (syms_of_category): Fix typo in docstring.
6953
23fe745a
JB
69542008-10-28 Juanma Barranquero <lekktu@gmail.com>
6955
6956 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
6957 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
6958 Fix typos in docstrings.
6959
ff808935
DN
69602008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
6961
6962 * emacs.c (daemon_pipe): Make non-static.
6963 (IS_DAEMON): Move definition ...
6964 * lisp.h (IS_DAEMON): ... here.
6965 (daemon_pipe): Declare.
6966 (is_daemon): Remove.
6967 * dispnew.c (init_display): Use IS_DAEMON.
6968
fc012771
SM
69692008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
6970
6971 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
6972 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
6973
6974 * emacs.c (is_daemon): Remove.
6975 (main): Don't set is_daemon.
6976 (IS_DAEMON): New macro.
6977 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 6978 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
6979 parent exits.
6980 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
6981
d8bdbe6f
CY
69822008-10-27 Chong Yidong <cyd@stupidchicken.com>
6983
d1a072bf
CY
6984 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
6985 over-sized glyph, draw it with the default glyph width.
6986
e2e325aa
CY
6987 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
6988 glyph, draw it with the default glyph width.
6989
6990 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
6991 glyph, draw it with the default glyph width.
6992
d8bdbe6f
CY
6993 * xdisp.c (try_scrolling): When computing the distance from the
6994 scroll margin to PT, try moving some distance past the window
6995 bottom before giving up.
6996
7bfac547
MR
69972008-10-27 Martin Rudalics <rudalics@gmx.at>
6998
6999 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
7000 (Fset_window_buffer): Explain in doc-string that a window can be
7001 "strongly" dedicated to its buffer.
7002
4ff029f6
DN
70032008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
7004
7005 * emacs.c (daemon_name): New variable.
7006 (main): Deal with --daemon=SERVER_NAME.
7007 (Fdaemonp): Return a name if one was passed to --daemon.
7008
5790ef40
DN
70092008-10-26 Romain Francoise <romain@orebokech.com>
7010
f9bd0df9 7011 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
7012 (main): Create a pipe before forking, make the parent exit only after
7013 the child has closed its end of the pipe. Move closing the
7014 descriptors ...
7015 (Fdaemon_initialized): ... here. New function.
7016
f5385255
SM
70172008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
7018
4d632321
SM
7019 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
7020 the previous unoptimized table.
7021
f5385255
SM
7022 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
7023 the distinction between non-nil and non-t value of `dedicated'.
7024
6c56a0f3
CY
70252008-10-25 Chong Yidong <cyd@stupidchicken.com>
7026
7027 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 7028 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 7029
fec89261
MR
70302008-10-25 Martin Rudalics <rudalics@gmx.at>
7031
7032 * window.c (Fget_buffer_window, Fdelete_windows_on)
7033 (Freplace_buffer_in_windows): Make buffer argument optional and
7034 rename to buffer_or_name.
7035
34fcddd0
CY
70362008-10-24 Chong Yidong <cyd@stupidchicken.com>
7037
f5385255
SM
7038 * xdisp.c (handle_single_display_spec, handle_display_prop):
7039 Undo 2005-05-16 change.
34fcddd0
CY
7040 (handle_stop): Pop iterator if it's loaded with an empty string.
7041 (get_overlay_strings_1): Don't save iterator if it's loaded with
7042 an empty string (bug#1201).
7043
064766f2
KH
70442008-10-24 Kenichi Handa <handa@m17n.org>
7045
7046 * ftfont.c (ftfont_otf_features): Fix previous change.
7047 (ftfont_otf_capability): Check FeatureList.FeatureCount before
7048 calling ftfont_otf_features.
7049
f9bd0df9 70502008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
7051
7052 * font.c (font_match_p): Fix for the case that a vector of
7053 characters is in script-representative-chars.
7054
1dae9197
MA
70552008-10-24 Michael Albinus <michael.albinus@gmx.de>
7056
7057 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 7058 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
7059 (xd_read_queued_messages): Catch Qdbus_error from the macros.
7060 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
777013f2 7061 macro. (Bug#1186)
1dae9197 7062
f9bd0df9 70632008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
7064
7065 * s/sol2-10.h: New file.
7066
878a4584
JB
70672008-10-23 Juanma Barranquero <lekktu@gmail.com>
7068
7069 * xdisp.c (fill_glyph_string): Fix typo in source (though the
7070 poor beast has survived 9+ years and the jump from xterm.c!).
7071
cd265ca6
MR
70722008-10-23 Martin Rudalics <rudalics@gmx.at>
7073
7074 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
7075 Reword doc-string.
f5385255 7076 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 7077
472a4dc9
JB
70782008-10-23 Juanma Barranquero <lekktu@gmail.com>
7079
7080 * character.c (syms_of_character) <script-representative-chars>:
7081 <unicode-category-table>: Doc fixes.
7082
159bd5a2
NF
70832008-10-23 Noah Friedman <friedman@splode.com>
7084
7085 * coding.c (make_conversion_work_buffer): Check that
7086 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
7087 Fget_buffer_create.
7088
49f9c344
KH
70892008-10-23 Kenichi Handa <handa@m17n.org>
7090
7091 * font.c (font_add_log): Check the values of extra properties.
7092
12bb3111
MR
70932008-10-22 Martin Rudalics <rudalics@gmx.at>
7094
7095 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
7096 Reword doc-string.
7097 (Fset_window_parameter): Use NILP.
7098 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 7099 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 7100
bbeb4e99
JB
71012008-10-22 Juanma Barranquero <lekktu@gmail.com>
7102
7103 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
7104
71052008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
7106
7107 * nsfns.m (ns_appkit_version): New function.
7108 (x-server-version): Use it.
7109 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
7110 (x-server-vendor): Don't check_ns().
7111
7112 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
7113
a9b555d3
JB
71142008-10-22 Juanma Barranquero <lekktu@gmail.com>
7115
7116 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
7117 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
7118
4626499f
KH
71192008-10-22 Kenichi Handa <handa@m17n.org>
7120
e3681952
KH
7121 * syntax.c (scan_words): Call word_boundary_p instead of comparing
7122 scripts.
7123
4626499f
KH
7124 * category.c (word_boundary_p): Check scripts instead of charset.
7125 Handle nil value in word-separating-categories and
7126 word-combining-categories.
7127 (syms_of_category): Fix docstrings of word-separating-categories
7128 and word-combining-categories.
7129
1560f91a
EZ
71302008-10-21 Eli Zaretskii <eliz@gnu.org>
7131
7132 * coding.c (Fencode_coding_region, Fdecode_coding_region)
7133 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
7134
f4668441
MR
71352008-10-21 Martin Rudalics <rudalics@gmx.at>
7136
7137 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
7138 Rename arg "buffer" to "buffer_or_name".
7139 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
7140 it optional.
7141 (no_switch_window): Remove since the return value is not used.
a9b555d3 7142 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
7143 Consider window as dedicated when Fwindow_dedicated_p returns a
7144 non-nil value.
7145 * lisp.h: Remove prototype for no_switch_window.
7146
fd75ddb2
JD
71472008-10-21 Jan Djärv <jan.h.d@swipnet.se>
7148
7149 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 7150 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 7151
07295713
KH
71522008-10-21 Kenichi Handa <handa@m17n.org>
7153
7154 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
7155 check Vlatin_extra_code_table.
7156
712adc82
EZ
71572008-10-20 Eli Zaretskii <eliz@gnu.org>
7158
7159 * fileio.c (Fset_file_modes): Doc fix.
7160
f549eb0b
MA
71612008-10-19 Michael Albinus <michael.albinus@gmx.de>
7162
7163 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
7164 in arrays.
7165
aac0c6e3
MR
71662008-10-19 Martin Rudalics <rudalics@gmx.at>
7167
7168 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
7169 Mention kill-buffer in doc-string.
7170 (Fset_window_buffer): Reinsert tem check removed in last commit.
7171 (Fenlarge_window, Fshrink_window): Have argument names and
7172 doc-string follow Elisp manual more closely.
7173
71742008-10-18 Eli Zaretskii <eliz@gnu.org>
7175
7176 * fileio.c (Fset_file_modes): Doc fix.
7177
71782008-10-18 Martin Rudalics <rudalics@gmx.at>
7179
7180 * window.c (Fwindow_width, Fset_window_start)
7181 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
7182 (Fdelete_windows_on, Freplace_buffer_in_windows):
7183 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
7184 (Fwindow_dedicated_p): Make window argument optional.
7185 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
7186 (Fset_window_buffer): Respect any non-nil dedicated value for
7187 window. Rename "buffer" argument to "buffer_or_name".
7188
71892008-10-18 Ulrich Mueller <ulm@gentoo.org>
7190
7191 * m/sh3.h: New file, machine description for SuperH.
7192
71932008-10-17 Martin Rudalics <rudalics@gmx.at>
7194
7195 * window.c (Fsplit_window): Rename arg horflag to horizontal.
7196
71972008-10-17 Kenichi Handa <handa@m17n.org>
7198
7199 * ftfont.c (ftfont_otf_features): Fix indexing
7200 gsub_gpos->FeatureList.Feature. Check the validity of indices.
7201
72022008-10-16 Magnus Henoch <mange@freemail.hu>
7203
7204 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
7205 (Fdbus_call_method_asynchronously): Ditto.
7206 This change makes C-h f display the argument list.
7207
72082008-10-16 Chong Yidong <cyd@stupidchicken.com>
7209
7210 * fileio.c (Fexpand_file_name): Doc fix.
7211
7212 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
7213 of :foreground and :background equivalent to unspecified (20.x
7214 compatibility).
7215
72162008-10-15 Eli Zaretskii <eliz@gnu.org>
7217
7218 * buffer.c (syms_of_buffer): Doc fix.
7219
72202008-10-14 Kenichi Handa <handa@m17n.org>
7221
7222 * font.c (font_clear_prop): When clearing font width, clear the
7223 average width field too.
7224
72252008-10-12 Andreas Schwab <schwab@suse.de>
7226
7227 * ftfont.c (ftfont_shape_by_flt): Make static.
7228 * ftfont.h (ftfont_shape_by_flt): Don't declare.
7229
7230 * font.c: Don't include <m17n-flt.h>.
7231
72322008-10-10 Eli Zaretskii <eliz@gnu.org>
7233
7234 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
7235
72362008-10-09 Eli Zaretskii <eliz@gnu.org>
7237
7238 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
7239 away code.
7240
72412008-10-09 Chong Yidong <cyd@stupidchicken.com>
7242
7243 * dispnew.c (update_text_area): Avoid looping due to large glyph
7244 overhangs (bug#1070).
7245
72462008-10-09 Kenichi Handa <handa@m17n.org>
7247
7248 * fontset.c (face_for_char): If face->fontset is negative, just
7249 return ascii_face.
7250
f5385255
SM
7251 * font.c (font_delete_unmatched): Fix previous change.
7252 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
7253
72542008-10-09 Martin Rudalics <rudalics@gmx.at>
7255
7256 * frame.c (Fraise_frame): On text-only terminals select frame in
7257 order to make it visible. (Bug#1061)
7258
72592008-10-08 Chong Yidong <cyd@stupidchicken.com>
7260
7261 * fontset.c (fontset_find_font): Check frame validity.
7262
72632008-10-07 Chong Yidong <cyd@stupidchicken.com>
7264
a9b555d3 7265 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
7266 (xg_display_close): Allow Emacs to close all displays (bug#985).
7267
72682008-10-06 Andreas Schwab <schwab@suse.de>
7269
f5385255 7270 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
7271
72722008-10-06 Chong Yidong <cyd@stupidchicken.com>
7273
f5385255 7274 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 7275
a9b555d3 7276 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
7277
7278 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
7279 during initialization.
7280
72812008-10-04 Eli Zaretskii <eliz@gnu.org>
7282
7283 * xdisp.c (redisplay_internal): If frame switched, redisplay the
7284 whole thing on MSDOS frames as well as on a TTY.
7285
7286 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
7287 well as for TTY.
7288 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
7289 well as on a TTY.
7290
7291 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
7292 as well as for TTY.
7293
7294 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
7295
7296 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
7297 MSDOS frames as well.
7298
72992008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
7300
7301 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
7302 correct arguments.
b71ac3dd 7303 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
7304
73052008-10-03 Glenn Morris <rgm@gnu.org>
7306
7307 * emacs.c (USAGE1): Add --daemon.
7308
73092008-10-02 Eli Zaretskii <eliz@gnu.org>
7310
7311 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
7312 100, so it's in percents as advertised.
7313
73142008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
7315
7316 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
7317 (ns_output.current_cursor, ns_output.desired_cursor)
7318 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
7319 (FRAME_NEW_CURSOR_COLOR): Remove.
7320
7321 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 7322 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
7323 enumeration (HOLLOW_BOX_CURSOR, etc.).
7324
7325 * nsterm.m (ns_frame_rehighlight): Remove commented code.
7326 (draw_window_cursor): Simplify code.
f5385255
SM
7327 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
7328 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 7329 updates manually.
a9b555d3
JB
7330 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
7331 Use core Emacs cursor types.
aac0c6e3 7332
b8ff72fa 7333 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
7334
73352008-10-02 Martin Rudalics <rudalics@gmx.at>
7336
7337 * process.c (Faccept_process_output): Fix doc-string.
7338
73392008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
7340
7341 * gmalloc.c (__sbrk): Also define for uClibc.
7342
7343 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
7344 for uClibc.
7345
73462008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
7347
7348 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
7349 styles.
7350 (nsfont_open): Reenable the cache.
7351
73522008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
7353
7354 * font.c (font_matching_entity): Reflect ATTRS in font selection.
7355 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
7356
73572008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
7358
7359 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
7360 a suspended terminal.
7361
73622008-09-30 Michael Albinus <michael.albinus@gmx.de>
7363
7364 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
7365
73662008-09-30 Eli Zaretskii <eliz@gnu.org>
7367
7368 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
7369
73702008-09-30 Chong Yidong <cyd@stupidchicken.com>
7371
7372 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
7373 in a continued line coincides with a line beginning.
7374
73752008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
7376
7377 * nsfont.m (nsfont_trait_distance): Fix bug.
7378 (nsfont_list): Return a list rather than a vector (syncs with Handa
7379 changes of 2008-05-14).
7380 (nsfont_open): Improve logging.
7381
73822008-09-29 Andreas Schwab <schwab@suse.de>
7383
7384 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
7385
73862008-09-28 Martin Rudalics <rudalics@gmx.at>
7387
7388 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
7389 name as char-resolve-modifiers.
7390 Reported by: Markus Triska <markus.triska@gmx.at>
7391
73922008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
7393
7394 * dispnew.c (init_display): Return earlier when running as a daemon.
7395
73962008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
7397
7398 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
7399
74002008-09-27 Eli Zaretskii <eliz@gnu.org>
7401
7402 * composite.c (Fcomposition_get_gstring)
7403 (Fcompose_region_internal, Fcompose_string_internal)
7404 (Ffind_composition_internal): Doc fix.
7405 (syms_of_composite) <compose-chars-after-function>: Doc fix.
7406 (syms_of_composite) <auto-composition-function>: Doc fix.
7407 (syms_of_composite) <composition-function-table>: Doc fix.
7408
74092008-09-25 Chong Yidong <cyd@stupidchicken.com>
7410
7411 * search.c (wordify): New argument for lax word-ends.
7412 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
7413
74142008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
7415
7416 * lisp.h (is_daemon): Declare.
7417 * dispnew.c (init_display): Do not try to initialize the terminal
7418 when running as a daemon.
7419
74202008-09-22 Chong Yidong <cyd@stupidchicken.com>
7421
7422 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
7423 x_display_pixel_height.
7424
74252008-09-22 Martin Rudalics <rudalics@gmx.at>
7426
7427 * undo.c (record_point): Don't call Fundo_boundary for first
7428 change. (Bug#731)
7429
74302008-09-22 Juanma Barranquero <lekktu@gmail.com>
7431
7432 * emacs.c (Fdaemonp): Doc fix.
7433
74342008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
7435
7436 * emacs.c (main): Place #ifdef in the proper place.
7437
74382008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
7439
7440 * emacs.c (standard_args): Add --daemon.
7441 (main): Disconnect from the terminal when --daemon is passed.
7442 (is_daemon): New variable.
7443 (Fdaemonp): New function.
7444 (syms_of_emacs): Defsubr it.
7445
74462008-09-20 Chong Yidong <cyd@stupidchicken.com>
7447
7448 * xdisp.c (get_next_display_element): Handle string display
7449 correctly when checking for the end of a box run.
7450
74512008-09-20 Glenn Morris <rgm@gnu.org>
7452
7453 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
7454 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
7455 (Frename_file): Avoid copying to trash if a rename involves
7456 a delete. (Bug#964).
7457
74582008-09-20 Eli Zaretskii <eliz@gnu.org>
7459
7460 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
7461 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
7462 frames as well as termcap frames.
7463 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
7464 get_named_tty.
7465
74662008-09-19 Eli Zaretskii <eliz@gnu.org>
7467
7468 * process.c (procfs_system_process_attributes): Fix cmdline in
7469 case /proc/PID/cmdline is empty.
7470
7471 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
7472 x_display_pixel_height.
7473
74742008-09-19 Juanma Barranquero <lekktu@gmail.com>
7475
7476 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
7477
7478 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
7479 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
7480
74812008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
7482
7483 * dispextern.h (struct it): Move line_wrap away from the middle of
7484 bitfields. Move voffset in struct iterator_stack_entry after the
7485 bitfields. Move tab_width near after another short.
7486
74872008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
7488
7489 * frame.h (struct frame): Move alpha from the middle of bitfields.
7490
7491 * window.h (struct window): Move frozen_window_start_p after the
7492 rest of the bitfields to reduce padding.
7493
74942008-09-18 Chong Yidong <cyd@stupidchicken.com>
7495
7496 * xterm.h (x_display_info): Remove `height' and `width' members.
7497
7498 * nsterm.h (ns_display_info): Remove `height' and `width' members.
7499
7500 * w32term.h (w32_display_info): Remove `height', `width',
7501 `height_in', and `width_in' members.
7502
b8ff72fa
SM
7503 * xterm.c (x_display_pixel_height, x_display_pixel_width):
7504 New functions.
aac0c6e3
MR
7505 (x_calc_absolute_position): Use them.
7506 (x_term_init): Omit removed `height' and `width' members.
7507
b8ff72fa
SM
7508 * w32term.c (x_display_pixel_height, x_display_pixel_width):
7509 New functions.
aac0c6e3
MR
7510 (w32_read_socket, x_calc_absolute_position): Use them.
7511 (w32_initialize_display_info, w32_term_init): Omit removed members
7512 of w32_display_info.
7513
b8ff72fa
SM
7514 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
7515 New functions.
7516 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 7517
b8ff72fa
SM
7518 * xterm.c (x_display_pixel_height, x_display_pixel_width):
7519 New functions.
aac0c6e3
MR
7520 (x_calc_absolute_position): Use them.
7521 (x_term_init): Omit removed `height' and `width' members.
7522
7523 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
7524 (compute_tip_xy):
7525 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
7526 * xmenu.c (menu_position_func): Use x_display_pixel_height and
7527 x_display_pixel_width.
7528
75292008-09-18 Kenichi Handa <handa@m17n.org>
7530
7531 * composite.c (fill_gstring_header): Don't check FROM and TO here.
7532 (composition_compute_stop_pos): Fix handling of static composition.
7533 (Fcomposition_get_gstring): Check FROM and TO at first.
7534
75352008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
7536
46e722a9 7537 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
7538 mixup (YAILOM).
7539
75402008-09-17 Chong Yidong <cyd@stupidchicken.com>
7541
7542 * indent.c (Fvertical_motion): Use position reported by iterator
7543 instead of PT for determining screen motion (bug#943).
7544
75452008-09-17 Romain Francoise <romain@orebokech.com>
7546
7547 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
7548
75492008-09-17 Kenichi Handa <handa@m17n.org>
7550
7551 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
7552
7553 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
7554 if necessary.
7555
75562008-09-16 Kenichi Handa <handa@m17n.org>
7557
7558 * coding.c (make_conversion_work_buffer): Avoid calling
7559 Fget_buffer_create if it is not necessary.
7560
75612008-09-15 Martin Rudalics <rudalics@gmx.at>
7562
7563 * window.c (Fselect_window): Don't update window_select_count and
7564 use_time when norecord is not nil.
7565
75662008-09-14 Kenichi Handa <handa@m17n.org>
7567
7568 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
7569 specpdl_ptr.
7570
75712008-09-12 Kenichi Handa <handa@m17n.org>
7572
7573 * indent.c (scan_for_column): Don't handle automatic composition
7574 if the current buffer is not associated with a window.
7575
7576 * composite.c (composition_reseat_it): If the current buffer is
7577 not associated with a window, ignore the automatic composition.
7578 (find_automatic_composition): Likewise.
7579
75802008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
7581
7582 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
7583 (Fgpm_mouse_stop): Use it.
7584 * termhooks.h (close_gpm): Declare.
7585 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
7586 connection if Gpm_GetEvent fails.
7587
7588 * window.c (set_window_buffer): Always preserve current-buffer.
7589
75902008-09-12 Glenn Morris <rgm@gnu.org>
7591
7592 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
7593
75942008-09-11 Glenn Morris <rgm@gnu.org>
7595
7596 * charset.c (charset-map-path): Doc fix.
7597
75982008-09-10 Kenichi Handa <handa@m17n.org>
7599
7600 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
7601
7602 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
7603 compose a grapheme cluster with the preceding base glyph.
7604
7605 * composite.c (composition_compute_stop_pos): Fix previous change.
7606 Reset cmp_it->id to -1 at first.
7607
76082008-09-10 Glenn Morris <rgm@gnu.org>
7609
7610 * Makefile.in (character.o, chartab.o): Fix config.h typo.
7611
76122008-09-09 Chong Yidong <cyd@stupidchicken.com>
7613
7614 * keyboard.c (read_key_sequence): Reapply translation maps when
7615 switching keyboards.
7616
76172008-09-09 Kenichi Handa <handa@m17n.org>
7618
7619 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
7620 characters.
7621
7622 * composite.c (FORWARD_CHAR): Fix calculation
7623 of (POSITION).pos_byte.
7624 (composition_compute_stop_pos): Limit the search of composition to
7625 at most 500 characters ahead. If we reach the limit or find a
7626 newline, set cmp_it->ch to -2 and return 0.
7627 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
7628
76292008-09-08 Kenichi Handa <handa@m17n.org>
7630
7631 * indent.c (Fvertical_motion): Be sure to set
7632 it_overshoot_expected if it.cmp_it.id is non-negative.
7633
76342008-09-07 Andreas Schwab <schwab@suse.de>
7635
7636 * callproc.c (Fcall_process): Don't hold references to string data
7637 across garbage collection. Move initialisation of new_argv down
7638 to avoid compiler bug.
7639
76402008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
7641
7642 * process.c (Fsystem_process_attributes): Doc fix.
7643
76442008-09-07 Chong Yidong <cyd@stupidchicken.com>
7645
7646 * callproc.c (Fcall_process): Canonicalize current directory name.
7647
7648 * xdisp.c (move_it_to): When moving by vpos, ensure that the
7649 iterator advances to the next line if the current line ends in a
7650 continued tab.
7651
76522008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
7653
7654 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
7655 member to point to cmp_from.
7656
7657 * xdisp.c: Doc fix for references to gidx data member.
7658
76592008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
7660
7661 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
7662
76632008-09-07 Kenichi Handa <handa@m17n.org>
7664
7665 * composite.c (FORWARD_CHAR): Check STOP after
7666 incrementing (POSITION).pos.
7667
76682008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
7669
7670 * process.c (Fsystem_process_attributes): Doc fix.
7671
76722008-09-06 Chong Yidong <cyd@stupidchicken.com>
7673
7674 * keyboard.c (Ftop_level): Doc fix.
7675
76762008-09-06 Eli Zaretskii <eliz@gnu.org>
7677
7678 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
7679 minibuffer, don't let lower part of menu invade the echo area.
7680
7681 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
7682 "char *q" to access menu text and advance through it. Revert the
7683 change that displayed ">" instead of ASCII character 0x10.
7684
76852008-09-05 Eli Zaretskii <eliz@gnu.org>
7686
7687 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
7688 toggle boxes and radio buttons on MS-DOS as well.
7689
76902008-09-05 Kenichi Handa <handa@m17n.org>
7691
7692 * composite.c (autocmp_chars): Check lookback count.
7693 (composition_compute_stop_pos): Set cmp_it->lookback.
7694 (composition_reseat_it): Check lookback count.
7695 (struct position_record): New struct.
7696 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
7697 (find_automatic_composition): New function.
7698 (composition_adjust_point): Use find_automatic_composition.
7699
7700 * dispextern.h (struct composition_it): New member lookback.
7701
77022008-09-02 Chong Yidong <cyd@stupidchicken.com>
7703
7704 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
7705 if moving by a single line.
7706
77072008-09-02 Andreas Schwab <schwab@suse.de>
7708
7709 * xterm.c (x_delete_display): Fix merge error.
7710
7711 * fileio.c (Fexpand_file_name): Remove unused variables.
7712
77132008-09-02 Eli Zaretskii <eliz@gnu.org>
7714
7715 * fileio.c (Fexpand_file_name): Copy argument `name' into local
7716 storage on all platforms, not just on DOS_NT.
7717
77182008-09-02 Jason Rumney <jasonr@gnu.org>
7719
b8ff72fa
SM
7720 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
7721 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
7722
77232008-09-01 Chong Yidong <cyd@stupidchicken.com>
7724
7725 * xfaces.c (Finternal_set_alternative_font_family_alist)
7726 (Finternal_set_alternative_font_registry_alist): Properly copy
7727 entire alist structure.
7728
77292008-09-01 Kenichi Handa <handa@m17n.org>
7730
d66c0241 7731 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 7732 representative chars of the script is a vector.
d66c0241
JB
7733 (ftfont_list): Handle the case where the representative chars of
7734 the script is a vector.
aac0c6e3
MR
7735
7736 * character.c (syms_of_character): Docstring of
7737 script-representative-chars fixed.
7738
77392008-08-31 Eli Zaretskii <eliz@gnu.org>
7740
7741 * msdos.c (BUILD_CHAR_GLYPH): New macro.
7742 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
7743 the menu. Allocate larger buffer for `text', to account for
7744 possible ^C characters.
7745
77462008-08-31 Martin Rudalics <rudalics@gmx.at>
7747
7748 * xdisp.c (prepare_menu_bars): Don't call
7749 Vwindow_size_change_functions with arg Qt.
7750
77512008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
7752
7753 * font.h (font_range):
7754 * fileio.c (report_file_error):
46e722a9
SM
7755 * composite.c (composition_update_it): Yet another int/Lisp_Object
7756 mixup (YAILOM).
aac0c6e3
MR
7757
77582008-08-30 Glenn Morris <rgm@gnu.org>
7759
7760 * data.c (Fmake_variable_frame_local): Doc fix.
7761
7762 * frame.c (Fmodify_frame_parameters): Doc fix.
7763
77642008-08-30 Eli Zaretskii <eliz@gnu.org>
7765
7766 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
7767 needed by GetTokenInformation.
7768 (w32_system_process_attributes): Check return values of all system
7769 APIs.
7770
7771 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
7772 only when the state changes.
7773 (IT_update_begin, IT_update_end): Add termscript trace.
7774
7775 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
7776 clipboard is unavailable. Set dst to NULL if it doesn't point to
7777 malloc'ed data.
7778 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
7779 passing random values to xfree.
7780
7781 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 7782 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
7783
77842008-08-29 Jason Rumney <jasonr@gnu.org>
7785
7786 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
7787
77882008-08-29 Eli Zaretskii <eliz@gnu.org>
7789
7790 * composite.c (fill_gstring_body): Avoid compiler warnings.
7791
7792 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
7793 LGLYPH_SET_CODE to avoid compiler warnings.
7794
2ae37cf0 7795 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
7796
7797 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
7798
7799 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
7800 LGLYPH_SET_CODE.
7801
78022008-08-29 Kenichi Handa <handa@m17n.org>
7803
7804 * fileio.c (report_file_error): Don't downcase the first character
7805 of errstring if it is still unibyte.
7806
78072008-08-29 Kenichi Handa <handa@m17n.org>
7808
7809 These changes are to re-implement the automatic composition so
7810 that it doesn't use text properties.
7811
7812 * Makefile.in (ftfont.o): Depend on composite.h.
7813 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
7814
7815 * character.h (Vunicode_category_table): Extern it.
7816
7817 * character.c (Vunicode_category_table): New variable.
7818 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
7819
7820 * chartab.c (optimize_sub_char_table): Perform more greedy
7821 optimization.
7822
b8ff72fa
SM
7823 * composite.h (enum composition_method):
7824 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
7825 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
7826 (Vcomposition_function_table): Extern it.
7827 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
7828 (composition_gstring_put_cache, composition_gstring_from_id)
7829 (composition_gstring_p, composition_gstring_width)
7830 (composition_compute_stop_pos, composition_reseat_it)
7831 (composition_update_it, composition_adjust_point): Extern them.
7832 (Fcomposition_get_gstring): EXFUN it.
7833
d66c0241 7834 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
7835 (Vcomposition_function_table)
7836 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
7837 (gstring_hash_table, gstring_work, gstring_work_headers):
7838 New variables.
aac0c6e3
MR
7839 (gstring_lookup_cache, composition_gstring_put_cache)
7840 (composition_gstring_from_id, composition_gstring_p)
7841 (composition_gstring_width, fill_gstring_header)
7842 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
7843 (composition_reseat_it, composition_update_it)
b8ff72fa 7844 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
7845 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
7846 and gstring_work_headers. DEFVAR_LISP composition-function-table.
a73f9c9d 7847 Defsubr composition_get_gstring.
aac0c6e3
MR
7848
7849 * dispextern.h (struct glyph): New union u.cmp. Delete the member
7850 cmp_id.
7851 (struct glyph_string): Delete the member gidx. New members
7852 cmp_id, cmp_from, and cmp_to.
7853 (enum it_method): Delete GET_FROM_COMPOSITION.
7854 (struct composition_it): New struct.
7855 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
7856 Delete c, len, cmp_id, cmp_len in u.comp.
7857
7858 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 7859 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 7860 (enum lglyph_indices): Likewise.
b8ff72fa 7861 (font_range): Adjust extern.
aac0c6e3
MR
7862 (font_fill_lglyph_metrics): Extern it.
7863
7864 * font.c (QCf): New variable.
7865 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
7866 (font_prepare_composition): Delete this function.
7867 (font_range): Type and arguments changed.
7868 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
7869 (font_fill_lglyph_metrics): New function.
b8ff72fa 7870 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 7871 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
7872 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
7873 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
7874
7875 * fontset.h (font_for_char): Extern it.
7876
7877 * fontset.c (font_for_char): New function.
7878
7879 * ftfont.c: Include composite.h.
7880 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 7881 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
7882
7883 * indent.c: Include composite.h and dispextern.h.
7884 (check_composition): Delete this function.
7885 (scan_for_column): Handle composition by
7886 composition_compute_stop_pos, composition_reseat_it, and
7887 composition_update_it.
7888 (compute_motion): Likewise.
7889 (Fvertical_motion): Fix checking of composition.
7890
7891 * keyboard.c (adjust_point_for_property): Check composition by
7892 composition_adjust_point.
7893
b8ff72fa 7894 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
7895 struct glyph_string.
7896
b8ff72fa
SM
7897 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
7898 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
7899 struct glyph.
7900 (produce_composite_glyph): Likewise.
7901
b8ff72fa
SM
7902 * w32term.c (x_draw_composite_glyph_string_foreground):
7903 Adjust for the change of struct glyph_string.
aac0c6e3
MR
7904 (x_draw_glyph_string): Likewise.
7905
7906 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
7907 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
7908
7909 * xdisp.c: Include font.h.
7910 (it_props): Delete the entry for Qauto_composed.
7911 (init_iterator): Initialize it->cmp_it.id to -1.
7912 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 7913 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
7914 (handle_auto_composed_prop): Delete it.
7915 (handle_composition_prop): Handle only static composition.
7916 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
7917 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 7918 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
7919 (pop_it): Likewise.
7920 (get_next_element): Delete next_element_from_composition.
7921 (CHAR_COMPOSED_P): New macro.
7922 (get_next_display_element): For automatic composition, get a face
7923 from the font in the glyph-string.
7924 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 7925 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
7926 (next_element_from_string): Check if the character at the current
7927 position is composed by CHAR_COMPOSED_P.
7928 (next_element_from_buffer): Likewise.
d66c0241
JB
7929 (next_element_from_composition): Adjust for the change of struct it.
7930 Update it->cmp_it.
b8ff72fa
SM
7931 (dump_glyph): Adjust for the change of struct glyph.
7932 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
7933 it and struct glyph. Don't handle automatic composition here.
7934 (fill_gstring_glyph_string): New function.
7935 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 7936 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
7937 (BUILD_GSTRING_GLYPH_STRING): New macro.
7938 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
7939 automatic composition.
b8ff72fa 7940 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 7941 struct glyph.
b8ff72fa 7942 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 7943
b8ff72fa 7944 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
7945 the change of struct glyph_string.
7946 (x_draw_glyph_string): Likewise.
7947
79482008-08-29 Glenn Morris <rgm@gnu.org>
7949
7950 * buffer.c (word-wrap): Doc fix.
7951 * xdisp.c (truncate-partial-width-windows): Doc fix.
7952 Increase default to 50.
7953
79542008-08-29 Chong Yidong <cyd@stupidchicken.com>
7955
7956 * xdisp.c (update_tool_bar_unwind): New function.
7957 (update_tool_bar): Temporarily set selected frame before building
7958 tool-bar items.
7959
79602008-08-28 Michael Albinus <michael.albinus@gmx.de>
7961
7962 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
7963 snprintf, respectively.
7964 (xd_append_arg): Convert strings with Fstring_make_unibyte.
7965
79662008-08-28 Chong Yidong <cyd@stupidchicken.com>
7967
7968 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
7969 LDFLAGS to GNUstep CC invocation.
7970
79712008-08-27 Chong Yidong <cyd@stupidchicken.com>
7972
7973 * indent.c (Fvertical_motion): Revert last change. Handle the
7974 general case where we are moving forward, and PT spans multiple
7975 screen lines.
7976
7977 * eval.c (find_handler_clause): Temporarily increase
7978 max-lisp-eval-depth while printing the backtrace buffer, to
7979 guarantee that help-mode code can run.
7980
79812008-08-27 Eli Zaretskii <eliz@gnu.org>
7982
7983 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
7984 colors under -rv.
7985 (IT_set_frame_parameters): Don't swap foreground and background
7986 colors if `(reverse . t)' is present in the frame properties.
7987 (internal_terminal_init): Call init_frame_faces only for the
7988 initial frame.
7989
79902008-08-27 Andreas Schwab <schwab@suse.de>
7991
7992 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
7993
79942008-08-27 Andreas Schwab <schwab@suse.de>
7995
7996 * search.c (search_buffer): Set char_base to zero only at the end.
7997
79982008-08-27 Kenichi Handa <handa@m17n.org>
7999
b8ff72fa 8000 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
8001
80022008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
8003
8004 * xterm.c (x_term_init): Temporarily hide the partially
8005 initialized terminal while calling vendor-specific-keysyms.
8006
80072008-08-26 Eli Zaretskii <eliz@gnu.org>
8008
8009 * msdos.c (internal_terminal_init): Most initializations done only
8010 once, especially initial_screen_colors[] and termscript open.
8011
80122008-08-26 Chong Yidong <cyd@stupidchicken.com>
8013
8014 * eval.c (Fcondition_case): Doc fix.
8015
8016 * widgetprv.h (EmacsFramePart): Change font member to the new font
8017 struct.
8018
8019 * widget.c: Include character.h and font.h for XSETFONT.
8020 (setup_frame_gcs): Compute X font id from font struct, just once.
8021
80222008-08-26 Eli Zaretskii <eliz@gnu.org>
8023
8024 * term.c (get_named_tty): Fix last change.
8025
80262008-08-26 Chong Yidong <cyd@stupidchicken.com>
8027
8028 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 8029 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
8030
80312008-08-25 Eli Zaretskii <eliz@gnu.org>
8032
8033 * frame.c (do_switch_frame): Mark previously displayed frame as
8034 obscured for FRAME_MSDOS_P frames as well.
8035
80362008-08-24 Eli Zaretskii <eliz@gnu.org>
8037
8038 * frame.c (make_terminal_frame): Initialize f->terminal,
8039 f->terminal->reference_count, and scroll bars on MS-DOS as well.
8040 Set the top frame to newly created frame.
8041 (Fmake_terminal_frame): Reuse the_only_display_info.
8042
8043 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
8044 estimating available memory.
8045
b97439ce 80462008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
8047
8048 * nsterm.m (ns_draw_window_cursor): Don't call
8049 NSDisableScreenUpdates and NSEnableScreenUpdates on
8050 non-NS_IMPL_COCOA systems.
8051
80522008-08-23 Andreas Schwab <schwab@suse.de>
8053
8054 * process.c (procfs_system_process_attributes): Fix use of
8055 uninitialized variables.
8056
80572008-08-23 Eli Zaretskii <eliz@gnu.org>
8058
8059 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
8060
8061 * dispnew.c (init_display): Remove MS-DOS specific conditions for
8062 calling tty-set-up-initial-frame-faces.
8063
b8ff72fa
SM
8064 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
8065 Allow MSDOS frames along with X frames.
aac0c6e3
MR
8066
8067 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
8068 addition to output_termcap.
8069
8070 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
8071
8072 * termchar.h (FRAME_TTY): Support output_msdos_raw.
8073 (struct tty_display_info) [MSDOS]: Add fields related to mouse
8074 highlight.
8075
8076 * process.c [!subprocesses]: Define QCname.
8077 (syms_of_process): Intern and staticpro it.
8078
8079 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
8080 Adjust for changes in encoding/decoding routines.
8081 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
8082 encode_coding and decode_coding.
8083
b8ff72fa 8084 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
8085
8086 * dosfns.c: Include frame.h before termhooks.h.
8087 (dos_cleanup): Use CURTTY ()->termscript instead of a global
8088 variable termscript.
8089
8090 * s/msdos.h (USER_FULL_NAME): Define.
8091 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
8092
8093 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
8094 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
8095 pw->pw_gecos.
8096
8097 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
8098 SELECTED_FRAME as additional (1st) argument.
8099 (tty_read_avail_input): Handle output_msdos_raw in
8100 addition to output_termcap.
8101
8102 * msdos.c: Include frame.h before termhooks.h.
8103 (mouse_on, mouse_off, mouse_moveto, mouse_init)
8104 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
8105 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
8106 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
8107 (IT_set_terminal_modes, IT_reset_terminal_modes)
8108 (IT_set_frame_parameters): Use tty->termscript instead of a global
8109 variable termscript.
8110 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
8111 global variable terminal_coding. Don't refer to
8112 Vnonascii_translation_table.
8113 (internal_terminal_init): Set Vwindow_system in current_kboard.
8114 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
8115 Announce date and time of session start, if termscript is open.
8116 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
8117 term.c:init_tty). Open termscript only of not already open.
8118 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
8119 here instead of dos_ttraw. Don't initialize display if this is an
8120 initial tty. Don't set FRAME_FONT.
8121 (Vwindow_system_version): Bump to 23.
8122 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
8123 is available, set up mouse_position_hook.
8124 (dos_ttraw, IT_set_terminal_modes): If called with initial
8125 terminal, do nothing.
8126 (IT_set_frame_parameters): Handle the Qtty_type frame
8127 parameter by calling internal_terminal_init.
8128 (dos_set_window_size, show_mouse_face)
8129 (clear_mouse_face, IT_note_mode_line_highlight)
8130 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
8131 (dos_rawgetc): Use tty_display_info instead of x_display_info.
8132 (initialize_msdos_display): New function.
8133 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
8134 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
8135 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
8136 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 8137 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
8138 (request_sigio, unrequest_sigio): Don't define, now defined on
8139 sysdep.c.
8140 (IT_write_glyphs): Rewrite to use encode_terminal_code.
8141
8142 * term.c [MSDOS]: Include msdos.h.
8143 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
8144 conditional to DOS_NT. Allow only one call to this function in a
8145 session. Don't allocate a new struct tty_display_info; instead,
8146 reuse the_only_display_info. Call get_tty_size to get screen
8147 dimensions. Call init_baud_rate to set bad_rate.
8148 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
8149 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 8150 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
8151 (get_tty_terminal, get_named_tty, Ftty_type)
8152 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
8153 output_termcap.
b8ff72fa
SM
8154 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
8155 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 8156 only when subprocesses are supported.
aac0c6e3
MR
8157
8158 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
8159 f->output_data.x.
8160 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
8161 terminal devices.
8162
5582fbc7 8163 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
8164 x_output.
8165 (FRAME_FONT): Use output_data.tty.
8166 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
8167 (struct x_display_info): Rename from display_info. Update all users in
8168 msdos.c.
aac0c6e3 8169 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 8170 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
8171 (dos_ttraw): Update prototype.
8172
8173 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
8174 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
8175
81762008-08-23 Jason Rumney <jasonr@gnu.org>
8177
8178 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
8179 (fn_TIFFSetDirectory): New library function used.
8180 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
8181 (tiff_load): Use :index to select among multiple images. Set count
8182 property when multiple images exist.
8183 (gif_format): Use :index, not :image.
8184
81852008-08-23 Chong Yidong <cyd@stupidchicken.com>
8186
8187 * xdisp.c (try_scrolling): Check INT_MAX instead of
8188 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
8189 to obtain INT_MAX.
8190
81912008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
8192
8193 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
8194
81952008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
8196
8197 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
8198 GNUstep library location.
8199
82002008-08-21 Chong Yidong <cyd@stupidchicken.com>
8201
8202 * xfaces.c (x_update_menu_appearance): Check validity of menu font
8203 before using it.
8204
8205 * puresize.h (BASE_PURESIZE): Increase to 1250000.
8206
82072008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
8208
8209 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
8210 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
8211 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
8212 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
8213 (EmacsApp-cursor_blink_handler): Remove declaration.
8214 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
8215 match 01 Feb 2008 changes in xterm.c.
8216 (ns_read_socket): Add cast to avoid warning.
8217 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
8218 GNUstep.
8219
82202008-08-20 Chong Yidong <cyd@stupidchicken.com>
8221
8222 * xselect.c (x_get_foreign_selection): Return nil if desired
8223 selection could not be obtained, instead of signalling an error.
8224
82252008-08-20 David Reitter <david.reitter@gmail.com>
8226
8227 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
8228 * nsterm.m: Remove ns-specific code for cursor blinking.
8229 (ns_draw_window_cursor): Clear cursor properly rather than
8230 redrawing the area. Respect width of bar cursors.
8231 These changes enable the use of generic blink-cursor-mode and
8232 generic cursor types in NS and support smooth cursor movements (do
8233 not blink off after command).
8234 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
8235 Nextstep, too.
8236
82372008-08-19 Kenichi Handa <handa@m17n.org>
8238
8239 * font.c (Vfont_log_deferred): New variable.
8240 (font_add_log): Check Vfont_log_deferred.
8241 (font_deferred_log): New function.
8242
8243 * font.h (font_deferred_log): Extern it.
8244
8245 * fontset.c (reorder_font_vector): Use encoding charset of fonts
8246 for sorting.
8247 (face_for_char): Use deferred log.
8248
82492008-08-18 Kenichi Handa <handa@m17n.org>
8250
8251 * fontset.c (face_for_char): Add font log.
8252
8253 * font.c (font_add_log): Add the font properties :script, :lang,
8254 and :otf in the log.
8255
82562008-08-17 Chong Yidong <cyd@stupidchicken.com>
8257
8258 * xdisp.c: Remove dead code.
8259 (handle_invisible_prop, next_overlay_string): Defer call to
8260 setup_for_ellipsis.
8261 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
8262
82632008-08-15 Chong Yidong <cyd@stupidchicken.com>
8264
8265 * xfaces.c (lookup_derived_face): Properly handle possible zero
8266 return value of get_lface_attributes.
8267 (merge_faces): Don't tell lookup_derived_face to signal an error
8268 if face is not found.
8269
8270 * dired.c (Fdirectory_files): Doc fix.
8271
8272 * process.c (make_process): Initialize kill_without_query struct
8273 member.
8274
82752008-08-15 Eli Zaretskii <eliz@gnu.org>
8276
8277 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
8278 Alternative calculation of totphys for Visual Studio 6.
8279
8280 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
8281
8282 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
8283 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
8284 All users changed.
8285 (stat): Only root directory passed to GetDriveType. Allow RAM
8286 disk as well as local fixed disk when w32-get-true-file-attributes
8287 is set to `local'.
8288 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
8289 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
8290 (w32_cached_id, w32_add_to_cache): New functions.
8291 (get_name_and_id): Look account names in the cache before calling
8292 lookup_account_sid.
8293 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
8294 New initialization flags.
8295 (globals_of_w32): Initialize them to zero.
8296 (w32_system_process_attributes): Use w32_cached_id and
8297 w32_add_to_cache.
8298
82992008-08-14 Lawrence Mitchell <wence@gmx.li>
8300
8301 * lread.c (Fread_char, Fread_char_exclusive): If no character
8302 event is read before timeout is reached, return nil, rather than
8303 converting to a number.
8304
83052008-08-14 Chong Yidong <cyd@stupidchicken.com>
8306
8307 * fns.c (use_dialog_box): Doc fix.
8308
8309 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
8310 on OS X.
8311
83122008-08-13 Chong Yidong <cyd@stupidchicken.com>
8313
8314 * frame.c (Qns_parse_geometry): New var.
8315 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
8316
83172008-08-11 Chong Yidong <cyd@stupidchicken.com>
8318
8319 * xdisp.c (x_produce_glyphs): Handle the case when font has no
8320 space character in calculating tabs.
8321
83222008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
8323
8324 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
8325
83262008-08-10 Glenn Morris <rgm@gnu.org>
8327
8328 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
8329 silence gcc "limited range of data type" warnings in some
8330 make_fixnum_or_float calls.
8331
83322008-08-09 Eli Zaretskii <eliz@gnu.org>
8333
8334 * w32.c (w32_system_process_attributes): If the process does not
8335 exist, return nil.
8336
8337 * w32.c: Include thelp32.h, psapi.h and coding.h.
8338 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
8339 declarations.
8340 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
8341 (Process32Next_Proc): New typedefs.
8342 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
8343 (g_b_init_process32_next, g_b_init_open_thread_token)
8344 (g_b_init_impersonate_self, g_b_init_revert_to_self)
8345 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
8346 (g_b_init_get_process_working_set_size)
8347 (g_b_init_global_memory_status_ex): New static variables.
8348 (globals_of_w32): Initialize them.
8349 (create_toolhelp32_snapshot, process32_first, process32_next)
8350 (open_thread_token, impersonate_self, revert_to_self)
8351 (get_process_memory_info, get_process_working_set_size)
8352 (global_memory_status, global_memory_status_ex): New wrapper
8353 functions.
8354 (w32_list_system_processes, w32_system_process_attributes)
8355 (enable_privilege, restore_privilege, ltime, process_times):
8356 New functions.
8357 (convert_time_raw): New function.
8358 (convert_time): Remove conversion of FILETIME into time in 100
8359 nsec units, call convert_time_raw instead.
8360
8361 * process.h (w32_list_system_processes, w32_system_process_attributes):
8362 Add prototypes.
8363 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
8364 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
8365 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
8366 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
8367
8368 * process.c (Fsystem_process_attributes): Doc fix.
8369
83702008-08-08 Chong Yidong <cyd@stupidchicken.com>
8371
8372 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
8373 a continued multi-char glyph; if so, advance to the actual glyph.
8374
83752008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
8376
8377 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
8378
8379 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
8380 (.m.o): Use it.
8381 * config.in: Regenerate.
8382
83832008-08-07 Chong Yidong <cyd@stupidchicken.com>
8384
8385 * xdisp.c (redisplay_window): Revert last change.
8386 (try_window): Check bottom scroll margin too.
8387
83882008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
8389
8390 * config.in: Regenerate.
8391
8392 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
8393 -list-load-path-shadows'.
8394 (nsgui.h): Reduce number of things depending on it.
8395
83962008-08-06 Chong Yidong <cyd@stupidchicken.com>
8397
8398 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
8399 instead of window-end which does the wrong thing at eob.
8400 (try_cursor_movement): Minor optimization.
8401 (redisplay_window): If scroll margin is defined, don't assume
8402 window doesn't need scrolling.
8403
84042008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
8405
8406 * config.in: Regenerate.
8407
8408 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
8409 (mostlyclean): Don't delete *.d under NS.
8410
8411 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
8412
84132008-08-06 Kenichi Handa <handa@m17n.org>
8414
8415 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
8416
84172008-08-06 Andreas Schwab <schwab@suse.de>
8418
8419 * config.in: Regenerate.
8420
84212008-08-05 Chong Yidong <cyd@stupidchicken.com>
8422
8423 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
8424 forcing a window start.
8425
8426 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
8427 (auto_save_1): Update modtime when auto-save-list-file-name is on.
8428
84292008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
8430
8431 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
8432 argument.
8433
84342008-08-05 Juanma Barranquero <lekktu@gmail.com>
8435
8436 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
8437 <scroll-down-aggressively, before-change-functions>:
8438 <after-change-functions>: Reflow docstrings.
8439
84402008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
8441 Ken Raeburn <raeburn@gnu.org>
8442
8443 Dock menu customization, based on a patch by Ken Raeburn, plus some
8444 other fixes.
8445 * nsmenu.m (dockMenu): New variable.
8446 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
8447
8448 * nsterm.h (dockMenu): Declare.
8449
8450 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
8451 (ns_term_init): Initialize dockMenu.
8452 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
8453 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
8454 left.
8455
8456 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
8457
84582008-08-04 Chong Yidong <cyd@stupidchicken.com>
8459
8460 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
8461
8462 * config.in: Regenerate.
8463
84642008-08-04 Seiji Zenitani <zenitani@mac.com>
8465
8466 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
8467
84682008-08-04 Chong Yidong <cyd@stupidchicken.com>
8469
8470 * nsterm.h (find_and_call_menu_selection): Fix prototype.
8471
84722008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
8473
8474 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
8475
8476 * keyboard.h: Comment an #endif.
8477
8478 * lisp.h (have_menus_p): Adjust comment.
8479
8480 * menu.c (find_and_return_menu_selection): Fix comparison with
8481 client_data.
8482
8483 * nsmenu.m (popup_activated_flag): New variable.
8484 (popup_activated): New function.
8485 (menu-or-popup-active-p): New exported lisp definition.
8486 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
8487 when popup done.
8488 (ns_popup_dialog): Set popup_activated_flag.
8489
8490 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
8491 version for GNUstep (handled by conditional typedef in nsterm.m).
8492 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
8493 in rgb.txt).
8494
8495 * process.c (init_process): Use DARWIN_OS, not DARWIN.
8496
8497 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
8498
8499 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
8500
8501 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
8502 shortcircuit if popup_activated like GTK and X toolkit.
8503
8504 * m/inter386.h: Change DARWIN to DARWIN_OS.
8505
8506 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
8507 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
8508 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
8509 comment on NO_SOCK_SIGIO.
8510
85112008-08-03 Chong Yidong <cyd@stupidchicken.com>
8512
8513 * nsterm.m (windowDidResize): Remove stopModal call.
8514
85152008-08-03 Andreas Schwab <schwab@suse.de>
8516
8517 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
8518 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
8519
85202008-08-02 Chong Yidong <cyd@stupidchicken.com>
8521
8522 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
8523 Don't use uninitialized pointer variable when using getrlimit.
8524
85252008-08-02 Jason Rumney <jasonr@gnu.org>
8526
8527 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
8528
85292008-08-02 Eli Zaretskii <eliz@gnu.org>
8530
8531 * alloc.c (NSTATICS): Bump to 0x640.
8532
8533 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
8534
8535 * lisp.h: Add prototype for directory_files_internal.
8536
8537 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
8538 New functions.
8539 (syms_of_process): Defsubr them. Add initializations for various
8540 Q* symbols used in procfs_system_process_attributes.
8541 (procfs_list_system_processes, procfs_system_process_attributes)
8542 [HAVE_PROCFS]: New functions.
8543 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
8544 (procfs_get_total_memory): New functions.
8545
85462008-08-01 Juanma Barranquero <lekktu@gmail.com>
8547
8548 * xfaces.c (Fx_load_color_file): Fix previous change;
8549 it is #ifdef WINDOWSNT, not WINDOWS_NT.
8550
85512008-08-01 Michael Albinus <michael.albinus@gmx.de>
8552
8553 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
8554
85552008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
8556
8557 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
8558
85592008-08-01 Chong Yidong <cyd@stupidchicken.com>
8560
8561 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
8562
8563 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
8564 define NSApplicationDelegateReplySuccess.
8565 (EmacsView -converstationIdentifier): Use long instead of
8566 NSInteger for GNUstep, since it doesn't have NSInteger.
8567
8568 * xmenu.c: Revert last change.
8569
8570 * keyboard.h: Fix last change.
8571
85722008-08-01 Juanma Barranquero <lekktu@gmail.com>
8573
8574 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
8575 on Windows.
8576
85772008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
8578
8579 Warning clearing and clean-up in NS port.
8580 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
8581 Add prototypes.
8582 * nsgui.h (FACE_DEFAULT): Remove, unused.
8583 (XGCValues): Change colors to unsigned long.
8584 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
8585 nsterm.m.
8586 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
8587 (ns_list_fonts): Remove, unused.
8588 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
8589 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
8590 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
8591 (nsfont_draw): Compare face colors to 0, not nil.
8592 * nsmenu.m (struct widget_value): Drop unneeded declaration.
8593 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
8594 (-addSubmenuWithTitle:): Use NSMenuItem class.
8595 (ns_popup_menu): Use NO, not NULL, for enabled setting.
8596 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
8597 (ns_clip_to_row): Make gc arg a BOOL.
8598 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
8599 ns_clip_to_row() call.
8600 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
8601 used). Cast FRAME_FONT assignments.
8602 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
8603 (ns_string_to_lispmod): Change arg to const char.
8604 (ns_term_init): Use NSMenuItem class.
8605 (EmacsApp -openFile:): Move to different section of file.
8606 (EmacsApp -application:openFiles:): Don't return a value, call
8607 -replyToOpenOrPrint:.
8608 (EmacsView -keyDown:): Fix up cast.
8609 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
8610 (EmacsView -menuDown:): Cast tag in call to
8611 find_and_call_menu_selection().
8612 (ns_list_fonts): Remove, unused.
8613 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
8614 (ns_fontname_to_xlfd): Make static.
8615 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
8616 Remove prototypes (now in keyboard.h).
8617 (next_menubar_widget_id): Remove, unused.
8618 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
8619 Remove prototypes (now in keyboard.h).
8620 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
8621
86222008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
8623
8624 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
8625 (floatfns.o): Depend on syssignal.h.
8626 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
8627
8628 * systty.h: Fix previous change that removed BSD_TERMIOS.
8629 Add comments to #ifdefs.
8630
86312008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
8632
8633 * w32fns.c (w32-load-color-file): Remove.
8634 (x-open-connection): Use renamed Fx_load_color_file.
8635 * xfaces.c (x-load-color-file): Add.
8636 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
8637 Emacs.clr.
8638 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
8639
86402008-07-31 Michael Albinus <michael.albinus@gmx.de>
8641
8642 * dbusbind.c (Fdbus_call_method_asynchronously)
8643 (Fdbus_method_error_internal): New defuns.
8644 (xd_read_message): Handle also reply messages.
8645 (Vdbus_registered_functions_table): Extend docstring.
8646
86472008-07-31 Juanma Barranquero <lekktu@gmail.com>
8648
8649 * keyboard.c (gobble_input): Fix previous change.
8650
86512008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
8652
8653 * bitmaps/README:
8654 * xfns.c:
8655 * termcap.c:
8656 * term.c:
8657 * syswait.h:
8658 * systty.h:
8659 * systime.h:
8660 * syssignal.h:
8661 * sysdep.c:
8662 * process.h:
8663 * process.c:
8664 * print.c:
8665 * ndir.h:
8666 * lread.c:
8667 * keyboard.c:
8668 * getpagesize.h:
8669 * floatfns.c:
8670 * fileio.c:
8671 * emacs.c:
8672 * doc.c:
8673 * dispnew.c:
8674 * dired.c:
8675 * data.c:
8676 * callproc.c:
8677 * buffer.c:
8678 * README:
8679 * Makefile.in:
8680 * s/template.h:
8681 * s/msdos.h:
8682 * m/vax.h: Remove VMS support.
8683 * s/vms.h:
8684 * vlimit.h:
8685 * uaf.h:
8686 * temacs.opt:
8687 * param.h:
8688 * ioctl.h: Remove file.
8689
86902008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
8691
8692 * s/ms-w32.h (MULTI_KBOARD): Remove.
8693 * xterm.c:
8694 * xselect.c:
8695 * xfns.c:
8696 * window.c:
8697 * w32term.c:
8698 * w32fns.c:
8699 * terminal.c:
8700 * termhooks.h:
8701 * term.c:
8702 * sysdep.c:
8703 * keyboard.h:
8704 * keyboard.c:
8705 * frame.h:
8706 * frame.c:
8707 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
8708 * config.in: Regenerate.
8709
87102008-07-30 Jason Rumney <jasonr@gnu.org>
8711
8712 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
8713
8714 * w32font.c (w32font_encode_char): Leave as unicode if in range.
8715 (w32font_open_internal): Get unicode version of textmetrics.
8716 Don't enable or disable glyph indices here.
8717 (w32font_open): Disable use of glyph indices.
8718
8719 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
8720
87212008-07-30 Chong Yidong <cyd@stupidchicken.com>
8722
8723 * minibuf.c (Vread_buffer_function): Doc fix.
8724
87252008-07-30 John Paul Wallington <jpw@pobox.com>
8726
8727 * minibuf.c (read_buffer_completion_ignore_case): New var.
8728 (Fread_buffer): Use it.
8729
87302008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
8731
8732 * systty.h (sensemode): Remove empty #if. Remove reference to
8733 BSD_TERMIOS, unused.
8734
8735 * sysdep.c: Remove reference to DGUX.
8736 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
8737
8738 * config.in: Regenerate.
8739
87402008-07-30 Jason Rumney <jasonr@gnu.org>
8741
8742 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
8743
87442008-07-29 Jason Rumney <jasonr@gnu.org>
8745
8746 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
8747 is populated.
8748 (uniscribe_encode_char): Always use uniscribe.
8749 Avoid using context if cache is populated.
8750
87512008-07-29 Jan Djärv <jan.h.d@swipnet.se>
8752
8753 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
8754 open menu.
8755
8756 * gtkutil.c (menu_nav_ended): Remove.
8757 (create_menus): Remove signal connect for menu_nav_ended.
8758
87592008-07-28 Chong Yidong <cyd@stupidchicken.com>
8760
8761 * xdisp.c (redisplay_window): Check return value of
8762 compute_window_start_on_continuation_line before forcing a window
8763 start.
8764
87652008-07-28 Jason Rumney <jasonr@gnu.org>
8766
8767 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
8768
8769 * w32term.c (w32_enable_unicode_output, cleartype_active):
8770 Remove obsolete display options.
8771 (x_draw_glyph_string_background): Don't use old cleartype_active
8772 workaround.
8773 (w32_initialize): Remove cleartype_active initialization.
8774 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
8775
87762008-07-28 Andreas Schwab <schwab@suse.de>
8777
8778 * lisp.h (init_weak_hash_tables, syms_of_font)
8779 (xd_read_queued_messages, syms_of_dbusbind): Declare.
8780 (remove_hash_entry): Don't declare.
8781 * eval.c (maybe_call_debugger): Make static and move before use.
8782 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
8783 * xdisp.c: Include "gtkutil.h" if USE_GTK.
8784 * xterm.h (x_set_frame_alpha): Declare.
8785
87862008-07-28 Jan Djärv <jan.h.d@swipnet.se>
8787
8788 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
8789 (create_menus): Connect selection-done to menu_nav_ended.
8790
87912008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
8792
8793 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
8794 Set Vx_resource_name to a fallback. Replace read of 'buffered'
8795 parameter with read of 'alpha' one.
8796 (Qns_frame_parameter): Remove.
5582fbc7 8797 * nsselect.m (selection-coding-system)
aac0c6e3
MR
8798 (next-selection-coding-system, Vselection_coding_system)
8799 (Vnext_selection_coding_system): Drop.
8800
88012008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
8802
8803 * nsfns.m (do-applescript, do_applescript): Rename to
8804 ns-do-applescript, ns_do_applescript, and move within file.
8805
88062008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
8807
8808 Remove support for Mac Carbon.
8809 * mactoolbox.c:
8810 * macterm.h:
8811 * macterm.c:
8812 * macselect.c:
8813 * macmenu.c:
8814 * macgui.h:
8815 * macfns.c:
8816 * mac.c: Remove file.
8817 * s/darwin.h:
8818 * m/intel386.h:
8819 * xfaces.c:
8820 * xdisp.c:
8821 * window.c:
8822 * tparam.c:
8823 * termhooks.h:
8824 * termcap.c:
8825 * term.c:
8826 * syssignal.h:
8827 * sysselect.h:
8828 * sysdep.c:
8829 * process.c:
8830 * lread.c:
8831 * lisp.h:
8832 * keyboard.c:
8833 * image.c:
8834 * fringe.c:
8835 * frame.h:
8836 * frame.c:
8837 * fontset.c:
8838 * font.h:
8839 * font.c:
8840 * fns.c:
8841 * fileio.c:
8842 * emacs.c:
8843 * dispnew.c:
8844 * dispextern.h:
8845 * config.in:
8846 * atimer.c:
2ae37cf0 8847 * Makefile.in: Remove code for Carbon.
aac0c6e3 8848
f0131492 88492008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
8850
8851 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
8852
88532008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8854
8855 * macterm.h (kCGBitmapByteOrder32Host): New define for
8856 non-universal SDKs.
8857
8858 * image.c (mac_create_cg_image_from_image, image_load_image_io)
8859 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
8860
8861 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
8862 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
8863
88642008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
8865
8866 * w32inevt.c: Include dispextern.h.
8867
88682008-07-26 Andreas Schwab <schwab@suse.de>
8869
8870 * print.c (print_object): Fix off-by-one in last change.
8871
88722008-07-25 Juanma Barranquero <lekktu@gmail.com>
8873
8874 * term.c (syms_of_term): Don't initialize default_orig_pair,
8875 default_set_foreground and default_set_background on Windows.
8876
88772008-07-25 Jason Rumney <jasonr@gnu.org>
8878
8879 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
8880 ScriptItemize. Clean up return value checking. Remove unused
8881 variables.
8882 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
8883 shaping engine.
8884
8885 * w32font.c (w32font_has_char): Handle the case where we can't
8886 determine the script for a character.
8887
88882008-07-25 Chong Yidong <cyd@stupidchicken.com>
8889
8890 * term.c (syms_of_term): Initialize default_orig_pair,
8891 default_set_foreground, and default_set_background.
8892
8893 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
8894 clash (bug#86).
8895 (getloadavg): Callers changed.
8896
8897 * image.c (svg_load_image): Fix last change.
8898 (svg_load_image): Use rsvg_handle_get_dimensions to check that
8899 image size is valid. Use g_object_unref instead of deprecated
8900 rsvg_handle_free to free rsvg handle.
8901 (x_from_xcolors): Don't initialize pixmap (silence compiler).
8902
89032008-07-25 Jason Rumney <jasonr@gnu.org>
8904
8905 * w32font.c (w32font_encode_char): Encode characters outside BMP as
8906 surrogates before looking up glyph index.
8907 (w32font_text_extents): Encode as surrogates if falling back to
8908 functions that need UTF-16 wide chars.
8909
8910 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
8911 BMP as surrogates before looking up glyph index.
8912
89132008-07-25 Chong Yidong <cyd@stupidchicken.com>
8914
8915 * image.c (svg_load_image): Check for failure in return value of
8916 rsvg_handle_get_pixbuf. Free rsvg handle when done.
8917
89182008-07-25 Jason Rumney <jasonr@gnu.org>
8919
8920 * w32font.c (Fx_select_font): Reverse sense of second arg.
8921
89222008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
8923
8924 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
8925 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
8926
8927 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
8928 (PURESIZE): Use it.
8929
89302008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
8931
8932 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
8933 * m/alpha.h (TEXT_END):
8934 * m/ibmrs6000.h (TEXT_END):
8935 * m/macppc.h (TEXT_END):
8936 * s/darwin.h (TEXT_END):
8937 * s/msdos.h (TEXT_END): Remove, unused.
8938 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
8939 * s/cygwin.h: Remove comment.
8940
8941 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
8942 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
8943 * m/intel386.h (DOT_GLOBAL_START):
8944 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
8945 (USG): Remove, file not used on USG platforms.
8946
8947 * Makefile.in (HAVE_X11): Remove empty #else.
8948
89492008-07-24 Andreas Schwab <schwab@suse.de>
8950
8951 * fileio.c (Finsert_file_contents): Properly adjust undo list
8952 after format conversion.
8953
89542008-07-24 Jan Djärv <jan.h.d@swipnet.se>
8955
8956 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
8957 (menu_nav_ended): Remove.
8958 (create_menus): Remove signal connect for menu_nav_ended.
8959 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
8960 create_menus.
8961 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
8962
89632008-07-23 Jason Rumney <jasonr@gnu.org>
8964
8965 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
8966 with opened font.
8967 (w32font_open): Set font type to gdi.
8968
8969 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
8970
89712008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
8972
8973 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
8974 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
8975 defines it.
8976 * unexec.c (ADDR_CORRECT): Define unconditionally.
8977
8978 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
8979
8980 * unexec.c: Remove code depending on !COFF and USG, the file is
8981 not used for such systems.
8982
8983 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
8984 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
8985 (LD_SWITCH_SYSTEM_1): Remove, update users.
8986
8987 * s/darwin.h (DATA_END):
8988 * m/intel386.h (DATA_END):
8989 * m/ibmrs6000.h (DATA_END):
8990 * m/alpha.h (DATA_END): Remove, unused.
8991
8992 * config.in: Regenerate.
8993 * s/ms-w32.h (subprocesses): Define unconditionally.
8994 * s/template.h (subprocesses): Update comment.
8995 * s/vms.h (subprocesses):
8996 * s/usg5-4.h (subprocesses):
8997 * s/hpux10-20.h (subprocesses):
8998 * s/gnu-linux.h (subprocesses):
8999 * s/cygwin.h (subprocesses):
9000 * s/bsd-common.h (subprocesses):
9001 * s/aix4-2.h (subprocesses):
9002 * s/darwin.h (subprocesses): Do not define, defined by default now.
9003
9004 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
9005 Remove all references.
9006 (temacs): Add GNUstep specific ld flags.
9007
9008 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
9009 similarly to what X does.
9010
90112008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
9012
9013 * nsfns.m (x-list-fonts): Remove.
9014 (syms_of_nsfns): Drop the x-list-fonts declaration.
9015 * nsterm.m: Get rid of remaining "//" comments.
9016
90172008-07-22 Chong Yidong <cyd@stupidchicken.com>
9018
9019 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
9020
9021 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
9022 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
9023 (Fns_own_selection_internal, Fx_disown_selection_internal)
9024 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
9025
9026 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
9027 ... */' style of docstrings. Doc fixes.
9028
90292008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
9030
9031 * terminfo.c (UP, BC, PC): Undo previous change.
9032
9033 * nsfns.m: Rename ns prefixed functions/variables to the
9034 corresponding x versions. Update references.
9035
90362008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
9037
9038 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
9039
90402008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
9041
9042 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
9043 Remove forwarding functions.
9044 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
9045 non-static.
9046 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
9047 non-static.
9048 (ns_frame_parm_handlers): Use the new names.
9049 (syms_of_nsfns): Move to the end of file.
9050
9051 * nsterm.m (syms_of_nsterm): Move to the end of file.
9052
9053 * dispnew.c (init_display): Remove code for X10.
9054
90552008-07-22 Jason Rumney <jasonr@gnu.org>
9056
9057 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
9058 bare drive.
9059
90602008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
9061
9062 * nsterm.m (syms_of_nsterm): Remove debugging println.
9063
90642008-07-22 David Reitter <david.reitter@gmail.com>
9065
9066 * nsfns.m (do_applescript, F_do_applescript): NS version of the
9067 Carbon implementation of the same functionality: execute arbitrary
9068 AppleScript code.
9069
90702008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
9071
9072 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
9073 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
9074 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
9075 (Fx_display_mm_height, Fx_display_mm_width)
9076 (Fx_display_backing_store, Fx_display_visual_class)
9077 (Fx_display_save_under, Fx_open_connection)
9078 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
9079 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
9080 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
9081 (Fx_display_pixel_width, Fx_display_pixel_height)
9082 (Fx_display_usable_bounds, Fx_display_planes)
9083 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
9084 ... */' style of docstrings.
9085
90862008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
9087
9088 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
9089 on this platform.
9090 (mips):
9091 * m/iris4d.h (mips): Do not define.
9092 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
9093
9094 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
9095
9096 * image.c:
9097 * nsfns.m:
9098 * nsselect.m:
9099 * nsterm.h:
9100 * nsterm.m: Rename ns prefixed functions/variables to the
9101 corresponding x versions. Update references.
9102
9103 * m/ibms390x.h (NO_REMAP): Do not undefine.
9104
9105 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
9106
91072008-07-21 Chong Yidong <cyd@stupidchicken.com>
9108
9109 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
9110 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
9111 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
9112 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
9113 (Fns_display_mm_height, Fns_display_mm_width)
9114 (Fns_display_backing_store, Fns_display_visual_class)
9115 (Fns_display_save_under, Fns_open_connection)
9116 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
9117 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
9118 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
9119 (Fns_display_pixel_width, Fns_display_pixel_height)
9120 (Fns_display_usable_bounds, Fx_display_planes)
9121 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
9122
91232008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
9124
9125 * print.c (print_object): Check print_depth before searching for
9126 circularities.
9127
91282008-07-21 Michael Albinus <michael.albinus@gmx.de>
9129
9130 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
9131 only sprintf.
9132
91332008-07-21 Kenichi Handa <handa@m17n.org>
9134
9135 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
9136
91372008-07-20 Andreas Schwab <schwab@suse.de>
9138
9139 * syntax.c (find_start_pos, find_start_value)
9140 (find_start_value_byte, find_start_begv, find_defun_start)
9141 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
9142
91432008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
9144
9145 * s/sol2-3.h: Insert contents of s/sol2.h.
9146 (LD_SWITCH_SYSTEM): Remove redundant definition.
9147 * s/sol2.h: Remove, unused.
9148
91492008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
9150
9151 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
9152
91532008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
9154
9155 * Makefile.in (ns_appdir): Fix typo in find command.
9156
91572008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
9158
9159 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
9160
9161 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
9162 added not supported anymore.
9163
9164 * s/usg5-4-2.h (LIBS_SYSTEM):
9165 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
9166
9167 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
9168 * s/lynxos.h (GETPGRP_NO_ARG):
9169 * s/hpux10-20.h (NO_SIOCTL_H):
9170 * s/gnu.h (GETPGRP_NO_ARG):
9171 * s/gnu-linux.h (NO_SIOCTL_H):
9172 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
9173 * s/cygwin.h (GETPGRP_NO_ARG):
9174 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
9175 (C_DEBUG_SWITCH): Remove duplicate definition.
9176
9177 * m/ibms390.h: Remove boilerplate comments.
9178
9179 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
9180
9181 * process.c (HAVE_SERIAL): Consolidate ifdefs.
9182 (wait_reading_process_output): Remove code for SunOS, platform not
9183 supported anymore. Use SOLARIS2 instead of sun.
9184
91852008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
9186
9187 * font.c (font_open_by_name): Under NS, default lface height to zero.
9188 (font_open_for_lface): Under NS, set size based on frame fontsize.
9189 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
9190 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
9191
91922008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
9193
9194 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
9195 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
9196 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
9197 YES/NO.
9198 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
9199 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
9200 * Makefile.in (clean): Clear out build destination dir.
9201
92022008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
9203
9204 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
9205 xterm, xselect.
9206 * lisp.h: Remove declaration of hash_remove.
9207 * nsgui.h: Remove redefinitions of hash_remove.
9208 * fns.c (hash_remove): Rename to hash_remove_from_table.
9209
92102008-07-19 Seiji Zenitani <zenitani@mac.com>
9211
9212 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
9213 strdup() the family UTF8String before modifying it.
9214
92152008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
9216
9217 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
9218 NS_FACE_BACKGROUND with 0 instead of nil.
9219 * nsfont.m (nsfont_draw): Same.
9220
92212008-07-19 Chong Yidong <cyd@stupidchicken.com>
9222
9223 * nsfns.m (ns_set_background_color): Fix crash.
9224
92252008-07-18 Chong Yidong <cyd@stupidchicken.com>
9226
9227 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
9228
92292008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
9230
9231 * puresize.h (BASE_PURESIZE): Increase to 1240000.
9232
92332008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9234
9235 * gtkutil.c: Include <config.h> instead of "config.h".
9236
9237 * lisp.h (Foverlay_buffer): Add EXFUN.
9238
9239 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
9240 child process to complete child_setup. Undo 2005-09-21 change.
9241
9242 * s/darwin.h: Mention setsid after vfork.
9243
92442008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9245
9246 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
9247 Depend on macgui.h.
9248
9249 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
9250 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
9251
9252 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
9253 and f19.
9254 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
9255
9256 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
9257 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
9258 Remove enumerators.
9259
9260 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
9261 Check if FACE_FROM_ID returns NULL.
9262
92632008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
9264
9265 * w32inevt.c (change_frame_size): Remove extern declaration.
9266 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
9267 change_frame_size.
9268
92692008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
9270
9271 * getloadavg.c: Revert last change (2008-07-15).
9272
92732008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
9274
9275 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
362654a6 9276 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
aac0c6e3
MR
9277 from configure.
9278
92792008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
9280
9281 * s/sol2.h:
9282 * s/sol2-4.h: Reorganize conditionals.
9283
9284 * ecrt0.c: Remove code depending on m68000, not used anymore.
9285
9286 * fns.c (hash_remove): Make static.
9287 * lisp.h (hash_remove): Don't prototype.
9288
9289 * m/ibmrs6000.h:
9290 * m/ibms390x.h:
9291 * m/macppc.h: Remove boilerplate comments.
9292
9293 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
9294 Solaris, which does not need them.
9295
9296 * m/vax.h: Remove comments about unsupported systems.
9297
9298 * s/darwin.h: Reorganize ifdefs.
9299
93002008-07-17 Andreas Schwab <schwab@suse.de>
9301
9302 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
9303
93042008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
9305
9306 Use SDATA. Follow coding convention of placing operators at
9307 beginning of next line rather than end of previous line, and placing
9308 spaces around infix operators.
9309
9310 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
9311 in case it was defined already.
9312 USE @GNUSTEP_MAKEFILES@ rather than envvars.
9313 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
9314 ns_default.
9315 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
9316 Lisp_Objects.
9317 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
9318 (ns_defined_color, ns_color_to_lisp): Declare.
9319 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
9320 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
9321 it's accepted even with USE_LISP_UNION_TYPE.
9322 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
9323 (update_frame_tool_bar): Remove apparently obsolete tests for
9324 non-integerness of f->tool_bar_lines.
9325 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
9326 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
9327 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
9328 (nsfont_open): Don't confuse NULL for Qnil.
9329 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
9330 * menu.h (find_and_call_menu_selection):
9331 * menu.c (find_and_call_menu_selection): Use just int for vector size.
9332 (find_and_return_menu_selection): Always return something.
9333 * frame.h: Include dispextern.h for Display_Info.
9334 (display_x_get_resource): Declare.
9335
93362008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
9337
9338 * syntax.c: Remove stdio.h include accidentally introduced in
9339 Emacs.app commit.
9340 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
9341 NS_IMPL_COCOA.
9342 * keyboard.c (handle_async_input, input_available_signal): Remove
9343 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
9344
93452008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
9346
9347 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
9348 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
9349 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
9350 Use SDATA.
9351
9352 * keymap.c: Remove all NS-specific code.
9353 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
9354 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
9355 where_is_preferred_modifier, return a different value depending on how
9356 preferred is the binding.
9357 (where_is_internal): Adjust accordingly.
9358 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
9359 Adjust to new preferred_sequence_p.
9360 (syms_of_keymap): Declare `where-is-preferred-modifier'.
9361 * keyboard.c (parse_solitary_modifier): Not static any more.
9362 * keyboard.h (parse_solitary_modifier): Declare.
9363
93642008-07-16 Andreas Schwab <schwab@suse.de>
9365
9366 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
9367 of easymenu.
9368
93692008-07-16 Chong Yidong <cyd@stupidchicken.com>
9370
9371 * xdisp.c (move_it_in_display_line): Account for word wrap, so
9372 that we don't move off the line.
9373
93742008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
9375
9376 * keyboard.c (Qsuper): Remove.
9377 (parse_menu_item): Don't call where_is_internal specially for NS.
9378
93792008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
9380
9381 * s/gnu-linux.h: Remove boilerplate comments.
9382
9383 * m/alpha.h (__ELF__): Consolidate conditions.
9384
9385 * m/m68k.h (linux): Use GNU_LINUX instead.
9386 Remove boilerplate comments.
9387
9388 * m/intel386.h: Undo refactoring from previous change.
9389 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
9390 too, remove dead code.
9391 (linux): Use GNU_LINUX instead.
9392
93932008-07-16 Jason Rumney <jasonr@gnu.org>
9394
9395 * w32gui.h: Repeat 26 June changes lost by last change.
9396
93972008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
9398
9399 * systty.h: Remove code for Aix on 386, unsupported platform.
9400
9401 * s/ms-w32.h: Remove boilerplate comments.
9402 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
9403
9404 * s/gnu-linux.h (TERM): Remove support.
9405 (HAVE_SYSVIPC): Remove, unused.
9406 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
9407 for this system.
9408
9409 * process.c: Remove support for IRIS, unused.
9410 Remove support for TERM, not relevant anymore.
9411
9412 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
9413 used with the definition.
9414
9415 * s/aix4-2.h (static): Do not undef.
9416
9417 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
9418 only used on Aix.
9419 (HAVE_SYSVIPC): Remove, unused.
9420
9421 * m/hp800.h (CANNOT_DUMP): Do not undef.
9422
9423 * m/alpha.h: Fix comment.
9424
9425 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
9426 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
9427 used by this configuration.
9428 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
9429 * unexec.c: Remove code depending on HPUX and
9430 USG_SHARED_LIBRARIES, not used with this file. Remove code
9431 depending on IRIS, unused. Remove if 0-ed code.
9432
9433 * s/template.h: Remove comments about static.
9434
9435 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
9436 Remove if 0-ed code.
9437 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
9438 were the same as the default.
9439 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
9440 Remove boilerplate comments.
9441 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
9442 (HAVE_SYSVIPC): Remove, unused.
9443 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
9444
9445 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
9446 Remove boilerplate comments.
9447 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
9448 Remove boilerplate comments.
9449 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
9450 Remove boilerplate comments.
9451 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
9452
9453 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
9454 USG systems which do not use DATA_SEG_BITS.
9455 Refactor code. Remove boilerplate comments.
9456
9457 * m/ibms390.h:
9458 * m/m68k.h:
9459 * s/bsd-common.h:
9460 * s/cygwin.h:
9461 * s/darwin.h:
9462 * s/freebsd.h:
9463 * s/gnu.h:
9464 * s/msdos.h: Remove boilerplate comments.
9465
9466 * m/iris4d.h: Remove boilerplate comments and code for systems that
6873acca 9467 do not use this file.
aac0c6e3
MR
9468 (IRIS_4D): Remove, unused.
9469
9470 * m/mips.h: Remove boilerplate comments and code for systems that
6873acca 9471 do not use this file.
aac0c6e3
MR
9472 (SIGN_EXTEND_CHAR):
9473 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
9474 * unexmips.c: Remove file, unused.
9475
9476 * editfns.c (Fuser_full_name): Replace the only use of
9477 USER_FULL_NAME with its value.
9478 * config.in: Regenerate.
9479
94802008-07-16 David Reitter <david.reitter@gmail.com>
9481
9482 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
9483 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
9484
94852008-07-16 Glenn Morris <rgm@gnu.org>
9486
9487 * emacs.c (system-type): Doc fix.
9488
94892008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
9490
9491 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
9492 If the cache doesn't work, let's fix it, rather than work around it.
9493
94942008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
9495
9496 * Makefile.in: Correct additions for nsfont.o in last commit.
9497 * nsfont.m: New file (forgot last commit).
9498
94992008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
9500
9501 * callproc.c (set_initial_environment): Initialize
9502 Vprocess_environment under CANNOT_DUMP (fixes crash when
9503 batch-compiling for bootstrap).
9504
95052008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
9506 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9507
9508 (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
9509 fix crash due to different init order.
9510
95112008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
9512
9513 Changes and additions for NeXTstep windowing system (Cocoa and
9514 GNUstep) support.
9515
9516 * Makefile.in:
9517 * config.in: Support defines and build commands for NS port.
9518 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
9519 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
9520 * dispextern.h: Include nsgui.h and add needed typedefs under NS
9521 windowing.
9522 (struct face): Add synth_ital field.
9523 * dispnew.c: Include nsterm.h when compiling under NS windowing.
9524 (init_display): Initialize Vinitial_window_system to "ns" when so
9525 compiled.
9526 * emacs.c: Include GSConfig.h when compiling under GNUstep.
9527 (display_arg): Use under NS.
9528 (main): Under NS, allocate autorelease pool and handle command line
9529 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
9530 (standard_args): Add NS-specific args.
9531 (shut_down_emacs): Shut down NS terminal if compiled under NS.
9532 * font.c (DEFAULT_ENCODING): New variable.
9533 (font_find_for_lface): Use it.
9534 (syms_of_font): Load syms_of_nsfont under NS.
9535 * font.h: Declare nsfont_driver when compiled under NS.
9536 * fontset.c: When compiling under NS, include nsterm.h.
9537 (fontset_from_font): Autoconstruct fontset under NS.
9538 * frame.c (various): Under NS, include nsterm.h, add Qns window system
9539 symbol, document and use it.
9540 (do_switch_frame): When for_deletion under Cocoa, add
9541 Fraise_frame(Qnil).
9542 (x_set_frame_parameters): Ensure font attribute changes are picked up.
9543 (x_get_arg): Allow "yes" and "no" as boolean values.
9544 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
9545 Qright under Cocoa.
9546 (focus-follows-mouse): Default to 0 under NS.
9547 * frame.h (enum output_method): Add output_ns.
9548 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
9549 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
9550 (FRAME_WINDOW_P): NS-specific definition.
9551 * fringe.c (max_used_fringe_bitmap): Make public.
9552 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
9553 (getloadavg): Use NeXT code under descendant OS's.
9554 * image.c (includes and header section, x_create_bitmap_from_data)
9555 (x_create_bitmap_from_file, free_bitmap_record, image_background)
9556 (image_background_transparent, x_clear_image_1)
9557 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
9558 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
9559 (x_to_xcolors, x_from_xcolors, x_disable_image)
9560 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
9561 other GUIs, including XPM support using code originally written for
9562 Carbon GUI.
9563 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
9564 using NS API.
9565 (image_ascent): Use font metrics macros instead of direct struct field
9566 access.
9567 * keyboard.c (includes): Add nsterm.h when compiling under NS.
9568 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
9569 Also, handle NS as GTK for menu bar purposes.
9570 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
9571 toolkit where they differ.
9572 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
9573 use cachelist, still needed under NS.
9574 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
9575 (struct widget_value): Define it here for menu.c.
9576 * keymap.c (includes): Include modifier internals.
9577 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
9578 NS.
9579 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
9580 support for preferring sequences using certain modifiers, specified by
9581 the FIRSTONLY argument.
9582 * lisp.h (hash_remove): Rename to avoid name clash when compiling
9583 under NS GNUstep implementation.
9584 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
9585 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
9586 * menu.c: Include nsterm.h under NS.
9587 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
9588 (free_menubar_widget_tree_value, update_submenu_strings)
9589 (find_and_call_menu_selection): Treat NS as X and NT.
9590 (find_and_return_menu_selection): New function, used for popup menus.
9591 * nsgui.h:
9592 * nsterm.h:
9593 * nsfns.m:
9594 * nsimage.m:
9595 * nsmenu.m:
9596 * nsselect.m:
9597 * nsterm.m: New files.
9598 * process.c (wait_reading_process_output): Under NS, call ns_select()
9599 instead of plain select().
9600 * syntax.c (char_quoted): Under NS, avoid a crash when called near
9601 beginning of buffer.
9602 * sysselect.h (init_process): Rename when compiling under Cocoa to
9603 avoid name conflict.
9604 * termhooks.h (display_info): Add ns_display_info to union.
9605 * terminal.c (Fterminal_live_p): Add ns to terminal types.
9606 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
9607 COCOA environment.
9608 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
9609 unexec() signature. (Note, this will dump, but the resulting file
9610 crashes; unexosx is used instead; keeping around for reference and
9611 possible aid in getting dump working under GNUstep.)
9612 * w32gui.h (button_type, widget_value): Remove definitions (now in
9613 keyboard.h).
9614 * window.c: Include nsterm.h when compiling under NS.
9615 * xdisp.c (includes): Include nsterm.h when compiling under NS.
9616 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
9617 other GUI windowing systems.
9618 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
9619 GTK.
9620 (x_consider_frame_title): Under NS, set icon type and frame
9621 modified-state indicator; use ns_set_name_as_filename() when using
9622 formatted title.
9623 (update_window_cursor): Make public when compiling under NS.
9624 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
9625 (hourglass_atimer, Vhourglass_delay
9626 * xfaces.c (header section, init_frame_faces, clear_font_table)
9627 (defined_color, unload_color, x_face_list_fonts)
9628 (prepare_face_for_display): Add NS support parallel to other GUIs.
9629 Emulate GCs like other non-X GUIs.
9630 (split_font_name): Don't lowercase font name under NS.
9631 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
9632 under NS.
9633 * s/darwin.h: Add support for compilation under NS.
9634
96352008-07-15 Jason Rumney <jasonr@gnu.org>
9636
9637 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
9638 (w32_show_hourglass): Rename from show_hourglass.
9639 (w32_hide_hourglass): Rename from hide_hourglass.
9640 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
9641 (Vhourglass_delay): Declare extern.
9642 (hourglass_started): Remove.
9643
9644 * xdisp.c (Vhourglass_delay): Remove static.
9645 (hourglass_started, start_hourglass, cancel_hourglass):
9646 Don't include these versions on WINDOWSNT.
9647
96482008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
9649
9650 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
9651 variables (formerly in xfns.c).
9652 (show_hourglass, hide_hourglass): New prototypes (same).
9653 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
9654 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
9655 in xfns.c).
9656 (syms_of_xdisp): Declare/initialize display-hourglass,
9657 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
9658 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
9659 formerly in xfns.c.
9660 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
9661 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
9662 (start_hourglass, cancel_hourglass): Remove.
9663 (show_hourglass, hide_hourglass): Remove prototypes and static
9664 modifiers.
9665 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
9666 hourglass_atimer, hourglass_shown_p declaration/initialization.
9667 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
9668 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
9669 (start_hourglass, cancel_hourglass): Remove.
9670 (show_hourglass, hide_hourglass): Remove prototypes and static
9671 modifiers.
9672 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
9673 hourglass_atimer, hourglass_shown_p declaration/initialization.
9674 * w32fns.c (display_hourglass_p, Vhourglass_delay)
9675 (DEFAULT_HOURGLASS_DELAY): Remove.
9676 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
9677 hourglass_shown_p declaration/initialization.
9678
96792008-07-14 Jason Rumney <jasonr@gnu.org>
9680
9681 * w32fns.c (w32_get_arg): Remove wrapper function.
9682 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
9683 directly.
9684 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
9685
96862008-07-14 Kenichi Handa <handa@m17n.org>
9687
9688 * xfont.c (xfont_open): Add workaround for X's bug.
9689
96902008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
9691
9692 * fontset.c: Include <stdio.h> unconditionally.
9693
96942008-07-13 Michael Albinus <michael.albinus@gmx.de>
9695
9696 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
9697 for filtering.
9698
96992008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
9700
9701 * s/vms.h: Use __GNUC__ instead of _GNUC_.
9702
9703 * m/macppc.h:
9704 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
9705
9706 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
9707 (SPECIAL_EMACS_INT):
9708 * m/ia64.h (SPECIAL_EMACS_INT):
9709 * m/amdx86-64.h (SPECIAL_EMACS_INT):
9710 * s/gnu.h (NLIST_STRUCT):
9711 * s/aix4-2.h (X11R5_INHIBIT_I18N):
9712 * s/gnu-linux.h (LINUX):
9713 * s/msdos.h (HAVE_FACES):
9714 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
9715
9716 * systty.h:
9717 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
9718 anymore.
9719
97202008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
9721
9722 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
9723 always defined as int.
9724
9725 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
9726 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
9727 * s/gnu-linux.h (HAVE_WAIT_HEADER):
9728 * s/freebsd.h (HAVE_WAIT_HEADER):
9729 * s/bsd-common.h (HAVE_UNION_WAIT):
9730 * s/aix4-2.h (HAVE_WAIT_HEADER):
9731 * m/mips.h (HAVE_UNION_WAIT):
9732 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
9733 (COFF, static): Do not define, they are undefined later in the file.
9734
9735 * process.c (update_status): Don't use a union.
9736 (status_convert):
9737 (sigchld_handler): Use int instead of WAITTYPE.
9738
97392008-07-12 Chong Yidong <cyd@stupidchicken.com>
9740
9741 * indent.c (Fvertical_motion): Restore hscroll before moving to
9742 goal column.
9743
97442008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
9745
9746 * lisp.h: Remove left over code.
9747
97482008-07-11 Andreas Schwab <schwab@suse.de>
9749
9750 * lisp.h: Fix logic in last change.
9751
9752 * menu.h: New file.
9753 * menu.c: Include it.
9754 * xmenu.c: Likewise.
9755 * Makefile.in: Update dependencies.
9756
97572008-07-11 Kenichi Handa <handa@m17n.org>
9758
9759 * fontset.c (fontset_from_font): Cancel the previous change.
9760
97612008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
9762
9763 * lisp.h:
9764 * w32heap.c:
9765 * emacs.c:
9766 * alloc.c: Replace all references of NO_UNION_TYPE with
9767 USE_LISP_UNION_TYPE.
9768
9769 * m/xtensa.h (NO_UNION_TYPE):
9770 * m/vax.h (NO_UNION_TYPE):
9771 * m/template.h (NO_UNION_TYPE):
9772 * m/sparc.h (NO_UNION_TYPE):
9773 * m/mips.h (NO_UNION_TYPE):
9774 * m/macppc.h (NO_UNION_TYPE):
9775 * m/m68k.h (NO_UNION_TYPE):
9776 * m/iris4d.h (NO_UNION_TYPE):
9777 * m/intel386.h (NO_UNION_TYPE):
9778 * m/ibms390x.h (NO_UNION_TYPE):
9779 * m/ibms390.h (NO_UNION_TYPE):
9780 * m/ibmrs6000.h (NO_UNION_TYPE):
9781 * m/ia64.h (NO_UNION_TYPE):
9782 * m/hp800.h (NO_UNION_TYPE):
9783 * m/arm.h (NO_UNION_TYPE):
9784 * m/amdx86-64.h (NO_UNION_TYPE):
9785 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
9786 defining it the same.
9787
97882008-07-10 Chong Yidong <cyd@stupidchicken.com>
9789
9790 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
9791
97922008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
9793
9794 * fileio.c:
9795 * sysdep.c
9796 * systty.h:
9797 * m/ibmrs6000.h:
9798 * m/iris4d.h:
9799 * s/aix4-2.h:
9800 * s/freebsd.h:
9801 * s/gnu-linux.h:
9802 * s/hpux10-20.h:
9803 * s/hpux11.h:
9804 * s/netbsd.h:
9805 * s/sol2-3.h:
9806 * s/sol2-4.h:
9807 * s/sol2.h:
9808 * s/usg5-4.h:
9809 * s/vms.h: Remove references to unused variables.
9810
98112008-07-10 Andreas Schwab <schwab@suse.de>
9812
9813 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
9814 pattern before matching the generic family.
9815
98162008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
9817
9818 * unexec.c:
9819 * s/vms.h:
9820 * s/usg5-4-2.h:
9821 * s/sol2-5.h:
9822 * s/freebsd.h:
9823 * s/darwin.h: Remove dead code.
9824
9825 * m/template.h:
9826 * m/sparc.h:
9827 * m/mips.h:
9828 * m/m68k.h:
9829 * m/iris4d.h:
9830 * m/intel386.h:
9831 * m/ibms390x.h:
9832 * m/ibms390.h:
9833 * m/ia64.h:
9834 * m/hp800.h:
9835 * m/arm.h:
9836 * m/amdx86-64.h: Remove dead code and references to unused
9837 and compiler defined symbols.
9838
9839 * unexmips.c:
9840 * unexelf.c: Remove references to desupported systems.
9841
9842 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
9843
9844 * m/powermac.h: Remove boilerplate comments.
9845 (NO_REMAP): Remove unused definition.
9846
9847 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
9848 define them.
9849
98502008-07-10 Kenichi Handa <handa@m17n.org>
9851
9852 * xfont.c (xfont_open): Log the reason of failure.
9853
98542008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
9855
9856 * fontset.c (fontset_get_font_group):
9857 * font.c (font_check_otf): Specify argument types.
9858
98592008-07-09 Kenichi Handa <handa@m17n.org>
9860
9861 * coding.c (detect_coding_utf_8): Set detect_info->found only when
9862 non-ASCII char is found.
9863
9864 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
9865 (reorder_font_vector): Change the arg preferred_family to font.
9866 Prefer the spec matching with font.
9867 (fontset_get_font_group): New function.
9868 (fontset_find_font): Change the format of an element of a realized
9869 fontset. Use fontset_get_font_group.
9870 (fontset_font): Try the current fontset, the default fontset, the
9871 fallbacks of the current fontset, and the fallbacks of the default
9872 fontset in this order.
9873 (face_for_char): Delete the shortcut to use the current font.
9874 (fontset_from_font): Don't set fonts for Latin in the fontset.
9875
9876 * font.h (font_make_object, font_match_p): Adjust prototypes.
9877
9878 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
9879
9880 * font.c (font_make_object): New arg entity and pixelsize.
9881 (font_check_otf_features, font_check_otf): New functions.
9882 (font_match_p): Check :lang, :script, and :otf properties.
9883
9884 * xfont.c (xfont_open): Adjust it for the change of
9885 font_make_object.
9886 (xfont_text_extents): Fix initial setting of metrics.
9887
9888 * ftfont.c (struct ftfont_info): New member index, delete member
9889 fc_charset_idx. Make the member order compatible with struct
9890 xftfont_info.
9891 (fc_charset_table): Change charset names to registry names.
9892 (ftfont_pattern_entity): Delete the args registry and
9893 fc_charset_idx. Change the value of :font-entity property
9894 to (FONTNAME . INDEX). Always set :registry property to
9895 `iso10646-1'.
9896 (struct ftfont_cache_data): New struct.
9897 (ftfont_lookup_cache): New arg for_face.
9898 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
9899 (ftfont_driver): Set the member otf_capability.
9900 (ftfont_get_charset): Adjust it for the change of
9901 fc_charset_table.
9902 (OTF_TAG_SYM): New macro.
9903 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
9904 for the change of fc_charset_table.
9905 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
9906 ftfont_pattern_entity. Add FC_INDEX to objset.
9907 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
9908 and ftfont_pattern_entity.
9909 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
9910 font_make_object, struct ftfont_info.
9911 (ftfont_has_char): Use ftfont_get_fc_charset.
9912 (ftfont_otf_features, ftfont_otf_capability): New functions.
9913 (ftfont_shape): Use ftfont_get_otf.
9914 (ftfont_text_extents): Fix initial setting of metrics.
9915
9916 * xftfont.c (struct xftfont_info): New member ft_size. Make the
9917 member order compatible with struct ftfont_info.
9918 (xftfont_open): Add FC_CHARSET to the pattern. Set
9919 xftfont_info->ft_size. Don't unlock the face. Check BDF
9920 properties if appropriate.
9921 (xftfont_close): Unlock the face.
9922 (xftfont_anchor_point, xftfont_shape): Deleted.
9923 (syms_of_xftfont): Don't set members anchor_point and shape of
9924 xftfont_driver.
9925
9926 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
9927 font_make_object.
9928
9929 * w32font.c (w32font_open): Adjust it for the change of
9930 font_make_object.
9931 (w32font_open_internal): Don't set properties of font_object here.
9932
99332008-07-08 Chong Yidong <cyd@stupidchicken.com>
9934
9935 * macfns.c (x_create_tip_frame):
9936 * w32fns.c (x_create_tip_frame):
9937 * xfns.c (x_create_tip_frame): Pass parameter argument to
9938 face-set-after-frame-default.
9939
9940 * xfaces.c (Finternal_merge_in_global_face): Save merged
9941 attributes for the default face back into the face vector.
9942
99432008-07-08 Andreas Schwab <schwab@suse.de>
9944
9945 * fontset.h: Declare fontset_from_font. Don't declare
9946 new_fontset_from_font and fontset_from_font_name.
9947 * xterm.c: Include "fontset.h".
9948 * Makefile.in (xterm.o): Update dependencies.
9949
99502008-07-08 Glenn Morris <rgm@gnu.org>
9951
9952 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
9953 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
9954
99552008-07-07 Chong Yidong <cyd@stupidchicken.com>
9956
9957 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
9958 (x_set_frame_parameters): Don't bind it.
9959
99602008-07-07 Juanma Barranquero <lekktu@gmail.com>
9961
9962 * w32fns.c (map_w32_filename): Declare extern.
9963
99642008-07-07 Jason Rumney <jasonr@gnu.org>
9965
9966 * w32term.c (WS_EX_LAYERED): Define if not already.
9967
99682008-07-06 Chong Yidong <cyd@stupidchicken.com>
9969
9970 * xfaces.c (set_font_frame_param): Don't try to set the font
9971 parameter if it is still unspecified in the lface.
9972
99732008-07-05 Chong Yidong <cyd@stupidchicken.com>
9974
9975 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
9976 face if it didn't already exist.
9977
9978 * xdisp.c (try_window_id): Give up if word-wrapping is on.
9979
99802008-07-05 Andreas Schwab <schwab@suse.de>
9981
9982 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
9983
99842008-07-05 Chong Yidong <cyd@stupidchicken.com>
9985
9986 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
9987 word-wrapping.
9988 (IT_DISPLAYING_WHITESPACE): New macro.
9989 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
9990 when word-wrapping. Simplify word-wrapping logic. Use correct
9991 pixel positions when saving copies of the iterator.
9992 (display_line): Use proper wrap point if the last character on a
9993 line was preceded by whitespace.
9994
99952008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
9996
9997 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
9998
99992008-07-04 Kenichi Handa <handa@m17n.org>
10000
10001 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
10002
10003 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
10004
100052008-07-02 Jason Rumney <jasonr@gnu.org>
10006
10007 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 10008 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
10009
10010 * xdisp.c (next_element_from_display_vector): Move assignment out
10011 of if statement.
10012
100132008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
10014
10015 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
10016
10017 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
10018 (syms_of_fileio): Initialize and export them.
10019 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
10020
10021 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
10022 (Fsystem_move_file_to_trash): New function.
10023 (syms_of_w32fns): Export it to lisp.
10024
100252008-07-01 Jason Rumney <jasonr@gnu.org>
10026
10027 * w32font.c (w32font_text_extents): Don't count overhang as part
10028 of width.
10029
100302008-06-30 Miles Bader <miles@gnu.org>
10031
10032 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
10033 Add `avoid_cursor_p' field.
10034
10035 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
10036 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
10037 (append_glyph, append_composite_glyph, produce_image_glyph)
10038 (append_stretch_glyph): Initialize avoid_cursor_p.
10039 (get_it_property): Rename from `get_line_height_property'.
10040 (x_produce_glyphs): Use get_it_property.
10041 (handle_line_prefix, push_display_prop): New functions.
10042 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
10043 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
10044 New variables.
10045 (syms_of_xdisp): Initialize them.
10046
100472008-06-30 Kenichi Handa <handa@m17n.org>
10048
10049 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
10050 XftDefaultSubstitute (they are called in XftFontMatch).
10051 (xftfont_open): Fix args to ftfont_font_format.
10052
10053 * ftfont.c (fc_charset_table): New member lang.
10054 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 10055 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
10056 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
10057 (ftfont_open): Fix args to ftfont_font_format.
10058 (ftfont_font_format): New arg filename.
10059
100602008-06-30 Chong Yidong <cyd@stupidchicken.com>
10061
10062 * xfaces.c (Finternal_merge_in_global_face): If default face was
10063 modified, realize it again. Update the font face attribute.
10064
100652008-06-29 Jason Rumney <jasonr@gnu.org>
10066
10067 * w32term.c (x_set_frame_alpha): Fix logic.
10068
100692008-06-29 Kenichi Handa <handa@m17n.org>
10070
10071 * fontset.c (Finternal_char_font): Return font-object instead of
10072 font-name.
10073
10074 * composite.c (get_composition_id): Fix the width calculation for TAB.
10075
100762008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
10077
10078 * indent.c (Fvertical_motion): Properly handle float column arg.
10079
100802008-06-28 Jason Rumney <jasonr@gnu.org>
10081
10082 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
10083 (pfnSetLayeredWindowAttributes): New function pointer.
10084 (w32_initialize): Initialize it when supported.
10085 (x_set_frame_alpha): New function.
10086
10087 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
10088 (w32_frame_parm_handlers): Set alpha handler.
10089
10090 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
10091
100922008-06-27 Jason Rumney <jasonr@gnu.org>
10093
10094 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
10095 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
10096 (w32_to_x_charset, x_to_w32_charset)
10097 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
10098 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
10099 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
10100 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
10101 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
10102 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
10103 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
10104 (Qw32_charset_unicode): Remove.
10105 (syms_of_w32fns): Update for above changes.
10106
10107 * w32font.c (w32_to_x_charset, x_to_w32_charset)
10108 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
10109 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
10110 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
10111 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
10112 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
10113 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
10114 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
10115 (syms_of_w32font): Update for above changes.
10116
101172008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
10118
10119 * s/usg5-4.h: Fix previous change: keep the correct branch of a
10120 removed #if.
10121 (USG_SHARED_LIBRARIES): Remove duplicate definition.
10122
101232008-06-26 Juanma Barranquero <lekktu@gmail.com>
10124 Eli Zaretskii <eliz@gnu.org>
10125
10126 * makefile.w32-in (LOCAL_FLAGS):
10127 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
10128
10129 * sysdep.c (_spawnlp, _getpid):
10130 Declare with explicit _cdecl instead of _CRTAPI1.
10131
10132 * editfns.c (Fget_internal_run_time):
10133 Check for WINDOWSNT with #ifdef, not #if.
10134
101352008-06-26 Jason Rumney <jasonr@gnu.org>
10136
10137 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
10138
10139 * w32term.c (x_draw_glyph_string_foreground)
10140 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
10141 Use FONT_HANDLE macro.
10142 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
10143
10144 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
10145 (uniscribe_encode_char): Use FONT_HANDLE macro.
10146
10147 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
10148 (w32font_text_extents): Use precast w32_font.
10149 (w32font_close): Free cached metrics.
10150 (w32font_open_internal): Allocate space for name on stack.
10151
101522008-06-26 Chong Yidong <cyd@stupidchicken.com>
10153
10154 * xdisp.c (extend_face_to_end_of_line): Fix last change.
10155
101562008-06-26 Jason Rumney <jasonr@gnu.org>
10157
10158 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
10159 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
10160
101612008-06-26 Juanma Barranquero <lekktu@gmail.com>
10162
10163 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
10164
101652008-06-26 Jason Rumney <jasonr@gnu.org>
10166
10167 * w32bdf.c, w32bdf.h: Remove obsolete files.
10168
10169 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
10170
10171 * w32gui.h: Don't include w32bdf.h.
10172 (XCharStruct, enum w32_char_font_type, W32FontStruct):
10173 Remove obsolete font support.
10174
10175 * w32font.h (struct w32font_info): Remove compat_w32_font.
10176 Add hfont member.
10177 (FONT_COMPAT): Remove obsolete macro.
10178
10179 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
10180 (w32font_encode_char, w32font_text_extents): Use new hfont member.
10181 (w32font_open_internal): Remove compat code. Set new hfont member.
10182 (Fx_select_font): Use new hfont member.
10183
10184 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
10185 (uniscribe_encode_char): Use new hfont member.
10186
10187 * w32term.c (x_draw_glyph_string_foreground)
10188 (x_draw_composite_glyph_string_foreground): Use new hfont member.
10189 (x_draw_glyph_string): Use metrics in w32font_info.
10190
101912008-06-26 Kenichi Handa <handa@m17n.org>
10192
10193 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
10194
101952008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
10196
10197 * unexnext.c:
10198 * m/ews4800.h:
10199 * m/hp9000s300.h:
10200 * m/ibm370aix.h:
10201 * m/mips-siemens.h:
10202 * m/ncr386.h:
10203 * m/next.h:
10204 * m/pmax.h:
10205 * m/powerpcle.h:
10206 * m/tandem-s2.h:
10207 * s/386bsd.h:
10208 * s/bsd386.h:
10209 * s/bsd4-1.h:
10210 * s/bsd4-2.h:
10211 * s/bsdos2-1.h:
10212 * s/bsdos2.h:
10213 * s/bsdos3.h:
10214 * s/bsdos4.h:
10215 * s/nextstep.h:
10216 * s/ultrix4-3.h:
10217 * s/usg5-0.h:
10218 * s/usg5-2-2.h:
10219 * s/usg5-2.h:
10220 * s/usg5-4-3.h:
10221 * s/ux4800.h:
10222 * s/uxpds.h:
10223 * s/uxpv.h: Remove support for obsolete systems.
10224 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 10225 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
10226 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
10227 Remove, insert contents in s/aix4-2.h.
10228 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
10229 * s/bsd4-3.h: Rename to ...
10230 * s/bsd-common.h: ... this.
10231 * data.c:
10232 * doc.c:
10233 * ecrt0.c:
10234 * emacs.c:
10235 * fileio.c:
10236 * floatfns.c:
10237 * keyboard.c:
10238 * mem-limits.h:
10239 * print.c:
10240 * process.c:
10241 * sysdep.c:
10242 * syssignal.h:
10243 * systty.h:
10244 * syswait.h:
10245 * term.c:
10246 * unexec.c:
10247 * unexelf.c:
10248 * unexhp9k800.c:
10249 * m/hp800.h:
10250 * m/ibmrs6000.h:
10251 * m/mips.h:
10252 * m/vax.h:
10253 * s/darwin.h:
10254 * s/freebsd.h:
10255 * s/gnu.h:
10256 * s/ms-w32.h:
10257 * s/msdos.h:
10258 * s/netbsd.h:
10259 * s/template.h: Remove references to obsolete variables.
10260
10261 * Makefile.in: Add dependencies for all unexec files.
10262 (admindir): Remove unused variable.
10263 (UNEXEC_SRC): Remove references.
10264
102652008-06-25 Chong Yidong <cyd@stupidchicken.com>
10266
10267 * xfns.c (x_default_font_parameter): If Xft is available, first
10268 try Monospace-12 for the default font.
10269
102702008-06-25 Jason Rumney <jasonr@gnu.org>
10271
10272 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
10273
102742008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
10275
10276 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
10277
10278 * buffer.c (syms_of_buffer): Remove default-word-wrap.
10279
102802008-06-25 Juanma Barranquero <lekktu@gmail.com>
10281
10282 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
10283 <scroll-conservatively>: Fix typo in docstring.
10284
10285 * xselect.c (Fx_send_client_event): Doc fix.
10286
102872008-06-25 Kenichi Handa <handa@m17n.org>
10288
10289 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
10290
10291 * font.c (font_parse_fcname): Remove unused variables.
10292 (font_sort_entites): Delete the arg SPEC. Caller changed.
10293 Fix for the case of ! best_only.
10294 (font_delete_unmatched): Check DPI and AVGWIDTH too.
10295
10296 * lisp.h (Fstring_to_unibyte): EXFUN it.
10297
10298 * character.h (str_to_unibyte): Extern it.
10299
10300 * character.c (str_to_unibyte): New function.
10301
10302 * fns.c (Fstring_to_unibyte): New function.
10303 (syms_of_fns): Defsubr it.
10304
103052008-06-24 Kenichi Handa <handa@m17n.org>
10306
10307 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
10308 DPI too.
10309 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
10310
103112008-06-24 Andreas Schwab <schwab@suse.de>
10312
10313 * Makefile.in (${lispsource}loaddefs.el): Rename from
10314 ../lisp/loaddefs.el.
10315 (bootstrap-clean): Do what distclean does but don't remove
10316 Makefile.
10317 (distclean): Depend on bootstrap-clean and remove Makefile.
10318
103192008-06-24 Chong Yidong <cyd@stupidchicken.com>
10320
10321 * buffer.h (struct buffer): New member word_wrap.
10322
10323 * buffer.c (syms_of_buffer): New variables default-word-wrap and
10324 word-wrap.
10325 (init_buffer_once): Initialize them.
10326
10327 * dispextern.h (struct it): Replace bool truncate_lines_p with a
10328 line_wrap enum possessing three possible values.
10329
10330 * termopts.h: Replace truncate_partial_width_windows with
10331 Vtruncate_partial_width_windows.
10332
10333 * dispnew.c (direct_output_for_insert): Avoid direct output when
10334 inserting a space with word wrap on.
10335
10336 * indent.c (compute_motion): Obey integer values of
10337 truncate-partial-width-windows.
10338
10339 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
10340 replacing truncate_partial_width_windows.
10341 (init_iterator): If Vtruncate_partial_width_windows is an integer,
10342 truncate only if the window width is below that integer.
10343 (start_display, resize_mini_window, produce_stretch_glyph)
10344 (display_string, move_it_in_display_line_to): Use line_wrap.
10345 (back_to_previous_visible_line_start, reseat_1): Reset
10346 string_from_display_prop_p.
10347 (display_line): Extend default face to end of line when wrapping.
10348
103492008-06-24 Kim F. Storm <storm@cua.dk>
10350
10351 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
10352 to wrap continued lines at word boundaries.
10353
103542008-06-24 Jason Rumney <jasonr@gnu.org>
10355
10356 * font.c (Ffont_face_attributes): Multiply pixel size before point
10357 conversion to avoid multiplying rounding error.
10358
103592008-06-23 Jason Rumney <jasonr@gnu.org>
10360
10361 * w32term.c (x_draw_glyph_string_background)
10362 (x_draw_glyph_string): Remove old bdf font code.
10363
10364 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
10365
103662008-06-22 Kenichi Handa <handa@m17n.org>
10367
10368 * font.c (font_find_for_lface): Try the adstyle specified in
10369 the property of LFACE_FONT of LFACE (if any).
10370
103712008-06-21 Seiji Zenitani <zenitani@mac.com>
10372 Ryo Yoshitake <ryo@shiftmode.net>
10373
10374 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
10375
103762008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
10377
10378 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
10379 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
10380 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
10381 (witness-emacs): Remove.
10382 (lisp, shortlisp): Move loaddefs.el earlier.
10383 (mostlyclean): Forget about witness-emacs.
10384
103852008-06-22 Glenn Morris <rgm@gnu.org>
10386
10387 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
10388 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
10389
103902008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
10391
10392 * Makefile.in (PRECOMP): Remove.
10393 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
10394 (witness-emacs): Run `compile-first'.
10395 (.el.elc): Use the new compile-onefile target.
10396
103972008-06-21 Kenichi Handa <handa@m17n.org>
10398
10399 * xftfont.c (xftfont_open): Handle QCembolden only when
10400 FC_EMBOLDEN is defined.
10401
104022008-06-21 Andreas Schwab <schwab@suse.de>
10403
10404 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
10405 (.el.elc): Likewise.
10406
104072008-06-21 Miles Bader <miles@gnu.org>
10408
10409 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
10410 build dir, not the lisp source dir.
10411
104122008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
10413
10414 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
10415 (bootstrapclean): Remove.
10416 (.el.elc): New rule.
10417 (PRECOMP): New var.
10418 (../lisp/subdirs.el): Remove.
10419 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
10420 (witness-emacs): New target.
10421 (mostlyclean): Remove witness-emacs as well.
10422 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
10423 Add witness-emacs dependency.
10424
104252008-06-20 Chong Yidong <cyd@stupidchicken.com>
10426
10427 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
10428 defined by the font.
10429
104302008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
10431
10432 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
10433 (bootstrap-clean): New target that keeps TAGS around.
10434 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
10435 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
10436
104372008-06-20 Jason Rumney <jasonr@gnu.org>
10438
10439 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
10440 Remove obsolete font code.
10441
10442 * w32font.c (font_matches_spec): Use csb bitfield from font signature
10443 to determine language support.
10444
104452008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
10446
10447 * sysdep.c (cfsetspeed): New fun extracted from the code.
10448 (cfmakeraw): Move before first use.
10449
104502008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
10451
10452 * sysdep.c (cfmakeraw): Provide fallback implementation.
10453 (serial_configure): Provide fallback implementation of cfsetspeed.
10454
104552008-06-20 Kenichi Handa <handa@m17n.org>
10456
10457 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
10458 the pattern.
10459
10460 * fontset.c (fontset_from_font): Copy font_spec before changing
10461 the elements.
10462
10463 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
10464
104652008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
10466
10467 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
10468 for explicit `font' parameters.
10469
10470 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
10471
104722008-06-19 Kenichi Handa <handa@m17n.org>
10473
10474 * frame.c: Include <ctype.h>.
10475 (x_set_font_backend): Allow spacing characters in the X resource
10476 for FontBackend.
10477
104782008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
10479
10480 * w32fns.c, xfns.c (Qfont_param): New var.
10481 (syms_of_w32fns): Initialize it.
10482 (x_default_font_parameter): Record explicit `font' into
10483 `font-parameter'.
10484
104852008-06-18 Kenichi Handa <handa@m17n.org>
10486
10487 * font.c (font_parse_xlfd): Fix previous change.
10488 (font_parse_fcname): Don't use :fc-unknown-spec.
10489 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
10490 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
10491 (font_add_log): Prepend the driver name to the resulting fonts.
10492
10493 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
10494 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
10495 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
10496
10497 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
10498 (QCembolden): New variables.
10499 (syms_of_xftfont): DEFSYM them.
10500 (xftfont_open): Call XftFontMatch. Don't trust the result of
10501 XftTextExtents8 if the pixel_size is less than 5.
10502
105032008-06-18 Andreas Schwab <schwab@suse.de>
10504
10505 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
10506 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
10507
105082008-06-18 Jason Rumney <jasonr@gnu.org>
10509
10510 * w32font.c (w32font_list, w32font_match): Add logging.
10511
10512 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
10513
105142008-06-17 Chong Yidong <cyd@stupidchicken.com>
10515
10516 * font.c (font_parse_fcname): Store divider characters for
10517 unknown-spec list. For known key symbols, intern using correct
10518 symbol name.
10519
105202008-06-17 Kenichi Handa <handa@m17n.org>
10521
10522 * xfaces.c (realize_default_face): If the frame is not on window
10523 system, set the fontset of face to nil.
10524
105252008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
10526
10527 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
10528
105292008-06-16 Juanma Barranquero <lekktu@gmail.com>
10530
10531 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
10532 (build_font_name_from_vector): Delete externs.
10533
10534 * xfaces.c (struct font_name): Don't declare.
10535
105362008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
10537
10538 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
10539
105402008-06-16 Chong Yidong <cyd@stupidchicken.com>
10541
10542 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
10543
105442008-06-16 Juanma Barranquero <lekktu@gmail.com>
10545
10546 * font.c (Ffont_spec): Fix usage in docstring.
10547 (Ffont_face_attributes): Doc fix.
10548
105492008-06-16 Andreas Schwab <schwab@suse.de>
10550
10551 * font.c (Ffont_face_attributes): Fix definition.
10552
105532008-06-16 Jason Rumney <jasonr@gnu.org>
10554
10555 * font.h (font_style_symbolic_from_value): Remove.
10556
10557 * font.c (font_style_symbolic_from_value): Remove.
10558 (font_style_symbolic): Revert to pre 2008-06-13 version.
10559
10560 * w32font.c (w32_to_fc_weight): New function.
10561 (w32font_full_name, logfont_to_fcname): Use it.
10562
105632008-06-16 Kenichi Handa <handa@m17n.org>
10564
10565 * font.c (font_check_object): Delete it.
10566 (font_clear_cache): Check if a font-object is alive.
10567 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
10568 font-object to nil.
10569 (font_close_object): Don't check FONT_CLOSE_OBJECT.
10570 (font_at): Don't call font_check_object.
10571 (Ffont_get): Return a symbol for :weight, :slant, and :width.
10572
105732008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
10574
10575 * puresize.h (BASE_PURESIZE): Increase to 1230000.
10576
105772008-06-16 Chong Yidong <cyd@stupidchicken.com>
10578
10579 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
10580
105812008-06-15 Chong Yidong <cyd@stupidchicken.com>
10582
10583 * font.c (font_parse_fcname): Only one decimal point.
10584 (font_unparse_fcname): Handle data in family and foundry indices
10585 as symbols, not strings.
10586 (font_unparse_gtkname, Ffont_face_attributes): New functions.
10587
10588 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
10589
10590 * font.h (font_unparse_gtkname): Add prototype.
10591
105922008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
10593
10594 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
10595
105962008-06-15 Andreas Schwab <schwab@suse.de>
10597
10598 * font.c (font_update_drivers): Fix crash when no drivers match.
10599
106002008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
10601
10602 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
10603 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
10604
106052008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
10606
10607 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
10608
106092008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
10610
10611 * process.c (Fserial_process_configure, Fprocess_send_eof):
10612 Use EQ to compare Lisp_Objects.
10613
106142008-06-13 Jason Rumney <jasonr@gnu.org>
10615
10616 * w32fns.c (Fw32_select_font): Remove old font API function.
10617
10618 * w32font.c (logfont_to_fcname): New function.
10619 (Fx_select_font): New font dialog function compatible with
10620 GTK/fontconfig version.
10621
10622 * font.c (font_style_symbolic_from_value): New function.
10623 (font_style_symbolic): Use it.
10624
10625 * font.h (font_style_symbolic_from_value): Declare new function.
10626
106272008-06-13 Juanma Barranquero <lekktu@gmail.com>
10628
10629 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
10630 <font-width-table>: Fix typos in docstrings.
10631
106322008-06-13 Daniel Engeler <engeler@gmail.com>
10633
10634 These changes add serial port access.
10635 * process.c: Add HAVE_SERIAL.
10636 (Fdelete_process, Fprocess_status, Fset_process_buffer)
10637 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
10638 (list_processes_1, select_wrapper, Fstop_process)
10639 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
10640 (status_notify): Modify to handle serial processes.
10641 [HAVE_SERIAL] (Fserial_process_configure)
10642 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
10643 New functions.
10644 * process.h (struct Lisp_Process): Add `type'.
10645 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
10646 New functions.
10647 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
10648 serial ports.
b71ac3dd 10649 (serial_open, serial_configure): New functions.
aac0c6e3
MR
10650 * w32.h: Add FILE_SERIAL.
10651 (struct _child_process): Add ovl_read, ovl_write.
10652
106532008-06-13 Kenichi Handa <handa@m17n.org>
10654
10655 * dispextern.h (enum lface_attribute_index): New member
10656 LFACE_FOUNDRY_INDEX.
10657
10658 * font.c (font_score): Delete arg alternate_families. Check only
10659 weight, slant, width, and size. Ignore the difference of alias
10660 style symbols.
10661 (font_sort_entites): Adjust for the above change. Reflect the
10662 order of font-driver to scores.
10663 (font_list_entities): Don't check alternate_familes here.
10664 (font_clear_prop): Handle foundry.
10665 (font_update_lface): Don't parse "foundry-family" form here.
10666 Handle FONT_FOUNDRY_INDEX.
10667 (font_find_for_lface): Likewise. Handle alternate families here.
10668 If registry is nil, try iso8859-1 and ascii-0.
10669 (font_open_for_lface): Pay attention to size in ENTITY.
10670 (font_open_by_name): Simplify by calling font_load_for_lface.
10671 (free_font_driver_list): Delete it.
10672 (font_update_drivers): Preserve the order of backends.
10673 (syms_of_font): Setting of sort_shift_bits adjusted for the change
10674 of font_score and font_sort_entites.
10675 (font_update_sort_order): Likewise.
10676
10677 * xfaces.c (LFACE_FOUNDRY): New macro.
10678 (check_lface_attrs): Check foundry.
10679 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
10680 (merge_face_vectors): Check foundry.
10681 (merge_face_ref): Likewise.
10682 (Finternal_set_lisp_face_attribute): Likewise.
10683 (x_update_menu_appearance): Likewise.
10684 (Finternal_get_lisp_face_attribute): Likewise.
10685 (lface_hash): Likewise.
10686 (lface_same_font_attributes_p): Likewise.
10687 (x_supports_face_attributes_p): Likewise.
10688 (tty_supports_face_attributes_p): Likewise.
10689 (Finternal_set_alternative_font_family_alist): Intern strings.
10690 (Finternal_set_alternative_font_registry_alist): Downcase strings.
10691 (realize_default_face): Set LFACE_FOUNDRY (lface).
10692
10693 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
10694 font-driver at first.
10695
10696 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
10697
106982008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
10699
10700 * lread.c (Fload): Use xfree, not free on saved_doc_string.
10701
107022008-06-12 Jim Meyering <meyering@redhat.com>
10703
10704 Make unexec_free handle NULL the same way free does.
10705 * unexmacosx.c (unexec_free): Ignore a NULL argument.
10706
107072008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
10708
10709 * character.h (CHAR_TO_BYTE_SAFE): New macro.
10710 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
10711 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
10712 (WEAK_ALIAS): Simplify.
10713 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
10714 when searching a unibyte buffer.
10715
107162008-06-12 Chong Yidong <cyd@stupidchicken.com>
10717
10718 * xfns.c (Fx_select_font): Rename from x-font-dialog.
10719
107202008-06-12 Juanma Barranquero <lekktu@gmail.com>
10721
10722 * w32font.c: Include ctype.h.
10723
107242008-06-11 Jason Rumney <jasonr@gnu.org>
10725
10726 * w32font.c (w32font_encode_char): Detect missing glyphs that are
10727 misreported as space.
10728 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
10729 as aliases for registry iso10646-1.
10730
107312008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
10732
10733 * buffer.c (clone_per_buffer_values): Skip `name'.
10734
107352008-06-11 Chong Yidong <cyd@stupidchicken.com>
10736
10737 * font.c (font_parse_fcname): Fix last change; accept decimal
10738 points in font size.
10739
107402008-06-10 Jason Rumney <jasonr@gnu.org>
10741
10742 * w32uniscribe.c (add_opentype_font_name_to_list):
10743 Skip non unicode fonts.
10744
107452008-06-10 Chong Yidong <cyd@stupidchicken.com>
10746
10747 * xfns.c (Fx_font_dialog): New function.
10748
10749 * gtkutil.c (xg_dialog_response_cb): Rename from
10750 xg_file_response_callback.
10751 (pop_down_dialog): Rename from pop_down_file_dialog.
10752 (xg_get_file_name): Callers changed.
10753 (xg_get_font_name): New function.
10754
10755 * gtkutil.h (xg_get_font_name): Insert prototype.
10756
107572008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
10758
10759 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
10760 x_underline_minimum_display_offset.
10761 (syms_of_xdisp): Declare it here rather than in xterm.c.
10762 * dispextern.h (underline_minimum_offset): Declare it.
10763 * w32term.c (x_draw_glyph_string): Use it.
10764 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
10765 (syms_of_xterm): Don't declare it any more.
10766 (x_draw_glyph_string): Adjust to the new name.
10767
8719abec 107682008-06-10 David De La Harpe Golden <david@harpegolden.net>
aac0c6e3
MR
10769
10770 * xterm.c (x_underline_minimum_display_offset): New var.
10771 (x_draw_glyph_string): Use it.
10772 (syms_of_xterm): Declare it.
10773
107742008-06-10 Chong Yidong <cyd@stupidchicken.com>
10775
10776 * font.c (font_parse_fcname): Accept GTK-style font names too.
10777
107782008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
10779
10780 * dired.c (file_name_completion): Don't return t if the match is exact
10781 but with different capitalization.
10782 * minibuf.c (Ftry_completion): Simplify.
10783
10784 * window.c (Vwindow_point_insertion_type): New var.
10785 (set_window_buffer): Use it.
10786 (syms_of_window): Init and export it to Lisp.
10787
107882008-06-10 Kenichi Handa <handa@m17n.org>
10789
10790 * font.h (font_intern_prop): Prototype adjusted.
10791
10792 * font.c (font_intern_prop): New arg force_symbol.
10793 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
10794 Adjust for the change of font_intern_prop.
10795
10796 * ftfont.c (ftfont_pattern_entity):
10797 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
10798 (w32_registry):
10799 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
10800 the change of font_intern_prop.
10801
108022008-06-09 Juanma Barranquero <lekktu@gmail.com>
10803
10804 * w32menu.c (digest_single_submenu): Declare extern.
10805
108062008-06-09 Jason Rumney <jasonr@gnu.org>
10807
10808 * w32term.c (x_make_frame_visible): Use alternate restore flags.
10809
10810 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
10811 (parse_single_submenu): Remove.
10812 (digest_single_submenu): Remove.
10813 (syms_of_w32menu): Don't initialise variables that have moved
10814 to menu.c.
10815 (set_frame_menubar): Sync with version in xmenu.c.
10816 (w32_menu_show): Sync with xmenu_show in xmenu.c.
10817
10818 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
10819 Make static again.
10820
108212008-06-09 Jason Rumney <jasonr@gnu.org>
10822
10823 Changes to w32 files related to the move of common menu code
10824 to menu.c on 2008-06-08 by Chong Yidong.
10825
10826 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
10827 defs to w32gui.h.
10828 (single_keymap_panes, push_menu_item, push_menu_pane):
10829 Make globally visible.
10830
10831 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
10832 (local_free, malloc_widget_value, free_widget_value)
10833 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
10834 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
10835 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
10836 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
10837 (menu_items, menu_items_allocated, menu_items_used)
10838 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
10839 (init_menu_items, finish_menu_items, discard_menu_items)
10840 (grow_menu_items, push_submenu_start, push_submenu_end)
10841 (push_left_right_boundary, push_menu_pane, push_menu_item)
10842 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
10843 (free_menubar_widget_tree_value, parse_single_submenu)
10844 (update_submenu_strings): Remove functions.
10845 (xmalloc_widget_value): Remove and declare extern.
10846
10847 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
10848 (OBJ1): Build it.
10849
10850 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
10851 (local_heap, local_alloc, local_free, malloc_widget_value)
10852 (free_widget_value): Define here.
10853
108542008-06-09 Kenichi Handa <handa@m17n.org>
10855
10856 * font.h (Qascii_0): Extern it.
10857
10858 * font.c (Qascii_0): New variable.
10859 (syms_of_font): DEFSYM it.
10860 (font_open_by_name): If the registry "iso8859-1" fails, try also
10861 "ascii-0".
10862
10863 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
10864
108652008-06-08 Kenichi Handa <handa@m17n.org>
10866
10867 * .gdbinit (xfont): New command.
10868
108692008-06-08 Andreas Schwab <schwab@suse.de>
10870
10871 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
10872 * Makefile.in (menu.o): Update dependencies.
10873
10874 * Makefile.in (obj): Always add menu.o.
10875 * emacs.c (main): Always call syms_of_menu.
10876 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
10877
108782008-06-08 Chong Yidong <cyd@stupidchicken.com>
10879
10880 * Makefile.in: Compile menu.c.
10881
10882 * lisp.h: Declare syms_of_menu.
10883
10884 * emacs.c (main): Call syms_of_menu.
10885
10886 * keyboard.h: Relocate platform-independent menu definitions from
10887 xmenu.c.
10888
10889 * menu.c: New file. Relocate platform-independent menu
10890 definitions from xmenu.c. Suggested by Adrian Robert.
10891
10892 * xmenu.c: Remove platform-independent menu definitions.
10893 (menu_items menu_items_inuse, menu_items_allocated)
10894 (menu_items_used, menu_items_n_panes)
10895 (menu_items_submenu_depth): Move to keyboard.h.
10896 (init_menu_items, finish_menu_items, unuse_menu_items)
10897 (discard_menu_items, restore_menu_items, save_menu_items)
10898 (grow_menu_items, push_submenu_start, push_submenu_end)
10899 (push_left_right_boundary, push_menu_pane, push_menu_item)
10900 (keymap_panes, single_keymap_panes, single_menu_item)
10901 (list_of_panes, list_of_items, find_and_call_menu_selection)
10902 (xmalloc_widget_value, free_menubar_widget_value_tree)
10903 (parse_single_submenu, digest_single_submenu)
10904 (update_submenu_strings): Move to menu.c.
10905
109062008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
10907
10908 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
10909
109102008-06-06 Miles Bader <miles@gnu.org>
10911
10912 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
10913 face, not frame default.
10914
109152008-06-05 Martin Rudalics <rudalics@gmx.at>
10916
10917 * window.c (pop_up_windows, pop_up_frames)
10918 (display_buffer_reuse_frames, Vpop_up_frame_function)
10919 (Vdisplay_buffer_function, Veven_window_heights)
10920 (Vspecial_display_buffer_names, Vspecial_display_regexps)
10921 (Vspecial_display_function, Vsame_window_buffer_names)
10922 (Vsame_window_regexps, split_height_threshold)
10923 (Vsplit_window_preferred_function): Move those vars to window.el.
10924 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
10925 (Fdisplay_buffer): Move those functions to window.el.
10926 (syms_of_window): Remove corresponding declarations.
10927 (display_buffer): New function.
10928 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
10929 * dispnew.c (Flast_nonminibuf_frame): New function.
10930 * buffer.c (Fpop_to_buffer): Move to window.el.
10931
109322008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
10933
10934 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
10935
109362008-06-05 Kenichi Handa <handa@m17n.org>
10937
10938 * coding.c (detect_coding): Fix previous change.
10939 (detect_coding_system): Likewise.
10940
109412008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
10942
10943 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
10944
10945 * keymap.c (Vminibuffer_local_filename_must_match_map):
10946 Rename from Vminibuffer_local_must_match_filename_map.
10947 (syms_of_keymap):
10948 * minibuf.c (Fcompleting_read): Adjust accordingly.
10949 * commands.h: Rename declaration as well.
10950
109512008-06-05 Kenichi Handa <handa@m17n.org>
10952
10953 * font.c (Ffont_spec): Don't use font_parse_family_registry for
10954 family name.
10955 (Ffont_put): Likewise.
10956
10957 * fontset.c (fontset_find_font): Call font_open_for_lface with the
10958 current font-spec.
10959
10960 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
10961 is unspecified.
10962
10963 * xfaces.c (realize_x_face): If the font-related face attributes
10964 are the same as those of default face, realize a new fontset from
10965 default->fontset.
10966 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
10967
109682008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
10969
10970 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
10971 (move_it_in_display_line): New wrapper.
10972
10973 * window.c (window_scroll_pixel_based_preserve_x)
10974 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
10975 (window_scroll_pixel_based, window_scroll_line_based):
10976 Use them to preserve column positions.
10977 (syms_of_window): Initialize them.
10978
10979 * indent.c (Fvertical_motion): Extend first arg to allow passing an
10980 (HPOS . VPOS) pair.
10981
10982 * dispextern.h (move_it_in_display_line): Declare.
10983
109842008-06-05 Juanma Barranquero <lekktu@gmail.com>
10985
10986 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
10987 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
10988 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
10989
109902008-06-04 Juanma Barranquero <lekktu@gmail.com>
10991
10992 * window.c (Fset_window_parameter): Doc fix.
10993 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
10994
109952008-06-04 Joakim Verona <joakim@verona.se>
10996
10997 * window.h (struct window): Add new member window_parameters.
10998
10999 * window.c (Fwindow_parameters, Fwindow_parameter)
11000 (Fset_window_parameter): New defuns.
11001 (syms_of_window): Defsubr the new defuns.
11002 (make_window): Initialize window_parameters to nil.
11003
110042008-06-04 John Paul Wallington <jpw@pobox.com>
11005
11006 * eval.c (Fdefmacro): Doc fix.
11007
110082008-06-04 Kenichi Handa <handa@m17n.org>
11009
11010 * coding.c (detect_coding): Fix handling of coding->head_ascii.
11011 Be sure to call setup_coding_system when we find a proper coding system.
11012 (detect_coding_system): Fix handling of coding->head_ascii.
11013
110142008-06-03 Andreas Schwab <schwab@suse.de>
11015
11016 * font.c (font_prop_validate_spacing): Fix last change.
11017
110182008-06-03 Kenichi Handa <handa@m17n.org>
11019
11020 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
11021 (font_parse_fcname): Fix handling of unknown key.
11022
11023 * xfont.c (xfont_list): Try an alias.
11024
11025 * charset.c (char_charset): Return NULL if the arg charset_list is
11026 specified and C doesn't belong to any of them.
11027
110282008-06-02 Chip Coldwell <coldwell@redhat.com>
11029
11030 * font.c (font_pixel_size): Don't take cdr of an integer.
11031
110322008-06-02 Jim Meyering <meyering@redhat.com>
11033
11034 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
11035 * alloc.c (xfree): Return right away for a NULL arg.
11036 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
11037 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
11038 * mac.c (create_apple_event_from_event_ref): Likewise.
11039 (create_apple_event_from_drag_ref, cfstring_create_normalized):
11040 Likewise.
11041 * doprnt.c (doprnt1): Likewise.
11042 * frame.c (frame): Likewise.
11043 * keyboard.c (wipe_kboard): Likewise.
11044 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
11045 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
11046 * term.c (tty_default_color_capabilities, maybe_fatal)
11047 (delete_tty): Likewise.
11048 * w16select.c (string): Likewise.
11049 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
11050 * w32bdf.c (w32_free_bdf_font): Likewise.
11051 * w32fns.c (w32_unload_font): Likewise.
11052 * w32font.c (w32font_close): Likewise.
11053 * window.c (size_window): Likewise.
11054 * xselect.c (receive_incremental_selection): Likewise.
11055 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
11056 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
11057 * w32.c (stat): Likewise.
11058
11059 Remove useless if-before-free tests.
11060 * editfns.c (Fset_time_zone_rule): Likewise.
11061 * lread.c (nosuffix): Likewise.
11062 * ralloc.c (get_bloc): Likewise.
11063 * regex.c (reg_free): Likewise.
11064 * xftfont.c (xftfont_open, xftfont_close): Likewise.
11065 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
11066 * xsmfns.c (smc_save_yourself_CB): Likewise.
11067
110682008-06-02 Kenichi Handa <handa@m17n.org>
11069
11070 * font.c (font_find_for_lface): Handle float font size.
11071 (font_open_for_lface): Likewise.
11072
11073 * xfaces.c (x_supports_face_attributes_p): Check face->font before
11074 comparing the properties.
11075
110762008-06-01 Jason Rumney <jasonr@gnu.org>
11077
11078 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
11079 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
11080 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
11081 Don't add empty script list.
11082 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
11083
110842008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
11085
11086 * Makefile.in (dot, dotdot): Remove, update users.
11087 ".." has been used elsewhere in the file for a long time.
11088 (LIBXT_STATIC): Remove conditional based on unused variable.
11089
110902008-06-01 Miles Bader <miles@gnu.org>
11091
11092 * xfaces.c (Vface_remapping_alist): New variable.
11093 (syms_of_xfaces): Initialize it.
11094 (enum named_merge_point_kind): New type.
11095 (struct named_merge_point): Add `named_merge_point_kind' field.
11096 (push_named_merge_point): Make cycle detection respect different
11097 named-merge-point kinds.
11098 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
11099 Remove face-name alias resolution.
11100 (lface_from_face_name): New definition using
11101 `lface_from_face_name_no_resolve'.
11102 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
11103 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
11104 (get_lface_attributes): New definition that layers face-remapping on
11105 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
11106 (lookup_basic_face): New function.
11107 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
11108 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
11109 `get_lface_attributes'.
11110 (face_at_buffer_position): Use `lookup_basic_face' to lookup
11111 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
11112 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
11113
11114 * xdisp.c (init_iterator): Pass base_face_id through
11115 `lookup_basic_face' when we actually use it as a face-id.
11116 (handle_single_display_prop): Use `lookup_basic_face' to lookup
11117 DEFAULT_FACE_ID.
11118
11119 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
11120 lookup the initial face-id.
11121
11122 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
11123
111242008-06-01 Juanma Barranquero <lekktu@gmail.com>
11125
11126 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
11127 (Fremove_text_properties): Fix typos in docstrings.
11128
111292008-05-31 Kenichi Handa <handa@m17n.org>
11130
11131 * font.c (font_list_entities): Fix the car part of data to be
11132 stored in the cache.
11133
11134 * ftfont.c (ftfont_font_format): Don't use strcasestr.
11135
111362008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
11137
11138 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
11139 Add a `test' argument so another predicate than `equal' can be used.
11140 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
11141 (map_char_table): Remove unused vars `c' and `i'.
11142 * lisp.h (Foptimize_char_table): Adjust declaration.
11143 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
11144
111452008-05-30 Kenichi Handa <handa@m17n.org>
11146
11147 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
11148 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
11149 defined.
11150
111512008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
11152
11153 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
11154 (Fmake_variable_frame_local): Disallow mixing buffer-local and
11155 frame-local settings for the same variable.
11156
111572008-05-30 Kenichi Handa <handa@m17n.org>
11158
11159 * fontset.c (Ffont_info): Move to font.c.
11160 (syms_of_fontset): Delete defsubr of Sfont_info.
11161
11162 * font.c (font_style_to_value, font_score): Delete casting of the
11163 args to xstcasecmp.
11164 (register_font_driver): Increment num_font_drivers only when
11165 registering the driver globally.
11166 (Ffont_info): Move from fontset.c. Handle a font object too.
11167 (syms_of_font): Defsubr Sfont_info.
11168
111692008-05-29 Kenichi Handa <handa@m17n.org>
11170
11171 * coding.h (enum define_coding_utf8_arg_index): New enum.
11172 (enum coding_attr_index): Change coding_attr_utf_16_bom to
11173 coding_attr_utf_bom.
11174 (enum utf_bom_type): Rename from utf_16_bom_type.
11175 (struct utf_16_spec): Adjust for the above change.
11176 (struct coding_system): Add utf_8_bom in `spec' union.
11177
11178 * coding.c (CODING_UTF_8_BOM): New macro.
11179 (enum coding_category): Delete coding_category_utf_8, add
11180 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
11181 coding_category_utf_8_sig.
11182 (CATEGORY_MASK_UTF_8): Delete it.
11183 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
11184 (CATEGORY_MASK_UTF_8_SIG): New macros.
11185 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
11186 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
11187 CATEGORY_MASK_UTF_8_SIG.
11188 (CATEGORY_MASK_UTF_8): New macro.
11189 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
11190 (detect_coding_utf_8): Check BOM.
11191 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
11192 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
11193 (encode_coding_utf_16): Likewise.
11194 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
11195 (detect_coding, detect_coding_system): Handle utf-8-auto.
11196 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
11197 (syms_of_coding): Fix setting up of Vcoding_category_table.
11198
111992008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
11200
11201 * process.c (Faccept_process_output): If `millisec' is non-nil,
11202 `seconds' default to 0.
11203 (wait_reading_process_output): Also return non-nil if we read output
11204 from a non-running process.
11205
112062008-05-29 Jason Rumney <jasonr@gnu.org>
11207
11208 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
11209 `raster' specified.
11210 (add_font_entity_to_list): Allow non-opentype truetype fonts back
11211 in the uniscribe backend, but disallow any font that has no
11212 unicode subrange support.
11213
112142008-05-29 Juanma Barranquero <lekktu@gmail.com>
11215
11216 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
11217 Fix typos in docstrings.
11218
112192008-05-29 Kenichi Handa <handa@m17n.org>
11220
11221 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
11222 (Fx_family_fonts): Set frame correctly.
11223
112242008-05-28 Jason Rumney <jasonr@gnu.org>
11225
11226 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
11227
112282008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
11229
11230 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
11231 calling build_annotations.
11232
112332008-05-28 Juanma Barranquero <lekktu@gmail.com>
11234
11235 * coding.c (Fdecode_coding_region, Fencode_coding_region)
11236 (Fencode_coding_string):
11237 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
11238 <latin-extra-code-table>: Fix typos in docstrings.
11239 (syms_of_coding) <coding-system-alist>: Doc fix.
11240 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
11241
112422008-05-28 Kenichi Handa <handa@m17n.org>
11243
11244 * fontset.c (Ffont_info): Don't call font_close_object.
11245
11246 * font.c (font_parse_family_registry): Use Ffont_put to validate
11247 foundry and family.
11248 (font_delete_unmatched): Don't check spacing.
11249 (font_list_entities): Add spacing to the spec to list fonts.
11250
11251 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
11252 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
11253
11254 * coding.c (encode_coding_raw_text): Fix previous change.
11255 (encode_coding_object): When the dst_object is a buffer and is
11256 different from src_object, move gap to PT.
11257
112582008-05-27 Chong Yidong <cyd@stupidchicken.com>
11259
11260 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
11261
112622008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
11263
11264 * coding.c (encode_coding_raw_text): Set coding->produced_char for
11265 all branches. Compute it differently.
11266
11267 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
11268
112692008-05-27 Juanma Barranquero <lekktu@gmail.com>
11270
11271 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
11272 into "else if () ... else ...".
11273
112742008-05-27 Jason Rumney <jasonr@gnu.org>
11275
11276 * w32font.c (w32font_open_internal): Determine if glyph indices
11277 are likely to work here.
11278
112792008-05-27 Chong Yidong <cyd@stupidchicken.com>
11280
11281 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
11282 draw overlap glyphs with appropriate highlighting.
11283
112842008-05-27 Kenichi Handa <handa@m17n.org>
11285
11286 * xfont.c (xfont_open): Fix calculation of font->average_width.
11287
112882008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
11289
11290 * casefiddle.c (casify_object): Try to guess better whether the
11291 argument is a byte or a char.
11292
112932008-05-26 Andreas Schwab <schwab@suse.de>
11294
11295 * xselect.c (x_reply_selection_request): Properly handle format == 32.
11296 Always send multiples of format size.
11297
11298 * xterm.c (x_set_frame_alpha): Fix type mismatch.
11299
113002008-05-26 Jason Rumney <jasonr@gnu.org>
11301
11302 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
11303 (compute_metrics): Don't set failure if we just cleared the cache.
11304 (w32_weight_table): Remove unused variable.
11305 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
11306 backwards compatibility.
11307
113082008-05-25 Kenichi Handa <handa@m17n.org>
11309
11310 * w32term.c (x_draw_glyph_string):
11311 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
11312
11313 * xfaces.c: Delete unused function prototypes.
11314 (xstrlwr, font_frame): Delete them.
11315 (clear_face_cache): Delete unused variable.
11316
11317 * xftfont.c (xftfont_open): Delete unused variable.
11318 If underline_thickness is not 1, adjust underline_position.
11319
11320 * ftxfont.c (ftxfont_open): Delete unused variable.
11321
11322 * fontset.c (face_for_char): Optimize for the case of no charset
11323 property.
11324
11325 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
11326 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
11327 (otf_open, font_otf_capability, generate_otf_features)
11328 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
11329 Comment out by surrounding "#if 0" and "#endif" for the moment.
11330 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
11331 (syms_of_font): Codes for accessing above commented out.
11332
113332008-05-24 Eli Zaretskii <eliz@gnu.org>
11334
11335 * w32proc.c: Include dispextern.h.
11336
11337 * w32.c: Include dispextern.h.
11338
113392008-05-23 Juanma Barranquero <lekktu@gmail.com>
11340
11341 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
11342 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
11343 Fix typos in docstrings.
11344
113452008-05-23 Jason Rumney <jasonr@gnu.org>
11346
11347 * xsmfns.c: Remove includes that are already included by config.h.
11348
113492008-05-23 Kenichi Handa <handa@m17n.org>
11350
11351 * charset.c (Qemacs, charset_emacs): New variables.
11352 (char_charset): Fix for non-Unicode characters.
11353 (syms_of_charset): Define charset_emacs.
11354
11355 * w32term.c (x_draw_glyph_string): Be sure to update
11356 s->underline_thickness and s->underline_position. Be sure to draw
11357 underline within the current line area.
11358
11359 * xterm.c (x_draw_glyph_string): Be sure to update
11360 s->underline_thickness and s->underline_position. Be sure to draw
11361 underline within the current line area.
11362
11363 * fontset.c: Delete unused variables and add casting for char *
11364 throughout the file.
11365 (fontset_font): Try the fallback fonts of the current fontset
11366 before consulting the default fontset.
11367
11368 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
11369
11370 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
11371
113722008-05-22 Jason Rumney <jasonr@gnu.org>
11373
11374 * font.c: Don't include strings.h.
11375
11376 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
11377
11378 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
11379 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
11380 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
11381 to call xstrcasecmp.
11382
11383 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
11384
11385 * fontset.c (fs_query_fontset): Use xstrcasecmp.
11386
11387 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
11388
11389 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
11390
113912008-05-22 Kenichi Handa <handa@m17n.org>
11392
11393 * puresize.h (BASE_PURESIZE): Increase to 1220000.
11394
11395 * font.c (font_prop_validate_style): Adjust for the format
11396 change of font_style_table.
11397
11398 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
11399 two args.
11400
11401 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
11402 two args.
11403
114042008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
11405
11406 * minibuf.c (keys_of_minibuf): Delete.
11407 * lisp.h (keys_of_minibuf): Delete.
11408 * emacs.c (main): Don't call keys_of_minibuf.
11409
114102008-05-22 Kenichi Handa <handa@m17n.org>
11411
11412 * ftfont.c (ftfont_resolve_generic_family): Rename from
11413 ftfont_list_generic_family. Return a single family for each
11414 generic family.
11415 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
11416 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
11417 Call font_add_log.
11418 (ftfont_match): Call font_add_log.
11419
11420 * font.h (Ffont_xlfd_name): EXFUN adjusted.
11421 (FONT_DEBUG): Define it.
11422 (font_add_log): Extern it.
11423 (font_assert): Rename from xassert.
11424
11425 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
11426 (xfont_list_family): Call font_add_log.
11427 (xfont_match): Likewise.
11428 (memq_no_quit): Delete.
11429
11430 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
11431 call of Ffont_xlfd_name.
11432
11433 * xfaces.c (struct table_entry, slant_table, weight_table)
11434 (swidth_table): Move to font.c.
11435
11436 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
11437 xassert are changed to font_assert. Delete many unused variables.
11438 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
11439 New variables.
11440 (struct table_entry): Move from xfaces.c and modified.
11441 (weight_table, slant_table, width_table): Move from xfaces.c and
11442 contents adjusted for the change of struct table_entry.
11443 (font_style_to_value, font_style_symbolic): Adjust for the
11444 format change of font_style_table.
11445 (font_parse_family_registry): Don't overwrite existing foundry and
11446 family of font_spec.
11447 (font_score): Fix calculation of diff for sizes.
11448 (font_sort_entites): Call font_add_log.
11449 (font_delete_unmatched): Return a newly created list.
11450 (font_list_entities): Fix previous change. Call font_add_log.
11451 (font_matching_entity, font_open_entity, font_close_entity):
11452 Call font_add_log.
11453 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
11454 (Finternal_set_font_style_table): Delete.
11455 (BUILD_STYLE_TABLE): New macro.
11456 (build_style_table): New function.
11457 (Vfont_log, font_log_env_checked): New variables.
11458 (font_add_log): New function.
11459 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
11460 Declare Lisp variables "font-weight-table", "font-slant-table",
11461 "font-width-table", and "font-log". Initialize font_style_table.
11462
114632008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
11464
11465 * xterm.c (x_set_frame_alpha): Move declarations before statements.
11466
114672008-05-21 Seiji Zenitani <zenitani@mac.com>
11468 Ryo Yoshitake <ryo@shiftmode.net>
11469
11470 * frame.c (Qalpha): Add a new frame parameter `alpha'.
11471 (Vframe_alpha_lower_limit): New variable.
11472 (x_set_alpha): New function.
11473
11474 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
11475
11476 * xfns.c (x-create-frame, Qalpha):
11477 Initialize the frame parameter `alpha'.
11478 * xterm.c (OPAQUE, OPACITY): New.
11479 (x_set_frame_alpha): New function.
11480 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
11481
11482 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
11483 * w32fns.c (w32_frame_parm_handlers): Likewise.
11484
114852008-05-20 Jason Rumney <jasonr@gnu.org>
11486
11487 * w32font.c (add_font_entity_to_list): Don't add non-opentype
11488 truetype fonts to opentype list.
11489
114902008-05-20 Juanma Barranquero <lekktu@gmail.com>
11491
11492 * fontset.c (Ffontset_info): Doc fix.
11493 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
11494 <ignore-relative-composition>: Fix typos in docstrings.
11495
11496 * font.c (syms-of-font) <font-encoding-alist>:
11497 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
11498 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
11499 (Ffont_otf_alternates): Doc fixes.
11500
115012008-05-20 Kenichi Handa <handa@m17n.org>
11502
11503 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
11504 font.h through out the file.
11505 (FONT_DRIVERS): Rename from FONTOBJ.
11506 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
11507 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
11508
11509 * emacs.c (main): Call syms_of_font unconditionally.
11510
11511 * font.h (find_font_encoding): Extern it.
11512
11513 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
11514 fontset.c.
194d44e7 11515 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
aac0c6e3
MR
11516 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
11517 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
11518 only when HAVE_WINDOW_SYSTEM is defined.
11519 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
11520 when HAVE_WINDOW_SYSTEM is defined.
11521
11522 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
11523 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
11524
11525 * xfaces.c: Include font.h unconditionally.
11526 (merge_face_ref, merge_face_vectors)
11527 (Finternal_set_lisp_face_attribute): Cancel the previous change.
11528
115292008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
11530
11531 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
11532 indirect_variable.
11533 * eval.c (lisp_indirect_variable): New fun.
11534 (Fuser_variable_p): Use it.
11535
115362008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
11537
11538 * lisp.h (indirect_variable):
11539 * data.c (indirect_variable, let_shadows_buffer_binding_p):
11540 Use Lisp_Symbol pointers rather than Lisp_Object.
11541 Adjust callers.
11542 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
11543 To this end, change calling-convention.
11544
11545 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
11546 if some non-hidden buffers are selected by string&pred.
11547
115482008-05-19 Chong Yidong <cyd@stupidchicken.com>
11549
11550 * process.c (wait_reading_process_output): Always check status
11551 when in batch mode.
11552
115532008-05-19 Kenichi Handa <handa@m17n.org>
11554
11555 * font.c (font_list_entities): Fix handling of cache.
11556 (font_matching_entity): Likewise.
11557
11558 * ftfont.c (cs_iso8859_1): Delete.
11559 (ft_face_cache): New variable.
11560 (struct ftfont_info): New member fc_charset_idx.
11561 (ftfont_build_basic_charsets): Delete.
11562 (fc_charset_table): New variable.
11563 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
11564 . FC_CHARSET_IDX) as :font-entity property in the font entity.
11565 Callers changed.
11566 (ftfont_lookup_cache, ftfont_get_charset): New functions.
11567 (ftfont_spec_pattern): New argument fc_charset_idx.
11568 Check registry more rigidly. Change callers.
11569 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
11570 change of :font-entity property of the font.
11571
11572 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
11573 property of the font.
11574
115752008-05-18 Juanma Barranquero <lekktu@gmail.com>
11576
11577 * coding.c (Fcoding_system_p): Rename argument to match docstring.
11578 (Funencodable_char_position, Fcheck_coding_systems_region)
11579 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
11580 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
11581 (Ffind_operation_coding_system, Fset_coding_system_priority)
11582 (Fcoding_system_eol_type): Doc fixes.
11583
115842008-05-17 Glenn Morris <rgm@gnu.org>
11585
11586 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
11587
115882008-05-16 Eli Zaretskii <eliz@gnu.org>
11589
11590 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
11591 and st_gid.
11592
11593 * frame.c (Fdelete_frame): Don't call font_update_drivers if
11594 HAVE_WINDOW_SYSTEM is not defined.
11595
11596 * xfaces.c (merge_face_ref, merge_face_vectors)
11597 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
11598 HAVE_WINDOW_SYSTEM is defined.
11599 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
11600
116012008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
11602
11603 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
11604
116052008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11606
11607 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
11608
116092008-05-15 Kenichi Handa <handa@m17n.org>
11610
11611 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
11612 preference.
11613
116142008-05-15 Glenn Morris <rgm@gnu.org>
11615
11616 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
11617
116182008-05-15 Chong Yidong <cyd@stupidchicken.com>
11619
11620 * fns.c (init_fns): Don't initialize weak_hash_tables here.
11621 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
11622
11623 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
11624
116252008-05-15 Kenichi Handa <handa@m17n.org>
11626
11627 * ftfont.c (ftfont_list): Downcase family name to check generic
11628 families.
11629
11630 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
11631 font-spec for QCfont value.
11632
11633 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
11634 buffer. Check the return value of it.
11635
116362008-05-14 Jason Rumney <jasonr@gnu.org>
11637
11638 * w32term.c (w32_get_glyph_overhangs): Remove.
11639 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
11640
116412008-05-14 Kenichi Handa <handa@m17n.org>
11642
11643 * font.c (font_prop_validate): Make nil a valid value.
11644 (font_clear_cache): Check if the cached vector of entities is nil
11645 or not.
11646
116472008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11648
11649 * emacs.c (main_thread): Conditionalize on
11650 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
11651 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
11652
11653 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
11654 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
11655 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
11656
116572008-05-14 Kenichi Handa <handa@m17n.org>
11658
11659 * coding.c (detect_coding_iso_2022): Ignore a coding category that
11660 has no corresponding coding system.
11661
116622008-05-14 Jason Rumney <jasonr@gnu.org>
11663
11664 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
11665
11666 * w32font.h (w32font_open_internal): Update declaration.
11667
11668 * w32font.c (w32font_open_internal): Change last argument from
11669 w32font_info struct to font object. Fill in font object from
11670 font_entity. Get Outline metrics if possible. Use them to
11671 calculate underline position and thickness. Use xlfd name as name
11672 property. Don't set codepage.
11673 (w32font_open): Pass font_object to w32font_open_internal. Don't
11674 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
11675 (w32font_draw): Use s->font.
11676 (clear_cached_metrics): Don't clear non-existent blocks.
11677
11678 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
11679 font was not found.
11680 (x_draw_glyph_string): Use underline position and thickness from font.
11681
11682 * w32uniscribe.c (uniscribe_open): Pass font_object to
11683 w32font_open_internal.
11684
116852008-05-14 Kenichi Handa <handa@m17n.org>
11686
11687 These changes are to delete all legacy font-handling codes, and
11688 make Emacs use only font-backends.
11689
11690 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
11691 (frame.o, image.o, print.o): Depend on $(FONTSRC).
11692
11693 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
11694
11695 * charset.h (Vcharset_non_preferred_head)
11696 (Vcurrent_iso639_language): Extern them.
11697
11698 * charset.c (Vcharset_non_preferred_head): New variable.
11699 (Vcurrent_iso639_language): New variable.
11700 (syms_of_charset): Declare it as a Lisp variable.
11701 (char_charset): Don't check non preferred charsets. As a last
11702 resort, return charset_unicode.
11703 (Fset_charset_priority): Update Vcharset_non_preferred_head.
11704
11705 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
11706 conditionals. Don't check enable_font_backend. Delete all codes
11707 used only when USE_FONT_BACKEND is not defined.
11708
11709 * dispextern.h (struct glyph_string): Change type of `font' to
11710 `struct font *'.
11711 (struct glyph_string): New member underline_position and
11712 underline_thickness.
11713 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
11714 (struct face): Change type of `font' to `struct font *'. Remove
11715 members `font_name', `font_info_id'.
11716 (per_char_metric, encode_char): Delete externs.
11717 (calc_pixel_width_or_height): Adjust the prototype.
11718
11719 * emacs.c (enable_font_backend): Delete extern.
11720 (main): Don't set enable_font_backend. Don't check the command
11721 line argument "-disable-font-backend".
11722
11723 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
11724 (enum font_property_index): New members FONT_DPI_INDEX,
11725 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
11726 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
11727 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
11728 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
11729 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
11730 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
11731 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
11732 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
11733 (struct font_spec, struct font_entity): New structs.
11734 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
11735 (struct font): Many members from old "struct font_info" moved to
11736 here. Members font and entity deleted.
11737 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
11738 the new font-related objects.
11739 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
11740 (CHECK_FONT_GET_OBJECT): Likewise.
11741 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
11742 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
11743 (struct font_driver): New members case_sensitive anc check. Type
11744 of the member list and open changed.
11745 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
11746 (font_symbolic_width, font_find_object, font_get_spec)
11747 (font_set_lface_from_name): Delete extern.
11748 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
11749
11750 * font.c: Include <strings.h>.
11751 (enable_font_backend): Delete it.
11752 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
11753 (CHECK_VALIDATE_FONT_SPEC): Delete it.
11754 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
11755 (null_string): Delete it.
11756 (null_vector): Make it static.
11757 (font_family_alist): Delete it.
11758 (Qnormal): Extern it.
11759 (QCextra, QClanguage): Delete it.
11760 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
11761 (font_make_spec, font_make_entity, font_make_object)
11762 (font_intern_prop): Renamed from intern_downcase. Don't downcase
11763 the string. Callers changed.
11764 (font_pixel_size): Adjusted for the format change of font-related
11765 objects.
11766 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
11767 (font_style_to_value, font_style_symbolic): New function.
11768 (build_font_family_alist): Delete it.
11769 (font_registry_charsets): Use Fassoc_string instead of
11770 assq_no_quit.
11771 (font_prop_validate_symbol): Don't return null_string.
11772 (font_prop_validate_style): Adjusted for the change of
11773 style-related values in a font vector.
11774 (font_property_table): Delete entries for QClanguage and
11775 QCantialias, add entries for QCavgwidth.
11776 (get_font_prop_index): Delete the 2nd argument FROM.
11777 (font_prop_validate): Arguments changed.
11778 (font_put_extra): Adjusted for the change of font-related objects.
11779 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
11780 (font_parse_fcname, font_unparse_fcname)
11781 (font_prepare_composition): Likewise.
11782 (font_parse_family_registry): Renamed from font_merge_old_spec.
11783 (otf_open): Delete the 1st arg entity.
11784 (font_otf_capability): Adjusted for the above change.
11785 (font_score): New arg alternate_families. Adjusted for the change
11786 of font-related objects.
11787 (font_sort_entites): New arg best_only.
11788 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
11789 Delete them.
11790 (font_match_p): Check alternate families.
11791 (font_find_object): Delete it.
11792 (font_check_object): New function.
11793 (font_clear_cache): Adjusted for the change of font-related objects.
11794 (font_delete_unmatched): New arg.
11795 (font_list_entities): Call font_driver->list with a spec that
11796 doesn't specify style-related properties.
11797 (font_matching_entity): Arguments changed. Caller changed.
11798 (font_open_entity): Adjusted for the change of font-related objects.
11799 (font_close_object, font_has_char, font_encode_char)
11800 (font_get_name, font_get_spec): Likewise.
11801 (font_spec_from_name, font_clear_prop, font_update_lface):
11802 New functions.
11803 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
11804 (font_prepare_for_face, font_done_for_face, font_open_by_name)
11805 (font_at): Adjusted for the change of font-related objects.
11806 (font_range): New function.
11807 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
11808 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
11809 (Fcopy_font_spec, Fmerge_font_spec): New function.
11810 (Ffont_family_list): Renamed from list-families.
11811 (Finternal_set_font_style_table): Arguments changed.
11812 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
11813 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
11814 change of font-related objects.
11815 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
11816
11817 * fontset.h (struct font_info): Delete it. Most members go to
11818 struct font.
11819 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
11820 (enum FONT_SPEC_INDEX): Delete it.
11821 (font_info, list_fonts_func, load_font_func, query_font_func)
11822 (set_frame_fontset_func, find_ccl_program_func)
11823 (get_font_repertory_func, new_fontset_from_font_name): Delete
11824 externs.
11825 (fontset_from_font_name): Extern it.
11826 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
11827 (FONT_INFO_FROM_FACE): Deleted.
11828 (face_for_font): Adjust prototype.
11829
11830 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
11831 conditionals. Don't check enable_font_backend. Delete all codes
11832 used only when USE_FONT_BACKEND is not defined.
11833 (get_font_info_func, list_font_func, load_font_func)
11834 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
11835 (get_font_repertory_func): Delete them.
11836 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
11837 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
11838 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
11839 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
11840 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
11841 (fontset_compare_rfontdef): New function.
11842 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
11843 rfont-defs by qsort. Adjusted for the change of font-group vector.
11844 (load_font_get_repertory): Deleted.
11845 (fontset_find_font): Use new macros to ref/set elements of
11846 font-def and rfont-def.
11847 (fontset_font): Fix the timing of remembering that no font for C.
11848 (free_face_fontset): Do nothing if the face has no fontset.
11849 (face_suitable_for_char_p): Use new macros to ref/set elements of
11850 rfont-def.
11851 (face_for_char): Likewise. Call face_for_char with font_object.
11852 (fs_load_font): Delete. Delete #pragma surrounding it.
11853 (fs_query_fontset): Use strcasecmp instead of strcmp.
11854 (generate_ascii_font_name): Adjusted for the format change of
11855 font-spec.
11856 (Fset_fontset_font): Likewise. Use new macros to set elements of
11857 font-def.
11858 (Fnew_fontset): Use font_unparse_xlfd to generate
11859 FONTSET_ASCII (fontset).
11860 (new_fontset_from_font_name): Deleted.
11861 (fontset_from_font): Renamed from new_fontset_from_font. Check if
11862 a fontset is already created for the font. FIx updating of
11863 Vfontset_alias_alist.
11864 (fontset_ascii_font): Deleted.
11865 (Ffont_info): Adjusted for the format change of font-spec.
11866 (Finternal_char_font): Likewise.
11867 (Ffontset_info): Likewise.
11868 (syms_of_fontset): Don't check load_font_func.
11869
11870 * fns.c (internal_equal): Handle PREV_FONT.
11871
11872 * frame.h: Delete USE_FONT_BACKEND conditional.
11873
11874 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
11875 conditionals. Don't check enable_font_backend. Delete all codes
11876 used only when USE_FONT_BACKEND is not defined.
11877 (x_set_font): Call x_new_font, not x_new_fontset2.
11878 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
11879 already set for the frame.
11880
11881 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
11882 a font-entity by font_make_entity. Use font_intern_prop instead
11883 of intern_downcase. Use FONT_SET_STYLE to set a style-related
11884 font property. If a font is scalable, set avgwidth property to 0.
11885 Set font-entity property by font_put_extra.
11886 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
11887 (ffont_driver): Adjusted for the change of struct font_driver.
11888 (ftfont_spec_pattern): New function.
11889 (ftfont_list): Return a list, not vector.
11890 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
11891 (ftfont_list_family): Don't downcase names.
11892 (ftfont_free_entity): Deleted.
11893 (ftfont_open): Return a font-object. Adjusted for the change of
11894 struct font. Get underline_thickness and underline_position from
11895 font property. Don't update dpyinfo->smallest_font_height and
11896 dpyinfo->smallest_char_width.
11897 (ftfont_close): Don't free `struct font'.
11898 (ftfont_has_char): Adjusted for the format change of font-entity.
11899 (ftfont_encode_char, ftfont_text_extents): Likewise.
11900
11901 * ftxfont.c (ftxfont_list): Return a list, not vector.
11902 (ftxfont_open): Return a font-object. Adjusted for the change of
11903 struct font. Get underline_thickness and underline_position from
11904 font property. Don't update dpyinfo->smallest_font_height and
11905 dpyinfo->smallest_char_width.
11906 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
11907 (ftxfont_draw): Adjusted for the change of struct font.
11908
11909 * image.c (image_ascent): Don't include "charset.h". Include
11910 "character.h" and "font.h".
11911
11912 * lisp.h (enum pvec_type): New member PREV_FONT.
11913 (Fassoc_string): EXFUN it.
11914
11915 * print.c: Include font.h.
11916 (print_object): Handle font-related objects.
11917
11918 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
11919 conditionals. Don't check enable_font_backend. Delete all codes
11920 used only when USE_FONT_BACKEND is not defined.
11921 (handle_auto_composed_prop): Do nothing if it->f is not on a
11922 window system. Check how many following characters can be
11923 displayed by the same font.
11924 (calc_pixel_width_or_height): Type of the 4th arg is changed to
11925 'struct font *'.
11926 (get_char_face_and_encoding): Assign the whole encoding task to
11927 the `encode-char' method of a font driver.
11928 (fill_composite_glyph_string): Adjusted for the change of `struct
11929 face' and `struct glyph_string'.
11930 (fill_glyph_string): Likewise.
11931 (get_per_char_metric): Arguments changed.
11932 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
11933 and `struct glyph_string'.
11934 (produce_stretch_glyph, calc_line_height_property)
11935 (x_produce_glyphs): Likewise.
11936
11937 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
11938 conditionals. Don't check enable_font_backend. Delete all codes
11939 used only when USE_FONT_BACKEND is not defined. Use
11940 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
11941 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
11942 (Qp): Extern them.
11943 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
11944 Deleted.
11945 (struct font_name): Deleted.
11946 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
11947 (compare_fonts_by_sort_order): New function.
11948 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
11949 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
11950 Deleted.
11951 (Fx_family_fonts): Use font_list_entities, and sort fonts by
11952 compare_fonts_by_sort_order.
11953 (Fx_font_family_list): Call Ffont_family_list.
11954 (face_numeric_value, face_numeric_weight, face_numeric_slant)
11955 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
11956 (face_symbolic_slant, face_symbolic_swidth)
11957 (split_font_name_into_vector, build_font_name_from_vector)
11958 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
11959 (font_rescale_ratio, split_font_name, build_font_name)
11960 (free_font_names, sort_fonts, x_face_list_fonts)
11961 (face_font_available_p, sorted_font_list, cmp_font_names)
11962 (font_list_1, concat_font_list, font_list, remove_duplicates):
11963 Deleted.
11964 (Fx_list_fonts): Use Ffont_list.
11965 (LFACE_AVGWIDTH): Deleted.
11966 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
11967 by FONTP.
11968 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
11969 (set_lface_from_font_name): Delete it.
11970 (set_lface_from_font): Renamed from
11971 set_lface_from_font_and_fontset. Caller changed. Don't set
11972 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
11973 for face.
11974 (merge_face_vectors): Copy font-spec if necessary.
11975 Clear properties of the font-spec if necessary.
11976 (merge_face_ref): Clear properties of the font-spec if necessary.
11977 (Finternal_set_lisp_face_attribute): Likewise.
11978 (set_font_frame_param): Use font_load_for_lface to load a
11979 font-object, and call Fmodify_frame_parameters with it.
11980 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
11981 font name by Ffont_xlfd_name.
11982 (Finternal_lisp_face_attribute_values): Don't check QCweight,
11983 QCslant, and QCwidth.
11984 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
11985 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
11986 Compare fonts by EQ.
11987 (lookup_non_ascii_face): Deleted.
11988 (face_for_font): The 2nd argument changed.
11989 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
11990 Check atomic font properties by case insensitive.
11991 (realize_non_ascii_face): Set face->overstrike correctly.
11992 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
11993 (dump_realized_face): Get font name from
11994 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
11995
11996 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
11997 conditionals. Don't check enable_font_backend. Delete all codes
11998 used only when USE_FONT_BACKEND is not defined.
11999 (xic_create_xfontset): Original code deleted and renamed from
12000 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
12001 (x_make_gc): Don't set GCFont in GCs.
12002 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
12003 opened by "fixed".
12004 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
12005 find_ccl_program_func, query_font_func, set_frame_fontset_func,
12006 get_font_repertory_func.
12007
12008 * xfont.c: Include <stdlib.h> and "ccl.h".
12009 (struct xfont_info): New structure.
12010 (xfont_query_font): Deleted.
12011 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
12012 moved from xterm.c.
12013 (xfont_driver): Adjusted for the change of struct font_driver.
12014 (compare_font_names): New function.
12015 (xfont_list_pattern): Sort font names case insensitively. Make
12016 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
12017 (xfont_list): Return a list, not vector.
12018 (xfont_match): If the font doesn't have QCname property, generate
12019 a name from the other font properties.
12020 (xfont_open): Return a font-object. Adjusted for the change of
12021 struct font. Get underline_thickness and underline_position from
12022 font property. Don't update dpyinfo->smallest_font_height and
12023 dpyinfo->smallest_char_width.
12024 (xfont_close): Don't free struct font.
12025 (xfont_prepare_face): Adjusted for the change of struct font.
12026 (xfont_done_face): Deleted.
12027 (xfont_has_char): Adjusted for the change of struct font.
12028 (xfont_encode_char, xfont_draw): Likewise.
12029 (xfont_check): New function.
12030
12031 * xftfont.c (xftfont_list): Adjusted for the change of `list'
12032 callback function.
12033 (xftfont_match): Adjusted for the format change of font-entity.
12034 (xftfont_open): Adjusted for the format change of font-entity and
12035 font-object. Adjusted for the change of struct font. Return a
12036 font-object. Don't update dpyinfo->smallest_font_height and
12037 dpyinfo->smallest_char_width.
12038 (xftfont_close): Block input while calling XftFontClose.
12039 (xftfont_prepare_face): Don't block input while calling
12040 xftfont_get_colors. Adjusted for the change of struct font.
12041 (xftfont_shape): Return value of error case fixed.
12042
12043 * xrdb.c (x_load_resources): Don't setup a fontset resource.
12044
12045 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
12046 conditionals.
12047 (FONT_WIDTH): Return (f)->max_width.
12048 (struct x_display_info): Delete member `font'.
12049 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
12050 (x_find_ccl_program, x_get_font_repertory): Delete externs.
12051 (struct x_output): Change type of `font' to `struct font *'.
12052
12053 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
12054 conditionals. Don't check enable_font_backend. Delete all codes
12055 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
12056 (x_per_char_metric, x_encode_char): Deleted.
12057 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
12058 (x_compute_glyph_string_overhangs): Adjusted for the change of
12059 `struct face'.
12060 (x_draw_glyph_string_foreground)
12061 (x_draw_composite_glyph_string_foreground): Likewise.
12062 (x_draw_glyph_string): Likewise. Use font->underline_position and
12063 font->underline_thickness.
12064 (x_new_font): Renamed from x_new_fontset2.
12065 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
12066 (x_check_font): Call `check' method of a font driver.
12067 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
12068 (x_query_font, x_get_font_repertory): Deleted.
12069 (x_find_ccl_program): Renamed and moved to xfont.c.
12070 (x_redisplay_interface): Adjusted for the change of `struct
12071 redisplay_interface'.
12072
12073 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
12074 conditionals. Don't check enable_font_backend. Delete all codes
12075 used only when USE_FONT_BACKEND is not defined. Surround non-used
12076 code by "#ifdef OLD_FONT" and "endif".
12077 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
12078
12079 * w32font.h (struct w32font_info): New member.
12080 (FONT_COMPAT): New macro.
12081 (w32font_open_internal): Prototype adjusted.
12082
12083 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
12084 OLD_FONT" and "endif".
12085
12086 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
12087 conditionals. Don't check enable_font_backend. Delete all codes
12088 used only when USE_FONT_BACKEND is not defined.
12089 (w32font_open): Return a font-object. Make a font-object by
12090 font_make_object. Adjusted for the change of struct w32font_info.
12091 (w32font_close): Don't free struct font. Adjusted for the change
12092 of struct w32font_info.
12093 (w32font_encode_char, w32font_text_extents, w32font_draw):
12094 Adjusted for the change of struct w32font_info.
12095 (w32font_draw): Likewise.
12096 (w32font_list_internal): Return a list, not vector.
12097 (w32font_open_internal): Change the 4th arg to font-object.
12098 Adjusted for the change of struct w32font_info and font-object format.
12099 (add_font_name_to_list): Don't downcase names.
12100 (w32_enumfont_pattern_entity): Make a font-entity by
12101 font_make_entity. Adjusted for the format change of font-entity.
12102 Use FONT_SET_STYLE to set a style-related font property. If a
12103 font is scalable, set avgwidth property to 0. Set font-entity
12104 property by font_put_extra.
12105 (font_matches_spec): Adjusted for the format change of font-entity.
12106 (w32_weight_table, w32_decode_weight): New variables.
12107 (w32_encode_weight): New function.
12108 (fill_in_logfont): Adjusted for the format change of font-spec.
12109 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
12110 weight value.
12111 (w32font_driver): Adjusted for the change of struct font_driver.
12112
12113 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
12114 conditionals. Don't check enable_font_backend. Surround non-used
12115 code by "#ifdef OLD_FONT" and "endif".
12116 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
12117 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
12118
12119 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
12120 conditionals. Don't check enable_font_backend. Delete all codes
12121 used only when USE_FONT_BACKEND is not defined. Surround non-used
12122 code by "#ifdef OLD_FONT" and "endif".
12123
12124 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
12125 (uniscribe_open): Return value changed to font-object.
12126 Adjusted for the format change of font-object.
12127 (uniscribe_otf_capability): Adjusted for the change of struct font.
12128 (add_opentype_font_name_to_list): Don't downcase names.
12129 (uniscribe_font_driver): Adjusted for the change of struct
12130 font_driver.
12131
121322008-05-13 Chong Yidong <cyd@stupidchicken.com>
12133
12134 * dispnew.c (update_frame_1): Check if tty output is still valid
12135 before flushing it.
12136
121372008-05-13 Jan Djärv <jan.h.d@swipnet.se>
12138
12139 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
12140 to Gtk+ menus.
12141
121422008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
12143
12144 * dired.c (file_name_completion): Tweak the code so as to always do it
12145 in a single pass. Tighten the scope of some variables.
12146
12147 * dired.c (Qdefault_directory): New var.
12148 (file_name_completion): Use it instead of Fexpand_file_name.
12149 (syms_of_dired): Initialize it.
12150
121512008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
12152
12153 * fileio.c (double_dollars): Remove dead code.
12154
121552008-05-10 Eli Zaretskii <eliz@gnu.org>
12156
12157 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
12158 Mention w32-get-true-file-attributes in doc string.
12159
12160 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
12161
121622008-05-09 Glenn Morris <rgm@gnu.org>
12163
12164 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
12165 2008-04-23.
12166
121672008-05-09 Eli Zaretskii <eliz@gnu.org>
12168
12169 Support for reporting owner and group of each file on MS-Windows:
12170 * dired.c (stat_uname, stat_gname): New functions, with special
12171 implementation for w32.
12172 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
12173
12174 * w32.c: Rename the_passwd_* to dflt_passwd_*.
12175 (dflt_group_name): New static variable.
12176 (dflt_group): Rename from the_group.
12177 (init_user_info): Init dflt_group fields. Get user's group name
12178 from LookupAccountSid.
12179 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
12180 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
12181 New initialization states.
12182 (globals_of_w32): Initialize them to zero. Initialize the default
12183 group name to "None".
12184 (GetFileSecurity_Name): New global var, the name of the function
12185 to call for GetFileSecurity.
12186 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
12187 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
12188 (get_file_security, get_security_descriptor_owner)
12189 (get_security_descriptor_group, is_valid_sid)
12190 (get_file_security_desc, get_rid, get_name_and_id)
12191 (get_file_owner_and_group): New functions.
12192 (stat): Use get_file_security_desc and get_file_owner_and_group to
12193 report the owner and primary group of each file. Don't ignore the
12194 high 32 bits of file's size, now that st_size is 64-bit wide.
12195 Fix test when to get true file attributes.
12196 (init_user_info): Use get_rid instead of equivalent inline code.
12197 (fstat): Don't ignore the high 32 bits of file's size.
12198
121992008-05-09 Chong Yidong <cyd@stupidchicken.com>
12200
12201 * image.c (png_load): Use correct bit-depth for setting background
12202 color.
12203
122042008-05-08 Eli Zaretskii <eliz@gnu.org>
12205
12206 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
12207 epa-hook.elc.
12208
122092008-05-08 Juanma Barranquero <lekktu@gmail.com>
12210
12211 * font.c (Ffont_match_p): Don't use `iff' in docstring.
12212
122132008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
12214
12215 * macfns.c (Fx_create_frame): Make a copy of frame parameters
12216 because the original parameters are in pure storage now.
12217 (mac_window): Remove unused params. Update callers.
12218
122192008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
12220
12221 * lread.c (substitute_object_recurse): Use lower-level primitives.
12222 Don't signal errors when traversing sub-char-tables.
12223 Don't loop over all the possible characters when traversing char-tables.
12224
12225 * print.c (print_preprocess): Add sub-char-tables to the print-table,
12226 just like we do in print.c.
12227
122282008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
12229
12230 * minibuf.c (Ftry_completion): Remove code left over from when we used
12231 scmp instead of Fcompare_strings.
12232
122332008-05-04 Juanma Barranquero <lekktu@gmail.com>
12234
12235 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
12236
122372008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12238
12239 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
12240 Create bitmap context in native byte order.
12241
12242 * macterm.c (XDrawLine)
12243 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
12244 context in native byte order.
12245
122462008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12247
12248 * config.in: Regenerate.
12249
12250 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
12251 New definitions for Image I/O support.
12252 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
12253 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
12254 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
12255 (mac_data_provider_release_data, image_load_image_io)
12256 [USE_MAC_IMAGE_IO]: New functions.
12257 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
12258 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
12259 (init_image_func_pointer) [MAC_OSX]: Remove function.
12260 (image_load_quartz2d) [MAC_OSX]: Check availability of
12261 CGImageCreateWithPNGDataProvider at compile time.
12262 Use lowercase `false' for boolean constant.
12263 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
12264 Use image_load_image_io.
12265 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
12266 Don't check MyCGImageCreateWithPNGDataProvider.
12267 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
12268 Don't call init_image_func_pointer.
12269
12270 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
12271
12272 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
12273 Make variable non-static.
12274 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
12275 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
12276
12277 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
12278 (RED_FROM_ULONG): Mask off higher bits.
12279 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
12280
12281 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
12282 Include AvailabilityMacros.h.
12283 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
12284 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
12285
122862008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
12287
12288 * chartab.c (Fset_char_table_range): If range is t, really set all
12289 chars to that value.
12290
122912008-05-03 Eli Zaretskii <eliz@gnu.org>
12292
12293 * dired.c (Ffile_attributes): Don't allow the device number become
12294 negative.
12295
122962008-05-02 Daiki Ueno <ueno@unixuser.org>
12297
12298 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
12299
123002008-05-02 Juri Linkov <juri@jurta.org>
12301
12302 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
12303 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
12304 DEFAULT argument as a list of default values in docstrings.
12305
123062008-05-01 Chong Yidong <cyd@stupidchicken.com>
12307
12308 * puresize.h (BASE_PURESIZE): Increase to 1210000.
12309
123102008-05-01 Martin Rudalics <rudalics@gmx.at>
12311
12312 * dispnew.c (change_frame_size_1): Preserve small windows when
12313 shrinking frames by calling set_window_height|width with third
12314 arg 2.
12315
12316 * window.h (struct window): Replace field too_small_ok by field
12317 resize_proportionally.
12318
12319 * window.c (make_window): Initialize resize_proportionally.
12320 (enlarge_window): Temporarily set resize_proportionally to make
12321 sure that shrink_windows does scale the window proportionally.
12322 (shrink_windows): When window has resize_proportionally set try
12323 to shrink it proportionally by stealing from other windows.
12324 (struct saved_window, Fset_window_configuration)
12325 (compare_window_configurations): Handle resize_proportionally.
12326 (WINDOW_TOTAL_SIZE): New macro.
12327 (window_min_size, shrink_windows, size_window): Use it.
12328 (check_min_window_sizes): Remove. Invalid values of
12329 window-min-height|width are handled by window_min_size_2 now.
12330 (size_window, Fsplit_window, enlarge_window)
12331 (adjust_window_trailing_edge, grow_mini_window): Don't call
12332 check_min_window_sizes.
12333 (window_min_size_2, window_min_size_1, window_min_size):
12334 New argument safe_p for retrieving "safe" minimum sizes.
12335 (Fdisplay_buffer, Fsplit_window, enlarge_window)
12336 (adjust_window_trailing_edge, grow_mini_window):
12337 Adjust arguments of window_min_size... functions.
12338 (shrink_windows): Argument min_size removed. New argument
12339 safe_p allows shrinking windows to their safe minimum sizes.
12340 Calculate minimum size and decide whether a window shall be
12341 deleted for each window individually.
12342 (size_window): When nodelete_p equals 2, tell shrink_windows to
12343 delete windows only if their new minimum size is no more safe.
12344 (shrink_window_lowest_first): Call window_min_size_1 to make
12345 sure to preserve modeline of bottom-most window when resizing
12346 the minibuffer.
12347 (Fset_window_configuration, Fcurrent_window_configuration)
12348 (compare_window_configurations): Do not handle
12349 window-min-height|width any more.
12350 (syms_of_window): Clarify window-min-height|width doc-strings.
12351
123522008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
12353
12354 * dired.c (file_name_completion): Fix up the encoding/decoding issue
12355 some more. Copy some of the code from Ftry_completions.
12356 Remove special case code that dates back to initial revision when the
12357 slash was only added when necessary and that can't trigger nowadays.
12358
123592008-04-27 Kenichi Handa <handa@m17n.org>
12360
12361 * font.c (font_prop_validate): Signal `error' instead of `font'.
12362
123632008-04-29 Jason Rumney <jasonr@gnu.org>
12364
12365 * w32fns.c (Fw32_battery_status): New defun.
12366 (syms_of_w32fns): Defsubr it.
12367
123682008-04-28 Andreas Schwab <schwab@suse.de>
12369
12370 * dired.c (file_name_completion): Fix another mixing of encoded
12371 and decoded names.
12372
123732008-04-28 Juanma Barranquero <lekktu@gmail.com>
12374
12375 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
12376
123772008-04-27 Juanma Barranquero <lekktu@gmail.com>
12378
12379 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
12380
123812008-04-27 Andreas Schwab <schwab@suse.de>
12382
12383 * dired.c (file_name_completion): Fix inappropriate mixing of
12384 encoded and decoded names.
12385
12386 * xterm.c (XTread_socket): Fix use of uninitialized variable.
12387
12388 * puresize.h (BASE_PURESIZE): Increase to 1200000.
12389
123902008-04-26 Eli Zaretskii <eliz@gnu.org>
12391
12392 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
12393 2008-03-31, it's not needed anymore with `struct stat' definition
12394 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
12395 for the same reasons.
12396
123972008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
12398
12399 * m/sparc.h: Additional redefinitions for GNU/Linux.
12400
124012008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12402
12403 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
12404 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
12405 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
12406 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
12407 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
12408 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
12409 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
12410 Likewise.
12411
12412 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
12413 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
12414 (mac_ax_number_of_characters): Add externs.
12415 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
12416 [USE_MAC_TSM]: Likewise.
12417 (mac_handle_text_input_event) [MAC_OSX]:
12418 Handle kEventTextInputOffsetToPos for no active input area case.
12419 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
12420 (mac_handle_document_access_event)
12421 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
12422 (install_application_handler) [MAC_OSX]: Register handlers for
12423 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
12424 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
12425 Register mac_handle_document_access_event.
12426
12427 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
12428 Make functions non-static.
12429
124302008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
12431
12432 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
12433 (read_file_name_completion_ignore_case, insert_default_directory)
12434 (Qdefault_directory): Move to minibuffer.el.
12435 (Fread_file_name): Call the new `read-file-name' instead.
12436
124372008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12438
12439 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
12440 Make function non-static.
12441 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
12442 Remove function.
12443 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
12444 Move to mactoolbox.c.
12445 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
12446
12447 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
12448 (mac_rect_make): New macro.
12449
12450 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
12451 instead of float.
12452 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
12453 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
12454 (XSetBackground) [USE_CG_DRAWING]: Likewise.
12455 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
12456 CGRectMake.
12457 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
12458 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
12459 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
12460 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
12461 instead of WindowRef in argument type.
12462 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
12463 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
12464 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
12465 instead of DISPLAY. All uses changed.
12466 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
12467 (x_calc_absolute_position): Simplify so as not to use
12468 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
12469
12470 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
12471 instead of WindowRef in argument type.
12472 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
12473 [TARGET_API_MAC_CARBON]: Remove externs.
12474 (create_apple_event, mac_event_parameters_to_lisp)
12475 [TARGET_API_MAC_CARBON]: Add externs.
12476
12477 * mactoolbox.c (Vmac_ts_script_language_on_focus)
12478 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
12479 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
12480 is clicked.
12481 (x_activate_menubar): Remove extern for saved_menu_event_location.
12482 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
12483 Move from mac.c.
12484
124852008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12486
12487 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
12488 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
12489
124902008-04-23 Jason Rumney <jasonr@gnu.org>
12491
12492 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
12493 attributes only for local files.
12494
12495 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
12496 default to Qlocal.
12497
124982008-04-22 Juri Linkov <juri@jurta.org>
12499
12500 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
12501 read-buffer-to-switch instead of using the letter "B".
12502
125032008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
12504
12505 * fileio.c (Qdefault_directory): New variable.
12506 (Fread_file_name): Use it to pass `dir' to the completion functions.
12507
125082008-04-20 Chong Yidong <cyd@stupidchicken.com>
12509
12510 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
12511
125122008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
12513
12514 * keyboard.c (Vpre_help_message): Remove.
12515 (show_help_echo): Remove default C code.
12516
12517 * dired.c (directory_files_internal, file_name_completion):
12518 Only call ENCODE_FILE if the string is indeed decoded.
12519
125202008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
12521
12522 * Makefile.in (TOOLKIT_DEFINES): Remove.
12523 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
12524
125252008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12526
12527 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
12528 (mactoolbox.o): New target.
12529
12530 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
12531 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
12532
12533 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
12534 Use mac_set_frame_window_background instead of XSetWindowBackground.
12535 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
12536 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
12537 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
12538 instead of SetWindowTitleWithCFString.
12539 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
12540 Move function to mactoolbox.c.
12541 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
12542 Use mac_set_window_modified instead of SetWindowModified.
12543 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
12544 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
12545 (Fx_focus_frame): Use mac_front_non_floating_window instead of
12546 FrontNonFloatingWindow. Use mac_activate_window instead of
12547 ActivateWindow. Use mac_active_non_floating_window instead of
12548 ActiveNonFloatingWindow.
12549 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
12550 Use mac_show_hourglass and mac_hide_hourglass.
12551 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
12552 instead of GetGlobalMouse.
12553 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
12554 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
12555 Use mac_bring_window_to_front instead of BringToFront.
12556 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
12557 mactoolbox.c.
12558 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
12559 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
12560 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
12561 mactoolbox.c.
12562
12563 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
12564 (XtPointer): Move typedef from macmenu.c.
12565 (enum button_type): Move enum from macmenu.c.
12566 (widget_value): Move typedef from macmenu.c.
12567 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
12568 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
12569 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
12570 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
12571 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
12572 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
12573 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
12574 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
12575 (Selection): Move typedef from macselect.c.
12576 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
12577 macterm.c.
12578 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
12579 (mac_is_window_collapsed, mac_bring_window_to_front)
12580 (mac_send_window_behind, mac_hide_window, mac_show_window)
12581 (mac_collapse_window, mac_front_non_floating_window)
12582 (mac_active_non_floating_window, mac_activate_window)
12583 (mac_move_window_structure, mac_move_window, mac_size_window)
12584 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
12585
12586 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
12587 (enum mac_menu_kind): Move enum to mactoolbox.c.
12588 (min_menu_id): Move variable to mactoolbox.c.
12589 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
12590 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
12591 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
12592 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
12593 [TARGET_API_MAC_CARBON]: Likewise.
12594 (XtPointer): Move typedef to macgui.h.
12595 (enum button_type): Move enum to macgui.h.
12596 (widget_value): Move typedef to macgui.h.
12597 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
12598 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
12599 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
12600 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
12601 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
12602 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
12603 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
12604 (popup_activated_flag): Make variable non-static.
12605 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
12606 (add_menu_item, fill_menu, dispose_menus):
12607 Move functions to mactoolbox.c.
12608 (restore_show_help_function, menu_target_item_handler)
12609 (install_menu_target_item_handler, mac_handle_dialog_event)
12610 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
12611 [TARGET_API_MAC_CARBON]: Likewise.
12612 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
12613 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
12614 (find_and_call_menu_selection, name_is_separator): Make function
12615 non-static.
12616 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
12617 to mactoolbox.c.
12618 (set_frame_menubar): Don't call install_menu_quit_handler.
12619 (menu_item_selection): New variable.
12620 (mac_menu_show): Use create_and_show_popup_menu.
12621 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
12622 selection but set variable menu_item_selection. All uses changed.
12623 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
12624 Call install_menu_quit_handler. Move to mactoolbox.c.
12625
12626 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
12627 (Selection): Move typedef to macgui.h.
12628 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
12629 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
12630 Make variables non-static.
12631 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
12632 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
12633 Make functions non-static.
12634 (Vmac_service_selection) [MAC_OSX]: Likewise.
12635 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
12636 (mac_valid_selection_target_p, mac_clear_selection)
12637 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
12638 (mac_put_selection_value, mac_selection_has_target_p)
12639 (mac_get_selection_value, mac_get_selection_target_list)
12640 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
12641 Move functions to mactoolbox.c.
12642 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
12643 Likewise.
12644 (copy_scrap_flavor_data, mac_handle_service_event)
12645 (install_service_handler) [MAC_OSX]: Likewise.
12646 (syms_of_macselect) <Vmac_dnd_known_types>:
12647 Use mac_dnd_default_known_types.
12648
12649 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
12650 Move to mactoolbox.c.
12651 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
12652 (Fx_selection_owner_p): Add EXFUN.
12653 (install_window_handler, remove_window_handler, XSetWindowBackground):
12654 Remove externs.
12655 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
12656 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
12657 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
12658 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
12659 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
12660 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
12661 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
12662 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
12663 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
12664 (create_and_show_popup_menu, mac_get_selection_from_symbol)
12665 (mac_valid_selection_target_p, mac_clear_selection)
12666 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
12667 (mac_put_selection_value, mac_selection_has_target_p)
12668 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
12669 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
12670 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
12671 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
12672 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
12673 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
12674 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
12675 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
12676 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
12677
12678 * mactoolbox.c: New file.
12679
126802008-04-18 Jason Rumney <jasonr@gnu.org>
12681
12682 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
12683
126842008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
12685
12686 * character.c (Fmultibyte_char_to_unibyte):
12687 Return latin1 chars unchanged.
12688
12689 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
12690 relocated if it points to `name'.
12691
126922008-04-17 Kenichi Handa <handa@m17n.org>
12693
12694 * data.c (Faset): Allow setting a multibyte character in an
12695 ASCII-only unibyte string.
12696
12697 * lisp.h (STRING_SET_MULTIBYTE): New macro.
12698
126992008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
12700
12701 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
12702 done in config.h.
12703
127042008-04-16 Juanma Barranquero <lekktu@gmail.com>
12705
12706 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
12707 (Fchar_direction): Add usage in the docstring.
12708
127092008-04-15 Chong Yidong <cyd@stupidchicken.com>
12710
12711 * keyboard.c (read_key_sequence): Remove always-true checks.
12712
127132008-04-14 Jason Rumney <jasonr@gnu.org>
12714
12715 * w32font.c (w32font_open_internal): Set max_bounds.descent in
12716 compatibility struct, for better underline positioning.
12717
127182008-04-13 David Hansen <david.hansen@gmx.net>
12719
12720 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
12721 string.
12722
127232008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
12724
12725 * m/hp800.h (XUINT, XSET): Remove.
12726
127272008-04-12 Juanma Barranquero <lekktu@gmail.com>
12728
12729 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
12730 previous change.
12731
127322008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
12733
12734 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
12735 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
12736
127372008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
12738
12739 * keymap.h (map_keymap_canonical): Declare.
12740 * xmenu.c (single_keymap_panes): Use it.
12741
127422008-04-11 Glenn Morris <rgm@gnu.org>
12743
12744 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
12745 set the target's value to that of the alias.
12746
127472008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
12748
12749 * term.c (set_tty_color_mode): Left over typo.
12750
127512008-04-10 Michael Albinus <michael.albinus@gmx.de>
12752
12753 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
12754 only after check for file name handler functions. Signal, when
12755 native functionality is not supported.
12756 (syms_of_fileio): Declare it unconditionally.
12757
127582008-04-10 Jason Rumney <jasonr@gnu.org>
12759
12760 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
12761 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
12762
12763 * w32.c (logon_network_drive): Also logon to remote drives that
12764 are mapped to drive letters.
12765
127662008-04-10 Glenn Morris <rgm@gnu.org>
12767
12768 * xdisp.c (truncate-partial-width-windows): Doc fix.
12769
127702008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
12771
12772 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
12773 Move functions to minibuffer.el.
12774 (syms_of_fileio): Don't declare them.
12775
127762008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
12777
12778 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
12779 (syms_of_minibuf): Remove its initialization.
12780
12781 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
12782
127832008-04-09 Juanma Barranquero <lekktu@gmail.com>
12784
12785 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
12786
127872008-04-09 Jason Rumney <jasonr@gnu.org>
12788
12789 * makefile.w32-in (distclean): Delete makefile too.
12790 (maintainer-clean): New target.
12791
12792 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
12793
12794 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
12795 for new font backend and composite cases.
12796
127972008-04-09 Jan Djärv <jan.h.d@swipnet.se>
12798
12799 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
12800 Most of the code moved to run_timers.
12801 (do_pending_atimers): Call run_timers.
12802 (run_timers): New function.
12803
12804 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
12805 run atimers.
12806
12807 * process.c (wait_reading_process_output): The same as above.
12808
128092008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
12810
12811 * minibuf.c (last_exact_completion): Remove variable.
12812 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
12813 (complete_and_exit_1, complete_and_exit_2)
12814 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
12815 (Fdisplay_completion_list, display_completion_list_1)
12816 (Fminibuffer_completion_help, Fself_insert_and_exit)
12817 (Fexit_minibuffer, Fminibuffer_message): Move functions to
12818 minibuffer.el.
12819 (syms_of_minibuf): Remove corresponding initializations.
12820
12821 * keyboard.c (Qdeactivate_mark): New var.
12822 (command_loop_1): Use it to call `deactivate-mark'.
12823 (syms_of_keyboard): Initialize it.
12824
12825 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
12826 to another frame.
12827 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
12828 Don't call set_tty_color_mode.
12829 (store_frame_param): Reset previous_frame rather than call
12830 set_tty_color_mode.
12831 * term.c (set_tty_color_mode): Rewrite.
12832 * dispextern.h (set_tty_color_mode): New type.
12833 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
12834
128352008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
12836
12837 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
12838 for generic chars, which do not exist any more in emacs-unicode.
12839
128402008-04-08 Michael Albinus <michael.albinus@gmx.de>
12841
12842 * coding.c (detect_coding_emacs_mule)
12843 (Ffind_operation_coding_system): Fix typo.
12844
128452008-04-08 Jason Rumney <jasonr@gnu.org>
12846
12847 * w32uniscribe.c (SNAME): Extract only symbol name.
12848
12849 * w32font.h (struct w32_metric_cache): New struct.
12850 (w32font_info): Use it.
12851 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
12852 (CACHE_BLOCKSIZE): New constants.
12853
12854 * w32font.c (Qja, Qko, Qzh): New symbols.
12855 (syms_of_w32font): Initialise them.
12856 (font_matches_spec): Use them to filter by language.
12857 (recompute_cached_metrics): Remove function.
12858 (compute_metrics, clear_cached_metrics): New functions.
12859 (w32font_encode_char): Use them to manage metric cache.
12860 (w32font_text_extents): Cache metrics for all glyphs on demand.
12861 Delay converting glyph indices to WORD until needed.
12862 (w32font_open_internal): Initialize metric cache to empty.
12863 (registry_to_w32_charset): Charset should always be a symbol.
12864 (fill_in_logfont, list_all_matching_fonts): Family should
12865 always be a symbol.
12866
128672008-04-06 Jason Rumney <jasonr@gnu.org>
12868
12869 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
12870 Give up if glyph indices not supported. Use uniscribe obtained
12871 ABC widths for individual metrics. Map glyph clusters back to
12872 characters using fClusterStart flag. Return number of glyphs
12873 produced, not chars processed.
12874 (uniscribe_shape): Map char at FROM to current glyph.
12875
128762008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12877
12878 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
12879 Use SetMenuItemHierarchicalMenu.
12880
128812008-04-05 Jason Rumney <jasonr@gnu.org>
12882
12883 * image.c (pbm_load): Allow color values up to 65535.
12884 Throw an error if max_color_idx is outside the supported range.
12885 Report an error when image size is invalid.
12886 Read two bytes at a time when raw images have max_color_idx above 255.
12887
128882008-04-05 Eli Zaretskii <eliz@gnu.org>
12889
12890 * w32.c (readdir): If FindFirstFile/FindNextFile return in
12891 cFileName a file name that includes `?' characters, use the 8+3
12892 alias in cAlternateFileName instead.
12893
128942008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
12895
12896 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
12897 append "CCL: Quitted" when the CCL program is quitted.
12898 (setup_ccl_program): Initialize ccl->quit_silently to zero.
12899
12900 * ccl.h (struct ccl_program): New member quit_silently.
12901
129022008-04-05 Chong Yidong <cyd@stupidchicken.com>
12903
12904 * search.c (compile_pattern_1): Treat non-nil and non-string of
12905 search-spaces-regexp as nil.
12906
12907 * minibuf.c (Fassoc_string): Tweak docstring.
12908
129092008-04-05 Eli Zaretskii <eliz@gnu.org>
12910
12911 * dired.c (Ffile_attributes): Support inode numbers wider than 32
12912 bits. Remove ugly WINDOWSNT-specific kludge introduced on
12913 2008-03-14 to force inode be positive.
12914
12915 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
12916 _S_* ones, since we now use our own sys/stat.h.
12917 (stat, fstat): Don't mangle the inode number.
12918 (init_user_info): Don't restrict UID and GID to 0-60000 range.
12919
129202008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
12921
12922 * frame.h (struct frame): Give one more bit to `visible' since we use
12923 values larger than 1 to indicate obscured frames on ttys.
12924
12925 * keymap.c (Qkeymap_canonicalize): New var.
12926 (Fmap_keymap_internal): New fun.
12927 (describe_map): Use keymap-canonicalize.
12928
12929 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
12930 (Fundo_boundary): Set them.
12931 (syms_of_undo): Initialize them.
12932 (record_point): Use them instead of last_point_position*.
12933 (last_undo_buffer): Change type.
12934
129352008-04-04 Jason Rumney <jasonr@gnu.org>
12936
12937 * w32font.c (w32font_text_extents): Use font's ascent and descent.
12938 (recompute_cached_metrics): Don't set ascent and descent per char.
12939
12940 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
12941 (uniscribe_check_otf): Add GC protection before consing.
12942 Rearrange loop for counting features.
12943
129442008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
12945
12946 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
12947 buffer with byte-size of source buffer.
12948
129492008-04-03 Chong Yidong <cyd@stupidchicken.com>
12950
12951 * callint.c (Fcall_interactively): Handle temporary region even
12952 when shift-select-mode is off.
12953
129542008-04-03 Jason Rumney <jasonr@gnu.org>
12955
12956 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
12957
129582008-04-03 Kenichi Handa <handa@m17n.org>
12959
12960 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
12961 (CATEGORY_MASK_UTF_16): Likewise.
12962 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
12963 binary file.
12964 (detect_coding): Add null-byte detection for a binary file.
12965 (detect_coding_system): Likewise.
12966
129672008-04-03 Jason Rumney <jasonr@gnu.org>
12968
12969 * w32uniscribe.c: New file.
12970
12971 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
12972
12973 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
12974
12975 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
12976 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
12977 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
12978 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
12979 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
12980 (Qphonetic): New symbols.
12981 (syms_of_w32font): Initialize them.
12982 (font_supported_scripts): Use them.
12983 (w32font_list_family): List all charsets.
12984 (w32font_text_extents, recompute_cached_metrics): Fix metric
12985 calculations.
12986 (w32_enumfont_pattern_entity): Make full_type a DWORD.
12987 Give opentype fonts their own format.
12988 (font_matches_spec): New arguments backend and logfont.
12989 Handle :otf spec for uniscribe backend.
12990 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
12991 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
12992
12993 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
12994 font backend.
12995 (globals_of_w32fns): Initialize uniscribe font backend.
12996
12997 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
12998 dependencies.
12999 (w32uniscribe.$(O)): New file to build.
13000 (FONT_OBJ): Include w32uniscribe.$(O).
13001 (LIBS): Add uniscribe libraries.
13002
13003 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
13004
130052008-04-02 Chong Yidong <cyd@stupidchicken.com>
13006
13007 * callint.c (Vshift_select_mode): New var.
13008 (Finteractive): Document new ^ spec.
13009 (Fcall_interactively): Call handle-shift-selection if the ^ spec
13010 is present.
13011
13012 * keyboard.c (Vthis_command_keys_shift_translated): New var.
13013 (command_loop_1): Avoid running the direct display versions of
13014 forward-char and backward-char if shift-selection may occur.
13015 (read_key_sequence): Set Vthis_command_keys_shift_translated if
13016 shift-translation takes place.
13017
13018 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
13019 avoid clobbering by define-minor-mode.
13020
13021 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
13022 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
13023
13024 * syntax.c (Fforward_word): Add ^ interactive spec.
13025
13026 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
13027 (Fscroll_right): Add ^ interactive spec.
13028
130292008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
13030
13031 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
13032
13033 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
13034
13035 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
13036
130372008-03-31 Juri Linkov <juri@jurta.org>
13038
13039 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
13040
130412008-03-30 Jan Djärv <jan.h.d@swipnet.se>
13042
13043 * gtkutil.c (xg_set_geometry): Fix indentation.
13044 (xg_resize_outer_widget): Remove.
13045 (x_wm_size_hint_off): Fix indentation.
13046 (xg_frame_set_char_size): Call flush_and_sync after
13047 gtk_window_resize.
13048 (x_wm_set_size_hint): Pass NULL as geometry window to
13049 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
13050 Add menu bar and tool bar height to base height.
13051 (xg_update_frame_menubar, free_frame_menubar)
13052 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
13053 (update_frame_tool_bar, free_frame_tool_bar):
13054 Change xg_resize_outer_widget to xg_frame_set_char_size.
13055
130562008-03-30 Michael Albinus <michael.albinus@gmx.de>
13057
13058 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
13059 (Fdbus_call_method): New parameter TIMEOUT.
13060 (dbus-send-signal): Optimize UNGCPRO call.
13061
130622008-03-29 Juri Linkov <juri@jurta.org>
13063
13064 * window.c (Fdisplay_buffer): Move call to
13065 Vsplit_window_preferred_function out of conditions that check
13066 if window is eligible for vertical splitting.
13067 When Vsplit_window_preferred_function is non-nil, call it and use
13068 its non-nil return value as window. Otherwise, continue doing
13069 vertical splitting using Fsplit_window with arg horflag=nil.
13070 (syms_of_window) <Vsplit_window_preferred_function>: Change the
13071 default value from `split-window' to nil.
13072
130732008-03-29 Juri Linkov <juri@jurta.org>
13074
13075 * callint.c (Fcall_interactively): Revert 2008-03-16 change
13076 for interactive code letters 'b' and 'B'.
13077
130782008-03-29 Eli Zaretskii <eliz@gnu.org>
13079
13080 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
13081 multibyte string.
13082
130832008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
13084
13085 * keyboard.c (pending_funcalls): New var.
13086 (timer_check): Run it.
13087 (syms_of_keyboard): Initialize it.
13088 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
13089 (Vdelete_terminal_functions): New vars.
13090 (syms_of_terminal): Initialize them.
13091 (Fdelete_terminal): Run delete-terminal-functions.
13092 * xdisp.c (safe_eval): Rewrite.
13093 (safe_call2): New fun.
13094 * frame.c (Qdelete_frame_functions): New var.
13095 (syms_of_frame): Initialize it.
13096 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
13097 * lisp.h (safe_call2, pending_funcalls): Declare.
13098
130992008-03-28 Andreas Schwab <schwab@suse.de>
13100
13101 * indent.c (Fmove_to_column): Move declaration before statements.
13102
131032008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
13104
13105 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
13106 (struct frame): Use bit fields for boolean vars.
13107
13108 * process.c (server_accept_connection): Simplify naming.
13109 (emacs_get_tty_pgrp): Use SDATA.
13110
13111 * coding.c (decode_coding_object): Fix last change.
13112
131132008-03-27 Jason Rumney <jasonr@gnu.org>
13114
13115 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
13116
131172008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
13118
13119 * charset.c (Fdefine_charset_internal): Change the way of
13120 registering charsets in Vcharset_order_list.
13121 (syms_of_charset): Make the charset `eight-bit' supplementary.
13122
131232008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
13124
13125 * regex.c (EXTEND_BUFFER): Change order of pointer addition
13126 operations, to avoid having the difference between pointers
13127 overflow.
13128
131292008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
13130
13131 * indent.c (check_display_width): New fun.
13132 (scan_for_column): Use it.
13133
13134 * data.c (syms_of_data): Mark most-positive-fixnum and
13135 most-negative-fixnum as constants.
13136
13137 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
13138
13139 * indent.c (scan_for_column): Extract from current_column_1.
13140 Merge with the same code from Fmove_to_column.
13141 (current_column_1, Fmove_to_column): Use it.
13142
131432008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
13144
13145 * keymap.c (map_keymap_internal): New fun.
13146 (map_keymap): Use it.
13147 (Fmap_keymap_internal): New fun.
13148 (Fmap_keymap): Remove left-out test from before make_save_value.
13149
13150 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
13151
13152 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
13153 Use XCAR/XCDR.
13154
13155 * process.h (struct Lisp_Process): Remove filter_multibyte.
13156 * process.c (QCfilter_multibyte): Remove.
13157 (setup_process_coding_systems): Don't use filter_multibyte.
13158 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
13159 (read_process_output): Don't adjust multibyteness to filter_multibyte.
13160 (Fset_process_filter_multibyte): Change the coding-system to
13161 approximate the previous behavior.
13162 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
13163 coding-system.
13164
13165 * coding.c (decode_coding_object): When not decoding into a buffer,
13166 obey the coding system's preference of (uni|multi)byte.
13167
131682008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
13169
13170 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
13171 every char is changed and has a different byte-length.
13172 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
13173 Fix int -> EMACS_INT.
13174
131752008-03-23 David Hansen <david.hansen@gmx.net>
13176
13177 * dbusbind.c (xd_read_message): Remove extra copying of message
13178 strings. Check for NULL `interface' or `member'.
13179
131802008-03-22 Eli Zaretskii <eliz@gnu.org>
13181
13182 * w32.c (readdir): If FindFirstFile/FindNextFile return in
13183 cFileName a file name that includes `?' characters, use the 8+3
13184 alias in cAlternateFileName instead.
13185
131862008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
13187
13188 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
13189
131902008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
13191
13192 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
13193 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
13194 work on current_buffer only instead (that was already the case
13195 for some of the code anyway).
13196 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
13197 (temp_set_point, temp_set_point_both): Use EMACS_INT.
13198 (SET_PT, SET_PT_BOTH): Adjust.
13199 * intervals.h (set_point, temp_set_point, set_point_both)
13200 (temp_set_point_both): Remove redundant declarations.
13201
132022008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
13203
13204 * fileio.c (Finsert_file_contents):
13205 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
13206 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
13207 when buffer != current_buffer anyway.
13208
132092008-03-20 Andreas Schwab <schwab@suse.de>
13210
13211 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
13212 as default.
13213
132142008-03-19 Jason Rumney <jasonr@gnu.org>
13215
13216 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
13217 (syms_of_w32fns): Initialize them.
13218 (HOURGLASS_ID): New constant.
13219 (x_window_to_frame): Don't check hourglass_window.
13220 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
13221 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
13222 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
13223 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
13224 Only change the cursor if hourglass is not active.
13225 (Fx_create_frame): Initialize frame's current_cursor.
13226 (hourglass_atimer): Remove.
13227 (hourglass_started): New function.
13228 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
13229 (show_hourglass): Adapt to w32, changing argument to frame.
13230
13231 * w32term.h (struct w32_output): Remove hourglass_window.
13232 Add current_cursor.
13233
13234 * eval.c (call_debugger, Fsignal):
13235 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
13236 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
13237 (Fexecute_extended_command, cancel_hourglass_unwind):
13238 * minibuf.c (read_minibuf):
13239 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
13240
132412008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
13242
13243 * window.c (run_funs): New fun.
13244 (run_window_configuration_change_hook): Use it to run the buffer-local
13245 and the global part of the hook.
13246
13247 * xdisp.c (format_mode_line_unwind_data): Add window argument.
13248 (unwind_format_mode_line): Restore selected window.
13249 (x_consider_frame_title, Fformat_mode_line): Set selected window.
13250
132512008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
13252
13253 * editfns.c (Fchar_equal): Check they are valid characters.
13254
13255 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
13256
132572008-03-17 Andreas Schwab <schwab@suse.de>
13258
13259 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
13260 against a charset.
13261
13262 * lisp.h (Fbuffer_list): Declare.
13263
132642008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 13265
aac0c6e3
MR
13266 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
13267 handlebox_widget is != 0.
13268
132692008-03-16 Juri Linkov <juri@jurta.org>
13270
13271 * callint.c (Fcall_interactively): For interactive code letters
13272 'b' and 'B' put the buffer list into the list of default "future"
13273 values of the minibuffer.
13274
132752008-03-16 Andreas Schwab <schwab@suse.de>
13276
13277 * keyboard.c (read_key_sequence): Fix downcasing of letters with
13278 modifiers.
13279
13280 * regex.c (re_match_2_internal): Correct matching of a charset
13281 against latin-1 characters.
13282
132832008-03-16 Kenichi Handa <handa@m17n.org>
13284
13285 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
13286 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
13287 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
13288 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
13289 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
13290 CHAR_STRING_ADVANCE.
13291 (produce_chars): Fix for the case that the source and the
13292 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
13293 instead of CHAR_STRING_ADVANCE.
13294 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
13295 STRING_CHAR_ADVANCE.
13296
132972008-03-15 Andreas Schwab <schwab@suse.de>
13298
13299 * regex.c (re_match_2_internal): Correct matching of eight bit
13300 characters in unibyte strings.
13301
133022008-03-15 Martin Rudalics <rudalics@gmx.at>
13303
13304 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
13305 at end of range when it coincides with the end of the buffer.
13306
133072008-03-14 Eli Zaretskii <eliz@gnu.org>
13308
13309 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
13310
13311 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
13312
133132008-03-14 Jason Rumney <jasonr@gnu.org>
13314
13315 * editfns.c (initial_tz): New variable.
13316 (syms_of_editfns): Initialize it.
13317 (Fset_time_zone_rule): Set it when first called.
13318 Use it when TZSTRING is nil.
13319
13320 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
13321 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
13322 (monitor_from_point_fn, get_monitor_info_fn): New globals.
13323 (globals_of_w32fns): Initialize them.
13324 (compute_tip_xy): Use them to position tooltips.
13325
133262008-03-14 Glenn Morris <rgm@gnu.org>
13327
13328 * emacs.c (main): Revert previous change.
13329 (standard_args): Revert -internal-script back to -scriptload,
13330 and remove the long-option form.
13331
133322008-03-13 Glenn Morris <rgm@gnu.org>
13333
13334 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
13335 Remove option -enable-font-backend.
13336
133372008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
13338
13339 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
13340
133412008-03-11 Jan Djärv <jan.h.d@swipnet.se>
13342
13343 * xterm.c (x_connection_closed): For GTK: If this is the last
13344 terminal just exit without closing the display.
13345
133462008-03-11 Jason Rumney <jasonr@gnu.org>
13347
13348 * w32font.c (w32font_full_name): Use floor to round.
13349
f0131492 133502008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
13351
13352 * sound.c (alsa_configure): Declare vol at beginning of block.
13353
13354 * fontset.c (Ffontset_info): Remove extra semicolon.
13355
133562008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
13357
13358 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
13359 size of resulting string.
13360
133612008-03-10 Jason Rumney <jasonr@gnu.org>
13362
13363 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
13364
133652008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13366
13367 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
13368 Don't pretend as if characters with display property haven't been
13369 consumed for string-replacing-string case.
13370
133712008-03-08 Kim F. Storm <storm@cua.dk>
13372
13373 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
13374 (get_next_display_element, next_element_from_string)
13375 (next_element_from_ellipsis, next_element_from_buffer): Use it.
13376
133772008-03-08 Andreas Schwab <schwab@suse.de>
13378
13379 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
13380
133812008-03-06 Jason Rumney <jasonr@gnu.org>
13382
13383 * w32font.c (w32_registry): Take font_type argument. Use ANSI
13384 when charset not specified. Only translate ANSI to unicode when
13385 font_type is truetype.
13386 (w32font_coverage_ok): New function.
13387 (add_font_entity_to_list): Use it to filter unsuitable fonts.
13388
133892008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
13390
13391 * lread.c (Fread_char): Resolve modifiers.
13392 (Fread_char_exclusive): Likewise.
13393
13394 * character.c (char_resolve_modifier_mask): New function.
13395 (char_string): Use char_resolve_modifier_mask.
13396 (Fchar_resolve_modifiers): New function.
13397 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
13398 function.
13399
134002008-03-04 Jason Rumney <jasonr@gnu.org>
13401
13402 * makefile.w32-in: Always include w32font.c in the build.
13403 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
13404
134052008-03-04 Andreas Schwab <schwab@suse.de>
13406
13407 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
13408 (versionclean): Likewise.
13409
134102008-03-04 Juanma Barranquero <lekktu@gmail.com>
13411
13412 * .cvsignore: Add oo.
13413
134142008-03-03 Andreas Schwab <schwab@suse.de>
13415
13416 * coding.c (decode_coding_object): Inhibit gap shrinking while
13417 decoding in place.
13418
134192008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
13420
13421 * w32term.c: Remove unused include "gnu.h".
13422 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
13423
13424 * gnu.h: Rename to ...
13425 * emacs-icon.h: ... this.
13426 * xterm.c: Use emacs-icon.h instead of gnu.h.
13427 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
13428
134292008-03-03 Juanma Barranquero <lekktu@gmail.com>
13430
13431 * w32font.c: Include math.h.
13432
134332008-03-03 Jason Rumney <jasonr@gnu.org>
13434
13435 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
13436 Compute options separately.
13437 (w32font_open_internal): Set glyph_idx before caching metrics.
13438
13439 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
13440 Define if system headers don't.
13441 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
13442 (w32font_encode_char): Don't declare here.
13443
13444 * w32font.c (Quniscribe, QCformat): New symbols.
13445 (syms_of_w32font): Define them.
13446 (w32font_has_char): Indicate uncertainty.
13447 (w32font_encode_char): Encode as glyph point. Make static.
13448 (recompute_cached_metrics): New function.
13449 (w32font_open_internal): Use it. Set font to use glyph points
13450 initially. Set format based on type of font.
13451 (w32font_text_extents, w32font_draw): Optionally use glyph points.
13452 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
13453 on it. Set format based on information available here.
13454 (add_font_entity_to_list): Identify backend based on opentype_only.
13455
134562008-03-02 Andreas Schwab <schwab@suse.de>
13457
13458 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
13459
13460 * coding.c (decode_coding_big5, produce_chars):
13461 Fix typos in last change.
13462
134632008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
13464
13465 * gnu.h: New icon.
13466
134672008-03-02 Kenichi Handa <handa@m17n.org>
13468
13469 * coding.c (decode_coding_utf_8): When eol-type of CODING is
13470 `dos', don't decode '\r' if that is the last in the source.
13471 (decode_coding_utf_16, decode_coding_emacs_mule)
13472 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
13473 (decode_coding_raw_text, decode_coding_charset): Likewise.
13474 (produce_chars): Don't decode EOL here. Use EMACS_INT.
13475
134762008-03-01 Jason Rumney <jasonr@gnu.org>
13477
13478 * w32font.c (w32font_full_name): Report point size for scalable fonts.
13479
134802008-03-01 Kim F. Storm <storm@cua.dk>
13481
13482 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
13483
134842008-03-01 Jason Rumney <jasonr@gnu.org>
13485
13486 * w32font.c (w32font_full_name): New function.
13487 (w32font_open_internal): Use it.
13488
134892008-03-01 Kim F. Storm <storm@cua.dk>
13490
13491 * dispnew.c (line_draw_cost): Fix invalid glyph check.
13492
134932008-03-01 Jason Rumney <jasonr@gnu.org>
13494
13495 * font.c (font_unparse_fcname): Increase len when style is a symbol.
13496
134972008-03-01 Jan Djärv <jan.h.d@swipnet.se>
13498
13499 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
13500 xg_frame_resized when the event is for the edit widget.
13501
13502 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
13503
13504 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
13505 set_char_size.
13506 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
13507 operations on widgets here. Just set frame size if needed.
13508 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
13509 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
13510 (x_wm_set_size_hint): Set size hints on the edit widget only, not
13511 the whole frame.
13512 (xg_create_tool_bar): Move attachment of the tool bar to
13513 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
13514 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
13515
135162008-03-01 Jason Rumney <jasonr@gnu.org>
13517
13518 * w32fns.c (w32_msg_pump): Disable debug code.
13519
135202008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13521
13522 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
13523
135242008-02-29 Chong Yidong <cyd@stupidchicken.com>
13525
13526 * xdisp.c (next_overlay_string): Don't set
13527 overlay_strings_at_end_processed_p if we're currently reading from
13528 a display string.
13529
135302008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
13531
13532 * xdisp.c (get_overlay_strings_1): Fix typo.
13533
135342008-02-29 Chong Yidong <cyd@stupidchicken.com>
13535
13536 * xdisp.c (get_overlay_strings_1): Add missing argument type.
13537
135382008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
13539
13540 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
13541
13542 * xdisp.c (display_mode_element): Cancel the previous change.
13543 (decode_mode_spec): Likewise.
13544 (handle_auto_composed_prop): Don't make composition if it->string
13545 is a string.
13546
135472008-02-27 Kim F. Storm <storm@cua.dk>
13548
13549 * lisp.h (GLYPH): Change type from int to struct with separate char
13550 and face_id members.
13551 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
13552 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
13553 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
13554 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
13555 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
13556 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
13557 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
13558 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
13559 handle new Lisp glyph code encoding, either an integer or a cons.
13560
13561 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
13562 (GLYPH_ALIAS): Delete.
13563 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
13564 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
13565 (GLYPH_FROM_CHAR): Replace macro by ...
13566 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
13567
13568 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
13569 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
13570 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
13571 (GLYPH_INVALID_P): New macro.
13572 (spec_glyph_lookup_face): Update prototype.
13573
13574 * dispnew.c (line_draw_cost): Adapt to new glyph type.
13575 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
13576 new glyph code encoding.
13577 (spec_glyph_lookup_face): No return value; update passed glyph instead.
13578 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
13579
13580 * xdisp.c (get_next_display_element, next_element_from_display_vector):
13581 Adapt to new glyph type and new glyph code encoding.
13582
13583 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
13584
13585 * indent.c (current_column, current_column_1, Fmove_to_column)
13586 (compute_motion): Adapt to new glyph code encoding.
13587
13588 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
13589
135902008-02-27 Chong Yidong <cyd@stupidchicken.com>
13591
13592 * process.c (wait_reading_process_output): Check for window
13593 changes caused by timers.
13594 Suggested by Johan Bockgård.
13595
135962008-02-27 Glenn Morris <rgm@gnu.org>
13597
13598 * emacs.c (USAGE1): Add `--disable-font-backend'.
13599
136002008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
13601
13602 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
13603 is made to the buffer.
13604
136052008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
13606
13607 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
13608 (face_at_string_position):
13609 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
13610 (face_at_string_position):
13611 * xdisp.c (display_string, next_overlay_change):
13612 * buffer.h (overlays_at):
13613 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
13614 Update callers.
13615
136162008-02-26 Chong Yidong <cyd@stupidchicken.com>
13617
13618 * editfns.c (Fformat): Doc fix.
13619
136202008-02-26 Juanma Barranquero <lekktu@gmail.com>
13621
13622 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
13623 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
13624 (Ffont_otf_alternates, Fquery_font): Doc fixes.
13625
136262008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
13627
13628 * buffer.c (Fbuffer_swap_text): New function.
13629 (syms_of_buffer): Defsubr it.
13630
136312008-02-25 Chong Yidong <cyd@stupidchicken.com>
13632
13633 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
13634
136352008-02-25 Jason Rumney <jasonr@gnu.org>
13636
13637 * w32font.c (w32font_draw): Draw one character at a time when padding.
13638
136392008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
13640
13641 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
13642 Handle a nil arg. Use run_window_configuration_change_hook.
13643 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
13644 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
13645 Use run_window_configuration_change_hook.
13646
136472008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
13648
13649 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
13650 1-pixel width.
13651
136522008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
13653
13654 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
13655 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
13656 if the glyph in the font is zero pixel with.
13657
13658 * dispextern.h (struct glyph_string): New member padding_p.
13659
13660 * w32font.c (w32font_draw): Pay attention to s->padding_p.
13661
13662 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
13663
13664 * xfont.c (xfont_draw): Pay attention to s->padding_p.
13665
13666 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
13667
13668 * font.c: If the font driver doesn't have `shape' function, return Qnil.
13669
136702008-02-25 Jason Rumney <jasonr@gnu.org>
13671
13672 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
13673
136742008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
13675
13676 Allow fine-grained image-cache flushing.
13677 * dispextern.h (struct image): Add `dependencies' field.
13678 (clear_image_caches): Change arg to Lisp_Object.
13679 * image.c (make_image): Initialize `dependencies' field.
13680 (clear_image_cache): Change arg to allow fine-grained flushing.
13681 Perform the flush even if image-cache-eviction-delay is nil.
13682 (clear_image_caches): Change arg to Lisp_Object.
13683 (Fclear_image_cache): Expand meaning of the argument.
13684 (mark_image): Mark `dependencies' field.
13685 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
13686 (lface_hash): Use XHASH rather than XFASTINT.
13687 (face_at_buffer_position): Fix int -> EMACS_INT position.
13688 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
13689 (select_frame_for_redisplay): Remove code duplication.
13690 (redisplay_internal): Adapt arg to call to clear_image_caches.
13691
136922008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
13693
13694 * s/vms4-0.h:
13695 * s/vms4-2.h:
13696 * s/vms4-4.h:
13697 * s/vms5-5.h: Remove, unused.
13698
13699 * s/irix5-2.h:
13700 * s/irix6-0.h:
13701 * s/riscos5.h:
13702 * s/mach-bsd4-3.h:
13703 * m/mips4.h: Remove files for obsolete systems.
13704
13705 * Makefile.in:
13706 * filelock.c:
13707 * unexmips.c:
13708 * m/hp9000s300.h:
13709 * m/iris4d.h:
13710 * s/aix3-1.h:
13711 * s/hpux.h:
13712 * s/msdos.h:
13713 * s/usg5-0.h:
13714 * s/usg5-2-2.h:
13715 * s/usg5-2.h:
13716 * s/usg5-3.h: Remove references to obsolete variables.
13717
13718 * s/irix5-0.h: Remove, move all the contents ...
13719 * s/irix6-5.h: ... here. Simplify.
13720 * config.in: Regenerate.
13721
137222008-02-24 Jason Rumney <jasonr@gnu.org>
13723
13724 * w32term.c (x_draw_glyph_string_background): Clear the background
13725 manually when cleartype is in use.
13726 (x_draw_glyph_string_foreground): Draw text transparently when
13727 cleartype is in use.
13728
13729 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
13730 a font into it unless we have to.
13731
137322008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
13733
13734 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
13735 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 13736
aac0c6e3
MR
137372008-02-18 Jason Rumney <jasonr@gnu.org>
13738
13739 * w32fns.c (Fw32_shell_execute): Encode parameters.
13740
137412008-02-09 Eli Zaretskii <eliz@gnu.org>
13742
13743 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
13744
137452008-02-05 Juanma Barranquero <lekktu@gmail.com>
13746
13747 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
13748
137492008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
13750
13751 * xterm.c (x_set_offset): Don't change the gravity if
13752 CHANGE_GRAVITY is -1.
13753
137542008-02-23 Chong Yidong <cyd@stupidchicken.com>
13755
13756 * fileio.c (auto_save_error_occurred): New var.
13757 (auto_save_error): Set it.
13758 (Fdo_auto_save): Don't overwrite the error message if an auto-save
13759 error occurred.
13760
137612008-02-23 Eli Zaretskii <eliz@gnu.org>
13762
13763 * w32.c (globals_of_w32): Add initializations for
13764 g_b_init_get_sid_sub_authority and
13765 g_b_init_get_sid_sub_authority_count.
13766
137672008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
13768
13769 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
13770 (font_parse_xlfd): Use them for sanity check.
13771 (Finternal_set_font_style_table): Make sure the table is bijective.
13772
13773 Consolidate the image_cache to the terminal struct.
13774 * termhooks.h (P_): Remove redundant def.
13775 (struct terminal): New field `image_cache'.
13776 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
13777 of FRAME_X_IMAGE_CACHE.
13778 * xterm.h (struct x_display_info): Remove image_cache field.
13779 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
13780 * w32term.h (struct w32_display_info): Remove image_cache field.
13781 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
13782 * macterm.h (struct mac_display_info): Remove image_cache field.
13783 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
13784 * xterm.c (x_term_init):
13785 * w32term.c (w32_term_init):
13786 * macterm.c (mac_term_init): Set the image_cache in the terminal.
13787 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
13788 Remove declarations.
13789 (clear_image_caches, mark_image_cache): New declarations.
13790 * xfaces.c (clear_face_cache):
13791 * xdisp.c (redisplay_internal): Use clear_image_caches.
13792 * image.c (clear_image_cache): Don't check that a frame is on
13793 a window-system before checking if it shares the same cache.
13794 (clear_image_caches): New function.
13795 (Fclear_image_cache): Use it.
13796 (mark_image): Move from allo.c.
13797 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
13798 * alloc.c (mark_image, mark_image_cache): Move to image.c.
13799 (mark_object): Don't call mark_image_cache for frames.
13800 (mark_terminals): Call mark_image_cache.
13801
13802 * lisp.h (Fdelete_terminal): Declare.
13803
13804 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
13805 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
13806 wrong_type_argument.
13807
138082008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
13809
13810 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
13811 malayalam.el, and tamil.el. Add sinhala.el.
13812
138132008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
13814
13815 * xterm.c (x_connection_closed): Consolidate identical tests.
13816 (x_delete_terminal): Don't crash if called via x_connection_closed.
13817
138182008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
13819
13820 * xdisp.c (decode_mode_spec): New arg string.
13821 (display_mode_element): Adjust for the above change.
13822
138232008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
13824
13825 * callint.c (Fcall_interactively): Use AREF.
13826
138272008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
13828
13829 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
13830
138312008-02-18 Jan Djärv <jan.h.d@swipnet.se>
13832
13833 * xfns.c (Fx_show_tip): Set string to " " if empty.
13834
138352008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
13836
13837 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
13838 with Qt.
13839
138402008-02-17 Kenichi Handa <handa@m17n.org>
13841
13842 * ftfont.c (ftfont_shape): Return Lispy number.
13843
13844 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
13845 for GCs.
13846 (Finternal_set_font_selection_order): Call font_update_sort_order
13847 only when enable_font_backend is set.
13848 (realize_x_face): Set face->font_info to that of default face only
13849 when enable_font_backend is set.
13850
13851 * xdisp.c (handle_composition_prop): Set it->c to the fist
13852 character of the composed region.
13853 (fill_composite_glyph_string): Set base_face->font_info to
13854 s->font_info. Get a face for ascii from base_face->ascii_face.
13855 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
13856 with a face already decided.
13857 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
13858 non-negative.
13859 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
13860 call font_prepare_composition unconditionally.
13861
13862 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
13863
13864 * xterm.h (struct x_display_info): New member font.
13865
13866 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
13867 (x_set_mouse_face_gc, x_new_font): Likewise.
13868 (x_term_init): Setup display_info->font.
13869 (x_delete_terminal): Free display_info->font.
13870
13871 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
13872
13873 * ftxfont.c (ftxfont_default_fid): Delete it.
13874 (ftxfont_open): Set xfont->fid to 0.
13875 (ftxfont_end_for_frame): Clear data specific to the frame and the
13876 font-driver.
13877
13878 * xftfont.c (xftfont_default_fid): Delete it.
13879 (xftfont_open): Set xfont->fid to 0.
13880
13881 * fontset.c (FONTSET_OBJLIST): New macro.
13882 (fontset_find_font): Update font-object list of the fontset.
13883 (free_realized_fontset): New function.
13884 (free_face_fontset): Call free_realized_fontset.
13885 (Ffont_info): Call font_close_object only when enable_font_backend
13886 is set.
13887
13888 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
13889 [HAVE_NTGUI]: Include w32term.h.
13890 [MAC_OS]: Include macterm.ch.
13891 (font_otf_ValueRecord): Use make_number.
13892 (font_finish_cache): Fix handling of reference count.
13893 (font_clear_cache): Update num_fonts.
13894 (font_open_entity): Update smallest_char_width and
13895 smallest_font_height of the frame.
13896 (font_close_object): Update num_fonts.
13897 (Fclear_font_cache): Fix finding the target cache data.
13898
138992008-02-16 Glenn Morris <rgm@gnu.org>
13900
13901 * fontset.c (Finternal_char_font): Fix compilation warning.
13902
139032008-02-16 Eli Zaretskii <eliz@gnu.org>
13904
13905 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
13906 instead of char arrays. Enlarge the size of array passed to
13907 get_token_information.
13908
13909 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
13910 warnings.
13911
139122008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
13913
13914 * .gdbinit: Don't set `args', it breaks gdb --args.
13915
139162008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
13917
13918 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
13919 within a narrowed buffer.
13920
139212008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
13922
13923 * coding.c (decode_coding_object, encode_coding_object):
13924 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
13925
139262008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
13927
13928 * coding.c (coding_set_destination): Use BEG_BYTE rather than
13929 hardcoding 1.
13930 (detect_coding_system):
13931 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
13932 (string_char_to_byte, string_byte_to_char, insert_from_gap):
13933 * insdel.c (insert_from_gap):
13934 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
13935 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
13936 (string_to_multibyte):
13937 * character.c (chars_in_text, multibyte_chars_in_text):
13938 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
13939
13940 * character.h (FETCH_STRING_CHAR_ADVANCE)
13941 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
13942 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
13943 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
13944
13945 * casefiddle.c (casify_region): Only call after-change and composition
13946 functions on the part of the region that was changed.
13947
13948 * keyboard.c (read_avail_input):
13949 * frame.c (Fdelete_frame): Call Fdelete_terminal.
13950
139512008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
13952
13953 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
13954 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
13955
139562008-02-11 Juanma Barranquero <lekktu@gmail.com>
13957
13958 * w32menu.c (push_submenu_start, push_submenu_end)
13959 (push_left_right_boundary, push_menu_pane, push_menu_item):
13960 * keyboard.c (read_key_sequence): Don't pass args with side effects
13961 to AREF, it fails when compiling with -DENABLE_CHECKING.
13962
139632008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
13964
13965 * Makefile.in (${lispsource}international/charprop.el):
13966 Delete this target.
13967
13968 * search.c (boyer_moore): Fix incorrect synching of the trunk and
13969 emacs-unicode-2.
13970
139712008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
13972
13973 * terminal.c (Fdelete_terminal): Clean up the `force' path.
13974
139752008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
13976
13977 * frame.c (Qnoelisp): New symbol.
13978 (syms_of_frame): Initialize it.
13979 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
13980 harmless Elisp code, from a strong `force' from x_connection_closed.
13981 * frame.h (Qnoelisp): Declare.
13982 * xterm.c (x_connection_closed): Pass `noelisp'.
13983
13984 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
13985 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
13986 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
13987 rather than `int' for the type of `type'.
13988
139892008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
13990
13991 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
13992
13993 * Makefile.in (GNUC): Remove support for gcc-1.x.
13994
139952008-02-10 Richard Stallman <rms@gnu.org>
13996
13997 * lisp.h (ASET): Use AREF, not ASLOT.
13998
139992008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
14000
14001 * lisp.h (ASET): Check bounds.
14002
140032008-02-10 Glenn Morris <rgm@gnu.org>
14004
14005 * buffer.c (mode-name): Doc fix.
14006
140072008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
14008
14009 * Makefile.in:
14010 * emacs.c:
14011 * gmalloc.c:
14012 * keyboard.c:
14013 * lisp.h:
14014 * m/ibm370aix.h:
14015 * process.c:
14016 * regex.c:
14017 * s/hpux.h:
14018 * sysdep.c:
14019 * sysselect.h:
14020 * systty.h:
14021 * unexec.c:
14022 * w32term.c:
14023 * xsmfns.c:
14024 * xterm.c: Remove code that deals with obsolete variables.
14025
14026 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
14027
14028 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
14029 nothing else needs it anymore.
14030
140312008-02-09 Eli Zaretskii <eliz@gnu.org>
14032
14033 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
14034 instead of unibyte_char_to_multibyte.
14035
140362008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
14037
14038 * s/gnu-linux.h: Remove commented out code.
14039
14040 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
14041
14042 * Makefile.in: Update what RMS says about using autoconf.
14043 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
14044 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
14045 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
14046 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
14047
140482008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
14049
14050 * keymap.c (Fkey_description): Move side effect outside of macro call.
14051
14052 * xfaces.c (Finternal_make_lisp_face):
14053 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
14054
14055 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
14056 (syms_of_fontset): Use ASET.
14057
14058 * fns.c (concat): Move side effect outside of macro call.
14059 (hash_clear): Use ASET.
14060
140612008-02-08 Richard Stallman <rms@gnu.org>
14062
14063 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
14064 If FORCE, and frame has a surrogate minibuffer for another frame,
14065 delete the other frame first.
14066
140672008-02-07 Timo Savola <timo.savola@iki.fi>
14068
14069 * xterm.c (x_detect_focus_change): Handle embed client message.
14070 (handle_one_xevent): Ditto.
14071 (handle_one_xevent): If embedded and we get a button press/release,
14072 request focus.
14073 (xembed_set_info, xembed_send_message): New functions.
14074 (x_make_frame_visible): Call xembed_set_info if embedded.
14075 (x_make_frame_invisible): Call xembed_set_info if embedded.
14076 (x_term_init): Initialize Xatom_XEMBED.
14077 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
14078 (x_iconify_frame): Ditto.
14079
14080 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
14081 (enum xembed_info, enum xembed_message, enum xembed_focus)
14082 (enum xembed_modifier, enum xembed_accelerator): New.
14083 (xembed_set_info, xembed_send_message): Declare.
14084 (FRAME_X_EMBEDDED_P): New.
14085
14086 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
14087 gtk_plug_new.
14088
14089 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
14090 window ID of a frame.
14091 (x_window): Reparent frame if embedded.
14092 (Fx_create_frame): Don't set border width if embedded.
14093
14094 * emacs.c (USAGE3): Add --parent-id.
14095 (standard_args): Ditto.
14096
140972008-02-07 Jan Djärv <jan.h.d@swipnet.se>
14098
14099 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
14100
141012008-02-07 Jim Meyering <meyering@redhat.com>
14102
14103 Use "do...while (0)", not "if (1)...else" in macro definitions.
14104 The latter provokes a warning from gcc about the empty else, when
14105 followed by ";". Also, without that trailing semicolon, it would
14106 silently swallow up any following statement.
14107 * syntax.h (SETUP_SYNTAX_TABLE)
14108 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
14109 * buffer.h (DECODE_POSITION): Likewise.
14110 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
14111 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
14112 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
14113 (FETCH_CHAR_ADVANCE): Likewise.
14114 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
14115
141162008-02-07 Jim Meyering <meyering@redhat.com>
14117
14118 * lread.c [lint]: Don't include <sys/inode.h>.
14119
141202008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
14121
14122 * xselect.c (x_handle_dnd_message):
14123 * xmenu.c (digest_single_submenu, xmenu_show):
14124 * xdisp.c (with_echo_area_buffer_unwind_data)
14125 (format_mode_line_unwind_data, unwind_format_mode_line)
14126 (display_menu_bar):
14127 * eval.c (Ffetch_bytecode):
14128 * doc.c (store_function_docstring):
14129 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
14130 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
14131 * buffer.c (add_overlay_mod_hooklist): Use ASET.
14132
141332008-02-07 Kenichi Handa <handa@m17n.org>
14134
14135 * ftxfont.c (ftxfont_open): Don't set
14136 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
14137
14138 * ftfont.c (ftfont_open): Fix previous change.
14139
141402008-02-06 Jason Rumney <jasonr@gnu.org>
14141
14142 * w32font.c (w32font_text_extents): Fill in lbearing metric.
14143 Use cached metrics for ASCII characters.
14144 (w32font_open_internal): Don't set font's owning_frame.
14145 Cache metrics for ASCII characters.
14146
14147 * w32font.h (struct w32font_info): Add ascii_metrics.
14148 Remove owning_frame.
14149
141502008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
14151
14152 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
14153 to negative value.
14154
14155 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
14156
14157 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
14158
14159 * charset.c (syms_of_charset): Set QCtest and Qeq.
14160
141612008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
14162
14163 * process.c (Fstart_process):
14164 * callproc.c (Fcall_process): Handle the case where
14165 Funhandled_file_name_directory returns nil.
14166
14167 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
14168 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
14169 * font.c (check_gstring): Use them and AREF to access the vector before
14170 we know it's really a gstring.
14171 (Ffont_shape_text): Fix typo.
46e722a9 14172 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
14173
14174 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
14175 Declare.
14176
14177 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
14178
141792008-02-05 Jason Rumney <jasonr@gnu.org>
14180
14181 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
14182 Set smallest_font_height and smallest_char_width in display info.
14183
141842008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
14185
14186 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
14187
141882008-02-05 Miles Bader <miles@gnu.org>
14189
14190 * xfaces.c (get_lface_attributes, merge_named_face)
14191 (lookup_named_face, lookup_derived_face, realize_named_face):
14192 Revert 2008-02-01 change by cyd@stupidchicken.com.
14193
141942008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
14195
14196 * fontset.c (Ffontset_info): Handle the case of inhibitting the
14197 fallback fonts.
14198 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
14199
142002008-02-04 Jason Rumney <jasonr@gnu.org>
14201
14202 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
14203 set full_name.
14204 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
14205
142062008-02-03 Jason Rumney <jasonr@gnu.org>
14207
14208 * makefile.w32-in (OBJ1): Include font.o here.
14209 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
14210
142112008-02-02 Jason Rumney <jasonr@gnu.org>
14212
14213 * makefile.w32-in (temacs): Bump EMHEAP to 21.
14214
142152008-02-01 Jason Rumney <jasonr@gnu.org>
14216
14217 * s/cygwin.h: Define VIRT_ADDR_VARIES.
14218
14219 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
14220
142212008-02-01 Andreas Schwab <schwab@suse.de>
14222
14223 * Makefile.in (shortlisp, lisp): Update for rename of
14224 ../lisp/language/myanmar.el.
14225
142262008-02-01 Chong Yidong <cyd@stupidchicken.com>
14227
14228 * xfaces.c (get_lface_attributes): Delete function.
14229 (merge_named_face, lookup_named_face, lookup_derived_face)
14230 (realize_named_face): Call lface_from_face_name directly, and use
14231 the fact that merge_face_vectors does not alter its FROM argument.
14232
142332008-02-01 Jason Rumney <jasonr@gnu.org>
14234
14235 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
14236 input in the default locale. Handle non-Unicode multibyte input.
14237
142382008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14239
14240 * fontset.c (reorder_font_vector): Exclude nil elements from the
14241 font group. Don't try multiple fonts.
14242 (fontset_font): Adjust for the above change.
14243 (Finternal_char_font): Return nil if the found font doesn't
14244 contain the character ch.
14245
14246 * Makefile.in (lisp, shortlisp): Add cham.el.
14247
142482008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14249
14250 * font.h (FONTP): Make it return 1 also for a font-object.
14251
14252 * .gdbinit (xfontset): New function.
14253
14254 * font.c (font_find_for_lface): Check if the character C is
14255 supported or not only for the first font.
14256
14257 * fontset.c (reorder_font_vector): Fix typo.
14258 (fontset_find_font): Don't add a font-spec specifying a script.
14259 Use 0 (not Qt) for the indication of empty font-group. Change the
14260 format of RFONT-DEF. Return Qt if no font in the font-group
14261 support the character.
14262 (fontset_font): Adjust for the above change. If no font was
14263 found the character, remember that.
14264 (face_for_char): Adjust for the change of RFONT-DEF.
14265 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
14266 no font for the target.
14267 (Finternal_char_font): Adjust for the change of RFONT-DEF.
14268
142692008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14270
14271 * font.c (font_load_for_face): Handle the case that the font in
14272 face->lface is a string.
14273
142742008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14275
14276 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
14277
142782008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14279
14280 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
14281 Fix previous change. If the frame is not on a window system,
14282 signal an error.
14283
142842008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14285
14286 * coding.c (decode_coding_object, encode_coding_object): Adjust
14287 marker positions after conversion.
14288
14289 * lisp.h (struct Lisp_Marker): New member need_adjustment.
14290
142912008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14292
14293 * font.c (font_find_for_lface): Fix the handling of the return
14294 value of font_has_char.
14295 (Ffont_shape_text): Fix previous change.
14296
14297 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
14298 (fontset_ref_and_range): Delete it.
14299 (fontset_find_font): Call char_table_ref_and_range instead of
14300 FONTSET_REF_AND_RANGE.
14301 (make_fontset): Don't setup font groups of Latin here.
14302 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
14303 (new_fontset_from_font): Make the specified font the default for
14304 all Latin characters.
14305
143062008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14307
14308 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
14309 is on a window system before accessing the fontset of the frame.
14310
143112008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14312
14313 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
14314
14315 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
14316 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
14317
14318 * font.c (Ffont_shape_text): If the font driver doesn't have a
14319 shaper function, make zero-width glyphs to have at least one-pixel
14320 width. Fix setting of `to' field of glyphs.
14321
143222008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14323
14324 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
14325 glyphs.
14326
14327 * font.h (struct font_driver): Improve docstring of member `shape'.
14328
143292008-02-01 Kenichi Handa <handa@m17n.org>
14330
14331 * composite.c (syms_of_composite): Fix docstring of
14332 auto-composition-function.
14333
14334 * font.h (LGLYPH_SIZE): New macro.
14335
14336 * font.c (Ffont_fill_gstring): Stop filling when a character not
14337 supported by the font is found.
14338 (Ffont_shape_text): When a shape callback function returns nil,
14339 try at most two more times with larger gstring.
14340 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
14341
14342 * xdisp.c (handle_auto_composed_prop): Change the argument to
14343 auto-composition-function.
14344
14345 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
14346 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
14347 Lispy glyph and store it in the lgstring.
14348
14349 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
14350
14351 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
14352
143532008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14354
14355 * font.c (Ffont_shape_text): Avoid unnecessary composition.
14356
14357 * fontset.c (Vfont_encoding_charset_alist): New variable.
14358 (syms_of_fontset): DEFVAR it.
14359 (reorder_font_vector, fontset_find_font): Optimize for the case of
14360 no need of reordering.
14361 (face_for_char): Map the charset property by
14362 Vfont_encoding_charset_alist.
14363
143642008-02-01 Jason Rumney <jasonr@gnu.org>
14365
14366 * w32font.c (logfonts_match): Don't check adstyle here.
14367 (font_matches_spec): Check here against physical font instead.
14368 (add_font_entity_to_list): Avoid some substitutions.
14369
14370 * font.c (font_parse_fcname): Default weight and slant to normal.
14371 (font_score): Prefer normal fonts if weight or slant unspecified.
14372 (font_score) [WINDOWSNT]: Scale weight difference down to closer
14373 match freetype scores.
14374
143752008-02-01 Jason Rumney <jasonr@gnu.org>
14376
14377 * w32font.c (w32font_text_extents): Don't use the frame stored in the
14378 font, as it may have been deleted.
14379 (w32_enumfont_pattern_entity): Map generic family to adstyle using
14380 most common hyphenless variation.
14381 (logfonts_match): Check generic family.
14382 (font_matches_spec): Don't check generic family here.
14383 (fill_in_logfont): Set generic family based on adstyle.
14384
14385 * w32font.h (w32font_get_cache): Update declaration.
14386
143872008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14388
14389 * ftfont.c (ftfont_get_cache): Adjust the argument type.
14390
14391 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
14392 If none of the new drivers are available, call font_update_drivers
14393 with the old drivers.
14394
14395 * w32font.c (w32font_get_cache): Adjust the argument type.
14396
14397 * xfont.c (xfont_get_cache): Adjust the argument type.
14398
14399 * font.h (struct font_driver): Change argument type of get_cache.
14400
14401 * xftfont.c (xftfont_start_for_frame): Delete prototype.
14402
14403 * font.c (Ffont_get): Fix arguments to Fassoc.
14404 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
14405 (font_clear_cache): New function.
14406 (font_list_entities, font_matching_entity): Use font_get_cache.
14407 (font_update_drivers): Call font_clear_cache when finishing a driver.
14408
14409 * fontset.c (fontset_find_font): Fix previous change.
14410
144112008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14412
14413 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
14414 dpyinfo->font_table.
14415 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
14416 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
14417
14418 * font.c (font_at): Handle the case that the arg C is negative.
14419 Handle the unibyte case.
14420 (Ffont_at): Call font_at with the arg C -1.
14421
14422 * xdisp.c (handle_auto_composed_prop): Don't get a character at
14423 the position here, and call font_at with the arg C -1.
14424 Don't check the range of the existing composition at the point.
14425
144262008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14427
14428 * fontset.c (fontset_add): New args charset_id and family.
14429 Change caller.
14430 (load_font_get_repertory, fontset_find_font): Assume that
14431 font_spec is always a font-spec object.
14432 (Fset_fontset_font): Always store a font-spec object in a fontset.
14433
14434 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
14435 instead of get_property_and_range.
14436
144372008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14438
14439 * xftfont.c (struct xftfont_info): Delete the member ft_face.
14440 (xftfont_open): Don't keep locking face.
14441 (xftfont_close): Don't unlock face.
14442 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
14443
14444 * fontset.c (fontset_find_font): Don't prefer a font of
14445 supplementary charset.
14446
144472008-02-01 Kenichi Handa <handa@m17n.org>
14448
14449 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
14450 script, langsys_tag to langsys, new member script.
14451 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 14452 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
14453 listing to the script specified in that property. Fix arg to
14454 OTF_check_features.
14455
144562008-02-01 Jason Rumney <jasonr@gnu.org>
14457
14458 * w32font.h: New file.
14459
14460 * w32font.c: Include it.
14461 (struct w32font_info): Add owning_frame field. Move to w32font.h.
14462 (w32font_open): Set owning_frame.
14463 (w32font_text_extents): Use owning_frame.
14464 (struct font_callback_data): Add opentype_only field.
14465 (add_font_entity_to_list): Use it to filter fonts.
14466 Don't check against full name.
14467 (w32font_list_internal): New function.
14468 (w32font_list): Use it.
14469 (w32font_match_internal): New function.
14470 (w32font_match): Use it.
14471 (w32font_open_internal): New function.
14472 (w32font_open): Use it.
14473 (w32font_get_cache, w32font_close, w32font_has_char)
14474 (w32font_encode_char, w32font_text_extents, w32font_draw):
14475 Make non-static.
14476
14477 * makefile.w32-in (w32font.o): Depend on w32font.h.
14478
144792008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14480
14481 * charset.c (Fdefine_charset_internal): Record a supplementary
14482 charset at the tail of Vcharset_order_list.
14483
14484 * font.c (Ffont_shape_text): Fix the return value.
14485
14486 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
14487
14488 * xdisp.c (handle_auto_composed_prop): Fix previous change.
14489
144902008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14491
14492 * ftfont.c (struct OpenTypeSpec): New struct.
14493 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
14494 (ftfont_get_open_type_spec): New function.
14495 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
14496
14497 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
14498
144992008-02-01 Jason Rumney <jasonr@gnu.org>
14500
14501 * w32font.c (add_font_entity_to_list): Compare only the beginning
14502 of full name.
14503
145042008-02-01 Kenichi Handa <handa@m17n.org>
14505
14506 * xdisp.c (handle_auto_composed_prop): Simplify the code.
14507 Never return HANDLED_RECOMPUTE_PROPS.
14508
145092008-02-01 Kenichi Handa <handa@m17n.org>
14510
14511 * font.c (font_gstring_produce): Delete it.
14512
14513 * composite.h (COMPOSITION_METHOD):
14514 Handle COMPOSITION_WITH_GLYPH_STRING.
14515
145162008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14517
14518 * xfont.c (Qx): Delete.
14519 (syms_of_xfont): Don't initialize Qx.
14520
14521 * composite.h (enum composition_method):
14522 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
14523
145242008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14525
14526 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
14527 (choose_face_font): Accept new form of font-spec.
14528
14529 * frame.h (font_driver_list): Declare it unconditionally.
14530 (struct frame): Define members font_driver_list and font_data_list
14531 unconditionally.
14532
14533 * fontset.c: Include "font.h" unconditionally.
14534 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
14535 (Fset_fontset_font): Accept a font-spec object.
14536
14537 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
14538 PIXEL_SIZE part a wild card.
14539
14540 * dispextern.h (struct glyph_string): Define members clip and
14541 num_clips unconditionally.
14542 (struct face): Define members font_info and extra unconditionally.
14543
14544 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
14545 ftfont_info only when HAVE_LIBOTF is defined.
14546
145472008-02-01 Andreas Schwab <schwab@suse.de>
14548
14549 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
14550 and end.
14551
145522008-02-01 Jason Rumney <jasonr@gnu.org>
14553
14554 * w32font.c (w32font_driver): Add new fields.
14555
145562008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14557
14558 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
14559 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
14560 (LIBES): Add @M17N_FLT_CFLAGS@.
14561
14562 * composite.c (compose_text): Don't treat the new style
14563 composition specially.
14564
14565 * emacs.c (main): Call syms_of_font unconditionally.
14566
14567 * font.h (FONT_ENTITY_NOT_LOADABLE)
14568 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
14569 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
14570 (struct font_driver): New member shape.
14571 (font_registry_charsets): Extern it.
14572 (font_find_for_lface, font_prepare_composition): Adjust prototype.
14573 (font_otf_capability, font_drive_otf): Delete their externs.
14574
14575 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
14576 (font_charset_alist, font_registry_charsets): Move from xfont.c
14577 and rename.
14578 (font_prop_validate_otf): New function.
14579 (font_property_table): Register it for QCotf.
14580 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
14581 (font_drive_otf): Delete.
14582 (font_prepare_composition): New arg F. Adjust for the change of
14583 lispy gstring.
14584 (font_find_for_lface): New arg C.
14585 (font_load_for_face): Adjust for the change of font_find_for_lface.
14586 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
14587 lispy gstring.
14588 (Ffont_shape_text): New function.
14589 (Fopen_font): If the font size is not given, use 12-pixel.
14590 (Ffont_at): New arg STRING.
c0943d3d 14591 (syms_of_font): Initialize font_charset_alist.
aac0c6e3
MR
14592 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
14593 conditionally.
14594
14595 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
14596 fonts of the same font-spec. Change the format of RFONT-DEF.
14597 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
14598 Adjust for the change of RFONT-DEF.
14599 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
14600
14601 * ftfont.h: New file.
14602
14603 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
14604 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
14605 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
14606 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
14607 font_otf_capability and font_drive_otf, set ftfont_shape.
14608 (ftfont_list): Adjust for the change of :otf property value.
14609 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
14610 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
14611 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
14612 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
14613 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
14614 (otf_gstring, gstring, m17n_flt_initialized): New variables.
14615
14616 * w32term.c (x_draw_composite_glyph_string_foreground):
14617 Adjust for the change of lispy gstring.
14618
14619 * xdisp.c (handle_composition_prop): Adjust for the change of
14620 lispy gstring. Call a function for auto-composition with the
14621 third arg it->window.
14622 (fill_composite_glyph_string): Adjust for the change of lispy string.
14623 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
14624
14625 * xfaces.c (set_font_frame_param): Adjust for the change of
14626 font_find_for_lface.
14627
14628 * xfont.c (x_font_charset_alist): Move to font.c and rename.
14629 (xfont_registry_charsets): Likewise. Change caller.
14630 (syms_of_xfont): Don't handle x_font_charset_alist.
14631
14632 * xftfont.c: Include "ftfont.h".
14633 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
14634 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
14635 (xftfont_close) [HAVE_LIBOTF]: Close otf.
14636 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
14637 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
14638 Set xftfont_driver.shape to xftfont_shape.
14639
14640 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
14641 the change of lispy gstring.
14642
146432008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14644
14645 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
14646
146472008-02-01 Jason Rumney <jasonr@gnu.org>
14648
14649 * w32font.c (w32font_draw): Fill background manually.
14650
146512008-02-01 Jason Rumney <jasonr@gnu.org>
14652
14653 * font.c (Qfontp): Remove unused symbol.
14654 (QCantialias): New symbol.
14655 (syms_of_font): Define it.
14656 (font_property_table): Set a validator for QCantialias.
14657
14658 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
14659 Define if not already.
14660 (QCfamily): Share with xfaces.c.
14661 (Qstandard, Qsubpixel, Qnatural): New symbols.
14662 (syms_of_w32font): Define them. Don't define QCfamily here.
14663 (w32_antialias_type, lispy_antialias_type): New functions.
14664 (w32_enumfont_pattern_entity): New arg requested_font.
14665 Set antialias parameter if non-default was requested.
14666 (fill_in_logfont): Fill in lfQuality if :antialias specified.
14667
146682008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14669
14670 * lread.c (read1): Undo the previous change.
14671
146722008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
14673
14674 * frame.c (Fdelete_frame): Call font_update_drivers only when
14675 USE_FONT_BACKEND is defined.
14676
146772008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14678
14679 * font.h (struct font_bitmap): New member bits_per_pixel.
14680 (struct font_driver): New members start_for_frame and end_for_frame.
14681 (struct font_data_list): New struct.
14682 (font_put_frame_data, font_get_frame_data): Extern them.
14683
14684 * frame.h (struct frame): New member font_data_list.
14685
14686 * font.c (font_update_drivers): Call driver->start_for_frame and
14687 driver->end_for_frame at proper timings.
14688 (font_put_frame_data, font_get_frame_data): New functions.
14689 (Ffont_spec): Add usage in the docstring.
14690
14691 * frame.c (make_frame): Initialize f->font_data_list to NULL.
14692 (Fdelete_frame): Call font_update_drivers.
14693
14694 * xftfont.c (struct xftface_info): Delete the member xft_draw.
14695 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
14696 (xftfont_get_xft_draw): New function.
14697 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
14698 (xftfont_end_for_frame): New function.
14699 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
14700
14701 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
14702 Change argument. Cache GCs in the per-frame data.
14703 (struct ftxfont_frame_data): New struct.
14704 (ftxfont_draw_bitmap): New arg gc_fore and flush.
14705 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
14706 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
14707 (ftxfont_end_for_frame): New function.
14708 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
14709
14710 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
14711
147122008-02-01 Kenichi Handa <handa@m17n.org>
14713
14714 * xselect.c (Vselection_coding_system)
14715 (Vnext_selection_coding_system): Delete them.
14716 (syms_of_xselect): Don't declare selection-coding-system and
14717 next-selection-coding-system. They are declared in select.el.
14718
147192008-02-01 Jason Rumney <jasonr@gnu.org>
14720
14721 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
14722
14723 * w32fns.c: Include imm.h.
14724 (get_composition_string_fn, get_ime_context_fn): New optional
14725 system functions.
14726 (globals_of_w32fns): Load them from imm32.dll.
14727 (ignore_ime_char): New flag.
14728 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
14729 WM_IME_ENDCOMPOSITION messages.
14730
14731 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
14732 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
14733
147342008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14735
14736 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
14737 (READCHAR_REPORT_MULTIBYTE): New macro.
14738 (readchar): New 2nd arg MULTIBYTE.
14739 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
14740 Make symbol's name multibyte according to the multibyteness of the
14741 source.
14742
147432008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14744
14745 * xfaces.c (face_for_overlay_string): Call lookup_face with
14746 correct arguments (fix of synching with the trunk).
14747
147482008-02-01 Kenichi Handa <handa@m17n.org>
14749
14750 * font.c (font_prop_validate_symbol, font_prop_validate_style)
14751 (font_prop_validate_non_neg, font_prop_validate_spacing):
14752 Delete argument prop_index.
14753 (font_property_table): Change arguments to validater. Change Callers.
14754 (font_lispy_object): Delete.
14755 (font_at): Use font_find_object instead fo font_lispy_object.
14756
147572008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14758
14759 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
14760 and file names.
14761
147622008-02-01 Jason Rumney <jasonr@gnu.org>
14763
14764 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
14765 (font_matches_spec): Remove debug output.
14766 (add_font_entity_to_list): Avoid using substituted fonts.
14767
147682008-02-01 Jason Rumney <jasonr@gnu.org>
14769
14770 * doc.c (Fsnarf_documentation):
14771 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
14772
147732008-02-01 Miles Bader <miles@gnu.org>
14774
14775 * dispextern.h (struct glyph_row): Only define "clip" field if
14776 HAVE_WINDOW_SYSTEM is defined.
14777
147782008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
14779
14780 Fix up multi-tty merge.
14781
14782 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
14783 and indentation.
14784
14785 * xfaces.c (free_realized_face, clear_face_gcs):
14786 Include font_done_for_face in the input_blocked section, just in case.
14787
14788 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
14789 (get_char_face_and_encoding): Undo last change and remove the *other*
14790 duplicate definition (i.e. keep the one that's better scoped and that
14791 includes code for the font-backend).
14792
14793 * terminal.c (create_terminal): Default keyboard_coding to
14794 `no-conversion' and terminal_coding to `undecided'.
14795
14796 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
14797
14798 * fontset.c (free_realized_fontsets): Check that the table entry does
14799 contain a fontset before trying to compare it to `base'.
14800
14801 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
14802 syms_of_charset, and syms_of_coding earlier because init_window_once
14803 now needs Vcoding_system_hash_table to be setup.
14804
14805 * coding.h (default_buffer_file_coding): Remove.
14806
14807 * coding.c (default_buffer_file_coding): Remove.
14808 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
14809 than ->symbol, and use the terminal-local coding system.
14810 (syms_of_coding): Don't setup the coding-systems that are not
14811 terminal-local.
14812 (Fdefine_coding_system_internal): Use XCAR/XCDR.
14813
14814 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
14815 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
14816
14817 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
14818 in chartab.c and were re-added here by mistake.
14819 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
14820
14821 * doc.c (Fsnarf_documentation):
14822 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
14823 src to etc.
14824
14825 * ChangeLog.10: Add mistakenly removed entry.
14826
148272008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
14828
14829 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
14830
148312008-02-01 Miles Bader <miles@gnu.org>
14832
14833 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
14834 Add extra args to FACE_FOR_CHAR.
14835
148362008-02-01 Kenichi Handa <handa@m17n.org>
14837
14838 * keymap.c (where_is_internal_1): If key is a cons, store the copy
14839 in sequence.
14840
14841 * chartab.c (map_sub_char_table, map_char_table): If the range
14842 contains just one character, call the function with that character
14843 even if the depth is not 3.
14844
148452008-02-01 Jason Rumney <jasonr@gnu.org>
14846
14847 * w32font.c (w32font_text_extents): Calculate metrics for the
14848 whole string.
14849
148502008-02-01 Jason Rumney <jasonr@gnu.org>
14851
14852 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
14853
148542008-02-01 Jason Rumney <jasonr@gnu.org>
14855
14856 * w32term.c (x_set_glyph_string_clipping): Use
14857 get_glyph_string_clip_rects.
14858 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
14859 Adjust for the change of struct glyph_string.
14860
14861 * w32font.c (w32font_draw): Do clipping here.
14862
148632008-02-01 Kenichi Handa <handa@m17n.org>
14864
14865 * xftfont.c (xftfont_draw): Adjust for the change of struct
14866 glyph_string.
14867
14868 * xterm.c (x_set_glyph_string_clipping): Use
14869 get_glyph_string_clip_rects.
14870 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
14871 Adjust for the change of struct glyph_string.
14872
14873 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
14874 the resulting clip(s}.
14875 (expose_overlaps): Add arg r. Change callers. Set it to
14876 row->clip temporarily.
14877 (expose_window): Redraw rows overlapping the exposed area.
14878
14879 * dispextern.h (struct glyph_row): New member clip.
14880 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
14881 clip_height, new member clip, and num_clips.
14882
148832008-02-01 Kenichi Handa <handa@m17n.org>
14884
14885 * data.c (Fchar_or_string_p): Fix docstring.
14886
148872008-02-01 Kenichi Handa <handa@m17n.org>
14888
14889 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
14890 create a temporary XftDraw object.
14891
148922008-02-01 Kenichi Handa <handa@m17n.org>
14893
14894 * font.c (Ffontp): Fix docstring.
14895
14896 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
14897 strong evidence of ISO-2022.
14898
148992008-02-01 Kenichi Handa <handa@m17n.org>
14900
14901 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
14902 SYNTAX_ENTRY_FOLLOW_PARENT.
14903
149042008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
14905
14906 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
14907 its type.
14908 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
14909 Update to the new type of weak_hash_tables and next_weak.
14910
14911 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
14912 a plain C pointer to Lisp_Hash_Table.
14913
14914 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
14915 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
14916 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
14917 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
14918 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
14919 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
14920 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
14921 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
14922 (GC_EQ): Remove since they've been identical to their non-GC_
14923 alter-egos ever since the markbit was eradicated.
14924
14925 * alloc.c:
14926 * buffer.c:
14927 * buffer.h:
14928 * data.c:
14929 * fileio.c:
14930 * filelock.c:
14931 * fns.c:
14932 * frame.h:
14933 * lisp.h:
14934 * macterm.c:
14935 * print.c:
14936 * process.c:
14937 * w32fns.c:
14938 * w32menu.c:
14939 * w32term.c:
14940 * xfns.c:
14941 * xmenu.c:
14942 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
14943
149442008-02-01 Kenichi Handa <handa@m17n.org>
14945
14946 * chartab.c (map_sub_char_table): Make it work for the top-level
14947 char-table. Fix handling of parent char-table.
14948 (map_char_table): Adjust for the above change.
14949
149502008-02-01 Jason Rumney <jasonr@gnu.org>
14951
14952 * w32font.c (Qgdi): Rename from Qw32.
14953
149542008-02-01 Jason Rumney <jasonr@gnu.org>
14955
14956 * w32bdf.c (get_quoted_string): Make function static.
14957
149582008-02-01 Kenichi Handa <handa@m17n.org>
14959
14960 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
14961 bigger ascent and descent than those of the font, use them as
14962 font's ascent and descent.
14963
149642008-02-01 Kenichi Handa <handa@m17n.org>
14965
14966 * Makefile.in (${lispsource}international/charprop.el): Move this
14967 target within "#ifdef HAVE_UNIDATA" and "#endif".
14968
149692008-02-01 Kenichi Handa <handa@m17n.org>
14970
14971 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
14972 (shortlisp): Add ../lisp/language/tai-viet.el.
14973
149742008-02-01 Ulrich Mueller <ulm@gentoo.org>
14975
14976 * Makefile.in (${lispsource}international/charprop.el): Depend on
14977 temacs${EXEEXT}.
14978
149792008-02-01 Jason Rumney <jasonr@gnu.org>
14980
14981 * w32font.c (w32font_close): Delete the GDI font object.
14982
14983 * w32menu.c: Include character.h.
14984
14985 * w32proc.c: Likewise.
14986
14987 * w32select.c: Likewise.
14988
14989 * makefile.w32-in (w32proc.o): Depend on character.h.
14990
149912008-02-01 Jason Rumney <jasonr@gnu.org>
14992
14993 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
14994
14995 * w32menu.c (syms_of_w32menu): Likewise.
14996
14997 * w32proc.c (syms_of_ntproc): Likewise.
14998
14999 * w32select.c (syms_of_w32select): Likewise.
15000
15001 * w32term.c (syms_of_w32term): Likewise.
15002
150032008-02-01 Jason Rumney <jasonr@gnu.org>
15004
15005 * w32font.c (w32font_draw): Delete brush after using it.
15006
150072008-02-01 Jason Rumney <jasonr@gnu.org>
15008
15009 * w32font.c (w32font_open): Don't set font_idx.
15010 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
15011 to font settings.
15012 (w32font_draw): Fill background explicitly.
15013
150142008-02-01 Jason Rumney <jasonr@gnu.org>
15015
15016 * w32term.c (w32_initialize): Don't call w32font_initialize.
15017
15018 * w32font.c (w32font_info): Remove subranges.
15019 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
15020 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
15021 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
15022 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
15023 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
15024 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
15025 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
15026 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
15027 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
15028 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
15029 New symbols.
15030 (font_callback_data): New struct.
15031 (w32font_list, w32font_match): Use it.
15032 (w32font_open): Don't populate subranges.
15033 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
15034 (w32font_encode_char): Always return unicode code-point as-is.
15035 (w32font_text_extents): Supply a transformation matrix to
15036 GetGlyphOutline. Never look up by glyph index. Avoid looping
15037 twice. Use unicode version of GetTexExtentPoint32 instead of
15038 glyph index version.
15039 (set_fonts_frame): Remove.
15040 (w32_enumfont_pattern_entity): Add frame parameter, use it to
15041 set frame parameter. Use backward compatible fake foundries.
15042 Save generic family in extra slot under QCfamily. Make width slot
15043 constant. Save QCspacing value. Save list of scripts instead of
15044 binary subranges.
15045 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
15046 (add_font_entity_to_list): Use font_callback_data struct. Filter
15047 unwanted fonts.
15048 (add_one_font_entity_to_list): Use font_callback_data struct.
15049 (w32_registry): Default to iso10646_1.
15050 (fill_in_logfont): Use dpi from extra slot. Don't bother with
15051 string font registries. Don't fill in font name if it is a generic
15052 family name, fill family instead. Use spacing, family and script
15053 extra info to fill pitch, family and charset fields.
15054 (list_all_matching_fonts): Use font_callback_data struct.
15055 (unicode_range_for_char): Remove.
15056 (font_supported_scripts): New function.
15057 (w32font_initialize): Remove.
15058 (syms_of_w32font): Update which symbols are defined.
15059
150602008-02-01 Jason Rumney <jasonr@gnu.org>
15061
15062 * font.c (font_pixel_size): Reverse assq_no_quit args.
15063
15064 * w32term.h (FONT_WIDTH): Report max width, not average.
15065 (FONT_MAX_WIDTH): Remove.
15066 (FONT_AVG_WIDTH): New macro.
15067
15068 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
15069 redefinition of FONT_WIDTH.
15070
15071 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
15072 (w32_cache_char_metrics): Use FONT_WIDTH.
15073
15074 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
15075
150762008-02-01 Jason Rumney <jasonr@gnu.org>
15077
15078 * w32font.c (w32font_open): Make lfHeight negative.
15079
15080 * w32fns.c (x_default_font_parameter): Use new style font name.
15081 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
15082
150832008-02-01 Jason Rumney <jasonr@gnu.org>
15084
15085 * w32font.c (QCsubranges): New symbol.
15086 (w32font_open, w32font_has_char): Get subranges from subproperty
15087 of extra.
15088 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
15089 (syms_of_w32font): Define :subranges symbol.
15090
15091 * font.c (font_put_extra): Expose externally.
15092
15093 * font.h (font_put_extra): Move declaration from font.c.
15094
15095 * font.c (Ffont_get): Use font driver to determine otf capability.
15096 (adjust_anchor): Check if driver defines anchor_point before using.
15097
15098 * w32font.c (w32font_open): Handle size, height and pixel_size better.
15099 (w32font_draw): Use options.
15100 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
15101 Fix detection of truetype fonts.
15102 (registry_to_w32_charset): Handle charsets other than iso8859-1
15103 expressed as lisp symbols.
15104 (w32_registry): Express charset as lisp symbol.
15105 (fill_in_logfont): Reverse pixel and point height logic.
15106 Don't set width here. Set quality to default.
15107
15108 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
15109 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
15110
15111 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
15112 Remove redundant loop and allocation.
15113
15114 * makefile.w32-in (font.o, w32font.o): New objects.
15115 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
15116 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
15117
15118 * xdisp.c (fill_composite_glyph_string): Make the first arg to
15119 STORE_XCHARB a valid l-value.
15120
15121 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
15122 calculations for non-Truetype fonts.
15123 (x_draw_glyph_string): Sync with xterm.c.
15124 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
15125 Remove redundant code.
15126 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
15127
15128 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
15129 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
15130
15131 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
15132 (x_to_w32_charset, w32_to_x_charset): Expose externally.
15133
15134 * w32font.c: New file for w32 font backend.
15135
151362008-02-01 Kenichi Handa <handa@m17n.org>
15137
15138 * term.c: Don't include "buffer.h" twice.
15139
151402008-02-01 Kenichi Handa <handa@m17n.org>
15141
15142 * character.c (Funibyte_string): New function.
15143 (syms_of_character): Defsubr it.
15144
151452008-02-01 Jason Rumney <jasonr@gnu.org>
15146
15147 * w32term.c [USE_FONT_BACKEND]:
15148 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
15149 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
15150 (x_draw_glyph_string, x_draw_glyph_string_foreground)
15151 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
15152 (x_free_frame_resources): Sync with xterm.c.
15153
151542008-02-01 Andreas Schwab <schwab@suse.de>
15155
15156 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
15157 char-table size.
15158
151592008-02-01 Kenichi Handa <handa@m17n.org>
15160
15161 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
15162
151632008-02-01 Kenichi Handa <handa@m17n.org>
15164
15165 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
15166 font_otf_gpos, add font_drive_otf.
15167
15168 * fontset.c (fontset_find_font): Pay attention to font size
15169 specified for a font.
15170 (reorder_font_vector): Check contents of font_def.
15171
15172 * font.c (struct otf_list): Delete it.
15173 (otf_list): Make it a lisp variable.
15174 (otf_open): Use lispy otf_list.
15175 (generate_otf_features): Rename from parse_gsub_gpos_spec.
15176 (check_otf_features): New function.
15177 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
15178 New functions.
15179 (font_drive_otf): New function merging font_otf_gsub and
15180 font_otf_gpos.
15181 (font_open_for_lface): New arg spec. Change argument order.
15182 (font_load_for_face): Adjust for the change of font_open_for_lface.
15183 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
15184 Ffont_otf_gpos.
15185 (syms_of_font): Staticpro otf_list. Delete defsubr of
15186 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
15187
15188 * xfaces.c (set_font_frame_param): Adjust for the change of
15189 font_open_for_lface.
15190
15191 * font.h (font_open_for_lface): Adjust prototype.
15192 (struct font_driver): Delete members otf_gsub and otf_gpos, add
15193 member otf_drive.
15194 (font_otf_gsub, font_otf_gpos): Delete externs.
15195 (font_drive_otf): Extern it.
15196
151972008-02-01 Kenichi Handa <handa@m17n.org>
15198
15199 * font.c (font_at): If the window W is not on a window system,
15200 return Qnil.
15201
15202 * coding.c (produce_chars, encode_coding): Don't call
15203 insert_from_gap if no characters to produce.
15204
152052008-02-01 Kenichi Handa <handa@m17n.org>
15206
15207 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
15208 Fclear_face_cache.
15209
15210 * xfaces.c (face_for_font): Check also face->font==font->font.font.
15211
152122008-02-01 Miles Bader <miles@gnu.org>
15213
15214 * emacs.c (main): Change default value of `enable_font_backend' to 1.
15215 Parse "--disable-font-backend" option.
15216 (standard_args): Add "--disable-font-backend" option.
15217
152182008-02-01 Kenichi Handa <handa@m17n.org>
15219
15220 * fontset.c (fontset_find_font): New function.
15221 (fontset_font): Use fontset_find_font.
15222 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
15223 Register the specified font for all Latin characters.
15224 (new_fontset_from_font): Register the specified font for all Latin
15225 characters.
15226 (dump_fontset): For a realized fontset, include the base fontset
15227 name in the returned vector.
15228
152292008-02-01 Kenichi Handa <handa@m17n.org>
15230
15231 * character.h (CHAR_STRING): Cast C to unsigned on calling
15232 char_string.
15233
15234 * character.c (char_string): Type of arg C changed to unsigned.
15235 Signal an error if C is an invalid character code.
15236
15237 * editfns.c (general_insert_function, Fchar_to_string):
15238 Use CHARACTERP, not INTEGERP.
15239
152402008-02-01 Kenichi Handa <handa@m17n.org>
15241
15242 * character.h (MIN_MULTIBYTE_LEADING_CODE)
15243 (MAX_MULTIBYTE_LEADING_CODE): New macros.
15244
15245 * regex.c (analyse_first): Fix for multibyte characters in "case
15246 charset:" and "case categoryspec:".
15247
152482008-02-01 Andreas Schwab <schwab@suse.de>
15249
15250 * Makefile.in (LIBES): Move standard libraries to the end.
15251
152522008-02-01 Kenichi Handa <handa@m17n.org>
15253
15254 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
15255 nonzero, don't shrink the buffer nextb.
15256
15257 * buffer.h (struct buffer_text): New member inhibit_shrinking.
15258
15259 * coding.c (coding_alloc_by_making_gap): New arg offset.
15260 (alloc_destination): Call coding_alloc_by_making_gap with the arg
15261 offset.
15262 (decode_coding_iso_2022): Update coding->safe_charsets.
15263 (decode_coding_gap): Temporarily set
15264 current_buffer->text->inhibit_shrinking to 1.
15265
152662008-02-01 Kenichi Handa <handa@m17n.org>
15267
15268 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
15269 indexing into elements of s->cmp and s->char2b.
15270
152712008-02-01 Juanma Barranquero <lekktu@gmail.com>
15272
15273 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
15274
152752008-02-01 Kenichi Handa <handa@m17n.org>
15276
15277 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
15278 target_multibyte instead of multibyte.
15279 (re_match_2_internal): Call bcmp_translate with target_multibyte.
15280 (bcmp_translate): Change the argument name from multibyte to
15281 target_multibyte.
15282
152832008-02-01 Kenichi Handa <handa@m17n.org>
15284
15285 These changes are to compile a regexp into a pattern that can be
15286 used both for multibyte and unibyte targets.
15287
15288 * Makefile.in (search.o): Depend on charset.h.
15289
15290 * character.c (multibyte_char_to_unibyte_safe): New function.
15291
15292 * search.c: Include "charset.h".
15293 (compile_pattern_1): Delete argument multibyte. Don't set
15294 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
15295 (compile_pattern): Don't compare cp->buf.target_multibyte.
15296 Compare cp->buf.charset_unibyte.
15297 (compile_pattern): Set cp->buf.target_multibyte.
15298
15299 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
15300
15301 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
15302
15303 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
15304 multibyte. Change callers.
15305 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
15306 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
15307 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
15308 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
15309 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
15310 (regex_compile): Make the compiled pattern usable both for
15311 multibyte and unibyte targets.
15312 (analyse_first): Make the fastmap usable both for multibyte and
15313 unibyte targets.
15314 (TRANSLATE_VIA_MULTIBYTE): Delete.
15315 (re_match_2_internal): Pay attention to the case that the
15316 multibyteness of bufp and target may be different.
15317
153182008-02-01 Kenichi Handa <handa@m17n.org>
15319
15320 * xdisp.c (x_produce_glyphs): When a font is not found, make the
15321 empty box occupy at least one column width.
15322
153232008-02-01 Miles Bader <miles@gnu.org>
15324
15325 * Makefile.in: Remove redundant HAVE_XFT clause.
15326
153272008-02-01 Kenichi Handa <handa@m17n.org>
15328
15329 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
15330
153312008-02-01 Kenichi Handa <handa@m17n.org>
15332
15333 * fontset.c (Finternal_char_font): Fix for the case of POSITION
15334 being nil.
15335
153362008-02-01 Kenichi Handa <handa@m17n.org>
15337
15338 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
15339
153402008-02-01 Kenichi Handa <handa@m17n.org>
15341
15342 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
15343
153442008-02-01 Kenichi Handa <handa@m17n.org>
15345
15346 * search.c (simple_search): Fix previous change.
15347
153482008-02-01 Kenichi Handa <handa@m17n.org>
15349
15350 * xftfont.c (ftfont_font_format): Extern declaration.
15351
15352 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
15353
15354 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
15355 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
15356
15357 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
15358 (ftfont_font_format): Fix previous change.
15359
15360 * font.h (Ffont_xlfd_name): EXFUN it.
15361
15362 * font.c (font_parse_xlfd): Fix the array size of `f'.
15363 (register_font_driver): Use EQ to compare driver->type.
15364
15365 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
15366 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
15367 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
15368
153692008-02-01 Kenichi Handa <handa@m17n.org>
15370
15371 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
15372 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
15373
153742008-02-01 Kenichi Handa <handa@m17n.org>
15375
15376 * xfont.c (xfont_open): Set font->format.
15377
15378 * xftfont.c (xftfont_open): Set font->format.
15379
15380 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
15381 (ftfont_list): Include FC_FONTFORMAT in FcObject.
15382 (ftfont_open): Set font->format.
15383 (ftfont_font_format): New function.
15384
15385 * font.h (struct font): New member format.
15386
15387 * font.c (Qopentype): New variable.
15388 (syms_of_font): Defsym it.
15389 (Fquery_font): Change the format of the last element of the return
15390 value.
15391
153922008-02-01 Kenichi Handa <handa@m17n.org>
15393
15394 * xfns.c (xic_create_xfontset): Try the default fontset name as a
15395 last resort.
15396
153972008-02-01 Kenichi Handa <handa@m17n.org>
15398
15399 * coding.c (detect_coding_charset): Fix detection of multi-byte
15400 charset.
15401
154022008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
15403
15404 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
15405
154062008-02-01 Kenichi Handa <handa@m17n.org>
15407
15408 * xdisp.c (get_next_display_element): Set it->face_id for the
15409 first component of a composition.
15410 (x_produce_glyphs): Check if the font is changed or not for composition.
15411
154122008-02-01 Kenichi Handa <handa@m17n.org>
15413
15414 * fontset.c (Qlatin): New variable.
15415 (syms_of_fontset): Define it as a lisp symbol.
15416 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
15417
154182008-02-01 Kenichi Handa <handa@m17n.org>
15419
15420 * font.c (font_unparse_fcname): Pay attention to the case that
15421 some of font property is a null string.
15422
154232008-02-01 Kenichi Handa <handa@m17n.org>
15424
15425 * term.c: Include "composite.h".
15426 (encode_terminal_code): Output all components of composition.
15427 Check the size of encode_terminal_src.
15428 (produce_glyphs): For composition, call produce_composite_glyph.
15429 (append_composite_glyph, produce_composite_glyph): New functions.
15430
15431 * xdisp.c (x_produce_glyphs): In handling composition, if a font
15432 is not found, get font_info from the current ascii face.
15433
154342008-02-01 Kenichi Handa <handa@m17n.org>
15435
15436 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
15437 buffer-file-name to Qnil before calling insert_from_buffer.
15438
15439 * font.c (font_unparse_fcname): Pay attention to the case that
15440 foundry is a null string.
15441
154422008-02-01 Kenichi Handa <handa@m17n.org>
15443
15444 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
15445
15446 * font.c (Qunicode_sip): New variable.
15447 (syms_of_font): Declare it as a Lisp symbol.
15448
15449 * font.h (Qunicode_sip): Extern it.
15450
154512008-02-01 Kenichi Handa <handa@m17n.org>
15452
15453 * composite.c (get_composition_id): Pay attention to TAB component.
15454
15455 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
15456 TAB. Adjust for the change of s->char2b which always points to
15457 the first element of allocated memory.
15458
15459 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
15460
15461 * xdisp.c (handle_composition_prop): Set it->c to the first
15462 non-TAB component.
15463 (fill_composite_glyph_string): Change argument.
15464 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
15465 (x_produce_glyphs): Fix handling of left/right padding.
15466
154672008-02-01 Kenichi Handa <handa@m17n.org>
15468
15469 * coding.c (detect_coding_system): Fix for handling off
15470 inhibit_iso_escape_detection. Fix for the case that no coding
15471 system is defined for a specific coding category.
15472
154732008-02-01 Kenichi Handa <handa@m17n.org>
15474
15475 * font.c (font_matching_entity): Delete unused local var.
15476
15477 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
15478 opening a font.
15479
15480 * fileio.c (Finsert_file_contents): On recovering a file, assume
15481 Unix-like eol.
15482 (choose_write_coding_system): On auto-saving a file, force
15483 Unix-like eol.
15484
15485 * coding.c (setup_coding_system): Fix setting of
15486 coding->common_flags based on eol_type.
15487 (coding_inherit_eol_type): If PARENT is not nil, be sure to
15488 inherit from it.
15489
154902008-02-01 Kenichi Handa <handa@m17n.org>
15491
15492 * alloc.c (NSTATICS): Increas to 0x600.
15493
154942008-02-01 Kenichi Handa <handa@m17n.org>
15495
15496 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
15497 (ftfont_list): Don't check :name property.
15498 (ftfont_match): New function.
15499 (ftfont_pattern_entity): If the pattern doesn't contain
15500 FC_SPACING, don't assume FC_MONO.
15501
15502 * font.h (struct font_driver): New member `match'.
15503 (font_update_drivers): Adjust prototype.
15504
15505 * font.c (font_parse_fcname, font_parse_name): Don't change :name
15506 property of FONT.
15507 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
15508 them unconditionally.
15509 (font_matching_entity): New function.
15510 (font_open_by_name): Try font_matching_entity if exact match is
15511 not found.
15512 (font_update_drivers): Delete the arg FONT. Return a list of
15513 actually used backends. Don't free faces, font caches here.
15514 Don't store data in frame parameters. Don't call x_set_font.
15515 (Ffont_spec): Store :name property as is.
15516 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
15517 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
15518 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
15519 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
15520 Call font->driver->otf_gsub instead of font_otf_gsub.
15521
15522 * frame.c (x_set_font_backend): Do more works that were done in
15523 font_update_drivers before.
15524
15525 * xfont.c (xfont_match): New function.
15526 (xfont_driver): Set xfont_driver.match to xfont_match.
15527 (xfont_draw): Set font in GC if necessary.
15528
15529 * ftxfont.c (ftxfont_match): New function.
15530 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
15531
15532 * xftfont.c (xftfont_match): New function.
15533 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
15534
155352008-02-01 Kenichi Handa <handa@m17n.org>
15536
15537 * font.h (struct font): New member scalable.
15538 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
15539 (font_otf_gsub): Adjust prototype.
15540
15541 * font.c (font_otf_capability): Fix handling of the default langsys.
15542 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
15543 Check the contents of SPEC.
15544 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
15545 (check_gstring): New function.
15546 (REPLACEMENT_CHARACTER): New macro.
15547 (font_otf_gsub): New arg alternate_subst. Be sure to set all
15548 glyph codes of GSTRING.
15549 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
15550 (font_prepare_composition): Set cmp->glyph_len.
15551 (font_open_entity): Set font->scalable.
15552 (Ffont_get): Handle :otf property.
15553 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
15554 functions.
15555 (Fquery_font): Use font->font.full_name.
15556 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
15557 Sfont_otf_alternates.
15558
15559 * ftfont.c (ftfont_open): Set font->font.full_name and
15560 font->font.name properly. Fix calculation of font->font.height
15561 and font->min_width.
15562
15563 * ftxfont.c (ftxfont_create_gcs): New function.
15564 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
15565 (ftxfont_draw_backgrond): Fix filling region.
15566 (ftxfont_default_fid): New function.
15567 (ftxfont_open): Set xfont->fid to the return value of
15568 ftxfont_default_fid.
15569 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
15570 (ftxfont_done_face): Free only GCs that are created by
15571 ftxfont_create_gcs.
15572 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
15573
15574 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
15575 Clip to src->width, etc (not src->clip_XXX).
15576
15577 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
15578 FontBackend frame parameter.
15579
155802008-02-01 Kenichi Handa <handa@m17n.org>
15581
15582 * font.h (struct font_driver_list): New member `on'.
15583 (Fclear_font_cache): EXFUN it.
15584 (font_update_drivers): Extern it.
15585
15586 * font.c (font_unparse_fcname): Fix typo (swidth->width).
15587 (font_list_entities): Check driver_list->on.
c0943d3d 15588 (register_font_driver): Initialize `on' member to 0.
aac0c6e3
MR
15589 (font_update_drivers): New function.
15590 (Fclear_font_cache): Check driver_list->on.
15591
15592 * frame.h (Qfont_backend): Extern it.
15593 (x_set_font_backend): Extern it.
15594
15595 * frame.c (Qfont_backend): New variable.
15596 (frame_parms): New element for font-backend.
15597 (x_set_font_backend): New function.
15598
15599 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
15600 FontBackend frame parameter.
15601 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
15602 x_set_font_backend.
15603
15604 * xfont.c (xfont_list): Don't try listing by :name property if the
15605 name is not for XLFD.
15606
156072008-02-01 Kenichi Handa <handa@m17n.org>
15608
15609 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
15610 (LGLYPH_SET_TO): New macros.
15611 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
15612 element of G is vector or not.
15613 (font_at): Extern it.
15614
15615 * font.c: Include window.h.
15616 (font_lispy_object): New function.
15617 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
15618 end of valid glyph.
15619 (font_close_object): Fix getting (struct font *).
15620 (font_at): New function.
15621 (Ffont_get): If FONT is a font-object, get entity from it.
15622 (Ffont_make_gstring): Initialize elements of glyphs with nil.
15623 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
15624 range check.
15625 (Ffont_at): New function.
15626 (syms_of_font): Defsubr Sfont_at.
15627
15628 * xdisp.c (it_props): Move the entry for Qauto_composed to just
15629 before the entry for Qcomposition.
15630 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
15631 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
15632 the font in gstring.
15633 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
15634 LGLYPH_FORM (g) to detect the end of valid glyph.
15635 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
15636 we are composing with gstring.
15637
15638 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
15639 Check if adjustment is vector or not.
15640
15641 * Makefile.in (font.o): Make it depends on window.h.
15642
156432008-02-01 Kenichi Handa <handa@m17n.org>
15644
15645 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
15646 adjustment is vector or not.
15647
156482008-02-01 Miles Bader <miles@gnu.org>
15649
15650 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
15651
156522008-02-01 Kenichi Handa <handa@m17n.org>
15653
15654 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
15655 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
15656 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
15657
15658 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
15659 (DEVICE_DELTA): Fix typo.
15660 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
15661 LGLYPH format.
15662
15663 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
15664 the change of LGLYPH format.
15665
156662008-02-01 Kenichi Handa <handa@m17n.org>
15667
15668 * ftfont.c (ftfont_list): Fix typo.
15669 (ftfont_build_basic_charsets): Don't include letters with diacritics.
15670
156712008-02-01 Jan Djärv <jan.h.d@swipnet.se>
15672
15673 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
15674
15675 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
15676 xftface_info is non-NULL.
15677
156782008-02-01 Jan Djärv <jan.h.d@swipnet.se>
15679
15680 * ftfont.c (ftfont_list): Move misplaced #endif.
15681
156822008-02-01 Kenichi Handa <handa@m17n.org>
15683
15684 * ftfont.c (ftfont_list): Pay attention to the case that
15685 FC_CAPABILITY is not defined.
15686
156872008-02-01 Kenichi Handa <handa@m17n.org>
15688
15689 * xftfont.c (xftfont_open): Set charset related members to -1.
15690
15691 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
15692 QCname.
15693 (ftfont_open): Set charset related members to -1.
15694
15695 * fontset.c (Votf_script_alist): New variable.
15696 (syms_of_fontset): Initialize it.
15697 (fontset_font): Delete unused variable.
15698
15699 * fontset.h (Votf_script_alist): Extern it.
15700
15701 * font.c (font_find_for_lface): Optimize code.
15702
15703 * font.h (font_close_object, font_merge_old_spec): Extern them.
15704
157052008-02-01 Kenichi Handa <handa@m17n.org>
15706
15707 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
15708 (syms_of_font): Initialize them.
15709 (font_pixel_size): Allow float value in dpi.
15710 (font_prop_validate_type): Delete.
15711 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
15712 Change caller.
15713 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
15714 (font_prop_validate_extra): Delete.
15715 (font_prop_validate_spacing): New function.
15716 (font_property_table): Add elements for all known properties.
15717 (get_font_prop_index): Rename from check_font_prop_name. New
15718 argument FROM. Change caller.
15719 (font_prop_validate): Validate all known properties.
15720 (font_put_extra): Delete argument force. Change caller.
15721 (font_expand_wildcards): Make it static. Fix the way of shrinking
15722 the possible range.
15723 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
15724 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
15725 Change caller.
15726 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
15727 (font_parse_fcname): Delete argument merge. Fix parsing of point
15728 size. Don't validate properties values here. Change caller.
15729 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
15730 (font_open_by_name): Delete unused variable.
15731 (Ffont_spec): Likewise. Validate property values.
15732 (Ffont_match_p): New function.
15733
15734 * font.h (QCscalable): Extern it.
15735 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
15736
15737 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
15738
15739 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
15740 (xfont_list_pattern): New function.
15741 (xfont_list): Use xfont_list_pattern.
15742
157432008-02-01 Kenichi Handa <handa@m17n.org>
15744
15745 * font.h (Flist_fonts): EXFUN it.
15746
157472008-02-01 Jason Rumney <jasonr@gnu.org>
15748
15749 * w32term.c (w32_initialize): Add back smoothing_type and
15750 smoothing_enabled definitions.
15751
157522008-02-01 Kenichi Handa <handa@m17n.org>
15753
15754 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
15755 s->face->font on determining underline position.
15756
157572008-02-01 Kenichi Handa <handa@m17n.org>
15758
15759 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
15760 (font_has_char): Accept font-object too.
15761 (font_find_for_lface): Try at first with a size specified in face.
15762
157632008-02-01 Kenichi Handa <handa@m17n.org>
15764
15765 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
15766 font_open_by_name.
15767
157682008-02-01 Kenichi Handa <handa@m17n.org>
15769
15770 * font.h (QCspacing, QCdpi): Extern them.
15771 (enum font_spacing): New enum.
15772 (FONT_PIXEL_SIZE_QUANTUM): New macro.
15773
15774 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
15775 (QCspacing, QCdpi): New variables.
15776 (syms_of_font): Initialize them.
15777 (font_pixel_size): New function.
15778 (font_put_extra): New function.
15779 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
15780 in FONT_EXTRA.
15781 (font_parse_fcname): Handle enumerated values (e.g. bold).
15782 Fix handling font size. Add QCname property that contains only
15783 unknown properties.
15784 (font_score): Change argument. Change caller. Pay attention to
15785 FONT_PIXEL_SIZE_QUANTUM.
15786 (font_sort_entites, font_list_entities, font_find_for_lface)
15787 (font_open_for_lface, font_open_by_name): Fix handling of font size.
15788 (Ffont_spec): Add QCname property that contains only unknown properties.
15789
15790 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
15791 include weight in listing pattern, instead check weight of each
15792 listed font. Don't include scalable in pattern. Pay attention to
15793 FONT_PIXEL_SIZE_QUANTUM.
15794
157952008-02-01 Kenichi Handa <handa@m17n.org>
15796
15797 * font.c (font_parse_fcname): Fix parsing of point-size.
15798 (font_unparse_fcname): Produce symbolic names for style properties.
15799 (font_list_entities): Handle float size correctly.
15800 (font_open_by_name): Prefer `normal' property values if the name
15801 doesn't specify them.
15802
15803 * fontset.c (Finternal_char_font): Use font_get_name, not
15804 Ffont_xlfd_name.
15805
15806 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
15807 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
15808 pattern. Don't force scalable.
15809
15810 * xftfont.c (xftfont_open): For generating a name, start from
15811 96-byte buffer.
15812
158132008-02-01 Jan Djärv <jan.h.d@swipnet.se>
15814
15815 * frame.h (x_new_fontset2): Fix prototype.
15816
158172008-02-01 Kenichi Handa <handa@m17n.org>
15818
15819 * font.h (struct font_driver): Delete member parse_name.
15820 (font_match_p, font_get_spec, font_parse_fcname)
15821 (font_unparse_fcname): Extern them.
15822 (font_get_name): Adjust prototype.
15823
15824 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
15825 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
15826 (font_expand_wildcards): Fix handling ENCODING field. Avoid
15827 unnecessary checks for weight, slant, and swidth.
15828 (font_parse_fcname): New function.
15829 (font_unparse_fcname): New function.
15830 (font_parse_name): New function.
15831 (font_match_p): New function.
15832 (font_get_name): Change return value to Lisp string.
15833 (font_get_spec): New function.
15834 (Qunspecified, Qignore_defface): Don't extern them.
15835 (font_find_for_lface): Assume that LFACE is fully specified.
15836 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
15837 object, use it for FACE.
15838 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
15839 driver->parse_name.
15840 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
15841
15842 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
15843 prototype.
15844
15845 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
15846 argument F. Don't call Fnew_fontset. Instead, directly call
15847 make_fontset.
15848
15849 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
15850
15851 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
15852 of x_new_fontset2.
15853
15854 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
15855 (Qsans__serif): New variables.
15856 (ftfont_generic_family_list): New variable.
15857 (syms_of_ftfont): Initialize the above variables.
15858 (ftfont_pattern_entity): Delete argument NAME.
15859 (ftfont_list_generic_family): New function.
15860 (ftfont_parse_name): Delete this function.
15861 (ftfont_list): Try generic family only when FcFontList found no font.
15862 (ftfont_list_family): Fix args to FcObjectSetBuild.
15863
15864 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
15865 object in attrs[LFACE_FONT_INDEX].
15866 (set_lface_from_font_name): Cancel all changes for font-backend.
15867 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
15868 function.
15869 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
15870 font object in QCfont attribute.
15871 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
15872 (realize_default_face) [USE_FONT_BACKEND]: Call
15873 set_lface_from_font_and_fontset.
15874
15875 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
15876 "fixed", and signal error here if no suitable font was found.
15877
15878 * xfont.c (xfont_parse_name): Delete this function.
15879
15880 * xftfont.c (xftfont_open): Change coding style of error
15881 handling. Generate fontconfig's fontname pattern.
15882
15883 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
15884 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
15885
15886 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
15887 Both args FONTSET and FONT_OBJECT must be existing ones.
15888
158892008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15890
15891 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
15892
158932008-02-01 Kenichi Handa <handa@m17n.org>
15894
15895 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
15896
15897 * font.h (struct font): Fix typo.
15898
15899 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
15900 XLFD_XXX_INDEX.
15901 (enum xlfd_field_mask): New enum.
15902 (intern_font_field): Changed argument. Change caller. If digits
15903 are followed by non-digits, return a symbol.
15904 (font_expand_wildcards): New function.
15905 (font_parse_xlfd): Fix wildcard handling.
15906 (Ffont_spec): If :name is specified, reflect the info in the other
15907 properties.
15908
15909 * ftfont.c (ftfont_pattern_entity): Fix typo.
15910 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
15911 locale.
15912
159132008-02-01 Kenichi Handa <handa@m17n.org>
15914
15915 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
15916
15917 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
15918 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
15919 registry doesn't specify encoding part.
15920 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
15921 (font_open_by_name): At first try parsing the name.
15922 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
15923 as Lisp symbols.
15924
15925 * fontset.c (reorder_font_vector): Pay attention to the case that
15926 the 3rd element of font_def is nil.
15927 (fontset_font): For the default fontset, append one more fontset
15928 elements for a script-based font specification. Don't add script
15929 attribute on finding a font.
15930 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
15931 font name.
15932 (fontset_ascii_font): If a font can't be opened, return nil.
15933
15934 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
15935 (ftfont_pattern_entity): New function.
15936 (ftfont_get_cache): Assume that freetype_font_cache is already
15937 initialized.
15938 (ftfont_list): Handle the case that a file is specified in font
15939 name. Use ftfont_pattern_entity to generate entities.
15940 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
15941 (syms_of_ftfont): Initialize freetype_font_cache.
15942
15943 * xftfont.c (xftfont_open): Make the font name fontconfig's
15944 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
15945 (xftfont_close): Free font->font.name if not NULL.
15946
15947 * xfont.c (xfont_list): If script is specified for a font, return
15948 null_vector.
15949 (xfont_list_family): Declare argument type.
15950
15951 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
15952 name, set LFACE_FONT (lface) to nil.
15953
15954 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
15955 return Qnil.
15956
159572008-02-01 Kenichi Handa <handa@m17n.org>
15958
15959 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
15960 (standard_args): Add "-enable-font-backend".
15961
159622008-02-01 Kenichi Handa <handa@m17n.org>
15963
15964 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
15965 (struct xftdraw_list, xftdraw_list): Delete them.
15966 (register_xftdraw, check_xftdraw): Delete them.
15967 (xftfont_prepare_face): Don't call register_xftdraw.
15968 (xftfont_done_face): Don't call check_xftdraw.
15969 (xftfont_draw): Get background color only when with_background is
15970 nonzero.
15971
15972 * xfont.c (xfont_encode_char): Fix calculation of char2b.
15973
159742008-02-01 Kenichi Handa <handa@m17n.org>
15975
15976 These changes are for the new font handling codes.
15977
15978 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
15979 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
15980 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
15981 (FONTSRC, FONTOBJ): New variables.
15982 (obj): Add $(FONTOBJ).
15983 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
15984 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
15985 @LIBOTF_LIBS@.
15986 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
15987 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
15988
15989 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
15990
15991 * character.h (Vscript_representative_chars): Extern it.
15992
15993 * character.c (Vscript_representative_chars): New variable.
15994 (syms_of_character): Declare it as a Lisp variable.
15995
15996 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
15997 enable_font_backend is nonzero, accept the composition method
15998 COMPOSITION_WITH_GLYPH_STRING.
15999
16000 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
16001 enumeration COMPOSITION_WITH_GLYPH_STRING.
16002
16003 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
16004 members clip_x, clip_y, clip_width, and clip_height.
16005 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
16006
16007 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
16008 --enable-font-backend. Call syms_of_font.
16009
16010 * fns.c (assoc_no_quit): New function.
16011
16012 * fontset.h (FONT_INFO_FROM_FACE): New macro.
16013 (face_for_font, new_fontset_from_font)
16014 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
16015
16016 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
16017 (fontset_font, fontset_ascii, face_for_char)
16018 (make_fontset_for_ascii_face, Ffont_info)
16019 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
16020 is nonzero, use font-backend mechanism.
16021 (find_font_encoding): Make it non-static.
16022 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
16023 New functions.
16024
16025 * frame.h (struct frame): New members resx and resy.
16026 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
16027 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
16028
16029 * frame.c [USE_FONT_BACKEND]: Include "font.h".
16030 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
16031
16032 * lisp.h (assoc_no_quit): Extern it.
16033
16034 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
16035 Through out the file, use FONT_INFO_FROM_FACE instead of
16036 FONT_INFO_FROM_ID, use get_per_char_metric instead of
16037 rif->per_char_metric.
16038 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
16039 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
16040 (get_glyph_face_and_encoding, fill_composite_glyph_string)
16041 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
16042 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
16043 nonzero, use font-backend mechanism.
16044 (get_per_char_metric): New function.
16045
16046 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
16047 (set_lface_from_font_name)
16048 (set_font_frame_param, free_realized_face)
16049 (prepare_face_for_display, clear_face_gcs)
16050 (Finternal_set_font_selection_order, realize_x_face)
16051 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
16052 font-backend mechanism.
16053 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
16054 (load_face_font) [USE_FONT_BACKEND]: Abort.
16055 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
16056 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
16057
16058 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
16059 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
16060 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
16061 nonzero, register all available font drivers. Call
16062 x_default_font_parameter for deciding a font.
16063 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
16064
16065 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
16066 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
16067 (x_set_glyph_string_clipping_exactly)
16068 (x_compute_glyph_string_overhangs)
16069 (x_draw_glyph_string_foreground)
16070 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
16071 (x_free_frame_resources) [USE_FONT_BACKEND]: If
16072 enable_font_backend is nonzero, use font-backend mechanism.
16073 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
16074
160752008-02-01 Kenichi Handa <handa@m17n.org>
16076
16077 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
16078 system_eol_type.
16079 (syms_of_coding): Initialize system_eol_type.
16080
16081 * process.c (Fset_process_coding_system): Inherit system's eol
16082 format if necessary.
16083
160842008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16085
16086 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
16087
160882008-02-01 Kenichi Handa <handa@m17n.org>
16089
16090 * coding.c (decode_eol): Pay attention to buffer relocation in
16091 del_range_2.
16092 (decode_coding): Call decode_eol before restoring undo_list.
16093
160942008-02-01 Kenichi Handa <handa@m17n.org>
16095
16096 * charset.c (Fdefine_charset_internal): Fix setting of
16097 emacs_mule_bytes.
16098
160992008-02-01 Kenichi Handa <handa@m17n.org>
16100
16101 * keyboard.c (read_char): Check if C is a character or not before
16102 looking up Vkeyboard_translate_table.
16103
161042008-02-01 Kenichi Handa <handa@m17n.org>
16105
16106 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
16107 condition to terminate the loop.
16108
161092008-02-01 Kenichi Handa <handa@m17n.org>
16110
16111 * coding.c (produce_composition): Compare charbuf[i] instead of
16112 args[i] against 0.
16113 (Fterminal_coding_system): Use EQ to compare Lisp objects.
16114
161152008-02-01 Kenichi Handa <handa@m17n.org>
16116
16117 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
16118 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
16119 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
16120 detect_coding.
16121 (emacs_mule_char): Handle old style (Emacs 20) component character
16122 of a composition.
16123 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
16124 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
16125 composition rule.
16126 (decode_coding_emacs_mule): Handle invalid bytes correctly.
16127
161282008-02-01 Kenichi Handa <handa@m17n.org>
16129
16130 * coding.c (encode_coding_ccl): Allocate destination dynamically
16131 when necessary.
16132
161332008-02-01 Kenichi Handa <handa@m17n.org>
16134
16135 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
16136 the loop. When quitted, show a proper error message.
16137
161382008-02-01 Kenichi Handa <handa@m17n.org>
16139
16140 * xterm.c (x_set_glyph_string_clipping_exactly): Set
16141 src->clip_head and src->clip_tail temporarily instead of src->hl.
16142
16143 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
16144 character sequence.
16145 (Fccl_execute_on_string): Use ASET, not XSET.
16146
161472008-02-01 Kenichi Handa <handa@m17n.org>
16148
16149 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
16150
161512008-02-01 Kenichi Handa <handa@m17n.org>
16152
16153 * coding.c (decode_coding): Fix the condition of terminating the
16154 decoding loop.
16155
161562008-02-01 Kenichi Handa <handa@m17n.org>
16157
16158 * data.c (Faset): On setting a character bigger than 255 in a
16159 unibyte string, signal an error instead of make the string multibyte.
16160
161612008-02-01 Kenichi Handa <handa@m17n.org>
16162
16163 * charset.c (map_charset_chars): Fix for ascii-compatible charset
16164 made by a mapping table.
16165
161662008-02-01 Kenichi Handa <handa@m17n.org>
16167
16168 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
16169 not.
16170 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
16171 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
16172
16173 * xterm.c (x_draw_composite_glyph_string_foreground): Check
16174 s->face is NULL or not.
16175
161762008-02-01 Kenichi Handa <handa@m17n.org>
16177
16178 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
16179 (x_draw_glyph_string): Fix drawing of right_overhang and
16180 left_overhang around/on cursor.
16181
16182 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
16183
161842008-02-01 Kenichi Handa <handa@m17n.org>
16185
16186 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
16187
161882008-02-01 Kenichi Handa <handa@m17n.org>
16189
16190 * coding.c (Fdefine_coding_system_internal)
16191 (Fdefine_coding_system_alias): Avoid a duplicated element in
16192 Vcoding_system_alist.
16193
161942008-02-01 Kenichi Handa <handa@m17n.org>
16195
16196 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
16197
16198 * coding.c (Qcoding_system_define_form): New variable.
16199 (syms_of_coding): Intern and staticpro it.
16200 (Fcoding_system_p): Check Qcoding_system_define_form.
16201 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
16202
16203 * coding.h (CODING_SYSTEM_P): If ID is not available, call
16204 Fcoding_system_p.
16205 (CHECK_CODING_SYSTEM): If ID is not available, call
16206 Fcheck_coding_system.
16207 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
16208 Try also Fcheck_coding_system.
16209
162102008-02-01 Kenichi Handa <handa@m17n.org>
16211
16212 * coding.c (code_conversion_restore): GCPRO arg.
16213
162142008-02-01 Kenichi Handa <handa@m17n.org>
16215
16216 * character.c (lisp_string_width): Check multibyteness of STRING.
16217
162182008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16219
16220 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
16221 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
16222 (decode_mac_font_name): Use decode_coding_c_string instead of
16223 decode_coding.
16224 (x_load_font): Initialize fontp->fontset to -1. Set
16225 fontp->encoding_type.
16226
162272008-02-01 Kenichi Handa <handa@m17n.org>
16228
16229 * search.c (search_buffer): Give up BM search on case-fold-search
16230 if one of a target character has a case-equivalence of different
8307f923 16231 byte length even if that target character is an ASCII.
aac0c6e3
MR
16232 (simple_search): Fix calculation of byte length of matched text.
16233 (boyer_moore): Fix handling of case-equivalent multibyte characters.
16234
162352008-02-01 Kenichi Handa <handa@m17n.org>
16236
16237 * coding.c (decode_coding): Fix handling of invalid bytes.
16238
162392008-02-01 Kenichi Handa <handa@m17n.org>
16240
16241 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
16242 Unicode characters.
16243
162442008-02-01 Kenichi Handa <handa@m17n.org>
16245
16246 * coding.c (encode_coding_object): If a pre-write-conversion
16247 function makes a new buffer, kill it.
16248
162492008-02-01 Kenichi Handa <handa@m17n.org>
16250
16251 * coding.c (QCascii_compatible_p): New variable.
16252 (syms_of_coding): Initialize it.
16253 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
16254 calling string_char.
16255 (record_conversion_result): Add `default:' case.
16256 (coding_charset_list): Delete unused variable `coding_type'.
16257 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
16258 property in the plist of the coding system.
16259 (Fcoding_system_put): Check QCascii_compatible_p.
16260
162612008-02-01 Miles Bader <miles@gnu.org>
16262
16263 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
16264 removed calculation of frame `f', as it's now used.
16265
162662008-02-01 Kenichi Handa <handa@m17n.org>
16267
16268 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
16269 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
16270 (UNIDATA): New variable.
16271 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
16272 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
16273 $(RUN_TEMACS) unconditionally.
16274
162752008-02-01 Kenichi Handa <handa@m17n.org>
16276
16277 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
16278 (admindir): New variable.
16279 ($(lispsource)international/charprop.el): New target.
16280
162812008-02-01 Miles Bader <miles@gnu.org>
16282
16283 * character.c (chars-in-region): Remove obsolete function.
16284 (syms_of_character): Remove its initialization.
16285
162862008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
16287
16288 * w32select.c (validate_coding_system)
16289 (setup_windows_coding_system): New functions.
16290 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
16291 setup_windows_coding_system.
16292 (setup_config, Fw32_get_clipboard_data): Use
16293 validate_coding_system.
16294 (Fx_selection_exists): Move call to setup_config to a place
16295 where signals are allowed.
16296
16297 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
16298 (Fcheck_coding_system): Add declarations.
16299
163002008-02-01 Kenichi Handa <handa@m17n.org>
16301
16302 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
16303
163042008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16305
16306 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
16307 string as the second argument for x_new_fontset.
16308
163092008-02-01 Kenichi Handa <handa@m17n.org>
16310
16311 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
16312 (encode_coding_object): Use safe_call instead of call2.
16313
163142008-02-01 Kenichi Handa <handa@m17n.org>
16315
16316 * fontset.c (Fset_fontset_font): Check family element of a given vector.
16317
16318 * Makefile.in (lisp): Include charprop.el.
16319
163202008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16321
16322 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
16323 Not sure if it's unnecessary.
16324
163252008-02-01 Steven Tamm <steventamm@mac.com>
16326
16327 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
16328 some possibly unnecessary fontset checking code that crashed
16329 when creating a new frame.
16330
163312008-02-01 Kenichi Handa <handa@m17n.org>
16332
16333 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
16334 lookup_face.
16335
16336 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
16337
16338 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
16339
163402008-02-01 Kenichi Handa <handa@m17n.org>
16341
16342 * coding.c: Cancel the change done in HEAD on 2008-02-01.
16343 (coding_charset_list): New function.
16344
16345 * coding.h (coding_charset_list): Extern it.
16346
163472008-02-01 Kenichi Handa <handa@m17n.org>
16348
16349 * fontset.c (Fset_fontset_font): Call find_font_encoding with
16350 concatenation of family and registry.
16351
163522008-02-01 Kenichi Handa <handa@m17n.org>
16353
16354 * character.h (BYTE8_STRING): Fix typo.
16355
16356 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
16357 string to multibyte (sync to HEAD).
16358
16359 * casefiddle.c (casify_region): Handle changes in byte-length
16360 using replace_range_2 (sync to HEAD).
16361
163622008-02-01 Andreas Schwab <schwab@suse.de>
16363
16364 * chartab.c (map_char_table): GCPRO table and arg.
16365
163662008-02-01 Kenichi Handa <handa@m17n.org>
16367
16368 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
16369 already at limit.
16370
163712008-02-01 Kenichi Handa <handa@m17n.org>
16372
16373 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
16374 instead of fast_c_string_match_ignore_case.
16375 (find_font_encoding): Change argument to Lisp_Object. Use
16376 fast_string_match_ignore_case instead of
16377 fast_c_string_match_ignore_case. Change caller.
16378
163792008-02-01 Kenichi Handa <handa@m17n.org>
16380
16381 * xdisp.c (get_next_display_element): In unibyte case, decide to
16382 display in octal form by checking a character by
16383 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
16384
16385 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
16386
16387 * character.c (unibyte_has_multibyte_table): New variable.
16388
16389 * character.h (unibyte_has_multibyte_table): Extern it.
16390 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
16391
163922008-02-01 Kenichi Handa <handa@m17n.org>
16393
16394 * coding.c (encode_coding_iso_2022): Fix handling of charset
16395 annotation.
16396
163972008-02-01 Kenichi Handa <handa@m17n.org>
16398
16399 * coding.c (setup_coding_system): If coding_system is nil, use
16400 Qundecided.
16401 (Fterminal_coding_system): Return nil if terminal coding system is
16402 `undecided'.
16403 (syms_of_coding): Define coding-system `undecided' here. Setup
16404 terminal_coding as `undecided'.
16405
164062008-02-01 Kenichi Handa <handa@m17n.org>
16407
16408 * xdisp.c (message_dolog, set_message_1): Call
16409 unibyte_char_to_multibyte with arg type int.
16410
16411 * lread.c (read1): Fix reading of a char-table.
16412
16413 * print.c (print_object): Include sub char-table in circularities
16414 detection.
16415
164162008-02-01 Kenichi Handa <handa@m17n.org>
16417
16418 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
16419 Append the found sequences in car of ARGS instead of prepending.
16420
164212008-02-01 Kenichi Handa <handa@m17n.org>
16422
16423 * fileio.c (report_file_error): Make a unibyte string from
16424 strerror (errorno).
16425 (Fsubstitute_in_file_name): Fix the arg to
16426 unibyte_char_to_multibyte. It is evaluated twice.
16427
164282008-02-01 Kenichi Handa <handa@m17n.org>
16429
16430 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
16431
164322008-02-01 Kenichi Handa <handa@m17n.org>
16433
16434 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
16435 BOM is not found.
16436 (detect_coding, detect_coding_system): Optimization for ISO-2022
16437 when no 8-bit data is found.
16438
164392008-02-01 Jason Rumney <jasonr@gnu.org>
16440
16441 * w32fns.c (x_to_w32_font): Update to use new coding struct.
16442
164432008-02-01 Kenichi Handa <handa@m17n.org>
16444
16445 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
16446 CHARS.
16447
164482008-02-01 Steven Tamm <steventamm@mac.com>
16449
16450 * macterm.c (mac_encode_char): Add charset argument and update
16451 to use encoding_type.
16452 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
16453 switch to pure fontset.
16454 (decode_mac_font_name): Temporarily remove decoding.
16455 (x_font_name_to_mac_font_name): Temporarily remove encoding.
16456 (x_load_font): Temporarily remove encoding.
16457
164582008-02-01 Kenichi Handa <handa@m17n.org>
16459
16460 * xfaces.c (Fface_font): If frame is not on a window system,
16461 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
16462 refer to face->font.
16463 (split_font_name_into_vector, build_font_name_from_vector)
16464 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
16465 when HAVE_WINDOW_SYSTEM is defined.
16466
164672008-02-01 Kenichi Handa <handa@m17n.org>
16468
16469 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
16470 (x_produce_glyphs): Fix setting of members of cmp in case
16471 cmp->glyph_len is zero.
16472
16473 * fontset.c (Fset_fontset_font): Fix docstring.
16474 (Ffontset_info): Make it backward compatible. New arg ALL.
16475
164762008-02-01 Kim F. Storm <storm@cua.dk>
16477
16478 * process.c (read_process_output): Grow decoding_buf when needed;
16479 this could cause a crash in allocate_string and compact_small_strings.
16480
164812008-02-01 Kenichi Handa <handa@m17n.org>
16482
16483 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
16484
164852008-02-01 Kenichi Handa <handa@m17n.org>
16486
16487 * coding.c (setup_coding_system): Set coding->common_flags
16488 correctly for raw-text.
16489 (consume_chars): On encoding unibyte text by raw-text, don't check
16490 multibyte form.
16491 (encode_coding): On encoding by raw-text, never use translation tables.
16492
16493 * fileio.c (e_write): Short cut for the case of no encoding.
16494
164952008-02-01 Kenichi Handa <handa@m17n.org>
16496
16497 * coding.c (detect_coding, detect_coding_system): Delete unused
16498 variables.
16499
165002008-02-01 Kenichi Handa <handa@m17n.org>
16501
16502 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
16503 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
16504
165052008-02-01 Kenichi Handa <handa@m17n.org>
16506
16507 * coding.c (Ffind_coding_systems_region_internal): Include
16508 raw-text and no-conversion in the result.
16509
165102008-02-01 Kenichi Handa <handa@m17n.org>
16511
16512 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
16513 (load_font_get_repertory): Delete unnecessary check of ENCODING of
16514 FONT_DEF.
16515 (font_def_arg, add_arg, from_arg, to_arg): New args.
16516 (set_fontset_font): Change argument.
16517 (Fset_fontset_font): Fix for the case that TARGET is a script
16518 name and charset name.
16519 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
16520
165212008-02-01 Kenichi Handa <handa@m17n.org>
16522
16523 * fontset.c (fontset_font): Rename from fontset_face. Change return
16524 value.
16525 (face_suitable_for_char_p, face_for_char): Adjust for the change
16526 of fontset_font.
16527 (make_fontset_for_ascii_face): Fix setting of the fontset element
16528 for ASCII.
16529 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
16530 to get a font name.
16531 (Ffontset_info): Adjust for the change of fontset_font.
16532
16533 * coding.c (emacs_mule_char): Check invalid code more rigidly.
16534
16535 * character.h (LEADING_CODE_LATIN_1_MIN)
16536 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
16537
165382008-02-01 Kenichi Handa <handa@m17n.org>
16539
16540 * editfns.c (check_translation): New function.
16541 (Ftranslate_region_internal): Handle M:N mapping.
16542
165432008-02-01 Kenichi Handa <handa@m17n.org>
16544
16545 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
16546
165472008-02-01 Kenichi Handa <handa@m17n.org>
16548
16549 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
16550 goto invalid_code.
16551 (decode_coding_iso_2022): Fix handling of invalid designation.
16552
16553 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
16554 after calling code_conversion_save.
16555
165562008-02-01 Kenichi Handa <handa@m17n.org>
16557
16558 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
16559
16560 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
16561
16562 * fontset.c: Include "intervals.h".
16563 (fontset_face): Fix comparing of Lisp_Objects.
16564 (free_face_fontset, new_fontset_from_font_name): Fix
16565 Lisp_Object/int mixup.
16566
16567 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
16568
16569 * coding.c: Add many prototypes for static functions.
16570 (get_translation_table): Allow max_lookup to be NULL.
16571 (decode_coding, Ffind_coding_systems_region_internal)
16572 (Funencodable_char_position, Fcheck_coding_systems_region): Call
16573 get_translation_table with max_lookup NULL.
16574
165752008-02-01 Kenichi Handa <handa@m17n.org>
16576
16577 * coding.c (get_translation_table): Declare it as Lisp_Object.
16578 (LOOKUP_TRANSLATION_TABLE): New macro.
16579 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
16580 instead of CHAR_TABLE_REF.
16581
165822008-02-01 Kenichi Handa <handa@m17n.org>
16583
16584 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
16585 annotation data format.
16586 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
16587 Change arguments FROM and TO to single argument NCHARS. Change caller.
16588 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
16589 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
16590 (decode_coding_ccl, decode_coding_charset): Pay attention to
16591 coding->charbuf_used.
16592 (get_translation): New function.
16593 (produce_chars): New arguments translation_table and last_block.
16594 Translate characters here. Return number of carryover chars.
16595 Change caller.
16596 (produce_composition): New argument pos. Change caller.
16597 Adjust for the change of annotation data format.
16598 (produce_charset, produce_annotation): Likewise.
16599 (decode_coding, encode_coding): Don't call translate_chars.
16600 (consume_chars): New arg translation_table. Change caller.
16601 (translate_chars): Delete.
16602 (syms_of_coding): Make translation-table's number of extra slots 2.
16603
166042008-02-01 Kenichi Handa <handa@m17n.org>
16605
16606 * search.c (simple_search): Fix setting this_pos_byte in backward
16607 search.
16608
16609 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
16610 byte sequence.
16611 (detect_coding_ccl): Fix setting of the variable valids.
16612
166132008-02-01 Kenichi Handa <handa@m17n.org>
16614
16615 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
16616
16617 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
16618
16619 * editfns.c (Ftranslate_region_internal): Rename from
16620 Ftranslate_region. Accept a char-table in TABLE.
16621 (syms_of_editfns): Defsubr Stranslate_region_internal.
16622
16623 * xfaces.c (set_lface_from_font_name): If a font is specified for
16624 a frame, generate a fontset from the font.
16625 (build_scalable_font_name): If the scalable font is requested for
16626 a specific size, don't change that size.
16627 (try_font_list): Try a scalable font also in the case that a
16628 pattern string is specified.
16629
166302008-02-01 Kenichi Handa <handa@m17n.org>
16631
16632 * xfaces.c (Fface_font): New optional arg CHARACTER.
16633
166342008-02-01 Kenichi Handa <handa@m17n.org>
16635
16636 * charset.h (CHARSET_OFFSET): New macro.
16637
166382008-02-01 Kenichi Handa <handa@m17n.org>
16639
16640 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
16641
16642 * fontset.c (fontset_face): Handle the case that repertory is a
16643 char-table.
16644 (find_font_encoding): Return nil for unknown encoding.
16645 (Fset_fontset_font): Ignore a font of unknown encoding.
16646
166472008-02-01 Kenichi Handa <handa@m17n.org>
16648
16649 * keymap.c (describe_vector): Handle default value of a char table.
16650
16651 * fontset.c (fontset_face): Handle fallback fonts correctly.
16652 (Ffontset_info): Return infomation about fallback fonts.
16653
166542008-02-01 Kenichi Handa <handa@m17n.org>
16655
16656 * fontset.c (FONTSET_DEFAULT): New macro.
16657 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
16658 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
16659 the case that it is nil.
16660 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
16661 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
16662
16663 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
16664 subset or superset.
16665
166662008-02-01 Kenichi Handa <handa@m17n.org>
16667
16668 * emacs.c (main): Call init_charset after syms_of_XXX.
16669
16670 * charset.c (Vcharset_map_directory): Delete.
16671 (Vcharset_map_path): New variable.
16672 (load_charset_map_from_file): Use Vcharset_map_path instead.
16673 (init_charset): Initialize Vcharset_map_path.
16674 (syms_of_charset): Delete declaration of "charset-map-directory",
16675 add declaration of "charset-map-path".
16676
166772008-02-01 Kenichi Handa <handa@m17n.org>
16678
16679 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
16680 ASCII only string.
16681
16682 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
16683
16684 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
16685 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
16686
166872008-02-01 Kenichi Handa <handa@m17n.org>
16688
16689 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
16690
16691 * coding.c (QCmnemonic, QCdefalut_char)
16692 (QCdecode_translation_table, QCencode_translation_table)
16693 (QCpost_read_conversion, QCpre_write_conversion): New variables.
16694 (get_translation_table): Return a list of translation tables if
16695 necessary.
16696 (decode_coding): Call get_translation_table with ENCODEP 0.
16697 (char_encodable_p): If translation_table is non-nil, always call
16698 translate_char.
16699 (Fdefine_coding_system_internal): Accept list of translation
16700 tables as :encode-translation-table and :decode-translation-table.
16701 (Fcoding_system_put): New function.
16702 (syms_of_coding): Declare new symbols. Defsubr
16703 Scoding_system_put.
16704 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
16705 typically JISX0212.
16706
16707 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
16708 when the charset is superset type.
16709
16710 * character.c (translate_char): Accept list of translation tables.
16711
167122008-02-01 Kenichi Handa <handa@m17n.org>
16713
16714 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
16715 (CODING_ATTR_TRANS_TBL): New macro.
16716
16717 * coding.c (get_translation_table): New function.
16718 (translate_chars): Fix the bug of skipping annotation data.
16719 (decode_coding, encode_coding): Utilize get_translation_table.
16720 (char_encodable_p, Funencodable_char_position): Translate char if
16721 necessary.
16722 (Ffind_coding_systems_region_internal)
16723 (Fcheck_coding_systems_region): Setup translation table for encode
16724 in a coding system attribute vector in advance.
16725 (Fdefine_coding_system_internal): Allow a symbol as translation
16726 table. For shift-jis type coding system, allow 4th charset.
16727
167282008-02-01 Kenichi Handa <handa@m17n.org>
16729
16730 * coding.c (decode_coding_sjis): Check the first byte rigidly.
16731
16732 * xdisp.c (get_next_display_element): Pass -1 as POS to
16733 FACE_FOR_CHAR if displaying a C-string.
16734
167352008-02-01 Kenichi Handa <handa@m17n.org>
16736
16737 * composite.c (get_composition_id): Handle xoff and yoff in a
16738 composition rule.
16739
16740 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
16741 (struct composition): New member lbearing and rbearing.
16742
16743 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
16744 (x_get_glyph_overhangs): Handle a composition glyph.
16745 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
16746
16747 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
16748 composition glyph.
16749
167502008-02-01 Kenichi Handa <handa@m17n.org>
16751
16752 * print.c: Include charset.h.
16753 (Vprint_charset_text_property): New variable.
16754 (Qdefault): Extern it.
16755 (PRINT_STRING_NON_CHARSET_FOUND)
16756 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
16757 (print_check_string_result): New variable.
16758 (print_check_string_charset_prop): New function.
16759 (print_prune_charset_plist): New variable.
16760 (print_prune_string_charset): New function.
16761 (print_object): Call print_prune_string_charset if
16762 Vprint_charset_text_property is not t.
16763 (print_interval): Print nothing if interval->plist is nil.
16764 (syms_of_print): Declare Vprint_charset_text_property as a lisp
16765 variable. Init and staticpro print_prune_charset_plist.
16766
167672008-02-01 Kenichi Handa <handa@m17n.org>
16768
16769 * fontset.c (new_fontset_from_font_name): Use the specified font
16770 for all characters in the new fontset.
16771
16772 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
16773 OBJECT args.
16774
16775 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
16776 OBJECT args for composition too.
16777
16778 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
16779 OBJECT args.
16780
167812008-02-01 Kenichi Handa <handa@m17n.org>
16782
16783 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
16784
16785 * fontset.c (reorder_font_vector): Adjust for the change of
16786 FONT_DEF format.
16787 (fontset_face): New arg id. Change caller.
16788 (face_for_char): New args pos and object.
16789 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
16790 (fs_query_fontset): Check NAME by Fassoc too.
16791 (Fset_fontset_font): Allow non-XLFD font name.
16792 (Ffontset_info): Adjust for the change of FONT_DEF format.
16793
16794 * fontset.h (face_for_char): Adjust prototype.
16795
16796 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
16797 (append_space, extend_face_to_end_of_line)
16798 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
16799 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
16800
16801 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
16802 POS and OBJECT args.
16803
16804 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
16805 POS and OBJECT args.
16806
168072008-02-01 Jason Rumney <jasonr@gnu.org>
16808
16809 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
16810 of GlobalAlloc'ed memory.
16811
168122008-02-01 Kenichi Handa <handa@m17n.org>
16813
16814 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
16815
16816 * charset.h (charset_table_used): Delete extern.
16817
16818 * charset.c (charset_table_used): Make it static.
16819 (map_charset_chars): Fix args to c_function with.
16820
16821 * chartab.c (map_sub_char_table_for_charset): Fix args to
16822 c_function with.
16823
16824 * coding.h (enum coding_result_code): Delete
16825 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
16826
16827 * coding.c (Qinsufficient_source, Qinconsistent_eol)
16828 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
16829 (Vlast_code_conversion_error): New variables.
16830 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
16831 (ONE_MORE_BYTE): Record error if any instead of signaling an
16832 error. If non-ASCII multibyte char is found, return the negative
16833 value of the code. All callers changed to check it.
16834 (ONE_MORE_BYTE_NO_CHECK): Likewise.
16835 (record_conversion_result): New function. Change all codes setting
16836 coding->result to call this function.
16837 (detect_coding_utf_8, decode_coding_utf_8)
16838 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
16839 Don't use the local variable incomplete.
16840 (emacs_mule_char): Change the second arg to `const'.
16841 (decode_coding): Fix of flushing out unprocessed data.
16842 (make_conversion_work_buffer): Fix making of a work buffer.
16843 (decode_coding_object): Return coding->dst_object.
16844
16845 * fontset.c (set_fontset_font): Fix args.
16846
16847 * lisp.h (CHARACTERBITS): Define as 22.
16848
16849 * process.c (send_process): Be sure to set coding->src_multibyte.
16850
16851 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
16852
168532008-02-01 Kenichi Handa <handa@m17n.org>
16854
16855 * xdisp.c (handle_auto_composed_prop): Give limit to
16856 Fnext_single_char_property_change.
16857
168582008-02-01 Kenichi Handa <handa@m17n.org>
16859
16860 * composite.c (syms_of_composite): Don't make the composition hash
16861 table weak.
16862
16863 * fontset.c (Fset_fontset_font): Fix docstring.
16864
16865 * lisp.h (detect_coding_system): Adjust prototype.
16866
16867 * fileio.c (kill_workbuf_unwind): Delete this function.
16868 (Finsert_file_contents): Adjust the call of detect_coding_system.
16869 Get conversion_buffer by code_conversion_save. Use the macro
16870 CODING_MAY_REQUIRE_DECODING. After decoding, update
16871 coding_system.
16872
16873 * coding.h (make_conversion_work_buffer): Delete extern.
16874 (code_conversion_save): Extern it.
16875
16876 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
16877 (CODING_GET_INFO): Delete argument eol_type. Change callers.
16878 (decode_coding_utf_8): Don't do eol converion.
16879 (detect_coding_utf_16): Check coding->src_chars, not
16880 coding->src_bytes. Add heuristics for those that have no signature.
16881 (decode_coding_emacs_mule, decode_coding_iso_2022)
16882 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
16883 Don't do eol converion.
16884 (adjust_coding_eol_type): Return a new coding system.
16885 (detect_coding): Don't detect eol. Fix for utf-16 detection.
16886 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
16887 each change.
16888 (decode_coding): Pay attention to undo_list. Do eol conversion for
16889 all types of coding-systems (if necessary).
16890 (Vcode_conversion_work_buf_list): Delete it.
16891 (Vcode_conversion_reused_workbuf): Rename from
16892 Vcode_conversion_reused_work_buf.
16893 (Vcode_conversion_workbuf_name): New variable.
16894 (reused_workbuf_in_use): New variable.
16895 (make_conversion_work_buffer): Delete the arg DEPTH.
16896 (code_conversion_restore): Change argument to cons.
16897 (code_conversion_save): Delete the argument BUFFER. Change callers.
16898 (detect_coding_system): New argument src_chars. Change callers.
16899 Fix for utf-16 detection.
16900 (init_coding_once): Don't use ISO_carriage_return.
16901 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
16902 reused_workbuf_in_use.
16903
169042008-02-01 Kenichi Handa <handa@m17n.org>
16905
16906 * keymap.c (store_in_keymap): Pay attention to the case that idx
16907 is a cons specifying a character range.
16908
169092008-02-01 Kenichi Handa <handa@m17n.org>
16910
16911 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
16912 HANDLED_RECOMPUTE_PROPS.
16913
16914 * coding.c (Fdefine_coding_system_internal): Fix checking of
16915 ascii compatibility.
16916
169172008-02-01 Kenichi Handa <handa@m17n.org>
16918
16919 * charset.c (find_charsets_in_text): Delete unused locale variable.
16920 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
16921
16922 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
16923 Resync charset_list to Vemacs_mule_charset_list.
16924
16925 * keymap.c (store_in_keymap): Pay attention to the case that idx
16926 is a cons specifying a character range.
16927
169282008-02-01 Kenichi Handa <handa@m17n.org>
16929
16930 * composite.c (update_compositions): Bind inhibit-read-only, etc
16931 to t before calling remove-list-of-text-properties.
16932
16933 * print.c (print_object): Always print ASCII chars as is.
16934
169352008-02-01 Kenichi Handa <handa@m17n.org>
16936
16937 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
16938
16939 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
16940 is a char table.
16941
169422008-02-01 Kenichi Handa <handa@m17n.org>
16943
16944 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
16945
169462008-02-01 Kenichi Handa <handa@m17n.org>
16947
16948 * xfaces.c (set_lface_from_font_name): Fix for the case that
16949 FONTNAME is not fontset name.
16950
169512008-02-01 Kenichi Handa <handa@m17n.org>
16952
16953 * fns.c (base64_encode_1): Fix previous change.
16954
169552008-02-01 Kenichi Handa <handa@m17n.org>
16956
16957 * fontset.c (set_fontset_font): New function.
16958 (Fset_fontset_font): If a font is specified for a charset, use
16959 map_charset_chars to store the font spec in a fontset.
16960
169612008-02-01 Kenichi Handa <handa@m17n.org>
16962
16963 * fontset.c (fontset_face): Create a fallback fontset on demand.
16964 (make_fontset): Don't create a fallback fontset here.
16965 (free_face_fontset): Free a fallback fontset (if any) too.
16966 (n_auto_fontsets): Delete this variable.
16967 (auto_fontset_alist): New variable.
16968 (new_fontset_from_font_name): Check auto_fontset_alist.
16969 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
16970 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
16971 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
16972 Defsubr Sfontset_list_all.
16973
169742008-02-01 Kenichi Handa <handa@m17n.org>
16975
16976 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
16977
169782008-02-01 Kenichi Handa <handa@m17n.org>
16979
16980 * fontset.c (Fnew_fontset): Check NAME more rigidly.
16981
169822008-02-01 Kenichi Handa <handa@m17n.org>
16983
16984 * editfns.c (Fgoto_char): Fix docstring.
16985
169862008-02-01 Kenichi Handa <handa@m17n.org>
16987
16988 * insdel.c (insert_from_gap): Adjust intervals correctly.
16989
169902008-02-01 Jason Rumney <jasonr@gnu.org>
16991
16992 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
16993 (pfnGetFontUnicodeRanges): New dynamically loaded function.
16994 (w32_initialize): Try to load it.
16995 (x_get_font_repertory): Use it if available.
16996 (w32_encode_char): Add shortcut for unicode output.
16997
16998 * w32fns.c (w32_load_system_font): Default charset to -1.
16999 (x_to_w32_charset): Match all fonts for unicode.
17000 (w32_to_x_charset): New parameter matching. Don't return partial
17001 or wildcard charsets.
17002 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
17003 (w32_codepage_for_font): Return CP_UNICODE for unicode.
17004 (w32_to_x_font): Match charset to real charset.
17005 (enum_font_cb2): Always list unicode versions.
17006
17007 * makefile.w32-in (temacs): Increase EMHEAP.
17008
170092008-02-01 Jason Rumney <jasonr@gnu.org>
17010
17011 * w32term.c (w32_encode_char): New charset parameter.
17012 font_info.encoding becomes encoding_type.
17013 (x_get_font_repertory): New function. Warning: stub only!
17014 (x_new_font): Return quickly if font already set.
17015 (x_new_fontset): fontsetname parameter is Lisp_Object.
17016 Use new fs_query_fontset. Try new_fontset_from_font_name.
17017 Use fontset_name for return value.
17018
17019 * w32term.h: Declare x_get_font_repertory.
17020
17021 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
17022 place of find_charset_in_text. Use encode_coding_object in place
17023 of encode_coding.
17024 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
17025 decode_coding.
17026
17027 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
17028 of x_new_fontset.
17029 (w32_load_system_font): Initialize charset as unicode.
17030 font_info.encoding becomes encoding_type.
17031 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
17032 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
17033 (syms_of_w32fns): Set get_font_repertory_func.
17034
17035 * w32console.c: Include character.h. Use terminal_encode_buffer
17036 from term.c.
17037 (write_glyphs): Use new version of encode_terminal_code. Use
17038 encode_coding_object in place of encode_coding.
17039
17040 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
17041 encoding becomes encoding_type.
17042
17043 * term.c (terminal_encode_buffer): Make externally visible.
17044
17045 * makefile.w32-in: Add character.h dependancies.
17046 (character.o, chartab.o): New targets.
17047
170482008-02-01 Kenichi Handa <handa@m17n.org>
17049
17050 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
17051 CODING_ID_EOL_TYPE.
17052
170532008-02-01 Andreas Schwab <schwab@suse.de>
17054
17055 * coding.c (produce_chars): Revert last change.
17056
170572008-02-01 Kenichi Handa <handa@m17n.org>
17058
17059 * charset.h (charset_unicode): Extern it.
17060
17061 * charset.c (string_xstring_p): Check by (C >= 0x100).
17062 (find_charsets_in_text): Change format of the arc CHARSETS. New
17063 arg MULTIBYTE.
17064 (Ffind_charset_region, Ffind_charset_string): Adjust for the
17065 change of find_charsets_in_text.
17066 (Fsplit_char): Fix doc. Never return unknown.
17067
17068 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
17069
17070 * coding.c (Fdefine_coding_system_alias): Update
17071 Vcoding_system_list.
17072
17073 * fontset.c (load_font_get_repertory): Pay attention to the case
17074 that ENCODING of a font is specified by a char-table.
17075
17076 * xterm.c (x_get_font_repertory): Handle the case that the
17077 encoding of font is other than Unicode.
17078
170792008-02-01 Kenichi Handa <handa@m17n.org>
17080
17081 * term.c (encode_terminal_code): Don't handle glyph-table. Check
17082 if a character is encodable by the terminal coding system. If
17083 not, produces proper number of `?'s. Update
17084 terminal_encode_buffer and terminal_encode_buf_size if necessary.
17085 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
17086
170872008-02-01 Kenichi Handa <handa@m17n.org>
17088
17089 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
17090 variables.
17091 (encode_terminal_code): Change argument. Encode multiple
17092 characters at once. Store the result of encoding in
17093 terminal_encode_buffer.
17094 (write_glyphs, insert_glyphs): Adjust for the change of
17095 encode_terminal_code.
17096 (term_init): Initialize terminal_encode_buffer and
17097 terminal_encode_buf_size.
17098
17099 * coding.c (consume_chars): If coding->src_object is nil, don't
17100 check annotation.
17101
171022008-02-01 Kenichi Handa <handa@m17n.org>
17103
17104 * character.c (char_string): Use ASCII_CHAR_P instead of
17105 SINGLE_BYTE_CHAR_P.
17106
171072008-02-01 Kenichi Handa <handa@m17n.org>
17108
17109 * xdisp.c (handle_auto_composed_prop): Check if the last
17110 characters of auto-composed region is newly composed with the
17111 following characters.
17112 (handle_composition_prop): Fix checking of point being inside
17113 composition.
17114
171152008-02-01 Kenichi Handa <handa@m17n.org>
17116
17117 * fns.c (concat): Don't change multibyteness of the result by
17118 concatenating an 8-bit character.
17119
17120 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
17121 multibyteness of the result when newelt is an 8-bit character.
17122
171232008-02-01 Dave Love <fx@gnu.org>
17124
17125 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
17126 EMACS_INT.
17127
17128 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
17129
17130 * xfaces.c (face_numeric_value): Declare dim size_t.
17131 (Finternal_lisp_face_equal_p): Remove unused f.
17132
17133 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
17134 (MATRIX_ROW): Remove unused vars.
17135 (draw_glyphs, x_insert_glyphs, fast_find_position)
17136 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
17137 byte/char counts.
17138
17139 * regex.c (regex_compile): Remove unused var.
17140
17141 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
17142
17143 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
17144 (Faccessible_keymaps, where_is_internal): Remove unused vars.
17145
17146 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
17147
17148 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
17149
17150 * fileio.c (Fwrite_region): Remove unused var.
17151
17152 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
17153 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
17154
17155 * composite.c (Fremove_list_of_text_properties): Declare.
17156
17157 * coding.c (inhibit_pre_post_conversion): Remove (unused).
17158 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
17159 (coding_inherit_eol_type): Remove unused attrs.
17160 (detect_coding): Cast arg of detect_eol.
17161
17162 * charset.c (syms_of_charset): Remove unused var p.
17163 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
17164 byte/char counts.
17165
17166 * casetab.c (set_case_table): Remove unused var.
17167
17168 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
17169 unused vars.
17170
171712008-02-01 Dave Love <fx@gnu.org>
17172
17173 * xterm.c (x_bitmap_mask): Declare.
17174
171752008-02-01 Dave Love <fx@gnu.org>
17176
17177 * xterm.c (x_term_init): Fix type error.
17178
17179 * lisp.h: Add Funibyte_char_to_multibyte.
17180
17181 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
17182 (Fset_coding_system_priority): Doc fix.
17183
17184 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
17185
17186 * indent.c (check_composition): Make start and end EMACS_INT.
17187
17188 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
17189
17190 * xdisp.c (handle_composition_prop, check_point_in_composition):
17191 Make buffer positions EMACS_INT.
17192
17193 * composite.c (find_composition, run_composition_function)
17194 (update_compositions, Ffind_composition_internal): Make buffer
17195 positions EMACS_INT.
17196
17197 * composite.h (find_composition, update_compositions): Make
17198 position args EMACS_INT.
17199
17200 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
17201
17202 * intervals.c (get_property_and_range):
17203 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
17204
17205 * unexalpha.c: Don't include varargs.h.
17206
172072008-02-01 Dave Love <fx@gnu.org>
17208
17209 * coding.h (ENCODE_UTF_8): New.
17210
17211 * Makefile.in (gtkutil.o): Depend on coding.h.
17212
17213 * coding.c (Fset_coding_system_priority): Doc fix.
17214
172152008-02-01 Kenichi Handa <handa@m17n.org>
17216
17217 * fileio.c (Finsert_file_contents): Call setup_coding_system in
17218 the case of auto saving.
17219
172202008-02-01 Andreas Schwab <schwab@suse.de>
17221
17222 * chartab.c (map_char_table, map_char_table_for_charset): Protect
17223 `range' from GC.
17224
172252008-02-01 Kenichi Handa <handa@m17n.org>
17226
17227 * coding.c (decode_coding_sjis): Check bytes more rigidly.
17228
172292008-02-01 Kenichi Handa <handa@m17n.org>
17230
17231 * fileio.c (choose_write_coding_system): Return a decided coding system.
17232 (Fwrite_region): Set Vlast_coding_system_used to the return value
17233 of choose_write_coding_system.
17234
172352008-02-01 Kenichi Handa <handa@m17n.org>
17236
17237 * charset.c (Fset_charset_priority): Pay attention to duplicated
17238 arguments.
17239
17240 * coding.c (QCcategory): New variable.
17241 (syms_of_coding): Defsym it. Set all elements of
17242 Vcoding_category_table and their symbol values.
17243 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
17244 coding-category-XXX, and coding-category-list.
17245 (Fdefine_coding_system_internal): Add category in the plist.
17246
172472008-02-01 Kenichi Handa <handa@m17n.org>
17248
17249 * callproc.c (Fcall_process): Handle carryover correctly.
17250
17251 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
17252 (raw_text_coding_system): Check NILP (coding_system).
17253 (coding_inherit_eol_type): Check NILP (coding_system) and
17254 NILP (parent).
17255 (consume_chars): Fix for the case of raw-text.
17256
17257 * process.c (read_process_output): Handle carryover correctly.
17258
172592008-02-01 Dave Love <fx@gnu.org>
17260
17261 * regex.c (re_search_2): Fix last change.
17262
172632008-02-01 Kenichi Handa <handa@m17n.org>
17264
17265 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
17266 target_multibyte. Even in a unibyte case, return a converted
17267 multibyte char.
17268 (GET_CHAR_AFTER): New macro.
17269 (PATFETCH): Translate via multibyte char.
17270 (HANDLE_UNIBYTE_RANGE): Delete this macro.
17271 (SETUP_MULTIBYTE_RANGE): New macro.
17272 (regex_compile): Setup compiled code so that its multibyteness
17273 matches that of a target. Fix the handling of "[X-YZ]" using
17274 SETUP_MULTIBYTE_RANGE.
17275 (analyse_first) <charset>: For filling fastmap for all multibyte
17276 characters, don't check by BASE_LEADING_CODE_P.
17277 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
17278 the same as RE_MULTIBYTE_P (bufp) now.
17279 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
17280 (TARGET_CHAR_AND_LENGTH): Delete this macro.
17281 (TRANSLATE_VIA_MULTIBYTE): New macro.
17282 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
17283 It is the same as RE_MULTIBYTE_P (bufp) now.
17284 <exactn>: Translate via multibyte.
17285 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
17286 translate it.
17287 <charset, charset_not>: Fetch a character by
17288 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
17289 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
17290 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
17291 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
17292 by GET_CHAR_AFTER.
17293 (bcmp_translate): Likewise.
17294
17295 * search.c (compile_pattern): Check the member target_multibyte,
17296 not the member multibyte of buf.
17297
17298 * lread.c (read1): While reading a string, set force_singlebyte
17299 and force_multibyte correctly.
17300
17301 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
17302 up of unibyte_to_multibyte_table.
17303
173042008-02-01 Kenichi Handa <handa@m17n.org>
17305
17306 * coding.c (setup_coding_system): If coding has
17307 post-read-conversion or pre-write-conversion, set
17308 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
17309 respectively.
17310 (decode_coding_gap): Run post-read-conversion if any.
17311
17312 * fileio.c (Finsert_file_contents): Even if we read into a
17313 unibyte buffer, check if we must decode the result or not.
17314
173152008-02-01 Kenichi Handa <handa@m17n.org>
17316
17317 * coding.c (make_conversion_work_buffer): Change the work buffer
17318 name to the same one as that of Emacs 21.
17319
173202008-02-01 Kenichi Handa <handa@m17n.org>
17321
17322 * coding.h (make_conversion_work_buffer): Adjust prototype.
17323 (code_conversion_restore): Don't extern it.
17324
17325 * coding.c (detected_mask): Delete unused variable.
17326 (decode_coding_iso_2022): Pay attention to the byte sequence of
17327 CTEXT extended segment, and retain those bytes as is.
17328 (decode_coding_ccl): Delete unused variable `valids'.
17329 (setup_coding_system): Delete unused variable `category'.
17330 (consume_chars): Delete unused variable `category'. Make it work
17331 for non-multibyte case.
17332 (make_conversion_work_buffer): Change argument.
17333 (saved_coding): Delete unused variable.
17334 (code_conversion_restore): Don't check saved_coding->destination.
17335 (code_conversion_save): New function.
17336 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
17337 instead of record_unwind_protect.
17338 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
17339 (detect_coding_system): Delete unused variable `mask'.
17340 (Fdefine_coding_system_internal): Delete unused variable id.
17341
17342 * fileio.c (kill_workbuf_unwind): New function.
17343 (Finsert_file_contents): On replacing, call
17344 make_conversion_work_buffer with correct args, and call
17345 record_unwind_protect with the first arg kill_workbuf_unwind.
17346
17347 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
17348
173492008-02-01 Kenichi Handa <handa@m17n.org>
17350
17351 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
17352 (fontset_add): Fix for the case that TO is less than TO1.
17353 (Ffontset_info): Don't use fallback fontset on checking the
17354 default fontset.
17355 (dump_fontset): New function for debugging.
17356
17357 * coding.c (Fdefine_coding_system_internal): Fix for the case that
17358 coding_type is Qcharset.
17359
173602008-02-01 Kenichi Handa <handa@m17n.org>
17361
17362 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
17363 (map_char_table): Don't inherit the value from the parent on
17364 initializing VAL. Adjust for the above change.
17365
173662008-02-01 Kenichi Handa <handa@m17n.org>
17367
17368 * coding.c (Qsignature, Qendian): Delete these variables.
17369 (syms_of_coding): Don't initialize them.
17370 (CATEGORY_MASK_UTF_16_AUTO): New macro.
17371 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
17372 detect_info->found.
17373 (decode_coding_utf_16): Don't detect BOM here.
17374 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
17375 is NOT utf_16_without_bom.
17376 (setup_coding_system): For a coding system of type utf-16, check
17377 if the attribute :endian is Qbig or not (not nil or not), and set
17378 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
17379 (detect_coding): If coding type is utf-16 and BOM detection is
17380 required, detect it.
17381 (Fdefine_coding_system_internal): For a coding system of type
17382 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
17383
173842008-02-01 Kenichi Handa <handa@m17n.org>
17385
17386 * coding.c (coding_set_source): Fix for the case that the current
17387 buffer is different from coding->src_object.
17388 (decode_coding_object): Don't use the conversion work buffer if
17389 DST_OBJECT is a buffer.
17390
173912008-02-01 Dave Love <fx@gnu.org>
17392
17393 * lread.c (read_emacs_mule_char) [len==2]: Index
17394 emacs_mule_charset correctly.
17395
173962008-02-01 Dave Love <fx@gnu.org>
17397
17398 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
17399 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
17400 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
17401 treated specially.)
17402 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
17403 (detected_mask): Remove Big5 bits.
17404
174052008-02-01 Kenichi Handa <handa@m17n.org>
17406
17407 The following changes are to make the font rescaling facility
17408 compatible with Emacs 21.
17409
17410 * xfaces.c (Vface_font_rescale_alist): Rename from
17411 Vface_resizing_fonts.
17412 (struct font_name): Rename member resizing_ratio to rescale_ratio.
17413 (font_rescale_ratio): Rename from font_resizing_ratio.
17414 (split_font_name): Set font->rescale_ratio.
17415 (better_font_p): Pay attention to font->rescale_ratio.
17416 (build_scalable_font_name): Likewise. Change RESX, and RESY
17417 fields.
17418 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
17419
174202008-02-01 Kenichi Handa <handa@m17n.org>
17421
17422 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
17423 (Qutf_16_le): Remove these variables.
17424 (syms_of_coding): Don't DEFSYM them.
17425 (decode_coding_utf_16): Fix handling of BOM.
17426 (encode_coding_utf_16): Fix handling of BOM.
17427
174282008-02-01 Kenichi Handa <handa@m17n.org>
17429
17430 * fileio.c (Finsert_file_contents): On replacing, before decoding
17431 the file into the work buffer, set point of the work buffer to the end.
17432
174332008-02-01 Dave Love <fx@gnu.org>
17434
17435 * coding.c (Fcheck_coding_systems_region): Fix type errors.
17436
174372008-02-01 Dave Love <fx@gnu.org>
17438
17439 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
17440 and fix C types.
17441
174422008-02-01 Kenichi Handa <handa@m17n.org>
17443
17444 * xdisp.c (SKIP_GLYPHS): New macro.
17445 (set_cursor_from_row): Pay attention to string display properties.
17446
17447 * category.c (copy_category_entry): Fix for the case that RANGE
17448 is an integer.
17449
17450 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
17451
17452 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
17453
174542008-02-01 Kenichi Handa <handa@m17n.org>
17455
17456 * charset.c (Fcharset_id_internal): New function.
17457 (syms_of_charset): Defsubr it.
17458
17459 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
17460 with the last arg charset_list acquired from coding.
17461 (Fdefine_coding_system_internal): For ccl-based coding system, fix
17462 the attribute coding_attr_ccl_valids.
17463
17464 * coding.h (enum define_coding_ccl_arg_index): Set the first
17465 member coding_arg_ccl_decoder to coding_arg_max.
17466
17467 * ccl.h (ccl_driver): Adjust prototype.
17468
17469 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
17470 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 17471 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
17472 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
17473 last arg Qnil.
17474
174752008-02-01 Kenichi Handa <handa@m17n.org>
17476
17477 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
17478 call encode_char.
17479
17480 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
17481
174822008-02-01 Dave Love <fx@gnu.org>
17483
17484 * composite.c (syms_of_composite): Make composition_hash_table weak.
17485
174862008-02-01 Kenichi Handa <handa@m17n.org>
17487
17488 * dispextern.h (check_face_attributes, generate_ascii_font_name)
17489 (font_name_registry): Don't extern them.
17490 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
17491
17492 * fontset.h (Qfontset): Don't extern it.
17493 (new_fontset_from_font_name): Extern it.
17494
17495 * fontset.c: Give 8 extra slots to fontset objects.
17496 (Qfontset_info): New variable.
17497 (syms_of_fontset): Defsym it.
17498 (FONTSET_FALLBACK): New macro.
17499 (fontset_face): Try also the default fontset.
17500 (make_fontset): Realize a fallback fontset from the default fontset.
17501 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
17502 using split_font_name_into_vector and build_font_name_from_vector.
17503 (Fset_fontset_font): Access the elements of font_spec by enum
17504 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
17505 name by using split_font_name_into_vector.
17506 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
17507 generate a proper font name from the fontset name. Update
17508 Vfontset_alias_alist.
17509 (n_auto_fontsets): New variable.
17510 (new_fontset_from_font_name): New function.
17511 (Ffont_info): Store the information about fonts generated from the
17512 default fontset in the first extra slot of the returned char-table.
17513
17514 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
17515 (font_name_registry): Delete function.
17516 (split_font_name_into_vector): New function.
17517 (build_font_name_from_vector): New function.
17518 (font_list): The argument REGISTRY is now a list of registry names.
17519 (choose_face_font): If we are choosing an ASCII font, and ATTRS
17520 specifies an explicit font name, return the name as is. Make a
17521 list of registy names.
17522
17523 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
17524 of x_new_fontset.
17525 (Fx_create_frame): Don't call x_new_fontset here. Just use
17526 x_list_fonts to check the existence of fonts.
17527
17528 * xterm.h (x_new_fontset): Adjust prototype.
17529
17530 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
17531 string. Use new_fontset_from_font_name to create a fontset from a
17532 font name.
17533
175342008-02-01 Kenichi Handa <handa@m17n.org>
17535
17536 * syntax.c (Vfind_word_boundary_function_table): New name for
17537 Vnext_word_boundary_function_table.
17538 (find-word-boundary-function-table): New name for
17539 next-word-boundary-function-table.
17540
175412008-02-01 Dave Love <fx@gnu.org>
17542
17543 * Makefile.in: Fix some dependencies.
17544
17545 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
17546 set it to nil before returning.
17547
17548 * composite.c (update_compositions): Fix type error.
17549
17550 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
17551
175522008-02-01 Kenichi Handa <handa@m17n.org>
17553
17554 * xterm.c (x_new_font): Optimize for the case that the font is
17555 already set for the frame.
17556
175572008-02-01 Kenichi Handa <handa@m17n.org>
17558
17559 * chartab.c (char_table_ascii): Check if the char table contents
17560 is sub-char-table or not.
17561 (char_table_set, char_table_set_range): Fix argument to
17562 char_table_ascii.
17563
17564 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
17565 (detect_coding_utf_8, detect_coding_utf_16)
17566 (detect_coding_emacs_mule, detect_coding_iso_2022)
17567 (detect_coding_sjis, detect_coding_big5)
17568 (detect_coding_ccl, detect_coding_charset): Change argument MASK
17569 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
17570 sequence is valid in this coding system. Change callers.
17571 (MAX_ANNOTATION_LENGTH): New macro.
17572 (ADD_ANNOTATION_DATA): New macro.
17573 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
17574 ADD_ANNOTATION_DATA. Change the format of annotation data.
17575 (ADD_CHARSET_DATA): New macro.
17576 (emacs_mule_char): New argument ID. Change callers.
17577 (decode_coding_emacs_mule, decode_coding_iso_2022)
17578 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
17579 Produce charset annotation data in coding->charbuf.
17580 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
17581 to charset annotation data in coding->charbuf.
17582 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
17583 coding->common_flags if the coding system is iso-2022 based and
17584 uses designation.
17585 (produce_composition): Adjust for the new annotation data format.
17586 (produce_charset): New function.
17587 (produce_annotation): Handle charset annotation.
17588 (handle_composition_annotation, handle_charset_annotation): New
17589 functions.
17590 (consume_chars): Handle charset annotation. Utilize the above two
17591 functions.
17592 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
17593 buffer, get the deleted text as a string and set
17594 coding->src_object to that string.
17595 (detect_coding, detect_coding_system): Use the new struct
17596 coding_detection_info.
17597
17598 * coding.h (struct coding_detection_info): New structure.
17599 (struct coding_system): Adjust prototype of the member `detector'.
17600 (CODING_ANNOTATE_CHARSET_MASK): New macro.
17601
176022008-02-01 Kenichi Handa <handa@m17n.org>
17603
17604 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
17605
176062008-02-01 Dave Love <fx@gnu.org>
17607
17608 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
17609 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
17610 to new local and nullify apropos_accumulate before returning.
17611 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
17612
176132008-02-01 Kenichi Handa <handa@m17n.org>
17614
17615 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
17616 correctly.
e3eea1fc 17617
aac0c6e3
MR
176182008-02-01 Dave Love <fx@gnu.org>
17619
17620 * fns.c (Flanginfo): Call synchronize_system_time_locale.
17621
176222008-02-01 Kenichi Handa <handa@m17n.org>
17623
17624 The following changes are to make character composition happen
17625 automatically on displaying.
17626
17627 * Makefile.in (lisp, shortlisp): Add composite.elc.
17628
17629 * composite.h (Qauto_composed, Vauto_composition_function)
17630 (Qauto_composition_function): Extern them.
17631
17632 * composite.c (Vcomposition_function_table)
17633 (Qcomposition_function_table): Delete variables.
17634 (Qauto_composed, Vauto_composition_function)
17635 (Qauto_composition_function): New variables.
17636 (run_composition_function): Don't call
17637 compose-chars-after-function.
17638 (update_compositions): Clear `auto-composed' text property.
17639 (compose_chars_in_text): Delete this function.
17640 (syms_of_composite): Staticpro Qauto_composed and
17641 Qauto_composition_function. Declare Vauto_composition_function as
17642 a Lisp variable.
17643
17644 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
17645
17646 * xdisp.c (it_props): Add an entry for Qauto_composed.
17647 (handle_auto_composed_prop): New function.
17648
17649 * xselect.c (selection_data_to_lisp_data): Don't call
17650 compose_chars_in_text.
17651
176522008-02-01 Dave Love <fx@gnu.org>
17653
17654 * keyboard.c (read_char): Modify checking around use of
17655 Vkeyboard_translate_table.
17656
17657 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
17658 and fix C types.
17659
176602008-02-01 Kenichi Handa <handa@m17n.org>
17661
17662 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
17663 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
17664 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
17665 the case that the last byte is '\r' correctly.
17666 (decode_coding): Flush out the unprocessed data correctly.
17667 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
17668
176692008-02-01 Dave Love <fx@gnu.org>
17670
17671 * xterm.c (XTread_socket): Fix changes for defined keysyms.
17672 Add XK_ISO... case.
17673 (xaw_scroll_callback): Revert last change.
17674
176752008-02-01 Kenichi Handa <handa@m17n.org>
17676
17677 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
17678
176792008-02-01 Kenichi Handa <handa@m17n.org>
17680
17681 * xfaces.c (Vface_resizing_fonts): New variable.
17682 (struct font_name): New member `resizing_ratio'.
17683 (font_resizing_ratio): New function.
17684 (split_font_name): Set font->resizing_ratio.
17685 (better_font_p): Pay attention to font->resizing_ratio.
17686 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
17687 RESX, and RESY fields.
17688 (try_alternative_families): Try scalable fonts if
17689 Vscalable_fonts_allowed is not Qt.
17690 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
17691
176922008-02-01 Dave Love <fx@gnu.org>
17693
17694 * xterm.c (xaw_scroll_callback): Cast correctly.
17695
176962008-02-01 Dave Love <fx@gnu.org>
17697
17698 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
17699 (lispy_kana_keys): Comment out.
17700 (make_lispy_event) [XK_kana_A]: Comment out.
17701
17702 * xterm.c (xaw_scroll_callback): Cast call_data.
17703 (XTread_socket): Deal with ASCII keysyms.
17704 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
17705
177062008-02-01 Dave Love <fx@gnu.org>
17707
17708 * xterm.c (Vx_keysym_table): New.
17709 (syms_of_xterm): Initialize it.
17710 (XTread_socket): Use it.
17711 From head: Eliminate incorrect optimization that tried to avoid
17712 decoding the output of X*LookupString.
17713 (x_get_font_repertory): Delete charset declaration.
17714
177152008-02-01 Kenichi Handa <handa@m17n.org>
17716
17717 * coding.c (detect_coding_charset): If only ASCII bytes are found,
17718 return 0.
17719 (Fdefine_coding_system_internal): Setup
17720 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
17721
177222008-02-01 Dave Love <fx@gnu.org>
17723
17724 * coding.c (Fcheck_coding_system): Doc fix.
17725
17726 * editfns.c (Finsert_byte): Return a proper value.
17727
177282008-02-01 Kenichi Handa <handa@m17n.org>
17729
17730 * coding.c (decode_coding): Fix args to translate_chars. Pay
17731 attention to Vstandard_translation_table_for_decode.
17732 (encode_coding): Fix args to translate_chars. Pay attention to
17733 Vstandard_translation_table_for_encode.
17734
17735 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
17736 SINGLE_BYTE_CHAR_P.
17737
17738 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
17739 not by SINGLE_BYTE_CHAR_P.
17740
17741 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
17742 SINGLE_BYTE_CHAR_P.
17743
17744 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
17745 SINGLE_BYTE_CHAR_P.
17746
17747 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
17748 by SINGLE_BYTE_CHAR_P.
17749
17750 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
17751 SINGLE_BYTE_CHAR_P.
17752
177532008-02-01 Dave Love <fx@gnu.org>
17754
17755 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
17756
177572008-02-01 Dave Love <fx@gnu.org>
17758
17759 * fns.c (Flanginfo): Fix typo.
17760
17761 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
17762
177632008-02-01 Kenichi Handa <handa@m17n.org>
17764
17765 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
17766 (detect_coding_emacs_mule, detect_coding_iso_2022)
17767 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
17768 incomplete byte sequence. Don't update *mask when correctly detected.
17769 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
17770 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
17771 (detect_coding, detect_coding_system): Adjust for the changes above.
17772
177732008-02-01 Kenichi Handa <handa@m17n.org>
17774
17775 * character.c (char_string): Rename from
17776 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
17777 (string_char): Rename from string_char.
17778
17779 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
17780 if C is greater than MAX_3_BYTE_CHAR.
17781 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
17782 string_char instead of string_char_with_unification.
17783
177842008-02-01 Dave Love <fx@gnu.org>
17785
17786 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
17787
177882008-02-01 Kenichi Handa <handa@m17n.org>
17789
17790 * keymap.c (push_key_description): Pay attention to force_multibyte.
17791
17792 * regex.c (re_search_2): Fix for the case of unibyte buffer.
17793
177942008-02-01 Dave Love <fx@gnu.org>
17795
17796 * charset.c (define_charset_internal): Rename `supprementary'.
17797
17798 * Makefile.in (lisp, shortlisp): Remove latin-N.
17799
178002008-02-01 Dave Love <fx@gnu.org>
17801
17802 * xfns.c (x_window, x_window): Use use_xim.
17803
17804 * xterm.c (use_xim): Initialize.
17805 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
17806 (x_term_init): Maybe set use_xim.
17807
17808 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
17809
178102008-02-01 Kenichi Handa <handa@m17n.org>
17811
17812 * search.c (search_buffer): Fix case-fold-search of multibyte
17813 characters.
17814 (boyer_moore): Rename the last argument to char_high_bits.
17815
178162008-02-01 Kenichi Handa <handa@m17n.org>
17817
17818 * xdisp.c (display_string): Fix for the case of zero width glyph.
17819
17820 * xfns.c (x_set_font): Change the error message of the case that
17821 x_new_fontset returns Qt.
17822
17823 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
17824 (Finternal_set_lisp_face_attribute): Use signal_error for the
17825 error of invalid fontset.
17826
17827 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
17828 fontset, return Qt.
17829
178302008-02-01 Dave Love <fx@gnu.org>
17831
17832 * unexelf.c (unexec): Make .got handling not SGI-specific.
17833
17834 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
17835
17836 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
17837
17838 * keyboard.c (read_key_sequence): Fix type error.
17839
17840 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
17841 type error.
17842
17843 * fontset.c (fontset_add): Return Lisp_Object.
17844
178452008-02-01 Dave Love <fx@gnu.org>
17846
17847 * charset.h (charset_ordered_list_tick): Declare extern.
17848
178492008-02-01 Kenichi Handa <handa@m17n.org>
17850
17851 The following changes (and some of 2008-02-01 changes of mine) are
17852 for handling syntax, category, and case conversion for unibyte
17853 characters by converting them to multibyte on the fly. With these
17854 changes, we don't have to setup syntax and case tables for unibyte
17855 characters in each language environment.
17856
17857 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
17858 multibyte if necessary.
17859
17860 * bytecode.c (Fbyte_code): Likewise.
17861
17862 * character.h (LEADING_CODE_LATIN_1_MIN)
17863 (LEADING_CODE_LATIN_1_MAX): New macros.
17864 (unibyte_to_multibyte_table): Extern it.
17865 (unibyte_char_to_multibyte): New macro.
17866 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
17867 (CHAR_LEADING_CODE): New macro.
17868 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
17869
17870 * character.c (unibyte_to_multibyte_table): New variable.
17871 (unibyte_char_to_multibyte): Move to character.h and define as macro.
17872 (multibyte_char_to_unibyte): If C is an eight-bit character,
17873 convert it to the corresponding byte value.
17874
17875 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
17876 not 1, signals an error. Update the elements of
17877 unibyte_to_multibyte_table.
17878 (init_charset_once): Initialize unibyte_to_multibyte_table.
17879 (syms_of_charset): Define the charset `iso-8859-1'.
17880
17881 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
17882 as is without converting it to unibyte. In a unibyte buffer,
17883 convert C to multibyte before checking the syntax.
17884
17885 * lisp.h (unibyte_char_to_multibyte): Delete extern.
17886
17887 * minibuf.c (Fminibuffer_complete_word): Use the macro
17888 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
17889
17890 * regex.h (struct re_pattern_buffer): New member target_multibyte.
17891
17892 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
17893 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
17894 that is zero, convert an eight-bit char to multibyte.
17895 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
17896 non-emacs case.
17897 (PATFETCH): Convert an eight-bit char to multibyte.
17898 (HANDLE_UNIBYTE_RANGE): New macro.
17899 (regex_compile): Setup the compiled pattern for multibyte chars
17900 even if the given regex string is unibyte. Use PATFETCH_RAW
17901 instead of PATFETCH in many places. To handle `charset'
17902 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
17903 only for ASCII chars.
17904 (analyse_first) <exactn>: Simplify because the compiled pattern
17905 is multibyte.
17906 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
17907 <charset>: Use CHAR_LEADING_CODE to get leading codes.
17908 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
17909 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
17910 multibyte always 1.
17911 (re_search_2): In emacs, set the locale variable multibyte to 1,
17912 otherwise to 0. New local variable target_multibyte. Check it
17913 to decide the multibyteness of STR1 and STR2. If
17914 target_multibyte is zero, convert unibyte chars to multibyte
17915 before translating and checking fastmap.
17916 (TARGET_CHAR_AND_LENGTH): New macro.
17917 (re_match_2_internal): In emacs, set the locale variable multibyte
17918 to 1, otherwise to 0. New local variable target_multibyte. Check
17919 it to decide the multibyteness of STR1 and STR2. Use
17920 TARGET_CHAR_AND_LENGTH to fetch a character from D.
17921 <charset, charset_not>: If multibyte is nonzero, check fastmap
17922 only for ASCII chars. Call bcmp_translate with
17923 target_multibyte, not with multibyte.
17924 <begline>: Declare the local variable C as `unsigned'.
17925 (bcmp_translate): Change the last arg name to target_multibyte.
17926
17927 * search.c (compile_pattern_1): Don't adjust the multibyteness of
17928 the regexp pattern and the matching target. Set cp->buf.multibyte
17929 to the multibyteness of the regexp pattern. Set
17930 cp->but.target_multibyte to the multibyteness of the matching target.
17931 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
17932 FETCH_STRING_CHAR_ADVANCE.
17933 (Freplace_match): Convert unibyte chars to multibyte.
17934
17935 * syntax.c (char_quoted, back_comment, scan_words)
17936 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
17937 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
17938 unibyte chars to multibyte.
17939 (skip_chars): Delete the arg syntaxp, and move the code for
17940 handling syntaxes to skip_syntaxes. Change callers.
17941 Fix the case that the multibyteness of STRING and the current
17942 buffer doesn't match.
17943 (skip_syntaxes): New function.
17944 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
17945 SINGLE_BYTE_CHAR_P.
17946
179472008-02-01 Kenichi Handa <handa@m17n.org>
17948
17949 * xfaces.c (QCfontset): New variable.
17950 (LFACE_FONTSET): New macro.
17951 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
17952 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
17953 (Finternal_set_lisp_face_attribute)
17954 (Finternal_get_lisp_face_attribute): Handle QCfontset.
17955 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
17956 check also LFACE_FONTSET_INDEX.
17957 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
17958 attrs[LFACE_FONT_INDEX].
17959 (syms_of_xfaces): Intern and staticpro QCfontset.
17960
17961 * dispextern.h (enum lface_attribute_index): New member
17962 LFACE_FONTSET_INDEX.
17963
17964 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
17965
179662008-02-01 Kenichi Handa <handa@m17n.org>
17967
17968 * coding.c (coding_set_destination): Fix coding->destination for
17969 the case converting a region.
17970 (encode_coding_utf_8): Encode eight-bit chars as single byte.
17971 (encode_coding_object): Fix coding->dst_pos and
17972 coding->dst_pos_byte for the case converting a region.
17973
17974 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
17975
17976 * character.h (BYTE8_STRING): New macro.
17977
17978 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
17979
179802008-02-01 Kenichi Handa <handa@m17n.org>
17981
17982 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
17983 characters by octal form.
17984
17985 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
17986
17987 * buffer.h (_fetch_multibyte_char_len): Delete extern.
17988 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
17989 _fetch_multibyte_char_len.
17990 (FETCH_CHAR_AS_MULTIBYTE): New macro.
17991
17992 * casetab.c (set_canon, set_identity, shuffle): Simplify.
17993
17994 * casefiddle.c (casify_object): Simplify. Handle the case that
17995 the case conversion change the byte length.
17996 (casify_region): Likewise.
17997
17998 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
17999
18000 * character.c (_fetch_multibyte_char_len): Delete this variable.
18001 (syms_of_character): Setup Vprintable_chars.
18002
18003 * editfns.c (Fchar_equal): Fix for the unibyte case.
18004 (Finsert_byte): New function.
18005 (syms_of_editfns): Defsubr it.
18006
18007 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
18008 of direct code 0x3ffff.
18009
18010 * search.c (Freplace_match): Fix for the unibyte case.
18011
180122008-02-01 Kenichi Handa <handa@m17n.org>
18013
18014 * lread.c (safe_to_load_p): Fix the logic.
18015
18016 * syntax.c (scan_words): Don't treat characters belonging to
18017 different scripts as constituting a word.
18018
18019 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
18020
18021 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
18022
18023 * emacs.c (main): In the case of --unibyte, instead of aborting on
18024 finding non-empty buffer, make it unibyte.
18025
180262008-02-01 Kenichi Handa <handa@m17n.org>
18027
18028 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
18029 to create a fontset.
18030
180312008-02-01 Dave Love <fx@gnu.org>
18032
18033 * character.c (Funibyte_char_to_multibyte): Doc fix.
18034
18035 * xfns.c [HAVE_STDLIB_H]: Fix last change.
18036
180372008-02-01 Kenichi Handa <handa@m17n.org>
18038
18039 * fontset.c (fontset_add): Make the type `int'.
18040 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
18041
18042 * character.c (unibyte_char_to_multibyte)
18043 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
18044 charset_unibyte, not charset_primary.
18045
18046 * charset.h (charset_unibyte): Extern it instead of charset_primary.
18047
18048 * charset.c (charset_unibyte): Rename from charset_primary.
18049 (Funibyte_charset): Rename from Fprimary_charset.
18050 (Fset_unibyte_charset): Rename from Fset_primary_charset.
18051 (syms_of_charset): Adjust for the above changes.
18052
18053 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
18054 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
18055 it->multibyte_p is zero.
18056
18057 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
18058 Delete extern.
18059
180602008-02-01 Kenichi Handa <handa@m17n.org>
18061
18062 * coding.c (Fdefine_coding_system_internal): Fix category setting
18063 for a coding system of type iso-2022.
18064
180652008-02-01 Kenichi Handa <handa@m17n.org>
18066
18067 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
18068
180692008-02-01 Kenichi Handa <handa@m17n.org>
18070
18071 * syntax.c (Vnext_word_boundary_function_table): New variable.
18072 (next-word-boundary-function-table): Declare it as a Lisp variable
18073 in syms_of_syntax.
18074 (scan_words): Call functions in Vnext_word_boundary_function_table
18075 if any.
18076
18077 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
18078
18079 * fontset.c (fs_load_font): If fontp->charset is not negative,
18080 return fontp without setting its members.
18081
180822008-02-01 Dave Love <fx@gnu.org>
18083
18084 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
18085
18086 * m/sparc.h (HAVE_ALLOCA): Delete.
18087
18088 * s/irix6-5.h: Don't include strings.h.
18089 (bcopy, bzero, bcmp): Don't undef.
18090
18091 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
18092
18093 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
18094 (TIOCSIGSEND): Don't test IRIX6.
18095 (bcopy, bzero, bcmp): Define conditionally.
18096
180972008-02-01 Kenichi Handa <handa@m17n.org>
18098
18099 * buffer.c (Qas, Qmake, Qto): New variables.
18100 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
18101 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
18102
18103 * callproc.c (Fcall_process): Don't call insert_1_both directly if
18104 we are inserting a process output into a multibyte buffer.
18105
18106 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
18107 multibyte_char_to_unibyte.
18108
18109 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
18110 by the primary charset, make it eight-bit char.
18111 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
18112
18113 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
18114 (charset_8_bit__control, charset_8_bit_graphic)
18115 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
18116 (define_charset_internal): New function.
18117 (syms_of_charset): Call define_charset_internal for pre-defined
18118 charsets.
18119
18120 * charset.h (charset_8_bit): Extern it.
18121
18122 * coding.c (make_conversion_work_buffer): Adjust for the change
18123 of Fset_buffer_multibyte.
18124 (encode_coding_raw_text): Increment p0 in the loop.
18125
18126 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
18127
18128 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
18129 for the change of Fset_buffer_multibyte.
18130
18131 * fns.c (Fstring_to_multibyte): New function.
18132 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
18133
181342008-02-01 Dave Love <fx@gnu.org>
18135
18136 * xfns.c (x_put_x_image): Declare args.
18137
18138 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
18139 (try_font_list): Declare an arg.
18140
18141 * xdisp.c (message2_nolog, set_message): Declare an arg.
18142
18143 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
18144
18145 * syntax.c (scan_sexps_forward): Declare an arg.
18146
18147 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
18148 Declare an arg.
18149
18150 * lisp.h (Fnew_fontset): Declare.
18151
18152 * keymap.c (push_key_description): Call CHARACTERP correctly.
18153
18154 * fontset.c (fontset_add): Declare args. Call make_number correctly.
18155 (face_for_char): Delete unused vars.
18156 (Fset_fontset_font): Doc fix. Delete unused vars.
18157
18158 * doc.c (Fsubstitute_command_keys): Delete unused vars.
18159
18160 * composite.c (update_compositions): Declare arg.
18161
18162 * cm.c (calccost, cmgoto): Declare args.
18163
18164 * charset.c: Remove `emacs' conditional. Doc fixes.
18165 (map_char_table_for_charset): Declare.
18166
18167 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
18168
18169 * ccl.c: Remove `emacs' conditional.
18170
181712008-02-01 Kenichi Handa <handa@m17n.org>
18172
18173 The following changes are to allow specifying multiple font
18174 patterns for a character range (specified by script or charset).
18175
18176 * Makefile.in (abbrev.o): Depend on syntax.h.
18177 (xfaces.o): Depend on charset.h.
18178
18179 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
18180 SINGLE_BYTE_CHAR_P.
18181
18182 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
18183
18184 * character.h (Vchar_script_table): Extern it.
18185
18186 * character.c (Vscript_alist): Delete.
18187 (Vchar_script_table, Qchar_script_table): New variable.
18188 (syms_of_character): Declare Vchar_script_table as a lisp variable
18189 and initialize it.
18190
18191 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
18192 have property char-table-extra-slots, make no extra slot.
18193
18194 * dispextern.h (struct face): Delete member `charset'.
18195 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
18196 SINGLE_BYTE_CHAR_P.
18197 (choose_face_font, lookup_non_ascii_face, font_name_registry):
18198 Add prototypes.
18199 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
18200 (generate_ascii_font_name): Rename from generate_ascii_font.
18201
18202 * fontset.h (get_font_repertory_func): New prototype.
18203 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
18204 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
18205
18206 * fontset.c (Qprepend, Qappend): New variables.
18207 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
18208 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
18209 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
18210 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
18211 (fontset_ref_and_range, fontset_add, reorder_font_vector)
18212 (load_font_get_repertory): New functions.
18213 (fontset_set): Delete.
18214 (fontset_face): New arg FACE. Return face ID, not face.
18215 Complete re-write to handle new fontset structure. Change caller.
18216 (free_face_fontset): Use ASET istead of AREF (X) = Y.
18217 (face_for_char): Don't call lookup_face.
18218 (make_fontset_for_ascii_face): New arg FACE.
18219 (fs_load_font): New arg CHARSET_ID. Don't check
18220 Vfont_encoding_alist here.
18221 (find_font_encoding): New function.
18222 (list_fontsets): Use STRINGP, not ! NILP.
18223 (accumulate_script_ranges): New function.
18224 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
18225 re-written to handle new fontset structure.
18226 (Ffontset_font): Return a copy of element.
18227 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
18228 docstring of font-encoding-alist.
18229
18230 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
18231 (Fset_fotset_font): Fix arguments to 5.
18232
18233 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
18234
18235 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
18236 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
18237 (highlight_trailing_whitespace): Adjust for the change of
18238 lookup_named_face.
18239
18240 * xfaces.c: Include charset.h.
18241 (load_face_font): Delete argument C. Change caller.
18242 (generate_ascii_font_name): Rename from generate_ascii_font.
18243 (font_name_registry): New function.
18244 (cache_face): Store ascii faces before non-ascii faces in buckets.
18245 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
18246 Lookup only ascii faces.
18247 (lookup_non_ascii_face): New function.
18248 (lookup_named_face): Delete argument C. Change caller.
18249 (lookup_derived_face): Delete argument C. Change caller.
18250 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
18251 a string, just call font_list with it.
18252 (choose_face_font): Delete arguments FACE and C. New arg
18253 FONT_SPEC. Change caller.
18254 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
18255 Change caller.
18256 (realize_non_ascii_face): New function.
18257 (realize_x_face): Call load_face_font here.
18258 (realize_tty_face): Delete argument C. Change caller.
18259 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
18260 get a face ID.
18261 (dump_realized_face): Don't print charset of FACE.
18262
18263 * xfns.c (x_set_font): Always call x_new_fontset and
18264 store_frame_parameter.
18265 (Fx_create_frame): Call x_new_fontset, not x_new_font.
18266 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
18267
18268 * xterm.h (x_get_font_repertory): Extern it.
18269
18270 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
18271 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
18272 it->multibyte_p is zero.
18273 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
18274 (x_new_fontset): If FONTSETNAME doesn't match any existing
18275 fontsets, create a new one.
18276 (x_get_font_repertory): New function.
18277
182782008-02-01 Kenichi Handa <handa@m17n.org>
18279
18280 * coding.c (Ffind_coding_systems_region_internal): Detect an
18281 ASCII only string correctly.
18282
18283 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
18284 version is 0.
18285
182862008-02-01 Kenichi Handa <handa@m17n.org>
18287
18288 * lread.c: Include "coding.h".
18289 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
18290 (load_each_byte, unread_char): New variables.
18291 (readchar_backlog): Delete.
18292 (readchar): Return a character unless load_each_byte is nonzero.
18293 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
18294 cons. If unread_char is not -1, simply return it.
18295 (unreadchar): Handle the case that readcharfun is
18296 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
18297 (read_multibyte): Delete.
18298 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
18299 (read_emacs_mule_char): New functions.
18300 (Fload): Even if the file doesn't have the extension ".elc", if
18301 safe_to_load_p returns a positive version number, assume that the
18302 file contains bytecompiled code. If the version is less than 22,
18303 load the file while decoding multibyte sequences by emacs-mule.
18304 (readevalloop): Don't use readchar_backlog.
18305 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
18306 (Fread_from_string): Pay attention to the case that STREAM is a cons.
18307 (read_escape): Delete the arg BYTEREP.
18308 (read1): Set load_each_byte to 1 temporarily while handling
18309 #@NUMBER. Don't call read_multibyte.
18310 (read_vector): Call Fread with a cons. If readcharfun is
18311 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
18312 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
18313 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
18314 and Qload_force_doc_strings.
18315
183162008-02-01 Kenichi Handa <handa@m17n.org>
18317
18318 * xdisp.c (face_before_or_after_it_pos): Call
18319 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
18320
183212008-02-01 Kenichi Handa <handa@m17n.org>
18322
18323 * character.h (TRAILING_CODE_P): New macro.
18324 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
18325 (string_char_with_unification): Fix prototype.
18326 (Vscript_alist): Extern it.
18327
18328 * character.c (Vscript_alist): New variable.
18329 (string_char_with_unification, str_as_unibyte)
18330 (string_escape_byte8): Add `const' to local variables.
18331 (syms_of_character): Declare script-alist as a Lisp variable.
18332
18333 * charset.h (Vcharset_ordered_list): Extern it.
18334 (charset_ordered_list_tick): Extern it.
18335 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
18336 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
18337 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
18338 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
18339 (Funify_charset): Adjust for the change of Funify_charset.
18340
18341 * charset.c (charset_ordered_list_tick): New variable.
18342 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
18343 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
18344 deunify intead of unify a charset.
18345 (string_xstring_p): Add `const' to local variables.
18346 (find_charsets_in_text): Add `const' to arguments and local variables.
18347 (encode_char): Adjust for the change of Funify_charset. Fix
18348 detecting of invalid code.
18349 (Fset_charset_priority): Increment charset_ordered_list_tick.
18350 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
18351 and TO_CODE.
18352
18353 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
18354 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
18355 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
18356 (decode_coding_ccl, consume_chars)
18357 (Ffind_coding_systems_region_internal)
18358 (Fcheck_coding_systems_region): Add `const' to local variables.
18359
18360 * print.c (print_object): Use octal form for printing the
18361 contents of a bool vector.
18362
183632008-02-01 Dave Love <fx@gnu.org>
18364
18365 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
18366 <version == 20>: Refuse to load.
18367
183682008-02-01 Dave Love <fx@gnu.org>
18369
18370 * fns.c: Move coding.h.
18371 (Qcodeset, Qdays, Qmonths): New.
18372 (concat): Use CHARACTERP instead of INTEGERP.
18373 (Flocale_codeset): Delete.
18374 (Flanginfo): New function.
18375 (syms_of_fns): Change accordingly.
18376
18377 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
18378
183792008-02-01 Dave Love <fx@gnu.org>
18380
18381 * casetab.c (init_casetab_once, init_casetab_once): Fix
18382 CHAR_TABLE_SET call.
18383
18384 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
18385
18386 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
18387
18388 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
18389 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
18390 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
18391
18392 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
18393
18394 * coding.c (ENCODE_DESIGNATION, decode_eol)
18395 (make_conversion_work_buffer, code_conversion_restore)
18396 (Fdefine_coding_system_internal): Convert Lisp types.
18397 (code_conversion_restore): Use EQ, not ==.
18398 (Fencode_coding_string): Fix code_convert_string call.
18399
18400 * coding.h (code_convert_region): Fix prototype.
18401
18402 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
18403
18404 * fontset.c (fontset_ref, fontset_set, fs_load_font)
18405 (Ffontset_info): Convert Lisp types.
18406
18407 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
18408
18409 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
18410
18411 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
18412
18413 * chartab.c: Include "...h", not <...h> in some cases.
18414
18415 * callproc.c (Fcall_process): Remove unused variables.
18416
184172008-02-01 Dave Love <fx@gnu.org>
18418
18419 * coding.c (Fset_coding_system_priority): Allow null arg list.
18420
184212008-02-01 Dave Love <fx@gnu.org>
18422
18423 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
18424 (Fself_insert_and_exit): Use CHARACTERP.
18425
18426 * callproc.c (Fcall_process): Remove unused vars.
18427
18428 * xterm.c (XTread_socket): Add extra dead keysyms.
18429
18430 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
18431
18432 * dispextern.h: Remove prototypes for redraw_frame,
18433 redraw_garbaged_frames.
18434
18435 * cmds.c (Fself_insert_command): Use CHARACTERP.
18436
18437 * chartab.c (make_sub_char_table): Remove unused var.
18438 (Fset_char_table_default, Fmap_char_table): Doc fix.
18439
18440 * keymap.c (access_keymap): Remove generic char code.
18441 (push_key_description): Use CHARACTERP.
18442
184432008-02-01 Dave Love <fx@gnu.org>
18444
18445 * charset.c: Doc fixes.
18446 (Funify_charset): Extra checking.
18447
184482008-02-01 Dave Love <fx@gnu.org>
18449
18450 * lread.c: Remove some unused variables.
18451 (safe_to_load_p): If safe, return the magic number version byte.
18452 (Fload): Maybe use load-with-code-conversion.
18453
184542008-02-01 Kenichi Handa <handa@m17n.org>
18455
18456 * category.c (Fmodify_category_entry): Don't modify the contents
18457 of category_set for characters out of the range. Avoid
18458 unnecessary modification.
18459
18460 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
18461 Vchar_unify_table. The default value of the table is now nil.
18462
18463 * character.c (syms_of_character): Setup Vchar_width_table for
18464 eight-bit-control and raw-byte chars.
18465
18466 * charset.h (enum define_charset_arg_index): Delete
18467 charset_arg_parents and add charset_arg_subset and
18468 charset_arg_superset.
18469 (enum charset_attr_index): Delete charset_parents and add
18470 charset_subset and charset_superset.
18471 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
18472 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
18473 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
18474 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
18475 (CHARSET_SUPERSET): New macros.
18476 (charset_work): Extern it.
18477 (ENCODE_CHAR): Use charset_work.
18478 (CHAR_CHARSET_P): Adjust for the change of encoder format.
18479 (map_charset_chars): Extern it.
18480
18481 * charset.c (load_charset_map): Set the default value of encoder
18482 and deunifier char-tables to nil.
18483 (map_charset_chars): Change argument. Change callers. Use
18484 map_char_table_for_charset instead of map_char_table.
18485 (Fmap_charset_chars): New optional args from_code and to_code.
18486 (Fdefine_charset_internal): Adjust for the change of
18487 `define-charset' (:parents -> :subset or :superset).
18488 (charset_work): New variable.
18489 (encode_char, syms_of_charset): Adjust for the change of
18490 Fdefine_charset_internal.
18491 (Ffind_charset_string): Setup the vector `charsets' correctly.
18492
18493 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
18494 the previous change.
18495 (char_table_ref_and_range): Adjust for the above change.
18496 (map_sub_char_table_for_charset): New function.
18497 (map_char_table_for_charset): New function.
18498
18499 * keymap.c (describe_vector): Handle a char-table directly here.
18500 (describe_char_table): Delete.
18501
18502 * lisp.h (map_charset_chars): Delete.
18503
185042008-02-01 Dave Love <fx@gnu.org>
18505
18506 * fns.c (count_combining): Comment out (unused).
18507 (Flocale_codeset): New.
18508 (syms_of_fns): Defsubr it.
18509
18510 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
18511 (size_t): Remove.
18512
185132008-02-01 Dave Love <fx@gnu.org>
18514
18515 * Makefile.in (chartab.o): Depend on charset.h.
18516
185172008-02-01 Kenichi Handa <handa@m17n.org>
18518
18519 * character.c (syms_of_character): Set the default value of
18520 Vprintable_chars to Qnil.
18521
185222008-02-01 Dave Love <fx@gnu.org>
18523
18524 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
18525
185262008-02-01 Kenichi Handa <handa@m17n.org>
18527
18528 * charset.c (load_charset_map): Handle the case that from < to
18529 correctly.
18530
18531 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
18532 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
18533 Pay attention to raw-8-bit chars.
18534
185352008-02-01 Kenichi Handa <handa@m17n.org>
18536
18537 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
18538 It is not bytecompiled now.
18539
18540 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
18541 (charset_jisx0208): New variables.
18542 (Fdefine_charset_internal): Setup them if appropriate.
18543 (init_charset_once): Initialize them to -1.
18544
18545 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
18546 (charset_jisx0208): Extern them.
18547
18548 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
18549 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
18550 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
18551 (setup_iso_safe_charsets): Fix arguments to Fassq.
18552 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
18553 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
18554 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
18555 (encode_coding_iso_2022): Change the 1st arg to
18556 ENCODE_ISO_CHARACTER to a variable.
18557
185582008-02-01 Kenichi Handa <handa@m17n.org>
18559
18560 * charset.h (enum define_charset_arg_index): New enums
18561 charset_arg_min_code and charset_arg_max_code.
18562 (struct charset): New member char_index_offset.
18563
18564 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
18565 Take charset->char_index_offset into account.
18566 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
18567 args[charset_arg_max_code]. Setup charset.char_index_offset.
18568 (syms_of_charset): Fix args to Fdefine_charset_internal.
18569
185702008-02-01 Dave Love <fx@gnu.org>
18571
18572 * coding.c (decode_coding_utf_8): Reject overlong sequences.
18573
185742008-02-01 Dave Love <fx@gnu.org>
18575
18576 * coding.c: Doc fixes.
18577 (Fcoding_system_aliases): Fix return value.
18578 (Qmac): Remove (duplicated) definition.
18579
185802008-02-01 Dave Love <fx@gnu.org>
18581
362654a6
JB
18582 * charset.c (Fcharset_priority_list, Fset_charset_priority):
18583 New functions.
aac0c6e3
MR
18584
18585 * character.c (Fstring): Doc fix.
18586
18587 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
18588
362654a6 18589 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
aac0c6e3
MR
18590 (font-encoding-alist): Doc fix.
18591
185922008-02-01 Dave Love <fx@gnu.org>
18593
18594 * term.c (costs_set): Declare static, non-initialized for pcc.
18595 (encode_terminal_code): Remove unused var.
18596
18597 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
18598 for K&R.
18599
18600 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
18601
18602 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
18603 (suffixes): Move out of make_subsidiaries for K&R.
18604
18605 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
18606
18607 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
18608
186092008-02-01 Dave Love <fx@gnu.org>
18610
18611 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
18612
18613 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
18614
186152008-02-01 Yong Lu <lyongu@asia-infonet.com>
18616
18617 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
18618
18619 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
18620
186212008-02-01 Kenichi Handa <handa@m17n.org>
18622
18623 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
18624 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
18625
186262008-02-01 Kenichi Handa <handa@m17n.org>
18627
18628 * coding.c (decode_coding_charset): Adjust for the change of
18629 Fdefine_coding_system_internal.
18630 (Fdefine_coding_system_internal): For a coding system of
18631 `charset' type, store a list of charset IDs in
18632 `charset_attr_charset_valids' element of coding attributes.
18633
186342008-02-01 Kenichi Handa <handa@m17n.org>
18635
18636 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
18637 (emacs_mule_char): New arg src. Delete arg `composition'. Change
18638 caller. Handle 2-byte and 3-byte charsets correctly.
18639 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
18640 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
18641 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
18642 (DECODE_EMACS_MULE_21_COMPOSITION): Call
18643 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
18644 sequence.
18645 (decode_coding_emacs_mule): Handle composition correctly. Rewind
18646 `src' and `consumed_chars' correctly before calling emacs_mule_char.
18647 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
18648 and alt&rule composition.
18649 (decode_coding_iso_2022): Handle composition correctly.
18650 (init_coding_once): Setup emacs_mule_bytes for private charsets.
18651
18652 * charset.c (Fdefine_charset_internal): Fix bug for the case of
18653 re-defining a charset. If the charset has :emacs-mule-id, setup
18654 emacs_mule_bytes.
18655 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
18656
186572008-02-01 Kenichi Handa <handa@m17n.org>
18658
18659 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
18660 (encode_coding_big5, encode_coding_charset): If coding requires safe
18661 encoding, produce a character specified by
18662 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
18663
186642008-02-01 Dave Love <fx@gnu.org>
18665
18666 * xterm.c (XSetIMValues): Declare.
18667
18668 * process.c: Conditionally include sys/wait.h, pty.h.
18669
18670 * print.c (print_object): Fix print format for 64-bit systems.
18671
18672 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
18673
18674 * buffer.c (emacs_strerror): Declare.
18675
18676 * fontset.c (Fclear_face_cache): Declare.
18677 (accumulate_font_info): Comment-out (unused).
18678 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
18679 variables.
18680
18681 * character.h (string_escape_byte8): Declare.
18682
18683 * charset.c (load_charset_map, load_charset_map_from_file): Remove
18684 unused vars.
18685 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
18686 (Fmap_charset_chars): Doc fix.
18687
18688 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
18689 (Fset_coding_system_priority, Fset_coding_system_priority)
18690 (Fdefine_coding_system_internal): Doc fix.
18691
186922008-02-01 Dave Love <fx@gnu.org>
18693
18694 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
18695
186962008-02-01 Kenichi Handa <handa@m17n.org>
18697
18698 * character.c (string_escape_byte8): Make multibyte string with
18699 correct size.
18700
18701 * charset.c (Fmake_char): Delete unnecessary code.
18702
187032008-02-01 Kenichi Handa <handa@m17n.org>
18704
18705 * xfns.c (x_encode_text): Allocate coding.destination here, and
18706 call encode_coding_object with dst_object Qnil.
18707
18708 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
18709 multibyte form correctly.
18710
18711 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
18712 against Vfont_encoding_alist.
18713
18714 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
18715 handling of charset list.
18716 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
18717 (decode_coding_object): Move point to coding->dst_pos before
18718 calling post-read-conversion function.
18719 (encode_coding_object): Give correct arguments to
18720 pre-write-conversion. Ignore the return value of
18721 pre-write-conversion function. Pay attention to the case that
18722 pre-write-conversion changes the current buffer. If dst_object is
18723 Qt, even if coding->src_bytes is zero, allocate at least one byte
18724 to coding->destination.
18725
18726 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
18727
18728 * charset.c (Fmake_char): Make it more backward compatible.
18729 (Fmap_charset_chars): Fix docstring.
18730
187312008-02-01 Dave Love <fx@gnu.org>
18732
18733 * coding.c: Doc fixes.
18734 (Fdefine_coding_system_alias): Use names, not symbols, in
18735 coding-system-alist.
18736
187372008-02-01 Kenichi Handa <handa@m17n.org>
18738
18739 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
18740 of calling free_realized_face.
18741
187422008-02-01 Yong Lu <lyongu@asia-infonet.com>
18743
18744 * charset.c (read_hex): Don't treat SPC as a comment starter.
18745 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
18746 (Fdecode_char): Fix typo.
18747
187482008-02-01 Kenichi Handa <handa@m17n.org>
18749
18750 * charset.h (struct charset): New member `code_space_mask'.
18751
18752 * coding.c (coding_set_source): Delete the local variable beg_byte.
18753 (encode_coding_charset, Fdefine_coding_system_internal):
18754 Delete the local variable charset.
18755 (Fdefine_coding_system_internal): Setup
18756 attrs[coding_attr_charset_valids] correctly.
18757
18758 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
18759 member to check if CODE is valid or not.
18760 (Fdefine_charset_internal): Initialize `code_space_mask' member.
18761 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
18762 is within the range of charset->min_code and carset->max_code.
18763
187642008-02-01 Dave Love <fx@gnu.org>
18765
18766 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
18767
18768 * dispextern.h (generate_ascii_font): Fix return type.
18769
18770 * xfaces.c (generate_ascii_font): Fix arg declaration.
18771
18772 * coding.c (coding_inherit_eol_type)
18773 (Fset_terminal_coding_system_internal)
18774 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
18775
187762008-02-01 Kenichi Handa <handa@m17n.org>
18777
18778 * coding.c (decode_coding_charset, encode_coding_charset): Handle
18779 multiple charsets correctly.
18780
187812008-02-01 Kenichi Handa <handa@m17n.org>
18782
18783 * search.c (boyer_moore): Fix handling of multibyte character
18784 translation.
18785
18786 * xdisp.c (display_mode_element): When the variable `elt' is
18787 changed, update `this' and `lisp_string'.
18788
187892008-02-01 Kenichi Handa <handa@m17n.org>
18790
18791 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
18792
18793 * callproc.c (Fcall_process): Be sure to give the current buffer
18794 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
18795
18796 * charset.c (struct charset_map_entries): New struct.
18797 (load_charset_map): Rename from parse_charset_map. New args
18798 entries and n_entries. Change caller.
18799 (load_charset_map_from_file): Rename from load_charset_map.
18800 Change caller. New arg control_flag. Call load_charset_map at
18801 the tail.
18802 (load_charset_map_from_vector): New function.
18803 (Fdefine_charset_internal): Setup charset.compact_codes_p.
18804 (encode_char): If the charset is compact, change a character index
18805 to a code point.
18806
18807 * coding.c (coding_alloc_by_making_gap): Check the case that the
18808 source and destination are the same correctly.
18809 (decode_coding_raw_text): Set coding->consumed_char and
18810 coding->consumed to 0.
18811 (produce_chars): If coding->chars_at_source is nonzero, update
18812 coding->consumed_char and coding->consumed before calling
18813 alloc_destination.
18814 (Fdefine_coding_system_alias): Register ALIAS in
18815 Vcoding_system_alist.
18816 (syms_of_coding): Define `no-conversion' coding system at the tail.
18817
18818 * fileio.c (Finsert_file_contents): Set coding_system instead of
18819 val. If the current buffer is multibyte, always call
18820 decode_coding_gap.
18821
18822 * xfaces.c (try_font_list): Give higher priority to fontset's
18823 family than face's family.
18824
188252008-02-01 Kenichi Handa <handa@m17n.org>
18826
18827 * callproc.c (Fcall_process): Be sure to give the current buffer
18828 to decode_coding_c_string.
18829
18830 * xfaces.c (try_font_list): Give a family specified in a fontset
18831 higher priority than a family specified in a face.
18832
188332008-02-01 Kenichi Handa <handa@m17n.org>
18834
18835 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
18836 Fix arguments to insert_from_buffer.
18837
18838 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
18839
188402008-02-01 Kenichi Handa <handa@m17n.org>
18841
18842 * coding.c (produce_chars): Set the variable `multibytep' correctly.
18843 (decode_coding_gap): Set coding->dst_multibyte correctly.
18844
188452008-02-01 Kenichi Handa <handa@m17n.org>
18846
18847 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
18848 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
18849 (encode_coding_utf_16): Substitute coding->default_char for
18850 non-Unicode characters.
18851 (decode_coding): Don't call record_insert here.
18852 (setup_coding_system): Initialize `surrogate' of
18853 coding->spec.utf_16 to 0.
18854 (EMIT_ONE_BYTE): Fix for multibyte case.
18855
18856 * insdel.c (insert_from_gap): Call record_insert.
18857
188582008-02-01 Kenichi Handa <handa@m17n.org>
18859
18860 * casefiddle.c (casify_region): Fix multibyte case.
18861
18862 * character.c (c_string_width): Add return type `int'.
18863 (char_string_with_unification): Delete arg ADVANCED.
18864
18865 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
18866 (CHAR_STRING): Adjust for the change of char_string_with_unification.
18867 (CHAR_STRING_ADVANCE): Make it do-while statement.
18868
18869 * chartab.c (sub_char_table_set_range): Optimize for the case
18870 DEPTH == 3. Add workaround code for a GCC optimization bug.
18871
18872 * charset.c (parse_charset_map): Remove an unused variable.
18873
18874 * coding.c: Delete unused variables.
18875
18876 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
18877 earlier. If inserted is zero and the coding system doesn't
18878 require flushing, don't call decode_coding_gap.
18879
18880 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
18881
188822008-02-01 Kenichi Handa <handa@m17n.org>
18883
18884 The following changes are for using Unicode as an internal
18885 character model, and use UTF-8 format for buffer/string
18886 representation.
18887
18888 * .gdbinit (xchartable): Adjust for the change of char table structure.
18889 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
18890
18891 * Makefile.in (obj): Add character.o and chartab.o.
18892 (lisp, shortlisp): Remove utf-8.elc.
18893 (*.o): For many files, change dependency on charset.h to
18894 character.h, and add dependency on character.h.
18895 (character.o, chartab.o): New targets.
18896
18897 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
18898 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
18899 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
18900 of "charset.h".
18901
18902 * dired.c, filelock.c: Include "character.h".
18903
18904 * alloc.c: Include "character.h" instead of "charset.h".
18905 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
18906 (syms_of_alloc): Remove defsubr for Smake_char_table.
18907
18908 * buffer.c: Include "character.h" instead of "charset.h", don't
18909 include "coding.h".
18910 (Fset_buffer_multibyte): Adjust for UTF-8.
18911
18912 * buffer.h: EXFUN Fbuffer_live_p.
18913
18914 * callproc.c: Include "character.h" instead of "charset.h".
18915 (Fcall_process): Big change for the new code-conversion APIs.
18916
18917 * casetab.c: Include "character.h" instead of "charset.h".
18918 (set_canon, set_identity, shuffle): Adjust for the new
18919 map_char_table spec.
18920 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
18921 accessing the char table structure.
18922
18923 * chartab.c: New file that implements char table.
18924
18925 * category.c: Include "character.h".
18926 (copy_category_entry): New function.
18927 (copy_category_table): Call map_char_table and copy_category_entry.
18928 (Fmake_category_table): Initialize all top-level slots.
18929 (char_category_set): New function.
18930 (modify_lower_category_set): Delete.
18931 (Fmodify_category_entry): Call char_table_ref_and_range.
18932
18933 * category.h (CATEGORY_SET): Just call char_category_set.
18934
18935 * ccl.c: Include "character.h".
18936 (Qccl, Qcclp): New variables.
18937 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
18938 it's less than 256.
18939 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
18940 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
18941 and DST type.
18942 (ccl_driver): Change types of argument, adjust code accordingly.
18943 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
18944 ccl_driver.
18945 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
18946
18947 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
18948 New members src_multibyte, dst_multibyte, consumed, and produced.
18949 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
18950 (CODING_SPEC_CCL_PROGRAM): New macro.
18951 (ccl_driver): Update prototype.
18952 (Qccl, Qcclp, Fccl_program_p): Extern them.
18953 (CHECK_CCL_PROGRAM): New macro.
18954
18955 * character.c, character.h, chartab.c: New files.
18956
18957 * charset.c: Mostly re-written. Move character and multibyte sequence
18958 handling codes to character.c.
18959
18960 * charset.h: Mostly re-written. Move character and multibyte sequence
18961 handling codes to character.h.
18962
18963 * coding.c, coding.h: Mostly re-written.
18964
18965 * composite.c: Include "character.h" instead of "charset.h".
18966 (CHAR_WIDTH): Move to character.h.
18967 (HASH_KEY, HASH_VALUE): Delete.
18968
18969 * composite.h (enum composition_method): Change order of enumeration
18970 symbols.
18971
18972 * data.c: Include "character.h" instead of "charset.h".
18973 (Faref): Call CHAR_TABLE_REF for a char table.
18974 (Faset): Call CHAR_TABLE_SET for a char table.
18975
18976 * dispextern.h (free_realized_face, check_face_attribytes)
18977 (generate_ascii_font): Extern them.
18978 (free_realized_multibyte_face): Delete extern.
18979
18980 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
18981 table structure.
18982
18983 * editfns.c: Include "character.h" instead of "charset.h".
18984 (Fchar_to_string): Always call CHAR_STRING.
18985
18986 * emacs.c (main): Call init_charset_once, init_charset,
18987 syms_of_chartab, and syms_of_character.
18988
18989 * fileio.c: Include "character.h" instead of "charset.h".
18990 (Finsert_file_contents): Big change for the new code-conversion API.
18991 (choose_write_coding_system, Fwrite_region): Likewise.
18992 (build_annotations_2): Delete.
18993 (e_write): Big change for the new code-conversion API.
18994
18995 * fns.c: Include "character.h" instead of "charset.h".
18996 (copy_sub_char_table): Move to chartab.c.
18997 (Fcopy_sequence): Call copy_char_table for a char table.
18998 (concat): Delete codes calling count_multibyte.
18999 (string_char_to_byte, string_byte_to_char): Adjust for the new
19000 multibyte form.
19001 (internal_equal): Adjust for the change of char table structure.
19002 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
19003 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
19004 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
19005 (char_table_translate, optimize_sub_char_table)
19006 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
19007 chartab.c.
19008 (char_table_ref_and_index): Delete.
19009 (HASH_KEY, HASH_VALUE): Move to lisp.h.
19010 (Fmd5): Call preferred_coding_system instead of accessing
19011 Vcoding_category_list. Adjust for the new code-conversion API.
19012 (syms_of_fns): Move defsubr for char table related functions to
19013 chartab.c.
19014
19015 * fontset.c: Mostly re-written.
19016
19017 * fontset.h (struct font_info): Change type of the member encoding_type.
19018 (enum FONT_SPEC_INDEX): New enum.
19019 (fontset_font_pattern, fs_load_font): Update prototype.
19020 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
19021
19022 * indent.c: Include "character.h" instead of "charset.h".
19023 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
19024
19025 * insdel.c: Include "character.h" instead of "charset.h".
19026 (copy_text): Don't refer to Vnonascii_translation_table.
19027 (insert_from_gap): New function.
19028
19029 * keyboard.c: Include "character.h" instead of "charset.h".
19030 (command_loop_1): Never call direct_output_forward_char before
19031 a non-ASCII character.
19032 (read_char): If Vkeyboard_translate_table is a char table, always
19033 translate a character.
19034
19035 * keymap.c: Include "character.h".
19036 (store_in_keymap): Handle the case that IDX is a cons.
19037 (Fdefine_key): Handle the case that KEY is a cons and the car part
19038 is also a cons (range).
19039 (push_key_description): Adjust for the new character code.
19040 (describe_vector): Call describe_char_table for a char table.
19041 (describe_char_table): New function.
19042
19043 * keymap.h (describe_char_table): Extern it.
19044
19045 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
19046 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
19047 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
19048 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
19049 Delete.
19050 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
19051 structure.
19052 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
19053 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
19054 (CHARTAB_SIZE_BITS_3): New macros.
19055 (chartab_size): Extern it.
19056 (struct Lisp_Char_Table): Re-design.
19057 (struct Lisp_Sub_Char_Table): New structure.
19058 (HASH_KEY, HASH_VALUE): Move from fns.c.
19059 (CHARACTERBITS): Define as 22.
19060 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
19061 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
19062 (GC_SUB_CHAR_TABLE_P): New macro.
19063 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
19064 (code_convert_string_norecord): Deleted extern.
19065 (init_character_once, syms_of_character, init_charset)
19066 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
19067
19068 * lread.c: Include "character.h".
19069 (read_multibyte): New arg NBYTES.
19070 (read_escape): Change the meaning of returned *BYTEREP.
19071 (to_multibyte): Delete.
19072 (read1): Adjust the handling of char table and string.
19073
19074 * print.c: Include "character.h" instead of "charset.h".
19075 (print_string): Convert 8-bit raw bytes to octal form by
19076 string_escape_byte8.
19077 (print_object): Adjust for the new multibyte form. Print 8-bit
19078 raw bytes always in octal form. Handle sub char table correctly.
19079
19080 * process.c: Include "character.h" instead of "charset.h".
19081 (read_process_output, send_process): Adjust for the new
19082 code-conversion API.
19083
19084 * puresize.h (BASE_PURESIZE): Increase.
19085
19086 * regex.c: Include "character.h" instead of "charset.h".
19087 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
19088 (regex_compile): Accept a range whose starting and ending
19089 character have different leading bytes.
19090 (analyse_first): Adjust for the above change.
19091
19092 * search.c: Include "character.h" instead of "charset.h".
19093 (search_buffer, boyer_moore): Adjust for the new multibyte form.
19094 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
19095
19096 * syntax.c: Include "character.h" instead of "charset.h".
19097 (syntax_parent_lookup): Delete.
19098 (Fmodify_syntax_entry): Accept a cons as CHAR.
19099 (skip_chars): Adjust for the new multibyte form.
19100 (init_syntax_once): Call char_table_set_range instead of directly
19101 accessing the structure of a char table.
19102
19103 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
19104 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
19105 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
19106 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
19107
19108 * term.c: Include "buffer.h" and "character.h".
19109 (encode_terminal_code, write_glyphs): Adjust for the new
19110 code-conversion API.
19111 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
19112
19113 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
19114
19115 * xdisp.c: Include "character.h".
19116 (get_next_display_element): Adjust for the new multibyte form.
19117 (disp_char_vector): Adjust for the new char table structure.
19118 (decode_mode_spec_coding): Adjust for the new structure of
19119 coding system.
19120 (decode_mode_spec): Adjust for the new code-conversion API.
19121
19122 * xfaces.c: Include "character.h" instead of "charset.h".
19123 (load_face_font): Adjust for the change of choose_face_font and
19124 FS_LOAD_FONT.
19125 (generate_ascii_font): New function.
19126 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
19127 (set_font_frame_param): Adjust for the change of choose_face_font.
19128 (free_realized_face): Make it public.
19129 (free_realized_faces_for_fontset): Rename from
19130 free_realized_multibyte_face. Free also faces realized for ASCII.
19131 (choose_face_font): Change arguments. Adjust for the change of
19132 fontset_font_pattern and FS_LOAD_FONT.
19133
19134 * xfns.c: Include "character.h".
19135 (x_encode_text): Adjust for the new code-conversion API.
19136
19137 * xselect.c: Don't include "charset.h".
19138 (selection_data_to_lisp_data): Adjust for the new code conversion API.
19139
19140 * xterm.c: Include "character.h".
19141 (x_encode_char): New argument CHARSET. Change caller.
19142 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
19143 Call ENCODE_CHAR instead of SPLIT_CHAR.
19144 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
19145 CHAR_WIDTH instead of CHARSET_WIDTH.
19146 (XTread_socket): Adjust for the new code-conversion API.
19147 (x_new_font): Adjust for the change of FS_LOAD_FONT.
19148 (x_load_font): Adjust for the change of struct font.
19149
191502008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
19151
19152 * xfaces.c (face_at_buffer_position): Remove unused vars.
19153
191542008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19155
19156 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
19157 Fix overflow checking.
19158
191592008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19160
19161 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
19162 Cancel previous change.
19163
191642008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
19165
19166 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
19167 ccl->eight_bit_control. Fix check for buffer overflow.
19168 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
19169 (ccl_driver): Initialize extra_bytes to 0.
19170
191712008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
19172
19173 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
19174 return it ORed with ctrl_modifier.
19175
191762008-01-29 Miles Bader <miles@gnu.org>
19177
19178 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
19179
191802008-01-28 Jason Rumney <jasonr@gnu.org>
19181
19182 * w32.c (stat): Don't double check for networked drive.
19183
191842008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
19185
19186 * window.c (run_window_configuration_change_hook): New function.
19187 Code extracted from set_window_buffer. Set the selected frame.
19188 (set_window_buffer): Use it.
19189 * window.h (run_window_configuration_change_hook): Declare.
19190 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
19191
19192 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
19193
191942008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
19195
19196 * Makefile.in: Remove references to unused macros.
19197
191982008-01-26 Eli Zaretskii <eliz@gnu.org>
19199
19200 * w32.c (g_b_init_get_sid_sub_authority)
19201 (g_b_init_get_sid_sub_authority_count): New static variables.
19202 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
19203 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
19204 (init_user_info): Use them to retrieve uid and gid.
19205 Use 500/513, the Windows defaults, as Administrator's uid/gid.
19206 (fstat): Use pw_uid and pw_gid from the_passwd structure for
19207 st_uid and st_gid of the file.
19208
192092008-01-26 Jason Rumney <jasonr@gnu.org>
19210
19211 * w32.c (logon_network_drive): New function.
19212 (stat): Use it.
19213
192142008-01-26 Chong Yidong <cyd@stupidchicken.com>
19215
19216 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
19217 invisible text covered with an ellipsis.
19218
192192008-01-25 Richard Stallman <rms@gnu.org>
19220
19221 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
19222 jump back to beginning. Move some other initializations after that.
19223 (Qwindow_text_change_functions, Vwindow_text_change_functions):
19224 New variables.
19225 (syms_of_xdisp): Init them.
19226
19227 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
19228
19229 * buffer.c (reset_buffer_local_variables):
19230 Implement `permanent-local-hook'.
19231 (Qpermanent_local_hook): New variable.
19232 (syms_of_buffer): Init and staticpro it.
19233
192342008-01-25 Michael Albinus <michael.albinus@gmx.de>
19235
19236 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
19237
192382008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
19239
19240 * fns.c (Fclrhash): Return TABLE.
19241
192422008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19243
19244 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
19245 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
19246 is set even without positional changes.
19247 (x_scroll_bar_clear): Set bar->redraw_needed_p.
19248
19249 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
19250
192512008-01-23 Jason Rumney <jasonr@gnu.org>
19252
19253 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
19254
19255 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
19256 the unicode range available in MULE by locale-coding-system.
19257 Improve dbcs lead byte detection. Set event timestamp and modifiers
19258 earlier.
19259
192602008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19261
19262 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
19263 [MAC_OSX] (init_mac_osx_environment): Initialize it.
19264 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
19265 when used on child processes.
19266
192672008-01-21 Michael Albinus <michael.albinus@gmx.de>
19268
19269 * dbusbind.c (Fdbus_method_return_internal): Rename from
19270 Fdbus_method_return.
19271 (Fdbus_unregister_object): Move to dbus.el.
19272 (Fdbus_call_method, Fdbus_method_return_internal)
19273 (Fdbus_send_signal): Improve debug messages.
19274
192752008-01-20 Martin Rudalics <rudalics@gmx.at>
19276
19277 * undo.c (undo_inhibit_record_point): New variable.
19278 (syms_of_undo): Initialize it.
19279 (record_point): Don't record point when undo_inhibit_record_point
19280 is set.
19281
192822008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
19283
19284 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
19285
19286 * xdisp.c (Qauto_hscroll_mode): New var.
19287 (syms_of_xdisp): Initialize it.
19288 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
19289 window's buffer.
19290 (hscroll_windows): Don't check automatic_hscrolling_p here.
19291
19292 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
19293 vscroll if we're setting window-buffer to the value it already has.
19294
192952008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
19296
19297 * m/intel386.h: Remove references to XENIX.
19298
192992008-01-17 Andreas Schwab <schwab@suse.de>
19300
19301 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
19302 instead of HAVE_X86_64_LIB64_DIR.
19303 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
19304
193052008-01-17 Glenn Morris <rgm@gnu.org>
19306
19307 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
19308 to HAVE_X86_64_LIB64_DIR.
19309
193102008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
19311
19312 * s/irix3-3.h:
19313 * s/irix4-0.h:
19314 * s/386-ix.h:
19315 * s/domain.h:
19316 * s/hpux9-x11r4.h:
19317 * s/hpux9shxr4.h: Remove files for systems no longer supported.
19318
19319 * sysdep.c: Remove code containing references to symbols defined
19320 by unsupported systems.
19321
193222008-01-16 Glenn Morris <rgm@gnu.org>
19323
19324 * coding.c (select-safe-coding-system-function): Doc fix.
19325
193262008-01-15 Glenn Morris <rgm@gnu.org>
19327
19328 * config.in: Revert 2008-01-13 change: this is a generated file.
19329
193302008-01-13 Tom Tromey <tromey@redhat.com>
19331
19332 * lisp.h: Fix typo.
19333
193342008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
19335
19336 * m/sequent-ptx.h:
19337 * m/sequent.h:
19338 * s/ptx.h:
19339 * s/ptx4-2.h:
19340 * s/ptx4.h: Remove files for systems no longer supported.
19341
19342 * callproc.c (Fcall_process): Fix previous change.
19343
193442008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
19345
19346 * unexsunos4.c: Remove file, system not supported anymore.
19347
19348 * m/mips.h:
19349 * m/intel386.h:
19350 * callproc.c:
19351 * config.in:
19352 * ecrt0.c:
19353 * emacs.c:
19354 * fileio.c:
19355 * frame.c:
19356 * getpagesize.h:
19357 * keyboard.c:
19358 * lread.c:
19359 * process.c:
19360 * puresize.h:
19361 * sysdep.c:
19362 * systty.h:
19363 * syswait.h:
19364 * unexec.c:
19365 * xdisp.c:
19366 * alloc.c: Remove code containing references to symbols defined by
19367 unsupported systems.
19368
193692008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
19370
19371 * coding.c (detect_coding_mask): Fix previous change.
19372
193732008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
19374
19375 * coding.c (detect_coding_iso2022): New arg
19376 latin_extra_code_state. Allow Latin extra codes only
19377 when *latin_extra_code_state is nonzero.
19378 (detect_coding_mask): If there is a NULL byte, detect the encoding
19379 as UTF-16 or binary. If Latin extra codes exist, detect the
19380 encoding as ISO-2022 only when there's no other proper encoding is
19381 found.
19382
193832008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19384
19385 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
19386 #ifdef MAC_OS.
19387
193882008-01-08 Richard Stallman <rms@gnu.org>
19389
19390 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
19391
193922008-01-06 Nick Roberts <nickrob@snap.net.nz>
19393
19394 * keyboard.c (parse_menu_item): Don't enclose key bindings on
19395 menu bar in parentheses.
19396
193972008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
19398
19399 * m/7300.h:
19400 * m/acorn.h:
19401 * m/alliant-2800.h:
19402 * m/alliant.h:
19403 * m/alliant1.h:
19404 * m/alliant4.h:
19405 * m/altos.h:
19406 * m/amdahl.h:
19407 * m/apollo.h:
19408 * m/att3b.h:
19409 * m/aviion-intel.h:
19410 * m/aviion.h:
19411 * m/celerity.h:
19412 * m/clipper.h:
19413 * m/cnvrgnt.h:
19414 * m/convex.h:
19415 * m/cydra5.h:
19416 * m/delta88k.h:
19417 * m/dpx2.h:
19418 * m/dual.h:
19419 * m/elxsi.h:
19420 * m/f301.h:
19421 * m/gould-np1.h:
19422 * m/gould.h:
19423 * m/i860.h:
19424 * m/ibmps2-aix.h:
19425 * m/ibmrt-aix.h:
19426 * m/ibmrt.h:
19427 * m/irist.h:
19428 * m/is386.h:
19429 * m/isi-ov.h:
19430 * m/mega68.h:
19431 * m/mg1.h:
19432 * m/news-r6.h:
19433 * m/news-risc.h:
19434 * m/news.h:
19435 * m/nh3000.h:
19436 * m/nh4000.h:
19437 * m/ns16000.h:
19438 * m/ns32000.h:
19439 * m/nu.h:
19440 * m/orion.h:
19441 * m/orion105.h:
19442 * m/paragon.h:
19443 * m/pfa50.h:
19444 * m/plexus.h:
19445 * m/pyramid.h:
19446 * m/pyrmips.h:
19447 * m/sh3el.h:
19448 * m/sps7.h:
19449 * m/sr2k.h:
19450 * m/stride.h:
19451 * m/sun1.h:
19452 * m/sun2.h:
19453 * m/sun3-68881.h:
19454 * m/sun3-fpa.h:
19455 * m/sun3-soft.h:
19456 * m/sun3.h:
19457 * m/sun386.h:
19458 * m/symmetry.h:
19459 * m/tad68k.h:
19460 * m/tahoe.h:
19461 * m/targon31.h:
19462 * m/tek4300.h:
19463 * m/tekxd88.h:
19464 * m/tower32.h:
19465 * m/tower32v3.h:
19466 * m/ustation.h:
19467 * m/wicat.h:
19468 * m/xps100.h:
19469 * s/cxux.h:
19470 * s/cxux7.h:
19471 * s/dgux.h:
19472 * s/dgux4.h:
19473 * s/dgux5-4-3.h:
19474 * s/dgux5-4r2.h:
19475 * s/esix.h:
19476 * s/esix5r4.h:
19477 * s/hiuxmpp.h:
19478 * s/hiuxwe2.h:
19479 * s/iris3-5.h:
19480 * s/iris3-6.h:
19481 * s/isc2-2.h:
19482 * s/isc3-0.h:
19483 * s/isc4-0.h:
19484 * s/isc4-1.h:
19485 * s/newsos5.h:
19486 * s/newsos6.h:
19487 * s/osf1.h:
19488 * s/osf5-0.h:
19489 * s/riscix1-1.h:
19490 * s/riscix12.h:
19491 * s/sco4.h:
19492 * s/sco5.h:
19493 * s/sunos4-0.h:
19494 * s/sunos4-1.h:
19495 * s/sunos413.h:
19496 * s/sunos4shr.h:
19497 * s/umax.h:
19498 * s/unipl5-2.h:
19499 * s/xenix.h:
19500 * cxux-crt0.s:
19501 * unexapollo.c:
19502 * unexconvex.c:
19503 * unexenix.c:
19504 * unexsni.c: Remove files for systems no longer supported.
19505
19506 * m/intel386.h: Remove references to unsupported systems.
19507
19508 * w32.c (get_emacs_configuration): Remove reference to i860.
19509
19510 * sysdep.c: Remove dead code.
19511
195122008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
19513
19514 * s/rtu.h:
19515 * m/masscomp.h: Remove files. Platform is obsolete.
19516
195172008-01-04 Michael Albinus <michael.albinus@gmx.de>
19518
19519 * dbusbind.c (Fdbus_method_return): New function.
19520 (xd_read_message): Add the serial number to the event.
19521 (Fdbus_register_method): Activate the function.
19522
195232008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
19524
19525 * keyboard.c (read_key_sequence): Fix typo.
19526
195272008-01-03 Michael Albinus <michael.albinus@gmx.de>
19528
19529 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
19530 (xd_signature, xd_append_arg): Handle element type detection for
19531 empty arrays.
19532 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
19533 SDATA () calls; this must be solved more general.
19534 (Fdbus_register_signal): Use SBYTES instead of strlen.
19535
195362008-01-03 Magnus Henoch <magnus@zemdatav>
19537
19538 * dbusbind.c (xd_append_arg): Use unsigned char instead of
19539 unsigned int for byte values (necessary for big-endian platform).
19540 (Fdbus_call_method): Handle the case of no returned arguments.
19541
195422007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
19543
19544 * dbusbind.c (xd_read_message): Use non-static input_event struct.
19545
195462007-12-31 Magnus Henoch <mange@freemail.hu>
19547
19548 * dbusbind.c (xd_signature): Signature of variant is just "v".
19549
195502007-12-30 Michael Albinus <michael.albinus@gmx.de>
19551
19552 * dbusbind.c: Fix several errors and compiler warnings.
19553 Reported by Tom Tromey <tromey@redhat.com>.
19554 (XD_ERROR, XD_DEBUG_MESSAGE)
19555 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
19556 (xd_append_arg): Part for basic D-Bus types rewritten.
19557 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
19558 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
19559 appropriate.
19560 (xd_read_message): Return Qnil. Don't signal an error; it is not
19561 useful during event reading.
19562 (Fdbus_register_signal): Signal an error if the check for
19563 FUNCTIONP fails.
19564 (Fdbus_register_method): New function. The implementation is not
19565 complete, the call of the function signals an error therefore.
19566 (Fdbus_unregister_object): New function, renamed from
19567 Fdbus_unregister_signal. The initial check signals an error, if
19568 the object is not well formed.
19569
195702007-12-30 Richard Stallman <rms@gnu.org>
19571
19572 * textprop.c (get_char_property_and_overlay):
19573 Signal error if POSITION is out of range in a buffer.
19574
195752007-12-29 Martin Rudalics <rudalics@gmx.at>
19576
19577 * w32fns.c (Fx_create_frame): Make copy of frame parameters
19578 because the original parameters are in pure storage now.
19579
195802007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19581
19582 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
19583
195842007-12-22 Eli Zaretskii <eliz@gnu.org>
19585
19586 * callint.c (syms_of_callint) <command-history>: Add reference to
19587 history-length in the doc string.
19588
195892007-12-17 Jason Rumney <jasonr@gnu.org>
19590
19591 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
19592 before passing as wParam.
19593
195942007-12-22 Michael Albinus <michael.albinus@gmx.de>
19595
19596 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
19597 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
19598 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
19599 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
19600 as number.
19601 (Fdbus_call_method): Fix docstring.
19602
196032007-12-21 Michael Albinus <michael.albinus@gmx.de>
19604
19605 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
19606 New macros.
19607 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
19608 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
19609 Simplify.
19610 (xd_signature): New function.
19611 (xd_append_arg): Compute also signatures. Major rewrite.
19612 (xd_retrieve_arg): Make debug messages friendly.
19613 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
19614 Check for signatures of arguments.
19615
196162007-12-19 Michael Albinus <michael.albinus@gmx.de>
19617
19618 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
19619 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
19620 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
19621 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
19622 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
19623 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
19624 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
19625 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
19626 (xd_retrieve_value): Remove. Functionality included in ...
19627 (xd_append_arg): New function.
19628 (Fdbus_call_method, Fdbus_send_signal): Apply it.
19629
196302007-12-16 Michael Albinus <michael.albinus@gmx.de>
19631
19632 * dbusbind.c (top): Include <stdio.h>.
19633 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
19634 dbus_message_new_method_call and dbus_message_new_signal.
19635 (Fdbus_register_signal): Rename unique_name to uname.
19636 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
19637 non-existing unique name. Fix typos in matching rule. Return an
19638 object which is useful in Fdbus_unregister_signal.
19639 (Fdbus_unregister_signal): Reimplementation, in order to remove
19640 only the corresponding entry.
19641 (Vdbus_registered_functions_table): Change the order of entries.
19642 Apply these changes in xd_read_message and Fdbus_register_signal.
19643
196442007-12-16 Andreas Schwab <schwab@suse.de>
19645
19646 * fileio.c (Finsert_file_contents): Fix overflow check to not
19647 depend on undefined integer overflow.
19648
196492007-12-14 Jason Rumney <jasonr@gnu.org>
19650
19651 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
19652 for characters above 127.
19653
196542007-12-13 Jason Rumney <jasonr@gnu.org>
19655
19656 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
19657 before dereferencing array.
19658 (lookup_vk_code): Remove zero comparison.
19659
196602007-12-14 Michael Albinus <michael.albinus@gmx.de>
19661
19662 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
19663 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
19664 Use `unsigned int' instead of `uint'.
19665 (xd_read_message, Fdbus_register_signal): Split expressions into
19666 multiple lines before operators "&&" and "||", according to the
19667 GNU Coding Standards.
19668
196692007-12-14 Eli Zaretskii <eliz@gnu.org>
19670
19671 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
19672
196732007-12-12 Juri Linkov <juri@jurta.org>
19674
19675 * buffer.c (Frename_buffer): In interactive spec replace
19676 `read-buffer' with `read-string' that uses `buffer-name-history'
19677 as history, and the current buffer's name as default.
19678
196792007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
19680
19681 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
19682 manipulating the backtrace manually.
19683 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
19684 (struct backtrace, backtrace_list): Remove.
19685 (command_loop_1): Remove dead var `no_direct'.
19686
19687 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
19688 preserve non-built-in buffer-local variables.
19689 (Fkill_all_local_variables): Don't re-create&re-set permanent
19690 buffer-local variables.
19691
196922007-12-09 Juri Linkov <juri@jurta.org>
19693
19694 * buffer.c (Frename_buffer): Change interactive spec from "s" to
19695 Lisp code that uses `read-buffer' with current buffer as default.
19696
196972007-12-08 Michael Albinus <michael.albinus@gmx.de>
19698
19699 * dbusbind.c (xd_read_message): Generate an event for every
19700 registered handler. There might be several handlers registered
19701 for the same signal.
19702 (Fdbus_register_signal): Don't overwrite a registration for the
19703 same signal. Add a new registration if handlers are different.
19704 (Vdbus_registered_functions_table): Rework doc string.
19705
197062007-12-07 Michael Albinus <michael.albinus@gmx.de>
19707
19708 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
19709 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
19710 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
19711 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
19712 Unify argument lists.
19713 (xd_read_message, Fdbus_register_signal): Reorder and extend event
19714 arguments and hash table keys. Use unique name for service.
19715 (Fdbus_unregister_signal): Remove checks.
19716 (Vdbus_registered_functions_table): Fix doc string.
19717
197182007-12-05 Magnus Henoch <mange@freemail.hu>
19719
19720 * process.c (make_process): Initialize pty_flag to 0.
19721
197222007-12-05 Jason Rumney <jasonr@gnu.org>
19723
19724 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
19725 specified XBMs.
19726
197272007-12-05 Richard Stallman <rms@gnu.org>
19728
19729 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
19730
197312007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19732
19733 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
19734 New variable.
19735 (mac_try_close_socket) [MAC_OSX]: New function.
19736 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
19737 Update cfsockets_for_select. Replace invalid CFRunLoop source.
19738
19739 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
19740 Use mac_try_close_socket.
19741
197422007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19743
19744 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
19745 reloc_base.
19746 (copy_dysymtab): Compute relocation base here.
19747 (rebase_reloc_address) [__ppc64__]: New function.
19748 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
19749 changed.
19750
197512007-12-05 Jason Rumney <jasonr@gnu.org>
19752
19753 * w32proc.c (sys_spawnve): Quote args with wildcards.
19754
197552007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19756
19757 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
19758 __objc_* sections.
19759 (unrelocate) [_LP64]: Set relocation base to address of data segment.
19760
197612007-12-05 Michael Albinus <michael.albinus@gmx.de>
19762
19763 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
19764 Move check for Vdbus_registered_functions_table to
19765 xd_read_queued_messages.
19766 (xd_read_queued_messages): Protect xd_read_message calls by
19767 internal_condition_case_1.
19768
197692007-12-04 Michael Albinus <michael.albinus@gmx.de>
19770
19771 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
19772 Qdbus_system_bus and Qdbus_session_bus, respectively.
19773 (Vdbus_intern_symbols): Remove.
19774 (Vdbus_registered_functions_table): New hash table.
19775 (XD_SYMBOL_INTERN_SYMBOL): Remove.
19776 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
19777 Rewrite in order to manage registered functions by hash table
19778 Vdbus_registered_functions_table.
19779
197802007-12-03 Jan Djärv <jan.h.d@swipnet.se>
19781
19782 * xterm.c: Update URL to Window Manager Specification in comment.
19783
197842007-12-02 Michael Albinus <michael.albinus@gmx.de>
19785
19786 * config.in (HAVE_DBUS): Add.
19787
19788 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
19789 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
19790 (obj): Add $(DBUS_OBJ).
19791 (LIBES): Add $(DBUS_LIBS).
19792 (dbusbind.o): New target.
19793
19794 * dbusbind.c: New file.
19795
19796 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
19797
19798 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
19799 (Qdbus_event): New Lisp symbol.
19800 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
19801 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 19802 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
19803
19804 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
19805
198062007-12-01 Richard Stallman <rms@gnu.org>
19807
19808 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
19809
198102007-11-30 Jason Rumney <jasonr@gnu.org>
19811
19812 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
19813 (w32con_reset_terminal_modes): Clear screen buffer.
19814 (w32_face_attributes): Don't use color indexes that are out of range.
19815 Only reverse the default colors.
19816
19817 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
19818 WINDOWSNT.
19819
19820 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
19821
198222007-11-29 Jason Rumney <jasonr@gnu.org>
19823
19824 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
19825 (w32_face_attributes): Use Vtty_defined_color_alist to determine
19826 if the terminal colors are initialized.
19827 (unspecified_fg, unspecified_bg): Remove unused declarations.
19828
198292007-11-29 Andreas Schwab <schwab@suse.de>
19830
19831 * keyboard.c (apply_modifiers): Fix typo.
19832
198332007-11-29 Richard Stallman <rms@gnu.org>
19834
19835 * keymap.c (Fcurrent_local_map): Doc fix.
19836
198372007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
19838
19839 * s/gnu-kfreebsd.h: New file.
19840
198412007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
19842
19843 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
19844 Don't cast redundantly.
19845
19846 * keyboard.c (KEY_TO_CHAR): New macro.
19847 (parse_modifiers, apply_modifiers): Accept integer arguments.
19848 (read_key_sequence): Use them to unify the "shift->unshift" mapping
19849 for chars and symbol keys.
19850 After doing such remapping, apply function-key-map again.
19851
198522007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
19853
19854 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
19855 compiled anymore.
19856
198572007-11-26 Andreas Schwab <schwab@suse.de>
19858
19859 * process.c (list_processes_1): Fix indentation level of the
19860 command column.
19861
198622007-11-23 Andreas Schwab <schwab@suse.de>
19863
19864 * editfns.c (Fformat): Handle %c specially since it requires the
19865 argument to be of type int.
19866
198672007-11-23 Markus Triska <markus.triska@gmx.at>
19868
19869 * emacs.c (main): Call init_editfns before init_process, since
19870 init_process sets Vprocess_connection_type depending on OS release.
19871
198722007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
19873
19874 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
19875 (find_symbol_value): Use do_symval_forwarding.
19876
19877 * data.c (set_internal): Set the value in the `cons-cell' (for
19878 Buffer_Local_values) not only for frame-local variables.
19879
198802007-11-22 Andreas Schwab <schwab@suse.de>
19881
19882 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
19883 values to sprintf.
19884 * keymap.c (Fsingle_key_description): Likewise.
19885 * print.c (print_object): Likewise.
19886
198872007-11-22 Jan Djärv <jan.h.d@swipnet.se>
19888
19889 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
19890 file for image is nil.
19891
198922007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
19893
19894 * term.c: Include stdarg.h.
19895 (fatal): Implement using varargs.
19896 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
19897
198982007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
19899
19900 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
19901 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
19902 Update call to buffer_slot_type_mismatch.
19903 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
19904 (buffer_slot_type_mismatch): Update.
19905 * buffer.c (buffer_local_types): Remove.
19906 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
19907 (defvar_per_buffer): Set the type in the buffer_objfwd.
19908
199092007-11-21 Jason Rumney <jasonr@gnu.org>
19910
19911 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
19912 CreateFileMapping returns NULL on failure.
19913
199142007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
19915
19916 * search.c (Fset_match_data): Remove the `evaporate' feature.
19917 (unwind_set_match_data): Don't use the `evaporate' feature.
19918
199192007-11-21 Jason Rumney <jasonr@gnu.org>
19920
19921 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
19922
19923 * w32console.c (w32con_write_glyphs): Remove unused variables.
19924
199252007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
19926
19927 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
19928
19929 * s/darwin.h (MULTI_KBOARD): Remove.
19930
19931 * macfns.c (x_create_tip_frame, Fx_create_frame)
19932 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
19933
199342007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
19935
19936 * buffer.c (Fbuffer_local_value): Remove redundant test.
19937 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
19938 than in `current-buffer' to match the comment.
19939 Do the swap using swap_in_global_binding.
19940
19941 * data.c (store_symval_forwarding, set_internal):
19942 * eval.c (specbind): Remove dead code.
19943
19944 * coding.c (detect_coding, Fupdate_coding_systems_internal):
19945 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
19946 Since we do not want to see internal Lisp_*fwd objects here.
19947
199482007-11-18 Jan Djärv <jan.h.d@swipnet.se>
19949
19950 * sysdep.c (init_system_name): Use getaddrinfo if available.
19951
19952 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
19953 (x_scroll_bar_note_movement): start, end, with, height in struct
19954 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
19955
199562007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
19957
19958 * puresize.h (BASE_PURESIZE): Increase to 1190000.
19959
199602007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
19961
19962 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
19963 This undoes Richard's change of 14-Oct-2002.
19964
19965 * alloc.c (allocate_other_vector):
19966 * lisp.h (allocate_other_vector): Remove.
19967
19968 * window.c (struct save_window_data): Move non-lisp data to the end
19969 and make it `int' rather than Lisp_Object.
19970 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
19971 Done wrap/unwrap integer values.
19972 (Fset_window_configuration, compare_window_configurations):
19973 Update use of fields to their new types.
19974
19975 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
19976 Turn integer fields into `int'. Merge x_window_low and x_window_high.
19977 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
19978 (SET_SCROLL_BAR_X_WINDOW): Remove.
19979 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
19980 Access the new x_window field directly.
19981 * xterm.c (x_scroll_bar_create): Use a pseudovector.
19982 Don't wrap/unwrap integers into Lisp_Objects.
19983 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
19984 (x_scroll_bar_report_motion):
19985 Don't wrap/unwrap integers into Lisp_Objects.
19986 (x_term_init): Use SDATA.
19987 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
19988 (x_scroll_bar_set_handle, x_scroll_bar_remove)
19989 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
19990 (x_scroll_bar_report_motion, x_scroll_bar_clear):
19991 * xfns.c (x_set_background_color):
19992 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
19993 Access the new x_window field directly.
19994
19995 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
19996 (allocate_pseudovector): Make non-static.
19997
19998 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
19999 (allocate_pseudovector): Declare.
20000 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
20001
200022007-11-15 Andreas Schwab <schwab@suse.de>
20003
20004 * editfns.c (Fformat): Correctly format EMACS_INT values.
20005 Also take precision into account when formatting an integer.
20006
20007 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
20008
200092007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
20010
20011 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
20012 (syms_of_keyboard): Defsubr it.
20013
20014 * data.c (swap_in_global_binding): Fix longstanding bug where
20015 store_symval_forwarding was not called with the right second argument,
20016 thus causing objfwd-ing from being dropped.
20017
200182007-11-14 Juanma Barranquero <lekktu@gmail.com>
20019
20020 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
20021 (Fx_display_pixel_height, Fx_display_planes)
20022 (Fx_display_color_cells, Fx_server_max_request_size)
20023 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
20024 (Fx_display_visual_class, Fx_display_save_under):
20025 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
20026 (Fx_display_pixel_height, Fx_display_planes)
20027 (Fx_display_color_cells, Fx_server_max_request_size)
20028 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
20029 (Fx_display_mm_height, Fx_display_mm_width)
20030 (Fx_display_backing_store, Fx_display_visual_class)
20031 (Fw32_select_font, Fx_display_save_under):
20032 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
20033 (Fx_display_pixel_height, Fx_display_planes)
20034 (Fx_display_color_cells, Fx_server_max_request_size)
20035 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
20036 (Fx_display_save_under): Fix typos in docstrings.
20037
200382007-11-14 Juanma Barranquero <lekktu@gmail.com>
20039
20040 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
20041 corresponding to deleted entries; they are an implementation detail.
20042 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
20043 Remove variables.
20044 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
20045 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
20046 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
20047 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
20048 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
20049 (Fw32_define_rgb_color, Fw32_load_color_file)
20050 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
20051 Fix typos in docstrings.
20052 (Fx_server_version): Reflow docstring.
20053 (Fw32_shell_execute): Doc fixes.
20054
200552007-11-13 Juanma Barranquero <lekktu@gmail.com>
20056
20057 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
20058 if w32_parse_hot_key returned nil.
20059
200602007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
20061
20062 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
20063
200642007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 20065
aac0c6e3
MR
20066 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
20067
20068 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
20069
20070 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
20071 Remove W32_SCROLL_BAR_CLICK_EVENT.
20072
20073 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
20074 Add MULTIMEDIA_KEY_EVENT.
20075
20076 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
20077 (lispy_multimedia_keys) [WINDOWSNT]: New array.
20078 (make_lispy_event) [WINDOWSNT]: Use it to translate
20079 MULTIMEDIA_KEY_EVENT.
20080
20081 * w32term.h (WM_APPCOMMAND): Define if not already.
20082 (GET_APPCOMMAND_LPARAM): Likewise.
20083
20084 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
20085 WM_APPCOMMAND.
20086
20087 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
20088 (syms_of_w32fns): Export and initialize it.
20089 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
20090
200912007-11-09 Chong Yidong <cyd@stupidchicken.com>
20092
20093 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
20094 twice.
20095
20096 * xdisp.c (handle_face_prop): Fix last change.
20097
200982007-11-09 Richard Stallman <rms@gnu.org>
20099
20100 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
20101 not just for after-strings and before-strings.
20102 Call face_for_overlay_string and pass the overlay to it.
20103 (handle_display_prop): Determine whether property came from an overlay.
20104 Pass OVERLAY arg to handle_single_display_spec.
20105 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
20106 (load_overlay_strings): Fill in it->string_overlays.
20107 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
20108
20109 * xfaces.c (face_for_overlay_string): Function renamed from
20110 face_at_buffer_position_no_overlays, and add arg OVERLAY.
20111
20112 * dispextern.h (struct it): New elt string_overlays.
20113 New elt from_overlay, also in stack.
20114 Rearrange a few elements.
20115 (face_for_overlay_string): Decl renamed from
20116 face_at_buffer_position_no_overlays, and add argument.
20117
201182007-11-09 Richard Stallman <rms@gnu.org>
20119
20120 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
20121 to get the base face for an overlay string.
20122
20123 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
20124
20125 * xfaces.c (face_at_buffer_position_no_overlays): New function.
20126
20127 * xdisp.c (handle_stop): Move some code out of loop.
20128
201292007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20130
20131 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
20132 Fix conversion from Lisp object to ATSUFontID.
20133
201342007-11-09 Jason Rumney <jasonr@gnu.org>
20135
20136 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
20137
201382007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20139
20140 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
20141 Don't assume regions are aligned to page boundary.
20142 (print_load_command_name): Add LC_UUID if defined.
20143
201442007-11-09 Richard Stallman <rms@gnu.org>
20145
20146 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
20147
201482007-11-07 Jason Rumney <jasonr@gnu.org>
20149
20150 * s/windows95.h: Remove.
20151
201522007-11-06 Jan Djärv <jan.h.d@swipnet.se>
20153
20154 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
20155 abort with a message on unhandled store_type values.
20156
201572007-11-01 Jan Djärv <jan.h.d@swipnet.se>
20158
20159 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
20160 Remove HAVE_X11R5 and HAVE_X11R4.
20161
201622007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
20163
20164 * Makefile.in: Remove references to sunfns.c and sunfns.o.
20165
201662007-11-01 Johan Bockgård <bojohan@gnu.org>
20167
20168 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
20169 Don't set s->stippled_p here, since it has already been set by
20170 x_set_glyph_string_gc from x_draw_glyph_string.
20171
201722007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
20173
20174 * sunfns.c: Remove file.
20175
20176 * m/sun386.h:
20177 * m/sun2.h:
20178 * m/sparc.h: Remove Sun windows code.
20179
201802007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
20181
20182 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
20183 (init_keyboard): Set current_kboard's window-system to nil.
20184 (tty_read_avail_input): Typo.
20185 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
20186
201872007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
20188
20189 * s/usg5-4.h:
20190 * s/usg5-3.h:
20191 * s/ptx.h:
20192 * m/is386.h:
20193 * m/ibmps2-aix.h:
20194 * Makefile.in: Remove all mentions of X10.
20195
20196 * dispnew.c (syms_of_display): Don't mention version 10.
20197
201982007-10-28 Juanma Barranquero <lekktu@gmail.com>
20199
20200 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
20201 ($(BLD)/abbrev.$(O)): Remove.
20202
202032007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
20204
20205 Rewrite abbrev.c in Elisp.
20206 * image.c (Qcount): Don't declare as extern.
20207 (syms_of_image): Initialize and staticpro `Qcount'.
20208 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
20209 * emacs.c (main): Don't call syms_of_abbrev.
20210 * Makefile.in (obj): Remove abbrev.o.
20211 (abbrev.o): Remove.
20212 * abbrev.c: Remove.
20213
202142007-10-26 Martin Rudalics <rudalics@gmx.at>
20215
20216 * window.c (window_min_size_2): Don't count header-line.
20217
202182007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
20219
20220 * frame.h (struct frame): Move all bit fields after the first bit
20221 field to take advantage of the available space. Group all the
20222 chars together to reduce wasted space due to padding.
20223
202242007-10-26 Juanma Barranquero <lekktu@gmail.com>
20225
20226 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
20227
20228 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
20229 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
20230 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
20231 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
20232 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
20233 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
20234 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
20235 (last_marked, mark_object_loop_halt): Make static.
20236
20237 * frame.c (syms_of_frame) <delete-frame-functions>:
20238 Fix typo in docstring.
20239
202402007-10-25 Juanma Barranquero <lekktu@gmail.com>
20241
20242 * w32.c (init_environment): Fix tiny memory leak.
20243 (w32_get_resource): Remove unused variable `ok'.
20244
202452007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
20246
20247 Make `window-system' into a keyboard-local variable (rather than
20248 frame-local as done originally by multi-tty).
20249
20250 * keyboard.h (struct kboard): Add Vwindow_system.
20251 * keyboard.c (init_kboard): Set a default for Vwindow_system.
20252 (mark_kboards): Mark Vwindow_system.
20253
20254 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
20255 (init_display): Don't set the obsolete `window-system' frame-param.
20256
20257 * xterm.c (x_term_init):
20258 * w32term.c (w32_create_terminal):
20259 * term.c (init_tty): Set Vwindow_system.
20260 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
20261 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
20262
20263 * xfns.c (Fx_create_frame, x_create_tip_frame):
20264 * w32fns.c (Fx_create_frame, x_create_tip_frame):
20265 * macfns.c (Fx_create_frame):
20266 Don't set the obsolete `window-system' frame-param.
20267
20268 * frame.h (Qwindow_system): Remove.
20269 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
20270 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
20271
202722007-10-24 Richard Stallman <rms@gnu.org>
20273
20274 * frame.c (x_figure_window_size): For fullscreen case,
20275 set USPosition | PPosition without clobbering rest of window_prompting.
20276
20277 * keyboard.c (Fcurrent_idle_time): Doc fix.
20278
20279 * print.c (Fwith_output_to_temp_buffer): Doc fix.
20280
202812007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
20282
20283 * process.c (unwind_request_sigio): Only define if __ultrix__.
20284
20285 * callproc.c (child_setup): Remove spurious *.
20286
20287 * lisp.h (Fget_text_property): Declare.
20288 (have_menus_p): Declare it here rather than in sys-dep header files.
20289 * macterm.h (have_menus_p):
20290 * msdos.h (have_menus_p):
20291 * xterm.h (have_menus_p): Remove.
20292
20293 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
20294 (Fmake_variable_frame_local): Just check the variable's const-ness
20295 rather than checking nil or t.
20296
202972007-10-22 Jason Rumney <jasonr@gnu.org>
20298
20299 * w32fns.c: Include math.h.
20300 (w32_abort): Declaration moved to nt/config.nt.
20301
20302 * s/ms-w32.h (HAVE_STDLIB_H): Define.
20303 (abort): Redefinition moved to nt/config.nt.
20304
20305 * m/windowsnt.h: Remove.
20306
203072007-10-22 Juanma Barranquero <lekktu@gmail.com>
20308
20309 * emacs.c (Fdump_emacs): Fix typo in message.
20310 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
20311 <installation-directory>: Reflow docstring.
20312
203132007-10-22 Juri Linkov <juri@jurta.org>
20314
20315 * minibuf.c: Allow minibuffer default to be a list of default values.
20316 With empty input use the first element of this list as returned default.
20317 (string_to_object)
20318 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
20319 (read_minibuf): If defalt is cons, set histstring to its car.
20320 (Fread_string): If default_value is cons, set val to its car.
20321 (Fread_buffer): If def is cons, use its car.
20322 (Fcompleting_read): If defalt is cons, set val to its car.
20323
203242007-10-21 Michael Albinus <michael.albinus@gmx.de>
20325
20326 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
20327
203282007-10-20 Juanma Barranquero <lekktu@gmail.com>
20329
20330 * doc.c (Fdocumentation): Check for advice in all cases.
20331
203322007-10-19 Chong Yidong <cyd@stupidchicken.com>
20333
20334 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
20335
203362007-10-19 Richard Stallman <rms@gnu.org>
20337
20338 * doc.c (Fdocumentation): Check for and handle an advised function.
20339
203402007-10-19 Juanma Barranquero <lekktu@gmail.com>
20341
20342 * process.c (Fset_process_filter): Doc fix.
20343
203442007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
20345
20346 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
20347 which caused key-translation-map to applied repeatedly (thus breaking
20348 double-mode).
20349
203502007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
20351
20352 * xselect.c (x_own_selection, x_handle_selection_clear)
20353 (x_clear_frame_selections):
20354 * w32menu.c (list_of_panes, list_of_items):
20355 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
20356 * textprop.c (validate_plist, interval_has_all_properties)
20357 (interval_has_some_properties, interval_has_some_properties_list)
20358 (add_properties, text_property_list):
20359 * process.c (Fget_buffer_process, list_processes_1, status_notify):
20360 * minibuf.c (Fassoc_string):
20361 * macselect.c (x_own_selection, x_clear_frame_selections)
20362 (Fx_disown_selection_internal):
20363 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
20364 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
20365
203662007-10-17 Chong Yidong <cyd@stupidchicken.com>
20367
20368 * process.c: Link to libs for calling res_init() if available.
20369 (Fmake_network_process): Call res_init() before getaddrinfo or
20370 gethostbyname, if possible.
20371
203722007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
20373
20374 * lread.c (read1): Set pvectype for char_tables.
20375
20376 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
20377 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
20378 Add type checks.
20379 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
20380
20381 * alloc.c (free_misc): Use XMISCTYPE.
20382 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
20383
203842007-10-17 Glenn Morris <rgm@gnu.org>
20385
20386 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
20387 (syms_of_minibuf): Add Qcompletion_ignore_case.
20388 * dired.c (Qcompletion_ignore_case): Change to external.
20389 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
20390 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
20391 (Fread_file_name): Use it rather than intern'ing.
20392
20393 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
20394 (Fread_coding_system): Ignore case of user input.
20395
203962007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20397
20398 * xdisp.c (handle_display_prop): Ignore display specs after
20399 replacing one when string text is being replaced.
20400 (handle_single_display_spec): Pretend as if characters with display
20401 property haven't been consumed only when buffer text is being replaced.
20402
204032007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
20404
20405 * xfns.c (Fx_create_frame, Fx_display_list):
20406 * window.c (window_fixed_size_p, enlarge_window)
20407 (shrink_window_lowest_first):
20408 * macterm.c (init_font_name_table):
20409 * macfns.c (Fx_create_frame, Fx_display_list):
20410 * lread.c (close_load_descs):
20411 * keyboard.c (read_char_x_menu_prompt):
20412 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
20413 * coding.c (code_convert_region_unwind): Test the type of an object
20414 rather than just !NILP before extracting data from it.
20415
20416 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
20417
20418 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
20419 (XMISCANY): New macro.
20420 (XMISCTYPE): Use it.
20421 (struct Lisp_Misc_Any): New type.
20422 (union Lisp_Misc): Use it.
20423 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
20424 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
20425 (find_symbol_value, set_internal, default_value, Fset_default)
20426 (Fmake_variable_buffer_local, Fmake_local_variable)
20427 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
20428 (Flocal_variable_if_set_p, Fvariable_binding_locus):
20429 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
20430 * alloc.c (allocate_buffer): Set the size and tag.
20431 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
20432 Use XMISCANY.
20433 (die): Follow the GNU convention for error messages.
20434 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
20435 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
20436 tag any more.
20437 (set_buffer_internal_1):
20438 * frame.c (store_frame_param):
20439 * eval.c (specbind):
20440 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
20441
20442 * doc.c (Fsnarf_documentation): Simplify.
20443
204442007-10-14 Juanma Barranquero <lekktu@gmail.com>
20445
20446 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
20447 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
20448
204492007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
20450
20451 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
20452
204532007-10-14 Juanma Barranquero <lekktu@gmail.com>
20454
20455 * eval.c (do_autoload): Don't save autoloads.
20456
20457 * data.c (Ffset): Save autoload of the function being set.
20458
204592007-10-07 John Paul Wallington <jpw@pobox.com>
20460
20461 * xfns.c (x_create_tip_frame): Set the `display-type' frame
20462 parameter before setting up faces.
20463
204642007-10-13 Eli Zaretskii <eliz@gnu.org>
20465
20466 * ccl.c (Fregister_code_conversion_map):
20467 * keyboard.c (append_tool_bar_item): Reformat last change.
20468
20469 * lisp.h (eabs): Rename from `abs'. All callers changed.
20470
204712007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
20472
20473 * buffer.c (add_overlay_mod_hooklist):
20474 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
20475 * fontset.c (make_fontset):
20476 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
20477 (append_tool_bar_item):
20478 * macmenu.c (grow_menu_items):
20479 * w32menu.c (grow_menu_items):
20480 * xmenu.c (grow_menu_items): Use larger_vector.
20481
204822007-10-13 Eli Zaretskii <eliz@gnu.org>
20483
20484 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
20485 selected frame'' on MSDOS).
20486
204872007-10-12 Martin Rudalics <rudalics@gmx.at>
20488
20489 * frame.c (Qexplicit_name): New variable.
20490 (x_report_frame_params): Report it in parameter alist.
20491 (syms_of_frame): Intern and staticpro it.
20492
204932007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
20494
20495 * macfns.c (x_create_tip_frame): Set terminal for frame.
20496
204972007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
20498
20499 * frame.c (Qenvironment): Remove.
20500 (syms_of_frame) <Qenvironment>: Don't initialize.
20501 (Fdelete_frame): Don't treat the `environment' param specially.
20502 * frame.h (Qenvironment): Don't declare.
20503 * callproc.c (set_initial_environment): Don't set unused frame param.
20504
20505 * frame.c (Fframe_with_environment): Remove.
20506 (syms_of_frame) <Sframe_with_environment>: Don't declare.
20507
20508 * lisp.h (Fframe_with_environment): Don't declare.
20509
205102007-10-10 Juanma Barranquero <lekktu@gmail.com>
20511
20512 * indent.c (indent_tabs_mode, last_known_column)
20513 (last_known_column_modified): Make static.
20514 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
20515
205162007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
20517
20518 * puresize.h (BASE_PURESIZE): Increase to 1170000.
20519
205202007-10-09 Jason Rumney <jasonr@gnu.org>
20521
20522 * w32term.c (x_set_window_size): Disable code that attempts to tell
20523 Lisp code about a size change before it actually happens.
20524
205252007-10-09 Richard Stallman <rms@gnu.org>
20526
20527 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
20528 return HANDLED_RETURN.
20529
205302007-10-08 Martin Rudalics <rudalics@gmx.at>
20531
20532 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
20533 when there's an unread command event.
20534
20535 * frame.c (focus_follows_mouse): Move here from frame.el to allow
20536 window autoselection act appropriately when leaving selected frame.
20537 (syms_of_frame): Initialize focus_follows_mouse.
20538 * frame.h (focus_follows_mouse): Extern it.
20539 * macterm.c (XTread_socket): When focus_follows_mouse is nil
20540 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
20541 * msdos.c (dos_rawgetc): Likewise.
20542 * w32term.c (w32_read_socket): Likewise.
20543 * xterm.c (handle_one_xevent): Likewise.
20544 * xdisp.c (syms_of_xdisp): In doc-string of
20545 mouse-autoselect-window mention focus-follows-mouse.
20546
205472007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20548
20549 * macterm.c (mac_load_query_font): Fix missing return value.
20550 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
20551 Add BLOCK_INPUT.
20552
205532007-10-08 Richard Stallman <rms@gnu.org>
20554
20555 * xdisp.c (get_window_cursor_type): Implement documented behavior
20556 for cursor-in-non-selected-windows = t.
20557
205582007-10-08 Jason Rumney <jasonr@gnu.org>
20559
20560 * w32.c (w32_get_resource): Always close registry keys.
20561
205622007-10-08 Jason Rumney <jasonr@gnu.org>
20563
20564 * makefile.w32-in (LIBS): Add COMCTL32.
20565
20566 * w32fns.c (globals_of_w32fns): Init common controls.
20567
205682007-10-08 Richard Stallman <rms@gnu.org>
20569
20570 * image.c (our_memory_buffer): Rename from omfib_buffer.
20571
205722007-10-08 Richard Stallman <rms@gnu.org>
20573
20574 * buffer.c (Foverlays_at): Doc fix.
20575
205762007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
20577
20578 * fns.c (Fplist_put): Preserve uneven tail data.
20579
205802007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
20581
20582 * termhooks.h (enum event_kind): Remove trailing comma.
20583
20584 * frame.h (enum): Remove trailing comma.
20585
205862007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
20587
20588 * w32proc.c (delete_child): Don't terminate threads of zombies.
20589
205902007-10-08 Martin Rudalics <rudalics@gmx.at>
20591
20592 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
20593
20594 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
20595 last-repeatable-command.
20596 (init_kboard): Initialize Vlast_repeatable_command.
20597 (command_loop_1): Set it to real_this_command unless that was
20598 bound to an input event.
20599 (mark_kboards): Mark it.
20600
206012007-10-08 Richard Stallman <rms@gnu.org>
20602
20603 * eval.c (condition-case): Doc fix.
20604
206052007-10-08 Masatake YAMATO <jet@gyve.org>
20606
20607 * xfaces.c (tty_supports_face_attributes_p): Fix code
20608 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
20609 was copied and not edited.
20610
206112007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
20612
20613 Add new `input-decode-map' keymap and use it for terminal
20614 escape sequences.
20615 * keyboard.h (struct kboard): Add Vinput_decode_map.
20616 Remove Vlocal_key_translation_map.
20617 * keyboard.c (read_key_sequence): Add support for input-decode-map.
20618 (init_kboard): Init input-decode-map.
20619 Replace local-key-translation-map back with key-translation-map.
20620 (syms_of_keyboard): Declare input-decode-map.
20621 Remove local-key-translation-map. Update docstrings.
20622 (mark_kboards): Mark Vinput_decode_map.
20623 Don't mark Vlocal_key_translation_map.
20624 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
20625 Replace local-key-translation-map back with key-translation-map.
20626 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
20627 Bind in input-decode-map rather than function-key-map.
20628
20629 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
20630 This was made redundant by the previous introduction of XSETPVECTYPE.
20631
206322007-10-09 Richard Stallman <rms@gnu.org>
20633
20634 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
20635
206362007-09-29 Richard Stallman <rms@gnu.org>
20637
20638 * eval.c (internal_condition_case_2, internal_condition_case_1)
20639 (internal_condition_case): Reenable abort if x_catching_errors ()
20640 to see if that really happens and why.
20641
206422007-10-06 Andreas Schwab <schwab@suse.de>
20643
20644 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
20645
206462007-10-04 Juanma Barranquero <lekktu@gmail.com>
20647
20648 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
20649
206502007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
20651
20652 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
20653
206542007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
20655
20656 * window.h (struct window):
20657 * window.c (struct save_window_data, struct saved_window):
20658 * termhooks.h (struct terminal):
20659 * process.h (struct Lisp_Process):
20660 * frame.h (struct frame):
20661 * buffer.h (struct buffer):
20662 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
20663 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
20664 The size field of (pseudo)vectors is now unsigned.
20665 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
20666
20667 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
20668 Turn `count' into an integer.
20669
20670 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
20671 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
20672 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
20673 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
20674 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
20675
20676 * alloc.c (allocate_pseudovector): New fun.
20677 (ALLOCATE_PSEUDOVECTOR): New macro.
20678 (allocate_window, allocate_terminal, allocate_frame)
20679 (allocate_process): Use it.
20680 (mark_vectorlike): New function.
20681 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
20682 (mark_terminals): Use it.
20683 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
20684 (Fmake_byte_code): Use XSETPVECTYPE.
20685
20686 * frame.c (Fframe_parameters): Minor simplification.
20687
20688 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
20689
20690 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
20691
20692 * buffer.c (Fget_buffer_create, init_buffer_once):
20693 * lread.c (defsubr):
20694 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
20695
20696 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
20697 defined differently in the m/*.h files.
20698 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
20699 (XSETPVECTYPE): New macro.
20700 (XSETPSEUDOVECTOR): Use it.
20701
20702 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
20703 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
20704
20705 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
20706 * lread.c (defvar_per_buffer):
20707 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
20708
20709 * window.c (candidate_window_p): Only consider as visible frames that
20710 are on the same terminal.
20711
20712 * m/ibms390x.h (MARKBIT): Remove unused macro.
20713
207142007-10-01 Juanma Barranquero <lekktu@gmail.com>
20715
20716 * lread.c (Fload): Fix typo in docstring.
20717
207182007-10-01 Michaël Cadilhac <michael@cadilhac.name>
20719
20720 * floatfns.c (Fexpt): Manually check for overflows, so that a power
20721 of a non-zero value can't yield zero.
20722
207232007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
20724
20725 * term.c (term_clear_mouse_face, term_mouse_highlight)
20726 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
20727
20728 * print.c (safe_debug_print): Use XHASH.
20729
20730 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
20731 Lisp elements such as tags.
20732 (XHASH): New macro.
20733 (EQ): Use it.
20734 (SREF, SSET, STRING_COPYIN): Use SDATA.
20735 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
20736
20737 * alloc.c (mark_terminal): Remove left-over declaration.
20738 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
20739 (allocate_vectorlike): Remove type argument. Adjust callers.
20740 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
20741 Only handle the one remaining MEM_TYPE_VECTORLIKE.
20742
20743 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
20744 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
20745 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
20746 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
20747 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
20748 Use them.
20749
20750 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
20751 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
20752 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
20753
207542007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
20755
20756 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
20757 loaded by default.
20758
207592007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
20760
20761 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
20762 on this tty.
20763 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
20764
20765 * term.c (mouse_face_window): Rename from Qmouse_face_window.
20766 Update all users.
20767 (handle_one_term_event): Use Gpm_DrawPointer.
20768 (Fgpm_mouse_start): Rename from Fterm_open_connection.
20769 Signal errors instead of returning nil. Always return nil.
20770 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
20771 Make it a noop if gpm-mouse was not activated.
20772 (syms_of_term): Update names.
20773
207742007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
20775
20776 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
20777 (init_sys_modes): Check that gpm_tty is the current tty.
20778
20779 * alloc.c (allocate_terminal): Set the vector size to only count the
20780 lisp fields. Initialize those to nil.
20781 (mark_object): Don't treat terminals specially.
20782 (mark_terminal): Remove.
20783 (mark_terminals): Use mark_object instead.
20784
20785 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
20786 the GC to the beginning.
20787
20788 * indent.h:
20789 * indent.c: Use EMACS_INT for ints coming from Elisp data.
20790
20791 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
20792
207932007-09-25 Jason Rumney <jasonr@gnu.org>
20794
20795 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
20796
20797 * w32console.c (create_w32cons_output): Remove.
20798
20799 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
20800
20801 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
20802 (reset_sys_modes): Use reset_terminal_modes_hook.
20803
208042007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
20805
20806 * eval.c (do_autoload): Don't output any message.
20807
208082007-09-24 Juri Linkov <juri@jurta.org>
20809
20810 * emacs.c (standard_args): Change priority of "--no-splash"
20811 from 40 to 3. Add "--no-desktop" with the same priority.
20812
208132007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
20814
20815 * alloc.c (gc_sweep): Check cons cell mark bits word by word
20816 and optimize the case where they are all 1.
20817
208182007-09-23 Johannes Weiner <hannes@saeurebad.de>
20819
20820 * lisp.h (abs): Define if not defined.
20821 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
20822 Don't define `abs', since it's defined in lisp.h.
20823
208242007-09-22 Eli Zaretskii <eliz@gnu.org>
20825
20826 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
20827 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
20828 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
20829 (init_tty): Use DEV_TTY instead of "/dev/tty".
20830 [WINDOWSNT]: No need to protect from NAME arg being null.
20831
208322007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
20833
20834 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
20835 up the tty state.
20836
208372007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
20838
20839 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
20840 (gpm_tty): Change its type.
20841 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
20842 (gpm_tty): Change its type and initialize it.
20843 (Fterm_open_connection): Check the frame is indeed a tty.
20844 Use the new gpm_tty.
20845 (Fterm_close_connection): Use the new gpm_tty.
20846 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
20847 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
20848
208492007-09-21 Juanma Barranquero <lekktu@gmail.com>
20850
20851 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
20852 underline_color, to draw strike-through.
20853
208542007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
20855
20856 * lisp.h (allocate_terminal): Declare.
20857
20858 * window.c (candidate_window_p): Consider frames that are being placed
20859 by the user as somewhere between visible and iconified.
20860 (window_loop): Prefer windows on the current frame.
20861 (Fselect_window): Move the use of select-frame to the beginning so we
20862 can just delegate all the work (it'll call us back anyway).
20863
20864 * frame.c (Qdisplay_environment_variable):
20865 * frame.h (Qdisplay_environment_variable): Delete.
20866
20867 * .gdbinit (xbacktrace): Print the arg's address rather than the value
20868 of the first arg, since that value may be a union.
20869
20870 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
20871 parameter rather than Qdisplay_environment_variable. If all else
20872 fails, look for DISPLAY in initial-environment.
20873
208742007-09-21 Glenn Morris <rgm@gnu.org>
20875
20876 * Makefile.in (emacstool): Remove target.
20877 (lisp, shortlisp): Remove termdev.elc.
20878
208792007-09-21 Markus Triska <markus.triska@gmx.at>
20880
20881 * xterm.c (x_delete_display): Compile session management conditionally.
20882
208832007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
20884
20885 * callproc.c (getenv_internal_1): New function.
20886 (getenv_internal): Use it.
20887 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
20888
20889 * terminal.c (get_terminal): Don't accept ints to represent terminals.
20890 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
20891 (Fset_terminal_parameter): Work with dead terminals as well.
20892 (Fmodify_terminal_parameters): Remove.
20893
20894 * terminal.c (get_terminal): Handle terminals.
20895 Make sure the terminal returned is live.
20896 (create_terminal): Use allocate_terminal.
20897 (mark_terminals): Move to alloc.c.
20898 (delete_terminal): Use terminal->name as liveness status.
20899 NULL out fields after freeing their contents.
20900 Don't deallocate the object.
20901 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
20902 rather than an int.
20903 (Fterminal_live_p): Accept non-integer arguments.
20904 (Fterminal_list): Return terminal objects rather than an ints.
20905
20906 * alloc.c (enum mem_type): New member for `terminal' objects.
20907 (allocate_terminal): New function.
20908 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
20909 Handle terminals.
20910 (mark_terminal): New fun.
20911 (mark_terminals): Move from terminal.c.
20912
20913 * term.c (get_tty_terminal): Don't treat output_initial specially.
20914 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
20915 (delete_tty): Use terminal->name as liveness status.
20916
20917 * termhooks.h (struct terminal): Make it into a pseudovector.
20918 Remove `deleted' replaced by checking `name's nullness.
20919
20920 * print.c (print_object): Handle terminals.
20921
20922 * lisp.h (enum pvec_type): New `terminal' pseudovector.
20923 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
20924
20925 * frame.c (make_terminal_frame):
20926 * keyboard.c (tty_read_avail_input):
20927 * w32term.c (x_delete_terminal):
20928 * xfns.c (Fx_create_frame, x_create_tip_frame):
20929 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
20930
209312007-09-20 Glenn Morris <rgm@gnu.org>
20932
20933 * process.c (Fmake_network_process): Doc fix.
20934
209352007-09-19 Jason Rumney <jasonr@gnu.org>
20936
20937 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
20938
209392007-09-19 Michaël Cadilhac <michael@cadilhac.name>
20940
20941 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
20942 Fix a C warning regarding variable constness.
20943
20944 * xterm.c (handle_one_xevent): Fix a C warning.
20945
209462007-09-18 Jason Rumney <jasonr@gnu.org>
20947
20948 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
20949
209502007-09-17 Jan Djärv <jan.h.d@swipnet.se>
20951
20952 * gtkutil.c (gdpy_def): New variable.
20953 (xg_initialize): Initialize gdpy_def.
20954 (xg_display_close): If no other display exists, set gdpy_def to a
20955 new connection.
20956
209572007-09-16 Jan Djärv <jan.h.d@swipnet.se>
20958
20959 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
20960 when we have no file name for the icon.
20961 (xg_tool_bar_expose_callback): Remove.
20962 (xg_create_tool_bar): Don't connect expose signal to
20963 xg_tool_bar_expose_callback.
20964 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
20965
209662007-09-16 Andreas Schwab <schwab@suse.de>
20967
20968 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
20969 values instead of zapping them.
20970
209712007-09-14 Glenn Morris <rgm@gnu.org>
20972
20973 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
20974 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
20975 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
20976 scope and rename to omfib_buffer for clarity.
20977 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
20978
209792007-09-14 Kenichi Handa <handa@m17n.org>
20980
20981 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
20982
209832007-09-13 Jason Rumney <jasonr@gnu.org>
20984
20985 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
20986
20987 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
20988
20989 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
20990 (mac_term_init): Call here instead, passing rif.
20991
209922007-09-13 Glenn Morris <rgm@gnu.org>
20993
20994 * s/hpux.h: No longer define `static' as nothing.
20995
209962007-09-13 Johan Bockgård <bojohan@gnu.org>
20997
20998 * callint.c (Fcall_interactively): Remove unused var `fun'.
20999
210002007-09-12 Romain Francoise <romain@orebokech.com>
21001
21002 * window.c (prefer_window_split_horizontally, display_buffer):
21003 Revert 2007-09-08 change.
21004
210052007-09-12 Glenn Morris <rgm@gnu.org>
21006
21007 * alloca.c: Remove file.
21008 * Makefile.in (alloca): Do not undef.
21009 (allocaobj, alloca.o): Remove.
21010 (otherobj): Remove allocaobj.
21011 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
21012 * regex.c (C_ALLOCA): Remove all references and code that was only
21013 used when this was defined.
21014 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
21015 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
21016 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
21017
21018 * Makefile.in (SOURCES, unlock, relock): Delete.
21019
21020 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
21021 (menu_grab_callback): All uses changed.
21022
21023 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
21024 (x_reply_selection_request): All uses changed.
21025
210262007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
21027
21028 * lread.c (load_warn_old_style_backquotes): Change message to look
21029 better when it appears in the middle of byte-compiler messages.
21030
210312007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
21032
21033 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
21034
21035 * xterm.c (x_create_terminal): Add comment.
21036
21037 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
21038
210392007-09-10 Richard Stallman <rms@gnu.org>
21040
21041 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
21042
210432007-09-10 Michaël Cadilhac <michael@cadilhac.name>
21044
21045 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
21046 (DEFUN): Document `intspec', use it instead of `prompt'.
21047
21048 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
21049
21050 * data.c (Finteractive_form): If the interactive specification starts
21051 with a `(', use it as a Lisp form.
21052
21053 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
21054 name and file modes.
21055
21056 * callint.c (Fcall_interactively): Comment fixes.
21057
210582007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
21059
21060 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
21061 and compiled functions.
21062
210632007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
21064
21065 * window.c (prefer_window_split_horizontally): New variable.
21066 (display_buffer): Consider splitting window horizontally depending
21067 on prefer_window_split_horizontally.
21068
210692007-09-08 Eli Zaretskii <eliz@gnu.org>
21070
21071 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
21072
210732007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
21074
21075 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
21076
21077 * frame.c (x_set_frame_parameters): Check number is positive before
21078 using XFASTINT.
21079
21080 * window.c (freeze_window_start): Don't presume selected_window holds
21081 a window object.
21082 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
21083
210842007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
21085
21086 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
21087
210882007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
21089
21090 * window.c (Vsplit_window_preferred_function): New var.
21091 (Fdisplay_buffer): Use it.
21092 (syms_of_window): Export, and initialize it.
21093
210942007-09-06 Pixel <pixel@mandriva.com> (tiny change)
21095
21096 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
21097
210982007-09-06 Glenn Morris <rgm@gnu.org>
21099
21100 * gtkutil.c (menu_grab_callback) <cnt>:
21101 * xselect.c (x_reply_selection_request) <cnt>: Move static
21102 variable to file scope.
21103
211042007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
21105
21106 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
21107 consistent values of selected_frame and selected_window.
21108
211092007-09-04 Jason Rumney <jasonr@gnu.org>
21110
21111 * w32console.c (initialize_w32_display): Zero unused hooks.
21112
211132007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
21114
21115 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
21116 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
21117
211182007-09-04 Jason Rumney <jasonr@gnu.org>
21119
21120 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
21121 in w32console.c. Set up input. Remove XXX comments that have been
21122 confirmed as correct.
21123
21124 * s/ms-w32.h (MULTI_KBOARD): Define.
21125
21126 * w32console.c (one_and_only_w32cons): Remove.
21127 (initialize_w32_display): Take terminal argument.
21128
21129 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
21130 initialize_w32_display.
21131 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
21132
21133 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
21134
21135 * keyboard.c (discard_mouse_events): Discard it.
21136 (make_lispy_event): Translate it to a lisp event.
21137 (lispy_wheel_names): Add wheel-left and right events.
21138 (syms_of_keyboard): Enlarge wheel_syms.
21139
21140 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
21141 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
21142
21143 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
21144
21145 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
21146 from WM_MOUSEHWHEEL.
21147 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
21148
21149 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
21150 terminal.
21151
21152 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
21153 keyboard for the terminal.
21154
211552007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
21156
21157 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
21158 (Vresume_tty_hook): Rename from Vresume_tty_functions.
21159 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
21160 and resume-tty-function to resume-tty-hook.
21161 (Fsuspend_tty, Fresume_tty): Use new names.
21162
211632007-09-02 Jan Djärv <jan.h.d@swipnet.se>
21164
21165 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
21166 if it starts with "n:".
21167
211682007-08-31 Jan Djärv <jan.h.d@swipnet.se>
21169
21170 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
21171
211722007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
21173
21174 * frame.h:
21175 * frame.c (Qterm_environment_variable): Remove.
21176 (syms_of_frame): Don't init and staticpro it.
21177
21178 * callproc.c (getenv_internal): Remove special case for $TERM.
21179
21180 * callproc.c (Vinitial_environment): New variable.
21181 (set_initial_environment): Initialize it.
21182 (syms_of_callproc): Declare it.
21183 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
21184 TERM under which a process runs is never related to the TERM in which
21185 Emacs is running.
21186
211872007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
21188
21189 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
21190 * s/darwin.h: ... do it here.
21191
211922007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
21193
21194 * lisp.h (set_initial_environment): Rename from set_global_environment.
21195
21196 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
21197 removed by mistake on the multi-tty branch.
21198
21199 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
21200 (Fmodify_frame_parameters): Return a value.
21201
21202 * image.c (png_load): Comment-out var only used in commented-out code.
21203
21204 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
21205 before passing it to mark_object.
21206
21207 * xfaces.c (internal_resolve_face_name): Return a value.
21208 (internal_resolve_face_name, resolve_face_name_error): Comment out.
21209
21210 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
21211 (x_icon): Comment-out var only used in commented-out code.
21212
212132007-08-29 Romain Francoise <romain@orebokech.com>
21214
21215 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
21216 QUIT hasn't been provided.
21217
212182007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
21219
21220 * callproc.c (child_setup, getenv_internal): Use the
21221 display-environment-variable and term-environment-variable frame params.
21222 (set_initial_environment): Initialise Vprocess_environment.
21223
21224 * config.in: Disable multi-keyboard support on a mac.
21225
21226 * frame.c (Qterm_environment_variable)
21227 (Qdisplay_environment_variable): New variables.
21228 (syms_of_frame): Intern and staticpro them.
21229 (Fmake_terminal_frame): Disable output method test.
21230
21231 * frame.h: Declare them here.
21232
21233 * macfns.c (x_set_mouse_color): Get rif from the frame.
21234 (x_set_tool_bar_lines): Don't use updating_frame.
21235 (mac_window): Add 2 new parameters for consistency with other systems.
21236 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
21237 frame parameters following what is done in X11 and w32. Don't use
21238 FRAME_MAC_DISPLAY_INFO.
21239 (Fx_open_connection, start_hourglass): Remove window-system check.
21240 (x_create_tip_frame): Get the keyboard from the terminal.
21241
21242 * macmenu.c: Reorder includes.
21243 (Fx_popup_menu): Use terminal specific mouse_position_hook.
21244
21245 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
21246 terminal parameter.
21247 (x_clear_frame): Add a frame parameter.
21248 (note_mouse_movement): Get rif from the frame.
21249 (mac_term_init): Initialize the terminal.
21250 (mac_initialize): Make static and move terminal initialization ...
21251 (mac_create_terminal): ... to this new function.
21252
21253 * macterm.h (struct mac_display_info): Add terminal.
21254 (mac_initialize): Delete declaration.
21255
21256 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
21257
21258 * sysdep.c: Comment out text after #endif.
21259
21260 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
21261 is defined. Better initialize ttys in windows. Use terminal
21262 specific mouse_position_hook.
21263
21264 * termhooks.h (union display_info): Add mac_display_info.
21265
21266 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
21267 Set the default minibuffer frame, window_system and the rest of the
21268 frame parameters following what is done in X11.
21269
21270 * w32term.c (w32_initialize): Make static.
21271
21272 * xselect.c (x_handle_selection_clear): Only access
21273 terminal->kboard when MULTI_KBOARD is defined.
21274
21275 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
21276 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
21277
212782007-08-29 Jason Rumney <jasonr@gnu.org>
21279
21280 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
21281 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
21282
21283 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
21284 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
21285
21286 * keyboard.c (restore_kboard_configuration): Only define when
21287 MULTI_KBOARD defined.
21288
21289 * makefile.w32-in: Update dependancies from Makefile.in.
21290 (OBJ1): Add terminal.$(O)
21291
21292 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
21293 Don't define function body.
21294 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
21295
21296 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
21297
21298 * w32.c (request_sigio, unrequest_sigio): Remove.
21299
21300 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
21301 (w32con_clear_frame, w32con_clear_end_of_line)
21302 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
21303 (w32con_delete_glyphs, w32con_set_terminal_window)
21304 (scroll_line, w32_sys_ring_bell): Add frame arg.
21305 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
21306 Add terminal arg.
21307 (PICK_FRAME): Remove.
21308 (w32con_write_glyphs): Use frame specific terminal coding.
21309 (one_and_only_w32cons): New global variable.
21310 (initialize_w32_display): Use it for storing hooks.
21311 (create_w32cons_output): New function.
21312
21313 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
21314 arg a frame.
21315
21316 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
21317 Set window_system.
21318 (x_set_tool_bar_lines): Don't use updating_frame.
21319 (Fx_create_frame): Set terminal and ref count.
21320 (Fx_open_connection): Remove window-system check.
21321
21322 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
21323
21324 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
21325 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
21326 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
21327 Add frame arg.
21328 (x_delete_terminal, w32_create_terminal): New functions.
21329 (w32_term_init): Create a terminal.
21330 (w32_initialize): Move terminal specific initialization to
21331 w32_create_terminal.
21332
21333 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
21334 (w32_clear_rect, w32_clear_area): Use background from frame.
21335 (w32_display_info): Add terminal.
21336 (w32_sys_ring_bell, x_delete_display): Declare here.
21337
21338 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
21339
21340 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
21341
213422007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
21343
21344 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
21345 Fix get_named_tty calls for the controlling tty.
21346
213472007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
21348
194d44e7 21349 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
aac0c6e3
MR
21350
213512007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
21352
21353 * term.c (tty_insert_glyphs): Add missing first parameter.
21354
213552007-08-29 Károly Lőrentey <karoly@lorentey.hu>
21356
21357 * buffer.c (Fbuffer_list, Fbury_buffer):
21358 Take frame->buried_buffer_list into account.
21359
21360 * cm.c (current_tty): New variable, for cmputc().
21361 (cmputc): Use it.
21362 (cmcheckmagic): Add tty parameter, look up terminal streams there.
21363 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
21364 (cmgoto): Add tty parameter. Pass it on to calccost().
21365 Use emacs_tputs() instead of tputs().
21366
21367 * cm.h (emacs_tputs): New macro to set current_tty, and then call
21368 tputs().
21369 (current_tty): New variable, for cmputc().
21370 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
21371
21372 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
21373 (internal_condition_case, internal_condition_case_1)
21374 (internal_condition_case_2): Don't abort when x_catching_errors.
21375
21376 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
21377 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
21378 prevent crashes caused by bogus longjmps in read_char.
21379
21380 * keymap.h (Fset_keymap_parent): Add EXFUN.
21381
21382 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
21383 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
21384 Remove redundant definition.
21385
21386 * macfns.c (x_set_mouse_color, x_make_gc):
21387 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
21388
21389 * w32term.c (x_free_frame_resources):
21390 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
21391 (w32_initialize): Use the accessor macros for terminal characteristics.
21392
21393 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
21394 Use the accessor macros for terminal characteristics.
21395 * msdos.c (internal_terminal_init): Use the accessor macros for
21396 terminal characteristics.
21397 (ScreenVisualBell, internal_terminal_init):
21398 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
21399
21400 * termopts.h (no_redraw_on_reenter): Declare.
21401
21402 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
21403 (mark_terminals, mark_ttys): Declare.
21404 (Fgarbage_collect): Call them.
21405 (mark_object): Mark buried_buffer_list.
21406
21407 * prefix-args.c: Include stdlib.h for exit.
21408
21409 * syssignal.h: Add comment.
21410
21411 * indent.c: Include stdio.h.
21412
21413 * window.h (Vinitial_window_system): Declare.
21414 (Vwindow_system): Delete declaration.
21415
21416 * fontset.c (Finternal_char_font): Use FRAME_RIF.
21417
21418 * image.c (lookup_image): Don't initialize `c' until the xasserts
21419 have been run.
21420
21421 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
21422 FRAME_FOREGROUND_PIXEL.
21423
21424 * print.c (print_preprocess): Don't lose print_depth levels while
21425 iterating.
21426
21427 * widget.c (update_from_various_frame_slots):
21428 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
21429
21430 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
21431 frames.
21432 (window_internal_height): Remove bogus make_number call.
21433 (init_window_once): Call make_terminal_frame with two zero parameters.
21434
21435 * fileio.c (Fread_file_name): Update comment.
21436
21437 * callint.c (Fcall_interactively):
21438 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
21439 Make sure it is correctly unwound.
21440
21441 * xsmfns.c (x_session_close): New function.
21442
21443 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
21444 Delete declarations.
21445
21446 * xterm.h: Remove declaration for x_fully_uncatch_errors.
21447 (x_output): Remove background_pixel and foreground_pixel fields.
21448 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
21449 (x_delete_device, x_session_close): Declare.
21450
21451 * lread.c: Include setjmp.h. Update declaration of `read_char'.
21452 (read_filtered_event): Call `read_char' with a local
21453 `wrong_kboard_jmpbuf'.
21454
21455 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
21456 Don't call single_kboard_state. Use FRAME_RIF.
21457
21458 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
21459 systems.
21460
21461 * lisp.h (set_process_environment): Rename to `set_global_environment'.
21462 (Fframe_with_environment, Fset_input_meta_mode)
21463 (Fset_quit_char): EXFUN.
21464 (x_create_device, tty_output, terminal, tty_display_info): Declare.
21465 (init_sys_modes, reset_sys_modes): Update prototypes.
21466 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
21467
21468 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
21469 Vlocal_key_translation_map, and Vkeyboard_translate_table.
21470 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
21471 Delete declarations.
21472 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
21473 (temporarily_switch_to_single_kboard, tty_read_avail_input):
21474 New declarations.
21475
21476 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
21477 already does that during init_display(). Call syms_of_keymap
21478 before syms_of_keyboard. Call `syms_of_terminal'.
21479 Call set_initial_environment, not set_process_environment.
21480 (shut_down_emacs): Call reset_all_sys_modes() instead of
21481 reset_sys_modes().
21482
21483 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
21484 (internal_resolve_face_name, resolve_face_name_error): New functions.
21485 (resolve_face_name): Protect against loops and errors thrown by Fget.
21486 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
21487 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
21488
21489 * scroll.c: Replace CURTTY() with local variables throughout the
21490 file (where applicable).
21491 (calculate_scrolling, calculate_direct_scrolling)
21492 (scrolling_1, scroll_cost): Use the accessor macros for terminal
21493 characteristics.
21494
21495 * keymap.c (Vfunction_key_map): Remove.
21496 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
21497 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
21498 (Vkey_translation_map): Remove.
21499 (syms_of_keymap): Remove DEFVAR for key-translation-map.
21500 (Fdescribe_buffer_bindings)
21501 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
21502 Update for terminal-local key-translation-map.
21503
21504 * Makefile.in (callproc.o): Update dependencies.
21505 (lisp, shortlisp): Add termdev.elc.
21506 (obj): Add terminal.o.
21507 (terminal.o): Add dependencies.
21508 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
21509 (data.o, fns.o): Add termhooks.h dependency.
21510 (SOME_MACHINE_LISP): Add dnd.elc.
21511 (minibuf.o): Fix typo.
21512 Update dependencies.
21513
21514 * data.c (do_symval_forwarding, store_symval_forwarding)
21515 (find_symbol_value): Use the selected frame's keyboard, not
21516 current_kboard.
21517
21518 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
21519 Vwindow_system.
21520
21521 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
21522 Fmenu_bar_open.
21523 (syms_of_xmenu): Update defsubr.
21524 (mouse_position_for_popup, Fx_popup_menu)
21525 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
21526 (set_frame_menubar, free_frame_menubar)
b97439ce 21527 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
21528 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
21529 an X frame.
21530
21531 * xselect.c (x_own_selection): Abort if not an X frame.
21532 (some_frame_on_display): Check if it is an X frame.
21533 (x_handle_selection_clear): Deal with MULTI_KBOARD.
21534
21535 * coding.c: Include frame.h and termhooks.h.
21536 (terminal_coding, keyboard_coding): Delete.
21537 (Fset_terminal_coding_system_internal)
21538 (Fset_keyboard_coding_system_internal)
21539 (Fkeyboard_coding_system)
21540 (Fterminal_coding_system): Add a terminal parameter.
21541 Get terminal_coding from the terminal.
21542 (init_coding_once): Don't call setup_coding_system here.
21543
21544 * dispextern.h (set_scroll_region, turn_off_insert)
21545 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
21546 (tty_clear_end_of_line, tty_setup_colors)
21547 (delete_tty, updating_frame)
21548 (produce_special_glyphs, produce_glyphs, write_glyphs)
21549 (insert_glyphs): Remove.
21550 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
21551 (tty_turn_off_highlight, get_tty_size): Add declaration.
21552 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
21553
21554 * frame.h (enum output_method): Add output_initial.
21555 (struct x_output): Delete.
21556 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
21557 Access foreground_pixel and background_pixel directly from the frame.
21558 (tty_display): Delete.
21559 (struct frame): Add buried_buffer_list, foreground_pixel,
21560 background_pixel and terminal. Delete kboard.
21561 (union output_data): Add tty.
21562 (FRAME_KBOARD): Get the kboard from the terminal.
21563 (FRAME_INITIAL_P): New macro.
21564 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
21565 (Qterm_environment_variable, Qdisplay_environment_variable)
21566 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
21567 New declarations.
21568
21569 * termchar.h (tty_output, tty_display_info): New structures.
21570 (tty_list): Declare.
21571 (FRAME_TTY, CURTTY): New macros.
21572 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
21573 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
21574 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
21575 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
21576
21577 * callproc.c: Include frame.h and termhooks.h, for terminal
21578 parameters.
21579 (add_env): New function.
21580 (child_setup): Use it.
21581 (child_setup, getenv_internal): Handle the new Vprocess_environment.
21582 (getenv_internal): Fix get_terminal_param call.
21583 (Fgetenv_internal, egetenv): Update doc.
21584 (syms_of_callproc): Initialize Vprocess_environment to nil.
21585 Register and initialize them. Remove obsolete defvars. Update doc
21586 strings.
21587 (child_setup): Handle Vlocal_environment_variables.
21588 (getenv_internal): Add terminal parameter.
21589 Handle Vlocal_environment_variables.
21590 (Fgetenv_internal): Add terminal parameter.
21591 (child_setup, getenv_internal, Fgetenv_internal): Store the local
21592 environment in a frame (not terminal) parameter. Update doc strings.
21593 (set_initial_environment): Rename from set_global_environment.
21594 Store Emacs environment in initial frame parameter.
21595
21596 * xdisp.c (redisplay_internal): Update references to
21597 `previous_terminal_frame'.
21598 (display_mode_line, Fformat_mode_line): Replace calls to
21599 `push_frame_kboard' with `push_kboard'.
21600 (get_glyph_string_clip_rects): Add extra parentheses and
21601 braces to prevent compiler warnings.
21602 (calc_pixel_width_or_height): Add xassert to check that the
21603 frame is alive. Don't call `lookup_image' on a termcap frame.
21604 (message2_nolog, message3_nolog, redisplay_internal)
21605 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
21606 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
21607 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
21608 (Fx_display_pixel_width, Fx_display_pixel_height)
21609 (Fx_display_planes, Fx_display_color_cells)
21610 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
21611 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
21612 (Fx_display_backing_store, Fx_display_visual_class)
21613 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
21614 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
21615
21616 * xfns.c (x_set_foreground_color x_set_background_color)
21617 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
21618 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
21619 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
21620 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
21621 terminal that is being deleted.
21622 (Fx_create_frame): Use `store_frame_param' to set `window-system'
21623 frame parameter, and make sure it overrides any user-supplied setting.
21624 (Fx_close_connection, Fx_synchronize): Unify argument names with
21625 the rest of the DEFUNs.
21626
21627 * dispnew.c (Fsend_string_to_terminal): Update call to
21628 `get_tty_terminal'.
21629 (Fredraw_frame, Fsend_string_to_terminal)
21630 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
21631 FRAME_TERMCAP_P and FRAME_TTY.
21632 (window_change_signal): Don't believe width/height values that are
21633 impossibly small.
21634 (Vinitial_window_system): Rename from Vwindow_system.
21635 (termscript, Wcm, rif): Delete.
21636
21637 * termhooks.h (struct terminal): New struct containing the
21638 previously global text display hooks and new members NAME,
21639 DELETED and PARAM_ALIST.
21640 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
21641 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
21642 (FRAME_RIF): New macros.
21643 (get_terminal_param, get_device): New declarations.
21644 (termscript): Delete declaration.
21645
21646 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
21647 (XTflash, x_free_frame_resources, x_scroll_bar_create)
21648 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
21649 FRAME_FOREGROUND_PIXEL.
21650 (x_fully_uncatch_errors): Disable definition.
21651 (x_scroll_bar_expose): Fix reference to foreground pixel.
21652 (XTread_socket): Disable loop on all X displays.
21653 (x_delete_terminal): Don't set terminal->deleted and let
21654 delete_terminal delete the frames on the terminal.
21655 (x_delete_display): Doc update to reflect changes in
21656 delete_terminal.
21657 (x_display_info) <terminal>: Move member earlier in the struct.
21658 (deleting_tty): Remove old variable.
21659 (Fsuspend_tty): Call clear_tty_hooks.
21660 (Fresume_tty, init_tty): Call set_tty_hooks.
21661 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
21662 errors on X frames.
21663 (x_catch_errors_unwind): Abort if x_error_message is NULL.
21664 (handle_one_xevent): Initialize `f' to NULL.
21665 (x_delete_terminal, x_create_terminal): New functions.
21666 (XTset_terminal_modes, XTreset_terminal_modes)
21667 (XTread_socket, x_connection_closed, x_term_init)
21668 (x_term_init, x_delete_display): Add terminal parameter.
21669 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
21670 X connections.
21671
21672 * frame.c: Include termchar.h.
21673 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
21674 (Qwindow_system, Qenvironment, Qterm_environment_variable)
21675 (Qdisplay_environment_variable): New vars.
21676 (Fframep): Deal with output_initial.
21677 (Fframe-live-p): Doc fix.
21678 (Fwindow-system): New function.
21679 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
21680 (make_terminal_frame): Don't create frames on a terminal that is
21681 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
21682 (store_frame_param): Check for found_for_frame before calling XFRAME.
21683 (Fmake_terminal_frame): Handle NULL tty names correctly.
21684 (syms_of_frame): Enhance doc string of `default-frame-alist'.
21685 (Fdelete_frame): Remove unused variable `count'. Don't allow other
21686 frames to refer to a deleted frame in their 'environment parameter.
21687 (Fframe_with_environment): New function.
21688 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
21689 (get_future_frame_param): New function.
21690 (Fmake_terminal_frame): Use it.
21691 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
21692
21693 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
21694 * sysdep.c (reset_sys_modes): Update for renames.
21695
21696 * keyboard.c (tty_read_avail_input): New function.
21697 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
21698 (syms_of_keyboard): Defsubr them.
21699 (Fset_input_meta_mode, Fset_quit_char): New functions.
21700 (Fset_input_mode): Split to above functions.
21701 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
21702 parameter. Use it in call to `read_char'.
21703 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
21704 Set wrong_kboard_jmpbuf correctly in recursive calls.
21705 Use current_kboard to access Vkeyboard_translate_table.
21706 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
21707 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
21708 Update longjmp invocations. Remember the original current_kboard,
21709 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
21710 changes it. Comment out unnecessary calls to
21711 `record_single_kboard_state' and `any_kboard_state'.
21712 Update recursive calls.
21713 (wrong_kboard_jmpbuf): Remove global variable.
21714 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
21715 Handle deleted interrupted_kboards correctly; that is a legal
21716 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
21717 and read_char calls. Abort if interrupted_kboard died in read_char.
21718 (any_kboard_state, single_kboard_state)
21719 (push_frame_kboard): Remove function.
21720 (pop_kboard): Switch out of single_kboard mode if the kboard has
21721 been deleted. Remove unused variable. Help debugging by not
21722 changing current_kboard unnecessarily. Set current_kboard to the
21723 kboard of the selected frame when the stored kboard object has
21724 been deleted before pop_kboard.
21725 (temporarily_switch_to_single_kboard): Change first parameter to a
21726 frame pointer. Throw an error when caller wants to change kboards
21727 while in single_kboard mode. Don't push_kboard if we weren't in
21728 single kboard state. Don't pop_kboard if we popped into any
21729 kboard state.
21730 (restore_kboard_configuration): Abort if pop_kboard changed the
21731 kboard in single_kboard mode. Call pop_kboard only after setting
21732 up single_kboard mode.
21733 (Frecursive_edit): Switch to single_kboard mode only in nested
21734 command loops.
21735 (cmd_error, command_loop, command_loop_1, timer_check):
21736 Comment out unnecessary call to `any_kboard_state' and
21737 `record_single_kboard_state'.
21738 (delete_kboard): Exit single_kboard mode if we have just deleted
21739 that kboard. Use FRAME_KBOARD.
21740 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
21741 `fatal_error_signal'.
21742 (record_single_kboard_state): Don't push_kboard if we weren't in
21743 single kboard state. Don't pop_kboard if we popped into any
21744 kboard state.
21745 (push_frame_kboard): Rename to push_kboard.
21746 (kbd_buffer_get_event): Use FRAME_TERMINAL.
21747 (read_avail_input): Read input from all terminals.
21748 (mark_kboards): Also mark Vkeyboard_translate_table.
21749 (kbd_buffer_store_event_hold): Simplify condition.
21750 (read_key_sequence): Reinitialize fkey and keytran at each replay.
21751 (Vkeyboard_translate_table): Move to struct kboard.
21752 (init_kboard): Initialize Vkeyboard_translate_table.
21753 (syms_of_keyboard): Use DEFVAR_KBOARD to define
21754 Vkeyboard_translate_table. Update doc strings. Update docs of
21755 local-function-key-map and function-key-map.
21756
21757 * terminal.c: New file.
21758
21759 * term.c: Include errno.h.
21760 (Vring_bell_function, device_list, initial_device)
21761 (next_device_id, ring_bell, update_begin, update_end)
21762 (set_terminal_window, cursor_to, raw_cursor_to)
21763 (clear_to_end, clear_frame, clear_end_of_line)
21764 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
21765 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
21766 (syms_of_term): Move their initialization to terminal.c.
21767 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
21768 (Ftty_display_color_cells)
21769 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
21770 (clear_tty_hooks, set_tty_hooks)
21771 (init_tty, maybe_fatal): New functions.
21772 (Ftty_type): Return nil if terminal is not on a tty instead of
21773 throwing an error. Doc update.
21774 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
21775 Doc update. Initialize new subrs and variables.
21776 (delete_tty): Use terminal->deleted.
21777 (tty_set_terminal_modes): Rename from set_terminal_modes.
21778 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
21779 (set_scroll_region): Rename to `tty_set_scroll_region'.
21780 (turn_on_insert): Rename to `tty_turn_on_insert'.
21781 (turn_off_insert): Rename to `tty_turn_off_insert'.
21782 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
21783 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
21784 (toggle_highligh): Rename to `tty_toggle_highlight'.
21785 (background_highlight): Rename to `tty_background_highlight'.
21786 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
21787 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
21788 (tty_set_scroll_region, tty_background_highlight)
21789 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
21790 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
21791 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
21792 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
21793 Add static modifier.
21794 (tty_reset_terminal_modes, tty_set_terminal_window)
21795 (tty_set_scroll_region, tty_background_highlight)
21796 (tty_highlight_if_desired, tty_cursor_to)
21797 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
21798 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
21799 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
21800 renames.
21801
218022007-08-28 Jan Djärv <jan.h.d@swipnet.se>
21803
21804 * keyboard.c: Qrtl is new.
21805 (parse_tool_bar_item): Handle :rtl keyword.
21806 (syms_of_keyboard): Intern :rtl keyword.
21807
21808 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
21809
21810 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
21811 so no Lisp code is executed.
21812 (file_for_image, find_rtl_image): New functions.
21813 (xg_get_image_for_pixmap): Use file_for_image.
21814 (update_frame_tool_bar): If direction is RTL, use RTL image if
21815 defined. Use Gtk stock images if defined.
21816
218172007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21818
21819 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
21820 for nonexistent or zero-width glyph in composition glyph.
21821
218222007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
21823
21824 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
21825
21826 * xdisp.c (Finvisible_p): New function.
21827 (syms_of_xdisp): defsubr it.
21828
218292007-08-24 Juanma Barranquero <lekktu@gmail.com>
21830
21831 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
21832 Doc fixes.
21833
218342007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21835
21836 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
21837
218382007-08-24 Martin Rudalics <rudalics@gmx.at>
21839
21840 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
21841 whether decoding has modified buffer contents.
21842
218432007-08-24 Jason Rumney <jasonr@gnu.org>
21844
21845 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
21846 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
21847 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
21848 (init_svg_functions) [HAVE_NTGUI]: New function.
21849 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
21850 (svg_load_image): Use them.
21851 (svg_load_image) [HAVE_NTGUI]: Implement background.
21852
218532007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21854
21855 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
21856 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
21857 (LIBX): Remove @RSVG_LIBS@.
21858 (LIBES): Add $(RSVG_LIBS).
21859
21860 * image.c (svg_load_image): Blend with specified background if exists.
21861 Use IMAGE_BACKGROUND. Add Mac OS Support.
21862
21863 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
21864 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
21865 Remove macros.
21866 [MAC_OSX] (socket_callback): Do nothing.
21867 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
21868 ReceiveNextEvent.
21869 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
21870 socket_callback.
21871 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
21872
218732007-08-22 Glenn Morris <rgm@gnu.org>
21874
21875 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
21876
218772007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
21878
21879 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
21880
21881 * image.c: Add support for SVG images. Some additional comments
21882 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
21883 (svg_image_p): New function to test for SVG image.
21884 (svg_load): New function to load SVG image.
21885 (svg_load_image): New function, helper for svg_load.
21886 (Qsvg): New Lisp_object.
21887 (svg_keyword_index): New enum.
21888 (svg_format): New static `image_keyword' struct.
21889 (svg_type): New static `image_type' struct.
21890 (librsvg/rsvg.h): Include it.
21891
218922007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
21893
21894 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
21895
218962007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
21897
21898 * lread.c (Qold_style_backquotes): New var.
21899 (syms_of_lread): Init and staticpro it.
21900 (load_warn_old_style_backquotes): New fun.
21901 (Fload): Use them to warn about old style backquotes.
21902 (end_of_file_error, Fload): Remove unused vars.
21903
21904 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
21905
21906 * lread.c (Vold_style_backquotes): New var.
21907 (syms_of_lread): Init and export it to Elisp.
21908 (read1): Set it when we find an old-style (back)quote.
21909
219102007-08-22 Jason Rumney <jasonr@gnu.org>
21911
21912 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
21913
219142007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
21915
21916 * puresize.h (BASE_PURESIZE): Increase to 1140000.
21917
219182007-08-19 Richard Stallman <rms@gnu.org>
21919
21920 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
21921
219222007-08-19 Andreas Schwab <schwab@suse.de>
21923
21924 * alloc.c (pure): Round PURESIZE up.
21925
219262007-08-17 Jan Djärv <jan.h.d@swipnet.se>
21927
21928 * xterm.c (handle_one_xevent): Remove check that mouse click is in
21929 active frame.
21930
219312007-08-16 Richard Stallman <rms@gnu.org>
21932
21933 * eval.c (Fcommandp): Add parens to clarify.
21934
21935 * minibuf.c (Fall_completions): Use enum for type of table.
21936
21937 * emacs.c (USAGE2): Improve text.
21938
219392007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
21940
21941 * term.c (tty_default_color_capabilities): Declare static
21942 variables in file scope, to avoid HPUX compiler problem.
21943
219442007-08-13 Jan Djärv <jan.h.d@swipnet.se>
21945
21946 * gtkutil.c (update_frame_tool_bar): Use -1 as index
21947 to gtk_toolbar_insert.
21948
219492007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
21950
21951 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
21952
21953 * insdel.c (reset_var_on_error): New fun.
21954 (signal_before_change, signal_after_change):
21955 Use it to reset (after|before)-change-functions to nil in case of error.
21956 Bind inhibit-modification-hooks to t.
21957 Don't bind (after|before)-change-functions to nil while they run.
21958
219592007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21960
21961 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
21962 filling pixmap with stippled background.
21963
219642007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21965
21966 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
21967 Don't use invisible frame as parent window for repositioning.
21968
219692007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
21970
21971 * print.c (new_backquote_output): Rename from old_backquote_output.
21972 (print): Inverse its logic (according to its name) so as to match the
21973 behavior of new_backquote_flag in lread.c.
21974
219752007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21976
21977 * gmalloc.c (posix_memalign): New function.
21978
21979 * macterm.c (frame_highlight, frame_unhighlight): Don't call
21980 ActivateControl/DeactivateControl here.
21981 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
21982 frame-notice-user-settings is non-nil.
21983 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
21984 for kEventParamFMFontStyle.
21985 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
21986 mac_pass_command_to_system and mac_pass_control_to_system here.
21987 (XTread_socket): Call ActivateControl/DeactivateControl here.
21988 (XTread_socket) [TARGET_API_MAC_CARBON]:
21989 Check mac_pass_command_to_system and mac_pass_control_to_system here.
21990 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
21991 for window repositioning.
21992
219932007-08-08 Glenn Morris <rgm@gnu.org>
21994
21995 * Replace `iff' in doc-strings and comments.
21996
219972007-08-07 Chong Yidong <cyd@stupidchicken.com>
21998
21999 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
22000
220012007-08-07 Martin Rudalics <rudalics@gmx.at>
22002
22003 * fileio.c (Finsert_file_contents): Run format-decode and
22004 after_insert_file_functions on entire buffer when REPLACE is
22005 non-nil and inhibit modification_hooks and point_motion_hooks.
22006 For consistency, run after_insert_file_functions iff something
22007 got inserted. Move signal_after_change and update_compositions
22008 after code running after_insert_file_functions. Make sure that
22009 undo_list doesn't record intermediate steps of the decoding process.
22010
220112007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22012
22013 * emacs.c (main)
22014 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
22015 Call malloc_enable_thread on interactive startup.
22016
22017 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
22018 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
22019 [USE_PTHREAD]: Conditionalize with it.
22020 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
22021 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
22022 New functions.
22023
220242007-08-06 Chong Yidong <cyd@stupidchicken.com>
22025
22026 * xdisp.c (redisplay_window): When restoring original buffer
22027 position, make sure it is still valid.
22028
22029 * image.c (png_load): Ignore png-supplied background color.
22030
220312007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22032
22033 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
22034 Use kCFAbsoluteTimeIntervalSince1970.
22035
22036 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
22037 New variable.
22038 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
22039 event loop should be quit.
22040 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
22041 Quit dialog event loop if quit_dialog_event_loop is set.
22042
22043 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
22044 (Selection): New typedef. Use instead of ScrapRef.
22045 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
22046 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
22047 (mac_clear_selection): Rename from clear_scrap.
22048 (get_flavor_type_from_symbol): New argument SEL and subsume function of
22049 scrap_has_target_type. All uses changed.
22050 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
22051 (mac_selection_has_target_p): New functions.
22052 (mac_put_selection_value): Rename from put_scrap_string.
22053 (mac_get_selection_value): Rename from get_scrap_string.
22054 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
22055 (put_scrap_private_timestamp, scrap_has_target_type)
22056 (get_scrap_private_timestamp): Remove functions.
22057 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
22058 (x_own_selection, x_get_local_selection):
22059 Use mac_valid_selection_value_p.
22060 (x_own_selection): Don't use put_scrap_private_timestamp.
22061 Record OWNERSHIP-INFO into Vselection_alist instead.
22062 (x_get_local_selection): Don't check type if request is local.
22063 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
22064 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
22065
220662007-08-04 Jan Djärv <jan.h.d@swipnet.se>
22067
22068 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
22069 add comment explaining why.
22070
220712007-08-03 Richard Stallman <rms@gnu.org>
22072
22073 * fileio.c (Fvisited_file_modtime): Use make_time.
22074
220752007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
22076
22077 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
22078 build.
22079
220802007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
22081
22082 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
22083
220842007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
22085
22086 * puresize.h (BASE_PURESIZE): Increase to 1130000.
22087
220882007-07-30 Richard Stallman <rms@gnu.org>
22089
22090 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
22091
220922007-07-29 Jan Djärv <jan.h.d@swipnet.se>
22093
22094 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
22095
220962007-07-28 Nick Roberts <nickrob@snap.net.nz>
22097
22098 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
22099 remote default-directory.
22100
22101 * buffer.c (mode-line-format): Update doc string.
22102
221032007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22104
22105 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
22106 scroll bar gap.
22107 (x_scroll_bar_create): Set bar->fringe_extended_p.
22108 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
22109 on frame edge. Check fringe background extension. Don't clear
22110 extended fringe background area.
22111
22112 * w32term.h (struct scroll_bar): New member fringe_extended_p.
22113 (w32_fill_area): Enclose multiple statements with do ... while (0).
22114
22115 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
22116 Extend fringe background to scroll bar gap.
22117 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
22118 Set bar->fringe_extended_p.
22119 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
22120 Put leftmost/rightmost scroll bars on frame edge. Check fringe
22121 background extension. Don't clear extended fringe background area.
22122
22123 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
22124 New member fringe_extended_p.
22125
221262007-07-25 Glenn Morris <rgm@gnu.org>
22127
22128 * Relicense all FSF files to GPLv3 or later.
22129
22130 * COPYING: Switch to GPLv3.
22131
221322007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
22133
22134 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
22135
22136 * data.c (Finteractive_form): Check for the presence of an
22137 `interactive-form' symbol property more thoroughly.
22138
22139 * data.c (Finteractive_form): Use an `interactive-form' property if
22140 present, analogous to the function-documentation property.
22141
221422007-07-24 Jason Rumney <jasonr@gnu.org>
22143
22144 * w32fns.c (x_real_positions): Get real position from OS instead of
22145 calculating it.
22146
221472007-07-23 Jason Rumney <jasonr@gnu.org>
22148
22149 * filelock.c (current_lock_owner): Allow for @ sign in username.
22150
221512007-07-22 Nick Roberts <nickrob@snap.net.nz>
22152
22153 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
22154 remote default-directory.
22155
22156 * buffer.c (mode-line-format): Describe above case in doc string.
22157
221582007-07-20 Eli Zaretskii <eliz@gnu.org>
22159
22160 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
22161 Define if not defined.
22162
221632007-07-18 Jason Rumney <jasonr@gnu.org>
22164
22165 * w32proc.c (w32_executable_type): Handle 64 bit executables.
22166
221672007-07-18 Richard Stallman <rms@gnu.org>
22168
22169 * data.c (Fsetq_default): Doc fix.
22170
22171 * eval.c (Fsetq): Doc fix.
22172
221732007-07-18 Juanma Barranquero <lekktu@gmail.com>
22174
22175 * coding.c (Ffind_operation_coding_system):
22176 * eval.c (For, Fand): Doc fixes.
22177 Reported by Johan Bockgård.
22178
221792007-07-18 Jan Djärv <jan.h.d@swipnet.se>
22180
22181 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
22182
22183 * xterm.h: Declare x_ewmh_activate_frame.
22184
22185 * xterm.c (x_ewmh_activate_frame): New function.
22186 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
22187
221882007-07-17 Martin Rudalics <rudalics@gmx.at>
22189
22190 * window.c (Fdisplay_buffer): If largest or LRU window is the
22191 only window, split it even if it is not eligible for splitting.
22192 This restores the original behavior broken by the 2007-07-15
22193 change.
22194
221952007-07-17 Glenn Morris <rgm@gnu.org>
22196
22197 * abbrev.c (abbrev_check_chars): New function.
22198 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
22199 Call abbrev_check_chars to check abbrev characters are word
22200 constituents. Doc fix.
22201
222022007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
22203
22204 * process.c (Fstart_process, Fmake_network_process)
22205 (read_process_output): Fix up last changes.
22206
222072007-07-16 Eli Zaretskii <eliz@gnu.org>
22208
22209 * makefile.w32-in (clean): Don't delete *~.
22210
222112007-07-16 Andreas Schwab <schwab@suse.de>
22212
22213 * window.c (Fdisplay_buffer): Use NILP.
22214 (Fset_window_scroll_bars): Likewise.
22215
222162007-07-15 Martin Rudalics <rudalics@gmx.at>
22217
22218 * window.c (window_min_size_2): New function.
22219 (window_min_size_1, size_window, Fdisplay_buffer)
22220 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
22221 windows without mode- or header-lines when window-min-height is
22222 too small.
22223 (size_window): Reset nodelete_p after testing it, following an
22224 earlier note by Kim F. Storm.
22225 (display_buffer): Do not set split_height_threshold to twice the
22226 value of window_min_height to avoid changing the value of a
22227 customizable variable. Rather explicitly check whether the
22228 height of the window that shall be splitted is at least as large
22229 as split_height_threshold.
22230 (Fwindow_full_width_p): New defun.
22231 (syms_of_window): Defsubr it.
22232
22233 * window.h: Add EXFUN for Fwindow_full_width_p.
22234
222352007-07-14 Jason Rumney <jasonr@gnu.org>
22236
22237 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
22238
222392007-07-14 Richard Stallman <rms@gnu.org>
22240
22241 * eval.c (maybe_call_debugger): New function.
22242 (find_handler_clause): Use maybe_call_debugger.
22243 Call it when the handler says `debug'.
22244 Eliminate DEBUGGER_VALUE_PTR.
22245 (Fsignal): Eliminate debugger_value.
22246 (Qdebug): New variable.
22247 (syms_of_eval): Initialize it.
22248
222492007-07-14 Juanma Barranquero <lekktu@gmail.com>
22250
22251 * eval.c (Fprogn):
22252 * keyboard.c (Ftrack_mouse):
22253 * print.c (Fwith_output_to_temp_buffer):
22254 * window.c (Fsave_window_excursion): Doc fix.
22255
222562007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
22257
22258 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
22259
222602007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
22261
22262 * process.h (struct Lisp_Process): Turn slots infd, outfd,
22263 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
22264 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
22265 read_output_delay, and read_output_skip from Lisp_Objects to ints.
22266 Remove unused encoding_carryover.
22267 * process.c: Adjust all functions accordingly.
22268
222692007-07-12 Richard Stallman <rms@gnu.org>
22270
22271 * term.c: Include unistd.h only if HAVE_UNISTD_H.
22272
222732007-07-11 Jason Rumney <jasonr@gnu.org>
22274
22275 * makefile.w32-in (LIBS): Include OLE32.
22276
22277 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
22278 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
22279
222802007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
22281
22282 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
22283 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
22284 from a Lisp_Object into a bare pointer.
22285 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
22286 Adjust the code correspondingly.
22287
22288 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
22289
22290 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
22291 (term_show_mouse_face): Remove unused var `j'.
22292 (handle_one_term_event): Remove unused vars `i' and `j'.
22293 Don't cast return value of ttyname since it's not necessary.
22294
222952007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
22296
22297 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
22298 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
22299
22300 * fns.c (map_char_table): Use an array of int for `indices' rather than
22301 an array of Lisp_Objects (which are only ever integers anyway).
22302 (Fmap_char_table): Update caller.
22303 * lisp.h: Update prototype.
22304 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
22305 * fontset.c (Ffontset_info):
22306 * casetab.c (set_case_table): Update callers.
22307
22308 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
22309
22310 * keymap.c (struct accessible_keymaps_data)
22311 (struct where_is_internal_data): New structures.
22312 (accessible_keymaps_1, where_is_internal_1): Use them to change
22313 interface to adhere to the one used by map_keymap.
22314 (Faccessible_keymaps, where_is_internal): Use map_keymap.
22315 (accessible_keymaps_char_table, where_is_internal_2): Remove.
22316
22317 * keymap.h (map_keymap_function_t): More informative prototype.
22318
223192007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
22320
22321 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
22322 (looking_at_1): Don't change search_regs and last_thing_searched
22323 if `inhibit-changing-match-data' is non-nil.
22324 (string_match_1, search_buffer, set_search_regs): Likewise.
22325 (syms_of_search): Add Lisp level definition for
22326 `inhibit-changing-match-data' and set it to nil.
22327 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
22328 start and end of the match, instead of using values in search_regs.
22329
223302007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
22331
22332 * minibuf.c (Fcompleting_read): New value `confirm-only'
22333 for `require-match'.
22334
223352007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
22336
22337 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
22338 part of the 2007-06-27 change to syms_of_fileio.
22339
223402007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22341
22342 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
22343 Check WINDOWP before using XWINDOW. Consolidate return statements.
22344
223452007-06-27 Richard Stallman <rms@gnu.org>
22346
22347 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
22348
223492007-06-27 Juanma Barranquero <lekktu@gmail.com>
22350
22351 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
22352
223532007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22354
22355 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
22356 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
22357 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
22358 (_free_internal, memalign): Use them.
22359 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
22360 Initialize to PTHREAD_MUTEX_INITIALIZER.
22361 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
22362 (morecore_nolock): Rename from morecore. All uses changed.
22363 Use only nolock versions of internal allocation functions.
22364 (_malloc_internal_nolock, _realloc_internal_nolock)
22365 (_free_internal_nolock): New functions created from
22366 _malloc_internal, _realloc_internal, and _free_internal.
22367 (_malloc_internal, _realloc_internal, _free_internal): Use them.
22368 Copy hook value to automatic variable before its use.
22369 (memalign): Copy hook value to automatic variable before its use.
22370
223712007-06-26 Kenichi Handa <handa@m17n.org>
22372
22373 * coding.c (Ffind_operation_coding_system): Docstring improved.
22374 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
22375
223762007-06-25 David Kastrup <dak@gnu.org>
22377
22378 * keymap.c (Fcurrent_active_maps): Add `position' argument.
22379 (Fwhere_is_internal): Adjust call to `current-active-maps' to
22380 cater for additional parameter.
22381
22382 * keymap.h: Adjust number of parameters to `current-active-maps'.
22383
22384 * doc.c (Fsubstitute_command_keys): Adjust call of
22385 `current-active-maps'.
22386
223872007-06-25 David Kastrup <dak@gnu.org>
22388
22389 * callint.c (Fcall_interactively): Make the parsing of interactive
22390 specs somewhat more readable.
22391
223922007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22393
22394 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
22395 to scroll bar gap also when bitmap fills fringe. Draw only foreground
22396 if extended background has already been filled.
22397
223982007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22399
22400 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
22401 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
22402
22403 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
22404 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
22405 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
22406 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
22407 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
22408 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
22409 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
22410 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
22411 Run timers during dialog popup.
22412 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
22413
224142007-06-21 Jason Rumney <jasonr@gnu.org>
22415
22416 * image.c (convert_mono_to_color_image): Swap fore and background.
22417
224182007-06-20 Jason Rumney <jasonr@gnu.org>
22419
22420 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
22421 (w32_free_bdf_font): Unmap memory not handle.
22422
224232007-06-20 Sam Steingold <sds@gnu.org>
22424
22425 * gmalloc.c (__morecore): Fix the declaration to comply with the
22426 definition.
22427
224282007-06-20 Juanma Barranquero <lekktu@gmail.com>
22429
22430 * w32term.c (w32_delete_display): Remove leftover declaration.
22431 (w32_define_cursor, w32_initialize): Make static.
22432
22433 * w32.c (_wsa_errlist): Fix typo in error message.
22434 (init_environment): Ignore any environment variable from the
22435 registry having a null value.
22436
224372007-06-20 Glenn Morris <rgm@gnu.org>
22438
22439 * Makefile.in (LIBGIF): Default to -lgif.
22440
224412007-06-17 Jason Rumney <jasonr@gnu.org>
22442
22443 * w32menu.c (add_menu_item): Don't use multibyte string functions on
22444 unicode strings.
22445
224462007-06-16 Juanma Barranquero <lekktu@gmail.com>
22447
22448 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
22449 Fix typo in docstring.
22450
224512007-06-16 Eli Zaretskii <eliz@gnu.org>
22452
22453 * w32menu.c (add_menu_item): Escape `&' characters in menu items
22454 and their keybindings.
22455
224562007-06-15 Chong Yidong <cyd@stupidchicken.com>
22457
22458 * composite.c (update_compositions): Fix last fix.
22459
224602007-06-14 Jason Rumney <jasonr@gnu.org>
22461
22462 * w32.c (get_process_times_fn): New function pointer.
22463 (globals_of_w32): Intialize it if present in kernel32.dll.
22464 (w32_get_internal_run_time): New function.
22465
22466 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
22467
224682007-06-14 Kenichi Handa <handa@etlken.m17n.org>
22469
22470 * composite.c (update_compositions): Check the validness of
22471 compositions.
22472
224732007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22474
22475 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
22476 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
22477
22478 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
22479 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
22480
22481 * macgui.h (USE_MAC_TOOLBAR): New define.
22482
22483 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
22484 Return immediately unless popup is activated.
22485
22486 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
22487 background to scroll bar gap.
22488 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
22489 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
22490 scroll bars on frame edge. Check fringe background extension.
22491 Don't clear extended fringe background area.
22492 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
22493 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
22494 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
22495 [USE_MAC_TOOLBAR]: New macros.
22496 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
22497 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
22498 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
22499 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
22500 [USE_MAC_TOOLBAR]: New functions.
22501 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
22502 manually if previous repositioning has failed.
22503 (mac_handle_keyboard_event): Use precomputed event kind.
22504 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
22505 as tool bar item click. Handle mouse movement over tool bar items.
22506
22507 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
22508 toolbar_win_gravity.
22509 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
22510 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
22511 Add externs.
22512
22513 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
22514 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
22515
225162007-06-14 Chong Yidong <cyd@stupidchicken.com>
22517
22518 * image.c (search_image_cache): Remove unused variable.
22519
225202007-06-13 Chong Yidong <cyd@stupidchicken.com>
22521
22522 * xfns.c, xmenu.c: Link to xaw3d if available.
22523
225242007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22525
22526 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
22527 frame_foreground and frame_background.
22528
22529 * image.c (lookup_image): Save frame foreground and background colors.
22530 (search_image_cache): Check if saved and current frame colors match.
22531
225322007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
22533
22534 * regex.c (regex_compile): Remove the `regnum' counter.
22535 Use bufp->re_nsub instead. Add support for \(?N:RE\).
22536
225372007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
22538
22539 * term.c: Include intervals.h to declare Fget_text_property.
22540
225412007-06-10 Jason Rumney <jasonr@gnu.org>
22542
22543 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
22544
225452007-06-08 Juanma Barranquero <lekktu@gmail.com>
22546
22547 * callint.c (Fcall_interactively):
22548 * editfns.c (Fdelete_and_extract_region):
22549 * fileio.c (Fread_file_name):
22550 * fns.c (Fmapconcat):
22551 * keyboard.c (cmd_error_internal):
22552 * keymap.c (Fkey_description):
22553 * lread.c (openp):
22554 * minibuf.c (read_minibuf):
22555 * search.c (wordify):
22556 * sunfns.c (sel_read):
22557 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
22558 * xfns.c (x_default_scroll_bar_color_parameter):
22559 * xmenu.c (menu_help_callback):
22560 * xselect.c (Fx_get_atom_name):
22561 * xterm.c (x_term_init): Use empty_unibyte_string.
22562
225632007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
22564
22565 * alloc.c (init_strings): Initialize canonical empty strings.
22566 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
22567 canonical empty string when the requested size is 0.
22568
22569 * emacs.c (empty_unibyte_string): Rename from empty_string.
22570 (empty_multibyte_string): New canonical empty string.
22571 (syms_of_emacs): Don't initialize empty_string.
22572
22573 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
22574 string, if appropriate.
22575 (empty_unibyte_string, empty_multibyte_string): New externs.
22576 (empty_string): Remove extern.
22577
22578 * lread.c (syms_of_lread): Use empty_unibyte_string.
22579
225802007-06-07 Jason Rumney <jasonr@gnu.org>
22581
22582 * s/ms-w32.h: Don't define HAVE_TZNAME.
22583
22584 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
22585
225862007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22587
22588 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
22589
22590 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
22591 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
22592
22593 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
22594 Don't call next handler.
22595 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
22596 Remove argument. Install handler to application.
22597 (set_frame_menubar): Don't change deep_p.
22598 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
22599 FRAME_OUTER_TO_INNER_DIFF_Y.
22600 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
22601 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
22602 [HAVE_DIALOGS]: New macros.
22603 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
22604 Use them.
22605 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
22606
22607 * macselect.c [MAC_OSX] (install_service_handler): Rename from
22608 init_service_handler. All callers changed. Return OSStatus value.
22609
22610 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
22611 All callers changed so as not to call SetPortWindowPort.
22612 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
22613 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
22614 mac_draw_string_common.
22615 (mac_draw_image_string_qd): Likewise.
22616 (mac_draw_string_common): Use them. Add INLINE.
22617 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
22618 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
22619 GetGlobalMouse.
22620 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
22621 and FRAME_OUTER_TO_INNER_DIFF_Y.
22622 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
22623 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
22624 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
22625 repositioning window to mac_handle_window_event.
22626 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
22627 saving window location to mac_handle_window_event
22628 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
22629 (install_menu_target_item_handler): Remove argument in extern.
22630 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
22631 Also accept command events.
22632 (do_keystroke): New function created from XTread_socket.
22633 (init_command_handler): Remove functions.
22634 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
22635 and save window location by kEventWindowShowing and kEventWindowHiding
22636 handlers here. Don't call next handler for window state change and
22637 focus events.
22638 (mac_handle_application_event, mac_handle_keyboard_event)
22639 [TARGET_API_MAC_CARBON]: New functions.
22640 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
22641 kEventWindowShowing and kEventWindowHiding events. Move installation
22642 of mouse, font, text input and menu target item handlers to
22643 install_application_handler.
22644 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
22645 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
22646 New function.
22647 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
22648 Register it.
22649 (XTread_socket) [TARGET_API_MAC_CARBON]:
22650 Consolidate SendEventToEventTarget calls.
22651 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
22652 Move application activation handler to mac_handle_application_event.
22653 Move keyboard handler to mac_handle_keyboard_event.
22654 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
22655 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
22656 init_command_handler. Call install_application_handler.
22657
22658 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
22659 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
22660
226612007-06-07 Glenn Morris <rgm@gnu.org>
22662
22663 * emacs.c (main): Use `emacs-copyright' in --version output.
22664
226652007-06-06 Chong Yidong <cyd@stupidchicken.com>
22666
22667 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
22668
226692007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22670
22671 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
22672
22673 * macgui.h: Replace WindowPtr with WindowRef.
22674
22675 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
22676 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
22677 Replace ControlHandle with ControlRef.
22678 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
22679
22680 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
22681 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
22682 Replace ControlHandle with ControlRef.
22683 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
22684 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
22685
22686 * macterm.h (struct scroll_bar): Rename member control_handle_low
22687 and control_handle_high to control_ref_low and control_ref_high.
22688 All uses changed.
22689 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
22690 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
22691 respectively. All uses changed.
22692 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
22693 (install_window_handler, remove_window_handler): Replace WindowPtr
22694 with WindowRef in externs.
22695
226962007-06-05 Juanma Barranquero <lekktu@gmail.com>
22697
22698 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
22699
227002007-06-03 Nick Roberts <nickrob@snap.net.nz>
22701
22702 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
22703
22704 * frame.c (Fmouse_position, Fmouse_pixel_position):
22705 Condition on HAVE_GPM too.
22706
22707 * term.c (term_mouse_highlight): Remove unused variables.
22708 (Fterm_open_connection): Set gpm_zerobased to 1.
22709 (term_mouse_movement, term_mouse_click, handle_one_term_event):
22710 Use zero based co-ordinates.
22711 (handle_one_term_event): Report a drag as mouse movement too.
22712
22713 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
22714
227152007-06-03 Chong Yidong <cyd@stupidchicken.com>
22716
22717 * image.c (search_image_cache): New function. Require background
22718 color match if background color is unspecified in the image spec.
22719 (uncache_image, lookup_image): Use it.
22720
227212007-06-01 Juanma Barranquero <lekktu@gmail.com>
22722
22723 * window.c (Fshrink_window): Reflow docstring.
22724
227252007-06-02 Chong Yidong <cyd@stupidchicken.com>
22726
22727 * Version 22.1 released.
22728
227292007-06-01 Richard Stallman <rms@gnu.org>
22730
22731 * xfns.c (x_encode_text): Add GCPRO.
22732
227332007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22734
22735 * xfns.c (x_set_name_internal): Save encoded name before
22736 x_encode_text in case string data is relocated.
22737
227382007-05-31 Richard Stallman <rms@gnu.org>
22739
22740 * buffer.c (syms_of_buffer): Doc fix.
22741
227422007-05-30 Nick Roberts <nickrob@snap.net.nz>
22743
22744 * sysdep.c (init_sys_modes): Add rather than replace with
22745 O_NONBLOCK.
22746
22747 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
22748 term_mouse_moveto.
22749
22750 * termhooks.h (term_mouse_moveto): New extern.
22751
22752 * term.c (mouse_face_window): Rename...
22753 (Qmouse_face_window): ...to this.
22754 (term_show_mouse_face, term_clear_mouse_face)
22755 (term_mouse_highlight): Use Qmouse_face_window.
22756 (term_mouse_moveto): New function.
22757 (term_mouse_position): Make it work.
22758 (syms_of_term): Uncomment assignment to mouse_position_hook.
22759 Staticpro Qmouse_face_window.
22760
227612007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22762
22763 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
22764 around current_column call.
22765
227662007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
22767
22768 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
22769 * xdisp.c (next_element_from_buffer):
22770 * window.c (delete_window):
22771 * term.c (term_mouse_highlight):
22772 * msdos.c (getdefdir):
22773 * macterm.c (mac_create_bitmap_from_bitmap_data)
22774 (init_font_name_table):
22775 * fns.c (Fsxhash):
22776 * data.c (Fmake_local_variable):
22777 * ccl.c (ccl_driver): Likewise.
22778
227792007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22780
22781 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
22782 Call mac_wakeup_from_rne on window size change.
22783
227842007-05-25 Chong Yidong <cyd@stupidchicken.com>
22785
22786 * image.c (uncache_image): Fix typo.
22787
227882007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
22789
22790 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
22791
227922007-05-22 Richard Stallman <rms@gnu.org>
22793
22794 * xterm.c (x_connection_closed): Remove NO_RETURN.
22795
227962007-05-22 Martin Rudalics <rudalics@gmx.at>
22797
22798 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
22799
228002007-05-21 Chong Yidong <cyd@stupidchicken.com>
22801
22802 * image.c (uncache_image): New function.
22803 (Fimage_refresh): New function.
22804
228052007-05-20 Jan Djärv <jan.h.d@swipnet.se>
22806
22807 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
22808
228092007-05-20 Nick Roberts <nickrob@snap.net.nz>
22810
22811 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
22812 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
22813
228142007-05-20 Nick Roberts <nickrob@snap.net.nz>
22815
22816 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
22817 conditional on [HAVE_GPM_H].
22818
228192007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
22820
22821 * syntax.c (skip_chars): Update syntax-table only after we checked that
22822 the new location is valid.
22823
228242007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22825
22826 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
22827 mac_get_window_bounds.
22828
228292007-05-20 Nick Roberts <nickrob@snap.net.nz>
22830
22831 * Makefile.in (LIBGPM): Allow it to be set from configure.
22832 If set then link Emacs with it.
22833
22834 * config.in: Regenerate.
22835
22836 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
22837 New externs.
22838
22839 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
22840 Include gpm.h.
22841 (handle_one_term_event, term_gpm): New externs.
22842
22843 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
22844 and allow it to be interrupted by SIGIO.
22845
22846 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
22847 (wait_reading_process_output): Wait on gpm_fd too.
22848 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
22849 (add_gpm_wait_descriptor_called_flag): New variable.
22850 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
22851
22852 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
22853 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
22854 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
22855 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
22856 (make_lispy_event): Add case GPM_CLICK_EVENT.
22857 (read_avail_input): Handle mouse input.
22858
22859 * term.c (write_glyphs_with_face): New function.
22860 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
22861 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
22862 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
22863 (mouse_face_face_id, term_gpm, pos_x, pos_y)
22864 (last_mouse_x, last_mouse_y): New variables.
22865 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
22866 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
22867 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
22868 (Fterm_close_connection): New functions.
22869 (term_init): Initialise mouse_face_window.
22870
228712007-05-19 Chong Yidong <cyd@stupidchicken.com>
22872
22873 * xdisp.c (redisplay_window): If first window line is a
22874 continuation line, recompute the new window start instead of
22875 recentering.
22876
228772007-05-18 Glenn Morris <rgm@gnu.org>
22878
22879 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
22880 Suggested by Alfred M. Szmidt <ams@gnu.org>.
22881
228822007-05-17 Glenn Morris <rgm@gnu.org>
22883
22884 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
22885
228862007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22887
22888 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
22889 dead key repeat and up events.
22890
228912007-05-14 Chong Yidong <cyd@stupidchicken.com>
22892
22893 * image.c (pbm_load): Check image size for monochrome pbm.
22894
228952007-05-13 Chong Yidong <cyd@stupidchicken.com>
22896
22897 * xterm.c (XTread_socket): Revert last change.
22898
228992007-05-12 Chong Yidong <cyd@stupidchicken.com>
22900
22901 * image.c (pbm_load): Correctly check image size for greyscale pbm.
22902
22903 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
22904
229052007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
22906
22907 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
22908 mixup (YAILOM).
22909
229102007-05-07 Andreas Schwab <schwab@suse.de>
22911
22912 * keymap.c (Flookup_key): Fix typo in last change.
22913
229142007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
22915
22916 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
22917 mapping for unibyte strings.
22918
229192007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22920
22921 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
22922 (Fx_popup_dialog) [MAC_OSX]: Likewise.
22923
229242007-04-29 Richard Stallman <rms@gnu.org>
22925
22926 * insdel.c (replace_range): For undo, record insertion first.
22927
229282007-04-29 Andreas Schwab <schwab@suse.de>
22929
22930 * lisp.h (VECSIZE): Use OFFSETOF.
22931
229322007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22933
22934 * xdisp.c (try_window_reusing_current_matrix): Fix number of
22935 disabled lines.
22936
229372007-04-28 Richard Stallman <rms@gnu.org>
22938
22939 * lread.c (read_escape): In a string, \s is always space.
22940
229412007-04-27 Jan Djärv <jan.h.d@swipnet.se>
22942
22943 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
22944
22945 * gtkutil.c (xg_update_menubar, create_menus): Create empty
22946 submenu for menu bar items.
22947
22948See ChangeLog.10 for earlier changes.
22949
22950;; Local Variables:
22951;; coding: utf-8
22952;; add-log-time-zone-rule: t
aac0c6e3
MR
22953;; End:
22954
5df4f04c 22955 Copyright (C) 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc.
aac0c6e3
MR
22956
22957 This file is part of GNU Emacs.
22958
22959 GNU Emacs is free software: you can redistribute it and/or modify
22960 it under the terms of the GNU General Public License as published by
22961 the Free Software Foundation, either version 3 of the License, or
22962 (at your option) any later version.
22963
22964 GNU Emacs is distributed in the hope that it will be useful,
22965 but WITHOUT ANY WARRANTY; without even the implied warranty of
22966 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22967 GNU General Public License for more details.
22968
22969 You should have received a copy of the GNU General Public License
22970 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
22971
22972;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40